survey-creator-angular 1.9.74 → 1.9.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -205
- package/bundles/survey-creator-angular.umd.js +2536 -0
- package/bundles/survey-creator-angular.umd.js.map +1 -0
- package/esm2015/adorners/cell-question-dropdown.component.js +34 -0
- package/esm2015/adorners/cell-question.component.js +28 -0
- package/esm2015/adorners/image-item-value.component.js +64 -0
- package/esm2015/adorners/item-value.component.js +48 -0
- package/esm2015/adorners/matrix-cell.component.js +50 -0
- package/esm2015/adorners/question-dropdown.component.js +62 -0
- package/esm2015/adorners/question-image.component.js +54 -0
- package/esm2015/adorners/question-rating.component.js +54 -0
- package/esm2015/angular-ui.js +53 -0
- package/esm2015/angular-ui.module.js +92 -0
- package/esm2015/components/action-button.component.js +48 -0
- package/esm2015/creator-model.component.js +40 -0
- package/esm2015/creator.component.js +52 -0
- package/esm2015/header/logo-image.component.js +44 -0
- package/esm2015/page-navigator/page-navigator-item.component.js +29 -0
- package/esm2015/page-navigator/page-navigator.component.js +59 -0
- package/esm2015/page.component.js +54 -0
- package/esm2015/panel.component.js +20 -0
- package/esm2015/property-panel/object-selector.component.js +24 -0
- package/esm2015/property-panel/property-grid.component.js +28 -0
- package/esm2015/question-editor.component.js +49 -0
- package/esm2015/question-widget.component.js +26 -0
- package/esm2015/question.component.js +55 -0
- package/esm2015/questions/logic-operator.component.js +40 -0
- package/esm2015/questions/question-embedded-survey.component.js +30 -0
- package/esm2015/questions/question-link-value.component.js +23 -0
- package/esm2015/row.component.js +36 -0
- package/esm2015/side-bar/side-bar-tab.component.js +23 -0
- package/esm2015/side-bar/side-bar.component.js +34 -0
- package/esm2015/string-editor.component.js +105 -0
- package/esm2015/survey-creator-angular.js +5 -0
- package/esm2015/svg-bundle.component.js +22 -0
- package/esm2015/tabbed-menu/tabbed-menu/tabbed-menu-item-wrapper.component.js +22 -0
- package/esm2015/tabbed-menu/tabbed-menu/tabbed-menu-item.component.js +23 -0
- package/esm2015/tabbed-menu/tabbed-menu/tabbed-menu.component.js +35 -0
- package/esm2015/tabs/designer/designer-pages.component.js +28 -0
- package/esm2015/tabs/designer/designer-survey.component.js +32 -0
- package/esm2015/tabs/designer/designer.component.js +33 -0
- package/esm2015/tabs/json/json-editor-ace.component.js +29 -0
- package/esm2015/tabs/json/json-editor-textarea.component.js +28 -0
- package/esm2015/tabs/logic/logic-add-btn.component.js +26 -0
- package/esm2015/tabs/logic/logic.component.js +25 -0
- package/esm2015/tabs/preview/simulator.component.js +36 -0
- package/esm2015/tabs/preview/survey-results-row.component.js +23 -0
- package/esm2015/tabs/preview/survey-results.component.js +34 -0
- package/esm2015/tabs/preview/test-again.component.js +22 -0
- package/esm2015/tabs/preview/test.component.js +27 -0
- package/esm2015/tabs/translation/translation-line-skeleton.component.js +17 -0
- package/esm2015/tabs/translation/translation.component.js +24 -0
- package/esm2015/toolbox/adaptive-toolbox.component.js +40 -0
- package/esm2015/toolbox/toolbox-category.component.js +26 -0
- package/esm2015/toolbox/toolbox-item.component.js +41 -0
- package/esm2015/toolbox/toolbox-tool.component.js +41 -0
- package/esm2015/toolbox/toolbox.component.js +28 -0
- package/esm2020/adorners/cell-question-dropdown.component.mjs +29 -29
- package/esm2020/adorners/cell-question.component.mjs +23 -23
- package/esm2020/adorners/image-item-value.component.mjs +59 -59
- package/esm2020/adorners/item-value.component.mjs +43 -43
- package/esm2020/adorners/matrix-cell.component.mjs +45 -45
- package/esm2020/adorners/question-dropdown.component.mjs +53 -53
- package/esm2020/adorners/question-image.component.mjs +44 -44
- package/esm2020/adorners/question-rating.component.mjs +45 -45
- package/esm2020/angular-ui.mjs +52 -52
- package/esm2020/angular-ui.module.mjs +91 -91
- package/esm2020/components/action-button.component.mjs +43 -43
- package/esm2020/creator-model.component.mjs +39 -39
- package/esm2020/creator.component.mjs +48 -48
- package/esm2020/header/logo-image.component.mjs +39 -39
- package/esm2020/page-navigator/page-navigator-item.component.mjs +24 -24
- package/esm2020/page-navigator/page-navigator.component.mjs +52 -52
- package/esm2020/page.component.mjs +48 -48
- package/esm2020/panel.component.mjs +15 -15
- package/esm2020/property-panel/object-selector.component.mjs +19 -19
- package/esm2020/property-panel/property-grid.component.mjs +23 -23
- package/esm2020/question-editor.component.mjs +45 -45
- package/esm2020/question-widget.component.mjs +21 -21
- package/esm2020/question.component.mjs +49 -49
- package/esm2020/questions/logic-operator.component.mjs +32 -32
- package/esm2020/questions/question-embedded-survey.component.mjs +25 -25
- package/esm2020/questions/question-link-value.component.mjs +18 -18
- package/esm2020/row.component.mjs +32 -32
- package/esm2020/side-bar/side-bar-tab.component.mjs +18 -18
- package/esm2020/side-bar/side-bar.component.mjs +29 -29
- package/esm2020/string-editor.component.mjs +98 -98
- package/esm2020/survey-creator-angular.mjs +4 -4
- package/esm2020/svg-bundle.component.mjs +21 -21
- package/esm2020/tabbed-menu/tabbed-menu/tabbed-menu-item-wrapper.component.mjs +17 -17
- package/esm2020/tabbed-menu/tabbed-menu/tabbed-menu-item.component.mjs +18 -18
- package/esm2020/tabbed-menu/tabbed-menu/tabbed-menu.component.mjs +30 -30
- package/esm2020/tabs/designer/designer-pages.component.mjs +23 -23
- package/esm2020/tabs/designer/designer-survey.component.mjs +27 -27
- package/esm2020/tabs/designer/designer.component.mjs +28 -28
- package/esm2020/tabs/json/json-editor-ace.component.mjs +24 -24
- package/esm2020/tabs/json/json-editor-textarea.component.mjs +23 -23
- package/esm2020/tabs/logic/logic-add-btn.component.mjs +21 -21
- package/esm2020/tabs/logic/logic.component.mjs +20 -20
- package/esm2020/tabs/preview/simulator.component.mjs +31 -31
- package/esm2020/tabs/preview/survey-results-row.component.mjs +18 -18
- package/esm2020/tabs/preview/survey-results.component.mjs +29 -29
- package/esm2020/tabs/preview/test-again.component.mjs +17 -17
- package/esm2020/tabs/preview/test.component.mjs +22 -22
- package/esm2020/tabs/translation/translation-line-skeleton.component.mjs +12 -12
- package/esm2020/tabs/translation/translation.component.mjs +19 -19
- package/esm2020/toolbox/adaptive-toolbox.component.mjs +34 -34
- package/esm2020/toolbox/toolbox-category.component.mjs +21 -21
- package/esm2020/toolbox/toolbox-item.component.mjs +36 -36
- package/esm2020/toolbox/toolbox-tool.component.mjs +36 -36
- package/esm2020/toolbox/toolbox.component.mjs +23 -23
- package/fesm2015/survey-creator-angular.js +1635 -0
- package/fesm2015/survey-creator-angular.js.map +1 -0
- package/fesm2015/survey-creator-angular.mjs +1430 -1430
- package/fesm2020/survey-creator-angular.mjs +1419 -1419
- package/package.json +10 -18
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { Component, Input } from "@angular/core";
|
|
2
|
-
import { CreatorModelComponent } from "../creator-model.component";
|
|
3
|
-
import { ToolboxToolViewModel } from "survey-creator-core";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/common";
|
|
6
|
-
import * as i2 from "survey-angular-ui";
|
|
7
|
-
export class ToolboxToolComponent extends CreatorModelComponent {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
this.isCompact = false;
|
|
11
|
-
}
|
|
12
|
-
createModel() {
|
|
13
|
-
this.model = new ToolboxToolViewModel(this.item, this.creator);
|
|
14
|
-
}
|
|
15
|
-
getPropertiesToTrack() {
|
|
16
|
-
return ["creator", "item"];
|
|
17
|
-
}
|
|
18
|
-
getModel() {
|
|
19
|
-
return this.item;
|
|
20
|
-
}
|
|
21
|
-
getPropertiesToUpdateSync() {
|
|
22
|
-
return ["mode"];
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
ToolboxToolComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ToolboxToolComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
26
|
-
ToolboxToolComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: ToolboxToolComponent, selector: "svc-toolbox-tool", inputs: { creator: "creator", item: "item", isCompact: "isCompact" }, usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <div class=\"svc-toolbox__tool\"\n [class.sv-action--hidden]=\"!item.isVisible\" [class]=\"item.css\" (pointerdown)=\"model.onPointerDown($event)\">\n <div class=\"sv-action__content\">\n <div class=\"svc-toolbox__category-separator\" *ngIf=\"item.needSeparator && !creator.toolbox.showCategoryTitles\"></div>\n <ng-template [component]=\"{ name: item.component || 'svc-toolbox-item', default: 'svc-toolbox-item', data: { model: item, viewModel: model, creator: creator, isCompact: isCompact } }\"></ng-template>\n </div>\n </div>\n</ng-template>", styles: [":host{display:none}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ToolboxToolComponent, decorators: [{
|
|
28
|
-
type: Component,
|
|
29
|
-
args: [{ selector: "svc-toolbox-tool", styles: [":host { display: none; }"], template: "<ng-template #template>\n <div class=\"svc-toolbox__tool\"\n [class.sv-action--hidden]=\"!item.isVisible\" [class]=\"item.css\" (pointerdown)=\"model.onPointerDown($event)\">\n <div class=\"sv-action__content\">\n <div class=\"svc-toolbox__category-separator\" *ngIf=\"item.needSeparator && !creator.toolbox.showCategoryTitles\"></div>\n <ng-template [component]=\"{ name: item.component || 'svc-toolbox-item', default: 'svc-toolbox-item', data: { model: item, viewModel: model, creator: creator, isCompact: isCompact } }\"></ng-template>\n </div>\n </div>\n</ng-template>" }]
|
|
30
|
-
}], propDecorators: { creator: [{
|
|
31
|
-
type: Input
|
|
32
|
-
}], item: [{
|
|
33
|
-
type: Input
|
|
34
|
-
}], isCompact: [{
|
|
35
|
-
type: Input
|
|
36
|
-
}] } });
|
|
1
|
+
import { Component, Input } from "@angular/core";
|
|
2
|
+
import { CreatorModelComponent } from "../creator-model.component";
|
|
3
|
+
import { ToolboxToolViewModel } from "survey-creator-core";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/common";
|
|
6
|
+
import * as i2 from "survey-angular-ui";
|
|
7
|
+
export class ToolboxToolComponent extends CreatorModelComponent {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.isCompact = false;
|
|
11
|
+
}
|
|
12
|
+
createModel() {
|
|
13
|
+
this.model = new ToolboxToolViewModel(this.item, this.creator);
|
|
14
|
+
}
|
|
15
|
+
getPropertiesToTrack() {
|
|
16
|
+
return ["creator", "item"];
|
|
17
|
+
}
|
|
18
|
+
getModel() {
|
|
19
|
+
return this.item;
|
|
20
|
+
}
|
|
21
|
+
getPropertiesToUpdateSync() {
|
|
22
|
+
return ["mode"];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
ToolboxToolComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ToolboxToolComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
26
|
+
ToolboxToolComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: ToolboxToolComponent, selector: "svc-toolbox-tool", inputs: { creator: "creator", item: "item", isCompact: "isCompact" }, usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <div class=\"svc-toolbox__tool\"\n [class.sv-action--hidden]=\"!item.isVisible\" [class]=\"item.css\" (pointerdown)=\"model.onPointerDown($event)\">\n <div class=\"sv-action__content\">\n <div class=\"svc-toolbox__category-separator\" *ngIf=\"item.needSeparator && !creator.toolbox.showCategoryTitles\"></div>\n <ng-template [component]=\"{ name: item.component || 'svc-toolbox-item', default: 'svc-toolbox-item', data: { model: item, viewModel: model, creator: creator, isCompact: isCompact } }\"></ng-template>\n </div>\n </div>\n</ng-template>", styles: [":host{display:none}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ToolboxToolComponent, decorators: [{
|
|
28
|
+
type: Component,
|
|
29
|
+
args: [{ selector: "svc-toolbox-tool", styles: [":host { display: none; }"], template: "<ng-template #template>\n <div class=\"svc-toolbox__tool\"\n [class.sv-action--hidden]=\"!item.isVisible\" [class]=\"item.css\" (pointerdown)=\"model.onPointerDown($event)\">\n <div class=\"sv-action__content\">\n <div class=\"svc-toolbox__category-separator\" *ngIf=\"item.needSeparator && !creator.toolbox.showCategoryTitles\"></div>\n <ng-template [component]=\"{ name: item.component || 'svc-toolbox-item', default: 'svc-toolbox-item', data: { model: item, viewModel: model, creator: creator, isCompact: isCompact } }\"></ng-template>\n </div>\n </div>\n</ng-template>" }]
|
|
30
|
+
}], propDecorators: { creator: [{
|
|
31
|
+
type: Input
|
|
32
|
+
}], item: [{
|
|
33
|
+
type: Input
|
|
34
|
+
}], isCompact: [{
|
|
35
|
+
type: Input
|
|
36
|
+
}] } });
|
|
37
37
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbGJveC10b29sLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90b29sYm94L3Rvb2xib3gtdG9vbC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi9zcmMvdG9vbGJveC90b29sYm94LXRvb2wuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDakQsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFDbkUsT0FBTyxFQUFxQyxvQkFB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G4gICAgICAgIFtjbGFzcy5zdi1hY3Rpb24tLWhpZGRlbl09XCIhaXRlbS5pc1Zpc2libGVcIiBbY2xhc3NdPVwiaXRlbS5jc3NcIiAocG9pbnRlcmRvd24pPVwibW9kZWwub25Qb2ludGVyRG93bigkZXZlbnQpXCI+XG4gICAgICAgIDxkaXYgY2xhc3M9XCJzdi1hY3Rpb25fX2NvbnRlbnRcIj5cbiAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJzdmMtdG9vbGJveF9fY2F0ZWdvcnktc2VwYXJhdG9yXCIgKm5nSWY9XCJpdGVtLm5lZWRTZXBhcmF0b3IgJiYgIWNyZWF0b3IudG9vbGJveC5zaG93Q2F0ZWdvcnlUaXRsZXNcIj48L2Rpdj5cbiAgICAgICAgICAgIDxuZy10ZW1wbGF0ZSBbY29tcG9uZW50XT1cInsgbmFtZTogaXRlbS5jb21wb25lbnQgfHwgJ3N2Yy10b29sYm94LWl0ZW0nLCBkZWZhdWx0OiAnc3ZjLXRvb2xib3gtaXRlbScsIGRhdGE6IHsgbW9kZWw6IGl0ZW0sIHZpZXdNb2RlbDogbW9kZWwsIGNyZWF0b3I6IGNyZWF0b3IsIGlzQ29tcGFjdDogaXNDb21wYWN0IH0gfVwiPjwvbmctdGVtcGxhdGU+XG4gICAgICAgIDwvZGl2PlxuICAgIDwvZGl2PlxuPC9uZy10ZW1wbGF0ZT4iXX0=
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { Component, Input } from "@angular/core";
|
|
2
|
-
import { AngularComponentFactory, BaseAngular } from "survey-angular-ui";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "./toolbox-category.component";
|
|
5
|
-
import * as i2 from "./toolbox-tool.component";
|
|
6
|
-
import * as i3 from "@angular/common";
|
|
7
|
-
export class ToolboxComponent extends BaseAngular {
|
|
8
|
-
get toolbox() {
|
|
9
|
-
return this.model.toolbox;
|
|
10
|
-
}
|
|
11
|
-
getModel() {
|
|
12
|
-
return this.toolbox;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
ToolboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ToolboxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
-
ToolboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: ToolboxComponent, selector: "svc-toolbox", inputs: { model: "model" }, usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <div class=\"svc-toolbox\">\n <div class=\"svc-toolbox__container\">\n <ng-container *ngIf=\"!(toolbox.categories.length == 1 || !toolbox.showCategoryTitles)\">\n <svc-toolbox-category *ngFor=\"let category of toolbox.categories\" [category]=\"category\" [toolbox]=\"toolbox\"></svc-toolbox-category>\n </ng-container>\n <ng-container *ngIf=\"toolbox.categories.length == 1 || !toolbox.showCategoryTitles\">\n <div class=\"svc-toolbox__category\">\n <svc-toolbox-tool *ngFor=\"let item of toolbox.visibleActions\" [creator]=\"model\" [item]=\"item\" [isCompact]=\"toolbox.isCompact\"></svc-toolbox-tool>\n </div>\n </ng-container>\n </div>\n </div>\n</ng-template>", styles: [":host{display:none}\n"], components: [{ type: i1.ToolboxCategoryComponent, selector: "svc-toolbox-category ", inputs: ["category", "toolbox"] }, { type: i2.ToolboxToolComponent, selector: "svc-toolbox-tool", inputs: ["creator", "item", "isCompact"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ToolboxComponent, decorators: [{
|
|
18
|
-
type: Component,
|
|
19
|
-
args: [{ selector: "svc-toolbox", styles: [":host { display: none; }"], template: "<ng-template #template>\n <div class=\"svc-toolbox\">\n <div class=\"svc-toolbox__container\">\n <ng-container *ngIf=\"!(toolbox.categories.length == 1 || !toolbox.showCategoryTitles)\">\n <svc-toolbox-category *ngFor=\"let category of toolbox.categories\" [category]=\"category\" [toolbox]=\"toolbox\"></svc-toolbox-category>\n </ng-container>\n <ng-container *ngIf=\"toolbox.categories.length == 1 || !toolbox.showCategoryTitles\">\n <div class=\"svc-toolbox__category\">\n <svc-toolbox-tool *ngFor=\"let item of toolbox.visibleActions\" [creator]=\"model\" [item]=\"item\" [isCompact]=\"toolbox.isCompact\"></svc-toolbox-tool>\n </div>\n </ng-container>\n </div>\n </div>\n</ng-template>" }]
|
|
20
|
-
}], propDecorators: { model: [{
|
|
21
|
-
type: Input
|
|
22
|
-
}] } });
|
|
23
|
-
AngularComponentFactory.Instance.registerComponent("svc-toolbox", ToolboxComponent);
|
|
1
|
+
import { Component, Input } from "@angular/core";
|
|
2
|
+
import { AngularComponentFactory, BaseAngular } from "survey-angular-ui";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "./toolbox-category.component";
|
|
5
|
+
import * as i2 from "./toolbox-tool.component";
|
|
6
|
+
import * as i3 from "@angular/common";
|
|
7
|
+
export class ToolboxComponent extends BaseAngular {
|
|
8
|
+
get toolbox() {
|
|
9
|
+
return this.model.toolbox;
|
|
10
|
+
}
|
|
11
|
+
getModel() {
|
|
12
|
+
return this.toolbox;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
ToolboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ToolboxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
+
ToolboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: ToolboxComponent, selector: "svc-toolbox", inputs: { model: "model" }, usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <div class=\"svc-toolbox\">\n <div class=\"svc-toolbox__container\">\n <ng-container *ngIf=\"!(toolbox.categories.length == 1 || !toolbox.showCategoryTitles)\">\n <svc-toolbox-category *ngFor=\"let category of toolbox.categories\" [category]=\"category\" [toolbox]=\"toolbox\"></svc-toolbox-category>\n </ng-container>\n <ng-container *ngIf=\"toolbox.categories.length == 1 || !toolbox.showCategoryTitles\">\n <div class=\"svc-toolbox__category\">\n <svc-toolbox-tool *ngFor=\"let item of toolbox.visibleActions\" [creator]=\"model\" [item]=\"item\" [isCompact]=\"toolbox.isCompact\"></svc-toolbox-tool>\n </div>\n </ng-container>\n </div>\n </div>\n</ng-template>", styles: [":host{display:none}\n"], components: [{ type: i1.ToolboxCategoryComponent, selector: "svc-toolbox-category ", inputs: ["category", "toolbox"] }, { type: i2.ToolboxToolComponent, selector: "svc-toolbox-tool", inputs: ["creator", "item", "isCompact"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ToolboxComponent, decorators: [{
|
|
18
|
+
type: Component,
|
|
19
|
+
args: [{ selector: "svc-toolbox", styles: [":host { display: none; }"], template: "<ng-template #template>\n <div class=\"svc-toolbox\">\n <div class=\"svc-toolbox__container\">\n <ng-container *ngIf=\"!(toolbox.categories.length == 1 || !toolbox.showCategoryTitles)\">\n <svc-toolbox-category *ngFor=\"let category of toolbox.categories\" [category]=\"category\" [toolbox]=\"toolbox\"></svc-toolbox-category>\n </ng-container>\n <ng-container *ngIf=\"toolbox.categories.length == 1 || !toolbox.showCategoryTitles\">\n <div class=\"svc-toolbox__category\">\n <svc-toolbox-tool *ngFor=\"let item of toolbox.visibleActions\" [creator]=\"model\" [item]=\"item\" [isCompact]=\"toolbox.isCompact\"></svc-toolbox-tool>\n </div>\n </ng-container>\n </div>\n </div>\n</ng-template>" }]
|
|
20
|
+
}], propDecorators: { model: [{
|
|
21
|
+
type: Input
|
|
22
|
+
}] } });
|
|
23
|
+
AngularComponentFactory.Instance.registerComponent("svc-toolbox", ToolboxComponent);
|
|
24
24
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbGJveC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdG9vbGJveC90b29sYm94LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uL3NyYy90b29sYm94L3Rvb2xib3guY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFakQsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFdBQVcsRUFBRSxNQUFNLG1CQUFtQixDQUFDOzs7OztBQU96RSxNQUFNLE9BQU8sZ0JBQWlCLFNBQVEsV0FBNEI7SUFFaEUsSUFBVyxPQUFPO1FBQ2hCLE9BQU8sSUFBSSxDQUFDLEtBQUssQ0FBQyxPQUFPLENBQUM7SUFDNUIsQ0FBQztJQUNTLFFBQVE7UUFDaEIsT0FBTyxJQUFJLENBQUMsT0FBTyxDQUFDO0lBQ3RCLENBQUM7OzZHQVBVLGdCQUFnQjtpR0FBaEIsZ0JBQWdCLHNHQ1Q3Qiw4dUJBYWM7MkZESkQsZ0JBQWdCO2tCQUw1QixTQUFTOytCQUNFLGFBQWEsVUFFZixDQUFDLDBCQUEwQixDQUFDOzhCQUczQixLQUFLO3NCQUFiLEtBQUs7O0FBUVIsdUJBQXVCLENBQUMsUUFBUSxDQUFDLGlCQUFpQixDQUFDLGFBQWEsRUFBRSxnQkFBZ0IsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBJbnB1dCB9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