@wavemaker/app-ng-runtime 11.9.0-next.24953 → 11.9.0-next.24956
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.
- app-ng-runtime/build-task/bundles/index.umd.js +2 -2
- app-ng-runtime/build-task/esm2022/basic/default/anchor/anchor.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/basic/default/html/html.build.mjs +2 -2
- app-ng-runtime/build-task/fesm2022/index.mjs +2 -2
- app-ng-runtime/build-task/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/base/bundles/index.umd.js +1 -1
- app-ng-runtime/components/base/esm2022/pipes/custom-pipes.mjs +3 -3
- app-ng-runtime/components/base/fesm2022/index.mjs +1 -1
- app-ng-runtime/components/base/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/base/pipes/custom-pipes.d.ts +1 -1
- app-ng-runtime/components/basic/default/anchor/anchor.component.d.ts +1 -0
- app-ng-runtime/components/basic/default/bundles/index.umd.js +10 -8
- app-ng-runtime/components/basic/default/esm2022/anchor/anchor.component.mjs +4 -4
- app-ng-runtime/components/basic/default/esm2022/audio/audio.component.mjs +5 -5
- app-ng-runtime/components/basic/default/esm2022/video/video.component.mjs +5 -4
- app-ng-runtime/components/basic/default/esm2022/video/video.props.mjs +2 -1
- app-ng-runtime/components/basic/default/fesm2022/index.mjs +10 -8
- app-ng-runtime/components/basic/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/default/video/video.component.d.ts +1 -0
- app-ng-runtime/components/basic/progress/bundles/index.umd.js +4 -4
- app-ng-runtime/components/basic/progress/esm2022/progress-bar/progress-bar.component.mjs +3 -3
- app-ng-runtime/components/basic/progress/esm2022/progress-circle/progress-circle.component.mjs +3 -3
- app-ng-runtime/components/basic/progress/fesm2022/index.mjs +4 -4
- app-ng-runtime/components/basic/progress/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/rich-text-editor/bundles/index.umd.js +1 -0
- app-ng-runtime/components/basic/rich-text-editor/esm2022/rich-text-editor.component.mjs +2 -1
- app-ng-runtime/components/basic/rich-text-editor/fesm2022/index.mjs +1 -0
- app-ng-runtime/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/search/bundles/index.umd.js +7 -7
- app-ng-runtime/components/basic/search/esm2022/search.component.mjs +8 -8
- app-ng-runtime/components/basic/search/fesm2022/index.mjs +7 -7
- app-ng-runtime/components/basic/search/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/pagination/bundles/index.umd.js +2 -0
- app-ng-runtime/components/data/pagination/esm2022/pagination.component.mjs +3 -1
- app-ng-runtime/components/data/pagination/fesm2022/index.mjs +2 -0
- app-ng-runtime/components/data/pagination/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/bundles/index.umd.js +24 -3
- app-ng-runtime/components/data/table/esm2022/table.component.mjs +24 -4
- app-ng-runtime/components/data/table/esm2022/table.props.mjs +2 -1
- app-ng-runtime/components/data/table/fesm2022/index.mjs +25 -4
- app-ng-runtime/components/data/table/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/table.component.d.ts +5 -0
- app-ng-runtime/components/dialogs/alert-dialog/bundles/index.umd.js +6 -4
- app-ng-runtime/components/dialogs/alert-dialog/esm2022/alert-dialog.component.mjs +7 -5
- app-ng-runtime/components/dialogs/alert-dialog/fesm2022/index.mjs +6 -4
- app-ng-runtime/components/dialogs/alert-dialog/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/confirm-dialog/bundles/index.umd.js +8 -4
- app-ng-runtime/components/dialogs/confirm-dialog/esm2022/confirm-dialog.component.mjs +9 -5
- app-ng-runtime/components/dialogs/confirm-dialog/fesm2022/index.mjs +8 -4
- app-ng-runtime/components/dialogs/confirm-dialog/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/default/bundles/index.umd.js +8 -3
- app-ng-runtime/components/dialogs/default/dialog-header/dialog-header.component.d.ts +2 -1
- app-ng-runtime/components/dialogs/default/esm2022/dialog-header/dialog-header.component.mjs +9 -4
- app-ng-runtime/components/dialogs/default/fesm2022/index.mjs +8 -3
- app-ng-runtime/components/dialogs/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/design-dialog/bundles/index.umd.js +4 -4
- app-ng-runtime/components/dialogs/design-dialog/esm2022/dialog.component.mjs +5 -5
- app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs +4 -4
- app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/iframe-dialog/bundles/index.umd.js +9 -5
- app-ng-runtime/components/dialogs/iframe-dialog/esm2022/iframe-dialog.component.mjs +10 -6
- app-ng-runtime/components/dialogs/iframe-dialog/fesm2022/index.mjs +9 -5
- app-ng-runtime/components/dialogs/iframe-dialog/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/partial-dialog/bundles/index.umd.js +9 -5
- app-ng-runtime/components/dialogs/partial-dialog/esm2022/partial-dialog.component.mjs +10 -6
- app-ng-runtime/components/dialogs/partial-dialog/fesm2022/index.mjs +9 -5
- app-ng-runtime/components/dialogs/partial-dialog/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/chips/bundles/index.umd.js +2 -2
- app-ng-runtime/components/input/chips/esm2022/chips.component.mjs +3 -3
- app-ng-runtime/components/input/chips/fesm2022/index.mjs +2 -2
- app-ng-runtime/components/input/chips/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/bundles/index.umd.js +63 -24
- app-ng-runtime/components/input/default/esm2022/caption-position.directive.mjs +8 -7
- app-ng-runtime/components/input/default/esm2022/number/number.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/select/select.component.mjs +6 -6
- app-ng-runtime/components/input/default/esm2022/text/locale/number-locale.mjs +50 -13
- app-ng-runtime/components/input/default/fesm2022/index.mjs +62 -23
- app-ng-runtime/components/input/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/select/select.component.d.ts +1 -0
- app-ng-runtime/components/input/default/text/locale/number-locale.d.ts +1 -0
- app-ng-runtime/components/input/file-upload/bundles/index.umd.js +127 -95
- app-ng-runtime/components/input/file-upload/esm2022/file-upload.component.mjs +125 -96
- app-ng-runtime/components/input/file-upload/esm2022/file-upload.props.mjs +4 -1
- app-ng-runtime/components/input/file-upload/fesm2022/index.mjs +127 -95
- app-ng-runtime/components/input/file-upload/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/file-upload/file-upload.component.d.ts +3 -7
- app-ng-runtime/core/bundles/index.umd.js +5 -5
- app-ng-runtime/core/esm2022/utils/utils.mjs +2 -3
- app-ng-runtime/core/fesm2022/index.mjs +1 -2
- app-ng-runtime/core/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/core/utils/utils.d.ts +0 -1
- app-ng-runtime/package.json +1 -1
|
@@ -14,6 +14,7 @@ export declare class SelectComponent extends DatasetAwareFormComponent implement
|
|
|
14
14
|
autofocus: boolean;
|
|
15
15
|
hint: string;
|
|
16
16
|
arialabel: string;
|
|
17
|
+
shortcutkey: string;
|
|
17
18
|
selectEl: ElementRef;
|
|
18
19
|
set datasource(ds: any);
|
|
19
20
|
constructor(inj: Injector, explicitContext: any);
|
|
@@ -26,6 +26,7 @@ export declare abstract class NumberLocale extends BaseInput implements Validato
|
|
|
26
26
|
trailingzero: boolean;
|
|
27
27
|
private validateType;
|
|
28
28
|
inputmode: string;
|
|
29
|
+
decimalplaces: number;
|
|
29
30
|
private lastValIsDecimal;
|
|
30
31
|
constructor(inj: Injector, config: IWidgetConfig, i18nService: AbstractI18nService, trailingZeroDecimalPipe: TrailingZeroDecimalPipe, explicitContext: any);
|
|
31
32
|
set datavalue(value: number);
|
|
@@ -48,6 +48,9 @@
|
|
|
48
48
|
['selectedFiles', i3.PROP_STRING],
|
|
49
49
|
['destination', i3.PROP_STRING],
|
|
50
50
|
['filelistheight', i3.PROP_NUMBER],
|
|
51
|
+
['width', { value: 'auto', ...i3.PROP_STRING }],
|
|
52
|
+
['showprogressbar', i3.PROP_BOOLEAN],
|
|
53
|
+
['showprogressbarpercentage', i3.PROP_BOOLEAN]
|
|
51
54
|
]));
|
|
52
55
|
i3.registerFormWidget(i1.FormWidgetType.UPLOAD, new Map([
|
|
53
56
|
['disabled', i3.PROP_BOOLEAN],
|
|
@@ -65,13 +68,30 @@
|
|
|
65
68
|
const _c3 = a0 => ({ width: a0 });
|
|
66
69
|
function FileUploadComponent_div_1_input_6_Template(rf, ctx) { if (rf & 1) {
|
|
67
70
|
const _r3 = i0__namespace.ɵɵgetCurrentView();
|
|
68
|
-
i0__namespace.ɵɵelementStart(0, "input",
|
|
69
|
-
i0__namespace.ɵɵlistener("
|
|
71
|
+
i0__namespace.ɵɵelementStart(0, "input", 15);
|
|
72
|
+
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)); });
|
|
70
73
|
i0__namespace.ɵɵelementEnd();
|
|
71
74
|
} if (rf & 2) {
|
|
72
75
|
const ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
73
|
-
i0__namespace.ɵɵproperty("
|
|
74
|
-
i0__namespace.ɵɵattribute("aria-label", ctx_r1.
|
|
76
|
+
i0__namespace.ɵɵproperty("disabled", ctx_r1.disabled)("accept", ctx_r1.chooseFilter);
|
|
77
|
+
i0__namespace.ɵɵattribute("aria-label", ctx_r1.hint || "File selection field");
|
|
78
|
+
} }
|
|
79
|
+
function FileUploadComponent_div_1_label_9_Template(rf, ctx) { if (rf & 1) {
|
|
80
|
+
i0__namespace.ɵɵelement(0, "label", 16);
|
|
81
|
+
} if (rf & 2) {
|
|
82
|
+
const ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
83
|
+
i0__namespace.ɵɵproperty("innerHtml", ctx_r1.chooseFilter + " only ", i0__namespace.ɵɵsanitizeHtml);
|
|
84
|
+
} }
|
|
85
|
+
function FileUploadComponent_div_1_span_10_Template(rf, ctx) { if (rf & 1) {
|
|
86
|
+
i0__namespace.ɵɵelementStart(0, "span", 17);
|
|
87
|
+
i0__namespace.ɵɵtext(1, " . ");
|
|
88
|
+
i0__namespace.ɵɵelementEnd();
|
|
89
|
+
} }
|
|
90
|
+
function FileUploadComponent_div_1_label_11_Template(rf, ctx) { if (rf & 1) {
|
|
91
|
+
i0__namespace.ɵɵelement(0, "label", 16);
|
|
92
|
+
} if (rf & 2) {
|
|
93
|
+
const ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
94
|
+
i0__namespace.ɵɵproperty("innerHtml", ctx_r1.maxfilesize + "MB max", i0__namespace.ɵɵsanitizeHtml);
|
|
75
95
|
} }
|
|
76
96
|
function FileUploadComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
77
97
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -84,11 +104,13 @@
|
|
|
84
104
|
i0__namespace.ɵɵtemplate(6, FileUploadComponent_div_1_input_6_Template, 1, 3, "input", 11);
|
|
85
105
|
i0__namespace.ɵɵelementStart(7, "a", 12);
|
|
86
106
|
i0__namespace.ɵɵtext(8);
|
|
87
|
-
i0__namespace.ɵɵelementEnd()()
|
|
107
|
+
i0__namespace.ɵɵelementEnd()();
|
|
108
|
+
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);
|
|
109
|
+
i0__namespace.ɵɵelementEnd()()();
|
|
88
110
|
} if (rf & 2) {
|
|
89
111
|
const ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
90
112
|
i0__namespace.ɵɵadvance();
|
|
91
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(
|
|
113
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c1, ctx_r1.highlightDropArea));
|
|
92
114
|
i0__namespace.ɵɵadvance();
|
|
93
115
|
i0__namespace.ɵɵclassMap(ctx_r1.iconclass);
|
|
94
116
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -99,10 +121,16 @@
|
|
|
99
121
|
i0__namespace.ɵɵproperty("ngIf", ctx_r1.multiple);
|
|
100
122
|
i0__namespace.ɵɵadvance(2);
|
|
101
123
|
i0__namespace.ɵɵtextInterpolate(ctx_r1.fileUploadMessage);
|
|
124
|
+
i0__namespace.ɵɵadvance();
|
|
125
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r1.chooseFilter);
|
|
126
|
+
i0__namespace.ɵɵadvance();
|
|
127
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r1.chooseFilter && ctx_r1.maxfilesize);
|
|
128
|
+
i0__namespace.ɵɵadvance();
|
|
129
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r1.maxfilesize);
|
|
102
130
|
} }
|
|
103
131
|
function FileUploadComponent_div_2_input_3_Template(rf, ctx) { if (rf & 1) {
|
|
104
132
|
const _r4 = i0__namespace.ɵɵgetCurrentView();
|
|
105
|
-
i0__namespace.ɵɵelementStart(0, "input",
|
|
133
|
+
i0__namespace.ɵɵelementStart(0, "input", 26);
|
|
106
134
|
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)); });
|
|
107
135
|
i0__namespace.ɵɵelementEnd();
|
|
108
136
|
} if (rf & 2) {
|
|
@@ -112,7 +140,7 @@
|
|
|
112
140
|
} }
|
|
113
141
|
function FileUploadComponent_div_2_input_4_Template(rf, ctx) { if (rf & 1) {
|
|
114
142
|
const _r5 = i0__namespace.ɵɵgetCurrentView();
|
|
115
|
-
i0__namespace.ɵɵelementStart(0, "input",
|
|
143
|
+
i0__namespace.ɵɵelementStart(0, "input", 27);
|
|
116
144
|
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)); });
|
|
117
145
|
i0__namespace.ɵɵelementEnd();
|
|
118
146
|
} if (rf & 2) {
|
|
@@ -121,12 +149,12 @@
|
|
|
121
149
|
i0__namespace.ɵɵattribute("aria-label", ctx_r1.arialabel || "File selection field");
|
|
122
150
|
} }
|
|
123
151
|
function FileUploadComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
124
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
125
|
-
i0__namespace.ɵɵtemplate(3, FileUploadComponent_div_2_input_3_Template, 1, 3, "input",
|
|
126
|
-
i0__namespace.ɵɵelementStart(5, "button",
|
|
127
|
-
i0__namespace.ɵɵelement(6, "i",
|
|
152
|
+
i0__namespace.ɵɵelementStart(0, "div", 18)(1, "div", 19)(2, "form", 10);
|
|
153
|
+
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);
|
|
154
|
+
i0__namespace.ɵɵelementStart(5, "button", 22);
|
|
155
|
+
i0__namespace.ɵɵelement(6, "i", 23)(7, "span", 24);
|
|
128
156
|
i0__namespace.ɵɵelementEnd()()();
|
|
129
|
-
i0__namespace.ɵɵelement(8, "div",
|
|
157
|
+
i0__namespace.ɵɵelement(8, "div", 25);
|
|
130
158
|
i0__namespace.ɵɵelementEnd();
|
|
131
159
|
} if (rf & 2) {
|
|
132
160
|
const ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
@@ -145,9 +173,9 @@
|
|
|
145
173
|
} }
|
|
146
174
|
function FileUploadComponent_button_3_Template(rf, ctx) { if (rf & 1) {
|
|
147
175
|
const _r6 = i0__namespace.ɵɵgetCurrentView();
|
|
148
|
-
i0__namespace.ɵɵelementStart(0, "button",
|
|
176
|
+
i0__namespace.ɵɵelementStart(0, "button", 28);
|
|
149
177
|
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()); });
|
|
150
|
-
i0__namespace.ɵɵelement(1, "i")(2, "span",
|
|
178
|
+
i0__namespace.ɵɵelement(1, "i")(2, "span", 24);
|
|
151
179
|
i0__namespace.ɵɵelementEnd();
|
|
152
180
|
} if (rf & 2) {
|
|
153
181
|
const ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
@@ -157,8 +185,15 @@
|
|
|
157
185
|
i0__namespace.ɵɵadvance();
|
|
158
186
|
i0__namespace.ɵɵproperty("innerHTML", ctx_r1.caption, i0__namespace.ɵɵsanitizeHtml);
|
|
159
187
|
} }
|
|
160
|
-
function
|
|
161
|
-
i0__namespace.ɵɵ
|
|
188
|
+
function FileUploadComponent_ul_4_div_1_li_1_span_8_Template(rf, ctx) { if (rf & 1) {
|
|
189
|
+
i0__namespace.ɵɵelement(0, "span");
|
|
190
|
+
i0__namespace.ɵɵpipe(1, "stateClass");
|
|
191
|
+
} if (rf & 2) {
|
|
192
|
+
const ft_r7 = i0__namespace.ɵɵnextContext(2).$implicit;
|
|
193
|
+
i0__namespace.ɵɵclassMapInterpolate1("status-icon ", i0__namespace.ɵɵpipeBind1(1, 3, ft_r7.status), "");
|
|
194
|
+
} }
|
|
195
|
+
function FileUploadComponent_ul_4_div_1_li_1_span_10_Template(rf, ctx) { if (rf & 1) {
|
|
196
|
+
i0__namespace.ɵɵelementStart(0, "span", 47);
|
|
162
197
|
i0__namespace.ɵɵtext(1);
|
|
163
198
|
i0__namespace.ɵɵpipe(2, "filesize");
|
|
164
199
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -167,95 +202,102 @@
|
|
|
167
202
|
i0__namespace.ɵɵadvance();
|
|
168
203
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ft_r7.size, 0));
|
|
169
204
|
} }
|
|
170
|
-
function
|
|
171
|
-
i0__namespace.ɵɵ
|
|
172
|
-
i0__namespace.ɵɵ
|
|
205
|
+
function FileUploadComponent_ul_4_div_1_li_1_span_11_Template(rf, ctx) { if (rf & 1) {
|
|
206
|
+
i0__namespace.ɵɵelement(0, "span", 34);
|
|
207
|
+
i0__namespace.ɵɵpipe(1, "stateClass");
|
|
208
|
+
} if (rf & 2) {
|
|
209
|
+
const ft_r7 = i0__namespace.ɵɵnextContext(2).$implicit;
|
|
210
|
+
const ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
211
|
+
i0__namespace.ɵɵclassMapInterpolate1("status-icon ", i0__namespace.ɵɵpipeBind1(1, 4, ft_r7.status), "");
|
|
212
|
+
i0__namespace.ɵɵpropertyInterpolate("title", ft_r7.errMsg || ctx_r1.appLocale.MESSAGE_FILE_UPLOAD_FAILED);
|
|
213
|
+
} }
|
|
214
|
+
function FileUploadComponent_ul_4_div_1_li_1_span_12_Template(rf, ctx) { if (rf & 1) {
|
|
215
|
+
i0__namespace.ɵɵelementStart(0, "span", 48);
|
|
216
|
+
i0__namespace.ɵɵtext(1, "Upload Failed");
|
|
217
|
+
i0__namespace.ɵɵelementEnd();
|
|
218
|
+
} }
|
|
219
|
+
function FileUploadComponent_ul_4_div_1_li_1_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
220
|
+
i0__namespace.ɵɵelementStart(0, "div", 49);
|
|
221
|
+
i0__namespace.ɵɵelement(1, "div", 50);
|
|
173
222
|
i0__namespace.ɵɵelementEnd();
|
|
174
223
|
} if (rf & 2) {
|
|
175
224
|
const ft_r7 = i0__namespace.ɵɵnextContext(2).$implicit;
|
|
176
225
|
i0__namespace.ɵɵadvance();
|
|
177
|
-
i0__namespace.ɵɵproperty("ngStyle", i0__namespace.ɵɵpureFunction1(
|
|
178
|
-
} }
|
|
179
|
-
function FileUploadComponent_ul_4_div_1_li_1_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
180
|
-
const _r8 = i0__namespace.ɵɵgetCurrentView();
|
|
181
|
-
i0__namespace.ɵɵelementStart(0, "div", 39)(1, "a", 40);
|
|
182
|
-
i0__namespace.ɵɵlistener("click", function FileUploadComponent_ul_4_div_1_li_1_div_11_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)); });
|
|
183
|
-
i0__namespace.ɵɵelement(2, "i", 41);
|
|
184
|
-
i0__namespace.ɵɵelementEnd()();
|
|
226
|
+
i0__namespace.ɵɵproperty("ngClass", ft_r7.status === "error" ? "progress-bar-danger" : "progress-bar-info")("ngStyle", i0__namespace.ɵɵpureFunction1(2, _c3, ft_r7.progress + "%"));
|
|
185
227
|
} }
|
|
186
|
-
function
|
|
187
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
188
|
-
i0__namespace.ɵɵ
|
|
189
|
-
i0__namespace.ɵɵpipe(2, "stateClass");
|
|
228
|
+
function FileUploadComponent_ul_4_div_1_li_1_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
229
|
+
i0__namespace.ɵɵelementStart(0, "div", 51);
|
|
230
|
+
i0__namespace.ɵɵtext(1);
|
|
190
231
|
i0__namespace.ɵɵelementEnd();
|
|
191
232
|
} if (rf & 2) {
|
|
192
233
|
const ft_r7 = i0__namespace.ɵɵnextContext(2).$implicit;
|
|
193
234
|
i0__namespace.ɵɵadvance();
|
|
194
|
-
i0__namespace.ɵɵ
|
|
235
|
+
i0__namespace.ɵɵtextInterpolate1("", ft_r7.progress + "%", " ");
|
|
195
236
|
} }
|
|
196
|
-
function
|
|
197
|
-
const
|
|
198
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
199
|
-
i0__namespace.ɵɵlistener("click", function
|
|
200
|
-
i0__namespace.ɵɵelement(2, "i");
|
|
237
|
+
function FileUploadComponent_ul_4_div_1_li_1_div_15_Template(rf, ctx) { if (rf & 1) {
|
|
238
|
+
const _r8 = i0__namespace.ɵɵgetCurrentView();
|
|
239
|
+
i0__namespace.ɵɵelementStart(0, "div", 45)(1, "a", 52);
|
|
240
|
+
i0__namespace.ɵɵlistener("click", function FileUploadComponent_ul_4_div_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)); });
|
|
241
|
+
i0__namespace.ɵɵelement(2, "i", 53);
|
|
201
242
|
i0__namespace.ɵɵelementEnd()();
|
|
243
|
+
} }
|
|
244
|
+
function FileUploadComponent_ul_4_div_1_li_1_a_17_Template(rf, ctx) { if (rf & 1) {
|
|
245
|
+
const _r9 = i0__namespace.ɵɵgetCurrentView();
|
|
246
|
+
i0__namespace.ɵɵelementStart(0, "a", 54);
|
|
247
|
+
i0__namespace.ɵɵlistener("click", function FileUploadComponent_ul_4_div_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)); });
|
|
248
|
+
i0__namespace.ɵɵelement(1, "i");
|
|
249
|
+
i0__namespace.ɵɵelementEnd();
|
|
202
250
|
} if (rf & 2) {
|
|
203
251
|
const ctx_r1 = i0__namespace.ɵɵnextContext(4);
|
|
204
|
-
i0__namespace.ɵɵadvance();
|
|
205
252
|
i0__namespace.ɵɵpropertyInterpolate("title", ctx_r1.cleariconhint);
|
|
206
253
|
i0__namespace.ɵɵadvance();
|
|
207
254
|
i0__namespace.ɵɵclassMap(ctx_r1.cleariconclass);
|
|
208
255
|
} }
|
|
209
|
-
function FileUploadComponent_ul_4_div_1_li_1_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
210
|
-
i0__namespace.ɵɵelementStart(0, "div", 43);
|
|
211
|
-
i0__namespace.ɵɵelement(1, "span");
|
|
212
|
-
i0__namespace.ɵɵpipe(2, "stateClass");
|
|
213
|
-
i0__namespace.ɵɵelementEnd();
|
|
214
|
-
} if (rf & 2) {
|
|
215
|
-
const ft_r7 = i0__namespace.ɵɵnextContext(2).$implicit;
|
|
216
|
-
const ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
217
|
-
i0__namespace.ɵɵpropertyInterpolate("title", ft_r7.errMsg || ctx_r1.appLocale.MESSAGE_FILE_UPLOAD_FAILED);
|
|
218
|
-
i0__namespace.ɵɵadvance();
|
|
219
|
-
i0__namespace.ɵɵclassMapInterpolate1("status-icon ", i0__namespace.ɵɵpipeBind1(2, 4, ft_r7.status), "");
|
|
220
|
-
} }
|
|
221
256
|
function FileUploadComponent_ul_4_div_1_li_1_Template(rf, ctx) { if (rf & 1) {
|
|
222
|
-
i0__namespace.ɵɵelementStart(0, "li",
|
|
223
|
-
i0__namespace.ɵɵelement(2, "div",
|
|
257
|
+
i0__namespace.ɵɵelementStart(0, "li", 32)(1, "div", 33);
|
|
258
|
+
i0__namespace.ɵɵelement(2, "div", 34);
|
|
224
259
|
i0__namespace.ɵɵpipe(3, "fileIconClass");
|
|
225
|
-
i0__namespace.ɵɵelementStart(4, "div",
|
|
260
|
+
i0__namespace.ɵɵelementStart(4, "div", 35)(5, "p", 36)(6, "span", 37);
|
|
226
261
|
i0__namespace.ɵɵtext(7);
|
|
227
262
|
i0__namespace.ɵɵelementEnd();
|
|
228
|
-
i0__namespace.ɵɵ
|
|
229
|
-
i0__namespace.ɵɵ
|
|
263
|
+
i0__namespace.ɵɵtemplate(8, FileUploadComponent_ul_4_div_1_li_1_span_8_Template, 2, 5, "span", 38);
|
|
264
|
+
i0__namespace.ɵɵelement(9, "br");
|
|
265
|
+
i0__namespace.ɵɵtemplate(10, FileUploadComponent_ul_4_div_1_li_1_span_10_Template, 3, 4, "span", 39)(11, FileUploadComponent_ul_4_div_1_li_1_span_11_Template, 2, 6, "span", 40)(12, FileUploadComponent_ul_4_div_1_li_1_span_12_Template, 2, 0, "span", 41);
|
|
230
266
|
i0__namespace.ɵɵelementEnd();
|
|
231
|
-
i0__namespace.ɵɵtemplate(
|
|
267
|
+
i0__namespace.ɵɵtemplate(13, FileUploadComponent_ul_4_div_1_li_1_div_13_Template, 2, 4, "div", 42)(14, FileUploadComponent_ul_4_div_1_li_1_div_14_Template, 2, 1, "div", 43);
|
|
232
268
|
i0__namespace.ɵɵelementEnd();
|
|
233
|
-
i0__namespace.ɵɵtemplate(
|
|
234
|
-
i0__namespace.ɵɵ
|
|
269
|
+
i0__namespace.ɵɵtemplate(15, FileUploadComponent_ul_4_div_1_li_1_div_15_Template, 3, 0, "div", 44);
|
|
270
|
+
i0__namespace.ɵɵelementStart(16, "div", 45);
|
|
271
|
+
i0__namespace.ɵɵtemplate(17, FileUploadComponent_ul_4_div_1_li_1_a_17_Template, 2, 4, "a", 46);
|
|
272
|
+
i0__namespace.ɵɵelementEnd()()();
|
|
235
273
|
} if (rf & 2) {
|
|
236
274
|
const ft_r7 = i0__namespace.ɵɵnextContext().$implicit;
|
|
237
275
|
const ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
238
276
|
i0__namespace.ɵɵadvance(2);
|
|
239
|
-
i0__namespace.ɵɵclassMapInterpolate1("media-left media-middle file-icon ", i0__namespace.ɵɵpipeBind1(3,
|
|
277
|
+
i0__namespace.ɵɵclassMapInterpolate1("media-left media-middle file-icon ", i0__namespace.ɵɵpipeBind1(3, 13, ctx_r1.getFileExtension(ft_r7.name)), "");
|
|
240
278
|
i0__namespace.ɵɵpropertyInterpolate("title", ctx_r1.getFileExtension(ft_r7.name));
|
|
241
279
|
i0__namespace.ɵɵadvance(5);
|
|
242
|
-
i0__namespace.ɵɵtextInterpolate(ft_r7.name);
|
|
280
|
+
i0__namespace.ɵɵtextInterpolate(ft_r7.storageName || ft_r7.name);
|
|
281
|
+
i0__namespace.ɵɵadvance();
|
|
282
|
+
i0__namespace.ɵɵproperty("ngIf", ft_r7.status === "success");
|
|
243
283
|
i0__namespace.ɵɵadvance(2);
|
|
244
284
|
i0__namespace.ɵɵproperty("ngIf", ft_r7.fileLength !== 0);
|
|
245
285
|
i0__namespace.ɵɵadvance();
|
|
246
|
-
i0__namespace.ɵɵproperty("ngIf", ft_r7.status === "
|
|
286
|
+
i0__namespace.ɵɵproperty("ngIf", ft_r7.status === "error");
|
|
247
287
|
i0__namespace.ɵɵadvance();
|
|
248
|
-
i0__namespace.ɵɵproperty("ngIf", ft_r7.status === "
|
|
288
|
+
i0__namespace.ɵɵproperty("ngIf", ft_r7.status === "error");
|
|
249
289
|
i0__namespace.ɵɵadvance();
|
|
250
|
-
i0__namespace.ɵɵproperty("ngIf", ft_r7.status === "
|
|
290
|
+
i0__namespace.ɵɵproperty("ngIf", ft_r7.status === "onProgress" || ctx_r1.showprogressbar);
|
|
251
291
|
i0__namespace.ɵɵadvance();
|
|
252
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
292
|
+
i0__namespace.ɵɵproperty("ngIf", (ft_r7.status === "onProgress" || ctx_r1.showprogressbar && ctx_r1.showprogressbarpercentage) && ft_r7.progress);
|
|
253
293
|
i0__namespace.ɵɵadvance();
|
|
254
|
-
i0__namespace.ɵɵproperty("ngIf", ft_r7.status === "
|
|
294
|
+
i0__namespace.ɵɵproperty("ngIf", ft_r7.status === "onProgress" || ft_r7.status === "queued");
|
|
295
|
+
i0__namespace.ɵɵadvance(2);
|
|
296
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r1.cleariconclass !== "" && ft_r7.status !== "onProgress");
|
|
255
297
|
} }
|
|
256
298
|
function FileUploadComponent_ul_4_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
257
299
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
258
|
-
i0__namespace.ɵɵtemplate(1, FileUploadComponent_ul_4_div_1_li_1_Template,
|
|
300
|
+
i0__namespace.ɵɵtemplate(1, FileUploadComponent_ul_4_div_1_li_1_Template, 18, 15, "li", 31);
|
|
259
301
|
i0__namespace.ɵɵelementEnd();
|
|
260
302
|
} if (rf & 2) {
|
|
261
303
|
const ft_r7 = ctx.$implicit;
|
|
@@ -263,25 +305,25 @@
|
|
|
263
305
|
i0__namespace.ɵɵproperty("ngIf", ft_r7.status !== "abort");
|
|
264
306
|
} }
|
|
265
307
|
function FileUploadComponent_ul_4_Template(rf, ctx) { if (rf & 1) {
|
|
266
|
-
i0__namespace.ɵɵelementStart(0, "ul",
|
|
267
|
-
i0__namespace.ɵɵtemplate(1, FileUploadComponent_ul_4_div_1_Template, 2, 1, "div",
|
|
308
|
+
i0__namespace.ɵɵelementStart(0, "ul", 29);
|
|
309
|
+
i0__namespace.ɵɵtemplate(1, FileUploadComponent_ul_4_div_1_Template, 2, 1, "div", 30);
|
|
268
310
|
i0__namespace.ɵɵelementEnd();
|
|
269
311
|
} if (rf & 2) {
|
|
270
312
|
const ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
271
313
|
i0__namespace.ɵɵproperty("ngStyle", i0__namespace.ɵɵpureFunction2(2, _c2, ctx_r1.filelistheight, ctx_r1.overflow));
|
|
272
314
|
i0__namespace.ɵɵadvance();
|
|
273
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx_r1.
|
|
315
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r1.uploadedFiles);
|
|
274
316
|
} }
|
|
275
317
|
function FileUploadComponent_ul_5_li_1_Template(rf, ctx) { if (rf & 1) {
|
|
276
|
-
i0__namespace.ɵɵelementStart(0, "li",
|
|
277
|
-
i0__namespace.ɵɵelement(2, "div",
|
|
278
|
-
i0__namespace.ɵɵelementStart(3, "div",
|
|
318
|
+
i0__namespace.ɵɵelementStart(0, "li", 32)(1, "div", 33);
|
|
319
|
+
i0__namespace.ɵɵelement(2, "div", 57);
|
|
320
|
+
i0__namespace.ɵɵelementStart(3, "div", 35)(4, "p", 58)(5, "label", 37);
|
|
279
321
|
i0__namespace.ɵɵtext(6);
|
|
280
322
|
i0__namespace.ɵɵelementEnd();
|
|
281
323
|
i0__namespace.ɵɵelement(7, "br");
|
|
282
324
|
i0__namespace.ɵɵelementEnd()();
|
|
283
|
-
i0__namespace.ɵɵelementStart(8, "div",
|
|
284
|
-
i0__namespace.ɵɵelement(9, "span",
|
|
325
|
+
i0__namespace.ɵɵelementStart(8, "div", 45);
|
|
326
|
+
i0__namespace.ɵɵelement(9, "span", 59);
|
|
285
327
|
i0__namespace.ɵɵelementEnd()()();
|
|
286
328
|
} if (rf & 2) {
|
|
287
329
|
const ft_r10 = ctx.$implicit;
|
|
@@ -289,8 +331,8 @@
|
|
|
289
331
|
i0__namespace.ɵɵtextInterpolate(ft_r10.name);
|
|
290
332
|
} }
|
|
291
333
|
function FileUploadComponent_ul_5_Template(rf, ctx) { if (rf & 1) {
|
|
292
|
-
i0__namespace.ɵɵelementStart(0, "ul",
|
|
293
|
-
i0__namespace.ɵɵtemplate(1, FileUploadComponent_ul_5_li_1_Template, 10, 1, "li",
|
|
334
|
+
i0__namespace.ɵɵelementStart(0, "ul", 55);
|
|
335
|
+
i0__namespace.ɵɵtemplate(1, FileUploadComponent_ul_5_li_1_Template, 10, 1, "li", 56);
|
|
294
336
|
i0__namespace.ɵɵelementEnd();
|
|
295
337
|
} if (rf & 2) {
|
|
296
338
|
const ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
@@ -407,8 +449,8 @@
|
|
|
407
449
|
* @param $files
|
|
408
450
|
*/
|
|
409
451
|
onSelectEventCall($event, $files) {
|
|
410
|
-
this.multipleSelectedFiles = this.multiple ? [...this.multipleSelectedFiles, ...$files] : $files;
|
|
411
452
|
this.selectedFiles = $files;
|
|
453
|
+
this.uploadedFiles = this.multiple ? [...this.uploadedFiles, ...$files] : $files;
|
|
412
454
|
setTimeout(() => {
|
|
413
455
|
this.invokeEventCallback('select', {
|
|
414
456
|
$event: $.extend($event.$files || {}, $files),
|
|
@@ -430,12 +472,8 @@
|
|
|
430
472
|
}
|
|
431
473
|
/*this function to clear the specified file. if argument is not provided, it clears the complete list */
|
|
432
474
|
clear(fileObj) {
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
}
|
|
436
|
-
else {
|
|
437
|
-
this.selectedFiles = (fileObj) ? this.selectedFiles.filter((file) => file !== fileObj) : [];
|
|
438
|
-
}
|
|
475
|
+
this.selectedFiles = (fileObj) ? this.selectedFiles.filter((file) => file !== fileObj) : [];
|
|
476
|
+
this.uploadedFiles = (fileObj) ? this.uploadedFiles.filter((file) => file !== fileObj) : [];
|
|
439
477
|
}
|
|
440
478
|
/*this function to set the class names for clear icon */
|
|
441
479
|
setClearIconClass(classValue) {
|
|
@@ -583,7 +621,7 @@
|
|
|
583
621
|
this.app = app;
|
|
584
622
|
this.onSelectEvt = onSelectEvt;
|
|
585
623
|
this.selectedFiles = [];
|
|
586
|
-
this.
|
|
624
|
+
this.uploadedFiles = [];
|
|
587
625
|
this.selectedFolders = [];
|
|
588
626
|
this.fileTransfers = {};
|
|
589
627
|
this.caption = 'Upload';
|
|
@@ -609,12 +647,6 @@
|
|
|
609
647
|
this.defaultAllowedExtensions = this.allowedFileUploadExtensions.split(',').map(item => item.trim()).map(item => item.endsWith('/*') ? item : `.${item}`);
|
|
610
648
|
this.chooseFilter = this.defaultAllowedExtensions.includes('*/*') ? '' : this.defaultAllowedExtensions;
|
|
611
649
|
this.fileUploadMessage = 'Drop your files here or click here to browse';
|
|
612
|
-
this.uploadedFiles = {
|
|
613
|
-
fileName: '',
|
|
614
|
-
path: '',
|
|
615
|
-
length: '',
|
|
616
|
-
status: ''
|
|
617
|
-
};
|
|
618
650
|
this.uploadUrl = 'services';
|
|
619
651
|
// styler(this.nativeElement, this);
|
|
620
652
|
}
|
|
@@ -638,9 +670,9 @@
|
|
|
638
670
|
static { this.ɵfac = function FileUploadComponent_Factory(t) { return new (t || FileUploadComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i1__namespace.App), i0__namespace.ɵɵinjectAttribute('select.event'), i0__namespace.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
639
671
|
static { this.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: FileUploadComponent, selectors: [["", "wmFileUpload", ""]], features: [i0__namespace.ɵɵProvidersFeature([
|
|
640
672
|
i3.provideAsWidgetRef(FileUploadComponent)
|
|
641
|
-
]), 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", 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, "
|
|
673
|
+
]), 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", 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"], [1, "list-group", "file-upload", 3, "ngStyle"], [4, "ngFor", "ngForOf"], ["class", "list-group-item file-upload-status", 4, "ngIf"], [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"], ["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"], ["type", "button", 1, "btn", "btn-transparent", "file-upload-stop", 3, "click"], [1, "wi", "wi-close"], ["type", "button", 1, "btn", "btn-transparent", "btn-default", "status-icon", 3, "click", "title"], [1, "list-group", "file-upload", 3, "ngStyle", "title"], ["class", "list-group-item file-upload-status", 4, "ngFor", "ngForOf"], [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) {
|
|
642
674
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
643
|
-
i0__namespace.ɵɵtemplate(1, FileUploadComponent_div_1_Template,
|
|
675
|
+
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);
|
|
644
676
|
i0__namespace.ɵɵelementEnd();
|
|
645
677
|
} if (rf & 2) {
|
|
646
678
|
i0__namespace.ɵɵadvance();
|
|
@@ -650,7 +682,7 @@
|
|
|
650
682
|
i0__namespace.ɵɵadvance();
|
|
651
683
|
i0__namespace.ɵɵproperty("ngIf", ctx._isCordova);
|
|
652
684
|
i0__namespace.ɵɵadvance();
|
|
653
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.
|
|
685
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.uploadedFiles.length > 0);
|
|
654
686
|
i0__namespace.ɵɵadvance();
|
|
655
687
|
i0__namespace.ɵɵproperty("ngIf", ctx.selectedFolders.length > 0);
|
|
656
688
|
} }, dependencies: [i2__namespace.NgClass, i2__namespace.NgForOf, i2__namespace.NgIf, i2__namespace.NgStyle, i3__namespace.FileIconClassPipe, i3__namespace.FileSizePipe, i3__namespace.StateClassPipe], encapsulation: 2 }); }
|
|
@@ -659,7 +691,7 @@
|
|
|
659
691
|
type: i0.Component,
|
|
660
692
|
args: [{ selector: '[wmFileUpload]', providers: [
|
|
661
693
|
i3.provideAsWidgetRef(FileUploadComponent)
|
|
662
|
-
], 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=\"
|
|
694
|
+
], 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}\" *ngIf=\"uploadedFiles.length > 0\" >\n <div *ngFor=\"let ft of uploadedFiles\">\n <li class=\"list-group-item file-upload-status\" *ngIf=\"ft.status !== 'abort'\">\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'\"\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 class=\"btn btn-transparent file-upload-stop\" type=\"button\" (click)=\"abortFileUpload(ft)\">\n <i class=\"wi wi-close\"></i>\n </a>\n </div>\n <div class=\"media-right media-middle\">\n <a (click)=\"clear(ft)\" *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>\n </li>\n </div>\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" }]
|
|
663
695
|
}], () => [{ type: i0__namespace.Injector }, { type: i1__namespace.App }, { type: undefined, decorators: [{
|
|
664
696
|
type: i0.Attribute,
|
|
665
697
|
args: ['select.event']
|