@wavemaker/app-ng-runtime 11.10.2-rc.6065 → 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
|
@@ -8,154 +8,140 @@ import * as i2 from "@wm/components/base";
|
|
|
8
8
|
import * as i3 from "../base-dialog";
|
|
9
9
|
const _c0 = ["wmDialogHeader", ""];
|
|
10
10
|
const _c1 = (a0, a1, a2) => ({ width: a0, height: a1, margin: a2 });
|
|
11
|
-
function
|
|
11
|
+
function DialogHeaderComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
12
12
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
13
|
-
i0.ɵɵelementStart(0, "button",
|
|
14
|
-
i0.ɵɵlistener("click", function
|
|
15
|
-
i0.ɵɵelement(1, "span",
|
|
13
|
+
i0.ɵɵelementStart(0, "button", 3);
|
|
14
|
+
i0.ɵɵlistener("click", function DialogHeaderComponent_Conditional_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.closeDialog()); });
|
|
15
|
+
i0.ɵɵelement(1, "span", 4);
|
|
16
16
|
i0.ɵɵelementEnd();
|
|
17
17
|
} if (rf & 2) {
|
|
18
18
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
19
19
|
i0.ɵɵpropertyInterpolate("title", ctx_r1.dialogRef.appLocale.LABEL_CLOSE);
|
|
20
20
|
i0.ɵɵattribute("aria-label", "Close " + (ctx_r1.title ? ctx_r1.title : "") + " dialog");
|
|
21
21
|
} }
|
|
22
|
-
function
|
|
22
|
+
function DialogHeaderComponent_Case_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
23
23
|
i0.ɵɵelementContainer(0);
|
|
24
24
|
} }
|
|
25
|
-
function
|
|
26
|
-
i0.ɵɵ
|
|
27
|
-
i0.ɵɵ
|
|
28
|
-
i0.ɵɵtemplate(2, DialogHeaderComponent_ng_container_2_ng_container_2_Template, 1, 0, "ng-container", 8);
|
|
25
|
+
function DialogHeaderComponent_Case_1_Template(rf, ctx) { if (rf & 1) {
|
|
26
|
+
i0.ɵɵelementStart(0, "h1", 2);
|
|
27
|
+
i0.ɵɵtemplate(1, DialogHeaderComponent_Case_1_ng_container_1_Template, 1, 0, "ng-container", 5);
|
|
29
28
|
i0.ɵɵelementEnd();
|
|
30
|
-
i0.ɵɵelementContainerEnd();
|
|
31
29
|
} if (rf & 2) {
|
|
32
30
|
i0.ɵɵnextContext();
|
|
33
|
-
const headerTemplate_r3 = i0.ɵɵreference(
|
|
34
|
-
i0.ɵɵadvance(
|
|
31
|
+
const headerTemplate_r3 = i0.ɵɵreference(9);
|
|
32
|
+
i0.ɵɵadvance();
|
|
35
33
|
i0.ɵɵproperty("ngTemplateOutlet", headerTemplate_r3);
|
|
36
34
|
} }
|
|
37
|
-
function
|
|
35
|
+
function DialogHeaderComponent_Case_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
38
36
|
i0.ɵɵelementContainer(0);
|
|
39
37
|
} }
|
|
40
|
-
function
|
|
41
|
-
i0.ɵɵ
|
|
42
|
-
i0.ɵɵ
|
|
43
|
-
i0.ɵɵtemplate(2, DialogHeaderComponent_ng_container_3_ng_container_2_Template, 1, 0, "ng-container", 8);
|
|
38
|
+
function DialogHeaderComponent_Case_2_Template(rf, ctx) { if (rf & 1) {
|
|
39
|
+
i0.ɵɵelementStart(0, "h2", 2);
|
|
40
|
+
i0.ɵɵtemplate(1, DialogHeaderComponent_Case_2_ng_container_1_Template, 1, 0, "ng-container", 5);
|
|
44
41
|
i0.ɵɵelementEnd();
|
|
45
|
-
i0.ɵɵelementContainerEnd();
|
|
46
42
|
} if (rf & 2) {
|
|
47
43
|
i0.ɵɵnextContext();
|
|
48
|
-
const headerTemplate_r3 = i0.ɵɵreference(
|
|
49
|
-
i0.ɵɵadvance(
|
|
44
|
+
const headerTemplate_r3 = i0.ɵɵreference(9);
|
|
45
|
+
i0.ɵɵadvance();
|
|
50
46
|
i0.ɵɵproperty("ngTemplateOutlet", headerTemplate_r3);
|
|
51
47
|
} }
|
|
52
|
-
function
|
|
48
|
+
function DialogHeaderComponent_Case_3_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
53
49
|
i0.ɵɵelementContainer(0);
|
|
54
50
|
} }
|
|
55
|
-
function
|
|
56
|
-
i0.ɵɵ
|
|
57
|
-
i0.ɵɵ
|
|
58
|
-
i0.ɵɵtemplate(2, DialogHeaderComponent_ng_container_4_ng_container_2_Template, 1, 0, "ng-container", 8);
|
|
51
|
+
function DialogHeaderComponent_Case_3_Template(rf, ctx) { if (rf & 1) {
|
|
52
|
+
i0.ɵɵelementStart(0, "h3", 2);
|
|
53
|
+
i0.ɵɵtemplate(1, DialogHeaderComponent_Case_3_ng_container_1_Template, 1, 0, "ng-container", 5);
|
|
59
54
|
i0.ɵɵelementEnd();
|
|
60
|
-
i0.ɵɵelementContainerEnd();
|
|
61
55
|
} if (rf & 2) {
|
|
62
56
|
i0.ɵɵnextContext();
|
|
63
|
-
const headerTemplate_r3 = i0.ɵɵreference(
|
|
64
|
-
i0.ɵɵadvance(
|
|
57
|
+
const headerTemplate_r3 = i0.ɵɵreference(9);
|
|
58
|
+
i0.ɵɵadvance();
|
|
65
59
|
i0.ɵɵproperty("ngTemplateOutlet", headerTemplate_r3);
|
|
66
60
|
} }
|
|
67
|
-
function
|
|
61
|
+
function DialogHeaderComponent_Case_4_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
68
62
|
i0.ɵɵelementContainer(0);
|
|
69
63
|
} }
|
|
70
|
-
function
|
|
71
|
-
i0.ɵɵ
|
|
72
|
-
i0.ɵɵ
|
|
73
|
-
i0.ɵɵtemplate(2, DialogHeaderComponent_ng_container_5_ng_container_2_Template, 1, 0, "ng-container", 8);
|
|
64
|
+
function DialogHeaderComponent_Case_4_Template(rf, ctx) { if (rf & 1) {
|
|
65
|
+
i0.ɵɵelementStart(0, "h4", 2);
|
|
66
|
+
i0.ɵɵtemplate(1, DialogHeaderComponent_Case_4_ng_container_1_Template, 1, 0, "ng-container", 5);
|
|
74
67
|
i0.ɵɵelementEnd();
|
|
75
|
-
i0.ɵɵelementContainerEnd();
|
|
76
68
|
} if (rf & 2) {
|
|
77
69
|
i0.ɵɵnextContext();
|
|
78
|
-
const headerTemplate_r3 = i0.ɵɵreference(
|
|
79
|
-
i0.ɵɵadvance(
|
|
70
|
+
const headerTemplate_r3 = i0.ɵɵreference(9);
|
|
71
|
+
i0.ɵɵadvance();
|
|
80
72
|
i0.ɵɵproperty("ngTemplateOutlet", headerTemplate_r3);
|
|
81
73
|
} }
|
|
82
|
-
function
|
|
74
|
+
function DialogHeaderComponent_Case_5_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
83
75
|
i0.ɵɵelementContainer(0);
|
|
84
76
|
} }
|
|
85
|
-
function
|
|
86
|
-
i0.ɵɵ
|
|
87
|
-
i0.ɵɵ
|
|
88
|
-
i0.ɵɵtemplate(2, DialogHeaderComponent_ng_container_6_ng_container_2_Template, 1, 0, "ng-container", 8);
|
|
77
|
+
function DialogHeaderComponent_Case_5_Template(rf, ctx) { if (rf & 1) {
|
|
78
|
+
i0.ɵɵelementStart(0, "h5", 2);
|
|
79
|
+
i0.ɵɵtemplate(1, DialogHeaderComponent_Case_5_ng_container_1_Template, 1, 0, "ng-container", 5);
|
|
89
80
|
i0.ɵɵelementEnd();
|
|
90
|
-
i0.ɵɵelementContainerEnd();
|
|
91
81
|
} if (rf & 2) {
|
|
92
82
|
i0.ɵɵnextContext();
|
|
93
|
-
const headerTemplate_r3 = i0.ɵɵreference(
|
|
94
|
-
i0.ɵɵadvance(
|
|
83
|
+
const headerTemplate_r3 = i0.ɵɵreference(9);
|
|
84
|
+
i0.ɵɵadvance();
|
|
95
85
|
i0.ɵɵproperty("ngTemplateOutlet", headerTemplate_r3);
|
|
96
86
|
} }
|
|
97
|
-
function
|
|
87
|
+
function DialogHeaderComponent_Case_6_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
98
88
|
i0.ɵɵelementContainer(0);
|
|
99
89
|
} }
|
|
100
|
-
function
|
|
101
|
-
i0.ɵɵ
|
|
102
|
-
i0.ɵɵ
|
|
103
|
-
i0.ɵɵtemplate(2, DialogHeaderComponent_ng_container_7_ng_container_2_Template, 1, 0, "ng-container", 8);
|
|
90
|
+
function DialogHeaderComponent_Case_6_Template(rf, ctx) { if (rf & 1) {
|
|
91
|
+
i0.ɵɵelementStart(0, "h6", 2);
|
|
92
|
+
i0.ɵɵtemplate(1, DialogHeaderComponent_Case_6_ng_container_1_Template, 1, 0, "ng-container", 5);
|
|
104
93
|
i0.ɵɵelementEnd();
|
|
105
|
-
i0.ɵɵelementContainerEnd();
|
|
106
94
|
} if (rf & 2) {
|
|
107
95
|
i0.ɵɵnextContext();
|
|
108
|
-
const headerTemplate_r3 = i0.ɵɵreference(
|
|
109
|
-
i0.ɵɵadvance(
|
|
96
|
+
const headerTemplate_r3 = i0.ɵɵreference(9);
|
|
97
|
+
i0.ɵɵadvance();
|
|
110
98
|
i0.ɵɵproperty("ngTemplateOutlet", headerTemplate_r3);
|
|
111
99
|
} }
|
|
112
|
-
function
|
|
100
|
+
function DialogHeaderComponent_Case_7_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
113
101
|
i0.ɵɵelementContainer(0);
|
|
114
102
|
} }
|
|
115
|
-
function
|
|
116
|
-
i0.ɵɵ
|
|
117
|
-
i0.ɵɵ
|
|
118
|
-
i0.ɵɵtemplate(2, DialogHeaderComponent_ng_container_8_ng_container_2_Template, 1, 0, "ng-container", 8);
|
|
103
|
+
function DialogHeaderComponent_Case_7_Template(rf, ctx) { if (rf & 1) {
|
|
104
|
+
i0.ɵɵelementStart(0, "h4", 2);
|
|
105
|
+
i0.ɵɵtemplate(1, DialogHeaderComponent_Case_7_ng_container_1_Template, 1, 0, "ng-container", 5);
|
|
119
106
|
i0.ɵɵelementEnd();
|
|
120
|
-
i0.ɵɵelementContainerEnd();
|
|
121
107
|
} if (rf & 2) {
|
|
122
108
|
i0.ɵɵnextContext();
|
|
123
|
-
const headerTemplate_r3 = i0.ɵɵreference(
|
|
124
|
-
i0.ɵɵadvance(
|
|
109
|
+
const headerTemplate_r3 = i0.ɵɵreference(9);
|
|
110
|
+
i0.ɵɵadvance();
|
|
125
111
|
i0.ɵɵproperty("ngTemplateOutlet", headerTemplate_r3);
|
|
126
112
|
} }
|
|
127
|
-
function
|
|
128
|
-
i0.ɵɵelement(0, "i",
|
|
113
|
+
function DialogHeaderComponent_ng_template_8_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
114
|
+
i0.ɵɵelement(0, "i", 6);
|
|
129
115
|
} if (rf & 2) {
|
|
130
116
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
131
117
|
i0.ɵɵproperty("ngClass", ctx_r1.iconclass)("ngStyle", i0.ɵɵpureFunction3(2, _c1, ctx_r1.iconwidth, ctx_r1.iconheight, ctx_r1.iconmargin));
|
|
132
118
|
} }
|
|
133
|
-
function
|
|
134
|
-
i0.ɵɵelement(0, "img",
|
|
119
|
+
function DialogHeaderComponent_ng_template_8_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
120
|
+
i0.ɵɵelement(0, "img", 7);
|
|
135
121
|
i0.ɵɵpipe(1, "image");
|
|
136
122
|
} if (rf & 2) {
|
|
137
123
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
138
124
|
i0.ɵɵproperty("src", i0.ɵɵpipeBind1(1, 2, ctx_r1.iconurl), i0.ɵɵsanitizeUrl)("ngStyle", i0.ɵɵpureFunction3(4, _c1, ctx_r1.iconwidth, ctx_r1.iconheight, ctx_r1.iconmargin));
|
|
139
125
|
} }
|
|
140
|
-
function
|
|
141
|
-
i0.ɵɵelement(0, "span",
|
|
126
|
+
function DialogHeaderComponent_ng_template_8_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
127
|
+
i0.ɵɵelement(0, "span", 9);
|
|
142
128
|
} if (rf & 2) {
|
|
143
129
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
144
130
|
i0.ɵɵproperty("title", ctx_r1.subheading)("textContent", ctx_r1.subheading);
|
|
145
131
|
} }
|
|
146
|
-
function
|
|
147
|
-
i0.ɵɵtemplate(0,
|
|
148
|
-
i0.ɵɵelement(2, "span",
|
|
149
|
-
i0.ɵɵtemplate(3,
|
|
132
|
+
function DialogHeaderComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
133
|
+
i0.ɵɵtemplate(0, DialogHeaderComponent_ng_template_8_Conditional_0_Template, 1, 6, "i", 6)(1, DialogHeaderComponent_ng_template_8_Conditional_1_Template, 2, 8, "img", 7);
|
|
134
|
+
i0.ɵɵelement(2, "span", 8);
|
|
135
|
+
i0.ɵɵtemplate(3, DialogHeaderComponent_ng_template_8_Conditional_3_Template, 1, 2, "span", 9);
|
|
150
136
|
} if (rf & 2) {
|
|
151
137
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
152
|
-
i0.ɵɵ
|
|
138
|
+
i0.ɵɵconditional(ctx_r1.iconclass && !ctx_r1.iconurl ? 0 : -1);
|
|
153
139
|
i0.ɵɵadvance();
|
|
154
|
-
i0.ɵɵ
|
|
140
|
+
i0.ɵɵconditional(ctx_r1.iconurl ? 1 : -1);
|
|
155
141
|
i0.ɵɵadvance();
|
|
156
142
|
i0.ɵɵproperty("textContent", ctx_r1.heading)("id", ctx_r1.titleid);
|
|
157
143
|
i0.ɵɵadvance();
|
|
158
|
-
i0.ɵɵ
|
|
144
|
+
i0.ɵɵconditional(ctx_r1.subheading ? 3 : -1);
|
|
159
145
|
} }
|
|
160
146
|
const DEFAULT_CLS = 'app-dialog-header modal-header';
|
|
161
147
|
const DEFAULT_ICON_DIMENSIONS = '21px';
|
|
@@ -175,33 +161,18 @@ export class DialogHeaderComponent {
|
|
|
175
161
|
this.dialogRef.close();
|
|
176
162
|
}
|
|
177
163
|
static { this.ɵfac = function DialogHeaderComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DialogHeaderComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(DialogRef)); }; }
|
|
178
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DialogHeaderComponent, selectors: [["div", "wmDialogHeader", ""]], inputs: { iconwidth: "iconwidth", iconheight: "iconheight", iconmargin: "iconmargin", iconclass: "iconclass", iconurl: "iconurl", closable: "closable", heading: "heading", headinglevel: "headinglevel", subheading: "subheading", titleid: "titleid", title: "title" }, attrs: _c0, decls:
|
|
179
|
-
i0.ɵɵtemplate(0,
|
|
180
|
-
i0.ɵɵelementContainerStart(1, 2);
|
|
181
|
-
i0.ɵɵtemplate(2, DialogHeaderComponent_ng_container_2_Template, 3, 1, "ng-container", 3)(3, DialogHeaderComponent_ng_container_3_Template, 3, 1, "ng-container", 3)(4, DialogHeaderComponent_ng_container_4_Template, 3, 1, "ng-container", 3)(5, DialogHeaderComponent_ng_container_5_Template, 3, 1, "ng-container", 3)(6, DialogHeaderComponent_ng_container_6_Template, 3, 1, "ng-container", 3)(7, DialogHeaderComponent_ng_container_7_Template, 3, 1, "ng-container", 3)(8, DialogHeaderComponent_ng_container_8_Template, 3, 1, "ng-container", 4);
|
|
182
|
-
i0.ɵɵelementContainerEnd();
|
|
183
|
-
i0.ɵɵtemplate(9, DialogHeaderComponent_ng_template_9_Template, 4, 5, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
164
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DialogHeaderComponent, selectors: [["div", "wmDialogHeader", ""]], inputs: { iconwidth: "iconwidth", iconheight: "iconheight", iconmargin: "iconmargin", iconclass: "iconclass", iconurl: "iconurl", closable: "closable", heading: "heading", headinglevel: "headinglevel", subheading: "subheading", titleid: "titleid", title: "title" }, attrs: _c0, decls: 10, vars: 2, consts: [["headerTemplate", ""], [1, "app-dialog-close", "close", 3, "title"], [1, "app-dialog-title", "modal-title"], [1, "app-dialog-close", "close", 3, "click", "title"], ["aria-hidden", "true", 1, "app-icon", "wi", "wi-clear"], [4, "ngTemplateOutlet"], [3, "ngClass", "ngStyle"], ["data-identifier", "img", 3, "src", "ngStyle"], [1, "dialog-heading", 3, "textContent", "id"], [1, "dialog-sub-heading", 3, "title", "textContent"]], template: function DialogHeaderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
165
|
+
i0.ɵɵtemplate(0, DialogHeaderComponent_Conditional_0_Template, 2, 2, "button", 1)(1, DialogHeaderComponent_Case_1_Template, 2, 1, "h1", 2)(2, DialogHeaderComponent_Case_2_Template, 2, 1, "h2", 2)(3, DialogHeaderComponent_Case_3_Template, 2, 1, "h3", 2)(4, DialogHeaderComponent_Case_4_Template, 2, 1, "h4", 2)(5, DialogHeaderComponent_Case_5_Template, 2, 1, "h5", 2)(6, DialogHeaderComponent_Case_6_Template, 2, 1, "h6", 2)(7, DialogHeaderComponent_Case_7_Template, 2, 1, "h4", 2)(8, DialogHeaderComponent_ng_template_8_Template, 4, 5, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
184
166
|
} if (rf & 2) {
|
|
185
|
-
|
|
186
|
-
i0.ɵɵ
|
|
187
|
-
i0.ɵɵproperty("ngSwitch", ctx.headinglevel);
|
|
188
|
-
i0.ɵɵadvance();
|
|
189
|
-
i0.ɵɵproperty("ngSwitchCase", "h1");
|
|
190
|
-
i0.ɵɵadvance();
|
|
191
|
-
i0.ɵɵproperty("ngSwitchCase", "h2");
|
|
192
|
-
i0.ɵɵadvance();
|
|
193
|
-
i0.ɵɵproperty("ngSwitchCase", "h3");
|
|
194
|
-
i0.ɵɵadvance();
|
|
195
|
-
i0.ɵɵproperty("ngSwitchCase", "h4");
|
|
196
|
-
i0.ɵɵadvance();
|
|
197
|
-
i0.ɵɵproperty("ngSwitchCase", "h5");
|
|
167
|
+
let tmp_2_0;
|
|
168
|
+
i0.ɵɵconditional(ctx.isClosable ? 0 : -1);
|
|
198
169
|
i0.ɵɵadvance();
|
|
199
|
-
i0.ɵɵ
|
|
200
|
-
} }, dependencies: [i1.NgClass, i1.
|
|
170
|
+
i0.ɵɵconditional((tmp_2_0 = ctx.headinglevel) === "h1" ? 1 : tmp_2_0 === "h2" ? 2 : tmp_2_0 === "h3" ? 3 : tmp_2_0 === "h4" ? 4 : tmp_2_0 === "h5" ? 5 : tmp_2_0 === "h6" ? 6 : 7);
|
|
171
|
+
} }, dependencies: [i1.NgClass, i1.NgTemplateOutlet, i1.NgStyle, i2.TextContentDirective, i2.ImagePipe], encapsulation: 2 }); }
|
|
201
172
|
}
|
|
202
173
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DialogHeaderComponent, [{
|
|
203
174
|
type: Component,
|
|
204
|
-
args: [{ selector: 'div[wmDialogHeader]', template: "<button (click)=\"closeDialog();\"
|
|
175
|
+
args: [{ selector: 'div[wmDialogHeader]', template: "@if (isClosable) {\n <button (click)=\"closeDialog();\"\n [attr.aria-label]=\"'Close ' + (title ? title : '') + ' dialog'\" class=\"app-dialog-close close\" title=\"{{dialogRef.appLocale.LABEL_CLOSE}}\" >\n <span class=\"app-icon wi wi-clear\" aria-hidden=\"true\"></span>\n </button>\n}\n\n@switch (headinglevel) {\n @case ('h1') {\n <h1 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h1>\n }\n @case ('h2') {\n <h2 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h2>\n }\n @case ('h3') {\n <h3 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h3>\n }\n @case ('h4') {\n <h4 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h4>\n }\n @case ('h5') {\n <h5 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h5>\n }\n @case ('h6') {\n <h6 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h6>\n }\n @default {\n <h4 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h4>\n }\n}\n\n<ng-template #headerTemplate>\n @if (iconclass && !iconurl) {\n <i [ngClass]=\"iconclass\" [ngStyle]=\"{width: iconwidth, height: iconheight, margin: iconmargin}\"></i>\n }\n @if (iconurl) {\n <img data-identifier=\"img\" [src]=\"iconurl | image\" [ngStyle]=\"{width: iconwidth, height: iconheight, margin: iconmargin}\"/>\n }\n <span class=\"dialog-heading\" [textContent]=\"heading\" [id]=\"titleid\"></span>\n @if (subheading) {\n <span class=\"dialog-sub-heading\" [title]=\"subheading\" [textContent]=\"subheading\"></span>\n }\n</ng-template>\n" }]
|
|
205
176
|
}], () => [{ type: i0.ElementRef }, { type: i3.BaseDialog, decorators: [{
|
|
206
177
|
type: Inject,
|
|
207
178
|
args: [DialogRef]
|
|
@@ -229,4 +200,4 @@ export class DialogHeaderComponent {
|
|
|
229
200
|
type: Input
|
|
230
201
|
}] }); })();
|
|
231
202
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DialogHeaderComponent, { className: "DialogHeaderComponent", filePath: "dialog-header/dialog-header.component.ts", lineNumber: 15 }); })();
|
|
232
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
203
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlhbG9nLWhlYWRlci5jb21wb25lbnQuanMiLCJzb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ic3ViaGVhZGluZ1wiIFt0ZXh0Q29udGVudF09XCJzdWJoZWFkaW5nXCI+PC9zcGFuPlxuICB9XG48L25nLXRlbXBsYXRlPlxuIl19
|
|
@@ -307,154 +307,140 @@ class BaseDialog extends BaseComponent {
|
|
|
307
307
|
|
|
308
308
|
const _c0 = ["wmDialogHeader", ""];
|
|
309
309
|
const _c1 = (a0, a1, a2) => ({ width: a0, height: a1, margin: a2 });
|
|
310
|
-
function
|
|
310
|
+
function DialogHeaderComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
311
311
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
312
|
-
i0.ɵɵelementStart(0, "button",
|
|
313
|
-
i0.ɵɵlistener("click", function
|
|
314
|
-
i0.ɵɵelement(1, "span",
|
|
312
|
+
i0.ɵɵelementStart(0, "button", 3);
|
|
313
|
+
i0.ɵɵlistener("click", function DialogHeaderComponent_Conditional_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.closeDialog()); });
|
|
314
|
+
i0.ɵɵelement(1, "span", 4);
|
|
315
315
|
i0.ɵɵelementEnd();
|
|
316
316
|
} if (rf & 2) {
|
|
317
317
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
318
318
|
i0.ɵɵpropertyInterpolate("title", ctx_r1.dialogRef.appLocale.LABEL_CLOSE);
|
|
319
319
|
i0.ɵɵattribute("aria-label", "Close " + (ctx_r1.title ? ctx_r1.title : "") + " dialog");
|
|
320
320
|
} }
|
|
321
|
-
function
|
|
321
|
+
function DialogHeaderComponent_Case_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
322
322
|
i0.ɵɵelementContainer(0);
|
|
323
323
|
} }
|
|
324
|
-
function
|
|
325
|
-
i0.ɵɵ
|
|
326
|
-
i0.ɵɵ
|
|
327
|
-
i0.ɵɵtemplate(2, DialogHeaderComponent_ng_container_2_ng_container_2_Template, 1, 0, "ng-container", 8);
|
|
324
|
+
function DialogHeaderComponent_Case_1_Template(rf, ctx) { if (rf & 1) {
|
|
325
|
+
i0.ɵɵelementStart(0, "h1", 2);
|
|
326
|
+
i0.ɵɵtemplate(1, DialogHeaderComponent_Case_1_ng_container_1_Template, 1, 0, "ng-container", 5);
|
|
328
327
|
i0.ɵɵelementEnd();
|
|
329
|
-
i0.ɵɵelementContainerEnd();
|
|
330
328
|
} if (rf & 2) {
|
|
331
329
|
i0.ɵɵnextContext();
|
|
332
|
-
const headerTemplate_r3 = i0.ɵɵreference(
|
|
333
|
-
i0.ɵɵadvance(
|
|
330
|
+
const headerTemplate_r3 = i0.ɵɵreference(9);
|
|
331
|
+
i0.ɵɵadvance();
|
|
334
332
|
i0.ɵɵproperty("ngTemplateOutlet", headerTemplate_r3);
|
|
335
333
|
} }
|
|
336
|
-
function
|
|
334
|
+
function DialogHeaderComponent_Case_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
337
335
|
i0.ɵɵelementContainer(0);
|
|
338
336
|
} }
|
|
339
|
-
function
|
|
340
|
-
i0.ɵɵ
|
|
341
|
-
i0.ɵɵ
|
|
342
|
-
i0.ɵɵtemplate(2, DialogHeaderComponent_ng_container_3_ng_container_2_Template, 1, 0, "ng-container", 8);
|
|
337
|
+
function DialogHeaderComponent_Case_2_Template(rf, ctx) { if (rf & 1) {
|
|
338
|
+
i0.ɵɵelementStart(0, "h2", 2);
|
|
339
|
+
i0.ɵɵtemplate(1, DialogHeaderComponent_Case_2_ng_container_1_Template, 1, 0, "ng-container", 5);
|
|
343
340
|
i0.ɵɵelementEnd();
|
|
344
|
-
i0.ɵɵelementContainerEnd();
|
|
345
341
|
} if (rf & 2) {
|
|
346
342
|
i0.ɵɵnextContext();
|
|
347
|
-
const headerTemplate_r3 = i0.ɵɵreference(
|
|
348
|
-
i0.ɵɵadvance(
|
|
343
|
+
const headerTemplate_r3 = i0.ɵɵreference(9);
|
|
344
|
+
i0.ɵɵadvance();
|
|
349
345
|
i0.ɵɵproperty("ngTemplateOutlet", headerTemplate_r3);
|
|
350
346
|
} }
|
|
351
|
-
function
|
|
347
|
+
function DialogHeaderComponent_Case_3_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
352
348
|
i0.ɵɵelementContainer(0);
|
|
353
349
|
} }
|
|
354
|
-
function
|
|
355
|
-
i0.ɵɵ
|
|
356
|
-
i0.ɵɵ
|
|
357
|
-
i0.ɵɵtemplate(2, DialogHeaderComponent_ng_container_4_ng_container_2_Template, 1, 0, "ng-container", 8);
|
|
350
|
+
function DialogHeaderComponent_Case_3_Template(rf, ctx) { if (rf & 1) {
|
|
351
|
+
i0.ɵɵelementStart(0, "h3", 2);
|
|
352
|
+
i0.ɵɵtemplate(1, DialogHeaderComponent_Case_3_ng_container_1_Template, 1, 0, "ng-container", 5);
|
|
358
353
|
i0.ɵɵelementEnd();
|
|
359
|
-
i0.ɵɵelementContainerEnd();
|
|
360
354
|
} if (rf & 2) {
|
|
361
355
|
i0.ɵɵnextContext();
|
|
362
|
-
const headerTemplate_r3 = i0.ɵɵreference(
|
|
363
|
-
i0.ɵɵadvance(
|
|
356
|
+
const headerTemplate_r3 = i0.ɵɵreference(9);
|
|
357
|
+
i0.ɵɵadvance();
|
|
364
358
|
i0.ɵɵproperty("ngTemplateOutlet", headerTemplate_r3);
|
|
365
359
|
} }
|
|
366
|
-
function
|
|
360
|
+
function DialogHeaderComponent_Case_4_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
367
361
|
i0.ɵɵelementContainer(0);
|
|
368
362
|
} }
|
|
369
|
-
function
|
|
370
|
-
i0.ɵɵ
|
|
371
|
-
i0.ɵɵ
|
|
372
|
-
i0.ɵɵtemplate(2, DialogHeaderComponent_ng_container_5_ng_container_2_Template, 1, 0, "ng-container", 8);
|
|
363
|
+
function DialogHeaderComponent_Case_4_Template(rf, ctx) { if (rf & 1) {
|
|
364
|
+
i0.ɵɵelementStart(0, "h4", 2);
|
|
365
|
+
i0.ɵɵtemplate(1, DialogHeaderComponent_Case_4_ng_container_1_Template, 1, 0, "ng-container", 5);
|
|
373
366
|
i0.ɵɵelementEnd();
|
|
374
|
-
i0.ɵɵelementContainerEnd();
|
|
375
367
|
} if (rf & 2) {
|
|
376
368
|
i0.ɵɵnextContext();
|
|
377
|
-
const headerTemplate_r3 = i0.ɵɵreference(
|
|
378
|
-
i0.ɵɵadvance(
|
|
369
|
+
const headerTemplate_r3 = i0.ɵɵreference(9);
|
|
370
|
+
i0.ɵɵadvance();
|
|
379
371
|
i0.ɵɵproperty("ngTemplateOutlet", headerTemplate_r3);
|
|
380
372
|
} }
|
|
381
|
-
function
|
|
373
|
+
function DialogHeaderComponent_Case_5_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
382
374
|
i0.ɵɵelementContainer(0);
|
|
383
375
|
} }
|
|
384
|
-
function
|
|
385
|
-
i0.ɵɵ
|
|
386
|
-
i0.ɵɵ
|
|
387
|
-
i0.ɵɵtemplate(2, DialogHeaderComponent_ng_container_6_ng_container_2_Template, 1, 0, "ng-container", 8);
|
|
376
|
+
function DialogHeaderComponent_Case_5_Template(rf, ctx) { if (rf & 1) {
|
|
377
|
+
i0.ɵɵelementStart(0, "h5", 2);
|
|
378
|
+
i0.ɵɵtemplate(1, DialogHeaderComponent_Case_5_ng_container_1_Template, 1, 0, "ng-container", 5);
|
|
388
379
|
i0.ɵɵelementEnd();
|
|
389
|
-
i0.ɵɵelementContainerEnd();
|
|
390
380
|
} if (rf & 2) {
|
|
391
381
|
i0.ɵɵnextContext();
|
|
392
|
-
const headerTemplate_r3 = i0.ɵɵreference(
|
|
393
|
-
i0.ɵɵadvance(
|
|
382
|
+
const headerTemplate_r3 = i0.ɵɵreference(9);
|
|
383
|
+
i0.ɵɵadvance();
|
|
394
384
|
i0.ɵɵproperty("ngTemplateOutlet", headerTemplate_r3);
|
|
395
385
|
} }
|
|
396
|
-
function
|
|
386
|
+
function DialogHeaderComponent_Case_6_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
397
387
|
i0.ɵɵelementContainer(0);
|
|
398
388
|
} }
|
|
399
|
-
function
|
|
400
|
-
i0.ɵɵ
|
|
401
|
-
i0.ɵɵ
|
|
402
|
-
i0.ɵɵtemplate(2, DialogHeaderComponent_ng_container_7_ng_container_2_Template, 1, 0, "ng-container", 8);
|
|
389
|
+
function DialogHeaderComponent_Case_6_Template(rf, ctx) { if (rf & 1) {
|
|
390
|
+
i0.ɵɵelementStart(0, "h6", 2);
|
|
391
|
+
i0.ɵɵtemplate(1, DialogHeaderComponent_Case_6_ng_container_1_Template, 1, 0, "ng-container", 5);
|
|
403
392
|
i0.ɵɵelementEnd();
|
|
404
|
-
i0.ɵɵelementContainerEnd();
|
|
405
393
|
} if (rf & 2) {
|
|
406
394
|
i0.ɵɵnextContext();
|
|
407
|
-
const headerTemplate_r3 = i0.ɵɵreference(
|
|
408
|
-
i0.ɵɵadvance(
|
|
395
|
+
const headerTemplate_r3 = i0.ɵɵreference(9);
|
|
396
|
+
i0.ɵɵadvance();
|
|
409
397
|
i0.ɵɵproperty("ngTemplateOutlet", headerTemplate_r3);
|
|
410
398
|
} }
|
|
411
|
-
function
|
|
399
|
+
function DialogHeaderComponent_Case_7_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
412
400
|
i0.ɵɵelementContainer(0);
|
|
413
401
|
} }
|
|
414
|
-
function
|
|
415
|
-
i0.ɵɵ
|
|
416
|
-
i0.ɵɵ
|
|
417
|
-
i0.ɵɵtemplate(2, DialogHeaderComponent_ng_container_8_ng_container_2_Template, 1, 0, "ng-container", 8);
|
|
402
|
+
function DialogHeaderComponent_Case_7_Template(rf, ctx) { if (rf & 1) {
|
|
403
|
+
i0.ɵɵelementStart(0, "h4", 2);
|
|
404
|
+
i0.ɵɵtemplate(1, DialogHeaderComponent_Case_7_ng_container_1_Template, 1, 0, "ng-container", 5);
|
|
418
405
|
i0.ɵɵelementEnd();
|
|
419
|
-
i0.ɵɵelementContainerEnd();
|
|
420
406
|
} if (rf & 2) {
|
|
421
407
|
i0.ɵɵnextContext();
|
|
422
|
-
const headerTemplate_r3 = i0.ɵɵreference(
|
|
423
|
-
i0.ɵɵadvance(
|
|
408
|
+
const headerTemplate_r3 = i0.ɵɵreference(9);
|
|
409
|
+
i0.ɵɵadvance();
|
|
424
410
|
i0.ɵɵproperty("ngTemplateOutlet", headerTemplate_r3);
|
|
425
411
|
} }
|
|
426
|
-
function
|
|
427
|
-
i0.ɵɵelement(0, "i",
|
|
412
|
+
function DialogHeaderComponent_ng_template_8_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
413
|
+
i0.ɵɵelement(0, "i", 6);
|
|
428
414
|
} if (rf & 2) {
|
|
429
415
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
430
416
|
i0.ɵɵproperty("ngClass", ctx_r1.iconclass)("ngStyle", i0.ɵɵpureFunction3(2, _c1, ctx_r1.iconwidth, ctx_r1.iconheight, ctx_r1.iconmargin));
|
|
431
417
|
} }
|
|
432
|
-
function
|
|
433
|
-
i0.ɵɵelement(0, "img",
|
|
418
|
+
function DialogHeaderComponent_ng_template_8_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
419
|
+
i0.ɵɵelement(0, "img", 7);
|
|
434
420
|
i0.ɵɵpipe(1, "image");
|
|
435
421
|
} if (rf & 2) {
|
|
436
422
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
437
423
|
i0.ɵɵproperty("src", i0.ɵɵpipeBind1(1, 2, ctx_r1.iconurl), i0.ɵɵsanitizeUrl)("ngStyle", i0.ɵɵpureFunction3(4, _c1, ctx_r1.iconwidth, ctx_r1.iconheight, ctx_r1.iconmargin));
|
|
438
424
|
} }
|
|
439
|
-
function
|
|
440
|
-
i0.ɵɵelement(0, "span",
|
|
425
|
+
function DialogHeaderComponent_ng_template_8_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
426
|
+
i0.ɵɵelement(0, "span", 9);
|
|
441
427
|
} if (rf & 2) {
|
|
442
428
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
443
429
|
i0.ɵɵproperty("title", ctx_r1.subheading)("textContent", ctx_r1.subheading);
|
|
444
430
|
} }
|
|
445
|
-
function
|
|
446
|
-
i0.ɵɵtemplate(0,
|
|
447
|
-
i0.ɵɵelement(2, "span",
|
|
448
|
-
i0.ɵɵtemplate(3,
|
|
431
|
+
function DialogHeaderComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
432
|
+
i0.ɵɵtemplate(0, DialogHeaderComponent_ng_template_8_Conditional_0_Template, 1, 6, "i", 6)(1, DialogHeaderComponent_ng_template_8_Conditional_1_Template, 2, 8, "img", 7);
|
|
433
|
+
i0.ɵɵelement(2, "span", 8);
|
|
434
|
+
i0.ɵɵtemplate(3, DialogHeaderComponent_ng_template_8_Conditional_3_Template, 1, 2, "span", 9);
|
|
449
435
|
} if (rf & 2) {
|
|
450
436
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
451
|
-
i0.ɵɵ
|
|
437
|
+
i0.ɵɵconditional(ctx_r1.iconclass && !ctx_r1.iconurl ? 0 : -1);
|
|
452
438
|
i0.ɵɵadvance();
|
|
453
|
-
i0.ɵɵ
|
|
439
|
+
i0.ɵɵconditional(ctx_r1.iconurl ? 1 : -1);
|
|
454
440
|
i0.ɵɵadvance();
|
|
455
441
|
i0.ɵɵproperty("textContent", ctx_r1.heading)("id", ctx_r1.titleid);
|
|
456
442
|
i0.ɵɵadvance();
|
|
457
|
-
i0.ɵɵ
|
|
443
|
+
i0.ɵɵconditional(ctx_r1.subheading ? 3 : -1);
|
|
458
444
|
} }
|
|
459
445
|
const DEFAULT_CLS = 'app-dialog-header modal-header';
|
|
460
446
|
const DEFAULT_ICON_DIMENSIONS = '21px';
|
|
@@ -474,33 +460,18 @@ class DialogHeaderComponent {
|
|
|
474
460
|
this.dialogRef.close();
|
|
475
461
|
}
|
|
476
462
|
static { this.ɵfac = function DialogHeaderComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DialogHeaderComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(DialogRef)); }; }
|
|
477
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DialogHeaderComponent, selectors: [["div", "wmDialogHeader", ""]], inputs: { iconwidth: "iconwidth", iconheight: "iconheight", iconmargin: "iconmargin", iconclass: "iconclass", iconurl: "iconurl", closable: "closable", heading: "heading", headinglevel: "headinglevel", subheading: "subheading", titleid: "titleid", title: "title" }, attrs: _c0, decls:
|
|
478
|
-
i0.ɵɵtemplate(0,
|
|
479
|
-
i0.ɵɵelementContainerStart(1, 2);
|
|
480
|
-
i0.ɵɵtemplate(2, DialogHeaderComponent_ng_container_2_Template, 3, 1, "ng-container", 3)(3, DialogHeaderComponent_ng_container_3_Template, 3, 1, "ng-container", 3)(4, DialogHeaderComponent_ng_container_4_Template, 3, 1, "ng-container", 3)(5, DialogHeaderComponent_ng_container_5_Template, 3, 1, "ng-container", 3)(6, DialogHeaderComponent_ng_container_6_Template, 3, 1, "ng-container", 3)(7, DialogHeaderComponent_ng_container_7_Template, 3, 1, "ng-container", 3)(8, DialogHeaderComponent_ng_container_8_Template, 3, 1, "ng-container", 4);
|
|
481
|
-
i0.ɵɵelementContainerEnd();
|
|
482
|
-
i0.ɵɵtemplate(9, DialogHeaderComponent_ng_template_9_Template, 4, 5, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
463
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DialogHeaderComponent, selectors: [["div", "wmDialogHeader", ""]], inputs: { iconwidth: "iconwidth", iconheight: "iconheight", iconmargin: "iconmargin", iconclass: "iconclass", iconurl: "iconurl", closable: "closable", heading: "heading", headinglevel: "headinglevel", subheading: "subheading", titleid: "titleid", title: "title" }, attrs: _c0, decls: 10, vars: 2, consts: [["headerTemplate", ""], [1, "app-dialog-close", "close", 3, "title"], [1, "app-dialog-title", "modal-title"], [1, "app-dialog-close", "close", 3, "click", "title"], ["aria-hidden", "true", 1, "app-icon", "wi", "wi-clear"], [4, "ngTemplateOutlet"], [3, "ngClass", "ngStyle"], ["data-identifier", "img", 3, "src", "ngStyle"], [1, "dialog-heading", 3, "textContent", "id"], [1, "dialog-sub-heading", 3, "title", "textContent"]], template: function DialogHeaderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
464
|
+
i0.ɵɵtemplate(0, DialogHeaderComponent_Conditional_0_Template, 2, 2, "button", 1)(1, DialogHeaderComponent_Case_1_Template, 2, 1, "h1", 2)(2, DialogHeaderComponent_Case_2_Template, 2, 1, "h2", 2)(3, DialogHeaderComponent_Case_3_Template, 2, 1, "h3", 2)(4, DialogHeaderComponent_Case_4_Template, 2, 1, "h4", 2)(5, DialogHeaderComponent_Case_5_Template, 2, 1, "h5", 2)(6, DialogHeaderComponent_Case_6_Template, 2, 1, "h6", 2)(7, DialogHeaderComponent_Case_7_Template, 2, 1, "h4", 2)(8, DialogHeaderComponent_ng_template_8_Template, 4, 5, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
483
465
|
} if (rf & 2) {
|
|
484
|
-
|
|
485
|
-
i0.ɵɵ
|
|
486
|
-
i0.ɵɵproperty("ngSwitch", ctx.headinglevel);
|
|
487
|
-
i0.ɵɵadvance();
|
|
488
|
-
i0.ɵɵproperty("ngSwitchCase", "h1");
|
|
489
|
-
i0.ɵɵadvance();
|
|
490
|
-
i0.ɵɵproperty("ngSwitchCase", "h2");
|
|
491
|
-
i0.ɵɵadvance();
|
|
492
|
-
i0.ɵɵproperty("ngSwitchCase", "h3");
|
|
493
|
-
i0.ɵɵadvance();
|
|
494
|
-
i0.ɵɵproperty("ngSwitchCase", "h4");
|
|
495
|
-
i0.ɵɵadvance();
|
|
496
|
-
i0.ɵɵproperty("ngSwitchCase", "h5");
|
|
466
|
+
let tmp_2_0;
|
|
467
|
+
i0.ɵɵconditional(ctx.isClosable ? 0 : -1);
|
|
497
468
|
i0.ɵɵadvance();
|
|
498
|
-
i0.ɵɵ
|
|
499
|
-
} }, dependencies: [i1$1.NgClass, i1$1.
|
|
469
|
+
i0.ɵɵconditional((tmp_2_0 = ctx.headinglevel) === "h1" ? 1 : tmp_2_0 === "h2" ? 2 : tmp_2_0 === "h3" ? 3 : tmp_2_0 === "h4" ? 4 : tmp_2_0 === "h5" ? 5 : tmp_2_0 === "h6" ? 6 : 7);
|
|
470
|
+
} }, dependencies: [i1$1.NgClass, i1$1.NgTemplateOutlet, i1$1.NgStyle, i2.TextContentDirective, i2.ImagePipe], encapsulation: 2 }); }
|
|
500
471
|
}
|
|
501
472
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DialogHeaderComponent, [{
|
|
502
473
|
type: Component,
|
|
503
|
-
args: [{ selector: 'div[wmDialogHeader]', template: "<button (click)=\"closeDialog();\"
|
|
474
|
+
args: [{ selector: 'div[wmDialogHeader]', template: "@if (isClosable) {\n <button (click)=\"closeDialog();\"\n [attr.aria-label]=\"'Close ' + (title ? title : '') + ' dialog'\" class=\"app-dialog-close close\" title=\"{{dialogRef.appLocale.LABEL_CLOSE}}\" >\n <span class=\"app-icon wi wi-clear\" aria-hidden=\"true\"></span>\n </button>\n}\n\n@switch (headinglevel) {\n @case ('h1') {\n <h1 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h1>\n }\n @case ('h2') {\n <h2 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h2>\n }\n @case ('h3') {\n <h3 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h3>\n }\n @case ('h4') {\n <h4 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h4>\n }\n @case ('h5') {\n <h5 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h5>\n }\n @case ('h6') {\n <h6 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h6>\n }\n @default {\n <h4 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h4>\n }\n}\n\n<ng-template #headerTemplate>\n @if (iconclass && !iconurl) {\n <i [ngClass]=\"iconclass\" [ngStyle]=\"{width: iconwidth, height: iconheight, margin: iconmargin}\"></i>\n }\n @if (iconurl) {\n <img data-identifier=\"img\" [src]=\"iconurl | image\" [ngStyle]=\"{width: iconwidth, height: iconheight, margin: iconmargin}\"/>\n }\n <span class=\"dialog-heading\" [textContent]=\"heading\" [id]=\"titleid\"></span>\n @if (subheading) {\n <span class=\"dialog-sub-heading\" [title]=\"subheading\" [textContent]=\"subheading\"></span>\n }\n</ng-template>\n" }]
|
|
504
475
|
}], () => [{ type: i0.ElementRef }, { type: BaseDialog, decorators: [{
|
|
505
476
|
type: Inject,
|
|
506
477
|
args: [DialogRef]
|