survey-angular-ui 3.2.5 → 3.2.7
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/angular-ui.d.ts +7 -0
- package/angular-ui.module.d.ts +96 -87
- package/bundles/survey-angular-ui.umd.js +623 -165
- package/bundles/survey-angular-ui.umd.js.map +1 -1
- package/components/filter/filter-chip.component.d.ts +12 -0
- package/components/filter/filter-chips.component.d.ts +13 -0
- package/components/filter/filter-editor-page.component.d.ts +19 -0
- package/components/filter/filter-field-popup.component.d.ts +10 -0
- package/components/filter/filter-holder.component.d.ts +18 -0
- package/components/filter/filter-list-item.component.d.ts +12 -0
- package/components/filter/filter-modal.component.d.ts +10 -0
- package/components/filter/filter-preset-dialog.component.d.ts +10 -0
- package/components/filter/filter-question.component.d.ts +9 -0
- package/components/filter/filter-save-as-popup.component.d.ts +9 -0
- package/components-container.component.d.ts +3 -2
- package/esm2015/angular-ui.js +8 -1
- package/esm2015/angular-ui.module.js +18 -1
- package/esm2015/components/action-bar/action-bar-item-dropdown.component.js +2 -2
- package/esm2015/components/action-bar/action-bar-item.component.js +2 -2
- package/esm2015/components/filter/filter-chip.component.js +46 -0
- package/esm2015/components/filter/filter-chips.component.js +45 -0
- package/esm2015/components/filter/filter-editor-page.component.js +61 -0
- package/esm2015/components/filter/filter-field-popup.component.js +38 -0
- package/esm2015/components/filter/filter-holder.component.js +60 -0
- package/esm2015/components/filter/filter-list-item.component.js +38 -0
- package/esm2015/components/filter/filter-modal.component.js +39 -0
- package/esm2015/components/filter/filter-preset-dialog.component.js +36 -0
- package/esm2015/components/filter/filter-question.component.js +34 -0
- package/esm2015/components/filter/filter-save-as-popup.component.js +32 -0
- package/esm2015/components/matrixdynamicplaceholder/matrixdynamicplaceholder.component.js +2 -2
- package/esm2015/components/paneldynamicplaceholder/paneldynamicplaceholder.component.js +2 -2
- package/esm2015/components/timer-panel/timer-panel.component.js +2 -2
- package/esm2015/components-container.component.js +8 -4
- package/fesm2015/survey-angular-ui.js +501 -131
- package/fesm2015/survey-angular-ui.js.map +1 -1
- package/package.json +2 -2
|
@@ -3418,9 +3418,9 @@
|
|
|
3418
3418
|
function ComponentsContainerComponent() {
|
|
3419
3419
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
3420
3420
|
}
|
|
3421
|
-
Object.defineProperty(ComponentsContainerComponent.prototype, "
|
|
3421
|
+
Object.defineProperty(ComponentsContainerComponent.prototype, "groups", {
|
|
3422
3422
|
get: function () {
|
|
3423
|
-
return this.survey.
|
|
3423
|
+
return this.survey.getContainerContentGroups(this.container);
|
|
3424
3424
|
},
|
|
3425
3425
|
enumerable: false,
|
|
3426
3426
|
configurable: true
|
|
@@ -3432,10 +3432,14 @@
|
|
|
3432
3432
|
enumerable: false,
|
|
3433
3433
|
configurable: true
|
|
3434
3434
|
});
|
|
3435
|
+
// groups builds new objects on every check; tracking by key keeps the rendered components.
|
|
3436
|
+
ComponentsContainerComponent.prototype.trackGroupByKey = function (_, group) {
|
|
3437
|
+
return group.key;
|
|
3438
|
+
};
|
|
3435
3439
|
return ComponentsContainerComponent;
|
|
3436
3440
|
}(EmbeddedViewContentComponent));
|
|
3437
3441
|
ComponentsContainerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ComponentsContainerComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3438
|
-
ComponentsContainerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ComponentsContainerComponent, selector: "sv-components-container, [sv-components-container], sv-ng-components-container", inputs: { survey: "survey", container: "container", needRenderWrapper: "needRenderWrapper" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <ng-container *ngIf=\"
|
|
3442
|
+
ComponentsContainerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ComponentsContainerComponent, selector: "sv-components-container, [sv-components-container], sv-ng-components-container", inputs: { survey: "survey", container: "container", needRenderWrapper: "needRenderWrapper" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <ng-container *ngIf=\"groups.length > 0\">\n <div *ngIf=\"isNeedRenderWrapper\" [class]=\"'sv-components-column' + ' sv-components-container-' + container\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n <ng-container *ngIf=\"!isNeedRenderWrapper\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </ng-container>\n </ng-container>\n</ng-template>\n<ng-template #content>\n <ng-container *ngFor=\"let group of groups; trackBy: trackGroupByKey\">\n <div *ngIf=\"group.css\" [class]=\"group.css\">\n <ng-container *ngFor=\"let component of group.elements\">\n <ng-template [component]=\"{ name: component.component, data: { survey: survey, container: container, model: component.data } }\"></ng-template>\n </ng-container>\n </div>\n <ng-template *ngIf=\"!group.css\" [component]=\"{ name: group.elements[0].component, data: { survey: survey, container: container, model: group.elements[0].data } }\"></ng-template>\n </ng-container>\n</ng-template>\n", styles: [":host{display:none}\n"], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
3439
3443
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ComponentsContainerComponent, decorators: [{
|
|
3440
3444
|
type: i0.Component,
|
|
3441
3445
|
args: [{
|
|
@@ -3497,7 +3501,7 @@
|
|
|
3497
3501
|
return ActionBarItemComponent;
|
|
3498
3502
|
}(BaseAngular));
|
|
3499
3503
|
ActionBarItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ActionBarItemComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3500
|
-
ActionBarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ActionBarItemComponent, selector: "sv-action-bar-item", inputs: { model: "model" }, viewQueries: [{ propertyName: "containerRef", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <button *ngIf=\"model\" type=\"button\" (click)=\"model.doAction($event)\" (mousedown)=\"model.doMouseDown($event)\" (focus)=\"model.doFocus($event)\" [key2click]=\"{ processEsc: false, disableTabStop: model.disableTabStop }\" [class]=\"model.getActionBarItemCss()\" [attr.title]=\"model.getTooltip()\" [attr.data-sv-tooltip]=\"model.getTooltip()\" [attr.aria-checked]=\"model.ariaChecked\" [attr.aria-expanded]=\"model.ariaExpanded\" [attr.aria-labelledby]=\"model.ariaLabelledBy\" [attr.aria-label]=\"model.ariaLabel\" [attr.aria-controls]=\"model.ariaControls\" [attr.role]=\"model.ariaRole\" [disabled]=\"model.disabled\" #container>\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 <sv-ng-string-viewer style=\"display:contents\" *ngIf=\"model.hasTitle\" [model]=\"model.locTitle\" [textClass]=\"model.getActionBarItemTitleCss()\"></sv-ng-string-viewer>\n </button>\n<ng-template>", styles: [":host{display:none}\n"], components: [{ type: SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: StringViewerComponent, selector: "sv-ng-string-viewer, string-viewer, '[sv-ng-string-viewer]'", inputs: ["model", "textClass"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }] });
|
|
3504
|
+
ActionBarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ActionBarItemComponent, selector: "sv-action-bar-item", inputs: { model: "model" }, viewQueries: [{ propertyName: "containerRef", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <button *ngIf=\"model\" type=\"button\" (click)=\"model.doAction($event)\" (mousedown)=\"model.doMouseDown($event)\" (focus)=\"model.doFocus($event)\" [key2click]=\"{ processEsc: false, disableTabStop: model.disableTabStop }\" [class]=\"model.getActionBarItemCss()\" [attr.title]=\"model.getTooltip()\" [attr.data-sv-tooltip]=\"model.getTooltip()\" [attr.aria-checked]=\"model.ariaChecked\" [attr.aria-expanded]=\"model.ariaExpanded\" [attr.aria-labelledby]=\"model.ariaLabelledBy\" [attr.aria-describedby]=\"model.ariaDescribedBy\" [attr.aria-label]=\"model.ariaLabel\" [attr.aria-controls]=\"model.ariaControls\" [attr.role]=\"model.ariaRole\" [disabled]=\"model.disabled\" #container>\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 <sv-ng-string-viewer style=\"display:contents\" *ngIf=\"model.hasTitle\" [model]=\"model.locTitle\" [textClass]=\"model.getActionBarItemTitleCss()\"></sv-ng-string-viewer>\n <svg *ngIf=\"model.markerIconName\" [iconName]=\"model.markerIconName\" [size]=\"'auto'\" [partCss]=\"model.cssClasses.itemMarkerIcon\" sv-ng-svg-icon></svg>\n </button>\n<ng-template>", styles: [":host{display:none}\n"], components: [{ type: SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: StringViewerComponent, selector: "sv-ng-string-viewer, string-viewer, '[sv-ng-string-viewer]'", inputs: ["model", "textClass"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }] });
|
|
3501
3505
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ActionBarItemComponent, decorators: [{
|
|
3502
3506
|
type: i0.Component,
|
|
3503
3507
|
args: [{
|
|
@@ -3513,6 +3517,602 @@
|
|
|
3513
3517
|
}] } });
|
|
3514
3518
|
AngularComponentFactory.Instance.registerComponent("sv-action-bar-item", ActionBarItemComponent);
|
|
3515
3519
|
|
|
3520
|
+
// The chips row of the Filter Control. Its model is the layout that cuts the row to one row, so a
|
|
3521
|
+
// change of it (Show More, the measured fit) redraws the row. The layout measures the row again
|
|
3522
|
+
// itself whenever it changes: the component only attaches it and detaches it.
|
|
3523
|
+
var FilterChipsComponent = /** @class */ (function (_super) {
|
|
3524
|
+
__extends(FilterChipsComponent, _super);
|
|
3525
|
+
function FilterChipsComponent() {
|
|
3526
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3527
|
+
}
|
|
3528
|
+
// A disposed question has released its layout, and asking for it would build a new one.
|
|
3529
|
+
FilterChipsComponent.prototype.getModel = function () {
|
|
3530
|
+
return !!this.question && !this.question.isDisposed ? this.question.chipsLayout : undefined;
|
|
3531
|
+
};
|
|
3532
|
+
// #chips is in an embedded view created late, so this is tried on every check until the ref exists;
|
|
3533
|
+
// attach() returns at once for the element it already has.
|
|
3534
|
+
FilterChipsComponent.prototype.ngAfterViewChecked = function () {
|
|
3535
|
+
_super.prototype.ngAfterViewChecked.call(this);
|
|
3536
|
+
var layout = this.getModel();
|
|
3537
|
+
if (!!layout && !!this.chipsRef) {
|
|
3538
|
+
layout.attach(this.chipsRef.nativeElement);
|
|
3539
|
+
}
|
|
3540
|
+
};
|
|
3541
|
+
FilterChipsComponent.prototype.ngOnDestroy = function () {
|
|
3542
|
+
var layout = this.getModel();
|
|
3543
|
+
if (!!layout) {
|
|
3544
|
+
layout.detach();
|
|
3545
|
+
}
|
|
3546
|
+
_super.prototype.ngOnDestroy.call(this);
|
|
3547
|
+
};
|
|
3548
|
+
return FilterChipsComponent;
|
|
3549
|
+
}(BaseAngular));
|
|
3550
|
+
FilterChipsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FilterChipsComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3551
|
+
FilterChipsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FilterChipsComponent, selector: "sv-ng-filter-chips", inputs: { question: "question" }, viewQueries: [{ propertyName: "chipsRef", first: true, predicate: ["chips"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div [class]=\"question.chipsCss\" #chips>\n <sv-ng-action-bar [model]=\"question.chipsToolbar\"></sv-ng-action-bar>\n </div>\n</ng-template>\n", styles: [":host{display:none}\n"], components: [{ type: ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }] });
|
|
3552
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FilterChipsComponent, decorators: [{
|
|
3553
|
+
type: i0.Component,
|
|
3554
|
+
args: [{
|
|
3555
|
+
selector: "sv-ng-filter-chips",
|
|
3556
|
+
templateUrl: "./filter-chips.component.html",
|
|
3557
|
+
styleUrls: ["../../hide-host.scss"]
|
|
3558
|
+
}]
|
|
3559
|
+
}], propDecorators: { question: [{
|
|
3560
|
+
type: i0.Input
|
|
3561
|
+
}], chipsRef: [{
|
|
3562
|
+
type: i0.ViewChild,
|
|
3563
|
+
args: ["chips"]
|
|
3564
|
+
}] } });
|
|
3565
|
+
|
|
3566
|
+
// The Filter Control (#11890), as packages/survey-react-ui/src/components/filter/filter.tsx draws it.
|
|
3567
|
+
// The chips row is its own component: it watches the layout that cuts the row to one row. The chips'
|
|
3568
|
+
// popups are drawn outside the chips row: on a phone the row scrolls sideways, and iOS Safari keeps a
|
|
3569
|
+
// fixed popup inside such a row.
|
|
3570
|
+
var FilterQuestionComponent = /** @class */ (function (_super) {
|
|
3571
|
+
__extends(FilterQuestionComponent, _super);
|
|
3572
|
+
function FilterQuestionComponent() {
|
|
3573
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
3574
|
+
_this.trackChipBy = function (_, chip) { return chip.id; };
|
|
3575
|
+
return _this;
|
|
3576
|
+
}
|
|
3577
|
+
FilterQuestionComponent.prototype.onSearchInput = function (event) {
|
|
3578
|
+
this.model.searchString = event.target.value;
|
|
3579
|
+
};
|
|
3580
|
+
return FilterQuestionComponent;
|
|
3581
|
+
}(QuestionAngular));
|
|
3582
|
+
FilterQuestionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FilterQuestionComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3583
|
+
FilterQuestionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FilterQuestionComponent, selector: "sv-ng-filter-question", usesInheritance: true, ngImport: i0__namespace, template: "<div [class]=\"model.getQuestionRootCss()\" #contentElement>\n <div *ngIf=\"model.showSearch\" [class]=\"model.cssClasses.searchRow\">\n <div [class]=\"model.searchRootCss\">\n <svg [iconName]=\"'icon-search-24x24'\" [size]=\"'auto'\" [partCss]=\"model.cssClasses.searchIcon\" sv-ng-svg-icon></svg>\n <input type=\"text\" [class]=\"model.searchCss.control\" [value]=\"model.searchString\" [attr.placeholder]=\"model.searchPlaceholder\"\n [attr.aria-label]=\"model.searchLabel\" [disabled]=\"model.isSearchDisabled\" (input)=\"onSearchInput($event)\" />\n <sv-action-bar-item *ngIf=\"model.showSearchClear\" [model]=\"model.searchClearAction\"></sv-action-bar-item>\n </div>\n <sv-ng-action-bar [model]=\"model.searchToolbar\"></sv-ng-action-bar>\n </div>\n <div [class]=\"model.cssClasses.chipsRow\">\n <sv-ng-filter-chips [question]=\"model\"></sv-ng-filter-chips>\n <sv-ng-action-bar [model]=\"model.clearToolbar\"></sv-ng-action-bar>\n </div>\n <div [class]=\"model.cssClasses.popups\">\n <sv-ng-popup *ngFor=\"let chip of model.popupChips; trackBy: trackChipBy\" [popupModel]=\"chip.popupModel\"></sv-ng-popup>\n </div>\n</div>\n", components: [{ type: SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: ActionBarItemComponent, selector: "sv-action-bar-item", inputs: ["model"] }, { type: ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }, { type: FilterChipsComponent, selector: "sv-ng-filter-chips", inputs: ["question"] }, { type: PopupComponent, selector: "sv-ng-popup, '[sv-ng-popup]'", inputs: ["popupModel"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
3584
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FilterQuestionComponent, decorators: [{
|
|
3585
|
+
type: i0.Component,
|
|
3586
|
+
args: [{
|
|
3587
|
+
selector: "sv-ng-filter-question",
|
|
3588
|
+
templateUrl: "./filter-question.component.html"
|
|
3589
|
+
}]
|
|
3590
|
+
}] });
|
|
3591
|
+
AngularComponentFactory.Instance.registerComponent("filter-question", FilterQuestionComponent);
|
|
3592
|
+
|
|
3593
|
+
// A chip of the Filter Control (FilterChip): the standard action button (sv-action-bar-item; its
|
|
3594
|
+
// trailing chevron is the item's markerIconName) and, while the chip can be cleared, its cross - a
|
|
3595
|
+
// button of its own, which the theme draws over the chip's end. Its popup is drawn by the control,
|
|
3596
|
+
// outside the chips row (see QuestionFilterModel.popupChips); the chip only shows that the popup is
|
|
3597
|
+
// open. Not an ActionBarItemComponent: the inner item sets the item's input element - the
|
|
3598
|
+
// button the popup stands against - and that class's ngAfterViewInit here, with no button of its own,
|
|
3599
|
+
// would set it to undefined after.
|
|
3600
|
+
var FilterChipComponent = /** @class */ (function (_super) {
|
|
3601
|
+
__extends(FilterChipComponent, _super);
|
|
3602
|
+
function FilterChipComponent() {
|
|
3603
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3604
|
+
}
|
|
3605
|
+
FilterChipComponent.prototype.getModel = function () {
|
|
3606
|
+
return this.model;
|
|
3607
|
+
};
|
|
3608
|
+
FilterChipComponent.prototype.ngOnInit = function () {
|
|
3609
|
+
_super.prototype.ngOnInit.call(this);
|
|
3610
|
+
if (!!this.model && !!this.model.popupModel) {
|
|
3611
|
+
this.viewModel = new Survey.ActionDropdownViewModel(this.model);
|
|
3612
|
+
}
|
|
3613
|
+
};
|
|
3614
|
+
FilterChipComponent.prototype.ngOnDestroy = function () {
|
|
3615
|
+
if (!!this.viewModel) {
|
|
3616
|
+
this.viewModel.dispose();
|
|
3617
|
+
this.viewModel = undefined;
|
|
3618
|
+
}
|
|
3619
|
+
_super.prototype.ngOnDestroy.call(this);
|
|
3620
|
+
};
|
|
3621
|
+
return FilterChipComponent;
|
|
3622
|
+
}(BaseAngular));
|
|
3623
|
+
FilterChipComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FilterChipComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3624
|
+
FilterChipComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FilterChipComponent, selector: "sv-ng-filter-chip", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div *ngIf=\"model\" [class]=\"model.boxCss\">\n <sv-action-bar-item [model]=\"model\"></sv-action-bar-item>\n <sv-action-bar-item *ngIf=\"model.isClearable\" [model]=\"model.clearAction\"></sv-action-bar-item>\n </div>\n</ng-template>\n", styles: [":host{display:none}\n"], components: [{ type: ActionBarItemComponent, selector: "sv-action-bar-item", inputs: ["model"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3625
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FilterChipComponent, decorators: [{
|
|
3626
|
+
type: i0.Component,
|
|
3627
|
+
args: [{
|
|
3628
|
+
selector: "sv-ng-filter-chip",
|
|
3629
|
+
templateUrl: "./filter-chip.component.html",
|
|
3630
|
+
styleUrls: ["../../hide-host.scss"]
|
|
3631
|
+
}]
|
|
3632
|
+
}], propDecorators: { model: [{
|
|
3633
|
+
type: i0.Input
|
|
3634
|
+
}] } });
|
|
3635
|
+
AngularComponentFactory.Instance.registerComponent(Survey.filterChipComponentName, FilterChipComponent);
|
|
3636
|
+
|
|
3637
|
+
// An entry of a checkbox list of the Filter Control: drawn checked by the entry's active flag
|
|
3638
|
+
// (FilterFieldPopup keeps it). A value the respondent typed has no remove button: a button inside
|
|
3639
|
+
// a list option is nested interactive content, and unchecking the value is how it goes. The "Add"
|
|
3640
|
+
// entry is its text alone.
|
|
3641
|
+
var FilterListItemComponent = /** @class */ (function (_super) {
|
|
3642
|
+
__extends(FilterListItemComponent, _super);
|
|
3643
|
+
function FilterListItemComponent() {
|
|
3644
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3645
|
+
}
|
|
3646
|
+
FilterListItemComponent.prototype.getModel = function () {
|
|
3647
|
+
return this.model;
|
|
3648
|
+
};
|
|
3649
|
+
Object.defineProperty(FilterListItemComponent.prototype, "popup", {
|
|
3650
|
+
get: function () {
|
|
3651
|
+
return !!this.model && !!this.model.data ? this.model.data.popup : undefined;
|
|
3652
|
+
},
|
|
3653
|
+
enumerable: false,
|
|
3654
|
+
configurable: true
|
|
3655
|
+
});
|
|
3656
|
+
Object.defineProperty(FilterListItemComponent.prototype, "css", {
|
|
3657
|
+
get: function () {
|
|
3658
|
+
return this.popup.cssClasses;
|
|
3659
|
+
},
|
|
3660
|
+
enumerable: false,
|
|
3661
|
+
configurable: true
|
|
3662
|
+
});
|
|
3663
|
+
return FilterListItemComponent;
|
|
3664
|
+
}(BaseAngular));
|
|
3665
|
+
FilterListItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FilterListItemComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3666
|
+
FilterListItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FilterListItemComponent, selector: "sv-ng-filter-list-item", inputs: { model: "model", listModel: "listModel" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div *ngIf=\"!!popup && model.data.isAdd\" [class]=\"css.listItem\">\n <span [class]=\"css.listItemText\">{{ model.title }}</span>\n </div>\n <div *ngIf=\"!!popup && !model.data.isAdd\" [class]=\"css.listItem\">\n <span [class]=\"popup.getItemCheckCss(model)\" aria-hidden=\"true\">\n <span [class]=\"css.listItemCheckDecorator\">\n <svg [iconName]=\"'icon-check-16x16'\" [size]=\"'auto'\" [css]=\"css.listItemCheckIcon\" sv-ng-svg-icon></svg>\n </span>\n </span>\n <span [class]=\"css.listItemText\">{{ model.title }}</span>\n </div>\n</ng-template>\n", styles: [":host{display:none}\n"], components: [{ type: SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3667
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FilterListItemComponent, decorators: [{
|
|
3668
|
+
type: i0.Component,
|
|
3669
|
+
args: [{
|
|
3670
|
+
selector: "sv-ng-filter-list-item",
|
|
3671
|
+
templateUrl: "./filter-list-item.component.html",
|
|
3672
|
+
styleUrls: ["../../hide-host.scss"]
|
|
3673
|
+
}]
|
|
3674
|
+
}], propDecorators: { model: [{
|
|
3675
|
+
type: i0.Input
|
|
3676
|
+
}], listModel: [{
|
|
3677
|
+
type: i0.Input
|
|
3678
|
+
}] } });
|
|
3679
|
+
AngularComponentFactory.Instance.registerComponent(Survey.filterListItemComponentName, FilterListItemComponent);
|
|
3680
|
+
|
|
3681
|
+
// The content of a popup or a dialog of the Filter Control. Its model is the holder: an emptied
|
|
3682
|
+
// holder unmounts the content before survey-core disposes what it held. What the content shows
|
|
3683
|
+
// besides - the dialog itself and its toolbars - is watched too: BaseAngular watches one model.
|
|
3684
|
+
var FilterHolderComponent = /** @class */ (function (_super) {
|
|
3685
|
+
__extends(FilterHolderComponent, _super);
|
|
3686
|
+
function FilterHolderComponent() {
|
|
3687
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
3688
|
+
_this.watchedModels = [];
|
|
3689
|
+
_this.onWatchedModelChanged = function () {
|
|
3690
|
+
_this.update();
|
|
3691
|
+
};
|
|
3692
|
+
return _this;
|
|
3693
|
+
}
|
|
3694
|
+
FilterHolderComponent.prototype.getModel = function () {
|
|
3695
|
+
return this.holder;
|
|
3696
|
+
};
|
|
3697
|
+
// A slot is drawn anew at once, not in the next microtask: survey-core disposes what an emptied
|
|
3698
|
+
// slot held right after emptying it, and content drawn after that would read a disposed survey.
|
|
3699
|
+
FilterHolderComponent.prototype.getPropertiesToUpdateSync = function () {
|
|
3700
|
+
return ["modal", "fieldPopup", "saveAsPopup", "presetDialog"];
|
|
3701
|
+
};
|
|
3702
|
+
FilterHolderComponent.prototype.updateWatchedModels = function () {
|
|
3703
|
+
var _this = this;
|
|
3704
|
+
var models = this.getWatchedModels().filter(function (model) { return !!model && !model.isDisposed; });
|
|
3705
|
+
this.watchedModels.filter(function (model) { return models.indexOf(model) < 0; }).forEach(function (model) { return _this.unwatch(model); });
|
|
3706
|
+
models.filter(function (model) { return _this.watchedModels.indexOf(model) < 0; }).forEach(function (model) {
|
|
3707
|
+
model.addOnPropertyValueChangedCallback(_this.onWatchedModelChanged);
|
|
3708
|
+
model.addOnArrayChangedCallback(_this.onWatchedModelChanged);
|
|
3709
|
+
});
|
|
3710
|
+
this.watchedModels = models;
|
|
3711
|
+
};
|
|
3712
|
+
FilterHolderComponent.prototype.unwatch = function (model) {
|
|
3713
|
+
model.removeOnPropertyValueChangedCallback(this.onWatchedModelChanged);
|
|
3714
|
+
model.removeOnArrayChangedCallback(this.onWatchedModelChanged);
|
|
3715
|
+
};
|
|
3716
|
+
FilterHolderComponent.prototype.ngDoCheck = function () {
|
|
3717
|
+
_super.prototype.ngDoCheck.call(this);
|
|
3718
|
+
this.updateWatchedModels();
|
|
3719
|
+
};
|
|
3720
|
+
FilterHolderComponent.prototype.afterUpdate = function (isSync) {
|
|
3721
|
+
if (isSync === void 0) { isSync = false; }
|
|
3722
|
+
_super.prototype.afterUpdate.call(this, isSync);
|
|
3723
|
+
this.updateWatchedModels();
|
|
3724
|
+
};
|
|
3725
|
+
FilterHolderComponent.prototype.ngOnDestroy = function () {
|
|
3726
|
+
var _this = this;
|
|
3727
|
+
this.watchedModels.forEach(function (model) { return _this.unwatch(model); });
|
|
3728
|
+
this.watchedModels = [];
|
|
3729
|
+
_super.prototype.ngOnDestroy.call(this);
|
|
3730
|
+
};
|
|
3731
|
+
return FilterHolderComponent;
|
|
3732
|
+
}(BaseAngular));
|
|
3733
|
+
FilterHolderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FilterHolderComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3734
|
+
FilterHolderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FilterHolderComponent, selector: "ng-component", inputs: { holder: "holder" }, usesInheritance: true, ngImport: i0__namespace, template: "", isInline: true });
|
|
3735
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FilterHolderComponent, decorators: [{
|
|
3736
|
+
type: i0.Component,
|
|
3737
|
+
args: [{
|
|
3738
|
+
template: ""
|
|
3739
|
+
}]
|
|
3740
|
+
}], propDecorators: { holder: [{
|
|
3741
|
+
type: i0.Input
|
|
3742
|
+
}] } });
|
|
3743
|
+
|
|
3744
|
+
var ListItemComponent = /** @class */ (function (_super) {
|
|
3745
|
+
__extends(ListItemComponent, _super);
|
|
3746
|
+
function ListItemComponent() {
|
|
3747
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3748
|
+
}
|
|
3749
|
+
Object.defineProperty(ListItemComponent.prototype, "elementId", {
|
|
3750
|
+
get: function () {
|
|
3751
|
+
var _a;
|
|
3752
|
+
return (_a = this.model) === null || _a === void 0 ? void 0 : _a.elementId;
|
|
3753
|
+
},
|
|
3754
|
+
enumerable: false,
|
|
3755
|
+
configurable: true
|
|
3756
|
+
});
|
|
3757
|
+
Object.defineProperty(ListItemComponent.prototype, "ariaSelected", {
|
|
3758
|
+
get: function () {
|
|
3759
|
+
return this.listModel.getA11yItemAriaSelected(this.model);
|
|
3760
|
+
},
|
|
3761
|
+
enumerable: false,
|
|
3762
|
+
configurable: true
|
|
3763
|
+
});
|
|
3764
|
+
Object.defineProperty(ListItemComponent.prototype, "ariaChecked", {
|
|
3765
|
+
get: function () {
|
|
3766
|
+
return this.listModel.getA11yItemAriaChecked(this.model);
|
|
3767
|
+
},
|
|
3768
|
+
enumerable: false,
|
|
3769
|
+
configurable: true
|
|
3770
|
+
});
|
|
3771
|
+
Object.defineProperty(ListItemComponent.prototype, "class", {
|
|
3772
|
+
get: function () {
|
|
3773
|
+
return this.listModel.getItemClass(this.model);
|
|
3774
|
+
},
|
|
3775
|
+
enumerable: false,
|
|
3776
|
+
configurable: true
|
|
3777
|
+
});
|
|
3778
|
+
Object.defineProperty(ListItemComponent.prototype, "itemStyle", {
|
|
3779
|
+
get: function () {
|
|
3780
|
+
return this.listModel.getItemStyle(this.model);
|
|
3781
|
+
},
|
|
3782
|
+
enumerable: false,
|
|
3783
|
+
configurable: true
|
|
3784
|
+
});
|
|
3785
|
+
ListItemComponent.prototype.click = function (event) {
|
|
3786
|
+
this.listModel.onItemClick(this.model);
|
|
3787
|
+
event.stopPropagation();
|
|
3788
|
+
};
|
|
3789
|
+
ListItemComponent.prototype.pointerdown = function (event) {
|
|
3790
|
+
this.listModel.onPointerDown(event, this.model);
|
|
3791
|
+
};
|
|
3792
|
+
Object.defineProperty(ListItemComponent.prototype, "itemComponent", {
|
|
3793
|
+
get: function () {
|
|
3794
|
+
return this.model.component || this.listModel.itemComponent;
|
|
3795
|
+
},
|
|
3796
|
+
enumerable: false,
|
|
3797
|
+
configurable: true
|
|
3798
|
+
});
|
|
3799
|
+
Object.defineProperty(ListItemComponent.prototype, "itemComponentData", {
|
|
3800
|
+
get: function () {
|
|
3801
|
+
var itemData = this.model.data;
|
|
3802
|
+
return {
|
|
3803
|
+
model: this.model,
|
|
3804
|
+
listModel: this.listModel,
|
|
3805
|
+
itemData: itemData,
|
|
3806
|
+
survey: itemData === null || itemData === void 0 ? void 0 : itemData.survey,
|
|
3807
|
+
page: itemData === null || itemData === void 0 ? void 0 : itemData.page
|
|
3808
|
+
};
|
|
3809
|
+
},
|
|
3810
|
+
enumerable: false,
|
|
3811
|
+
configurable: true
|
|
3812
|
+
});
|
|
3813
|
+
ListItemComponent.prototype.getModel = function () {
|
|
3814
|
+
return this.model;
|
|
3815
|
+
};
|
|
3816
|
+
ListItemComponent.prototype.ngAfterViewInit = function () {
|
|
3817
|
+
var _a;
|
|
3818
|
+
if (!!((_a = this.elementRef) === null || _a === void 0 ? void 0 : _a.nativeElement)) {
|
|
3819
|
+
this.listModel.onItemRended(this.model, this.elementRef.nativeElement);
|
|
3820
|
+
}
|
|
3821
|
+
};
|
|
3822
|
+
return ListItemComponent;
|
|
3823
|
+
}(BaseAngular));
|
|
3824
|
+
ListItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ListItemComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3825
|
+
ListItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ListItemComponent, selector: "sv-ng-list-item, '[sv-ng-list-item]'", inputs: { element: "element", model: "model", listModel: "listModel" }, viewQueries: [{ propertyName: "elementRef", first: true, predicate: ["elementRef"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <li #elementRef [attr.role]=\"listModel.listItemRole\" [key2click]=\"{ processEsc: false, disableTabStop: model.disableTabStop }\" [visible]=\"listModel.isItemVisible(model)\" [class]=\"class\" \n [attr.id]=\"elementId\" [attr.aria-selected]=\"ariaSelected\" [attr.aria-checked]=\"ariaChecked\" (click)=\"click($event)\" (pointerdown)=\"pointerdown($event)\">\n <ng-container *ngIf=\"model.needSeparator\">\n <div [class]=\"listModel.cssClasses.itemSeparator\"></div>\n </ng-container>\n <div [class]=\"listModel.cssClasses.itemBody\" [style]=\"itemStyle\" [attr.title]=\"model.getTooltip()\"\n (mouseover)=\"listModel.onItemHover(model)\"\n (mouseleave)=\"listModel.onItemLeave(model)\">\n <ng-template [component]=\"{ name: itemComponent, data: itemComponentData }\"></ng-template>\n </div>\n </li>\n</ng-template>", styles: [":host{display:none}\n"], directives: [{ type: Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }, { type: VisibleDirective, selector: "[visible]", inputs: ["visible"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
3826
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ListItemComponent, decorators: [{
|
|
3827
|
+
type: i0.Component,
|
|
3828
|
+
args: [{
|
|
3829
|
+
selector: "sv-ng-list-item, '[sv-ng-list-item]'",
|
|
3830
|
+
templateUrl: "./list-item.component.html",
|
|
3831
|
+
styleUrls: ["../../hide-host.scss"],
|
|
3832
|
+
}]
|
|
3833
|
+
}], propDecorators: { element: [{
|
|
3834
|
+
type: i0.Input
|
|
3835
|
+
}], model: [{
|
|
3836
|
+
type: i0.Input
|
|
3837
|
+
}], listModel: [{
|
|
3838
|
+
type: i0.Input
|
|
3839
|
+
}], elementRef: [{
|
|
3840
|
+
type: i0.ViewChild,
|
|
3841
|
+
args: ["elementRef"]
|
|
3842
|
+
}] } });
|
|
3843
|
+
AngularComponentFactory.Instance.registerComponent("sv-list-item", ListItemComponent);
|
|
3844
|
+
|
|
3845
|
+
var ListComponent = /** @class */ (function (_super) {
|
|
3846
|
+
__extends(ListComponent, _super);
|
|
3847
|
+
function ListComponent() {
|
|
3848
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
3849
|
+
_this.trackItemBy = function (_, item) {
|
|
3850
|
+
return item.id;
|
|
3851
|
+
};
|
|
3852
|
+
return _this;
|
|
3853
|
+
}
|
|
3854
|
+
ListComponent.prototype.getModel = function () {
|
|
3855
|
+
return this.model;
|
|
3856
|
+
};
|
|
3857
|
+
ListComponent.prototype.onGoToItems = function (event) {
|
|
3858
|
+
this.model.goToItems(event);
|
|
3859
|
+
};
|
|
3860
|
+
ListComponent.prototype.onMouseDown = function (event) {
|
|
3861
|
+
event.preventDefault();
|
|
3862
|
+
};
|
|
3863
|
+
ListComponent.prototype.onKeyDown = function (event) {
|
|
3864
|
+
this.model.onKeyDown(event);
|
|
3865
|
+
};
|
|
3866
|
+
ListComponent.prototype.onMouseMove = function (event) {
|
|
3867
|
+
this.model.onMouseMove(event);
|
|
3868
|
+
};
|
|
3869
|
+
ListComponent.prototype.getPropertiesToUpdateSync = function () {
|
|
3870
|
+
return ["renderElements"];
|
|
3871
|
+
};
|
|
3872
|
+
ListComponent.prototype.ngAfterViewInit = function () {
|
|
3873
|
+
var _a;
|
|
3874
|
+
if (!!((_a = this.listContainerElement) === null || _a === void 0 ? void 0 : _a.nativeElement)) {
|
|
3875
|
+
this.model.initListContainerHtmlElement(this.listContainerElement.nativeElement);
|
|
3876
|
+
}
|
|
3877
|
+
};
|
|
3878
|
+
ListComponent.prototype.ngOnDestroy = function () {
|
|
3879
|
+
this.model.initListContainerHtmlElement(undefined);
|
|
3880
|
+
_super.prototype.ngOnDestroy.call(this);
|
|
3881
|
+
};
|
|
3882
|
+
return ListComponent;
|
|
3883
|
+
}(BaseAngular));
|
|
3884
|
+
ListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ListComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3885
|
+
ListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ListComponent, selector: "sv-ng-list, '[sv-ng-list]'", inputs: { model: "model" }, viewQueries: [{ propertyName: "listContainerElement", first: true, predicate: ["listContainerElement"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div [class]=\"model.cssClasses.root\" #listContainerElement>\n <div *ngIf=\"model.showFilter\" [class]=\"model.cssClasses.filter\">\n <div [class]=\"model.cssClasses.filterBox\">\n <div [class]=\"model.cssClasses.filterIcon\">\n <svg [iconName]=\"'icon-search'\" [size]=\"'auto'\" sv-ng-svg-icon></svg>\n </div>\n <input type=\"text\" [class]=\"model.cssClasses.filterInput\" [(ngModel)]=\"model.filterString\"\n [attr.aria-label]=\"model.filterStringPlaceholder || ''\"\n [attr.placeholder]=\"model.filterStringPlaceholder || ''\" \n (keyup)=\"onGoToItems($event)\" />\n <button *ngIf=\"model.showSearchClearButton && !!model.filterString\" (click)=\"model.onClickSearchClearButton($event)\" [class]=\"model.cssClasses.searchClearButtonIcon\">\n <svg [iconName]=\"'icon-searchclear'\" [size]=\"'auto'\" sv-ng-svg-icon></svg>\n </button>\n </div>\n </div>\n <ng-container *ngIf=\"model.loadingState === 'loading'\">\n <ng-template [component]=\"{ name: model.loadingComponent, data: { model: model } }\"></ng-template>\n </ng-container>\n <div *ngIf=\"model.loadingState !== 'loading'\" [class]=\"model.cssClasses.emptyContainer\" [visible]=\"model.isEmpty\">\n <div [class]=\"model.cssClasses.emptyText\" [attr.aria-label]=\"model.emptyMessage || ''\">{{ model.emptyMessage }}</div>\n </div>\n <ul *ngIf=\"model.renderElements\" [class]=\"model.getListClass()\" [attr.role]=\"model.listRole\" [attr.aria-label]=\"model.a11ya11y_input_ariaLabel\" [attr.id]=\"model.elementId\" [visible]=\"!model.isEmpty\" (mousedown)=\"onMouseDown($event)\" (keydown)=\"onKeyDown($event)\" (mousemove)=\"onMouseMove($event)\">\n <sv-ng-list-item *ngFor=\"let item of model.renderedActions; trackBy: trackItemBy\" [listModel]=\"model\" [model]=\"item\"></sv-ng-list-item>\n <!--ko foreach: model.renderedActions -->\n <!-- ko component: { name: 'sv-list-item', params: { item: $data, model: $parent.model } } -->\n <!-- /ko -->\n <!-- /ko -->\n </ul>\n </div>\n</ng-template>", styles: [":host{display:none}\n"], components: [{ type: SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: ListItemComponent, selector: "sv-ng-list-item, '[sv-ng-list-item]'", inputs: ["element", "model", "listModel"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }, { type: VisibleDirective, selector: "[visible]", inputs: ["visible"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
3886
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ListComponent, decorators: [{
|
|
3887
|
+
type: i0.Component,
|
|
3888
|
+
args: [{
|
|
3889
|
+
selector: "sv-ng-list, '[sv-ng-list]'",
|
|
3890
|
+
templateUrl: "./list.component.html",
|
|
3891
|
+
styleUrls: ["../../hide-host.scss"]
|
|
3892
|
+
}]
|
|
3893
|
+
}], propDecorators: { model: [{
|
|
3894
|
+
type: i0.Input
|
|
3895
|
+
}], listContainerElement: [{
|
|
3896
|
+
type: i0.ViewChild,
|
|
3897
|
+
args: ["listContainerElement"]
|
|
3898
|
+
}] } });
|
|
3899
|
+
AngularComponentFactory.Instance.registerComponent("sv-list", ListComponent);
|
|
3900
|
+
|
|
3901
|
+
// The page of an editor survey of the Filter Control: the Filters dialog's fields, a "condition"
|
|
3902
|
+
// popup's, and a preset dialog's form and survey. It is drawn as a page, not as a whole Survey (a
|
|
3903
|
+
// Survey inside another survey's question would put a <form> inside a <form>). A survey made anew
|
|
3904
|
+
// (another tab's form) is drawn anew: element ids restart in every survey.
|
|
3905
|
+
var FilterEditorPageComponent = /** @class */ (function (_super) {
|
|
3906
|
+
__extends(FilterEditorPageComponent, _super);
|
|
3907
|
+
function FilterEditorPageComponent() {
|
|
3908
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3909
|
+
}
|
|
3910
|
+
Object.defineProperty(FilterEditorPageComponent.prototype, "surveys", {
|
|
3911
|
+
get: function () {
|
|
3912
|
+
return !this.disposed && !!this.survey ? [this.survey] : [];
|
|
3913
|
+
},
|
|
3914
|
+
enumerable: false,
|
|
3915
|
+
configurable: true
|
|
3916
|
+
});
|
|
3917
|
+
FilterEditorPageComponent.prototype.trackBySurvey = function (_, survey) {
|
|
3918
|
+
return survey.uniqueId;
|
|
3919
|
+
};
|
|
3920
|
+
// The Survey component would set this; a page rendered on its own leaves it to its host. It is
|
|
3921
|
+
// cleared on destroy, unless something else set it in the meantime.
|
|
3922
|
+
FilterEditorPageComponent.prototype.ngAfterViewChecked = function () {
|
|
3923
|
+
_super.prototype.ngAfterViewChecked.call(this);
|
|
3924
|
+
if (!this.disposed && !!this.survey && !!this.rootRef) {
|
|
3925
|
+
if (this.rootSurvey !== this.survey) {
|
|
3926
|
+
this.clearRootElement();
|
|
3927
|
+
}
|
|
3928
|
+
this.survey.rootElement = this.rootRef.nativeElement;
|
|
3929
|
+
this.rootSurvey = this.survey;
|
|
3930
|
+
this.rootElement = this.rootRef.nativeElement;
|
|
3931
|
+
}
|
|
3932
|
+
};
|
|
3933
|
+
FilterEditorPageComponent.prototype.ngOnDestroy = function () {
|
|
3934
|
+
this.clearRootElement();
|
|
3935
|
+
};
|
|
3936
|
+
FilterEditorPageComponent.prototype.clearRootElement = function () {
|
|
3937
|
+
var survey = this.rootSurvey;
|
|
3938
|
+
if (!!survey && !survey.isDisposed && survey.rootElement === this.rootElement) {
|
|
3939
|
+
survey.rootElement = undefined;
|
|
3940
|
+
}
|
|
3941
|
+
this.rootSurvey = undefined;
|
|
3942
|
+
this.rootElement = undefined;
|
|
3943
|
+
};
|
|
3944
|
+
return FilterEditorPageComponent;
|
|
3945
|
+
}(EmbeddedViewContentComponent));
|
|
3946
|
+
FilterEditorPageComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FilterEditorPageComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3947
|
+
FilterEditorPageComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FilterEditorPageComponent, selector: "sv-ng-filter-editor-page", inputs: { survey: "survey", disposed: "disposed", className: "className" }, viewQueries: [{ propertyName: "rootRef", first: true, predicate: ["root"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div *ngFor=\"let s of surveys; trackBy: trackBySurvey\" [class]=\"className\" #root>\n <sv-ng-page *ngIf=\"!!s.currentPage\" [model]=\"s.currentPage\" [survey]=\"s\"></sv-ng-page>\n </div>\n</ng-template>\n", styles: [":host{display:none}\n"], components: [{ type: PageComponent, selector: "sv-page, page, sv-ng-page", inputs: ["model", "survey"] }], directives: [{ type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3948
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FilterEditorPageComponent, decorators: [{
|
|
3949
|
+
type: i0.Component,
|
|
3950
|
+
args: [{
|
|
3951
|
+
selector: "sv-ng-filter-editor-page",
|
|
3952
|
+
templateUrl: "./filter-editor-page.component.html",
|
|
3953
|
+
styleUrls: ["../../hide-host.scss"]
|
|
3954
|
+
}]
|
|
3955
|
+
}], propDecorators: { survey: [{
|
|
3956
|
+
type: i0.Input
|
|
3957
|
+
}], disposed: [{
|
|
3958
|
+
type: i0.Input
|
|
3959
|
+
}], className: [{
|
|
3960
|
+
type: i0.Input
|
|
3961
|
+
}], rootRef: [{
|
|
3962
|
+
type: i0.ViewChild,
|
|
3963
|
+
args: ["root"]
|
|
3964
|
+
}] } });
|
|
3965
|
+
|
|
3966
|
+
// A badge's popup of the Filter Control: the search box (a long list, or one a value can be typed
|
|
3967
|
+
// into), a checkbox list's title row with its link, the list or the operator and value, and Apply.
|
|
3968
|
+
var FilterFieldPopupComponent = /** @class */ (function (_super) {
|
|
3969
|
+
__extends(FilterFieldPopupComponent, _super);
|
|
3970
|
+
function FilterFieldPopupComponent() {
|
|
3971
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3972
|
+
}
|
|
3973
|
+
Object.defineProperty(FilterFieldPopupComponent.prototype, "popup", {
|
|
3974
|
+
// The holder empties a slot before it disposes what it held: this is never a disposed popup.
|
|
3975
|
+
get: function () {
|
|
3976
|
+
var holder = this.holder;
|
|
3977
|
+
return !!holder ? holder.fieldPopup : undefined;
|
|
3978
|
+
},
|
|
3979
|
+
enumerable: false,
|
|
3980
|
+
configurable: true
|
|
3981
|
+
});
|
|
3982
|
+
FilterFieldPopupComponent.prototype.getWatchedModels = function () {
|
|
3983
|
+
var popup = this.popup;
|
|
3984
|
+
return !!popup ? [popup.headerToolbar, popup.footerToolbar, popup.list] : [];
|
|
3985
|
+
};
|
|
3986
|
+
FilterFieldPopupComponent.prototype.onSearchInput = function (event) {
|
|
3987
|
+
this.popup.list.filterString = event.target.value;
|
|
3988
|
+
};
|
|
3989
|
+
return FilterFieldPopupComponent;
|
|
3990
|
+
}(FilterHolderComponent));
|
|
3991
|
+
FilterFieldPopupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FilterFieldPopupComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3992
|
+
FilterFieldPopupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FilterFieldPopupComponent, selector: "sv-ng-filter-field-popup", usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div *ngIf=\"!!popup\" [class]=\"popup.cssClasses.popup\">\n <div *ngIf=\"!!popup.list && popup.showSearch\" [class]=\"popup.cssClasses.popupSearch\">\n <svg [iconName]=\"'icon-search-24x24'\" [size]=\"'auto'\" [partCss]=\"popup.cssClasses.popupSearchIcon\" sv-ng-svg-icon></svg>\n <input type=\"text\" [class]=\"popup.cssClasses.popupSearchInput\" [value]=\"popup.list.filterString || ''\"\n [attr.placeholder]=\"popup.list.filterStringPlaceholder\" [attr.aria-label]=\"popup.list.filterStringPlaceholder\"\n (input)=\"onSearchInput($event)\" (keydown)=\"popup.onSearchKeyDown($event)\" />\n </div>\n <div *ngIf=\"popup.showHeader\" [class]=\"popup.cssClasses.popupHeader\">\n <div [class]=\"popup.cssClasses.popupTitle\">{{ popup.title }}</div>\n <sv-ng-action-bar [model]=\"popup.headerToolbar\"></sv-ng-action-bar>\n </div>\n <div [class]=\"popup.cssClasses.popupBody\">\n <sv-ng-list *ngIf=\"!!popup.list\" [model]=\"popup.list\"></sv-ng-list>\n <sv-ng-filter-editor-page *ngIf=\"!popup.list && !!popup.editor\" [survey]=\"popup.editor.survey\" [disposed]=\"popup.editor.isDisposed\"\n [className]=\"popup.cssClasses.editor\"></sv-ng-filter-editor-page>\n </div>\n <div *ngIf=\"popup.footerToolbar.hasActions\" [class]=\"popup.cssClasses.popupFooter\">\n <sv-ng-action-bar [model]=\"popup.footerToolbar\"></sv-ng-action-bar>\n </div>\n </div>\n</ng-template>\n", styles: [":host{display:none}\n"], components: [{ type: SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }, { type: ListComponent, selector: "sv-ng-list, '[sv-ng-list]'", inputs: ["model"] }, { type: FilterEditorPageComponent, selector: "sv-ng-filter-editor-page", inputs: ["survey", "disposed", "className"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3993
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FilterFieldPopupComponent, decorators: [{
|
|
3994
|
+
type: i0.Component,
|
|
3995
|
+
args: [{
|
|
3996
|
+
selector: "sv-ng-filter-field-popup",
|
|
3997
|
+
templateUrl: "./filter-field-popup.component.html",
|
|
3998
|
+
styleUrls: ["../../hide-host.scss"]
|
|
3999
|
+
}]
|
|
4000
|
+
}] });
|
|
4001
|
+
AngularComponentFactory.Instance.registerComponent(Survey.filterFieldPopupComponentName, FilterFieldPopupComponent);
|
|
4002
|
+
|
|
4003
|
+
// "Save as..."'s popup of the Filter Control: the new preset's name and Save.
|
|
4004
|
+
var FilterSaveAsPopupComponent = /** @class */ (function (_super) {
|
|
4005
|
+
__extends(FilterSaveAsPopupComponent, _super);
|
|
4006
|
+
function FilterSaveAsPopupComponent() {
|
|
4007
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
4008
|
+
}
|
|
4009
|
+
Object.defineProperty(FilterSaveAsPopupComponent.prototype, "popup", {
|
|
4010
|
+
// The holder empties a slot before it disposes what it held: this is never a disposed popup.
|
|
4011
|
+
get: function () {
|
|
4012
|
+
var holder = this.holder;
|
|
4013
|
+
return !!holder ? holder.saveAsPopup : undefined;
|
|
4014
|
+
},
|
|
4015
|
+
enumerable: false,
|
|
4016
|
+
configurable: true
|
|
4017
|
+
});
|
|
4018
|
+
FilterSaveAsPopupComponent.prototype.getWatchedModels = function () {
|
|
4019
|
+
var popup = this.popup;
|
|
4020
|
+
return !!popup ? [popup.footerToolbar] : [];
|
|
4021
|
+
};
|
|
4022
|
+
return FilterSaveAsPopupComponent;
|
|
4023
|
+
}(FilterHolderComponent));
|
|
4024
|
+
FilterSaveAsPopupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FilterSaveAsPopupComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4025
|
+
FilterSaveAsPopupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FilterSaveAsPopupComponent, selector: "sv-ng-filter-save-as-popup", usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div *ngIf=\"!!popup\" [class]=\"popup.cssClasses.popup\">\n <div [class]=\"popup.cssClasses.popupBody\">\n <sv-ng-filter-editor-page [survey]=\"popup.survey\" [disposed]=\"popup.isDisposed\" [className]=\"popup.cssClasses.editor\"></sv-ng-filter-editor-page>\n </div>\n <div [class]=\"popup.cssClasses.popupFooter\">\n <sv-ng-action-bar [model]=\"popup.footerToolbar\"></sv-ng-action-bar>\n </div>\n </div>\n</ng-template>\n", styles: [":host{display:none}\n"], components: [{ type: FilterEditorPageComponent, selector: "sv-ng-filter-editor-page", inputs: ["survey", "disposed", "className"] }, { type: ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
4026
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FilterSaveAsPopupComponent, decorators: [{
|
|
4027
|
+
type: i0.Component,
|
|
4028
|
+
args: [{
|
|
4029
|
+
selector: "sv-ng-filter-save-as-popup",
|
|
4030
|
+
templateUrl: "./filter-save-as-popup.component.html",
|
|
4031
|
+
styleUrls: ["../../hide-host.scss"]
|
|
4032
|
+
}]
|
|
4033
|
+
}] });
|
|
4034
|
+
AngularComponentFactory.Instance.registerComponent(Survey.filterSaveAsPopupComponentName, FilterSaveAsPopupComponent);
|
|
4035
|
+
|
|
4036
|
+
// The Filters dialog's content: Search in Filters, the presets with Add New and Edit Selected, the text
|
|
4037
|
+
// of a preset that does not decompose with Edit..., "nothing found" and the fields; its footer is the
|
|
4038
|
+
// dialog's own.
|
|
4039
|
+
var FilterModalComponent = /** @class */ (function (_super) {
|
|
4040
|
+
__extends(FilterModalComponent, _super);
|
|
4041
|
+
function FilterModalComponent() {
|
|
4042
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
4043
|
+
}
|
|
4044
|
+
Object.defineProperty(FilterModalComponent.prototype, "modal", {
|
|
4045
|
+
// The holder empties a slot before it disposes what it held: this is never a disposed dialog.
|
|
4046
|
+
get: function () {
|
|
4047
|
+
var holder = this.holder;
|
|
4048
|
+
return !!holder ? holder.modal : undefined;
|
|
4049
|
+
},
|
|
4050
|
+
enumerable: false,
|
|
4051
|
+
configurable: true
|
|
4052
|
+
});
|
|
4053
|
+
FilterModalComponent.prototype.getWatchedModels = function () {
|
|
4054
|
+
var modal = this.modal;
|
|
4055
|
+
return !!modal ? [modal, modal.presetsToolbar, modal.expressionToolbar] : [];
|
|
4056
|
+
};
|
|
4057
|
+
FilterModalComponent.prototype.onSearchInput = function (event) {
|
|
4058
|
+
this.modal.filterText = event.target.value;
|
|
4059
|
+
};
|
|
4060
|
+
return FilterModalComponent;
|
|
4061
|
+
}(FilterHolderComponent));
|
|
4062
|
+
FilterModalComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FilterModalComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4063
|
+
FilterModalComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FilterModalComponent, selector: "sv-ng-filter-modal", usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div *ngIf=\"!!modal\" [class]=\"modal.cssClasses.modalContent\">\n <div [class]=\"modal.cssClasses.modalSection\">\n <div [class]=\"modal.searchCss.root\">\n <svg [iconName]=\"'icon-search-24x24'\" [size]=\"'auto'\" [partCss]=\"modal.cssClasses.searchIcon\" sv-ng-svg-icon></svg>\n <input type=\"text\" [class]=\"modal.searchCss.control\" [value]=\"modal.filterText\" [attr.placeholder]=\"modal.searchPlaceholder\"\n [attr.aria-label]=\"modal.searchPlaceholder\" (input)=\"onSearchInput($event)\" />\n <sv-action-bar-item *ngIf=\"modal.showSearchClear\" [model]=\"modal.searchClearAction\"></sv-action-bar-item>\n </div>\n </div>\n <div *ngIf=\"modal.presetsToolbar.hasVisibleActions\" [class]=\"modal.cssClasses.modalSection\" role=\"group\" [attr.aria-labelledby]=\"modal.presetsTitleId\">\n <div [class]=\"modal.cssClasses.modalSectionHeader\">\n <div [class]=\"modal.cssClasses.modalSectionTitle\" [attr.id]=\"modal.presetsTitleId\">{{ modal.presetsTitle }}</div>\n </div>\n <sv-ng-action-bar [model]=\"modal.presetsToolbar\"></sv-ng-action-bar>\n </div>\n <div *ngIf=\"modal.showExpression\" [class]=\"modal.cssClasses.modalSection + ' ' + modal.cssClasses.modalExpression\">\n <div [class]=\"modal.cssClasses.modalSectionTitle\">{{ modal.expressionTitle }}</div>\n <div [class]=\"modal.cssClasses.modalExpressionText\">{{ modal.presetExpression }}</div>\n <sv-ng-action-bar [model]=\"modal.expressionToolbar\"></sv-ng-action-bar>\n </div>\n <div *ngIf=\"modal.isNothingFound\" [class]=\"modal.cssClasses.modalNothingFound\">\n <svg [iconName]=\"'icon-search-24x24'\" [size]=\"'auto'\" [partCss]=\"modal.cssClasses.modalNothingFoundIcon\" sv-ng-svg-icon></svg>\n <div>{{ modal.nothingFoundText }}</div>\n </div>\n <sv-ng-filter-editor-page *ngIf=\"!!modal.editor\" [survey]=\"modal.editor.survey\" [disposed]=\"modal.editor.isDisposed\"\n [className]=\"modal.editorCss\"></sv-ng-filter-editor-page>\n </div>\n</ng-template>\n", styles: [":host{display:none}\n"], components: [{ type: SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: ActionBarItemComponent, selector: "sv-action-bar-item", inputs: ["model"] }, { type: ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }, { type: FilterEditorPageComponent, selector: "sv-ng-filter-editor-page", inputs: ["survey", "disposed", "className"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
4064
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FilterModalComponent, decorators: [{
|
|
4065
|
+
type: i0.Component,
|
|
4066
|
+
args: [{
|
|
4067
|
+
selector: "sv-ng-filter-modal",
|
|
4068
|
+
templateUrl: "./filter-modal.component.html",
|
|
4069
|
+
styleUrls: ["../../hide-host.scss"]
|
|
4070
|
+
}]
|
|
4071
|
+
}] });
|
|
4072
|
+
AngularComponentFactory.Instance.registerComponent(Survey.filterModalComponentName, FilterModalComponent);
|
|
4073
|
+
|
|
4074
|
+
// New Preset and Edit Preset: the form - the name and the tagbox of Contains, or the text - and the
|
|
4075
|
+
// dialog's survey - the fields' editors in a frame and the AI description with its Create or Edit; the
|
|
4076
|
+
// footer is the dialog's own.
|
|
4077
|
+
var FilterPresetDialogComponent = /** @class */ (function (_super) {
|
|
4078
|
+
__extends(FilterPresetDialogComponent, _super);
|
|
4079
|
+
function FilterPresetDialogComponent() {
|
|
4080
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
4081
|
+
}
|
|
4082
|
+
Object.defineProperty(FilterPresetDialogComponent.prototype, "dialog", {
|
|
4083
|
+
// The holder empties a slot before it disposes what it held: this is never a disposed dialog.
|
|
4084
|
+
get: function () {
|
|
4085
|
+
var holder = this.holder;
|
|
4086
|
+
return !!holder ? holder.presetDialog : undefined;
|
|
4087
|
+
},
|
|
4088
|
+
enumerable: false,
|
|
4089
|
+
configurable: true
|
|
4090
|
+
});
|
|
4091
|
+
FilterPresetDialogComponent.prototype.getWatchedModels = function () {
|
|
4092
|
+
return [this.dialog];
|
|
4093
|
+
};
|
|
4094
|
+
Object.defineProperty(FilterPresetDialogComponent.prototype, "hasFields", {
|
|
4095
|
+
// The page is empty with no field picked and no description (see hasSurveyContent).
|
|
4096
|
+
get: function () {
|
|
4097
|
+
return this.dialog.hasSurveyContent;
|
|
4098
|
+
},
|
|
4099
|
+
enumerable: false,
|
|
4100
|
+
configurable: true
|
|
4101
|
+
});
|
|
4102
|
+
return FilterPresetDialogComponent;
|
|
4103
|
+
}(FilterHolderComponent));
|
|
4104
|
+
FilterPresetDialogComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FilterPresetDialogComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4105
|
+
FilterPresetDialogComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FilterPresetDialogComponent, selector: "sv-ng-filter-preset-dialog", usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div *ngIf=\"!!dialog\" [class]=\"dialog.contentCss\">\n <sv-ng-filter-editor-page *ngIf=\"!!dialog.form\" [survey]=\"dialog.form\" [disposed]=\"dialog.isDisposed\" [className]=\"dialog.formCss\"></sv-ng-filter-editor-page>\n <sv-ng-filter-editor-page *ngIf=\"hasFields\" [survey]=\"dialog.survey\" [disposed]=\"dialog.isDisposed\" [className]=\"dialog.editorCss\"></sv-ng-filter-editor-page>\n </div>\n</ng-template>\n", styles: [":host{display:none}\n"], components: [{ type: FilterEditorPageComponent, selector: "sv-ng-filter-editor-page", inputs: ["survey", "disposed", "className"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
4106
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FilterPresetDialogComponent, decorators: [{
|
|
4107
|
+
type: i0.Component,
|
|
4108
|
+
args: [{
|
|
4109
|
+
selector: "sv-ng-filter-preset-dialog",
|
|
4110
|
+
templateUrl: "./filter-preset-dialog.component.html",
|
|
4111
|
+
styleUrls: ["../../hide-host.scss"]
|
|
4112
|
+
}]
|
|
4113
|
+
}] });
|
|
4114
|
+
AngularComponentFactory.Instance.registerComponent(Survey.filterPresetDialogComponentName, FilterPresetDialogComponent);
|
|
4115
|
+
|
|
3516
4116
|
var ActionBarItemDropdownComponent = /** @class */ (function (_super) {
|
|
3517
4117
|
__extends(ActionBarItemDropdownComponent, _super);
|
|
3518
4118
|
function ActionBarItemDropdownComponent() {
|
|
@@ -3532,7 +4132,7 @@
|
|
|
3532
4132
|
return ActionBarItemDropdownComponent;
|
|
3533
4133
|
}(BaseAngular));
|
|
3534
4134
|
ActionBarItemDropdownComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ActionBarItemDropdownComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3535
|
-
ActionBarItemDropdownComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ActionBarItemDropdownComponent, selector: "sv-action-bar-item-dropdown", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <button type=\"button\" (click)=\"model.doAction($event)\" [key2click]=\"{ processEsc: false, disableTabStop: model.disableTabStop }\" [class]=\"model.getActionBarItemCss()\" [attr.title]=\"model.getTooltip()\" [attr.data-sv-tooltip]=\"model.getTooltip()\" [attr.aria-label]=\"model.ariaLabel\" [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 <sv-ng-string-viewer style=\"display:contents\" *ngIf=\"model.hasTitle\" [model]=\"model.locTitle\" [textClass]=\"model.getActionBarItemTitleCss()\"></sv-ng-string-viewer>\n </button>\n <sv-ng-popup [popupModel]=\"model.popupModel\"></sv-ng-popup>\n</ng-template>", styles: [":host{display:none}\n"], components: [{ type: SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: StringViewerComponent, selector: "sv-ng-string-viewer, string-viewer, '[sv-ng-string-viewer]'", inputs: ["model", "textClass"] }, { type: PopupComponent, selector: "sv-ng-popup, '[sv-ng-popup]'", inputs: ["popupModel"] }], directives: [{ type: Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
4135
|
+
ActionBarItemDropdownComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ActionBarItemDropdownComponent, selector: "sv-action-bar-item-dropdown", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <button type=\"button\" (click)=\"model.doAction($event)\" [key2click]=\"{ processEsc: false, disableTabStop: model.disableTabStop }\" [class]=\"model.getActionBarItemCss()\" [attr.title]=\"model.getTooltip()\" [attr.data-sv-tooltip]=\"model.getTooltip()\" [attr.aria-label]=\"model.ariaLabel\" [attr.aria-expanded]=\"model.ariaExpanded\" [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 <sv-ng-string-viewer style=\"display:contents\" *ngIf=\"model.hasTitle\" [model]=\"model.locTitle\" [textClass]=\"model.getActionBarItemTitleCss()\"></sv-ng-string-viewer>\n </button>\n <sv-ng-popup [popupModel]=\"model.popupModel\"></sv-ng-popup>\n</ng-template>", styles: [":host{display:none}\n"], components: [{ type: SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: StringViewerComponent, selector: "sv-ng-string-viewer, string-viewer, '[sv-ng-string-viewer]'", inputs: ["model", "textClass"] }, { type: PopupComponent, selector: "sv-ng-popup, '[sv-ng-popup]'", inputs: ["popupModel"] }], directives: [{ type: Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3536
4136
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ActionBarItemDropdownComponent, decorators: [{
|
|
3537
4137
|
type: i0.Component,
|
|
3538
4138
|
args: [{
|
|
@@ -3760,7 +4360,7 @@
|
|
|
3760
4360
|
return TimerPanelComponent;
|
|
3761
4361
|
}(BaseAngular));
|
|
3762
4362
|
TimerPanelComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TimerPanelComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3763
|
-
TimerPanelComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TimerPanelComponent, selector: "sv-timerpanel", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<div *ngIf=\"model.isRunning && model.showTimerAsClock\" [class]=\"model.rootCss\">\n
|
|
4363
|
+
TimerPanelComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TimerPanelComponent, selector: "sv-timerpanel", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div *ngIf=\"model.isRunning && model.showTimerAsClock\" [class]=\"model.rootCss\">\n <svg *ngIf=\"model.showProgress\" [class]=\"model.getProgressCss()\" [style.stroke-dasharray]=\"circleLength\" [style.stroke-dashoffset]=\"progress\" [size]=\"'auto'\" [iconName]=\"'icon-timercircle'\" sv-ng-svg-icon></svg>\n <div [class]=\"model.textContainerCss\">\n <span [class]=\"model.majorTextCss\">{{ model.clockMajorText }}</span>\n <span *ngIf=\"model.clockMinorText\" [class]=\"model.minorTextCss\">{{ model.clockMinorText }}</span>\n </div>\n </div>\n <div *ngIf=\"model.isRunning && !model.showTimerAsClock\" [class]='model.survey.getCss().timerRoot'>{{model.text}}</div>\n</ng-template>", components: [{ type: SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3764
4364
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TimerPanelComponent, decorators: [{
|
|
3765
4365
|
type: i0.Component,
|
|
3766
4366
|
args: [{
|
|
@@ -3772,163 +4372,6 @@
|
|
|
3772
4372
|
}] } });
|
|
3773
4373
|
AngularComponentFactory.Instance.registerComponent("sv-timerpanel", TimerPanelComponent);
|
|
3774
4374
|
|
|
3775
|
-
var ListItemComponent = /** @class */ (function (_super) {
|
|
3776
|
-
__extends(ListItemComponent, _super);
|
|
3777
|
-
function ListItemComponent() {
|
|
3778
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
3779
|
-
}
|
|
3780
|
-
Object.defineProperty(ListItemComponent.prototype, "elementId", {
|
|
3781
|
-
get: function () {
|
|
3782
|
-
var _a;
|
|
3783
|
-
return (_a = this.model) === null || _a === void 0 ? void 0 : _a.elementId;
|
|
3784
|
-
},
|
|
3785
|
-
enumerable: false,
|
|
3786
|
-
configurable: true
|
|
3787
|
-
});
|
|
3788
|
-
Object.defineProperty(ListItemComponent.prototype, "ariaSelected", {
|
|
3789
|
-
get: function () {
|
|
3790
|
-
return this.listModel.getA11yItemAriaSelected(this.model);
|
|
3791
|
-
},
|
|
3792
|
-
enumerable: false,
|
|
3793
|
-
configurable: true
|
|
3794
|
-
});
|
|
3795
|
-
Object.defineProperty(ListItemComponent.prototype, "ariaChecked", {
|
|
3796
|
-
get: function () {
|
|
3797
|
-
return this.listModel.getA11yItemAriaChecked(this.model);
|
|
3798
|
-
},
|
|
3799
|
-
enumerable: false,
|
|
3800
|
-
configurable: true
|
|
3801
|
-
});
|
|
3802
|
-
Object.defineProperty(ListItemComponent.prototype, "class", {
|
|
3803
|
-
get: function () {
|
|
3804
|
-
return this.listModel.getItemClass(this.model);
|
|
3805
|
-
},
|
|
3806
|
-
enumerable: false,
|
|
3807
|
-
configurable: true
|
|
3808
|
-
});
|
|
3809
|
-
Object.defineProperty(ListItemComponent.prototype, "itemStyle", {
|
|
3810
|
-
get: function () {
|
|
3811
|
-
return this.listModel.getItemStyle(this.model);
|
|
3812
|
-
},
|
|
3813
|
-
enumerable: false,
|
|
3814
|
-
configurable: true
|
|
3815
|
-
});
|
|
3816
|
-
ListItemComponent.prototype.click = function (event) {
|
|
3817
|
-
this.listModel.onItemClick(this.model);
|
|
3818
|
-
event.stopPropagation();
|
|
3819
|
-
};
|
|
3820
|
-
ListItemComponent.prototype.pointerdown = function (event) {
|
|
3821
|
-
this.listModel.onPointerDown(event, this.model);
|
|
3822
|
-
};
|
|
3823
|
-
Object.defineProperty(ListItemComponent.prototype, "itemComponent", {
|
|
3824
|
-
get: function () {
|
|
3825
|
-
return this.model.component || this.listModel.itemComponent;
|
|
3826
|
-
},
|
|
3827
|
-
enumerable: false,
|
|
3828
|
-
configurable: true
|
|
3829
|
-
});
|
|
3830
|
-
Object.defineProperty(ListItemComponent.prototype, "itemComponentData", {
|
|
3831
|
-
get: function () {
|
|
3832
|
-
var itemData = this.model.data;
|
|
3833
|
-
return {
|
|
3834
|
-
model: this.model,
|
|
3835
|
-
listModel: this.listModel,
|
|
3836
|
-
itemData: itemData,
|
|
3837
|
-
survey: itemData === null || itemData === void 0 ? void 0 : itemData.survey,
|
|
3838
|
-
page: itemData === null || itemData === void 0 ? void 0 : itemData.page
|
|
3839
|
-
};
|
|
3840
|
-
},
|
|
3841
|
-
enumerable: false,
|
|
3842
|
-
configurable: true
|
|
3843
|
-
});
|
|
3844
|
-
ListItemComponent.prototype.getModel = function () {
|
|
3845
|
-
return this.model;
|
|
3846
|
-
};
|
|
3847
|
-
ListItemComponent.prototype.ngAfterViewInit = function () {
|
|
3848
|
-
var _a;
|
|
3849
|
-
if (!!((_a = this.elementRef) === null || _a === void 0 ? void 0 : _a.nativeElement)) {
|
|
3850
|
-
this.listModel.onItemRended(this.model, this.elementRef.nativeElement);
|
|
3851
|
-
}
|
|
3852
|
-
};
|
|
3853
|
-
return ListItemComponent;
|
|
3854
|
-
}(BaseAngular));
|
|
3855
|
-
ListItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ListItemComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3856
|
-
ListItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ListItemComponent, selector: "sv-ng-list-item, '[sv-ng-list-item]'", inputs: { element: "element", model: "model", listModel: "listModel" }, viewQueries: [{ propertyName: "elementRef", first: true, predicate: ["elementRef"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <li #elementRef [attr.role]=\"listModel.listItemRole\" [key2click]=\"{ processEsc: false, disableTabStop: model.disableTabStop }\" [visible]=\"listModel.isItemVisible(model)\" [class]=\"class\" \n [attr.id]=\"elementId\" [attr.aria-selected]=\"ariaSelected\" [attr.aria-checked]=\"ariaChecked\" (click)=\"click($event)\" (pointerdown)=\"pointerdown($event)\">\n <ng-container *ngIf=\"model.needSeparator\">\n <div [class]=\"listModel.cssClasses.itemSeparator\"></div>\n </ng-container>\n <div [class]=\"listModel.cssClasses.itemBody\" [style]=\"itemStyle\" [attr.title]=\"model.getTooltip()\"\n (mouseover)=\"listModel.onItemHover(model)\"\n (mouseleave)=\"listModel.onItemLeave(model)\">\n <ng-template [component]=\"{ name: itemComponent, data: itemComponentData }\"></ng-template>\n </div>\n </li>\n</ng-template>", styles: [":host{display:none}\n"], directives: [{ type: Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }, { type: VisibleDirective, selector: "[visible]", inputs: ["visible"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
3857
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ListItemComponent, decorators: [{
|
|
3858
|
-
type: i0.Component,
|
|
3859
|
-
args: [{
|
|
3860
|
-
selector: "sv-ng-list-item, '[sv-ng-list-item]'",
|
|
3861
|
-
templateUrl: "./list-item.component.html",
|
|
3862
|
-
styleUrls: ["../../hide-host.scss"],
|
|
3863
|
-
}]
|
|
3864
|
-
}], propDecorators: { element: [{
|
|
3865
|
-
type: i0.Input
|
|
3866
|
-
}], model: [{
|
|
3867
|
-
type: i0.Input
|
|
3868
|
-
}], listModel: [{
|
|
3869
|
-
type: i0.Input
|
|
3870
|
-
}], elementRef: [{
|
|
3871
|
-
type: i0.ViewChild,
|
|
3872
|
-
args: ["elementRef"]
|
|
3873
|
-
}] } });
|
|
3874
|
-
AngularComponentFactory.Instance.registerComponent("sv-list-item", ListItemComponent);
|
|
3875
|
-
|
|
3876
|
-
var ListComponent = /** @class */ (function (_super) {
|
|
3877
|
-
__extends(ListComponent, _super);
|
|
3878
|
-
function ListComponent() {
|
|
3879
|
-
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
3880
|
-
_this.trackItemBy = function (_, item) {
|
|
3881
|
-
return item.id;
|
|
3882
|
-
};
|
|
3883
|
-
return _this;
|
|
3884
|
-
}
|
|
3885
|
-
ListComponent.prototype.getModel = function () {
|
|
3886
|
-
return this.model;
|
|
3887
|
-
};
|
|
3888
|
-
ListComponent.prototype.onGoToItems = function (event) {
|
|
3889
|
-
this.model.goToItems(event);
|
|
3890
|
-
};
|
|
3891
|
-
ListComponent.prototype.onMouseDown = function (event) {
|
|
3892
|
-
event.preventDefault();
|
|
3893
|
-
};
|
|
3894
|
-
ListComponent.prototype.onKeyDown = function (event) {
|
|
3895
|
-
this.model.onKeyDown(event);
|
|
3896
|
-
};
|
|
3897
|
-
ListComponent.prototype.onMouseMove = function (event) {
|
|
3898
|
-
this.model.onMouseMove(event);
|
|
3899
|
-
};
|
|
3900
|
-
ListComponent.prototype.getPropertiesToUpdateSync = function () {
|
|
3901
|
-
return ["renderElements"];
|
|
3902
|
-
};
|
|
3903
|
-
ListComponent.prototype.ngAfterViewInit = function () {
|
|
3904
|
-
var _a;
|
|
3905
|
-
if (!!((_a = this.listContainerElement) === null || _a === void 0 ? void 0 : _a.nativeElement)) {
|
|
3906
|
-
this.model.initListContainerHtmlElement(this.listContainerElement.nativeElement);
|
|
3907
|
-
}
|
|
3908
|
-
};
|
|
3909
|
-
ListComponent.prototype.ngOnDestroy = function () {
|
|
3910
|
-
this.model.initListContainerHtmlElement(undefined);
|
|
3911
|
-
_super.prototype.ngOnDestroy.call(this);
|
|
3912
|
-
};
|
|
3913
|
-
return ListComponent;
|
|
3914
|
-
}(BaseAngular));
|
|
3915
|
-
ListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ListComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3916
|
-
ListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ListComponent, selector: "sv-ng-list, '[sv-ng-list]'", inputs: { model: "model" }, viewQueries: [{ propertyName: "listContainerElement", first: true, predicate: ["listContainerElement"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div [class]=\"model.cssClasses.root\" #listContainerElement>\n <div *ngIf=\"model.showFilter\" [class]=\"model.cssClasses.filter\">\n <div [class]=\"model.cssClasses.filterBox\">\n <div [class]=\"model.cssClasses.filterIcon\">\n <svg [iconName]=\"'icon-search'\" [size]=\"'auto'\" sv-ng-svg-icon></svg>\n </div>\n <input type=\"text\" [class]=\"model.cssClasses.filterInput\" [(ngModel)]=\"model.filterString\"\n [attr.aria-label]=\"model.filterStringPlaceholder || ''\"\n [attr.placeholder]=\"model.filterStringPlaceholder || ''\" \n (keyup)=\"onGoToItems($event)\" />\n <button *ngIf=\"model.showSearchClearButton && !!model.filterString\" (click)=\"model.onClickSearchClearButton($event)\" [class]=\"model.cssClasses.searchClearButtonIcon\">\n <svg [iconName]=\"'icon-searchclear'\" [size]=\"'auto'\" sv-ng-svg-icon></svg>\n </button>\n </div>\n </div>\n <ng-container *ngIf=\"model.loadingState === 'loading'\">\n <ng-template [component]=\"{ name: model.loadingComponent, data: { model: model } }\"></ng-template>\n </ng-container>\n <div *ngIf=\"model.loadingState !== 'loading'\" [class]=\"model.cssClasses.emptyContainer\" [visible]=\"model.isEmpty\">\n <div [class]=\"model.cssClasses.emptyText\" [attr.aria-label]=\"model.emptyMessage || ''\">{{ model.emptyMessage }}</div>\n </div>\n <ul *ngIf=\"model.renderElements\" [class]=\"model.getListClass()\" [attr.role]=\"model.listRole\" [attr.aria-label]=\"model.a11ya11y_input_ariaLabel\" [attr.id]=\"model.elementId\" [visible]=\"!model.isEmpty\" (mousedown)=\"onMouseDown($event)\" (keydown)=\"onKeyDown($event)\" (mousemove)=\"onMouseMove($event)\">\n <sv-ng-list-item *ngFor=\"let item of model.renderedActions; trackBy: trackItemBy\" [listModel]=\"model\" [model]=\"item\"></sv-ng-list-item>\n <!--ko foreach: model.renderedActions -->\n <!-- ko component: { name: 'sv-list-item', params: { item: $data, model: $parent.model } } -->\n <!-- /ko -->\n <!-- /ko -->\n </ul>\n </div>\n</ng-template>", styles: [":host{display:none}\n"], components: [{ type: SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: ListItemComponent, selector: "sv-ng-list-item, '[sv-ng-list-item]'", inputs: ["element", "model", "listModel"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }, { type: VisibleDirective, selector: "[visible]", inputs: ["visible"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
3917
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ListComponent, decorators: [{
|
|
3918
|
-
type: i0.Component,
|
|
3919
|
-
args: [{
|
|
3920
|
-
selector: "sv-ng-list, '[sv-ng-list]'",
|
|
3921
|
-
templateUrl: "./list.component.html",
|
|
3922
|
-
styleUrls: ["../../hide-host.scss"]
|
|
3923
|
-
}]
|
|
3924
|
-
}], propDecorators: { model: [{
|
|
3925
|
-
type: i0.Input
|
|
3926
|
-
}], listContainerElement: [{
|
|
3927
|
-
type: i0.ViewChild,
|
|
3928
|
-
args: ["listContainerElement"]
|
|
3929
|
-
}] } });
|
|
3930
|
-
AngularComponentFactory.Instance.registerComponent("sv-list", ListComponent);
|
|
3931
|
-
|
|
3932
4375
|
var ListItemContentComponent = /** @class */ (function (_super) {
|
|
3933
4376
|
__extends(ListItemContentComponent, _super);
|
|
3934
4377
|
function ListItemContentComponent() {
|
|
@@ -4842,7 +5285,7 @@
|
|
|
4842
5285
|
return PanelDynamicPlaceholderComponent;
|
|
4843
5286
|
}());
|
|
4844
5287
|
PanelDynamicPlaceholderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PanelDynamicPlaceholderComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4845
|
-
PanelDynamicPlaceholderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PanelDynamicPlaceholderComponent, selector: "sv-ng-placeholder-paneldynamic", inputs: { question: "question" }, ngImport: i0__namespace, template: "<div *ngIf=\"question.getShowNoEntriesPlaceholder()\" [class]=\"question.cssClasses.noEntriesPlaceholder\">\n <span>\n <sv-ng-string [model]=\"question.locNoEntriesText\"></sv-ng-string>\n </span>\n <ng-template [component]=\"{ name: 'sv-action-bar', data: { model: question.footerToolbar } }\" *ngIf=\"question.getShowPlaceholderToolbar()\"></ng-template>\n</div> ", components: [{ type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
5288
|
+
PanelDynamicPlaceholderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PanelDynamicPlaceholderComponent, selector: "sv-ng-placeholder-paneldynamic", inputs: { question: "question" }, ngImport: i0__namespace, template: "<div *ngIf=\"question.getShowNoEntriesPlaceholder()\" [class]=\"question.cssClasses.noEntriesPlaceholder\">\n <span [attr.id]=\"question.noEntriesTextId\">\n <sv-ng-string [model]=\"question.locNoEntriesText\"></sv-ng-string>\n </span>\n <ng-template [component]=\"{ name: 'sv-action-bar', data: { model: question.footerToolbar } }\" *ngIf=\"question.getShowPlaceholderToolbar()\"></ng-template>\n</div> ", components: [{ type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
4846
5289
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PanelDynamicPlaceholderComponent, decorators: [{
|
|
4847
5290
|
type: i0.Component,
|
|
4848
5291
|
args: [{
|
|
@@ -5379,7 +5822,7 @@
|
|
|
5379
5822
|
return MatrixDynamicPlaceholderComponent;
|
|
5380
5823
|
}());
|
|
5381
5824
|
MatrixDynamicPlaceholderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MatrixDynamicPlaceholderComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5382
|
-
MatrixDynamicPlaceholderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MatrixDynamicPlaceholderComponent, selector: "sv-ng-placeholder-matrixdynamic", inputs: { question: "question" }, ngImport: i0__namespace, template: "<div [class]=\"question.cssClasses.noRowsSection\">\n <div [class]=\"question.cssClasses.noRowsText\">\n <sv-ng-string [model]=\"question.locNoRowsText\"></sv-ng-string>\n </div>\n <sv-ng-action-bar *ngIf=\"question.getShowPlaceholderToolbar()\" [model]=\"question.toolbar\"></sv-ng-action-bar>\n</div> ", components: [{ type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }, { type: ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
5825
|
+
MatrixDynamicPlaceholderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MatrixDynamicPlaceholderComponent, selector: "sv-ng-placeholder-matrixdynamic", inputs: { question: "question" }, ngImport: i0__namespace, template: "<div [class]=\"question.cssClasses.noRowsSection\">\n <div [attr.id]=\"question.noRowsTextId\" [class]=\"question.cssClasses.noRowsText\">\n <sv-ng-string [model]=\"question.locNoRowsText\"></sv-ng-string>\n </div>\n <sv-ng-action-bar *ngIf=\"question.getShowPlaceholderToolbar()\" [model]=\"question.toolbar\"></sv-ng-action-bar>\n</div> ", components: [{ type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }, { type: ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
5383
5826
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MatrixDynamicPlaceholderComponent, decorators: [{
|
|
5384
5827
|
type: i0.Component,
|
|
5385
5828
|
args: [{
|
|
@@ -5720,6 +6163,8 @@
|
|
|
5720
6163
|
CharacterCounterComponent, ListComponent, ListItemComponent, ListItemContentComponent, ListLoadingComponent, ListItemGroupComponent, RatingItemComponent, RatingItemStarComponent, RatingItemSmileyComponent,
|
|
5721
6164
|
TagboxFilterComponent, TagboxComponent, TagboxQuestionComponent, TagboxItemComponent,
|
|
5722
6165
|
ActionBarComponent, SortBarLevelComponent, ActionComponent, ActionBarItemComponent, ActionBarItemDropdownComponent, HtmlQuestionComponent,
|
|
6166
|
+
FilterQuestionComponent, FilterChipsComponent, FilterChipComponent, FilterListItemComponent,
|
|
6167
|
+
FilterEditorPageComponent, FilterFieldPopupComponent, FilterSaveAsPopupComponent, FilterModalComponent, FilterPresetDialogComponent,
|
|
5723
6168
|
SelectBaseItemComponent, SelectBaseComponent, SurveyCommentComponent, SurveyCommentChoiceComponent, ElementHeaderComponent, ElementTitleActionsComponent, ElementTitleComponent, DynamicHeadComponent, RowComponent,
|
|
5724
6169
|
RatingQuestionComponent, SliderQuestionComponent, SliderLabelItemComponent, RatingDropdownItemComponent, RatingDropdownComponent, ButtonGroupDropdownComponent, BooleanQuestionComponent, BooleanCheckboxComponent, BooleanRadioComponent, BooleanRadioItemComponent, BooleanSwitchComponent, ImagePickerItemComponent, ImagePickerQuestionComponent, ImageQuestionComponent,
|
|
5725
6170
|
SurveyHeaderComponent, ProgressDefaultComponent, ProgressButtonsComponent, ProgressTocComponent, MatrixQuestionComponent, SvgIconComponent, FileQuestionComponent, SafeUrlPipe, SafeHtmlPipe, CommentQuestionComponent, SignaturePadQuestionComponent, ErrorsComponent,
|
|
@@ -5739,6 +6184,8 @@
|
|
|
5739
6184
|
CharacterCounterComponent, ListComponent, ListItemComponent, ListItemContentComponent, ListLoadingComponent, ListItemGroupComponent, RatingItemComponent, RatingItemStarComponent, RatingItemSmileyComponent,
|
|
5740
6185
|
TagboxFilterComponent, TagboxComponent, TagboxQuestionComponent, TagboxItemComponent,
|
|
5741
6186
|
ActionBarComponent, SortBarLevelComponent, ActionComponent, ActionBarItemComponent, ActionBarItemDropdownComponent, HtmlQuestionComponent,
|
|
6187
|
+
FilterQuestionComponent, FilterChipComponent, FilterListItemComponent,
|
|
6188
|
+
FilterFieldPopupComponent, FilterSaveAsPopupComponent, FilterModalComponent, FilterPresetDialogComponent,
|
|
5742
6189
|
SelectBaseItemComponent, SelectBaseComponent, SurveyCommentComponent, SurveyCommentChoiceComponent, ElementHeaderComponent, ElementTitleComponent, DynamicHeadComponent, RowComponent,
|
|
5743
6190
|
RatingQuestionComponent, SliderQuestionComponent, SliderLabelItemComponent, RatingDropdownItemComponent, RatingDropdownComponent, ButtonGroupDropdownComponent, BooleanQuestionComponent, BooleanCheckboxComponent, BooleanRadioComponent, BooleanRadioItemComponent, BooleanSwitchComponent, ImagePickerItemComponent, ImagePickerQuestionComponent, ImageQuestionComponent,
|
|
5744
6191
|
SurveyHeaderComponent, ProgressDefaultComponent, ProgressButtonsComponent, MatrixQuestionComponent, SvgIconComponent, FileQuestionComponent, SafeUrlPipe, SafeHtmlPipe, CommentQuestionComponent, SignaturePadQuestionComponent, ErrorsComponent,
|
|
@@ -5764,6 +6211,8 @@
|
|
|
5764
6211
|
CharacterCounterComponent, ListComponent, ListItemComponent, ListItemContentComponent, ListLoadingComponent, ListItemGroupComponent, RatingItemComponent, RatingItemStarComponent, RatingItemSmileyComponent,
|
|
5765
6212
|
TagboxFilterComponent, TagboxComponent, TagboxQuestionComponent, TagboxItemComponent,
|
|
5766
6213
|
ActionBarComponent, SortBarLevelComponent, ActionComponent, ActionBarItemComponent, ActionBarItemDropdownComponent, HtmlQuestionComponent,
|
|
6214
|
+
FilterQuestionComponent, FilterChipsComponent, FilterChipComponent, FilterListItemComponent,
|
|
6215
|
+
FilterEditorPageComponent, FilterFieldPopupComponent, FilterSaveAsPopupComponent, FilterModalComponent, FilterPresetDialogComponent,
|
|
5767
6216
|
SelectBaseItemComponent, SelectBaseComponent, SurveyCommentComponent, SurveyCommentChoiceComponent, ElementHeaderComponent, ElementTitleActionsComponent, ElementTitleComponent, DynamicHeadComponent, RowComponent,
|
|
5768
6217
|
RatingQuestionComponent, SliderQuestionComponent, SliderLabelItemComponent, RatingDropdownItemComponent, RatingDropdownComponent, ButtonGroupDropdownComponent, BooleanQuestionComponent, BooleanCheckboxComponent, BooleanRadioComponent, BooleanRadioItemComponent, BooleanSwitchComponent, ImagePickerItemComponent, ImagePickerQuestionComponent, ImageQuestionComponent,
|
|
5769
6218
|
SurveyHeaderComponent, ProgressDefaultComponent, ProgressButtonsComponent, ProgressTocComponent, MatrixQuestionComponent, SvgIconComponent, FileQuestionComponent, SafeUrlPipe, SafeHtmlPipe, CommentQuestionComponent, SignaturePadQuestionComponent, ErrorsComponent,
|
|
@@ -5789,6 +6238,8 @@
|
|
|
5789
6238
|
CharacterCounterComponent, ListComponent, ListItemComponent, ListItemContentComponent, ListLoadingComponent, ListItemGroupComponent, RatingItemComponent, RatingItemStarComponent, RatingItemSmileyComponent,
|
|
5790
6239
|
TagboxFilterComponent, TagboxComponent, TagboxQuestionComponent, TagboxItemComponent,
|
|
5791
6240
|
ActionBarComponent, SortBarLevelComponent, ActionComponent, ActionBarItemComponent, ActionBarItemDropdownComponent, HtmlQuestionComponent,
|
|
6241
|
+
FilterQuestionComponent, FilterChipComponent, FilterListItemComponent,
|
|
6242
|
+
FilterFieldPopupComponent, FilterSaveAsPopupComponent, FilterModalComponent, FilterPresetDialogComponent,
|
|
5792
6243
|
SelectBaseItemComponent, SelectBaseComponent, SurveyCommentComponent, SurveyCommentChoiceComponent, ElementHeaderComponent, ElementTitleComponent, DynamicHeadComponent, RowComponent,
|
|
5793
6244
|
RatingQuestionComponent, SliderQuestionComponent, SliderLabelItemComponent, RatingDropdownItemComponent, RatingDropdownComponent, ButtonGroupDropdownComponent, BooleanQuestionComponent, BooleanCheckboxComponent, BooleanRadioComponent, BooleanRadioItemComponent, BooleanSwitchComponent, ImagePickerItemComponent, ImagePickerQuestionComponent, ImageQuestionComponent,
|
|
5794
6245
|
SurveyHeaderComponent, ProgressDefaultComponent, ProgressButtonsComponent, MatrixQuestionComponent, SvgIconComponent, FileQuestionComponent, SafeUrlPipe, SafeHtmlPipe, CommentQuestionComponent, SignaturePadQuestionComponent, ErrorsComponent,
|
|
@@ -5846,6 +6297,13 @@
|
|
|
5846
6297
|
exports.FilePageComponent = FilePageComponent;
|
|
5847
6298
|
exports.FilePreviewComponent = FilePreviewComponent;
|
|
5848
6299
|
exports.FileQuestionComponent = FileQuestionComponent;
|
|
6300
|
+
exports.FilterChipComponent = FilterChipComponent;
|
|
6301
|
+
exports.FilterFieldPopupComponent = FilterFieldPopupComponent;
|
|
6302
|
+
exports.FilterListItemComponent = FilterListItemComponent;
|
|
6303
|
+
exports.FilterModalComponent = FilterModalComponent;
|
|
6304
|
+
exports.FilterPresetDialogComponent = FilterPresetDialogComponent;
|
|
6305
|
+
exports.FilterQuestionComponent = FilterQuestionComponent;
|
|
6306
|
+
exports.FilterSaveAsPopupComponent = FilterSaveAsPopupComponent;
|
|
5849
6307
|
exports.HeaderCellComponent = HeaderCellComponent;
|
|
5850
6308
|
exports.HeaderComponent = HeaderComponent;
|
|
5851
6309
|
exports.HeaderMobileComponent = HeaderMobileComponent;
|