survey-angular-ui 1.12.25 → 1.12.27
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/base-angular.d.ts +3 -0
- package/bundles/survey-angular-ui.umd.js +46 -16
- package/bundles/survey-angular-ui.umd.js.map +1 -1
- package/esm2015/base-angular.js +41 -13
- package/esm2015/questions/imagepicker.component.js +2 -2
- package/esm2015/row.component.js +5 -3
- package/fesm2015/survey-angular-ui.js +45 -15
- package/fesm2015/survey-angular-ui.js.map +1 -1
- package/package.json +2 -2
- package/components/cover/cover-cell.component.d.ts +0 -10
- package/components/cover/cover.component.d.ts +0 -12
- package/components/file-actions/choose-file.component.d.ts +0 -10
- package/esm2015/components/cover/cover-cell.component.js +0 -27
- package/esm2015/components/cover/cover.component.js +0 -31
- package/esm2015/components/file-actions/choose-file.component.js +0 -27
- package/esm2020/angular-ui.mjs +0 -103
- package/esm2020/angular-ui.module.mjs +0 -184
- package/esm2020/base-angular.mjs +0 -128
- package/esm2020/comment-other.component.mjs +0 -32
- package/esm2020/comment.component.mjs +0 -21
- package/esm2020/component-factory.mjs +0 -26
- package/esm2020/components/action-bar/action-bar-item-dropdown.component.mjs +0 -32
- package/esm2020/components/action-bar/action-bar-item.component.mjs +0 -22
- package/esm2020/components/action-bar/action-bar.component.mjs +0 -43
- package/esm2020/components/action-bar/action.component.mjs +0 -27
- package/esm2020/components/brand-info/brand-info.component.mjs +0 -13
- package/esm2020/components/dropdown/dropdown.component.mjs +0 -66
- package/esm2020/components/element-header/element-header.component.mjs +0 -32
- package/esm2020/components/element-title/dynamic-head.component.mjs +0 -20
- package/esm2020/components/element-title/element-title.component.mjs +0 -17
- package/esm2020/components/element-title/title-actions.component.mjs +0 -17
- package/esm2020/components/list/list-item.component.mjs +0 -48
- package/esm2020/components/list/list.component.mjs +0 -50
- package/esm2020/components/matrix-actions/detail-button/detail-button.component.mjs +0 -25
- package/esm2020/components/matrix-actions/drag-drop-icon/drag-drop-icon.mjs +0 -20
- package/esm2020/components/matrix-actions/remove-button/remove-button.component.mjs +0 -25
- package/esm2020/components/notifier/notifier.component.mjs +0 -22
- package/esm2020/components/paneldynamic-actions/paneldynamic-add-btn.component.mjs +0 -35
- package/esm2020/components/paneldynamic-actions/paneldynamic-next-btn.component.mjs +0 -18
- package/esm2020/components/paneldynamic-actions/paneldynamic-prev-btn.component.mjs +0 -18
- package/esm2020/components/paneldynamic-actions/paneldynamic-progress-text.component.mjs +0 -14
- package/esm2020/components/paneldynamic-actions/paneldynamic-remove-btn.component.mjs +0 -17
- package/esm2020/components/popup/modal-container.component.mjs +0 -42
- package/esm2020/components/popup/popup-container.component.mjs +0 -56
- package/esm2020/components/popup/popup-pointer.component.mjs +0 -22
- package/esm2020/components/popup/popup.component.mjs +0 -43
- package/esm2020/components/popup/popup.service.mjs +0 -26
- package/esm2020/components/progress/buttons/progress.component.mjs +0 -67
- package/esm2020/components/progress/default/progress.component.mjs +0 -27
- package/esm2020/components/renderAs/boolean-checkbox/boolean-checkbox.component.mjs +0 -21
- package/esm2020/components/renderAs/boolean-radio/boolean-radio-item.component.mjs +0 -22
- package/esm2020/components/renderAs/boolean-radio/boolean-radio.component.mjs +0 -18
- package/esm2020/components/renderAs/dropdown-select/dropdown-option-item.component.mjs +0 -23
- package/esm2020/components/renderAs/dropdown-select/dropdown-select.component.mjs +0 -38
- package/esm2020/components/renderAs/rating-dropdown/rating-dropdown.component.mjs +0 -18
- package/esm2020/components/skeleton/skeleton.component.mjs +0 -16
- package/esm2020/components/skeleton.component.mjs +0 -15
- package/esm2020/components/survey-actions/survey-nav-btn.component.mjs +0 -22
- package/esm2020/components/survey-header/logo-image.component.mjs +0 -20
- package/esm2020/components/survey-header/survey-header.component.mjs +0 -30
- package/esm2020/components/svg-icon/svg-icon.component.mjs +0 -68
- package/esm2020/components/tagbox/tagbox-filter.component.mjs +0 -22
- package/esm2020/components/tagbox/tagbox-item.component.mjs +0 -27
- package/esm2020/components/tagbox/tagbox.component.mjs +0 -44
- package/esm2020/components/timer-panel/timer-panel.component.mjs +0 -32
- package/esm2020/element.component.mjs +0 -55
- package/esm2020/embedded-view-content.component.mjs +0 -24
- package/esm2020/errors.component.mjs +0 -58
- package/esm2020/page.component.mjs +0 -35
- package/esm2020/panel.component.mjs +0 -38
- package/esm2020/popup.survey.component.mjs +0 -44
- package/esm2020/question.component.mjs +0 -54
- package/esm2020/question.mjs +0 -33
- package/esm2020/questions/boolean.component.mjs +0 -20
- package/esm2020/questions/button-group/button-group-item.component.mjs +0 -29
- package/esm2020/questions/button-group/button-group.component.mjs +0 -14
- package/esm2020/questions/checkbox-item.component.mjs +0 -24
- package/esm2020/questions/checkbox.component.mjs +0 -17
- package/esm2020/questions/comment.component.mjs +0 -18
- package/esm2020/questions/composite.component.mjs +0 -21
- package/esm2020/questions/custom.component.mjs +0 -27
- package/esm2020/questions/customwidget.component.mjs +0 -51
- package/esm2020/questions/dropdown.component.mjs +0 -17
- package/esm2020/questions/expression.component.mjs +0 -17
- package/esm2020/questions/file.component.mjs +0 -25
- package/esm2020/questions/html.component.mjs +0 -25
- package/esm2020/questions/image.component.mjs +0 -26
- package/esm2020/questions/imagepicker-item.component.mjs +0 -48
- package/esm2020/questions/imagepicker.component.mjs +0 -29
- package/esm2020/questions/matrix-row.component.mjs +0 -27
- package/esm2020/questions/matrix.component.mjs +0 -36
- package/esm2020/questions/matrixcell.component.mjs +0 -90
- package/esm2020/questions/matrixdropdown.component.mjs +0 -16
- package/esm2020/questions/matrixdynamic.component.mjs +0 -17
- package/esm2020/questions/matrixrequiredheader.component.mjs +0 -24
- package/esm2020/questions/matrixtable.component.mjs +0 -31
- package/esm2020/questions/multipletext.component.mjs +0 -25
- package/esm2020/questions/multipletextitem.component.mjs +0 -23
- package/esm2020/questions/paneldynamic.component.mjs +0 -79
- package/esm2020/questions/radiogroup-item.component.mjs +0 -18
- package/esm2020/questions/radiogroup.component.mjs +0 -22
- package/esm2020/questions/ranking-item.component.mjs +0 -24
- package/esm2020/questions/ranking.component.mjs +0 -31
- package/esm2020/questions/rating.component.mjs +0 -23
- package/esm2020/questions/selectbase-item.mjs +0 -33
- package/esm2020/questions/selectbase.component.mjs +0 -50
- package/esm2020/questions/signature.component.mjs +0 -17
- package/esm2020/questions/tagbox.component.mjs +0 -17
- package/esm2020/questions/text.component.mjs +0 -16
- package/esm2020/row.component.mjs +0 -58
- package/esm2020/string-editor.component.mjs +0 -26
- package/esm2020/string-viewer.component.mjs +0 -37
- package/esm2020/survey-angular-ui.mjs +0 -5
- package/esm2020/survey-content.component.mjs +0 -69
- package/esm2020/survey-string.component.mjs +0 -17
- package/esm2020/survey.component.mjs +0 -32
- package/esm2020/template-renderer.component.mjs +0 -23
- package/esm2020/utils/dynamic.directive.mjs +0 -52
- package/esm2020/utils/ng-key2click.directive.mjs +0 -69
- package/esm2020/utils/ng-show.directive.mjs +0 -27
- package/esm2020/utils/safe-html.pipe.mjs +0 -18
- package/esm2020/utils/safe-url.pipe.mjs +0 -33
- package/fesm2015/survey-angular-ui.mjs +0 -2864
- package/fesm2015/survey-angular-ui.mjs.map +0 -1
- package/fesm2020/survey-angular-ui.mjs +0 -2839
- package/fesm2020/survey-angular-ui.mjs.map +0 -1
package/base-angular.d.ts
CHANGED
|
@@ -15,6 +15,9 @@ export declare abstract class BaseAngular<T extends Base = Base> extends Embedde
|
|
|
15
15
|
private getIsRendering;
|
|
16
16
|
private isDestroyed;
|
|
17
17
|
ngOnDestroy(): void;
|
|
18
|
+
private makeBaseElementAngularCallback?;
|
|
19
|
+
protected isBaseElementSubsribed(stateElement: Base): boolean;
|
|
20
|
+
private getBaseElementCallbacks;
|
|
18
21
|
private makeBaseElementAngular;
|
|
19
22
|
private unMakeBaseElementAngular;
|
|
20
23
|
protected update(key?: string): void;
|
|
@@ -601,10 +601,18 @@
|
|
|
601
601
|
this.unMakeBaseElementAngular(this.getModel());
|
|
602
602
|
this.previousModel = undefined;
|
|
603
603
|
};
|
|
604
|
+
BaseAngular.prototype.isBaseElementSubsribed = function (stateElement) {
|
|
605
|
+
return !!stateElement.__ngImplemented;
|
|
606
|
+
};
|
|
607
|
+
BaseAngular.prototype.getBaseElementCallbacks = function (stateElement) {
|
|
608
|
+
var _a;
|
|
609
|
+
stateElement.__ngSubscribers = (_a = stateElement.__ngSubscribers) !== null && _a !== void 0 ? _a : [];
|
|
610
|
+
return (stateElement.__ngSubscribers);
|
|
611
|
+
};
|
|
604
612
|
BaseAngular.prototype.makeBaseElementAngular = function (stateElement) {
|
|
605
613
|
var _this = this;
|
|
606
|
-
|
|
607
|
-
|
|
614
|
+
this.makeBaseElementAngularCallback = function () {
|
|
615
|
+
_this.isModelSubsribed = true;
|
|
608
616
|
stateElement.__ngImplemented = true;
|
|
609
617
|
stateElement.iteratePropertiesHash(function (hash, key) {
|
|
610
618
|
var val = hash[key];
|
|
@@ -622,21 +630,41 @@
|
|
|
622
630
|
}
|
|
623
631
|
};
|
|
624
632
|
stateElement.enableOnElementRerenderedEvent();
|
|
633
|
+
};
|
|
634
|
+
if (!!stateElement) {
|
|
635
|
+
if (!stateElement.__ngImplemented) {
|
|
636
|
+
this.makeBaseElementAngularCallback();
|
|
637
|
+
}
|
|
638
|
+
else {
|
|
639
|
+
this.getBaseElementCallbacks(stateElement).push(this.makeBaseElementAngularCallback);
|
|
640
|
+
}
|
|
625
641
|
}
|
|
626
642
|
};
|
|
627
643
|
BaseAngular.prototype.unMakeBaseElementAngular = function (stateElement) {
|
|
628
|
-
if (!!stateElement
|
|
629
|
-
this.isModelSubsribed
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
644
|
+
if (!!stateElement) {
|
|
645
|
+
if (this.isModelSubsribed) {
|
|
646
|
+
this.isModelSubsribed = false;
|
|
647
|
+
stateElement.__ngImplemented = false;
|
|
648
|
+
stateElement.setPropertyValueCoreHandler = undefined;
|
|
649
|
+
stateElement.iteratePropertiesHash(function (hash, key) {
|
|
650
|
+
var val = hash[key];
|
|
651
|
+
if (Array.isArray(val)) {
|
|
652
|
+
var val = val;
|
|
653
|
+
val["onArrayChanged"] = function () { };
|
|
654
|
+
}
|
|
655
|
+
});
|
|
656
|
+
stateElement.disableOnElementRerenderedEvent();
|
|
657
|
+
var callbacks = this.getBaseElementCallbacks(stateElement);
|
|
658
|
+
var callback = callbacks.shift();
|
|
659
|
+
callback && callback();
|
|
660
|
+
}
|
|
661
|
+
else if (this.makeBaseElementAngularCallback) {
|
|
662
|
+
var callbacks = this.getBaseElementCallbacks(stateElement);
|
|
663
|
+
var index = callbacks.indexOf(this.makeBaseElementAngularCallback);
|
|
664
|
+
if (index > -1) {
|
|
665
|
+
callbacks.splice(index, 1);
|
|
637
666
|
}
|
|
638
|
-
}
|
|
639
|
-
stateElement.disableOnElementRerenderedEvent();
|
|
667
|
+
}
|
|
640
668
|
}
|
|
641
669
|
};
|
|
642
670
|
BaseAngular.prototype.update = function (key) {
|
|
@@ -1464,8 +1492,10 @@
|
|
|
1464
1492
|
};
|
|
1465
1493
|
RowComponent.prototype.ngOnDestroy = function () {
|
|
1466
1494
|
_super.prototype.ngOnDestroy.call(this);
|
|
1467
|
-
this.row
|
|
1468
|
-
|
|
1495
|
+
if (!this.isBaseElementSubsribed(this.row)) {
|
|
1496
|
+
this.row.setRootElement(undefined);
|
|
1497
|
+
this.stopLazyRendering();
|
|
1498
|
+
}
|
|
1469
1499
|
};
|
|
1470
1500
|
return RowComponent;
|
|
1471
1501
|
}(BaseAngular));
|
|
@@ -2832,7 +2862,7 @@
|
|
|
2832
2862
|
return ImagePickerQuestionComponent;
|
|
2833
2863
|
}(QuestionAngular));
|
|
2834
2864
|
ImagePickerQuestionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ImagePickerQuestionComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2835
|
-
ImagePickerQuestionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ImagePickerQuestionComponent, selector: "sv-ng-imagepicker-question", usesInheritance: true, ngImport: i0__namespace, template: "
|
|
2865
|
+
ImagePickerQuestionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ImagePickerQuestionComponent, selector: "sv-ng-imagepicker-question", usesInheritance: true, ngImport: i0__namespace, template: "<fieldset [class]=\"model.getSelectBaseRootCss()\" [style]=\"model.getContainerStyle()\" #contentElement>\n <legend class=\"sv-hidden\">{{model.locTitle.renderedHtml}}</legend>\n <ng-container *ngIf=\"!model.hasColumns\">\n <ng-container *ngFor=\"let item of model.visibleChoices\">\n <ng-template\n [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"model.hasColumns\">\n <div *ngFor=\"let column of model.columns\" [class]=\"model.getColumnClass()\" role=\"presentation\">\n <ng-container *ngFor=\"let item of column\">\n <ng-template\n [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </div>\n </ng-container>\n</fieldset>", directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
2836
2866
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ImagePickerQuestionComponent, decorators: [{
|
|
2837
2867
|
type: i0.Component,
|
|
2838
2868
|
args: [{
|