survey-angular-ui 1.9.74 → 1.9.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -195
- package/angular-ui.d.ts +2 -0
- package/angular-ui.module.d.ts +82 -80
- package/bundles/survey-angular-ui.umd.js +4338 -0
- package/bundles/survey-angular-ui.umd.js.map +1 -0
- package/component-factory.d.ts +2 -2
- package/components/character-counter/character-counter.component.d.ts +10 -0
- package/components/rating/rating-item.component.d.ts +13 -0
- package/esm2015/angular-ui.js +105 -0
- package/esm2015/angular-ui.module.js +188 -0
- package/esm2015/base-angular.js +128 -0
- package/esm2015/comment-other.component.js +35 -0
- package/esm2015/comment.component.js +24 -0
- package/esm2015/component-factory.js +26 -0
- package/esm2015/components/action-bar/action-bar-item-dropdown.component.js +36 -0
- package/esm2015/components/action-bar/action-bar-item.component.js +26 -0
- package/esm2015/components/action-bar/action-bar.component.js +47 -0
- package/esm2015/components/action-bar/action.component.js +31 -0
- package/esm2015/components/brand-info/brand-info.component.js +16 -0
- package/esm2015/components/character-counter/character-counter.component.js +25 -0
- package/esm2015/components/dropdown/dropdown.component.js +76 -0
- package/esm2015/components/element-header/element-header.component.js +35 -0
- package/esm2015/components/element-title/dynamic-head.component.js +24 -0
- package/esm2015/components/element-title/element-title.component.js +21 -0
- package/esm2015/components/element-title/title-actions.component.js +21 -0
- package/esm2015/components/list/list-item.component.js +52 -0
- package/esm2015/components/list/list.component.js +55 -0
- package/esm2015/components/matrix-actions/detail-button/detail-button.component.js +28 -0
- package/esm2015/components/matrix-actions/drag-drop-icon/drag-drop-icon.js +24 -0
- package/esm2015/components/matrix-actions/remove-button/remove-button.component.js +28 -0
- package/esm2015/components/notifier/notifier.component.js +26 -0
- package/esm2015/components/paneldynamic-actions/paneldynamic-add-btn.component.js +38 -0
- package/esm2015/components/paneldynamic-actions/paneldynamic-next-btn.component.js +21 -0
- package/esm2015/components/paneldynamic-actions/paneldynamic-prev-btn.component.js +21 -0
- package/esm2015/components/paneldynamic-actions/paneldynamic-progress-text.component.js +17 -0
- package/esm2015/components/paneldynamic-actions/paneldynamic-remove-btn.component.js +20 -0
- package/esm2015/components/popup/modal-container.component.js +46 -0
- package/esm2015/components/popup/popup-container.component.js +59 -0
- package/esm2015/components/popup/popup-pointer.component.js +25 -0
- package/esm2015/components/popup/popup.component.js +45 -0
- package/esm2015/components/popup/popup.service.js +26 -0
- package/esm2015/components/progress/buttons/progress.component.js +71 -0
- package/esm2015/components/progress/default/progress.component.js +30 -0
- package/esm2015/components/rating/rating-item.component.js +34 -0
- package/esm2015/components/renderAs/boolean-checkbox/boolean-checkbox.component.js +24 -0
- package/esm2015/components/renderAs/boolean-radio/boolean-radio-item.component.js +25 -0
- package/esm2015/components/renderAs/boolean-radio/boolean-radio.component.js +21 -0
- package/esm2015/components/renderAs/dropdown-select/dropdown-option-item.component.js +23 -0
- package/esm2015/components/renderAs/dropdown-select/dropdown-select.component.js +41 -0
- package/esm2015/components/renderAs/rating-dropdown/rating-dropdown.component.js +21 -0
- package/esm2015/components/skeleton/skeleton.component.js +20 -0
- package/esm2015/components/skeleton.component.js +19 -0
- package/esm2015/components/survey-actions/survey-nav-btn.component.js +26 -0
- package/esm2015/components/survey-header/logo-image.component.js +24 -0
- package/esm2015/components/survey-header/survey-header.component.js +33 -0
- package/esm2015/components/svg-icon/svg-icon.component.js +68 -0
- package/esm2015/components/tagbox/tagbox-filter.component.js +26 -0
- package/esm2015/components/tagbox/tagbox-item.component.js +30 -0
- package/esm2015/components/tagbox/tagbox.component.js +52 -0
- package/esm2015/components/timer-panel/timer-panel.component.js +35 -0
- package/esm2015/element.component.js +59 -0
- package/esm2015/embedded-view-content.component.js +25 -0
- package/esm2015/errors.component.js +61 -0
- package/esm2015/page.component.js +40 -0
- package/esm2015/panel.component.js +42 -0
- package/esm2015/popup.survey.component.js +49 -0
- package/esm2015/question.component.js +58 -0
- package/esm2015/question.js +35 -0
- package/esm2015/questions/boolean.component.js +23 -0
- package/esm2015/questions/button-group/button-group-item.component.js +33 -0
- package/esm2015/questions/button-group/button-group.component.js +17 -0
- package/esm2015/questions/checkbox-item.component.js +28 -0
- package/esm2015/questions/checkbox.component.js +20 -0
- package/esm2015/questions/comment.component.js +22 -0
- package/esm2015/questions/composite.component.js +21 -0
- package/esm2015/questions/custom.component.js +27 -0
- package/esm2015/questions/customwidget.component.js +54 -0
- package/esm2015/questions/dropdown.component.js +20 -0
- package/esm2015/questions/expression.component.js +17 -0
- package/esm2015/questions/file.component.js +29 -0
- package/esm2015/questions/html.component.js +29 -0
- package/esm2015/questions/image.component.js +29 -0
- package/esm2015/questions/imagepicker-item.component.js +52 -0
- package/esm2015/questions/imagepicker.component.js +32 -0
- package/esm2015/questions/matrix-row.component.js +31 -0
- package/esm2015/questions/matrix.component.js +40 -0
- package/esm2015/questions/matrixcell.component.js +94 -0
- package/esm2015/questions/matrixdropdown.component.js +19 -0
- package/esm2015/questions/matrixdynamic.component.js +20 -0
- package/esm2015/questions/matrixrequiredheader.component.js +24 -0
- package/esm2015/questions/matrixtable.component.js +34 -0
- package/esm2015/questions/multipletext.component.js +28 -0
- package/esm2015/questions/multipletextitem.component.js +26 -0
- package/esm2015/questions/paneldynamic.component.js +82 -0
- package/esm2015/questions/radiogroup-item.component.js +22 -0
- package/esm2015/questions/radiogroup.component.js +25 -0
- package/esm2015/questions/ranking-item.component.js +27 -0
- package/esm2015/questions/ranking.component.js +34 -0
- package/esm2015/questions/rating.component.js +27 -0
- package/esm2015/questions/selectbase-item.js +37 -0
- package/esm2015/questions/selectbase.component.js +53 -0
- package/esm2015/questions/signature.component.js +20 -0
- package/esm2015/questions/tagbox.component.js +20 -0
- package/esm2015/questions/text.component.js +21 -0
- package/esm2015/row.component.js +63 -0
- package/esm2015/string-editor.component.js +29 -0
- package/esm2015/string-viewer.component.js +41 -0
- package/esm2015/survey-angular-ui.js +5 -0
- package/esm2015/survey-content.component.js +72 -0
- package/esm2015/survey-string.component.js +17 -0
- package/esm2015/survey.component.js +32 -0
- package/esm2015/template-renderer.component.js +27 -0
- package/esm2015/utils/dynamic.directive.js +54 -0
- package/esm2015/utils/ng-key2click.directive.js +69 -0
- package/esm2015/utils/ng-show.directive.js +27 -0
- package/esm2015/utils/safe-html.pipe.js +18 -0
- package/esm2015/utils/safe-url.pipe.js +33 -0
- package/esm2020/angular-ui.mjs +102 -102
- package/esm2020/angular-ui.module.mjs +183 -183
- package/esm2020/base-angular.mjs +127 -127
- package/esm2020/comment-other.component.mjs +31 -31
- package/esm2020/comment.component.mjs +20 -20
- package/esm2020/component-factory.mjs +25 -25
- package/esm2020/components/action-bar/action-bar-item-dropdown.component.mjs +31 -31
- package/esm2020/components/action-bar/action-bar-item.component.mjs +21 -21
- package/esm2020/components/action-bar/action-bar.component.mjs +42 -42
- package/esm2020/components/action-bar/action.component.mjs +26 -26
- package/esm2020/components/brand-info/brand-info.component.mjs +12 -12
- package/esm2020/components/dropdown/dropdown.component.mjs +65 -65
- package/esm2020/components/element-header/element-header.component.mjs +31 -31
- package/esm2020/components/element-title/dynamic-head.component.mjs +19 -19
- package/esm2020/components/element-title/element-title.component.mjs +16 -16
- package/esm2020/components/element-title/title-actions.component.mjs +16 -16
- package/esm2020/components/list/list-item.component.mjs +47 -47
- package/esm2020/components/list/list.component.mjs +49 -49
- package/esm2020/components/matrix-actions/detail-button/detail-button.component.mjs +24 -24
- package/esm2020/components/matrix-actions/drag-drop-icon/drag-drop-icon.mjs +19 -19
- package/esm2020/components/matrix-actions/remove-button/remove-button.component.mjs +24 -24
- package/esm2020/components/notifier/notifier.component.mjs +21 -21
- package/esm2020/components/paneldynamic-actions/paneldynamic-add-btn.component.mjs +34 -34
- package/esm2020/components/paneldynamic-actions/paneldynamic-next-btn.component.mjs +17 -17
- package/esm2020/components/paneldynamic-actions/paneldynamic-prev-btn.component.mjs +17 -17
- package/esm2020/components/paneldynamic-actions/paneldynamic-progress-text.component.mjs +13 -13
- package/esm2020/components/paneldynamic-actions/paneldynamic-remove-btn.component.mjs +16 -16
- package/esm2020/components/popup/modal-container.component.mjs +41 -41
- package/esm2020/components/popup/popup-container.component.mjs +55 -55
- package/esm2020/components/popup/popup-pointer.component.mjs +21 -21
- package/esm2020/components/popup/popup.component.mjs +42 -42
- package/esm2020/components/popup/popup.service.mjs +25 -25
- package/esm2020/components/progress/buttons/progress.component.mjs +66 -66
- package/esm2020/components/progress/default/progress.component.mjs +26 -26
- package/esm2020/components/renderAs/boolean-checkbox/boolean-checkbox.component.mjs +20 -20
- package/esm2020/components/renderAs/boolean-radio/boolean-radio-item.component.mjs +21 -21
- package/esm2020/components/renderAs/boolean-radio/boolean-radio.component.mjs +17 -17
- package/esm2020/components/renderAs/dropdown-select/dropdown-option-item.component.mjs +22 -22
- package/esm2020/components/renderAs/dropdown-select/dropdown-select.component.mjs +37 -37
- package/esm2020/components/renderAs/rating-dropdown/rating-dropdown.component.mjs +17 -17
- package/esm2020/components/skeleton/skeleton.component.mjs +15 -15
- package/esm2020/components/skeleton.component.mjs +14 -14
- package/esm2020/components/survey-actions/survey-nav-btn.component.mjs +21 -21
- package/esm2020/components/survey-header/logo-image.component.mjs +19 -19
- package/esm2020/components/survey-header/survey-header.component.mjs +29 -29
- package/esm2020/components/svg-icon/svg-icon.component.mjs +67 -67
- package/esm2020/components/tagbox/tagbox-filter.component.mjs +21 -21
- package/esm2020/components/tagbox/tagbox-item.component.mjs +26 -26
- package/esm2020/components/tagbox/tagbox.component.mjs +43 -43
- package/esm2020/components/timer-panel/timer-panel.component.mjs +31 -31
- package/esm2020/element.component.mjs +54 -54
- package/esm2020/embedded-view-content.component.mjs +23 -23
- package/esm2020/errors.component.mjs +57 -57
- package/esm2020/page.component.mjs +34 -34
- package/esm2020/panel.component.mjs +37 -37
- package/esm2020/popup.survey.component.mjs +43 -43
- package/esm2020/question.component.mjs +53 -53
- package/esm2020/question.mjs +32 -32
- package/esm2020/questions/boolean.component.mjs +19 -19
- package/esm2020/questions/button-group/button-group-item.component.mjs +28 -28
- package/esm2020/questions/button-group/button-group.component.mjs +13 -13
- package/esm2020/questions/checkbox-item.component.mjs +23 -23
- package/esm2020/questions/checkbox.component.mjs +16 -16
- package/esm2020/questions/comment.component.mjs +17 -17
- package/esm2020/questions/composite.component.mjs +20 -20
- package/esm2020/questions/custom.component.mjs +26 -26
- package/esm2020/questions/customwidget.component.mjs +50 -50
- package/esm2020/questions/dropdown.component.mjs +16 -16
- package/esm2020/questions/expression.component.mjs +16 -16
- package/esm2020/questions/file.component.mjs +24 -24
- package/esm2020/questions/html.component.mjs +24 -24
- package/esm2020/questions/image.component.mjs +25 -25
- package/esm2020/questions/imagepicker-item.component.mjs +47 -47
- package/esm2020/questions/imagepicker.component.mjs +28 -28
- package/esm2020/questions/matrix-row.component.mjs +26 -26
- package/esm2020/questions/matrix.component.mjs +35 -35
- package/esm2020/questions/matrixcell.component.mjs +89 -89
- package/esm2020/questions/matrixdropdown.component.mjs +15 -15
- package/esm2020/questions/matrixdynamic.component.mjs +16 -16
- package/esm2020/questions/matrixrequiredheader.component.mjs +23 -23
- package/esm2020/questions/matrixtable.component.mjs +30 -30
- package/esm2020/questions/multipletext.component.mjs +24 -24
- package/esm2020/questions/multipletextitem.component.mjs +22 -22
- package/esm2020/questions/paneldynamic.component.mjs +78 -78
- package/esm2020/questions/radiogroup-item.component.mjs +17 -17
- package/esm2020/questions/radiogroup.component.mjs +21 -21
- package/esm2020/questions/ranking-item.component.mjs +23 -23
- package/esm2020/questions/ranking.component.mjs +30 -30
- package/esm2020/questions/rating.component.mjs +22 -22
- package/esm2020/questions/selectbase-item.mjs +32 -32
- package/esm2020/questions/selectbase.component.mjs +49 -49
- package/esm2020/questions/signature.component.mjs +16 -16
- package/esm2020/questions/tagbox.component.mjs +16 -16
- package/esm2020/questions/text.component.mjs +15 -15
- package/esm2020/row.component.mjs +57 -57
- package/esm2020/string-editor.component.mjs +25 -25
- package/esm2020/string-viewer.component.mjs +36 -36
- package/esm2020/survey-angular-ui.mjs +4 -4
- package/esm2020/survey-content.component.mjs +68 -68
- package/esm2020/survey-string.component.mjs +16 -16
- package/esm2020/survey.component.mjs +31 -31
- package/esm2020/template-renderer.component.mjs +22 -22
- package/esm2020/utils/dynamic.directive.mjs +51 -51
- package/esm2020/utils/ng-key2click.directive.mjs +68 -68
- package/esm2020/utils/ng-show.directive.mjs +26 -26
- package/esm2020/utils/safe-html.pipe.mjs +17 -17
- package/esm2020/utils/safe-url.pipe.mjs +32 -32
- package/fesm2015/survey-angular-ui.js +3206 -0
- package/fesm2015/survey-angular-ui.js.map +1 -0
- package/fesm2015/survey-angular-ui.mjs +2864 -2864
- package/fesm2020/survey-angular-ui.mjs +2839 -2839
- package/package.json +6 -19
- package/utils/dynamic.directive.d.ts +3 -2
package/esm2020/base-angular.mjs
CHANGED
|
@@ -1,128 +1,128 @@
|
|
|
1
|
-
import { Component } from "@angular/core";
|
|
2
|
-
import { EmbeddedViewContentComponent } from "./embedded-view-content.component";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class BaseAngular extends EmbeddedViewContentComponent {
|
|
5
|
-
constructor(changeDetectorRef, viewContainerRef) {
|
|
6
|
-
super(viewContainerRef);
|
|
7
|
-
this.changeDetectorRef = changeDetectorRef;
|
|
8
|
-
this.isModelSubsribed = false;
|
|
9
|
-
this.isDestroyed = false;
|
|
10
|
-
}
|
|
11
|
-
get surveyModel() {
|
|
12
|
-
return this.getModel().getSurvey();
|
|
13
|
-
}
|
|
14
|
-
ngDoCheck() {
|
|
15
|
-
if (this.previousModel !== this.getModel()) {
|
|
16
|
-
this.unMakeBaseElementAngular(this.previousModel);
|
|
17
|
-
this.makeBaseElementAngular(this.getModel());
|
|
18
|
-
this.onModelChanged();
|
|
19
|
-
this.previousModel = this.getModel();
|
|
20
|
-
}
|
|
21
|
-
this.setIsRendering(true);
|
|
22
|
-
}
|
|
23
|
-
onModelChanged() { }
|
|
24
|
-
setIsRendering(val) {
|
|
25
|
-
const model = this.getModel();
|
|
26
|
-
if (!!model) {
|
|
27
|
-
model.isRendering = val;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
getIsRendering() {
|
|
31
|
-
const model = this.getModel();
|
|
32
|
-
return !!model && !!model.isRendering;
|
|
33
|
-
}
|
|
34
|
-
ngOnDestroy() {
|
|
35
|
-
this.isDestroyed = true;
|
|
36
|
-
this.unMakeBaseElementAngular(this.getModel());
|
|
37
|
-
}
|
|
38
|
-
makeBaseElementAngular(stateElement) {
|
|
39
|
-
if (!!stateElement && !stateElement.__ngImplemented) {
|
|
40
|
-
this.isModelSubsribed = true;
|
|
41
|
-
stateElement.__ngImplemented = true;
|
|
42
|
-
stateElement.iteratePropertiesHash((hash, key) => {
|
|
43
|
-
var val = hash[key];
|
|
44
|
-
if (Array.isArray(val)) {
|
|
45
|
-
var val = val;
|
|
46
|
-
val["onArrayChanged"] = (arrayChanges) => {
|
|
47
|
-
this.update(key);
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
stateElement.setPropertyValueCoreHandler = (hash, key, val) => {
|
|
52
|
-
if (hash[key] !== val) {
|
|
53
|
-
hash[key] = val;
|
|
54
|
-
this.update(key);
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
unMakeBaseElementAngular(stateElement) {
|
|
60
|
-
if (!!stateElement && this.isModelSubsribed) {
|
|
61
|
-
this.isModelSubsribed = false;
|
|
62
|
-
stateElement.__ngImplemented = false;
|
|
63
|
-
stateElement.setPropertyValueCoreHandler = undefined;
|
|
64
|
-
stateElement.iteratePropertiesHash((hash, key) => {
|
|
65
|
-
var val = hash[key];
|
|
66
|
-
if (Array.isArray(val)) {
|
|
67
|
-
var val = val;
|
|
68
|
-
val["onArrayChanged"] = () => { };
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
update(key) {
|
|
74
|
-
if (this.getIsRendering())
|
|
75
|
-
return;
|
|
76
|
-
this.beforeUpdate();
|
|
77
|
-
if (this.getPropertiesToUpdateSync().indexOf(key) > -1) {
|
|
78
|
-
this.detectChanges();
|
|
79
|
-
this.afterUpdate();
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
(window["__zone_symbol__queueMicrotask"]
|
|
83
|
-
? window["__zone_symbol__queueMicrotask"] : queueMicrotask)(() => {
|
|
84
|
-
if (!this.isDestroyed) {
|
|
85
|
-
this.setIsRendering(true);
|
|
86
|
-
this.detectChanges();
|
|
87
|
-
}
|
|
88
|
-
this.afterUpdate();
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
getChangeDetectorRef() {
|
|
93
|
-
return this.embeddedView ? this.embeddedView : this.changeDetectorRef;
|
|
94
|
-
}
|
|
95
|
-
getPropertiesToUpdateSync() {
|
|
96
|
-
return [];
|
|
97
|
-
}
|
|
98
|
-
detectChanges() {
|
|
99
|
-
this.getChangeDetectorRef().detectChanges();
|
|
100
|
-
}
|
|
101
|
-
getShouldReattachChangeDetector() {
|
|
102
|
-
return true;
|
|
103
|
-
}
|
|
104
|
-
beforeUpdate() {
|
|
105
|
-
if (this.getShouldReattachChangeDetector()) {
|
|
106
|
-
this.getChangeDetectorRef().detach();
|
|
107
|
-
}
|
|
108
|
-
this.setIsRendering(true);
|
|
109
|
-
}
|
|
110
|
-
afterUpdate() {
|
|
111
|
-
if (this.getShouldReattachChangeDetector()) {
|
|
112
|
-
this.getChangeDetectorRef().reattach();
|
|
113
|
-
}
|
|
114
|
-
this.setIsRendering(false);
|
|
115
|
-
}
|
|
116
|
-
ngAfterViewChecked() {
|
|
117
|
-
this.setIsRendering(false);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
BaseAngular.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: BaseAngular, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
121
|
-
BaseAngular.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: BaseAngular, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "", isInline: true });
|
|
122
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: BaseAngular, decorators: [{
|
|
123
|
-
type: Component,
|
|
124
|
-
args: [{
|
|
125
|
-
template: ""
|
|
126
|
-
}]
|
|
127
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ViewContainerRef }]; } });
|
|
1
|
+
import { Component } from "@angular/core";
|
|
2
|
+
import { EmbeddedViewContentComponent } from "./embedded-view-content.component";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class BaseAngular extends EmbeddedViewContentComponent {
|
|
5
|
+
constructor(changeDetectorRef, viewContainerRef) {
|
|
6
|
+
super(viewContainerRef);
|
|
7
|
+
this.changeDetectorRef = changeDetectorRef;
|
|
8
|
+
this.isModelSubsribed = false;
|
|
9
|
+
this.isDestroyed = false;
|
|
10
|
+
}
|
|
11
|
+
get surveyModel() {
|
|
12
|
+
return this.getModel().getSurvey();
|
|
13
|
+
}
|
|
14
|
+
ngDoCheck() {
|
|
15
|
+
if (this.previousModel !== this.getModel()) {
|
|
16
|
+
this.unMakeBaseElementAngular(this.previousModel);
|
|
17
|
+
this.makeBaseElementAngular(this.getModel());
|
|
18
|
+
this.onModelChanged();
|
|
19
|
+
this.previousModel = this.getModel();
|
|
20
|
+
}
|
|
21
|
+
this.setIsRendering(true);
|
|
22
|
+
}
|
|
23
|
+
onModelChanged() { }
|
|
24
|
+
setIsRendering(val) {
|
|
25
|
+
const model = this.getModel();
|
|
26
|
+
if (!!model) {
|
|
27
|
+
model.isRendering = val;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
getIsRendering() {
|
|
31
|
+
const model = this.getModel();
|
|
32
|
+
return !!model && !!model.isRendering;
|
|
33
|
+
}
|
|
34
|
+
ngOnDestroy() {
|
|
35
|
+
this.isDestroyed = true;
|
|
36
|
+
this.unMakeBaseElementAngular(this.getModel());
|
|
37
|
+
}
|
|
38
|
+
makeBaseElementAngular(stateElement) {
|
|
39
|
+
if (!!stateElement && !stateElement.__ngImplemented) {
|
|
40
|
+
this.isModelSubsribed = true;
|
|
41
|
+
stateElement.__ngImplemented = true;
|
|
42
|
+
stateElement.iteratePropertiesHash((hash, key) => {
|
|
43
|
+
var val = hash[key];
|
|
44
|
+
if (Array.isArray(val)) {
|
|
45
|
+
var val = val;
|
|
46
|
+
val["onArrayChanged"] = (arrayChanges) => {
|
|
47
|
+
this.update(key);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
stateElement.setPropertyValueCoreHandler = (hash, key, val) => {
|
|
52
|
+
if (hash[key] !== val) {
|
|
53
|
+
hash[key] = val;
|
|
54
|
+
this.update(key);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
unMakeBaseElementAngular(stateElement) {
|
|
60
|
+
if (!!stateElement && this.isModelSubsribed) {
|
|
61
|
+
this.isModelSubsribed = false;
|
|
62
|
+
stateElement.__ngImplemented = false;
|
|
63
|
+
stateElement.setPropertyValueCoreHandler = undefined;
|
|
64
|
+
stateElement.iteratePropertiesHash((hash, key) => {
|
|
65
|
+
var val = hash[key];
|
|
66
|
+
if (Array.isArray(val)) {
|
|
67
|
+
var val = val;
|
|
68
|
+
val["onArrayChanged"] = () => { };
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
update(key) {
|
|
74
|
+
if (this.getIsRendering())
|
|
75
|
+
return;
|
|
76
|
+
this.beforeUpdate();
|
|
77
|
+
if (this.getPropertiesToUpdateSync().indexOf(key) > -1) {
|
|
78
|
+
this.detectChanges();
|
|
79
|
+
this.afterUpdate();
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
(window["__zone_symbol__queueMicrotask"]
|
|
83
|
+
? window["__zone_symbol__queueMicrotask"] : queueMicrotask)(() => {
|
|
84
|
+
if (!this.isDestroyed) {
|
|
85
|
+
this.setIsRendering(true);
|
|
86
|
+
this.detectChanges();
|
|
87
|
+
}
|
|
88
|
+
this.afterUpdate();
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
getChangeDetectorRef() {
|
|
93
|
+
return this.embeddedView ? this.embeddedView : this.changeDetectorRef;
|
|
94
|
+
}
|
|
95
|
+
getPropertiesToUpdateSync() {
|
|
96
|
+
return [];
|
|
97
|
+
}
|
|
98
|
+
detectChanges() {
|
|
99
|
+
this.getChangeDetectorRef().detectChanges();
|
|
100
|
+
}
|
|
101
|
+
getShouldReattachChangeDetector() {
|
|
102
|
+
return true;
|
|
103
|
+
}
|
|
104
|
+
beforeUpdate() {
|
|
105
|
+
if (this.getShouldReattachChangeDetector()) {
|
|
106
|
+
this.getChangeDetectorRef().detach();
|
|
107
|
+
}
|
|
108
|
+
this.setIsRendering(true);
|
|
109
|
+
}
|
|
110
|
+
afterUpdate() {
|
|
111
|
+
if (this.getShouldReattachChangeDetector()) {
|
|
112
|
+
this.getChangeDetectorRef().reattach();
|
|
113
|
+
}
|
|
114
|
+
this.setIsRendering(false);
|
|
115
|
+
}
|
|
116
|
+
ngAfterViewChecked() {
|
|
117
|
+
this.setIsRendering(false);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
BaseAngular.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: BaseAngular, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
121
|
+
BaseAngular.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: BaseAngular, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "", isInline: true });
|
|
122
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: BaseAngular, decorators: [{
|
|
123
|
+
type: Component,
|
|
124
|
+
args: [{
|
|
125
|
+
template: ""
|
|
126
|
+
}]
|
|
127
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ViewContainerRef }]; } });
|
|
128
128
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1hbmd1bGFyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2Jhc2UtYW5ndWxhci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQXFCLFNBQVMsRUFBaUUsTUFBTSxlQUFlLENBQUM7QUFFNUgsT0FBTyxFQUFFLDRCQUE0QixFQUFFLE1BQU0sbUNBQW1DLENBQUM7O0FBS2pGLE1BQU0sT0FBZ0IsV0FBbUMsU0FBUSw0QkFBNEI7SUFDM0YsWUFBc0IsaUJBQW9DLEVBQUUsZ0JBQW1DO1FBQzdGLEtBQUssQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDO1FBREosc0JBQWlCLEdBQWpCLGlCQUFpQixDQUFtQjtRQVFsRCxxQkFBZ0IsR0FBWSxLQUFLLENBQUM7UUF3QmxDLGdCQUFXLEdBQVksS0FBSyxDQUFDO0lBOUJyQyxDQUFDO0lBQ0QsSUFBYyxXQUFXO1FBQ3ZCLE9BQU8sSUFBSSxDQUFDLFFBQVEsRUFBRSxDQUFDLFNBQVMsRUFBRSxDQUFDO0lBQ3JDLENBQUM7SUFLTSxTQUFTO1FBQ2QsSUFBRyxJQUFJLENBQUMsYUFBYSxLQUFLLElBQUksQ0FBQyxRQUFRLEVBQUUsRUFBRTtZQUN6QyxJQUFJLENBQUMsd0JBQXdCLENBQUMsSUFBSSxDQUFDLGFBQWEsQ0FBQyxDQUFDO1lBQ2xELElBQUksQ0FBQy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-1,32 +1,32 @@
|
|
|
1
|
-
import { Component, Input } from "@angular/core";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
export class SurveyCommentOtherComponent {
|
|
5
|
-
constructor() {
|
|
6
|
-
}
|
|
7
|
-
get otherValue() {
|
|
8
|
-
const val = this.question.otherValue;
|
|
9
|
-
return !!val ? val : "";
|
|
10
|
-
}
|
|
11
|
-
onOtherValueChange(event) {
|
|
12
|
-
this.question.onOtherValueChange(event);
|
|
13
|
-
}
|
|
14
|
-
onOtherValueInput(event) {
|
|
15
|
-
this.question.onOtherValueInput(event);
|
|
16
|
-
}
|
|
17
|
-
get otherId() {
|
|
18
|
-
return this.question.otherId;
|
|
19
|
-
}
|
|
20
|
-
get otherPlaceholder() {
|
|
21
|
-
return this.question.otherPlaceholder;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
SurveyCommentOtherComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SurveyCommentOtherComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
25
|
-
SurveyCommentOtherComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: SurveyCommentOtherComponent, selector: "sv-ng-comment-other, '[sv-ng-comment-other]'", inputs: { question: "question" }, ngImport: i0, template: "<textarea *ngIf=\"!question.isReadOnlyRenderDiv()\" [id]=\"otherId\" [attr.max-length]=\"question.getOthersMaxLength()\" [attr.aria-required]=\"question.ariaRequired\" [attr.aria-label]=\"question.ariaLabel\" [attr.placeholder]=\"otherPlaceholder\" \n [value]=\"otherValue\"\n [style.resize]=\"question.resizeStyle\"\n [disabled]=\"question.isInputReadOnly\"\n (change)=\"onOtherValueChange($event)\"\n (input)=\"onOtherValueInput($event)\"\n [class]=\"question.cssClasses.other\">\n</textarea>\n<div *ngIf=\"question.isReadOnlyRenderDiv()\">{{ otherValue }}</div>\n", directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SurveyCommentOtherComponent, decorators: [{
|
|
27
|
-
type: Component,
|
|
28
|
-
args: [{ selector: "sv-ng-comment-other, '[sv-ng-comment-other]'", template: "<textarea *ngIf=\"!question.isReadOnlyRenderDiv()\" [id]=\"otherId\" [attr.max-length]=\"question.getOthersMaxLength()\" [attr.aria-required]=\"question.ariaRequired\" [attr.aria-label]=\"question.ariaLabel\" [attr.placeholder]=\"otherPlaceholder\" \n [value]=\"otherValue\"\n [style.resize]=\"question.resizeStyle\"\n [disabled]=\"question.isInputReadOnly\"\n (change)=\"onOtherValueChange($event)\"\n (input)=\"onOtherValueInput($event)\"\n [class]=\"question.cssClasses.other\">\n</textarea>\n<div *ngIf=\"question.isReadOnlyRenderDiv()\">{{ otherValue }}</div>\n" }]
|
|
29
|
-
}], ctorParameters: function () { return []; }, propDecorators: { question: [{
|
|
30
|
-
type: Input
|
|
31
|
-
}] } });
|
|
1
|
+
import { Component, Input } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
export class SurveyCommentOtherComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
}
|
|
7
|
+
get otherValue() {
|
|
8
|
+
const val = this.question.otherValue;
|
|
9
|
+
return !!val ? val : "";
|
|
10
|
+
}
|
|
11
|
+
onOtherValueChange(event) {
|
|
12
|
+
this.question.onOtherValueChange(event);
|
|
13
|
+
}
|
|
14
|
+
onOtherValueInput(event) {
|
|
15
|
+
this.question.onOtherValueInput(event);
|
|
16
|
+
}
|
|
17
|
+
get otherId() {
|
|
18
|
+
return this.question.otherId;
|
|
19
|
+
}
|
|
20
|
+
get otherPlaceholder() {
|
|
21
|
+
return this.question.otherPlaceholder;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
SurveyCommentOtherComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SurveyCommentOtherComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
25
|
+
SurveyCommentOtherComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: SurveyCommentOtherComponent, selector: "sv-ng-comment-other, '[sv-ng-comment-other]'", inputs: { question: "question" }, ngImport: i0, template: "<textarea *ngIf=\"!question.isReadOnlyRenderDiv()\" [id]=\"otherId\" [attr.max-length]=\"question.getOthersMaxLength()\" [attr.aria-required]=\"question.ariaRequired\" [attr.aria-label]=\"question.ariaLabel\" [attr.placeholder]=\"otherPlaceholder\" \n [value]=\"otherValue\"\n [style.resize]=\"question.resizeStyle\"\n [disabled]=\"question.isInputReadOnly\"\n (change)=\"onOtherValueChange($event)\"\n (input)=\"onOtherValueInput($event)\"\n [class]=\"question.cssClasses.other\">\n</textarea>\n<div *ngIf=\"question.isReadOnlyRenderDiv()\">{{ otherValue }}</div>\n", directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SurveyCommentOtherComponent, decorators: [{
|
|
27
|
+
type: Component,
|
|
28
|
+
args: [{ selector: "sv-ng-comment-other, '[sv-ng-comment-other]'", template: "<textarea *ngIf=\"!question.isReadOnlyRenderDiv()\" [id]=\"otherId\" [attr.max-length]=\"question.getOthersMaxLength()\" [attr.aria-required]=\"question.ariaRequired\" [attr.aria-label]=\"question.ariaLabel\" [attr.placeholder]=\"otherPlaceholder\" \n [value]=\"otherValue\"\n [style.resize]=\"question.resizeStyle\"\n [disabled]=\"question.isInputReadOnly\"\n (change)=\"onOtherValueChange($event)\"\n (input)=\"onOtherValueInput($event)\"\n [class]=\"question.cssClasses.other\">\n</textarea>\n<div *ngIf=\"question.isReadOnlyRenderDiv()\">{{ otherValue }}</div>\n" }]
|
|
29
|
+
}], ctorParameters: function () { return []; }, propDecorators: { question: [{
|
|
30
|
+
type: Input
|
|
31
|
+
}] } });
|
|
32
32
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWVudC1vdGhlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29tbWVudC1vdGhlci5jb21wb25lbnQudHMiLCIuLi8uLi9zcmMvY29tbWVudC1vdGhlci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQzs7O0FBT2pELE1BQU0sT0FBTywyQkFBMkI7SUFFdEM7SUFDQSxDQUFDO0lBQ0QsSUFBVyxVQUFVO1FBQ25CLE1BQU0sR0FBRyxHQUF3QixJQUFJLENBQUMsUUFBUyxDQUFDLFVBQVUsQ0FBQztRQUMzRCxPQUFPLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDO0lBQzFCLENBQUM7SUFDTSxrQkFBa0IsQ0FBQyxLQUFVO1FBQ2IsSUFBSSxDQUFDLFFBQVMsQ0FBQyxrQkFBa0IsQ0FBQyxLQUFLLENBQUMsQ0FBQztJQUNoRSxDQUFDO0lBQ00saUJBQWlCLENBQUMsS0FBVTtRQUNaLElBQUksQ0FBQyxRQUFTLENBQUMsaUJBQWlCLENBQUMsS0FBSyxDQUFDLENBQUM7SUFDL0QsQ0FBQztJQUNELElBQVcsT0FBTztRQUNoQixPQUE0QixJQUFJLENBQUMsUUFBUyxDQUFDLE9BQU8sQ0FBQztJQUNyRCxDQUFDO0lBQ0QsSUFBVyxnQkFBZ0I7UU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dGhlclwiPlxuPC90ZXh0YXJlYT5cbjxkaXYgKm5nSWY9XCJxdWVzdGlvbi5pc1JlYWRPbmx5UmVuZGVyRGl2KClcIj57eyBvdGhlclZhbHVlIH19PC9kaXY+XG4iXX0=
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { Component, Input } from "@angular/core";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
export class SurveyCommentComponent {
|
|
5
|
-
constructor() {
|
|
6
|
-
}
|
|
7
|
-
get comment() {
|
|
8
|
-
if (!this.question.comment)
|
|
9
|
-
return "";
|
|
10
|
-
return this.question.comment;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
SurveyCommentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SurveyCommentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
14
|
-
SurveyCommentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: SurveyCommentComponent, selector: "sv-ng-comment, '[sv-ng-comment]'", inputs: { question: "question" }, ngImport: i0, template: "<textarea *ngIf=\"!question.isReadOnlyRenderDiv()\" [id]=\"question.commentId\" [attr.max-length]=\"question.getOthersMaxLength()\" [attr.aria-required]=\"question.ariaRequired\" [attr.aria-label]=\"question.ariaLabel\" [attr.placeholder]=\"question.commentPlaceholder\" \n [value]=\"comment\"\n [style.resize]=\"question.resizeStyle\"\n [disabled]=\"question.isInputReadOnly\"\n (change)=\"question.onCommentChange($event)\"\n (input)=\"question.onCommentInput($event)\"\n [class]=\"question.cssClasses.other\">\n</textarea>\n<div *ngIf=\"question.isReadOnlyRenderDiv()\">{{ question.comment }}</div>\n", directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SurveyCommentComponent, decorators: [{
|
|
16
|
-
type: Component,
|
|
17
|
-
args: [{ selector: "sv-ng-comment, '[sv-ng-comment]'", template: "<textarea *ngIf=\"!question.isReadOnlyRenderDiv()\" [id]=\"question.commentId\" [attr.max-length]=\"question.getOthersMaxLength()\" [attr.aria-required]=\"question.ariaRequired\" [attr.aria-label]=\"question.ariaLabel\" [attr.placeholder]=\"question.commentPlaceholder\" \n [value]=\"comment\"\n [style.resize]=\"question.resizeStyle\"\n [disabled]=\"question.isInputReadOnly\"\n (change)=\"question.onCommentChange($event)\"\n (input)=\"question.onCommentInput($event)\"\n [class]=\"question.cssClasses.other\">\n</textarea>\n<div *ngIf=\"question.isReadOnlyRenderDiv()\">{{ question.comment }}</div>\n" }]
|
|
18
|
-
}], ctorParameters: function () { return []; }, propDecorators: { question: [{
|
|
19
|
-
type: Input
|
|
20
|
-
}] } });
|
|
1
|
+
import { Component, Input } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
export class SurveyCommentComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
}
|
|
7
|
+
get comment() {
|
|
8
|
+
if (!this.question.comment)
|
|
9
|
+
return "";
|
|
10
|
+
return this.question.comment;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
SurveyCommentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SurveyCommentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
14
|
+
SurveyCommentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: SurveyCommentComponent, selector: "sv-ng-comment, '[sv-ng-comment]'", inputs: { question: "question" }, ngImport: i0, template: "<textarea *ngIf=\"!question.isReadOnlyRenderDiv()\" [id]=\"question.commentId\" [attr.max-length]=\"question.getOthersMaxLength()\" [attr.aria-required]=\"question.ariaRequired\" [attr.aria-label]=\"question.ariaLabel\" [attr.placeholder]=\"question.commentPlaceholder\" \n [value]=\"comment\"\n [style.resize]=\"question.resizeStyle\"\n [disabled]=\"question.isInputReadOnly\"\n (change)=\"question.onCommentChange($event)\"\n (input)=\"question.onCommentInput($event)\"\n [class]=\"question.cssClasses.other\">\n</textarea>\n<div *ngIf=\"question.isReadOnlyRenderDiv()\">{{ question.comment }}</div>\n", directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: SurveyCommentComponent, decorators: [{
|
|
16
|
+
type: Component,
|
|
17
|
+
args: [{ selector: "sv-ng-comment, '[sv-ng-comment]'", template: "<textarea *ngIf=\"!question.isReadOnlyRenderDiv()\" [id]=\"question.commentId\" [attr.max-length]=\"question.getOthersMaxLength()\" [attr.aria-required]=\"question.ariaRequired\" [attr.aria-label]=\"question.ariaLabel\" [attr.placeholder]=\"question.commentPlaceholder\" \n [value]=\"comment\"\n [style.resize]=\"question.resizeStyle\"\n [disabled]=\"question.isInputReadOnly\"\n (change)=\"question.onCommentChange($event)\"\n (input)=\"question.onCommentInput($event)\"\n [class]=\"question.cssClasses.other\">\n</textarea>\n<div *ngIf=\"question.isReadOnlyRenderDiv()\">{{ question.comment }}</div>\n" }]
|
|
18
|
+
}], ctorParameters: function () { return []; }, propDecorators: { question: [{
|
|
19
|
+
type: Input
|
|
20
|
+
}] } });
|
|
21
21
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWVudC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29tbWVudC5jb21wb25lbnQudHMiLCIuLi8uLi9zcmMvY29tbWVudC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQ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RPbmx5UmVuZGVyRGl2KClcIiBbaWRdPVwicXVlc3Rpb24uY29tbWVudElkXCIgW2F0dHIubWF4LWxlbmd0aF09XCJxdWVzdGlvbi5nZXRPdGhlcnNNYXhMZW5ndGgoKVwiICBbYXR0ci5hcmlhLXJlcXVpcmVkXT1cInF1ZXN0aW9uLmFyaWFSZXF1aXJlZFwiIFthdHRyLmFyaWEtbGFiZWxdPVwicXVlc3Rpb24uYXJpYUxhYmVsXCIgW2F0dHIucGxhY2Vob2xkZXJdPVwicXVlc3Rpb24uY29tbWVudFBsYWNlaG9sZGVyXCIgXG4gIFt2YWx1ZV09XCJjb21tZW50XCJcbiAgW3N0eWxlLnJlc2l6ZV09XCJxdWVzdGlvbi5yZXNpemVTdHlsZVwiXG4gIFtkaXNhYmxlZF09XCJxdWVzdGlvbi5pc0lucHV0UmVhZE9ubHlcIlxuICAoY2hhbmdlKT1cInF1ZXN0aW9uLm9uQ29tbWVudENoYW5nZSgkZXZlbnQpXCJcbiAgKGlucHV0KT1cInF1ZXN0aW9uLm9uQ29tbWVudElucHV0KCRldmVudClcIlxuICBbY2xhc3NdPVwicXVlc3Rpb24uY3NzQ2xhc3Nlcy5vdGhlclwiPlxuPC90ZXh0YXJlYT5cbjxkaXYgKm5nSWY9XCJxdWVzdGlvbi5pc1JlYWRPbmx5UmVuZGVyRGl2KClcIj57eyBxdWVzdGlvbi5jb21tZW50IH19PC9kaXY+XG4iXX0=
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
export class AngularComponentFactory {
|
|
2
|
-
constructor() {
|
|
3
|
-
this.creatorHash = {};
|
|
4
|
-
}
|
|
5
|
-
registerComponent(typeName, componentType) {
|
|
6
|
-
this.creatorHash[typeName] = componentType;
|
|
7
|
-
}
|
|
8
|
-
getAllTypes() {
|
|
9
|
-
var result = new Array();
|
|
10
|
-
for (var key in this.creatorHash) {
|
|
11
|
-
result.push(key);
|
|
12
|
-
}
|
|
13
|
-
return result.sort();
|
|
14
|
-
}
|
|
15
|
-
isComponentRegistered(elementType) {
|
|
16
|
-
return !!this.creatorHash[elementType];
|
|
17
|
-
}
|
|
18
|
-
create(containerRef, elementType, params) {
|
|
19
|
-
var componentType = this.creatorHash[elementType];
|
|
20
|
-
if (!componentType)
|
|
21
|
-
return null;
|
|
22
|
-
return containerRef.createComponent(componentType);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
AngularComponentFactory.Instance = new AngularComponentFactory();
|
|
1
|
+
export class AngularComponentFactory {
|
|
2
|
+
constructor() {
|
|
3
|
+
this.creatorHash = {};
|
|
4
|
+
}
|
|
5
|
+
registerComponent(typeName, componentType) {
|
|
6
|
+
this.creatorHash[typeName] = componentType;
|
|
7
|
+
}
|
|
8
|
+
getAllTypes() {
|
|
9
|
+
var result = new Array();
|
|
10
|
+
for (var key in this.creatorHash) {
|
|
11
|
+
result.push(key);
|
|
12
|
+
}
|
|
13
|
+
return result.sort();
|
|
14
|
+
}
|
|
15
|
+
isComponentRegistered(elementType) {
|
|
16
|
+
return !!this.creatorHash[elementType];
|
|
17
|
+
}
|
|
18
|
+
create(containerRef, elementType, params) {
|
|
19
|
+
var componentType = this.creatorHash[elementType];
|
|
20
|
+
if (!componentType)
|
|
21
|
+
return null;
|
|
22
|
+
return containerRef.createComponent(componentType);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
AngularComponentFactory.Instance = new AngularComponentFactory();
|
|
26
26
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50LWZhY3RvcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29tcG9uZW50LWZhY3RvcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsTUFBTSxPQUFPLHVCQUF1QjtJQUFwQztRQUVVLGdCQUFXLEdBQW1DLEVBQUUsQ0FBQztJQXVCM0QsQ0FBQztJQXJCUSxpQkFBaUIsQ0FDdEIs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xuIl19
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { Component, Input } from "@angular/core";
|
|
2
|
-
import { ActionDropdownViewModel } from "survey-core";
|
|
3
|
-
import { BaseAngular } from "../../base-angular";
|
|
4
|
-
import { AngularComponentFactory } from "../../component-factory";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "../svg-icon/svg-icon.component";
|
|
7
|
-
import * as i2 from "../popup/popup.component";
|
|
8
|
-
import * as i3 from "../../utils/ng-key2click.directive";
|
|
9
|
-
import * as i4 from "@angular/common";
|
|
10
|
-
export class ActionBarItemDropdownComponent extends BaseAngular {
|
|
11
|
-
getModel() {
|
|
12
|
-
return this.model;
|
|
13
|
-
}
|
|
14
|
-
ngOnInit() {
|
|
15
|
-
super.ngOnInit();
|
|
16
|
-
this.viewModel = new ActionDropdownViewModel(this.model);
|
|
17
|
-
}
|
|
18
|
-
ngOnDestroy() {
|
|
19
|
-
this.viewModel.dispose();
|
|
20
|
-
super.ngOnDestroy();
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
ActionBarItemDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ActionBarItemDropdownComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
24
|
-
ActionBarItemDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: ActionBarItemDropdownComponent, selector: "sv-action-bar-item-dropdown", inputs: { model: "model" }, usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <button type=\"button\" (click)=\"model.action()\" [key2click]=\"{ processEsc: false }\" [class]=\"model.getActionBarItemCss()\" [title]=\"model.tooltip || model.title\" [disabled]=\"model.disabled\" [attr.role]=\"model.ariaRole\">\n <svg *ngIf=\"model.iconName\" [iconName]=\"model.iconName\" [size]=\"model.iconSize\" [title]=\"model.tooltip || model.title\" [class]=\"model.cssClasses.itemIcon\" sv-ng-svg-icon></svg>\n <span *ngIf=\"model.hasTitle\" [class]=\"model.getActionBarItemTitleCss()\">{{ model.title }}</span>\n <sv-ng-popup [popupModel]=\"model.popupModel\"></sv-ng-popup>\n </button>\n</ng-template>", styles: [":host{display:none}\n"], components: [{ type: i1.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: i2.PopupComponent, selector: "sv-ng-popup, '[sv-ng-popup]'", inputs: ["popupModel"] }], directives: [{ type: i3.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ActionBarItemDropdownComponent, decorators: [{
|
|
26
|
-
type: Component,
|
|
27
|
-
args: [{ selector: "sv-action-bar-item-dropdown", template: "<ng-template #template>\n <button type=\"button\" (click)=\"model.action()\" [key2click]=\"{ processEsc: false }\" [class]=\"model.getActionBarItemCss()\" [title]=\"model.tooltip || model.title\" [disabled]=\"model.disabled\" [attr.role]=\"model.ariaRole\">\n <svg *ngIf=\"model.iconName\" [iconName]=\"model.iconName\" [size]=\"model.iconSize\" [title]=\"model.tooltip || model.title\" [class]=\"model.cssClasses.itemIcon\" sv-ng-svg-icon></svg>\n <span *ngIf=\"model.hasTitle\" [class]=\"model.getActionBarItemTitleCss()\">{{ model.title }}</span>\n <sv-ng-popup [popupModel]=\"model.popupModel\"></sv-ng-popup>\n </button>\n</ng-template>", styles: [":host{display:none}\n"] }]
|
|
28
|
-
}], propDecorators: { model: [{
|
|
29
|
-
type: Input
|
|
30
|
-
}] } });
|
|
31
|
-
AngularComponentFactory.Instance.registerComponent("sv-action-bar-item-dropdown", ActionBarItemDropdownComponent);
|
|
1
|
+
import { Component, Input } from "@angular/core";
|
|
2
|
+
import { ActionDropdownViewModel } from "survey-core";
|
|
3
|
+
import { BaseAngular } from "../../base-angular";
|
|
4
|
+
import { AngularComponentFactory } from "../../component-factory";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "../svg-icon/svg-icon.component";
|
|
7
|
+
import * as i2 from "../popup/popup.component";
|
|
8
|
+
import * as i3 from "../../utils/ng-key2click.directive";
|
|
9
|
+
import * as i4 from "@angular/common";
|
|
10
|
+
export class ActionBarItemDropdownComponent extends BaseAngular {
|
|
11
|
+
getModel() {
|
|
12
|
+
return this.model;
|
|
13
|
+
}
|
|
14
|
+
ngOnInit() {
|
|
15
|
+
super.ngOnInit();
|
|
16
|
+
this.viewModel = new ActionDropdownViewModel(this.model);
|
|
17
|
+
}
|
|
18
|
+
ngOnDestroy() {
|
|
19
|
+
this.viewModel.dispose();
|
|
20
|
+
super.ngOnDestroy();
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
ActionBarItemDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ActionBarItemDropdownComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
24
|
+
ActionBarItemDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: ActionBarItemDropdownComponent, selector: "sv-action-bar-item-dropdown", inputs: { model: "model" }, usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <button type=\"button\" (click)=\"model.action()\" [key2click]=\"{ processEsc: false }\" [class]=\"model.getActionBarItemCss()\" [title]=\"model.tooltip || model.title\" [disabled]=\"model.disabled\" [attr.role]=\"model.ariaRole\">\n <svg *ngIf=\"model.iconName\" [iconName]=\"model.iconName\" [size]=\"model.iconSize\" [title]=\"model.tooltip || model.title\" [class]=\"model.cssClasses.itemIcon\" sv-ng-svg-icon></svg>\n <span *ngIf=\"model.hasTitle\" [class]=\"model.getActionBarItemTitleCss()\">{{ model.title }}</span>\n <sv-ng-popup [popupModel]=\"model.popupModel\"></sv-ng-popup>\n </button>\n</ng-template>", styles: [":host{display:none}\n"], components: [{ type: i1.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: i2.PopupComponent, selector: "sv-ng-popup, '[sv-ng-popup]'", inputs: ["popupModel"] }], directives: [{ type: i3.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ActionBarItemDropdownComponent, decorators: [{
|
|
26
|
+
type: Component,
|
|
27
|
+
args: [{ selector: "sv-action-bar-item-dropdown", template: "<ng-template #template>\n <button type=\"button\" (click)=\"model.action()\" [key2click]=\"{ processEsc: false }\" [class]=\"model.getActionBarItemCss()\" [title]=\"model.tooltip || model.title\" [disabled]=\"model.disabled\" [attr.role]=\"model.ariaRole\">\n <svg *ngIf=\"model.iconName\" [iconName]=\"model.iconName\" [size]=\"model.iconSize\" [title]=\"model.tooltip || model.title\" [class]=\"model.cssClasses.itemIcon\" sv-ng-svg-icon></svg>\n <span *ngIf=\"model.hasTitle\" [class]=\"model.getActionBarItemTitleCss()\">{{ model.title }}</span>\n <sv-ng-popup [popupModel]=\"model.popupModel\"></sv-ng-popup>\n </button>\n</ng-template>", styles: [":host{display:none}\n"] }]
|
|
28
|
+
}], propDecorators: { model: [{
|
|
29
|
+
type: Input
|
|
30
|
+
}] } });
|
|
31
|
+
AngularComponentFactory.Instance.registerComponent("sv-action-bar-item-dropdown", ActionBarItemDropdownComponent);
|
|
32
32
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9uLWJhci1pdGVtLWRyb3Bkb3duLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Ny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Pjwvc3YtbmctcG9wdXA+XG4gICAgPC9idXR0b24+XG48L25nLXRlbXBsYXRlPiJdfQ==
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { Component, Input } from "@angular/core";
|
|
2
|
-
import { BaseAngular } from "../../base-angular";
|
|
3
|
-
import { AngularComponentFactory } from "../../component-factory";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "../svg-icon/svg-icon.component";
|
|
6
|
-
import * as i2 from "../../utils/ng-key2click.directive";
|
|
7
|
-
import * as i3 from "@angular/common";
|
|
8
|
-
export class ActionBarItemComponent extends BaseAngular {
|
|
9
|
-
getModel() {
|
|
10
|
-
return this.model;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
ActionBarItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ActionBarItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
14
|
-
ActionBarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: ActionBarItemComponent, selector: "sv-action-bar-item", inputs: { model: "model" }, usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <button type=\"button\" (click)=\"model.action()\" [key2click]=\"{ processEsc: false }\" [class]=\"model.getActionBarItemCss()\" [attr.title]=\"model.tooltip || model.title\" [attr.aria-checked]=\"model.ariaChecked\" [attr.aria-expanded]=\"model.ariaExpanded\" [attr.role]=\"model.ariaRole\" [disabled]=\"model.disabled\" \n data-bind=\"key2click: { processEsc: false }\">\n <svg *ngIf=\"model.iconName\" [iconName]=\"model.iconName\" [size]=\"model.iconSize\" [title]=\"model.tooltip || model.title\" [class]=\"model.cssClasses.itemIcon\" sv-ng-svg-icon></svg>\n <span *ngIf=\"model.hasTitle\" [class]=\"model.getActionBarItemTitleCss()\">{{ model.title }}</span>\n </button>\n<ng-template>", styles: [":host{display:none}\n"], components: [{ type: i1.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }], directives: [{ type: i2.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ActionBarItemComponent, decorators: [{
|
|
16
|
-
type: Component,
|
|
17
|
-
args: [{ selector: "sv-action-bar-item", template: "<ng-template #template>\n <button type=\"button\" (click)=\"model.action()\" [key2click]=\"{ processEsc: false }\" [class]=\"model.getActionBarItemCss()\" [attr.title]=\"model.tooltip || model.title\" [attr.aria-checked]=\"model.ariaChecked\" [attr.aria-expanded]=\"model.ariaExpanded\" [attr.role]=\"model.ariaRole\" [disabled]=\"model.disabled\" \n data-bind=\"key2click: { processEsc: false }\">\n <svg *ngIf=\"model.iconName\" [iconName]=\"model.iconName\" [size]=\"model.iconSize\" [title]=\"model.tooltip || model.title\" [class]=\"model.cssClasses.itemIcon\" sv-ng-svg-icon></svg>\n <span *ngIf=\"model.hasTitle\" [class]=\"model.getActionBarItemTitleCss()\">{{ model.title }}</span>\n </button>\n<ng-template>", styles: [":host{display:none}\n"] }]
|
|
18
|
-
}], propDecorators: { model: [{
|
|
19
|
-
type: Input
|
|
20
|
-
}] } });
|
|
21
|
-
AngularComponentFactory.Instance.registerComponent("sv-action-bar-item", ActionBarItemComponent);
|
|
1
|
+
import { Component, Input } from "@angular/core";
|
|
2
|
+
import { BaseAngular } from "../../base-angular";
|
|
3
|
+
import { AngularComponentFactory } from "../../component-factory";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../svg-icon/svg-icon.component";
|
|
6
|
+
import * as i2 from "../../utils/ng-key2click.directive";
|
|
7
|
+
import * as i3 from "@angular/common";
|
|
8
|
+
export class ActionBarItemComponent extends BaseAngular {
|
|
9
|
+
getModel() {
|
|
10
|
+
return this.model;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
ActionBarItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ActionBarItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
14
|
+
ActionBarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: ActionBarItemComponent, selector: "sv-action-bar-item", inputs: { model: "model" }, usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <button type=\"button\" (click)=\"model.action()\" [key2click]=\"{ processEsc: false }\" [class]=\"model.getActionBarItemCss()\" [attr.title]=\"model.tooltip || model.title\" [attr.aria-checked]=\"model.ariaChecked\" [attr.aria-expanded]=\"model.ariaExpanded\" [attr.role]=\"model.ariaRole\" [disabled]=\"model.disabled\" \n data-bind=\"key2click: { processEsc: false }\">\n <svg *ngIf=\"model.iconName\" [iconName]=\"model.iconName\" [size]=\"model.iconSize\" [title]=\"model.tooltip || model.title\" [class]=\"model.cssClasses.itemIcon\" sv-ng-svg-icon></svg>\n <span *ngIf=\"model.hasTitle\" [class]=\"model.getActionBarItemTitleCss()\">{{ model.title }}</span>\n </button>\n<ng-template>", styles: [":host{display:none}\n"], components: [{ type: i1.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }], directives: [{ type: i2.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ActionBarItemComponent, decorators: [{
|
|
16
|
+
type: Component,
|
|
17
|
+
args: [{ selector: "sv-action-bar-item", template: "<ng-template #template>\n <button type=\"button\" (click)=\"model.action()\" [key2click]=\"{ processEsc: false }\" [class]=\"model.getActionBarItemCss()\" [attr.title]=\"model.tooltip || model.title\" [attr.aria-checked]=\"model.ariaChecked\" [attr.aria-expanded]=\"model.ariaExpanded\" [attr.role]=\"model.ariaRole\" [disabled]=\"model.disabled\" \n data-bind=\"key2click: { processEsc: false }\">\n <svg *ngIf=\"model.iconName\" [iconName]=\"model.iconName\" [size]=\"model.iconSize\" [title]=\"model.tooltip || model.title\" [class]=\"model.cssClasses.itemIcon\" sv-ng-svg-icon></svg>\n <span *ngIf=\"model.hasTitle\" [class]=\"model.getActionBarItemTitleCss()\">{{ model.title }}</span>\n </button>\n<ng-template>", styles: [":host{display:none}\n"] }]
|
|
18
|
+
}], propDecorators: { model: [{
|
|
19
|
+
type: Input
|
|
20
|
+
}] } });
|
|
21
|
+
AngularComponentFactory.Instance.registerComponent("sv-action-bar-item", ActionBarItemComponent);
|
|
22
22
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9uLWJhci1pdGVtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL2FjdGlvbi1iYXIvYWN0aW9uLWJhci1pdGVtLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL2FjdGlvbi1iYXIvYWN0aW9uLWJhci1pdGVtLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2pELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUNqRCxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQzs7Ozs7QUFPbEUsTUFBTSxPQUFPLHNCQUF1QixTQUFRLFdBQVc7SUFHckQsUUFBUTtRQUNOLE9BQU8s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