@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
|
@@ -67,46 +67,46 @@
|
|
|
67
67
|
const _c1 = a0 => ({ "highlight-drop-box": a0 });
|
|
68
68
|
const _c2 = (a0, a1) => ({ height: a0, overflow: a1 });
|
|
69
69
|
const _c3 = a0 => ({ width: a0 });
|
|
70
|
-
function
|
|
70
|
+
function FileUploadComponent_div_1_input_6_Template(rf, ctx) { if (rf & 1) {
|
|
71
71
|
const _r3 = i0__namespace.ɵɵgetCurrentView();
|
|
72
|
-
i0__namespace.ɵɵelementStart(0, "input",
|
|
73
|
-
i0__namespace.ɵɵlistener("click", function
|
|
72
|
+
i0__namespace.ɵɵelementStart(0, "input", 15);
|
|
73
|
+
i0__namespace.ɵɵlistener("click", function FileUploadComponent_div_1_input_6_Template_input_click_0_listener($event) { i0__namespace.ɵɵrestoreView(_r3); const ctx_r1 = i0__namespace.ɵɵnextContext(2); return i0__namespace.ɵɵresetView(ctx_r1.onFileElemClick($event)); })("change", function FileUploadComponent_div_1_input_6_Template_input_change_0_listener($event) { i0__namespace.ɵɵrestoreView(_r3); const ctx_r1 = i0__namespace.ɵɵnextContext(2); return i0__namespace.ɵɵresetView(ctx_r1.onFileSelect($event, $event.target.files)); });
|
|
74
74
|
i0__namespace.ɵɵelementEnd();
|
|
75
75
|
} if (rf & 2) {
|
|
76
76
|
const ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
77
77
|
i0__namespace.ɵɵproperty("disabled", ctx_r1.disabled)("accept", ctx_r1.chooseFilter);
|
|
78
78
|
i0__namespace.ɵɵattribute("aria-label", ctx_r1.hint || "File selection field");
|
|
79
79
|
} }
|
|
80
|
-
function
|
|
81
|
-
i0__namespace.ɵɵelement(0, "label",
|
|
80
|
+
function FileUploadComponent_div_1_label_9_Template(rf, ctx) { if (rf & 1) {
|
|
81
|
+
i0__namespace.ɵɵelement(0, "label", 16);
|
|
82
82
|
} if (rf & 2) {
|
|
83
83
|
const ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
84
84
|
i0__namespace.ɵɵproperty("innerHtml", ctx_r1.chooseFilter + " only ", i0__namespace.ɵɵsanitizeHtml);
|
|
85
85
|
} }
|
|
86
|
-
function
|
|
87
|
-
i0__namespace.ɵɵelementStart(0, "span",
|
|
86
|
+
function FileUploadComponent_div_1_span_10_Template(rf, ctx) { if (rf & 1) {
|
|
87
|
+
i0__namespace.ɵɵelementStart(0, "span", 17);
|
|
88
88
|
i0__namespace.ɵɵtext(1, " . ");
|
|
89
89
|
i0__namespace.ɵɵelementEnd();
|
|
90
90
|
} }
|
|
91
|
-
function
|
|
92
|
-
i0__namespace.ɵɵelement(0, "label",
|
|
91
|
+
function FileUploadComponent_div_1_label_11_Template(rf, ctx) { if (rf & 1) {
|
|
92
|
+
i0__namespace.ɵɵelement(0, "label", 16);
|
|
93
93
|
} if (rf & 2) {
|
|
94
94
|
const ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
95
95
|
i0__namespace.ɵɵproperty("innerHtml", ctx_r1.maxfilesize + "MB max", i0__namespace.ɵɵsanitizeHtml);
|
|
96
96
|
} }
|
|
97
|
-
function
|
|
97
|
+
function FileUploadComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
98
98
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
99
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
100
|
-
i0__namespace.ɵɵlistener("click", function
|
|
99
|
+
i0__namespace.ɵɵelementStart(0, "div", 6)(1, "div", 7);
|
|
100
|
+
i0__namespace.ɵɵlistener("click", function FileUploadComponent_div_1_Template_div_click_1_listener() { i0__namespace.ɵɵrestoreView(_r1); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1.triggerFileSelect()); })("dragover", function FileUploadComponent_div_1_Template_div_dragover_1_listener($event) { i0__namespace.ɵɵrestoreView(_r1); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1.dragOverHandler($event)); })("drop", function FileUploadComponent_div_1_Template_div_drop_1_listener($event) { i0__namespace.ɵɵrestoreView(_r1); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1.onFileDrop($event)); });
|
|
101
101
|
i0__namespace.ɵɵelement(2, "i");
|
|
102
|
-
i0__namespace.ɵɵelementStart(3, "div",
|
|
103
|
-
i0__namespace.ɵɵelement(4, "label",
|
|
104
|
-
i0__namespace.ɵɵelementStart(5, "form",
|
|
105
|
-
i0__namespace.ɵɵtemplate(6,
|
|
106
|
-
i0__namespace.ɵɵelementStart(7, "a",
|
|
102
|
+
i0__namespace.ɵɵelementStart(3, "div", 8);
|
|
103
|
+
i0__namespace.ɵɵelement(4, "label", 9);
|
|
104
|
+
i0__namespace.ɵɵelementStart(5, "form", 10);
|
|
105
|
+
i0__namespace.ɵɵtemplate(6, FileUploadComponent_div_1_input_6_Template, 1, 3, "input", 11);
|
|
106
|
+
i0__namespace.ɵɵelementStart(7, "a", 12);
|
|
107
107
|
i0__namespace.ɵɵtext(8);
|
|
108
108
|
i0__namespace.ɵɵelementEnd()();
|
|
109
|
-
i0__namespace.ɵɵtemplate(9,
|
|
109
|
+
i0__namespace.ɵɵtemplate(9, FileUploadComponent_div_1_label_9_Template, 1, 1, "label", 13)(10, FileUploadComponent_div_1_span_10_Template, 2, 0, "span", 14)(11, FileUploadComponent_div_1_label_11_Template, 1, 1, "label", 13);
|
|
110
110
|
i0__namespace.ɵɵelementEnd()()();
|
|
111
111
|
} if (rf & 2) {
|
|
112
112
|
const ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
@@ -119,52 +119,52 @@
|
|
|
119
119
|
i0__namespace.ɵɵadvance();
|
|
120
120
|
i0__namespace.ɵɵpropertyInterpolate("name", ctx_r1.formName);
|
|
121
121
|
i0__namespace.ɵɵadvance();
|
|
122
|
-
i0__namespace.ɵɵ
|
|
122
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r1.multiple);
|
|
123
123
|
i0__namespace.ɵɵadvance(2);
|
|
124
124
|
i0__namespace.ɵɵtextInterpolate(ctx_r1.fileUploadMessage);
|
|
125
125
|
i0__namespace.ɵɵadvance();
|
|
126
|
-
i0__namespace.ɵɵ
|
|
126
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r1.chooseFilter);
|
|
127
127
|
i0__namespace.ɵɵadvance();
|
|
128
|
-
i0__namespace.ɵɵ
|
|
128
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r1.chooseFilter && ctx_r1.maxfilesize);
|
|
129
129
|
i0__namespace.ɵɵadvance();
|
|
130
|
-
i0__namespace.ɵɵ
|
|
130
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r1.maxfilesize);
|
|
131
131
|
} }
|
|
132
|
-
function
|
|
132
|
+
function FileUploadComponent_div_2_input_3_Template(rf, ctx) { if (rf & 1) {
|
|
133
133
|
const _r4 = i0__namespace.ɵɵgetCurrentView();
|
|
134
|
-
i0__namespace.ɵɵelementStart(0, "input",
|
|
135
|
-
i0__namespace.ɵɵlistener("change", function
|
|
134
|
+
i0__namespace.ɵɵelementStart(0, "input", 26);
|
|
135
|
+
i0__namespace.ɵɵlistener("change", function FileUploadComponent_div_2_input_3_Template_input_change_0_listener($event) { i0__namespace.ɵɵrestoreView(_r4); const ctx_r1 = i0__namespace.ɵɵnextContext(2); return i0__namespace.ɵɵresetView(ctx_r1.onFileSelect($event, $event.target.files)); })("click", function FileUploadComponent_div_2_input_3_Template_input_click_0_listener($event) { i0__namespace.ɵɵrestoreView(_r4); const ctx_r1 = i0__namespace.ɵɵnextContext(2); return i0__namespace.ɵɵresetView(ctx_r1.onFileElemClick($event)); });
|
|
136
136
|
i0__namespace.ɵɵelementEnd();
|
|
137
137
|
} if (rf & 2) {
|
|
138
138
|
const ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
139
139
|
i0__namespace.ɵɵproperty("accept", ctx_r1.chooseFilter)("disabled", ctx_r1.disabled);
|
|
140
140
|
i0__namespace.ɵɵattribute("aria-label", ctx_r1.arialabel || "File selection field");
|
|
141
141
|
} }
|
|
142
|
-
function
|
|
142
|
+
function FileUploadComponent_div_2_input_4_Template(rf, ctx) { if (rf & 1) {
|
|
143
143
|
const _r5 = i0__namespace.ɵɵgetCurrentView();
|
|
144
|
-
i0__namespace.ɵɵelementStart(0, "input",
|
|
145
|
-
i0__namespace.ɵɵlistener("change", function
|
|
144
|
+
i0__namespace.ɵɵelementStart(0, "input", 27);
|
|
145
|
+
i0__namespace.ɵɵlistener("change", function FileUploadComponent_div_2_input_4_Template_input_change_0_listener($event) { i0__namespace.ɵɵrestoreView(_r5); const ctx_r1 = i0__namespace.ɵɵnextContext(2); return i0__namespace.ɵɵresetView(ctx_r1.onFileSelect($event, $event.target.files)); })("click", function FileUploadComponent_div_2_input_4_Template_input_click_0_listener($event) { i0__namespace.ɵɵrestoreView(_r5); const ctx_r1 = i0__namespace.ɵɵnextContext(2); return i0__namespace.ɵɵresetView(ctx_r1.onFileElemClick($event)); });
|
|
146
146
|
i0__namespace.ɵɵelementEnd();
|
|
147
147
|
} if (rf & 2) {
|
|
148
148
|
const ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
149
149
|
i0__namespace.ɵɵproperty("accept", ctx_r1.chooseFilter)("disabled", ctx_r1.disabled);
|
|
150
150
|
i0__namespace.ɵɵattribute("aria-label", ctx_r1.arialabel || "File selection field");
|
|
151
151
|
} }
|
|
152
|
-
function
|
|
153
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
154
|
-
i0__namespace.ɵɵtemplate(3,
|
|
155
|
-
i0__namespace.ɵɵelementStart(5, "button",
|
|
156
|
-
i0__namespace.ɵɵelement(6, "i",
|
|
152
|
+
function FileUploadComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
153
|
+
i0__namespace.ɵɵelementStart(0, "div", 18)(1, "div", 19)(2, "form", 10);
|
|
154
|
+
i0__namespace.ɵɵtemplate(3, FileUploadComponent_div_2_input_3_Template, 1, 3, "input", 20)(4, FileUploadComponent_div_2_input_4_Template, 1, 3, "input", 21);
|
|
155
|
+
i0__namespace.ɵɵelementStart(5, "button", 22);
|
|
156
|
+
i0__namespace.ɵɵelement(6, "i", 23)(7, "span", 24);
|
|
157
157
|
i0__namespace.ɵɵelementEnd()()();
|
|
158
|
-
i0__namespace.ɵɵelement(8, "div",
|
|
158
|
+
i0__namespace.ɵɵelement(8, "div", 25);
|
|
159
159
|
i0__namespace.ɵɵelementEnd();
|
|
160
160
|
} if (rf & 2) {
|
|
161
161
|
const ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
162
162
|
i0__namespace.ɵɵadvance(2);
|
|
163
163
|
i0__namespace.ɵɵpropertyInterpolate("name", ctx_r1.formName);
|
|
164
164
|
i0__namespace.ɵɵadvance();
|
|
165
|
-
i0__namespace.ɵɵ
|
|
165
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r1.multiple);
|
|
166
166
|
i0__namespace.ɵɵadvance();
|
|
167
|
-
i0__namespace.ɵɵ
|
|
167
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r1.multiple);
|
|
168
168
|
i0__namespace.ɵɵadvance();
|
|
169
169
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1, ctx_r1.highlightDropArea));
|
|
170
170
|
i0__namespace.ɵɵadvance();
|
|
@@ -172,11 +172,11 @@
|
|
|
172
172
|
i0__namespace.ɵɵadvance();
|
|
173
173
|
i0__namespace.ɵɵproperty("innerHTML", ctx_r1.caption, i0__namespace.ɵɵsanitizeHtml);
|
|
174
174
|
} }
|
|
175
|
-
function
|
|
175
|
+
function FileUploadComponent_button_3_Template(rf, ctx) { if (rf & 1) {
|
|
176
176
|
const _r6 = i0__namespace.ɵɵgetCurrentView();
|
|
177
|
-
i0__namespace.ɵɵelementStart(0, "button",
|
|
178
|
-
i0__namespace.ɵɵlistener("click", function
|
|
179
|
-
i0__namespace.ɵɵelement(1, "i")(2, "span",
|
|
177
|
+
i0__namespace.ɵɵelementStart(0, "button", 28);
|
|
178
|
+
i0__namespace.ɵɵlistener("click", function FileUploadComponent_button_3_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r6); const ctx_r1 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r1.openFileSelector()); });
|
|
179
|
+
i0__namespace.ɵɵelement(1, "i")(2, "span", 24);
|
|
180
180
|
i0__namespace.ɵɵelementEnd();
|
|
181
181
|
} if (rf & 2) {
|
|
182
182
|
const ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
@@ -186,15 +186,15 @@
|
|
|
186
186
|
i0__namespace.ɵɵadvance();
|
|
187
187
|
i0__namespace.ɵɵproperty("innerHTML", ctx_r1.caption, i0__namespace.ɵɵsanitizeHtml);
|
|
188
188
|
} }
|
|
189
|
-
function
|
|
189
|
+
function FileUploadComponent_ul_4_ng_container_1_li_1_span_8_Template(rf, ctx) { if (rf & 1) {
|
|
190
190
|
i0__namespace.ɵɵelement(0, "span");
|
|
191
191
|
i0__namespace.ɵɵpipe(1, "stateClass");
|
|
192
192
|
} if (rf & 2) {
|
|
193
193
|
const ft_r7 = i0__namespace.ɵɵnextContext(2).$implicit;
|
|
194
194
|
i0__namespace.ɵɵclassMapInterpolate1("status-icon ", i0__namespace.ɵɵpipeBind1(1, 3, ft_r7.status), "");
|
|
195
195
|
} }
|
|
196
|
-
function
|
|
197
|
-
i0__namespace.ɵɵelementStart(0, "span",
|
|
196
|
+
function FileUploadComponent_ul_4_ng_container_1_li_1_span_10_Template(rf, ctx) { if (rf & 1) {
|
|
197
|
+
i0__namespace.ɵɵelementStart(0, "span", 47);
|
|
198
198
|
i0__namespace.ɵɵtext(1);
|
|
199
199
|
i0__namespace.ɵɵpipe(2, "filesize");
|
|
200
200
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -203,8 +203,8 @@
|
|
|
203
203
|
i0__namespace.ɵɵadvance();
|
|
204
204
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ft_r7.size, 0));
|
|
205
205
|
} }
|
|
206
|
-
function
|
|
207
|
-
i0__namespace.ɵɵelement(0, "span",
|
|
206
|
+
function FileUploadComponent_ul_4_ng_container_1_li_1_span_11_Template(rf, ctx) { if (rf & 1) {
|
|
207
|
+
i0__namespace.ɵɵelement(0, "span", 34);
|
|
208
208
|
i0__namespace.ɵɵpipe(1, "stateClass");
|
|
209
209
|
} if (rf & 2) {
|
|
210
210
|
const ft_r7 = i0__namespace.ɵɵnextContext(2).$implicit;
|
|
@@ -212,22 +212,22 @@
|
|
|
212
212
|
i0__namespace.ɵɵclassMapInterpolate1("status-icon ", i0__namespace.ɵɵpipeBind1(1, 4, ft_r7.status), "");
|
|
213
213
|
i0__namespace.ɵɵpropertyInterpolate("title", ft_r7.errMsg || ctx_r1.appLocale.MESSAGE_FILE_UPLOAD_FAILED);
|
|
214
214
|
} }
|
|
215
|
-
function
|
|
216
|
-
i0__namespace.ɵɵelementStart(0, "span",
|
|
215
|
+
function FileUploadComponent_ul_4_ng_container_1_li_1_span_12_Template(rf, ctx) { if (rf & 1) {
|
|
216
|
+
i0__namespace.ɵɵelementStart(0, "span", 48);
|
|
217
217
|
i0__namespace.ɵɵtext(1, "Upload Failed");
|
|
218
218
|
i0__namespace.ɵɵelementEnd();
|
|
219
219
|
} }
|
|
220
|
-
function
|
|
221
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
222
|
-
i0__namespace.ɵɵelement(1, "div",
|
|
220
|
+
function FileUploadComponent_ul_4_ng_container_1_li_1_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
221
|
+
i0__namespace.ɵɵelementStart(0, "div", 49);
|
|
222
|
+
i0__namespace.ɵɵelement(1, "div", 50);
|
|
223
223
|
i0__namespace.ɵɵelementEnd();
|
|
224
224
|
} if (rf & 2) {
|
|
225
225
|
const ft_r7 = i0__namespace.ɵɵnextContext(2).$implicit;
|
|
226
226
|
i0__namespace.ɵɵadvance();
|
|
227
227
|
i0__namespace.ɵɵproperty("ngClass", ft_r7.status === "error" ? "progress-bar-danger" : "progress-bar-info")("ngStyle", i0__namespace.ɵɵpureFunction1(2, _c3, ft_r7.progress + "%"));
|
|
228
228
|
} }
|
|
229
|
-
function
|
|
230
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
229
|
+
function FileUploadComponent_ul_4_ng_container_1_li_1_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
230
|
+
i0__namespace.ɵɵelementStart(0, "div", 51);
|
|
231
231
|
i0__namespace.ɵɵtext(1);
|
|
232
232
|
i0__namespace.ɵɵelementEnd();
|
|
233
233
|
} if (rf & 2) {
|
|
@@ -235,17 +235,17 @@
|
|
|
235
235
|
i0__namespace.ɵɵadvance();
|
|
236
236
|
i0__namespace.ɵɵtextInterpolate1("", ft_r7.progress + "%", " ");
|
|
237
237
|
} }
|
|
238
|
-
function
|
|
238
|
+
function FileUploadComponent_ul_4_ng_container_1_li_1_div_15_Template(rf, ctx) { if (rf & 1) {
|
|
239
239
|
const _r8 = i0__namespace.ɵɵgetCurrentView();
|
|
240
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
241
|
-
i0__namespace.ɵɵlistener("click", function
|
|
242
|
-
i0__namespace.ɵɵelement(2, "i",
|
|
240
|
+
i0__namespace.ɵɵelementStart(0, "div", 45)(1, "a", 52);
|
|
241
|
+
i0__namespace.ɵɵlistener("click", function FileUploadComponent_ul_4_ng_container_1_li_1_div_15_Template_a_click_1_listener() { i0__namespace.ɵɵrestoreView(_r8); const ft_r7 = i0__namespace.ɵɵnextContext(2).$implicit; const ctx_r1 = i0__namespace.ɵɵnextContext(2); return i0__namespace.ɵɵresetView(ctx_r1.abortFileUpload(ft_r7)); });
|
|
242
|
+
i0__namespace.ɵɵelement(2, "i", 53);
|
|
243
243
|
i0__namespace.ɵɵelementEnd()();
|
|
244
244
|
} }
|
|
245
|
-
function
|
|
245
|
+
function FileUploadComponent_ul_4_ng_container_1_li_1_a_17_Template(rf, ctx) { if (rf & 1) {
|
|
246
246
|
const _r9 = i0__namespace.ɵɵgetCurrentView();
|
|
247
|
-
i0__namespace.ɵɵelementStart(0, "a",
|
|
248
|
-
i0__namespace.ɵɵlistener("click", function
|
|
247
|
+
i0__namespace.ɵɵelementStart(0, "a", 54);
|
|
248
|
+
i0__namespace.ɵɵlistener("click", function FileUploadComponent_ul_4_ng_container_1_li_1_a_17_Template_a_click_0_listener() { i0__namespace.ɵɵrestoreView(_r9); const ft_r7 = i0__namespace.ɵɵnextContext(2).$implicit; const ctx_r1 = i0__namespace.ɵɵnextContext(2); return i0__namespace.ɵɵresetView(ctx_r1.clear(ft_r7)); });
|
|
249
249
|
i0__namespace.ɵɵelement(1, "i");
|
|
250
250
|
i0__namespace.ɵɵelementEnd();
|
|
251
251
|
} if (rf & 2) {
|
|
@@ -254,35 +254,35 @@
|
|
|
254
254
|
i0__namespace.ɵɵadvance();
|
|
255
255
|
i0__namespace.ɵɵclassMap(ctx_r1.cleariconclass);
|
|
256
256
|
} }
|
|
257
|
-
function
|
|
257
|
+
function FileUploadComponent_ul_4_ng_container_1_li_1_div_18_Template(rf, ctx) { if (rf & 1) {
|
|
258
258
|
const _r10 = i0__namespace.ɵɵgetCurrentView();
|
|
259
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
260
|
-
i0__namespace.ɵɵlistener("click", function
|
|
261
|
-
i0__namespace.ɵɵelement(2, "i",
|
|
259
|
+
i0__namespace.ɵɵelementStart(0, "div", 45)(1, "a", 54);
|
|
260
|
+
i0__namespace.ɵɵlistener("click", function FileUploadComponent_ul_4_ng_container_1_li_1_div_18_Template_a_click_1_listener($event) { i0__namespace.ɵɵrestoreView(_r10); const ft_r7 = i0__namespace.ɵɵnextContext(2).$implicit; const ctx_r1 = i0__namespace.ɵɵnextContext(2); return i0__namespace.ɵɵresetView(ctx_r1.onFileDelete($event, ft_r7)); });
|
|
261
|
+
i0__namespace.ɵɵelement(2, "i", 55);
|
|
262
262
|
i0__namespace.ɵɵelementEnd()();
|
|
263
263
|
} if (rf & 2) {
|
|
264
264
|
const ctx_r1 = i0__namespace.ɵɵnextContext(4);
|
|
265
265
|
i0__namespace.ɵɵadvance();
|
|
266
266
|
i0__namespace.ɵɵpropertyInterpolate("title", ctx_r1.deleteiconhint);
|
|
267
267
|
} }
|
|
268
|
-
function
|
|
269
|
-
i0__namespace.ɵɵelementStart(0, "li",
|
|
270
|
-
i0__namespace.ɵɵelement(2, "div",
|
|
268
|
+
function FileUploadComponent_ul_4_ng_container_1_li_1_Template(rf, ctx) { if (rf & 1) {
|
|
269
|
+
i0__namespace.ɵɵelementStart(0, "li", 32)(1, "div", 33);
|
|
270
|
+
i0__namespace.ɵɵelement(2, "div", 34);
|
|
271
271
|
i0__namespace.ɵɵpipe(3, "fileIconClass");
|
|
272
|
-
i0__namespace.ɵɵelementStart(4, "div",
|
|
272
|
+
i0__namespace.ɵɵelementStart(4, "div", 35)(5, "p", 36)(6, "span", 37);
|
|
273
273
|
i0__namespace.ɵɵtext(7);
|
|
274
274
|
i0__namespace.ɵɵelementEnd();
|
|
275
|
-
i0__namespace.ɵɵtemplate(8,
|
|
275
|
+
i0__namespace.ɵɵtemplate(8, FileUploadComponent_ul_4_ng_container_1_li_1_span_8_Template, 2, 5, "span", 38);
|
|
276
276
|
i0__namespace.ɵɵelement(9, "br");
|
|
277
|
-
i0__namespace.ɵɵtemplate(10,
|
|
277
|
+
i0__namespace.ɵɵtemplate(10, FileUploadComponent_ul_4_ng_container_1_li_1_span_10_Template, 3, 4, "span", 39)(11, FileUploadComponent_ul_4_ng_container_1_li_1_span_11_Template, 2, 6, "span", 40)(12, FileUploadComponent_ul_4_ng_container_1_li_1_span_12_Template, 2, 0, "span", 41);
|
|
278
278
|
i0__namespace.ɵɵelementEnd();
|
|
279
|
-
i0__namespace.ɵɵtemplate(13,
|
|
279
|
+
i0__namespace.ɵɵtemplate(13, FileUploadComponent_ul_4_ng_container_1_li_1_div_13_Template, 2, 4, "div", 42)(14, FileUploadComponent_ul_4_ng_container_1_li_1_div_14_Template, 2, 1, "div", 43);
|
|
280
280
|
i0__namespace.ɵɵelementEnd();
|
|
281
|
-
i0__namespace.ɵɵtemplate(15,
|
|
282
|
-
i0__namespace.ɵɵelementStart(16, "div",
|
|
283
|
-
i0__namespace.ɵɵtemplate(17,
|
|
281
|
+
i0__namespace.ɵɵtemplate(15, FileUploadComponent_ul_4_ng_container_1_li_1_div_15_Template, 3, 0, "div", 44);
|
|
282
|
+
i0__namespace.ɵɵelementStart(16, "div", 45);
|
|
283
|
+
i0__namespace.ɵɵtemplate(17, FileUploadComponent_ul_4_ng_container_1_li_1_a_17_Template, 2, 4, "a", 46);
|
|
284
284
|
i0__namespace.ɵɵelementEnd();
|
|
285
|
-
i0__namespace.ɵɵtemplate(18,
|
|
285
|
+
i0__namespace.ɵɵtemplate(18, FileUploadComponent_ul_4_ng_container_1_li_1_div_18_Template, 3, 1, "div", 44);
|
|
286
286
|
i0__namespace.ɵɵelementEnd()();
|
|
287
287
|
} if (rf & 2) {
|
|
288
288
|
const ft_r7 = i0__namespace.ɵɵnextContext().$implicit;
|
|
@@ -293,66 +293,69 @@
|
|
|
293
293
|
i0__namespace.ɵɵadvance(5);
|
|
294
294
|
i0__namespace.ɵɵtextInterpolate(ft_r7.storageName || ft_r7.name);
|
|
295
295
|
i0__namespace.ɵɵadvance();
|
|
296
|
-
i0__namespace.ɵɵ
|
|
296
|
+
i0__namespace.ɵɵproperty("ngIf", ft_r7.status === "success" && (!ctx_r1.datasource || ctx_r1.datasource && (ft_r7._response == null ? null : ft_r7._response.success)));
|
|
297
297
|
i0__namespace.ɵɵadvance(2);
|
|
298
|
-
i0__namespace.ɵɵ
|
|
298
|
+
i0__namespace.ɵɵproperty("ngIf", ft_r7.fileLength !== 0);
|
|
299
299
|
i0__namespace.ɵɵadvance();
|
|
300
|
-
i0__namespace.ɵɵ
|
|
300
|
+
i0__namespace.ɵɵproperty("ngIf", ft_r7.status === "error");
|
|
301
301
|
i0__namespace.ɵɵadvance();
|
|
302
|
-
i0__namespace.ɵɵ
|
|
302
|
+
i0__namespace.ɵɵproperty("ngIf", ft_r7.status === "error");
|
|
303
303
|
i0__namespace.ɵɵadvance();
|
|
304
|
-
i0__namespace.ɵɵ
|
|
304
|
+
i0__namespace.ɵɵproperty("ngIf", ft_r7.status === "onProgress" || ctx_r1.showprogressbar);
|
|
305
305
|
i0__namespace.ɵɵadvance();
|
|
306
|
-
i0__namespace.ɵɵ
|
|
306
|
+
i0__namespace.ɵɵproperty("ngIf", (ft_r7.status === "onProgress" || ctx_r1.showprogressbar && ctx_r1.showprogressbarpercentage) && ft_r7.progress);
|
|
307
307
|
i0__namespace.ɵɵadvance();
|
|
308
|
-
i0__namespace.ɵɵ
|
|
308
|
+
i0__namespace.ɵɵproperty("ngIf", ft_r7.status === "onProgress" || ft_r7.status === "queued");
|
|
309
309
|
i0__namespace.ɵɵadvance(2);
|
|
310
|
-
i0__namespace.ɵɵ
|
|
310
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r1.cleariconclass !== "" && ft_r7.status !== "onProgress");
|
|
311
311
|
i0__namespace.ɵɵadvance();
|
|
312
|
-
i0__namespace.ɵɵ
|
|
312
|
+
i0__namespace.ɵɵproperty("ngIf", ft_r7.status === "success" && (!ctx_r1.datasource || ctx_r1.datasource && (ft_r7._response == null ? null : ft_r7._response.success)));
|
|
313
313
|
} }
|
|
314
|
-
function
|
|
315
|
-
i0__namespace.ɵɵ
|
|
314
|
+
function FileUploadComponent_ul_4_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
315
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
316
|
+
i0__namespace.ɵɵtemplate(1, FileUploadComponent_ul_4_ng_container_1_li_1_Template, 19, 16, "li", 31);
|
|
317
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
316
318
|
} if (rf & 2) {
|
|
317
319
|
const ft_r7 = ctx.$implicit;
|
|
318
|
-
i0__namespace.ɵɵ
|
|
320
|
+
i0__namespace.ɵɵadvance();
|
|
321
|
+
i0__namespace.ɵɵproperty("ngIf", ft_r7.status !== "abort");
|
|
319
322
|
} }
|
|
320
|
-
function
|
|
321
|
-
i0__namespace.ɵɵelementStart(0, "ul",
|
|
322
|
-
i0__namespace.ɵɵ
|
|
323
|
+
function FileUploadComponent_ul_4_Template(rf, ctx) { if (rf & 1) {
|
|
324
|
+
i0__namespace.ɵɵelementStart(0, "ul", 29);
|
|
325
|
+
i0__namespace.ɵɵtemplate(1, FileUploadComponent_ul_4_ng_container_1_Template, 2, 1, "ng-container", 30);
|
|
323
326
|
i0__namespace.ɵɵelementEnd();
|
|
324
327
|
} if (rf & 2) {
|
|
325
328
|
const ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
326
|
-
i0__namespace.ɵɵproperty("ngStyle", i0__namespace.ɵɵpureFunction2(
|
|
329
|
+
i0__namespace.ɵɵproperty("ngStyle", i0__namespace.ɵɵpureFunction2(2, _c2, ctx_r1.filelistheight, ctx_r1.overflow));
|
|
327
330
|
i0__namespace.ɵɵadvance();
|
|
328
|
-
i0__namespace.ɵɵ
|
|
331
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r1.uploadedFiles);
|
|
329
332
|
} }
|
|
330
|
-
function
|
|
331
|
-
i0__namespace.ɵɵelementStart(0, "li",
|
|
332
|
-
i0__namespace.ɵɵelement(2, "div",
|
|
333
|
-
i0__namespace.ɵɵelementStart(3, "div",
|
|
333
|
+
function FileUploadComponent_ul_5_li_1_Template(rf, ctx) { if (rf & 1) {
|
|
334
|
+
i0__namespace.ɵɵelementStart(0, "li", 58)(1, "div", 33);
|
|
335
|
+
i0__namespace.ɵɵelement(2, "div", 59);
|
|
336
|
+
i0__namespace.ɵɵelementStart(3, "div", 35)(4, "p", 60)(5, "label", 37);
|
|
334
337
|
i0__namespace.ɵɵtext(6);
|
|
335
338
|
i0__namespace.ɵɵelementEnd();
|
|
336
339
|
i0__namespace.ɵɵelement(7, "br");
|
|
337
340
|
i0__namespace.ɵɵelementEnd()();
|
|
338
|
-
i0__namespace.ɵɵelementStart(8, "div",
|
|
339
|
-
i0__namespace.ɵɵelement(9, "span",
|
|
341
|
+
i0__namespace.ɵɵelementStart(8, "div", 45);
|
|
342
|
+
i0__namespace.ɵɵelement(9, "span", 61);
|
|
340
343
|
i0__namespace.ɵɵelementEnd()()();
|
|
341
344
|
} if (rf & 2) {
|
|
342
345
|
const ft_r11 = ctx.$implicit;
|
|
343
346
|
i0__namespace.ɵɵadvance(6);
|
|
344
347
|
i0__namespace.ɵɵtextInterpolate(ft_r11.name);
|
|
345
348
|
} }
|
|
346
|
-
function
|
|
347
|
-
i0__namespace.ɵɵelementStart(0, "ul",
|
|
348
|
-
i0__namespace.ɵɵ
|
|
349
|
+
function FileUploadComponent_ul_5_Template(rf, ctx) { if (rf & 1) {
|
|
350
|
+
i0__namespace.ɵɵelementStart(0, "ul", 56);
|
|
351
|
+
i0__namespace.ɵɵtemplate(1, FileUploadComponent_ul_5_li_1_Template, 10, 1, "li", 57);
|
|
349
352
|
i0__namespace.ɵɵelementEnd();
|
|
350
353
|
} if (rf & 2) {
|
|
351
354
|
const ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
352
355
|
i0__namespace.ɵɵpropertyInterpolate("title", ctx_r1.appLocale.MESSAGE_FOLDER_UPLOADS_NOT_ALLOWED);
|
|
353
|
-
i0__namespace.ɵɵproperty("ngStyle", i0__namespace.ɵɵpureFunction2(
|
|
356
|
+
i0__namespace.ɵɵproperty("ngStyle", i0__namespace.ɵɵpureFunction2(3, _c2, ctx_r1.filelistheight, ctx_r1.overflow));
|
|
354
357
|
i0__namespace.ɵɵadvance();
|
|
355
|
-
i0__namespace.ɵɵ
|
|
358
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r1.selectedFolders);
|
|
356
359
|
} }
|
|
357
360
|
const DEFAULT_CLS = 'app-fileupload';
|
|
358
361
|
const WIDGET_CONFIG = {
|
|
@@ -736,28 +739,28 @@
|
|
|
736
739
|
static { this.ɵfac = function FileUploadComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FileUploadComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i1__namespace.App), i0__namespace.ɵɵinjectAttribute('select.event'), i0__namespace.ɵɵdirectiveInject(i1__namespace.AbstractDialogService), i0__namespace.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
737
740
|
static { this.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: FileUploadComponent, selectors: [["", "wmFileUpload", ""]], features: [i0__namespace.ɵɵProvidersFeature([
|
|
738
741
|
i3.provideAsWidgetRef(FileUploadComponent)
|
|
739
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0, decls: 6, vars: 5, consts: [["init-widget", "", 1, "app-fileupload"], [
|
|
742
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0, decls: 6, vars: 5, consts: [["init-widget", "", 1, "app-fileupload"], ["class", "app-multi-file-upload", 4, "ngIf"], ["class", "app-single-file-upload", 4, "ngIf"], ["focus-target", "", "class", "app-button btn btn-default", 3, "disabled", "click", 4, "ngIf"], ["class", "list-group file-upload", "tabindex", "0", 3, "ngStyle", 4, "ngIf"], ["class", "list-group file-upload", 3, "ngStyle", "title", 4, "ngIf"], [1, "app-multi-file-upload"], ["id", "dropzone", 1, "drop-box", 3, "click", "dragover", "drop", "ngClass"], [1, "message"], [1, "upload-label", 3, "innerHtml"], [1, "form-horizontal", 3, "name"], ["class", "file-input", "type", "file", "name", "files", "multiple", "", 3, "disabled", "accept", "click", "change", 4, "ngIf"], ["href", "javascript:void(0);", 1, "app-anchor", "upload-label"], ["class", "upload-extensions", 3, "innerHtml", 4, "ngIf"], ["class", "upload-extensions", 4, "ngIf"], ["type", "file", "name", "files", "multiple", "", 1, "file-input", 3, "click", "change", "disabled", "accept"], [1, "upload-extensions", 3, "innerHtml"], [1, "upload-extensions"], [1, "app-single-file-upload"], [1, "app-button-wrapper"], ["class", "file-input", "multiple", "", "name", "files", "type", "file", 3, "accept", "disabled", "change", "click", 4, "ngIf"], ["class", "file-input", "name", "files", "type", "file", 3, "accept", "disabled", "change", "click", 4, "ngIf"], ["id", "dropzone", "focus-target", "", 1, "app-button", "btn", "btn-default", 3, "ngClass"], ["aria-hidden", "true"], [1, "caption", 3, "innerHTML"], [1, "app-files-upload-status", "single"], ["multiple", "", "name", "files", "type", "file", 1, "file-input", 3, "change", "click", "accept", "disabled"], ["name", "files", "type", "file", 1, "file-input", 3, "change", "click", "accept", "disabled"], ["focus-target", "", 1, "app-button", "btn", "btn-default", 3, "click", "disabled"], ["tabindex", "0", 1, "list-group", "file-upload", 3, "ngStyle"], [4, "ngFor", "ngForOf"], ["class", "list-group-item file-upload-status", "tabindex", "0", 4, "ngIf"], ["tabindex", "0", 1, "list-group-item", "file-upload-status"], [1, "media", "upload-file-list"], [3, "title"], [1, "media-body", "media-middle", "file-details"], [1, "uploaddetails", "col-md-3"], [1, "upload-title"], [3, "class", 4, "ngIf"], ["class", "filesize", 4, "ngIf"], [3, "class", "title", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], ["class", "progress col-md-7 upload-progress", 4, "ngIf"], ["class", "col-md-1 upload-progress-percentage", 4, "ngIf"], ["class", "media-right media-middle", 4, "ngIf"], [1, "media-right", "media-middle"], ["href", "javascript:void(0)", "class", "btn btn-transparent btn-default status-icon", "type", "button", 3, "title", "click", 4, "ngIf"], [1, "filesize"], [1, "error-message"], [1, "progress", "col-md-7", "upload-progress"], [1, "progress-bar", "progress-bar-striped", 3, "ngClass", "ngStyle"], [1, "col-md-1", "upload-progress-percentage"], ["href", "javascript:void(0)", "type", "button", 1, "btn", "btn-transparent", "file-upload-stop", 3, "click"], [1, "wi", "wi-close"], ["href", "javascript:void(0)", "type", "button", 1, "btn", "btn-transparent", "btn-default", "status-icon", 3, "click", "title"], [1, "wi", "wi-delete"], [1, "list-group", "file-upload", 3, "ngStyle", "title"], ["class", "list-group-item file-upload-status", 4, "ngFor", "ngForOf"], [1, "list-group-item", "file-upload-status"], [1, "media-left", "media-middle", "file-icon", "fa", "fa-folder-o"], [1, "uploaddetails"], [1, "status-icon", "wi", "wi-cancel", "text-danger"]], template: function FileUploadComponent_Template(rf, ctx) { if (rf & 1) {
|
|
740
743
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
741
|
-
i0__namespace.ɵɵtemplate(1,
|
|
744
|
+
i0__namespace.ɵɵtemplate(1, FileUploadComponent_div_1_Template, 12, 13, "div", 1)(2, FileUploadComponent_div_2_Template, 9, 10, "div", 2)(3, FileUploadComponent_button_3_Template, 3, 5, "button", 3)(4, FileUploadComponent_ul_4_Template, 2, 5, "ul", 4)(5, FileUploadComponent_ul_5_Template, 2, 6, "ul", 5);
|
|
742
745
|
i0__namespace.ɵɵelementEnd();
|
|
743
746
|
} if (rf & 2) {
|
|
744
747
|
i0__namespace.ɵɵadvance();
|
|
745
|
-
i0__namespace.ɵɵ
|
|
748
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx._isMobileType && ctx.multiple);
|
|
746
749
|
i0__namespace.ɵɵadvance();
|
|
747
|
-
i0__namespace.ɵɵ
|
|
750
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx._isCordova && (!ctx.multiple || ctx._isMobileType));
|
|
748
751
|
i0__namespace.ɵɵadvance();
|
|
749
|
-
i0__namespace.ɵɵ
|
|
752
|
+
i0__namespace.ɵɵproperty("ngIf", ctx._isCordova);
|
|
750
753
|
i0__namespace.ɵɵadvance();
|
|
751
|
-
i0__namespace.ɵɵ
|
|
754
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.uploadedFiles.length > 0);
|
|
752
755
|
i0__namespace.ɵɵadvance();
|
|
753
|
-
i0__namespace.ɵɵ
|
|
754
|
-
} }, dependencies: [i2__namespace.NgClass, i2__namespace.NgStyle, i3__namespace.FileIconClassPipe, i3__namespace.FileSizePipe, i3__namespace.StateClassPipe], encapsulation: 2 }); }
|
|
756
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.selectedFolders.length > 0);
|
|
757
|
+
} }, dependencies: [i2__namespace.NgClass, i2__namespace.NgForOf, i2__namespace.NgIf, i2__namespace.NgStyle, i3__namespace.FileIconClassPipe, i3__namespace.FileSizePipe, i3__namespace.StateClassPipe], encapsulation: 2 }); }
|
|
755
758
|
}
|
|
756
759
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FileUploadComponent, [{
|
|
757
760
|
type: i0.Component,
|
|
758
761
|
args: [{ selector: '[wmFileUpload]', providers: [
|
|
759
762
|
i3.provideAsWidgetRef(FileUploadComponent)
|
|
760
|
-
], template: "<div class=\"app-fileupload\" init-widget>\n
|
|
763
|
+
], template: "<div class=\"app-fileupload\" init-widget>\n <!-- drag and drop files UI in web -->\n <div class=\"app-multi-file-upload\" *ngIf=\"!_isMobileType && multiple\">\n <div id=\"dropzone\" class=\"drop-box\" (click)=\"triggerFileSelect()\" [ngClass]=\"{'highlight-drop-box' : highlightDropArea}\" (dragover)=\"dragOverHandler($event);\" (drop)=\"onFileDrop($event);\">\n <i class=\"{{iconclass}}\"></i>\n <div class=\"message\">\n <label [innerHtml]=\"caption\" class=\"upload-label\"></label>\n <form class=\"form-horizontal\" name=\"{{formName}}\">\n <input class=\"file-input\" [attr.aria-label]=\"hint || 'File selection field'\" type=\"file\" name=\"files\" *ngIf=\"multiple\" [disabled]=\"disabled\" [accept]=\"chooseFilter\" (click)=\"onFileElemClick($event)\" (change)=\"onFileSelect($event, $event.target.files)\" multiple >\n <a class=\"app-anchor upload-label\" href=\"javascript:void(0);\">{{ fileUploadMessage }}</a>\n </form>\n <label *ngIf=\"chooseFilter\" [innerHtml]=\"chooseFilter + ' only '\" class=\"upload-extensions\"></label>\n <span *ngIf=\"chooseFilter && maxfilesize\" class=\"upload-extensions\"> . </span>\n <label *ngIf=\"maxfilesize\" [innerHtml]=\"maxfilesize + 'MB max'\" class=\"upload-extensions\"></label>\n </div>\n </div>\n </div>\n <!-- single file upload in web and single , multiple file upload UI in mobile runmode -->\n <div class=\"app-single-file-upload\" *ngIf=\"!_isCordova && (!multiple || _isMobileType)\">\n <div class=\"app-button-wrapper\">\n <form class=\"form-horizontal\" name=\"{{formName}}\">\n <!-- support for file upload in Mobileapp in its runmode (Web) -->\n <input (change)=\"onFileSelect($event, $event.target.files)\" (click)=\"onFileElemClick($event)\" *ngIf=\"multiple\"\n [accept]=\"chooseFilter\" [attr.aria-label]=\"arialabel || 'File selection field'\" [disabled]=\"disabled\" class=\"file-input\"\n multiple name=\"files\" type=\"file\">\n <input (change)=\"onFileSelect($event, $event.target.files)\" (click)=\"onFileElemClick($event)\" *ngIf=\"!multiple\"\n [accept]=\"chooseFilter\" [attr.aria-label]=\"arialabel || 'File selection field'\" [disabled]=\"disabled\" class=\"file-input\"\n name=\"files\" type=\"file\">\n <button id=\"dropzone\" focus-target class=\"app-button btn btn-default\" [ngClass]=\"{'highlight-drop-box' : highlightDropArea}\">\n <i class=\"{{iconclass}}\" aria-hidden=\"true\"></i>\n <span class=\"caption\" [innerHTML]=\"caption\"></span>\n </button>\n </form>\n </div>\n <div class=\"app-files-upload-status single\"></div>\n </div>\n <!-- support for file upload in Mobile Application (device) -->\n <button *ngIf=\"_isCordova\" focus-target class=\"app-button btn btn-default\" (click)=\"openFileSelector()\" [disabled]=\"disabled\">\n <i class=\"{{iconclass}}\"></i>\n <span class=\"caption\" [innerHTML]=\"caption\"></span>\n </button>\n <!-- list of selectedfiles UI -->\n <ul class=\"list-group file-upload\" [ngStyle]=\"{height: filelistheight, overflow: overflow}\"\n *ngIf=\"uploadedFiles.length > 0\" tabindex=\"0\">\n <ng-container *ngFor=\"let ft of uploadedFiles\">\n <li class=\"list-group-item file-upload-status\" *ngIf=\"ft.status !== 'abort'\" tabindex=\"0\">\n <div class=\"media upload-file-list\">\n <div class=\"media-left media-middle file-icon {{getFileExtension(ft.name) | fileIconClass}}\" title=\"{{getFileExtension(ft.name)}}\"></div>\n <div class=\"media-body media-middle file-details\">\n <p class=\"uploaddetails col-md-3\">\n <span class=\"upload-title\">{{ ft.storageName || ft.name }}</span>\n <span *ngIf=\"ft.status === 'success' && (!datasource || (datasource && ft._response?.success))\"\n class=\"status-icon {{ft.status | stateClass }}\"></span>\n <br/>\n <span class=\"filesize\" *ngIf=\"ft.fileLength !== 0\">{{ft.size | filesize:0}}</span>\n <span *ngIf=\"ft.status === 'error'\"\n class=\"status-icon {{ft.status | stateClass }}\"\n title=\"{{ft.errMsg || this.appLocale.MESSAGE_FILE_UPLOAD_FAILED}}\"></span>\n <span *ngIf=\"ft.status === 'error'\" class=\"error-message\">Upload Failed</span>\n </p>\n <div *ngIf=\"ft.status === 'onProgress' || showprogressbar\"\n class=\"progress col-md-7 upload-progress\">\n <div [ngClass]=\"ft.status === 'error' ? 'progress-bar-danger' : 'progress-bar-info'\"\n [ngStyle]=\"{width: (ft.progress +'%')}\"\n class=\"progress-bar progress-bar-striped\"></div>\n </div>\n <div *ngIf=\"(ft.status === 'onProgress' || showprogressbar && showprogressbarpercentage) && ft.progress \"\n class=\"col-md-1 upload-progress-percentage\">{{ ft.progress + '%' }}\n </div>\n </div>\n <div class=\"media-right media-middle\" *ngIf=\"ft.status === 'onProgress' || ft.status === 'queued'\">\n <a href=\"javascript:void(0)\" class=\"btn btn-transparent file-upload-stop\" type=\"button\"\n (click)=\"abortFileUpload(ft)\">\n <i class=\"wi wi-close\"></i>\n </a>\n </div>\n <div class=\"media-right media-middle\">\n <a href=\"javascript:void(0)\" (click)=\"clear(ft)\"\n *ngIf=\"cleariconclass !== '' && ft.status !== 'onProgress'\"\n class=\"btn btn-transparent btn-default status-icon\" title=\"{{cleariconhint}}\" type=\"button\">\n <i class=\"{{cleariconclass}}\"></i>\n </a>\n </div>\n <div class=\"media-right media-middle\" *ngIf=\"ft.status === 'success' && (!datasource || (datasource && ft._response?.success))\">\n <a href=\"javascript:void(0)\" (click)=\"onFileDelete($event, ft)\"\n class=\"btn btn-transparent btn-default status-icon\" title=\"{{deleteiconhint}}\" type=\"button\">\n <i class=\"wi wi-delete\"></i>\n </a>\n </div>\n </div>\n </li>\n </ng-container>\n </ul>\n <!-- list of selectedfolders UI to show the error in title -->\n <ul class=\"list-group file-upload\" [ngStyle]=\"{height: filelistheight, overflow: overflow}\" title=\"{{this.appLocale.MESSAGE_FOLDER_UPLOADS_NOT_ALLOWED}}\" *ngIf=\"selectedFolders.length > 0\" >\n <li *ngFor=\"let ft of selectedFolders\" class=\"list-group-item file-upload-status\">\n <div class=\"media upload-file-list\">\n <div class=\"media-left media-middle file-icon fa fa-folder-o\"></div>\n <div class=\"media-body media-middle file-details\">\n <p class=\"uploaddetails\">\n <label class=\"upload-title\">{{ft.name}}</label><br/>\n </p>\n </div>\n <div class=\"media-right media-middle\" >\n <span class=\"status-icon wi wi-cancel text-danger\"></span>\n </div>\n </div>\n </li>\n </ul>\n</div>\n" }]
|
|
761
764
|
}], () => [{ type: i0__namespace.Injector }, { type: i1__namespace.App }, { type: undefined, decorators: [{
|
|
762
765
|
type: i0.Attribute,
|
|
763
766
|
args: ['select.event']
|