-
Notifications
You must be signed in to change notification settings - Fork 809
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Features/6908 capture file question value from built-in camera (#6939)
* Add mode/currentMode properties #6908 * Add currentMode into file question #6908 * Start stream video #6908 * Add snapPicture functionality #6908 * Fix image preview #6908 * Add unit test on stop vidoe on hiding question content #6908 * Add question onHiddenContent #6908 * implement onHidingContent for complex questions #6908 * Update knockout template #6908 * Rename API webcam into camera #6908 * Add camera svg files #6908 * Add flip camera API, #6908 * Work for #6908: implement camera mode ui actions for file question * Work for #6908: fix renderedPlaceholder for different modes * Work for #6908: add markup tests * Work for #6908: add vrt tests * Work for #6908: implement in Angular * Work for #6908: implement in Vue3 * Work for #6908: implement in Vue * Work for #6908: implement in React * Work for #6908: fix flip camera action for ios * Try to fix vr and f tests * Try to fix vr tests * Work for #6908: add hover state for take picture button * Fix markup tests * Fix vrt tests * Fix vue build * Fix markup test * Fix vue build * Update locales --------- Co-authored-by: Dmitry Kuzin <dk981234@gmail.com>
- Loading branch information
1 parent
905e796
commit 4e5230a
Showing
148 changed files
with
7,297 additions
and
6,307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
packages/survey-angular-ui/src/components/action-bar/action.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
packages/survey-angular-ui/src/components/file-actions/choose-file.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<ng-template #template> | ||
<label *ngIf="!question.isReadOnly" role="button" tabindex="0" [class]="question.getChooseFileCss()" | ||
[attr.for]="question.inputId" [attr.aria-label]="question.chooseButtonText" [key2click]> | ||
<svg *ngIf="question.cssClasses.chooseFileIconId" [title]="question.chooseButtonText" | ||
[iconName]="question.cssClasses.chooseFileIconId" [size]="'auto'" sv-ng-svg-icon></svg> | ||
<span>{{ question.chooseButtonText }}</span> | ||
</label> | ||
</ng-template> |
16 changes: 16 additions & 0 deletions
16
packages/survey-angular-ui/src/components/file-actions/choose-file.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Action, QuestionFileModel } from "survey-core"; | ||
import { AngularComponentFactory } from "../../component-factory"; | ||
import { Component, Input } from "@angular/core"; | ||
import { EmbeddedViewContentComponent } from "../../embedded-view-content.component"; | ||
@Component({ | ||
selector: "sv-ng-choose-file-btn", | ||
templateUrl: "./choose-file.component.html" | ||
}) | ||
export class ChooseFileBtn extends EmbeddedViewContentComponent { | ||
@Input() data: any; | ||
@Input() model!: Action; | ||
public get question(): QuestionFileModel { | ||
return (this.model && this.model.data.question) || this.data.question; | ||
} | ||
} | ||
AngularComponentFactory.Instance.registerComponent("sv-file-choose-btn", ChooseFileBtn); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.