@wavemaker/app-ng-runtime 11.10.2-rc.203 → 11.10.3-next.25128
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/build-task/bundles/index.umd.js +5 -3
- package/build-task/esm2022/advanced/carousel/carousel-template/carousel-template.build.mjs +4 -2
- package/build-task/esm2022/data/form/form-field/form-field.build.mjs +3 -3
- package/build-task/fesm2022/index.mjs +5 -3
- package/build-task/fesm2022/index.mjs.map +1 -1
- package/components/basic/default/bundles/index.umd.js +68 -71
- package/components/basic/default/esm2022/anchor/anchor.component.mjs +18 -18
- package/components/basic/default/esm2022/icon/icon.component.mjs +12 -13
- package/components/basic/default/esm2022/iframe/iframe.component.mjs +9 -10
- package/components/basic/default/esm2022/picture/picture.directive.mjs +2 -5
- package/components/basic/default/esm2022/spinner/spinner.component.mjs +21 -21
- package/components/basic/default/esm2022/video/video.component.mjs +14 -15
- package/components/basic/default/fesm2022/index.mjs +68 -71
- package/components/basic/default/fesm2022/index.mjs.map +1 -1
- package/components/basic/progress/bundles/index.umd.js +16 -17
- package/components/basic/progress/esm2022/progress-bar/progress-bar.component.mjs +7 -8
- package/components/basic/progress/fesm2022/index.mjs +8 -9
- package/components/basic/progress/fesm2022/index.mjs.map +1 -1
- package/components/basic/rich-text-editor/bundles/index.umd.js +11 -12
- package/components/basic/rich-text-editor/esm2022/rich-text-editor.component.mjs +8 -9
- package/components/basic/rich-text-editor/fesm2022/index.mjs +7 -8
- package/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
- package/components/basic/search/bundles/index.umd.js +63 -67
- package/components/basic/search/esm2022/search.component.mjs +63 -67
- package/components/basic/search/esm2022/search.module.mjs +2 -2
- package/components/basic/search/fesm2022/index.mjs +63 -67
- package/components/basic/search/fesm2022/index.mjs.map +1 -1
- package/components/chart/bundles/index.umd.js +17 -17
- package/components/chart/esm2022/chart.component.mjs +18 -18
- package/components/chart/fesm2022/index.mjs +17 -17
- package/components/chart/fesm2022/index.mjs.map +1 -1
- package/components/containers/panel/bundles/index.umd.js +39 -39
- package/components/containers/panel/esm2022/panel.component.mjs +40 -40
- package/components/containers/panel/fesm2022/index.mjs +39 -39
- package/components/containers/panel/fesm2022/index.mjs.map +1 -1
- package/components/containers/tabs/bundles/index.umd.js +29 -29
- package/components/containers/tabs/esm2022/tabs.component.mjs +30 -30
- package/components/containers/tabs/fesm2022/index.mjs +29 -29
- package/components/containers/tabs/fesm2022/index.mjs.map +1 -1
- package/components/containers/wizard/bundles/index.umd.js +49 -49
- package/components/containers/wizard/esm2022/wizard.component.mjs +50 -50
- package/components/containers/wizard/fesm2022/index.mjs +49 -49
- package/components/containers/wizard/fesm2022/index.mjs.map +1 -1
- package/components/data/card/bundles/index.umd.js +29 -29
- package/components/data/card/esm2022/card.component.mjs +30 -30
- package/components/data/card/fesm2022/index.mjs +29 -29
- package/components/data/card/fesm2022/index.mjs.map +1 -1
- package/components/data/form/bundles/index.umd.js +91 -96
- package/components/data/form/esm2022/form.component.mjs +92 -97
- package/components/data/form/fesm2022/index.mjs +91 -96
- package/components/data/form/fesm2022/index.mjs.map +1 -1
- package/components/data/list/bundles/index.umd.js +171 -173
- package/components/data/list/esm2022/list.component.mjs +171 -173
- package/components/data/list/esm2022/list.module.mjs +2 -2
- package/components/data/list/fesm2022/index.mjs +171 -173
- package/components/data/list/fesm2022/index.mjs.map +1 -1
- package/components/data/pagination/bundles/index.umd.js +32 -32
- package/components/data/pagination/esm2022/pagination.component.mjs +33 -33
- package/components/data/pagination/fesm2022/index.mjs +32 -32
- package/components/data/pagination/fesm2022/index.mjs.map +1 -1
- package/components/data/table/bundles/index.umd.js +69 -39
- package/components/data/table/esm2022/table-column/table-column.directive.mjs +2 -1
- package/components/data/table/esm2022/table-column/table-column.props.mjs +2 -1
- package/components/data/table/esm2022/table-filter.directive.mjs +29 -2
- package/components/data/table/esm2022/table.component.mjs +40 -39
- package/components/data/table/esm2022/table.props.mjs +2 -1
- package/components/data/table/fesm2022/index.mjs +72 -41
- package/components/data/table/fesm2022/index.mjs.map +1 -1
- package/components/data/table/table-column/table-column.directive.d.ts +1 -0
- package/components/data/table/table-filter.directive.d.ts +1 -0
- package/components/dialogs/default/bundles/index.umd.js +66 -95
- package/components/dialogs/default/esm2022/dialog-header/dialog-header.component.mjs +67 -96
- package/components/dialogs/default/fesm2022/index.mjs +66 -95
- package/components/dialogs/default/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/design-dialog/bundles/index.umd.js +7 -7
- package/components/dialogs/design-dialog/esm2022/dialog.component.mjs +8 -8
- package/components/dialogs/design-dialog/fesm2022/index.mjs +7 -7
- package/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/iframe-dialog/bundles/index.umd.js +24 -25
- package/components/dialogs/iframe-dialog/esm2022/iframe-dialog.component.mjs +15 -16
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs +14 -15
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/partial-dialog/bundles/index.umd.js +8 -8
- package/components/dialogs/partial-dialog/esm2022/partial-dialog.component.mjs +9 -9
- package/components/dialogs/partial-dialog/fesm2022/index.mjs +8 -8
- package/components/dialogs/partial-dialog/fesm2022/index.mjs.map +1 -1
- package/components/input/chips/bundles/index.umd.js +21 -21
- package/components/input/chips/esm2022/chips.component.mjs +22 -22
- package/components/input/chips/fesm2022/index.mjs +21 -21
- package/components/input/chips/fesm2022/index.mjs.map +1 -1
- package/components/input/default/bundles/index.umd.js +201 -209
- package/components/input/default/esm2022/button/button.component.mjs +18 -18
- package/components/input/default/esm2022/checkboxset/checkboxset.component.mjs +68 -69
- package/components/input/default/esm2022/radioset/radioset.component.mjs +68 -69
- package/components/input/default/esm2022/select/select.component.mjs +21 -27
- package/components/input/default/esm2022/switch/switch.component.mjs +24 -24
- package/components/input/default/esm2022/textarea/textarea.component.mjs +8 -8
- package/components/input/default/fesm2022/index.mjs +201 -209
- package/components/input/default/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/bundles/index.umd.js +171 -164
- package/components/input/epoch/esm2022/date/date.component.mjs +14 -15
- package/components/input/epoch/esm2022/date-time/date-time-picker.component.mjs +64 -59
- package/components/input/epoch/esm2022/date-time/date-time.component.mjs +18 -19
- package/components/input/epoch/esm2022/picker/picker.component.mjs +26 -25
- package/components/input/epoch/esm2022/time/time.component.mjs +17 -18
- package/components/input/epoch/fesm2022/index.mjs +124 -117
- package/components/input/epoch/fesm2022/index.mjs.map +1 -1
- package/components/input/file-upload/bundles/index.umd.js +111 -114
- package/components/input/file-upload/esm2022/file-upload.component.mjs +112 -115
- package/components/input/file-upload/fesm2022/index.mjs +111 -114
- package/components/input/file-upload/fesm2022/index.mjs.map +1 -1
- package/components/input/rating/bundles/index.umd.js +14 -14
- package/components/input/rating/esm2022/rating.component.mjs +15 -15
- package/components/input/rating/fesm2022/index.mjs +14 -14
- package/components/input/rating/fesm2022/index.mjs.map +1 -1
- package/components/input/slider/bundles/index.umd.js +39 -40
- package/components/input/slider/esm2022/slider.component.mjs +10 -11
- package/components/input/slider/fesm2022/index.mjs +9 -10
- package/components/input/slider/fesm2022/index.mjs.map +1 -1
- package/components/navigation/breadcrumb/bundles/index.umd.js +16 -15
- package/components/navigation/breadcrumb/esm2022/breadcrumb.component.mjs +17 -16
- package/components/navigation/breadcrumb/fesm2022/index.mjs +16 -15
- package/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -1
- package/components/navigation/menu/bundles/index.umd.js +82 -74
- package/components/navigation/menu/esm2022/menu-adapator.component.mjs +14 -4
- package/components/navigation/menu/esm2022/menu-dropdown/menu-dropdown.component.mjs +7 -7
- package/components/navigation/menu/esm2022/menu-dropdown-item/menu-dropdown-item.component.mjs +15 -15
- package/components/navigation/menu/esm2022/menu.component.mjs +22 -26
- package/components/navigation/menu/esm2022/menu.module.mjs +4 -4
- package/components/navigation/menu/esm2022/nav/nav.component.mjs +26 -24
- package/components/navigation/menu/fesm2022/index.mjs +82 -74
- package/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- package/components/navigation/menu/menu-adapator.component.d.ts +1 -0
- package/components/navigation/navbar/bundles/index.umd.js +12 -12
- package/components/navigation/navbar/esm2022/navbar.component.mjs +13 -13
- package/components/navigation/navbar/fesm2022/index.mjs +12 -12
- package/components/navigation/navbar/fesm2022/index.mjs.map +1 -1
- package/mobile/components/basic/default/bundles/index.umd.js +102 -111
- package/mobile/components/basic/default/esm2022/file-browser/file-browser.component.mjs +39 -40
- package/mobile/components/basic/default/esm2022/network-info-toaster/network-info-toaster.component.mjs +35 -44
- package/mobile/components/basic/default/esm2022/process-manager/process-manager.component.mjs +27 -28
- package/mobile/components/basic/default/fesm2022/index.mjs +98 -107
- package/mobile/components/basic/default/fesm2022/index.mjs.map +1 -1
- package/mobile/components/containers/segmented-control/bundles/index.umd.js +16 -16
- package/mobile/components/containers/segmented-control/esm2022/segment-content/segment-content.component.mjs +8 -9
- package/mobile/components/containers/segmented-control/esm2022/segmented-control.component.mjs +10 -10
- package/mobile/components/containers/segmented-control/fesm2022/index.mjs +16 -16
- package/mobile/components/containers/segmented-control/fesm2022/index.mjs.map +1 -1
- package/mobile/components/data/media-list/bundles/index.umd.js +28 -28
- package/mobile/components/data/media-list/esm2022/media-list.component.mjs +29 -29
- package/mobile/components/data/media-list/fesm2022/index.mjs +28 -28
- package/mobile/components/data/media-list/fesm2022/index.mjs.map +1 -1
- package/mobile/components/page/mobile-navbar/bundles/index.umd.js +29 -29
- package/mobile/components/page/mobile-navbar/esm2022/mobile-navbar.component.mjs +30 -30
- package/mobile/components/page/mobile-navbar/fesm2022/index.mjs +29 -29
- package/mobile/components/page/mobile-navbar/fesm2022/index.mjs.map +1 -1
- package/mobile/components/page/tab-bar/bundles/index.umd.js +28 -28
- package/mobile/components/page/tab-bar/esm2022/tabbar.component.mjs +29 -29
- package/mobile/components/page/tab-bar/fesm2022/index.mjs +28 -28
- package/mobile/components/page/tab-bar/fesm2022/index.mjs.map +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/runtime/base/bundles/index.umd.js +219 -215
- package/runtime/base/esm2022/components/app-component/app.component.mjs +38 -41
- package/runtime/base/esm2022/components/app-spinner.component.mjs +25 -21
- package/runtime/base/esm2022/components/custom-toaster.component.mjs +18 -16
- package/runtime/base/fesm2022/index.mjs +99 -95
- package/runtime/base/fesm2022/index.mjs.map +1 -1
- package/scripts/datatable/datatable.js +1 -0
|
@@ -44,22 +44,22 @@ const _c1$b = [[["", 8, "caret"]]];
|
|
|
44
44
|
const _c2$8 = [".caret"];
|
|
45
45
|
const _c3$4 = (a0, a1, a2) => ({ width: a0, height: a1, margin: a2 });
|
|
46
46
|
const _c4$3 = (a0, a1, a2, a3) => ({ width: a0, height: a1, margin: a2, fontSize: a3 });
|
|
47
|
-
function
|
|
48
|
-
i0.ɵɵelement(0, "img",
|
|
47
|
+
function ButtonComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
48
|
+
i0.ɵɵelement(0, "img", 0);
|
|
49
49
|
i0.ɵɵpipe(1, "image");
|
|
50
50
|
} if (rf & 2) {
|
|
51
51
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
52
52
|
i0.ɵɵproperty("src", i0.ɵɵpipeBind1(1, 2, ctx_r0.iconurl), i0.ɵɵsanitizeUrl)("ngStyle", i0.ɵɵpureFunction3(4, _c3$4, ctx_r0.iconwidth, ctx_r0.iconheight, ctx_r0.iconmargin));
|
|
53
53
|
} }
|
|
54
|
-
function
|
|
55
|
-
i0.ɵɵelement(0, "i",
|
|
54
|
+
function ButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
55
|
+
i0.ɵɵelement(0, "i", 5);
|
|
56
56
|
} if (rf & 2) {
|
|
57
57
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
58
58
|
i0.ɵɵclassMapInterpolate1("app-icon ", ctx_r0.iconclass, "");
|
|
59
59
|
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction4(4, _c4$3, ctx_r0.iconwidth, ctx_r0.iconheight, ctx_r0.iconmargin, ctx_r0.iconwidth));
|
|
60
60
|
} }
|
|
61
|
-
function
|
|
62
|
-
i0.ɵɵelementStart(0, "span",
|
|
61
|
+
function ButtonComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
62
|
+
i0.ɵɵelementStart(0, "span", 2);
|
|
63
63
|
i0.ɵɵtext(1);
|
|
64
64
|
i0.ɵɵelementEnd();
|
|
65
65
|
} if (rf & 2) {
|
|
@@ -67,8 +67,8 @@ function ButtonComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
67
67
|
i0.ɵɵadvance();
|
|
68
68
|
i0.ɵɵtextInterpolate2("", ctx_r0.caption, " ", ctx_r0.appLocale.LABEL_ICON, "");
|
|
69
69
|
} }
|
|
70
|
-
function
|
|
71
|
-
i0.ɵɵelement(0, "span",
|
|
70
|
+
function ButtonComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
71
|
+
i0.ɵɵelement(0, "span", 4);
|
|
72
72
|
} if (rf & 2) {
|
|
73
73
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
74
74
|
i0.ɵɵproperty("textContent", ctx_r0.badgevalue);
|
|
@@ -91,29 +91,29 @@ class ButtonComponent extends StylableComponent {
|
|
|
91
91
|
i0.ɵɵattribute("accesskey", ctx.shortcutkey)("icon-position", ctx.iconposition);
|
|
92
92
|
} }, exportAs: ["wmButton"], features: [i0.ɵɵProvidersFeature([
|
|
93
93
|
provideAsWidgetRef(ButtonComponent)
|
|
94
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0$c, ngContentSelectors: _c2$8, decls: 6, vars: 5, consts: [["data-identifier", "img", "alt", "button image",
|
|
94
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0$c, ngContentSelectors: _c2$8, decls: 6, vars: 5, consts: [["data-identifier", "img", "alt", "button image", 1, "button-image-icon", 3, "src", "ngStyle"], ["aria-hidden", "true", 3, "class", "ngStyle"], [1, "sr-only"], [1, "btn-caption", 3, "innerHTML"], [1, "badge", "pull-right", 3, "textContent"], ["aria-hidden", "true", 3, "ngStyle"]], template: function ButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
95
95
|
i0.ɵɵprojectionDef(_c1$b);
|
|
96
|
-
i0.ɵɵtemplate(0,
|
|
96
|
+
i0.ɵɵtemplate(0, ButtonComponent_Conditional_0_Template, 2, 8, "img", 0)(1, ButtonComponent_Conditional_1_Template, 1, 9, "i", 1)(2, ButtonComponent_Conditional_2_Template, 2, 2, "span", 2);
|
|
97
97
|
i0.ɵɵelement(3, "span", 3);
|
|
98
98
|
i0.ɵɵprojection(4);
|
|
99
|
-
i0.ɵɵtemplate(5,
|
|
99
|
+
i0.ɵɵtemplate(5, ButtonComponent_Conditional_5_Template, 1, 1, "span", 4);
|
|
100
100
|
} if (rf & 2) {
|
|
101
|
-
i0.ɵɵ
|
|
101
|
+
i0.ɵɵconditional(ctx.iconurl ? 0 : -1);
|
|
102
102
|
i0.ɵɵadvance();
|
|
103
|
-
i0.ɵɵ
|
|
103
|
+
i0.ɵɵconditional(ctx.iconclass ? 1 : -1);
|
|
104
104
|
i0.ɵɵadvance();
|
|
105
|
-
i0.ɵɵ
|
|
105
|
+
i0.ɵɵconditional(ctx.iconclass ? 2 : -1);
|
|
106
106
|
i0.ɵɵadvance();
|
|
107
107
|
i0.ɵɵproperty("innerHTML", ctx.caption, i0.ɵɵsanitizeHtml);
|
|
108
108
|
i0.ɵɵadvance(2);
|
|
109
|
-
i0.ɵɵ
|
|
110
|
-
} }, dependencies: [i1.
|
|
109
|
+
i0.ɵɵconditional(ctx.badgevalue ? 5 : -1);
|
|
110
|
+
} }, dependencies: [i1.NgStyle, i2.TextContentDirective, i2.ImagePipe], encapsulation: 2 }); }
|
|
111
111
|
}
|
|
112
112
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ButtonComponent, [{
|
|
113
113
|
type: Component,
|
|
114
114
|
args: [{ selector: 'button[wmButton]', providers: [
|
|
115
115
|
provideAsWidgetRef(ButtonComponent)
|
|
116
|
-
], exportAs: 'wmButton', template: "<img data-identifier=\"img\" alt=\"button image\" class=\"button-image-icon\" [src]=\"iconurl | image\"
|
|
116
|
+
], exportAs: 'wmButton', template: "@if (iconurl) {\n <img data-identifier=\"img\" alt=\"button image\" class=\"button-image-icon\" [src]=\"iconurl | image\" [ngStyle]=\"{width:iconwidth, height:iconheight, margin:iconmargin}\"/>\n}\n@if (iconclass) {\n <i class=\"app-icon {{iconclass}}\" aria-hidden=\"true\" [ngStyle]=\"{width:iconwidth, height:iconheight, margin:iconmargin, fontSize:iconwidth}\"></i>\n}\n@if (iconclass) {\n <span class=\"sr-only\">{{caption}} {{appLocale.LABEL_ICON}}</span>\n}\n<span class=\"btn-caption\" [innerHTML]=\"caption\"></span>\n<ng-content select=\".caret\"></ng-content>\n@if (badgevalue) {\n <span class=\"badge pull-right\" [textContent]=\"badgevalue\"></span>\n}\n" }]
|
|
117
117
|
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
118
118
|
type: Inject,
|
|
119
119
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -901,41 +901,41 @@ const _c1$9 = (a0, a1) => ["checkbox", "app-checkbox", a0, a1];
|
|
|
901
901
|
const _c2$6 = a0 => ({ "disabled": a0 });
|
|
902
902
|
const _c3$2 = a0 => ({ "collapsible-content": a0 });
|
|
903
903
|
const _c4$2 = (a0, a1) => ["checkbox", "app-checkbox", "group-list-item", a0, a1];
|
|
904
|
-
function
|
|
905
|
-
i0.ɵɵelementStart(0, "label",
|
|
906
|
-
i0.ɵɵelement(1, "input",
|
|
904
|
+
function CheckboxsetComponent_Conditional_0_For_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
905
|
+
i0.ɵɵelementStart(0, "label", 4);
|
|
906
|
+
i0.ɵɵelement(1, "input", 6)(2, "span", 7);
|
|
907
907
|
i0.ɵɵelementEnd();
|
|
908
908
|
} if (rf & 2) {
|
|
909
909
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
910
910
|
const item_r2 = ctx_r3.$implicit;
|
|
911
|
-
const
|
|
911
|
+
const ɵ$index_2_r5 = ctx_r3.$index;
|
|
912
912
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
913
913
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c2$6, ctx_r2.disabled || ctx_r2.readonly))("title", item_r2.label);
|
|
914
914
|
i0.ɵɵadvance();
|
|
915
915
|
i0.ɵɵproperty("name", "checkboxset_" + ctx_r2.widgetId)("tabindex", ctx_r2.tabindex)("disabled", ctx_r2.disabled || ctx_r2.readonly)("value", item_r2.key)("tabindex", ctx_r2.tabindex)("checked", item_r2.selected);
|
|
916
|
-
i0.ɵɵattribute("data-attr-index",
|
|
916
|
+
i0.ɵɵattribute("data-attr-index", ɵ$index_2_r5);
|
|
917
917
|
i0.ɵɵadvance();
|
|
918
918
|
i0.ɵɵproperty("textContent", item_r2.label);
|
|
919
919
|
} }
|
|
920
|
-
function
|
|
921
|
-
i0.ɵɵelementStart(0, "label",
|
|
922
|
-
i0.ɵɵelement(1, "input",
|
|
920
|
+
function CheckboxsetComponent_Conditional_0_For_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
921
|
+
i0.ɵɵelementStart(0, "label", 5);
|
|
922
|
+
i0.ɵɵelement(1, "input", 6)(2, "span", 8);
|
|
923
923
|
i0.ɵɵelementEnd();
|
|
924
924
|
} if (rf & 2) {
|
|
925
925
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
926
926
|
const item_r2 = ctx_r3.$implicit;
|
|
927
|
-
const
|
|
927
|
+
const ɵ$index_2_r5 = ctx_r3.$index;
|
|
928
928
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
929
929
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c2$6, ctx_r2.disabled || ctx_r2.readonly));
|
|
930
930
|
i0.ɵɵadvance();
|
|
931
931
|
i0.ɵɵproperty("name", "checkboxset_" + ctx_r2.widgetId)("tabindex", ctx_r2.tabindex)("disabled", ctx_r2.disabled || ctx_r2.readonly)("value", item_r2.key)("tabindex", ctx_r2.tabindex)("checked", item_r2.selected);
|
|
932
|
-
i0.ɵɵattribute("data-attr-index",
|
|
932
|
+
i0.ɵɵattribute("data-attr-index", ɵ$index_2_r5);
|
|
933
933
|
} }
|
|
934
|
-
function
|
|
934
|
+
function CheckboxsetComponent_Conditional_0_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
935
935
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
936
|
-
i0.ɵɵelementStart(0, "li",
|
|
937
|
-
i0.ɵɵlistener("click", function
|
|
938
|
-
i0.ɵɵtemplate(1,
|
|
936
|
+
i0.ɵɵelementStart(0, "li", 3);
|
|
937
|
+
i0.ɵɵlistener("click", function CheckboxsetComponent_Conditional_0_For_1_Template_li_click_0_listener($event) { const item_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onCheckboxLabelClick($event, item_r2.key)); });
|
|
938
|
+
i0.ɵɵtemplate(1, CheckboxsetComponent_Conditional_0_For_1_Conditional_1_Template, 3, 12, "label", 4)(2, CheckboxsetComponent_Conditional_0_For_1_Conditional_2_Template, 3, 10, "label", 5);
|
|
939
939
|
i0.ɵɵelementEnd();
|
|
940
940
|
} if (rf & 2) {
|
|
941
941
|
const item_r2 = ctx.$implicit;
|
|
@@ -943,66 +943,63 @@ function CheckboxsetComponent_ng_template_0_li_0_Template(rf, ctx) { if (rf & 1)
|
|
|
943
943
|
i0.ɵɵclassProp("active", item_r2.selected);
|
|
944
944
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(7, _c1$9, ctx_r2.itemclass, ctx_r2.itemsPerRowClass))("wmItemTemplate", ctx_r2.content)("userComponentParams", item_r2);
|
|
945
945
|
i0.ɵɵadvance();
|
|
946
|
-
i0.ɵɵ
|
|
946
|
+
i0.ɵɵconditional(!ctx_r2.content ? 1 : -1);
|
|
947
947
|
i0.ɵɵadvance();
|
|
948
|
-
i0.ɵɵ
|
|
948
|
+
i0.ɵɵconditional(ctx_r2.content ? 2 : -1);
|
|
949
949
|
} }
|
|
950
|
-
function
|
|
951
|
-
i0.ɵɵ
|
|
950
|
+
function CheckboxsetComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
951
|
+
i0.ɵɵrepeaterCreate(0, CheckboxsetComponent_Conditional_0_For_1_Template, 3, 10, "li", 2, i0.ɵɵrepeaterTrackByIdentity);
|
|
952
952
|
} if (rf & 2) {
|
|
953
953
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
954
|
-
i0.ɵɵ
|
|
954
|
+
i0.ɵɵrepeater(ctx_r2.datasetItems);
|
|
955
955
|
} }
|
|
956
|
-
function
|
|
957
|
-
i0.ɵɵelement(0, "
|
|
958
|
-
} }
|
|
959
|
-
function CheckboxsetComponent_ng_template_3_li_0_i_6_Template(rf, ctx) { if (rf & 1) {
|
|
960
|
-
i0.ɵɵelement(0, "i", 23);
|
|
956
|
+
function CheckboxsetComponent_Conditional_1_For_1_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
957
|
+
i0.ɵɵelement(0, "i", 14);
|
|
961
958
|
} if (rf & 2) {
|
|
962
959
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
963
960
|
i0.ɵɵpropertyInterpolate2("title", "", ctx_r2.appLocale.LABEL_COLLAPSE, "/", ctx_r2.appLocale.LABEL_EXPAND, "");
|
|
964
961
|
} }
|
|
965
|
-
function
|
|
966
|
-
i0.ɵɵelement(0, "span",
|
|
962
|
+
function CheckboxsetComponent_Conditional_1_For_1_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
963
|
+
i0.ɵɵelement(0, "span", 15);
|
|
967
964
|
} if (rf & 2) {
|
|
968
965
|
const groupObj_r7 = i0.ɵɵnextContext().$implicit;
|
|
969
966
|
i0.ɵɵproperty("textContent", groupObj_r7.data.length);
|
|
970
967
|
} }
|
|
971
|
-
function
|
|
972
|
-
i0.ɵɵelementStart(0, "label",
|
|
973
|
-
i0.ɵɵelement(1, "input",
|
|
968
|
+
function CheckboxsetComponent_Conditional_1_For_1_For_9_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
969
|
+
i0.ɵɵelementStart(0, "label", 4);
|
|
970
|
+
i0.ɵɵelement(1, "input", 6)(2, "span", 7);
|
|
974
971
|
i0.ɵɵelementEnd();
|
|
975
972
|
} if (rf & 2) {
|
|
976
973
|
const ctx_r9 = i0.ɵɵnextContext();
|
|
977
974
|
const item_r9 = ctx_r9.$implicit;
|
|
978
|
-
const
|
|
975
|
+
const ɵ$index_38_r11 = ctx_r9.$index;
|
|
979
976
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
980
977
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c2$6, ctx_r2.disabled || ctx_r2.readonly))("title", item_r9.label);
|
|
981
978
|
i0.ɵɵadvance();
|
|
982
979
|
i0.ɵɵproperty("name", "checkboxset_" + ctx_r2.widgetId)("tabindex", ctx_r2.tabindex)("disabled", ctx_r2.disabled || ctx_r2.readonly)("value", item_r9.key)("tabindex", ctx_r2.tabindex)("checked", item_r9.selected);
|
|
983
|
-
i0.ɵɵattribute("data-attr-index",
|
|
980
|
+
i0.ɵɵattribute("data-attr-index", ɵ$index_38_r11);
|
|
984
981
|
i0.ɵɵadvance();
|
|
985
982
|
i0.ɵɵproperty("textContent", item_r9.label);
|
|
986
983
|
} }
|
|
987
|
-
function
|
|
988
|
-
i0.ɵɵelementStart(0, "label",
|
|
989
|
-
i0.ɵɵelement(1, "input",
|
|
984
|
+
function CheckboxsetComponent_Conditional_1_For_1_For_9_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
985
|
+
i0.ɵɵelementStart(0, "label", 5);
|
|
986
|
+
i0.ɵɵelement(1, "input", 6)(2, "span", 18);
|
|
990
987
|
i0.ɵɵelementEnd();
|
|
991
988
|
} if (rf & 2) {
|
|
992
989
|
const ctx_r9 = i0.ɵɵnextContext();
|
|
993
990
|
const item_r9 = ctx_r9.$implicit;
|
|
994
|
-
const
|
|
991
|
+
const ɵ$index_38_r11 = ctx_r9.$index;
|
|
995
992
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
996
993
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c2$6, ctx_r2.disabled || ctx_r2.readonly));
|
|
997
994
|
i0.ɵɵadvance();
|
|
998
995
|
i0.ɵɵproperty("name", "checkboxset_" + ctx_r2.widgetId)("tabindex", ctx_r2.tabindex)("disabled", ctx_r2.disabled || ctx_r2.readonly)("value", item_r9.key)("tabindex", ctx_r2.tabindex)("checked", item_r9.selected);
|
|
999
|
-
i0.ɵɵattribute("data-attr-index",
|
|
996
|
+
i0.ɵɵattribute("data-attr-index", ɵ$index_38_r11);
|
|
1000
997
|
} }
|
|
1001
|
-
function
|
|
998
|
+
function CheckboxsetComponent_Conditional_1_For_1_For_9_Template(rf, ctx) { if (rf & 1) {
|
|
1002
999
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
1003
|
-
i0.ɵɵelementStart(0, "li",
|
|
1004
|
-
i0.ɵɵlistener("click", function
|
|
1005
|
-
i0.ɵɵtemplate(1,
|
|
1000
|
+
i0.ɵɵelementStart(0, "li", 17);
|
|
1001
|
+
i0.ɵɵlistener("click", function CheckboxsetComponent_Conditional_1_For_1_For_9_Template_li_click_0_listener($event) { const item_r9 = i0.ɵɵrestoreView(_r8).$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.onCheckboxLabelClick($event, item_r9)); });
|
|
1002
|
+
i0.ɵɵtemplate(1, CheckboxsetComponent_Conditional_1_For_1_For_9_Conditional_1_Template, 3, 12, "label", 4)(2, CheckboxsetComponent_Conditional_1_For_1_For_9_Conditional_2_Template, 3, 10, "label", 5);
|
|
1006
1003
|
i0.ɵɵelementEnd();
|
|
1007
1004
|
} if (rf & 2) {
|
|
1008
1005
|
const item_r9 = ctx.$implicit;
|
|
@@ -1010,45 +1007,48 @@ function CheckboxsetComponent_ng_template_3_li_0_li_8_Template(rf, ctx) { if (rf
|
|
|
1010
1007
|
i0.ɵɵclassProp("active", item_r9.selected);
|
|
1011
1008
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(7, _c4$2, ctx_r2.itemclass, ctx_r2.itemsPerRowClass))("wmItemTemplate", ctx_r2.content)("userComponentParams", item_r9);
|
|
1012
1009
|
i0.ɵɵadvance();
|
|
1013
|
-
i0.ɵɵ
|
|
1010
|
+
i0.ɵɵconditional(!ctx_r2.content ? 1 : -1);
|
|
1014
1011
|
i0.ɵɵadvance();
|
|
1015
|
-
i0.ɵɵ
|
|
1012
|
+
i0.ɵɵconditional(ctx_r2.content ? 2 : -1);
|
|
1016
1013
|
} }
|
|
1017
|
-
function
|
|
1014
|
+
function CheckboxsetComponent_Conditional_1_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
1018
1015
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
1019
|
-
i0.ɵɵelementStart(0, "li",
|
|
1020
|
-
i0.ɵɵlistener("click", function
|
|
1021
|
-
i0.ɵɵelementStart(3, "h4",
|
|
1016
|
+
i0.ɵɵelementStart(0, "li", 9)(1, "ul", 10)(2, "li", 11);
|
|
1017
|
+
i0.ɵɵlistener("click", function CheckboxsetComponent_Conditional_1_For_1_Template_li_click_2_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.handleHeaderClick($event)); });
|
|
1018
|
+
i0.ɵɵelementStart(3, "h4", 12);
|
|
1022
1019
|
i0.ɵɵtext(4);
|
|
1023
|
-
i0.ɵɵelementStart(5, "div",
|
|
1024
|
-
i0.ɵɵtemplate(6,
|
|
1020
|
+
i0.ɵɵelementStart(5, "div", 13);
|
|
1021
|
+
i0.ɵɵtemplate(6, CheckboxsetComponent_Conditional_1_For_1_Conditional_6_Template, 1, 3, "i", 14)(7, CheckboxsetComponent_Conditional_1_For_1_Conditional_7_Template, 1, 1, "span", 15);
|
|
1025
1022
|
i0.ɵɵelementEnd()()();
|
|
1026
|
-
i0.ɵɵ
|
|
1023
|
+
i0.ɵɵrepeaterCreate(8, CheckboxsetComponent_Conditional_1_For_1_For_9_Template, 3, 10, "li", 16, i0.ɵɵrepeaterTrackByIdentity);
|
|
1027
1024
|
i0.ɵɵelementEnd()();
|
|
1028
1025
|
} if (rf & 2) {
|
|
1029
1026
|
const groupObj_r7 = ctx.$implicit;
|
|
1030
|
-
const
|
|
1027
|
+
const ɵ$index_20_r12 = ctx.$index;
|
|
1031
1028
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
1032
1029
|
i0.ɵɵadvance();
|
|
1033
|
-
i0.ɵɵattribute("aria-labelledby", "group_" + ctx_r2.widgetId + "_" +
|
|
1030
|
+
i0.ɵɵattribute("aria-labelledby", "group_" + ctx_r2.widgetId + "_" + ɵ$index_20_r12);
|
|
1034
1031
|
i0.ɵɵadvance();
|
|
1035
|
-
i0.ɵɵproperty("id", "group_" + ctx_r2.widgetId + "_" +
|
|
1032
|
+
i0.ɵɵproperty("id", "group_" + ctx_r2.widgetId + "_" + ɵ$index_20_r12)("title", groupObj_r7.key)("ngClass", i0.ɵɵpureFunction1(8, _c3$2, ctx_r2.collapsible));
|
|
1036
1033
|
i0.ɵɵadvance();
|
|
1037
1034
|
i0.ɵɵattribute("aria-label", "Group " + groupObj_r7.key);
|
|
1038
1035
|
i0.ɵɵadvance();
|
|
1039
1036
|
i0.ɵɵtextInterpolate1("", groupObj_r7.key, " ");
|
|
1040
1037
|
i0.ɵɵadvance(2);
|
|
1041
|
-
i0.ɵɵ
|
|
1038
|
+
i0.ɵɵconditional(ctx_r2.collapsible ? 6 : -1);
|
|
1042
1039
|
i0.ɵɵadvance();
|
|
1043
|
-
i0.ɵɵ
|
|
1040
|
+
i0.ɵɵconditional(ctx_r2.showcount ? 7 : -1);
|
|
1044
1041
|
i0.ɵɵadvance();
|
|
1045
|
-
i0.ɵɵ
|
|
1042
|
+
i0.ɵɵrepeater(groupObj_r7.data);
|
|
1046
1043
|
} }
|
|
1047
|
-
function
|
|
1048
|
-
i0.ɵɵ
|
|
1044
|
+
function CheckboxsetComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
1045
|
+
i0.ɵɵrepeaterCreate(0, CheckboxsetComponent_Conditional_1_For_1_Template, 10, 10, "li", 9, i0.ɵɵrepeaterTrackByIdentity);
|
|
1049
1046
|
} if (rf & 2) {
|
|
1050
1047
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
1051
|
-
i0.ɵɵ
|
|
1048
|
+
i0.ɵɵrepeater(ctx_r2.groupedData);
|
|
1049
|
+
} }
|
|
1050
|
+
function CheckboxsetComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
1051
|
+
i0.ɵɵelement(0, "div", 1);
|
|
1052
1052
|
} }
|
|
1053
1053
|
const DEFAULT_CLS$3 = 'app-checkboxset list-group inline';
|
|
1054
1054
|
const WIDGET_CONFIG$b = { widgetType: 'wm-checkboxset', hostClass: DEFAULT_CLS$3 };
|
|
@@ -1122,18 +1122,17 @@ class CheckboxsetComponent extends DatasetAwareFormComponent {
|
|
|
1122
1122
|
provideAs(CheckboxsetComponent, NG_VALUE_ACCESSOR, true),
|
|
1123
1123
|
provideAs(CheckboxsetComponent, NG_VALIDATORS, true),
|
|
1124
1124
|
provideAsWidgetRef(CheckboxsetComponent)
|
|
1125
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0$a, decls:
|
|
1126
|
-
i0.ɵɵtemplate(0,
|
|
1127
|
-
i0.ɵɵelement(
|
|
1128
|
-
i0.ɵɵtemplate(
|
|
1125
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0$a, decls: 4, vars: 3, consts: [["hidden", "", 1, "model-holder", 3, "disabled"], [1, "readonly-wrapper"], ["partialContainer", "", "role", "presentation", 3, "ngClass", "active", "wmItemTemplate", "userComponentParams"], ["partialContainer", "", "role", "presentation", 3, "click", "ngClass", "wmItemTemplate", "userComponentParams"], [1, "app-checkboxset-label", 3, "ngClass", "title"], [1, "app-checkboxset-label", 3, "ngClass"], ["type", "checkbox", 3, "name", "tabindex", "disabled", "value", "checked"], [1, "caption", 3, "textContent"], ["partial-container-target", "", 1, "caption", "customTemplate"], ["role", "presentation", 1, "app-list-item-group"], [1, "item-group"], ["aria-hidden", "true", 1, "list-group-header", 3, "click", "id", "title", "ngClass"], [1, "group-title"], [1, "header-action"], [1, "app-icon", "wi", "action", "wi-chevron-up", 3, "title"], [1, "label", "label-default", 3, "textContent"], ["partialContainer", "", 3, "ngClass", "active", "wmItemTemplate", "userComponentParams"], ["partialContainer", "", 3, "click", "ngClass", "wmItemTemplate", "userComponentParams"], ["partial-container-target", "", 1, "caption"]], template: function CheckboxsetComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1126
|
+
i0.ɵɵtemplate(0, CheckboxsetComponent_Conditional_0_Template, 2, 0)(1, CheckboxsetComponent_Conditional_1_Template, 2, 0);
|
|
1127
|
+
i0.ɵɵelement(2, "input", 0);
|
|
1128
|
+
i0.ɵɵtemplate(3, CheckboxsetComponent_Conditional_3_Template, 1, 0, "div", 1);
|
|
1129
1129
|
} if (rf & 2) {
|
|
1130
|
-
|
|
1131
|
-
i0.ɵɵ
|
|
1132
|
-
i0.ɵɵadvance();
|
|
1130
|
+
i0.ɵɵconditional(!ctx.groupby ? 0 : 1);
|
|
1131
|
+
i0.ɵɵadvance(2);
|
|
1133
1132
|
i0.ɵɵproperty("disabled", ctx.disabled || ctx.readonly);
|
|
1134
1133
|
i0.ɵɵadvance();
|
|
1135
|
-
i0.ɵɵ
|
|
1136
|
-
} }, dependencies: [i1.NgClass,
|
|
1134
|
+
i0.ɵɵconditional(ctx.readonly || ctx.disabled ? 3 : -1);
|
|
1135
|
+
} }, dependencies: [i1.NgClass, i2.ItemTemplateDirective, i2.PartialParamHandlerDirective, i2.PartialContainerDirective, i2.TextContentDirective], encapsulation: 2 }); }
|
|
1137
1136
|
}
|
|
1138
1137
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckboxsetComponent, [{
|
|
1139
1138
|
type: Component,
|
|
@@ -1141,7 +1140,7 @@ class CheckboxsetComponent extends DatasetAwareFormComponent {
|
|
|
1141
1140
|
provideAs(CheckboxsetComponent, NG_VALUE_ACCESSOR, true),
|
|
1142
1141
|
provideAs(CheckboxsetComponent, NG_VALIDATORS, true),
|
|
1143
1142
|
provideAsWidgetRef(CheckboxsetComponent)
|
|
1144
|
-
], template: "
|
|
1143
|
+
], template: "@if (!groupby) {\n @for (item of datasetItems; track item; let i = $index) {\n <li [ngClass]=\"['checkbox', 'app-checkbox', itemclass, itemsPerRowClass]\"\n [class.active]=\"item.selected\"\n [wmItemTemplate]=\"content\" [userComponentParams]=\"item\" partialContainer\n (click)=\"onCheckboxLabelClick($event, item.key)\" role=\"presentation\">\n <!-- Default item template -->\n @if (!content) {\n <label class=\"app-checkboxset-label\" [ngClass]=\"{'disabled':disabled || readonly}\" [title]=\"item.label\">\n <input [name]=\"'checkboxset_' + widgetId\" [tabindex]=\"tabindex\"\n type=\"checkbox\"\n [disabled]=\"disabled || readonly\" [attr.data-attr-index]=\"i\"\n [value]=\"item.key\" [tabindex]=\"tabindex\" [checked]=\"item.selected\"/>\n <span class=\"caption\" [textContent]=\"item.label\"></span>\n </label>\n }\n <!-- Custom partial template -->\n @if (content) {\n <label class=\"app-checkboxset-label\" [ngClass]=\"{'disabled':disabled || readonly}\" >\n <input [name]=\"'checkboxset_' + widgetId\" [tabindex]=\"tabindex\"\n type=\"checkbox\"\n [disabled]=\"disabled || readonly\" [attr.data-attr-index]=\"i\"\n [value]=\"item.key\" [tabindex]=\"tabindex\" [checked]=\"item.selected\"/>\n <span class=\"caption customTemplate\" partial-container-target></span>\n </label>\n }\n </li>\n }\n} @else {\n @for (groupObj of groupedData; track groupObj; let groupindex = $index) {\n <li class=\"app-list-item-group\" role=\"presentation\">\n <ul class=\"item-group\" [attr.aria-labelledby]=\"'group_' + widgetId + '_' + groupindex\">\n <li [id]=\"'group_' + widgetId + '_' + groupindex\" aria-hidden=\"true\" class=\"list-group-header\" (click)=\"handleHeaderClick($event)\" [title]=\"groupObj.key\" [ngClass]=\"{'collapsible-content': collapsible}\">\n <h4 class=\"group-title\" [attr.aria-label]=\"'Group '+groupObj.key\">{{groupObj.key}}\n <div class=\"header-action\">\n @if (collapsible) {\n <i class=\"app-icon wi action wi-chevron-up\" title=\"{{appLocale.LABEL_COLLAPSE}}/{{appLocale.LABEL_EXPAND}}\"></i>\n }\n @if (showcount) {\n <span class=\"label label-default\" [textContent]=\"groupObj.data.length\"></span>\n }\n </div>\n </h4>\n </li>\n @for (item of groupObj.data; track item; let i = $index) {\n <li\n [ngClass]=\"['checkbox', 'app-checkbox', 'group-list-item', itemclass, itemsPerRowClass]\"\n [class.active]=\"item.selected\"\n [wmItemTemplate]=\"content\" [userComponentParams]=\"item\" partialContainer\n (click)=\"onCheckboxLabelClick($event, item)\">\n <!-- Default item template -->\n @if (!content) {\n <label class=\"app-checkboxset-label\" [ngClass]=\"{'disabled':disabled || readonly}\" [title]=\"item.label\">\n <input [name]=\"'checkboxset_' + widgetId\" type=\"checkbox\"\n [tabindex]=\"tabindex\"\n [disabled]=\"disabled || readonly\" [attr.data-attr-index]=\"i\"\n [value]=\"item.key\" [tabindex]=\"tabindex\" [checked]=\"item.selected\"/>\n <span class=\"caption\" [textContent]=\"item.label\"></span>\n </label>\n }\n <!-- Custom partial template -->\n @if (content) {\n <label class=\"app-checkboxset-label\" [ngClass]=\"{'disabled':disabled || readonly}\" >\n <input [name]=\"'checkboxset_' + widgetId\" type=\"checkbox\"\n [tabindex]=\"tabindex\"\n [disabled]=\"disabled || readonly\" [attr.data-attr-index]=\"i\"\n [value]=\"item.key\" [tabindex]=\"tabindex\" [checked]=\"item.selected\"/>\n <span class=\"caption\" partial-container-target></span>\n </label>\n }\n </li>\n }\n </ul>\n </li>\n }\n}\n<input [disabled]=\"disabled || readonly\" hidden class=\"model-holder\">\n@if (readonly || disabled) {\n <div class=\"readonly-wrapper\"></div>\n}\n\n<!-- This template will be displayed when groupby is specified. -->\n" }]
|
|
1145
1144
|
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
1146
1145
|
type: Inject,
|
|
1147
1146
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -1971,41 +1970,41 @@ const _c1$7 = (a0, a1) => ["radio", "app-radio", a0, a1];
|
|
|
1971
1970
|
const _c2$5 = a0 => ({ "disabled": a0 });
|
|
1972
1971
|
const _c3$1 = a0 => ({ "collapsible-content": a0 });
|
|
1973
1972
|
const _c4$1 = (a0, a1) => ["radio", "app-radio", "group-list-item", a0, a1];
|
|
1974
|
-
function
|
|
1975
|
-
i0.ɵɵelementStart(0, "label",
|
|
1976
|
-
i0.ɵɵelement(1, "input",
|
|
1973
|
+
function RadiosetComponent_Conditional_0_For_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
1974
|
+
i0.ɵɵelementStart(0, "label", 4);
|
|
1975
|
+
i0.ɵɵelement(1, "input", 5)(2, "span", 6);
|
|
1977
1976
|
i0.ɵɵelementEnd();
|
|
1978
1977
|
} if (rf & 2) {
|
|
1979
1978
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
1980
1979
|
const item_r2 = ctx_r3.$implicit;
|
|
1981
|
-
const
|
|
1980
|
+
const ɵ$index_2_r5 = ctx_r3.$index;
|
|
1982
1981
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
1983
1982
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c2$5, ctx_r2.disabled || ctx_r2.readonly));
|
|
1984
1983
|
i0.ɵɵadvance();
|
|
1985
1984
|
i0.ɵɵproperty("checked", item_r2.selected)("disabled", ctx_r2.disabled || ctx_r2.readonly)("name", "radioset_" + ctx_r2.widgetId)("tabindex", ctx_r2.tabindex)("value", item_r2.key);
|
|
1986
|
-
i0.ɵɵattribute("data-attr-index",
|
|
1985
|
+
i0.ɵɵattribute("data-attr-index", ɵ$index_2_r5);
|
|
1987
1986
|
i0.ɵɵadvance();
|
|
1988
1987
|
i0.ɵɵproperty("textContent", item_r2.label);
|
|
1989
1988
|
} }
|
|
1990
|
-
function
|
|
1991
|
-
i0.ɵɵelementStart(0, "label",
|
|
1992
|
-
i0.ɵɵelement(1, "input",
|
|
1989
|
+
function RadiosetComponent_Conditional_0_For_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
1990
|
+
i0.ɵɵelementStart(0, "label", 4);
|
|
1991
|
+
i0.ɵɵelement(1, "input", 5)(2, "span", 7);
|
|
1993
1992
|
i0.ɵɵelementEnd();
|
|
1994
1993
|
} if (rf & 2) {
|
|
1995
1994
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
1996
1995
|
const item_r2 = ctx_r3.$implicit;
|
|
1997
|
-
const
|
|
1996
|
+
const ɵ$index_2_r5 = ctx_r3.$index;
|
|
1998
1997
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
1999
1998
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c2$5, ctx_r2.disabled || ctx_r2.readonly));
|
|
2000
1999
|
i0.ɵɵadvance();
|
|
2001
2000
|
i0.ɵɵproperty("checked", item_r2.selected)("disabled", ctx_r2.disabled || ctx_r2.readonly)("name", "radioset_" + ctx_r2.widgetId)("tabindex", ctx_r2.tabindex)("value", item_r2.key);
|
|
2002
|
-
i0.ɵɵattribute("data-attr-index",
|
|
2001
|
+
i0.ɵɵattribute("data-attr-index", ɵ$index_2_r5);
|
|
2003
2002
|
} }
|
|
2004
|
-
function
|
|
2003
|
+
function RadiosetComponent_Conditional_0_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
2005
2004
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
2006
|
-
i0.ɵɵelementStart(0, "li",
|
|
2007
|
-
i0.ɵɵlistener("click", function
|
|
2008
|
-
i0.ɵɵtemplate(1,
|
|
2005
|
+
i0.ɵɵelementStart(0, "li", 3);
|
|
2006
|
+
i0.ɵɵlistener("click", function RadiosetComponent_Conditional_0_For_1_Template_li_click_0_listener($event) { const item_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onRadioLabelClick($event, item_r2.key)); });
|
|
2007
|
+
i0.ɵɵtemplate(1, RadiosetComponent_Conditional_0_For_1_Conditional_1_Template, 3, 10, "label", 4)(2, RadiosetComponent_Conditional_0_For_1_Conditional_2_Template, 3, 9, "label", 4);
|
|
2009
2008
|
i0.ɵɵelementEnd();
|
|
2010
2009
|
} if (rf & 2) {
|
|
2011
2010
|
const item_r2 = ctx.$implicit;
|
|
@@ -2013,66 +2012,63 @@ function RadiosetComponent_ng_template_0_li_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
2013
2012
|
i0.ɵɵclassProp("active", item_r2.selected);
|
|
2014
2013
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(7, _c1$7, ctx_r2.itemclass, ctx_r2.itemsPerRowClass))("wmItemTemplate", ctx_r2.content)("userComponentParams", item_r2);
|
|
2015
2014
|
i0.ɵɵadvance();
|
|
2016
|
-
i0.ɵɵ
|
|
2015
|
+
i0.ɵɵconditional(!ctx_r2.content ? 1 : -1);
|
|
2017
2016
|
i0.ɵɵadvance();
|
|
2018
|
-
i0.ɵɵ
|
|
2017
|
+
i0.ɵɵconditional(ctx_r2.content ? 2 : -1);
|
|
2019
2018
|
} }
|
|
2020
|
-
function
|
|
2021
|
-
i0.ɵɵ
|
|
2019
|
+
function RadiosetComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
2020
|
+
i0.ɵɵrepeaterCreate(0, RadiosetComponent_Conditional_0_For_1_Template, 3, 10, "li", 2, i0.ɵɵrepeaterTrackByIdentity);
|
|
2022
2021
|
} if (rf & 2) {
|
|
2023
2022
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
2024
|
-
i0.ɵɵ
|
|
2023
|
+
i0.ɵɵrepeater(ctx_r2.datasetItems);
|
|
2025
2024
|
} }
|
|
2026
|
-
function
|
|
2027
|
-
i0.ɵɵelement(0, "
|
|
2028
|
-
} }
|
|
2029
|
-
function RadiosetComponent_ng_template_3_li_0_i_6_Template(rf, ctx) { if (rf & 1) {
|
|
2030
|
-
i0.ɵɵelement(0, "i", 21);
|
|
2025
|
+
function RadiosetComponent_Conditional_1_For_1_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
2026
|
+
i0.ɵɵelement(0, "i", 13);
|
|
2031
2027
|
} if (rf & 2) {
|
|
2032
2028
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
2033
2029
|
i0.ɵɵpropertyInterpolate2("title", "", ctx_r2.appLocale.LABEL_COLLAPSE, "/", ctx_r2.appLocale.LABEL_EXPAND, "");
|
|
2034
2030
|
} }
|
|
2035
|
-
function
|
|
2036
|
-
i0.ɵɵelement(0, "span",
|
|
2031
|
+
function RadiosetComponent_Conditional_1_For_1_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
2032
|
+
i0.ɵɵelement(0, "span", 14);
|
|
2037
2033
|
} if (rf & 2) {
|
|
2038
2034
|
const groupObj_r7 = i0.ɵɵnextContext().$implicit;
|
|
2039
2035
|
i0.ɵɵproperty("textContent", groupObj_r7.data.length);
|
|
2040
2036
|
} }
|
|
2041
|
-
function
|
|
2042
|
-
i0.ɵɵelementStart(0, "label",
|
|
2043
|
-
i0.ɵɵelement(1, "input",
|
|
2037
|
+
function RadiosetComponent_Conditional_1_For_1_For_9_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
2038
|
+
i0.ɵɵelementStart(0, "label", 4);
|
|
2039
|
+
i0.ɵɵelement(1, "input", 17)(2, "span", 6);
|
|
2044
2040
|
i0.ɵɵelementEnd();
|
|
2045
2041
|
} if (rf & 2) {
|
|
2046
2042
|
const ctx_r9 = i0.ɵɵnextContext();
|
|
2047
2043
|
const item_r9 = ctx_r9.$implicit;
|
|
2048
|
-
const
|
|
2044
|
+
const ɵ$index_38_r11 = ctx_r9.$index;
|
|
2049
2045
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
2050
2046
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c2$5, ctx_r2.disabled || ctx_r2.readonly));
|
|
2051
2047
|
i0.ɵɵadvance();
|
|
2052
2048
|
i0.ɵɵproperty("name", "radioset_" + ctx_r2.widgetId)("value", item_r9.key)("disabled", ctx_r2.disabled || ctx_r2.readonly)("tabindex", ctx_r2.tabindex)("checked", item_r9.selected);
|
|
2053
|
-
i0.ɵɵattribute("data-attr-index",
|
|
2049
|
+
i0.ɵɵattribute("data-attr-index", ɵ$index_38_r11);
|
|
2054
2050
|
i0.ɵɵadvance();
|
|
2055
2051
|
i0.ɵɵproperty("textContent", item_r9.label);
|
|
2056
2052
|
} }
|
|
2057
|
-
function
|
|
2058
|
-
i0.ɵɵelementStart(0, "label",
|
|
2059
|
-
i0.ɵɵelement(1, "input",
|
|
2053
|
+
function RadiosetComponent_Conditional_1_For_1_For_9_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
2054
|
+
i0.ɵɵelementStart(0, "label", 4);
|
|
2055
|
+
i0.ɵɵelement(1, "input", 17)(2, "span", 7);
|
|
2060
2056
|
i0.ɵɵelementEnd();
|
|
2061
2057
|
} if (rf & 2) {
|
|
2062
2058
|
const ctx_r9 = i0.ɵɵnextContext();
|
|
2063
2059
|
const item_r9 = ctx_r9.$implicit;
|
|
2064
|
-
const
|
|
2060
|
+
const ɵ$index_38_r11 = ctx_r9.$index;
|
|
2065
2061
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
2066
2062
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c2$5, ctx_r2.disabled || ctx_r2.readonly));
|
|
2067
2063
|
i0.ɵɵadvance();
|
|
2068
2064
|
i0.ɵɵproperty("name", "radioset_" + ctx_r2.widgetId)("value", item_r9.key)("disabled", ctx_r2.disabled || ctx_r2.readonly)("tabindex", ctx_r2.tabindex)("checked", item_r9.selected);
|
|
2069
|
-
i0.ɵɵattribute("data-attr-index",
|
|
2065
|
+
i0.ɵɵattribute("data-attr-index", ɵ$index_38_r11);
|
|
2070
2066
|
} }
|
|
2071
|
-
function
|
|
2067
|
+
function RadiosetComponent_Conditional_1_For_1_For_9_Template(rf, ctx) { if (rf & 1) {
|
|
2072
2068
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
2073
|
-
i0.ɵɵelementStart(0, "li",
|
|
2074
|
-
i0.ɵɵlistener("click", function
|
|
2075
|
-
i0.ɵɵtemplate(1,
|
|
2069
|
+
i0.ɵɵelementStart(0, "li", 16);
|
|
2070
|
+
i0.ɵɵlistener("click", function RadiosetComponent_Conditional_1_For_1_For_9_Template_li_click_0_listener($event) { const item_r9 = i0.ɵɵrestoreView(_r8).$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.onRadioLabelClick($event, item_r9)); });
|
|
2071
|
+
i0.ɵɵtemplate(1, RadiosetComponent_Conditional_1_For_1_For_9_Conditional_1_Template, 3, 10, "label", 4)(2, RadiosetComponent_Conditional_1_For_1_For_9_Conditional_2_Template, 3, 9, "label", 4);
|
|
2076
2072
|
i0.ɵɵelementEnd();
|
|
2077
2073
|
} if (rf & 2) {
|
|
2078
2074
|
const item_r9 = ctx.$implicit;
|
|
@@ -2080,45 +2076,48 @@ function RadiosetComponent_ng_template_3_li_0_li_8_Template(rf, ctx) { if (rf &
|
|
|
2080
2076
|
i0.ɵɵclassProp("active", item_r9.selected);
|
|
2081
2077
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(7, _c4$1, ctx_r2.itemclass, ctx_r2.itemsPerRowClass))("wmItemTemplate", ctx_r2.content)("userComponentParams", item_r9);
|
|
2082
2078
|
i0.ɵɵadvance();
|
|
2083
|
-
i0.ɵɵ
|
|
2079
|
+
i0.ɵɵconditional(!ctx_r2.content ? 1 : -1);
|
|
2084
2080
|
i0.ɵɵadvance();
|
|
2085
|
-
i0.ɵɵ
|
|
2081
|
+
i0.ɵɵconditional(ctx_r2.content ? 2 : -1);
|
|
2086
2082
|
} }
|
|
2087
|
-
function
|
|
2083
|
+
function RadiosetComponent_Conditional_1_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
2088
2084
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
2089
|
-
i0.ɵɵelementStart(0, "li",
|
|
2090
|
-
i0.ɵɵlistener("click", function
|
|
2091
|
-
i0.ɵɵelementStart(3, "h4",
|
|
2085
|
+
i0.ɵɵelementStart(0, "li", 8)(1, "ul", 9)(2, "li", 10);
|
|
2086
|
+
i0.ɵɵlistener("click", function RadiosetComponent_Conditional_1_For_1_Template_li_click_2_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.handleHeaderClick($event)); });
|
|
2087
|
+
i0.ɵɵelementStart(3, "h4", 11);
|
|
2092
2088
|
i0.ɵɵtext(4);
|
|
2093
|
-
i0.ɵɵelementStart(5, "div",
|
|
2094
|
-
i0.ɵɵtemplate(6,
|
|
2089
|
+
i0.ɵɵelementStart(5, "div", 12);
|
|
2090
|
+
i0.ɵɵtemplate(6, RadiosetComponent_Conditional_1_For_1_Conditional_6_Template, 1, 3, "i", 13)(7, RadiosetComponent_Conditional_1_For_1_Conditional_7_Template, 1, 1, "span", 14);
|
|
2095
2091
|
i0.ɵɵelementEnd()()();
|
|
2096
|
-
i0.ɵɵ
|
|
2092
|
+
i0.ɵɵrepeaterCreate(8, RadiosetComponent_Conditional_1_For_1_For_9_Template, 3, 10, "li", 15, i0.ɵɵrepeaterTrackByIdentity);
|
|
2097
2093
|
i0.ɵɵelementEnd()();
|
|
2098
2094
|
} if (rf & 2) {
|
|
2099
2095
|
const groupObj_r7 = ctx.$implicit;
|
|
2100
|
-
const
|
|
2096
|
+
const ɵ$index_20_r12 = ctx.$index;
|
|
2101
2097
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
2102
2098
|
i0.ɵɵadvance();
|
|
2103
|
-
i0.ɵɵattribute("aria-labelledby", "group_" + ctx_r2.widgetId + "_" +
|
|
2099
|
+
i0.ɵɵattribute("aria-labelledby", "group_" + ctx_r2.widgetId + "_" + ɵ$index_20_r12);
|
|
2104
2100
|
i0.ɵɵadvance();
|
|
2105
|
-
i0.ɵɵproperty("id", "group_" + ctx_r2.widgetId + "_" +
|
|
2101
|
+
i0.ɵɵproperty("id", "group_" + ctx_r2.widgetId + "_" + ɵ$index_20_r12)("title", groupObj_r7.key)("ngClass", i0.ɵɵpureFunction1(8, _c3$1, ctx_r2.collapsible));
|
|
2106
2102
|
i0.ɵɵadvance();
|
|
2107
2103
|
i0.ɵɵattribute("aria-label", "Group " + groupObj_r7.key);
|
|
2108
2104
|
i0.ɵɵadvance();
|
|
2109
2105
|
i0.ɵɵtextInterpolate1("", groupObj_r7.key, " ");
|
|
2110
2106
|
i0.ɵɵadvance(2);
|
|
2111
|
-
i0.ɵɵ
|
|
2107
|
+
i0.ɵɵconditional(ctx_r2.collapsible ? 6 : -1);
|
|
2112
2108
|
i0.ɵɵadvance();
|
|
2113
|
-
i0.ɵɵ
|
|
2109
|
+
i0.ɵɵconditional(ctx_r2.showcount ? 7 : -1);
|
|
2114
2110
|
i0.ɵɵadvance();
|
|
2115
|
-
i0.ɵɵ
|
|
2111
|
+
i0.ɵɵrepeater(groupObj_r7.data);
|
|
2116
2112
|
} }
|
|
2117
|
-
function
|
|
2118
|
-
i0.ɵɵ
|
|
2113
|
+
function RadiosetComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
2114
|
+
i0.ɵɵrepeaterCreate(0, RadiosetComponent_Conditional_1_For_1_Template, 10, 10, "li", 8, i0.ɵɵrepeaterTrackByIdentity);
|
|
2119
2115
|
} if (rf & 2) {
|
|
2120
2116
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
2121
|
-
i0.ɵɵ
|
|
2117
|
+
i0.ɵɵrepeater(ctx_r2.groupedData);
|
|
2118
|
+
} }
|
|
2119
|
+
function RadiosetComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
2120
|
+
i0.ɵɵelement(0, "div", 1);
|
|
2122
2121
|
} }
|
|
2123
2122
|
const DEFAULT_CLS$1 = 'app-radioset list-group inline';
|
|
2124
2123
|
const WIDGET_CONFIG$8 = { widgetType: 'wm-radioset', hostClass: DEFAULT_CLS$1 };
|
|
@@ -2178,18 +2177,17 @@ class RadiosetComponent extends DatasetAwareFormComponent {
|
|
|
2178
2177
|
provideAs(RadiosetComponent, NG_VALUE_ACCESSOR, true),
|
|
2179
2178
|
provideAs(RadiosetComponent, NG_VALIDATORS, true),
|
|
2180
2179
|
provideAsWidgetRef(RadiosetComponent)
|
|
2181
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0$8, decls:
|
|
2182
|
-
i0.ɵɵtemplate(0,
|
|
2183
|
-
i0.ɵɵelement(
|
|
2184
|
-
i0.ɵɵtemplate(
|
|
2180
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0$8, decls: 4, vars: 3, consts: [["hidden", "", 1, "model-holder", 3, "disabled"], ["aria-readonly", "true", 1, "readonly-wrapper"], ["partialContainer", "", "role", "presentation", 3, "ngClass", "active", "wmItemTemplate", "userComponentParams"], ["partialContainer", "", "role", "presentation", 3, "click", "ngClass", "wmItemTemplate", "userComponentParams"], [1, "app-radioset-label", 3, "ngClass"], ["type", "radio", 3, "checked", "disabled", "name", "tabindex", "value"], [1, "caption", 3, "textContent"], ["partial-container-target", "", 1, "caption", "customTemplate"], ["role", "presentation", 1, "app-list-item-group"], [1, "item-group"], ["aria-hidden", "true", 1, "list-group-header", 3, "click", "id", "title", "ngClass"], [1, "group-title"], [1, "header-action"], [1, "app-icon", "wi", "action", "wi-chevron-up", 3, "title"], [1, "label", "label-default", 3, "textContent"], ["partialContainer", "", 3, "ngClass", "active", "wmItemTemplate", "userComponentParams"], ["partialContainer", "", 3, "click", "ngClass", "wmItemTemplate", "userComponentParams"], ["type", "radio", 3, "name", "value", "disabled", "tabindex", "checked"]], template: function RadiosetComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2181
|
+
i0.ɵɵtemplate(0, RadiosetComponent_Conditional_0_Template, 2, 0)(1, RadiosetComponent_Conditional_1_Template, 2, 0);
|
|
2182
|
+
i0.ɵɵelement(2, "input", 0);
|
|
2183
|
+
i0.ɵɵtemplate(3, RadiosetComponent_Conditional_3_Template, 1, 0, "div", 1);
|
|
2185
2184
|
} if (rf & 2) {
|
|
2186
|
-
|
|
2187
|
-
i0.ɵɵ
|
|
2188
|
-
i0.ɵɵadvance();
|
|
2185
|
+
i0.ɵɵconditional(!ctx.groupby ? 0 : 1);
|
|
2186
|
+
i0.ɵɵadvance(2);
|
|
2189
2187
|
i0.ɵɵproperty("disabled", ctx.disabled || ctx.readonly);
|
|
2190
2188
|
i0.ɵɵadvance();
|
|
2191
|
-
i0.ɵɵ
|
|
2192
|
-
} }, dependencies: [i1.NgClass,
|
|
2189
|
+
i0.ɵɵconditional(ctx.readonly || ctx.disabled ? 3 : -1);
|
|
2190
|
+
} }, dependencies: [i1.NgClass, i2.ItemTemplateDirective, i2.PartialParamHandlerDirective, i2.PartialContainerDirective, i2.TextContentDirective], encapsulation: 2 }); }
|
|
2193
2191
|
}
|
|
2194
2192
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RadiosetComponent, [{
|
|
2195
2193
|
type: Component,
|
|
@@ -2197,7 +2195,7 @@ class RadiosetComponent extends DatasetAwareFormComponent {
|
|
|
2197
2195
|
provideAs(RadiosetComponent, NG_VALUE_ACCESSOR, true),
|
|
2198
2196
|
provideAs(RadiosetComponent, NG_VALIDATORS, true),
|
|
2199
2197
|
provideAsWidgetRef(RadiosetComponent)
|
|
2200
|
-
], template: "
|
|
2198
|
+
], template: "@if (!groupby) {\n @for (item of datasetItems; track item; let i = $index) {\n <li [ngClass]=\"['radio', 'app-radio', itemclass, itemsPerRowClass]\"\n [class.active]=\"item.selected\"\n [wmItemTemplate]=\"content\" [userComponentParams]=\"item\" partialContainer\n (click)=\"onRadioLabelClick($event, item.key)\" role=\"presentation\">\n <!-- Default item template -->\n @if (!content) {\n <label class=\"app-radioset-label\"\n [ngClass]=\"{'disabled':disabled || readonly}\">\n <input [attr.data-attr-index]=\"i\" [checked]=\"item.selected\" [disabled]=\"disabled || readonly\"\n [name]=\"'radioset_' + widgetId\" [tabindex]=\"tabindex\" [value]=\"item.key\"\n type=\"radio\"/>\n <span class=\"caption\" [textContent]=\"item.label\"></span>\n </label>\n }\n <!-- Custom partial template -->\n @if (content) {\n <label class=\"app-radioset-label\"\n [ngClass]=\"{'disabled':disabled || readonly}\">\n <input [attr.data-attr-index]=\"i\" [checked]=\"item.selected\" [disabled]=\"disabled || readonly\"\n [name]=\"'radioset_' + widgetId\" [tabindex]=\"tabindex\" [value]=\"item.key\"\n type=\"radio\"/>\n <span class=\"caption customTemplate\" partial-container-target></span>\n </label>\n }\n </li>\n }\n} @else {\n @for (groupObj of groupedData; track groupObj; let groupindex = $index) {\n <li class=\"app-list-item-group\" role=\"presentation\" >\n <ul class=\"item-group\" [attr.aria-labelledby]=\"'group_' + widgetId + '_' + groupindex\">\n <li [id]=\"'group_' + widgetId + '_' + groupindex\" aria-hidden=\"true\" class=\"list-group-header\" (click)=\"handleHeaderClick($event)\" [title]=\"groupObj.key\" [ngClass]=\"{'collapsible-content': collapsible}\">\n <h4 class=\"group-title\" [attr.aria-label]=\"'Group '+groupObj.key\">{{groupObj.key}}\n <div class=\"header-action\">\n @if (collapsible) {\n <i class=\"app-icon wi action wi-chevron-up\" title=\"{{appLocale.LABEL_COLLAPSE}}/{{appLocale.LABEL_EXPAND}}\"></i>\n }\n @if (showcount) {\n <span class=\"label label-default\" [textContent]=\"groupObj.data.length\"></span>\n }\n </div>\n </h4>\n </li>\n @for (item of groupObj.data; track item; let i = $index) {\n <li\n [ngClass]=\"['radio', 'app-radio', 'group-list-item', itemclass, itemsPerRowClass]\"\n [class.active]=\"item.selected\"\n [wmItemTemplate]=\"content\" [userComponentParams]=\"item\" partialContainer\n (click)=\"onRadioLabelClick($event, item)\">\n <!-- Default item template -->\n @if (!content) {\n <label class=\"app-radioset-label\"\n [ngClass]=\"{'disabled':disabled || readonly}\">\n <input [attr.data-attr-index]=\"i\" [name]=\"'radioset_' + widgetId\" type=\"radio\"\n [value]=\"item.key\" [disabled]=\"disabled || readonly\" [tabindex]=\"tabindex\" [checked]=\"item.selected\"/>\n <span class=\"caption\" [textContent]=\"item.label\"></span>\n </label>\n }\n <!-- Custom partial template -->\n @if (content) {\n <label class=\"app-radioset-label\"\n [ngClass]=\"{'disabled':disabled || readonly}\">\n <input [attr.data-attr-index]=\"i\" [name]=\"'radioset_' + widgetId\" type=\"radio\"\n [value]=\"item.key\" [disabled]=\"disabled || readonly\" [tabindex]=\"tabindex\" [checked]=\"item.selected\"/>\n <span class=\"caption customTemplate\" partial-container-target></span>\n </label>\n }\n </li>\n }\n </ul>\n </li>\n }\n}\n\n<input [disabled]=\"disabled || readonly\" hidden class=\"model-holder\">\n@if (readonly || disabled) {\n <div aria-readonly=\"true\" class=\"readonly-wrapper\"></div>\n}\n\n<!-- This template will be displayed when groupby is specified. -->\n" }]
|
|
2201
2199
|
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
2202
2200
|
type: Inject,
|
|
2203
2201
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -2243,45 +2241,39 @@ const registerProps$7 = () => {
|
|
|
2243
2241
|
const _c0$7 = ["select"];
|
|
2244
2242
|
const _c1$6 = a0 => ["app-select form-control", a0];
|
|
2245
2243
|
const _c2$4 = () => ({ standalone: true });
|
|
2246
|
-
function
|
|
2247
|
-
i0.ɵɵelement(0, "option",
|
|
2244
|
+
function SelectComponent_Conditional_3_For_1_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
2245
|
+
i0.ɵɵelement(0, "option", 4);
|
|
2248
2246
|
} if (rf & 2) {
|
|
2249
2247
|
const item_r2 = ctx.$implicit;
|
|
2250
2248
|
i0.ɵɵproperty("value", item_r2.key)("selected", item_r2.selected)("textContent", item_r2.label);
|
|
2251
2249
|
} }
|
|
2252
|
-
function
|
|
2253
|
-
i0.ɵɵelementStart(0, "optgroup",
|
|
2254
|
-
i0.ɵɵ
|
|
2250
|
+
function SelectComponent_Conditional_3_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
2251
|
+
i0.ɵɵelementStart(0, "optgroup", 3);
|
|
2252
|
+
i0.ɵɵrepeaterCreate(1, SelectComponent_Conditional_3_For_1_For_2_Template, 1, 3, "option", 4, i0.ɵɵrepeaterTrackByIdentity);
|
|
2255
2253
|
i0.ɵɵelementEnd();
|
|
2256
2254
|
} if (rf & 2) {
|
|
2257
2255
|
const groupObj_r3 = ctx.$implicit;
|
|
2258
2256
|
i0.ɵɵproperty("label", groupObj_r3.key);
|
|
2259
2257
|
i0.ɵɵadvance();
|
|
2260
|
-
i0.ɵɵ
|
|
2258
|
+
i0.ɵɵrepeater(groupObj_r3.data);
|
|
2261
2259
|
} }
|
|
2262
|
-
function
|
|
2263
|
-
i0.ɵɵ
|
|
2264
|
-
i0.ɵɵtemplate(1, SelectComponent_ng_container_3_optgroup_1_Template, 2, 2, "optgroup", 4);
|
|
2265
|
-
i0.ɵɵelementContainerEnd();
|
|
2260
|
+
function SelectComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
2261
|
+
i0.ɵɵrepeaterCreate(0, SelectComponent_Conditional_3_For_1_Template, 3, 1, "optgroup", 3, i0.ɵɵrepeaterTrackByIdentity);
|
|
2266
2262
|
} if (rf & 2) {
|
|
2267
2263
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
2268
|
-
i0.ɵɵ
|
|
2269
|
-
i0.ɵɵproperty("ngForOf", ctx_r3.groupedData);
|
|
2264
|
+
i0.ɵɵrepeater(ctx_r3.groupedData);
|
|
2270
2265
|
} }
|
|
2271
|
-
function
|
|
2272
|
-
i0.ɵɵelement(0, "option",
|
|
2266
|
+
function SelectComponent_Conditional_4_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
2267
|
+
i0.ɵɵelement(0, "option", 4);
|
|
2273
2268
|
} if (rf & 2) {
|
|
2274
2269
|
const item_r5 = ctx.$implicit;
|
|
2275
2270
|
i0.ɵɵproperty("value", item_r5.key)("selected", item_r5.selected)("textContent", item_r5.label);
|
|
2276
2271
|
} }
|
|
2277
|
-
function
|
|
2278
|
-
i0.ɵɵ
|
|
2279
|
-
i0.ɵɵtemplate(1, SelectComponent_ng_container_4_option_1_Template, 1, 3, "option", 6);
|
|
2280
|
-
i0.ɵɵelementContainerEnd();
|
|
2272
|
+
function SelectComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
2273
|
+
i0.ɵɵrepeaterCreate(0, SelectComponent_Conditional_4_For_1_Template, 1, 3, "option", 4, i0.ɵɵrepeaterTrackByIdentity);
|
|
2281
2274
|
} if (rf & 2) {
|
|
2282
2275
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
2283
|
-
i0.ɵɵ
|
|
2284
|
-
i0.ɵɵproperty("ngForOf", ctx_r3.datasetItems);
|
|
2276
|
+
i0.ɵɵrepeater(ctx_r3.datasetItems);
|
|
2285
2277
|
} }
|
|
2286
2278
|
const WIDGET_CONFIG$7 = { widgetType: 'wm-select', hostClass: 'app-select-wrapper' };
|
|
2287
2279
|
class SelectComponent extends DatasetAwareFormComponent {
|
|
@@ -2424,13 +2416,13 @@ class SelectComponent extends DatasetAwareFormComponent {
|
|
|
2424
2416
|
provideAs(SelectComponent, NG_VALUE_ACCESSOR, true),
|
|
2425
2417
|
provideAs(SelectComponent, NG_VALIDATORS, true),
|
|
2426
2418
|
provideAsWidgetRef(SelectComponent)
|
|
2427
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 18, consts: [["select", ""], ["focus-target", "", 3, "ngModelChange", "change", "mousedown", "blur", "ngClass", "disabled", "required", "tabindex", "ngModel", "ngModelOptions", "multiple", "autofocus"], ["selected", "", "value", "undefined", "id", "placeholderOption", 3, "textContent", "hidden"], [
|
|
2419
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 18, consts: [["select", ""], ["focus-target", "", 3, "ngModelChange", "change", "mousedown", "blur", "ngClass", "disabled", "required", "tabindex", "ngModel", "ngModelOptions", "multiple", "autofocus"], ["selected", "", "value", "undefined", "id", "placeholderOption", 3, "textContent", "hidden"], [3, "label"], [3, "value", "selected", "textContent"]], template: function SelectComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2428
2420
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
2429
2421
|
i0.ɵɵelementStart(0, "select", 1, 0);
|
|
2430
2422
|
i0.ɵɵtwoWayListener("ngModelChange", function SelectComponent_Template_select_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.modelByKey, $event) || (ctx.modelByKey = $event); return i0.ɵɵresetView($event); });
|
|
2431
2423
|
i0.ɵɵlistener("change", function SelectComponent_Template_select_change_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onSelectValueChange($event)); })("mousedown", function SelectComponent_Template_select_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.checkForFloatingLabel($event)); })("blur", function SelectComponent_Template_select_blur_0_listener($event) { i0.ɵɵrestoreView(_r1); ctx.invokeOnTouched($event); return i0.ɵɵresetView(ctx.checkForFloatingLabel($event)); });
|
|
2432
2424
|
i0.ɵɵelement(2, "option", 2);
|
|
2433
|
-
i0.ɵɵtemplate(3,
|
|
2425
|
+
i0.ɵɵtemplate(3, SelectComponent_Conditional_3_Template, 2, 0)(4, SelectComponent_Conditional_4_Template, 2, 0);
|
|
2434
2426
|
i0.ɵɵelementEnd();
|
|
2435
2427
|
} if (rf & 2) {
|
|
2436
2428
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c1$6, ctx.class))("disabled", ctx.disabled)("required", ctx.required)("tabindex", ctx.tabindex);
|
|
@@ -2440,10 +2432,10 @@ class SelectComponent extends DatasetAwareFormComponent {
|
|
|
2440
2432
|
i0.ɵɵadvance(2);
|
|
2441
2433
|
i0.ɵɵproperty("textContent", ctx.placeholder)("hidden", !ctx.placeholder);
|
|
2442
2434
|
i0.ɵɵadvance();
|
|
2443
|
-
i0.ɵɵ
|
|
2435
|
+
i0.ɵɵconditional(ctx.groupby ? 3 : -1);
|
|
2444
2436
|
i0.ɵɵadvance();
|
|
2445
|
-
i0.ɵɵ
|
|
2446
|
-
} }, dependencies: [i1.NgClass,
|
|
2437
|
+
i0.ɵɵconditional(!ctx.groupby ? 4 : -1);
|
|
2438
|
+
} }, dependencies: [i1.NgClass, i2$1.NgSelectOption, i2$1.ɵNgSelectMultipleOption, i2$1.SelectMultipleControlValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.NgModel, i2.TextContentDirective], encapsulation: 2 }); }
|
|
2447
2439
|
}
|
|
2448
2440
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectComponent, [{
|
|
2449
2441
|
type: Component,
|
|
@@ -2451,7 +2443,7 @@ class SelectComponent extends DatasetAwareFormComponent {
|
|
|
2451
2443
|
provideAs(SelectComponent, NG_VALUE_ACCESSOR, true),
|
|
2452
2444
|
provideAs(SelectComponent, NG_VALIDATORS, true),
|
|
2453
2445
|
provideAsWidgetRef(SelectComponent)
|
|
2454
|
-
], template: "<!--Updated focus with mousedown event. IOS devices not allow update of option value after opening dropdown-->\n<select #select\n
|
|
2446
|
+
], template: "<!--Updated focus with mousedown event. IOS devices not allow update of option value after opening dropdown-->\n<select #select\n focus-target\n [ngClass]=\"['app-select form-control', class]\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n [attr.accesskey]=\"shortcutkey\"\n [(ngModel)]=\"modelByKey\"\n [ngModelOptions]=\"{standalone: true}\"\n [multiple]=\"multiple\"\n (change)=\"onSelectValueChange($event)\"\n (mousedown)=\"checkForFloatingLabel($event)\"\n (blur)=\"invokeOnTouched($event); checkForFloatingLabel($event)\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"arialabel\"\n [autofocus]=\"autofocus\">\n\n <option selected\n value=\"undefined\"\n [textContent]=\"placeholder\"\n id=\"placeholderOption\"\n [hidden]=\"!placeholder\"></option>\n\n @if (groupby) {\n @for (groupObj of groupedData; track groupObj) {\n <optgroup\n [label]=\"groupObj.key\">\n @for (item of groupObj.data; track item) {\n <option\n [value]=\"item.key\"\n [selected]=\"item.selected\"\n [textContent]=\"item.label\"\n ></option>\n }\n </optgroup>\n }\n }\n\n @if (!groupby) {\n @for (item of datasetItems; track item) {\n <option\n [value]=\"item.key\"\n [selected]=\"item.selected\"\n [textContent]=\"item.label\"\n ></option>\n }\n }\n</select>\n" }]
|
|
2455
2447
|
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
2456
2448
|
type: Inject,
|
|
2457
2449
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -2494,24 +2486,24 @@ const _c1$5 = a0 => ({ "multi-select": a0 });
|
|
|
2494
2486
|
const _c2$3 = (a0, a1) => ({ "selected": a0, "disabled": a1 });
|
|
2495
2487
|
const _c3 = a0 => ["app-icon", a0];
|
|
2496
2488
|
const _c4 = a0 => [a0];
|
|
2497
|
-
function
|
|
2498
|
-
i0.ɵɵelement(0, "i",
|
|
2489
|
+
function SwitchComponent_For_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
2490
|
+
i0.ɵɵelement(0, "i", 5);
|
|
2499
2491
|
} if (rf & 2) {
|
|
2500
2492
|
const opt_r3 = i0.ɵɵnextContext().$implicit;
|
|
2501
2493
|
const ctx_r4 = i0.ɵɵnextContext();
|
|
2502
2494
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1, _c3, opt_r3.dataObject[ctx_r4.iconclass] || opt_r3["icon"]));
|
|
2503
2495
|
} }
|
|
2504
|
-
function
|
|
2505
|
-
i0.ɵɵelement(0, "i",
|
|
2496
|
+
function SwitchComponent_For_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
2497
|
+
i0.ɵɵelement(0, "i", 5);
|
|
2506
2498
|
} if (rf & 2) {
|
|
2507
2499
|
const ctx_r4 = i0.ɵɵnextContext(2);
|
|
2508
2500
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1, _c4, ctx_r4.checkediconclass));
|
|
2509
2501
|
} }
|
|
2510
|
-
function
|
|
2502
|
+
function SwitchComponent_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
2511
2503
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
2512
2504
|
i0.ɵɵelementStart(0, "a", 4);
|
|
2513
|
-
i0.ɵɵlistener("click", function
|
|
2514
|
-
i0.ɵɵtemplate(1,
|
|
2505
|
+
i0.ɵɵlistener("click", function SwitchComponent_For_2_Template_a_click_0_listener($event) { const ctx_r1 = i0.ɵɵrestoreView(_r1); const opt_r3 = ctx_r1.$implicit; const $index_r4 = ctx_r1.$index; const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.selectOpt($event, $index_r4, opt_r3)); });
|
|
2506
|
+
i0.ɵɵtemplate(1, SwitchComponent_For_2_Conditional_1_Template, 1, 3, "i", 5)(2, SwitchComponent_For_2_Conditional_2_Template, 1, 3, "i", 5);
|
|
2515
2507
|
i0.ɵɵelement(3, "span", 6);
|
|
2516
2508
|
i0.ɵɵelementEnd();
|
|
2517
2509
|
} if (rf & 2) {
|
|
@@ -2520,16 +2512,16 @@ function SwitchComponent_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
2520
2512
|
i0.ɵɵproperty("title", ctx_r4.hint ? ctx_r4.hint : opt_r3.key)("name", "wm-switch-" + opt_r3.key)("title", (ctx_r4.hint == null ? null : ctx_r4.hint[opt_r3.index - 1]) ? ctx_r4.hint[opt_r3.index - 1] : (ctx_r4.hint == null ? null : ctx_r4.hint[0]) ? ctx_r4.hint[0] : opt_r3[ctx_r4.displayfield] || opt_r3.label)("ngClass", i0.ɵɵpureFunction2(8, _c2$3, opt_r3.selected, ctx_r4.disabled));
|
|
2521
2513
|
i0.ɵɵattribute("aria-pressed", opt_r3.selected ? true : false);
|
|
2522
2514
|
i0.ɵɵadvance();
|
|
2523
|
-
i0.ɵɵ
|
|
2515
|
+
i0.ɵɵconditional(opt_r3.dataObject && opt_r3.dataObject[ctx_r4.iconclass] && !opt_r3.selected ? 1 : -1);
|
|
2524
2516
|
i0.ɵɵadvance();
|
|
2525
|
-
i0.ɵɵ
|
|
2517
|
+
i0.ɵɵconditional(opt_r3.selected && ctx_r4.checkediconclass ? 2 : -1);
|
|
2526
2518
|
i0.ɵɵadvance();
|
|
2527
2519
|
i0.ɵɵproperty("textContent", opt_r3[ctx_r4.displayfield] || opt_r3.label);
|
|
2528
2520
|
} }
|
|
2529
|
-
function
|
|
2530
|
-
i0.ɵɵelementStart(0, "span",
|
|
2531
|
-
i0.ɵɵelement(1, "i",
|
|
2532
|
-
i0.ɵɵelementStart(2, "span",
|
|
2521
|
+
function SwitchComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
2522
|
+
i0.ɵɵelementStart(0, "span", 2);
|
|
2523
|
+
i0.ɵɵelement(1, "i", 7);
|
|
2524
|
+
i0.ɵɵelementStart(2, "span", 8);
|
|
2533
2525
|
i0.ɵɵtext(3);
|
|
2534
2526
|
i0.ɵɵelementEnd()();
|
|
2535
2527
|
} if (rf & 2) {
|
|
@@ -2674,28 +2666,28 @@ class SwitchComponent extends DatasetAwareFormComponent {
|
|
|
2674
2666
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SwitchComponent, selectors: [["", "wmSwitch", ""]], exportAs: ["wmSwitch"], features: [i0.ɵɵProvidersFeature([
|
|
2675
2667
|
provideAs(SwitchComponent, NG_VALUE_ACCESSOR, true),
|
|
2676
2668
|
provideAsWidgetRef(SwitchComponent)
|
|
2677
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0$6, decls:
|
|
2669
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0$6, decls: 5, vars: 8, consts: [["role", "group", 1, "btn-group", "btn-group-justified", 3, "ngClass"], ["focus-target", "", "href", "javascript:void(0);", "role", "button", 1, "btn", "btn-default", 3, "title", "name", "ngClass"], ["aria-hidden", "true", 1, "btn", "btn-primary", "app-switch-overlay", "switch-handle", 3, "title"], ["aria-hidden", "true", 1, "model-holder", "ng-hide", 3, "name", "disabled", "value", "required"], ["focus-target", "", "href", "javascript:void(0);", "role", "button", 1, "btn", "btn-default", 3, "click", "title", "name", "ngClass"], ["aria-hidden", "true", 3, "ngClass"], [1, "caption", 3, "textContent"], [3, "ngClass"], [1, "caption"]], template: function SwitchComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2678
2670
|
i0.ɵɵelementStart(0, "div", 0);
|
|
2679
|
-
i0.ɵɵ
|
|
2671
|
+
i0.ɵɵrepeaterCreate(1, SwitchComponent_For_2_Template, 4, 11, "a", 1, i0.ɵɵrepeaterTrackByIdentity);
|
|
2680
2672
|
i0.ɵɵelementEnd();
|
|
2681
|
-
i0.ɵɵtemplate(
|
|
2682
|
-
i0.ɵɵelement(
|
|
2673
|
+
i0.ɵɵtemplate(3, SwitchComponent_Conditional_3_Template, 4, 5, "span", 2);
|
|
2674
|
+
i0.ɵɵelement(4, "input", 3);
|
|
2683
2675
|
} if (rf & 2) {
|
|
2684
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
2676
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c1$5, ctx.multiple));
|
|
2685
2677
|
i0.ɵɵadvance();
|
|
2686
|
-
i0.ɵɵ
|
|
2687
|
-
i0.ɵɵadvance();
|
|
2688
|
-
i0.ɵɵ
|
|
2678
|
+
i0.ɵɵrepeater(ctx.datasetItems);
|
|
2679
|
+
i0.ɵɵadvance(2);
|
|
2680
|
+
i0.ɵɵconditional(!ctx.multiple ? 3 : -1);
|
|
2689
2681
|
i0.ɵɵadvance();
|
|
2690
2682
|
i0.ɵɵproperty("name", ctx.name)("disabled", ctx.disabled)("value", ctx.modelByKey)("required", ctx.required);
|
|
2691
|
-
} }, dependencies: [i1.NgClass,
|
|
2683
|
+
} }, dependencies: [i1.NgClass, i2.TextContentDirective], encapsulation: 2 }); }
|
|
2692
2684
|
}
|
|
2693
2685
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SwitchComponent, [{
|
|
2694
2686
|
type: Component,
|
|
2695
2687
|
args: [{ selector: '[wmSwitch]', providers: [
|
|
2696
2688
|
provideAs(SwitchComponent, NG_VALUE_ACCESSOR, true),
|
|
2697
2689
|
provideAsWidgetRef(SwitchComponent)
|
|
2698
|
-
], exportAs: 'wmSwitch', template: "<div role=\"group\" class=\"btn-group btn-group-justified\" [ngClass]=\"{'multi-select': multiple}\">\n
|
|
2690
|
+
], exportAs: 'wmSwitch', template: "<div role=\"group\" class=\"btn-group btn-group-justified\" [ngClass]=\"{'multi-select': multiple}\">\n @for (opt of datasetItems; track opt) {\n <a\n focus-target\n href=\"javascript:void(0);\"\n class=\"btn btn-default\"\n [title]=\"hint?hint:opt.key\"\n [name]=\"'wm-switch-' + opt.key\"\n role=\"button\"\n [title]=\"hint?.[opt.index-1]?hint[opt.index-1]:(hint?.[0]?hint[0]:(opt[displayfield]||opt.label))\"\n [ngClass]=\"{'selected': opt.selected, 'disabled': disabled}\"\n [attr.aria-pressed]=\"opt.selected ? true : false\"\n (click)=\"selectOpt($event, $index, opt)\"\n >\n @if (opt.dataObject && opt.dataObject[iconclass] && !opt.selected) {\n <i aria-hidden=\"true\" [ngClass]=\"['app-icon', opt.dataObject[iconclass] || opt['icon']]\"></i>\n }\n @if (opt.selected && checkediconclass) {\n <i aria-hidden=\"true\" [ngClass]=\"[checkediconclass]\"></i>\n }\n <span class=\"caption\" [textContent]=\"opt[displayfield] || opt.label\"></span>\n </a>\n }\n</div>\n@if (!multiple) {\n <span [title]=\"selectedItem ? selectedItem.label : modelByKey\" aria-hidden=\"true\"\n class=\"btn btn-primary app-switch-overlay switch-handle\">\n <i [ngClass]=\"[checkediconclass]\"></i>\n <span class=\"caption\">{{selectedItem ? selectedItem.label : modelByKey}}</span>\n </span>\n}\n<input [name]=\"name\" class=\"model-holder ng-hide\" [disabled]=\"disabled\" [value]=\"modelByKey\" [required]=\"required\" aria-hidden=\"true\">\n" }]
|
|
2699
2691
|
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
2700
2692
|
type: Inject,
|
|
2701
2693
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -3259,8 +3251,8 @@ const registerProps = () => {
|
|
|
3259
3251
|
};
|
|
3260
3252
|
|
|
3261
3253
|
const _c0 = ["textarea"];
|
|
3262
|
-
function
|
|
3263
|
-
i0.ɵɵelementStart(0, "div",
|
|
3254
|
+
function TextareaComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
3255
|
+
i0.ɵɵelementStart(0, "div", 2);
|
|
3264
3256
|
i0.ɵɵtext(1);
|
|
3265
3257
|
i0.ɵɵelementEnd();
|
|
3266
3258
|
} if (rf & 2) {
|
|
@@ -3296,20 +3288,20 @@ class TextareaComponent extends BaseInput {
|
|
|
3296
3288
|
provideAs(TextareaComponent, NG_VALUE_ACCESSOR, true),
|
|
3297
3289
|
provideAs(TextareaComponent, NG_VALIDATORS, true),
|
|
3298
3290
|
provideAsWidgetRef(TextareaComponent)
|
|
3299
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 15, consts: [["textarea", ""], ["focus-target", "", "aria-multiline", "true", 1, "form-control", "app-textarea", 3, "ngModelChange", "blur", "input", "ngModel", "ngModelOptions", "readonly", "required", "disabled", "maxlength", "autofocus", "ngClass", "ngStyle"], [
|
|
3291
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 15, consts: [["textarea", ""], ["focus-target", "", "aria-multiline", "true", 1, "form-control", "app-textarea", 3, "ngModelChange", "blur", "input", "ngModel", "ngModelOptions", "readonly", "required", "disabled", "maxlength", "autofocus", "ngClass", "ngStyle"], [1, "textarea-count"]], template: function TextareaComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3300
3292
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
3301
3293
|
i0.ɵɵelementStart(0, "textarea", 1, 0);
|
|
3302
3294
|
i0.ɵɵtwoWayListener("ngModelChange", function TextareaComponent_Template_textarea_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.datavalue, $event) || (ctx.datavalue = $event); return i0.ɵɵresetView($event); });
|
|
3303
3295
|
i0.ɵɵlistener("blur", function TextareaComponent_Template_textarea_blur_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleBlur($event)); })("input", function TextareaComponent_Template_textarea_input_0_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onInputChange()); })("ngModelChange", function TextareaComponent_Template_textarea_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r1); ctx.handleChange($event); return i0.ɵɵresetView(ctx.onInputChange()); });
|
|
3304
3296
|
i0.ɵɵelementEnd();
|
|
3305
|
-
i0.ɵɵtemplate(2,
|
|
3297
|
+
i0.ɵɵtemplate(2, TextareaComponent_Conditional_2_Template, 2, 1, "div", 2);
|
|
3306
3298
|
} if (rf & 2) {
|
|
3307
3299
|
i0.ɵɵtwoWayProperty("ngModel", ctx.datavalue);
|
|
3308
3300
|
i0.ɵɵproperty("ngModelOptions", ctx.ngModelOptions)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("autofocus", ctx.autofocus)("ngClass", ctx.conditionalclass)("ngStyle", ctx.conditionalstyle);
|
|
3309
3301
|
i0.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.arialabel);
|
|
3310
3302
|
i0.ɵɵadvance(2);
|
|
3311
|
-
i0.ɵɵ
|
|
3312
|
-
} }, dependencies: [i1.NgClass, i1.
|
|
3303
|
+
i0.ɵɵconditional(ctx.maxchars ? 2 : -1);
|
|
3304
|
+
} }, dependencies: [i1.NgClass, i1.NgStyle, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.MaxLengthValidator, i2$1.NgModel], encapsulation: 2 }); }
|
|
3313
3305
|
}
|
|
3314
3306
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TextareaComponent, [{
|
|
3315
3307
|
type: Component,
|
|
@@ -3317,7 +3309,7 @@ class TextareaComponent extends BaseInput {
|
|
|
3317
3309
|
provideAs(TextareaComponent, NG_VALUE_ACCESSOR, true),
|
|
3318
3310
|
provideAs(TextareaComponent, NG_VALIDATORS, true),
|
|
3319
3311
|
provideAsWidgetRef(TextareaComponent)
|
|
3320
|
-
], template: "<textarea class=\"form-control app-textarea\"\n
|
|
3312
|
+
], template: "<textarea class=\"form-control app-textarea\"\n focus-target\n [attr.name]=\"name\"\n [(ngModel)]=\"datavalue\"\n [ngModelOptions]=\"ngModelOptions\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [maxlength]=\"maxchars\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"arialabel\"\n aria-multiline=\"true\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (blur)=\"handleBlur($event)\"\n (input)=\"onInputChange()\"\n (ngModelChange)=\"handleChange($event); onInputChange();\"\n #textarea\n></textarea>\n\n@if (maxchars) {\n <div class=\"textarea-count\" >{{limitdisplaytext}}</div>\n}\n" }]
|
|
3321
3313
|
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
3322
3314
|
type: Inject,
|
|
3323
3315
|
args: ['EXPLICIT_CONTEXT']
|