@wavemaker/app-ng-runtime 11.10.3-next.25128 → 11.10.3-rc.6079
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/components/basic/default/bundles/index.umd.js +68 -68
- package/components/basic/default/esm2022/anchor/anchor.component.mjs +18 -18
- package/components/basic/default/esm2022/icon/icon.component.mjs +13 -12
- package/components/basic/default/esm2022/iframe/iframe.component.mjs +10 -9
- package/components/basic/default/esm2022/spinner/spinner.component.mjs +21 -21
- package/components/basic/default/esm2022/video/video.component.mjs +15 -14
- package/components/basic/default/fesm2022/index.mjs +68 -68
- package/components/basic/default/fesm2022/index.mjs.map +1 -1
- package/components/basic/progress/bundles/index.umd.js +17 -16
- package/components/basic/progress/esm2022/progress-bar/progress-bar.component.mjs +8 -7
- package/components/basic/progress/fesm2022/index.mjs +9 -8
- package/components/basic/progress/fesm2022/index.mjs.map +1 -1
- package/components/basic/rich-text-editor/bundles/index.umd.js +12 -11
- package/components/basic/rich-text-editor/esm2022/rich-text-editor.component.mjs +9 -8
- package/components/basic/rich-text-editor/fesm2022/index.mjs +8 -7
- package/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
- package/components/basic/search/bundles/index.umd.js +67 -63
- package/components/basic/search/esm2022/search.component.mjs +67 -63
- package/components/basic/search/esm2022/search.module.mjs +2 -2
- package/components/basic/search/fesm2022/index.mjs +67 -63
- 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 +96 -91
- package/components/data/form/esm2022/form.component.mjs +97 -92
- package/components/data/form/fesm2022/index.mjs +96 -91
- package/components/data/form/fesm2022/index.mjs.map +1 -1
- package/components/data/list/bundles/index.umd.js +173 -171
- package/components/data/list/esm2022/list.component.mjs +173 -171
- package/components/data/list/esm2022/list.module.mjs +2 -2
- package/components/data/list/fesm2022/index.mjs +173 -171
- 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 +38 -39
- package/components/data/table/esm2022/table.component.mjs +39 -40
- package/components/data/table/fesm2022/index.mjs +38 -39
- package/components/data/table/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/default/bundles/index.umd.js +95 -66
- package/components/dialogs/default/esm2022/dialog-header/dialog-header.component.mjs +96 -67
- package/components/dialogs/default/fesm2022/index.mjs +95 -66
- 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 +25 -24
- package/components/dialogs/iframe-dialog/esm2022/iframe-dialog.component.mjs +16 -15
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs +15 -14
- 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 +209 -201
- package/components/input/default/esm2022/button/button.component.mjs +18 -18
- package/components/input/default/esm2022/checkboxset/checkboxset.component.mjs +69 -68
- package/components/input/default/esm2022/radioset/radioset.component.mjs +69 -68
- package/components/input/default/esm2022/select/select.component.mjs +27 -21
- 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 +209 -201
- package/components/input/default/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/bundles/index.umd.js +164 -171
- package/components/input/epoch/esm2022/date/date.component.mjs +15 -14
- package/components/input/epoch/esm2022/date-time/date-time-picker.component.mjs +59 -64
- package/components/input/epoch/esm2022/date-time/date-time.component.mjs +19 -18
- package/components/input/epoch/esm2022/picker/picker.component.mjs +25 -26
- package/components/input/epoch/esm2022/time/time.component.mjs +18 -17
- package/components/input/epoch/fesm2022/index.mjs +117 -124
- package/components/input/epoch/fesm2022/index.mjs.map +1 -1
- package/components/input/file-upload/bundles/index.umd.js +114 -111
- package/components/input/file-upload/esm2022/file-upload.component.mjs +115 -112
- package/components/input/file-upload/fesm2022/index.mjs +114 -111
- 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 +40 -39
- package/components/input/slider/esm2022/slider.component.mjs +11 -10
- package/components/input/slider/fesm2022/index.mjs +10 -9
- package/components/input/slider/fesm2022/index.mjs.map +1 -1
- package/components/navigation/breadcrumb/bundles/index.umd.js +15 -16
- package/components/navigation/breadcrumb/esm2022/breadcrumb.component.mjs +16 -17
- package/components/navigation/breadcrumb/fesm2022/index.mjs +15 -16
- package/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -1
- package/components/navigation/menu/bundles/index.umd.js +71 -69
- 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 +26 -22
- package/components/navigation/menu/esm2022/menu.module.mjs +4 -4
- package/components/navigation/menu/esm2022/nav/nav.component.mjs +24 -26
- package/components/navigation/menu/fesm2022/index.mjs +71 -69
- package/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- 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 +111 -102
- package/mobile/components/basic/default/esm2022/file-browser/file-browser.component.mjs +40 -39
- package/mobile/components/basic/default/esm2022/network-info-toaster/network-info-toaster.component.mjs +44 -35
- package/mobile/components/basic/default/esm2022/process-manager/process-manager.component.mjs +28 -27
- package/mobile/components/basic/default/fesm2022/index.mjs +107 -98
- 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 +9 -8
- 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 +215 -219
- package/runtime/base/esm2022/components/app-component/app.component.mjs +41 -38
- package/runtime/base/esm2022/components/app-spinner.component.mjs +21 -25
- package/runtime/base/esm2022/components/custom-toaster.component.mjs +16 -18
- package/runtime/base/fesm2022/index.mjs +95 -99
- package/runtime/base/fesm2022/index.mjs.map +1 -1
|
@@ -58,22 +58,22 @@
|
|
|
58
58
|
const _c2$8 = [".caret"];
|
|
59
59
|
const _c3$4 = (a0, a1, a2) => ({ width: a0, height: a1, margin: a2 });
|
|
60
60
|
const _c4$3 = (a0, a1, a2, a3) => ({ width: a0, height: a1, margin: a2, fontSize: a3 });
|
|
61
|
-
function
|
|
62
|
-
i0__namespace.ɵɵelement(0, "img",
|
|
61
|
+
function ButtonComponent_img_0_Template(rf, ctx) { if (rf & 1) {
|
|
62
|
+
i0__namespace.ɵɵelement(0, "img", 5);
|
|
63
63
|
i0__namespace.ɵɵpipe(1, "image");
|
|
64
64
|
} if (rf & 2) {
|
|
65
65
|
const ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
66
66
|
i0__namespace.ɵɵproperty("src", i0__namespace.ɵɵpipeBind1(1, 2, ctx_r0.iconurl), i0__namespace.ɵɵsanitizeUrl)("ngStyle", i0__namespace.ɵɵpureFunction3(4, _c3$4, ctx_r0.iconwidth, ctx_r0.iconheight, ctx_r0.iconmargin));
|
|
67
67
|
} }
|
|
68
|
-
function
|
|
69
|
-
i0__namespace.ɵɵelement(0, "i",
|
|
68
|
+
function ButtonComponent_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
69
|
+
i0__namespace.ɵɵelement(0, "i", 6);
|
|
70
70
|
} if (rf & 2) {
|
|
71
71
|
const ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
72
72
|
i0__namespace.ɵɵclassMapInterpolate1("app-icon ", ctx_r0.iconclass, "");
|
|
73
73
|
i0__namespace.ɵɵproperty("ngStyle", i0__namespace.ɵɵpureFunction4(4, _c4$3, ctx_r0.iconwidth, ctx_r0.iconheight, ctx_r0.iconmargin, ctx_r0.iconwidth));
|
|
74
74
|
} }
|
|
75
|
-
function
|
|
76
|
-
i0__namespace.ɵɵelementStart(0, "span",
|
|
75
|
+
function ButtonComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
76
|
+
i0__namespace.ɵɵelementStart(0, "span", 7);
|
|
77
77
|
i0__namespace.ɵɵtext(1);
|
|
78
78
|
i0__namespace.ɵɵelementEnd();
|
|
79
79
|
} if (rf & 2) {
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
i0__namespace.ɵɵadvance();
|
|
82
82
|
i0__namespace.ɵɵtextInterpolate2("", ctx_r0.caption, " ", ctx_r0.appLocale.LABEL_ICON, "");
|
|
83
83
|
} }
|
|
84
|
-
function
|
|
85
|
-
i0__namespace.ɵɵelement(0, "span",
|
|
84
|
+
function ButtonComponent_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
85
|
+
i0__namespace.ɵɵelement(0, "span", 8);
|
|
86
86
|
} if (rf & 2) {
|
|
87
87
|
const ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
88
88
|
i0__namespace.ɵɵproperty("textContent", ctx_r0.badgevalue);
|
|
@@ -105,29 +105,29 @@
|
|
|
105
105
|
i0__namespace.ɵɵattribute("accesskey", ctx.shortcutkey)("icon-position", ctx.iconposition);
|
|
106
106
|
} }, exportAs: ["wmButton"], features: [i0__namespace.ɵɵProvidersFeature([
|
|
107
107
|
i2.provideAsWidgetRef(ButtonComponent)
|
|
108
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0$c, ngContentSelectors: _c2$8, decls: 6, vars: 5, consts: [["data-identifier", "img", "alt", "button image",
|
|
108
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0$c, ngContentSelectors: _c2$8, decls: 6, vars: 5, consts: [["data-identifier", "img", "alt", "button image", "class", "button-image-icon", 3, "src", "ngStyle", 4, "ngIf"], ["aria-hidden", "true", 3, "class", "ngStyle", 4, "ngIf"], ["class", "sr-only", 4, "ngIf"], [1, "btn-caption", 3, "innerHTML"], ["class", "badge pull-right", 3, "textContent", 4, "ngIf"], ["data-identifier", "img", "alt", "button image", 1, "button-image-icon", 3, "src", "ngStyle"], ["aria-hidden", "true", 3, "ngStyle"], [1, "sr-only"], [1, "badge", "pull-right", 3, "textContent"]], template: function ButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
109
109
|
i0__namespace.ɵɵprojectionDef(_c1$b);
|
|
110
|
-
i0__namespace.ɵɵtemplate(0,
|
|
110
|
+
i0__namespace.ɵɵtemplate(0, ButtonComponent_img_0_Template, 2, 8, "img", 0)(1, ButtonComponent_i_1_Template, 1, 9, "i", 1)(2, ButtonComponent_span_2_Template, 2, 2, "span", 2);
|
|
111
111
|
i0__namespace.ɵɵelement(3, "span", 3);
|
|
112
112
|
i0__namespace.ɵɵprojection(4);
|
|
113
|
-
i0__namespace.ɵɵtemplate(5,
|
|
113
|
+
i0__namespace.ɵɵtemplate(5, ButtonComponent_span_5_Template, 1, 1, "span", 4);
|
|
114
114
|
} if (rf & 2) {
|
|
115
|
-
i0__namespace.ɵɵ
|
|
115
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.iconurl);
|
|
116
116
|
i0__namespace.ɵɵadvance();
|
|
117
|
-
i0__namespace.ɵɵ
|
|
117
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.iconclass);
|
|
118
118
|
i0__namespace.ɵɵadvance();
|
|
119
|
-
i0__namespace.ɵɵ
|
|
119
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.iconclass);
|
|
120
120
|
i0__namespace.ɵɵadvance();
|
|
121
121
|
i0__namespace.ɵɵproperty("innerHTML", ctx.caption, i0__namespace.ɵɵsanitizeHtml);
|
|
122
122
|
i0__namespace.ɵɵadvance(2);
|
|
123
|
-
i0__namespace.ɵɵ
|
|
124
|
-
} }, dependencies: [i1__namespace.NgStyle, i2__namespace.TextContentDirective, i2__namespace.ImagePipe], encapsulation: 2 }); }
|
|
123
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.badgevalue);
|
|
124
|
+
} }, dependencies: [i1__namespace.NgIf, i1__namespace.NgStyle, i2__namespace.TextContentDirective, i2__namespace.ImagePipe], encapsulation: 2 }); }
|
|
125
125
|
}
|
|
126
126
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ButtonComponent, [{
|
|
127
127
|
type: i0.Component,
|
|
128
128
|
args: [{ selector: 'button[wmButton]', providers: [
|
|
129
129
|
i2.provideAsWidgetRef(ButtonComponent)
|
|
130
|
-
], exportAs: 'wmButton', template: "
|
|
130
|
+
], exportAs: 'wmButton', template: "<img data-identifier=\"img\" alt=\"button image\" class=\"button-image-icon\" [src]=\"iconurl | image\" *ngIf=\"iconurl\" [ngStyle]=\"{width:iconwidth, height:iconheight, margin:iconmargin}\"/>\n<i class=\"app-icon {{iconclass}}\" aria-hidden=\"true\" [ngStyle]=\"{width:iconwidth, height:iconheight, margin:iconmargin, fontSize:iconwidth}\" *ngIf=\"iconclass\"></i>\n<span class=\"sr-only\" *ngIf=\"iconclass\">{{caption}} {{appLocale.LABEL_ICON}}</span>\n<span class=\"btn-caption\" [innerHTML]=\"caption\"></span>\n<ng-content select=\".caret\"></ng-content>\n<span *ngIf=\"badgevalue\" class=\"badge pull-right\" [textContent]=\"badgevalue\"></span>\n" }]
|
|
131
131
|
}], () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
|
132
132
|
type: i0.Inject,
|
|
133
133
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -915,41 +915,41 @@
|
|
|
915
915
|
const _c2$6 = a0 => ({ "disabled": a0 });
|
|
916
916
|
const _c3$2 = a0 => ({ "collapsible-content": a0 });
|
|
917
917
|
const _c4$2 = (a0, a1) => ["checkbox", "app-checkbox", "group-list-item", a0, a1];
|
|
918
|
-
function
|
|
919
|
-
i0__namespace.ɵɵelementStart(0, "label",
|
|
920
|
-
i0__namespace.ɵɵelement(1, "input",
|
|
918
|
+
function CheckboxsetComponent_ng_template_0_li_0_label_1_Template(rf, ctx) { if (rf & 1) {
|
|
919
|
+
i0__namespace.ɵɵelementStart(0, "label", 8);
|
|
920
|
+
i0__namespace.ɵɵelement(1, "input", 9)(2, "span", 10);
|
|
921
921
|
i0__namespace.ɵɵelementEnd();
|
|
922
922
|
} if (rf & 2) {
|
|
923
923
|
const ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
924
924
|
const item_r2 = ctx_r3.$implicit;
|
|
925
|
-
const
|
|
925
|
+
const i_r5 = ctx_r3.index;
|
|
926
926
|
const ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
927
927
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c2$6, ctx_r2.disabled || ctx_r2.readonly))("title", item_r2.label);
|
|
928
928
|
i0__namespace.ɵɵadvance();
|
|
929
929
|
i0__namespace.ɵɵ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);
|
|
930
|
-
i0__namespace.ɵɵattribute("data-attr-index",
|
|
930
|
+
i0__namespace.ɵɵattribute("data-attr-index", i_r5);
|
|
931
931
|
i0__namespace.ɵɵadvance();
|
|
932
932
|
i0__namespace.ɵɵproperty("textContent", item_r2.label);
|
|
933
933
|
} }
|
|
934
|
-
function
|
|
935
|
-
i0__namespace.ɵɵelementStart(0, "label",
|
|
936
|
-
i0__namespace.ɵɵelement(1, "input",
|
|
934
|
+
function CheckboxsetComponent_ng_template_0_li_0_label_2_Template(rf, ctx) { if (rf & 1) {
|
|
935
|
+
i0__namespace.ɵɵelementStart(0, "label", 11);
|
|
936
|
+
i0__namespace.ɵɵelement(1, "input", 9)(2, "span", 12);
|
|
937
937
|
i0__namespace.ɵɵelementEnd();
|
|
938
938
|
} if (rf & 2) {
|
|
939
939
|
const ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
940
940
|
const item_r2 = ctx_r3.$implicit;
|
|
941
|
-
const
|
|
941
|
+
const i_r5 = ctx_r3.index;
|
|
942
942
|
const ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
943
943
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c2$6, ctx_r2.disabled || ctx_r2.readonly));
|
|
944
944
|
i0__namespace.ɵɵadvance();
|
|
945
945
|
i0__namespace.ɵɵ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);
|
|
946
|
-
i0__namespace.ɵɵattribute("data-attr-index",
|
|
946
|
+
i0__namespace.ɵɵattribute("data-attr-index", i_r5);
|
|
947
947
|
} }
|
|
948
|
-
function
|
|
948
|
+
function CheckboxsetComponent_ng_template_0_li_0_Template(rf, ctx) { if (rf & 1) {
|
|
949
949
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
950
|
-
i0__namespace.ɵɵelementStart(0, "li",
|
|
951
|
-
i0__namespace.ɵɵlistener("click", function
|
|
952
|
-
i0__namespace.ɵɵtemplate(1,
|
|
950
|
+
i0__namespace.ɵɵelementStart(0, "li", 5);
|
|
951
|
+
i0__namespace.ɵɵlistener("click", function CheckboxsetComponent_ng_template_0_li_0_Template_li_click_0_listener($event) { const item_r2 = i0__namespace.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0__namespace.ɵɵnextContext(2); return i0__namespace.ɵɵresetView(ctx_r2.onCheckboxLabelClick($event, item_r2.key)); });
|
|
952
|
+
i0__namespace.ɵɵtemplate(1, CheckboxsetComponent_ng_template_0_li_0_label_1_Template, 3, 12, "label", 6)(2, CheckboxsetComponent_ng_template_0_li_0_label_2_Template, 3, 10, "label", 7);
|
|
953
953
|
i0__namespace.ɵɵelementEnd();
|
|
954
954
|
} if (rf & 2) {
|
|
955
955
|
const item_r2 = ctx.$implicit;
|
|
@@ -957,63 +957,66 @@
|
|
|
957
957
|
i0__namespace.ɵɵclassProp("active", item_r2.selected);
|
|
958
958
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(7, _c1$9, ctx_r2.itemclass, ctx_r2.itemsPerRowClass))("wmItemTemplate", ctx_r2.content)("userComponentParams", item_r2);
|
|
959
959
|
i0__namespace.ɵɵadvance();
|
|
960
|
-
i0__namespace.ɵɵ
|
|
960
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r2.content);
|
|
961
961
|
i0__namespace.ɵɵadvance();
|
|
962
|
-
i0__namespace.ɵɵ
|
|
962
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r2.content);
|
|
963
963
|
} }
|
|
964
|
-
function
|
|
965
|
-
i0__namespace.ɵɵ
|
|
964
|
+
function CheckboxsetComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
965
|
+
i0__namespace.ɵɵtemplate(0, CheckboxsetComponent_ng_template_0_li_0_Template, 3, 10, "li", 4);
|
|
966
966
|
} if (rf & 2) {
|
|
967
967
|
const ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
968
|
-
i0__namespace.ɵɵ
|
|
968
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r2.datasetItems);
|
|
969
969
|
} }
|
|
970
|
-
function
|
|
971
|
-
i0__namespace.ɵɵelement(0, "
|
|
970
|
+
function CheckboxsetComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
971
|
+
i0__namespace.ɵɵelement(0, "div", 13);
|
|
972
|
+
} }
|
|
973
|
+
function CheckboxsetComponent_ng_template_3_li_0_i_6_Template(rf, ctx) { if (rf & 1) {
|
|
974
|
+
i0__namespace.ɵɵelement(0, "i", 23);
|
|
972
975
|
} if (rf & 2) {
|
|
973
976
|
const ctx_r2 = i0__namespace.ɵɵnextContext(3);
|
|
974
977
|
i0__namespace.ɵɵpropertyInterpolate2("title", "", ctx_r2.appLocale.LABEL_COLLAPSE, "/", ctx_r2.appLocale.LABEL_EXPAND, "");
|
|
975
978
|
} }
|
|
976
|
-
function
|
|
977
|
-
i0__namespace.ɵɵelement(0, "span",
|
|
979
|
+
function CheckboxsetComponent_ng_template_3_li_0_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
980
|
+
i0__namespace.ɵɵelement(0, "span", 24);
|
|
978
981
|
} if (rf & 2) {
|
|
979
982
|
const groupObj_r7 = i0__namespace.ɵɵnextContext().$implicit;
|
|
980
983
|
i0__namespace.ɵɵproperty("textContent", groupObj_r7.data.length);
|
|
981
984
|
} }
|
|
982
|
-
function
|
|
983
|
-
i0__namespace.ɵɵelementStart(0, "label",
|
|
984
|
-
i0__namespace.ɵɵelement(1, "input",
|
|
985
|
+
function CheckboxsetComponent_ng_template_3_li_0_li_8_label_1_Template(rf, ctx) { if (rf & 1) {
|
|
986
|
+
i0__namespace.ɵɵelementStart(0, "label", 8);
|
|
987
|
+
i0__namespace.ɵɵelement(1, "input", 9)(2, "span", 10);
|
|
985
988
|
i0__namespace.ɵɵelementEnd();
|
|
986
989
|
} if (rf & 2) {
|
|
987
990
|
const ctx_r9 = i0__namespace.ɵɵnextContext();
|
|
988
991
|
const item_r9 = ctx_r9.$implicit;
|
|
989
|
-
const
|
|
992
|
+
const i_r11 = ctx_r9.index;
|
|
990
993
|
const ctx_r2 = i0__namespace.ɵɵnextContext(3);
|
|
991
994
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c2$6, ctx_r2.disabled || ctx_r2.readonly))("title", item_r9.label);
|
|
992
995
|
i0__namespace.ɵɵadvance();
|
|
993
996
|
i0__namespace.ɵɵ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);
|
|
994
|
-
i0__namespace.ɵɵattribute("data-attr-index",
|
|
997
|
+
i0__namespace.ɵɵattribute("data-attr-index", i_r11);
|
|
995
998
|
i0__namespace.ɵɵadvance();
|
|
996
999
|
i0__namespace.ɵɵproperty("textContent", item_r9.label);
|
|
997
1000
|
} }
|
|
998
|
-
function
|
|
999
|
-
i0__namespace.ɵɵelementStart(0, "label",
|
|
1000
|
-
i0__namespace.ɵɵelement(1, "input",
|
|
1001
|
+
function CheckboxsetComponent_ng_template_3_li_0_li_8_label_2_Template(rf, ctx) { if (rf & 1) {
|
|
1002
|
+
i0__namespace.ɵɵelementStart(0, "label", 11);
|
|
1003
|
+
i0__namespace.ɵɵelement(1, "input", 9)(2, "span", 26);
|
|
1001
1004
|
i0__namespace.ɵɵelementEnd();
|
|
1002
1005
|
} if (rf & 2) {
|
|
1003
1006
|
const ctx_r9 = i0__namespace.ɵɵnextContext();
|
|
1004
1007
|
const item_r9 = ctx_r9.$implicit;
|
|
1005
|
-
const
|
|
1008
|
+
const i_r11 = ctx_r9.index;
|
|
1006
1009
|
const ctx_r2 = i0__namespace.ɵɵnextContext(3);
|
|
1007
1010
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c2$6, ctx_r2.disabled || ctx_r2.readonly));
|
|
1008
1011
|
i0__namespace.ɵɵadvance();
|
|
1009
1012
|
i0__namespace.ɵɵ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);
|
|
1010
|
-
i0__namespace.ɵɵattribute("data-attr-index",
|
|
1013
|
+
i0__namespace.ɵɵattribute("data-attr-index", i_r11);
|
|
1011
1014
|
} }
|
|
1012
|
-
function
|
|
1015
|
+
function CheckboxsetComponent_ng_template_3_li_0_li_8_Template(rf, ctx) { if (rf & 1) {
|
|
1013
1016
|
const _r8 = i0__namespace.ɵɵgetCurrentView();
|
|
1014
|
-
i0__namespace.ɵɵelementStart(0, "li",
|
|
1015
|
-
i0__namespace.ɵɵlistener("click", function
|
|
1016
|
-
i0__namespace.ɵɵtemplate(1,
|
|
1017
|
+
i0__namespace.ɵɵelementStart(0, "li", 25);
|
|
1018
|
+
i0__namespace.ɵɵlistener("click", function CheckboxsetComponent_ng_template_3_li_0_li_8_Template_li_click_0_listener($event) { const item_r9 = i0__namespace.ɵɵrestoreView(_r8).$implicit; const ctx_r2 = i0__namespace.ɵɵnextContext(3); return i0__namespace.ɵɵresetView(ctx_r2.onCheckboxLabelClick($event, item_r9)); });
|
|
1019
|
+
i0__namespace.ɵɵtemplate(1, CheckboxsetComponent_ng_template_3_li_0_li_8_label_1_Template, 3, 12, "label", 6)(2, CheckboxsetComponent_ng_template_3_li_0_li_8_label_2_Template, 3, 10, "label", 7);
|
|
1017
1020
|
i0__namespace.ɵɵelementEnd();
|
|
1018
1021
|
} if (rf & 2) {
|
|
1019
1022
|
const item_r9 = ctx.$implicit;
|
|
@@ -1021,48 +1024,45 @@
|
|
|
1021
1024
|
i0__namespace.ɵɵclassProp("active", item_r9.selected);
|
|
1022
1025
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(7, _c4$2, ctx_r2.itemclass, ctx_r2.itemsPerRowClass))("wmItemTemplate", ctx_r2.content)("userComponentParams", item_r9);
|
|
1023
1026
|
i0__namespace.ɵɵadvance();
|
|
1024
|
-
i0__namespace.ɵɵ
|
|
1027
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r2.content);
|
|
1025
1028
|
i0__namespace.ɵɵadvance();
|
|
1026
|
-
i0__namespace.ɵɵ
|
|
1029
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r2.content);
|
|
1027
1030
|
} }
|
|
1028
|
-
function
|
|
1031
|
+
function CheckboxsetComponent_ng_template_3_li_0_Template(rf, ctx) { if (rf & 1) {
|
|
1029
1032
|
const _r6 = i0__namespace.ɵɵgetCurrentView();
|
|
1030
|
-
i0__namespace.ɵɵelementStart(0, "li",
|
|
1031
|
-
i0__namespace.ɵɵlistener("click", function
|
|
1032
|
-
i0__namespace.ɵɵelementStart(3, "h4",
|
|
1033
|
+
i0__namespace.ɵɵelementStart(0, "li", 15)(1, "ul", 16)(2, "li", 17);
|
|
1034
|
+
i0__namespace.ɵɵlistener("click", function CheckboxsetComponent_ng_template_3_li_0_Template_li_click_2_listener($event) { i0__namespace.ɵɵrestoreView(_r6); const ctx_r2 = i0__namespace.ɵɵnextContext(2); return i0__namespace.ɵɵresetView(ctx_r2.handleHeaderClick($event)); });
|
|
1035
|
+
i0__namespace.ɵɵelementStart(3, "h4", 18);
|
|
1033
1036
|
i0__namespace.ɵɵtext(4);
|
|
1034
|
-
i0__namespace.ɵɵelementStart(5, "div",
|
|
1035
|
-
i0__namespace.ɵɵtemplate(6,
|
|
1037
|
+
i0__namespace.ɵɵelementStart(5, "div", 19);
|
|
1038
|
+
i0__namespace.ɵɵtemplate(6, CheckboxsetComponent_ng_template_3_li_0_i_6_Template, 1, 3, "i", 20)(7, CheckboxsetComponent_ng_template_3_li_0_span_7_Template, 1, 1, "span", 21);
|
|
1036
1039
|
i0__namespace.ɵɵelementEnd()()();
|
|
1037
|
-
i0__namespace.ɵɵ
|
|
1040
|
+
i0__namespace.ɵɵtemplate(8, CheckboxsetComponent_ng_template_3_li_0_li_8_Template, 3, 10, "li", 22);
|
|
1038
1041
|
i0__namespace.ɵɵelementEnd()();
|
|
1039
1042
|
} if (rf & 2) {
|
|
1040
1043
|
const groupObj_r7 = ctx.$implicit;
|
|
1041
|
-
const
|
|
1044
|
+
const groupindex_r12 = ctx.index;
|
|
1042
1045
|
const ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
1043
1046
|
i0__namespace.ɵɵadvance();
|
|
1044
|
-
i0__namespace.ɵɵattribute("aria-labelledby", "group_" + ctx_r2.widgetId + "_" +
|
|
1047
|
+
i0__namespace.ɵɵattribute("aria-labelledby", "group_" + ctx_r2.widgetId + "_" + groupindex_r12);
|
|
1045
1048
|
i0__namespace.ɵɵadvance();
|
|
1046
|
-
i0__namespace.ɵɵproperty("id", "group_" + ctx_r2.widgetId + "_" +
|
|
1049
|
+
i0__namespace.ɵɵproperty("id", "group_" + ctx_r2.widgetId + "_" + groupindex_r12)("title", groupObj_r7.key)("ngClass", i0__namespace.ɵɵpureFunction1(9, _c3$2, ctx_r2.collapsible));
|
|
1047
1050
|
i0__namespace.ɵɵadvance();
|
|
1048
1051
|
i0__namespace.ɵɵattribute("aria-label", "Group " + groupObj_r7.key);
|
|
1049
1052
|
i0__namespace.ɵɵadvance();
|
|
1050
1053
|
i0__namespace.ɵɵtextInterpolate1("", groupObj_r7.key, " ");
|
|
1051
1054
|
i0__namespace.ɵɵadvance(2);
|
|
1052
|
-
i0__namespace.ɵɵ
|
|
1055
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r2.collapsible);
|
|
1053
1056
|
i0__namespace.ɵɵadvance();
|
|
1054
|
-
i0__namespace.ɵɵ
|
|
1057
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r2.showcount);
|
|
1055
1058
|
i0__namespace.ɵɵadvance();
|
|
1056
|
-
i0__namespace.ɵɵ
|
|
1059
|
+
i0__namespace.ɵɵproperty("ngForOf", groupObj_r7.data);
|
|
1057
1060
|
} }
|
|
1058
|
-
function
|
|
1059
|
-
i0__namespace.ɵɵ
|
|
1061
|
+
function CheckboxsetComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
1062
|
+
i0__namespace.ɵɵtemplate(0, CheckboxsetComponent_ng_template_3_li_0_Template, 9, 11, "li", 14);
|
|
1060
1063
|
} if (rf & 2) {
|
|
1061
1064
|
const ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
1062
|
-
i0__namespace.ɵɵ
|
|
1063
|
-
} }
|
|
1064
|
-
function CheckboxsetComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
1065
|
-
i0__namespace.ɵɵelement(0, "div", 1);
|
|
1065
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r2.groupedData);
|
|
1066
1066
|
} }
|
|
1067
1067
|
const DEFAULT_CLS$3 = 'app-checkboxset list-group inline';
|
|
1068
1068
|
const WIDGET_CONFIG$b = { widgetType: 'wm-checkboxset', hostClass: DEFAULT_CLS$3 };
|
|
@@ -1136,17 +1136,18 @@
|
|
|
1136
1136
|
i2.provideAs(CheckboxsetComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
1137
1137
|
i2.provideAs(CheckboxsetComponent, i2$1.NG_VALIDATORS, true),
|
|
1138
1138
|
i2.provideAsWidgetRef(CheckboxsetComponent)
|
|
1139
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0$a, decls:
|
|
1140
|
-
i0__namespace.ɵɵtemplate(0,
|
|
1141
|
-
i0__namespace.ɵɵelement(
|
|
1142
|
-
i0__namespace.ɵɵtemplate(
|
|
1139
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0$a, decls: 5, vars: 4, consts: [["groupedListTemplate", ""], [3, "ngIf", "ngIfElse"], ["hidden", "", 1, "model-holder", 3, "disabled"], ["class", "readonly-wrapper", 4, "ngIf"], ["partialContainer", "", "role", "presentation", 3, "ngClass", "active", "wmItemTemplate", "userComponentParams", "click", 4, "ngFor", "ngForOf"], ["partialContainer", "", "role", "presentation", 3, "click", "ngClass", "wmItemTemplate", "userComponentParams"], ["class", "app-checkboxset-label", 3, "ngClass", "title", 4, "ngIf"], ["class", "app-checkboxset-label", 3, "ngClass", 4, "ngIf"], [1, "app-checkboxset-label", 3, "ngClass", "title"], ["type", "checkbox", 3, "name", "tabindex", "disabled", "value", "checked"], [1, "caption", 3, "textContent"], [1, "app-checkboxset-label", 3, "ngClass"], ["partial-container-target", "", 1, "caption", "customTemplate"], [1, "readonly-wrapper"], ["class", "app-list-item-group", "role", "presentation", 4, "ngFor", "ngForOf"], ["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"], ["class", "app-icon wi action wi-chevron-up", 3, "title", 4, "ngIf"], ["class", "label label-default", 3, "textContent", 4, "ngIf"], ["partialContainer", "", 3, "ngClass", "active", "wmItemTemplate", "userComponentParams", "click", 4, "ngFor", "ngForOf"], [1, "app-icon", "wi", "action", "wi-chevron-up", 3, "title"], [1, "label", "label-default", 3, "textContent"], ["partialContainer", "", 3, "click", "ngClass", "wmItemTemplate", "userComponentParams"], ["partial-container-target", "", 1, "caption"]], template: function CheckboxsetComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1140
|
+
i0__namespace.ɵɵtemplate(0, CheckboxsetComponent_ng_template_0_Template, 1, 1, "ng-template", 1);
|
|
1141
|
+
i0__namespace.ɵɵelement(1, "input", 2);
|
|
1142
|
+
i0__namespace.ɵɵtemplate(2, CheckboxsetComponent_div_2_Template, 1, 0, "div", 3)(3, CheckboxsetComponent_ng_template_3_Template, 1, 1, "ng-template", null, 0, i0__namespace.ɵɵtemplateRefExtractor);
|
|
1143
1143
|
} if (rf & 2) {
|
|
1144
|
-
i0__namespace.ɵɵ
|
|
1145
|
-
i0__namespace.ɵɵ
|
|
1144
|
+
const groupedListTemplate_r13 = i0__namespace.ɵɵreference(4);
|
|
1145
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx.groupby)("ngIfElse", groupedListTemplate_r13);
|
|
1146
|
+
i0__namespace.ɵɵadvance();
|
|
1146
1147
|
i0__namespace.ɵɵproperty("disabled", ctx.disabled || ctx.readonly);
|
|
1147
1148
|
i0__namespace.ɵɵadvance();
|
|
1148
|
-
i0__namespace.ɵɵ
|
|
1149
|
-
} }, dependencies: [i1__namespace.NgClass, i2__namespace.ItemTemplateDirective, i2__namespace.PartialParamHandlerDirective, i2__namespace.PartialContainerDirective, i2__namespace.TextContentDirective], encapsulation: 2 }); }
|
|
1149
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.readonly || ctx.disabled);
|
|
1150
|
+
} }, dependencies: [i1__namespace.NgClass, i1__namespace.NgForOf, i1__namespace.NgIf, i2__namespace.ItemTemplateDirective, i2__namespace.PartialParamHandlerDirective, i2__namespace.PartialContainerDirective, i2__namespace.TextContentDirective], encapsulation: 2 }); }
|
|
1150
1151
|
}
|
|
1151
1152
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CheckboxsetComponent, [{
|
|
1152
1153
|
type: i0.Component,
|
|
@@ -1154,7 +1155,7 @@
|
|
|
1154
1155
|
i2.provideAs(CheckboxsetComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
1155
1156
|
i2.provideAs(CheckboxsetComponent, i2$1.NG_VALIDATORS, true),
|
|
1156
1157
|
i2.provideAsWidgetRef(CheckboxsetComponent)
|
|
1157
|
-
], template: "
|
|
1158
|
+
], template: "<ng-template [ngIf]=\"!groupby\" [ngIfElse]=\"groupedListTemplate\">\n <li [ngClass]=\"['checkbox', 'app-checkbox', itemclass, itemsPerRowClass]\"\n [class.active]=\"item.selected\"\n *ngFor=\"let item of datasetItems; let i = index\"\n [wmItemTemplate]=\"content\" [userComponentParams]=\"item\" partialContainer\n (click)=\"onCheckboxLabelClick($event, item.key)\" role=\"presentation\">\n <!-- Default item template -->\n <label *ngIf=\"!content\" 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 <!-- Custom partial template -->\n <label *ngIf=\"content\" 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 </li>\n</ng-template>\n<input [disabled]=\"disabled || readonly\" hidden class=\"model-holder\">\n<div *ngIf=\"readonly || disabled\" class=\"readonly-wrapper\"></div>\n\n<!-- This template will be displayed when groupby is specified. -->\n<ng-template #groupedListTemplate>\n <li *ngFor=\"let groupObj of groupedData; let groupindex = index;\" 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 <i class=\"app-icon wi action wi-chevron-up\" *ngIf=\"collapsible\" title=\"{{appLocale.LABEL_COLLAPSE}}/{{appLocale.LABEL_EXPAND}}\"></i>\n <span *ngIf=\"showcount\" class=\"label label-default\" [textContent]=\"groupObj.data.length\"></span>\n </div>\n </h4>\n </li>\n <li *ngFor=\"let item of groupObj.data; let i = index;\"\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 <label *ngIf=\"!content\" 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 <!-- Custom partial template -->\n <label *ngIf=\"content\" 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 </li>\n </ul>\n </li>\n</ng-template>\n" }]
|
|
1158
1159
|
}], () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
|
1159
1160
|
type: i0.Inject,
|
|
1160
1161
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -1984,41 +1985,41 @@
|
|
|
1984
1985
|
const _c2$5 = a0 => ({ "disabled": a0 });
|
|
1985
1986
|
const _c3$1 = a0 => ({ "collapsible-content": a0 });
|
|
1986
1987
|
const _c4$1 = (a0, a1) => ["radio", "app-radio", "group-list-item", a0, a1];
|
|
1987
|
-
function
|
|
1988
|
-
i0__namespace.ɵɵelementStart(0, "label",
|
|
1989
|
-
i0__namespace.ɵɵelement(1, "input",
|
|
1988
|
+
function RadiosetComponent_ng_template_0_li_0_label_1_Template(rf, ctx) { if (rf & 1) {
|
|
1989
|
+
i0__namespace.ɵɵelementStart(0, "label", 7);
|
|
1990
|
+
i0__namespace.ɵɵelement(1, "input", 8)(2, "span", 9);
|
|
1990
1991
|
i0__namespace.ɵɵelementEnd();
|
|
1991
1992
|
} if (rf & 2) {
|
|
1992
1993
|
const ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
1993
1994
|
const item_r2 = ctx_r3.$implicit;
|
|
1994
|
-
const
|
|
1995
|
+
const i_r5 = ctx_r3.index;
|
|
1995
1996
|
const ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
1996
1997
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c2$5, ctx_r2.disabled || ctx_r2.readonly));
|
|
1997
1998
|
i0__namespace.ɵɵadvance();
|
|
1998
1999
|
i0__namespace.ɵɵ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);
|
|
1999
|
-
i0__namespace.ɵɵattribute("data-attr-index",
|
|
2000
|
+
i0__namespace.ɵɵattribute("data-attr-index", i_r5);
|
|
2000
2001
|
i0__namespace.ɵɵadvance();
|
|
2001
2002
|
i0__namespace.ɵɵproperty("textContent", item_r2.label);
|
|
2002
2003
|
} }
|
|
2003
|
-
function
|
|
2004
|
-
i0__namespace.ɵɵelementStart(0, "label",
|
|
2005
|
-
i0__namespace.ɵɵelement(1, "input",
|
|
2004
|
+
function RadiosetComponent_ng_template_0_li_0_label_2_Template(rf, ctx) { if (rf & 1) {
|
|
2005
|
+
i0__namespace.ɵɵelementStart(0, "label", 7);
|
|
2006
|
+
i0__namespace.ɵɵelement(1, "input", 8)(2, "span", 10);
|
|
2006
2007
|
i0__namespace.ɵɵelementEnd();
|
|
2007
2008
|
} if (rf & 2) {
|
|
2008
2009
|
const ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
2009
2010
|
const item_r2 = ctx_r3.$implicit;
|
|
2010
|
-
const
|
|
2011
|
+
const i_r5 = ctx_r3.index;
|
|
2011
2012
|
const ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
2012
2013
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c2$5, ctx_r2.disabled || ctx_r2.readonly));
|
|
2013
2014
|
i0__namespace.ɵɵadvance();
|
|
2014
2015
|
i0__namespace.ɵɵ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);
|
|
2015
|
-
i0__namespace.ɵɵattribute("data-attr-index",
|
|
2016
|
+
i0__namespace.ɵɵattribute("data-attr-index", i_r5);
|
|
2016
2017
|
} }
|
|
2017
|
-
function
|
|
2018
|
+
function RadiosetComponent_ng_template_0_li_0_Template(rf, ctx) { if (rf & 1) {
|
|
2018
2019
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
2019
|
-
i0__namespace.ɵɵelementStart(0, "li",
|
|
2020
|
-
i0__namespace.ɵɵlistener("click", function
|
|
2021
|
-
i0__namespace.ɵɵtemplate(1,
|
|
2020
|
+
i0__namespace.ɵɵelementStart(0, "li", 5);
|
|
2021
|
+
i0__namespace.ɵɵlistener("click", function RadiosetComponent_ng_template_0_li_0_Template_li_click_0_listener($event) { const item_r2 = i0__namespace.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0__namespace.ɵɵnextContext(2); return i0__namespace.ɵɵresetView(ctx_r2.onRadioLabelClick($event, item_r2.key)); });
|
|
2022
|
+
i0__namespace.ɵɵtemplate(1, RadiosetComponent_ng_template_0_li_0_label_1_Template, 3, 10, "label", 6)(2, RadiosetComponent_ng_template_0_li_0_label_2_Template, 3, 9, "label", 6);
|
|
2022
2023
|
i0__namespace.ɵɵelementEnd();
|
|
2023
2024
|
} if (rf & 2) {
|
|
2024
2025
|
const item_r2 = ctx.$implicit;
|
|
@@ -2026,63 +2027,66 @@
|
|
|
2026
2027
|
i0__namespace.ɵɵclassProp("active", item_r2.selected);
|
|
2027
2028
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(7, _c1$7, ctx_r2.itemclass, ctx_r2.itemsPerRowClass))("wmItemTemplate", ctx_r2.content)("userComponentParams", item_r2);
|
|
2028
2029
|
i0__namespace.ɵɵadvance();
|
|
2029
|
-
i0__namespace.ɵɵ
|
|
2030
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r2.content);
|
|
2030
2031
|
i0__namespace.ɵɵadvance();
|
|
2031
|
-
i0__namespace.ɵɵ
|
|
2032
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r2.content);
|
|
2032
2033
|
} }
|
|
2033
|
-
function
|
|
2034
|
-
i0__namespace.ɵɵ
|
|
2034
|
+
function RadiosetComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
2035
|
+
i0__namespace.ɵɵtemplate(0, RadiosetComponent_ng_template_0_li_0_Template, 3, 10, "li", 4);
|
|
2035
2036
|
} if (rf & 2) {
|
|
2036
2037
|
const ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
2037
|
-
i0__namespace.ɵɵ
|
|
2038
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r2.datasetItems);
|
|
2038
2039
|
} }
|
|
2039
|
-
function
|
|
2040
|
-
i0__namespace.ɵɵelement(0, "
|
|
2040
|
+
function RadiosetComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
2041
|
+
i0__namespace.ɵɵelement(0, "div", 11);
|
|
2042
|
+
} }
|
|
2043
|
+
function RadiosetComponent_ng_template_3_li_0_i_6_Template(rf, ctx) { if (rf & 1) {
|
|
2044
|
+
i0__namespace.ɵɵelement(0, "i", 21);
|
|
2041
2045
|
} if (rf & 2) {
|
|
2042
2046
|
const ctx_r2 = i0__namespace.ɵɵnextContext(3);
|
|
2043
2047
|
i0__namespace.ɵɵpropertyInterpolate2("title", "", ctx_r2.appLocale.LABEL_COLLAPSE, "/", ctx_r2.appLocale.LABEL_EXPAND, "");
|
|
2044
2048
|
} }
|
|
2045
|
-
function
|
|
2046
|
-
i0__namespace.ɵɵelement(0, "span",
|
|
2049
|
+
function RadiosetComponent_ng_template_3_li_0_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
2050
|
+
i0__namespace.ɵɵelement(0, "span", 22);
|
|
2047
2051
|
} if (rf & 2) {
|
|
2048
2052
|
const groupObj_r7 = i0__namespace.ɵɵnextContext().$implicit;
|
|
2049
2053
|
i0__namespace.ɵɵproperty("textContent", groupObj_r7.data.length);
|
|
2050
2054
|
} }
|
|
2051
|
-
function
|
|
2052
|
-
i0__namespace.ɵɵelementStart(0, "label",
|
|
2053
|
-
i0__namespace.ɵɵelement(1, "input",
|
|
2055
|
+
function RadiosetComponent_ng_template_3_li_0_li_8_label_1_Template(rf, ctx) { if (rf & 1) {
|
|
2056
|
+
i0__namespace.ɵɵelementStart(0, "label", 7);
|
|
2057
|
+
i0__namespace.ɵɵelement(1, "input", 24)(2, "span", 9);
|
|
2054
2058
|
i0__namespace.ɵɵelementEnd();
|
|
2055
2059
|
} if (rf & 2) {
|
|
2056
2060
|
const ctx_r9 = i0__namespace.ɵɵnextContext();
|
|
2057
2061
|
const item_r9 = ctx_r9.$implicit;
|
|
2058
|
-
const
|
|
2062
|
+
const i_r11 = ctx_r9.index;
|
|
2059
2063
|
const ctx_r2 = i0__namespace.ɵɵnextContext(3);
|
|
2060
2064
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c2$5, ctx_r2.disabled || ctx_r2.readonly));
|
|
2061
2065
|
i0__namespace.ɵɵadvance();
|
|
2062
2066
|
i0__namespace.ɵɵ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);
|
|
2063
|
-
i0__namespace.ɵɵattribute("data-attr-index",
|
|
2067
|
+
i0__namespace.ɵɵattribute("data-attr-index", i_r11);
|
|
2064
2068
|
i0__namespace.ɵɵadvance();
|
|
2065
2069
|
i0__namespace.ɵɵproperty("textContent", item_r9.label);
|
|
2066
2070
|
} }
|
|
2067
|
-
function
|
|
2068
|
-
i0__namespace.ɵɵelementStart(0, "label",
|
|
2069
|
-
i0__namespace.ɵɵelement(1, "input",
|
|
2071
|
+
function RadiosetComponent_ng_template_3_li_0_li_8_label_2_Template(rf, ctx) { if (rf & 1) {
|
|
2072
|
+
i0__namespace.ɵɵelementStart(0, "label", 7);
|
|
2073
|
+
i0__namespace.ɵɵelement(1, "input", 24)(2, "span", 10);
|
|
2070
2074
|
i0__namespace.ɵɵelementEnd();
|
|
2071
2075
|
} if (rf & 2) {
|
|
2072
2076
|
const ctx_r9 = i0__namespace.ɵɵnextContext();
|
|
2073
2077
|
const item_r9 = ctx_r9.$implicit;
|
|
2074
|
-
const
|
|
2078
|
+
const i_r11 = ctx_r9.index;
|
|
2075
2079
|
const ctx_r2 = i0__namespace.ɵɵnextContext(3);
|
|
2076
2080
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c2$5, ctx_r2.disabled || ctx_r2.readonly));
|
|
2077
2081
|
i0__namespace.ɵɵadvance();
|
|
2078
2082
|
i0__namespace.ɵɵ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);
|
|
2079
|
-
i0__namespace.ɵɵattribute("data-attr-index",
|
|
2083
|
+
i0__namespace.ɵɵattribute("data-attr-index", i_r11);
|
|
2080
2084
|
} }
|
|
2081
|
-
function
|
|
2085
|
+
function RadiosetComponent_ng_template_3_li_0_li_8_Template(rf, ctx) { if (rf & 1) {
|
|
2082
2086
|
const _r8 = i0__namespace.ɵɵgetCurrentView();
|
|
2083
|
-
i0__namespace.ɵɵelementStart(0, "li",
|
|
2084
|
-
i0__namespace.ɵɵlistener("click", function
|
|
2085
|
-
i0__namespace.ɵɵtemplate(1,
|
|
2087
|
+
i0__namespace.ɵɵelementStart(0, "li", 23);
|
|
2088
|
+
i0__namespace.ɵɵlistener("click", function RadiosetComponent_ng_template_3_li_0_li_8_Template_li_click_0_listener($event) { const item_r9 = i0__namespace.ɵɵrestoreView(_r8).$implicit; const ctx_r2 = i0__namespace.ɵɵnextContext(3); return i0__namespace.ɵɵresetView(ctx_r2.onRadioLabelClick($event, item_r9)); });
|
|
2089
|
+
i0__namespace.ɵɵtemplate(1, RadiosetComponent_ng_template_3_li_0_li_8_label_1_Template, 3, 10, "label", 6)(2, RadiosetComponent_ng_template_3_li_0_li_8_label_2_Template, 3, 9, "label", 6);
|
|
2086
2090
|
i0__namespace.ɵɵelementEnd();
|
|
2087
2091
|
} if (rf & 2) {
|
|
2088
2092
|
const item_r9 = ctx.$implicit;
|
|
@@ -2090,48 +2094,45 @@
|
|
|
2090
2094
|
i0__namespace.ɵɵclassProp("active", item_r9.selected);
|
|
2091
2095
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(7, _c4$1, ctx_r2.itemclass, ctx_r2.itemsPerRowClass))("wmItemTemplate", ctx_r2.content)("userComponentParams", item_r9);
|
|
2092
2096
|
i0__namespace.ɵɵadvance();
|
|
2093
|
-
i0__namespace.ɵɵ
|
|
2097
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r2.content);
|
|
2094
2098
|
i0__namespace.ɵɵadvance();
|
|
2095
|
-
i0__namespace.ɵɵ
|
|
2099
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r2.content);
|
|
2096
2100
|
} }
|
|
2097
|
-
function
|
|
2101
|
+
function RadiosetComponent_ng_template_3_li_0_Template(rf, ctx) { if (rf & 1) {
|
|
2098
2102
|
const _r6 = i0__namespace.ɵɵgetCurrentView();
|
|
2099
|
-
i0__namespace.ɵɵelementStart(0, "li",
|
|
2100
|
-
i0__namespace.ɵɵlistener("click", function
|
|
2101
|
-
i0__namespace.ɵɵelementStart(3, "h4",
|
|
2103
|
+
i0__namespace.ɵɵelementStart(0, "li", 13)(1, "ul", 14)(2, "li", 15);
|
|
2104
|
+
i0__namespace.ɵɵlistener("click", function RadiosetComponent_ng_template_3_li_0_Template_li_click_2_listener($event) { i0__namespace.ɵɵrestoreView(_r6); const ctx_r2 = i0__namespace.ɵɵnextContext(2); return i0__namespace.ɵɵresetView(ctx_r2.handleHeaderClick($event)); });
|
|
2105
|
+
i0__namespace.ɵɵelementStart(3, "h4", 16);
|
|
2102
2106
|
i0__namespace.ɵɵtext(4);
|
|
2103
|
-
i0__namespace.ɵɵelementStart(5, "div",
|
|
2104
|
-
i0__namespace.ɵɵtemplate(6,
|
|
2107
|
+
i0__namespace.ɵɵelementStart(5, "div", 17);
|
|
2108
|
+
i0__namespace.ɵɵtemplate(6, RadiosetComponent_ng_template_3_li_0_i_6_Template, 1, 3, "i", 18)(7, RadiosetComponent_ng_template_3_li_0_span_7_Template, 1, 1, "span", 19);
|
|
2105
2109
|
i0__namespace.ɵɵelementEnd()()();
|
|
2106
|
-
i0__namespace.ɵɵ
|
|
2110
|
+
i0__namespace.ɵɵtemplate(8, RadiosetComponent_ng_template_3_li_0_li_8_Template, 3, 10, "li", 20);
|
|
2107
2111
|
i0__namespace.ɵɵelementEnd()();
|
|
2108
2112
|
} if (rf & 2) {
|
|
2109
2113
|
const groupObj_r7 = ctx.$implicit;
|
|
2110
|
-
const
|
|
2114
|
+
const groupindex_r12 = ctx.index;
|
|
2111
2115
|
const ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
2112
2116
|
i0__namespace.ɵɵadvance();
|
|
2113
|
-
i0__namespace.ɵɵattribute("aria-labelledby", "group_" + ctx_r2.widgetId + "_" +
|
|
2117
|
+
i0__namespace.ɵɵattribute("aria-labelledby", "group_" + ctx_r2.widgetId + "_" + groupindex_r12);
|
|
2114
2118
|
i0__namespace.ɵɵadvance();
|
|
2115
|
-
i0__namespace.ɵɵproperty("id", "group_" + ctx_r2.widgetId + "_" +
|
|
2119
|
+
i0__namespace.ɵɵproperty("id", "group_" + ctx_r2.widgetId + "_" + groupindex_r12)("title", groupObj_r7.key)("ngClass", i0__namespace.ɵɵpureFunction1(9, _c3$1, ctx_r2.collapsible));
|
|
2116
2120
|
i0__namespace.ɵɵadvance();
|
|
2117
2121
|
i0__namespace.ɵɵattribute("aria-label", "Group " + groupObj_r7.key);
|
|
2118
2122
|
i0__namespace.ɵɵadvance();
|
|
2119
2123
|
i0__namespace.ɵɵtextInterpolate1("", groupObj_r7.key, " ");
|
|
2120
2124
|
i0__namespace.ɵɵadvance(2);
|
|
2121
|
-
i0__namespace.ɵɵ
|
|
2125
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r2.collapsible);
|
|
2122
2126
|
i0__namespace.ɵɵadvance();
|
|
2123
|
-
i0__namespace.ɵɵ
|
|
2127
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r2.showcount);
|
|
2124
2128
|
i0__namespace.ɵɵadvance();
|
|
2125
|
-
i0__namespace.ɵɵ
|
|
2129
|
+
i0__namespace.ɵɵproperty("ngForOf", groupObj_r7.data);
|
|
2126
2130
|
} }
|
|
2127
|
-
function
|
|
2128
|
-
i0__namespace.ɵɵ
|
|
2131
|
+
function RadiosetComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
2132
|
+
i0__namespace.ɵɵtemplate(0, RadiosetComponent_ng_template_3_li_0_Template, 9, 11, "li", 12);
|
|
2129
2133
|
} if (rf & 2) {
|
|
2130
2134
|
const ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
2131
|
-
i0__namespace.ɵɵ
|
|
2132
|
-
} }
|
|
2133
|
-
function RadiosetComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
2134
|
-
i0__namespace.ɵɵelement(0, "div", 1);
|
|
2135
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r2.groupedData);
|
|
2135
2136
|
} }
|
|
2136
2137
|
const DEFAULT_CLS$1 = 'app-radioset list-group inline';
|
|
2137
2138
|
const WIDGET_CONFIG$8 = { widgetType: 'wm-radioset', hostClass: DEFAULT_CLS$1 };
|
|
@@ -2191,17 +2192,18 @@
|
|
|
2191
2192
|
i2.provideAs(RadiosetComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2192
2193
|
i2.provideAs(RadiosetComponent, i2$1.NG_VALIDATORS, true),
|
|
2193
2194
|
i2.provideAsWidgetRef(RadiosetComponent)
|
|
2194
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0$8, decls:
|
|
2195
|
-
i0__namespace.ɵɵtemplate(0,
|
|
2196
|
-
i0__namespace.ɵɵelement(
|
|
2197
|
-
i0__namespace.ɵɵtemplate(
|
|
2195
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0$8, decls: 5, vars: 4, consts: [["groupedListTemplate", ""], [3, "ngIf", "ngIfElse"], ["hidden", "", 1, "model-holder", 3, "disabled"], ["aria-readonly", "true", "class", "readonly-wrapper", 4, "ngIf"], ["partialContainer", "", "role", "presentation", 3, "ngClass", "active", "wmItemTemplate", "userComponentParams", "click", 4, "ngFor", "ngForOf"], ["partialContainer", "", "role", "presentation", 3, "click", "ngClass", "wmItemTemplate", "userComponentParams"], ["class", "app-radioset-label", 3, "ngClass", 4, "ngIf"], [1, "app-radioset-label", 3, "ngClass"], ["type", "radio", 3, "checked", "disabled", "name", "tabindex", "value"], [1, "caption", 3, "textContent"], ["partial-container-target", "", 1, "caption", "customTemplate"], ["aria-readonly", "true", 1, "readonly-wrapper"], ["class", "app-list-item-group", "role", "presentation", 4, "ngFor", "ngForOf"], ["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"], ["class", "app-icon wi action wi-chevron-up", 3, "title", 4, "ngIf"], ["class", "label label-default", 3, "textContent", 4, "ngIf"], ["partialContainer", "", 3, "ngClass", "active", "wmItemTemplate", "userComponentParams", "click", 4, "ngFor", "ngForOf"], [1, "app-icon", "wi", "action", "wi-chevron-up", 3, "title"], [1, "label", "label-default", 3, "textContent"], ["partialContainer", "", 3, "click", "ngClass", "wmItemTemplate", "userComponentParams"], ["type", "radio", 3, "name", "value", "disabled", "tabindex", "checked"]], template: function RadiosetComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2196
|
+
i0__namespace.ɵɵtemplate(0, RadiosetComponent_ng_template_0_Template, 1, 1, "ng-template", 1);
|
|
2197
|
+
i0__namespace.ɵɵelement(1, "input", 2);
|
|
2198
|
+
i0__namespace.ɵɵtemplate(2, RadiosetComponent_div_2_Template, 1, 0, "div", 3)(3, RadiosetComponent_ng_template_3_Template, 1, 1, "ng-template", null, 0, i0__namespace.ɵɵtemplateRefExtractor);
|
|
2198
2199
|
} if (rf & 2) {
|
|
2199
|
-
i0__namespace.ɵɵ
|
|
2200
|
-
i0__namespace.ɵɵ
|
|
2200
|
+
const groupedListTemplate_r13 = i0__namespace.ɵɵreference(4);
|
|
2201
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx.groupby)("ngIfElse", groupedListTemplate_r13);
|
|
2202
|
+
i0__namespace.ɵɵadvance();
|
|
2201
2203
|
i0__namespace.ɵɵproperty("disabled", ctx.disabled || ctx.readonly);
|
|
2202
2204
|
i0__namespace.ɵɵadvance();
|
|
2203
|
-
i0__namespace.ɵɵ
|
|
2204
|
-
} }, dependencies: [i1__namespace.NgClass, i2__namespace.ItemTemplateDirective, i2__namespace.PartialParamHandlerDirective, i2__namespace.PartialContainerDirective, i2__namespace.TextContentDirective], encapsulation: 2 }); }
|
|
2205
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.readonly || ctx.disabled);
|
|
2206
|
+
} }, dependencies: [i1__namespace.NgClass, i1__namespace.NgForOf, i1__namespace.NgIf, i2__namespace.ItemTemplateDirective, i2__namespace.PartialParamHandlerDirective, i2__namespace.PartialContainerDirective, i2__namespace.TextContentDirective], encapsulation: 2 }); }
|
|
2205
2207
|
}
|
|
2206
2208
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(RadiosetComponent, [{
|
|
2207
2209
|
type: i0.Component,
|
|
@@ -2209,7 +2211,7 @@
|
|
|
2209
2211
|
i2.provideAs(RadiosetComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2210
2212
|
i2.provideAs(RadiosetComponent, i2$1.NG_VALIDATORS, true),
|
|
2211
2213
|
i2.provideAsWidgetRef(RadiosetComponent)
|
|
2212
|
-
], template: "
|
|
2214
|
+
], template: "<ng-template [ngIf]=\"!groupby\" [ngIfElse]=\"groupedListTemplate\">\n <li [ngClass]=\"['radio', 'app-radio', itemclass, itemsPerRowClass]\"\n [class.active]=\"item.selected\"\n *ngFor=\"let item of datasetItems;let i = index\"\n [wmItemTemplate]=\"content\" [userComponentParams]=\"item\" partialContainer\n (click)=\"onRadioLabelClick($event, item.key)\" role=\"presentation\">\n <!-- Default item template -->\n <label *ngIf=\"!content\" 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 <!-- Custom partial template -->\n <label *ngIf=\"content\" 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 </li>\n</ng-template>\n\n<input [disabled]=\"disabled || readonly\" hidden class=\"model-holder\">\n<div *ngIf=\"readonly || disabled\" aria-readonly=\"true\" class=\"readonly-wrapper\"></div>\n\n<!-- This template will be displayed when groupby is specified. -->\n<ng-template #groupedListTemplate>\n <li *ngFor=\"let groupObj of groupedData; let groupindex = index;\" 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 <i class=\"app-icon wi action wi-chevron-up\" *ngIf=\"collapsible\" title=\"{{appLocale.LABEL_COLLAPSE}}/{{appLocale.LABEL_EXPAND}}\"></i>\n <span *ngIf=\"showcount\" class=\"label label-default\" [textContent]=\"groupObj.data.length\"></span>\n </div>\n </h4>\n </li>\n <li *ngFor=\"let item of groupObj.data; let i = index;\"\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 <label *ngIf=\"!content\" 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 <!-- Custom partial template -->\n <label *ngIf=\"content\" 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 </li>\n </ul>\n </li>\n</ng-template>\n" }]
|
|
2213
2215
|
}], () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
|
2214
2216
|
type: i0.Inject,
|
|
2215
2217
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -2255,39 +2257,45 @@
|
|
|
2255
2257
|
const _c0$7 = ["select"];
|
|
2256
2258
|
const _c1$6 = a0 => ["app-select form-control", a0];
|
|
2257
2259
|
const _c2$4 = () => ({ standalone: true });
|
|
2258
|
-
function
|
|
2259
|
-
i0__namespace.ɵɵelement(0, "option",
|
|
2260
|
+
function SelectComponent_ng_container_3_optgroup_1_option_1_Template(rf, ctx) { if (rf & 1) {
|
|
2261
|
+
i0__namespace.ɵɵelement(0, "option", 7);
|
|
2260
2262
|
} if (rf & 2) {
|
|
2261
2263
|
const item_r2 = ctx.$implicit;
|
|
2262
2264
|
i0__namespace.ɵɵproperty("value", item_r2.key)("selected", item_r2.selected)("textContent", item_r2.label);
|
|
2263
2265
|
} }
|
|
2264
|
-
function
|
|
2265
|
-
i0__namespace.ɵɵelementStart(0, "optgroup",
|
|
2266
|
-
i0__namespace.ɵɵ
|
|
2266
|
+
function SelectComponent_ng_container_3_optgroup_1_Template(rf, ctx) { if (rf & 1) {
|
|
2267
|
+
i0__namespace.ɵɵelementStart(0, "optgroup", 5);
|
|
2268
|
+
i0__namespace.ɵɵtemplate(1, SelectComponent_ng_container_3_optgroup_1_option_1_Template, 1, 3, "option", 6);
|
|
2267
2269
|
i0__namespace.ɵɵelementEnd();
|
|
2268
2270
|
} if (rf & 2) {
|
|
2269
2271
|
const groupObj_r3 = ctx.$implicit;
|
|
2270
2272
|
i0__namespace.ɵɵproperty("label", groupObj_r3.key);
|
|
2271
2273
|
i0__namespace.ɵɵadvance();
|
|
2272
|
-
i0__namespace.ɵɵ
|
|
2274
|
+
i0__namespace.ɵɵproperty("ngForOf", groupObj_r3.data);
|
|
2273
2275
|
} }
|
|
2274
|
-
function
|
|
2275
|
-
i0__namespace.ɵɵ
|
|
2276
|
+
function SelectComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
2277
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
2278
|
+
i0__namespace.ɵɵtemplate(1, SelectComponent_ng_container_3_optgroup_1_Template, 2, 2, "optgroup", 4);
|
|
2279
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
2276
2280
|
} if (rf & 2) {
|
|
2277
2281
|
const ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
2278
|
-
i0__namespace.ɵɵ
|
|
2282
|
+
i0__namespace.ɵɵadvance();
|
|
2283
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r3.groupedData);
|
|
2279
2284
|
} }
|
|
2280
|
-
function
|
|
2281
|
-
i0__namespace.ɵɵelement(0, "option",
|
|
2285
|
+
function SelectComponent_ng_container_4_option_1_Template(rf, ctx) { if (rf & 1) {
|
|
2286
|
+
i0__namespace.ɵɵelement(0, "option", 7);
|
|
2282
2287
|
} if (rf & 2) {
|
|
2283
2288
|
const item_r5 = ctx.$implicit;
|
|
2284
2289
|
i0__namespace.ɵɵproperty("value", item_r5.key)("selected", item_r5.selected)("textContent", item_r5.label);
|
|
2285
2290
|
} }
|
|
2286
|
-
function
|
|
2287
|
-
i0__namespace.ɵɵ
|
|
2291
|
+
function SelectComponent_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
2292
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
2293
|
+
i0__namespace.ɵɵtemplate(1, SelectComponent_ng_container_4_option_1_Template, 1, 3, "option", 6);
|
|
2294
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
2288
2295
|
} if (rf & 2) {
|
|
2289
2296
|
const ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
2290
|
-
i0__namespace.ɵɵ
|
|
2297
|
+
i0__namespace.ɵɵadvance();
|
|
2298
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r3.datasetItems);
|
|
2291
2299
|
} }
|
|
2292
2300
|
const WIDGET_CONFIG$7 = { widgetType: 'wm-select', hostClass: 'app-select-wrapper' };
|
|
2293
2301
|
class SelectComponent extends DatasetAwareFormComponent {
|
|
@@ -2430,13 +2438,13 @@
|
|
|
2430
2438
|
i2.provideAs(SelectComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2431
2439
|
i2.provideAs(SelectComponent, i2$1.NG_VALIDATORS, true),
|
|
2432
2440
|
i2.provideAsWidgetRef(SelectComponent)
|
|
2433
|
-
]), i0__namespace.ɵɵ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) {
|
|
2441
|
+
]), i0__namespace.ɵɵ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"], [4, "ngIf"], [3, "label", 4, "ngFor", "ngForOf"], [3, "label"], [3, "value", "selected", "textContent", 4, "ngFor", "ngForOf"], [3, "value", "selected", "textContent"]], template: function SelectComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2434
2442
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
2435
2443
|
i0__namespace.ɵɵelementStart(0, "select", 1, 0);
|
|
2436
2444
|
i0__namespace.ɵɵtwoWayListener("ngModelChange", function SelectComponent_Template_select_ngModelChange_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); i0__namespace.ɵɵtwoWayBindingSet(ctx.modelByKey, $event) || (ctx.modelByKey = $event); return i0__namespace.ɵɵresetView($event); });
|
|
2437
2445
|
i0__namespace.ɵɵlistener("change", function SelectComponent_Template_select_change_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onSelectValueChange($event)); })("mousedown", function SelectComponent_Template_select_mousedown_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.checkForFloatingLabel($event)); })("blur", function SelectComponent_Template_select_blur_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); ctx.invokeOnTouched($event); return i0__namespace.ɵɵresetView(ctx.checkForFloatingLabel($event)); });
|
|
2438
2446
|
i0__namespace.ɵɵelement(2, "option", 2);
|
|
2439
|
-
i0__namespace.ɵɵtemplate(3,
|
|
2447
|
+
i0__namespace.ɵɵtemplate(3, SelectComponent_ng_container_3_Template, 2, 1, "ng-container", 3)(4, SelectComponent_ng_container_4_Template, 2, 1, "ng-container", 3);
|
|
2440
2448
|
i0__namespace.ɵɵelementEnd();
|
|
2441
2449
|
} if (rf & 2) {
|
|
2442
2450
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(15, _c1$6, ctx.class))("disabled", ctx.disabled)("required", ctx.required)("tabindex", ctx.tabindex);
|
|
@@ -2446,10 +2454,10 @@
|
|
|
2446
2454
|
i0__namespace.ɵɵadvance(2);
|
|
2447
2455
|
i0__namespace.ɵɵproperty("textContent", ctx.placeholder)("hidden", !ctx.placeholder);
|
|
2448
2456
|
i0__namespace.ɵɵadvance();
|
|
2449
|
-
i0__namespace.ɵɵ
|
|
2457
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.groupby);
|
|
2450
2458
|
i0__namespace.ɵɵadvance();
|
|
2451
|
-
i0__namespace.ɵɵ
|
|
2452
|
-
} }, dependencies: [i1__namespace.NgClass, i2$1__namespace.NgSelectOption, i2$1__namespace.ɵNgSelectMultipleOption, i2$1__namespace.SelectMultipleControlValueAccessor, i2$1__namespace.NgControlStatus, i2$1__namespace.RequiredValidator, i2$1__namespace.NgModel, i2__namespace.TextContentDirective], encapsulation: 2 }); }
|
|
2459
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx.groupby);
|
|
2460
|
+
} }, dependencies: [i1__namespace.NgClass, i1__namespace.NgForOf, i1__namespace.NgIf, i2$1__namespace.NgSelectOption, i2$1__namespace.ɵNgSelectMultipleOption, i2$1__namespace.SelectMultipleControlValueAccessor, i2$1__namespace.NgControlStatus, i2$1__namespace.RequiredValidator, i2$1__namespace.NgModel, i2__namespace.TextContentDirective], encapsulation: 2 }); }
|
|
2453
2461
|
}
|
|
2454
2462
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SelectComponent, [{
|
|
2455
2463
|
type: i0.Component,
|
|
@@ -2457,7 +2465,7 @@
|
|
|
2457
2465
|
i2.provideAs(SelectComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2458
2466
|
i2.provideAs(SelectComponent, i2$1.NG_VALIDATORS, true),
|
|
2459
2467
|
i2.provideAsWidgetRef(SelectComponent)
|
|
2460
|
-
], template: "<!--Updated focus with mousedown event. IOS devices not allow update of option value after opening dropdown-->\n<select #select\n
|
|
2468
|
+
], 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 <ng-container *ngIf=\"groupby\">\n <optgroup *ngFor=\"let groupObj of groupedData\"\n [label]=\"groupObj.key\">\n <option *ngFor=\"let item of groupObj.data;\"\n [value]=\"item.key\"\n [selected]=\"item.selected\"\n [textContent]=\"item.label\"\n ></option>\n </optgroup>\n </ng-container>\n\n <ng-container *ngIf=\"!groupby\">\n <option *ngFor=\"let item of datasetItems\"\n [value]=\"item.key\"\n [selected]=\"item.selected\"\n [textContent]=\"item.label\"\n ></option>\n </ng-container>\n</select>\n" }]
|
|
2461
2469
|
}], () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
|
2462
2470
|
type: i0.Inject,
|
|
2463
2471
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -2500,24 +2508,24 @@
|
|
|
2500
2508
|
const _c2$3 = (a0, a1) => ({ "selected": a0, "disabled": a1 });
|
|
2501
2509
|
const _c3 = a0 => ["app-icon", a0];
|
|
2502
2510
|
const _c4 = a0 => [a0];
|
|
2503
|
-
function
|
|
2504
|
-
i0__namespace.ɵɵelement(0, "i",
|
|
2511
|
+
function SwitchComponent_a_1_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
2512
|
+
i0__namespace.ɵɵelement(0, "i", 7);
|
|
2505
2513
|
} if (rf & 2) {
|
|
2506
2514
|
const opt_r3 = i0__namespace.ɵɵnextContext().$implicit;
|
|
2507
2515
|
const ctx_r4 = i0__namespace.ɵɵnextContext();
|
|
2508
2516
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(1, _c3, opt_r3.dataObject[ctx_r4.iconclass] || opt_r3["icon"]));
|
|
2509
2517
|
} }
|
|
2510
|
-
function
|
|
2511
|
-
i0__namespace.ɵɵelement(0, "i",
|
|
2518
|
+
function SwitchComponent_a_1_i_2_Template(rf, ctx) { if (rf & 1) {
|
|
2519
|
+
i0__namespace.ɵɵelement(0, "i", 7);
|
|
2512
2520
|
} if (rf & 2) {
|
|
2513
2521
|
const ctx_r4 = i0__namespace.ɵɵnextContext(2);
|
|
2514
2522
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(1, _c4, ctx_r4.checkediconclass));
|
|
2515
2523
|
} }
|
|
2516
|
-
function
|
|
2524
|
+
function SwitchComponent_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
2517
2525
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
2518
2526
|
i0__namespace.ɵɵelementStart(0, "a", 4);
|
|
2519
|
-
i0__namespace.ɵɵlistener("click", function
|
|
2520
|
-
i0__namespace.ɵɵtemplate(1,
|
|
2527
|
+
i0__namespace.ɵɵlistener("click", function SwitchComponent_a_1_Template_a_click_0_listener($event) { const ctx_r1 = i0__namespace.ɵɵrestoreView(_r1); const opt_r3 = ctx_r1.$implicit; const $index_r4 = ctx_r1.index; const ctx_r4 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r4.selectOpt($event, $index_r4, opt_r3)); });
|
|
2528
|
+
i0__namespace.ɵɵtemplate(1, SwitchComponent_a_1_i_1_Template, 1, 3, "i", 5)(2, SwitchComponent_a_1_i_2_Template, 1, 3, "i", 5);
|
|
2521
2529
|
i0__namespace.ɵɵelement(3, "span", 6);
|
|
2522
2530
|
i0__namespace.ɵɵelementEnd();
|
|
2523
2531
|
} if (rf & 2) {
|
|
@@ -2526,16 +2534,16 @@
|
|
|
2526
2534
|
i0__namespace.ɵɵ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__namespace.ɵɵpureFunction2(8, _c2$3, opt_r3.selected, ctx_r4.disabled));
|
|
2527
2535
|
i0__namespace.ɵɵattribute("aria-pressed", opt_r3.selected ? true : false);
|
|
2528
2536
|
i0__namespace.ɵɵadvance();
|
|
2529
|
-
i0__namespace.ɵɵ
|
|
2537
|
+
i0__namespace.ɵɵproperty("ngIf", opt_r3.dataObject && opt_r3.dataObject[ctx_r4.iconclass] && !opt_r3.selected);
|
|
2530
2538
|
i0__namespace.ɵɵadvance();
|
|
2531
|
-
i0__namespace.ɵɵ
|
|
2539
|
+
i0__namespace.ɵɵproperty("ngIf", opt_r3.selected && ctx_r4.checkediconclass);
|
|
2532
2540
|
i0__namespace.ɵɵadvance();
|
|
2533
2541
|
i0__namespace.ɵɵproperty("textContent", opt_r3[ctx_r4.displayfield] || opt_r3.label);
|
|
2534
2542
|
} }
|
|
2535
|
-
function
|
|
2536
|
-
i0__namespace.ɵɵelementStart(0, "span",
|
|
2537
|
-
i0__namespace.ɵɵelement(1, "i",
|
|
2538
|
-
i0__namespace.ɵɵelementStart(2, "span",
|
|
2543
|
+
function SwitchComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
2544
|
+
i0__namespace.ɵɵelementStart(0, "span", 8);
|
|
2545
|
+
i0__namespace.ɵɵelement(1, "i", 9);
|
|
2546
|
+
i0__namespace.ɵɵelementStart(2, "span", 10);
|
|
2539
2547
|
i0__namespace.ɵɵtext(3);
|
|
2540
2548
|
i0__namespace.ɵɵelementEnd()();
|
|
2541
2549
|
} if (rf & 2) {
|
|
@@ -2680,28 +2688,28 @@
|
|
|
2680
2688
|
static { this.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: SwitchComponent, selectors: [["", "wmSwitch", ""]], exportAs: ["wmSwitch"], features: [i0__namespace.ɵɵProvidersFeature([
|
|
2681
2689
|
i2.provideAs(SwitchComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2682
2690
|
i2.provideAsWidgetRef(SwitchComponent)
|
|
2683
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0$6, decls:
|
|
2691
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0$6, decls: 4, vars: 9, consts: [["role", "group", 1, "btn-group", "btn-group-justified", 3, "ngClass"], ["focus-target", "", "href", "javascript:void(0);", "class", "btn btn-default", "role", "button", 3, "title", "name", "ngClass", "click", 4, "ngFor", "ngForOf"], ["aria-hidden", "true", "class", "btn btn-primary app-switch-overlay switch-handle", 3, "title", 4, "ngIf"], ["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", 4, "ngIf"], [1, "caption", 3, "textContent"], ["aria-hidden", "true", 3, "ngClass"], ["aria-hidden", "true", 1, "btn", "btn-primary", "app-switch-overlay", "switch-handle", 3, "title"], [3, "ngClass"], [1, "caption"]], template: function SwitchComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2684
2692
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
2685
|
-
i0__namespace.ɵɵ
|
|
2693
|
+
i0__namespace.ɵɵtemplate(1, SwitchComponent_a_1_Template, 4, 11, "a", 1);
|
|
2686
2694
|
i0__namespace.ɵɵelementEnd();
|
|
2687
|
-
i0__namespace.ɵɵtemplate(
|
|
2688
|
-
i0__namespace.ɵɵelement(
|
|
2695
|
+
i0__namespace.ɵɵtemplate(2, SwitchComponent_span_2_Template, 4, 5, "span", 2);
|
|
2696
|
+
i0__namespace.ɵɵelement(3, "input", 3);
|
|
2689
2697
|
} if (rf & 2) {
|
|
2690
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(
|
|
2698
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$5, ctx.multiple));
|
|
2691
2699
|
i0__namespace.ɵɵadvance();
|
|
2692
|
-
i0__namespace.ɵɵ
|
|
2693
|
-
i0__namespace.ɵɵadvance(
|
|
2694
|
-
i0__namespace.ɵɵ
|
|
2700
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx.datasetItems);
|
|
2701
|
+
i0__namespace.ɵɵadvance();
|
|
2702
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx.multiple);
|
|
2695
2703
|
i0__namespace.ɵɵadvance();
|
|
2696
2704
|
i0__namespace.ɵɵproperty("name", ctx.name)("disabled", ctx.disabled)("value", ctx.modelByKey)("required", ctx.required);
|
|
2697
|
-
} }, dependencies: [i1__namespace.NgClass, i2__namespace.TextContentDirective], encapsulation: 2 }); }
|
|
2705
|
+
} }, dependencies: [i1__namespace.NgClass, i1__namespace.NgForOf, i1__namespace.NgIf, i2__namespace.TextContentDirective], encapsulation: 2 }); }
|
|
2698
2706
|
}
|
|
2699
2707
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SwitchComponent, [{
|
|
2700
2708
|
type: i0.Component,
|
|
2701
2709
|
args: [{ selector: '[wmSwitch]', providers: [
|
|
2702
2710
|
i2.provideAs(SwitchComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2703
2711
|
i2.provideAsWidgetRef(SwitchComponent)
|
|
2704
|
-
], exportAs: 'wmSwitch', template: "<div role=\"group\" class=\"btn-group btn-group-justified\" [ngClass]=\"{'multi-select': multiple}\">\n
|
|
2712
|
+
], exportAs: 'wmSwitch', template: "<div role=\"group\" class=\"btn-group btn-group-justified\" [ngClass]=\"{'multi-select': multiple}\">\n <a *ngFor=\"let opt of datasetItems; let $index = index;\"\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 <i *ngIf=\"opt.dataObject && opt.dataObject[iconclass] && !opt.selected\" aria-hidden=\"true\" [ngClass]=\"['app-icon', opt.dataObject[iconclass] || opt['icon']]\"></i>\n <i *ngIf=\"opt.selected && checkediconclass\" aria-hidden=\"true\" [ngClass]=\"[checkediconclass]\"></i>\n <span class=\"caption\" [textContent]=\"opt[displayfield] || opt.label\"></span>\n </a>\n</div>\n<span [title]=\"selectedItem ? selectedItem.label : modelByKey\" aria-hidden=\"true\"\n class=\"btn btn-primary app-switch-overlay switch-handle\" *ngIf=\"!multiple\">\n <i [ngClass]=\"[checkediconclass]\"></i>\n <span class=\"caption\">{{selectedItem ? selectedItem.label : modelByKey}}</span>\n</span>\n<input [name]=\"name\" class=\"model-holder ng-hide\" [disabled]=\"disabled\" [value]=\"modelByKey\" [required]=\"required\" aria-hidden=\"true\">\n" }]
|
|
2705
2713
|
}], () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
|
2706
2714
|
type: i0.Inject,
|
|
2707
2715
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -3265,8 +3273,8 @@
|
|
|
3265
3273
|
};
|
|
3266
3274
|
|
|
3267
3275
|
const _c0 = ["textarea"];
|
|
3268
|
-
function
|
|
3269
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
3276
|
+
function TextareaComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
3277
|
+
i0__namespace.ɵɵelementStart(0, "div", 3);
|
|
3270
3278
|
i0__namespace.ɵɵtext(1);
|
|
3271
3279
|
i0__namespace.ɵɵelementEnd();
|
|
3272
3280
|
} if (rf & 2) {
|
|
@@ -3302,20 +3310,20 @@
|
|
|
3302
3310
|
i2.provideAs(TextareaComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
3303
3311
|
i2.provideAs(TextareaComponent, i2$1.NG_VALIDATORS, true),
|
|
3304
3312
|
i2.provideAsWidgetRef(TextareaComponent)
|
|
3305
|
-
]), i0__namespace.ɵɵ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) {
|
|
3313
|
+
]), i0__namespace.ɵɵ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"], ["class", "textarea-count", 4, "ngIf"], [1, "textarea-count"]], template: function TextareaComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3306
3314
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
3307
3315
|
i0__namespace.ɵɵelementStart(0, "textarea", 1, 0);
|
|
3308
3316
|
i0__namespace.ɵɵtwoWayListener("ngModelChange", function TextareaComponent_Template_textarea_ngModelChange_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); i0__namespace.ɵɵtwoWayBindingSet(ctx.datavalue, $event) || (ctx.datavalue = $event); return i0__namespace.ɵɵresetView($event); });
|
|
3309
3317
|
i0__namespace.ɵɵlistener("blur", function TextareaComponent_Template_textarea_blur_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.handleBlur($event)); })("input", function TextareaComponent_Template_textarea_input_0_listener() { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onInputChange()); })("ngModelChange", function TextareaComponent_Template_textarea_ngModelChange_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); ctx.handleChange($event); return i0__namespace.ɵɵresetView(ctx.onInputChange()); });
|
|
3310
3318
|
i0__namespace.ɵɵelementEnd();
|
|
3311
|
-
i0__namespace.ɵɵtemplate(2,
|
|
3319
|
+
i0__namespace.ɵɵtemplate(2, TextareaComponent_div_2_Template, 2, 1, "div", 2);
|
|
3312
3320
|
} if (rf & 2) {
|
|
3313
3321
|
i0__namespace.ɵɵtwoWayProperty("ngModel", ctx.datavalue);
|
|
3314
3322
|
i0__namespace.ɵɵ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);
|
|
3315
3323
|
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.arialabel);
|
|
3316
3324
|
i0__namespace.ɵɵadvance(2);
|
|
3317
|
-
i0__namespace.ɵɵ
|
|
3318
|
-
} }, dependencies: [i1__namespace.NgClass, i1__namespace.NgStyle, i2$1__namespace.DefaultValueAccessor, i2$1__namespace.NgControlStatus, i2$1__namespace.RequiredValidator, i2$1__namespace.MaxLengthValidator, i2$1__namespace.NgModel], encapsulation: 2 }); }
|
|
3325
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.maxchars);
|
|
3326
|
+
} }, dependencies: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgStyle, i2$1__namespace.DefaultValueAccessor, i2$1__namespace.NgControlStatus, i2$1__namespace.RequiredValidator, i2$1__namespace.MaxLengthValidator, i2$1__namespace.NgModel], encapsulation: 2 }); }
|
|
3319
3327
|
}
|
|
3320
3328
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(TextareaComponent, [{
|
|
3321
3329
|
type: i0.Component,
|
|
@@ -3323,7 +3331,7 @@
|
|
|
3323
3331
|
i2.provideAs(TextareaComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
3324
3332
|
i2.provideAs(TextareaComponent, i2$1.NG_VALIDATORS, true),
|
|
3325
3333
|
i2.provideAsWidgetRef(TextareaComponent)
|
|
3326
|
-
], template: "<textarea class=\"form-control app-textarea\"\n
|
|
3334
|
+
], 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<div *ngIf=\"maxchars\" class=\"textarea-count\" >{{limitdisplaytext}}</div>\n" }]
|
|
3327
3335
|
}], () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
|
3328
3336
|
type: i0.Inject,
|
|
3329
3337
|
args: ['EXPLICIT_CONTEXT']
|