survey-angular-ui 3.2.4 → 3.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/angular-ui.d.ts +7 -0
- package/angular-ui.module.d.ts +96 -87
- package/bundles/survey-angular-ui.umd.js +640 -173
- 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/file/file-page.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/skeleton/skeleton.component.js +2 -2
- package/esm2015/components/timer-panel/timer-panel.component.js +2 -2
- package/esm2015/components-container.component.js +8 -4
- package/esm2015/panel.component.js +2 -2
- package/esm2015/question.component.js +2 -2
- package/esm2015/questions/imagemap.component.js +2 -2
- package/esm2015/questions/slider.component.js +2 -2
- package/esm2015/survey-content.component.js +2 -2
- package/fesm2015/survey-angular-ui.js +508 -138
- package/fesm2015/survey-angular-ui.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { TemplateRef, Component, ViewChild, NgModuleRef, Directive, Input, VERSION, Injectable, HostBinding, Pipe, ElementRef, HostListener, ViewContainerRef, NgModule } from '@angular/core';
|
|
3
3
|
import * as Survey from 'survey-core';
|
|
4
|
-
import { PopupModalManager, settings, ScrollViewModel, SvgRegistry, addIconsToThemeSet, PopupSurveyModel, LocalizableString, ResizeManager, createPopupViewModel, Helpers, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, RendererFactory, ButtonGroupItemModel, ActionDropdownViewModel, SurveyProgressModel, SurveyModel } from 'survey-core';
|
|
4
|
+
import { PopupModalManager, settings, ScrollViewModel, SvgRegistry, addIconsToThemeSet, PopupSurveyModel, LocalizableString, ResizeManager, createPopupViewModel, Helpers, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, RendererFactory, ButtonGroupItemModel, ActionDropdownViewModel, filterChipComponentName, filterListItemComponentName, filterFieldPopupComponentName, filterSaveAsPopupComponentName, filterModalComponentName, filterPresetDialogComponentName, SurveyProgressModel, SurveyModel } from 'survey-core';
|
|
5
5
|
import { icons } from 'survey-core/icons/iconsV2';
|
|
6
6
|
import { DomPortalOutlet, ComponentPortal } from '@angular/cdk/portal';
|
|
7
7
|
import * as i1 from '@angular/common';
|
|
@@ -827,7 +827,7 @@ class SurveyContentComponent extends BaseAngular {
|
|
|
827
827
|
}
|
|
828
828
|
}
|
|
829
829
|
SurveyContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SurveyContentComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
830
|
-
SurveyContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SurveyContentComponent, selector: "survey-content", inputs: { model: "model" }, viewQueries: [{ propertyName: "rootEl", first: true, predicate: ["surveyContainer"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <div #surveyContainer *ngIf=\"!!model\" [class]=\"model.getRootCss()\" [style]=\"model.themeVariables\" [lang]=\"model.rootLang\" [dir]=\"model.localeDir\">\n <sv-scroll [disabled]=\"model.rootScrollDisabled\">\n <sv-svg-bundle *ngIf=\"model.needRenderIcons\"></sv-svg-bundle>\n <div [class]=\"model.wrapperFormCss\">\n <div *ngIf=\"!!model.renderBackgroundImage\" [class]=\"model.css.rootBackgroundImage\" [style]=\"model.backgroundImageStyle\"></div>\n <form
|
|
830
|
+
SurveyContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SurveyContentComponent, selector: "survey-content", inputs: { model: "model" }, viewQueries: [{ propertyName: "rootEl", first: true, predicate: ["surveyContainer"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <div #surveyContainer *ngIf=\"!!model\" [class]=\"model.getRootCss()\" [style]=\"model.themeVariables\" [lang]=\"model.rootLang\" [dir]=\"model.localeDir\">\n <sv-scroll [disabled]=\"model.rootScrollDisabled\">\n <sv-svg-bundle *ngIf=\"model.needRenderIcons\"></sv-svg-bundle>\n <div [class]=\"model.wrapperFormCss\">\n <div *ngIf=\"!!model.renderBackgroundImage\" [class]=\"model.css.rootBackgroundImage\" [style]=\"model.backgroundImageStyle\"></div>\n <form (submit)=\"$event.preventDefault()\">\n <sv-scroll [disabled]=\"model.formScrollDisabled\">\n <div class=\"sv_custom_header\" [hidden]=\"model.hasLogo\"></div>\n <div [class]=\"model.css.container\">\n <div *ngIf=\"model.headerView === 'basic' && model.renderedHasHeader\" [class]=\"model.css.header\" [survey]=\"model\" sv-ng-survey-header></div>\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'header', needRenderWrapper: false } }\"></ng-template>\n <div *ngIf=\"model.isShowingPage\" [class]=\"model.bodyContainerCss\">\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'left' } }\"></ng-template>\n <div class=\"sv-components-column sv-components-column--expandable\">\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'center' } }\"></ng-template>\n <div [class]=\"model.bodyCss\" [style.maxWidth]=\"model.renderedWidth\" [id]=\"model.activePage ? model.activePage.id : ''\">\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'contentTop' } }\"></ng-template>\n <ng-container *ngIf=\"model.activePage\">\n <!-- <sv-ng-page [model]=\"model.activePage\" [survey]=\"model\"></sv-ng-page> -->\n <ng-template [component]=\"{ name: model.pageComponent || 'sv-page', data: { model: model.activePage, survey: model } }\"></ng-template>\n </ng-container>\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'contentBottom' } }\"></ng-template>\n <sv-brand-info *ngIf=\"model.showBrandInfo\"></sv-brand-info>\n </div>\n </div>\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'right' } }\"></ng-template>\n </div>\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'footer', needRenderWrapper: false } }\"></ng-template>\n <div *ngIf=\"model.state === 'completed' && model.showCompletedPage\" [class]=\"model.completedCss\"\n [innerHtml]=\"model.processedCompletedHtml | safeHtml\"></div>\n <ng-template *ngIf=\"model.state === 'completed' && model.showCompletedPage\" [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'completePage' } }\"></ng-template>\n <div *ngIf=\"model.state === 'completedbefore'\" [class]=\"model.completedBeforeCss\"\n [innerHtml]=\"model.processedCompletedBeforeHtml | safeHtml\"></div>\n <div *ngIf=\"model.state === 'loading'\" [class]=\"model.loadingBodyCss\" [innerHtml]=\"model.processedLoadingHtml\"></div>\n <div *ngIf=\"model.state === 'empty'\" [class]=\"model.css.bodyEmpty\">{{model.emptySurveyText}}</div>\n </div>\n </sv-scroll>\n </form>\n <sv-notifier [notifier]=\"model.notifier\"></sv-notifier>\n </div>\n </sv-scroll>\n </div>\n</ng-template>", components: [{ type: ScrollComponent, selector: "sv-scroll", inputs: ["disabled", "onInnerHeightChanged"] }, { type: SvgBundleComponent, selector: "sv-svg-bundle" }, { type: SurveyHeaderComponent, selector: "'[sv-ng-survey-header]'", inputs: ["survey"] }, { type: BrandInfoComponent, selector: "sv-brand-info" }, { type: NotifierComponent, selector: "sv-notifier", inputs: ["notifier"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i2.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }], pipes: { "safeHtml": SafeHtmlPipe } });
|
|
831
831
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SurveyContentComponent, decorators: [{
|
|
832
832
|
type: Component,
|
|
833
833
|
args: [{
|
|
@@ -1349,7 +1349,7 @@ class QuestionComponent extends EmbeddedViewContentComponent {
|
|
|
1349
1349
|
}
|
|
1350
1350
|
}
|
|
1351
1351
|
QuestionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: QuestionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1352
|
-
QuestionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: QuestionComponent, selector: "sv-ng-question", inputs: { model: "model", css: "css", survey: "survey" }, viewQueries: [{ propertyName: "rootEl", first: true, predicate: ["elementContainer"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <div *ngIf=\"!!model\" #elementContainer [class]=\"model.getRootCss()\" [style]=\"model.getRootStyle()\" [id]=\"model.
|
|
1352
|
+
QuestionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: QuestionComponent, selector: "sv-ng-question", inputs: { model: "model", css: "css", survey: "survey" }, viewQueries: [{ propertyName: "rootEl", first: true, predicate: ["elementContainer"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <div *ngIf=\"!!model\" #elementContainer [class]=\"model.getRootCss()\" [style]=\"model.getRootStyle()\" [id]=\"model.renderedId\"\n [attr.data-name]=\"model.name\" [attr.role]=\"model.ariaRole\" [attr.aria-required]=\"model.ariaRequired\"\n [attr.aria-invalid]=\"model.ariaInvalid\" [attr.aria-label]=\"model.ariaLabel\"\n [attr.aria-labelledby]=\"model.ariaLabelledBy\" [attr.aria-describedby]=\"model.ariaDescribedBy\"\n [attr.aria-expanded]=\"model.ariaExpanded\"\n (click)=\"model.clickRootFunction && model.clickRootFunction($event)\">\n <sv-breadcrumbs\n *ngIf=\"model.singleInputHasActions\"\n [model]=\"model.singleInputActions\"\n [css]=\"model.cssClasses\"\n ></sv-breadcrumbs>\n <div [class]=\"model.getQuestionContainerCss()\">\n <div *ngIf=\"model.showErrorsAboveQuestion && model.hasVisibleErrors\" [element]=\"model\" sv-ng-errors></div>\n <div [class]=\"model.getHeaderAndContentContainerCss()\">\n <div [element]=\"model\" *ngIf=\"model.hasTitleOnLeftTop\" sv-ng-element-header></div>\n <sv-single-input-summary\n *ngIf=\"!!model.singleInputSummary\"\n [model]=\"model.singleInputSummary\"\n [css]=\"model.cssClasses\"\n ></sv-single-input-summary>\n <sv-ng-element\n *ngIf=\"!model.singleInputSummary && !!singleQuestion\"\n [model]=\"singleQuestion\"\n ></sv-ng-element>\n <ng-template\n *ngIf=\"!model.singleInputSummary && !singleQuestion\"\n [component]=\"{ name: getQuestionContentWrapperComponentName(), data: getQuestionContentWrapperComponentData() }\">\n <div [class]=\"model.cssContent\" role=\"presentation\" [visible]=\"model.renderedIsExpanded\" [attr.aria-hidden]=\"model.contentAriaHidden\" [attr.data-sv-drop-target-matrix-row]=\"model.dragDropMatrixAttribute\" [attr.data-sv-drop-target-matrix]=\"model.dragDropMatrixAttribute\">\n <ng-template\n [component]=\"{ name: getComponentName(), data: { model: model }, default: 'skeleton-question' }\"></ng-template>\n <div *ngIf=\"model.hasComment\" [class]=\"model.getCommentAreaCss(false)\">\n <div [model]=\"model.locCommentText\" sv-ng-string></div>\n <sv-ng-comment [question]=\"model\"></sv-ng-comment>\n </div>\n <div *ngIf=\"model.hasDescriptionUnderInput\" [class]=\"model.cssDescription\" [attr.id]=\"model.ariaDescriptionId\"\n [model]=\"model.locDescription\" sv-ng-string></div>\n </div>\n </ng-template>\n <div [element]=\"model\" *ngIf=\"model.hasTitleOnBottom\" sv-ng-element-header></div>\n </div>\n <div *ngIf=\"model.showErrorsBelowQuestion && model.hasVisibleErrors\" [element]=\"model\" sv-ng-errors></div>\n </div>\n </div>\n <sv-ng-question-hint *ngIf=\"model.canShowKeyboardHints()\" [question]=\"model\"></sv-ng-question-hint>\n</ng-template>", components: [{ type: BreadcrumbsComponent, selector: "sv-breadcrumbs", inputs: ["model", "css"] }, { type: ErrorsComponent, selector: "'[sv-ng-errors]'", inputs: ["element", "location"] }, { type: ElementHeaderComponent, selector: "'[sv-ng-element-header]'", inputs: ["element"] }, { type: SingleInputSummaryComponent, selector: "sv-single-input-summary", inputs: ["model", "css"] }, { type: ElementComponent, selector: "sv-ng-element", inputs: ["model"] }, { type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }, { type: SurveyCommentComponent, selector: "sv-ng-comment, '[sv-ng-comment]'", inputs: ["question"] }, { type: QuestionHintComponent, selector: "sv-ng-question-hint", inputs: ["question"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }, { type: VisibleDirective, selector: "[visible]", inputs: ["visible"] }] });
|
|
1353
1353
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: QuestionComponent, decorators: [{
|
|
1354
1354
|
type: Component,
|
|
1355
1355
|
args: [{
|
|
@@ -2315,7 +2315,7 @@ AngularComponentFactory.Instance.registerComponent("imagepicker-question", Image
|
|
|
2315
2315
|
class ImageMapQuestionComponent extends QuestionAngular {
|
|
2316
2316
|
}
|
|
2317
2317
|
ImageMapQuestionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ImageMapQuestionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2318
|
-
ImageMapQuestionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ImageMapQuestionComponent, selector: "sv-ng-imagemap-component", usesInheritance: true, ngImport: i0, template: "<div\n [class]=\"model.cssClasses.root\"\n #contentElement\n >\n <img [class]=\"model.cssClasses.bg\" [id]=\"model.
|
|
2318
|
+
ImageMapQuestionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ImageMapQuestionComponent, selector: "sv-ng-imagemap-component", usesInheritance: true, ngImport: i0, template: "<div\n [class]=\"model.cssClasses.root\"\n #contentElement\n >\n <img [class]=\"model.cssClasses.bg\" [id]=\"model.renderedId + '-bg'\" [src]=\"model.imageLink | safeUrl\" role=\"presentation\">\n <svg [class]=\"model.cssClasses.svg\" [id]=\"model.renderedId + '-svg'\"></svg>\n</div>", pipes: { "safeUrl": SafeUrlPipe } });
|
|
2319
2319
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ImageMapQuestionComponent, decorators: [{
|
|
2320
2320
|
type: Component,
|
|
2321
2321
|
args: [{
|
|
@@ -2358,7 +2358,7 @@ class SliderQuestionComponent extends QuestionAngular {
|
|
|
2358
2358
|
}
|
|
2359
2359
|
}
|
|
2360
2360
|
SliderQuestionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SliderQuestionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2361
|
-
SliderQuestionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SliderQuestionComponent, selector: "sv-ng-slider-question", viewQueries: [{ propertyName: "rangeInputRef", first: true, predicate: ["rangeInputRef"], descendants: true }], usesInheritance: true, ngImport: i0, template: "\n<div [class]=\"model.rootCss\" #contentElement>\n <input *ngIf=\"model.sliderType !== 'single' && model.allowDragRange\" #rangeInputRef\n name=\"range-input\" [class]=\"model.cssClasses.input\" type=\"range\" tabIndex=\"-1\"\n [attr.id]=\"model.
|
|
2361
|
+
SliderQuestionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SliderQuestionComponent, selector: "sv-ng-slider-question", viewQueries: [{ propertyName: "rangeInputRef", first: true, predicate: ["rangeInputRef"], descendants: true }], usesInheritance: true, ngImport: i0, template: "\n<div [class]=\"model.rootCss\" #contentElement>\n <input *ngIf=\"model.sliderType !== 'single' && model.allowDragRange\" #rangeInputRef\n name=\"range-input\" [class]=\"model.cssClasses.input\" type=\"range\" tabIndex=\"-1\"\n [attr.id]=\"model.renderedId + '-sjs-slider-input-range-input'\"\n [attr.min]=\"model.min\" [attr.max]=\"model.max\" [attr.step]=\"model.step\" aria-hidden=\"true\"\n (input)=\"model.handleRangeOnChange($any($event))\"\n (pointerdown)=\"model.handleRangePointerDown($any($event), rootRef)\"\n (pointerup)=\"model.handleRangePointerUp($any($event), rangeInputRef)\" />\n \n <div [class]=\"model.cssClasses.visualContainer\" (pointerup)=\"model.setValueByClickOnPath($any($event), rootRef)\">\n <div [class]=\"model.cssClasses.visualContainerSlider\">\n <div [class]=\"model.cssClasses.inverseTrackLeft\" [style]=\"{ width: model.getTrackPercentLeft() + '%' }\"></div>\n <div [class]=\"model.cssClasses.inverseTrackRight\" [style]=\"{ width: model.getTrackPercentRight() + '%' }\"></div>\n <div [class]=\"model.cssClasses.rangeTrack\" [style]=\"{ left: model.getTrackPercentLeft() + '%', right: model.getTrackPercentRight() + '%' }\" ></div>\n\n <ng-container *ngFor=\"let value of valueArray; index as i; trackBy: trackByRenderedValue;\">\n <input [class]=\"model.cssClasses.input\" [attr.id]=\"model.renderedId + '-sjs-slider-input-' + i\" type=\"range\" [value]=\"value\" \n [attr.min]=\"model.min\" [attr.max]=\"model.max\" [attr.step]=\"model.step\" [disabled]=\"model.isDisabledAttr\"\n (input)=\"model.handleOnChange($any($event), i)\"\n (pointerdown)=\"model.handlePointerDown($any($event))\"\n (pointerup)=\"model.handlePointerUp($any($event))\"\n (keydown)=\"model.handleKeyDown($any($event))\"\n (keyup)=\"model.handleKeyUp($any($event))\"\n (focus)=\"model.handleOnFocus(i)\"\n (blur)=\"model.handleOnBlur()\"\n [attr.aria-required]=\"model.a11y_input_ariaRequired\"\n [attr.aria-label]=\"model.a11y_input_ariaLabel\"\n [attr.aria-labelledby]=\"model.a11y_input_ariaLabelledBy\"\n [attr.aria-describedby]=\"model.a11y_input_ariaDescribedBy\"\n [attr.aria-invalid]=\"model.a11y_input_ariaInvalid\"\n [attr.aria-errormessage]=\"model.a11y_input_ariaErrormessage\"\n />\n <div [class]=\"model.getThumbContainerCss(i)\" [style]=\"{ left: model.getPercent(value) + '%' }\">\n <div *ngIf=\"model.tooltipVisibility !== 'never'\" [class]=\"model.tooltipCss\">\n <div [class]=\"model.cssClasses.tooltipPanel\">\n <div [class]=\"model.cssClasses.tooltipValue\">{{model.getTooltipValue(i)}}</div>\n </div>\n </div>\n <div [class]=\"model.cssClasses.thumb\">\n <div [class]=\"model.cssClasses.thumbDot\"></div>\n </div>\n </div>\n </ng-container>\n\n </div>\n </div>\n\n <div *ngIf=\"model.showLabels\" [class]=\"model.cssClasses.labelsContainer\">\n <div>\n <ng-template *ngFor=\"let label of model.renderedLabels; index as i; trackBy: trackByLabelCount;\" [component]=\"{ name: 'sv-slider-label-item', data: {model: model, item: label }}\"></ng-template>\n </div>\n </div>\n</div>\n", directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
2362
2362
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SliderQuestionComponent, decorators: [{
|
|
2363
2363
|
type: Component,
|
|
2364
2364
|
args: [{
|
|
@@ -2434,15 +2434,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
2434
2434
|
AngularComponentFactory.Instance.registerComponent("buttongroup-question", ButtonGroupQuestionComponent);
|
|
2435
2435
|
|
|
2436
2436
|
class ComponentsContainerComponent extends EmbeddedViewContentComponent {
|
|
2437
|
-
get
|
|
2438
|
-
return this.survey.
|
|
2437
|
+
get groups() {
|
|
2438
|
+
return this.survey.getContainerContentGroups(this.container);
|
|
2439
2439
|
}
|
|
2440
2440
|
get isNeedRenderWrapper() {
|
|
2441
2441
|
return this.needRenderWrapper === false ? false : true;
|
|
2442
2442
|
}
|
|
2443
|
+
// groups builds new objects on every check; tracking by key keeps the rendered components.
|
|
2444
|
+
trackGroupByKey(_, group) {
|
|
2445
|
+
return group.key;
|
|
2446
|
+
}
|
|
2443
2447
|
}
|
|
2444
2448
|
ComponentsContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ComponentsContainerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2445
|
-
ComponentsContainerComponent.ɵcmp = i0.ɵɵ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, template: "<ng-template #template>\n <ng-container *ngIf=\"
|
|
2449
|
+
ComponentsContainerComponent.ɵcmp = i0.ɵɵ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, 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
2446
2450
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ComponentsContainerComponent, decorators: [{
|
|
2447
2451
|
type: Component,
|
|
2448
2452
|
args: [{
|
|
@@ -2494,7 +2498,7 @@ class ActionBarItemComponent extends BaseAngular {
|
|
|
2494
2498
|
}
|
|
2495
2499
|
}
|
|
2496
2500
|
ActionBarItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ActionBarItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2497
|
-
ActionBarItemComponent.ɵcmp = i0.ɵɵ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, 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }] });
|
|
2501
|
+
ActionBarItemComponent.ɵcmp = i0.ɵɵ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, 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }] });
|
|
2498
2502
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ActionBarItemComponent, decorators: [{
|
|
2499
2503
|
type: Component,
|
|
2500
2504
|
args: [{
|
|
@@ -2510,6 +2514,485 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
2510
2514
|
}] } });
|
|
2511
2515
|
AngularComponentFactory.Instance.registerComponent("sv-action-bar-item", ActionBarItemComponent);
|
|
2512
2516
|
|
|
2517
|
+
// The chips row of the Filter Control. Its model is the layout that cuts the row to one row, so a
|
|
2518
|
+
// change of it (Show More, the measured fit) redraws the row. The layout measures the row again
|
|
2519
|
+
// itself whenever it changes: the component only attaches it and detaches it.
|
|
2520
|
+
class FilterChipsComponent extends BaseAngular {
|
|
2521
|
+
// A disposed question has released its layout, and asking for it would build a new one.
|
|
2522
|
+
getModel() {
|
|
2523
|
+
return !!this.question && !this.question.isDisposed ? this.question.chipsLayout : undefined;
|
|
2524
|
+
}
|
|
2525
|
+
// #chips is in an embedded view created late, so this is tried on every check until the ref exists;
|
|
2526
|
+
// attach() returns at once for the element it already has.
|
|
2527
|
+
ngAfterViewChecked() {
|
|
2528
|
+
super.ngAfterViewChecked();
|
|
2529
|
+
const layout = this.getModel();
|
|
2530
|
+
if (!!layout && !!this.chipsRef) {
|
|
2531
|
+
layout.attach(this.chipsRef.nativeElement);
|
|
2532
|
+
}
|
|
2533
|
+
}
|
|
2534
|
+
ngOnDestroy() {
|
|
2535
|
+
const layout = this.getModel();
|
|
2536
|
+
if (!!layout) {
|
|
2537
|
+
layout.detach();
|
|
2538
|
+
}
|
|
2539
|
+
super.ngOnDestroy();
|
|
2540
|
+
}
|
|
2541
|
+
}
|
|
2542
|
+
FilterChipsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FilterChipsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2543
|
+
FilterChipsComponent.ɵcmp = i0.ɵɵ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, 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"] }] });
|
|
2544
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FilterChipsComponent, decorators: [{
|
|
2545
|
+
type: Component,
|
|
2546
|
+
args: [{
|
|
2547
|
+
selector: "sv-ng-filter-chips",
|
|
2548
|
+
templateUrl: "./filter-chips.component.html",
|
|
2549
|
+
styleUrls: ["../../hide-host.scss"]
|
|
2550
|
+
}]
|
|
2551
|
+
}], propDecorators: { question: [{
|
|
2552
|
+
type: Input
|
|
2553
|
+
}], chipsRef: [{
|
|
2554
|
+
type: ViewChild,
|
|
2555
|
+
args: ["chips"]
|
|
2556
|
+
}] } });
|
|
2557
|
+
|
|
2558
|
+
// The Filter Control (#11890), as packages/survey-react-ui/src/components/filter/filter.tsx draws it.
|
|
2559
|
+
// The chips row is its own component: it watches the layout that cuts the row to one row. The chips'
|
|
2560
|
+
// popups are drawn outside the chips row: on a phone the row scrolls sideways, and iOS Safari keeps a
|
|
2561
|
+
// fixed popup inside such a row.
|
|
2562
|
+
class FilterQuestionComponent extends QuestionAngular {
|
|
2563
|
+
constructor() {
|
|
2564
|
+
super(...arguments);
|
|
2565
|
+
this.trackChipBy = (_, chip) => chip.id;
|
|
2566
|
+
}
|
|
2567
|
+
onSearchInput(event) {
|
|
2568
|
+
this.model.searchString = event.target.value;
|
|
2569
|
+
}
|
|
2570
|
+
}
|
|
2571
|
+
FilterQuestionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FilterQuestionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2572
|
+
FilterQuestionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FilterQuestionComponent, selector: "sv-ng-filter-question", usesInheritance: true, ngImport: i0, 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
2573
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FilterQuestionComponent, decorators: [{
|
|
2574
|
+
type: Component,
|
|
2575
|
+
args: [{
|
|
2576
|
+
selector: "sv-ng-filter-question",
|
|
2577
|
+
templateUrl: "./filter-question.component.html"
|
|
2578
|
+
}]
|
|
2579
|
+
}] });
|
|
2580
|
+
AngularComponentFactory.Instance.registerComponent("filter-question", FilterQuestionComponent);
|
|
2581
|
+
|
|
2582
|
+
// A chip of the Filter Control (FilterChip): the standard action button (sv-action-bar-item; its
|
|
2583
|
+
// trailing chevron is the item's markerIconName) and, while the chip can be cleared, its cross - a
|
|
2584
|
+
// button of its own, which the theme draws over the chip's end. Its popup is drawn by the control,
|
|
2585
|
+
// outside the chips row (see QuestionFilterModel.popupChips); the chip only shows that the popup is
|
|
2586
|
+
// open. Not an ActionBarItemComponent: the inner item sets the item's input element - the
|
|
2587
|
+
// button the popup stands against - and that class's ngAfterViewInit here, with no button of its own,
|
|
2588
|
+
// would set it to undefined after.
|
|
2589
|
+
class FilterChipComponent extends BaseAngular {
|
|
2590
|
+
getModel() {
|
|
2591
|
+
return this.model;
|
|
2592
|
+
}
|
|
2593
|
+
ngOnInit() {
|
|
2594
|
+
super.ngOnInit();
|
|
2595
|
+
if (!!this.model && !!this.model.popupModel) {
|
|
2596
|
+
this.viewModel = new ActionDropdownViewModel(this.model);
|
|
2597
|
+
}
|
|
2598
|
+
}
|
|
2599
|
+
ngOnDestroy() {
|
|
2600
|
+
if (!!this.viewModel) {
|
|
2601
|
+
this.viewModel.dispose();
|
|
2602
|
+
this.viewModel = undefined;
|
|
2603
|
+
}
|
|
2604
|
+
super.ngOnDestroy();
|
|
2605
|
+
}
|
|
2606
|
+
}
|
|
2607
|
+
FilterChipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FilterChipComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2608
|
+
FilterChipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FilterChipComponent, selector: "sv-ng-filter-chip", inputs: { model: "model" }, usesInheritance: true, ngImport: i0, 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2609
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FilterChipComponent, decorators: [{
|
|
2610
|
+
type: Component,
|
|
2611
|
+
args: [{
|
|
2612
|
+
selector: "sv-ng-filter-chip",
|
|
2613
|
+
templateUrl: "./filter-chip.component.html",
|
|
2614
|
+
styleUrls: ["../../hide-host.scss"]
|
|
2615
|
+
}]
|
|
2616
|
+
}], propDecorators: { model: [{
|
|
2617
|
+
type: Input
|
|
2618
|
+
}] } });
|
|
2619
|
+
AngularComponentFactory.Instance.registerComponent(filterChipComponentName, FilterChipComponent);
|
|
2620
|
+
|
|
2621
|
+
// An entry of a checkbox list of the Filter Control: drawn checked by the entry's active flag
|
|
2622
|
+
// (FilterFieldPopup keeps it). A value the respondent typed has no remove button: a button inside
|
|
2623
|
+
// a list option is nested interactive content, and unchecking the value is how it goes. The "Add"
|
|
2624
|
+
// entry is its text alone.
|
|
2625
|
+
class FilterListItemComponent extends BaseAngular {
|
|
2626
|
+
getModel() {
|
|
2627
|
+
return this.model;
|
|
2628
|
+
}
|
|
2629
|
+
get popup() {
|
|
2630
|
+
return !!this.model && !!this.model.data ? this.model.data.popup : undefined;
|
|
2631
|
+
}
|
|
2632
|
+
get css() {
|
|
2633
|
+
return this.popup.cssClasses;
|
|
2634
|
+
}
|
|
2635
|
+
}
|
|
2636
|
+
FilterListItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FilterListItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2637
|
+
FilterListItemComponent.ɵcmp = i0.ɵɵ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, 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2638
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FilterListItemComponent, decorators: [{
|
|
2639
|
+
type: Component,
|
|
2640
|
+
args: [{
|
|
2641
|
+
selector: "sv-ng-filter-list-item",
|
|
2642
|
+
templateUrl: "./filter-list-item.component.html",
|
|
2643
|
+
styleUrls: ["../../hide-host.scss"]
|
|
2644
|
+
}]
|
|
2645
|
+
}], propDecorators: { model: [{
|
|
2646
|
+
type: Input
|
|
2647
|
+
}], listModel: [{
|
|
2648
|
+
type: Input
|
|
2649
|
+
}] } });
|
|
2650
|
+
AngularComponentFactory.Instance.registerComponent(filterListItemComponentName, FilterListItemComponent);
|
|
2651
|
+
|
|
2652
|
+
// The content of a popup or a dialog of the Filter Control. Its model is the holder: an emptied
|
|
2653
|
+
// holder unmounts the content before survey-core disposes what it held. What the content shows
|
|
2654
|
+
// besides - the dialog itself and its toolbars - is watched too: BaseAngular watches one model.
|
|
2655
|
+
class FilterHolderComponent extends BaseAngular {
|
|
2656
|
+
constructor() {
|
|
2657
|
+
super(...arguments);
|
|
2658
|
+
this.watchedModels = [];
|
|
2659
|
+
this.onWatchedModelChanged = () => {
|
|
2660
|
+
this.update();
|
|
2661
|
+
};
|
|
2662
|
+
}
|
|
2663
|
+
getModel() {
|
|
2664
|
+
return this.holder;
|
|
2665
|
+
}
|
|
2666
|
+
// A slot is drawn anew at once, not in the next microtask: survey-core disposes what an emptied
|
|
2667
|
+
// slot held right after emptying it, and content drawn after that would read a disposed survey.
|
|
2668
|
+
getPropertiesToUpdateSync() {
|
|
2669
|
+
return ["modal", "fieldPopup", "saveAsPopup", "presetDialog"];
|
|
2670
|
+
}
|
|
2671
|
+
updateWatchedModels() {
|
|
2672
|
+
const models = this.getWatchedModels().filter((model) => !!model && !model.isDisposed);
|
|
2673
|
+
this.watchedModels.filter((model) => models.indexOf(model) < 0).forEach((model) => this.unwatch(model));
|
|
2674
|
+
models.filter((model) => this.watchedModels.indexOf(model) < 0).forEach((model) => {
|
|
2675
|
+
model.addOnPropertyValueChangedCallback(this.onWatchedModelChanged);
|
|
2676
|
+
model.addOnArrayChangedCallback(this.onWatchedModelChanged);
|
|
2677
|
+
});
|
|
2678
|
+
this.watchedModels = models;
|
|
2679
|
+
}
|
|
2680
|
+
unwatch(model) {
|
|
2681
|
+
model.removeOnPropertyValueChangedCallback(this.onWatchedModelChanged);
|
|
2682
|
+
model.removeOnArrayChangedCallback(this.onWatchedModelChanged);
|
|
2683
|
+
}
|
|
2684
|
+
ngDoCheck() {
|
|
2685
|
+
super.ngDoCheck();
|
|
2686
|
+
this.updateWatchedModels();
|
|
2687
|
+
}
|
|
2688
|
+
afterUpdate(isSync = false) {
|
|
2689
|
+
super.afterUpdate(isSync);
|
|
2690
|
+
this.updateWatchedModels();
|
|
2691
|
+
}
|
|
2692
|
+
ngOnDestroy() {
|
|
2693
|
+
this.watchedModels.forEach((model) => this.unwatch(model));
|
|
2694
|
+
this.watchedModels = [];
|
|
2695
|
+
super.ngOnDestroy();
|
|
2696
|
+
}
|
|
2697
|
+
}
|
|
2698
|
+
FilterHolderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FilterHolderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2699
|
+
FilterHolderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FilterHolderComponent, selector: "ng-component", inputs: { holder: "holder" }, usesInheritance: true, ngImport: i0, template: "", isInline: true });
|
|
2700
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FilterHolderComponent, decorators: [{
|
|
2701
|
+
type: Component,
|
|
2702
|
+
args: [{
|
|
2703
|
+
template: ""
|
|
2704
|
+
}]
|
|
2705
|
+
}], propDecorators: { holder: [{
|
|
2706
|
+
type: Input
|
|
2707
|
+
}] } });
|
|
2708
|
+
|
|
2709
|
+
class ListItemComponent extends BaseAngular {
|
|
2710
|
+
get elementId() {
|
|
2711
|
+
var _a;
|
|
2712
|
+
return (_a = this.model) === null || _a === void 0 ? void 0 : _a.elementId;
|
|
2713
|
+
}
|
|
2714
|
+
get ariaSelected() {
|
|
2715
|
+
return this.listModel.getA11yItemAriaSelected(this.model);
|
|
2716
|
+
}
|
|
2717
|
+
get ariaChecked() {
|
|
2718
|
+
return this.listModel.getA11yItemAriaChecked(this.model);
|
|
2719
|
+
}
|
|
2720
|
+
get class() {
|
|
2721
|
+
return this.listModel.getItemClass(this.model);
|
|
2722
|
+
}
|
|
2723
|
+
get itemStyle() {
|
|
2724
|
+
return this.listModel.getItemStyle(this.model);
|
|
2725
|
+
}
|
|
2726
|
+
click(event) {
|
|
2727
|
+
this.listModel.onItemClick(this.model);
|
|
2728
|
+
event.stopPropagation();
|
|
2729
|
+
}
|
|
2730
|
+
pointerdown(event) {
|
|
2731
|
+
this.listModel.onPointerDown(event, this.model);
|
|
2732
|
+
}
|
|
2733
|
+
get itemComponent() {
|
|
2734
|
+
return this.model.component || this.listModel.itemComponent;
|
|
2735
|
+
}
|
|
2736
|
+
get itemComponentData() {
|
|
2737
|
+
const itemData = this.model.data;
|
|
2738
|
+
return {
|
|
2739
|
+
model: this.model,
|
|
2740
|
+
listModel: this.listModel,
|
|
2741
|
+
itemData,
|
|
2742
|
+
survey: itemData === null || itemData === void 0 ? void 0 : itemData.survey,
|
|
2743
|
+
page: itemData === null || itemData === void 0 ? void 0 : itemData.page
|
|
2744
|
+
};
|
|
2745
|
+
}
|
|
2746
|
+
getModel() {
|
|
2747
|
+
return this.model;
|
|
2748
|
+
}
|
|
2749
|
+
ngAfterViewInit() {
|
|
2750
|
+
var _a;
|
|
2751
|
+
if (!!((_a = this.elementRef) === null || _a === void 0 ? void 0 : _a.nativeElement)) {
|
|
2752
|
+
this.listModel.onItemRended(this.model, this.elementRef.nativeElement);
|
|
2753
|
+
}
|
|
2754
|
+
}
|
|
2755
|
+
}
|
|
2756
|
+
ListItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ListItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2757
|
+
ListItemComponent.ɵcmp = i0.ɵɵ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, 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
2758
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ListItemComponent, decorators: [{
|
|
2759
|
+
type: Component,
|
|
2760
|
+
args: [{
|
|
2761
|
+
selector: "sv-ng-list-item, '[sv-ng-list-item]'",
|
|
2762
|
+
templateUrl: "./list-item.component.html",
|
|
2763
|
+
styleUrls: ["../../hide-host.scss"],
|
|
2764
|
+
}]
|
|
2765
|
+
}], propDecorators: { element: [{
|
|
2766
|
+
type: Input
|
|
2767
|
+
}], model: [{
|
|
2768
|
+
type: Input
|
|
2769
|
+
}], listModel: [{
|
|
2770
|
+
type: Input
|
|
2771
|
+
}], elementRef: [{
|
|
2772
|
+
type: ViewChild,
|
|
2773
|
+
args: ["elementRef"]
|
|
2774
|
+
}] } });
|
|
2775
|
+
AngularComponentFactory.Instance.registerComponent("sv-list-item", ListItemComponent);
|
|
2776
|
+
|
|
2777
|
+
class ListComponent extends BaseAngular {
|
|
2778
|
+
constructor() {
|
|
2779
|
+
super(...arguments);
|
|
2780
|
+
this.trackItemBy = (_, item) => {
|
|
2781
|
+
return item.id;
|
|
2782
|
+
};
|
|
2783
|
+
}
|
|
2784
|
+
getModel() {
|
|
2785
|
+
return this.model;
|
|
2786
|
+
}
|
|
2787
|
+
onGoToItems(event) {
|
|
2788
|
+
this.model.goToItems(event);
|
|
2789
|
+
}
|
|
2790
|
+
onMouseDown(event) {
|
|
2791
|
+
event.preventDefault();
|
|
2792
|
+
}
|
|
2793
|
+
onKeyDown(event) {
|
|
2794
|
+
this.model.onKeyDown(event);
|
|
2795
|
+
}
|
|
2796
|
+
onMouseMove(event) {
|
|
2797
|
+
this.model.onMouseMove(event);
|
|
2798
|
+
}
|
|
2799
|
+
getPropertiesToUpdateSync() {
|
|
2800
|
+
return ["renderElements"];
|
|
2801
|
+
}
|
|
2802
|
+
ngAfterViewInit() {
|
|
2803
|
+
var _a;
|
|
2804
|
+
if (!!((_a = this.listContainerElement) === null || _a === void 0 ? void 0 : _a.nativeElement)) {
|
|
2805
|
+
this.model.initListContainerHtmlElement(this.listContainerElement.nativeElement);
|
|
2806
|
+
}
|
|
2807
|
+
}
|
|
2808
|
+
ngOnDestroy() {
|
|
2809
|
+
this.model.initListContainerHtmlElement(undefined);
|
|
2810
|
+
super.ngOnDestroy();
|
|
2811
|
+
}
|
|
2812
|
+
}
|
|
2813
|
+
ListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ListComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2814
|
+
ListComponent.ɵcmp = i0.ɵɵ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, 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.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.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
2815
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ListComponent, decorators: [{
|
|
2816
|
+
type: Component,
|
|
2817
|
+
args: [{
|
|
2818
|
+
selector: "sv-ng-list, '[sv-ng-list]'",
|
|
2819
|
+
templateUrl: "./list.component.html",
|
|
2820
|
+
styleUrls: ["../../hide-host.scss"]
|
|
2821
|
+
}]
|
|
2822
|
+
}], propDecorators: { model: [{
|
|
2823
|
+
type: Input
|
|
2824
|
+
}], listContainerElement: [{
|
|
2825
|
+
type: ViewChild,
|
|
2826
|
+
args: ["listContainerElement"]
|
|
2827
|
+
}] } });
|
|
2828
|
+
AngularComponentFactory.Instance.registerComponent("sv-list", ListComponent);
|
|
2829
|
+
|
|
2830
|
+
// The page of an editor survey of the Filter Control: the Filters dialog's fields, a "condition"
|
|
2831
|
+
// popup's, and a preset dialog's form and survey. It is drawn as a page, not as a whole Survey (a
|
|
2832
|
+
// Survey inside another survey's question would put a <form> inside a <form>). A survey made anew
|
|
2833
|
+
// (another tab's form) is drawn anew: element ids restart in every survey.
|
|
2834
|
+
class FilterEditorPageComponent extends EmbeddedViewContentComponent {
|
|
2835
|
+
get surveys() {
|
|
2836
|
+
return !this.disposed && !!this.survey ? [this.survey] : [];
|
|
2837
|
+
}
|
|
2838
|
+
trackBySurvey(_, survey) {
|
|
2839
|
+
return survey.uniqueId;
|
|
2840
|
+
}
|
|
2841
|
+
// The Survey component would set this; a page rendered on its own leaves it to its host. It is
|
|
2842
|
+
// cleared on destroy, unless something else set it in the meantime.
|
|
2843
|
+
ngAfterViewChecked() {
|
|
2844
|
+
super.ngAfterViewChecked();
|
|
2845
|
+
if (!this.disposed && !!this.survey && !!this.rootRef) {
|
|
2846
|
+
if (this.rootSurvey !== this.survey) {
|
|
2847
|
+
this.clearRootElement();
|
|
2848
|
+
}
|
|
2849
|
+
this.survey.rootElement = this.rootRef.nativeElement;
|
|
2850
|
+
this.rootSurvey = this.survey;
|
|
2851
|
+
this.rootElement = this.rootRef.nativeElement;
|
|
2852
|
+
}
|
|
2853
|
+
}
|
|
2854
|
+
ngOnDestroy() {
|
|
2855
|
+
this.clearRootElement();
|
|
2856
|
+
}
|
|
2857
|
+
clearRootElement() {
|
|
2858
|
+
const survey = this.rootSurvey;
|
|
2859
|
+
if (!!survey && !survey.isDisposed && survey.rootElement === this.rootElement) {
|
|
2860
|
+
survey.rootElement = undefined;
|
|
2861
|
+
}
|
|
2862
|
+
this.rootSurvey = undefined;
|
|
2863
|
+
this.rootElement = undefined;
|
|
2864
|
+
}
|
|
2865
|
+
}
|
|
2866
|
+
FilterEditorPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FilterEditorPageComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2867
|
+
FilterEditorPageComponent.ɵcmp = i0.ɵɵ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, 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.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2868
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FilterEditorPageComponent, decorators: [{
|
|
2869
|
+
type: Component,
|
|
2870
|
+
args: [{
|
|
2871
|
+
selector: "sv-ng-filter-editor-page",
|
|
2872
|
+
templateUrl: "./filter-editor-page.component.html",
|
|
2873
|
+
styleUrls: ["../../hide-host.scss"]
|
|
2874
|
+
}]
|
|
2875
|
+
}], propDecorators: { survey: [{
|
|
2876
|
+
type: Input
|
|
2877
|
+
}], disposed: [{
|
|
2878
|
+
type: Input
|
|
2879
|
+
}], className: [{
|
|
2880
|
+
type: Input
|
|
2881
|
+
}], rootRef: [{
|
|
2882
|
+
type: ViewChild,
|
|
2883
|
+
args: ["root"]
|
|
2884
|
+
}] } });
|
|
2885
|
+
|
|
2886
|
+
// A badge's popup of the Filter Control: the search box (a long list, or one a value can be typed
|
|
2887
|
+
// into), a checkbox list's title row with its link, the list or the operator and value, and Apply.
|
|
2888
|
+
class FilterFieldPopupComponent extends FilterHolderComponent {
|
|
2889
|
+
// The holder empties a slot before it disposes what it held: this is never a disposed popup.
|
|
2890
|
+
get popup() {
|
|
2891
|
+
const holder = this.holder;
|
|
2892
|
+
return !!holder ? holder.fieldPopup : undefined;
|
|
2893
|
+
}
|
|
2894
|
+
getWatchedModels() {
|
|
2895
|
+
const popup = this.popup;
|
|
2896
|
+
return !!popup ? [popup.headerToolbar, popup.footerToolbar, popup.list] : [];
|
|
2897
|
+
}
|
|
2898
|
+
onSearchInput(event) {
|
|
2899
|
+
this.popup.list.filterString = event.target.value;
|
|
2900
|
+
}
|
|
2901
|
+
}
|
|
2902
|
+
FilterFieldPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FilterFieldPopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2903
|
+
FilterFieldPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FilterFieldPopupComponent, selector: "sv-ng-filter-field-popup", usesInheritance: true, ngImport: i0, 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2904
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FilterFieldPopupComponent, decorators: [{
|
|
2905
|
+
type: Component,
|
|
2906
|
+
args: [{
|
|
2907
|
+
selector: "sv-ng-filter-field-popup",
|
|
2908
|
+
templateUrl: "./filter-field-popup.component.html",
|
|
2909
|
+
styleUrls: ["../../hide-host.scss"]
|
|
2910
|
+
}]
|
|
2911
|
+
}] });
|
|
2912
|
+
AngularComponentFactory.Instance.registerComponent(filterFieldPopupComponentName, FilterFieldPopupComponent);
|
|
2913
|
+
|
|
2914
|
+
// "Save as..."'s popup of the Filter Control: the new preset's name and Save.
|
|
2915
|
+
class FilterSaveAsPopupComponent extends FilterHolderComponent {
|
|
2916
|
+
// The holder empties a slot before it disposes what it held: this is never a disposed popup.
|
|
2917
|
+
get popup() {
|
|
2918
|
+
const holder = this.holder;
|
|
2919
|
+
return !!holder ? holder.saveAsPopup : undefined;
|
|
2920
|
+
}
|
|
2921
|
+
getWatchedModels() {
|
|
2922
|
+
const popup = this.popup;
|
|
2923
|
+
return !!popup ? [popup.footerToolbar] : [];
|
|
2924
|
+
}
|
|
2925
|
+
}
|
|
2926
|
+
FilterSaveAsPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FilterSaveAsPopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2927
|
+
FilterSaveAsPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FilterSaveAsPopupComponent, selector: "sv-ng-filter-save-as-popup", usesInheritance: true, ngImport: i0, 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2928
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FilterSaveAsPopupComponent, decorators: [{
|
|
2929
|
+
type: Component,
|
|
2930
|
+
args: [{
|
|
2931
|
+
selector: "sv-ng-filter-save-as-popup",
|
|
2932
|
+
templateUrl: "./filter-save-as-popup.component.html",
|
|
2933
|
+
styleUrls: ["../../hide-host.scss"]
|
|
2934
|
+
}]
|
|
2935
|
+
}] });
|
|
2936
|
+
AngularComponentFactory.Instance.registerComponent(filterSaveAsPopupComponentName, FilterSaveAsPopupComponent);
|
|
2937
|
+
|
|
2938
|
+
// The Filters dialog's content: Search in Filters, the presets with Add New and Edit Selected, the text
|
|
2939
|
+
// of a preset that does not decompose with Edit..., "nothing found" and the fields; its footer is the
|
|
2940
|
+
// dialog's own.
|
|
2941
|
+
class FilterModalComponent extends FilterHolderComponent {
|
|
2942
|
+
// The holder empties a slot before it disposes what it held: this is never a disposed dialog.
|
|
2943
|
+
get modal() {
|
|
2944
|
+
const holder = this.holder;
|
|
2945
|
+
return !!holder ? holder.modal : undefined;
|
|
2946
|
+
}
|
|
2947
|
+
getWatchedModels() {
|
|
2948
|
+
const modal = this.modal;
|
|
2949
|
+
return !!modal ? [modal, modal.presetsToolbar, modal.expressionToolbar] : [];
|
|
2950
|
+
}
|
|
2951
|
+
onSearchInput(event) {
|
|
2952
|
+
this.modal.filterText = event.target.value;
|
|
2953
|
+
}
|
|
2954
|
+
}
|
|
2955
|
+
FilterModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FilterModalComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2956
|
+
FilterModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FilterModalComponent, selector: "sv-ng-filter-modal", usesInheritance: true, ngImport: i0, 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2957
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FilterModalComponent, decorators: [{
|
|
2958
|
+
type: Component,
|
|
2959
|
+
args: [{
|
|
2960
|
+
selector: "sv-ng-filter-modal",
|
|
2961
|
+
templateUrl: "./filter-modal.component.html",
|
|
2962
|
+
styleUrls: ["../../hide-host.scss"]
|
|
2963
|
+
}]
|
|
2964
|
+
}] });
|
|
2965
|
+
AngularComponentFactory.Instance.registerComponent(filterModalComponentName, FilterModalComponent);
|
|
2966
|
+
|
|
2967
|
+
// New Preset and Edit Preset: the form - the name and the tagbox of Contains, or the text - and the
|
|
2968
|
+
// dialog's survey - the fields' editors in a frame and the AI description with its Create or Edit; the
|
|
2969
|
+
// footer is the dialog's own.
|
|
2970
|
+
class FilterPresetDialogComponent extends FilterHolderComponent {
|
|
2971
|
+
// The holder empties a slot before it disposes what it held: this is never a disposed dialog.
|
|
2972
|
+
get dialog() {
|
|
2973
|
+
const holder = this.holder;
|
|
2974
|
+
return !!holder ? holder.presetDialog : undefined;
|
|
2975
|
+
}
|
|
2976
|
+
getWatchedModels() {
|
|
2977
|
+
return [this.dialog];
|
|
2978
|
+
}
|
|
2979
|
+
// The page is empty with no field picked and no description (see hasSurveyContent).
|
|
2980
|
+
get hasFields() {
|
|
2981
|
+
return this.dialog.hasSurveyContent;
|
|
2982
|
+
}
|
|
2983
|
+
}
|
|
2984
|
+
FilterPresetDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FilterPresetDialogComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2985
|
+
FilterPresetDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FilterPresetDialogComponent, selector: "sv-ng-filter-preset-dialog", usesInheritance: true, ngImport: i0, 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2986
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FilterPresetDialogComponent, decorators: [{
|
|
2987
|
+
type: Component,
|
|
2988
|
+
args: [{
|
|
2989
|
+
selector: "sv-ng-filter-preset-dialog",
|
|
2990
|
+
templateUrl: "./filter-preset-dialog.component.html",
|
|
2991
|
+
styleUrls: ["../../hide-host.scss"]
|
|
2992
|
+
}]
|
|
2993
|
+
}] });
|
|
2994
|
+
AngularComponentFactory.Instance.registerComponent(filterPresetDialogComponentName, FilterPresetDialogComponent);
|
|
2995
|
+
|
|
2513
2996
|
class ActionBarItemDropdownComponent extends BaseAngular {
|
|
2514
2997
|
getModel() {
|
|
2515
2998
|
return this.model;
|
|
@@ -2524,7 +3007,7 @@ class ActionBarItemDropdownComponent extends BaseAngular {
|
|
|
2524
3007
|
}
|
|
2525
3008
|
}
|
|
2526
3009
|
ActionBarItemDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ActionBarItemDropdownComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2527
|
-
ActionBarItemDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ActionBarItemDropdownComponent, selector: "sv-action-bar-item-dropdown", inputs: { model: "model" }, usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <button type=\"button\" (click)=\"model.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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3010
|
+
ActionBarItemDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ActionBarItemDropdownComponent, selector: "sv-action-bar-item-dropdown", inputs: { model: "model" }, usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <button type=\"button\" (click)=\"model.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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2528
3011
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ActionBarItemDropdownComponent, decorators: [{
|
|
2529
3012
|
type: Component,
|
|
2530
3013
|
args: [{
|
|
@@ -2570,7 +3053,7 @@ class PanelComponent extends BaseAngular {
|
|
|
2570
3053
|
}
|
|
2571
3054
|
}
|
|
2572
3055
|
PanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PanelComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2573
|
-
PanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PanelComponent, selector: "sv-ng-panel, '[sv-ng-panel]'", inputs: { model: "model" }, viewQueries: [{ propertyName: "panelContainerRef", first: true, predicate: ["panelContainer"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <div *ngIf=\"canRender\" [attr.id]=\"model.
|
|
3056
|
+
PanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PanelComponent, selector: "sv-ng-panel, '[sv-ng-panel]'", inputs: { model: "model" }, viewQueries: [{ propertyName: "panelContainerRef", first: true, predicate: ["panelContainer"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <div *ngIf=\"canRender\" [attr.id]=\"model.renderedId\" [class]=\"model.getContainerCss()\" (focusin)=\"model.focusIn()\" (click)=\"model.clickRootFunction && model.clickRootFunction($event)\" #panelContainer>\n <div *ngIf=\"model.showErrorsAbovePanel && model.hasVisibleErrors\" [element]=\"model\" sv-ng-errors></div>\n <div *ngIf=\"model.hasDescription || model.hasTitle\" [element]=\"model\" sv-ng-element-header></div>\n <div *ngIf=\"!model.showErrorsAbovePanel && model.hasVisibleErrors\" [element]=\"model\" sv-ng-errors></div>\n <div *ngIf=\"model.renderedIsExpanded\" [class]=\"model.cssClasses.panel.expandableContent\">\n <div [style]=\"panelContentStyle\" [class]=\"model.cssClasses.panel.content\" [attr.id]=\"model.contentId\"\n [attr.role]=\"model.ariaRole\" [attr.aria-labelledby]=\"model.ariaLabelledBy\" [attr.aria-label]=\"model.ariaLabel\">\n <ng-container *ngFor=\"let row of model.visibleRows; trackBy: trackRowBy\">\n <ng-template\n [component]=\"{ name: $any(model.survey).getRowWrapperComponentName(row), data: { componentData: $any(model.survey).getRowWrapperComponentData(row) } }\">\n <sv-ng-row [row]=\"row\"></sv-ng-row>\n </ng-template>\n </ng-container>\n </div>\n <sv-ng-action-bar *ngIf=\"model.renderedIsExpanded && model.getFooterToolbar().hasActions\"\n [model]=\"model.getFooterToolbar()\"></sv-ng-action-bar>\n </div>\n </div>\n</ng-template>", styles: [":host{display:none}\n"], components: [{ type: ErrorsComponent, selector: "'[sv-ng-errors]'", inputs: ["element", "location"] }, { type: ElementHeaderComponent, selector: "'[sv-ng-element-header]'", inputs: ["element"] }, { type: RowComponent, selector: "sv-ng-row", inputs: ["row"] }, { type: ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
2574
3057
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PanelComponent, decorators: [{
|
|
2575
3058
|
type: Component,
|
|
2576
3059
|
args: [{
|
|
@@ -2647,7 +3130,7 @@ AngularComponentFactory.Instance.registerComponent("sv-ng-selectbase-item", Sele
|
|
|
2647
3130
|
class SkeletonComponent extends EmbeddedViewContentComponent {
|
|
2648
3131
|
}
|
|
2649
3132
|
SkeletonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SkeletonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2650
|
-
SkeletonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SkeletonComponent, selector: "sv-skeleton", inputs: { element: "element" }, usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <div class=\"sv-skeleton-element\" [id]=\"element.
|
|
3133
|
+
SkeletonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SkeletonComponent, selector: "sv-skeleton", inputs: { element: "element" }, usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <div class=\"sv-skeleton-element\" [id]=\"element.renderedId\" [style.height]=\"element.skeletonHeight\"></div>\n</ng-template>", styles: [":host{display:none}\n"] });
|
|
2651
3134
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SkeletonComponent, decorators: [{
|
|
2652
3135
|
type: Component,
|
|
2653
3136
|
args: [{
|
|
@@ -2709,7 +3192,7 @@ class TimerPanelComponent extends BaseAngular {
|
|
|
2709
3192
|
}
|
|
2710
3193
|
}
|
|
2711
3194
|
TimerPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TimerPanelComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2712
|
-
TimerPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TimerPanelComponent, selector: "sv-timerpanel", inputs: { model: "model" }, usesInheritance: true, ngImport: i0, template: "<div *ngIf=\"model.isRunning && model.showTimerAsClock\" [class]=\"model.rootCss\">\n
|
|
3195
|
+
TimerPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TimerPanelComponent, selector: "sv-timerpanel", inputs: { model: "model" }, usesInheritance: true, ngImport: i0, 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2713
3196
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TimerPanelComponent, decorators: [{
|
|
2714
3197
|
type: Component,
|
|
2715
3198
|
args: [{
|
|
@@ -2721,127 +3204,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
2721
3204
|
}] } });
|
|
2722
3205
|
AngularComponentFactory.Instance.registerComponent("sv-timerpanel", TimerPanelComponent);
|
|
2723
3206
|
|
|
2724
|
-
class ListItemComponent extends BaseAngular {
|
|
2725
|
-
get elementId() {
|
|
2726
|
-
var _a;
|
|
2727
|
-
return (_a = this.model) === null || _a === void 0 ? void 0 : _a.elementId;
|
|
2728
|
-
}
|
|
2729
|
-
get ariaSelected() {
|
|
2730
|
-
return this.listModel.getA11yItemAriaSelected(this.model);
|
|
2731
|
-
}
|
|
2732
|
-
get ariaChecked() {
|
|
2733
|
-
return this.listModel.getA11yItemAriaChecked(this.model);
|
|
2734
|
-
}
|
|
2735
|
-
get class() {
|
|
2736
|
-
return this.listModel.getItemClass(this.model);
|
|
2737
|
-
}
|
|
2738
|
-
get itemStyle() {
|
|
2739
|
-
return this.listModel.getItemStyle(this.model);
|
|
2740
|
-
}
|
|
2741
|
-
click(event) {
|
|
2742
|
-
this.listModel.onItemClick(this.model);
|
|
2743
|
-
event.stopPropagation();
|
|
2744
|
-
}
|
|
2745
|
-
pointerdown(event) {
|
|
2746
|
-
this.listModel.onPointerDown(event, this.model);
|
|
2747
|
-
}
|
|
2748
|
-
get itemComponent() {
|
|
2749
|
-
return this.model.component || this.listModel.itemComponent;
|
|
2750
|
-
}
|
|
2751
|
-
get itemComponentData() {
|
|
2752
|
-
const itemData = this.model.data;
|
|
2753
|
-
return {
|
|
2754
|
-
model: this.model,
|
|
2755
|
-
listModel: this.listModel,
|
|
2756
|
-
itemData,
|
|
2757
|
-
survey: itemData === null || itemData === void 0 ? void 0 : itemData.survey,
|
|
2758
|
-
page: itemData === null || itemData === void 0 ? void 0 : itemData.page
|
|
2759
|
-
};
|
|
2760
|
-
}
|
|
2761
|
-
getModel() {
|
|
2762
|
-
return this.model;
|
|
2763
|
-
}
|
|
2764
|
-
ngAfterViewInit() {
|
|
2765
|
-
var _a;
|
|
2766
|
-
if (!!((_a = this.elementRef) === null || _a === void 0 ? void 0 : _a.nativeElement)) {
|
|
2767
|
-
this.listModel.onItemRended(this.model, this.elementRef.nativeElement);
|
|
2768
|
-
}
|
|
2769
|
-
}
|
|
2770
|
-
}
|
|
2771
|
-
ListItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ListItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2772
|
-
ListItemComponent.ɵcmp = i0.ɵɵ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, 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
2773
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ListItemComponent, decorators: [{
|
|
2774
|
-
type: Component,
|
|
2775
|
-
args: [{
|
|
2776
|
-
selector: "sv-ng-list-item, '[sv-ng-list-item]'",
|
|
2777
|
-
templateUrl: "./list-item.component.html",
|
|
2778
|
-
styleUrls: ["../../hide-host.scss"],
|
|
2779
|
-
}]
|
|
2780
|
-
}], propDecorators: { element: [{
|
|
2781
|
-
type: Input
|
|
2782
|
-
}], model: [{
|
|
2783
|
-
type: Input
|
|
2784
|
-
}], listModel: [{
|
|
2785
|
-
type: Input
|
|
2786
|
-
}], elementRef: [{
|
|
2787
|
-
type: ViewChild,
|
|
2788
|
-
args: ["elementRef"]
|
|
2789
|
-
}] } });
|
|
2790
|
-
AngularComponentFactory.Instance.registerComponent("sv-list-item", ListItemComponent);
|
|
2791
|
-
|
|
2792
|
-
class ListComponent extends BaseAngular {
|
|
2793
|
-
constructor() {
|
|
2794
|
-
super(...arguments);
|
|
2795
|
-
this.trackItemBy = (_, item) => {
|
|
2796
|
-
return item.id;
|
|
2797
|
-
};
|
|
2798
|
-
}
|
|
2799
|
-
getModel() {
|
|
2800
|
-
return this.model;
|
|
2801
|
-
}
|
|
2802
|
-
onGoToItems(event) {
|
|
2803
|
-
this.model.goToItems(event);
|
|
2804
|
-
}
|
|
2805
|
-
onMouseDown(event) {
|
|
2806
|
-
event.preventDefault();
|
|
2807
|
-
}
|
|
2808
|
-
onKeyDown(event) {
|
|
2809
|
-
this.model.onKeyDown(event);
|
|
2810
|
-
}
|
|
2811
|
-
onMouseMove(event) {
|
|
2812
|
-
this.model.onMouseMove(event);
|
|
2813
|
-
}
|
|
2814
|
-
getPropertiesToUpdateSync() {
|
|
2815
|
-
return ["renderElements"];
|
|
2816
|
-
}
|
|
2817
|
-
ngAfterViewInit() {
|
|
2818
|
-
var _a;
|
|
2819
|
-
if (!!((_a = this.listContainerElement) === null || _a === void 0 ? void 0 : _a.nativeElement)) {
|
|
2820
|
-
this.model.initListContainerHtmlElement(this.listContainerElement.nativeElement);
|
|
2821
|
-
}
|
|
2822
|
-
}
|
|
2823
|
-
ngOnDestroy() {
|
|
2824
|
-
this.model.initListContainerHtmlElement(undefined);
|
|
2825
|
-
super.ngOnDestroy();
|
|
2826
|
-
}
|
|
2827
|
-
}
|
|
2828
|
-
ListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ListComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2829
|
-
ListComponent.ɵcmp = i0.ɵɵ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, 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.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.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
2830
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ListComponent, decorators: [{
|
|
2831
|
-
type: Component,
|
|
2832
|
-
args: [{
|
|
2833
|
-
selector: "sv-ng-list, '[sv-ng-list]'",
|
|
2834
|
-
templateUrl: "./list.component.html",
|
|
2835
|
-
styleUrls: ["../../hide-host.scss"]
|
|
2836
|
-
}]
|
|
2837
|
-
}], propDecorators: { model: [{
|
|
2838
|
-
type: Input
|
|
2839
|
-
}], listContainerElement: [{
|
|
2840
|
-
type: ViewChild,
|
|
2841
|
-
args: ["listContainerElement"]
|
|
2842
|
-
}] } });
|
|
2843
|
-
AngularComponentFactory.Instance.registerComponent("sv-list", ListComponent);
|
|
2844
|
-
|
|
2845
3207
|
class ListItemContentComponent extends BaseAngular {
|
|
2846
3208
|
getModel() {
|
|
2847
3209
|
return this.model;
|
|
@@ -3230,7 +3592,7 @@ class FilePageComponent extends BaseAngular {
|
|
|
3230
3592
|
}
|
|
3231
3593
|
}
|
|
3232
3594
|
FilePageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FilePageComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3233
|
-
FilePageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FilePageComponent, selector: "sv-ng-file-page", inputs: { page: "page", question: "question" }, usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <div [class]=\"page.css\" [attr.id]=\"page.
|
|
3595
|
+
FilePageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FilePageComponent, selector: "sv-ng-file-page", inputs: { page: "page", question: "question" }, usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <div [class]=\"page.css\" [attr.id]=\"page.renderedId\">\n <ng-container *ngFor=\"let item of page.items\">\n <ng-template [component]=\"{ name: 'sv-file-item', data: { item, question } }\"></ng-template>\n </ng-container>\n </div>\n</ng-template>", styles: [":host{display:none}\n"], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
3234
3596
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FilePageComponent, decorators: [{
|
|
3235
3597
|
type: Component,
|
|
3236
3598
|
args: [{
|
|
@@ -3604,7 +3966,7 @@ AngularComponentFactory.Instance.registerComponent("sv-paneldynamic-progress-tex
|
|
|
3604
3966
|
class PanelDynamicPlaceholderComponent {
|
|
3605
3967
|
}
|
|
3606
3968
|
PanelDynamicPlaceholderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PanelDynamicPlaceholderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3607
|
-
PanelDynamicPlaceholderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PanelDynamicPlaceholderComponent, selector: "sv-ng-placeholder-paneldynamic", inputs: { question: "question" }, ngImport: i0, 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
3969
|
+
PanelDynamicPlaceholderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PanelDynamicPlaceholderComponent, selector: "sv-ng-placeholder-paneldynamic", inputs: { question: "question" }, ngImport: i0, 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
3608
3970
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PanelDynamicPlaceholderComponent, decorators: [{
|
|
3609
3971
|
type: Component,
|
|
3610
3972
|
args: [{
|
|
@@ -4028,7 +4390,7 @@ class MatrixDynamicPlaceholderComponent {
|
|
|
4028
4390
|
}
|
|
4029
4391
|
}
|
|
4030
4392
|
MatrixDynamicPlaceholderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MatrixDynamicPlaceholderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4031
|
-
MatrixDynamicPlaceholderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MatrixDynamicPlaceholderComponent, selector: "sv-ng-placeholder-matrixdynamic", inputs: { question: "question" }, ngImport: i0, 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
4393
|
+
MatrixDynamicPlaceholderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MatrixDynamicPlaceholderComponent, selector: "sv-ng-placeholder-matrixdynamic", inputs: { question: "question" }, ngImport: i0, 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
4032
4394
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MatrixDynamicPlaceholderComponent, decorators: [{
|
|
4033
4395
|
type: Component,
|
|
4034
4396
|
args: [{
|
|
@@ -4289,6 +4651,8 @@ SurveyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
|
4289
4651
|
CharacterCounterComponent, ListComponent, ListItemComponent, ListItemContentComponent, ListLoadingComponent, ListItemGroupComponent, RatingItemComponent, RatingItemStarComponent, RatingItemSmileyComponent,
|
|
4290
4652
|
TagboxFilterComponent, TagboxComponent, TagboxQuestionComponent, TagboxItemComponent,
|
|
4291
4653
|
ActionBarComponent, SortBarLevelComponent, ActionComponent, ActionBarItemComponent, ActionBarItemDropdownComponent, HtmlQuestionComponent,
|
|
4654
|
+
FilterQuestionComponent, FilterChipsComponent, FilterChipComponent, FilterListItemComponent,
|
|
4655
|
+
FilterEditorPageComponent, FilterFieldPopupComponent, FilterSaveAsPopupComponent, FilterModalComponent, FilterPresetDialogComponent,
|
|
4292
4656
|
SelectBaseItemComponent, SelectBaseComponent, SurveyCommentComponent, SurveyCommentChoiceComponent, ElementHeaderComponent, ElementTitleActionsComponent, ElementTitleComponent, DynamicHeadComponent, RowComponent,
|
|
4293
4657
|
RatingQuestionComponent, SliderQuestionComponent, SliderLabelItemComponent, RatingDropdownItemComponent, RatingDropdownComponent, ButtonGroupDropdownComponent, BooleanQuestionComponent, BooleanCheckboxComponent, BooleanRadioComponent, BooleanRadioItemComponent, BooleanSwitchComponent, ImagePickerItemComponent, ImagePickerQuestionComponent, ImageQuestionComponent,
|
|
4294
4658
|
SurveyHeaderComponent, ProgressDefaultComponent, ProgressButtonsComponent, ProgressTocComponent, MatrixQuestionComponent, SvgIconComponent, FileQuestionComponent, SafeUrlPipe, SafeHtmlPipe, CommentQuestionComponent, SignaturePadQuestionComponent, ErrorsComponent,
|
|
@@ -4308,6 +4672,8 @@ SurveyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
|
4308
4672
|
CharacterCounterComponent, ListComponent, ListItemComponent, ListItemContentComponent, ListLoadingComponent, ListItemGroupComponent, RatingItemComponent, RatingItemStarComponent, RatingItemSmileyComponent,
|
|
4309
4673
|
TagboxFilterComponent, TagboxComponent, TagboxQuestionComponent, TagboxItemComponent,
|
|
4310
4674
|
ActionBarComponent, SortBarLevelComponent, ActionComponent, ActionBarItemComponent, ActionBarItemDropdownComponent, HtmlQuestionComponent,
|
|
4675
|
+
FilterQuestionComponent, FilterChipComponent, FilterListItemComponent,
|
|
4676
|
+
FilterFieldPopupComponent, FilterSaveAsPopupComponent, FilterModalComponent, FilterPresetDialogComponent,
|
|
4311
4677
|
SelectBaseItemComponent, SelectBaseComponent, SurveyCommentComponent, SurveyCommentChoiceComponent, ElementHeaderComponent, ElementTitleComponent, DynamicHeadComponent, RowComponent,
|
|
4312
4678
|
RatingQuestionComponent, SliderQuestionComponent, SliderLabelItemComponent, RatingDropdownItemComponent, RatingDropdownComponent, ButtonGroupDropdownComponent, BooleanQuestionComponent, BooleanCheckboxComponent, BooleanRadioComponent, BooleanRadioItemComponent, BooleanSwitchComponent, ImagePickerItemComponent, ImagePickerQuestionComponent, ImageQuestionComponent,
|
|
4313
4679
|
SurveyHeaderComponent, ProgressDefaultComponent, ProgressButtonsComponent, MatrixQuestionComponent, SvgIconComponent, FileQuestionComponent, SafeUrlPipe, SafeHtmlPipe, CommentQuestionComponent, SignaturePadQuestionComponent, ErrorsComponent,
|
|
@@ -4333,6 +4699,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
4333
4699
|
CharacterCounterComponent, ListComponent, ListItemComponent, ListItemContentComponent, ListLoadingComponent, ListItemGroupComponent, RatingItemComponent, RatingItemStarComponent, RatingItemSmileyComponent,
|
|
4334
4700
|
TagboxFilterComponent, TagboxComponent, TagboxQuestionComponent, TagboxItemComponent,
|
|
4335
4701
|
ActionBarComponent, SortBarLevelComponent, ActionComponent, ActionBarItemComponent, ActionBarItemDropdownComponent, HtmlQuestionComponent,
|
|
4702
|
+
FilterQuestionComponent, FilterChipsComponent, FilterChipComponent, FilterListItemComponent,
|
|
4703
|
+
FilterEditorPageComponent, FilterFieldPopupComponent, FilterSaveAsPopupComponent, FilterModalComponent, FilterPresetDialogComponent,
|
|
4336
4704
|
SelectBaseItemComponent, SelectBaseComponent, SurveyCommentComponent, SurveyCommentChoiceComponent, ElementHeaderComponent, ElementTitleActionsComponent, ElementTitleComponent, DynamicHeadComponent, RowComponent,
|
|
4337
4705
|
RatingQuestionComponent, SliderQuestionComponent, SliderLabelItemComponent, RatingDropdownItemComponent, RatingDropdownComponent, ButtonGroupDropdownComponent, BooleanQuestionComponent, BooleanCheckboxComponent, BooleanRadioComponent, BooleanRadioItemComponent, BooleanSwitchComponent, ImagePickerItemComponent, ImagePickerQuestionComponent, ImageQuestionComponent,
|
|
4338
4706
|
SurveyHeaderComponent, ProgressDefaultComponent, ProgressButtonsComponent, ProgressTocComponent, MatrixQuestionComponent, SvgIconComponent, FileQuestionComponent, SafeUrlPipe, SafeHtmlPipe, CommentQuestionComponent, SignaturePadQuestionComponent, ErrorsComponent,
|
|
@@ -4358,6 +4726,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
4358
4726
|
CharacterCounterComponent, ListComponent, ListItemComponent, ListItemContentComponent, ListLoadingComponent, ListItemGroupComponent, RatingItemComponent, RatingItemStarComponent, RatingItemSmileyComponent,
|
|
4359
4727
|
TagboxFilterComponent, TagboxComponent, TagboxQuestionComponent, TagboxItemComponent,
|
|
4360
4728
|
ActionBarComponent, SortBarLevelComponent, ActionComponent, ActionBarItemComponent, ActionBarItemDropdownComponent, HtmlQuestionComponent,
|
|
4729
|
+
FilterQuestionComponent, FilterChipComponent, FilterListItemComponent,
|
|
4730
|
+
FilterFieldPopupComponent, FilterSaveAsPopupComponent, FilterModalComponent, FilterPresetDialogComponent,
|
|
4361
4731
|
SelectBaseItemComponent, SelectBaseComponent, SurveyCommentComponent, SurveyCommentChoiceComponent, ElementHeaderComponent, ElementTitleComponent, DynamicHeadComponent, RowComponent,
|
|
4362
4732
|
RatingQuestionComponent, SliderQuestionComponent, SliderLabelItemComponent, RatingDropdownItemComponent, RatingDropdownComponent, ButtonGroupDropdownComponent, BooleanQuestionComponent, BooleanCheckboxComponent, BooleanRadioComponent, BooleanRadioItemComponent, BooleanSwitchComponent, ImagePickerItemComponent, ImagePickerQuestionComponent, ImageQuestionComponent,
|
|
4363
4733
|
SurveyHeaderComponent, ProgressDefaultComponent, ProgressButtonsComponent, MatrixQuestionComponent, SvgIconComponent, FileQuestionComponent, SafeUrlPipe, SafeHtmlPipe, CommentQuestionComponent, SignaturePadQuestionComponent, ErrorsComponent,
|
|
@@ -4376,5 +4746,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
4376
4746
|
* Generated bundle index. Do not edit.
|
|
4377
4747
|
*/
|
|
4378
4748
|
|
|
4379
|
-
export { ActionBarComponent, ActionBarItemComponent, ActionBarItemDropdownComponent, ActionComponent, AngularComponentFactory, BaseAngular, BooleanCheckboxComponent, BooleanQuestionComponent, BooleanRadioComponent, BooleanRadioItemComponent, BooleanSwitchComponent, BrandInfoComponent, BreadcrumbsComponent, ButtonGroupDropdownComponent, ButtonGroupQuestionComponent, CharacterCounterComponent, CheckboxComponent, CheckboxItemComponent, CommentQuestionComponent, ComponentsContainerComponent, CompositeQuestionComponent, CustomQuestionComponent, CustomWidgetComponent, DropdownComponent, DropdownOptionItemComponent, DropdownQuestionComponent, DropdownSelectComponent, DynamicComponentDirective, DynamicHeadComponent, ElementComponent, ElementHeaderComponent, ElementTitleComponent, EmbeddedViewContentComponent, ErrorsComponent, ExpressionComponent, FileItemComponent, FilePageComponent, FilePreviewComponent, FileQuestionComponent, HeaderCellComponent, HeaderComponent, HeaderMobileComponent, HtmlQuestionComponent, ImageMapQuestionComponent, ImagePickerItemComponent, ImagePickerQuestionComponent, ImageQuestionComponent, Key2ClickDirective, ListComponent, ListItemComponent, ListItemContentComponent, ListItemGroupComponent, ListLoadingComponent, LoadingIndicatorComponent, LogoImageComponent, MatrixCellComponent, MatrixDropdownCellComponent, MatrixDropdownComponent, MatrixDynamicComponent, MatrixDynamicDragDropIconComponent, MatrixDynamicPlaceholderComponent, MatrixHeaderSortButtonComponent, MatrixQuestionComponent, MatrixRequiredHeader, MatrixTableComponent, ModalComponent, MultipleTextComponent, MultipleTextItemComponent, MultipleTextRowComponent, NotifierComponent, PageComponent, PanelComponent, PanelDynamicPlaceholderComponent, PanelDynamicProgressText, PanelDynamicQuestionComponent, PopupBaseContainerComponent, PopupCloseButtonComponent, PopupComponent, PopupPointerComponent, PopupService, PopupSurveyComponent, ProgressButtonsComponent, ProgressDefaultComponent, ProgressTocComponent, QuestionAngular, QuestionComponent, QuestionErrorComponent, QuestionHintComponent, QuestionSkeletonComponent, QuestionViewComponent, RadiogroupComponent, RadiogroupItemComponent, RankingItemComponent, RankingItemContentComponent, RankingQuestionComponent, RatingDropdownComponent, RatingDropdownItemComponent, RatingItemComponent, RatingItemSmileyComponent, RatingItemStarComponent, RatingQuestionComponent, RowComponent, SafeHtmlPipe, SafeResourceUrlPipe, SafeUrlPipe, ScrollComponent, SelectBaseComponent, SelectBaseItemComponent, SignaturePadQuestionComponent, SingleInputSummaryComponent, SkeletonComponent, SliderLabelItemComponent, SliderQuestionComponent, SortBarLevelComponent, StringEditorComponent, StringViewerComponent, SurveyCommentChoiceComponent, SurveyCommentComponent, SurveyComponent, SurveyContentComponent, SurveyHeaderComponent, SurveyModule, SurveyStringComponent, SvgBundleComponent, SvgIconComponent, SvgIconRegisteredComponent, TagboxComponent, TagboxFilterComponent, TagboxItemComponent, TagboxQuestionComponent, TemplateRendererComponent, TextAreaComponent, TextQuestionComponent, TimerPanelComponent, VisibleDirective, getComponentName };
|
|
4749
|
+
export { ActionBarComponent, ActionBarItemComponent, ActionBarItemDropdownComponent, ActionComponent, AngularComponentFactory, BaseAngular, BooleanCheckboxComponent, BooleanQuestionComponent, BooleanRadioComponent, BooleanRadioItemComponent, BooleanSwitchComponent, BrandInfoComponent, BreadcrumbsComponent, ButtonGroupDropdownComponent, ButtonGroupQuestionComponent, CharacterCounterComponent, CheckboxComponent, CheckboxItemComponent, CommentQuestionComponent, ComponentsContainerComponent, CompositeQuestionComponent, CustomQuestionComponent, CustomWidgetComponent, DropdownComponent, DropdownOptionItemComponent, DropdownQuestionComponent, DropdownSelectComponent, DynamicComponentDirective, DynamicHeadComponent, ElementComponent, ElementHeaderComponent, ElementTitleComponent, EmbeddedViewContentComponent, ErrorsComponent, ExpressionComponent, FileItemComponent, FilePageComponent, FilePreviewComponent, FileQuestionComponent, FilterChipComponent, FilterFieldPopupComponent, FilterListItemComponent, FilterModalComponent, FilterPresetDialogComponent, FilterQuestionComponent, FilterSaveAsPopupComponent, HeaderCellComponent, HeaderComponent, HeaderMobileComponent, HtmlQuestionComponent, ImageMapQuestionComponent, ImagePickerItemComponent, ImagePickerQuestionComponent, ImageQuestionComponent, Key2ClickDirective, ListComponent, ListItemComponent, ListItemContentComponent, ListItemGroupComponent, ListLoadingComponent, LoadingIndicatorComponent, LogoImageComponent, MatrixCellComponent, MatrixDropdownCellComponent, MatrixDropdownComponent, MatrixDynamicComponent, MatrixDynamicDragDropIconComponent, MatrixDynamicPlaceholderComponent, MatrixHeaderSortButtonComponent, MatrixQuestionComponent, MatrixRequiredHeader, MatrixTableComponent, ModalComponent, MultipleTextComponent, MultipleTextItemComponent, MultipleTextRowComponent, NotifierComponent, PageComponent, PanelComponent, PanelDynamicPlaceholderComponent, PanelDynamicProgressText, PanelDynamicQuestionComponent, PopupBaseContainerComponent, PopupCloseButtonComponent, PopupComponent, PopupPointerComponent, PopupService, PopupSurveyComponent, ProgressButtonsComponent, ProgressDefaultComponent, ProgressTocComponent, QuestionAngular, QuestionComponent, QuestionErrorComponent, QuestionHintComponent, QuestionSkeletonComponent, QuestionViewComponent, RadiogroupComponent, RadiogroupItemComponent, RankingItemComponent, RankingItemContentComponent, RankingQuestionComponent, RatingDropdownComponent, RatingDropdownItemComponent, RatingItemComponent, RatingItemSmileyComponent, RatingItemStarComponent, RatingQuestionComponent, RowComponent, SafeHtmlPipe, SafeResourceUrlPipe, SafeUrlPipe, ScrollComponent, SelectBaseComponent, SelectBaseItemComponent, SignaturePadQuestionComponent, SingleInputSummaryComponent, SkeletonComponent, SliderLabelItemComponent, SliderQuestionComponent, SortBarLevelComponent, StringEditorComponent, StringViewerComponent, SurveyCommentChoiceComponent, SurveyCommentComponent, SurveyComponent, SurveyContentComponent, SurveyHeaderComponent, SurveyModule, SurveyStringComponent, SvgBundleComponent, SvgIconComponent, SvgIconRegisteredComponent, TagboxComponent, TagboxFilterComponent, TagboxItemComponent, TagboxQuestionComponent, TemplateRendererComponent, TextAreaComponent, TextQuestionComponent, TimerPanelComponent, VisibleDirective, getComponentName };
|
|
4380
4750
|
//# sourceMappingURL=survey-angular-ui.js.map
|