@wavemaker/app-ng-runtime 11.9.0-next.24951 → 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.
Files changed (108) hide show
  1. app-ng-runtime/build-task/bundles/index.umd.js +4 -4
  2. app-ng-runtime/build-task/esm2022/basic/default/anchor/anchor.build.mjs +2 -2
  3. app-ng-runtime/build-task/esm2022/basic/default/html/html.build.mjs +2 -2
  4. app-ng-runtime/build-task/esm2022/input/color-picker/color-picker.build.mjs +3 -3
  5. app-ng-runtime/build-task/esm2022/input/currency/currency.build.mjs +3 -3
  6. app-ng-runtime/build-task/fesm2022/index.mjs +4 -4
  7. app-ng-runtime/build-task/fesm2022/index.mjs.map +1 -1
  8. app-ng-runtime/components/base/bundles/index.umd.js +1 -1
  9. app-ng-runtime/components/base/esm2022/pipes/custom-pipes.mjs +3 -3
  10. app-ng-runtime/components/base/fesm2022/index.mjs +1 -1
  11. app-ng-runtime/components/base/fesm2022/index.mjs.map +1 -1
  12. app-ng-runtime/components/base/pipes/custom-pipes.d.ts +1 -1
  13. app-ng-runtime/components/basic/default/anchor/anchor.component.d.ts +1 -0
  14. app-ng-runtime/components/basic/default/bundles/index.umd.js +16 -13
  15. app-ng-runtime/components/basic/default/esm2022/anchor/anchor.component.mjs +4 -4
  16. app-ng-runtime/components/basic/default/esm2022/audio/audio.component.mjs +5 -5
  17. app-ng-runtime/components/basic/default/esm2022/icon/icon.component.mjs +6 -6
  18. app-ng-runtime/components/basic/default/esm2022/icon/icon.props.mjs +2 -1
  19. app-ng-runtime/components/basic/default/esm2022/video/video.component.mjs +5 -4
  20. app-ng-runtime/components/basic/default/esm2022/video/video.props.mjs +2 -1
  21. app-ng-runtime/components/basic/default/fesm2022/index.mjs +16 -13
  22. app-ng-runtime/components/basic/default/fesm2022/index.mjs.map +1 -1
  23. app-ng-runtime/components/basic/default/icon/icon.component.d.ts +1 -0
  24. app-ng-runtime/components/basic/default/video/video.component.d.ts +1 -0
  25. app-ng-runtime/components/basic/progress/bundles/index.umd.js +4 -4
  26. app-ng-runtime/components/basic/progress/esm2022/progress-bar/progress-bar.component.mjs +3 -3
  27. app-ng-runtime/components/basic/progress/esm2022/progress-circle/progress-circle.component.mjs +3 -3
  28. app-ng-runtime/components/basic/progress/fesm2022/index.mjs +4 -4
  29. app-ng-runtime/components/basic/progress/fesm2022/index.mjs.map +1 -1
  30. app-ng-runtime/components/basic/rich-text-editor/bundles/index.umd.js +1 -0
  31. app-ng-runtime/components/basic/rich-text-editor/esm2022/rich-text-editor.component.mjs +2 -1
  32. app-ng-runtime/components/basic/rich-text-editor/fesm2022/index.mjs +1 -0
  33. app-ng-runtime/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
  34. app-ng-runtime/components/basic/search/bundles/index.umd.js +7 -7
  35. app-ng-runtime/components/basic/search/esm2022/search.component.mjs +8 -8
  36. app-ng-runtime/components/basic/search/fesm2022/index.mjs +7 -7
  37. app-ng-runtime/components/basic/search/fesm2022/index.mjs.map +1 -1
  38. app-ng-runtime/components/data/pagination/bundles/index.umd.js +2 -0
  39. app-ng-runtime/components/data/pagination/esm2022/pagination.component.mjs +3 -1
  40. app-ng-runtime/components/data/pagination/fesm2022/index.mjs +2 -0
  41. app-ng-runtime/components/data/pagination/fesm2022/index.mjs.map +1 -1
  42. app-ng-runtime/components/data/table/bundles/index.umd.js +24 -3
  43. app-ng-runtime/components/data/table/esm2022/table.component.mjs +24 -4
  44. app-ng-runtime/components/data/table/esm2022/table.props.mjs +2 -1
  45. app-ng-runtime/components/data/table/fesm2022/index.mjs +25 -4
  46. app-ng-runtime/components/data/table/fesm2022/index.mjs.map +1 -1
  47. app-ng-runtime/components/data/table/table.component.d.ts +5 -0
  48. app-ng-runtime/components/dialogs/alert-dialog/bundles/index.umd.js +6 -4
  49. app-ng-runtime/components/dialogs/alert-dialog/esm2022/alert-dialog.component.mjs +7 -5
  50. app-ng-runtime/components/dialogs/alert-dialog/fesm2022/index.mjs +6 -4
  51. app-ng-runtime/components/dialogs/alert-dialog/fesm2022/index.mjs.map +1 -1
  52. app-ng-runtime/components/dialogs/confirm-dialog/bundles/index.umd.js +8 -4
  53. app-ng-runtime/components/dialogs/confirm-dialog/esm2022/confirm-dialog.component.mjs +9 -5
  54. app-ng-runtime/components/dialogs/confirm-dialog/fesm2022/index.mjs +8 -4
  55. app-ng-runtime/components/dialogs/confirm-dialog/fesm2022/index.mjs.map +1 -1
  56. app-ng-runtime/components/dialogs/default/bundles/index.umd.js +8 -3
  57. app-ng-runtime/components/dialogs/default/dialog-header/dialog-header.component.d.ts +2 -1
  58. app-ng-runtime/components/dialogs/default/esm2022/dialog-header/dialog-header.component.mjs +9 -4
  59. app-ng-runtime/components/dialogs/default/fesm2022/index.mjs +8 -3
  60. app-ng-runtime/components/dialogs/default/fesm2022/index.mjs.map +1 -1
  61. app-ng-runtime/components/dialogs/design-dialog/bundles/index.umd.js +4 -4
  62. app-ng-runtime/components/dialogs/design-dialog/esm2022/dialog.component.mjs +5 -5
  63. app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs +4 -4
  64. app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
  65. app-ng-runtime/components/dialogs/iframe-dialog/bundles/index.umd.js +9 -5
  66. app-ng-runtime/components/dialogs/iframe-dialog/esm2022/iframe-dialog.component.mjs +10 -6
  67. app-ng-runtime/components/dialogs/iframe-dialog/fesm2022/index.mjs +9 -5
  68. app-ng-runtime/components/dialogs/iframe-dialog/fesm2022/index.mjs.map +1 -1
  69. app-ng-runtime/components/dialogs/partial-dialog/bundles/index.umd.js +9 -5
  70. app-ng-runtime/components/dialogs/partial-dialog/esm2022/partial-dialog.component.mjs +10 -6
  71. app-ng-runtime/components/dialogs/partial-dialog/fesm2022/index.mjs +9 -5
  72. app-ng-runtime/components/dialogs/partial-dialog/fesm2022/index.mjs.map +1 -1
  73. app-ng-runtime/components/input/chips/bundles/index.umd.js +2 -2
  74. app-ng-runtime/components/input/chips/esm2022/chips.component.mjs +3 -3
  75. app-ng-runtime/components/input/chips/fesm2022/index.mjs +2 -2
  76. app-ng-runtime/components/input/chips/fesm2022/index.mjs.map +1 -1
  77. app-ng-runtime/components/input/color-picker/bundles/index.umd.js +2 -2
  78. app-ng-runtime/components/input/color-picker/esm2022/color-picker.component.mjs +3 -3
  79. app-ng-runtime/components/input/color-picker/fesm2022/index.mjs +2 -2
  80. app-ng-runtime/components/input/color-picker/fesm2022/index.mjs.map +1 -1
  81. app-ng-runtime/components/input/default/bundles/index.umd.js +91 -52
  82. app-ng-runtime/components/input/default/esm2022/caption-position.directive.mjs +8 -7
  83. app-ng-runtime/components/input/default/esm2022/checkbox/checkbox.component.mjs +6 -6
  84. app-ng-runtime/components/input/default/esm2022/checkboxset/checkboxset.component.mjs +10 -10
  85. app-ng-runtime/components/input/default/esm2022/number/number.props.mjs +2 -1
  86. app-ng-runtime/components/input/default/esm2022/radioset/radioset.component.mjs +17 -17
  87. app-ng-runtime/components/input/default/esm2022/select/select.component.mjs +4 -4
  88. app-ng-runtime/components/input/default/esm2022/text/locale/number-locale.mjs +50 -13
  89. app-ng-runtime/components/input/default/fesm2022/index.mjs +90 -51
  90. app-ng-runtime/components/input/default/fesm2022/index.mjs.map +1 -1
  91. app-ng-runtime/components/input/default/select/select.component.d.ts +1 -0
  92. app-ng-runtime/components/input/default/text/locale/number-locale.d.ts +1 -0
  93. app-ng-runtime/components/input/file-upload/bundles/index.umd.js +127 -95
  94. app-ng-runtime/components/input/file-upload/esm2022/file-upload.component.mjs +125 -96
  95. app-ng-runtime/components/input/file-upload/esm2022/file-upload.props.mjs +4 -1
  96. app-ng-runtime/components/input/file-upload/fesm2022/index.mjs +127 -95
  97. app-ng-runtime/components/input/file-upload/fesm2022/index.mjs.map +1 -1
  98. app-ng-runtime/components/input/file-upload/file-upload.component.d.ts +3 -7
  99. app-ng-runtime/components/input/slider/bundles/index.umd.js +4 -6
  100. app-ng-runtime/components/input/slider/esm2022/slider.component.mjs +5 -7
  101. app-ng-runtime/components/input/slider/fesm2022/index.mjs +4 -6
  102. app-ng-runtime/components/input/slider/fesm2022/index.mjs.map +1 -1
  103. app-ng-runtime/core/bundles/index.umd.js +5 -5
  104. app-ng-runtime/core/esm2022/utils/utils.mjs +2 -3
  105. app-ng-runtime/core/fesm2022/index.mjs +1 -2
  106. app-ng-runtime/core/fesm2022/index.mjs.map +1 -1
  107. app-ng-runtime/core/utils/utils.d.ts +0 -1
  108. app-ng-runtime/package.json +1 -1
@@ -22,6 +22,9 @@ export const registerProps = () => {
22
22
  ['selectedFiles', PROP_STRING],
23
23
  ['destination', PROP_STRING],
24
24
  ['filelistheight', PROP_NUMBER],
25
+ ['width', { value: 'auto', ...PROP_STRING }],
26
+ ['showprogressbar', PROP_BOOLEAN],
27
+ ['showprogressbarpercentage', PROP_BOOLEAN]
25
28
  ]));
26
29
  registerFormWidget(FormWidgetType.UPLOAD, new Map([
27
30
  ['disabled', PROP_BOOLEAN],
@@ -32,4 +35,4 @@ export const registerProps = () => {
32
35
  ['required', PROP_BOOLEAN]
33
36
  ]));
34
37
  };
35
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQucHJvcHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb21wb25lbnRzL3dpZGdldHMvaW5wdXQvZmlsZS11cGxvYWQvc3JjL2ZpbGUtdXBsb2FkLnByb3BzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsV0FBVyxFQUFFLFdBQVcsRUFBRSxRQUFRLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUMzRyxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sVUFBVSxDQUFDO0FBRTFDLE1BQU0sQ0FBQyxNQU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SU5HXSxcbiAgICAgICAgICAgICAgICBbJ3RhYmluZGV4JywgUFJPUF9OVU1CRVJdLFxuICAgICAgICAgICAgICAgIFsnbXVsdGlwbGUnLCBQUk9QX0JPT0xFQU5dLFxuICAgICAgICAgICAgICAgIFsnZmlsZXVwbG9hZG1lc3NhZ2UnICwgUFJPUF9TVFJJTkddLFxuICAgICAgICAgICAgICAgIFsnc2hvdycsIHt2YWx1ZTogdHJ1ZSwgLi4uUFJPUF9CT09MRUFOfV0sXG4gICAgICAgICAgICAgICAgWydkaXNhYmxlZCcsIFBST1BfQk9PTEVBTl0sXG4gICAgICAgICAgICAgICAgWydjb250ZW50dHlwZScsIFBST1BfU1RSSU5HXSxcbiAgICAgICAgICAgICAgICBbJ21heGZpbGVzaXplJywgUFJPUF9OVU1CRVJdLFxuICAgICAgICAgICAgICAgIFsnaWNvbmNsYXNzJywge3ZhbHVlOiAnd20tc2wtbCBzbC1jbG91ZC11cGxvYWQnLCAuLi5QUk9QX1NUUklOR31dLFxuICAgICAgICAgICAgICAgIFsnY2xlYXJpY29uY2xhc3MnLCB7dmFsdWU6ICcnLCAuLi5QUk9QX1NUUklOR31dLFxuICAgICAgICAgICAgICAgIFsnY2xlYXJpY29uaGludCcsIHt2YWx1ZTogJ0NsZWFyJywgLi4uUFJPUF9TVFJJTkd9XSxcbiAgICAgICAgICAgICAgICBbJ2NsYXNzJywgUFJPUF9TVFJJTkddLFxuICAgICAgICAgICAgICAgIFsndXBsb2FkcGF0aCcsIHsuLi5QUk9QX1NUUklOR31dLFxuICAgICAgICAgICAgICAgIFsnZGF0YXNvdXJjZScsIFBST1BfU1RSSU5HXSxcbiAgICAgICAgICAgICAgICBbJ3NlbGVjdGVkRmlsZXMnLCBQUk9QX1NUUklOR10sXG4gICAgICAgICAgICAgICAgWydkZXN0aW5hdGlvbicsIFBST1BfU1RSSU5HXSxcbiAgICAgICAgICAgICAgICBbJ2ZpbGVsaXN0aGVpZ2h0JywgUFJPUF9OVU1CRVJdLFx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FxuICAgICAgICAgICAgICAgIFsnYXJpYWxhYmVsJywgUFJPUF9TVFJJTkddLFxuICAgICAgICAgICAgICAgIFsndGFiaW5kZXgnLCBQUk9QX05VTUJFUl0sXG4gICAgICAgICAgICAgICAgWydtdWx0aXBsZScsIFBST1BfQk9PTEVBTl0sXG4gICAgICAgICAgICAgICAgWydmaWxldXBsb2FkbWVzc2FnZScgLCBQUk9QX1NUUklOR10sXG4gICAgICAgICAgICAgICAgWydzaG93Jywge3ZhbHVlOiB0cnVlLCAuLi5QUk9QX0JPT0xFQU59XSxcbiAgICAgICAgICAgICAgICBbJ2Rpc2FibGVkJywgUFJPUF9CT09MRUFOXSxcbiAgICAgICAgICAgICAgICBbJ2NvbnRlbnR0eXBlJywgUFJPUF9TVFJJTkddLFxuICAgICAgICAgICAgICAgIFsnbWF4ZmlsZXNpemUnLCBQUk9QX05VTUJFUl0sXG4gICAgICAgICAgICAgICAgWydpY29uY2xhc3MnLCB7dmFsdWU6ICd3bS1zbC1sIHNsLWNsb3VkLXVwbG9hZCcsIC4uLlBST1BfU1RSSU5HfV0sXG4gICAgICAgICAgICAgICAgWydjbGVhcmljb25jbGFzcycsIHt2YWx1ZTogJycsIC4uLlBST1BfU1RSSU5HfV0sXG4gICAgICAgICAgICAgICAgWydjbGVhcmljb25oaW50Jywge3ZhbHVlOiAnQ2xlYXInLCAuLi5QUk9QX1NUUklOR31dLFxuICAgICAgICAgICAgICAgIFsnY2xhc3MnLCBQUk9QX1NUUklOR10sXG4gICAgICAgICAgICAgICAgWyd1cGxvYWRwYXRoJywgey4uLlBST1BfU1RSSU5HfV0sXG4gICAgICAgICAgICAgICAgWydkYXRhc291cmNlJywgUFJPUF9TVFJJTkddLFxuICAgICAgICAgICAgICAgIFsnc2VsZWN0ZWRGaWxlcycsIFBST1BfU1RSSU5HXSxcbiAgICAgICAgICAgICAgICBbJ2Rlc3RpbmF0aW9uJywgUFJPUF9TVFJJTkddLFxuICAgICAgICAgICAgICAgIFsnZmlsZWxpc3RoZWlnaHQnLCBQUk9QX05VTUJFUl0sXG4gICAgICAgICAgICAgICAgWyd3aWR0aCcsIHt2YWx1ZTogJ2F1dG8nLCAuLi5QUk9QX1NUUklOR31dLFxuICAgICAgICAgICAgICAgIFsnc2hvd3Byb2dyZXNzYmFyJywgUFJPUF9CT09MRUFOXSxcbiAgICAgICAgICAgICAgICBbJ3Nob3dwcm9ncmVzc2JhcnBlcmNlbnRhZ2UnLCBQUk9QX0JPT0xFQU5dXG4gICAgICAgICAgICBdXG4gICAgICAgIClcbiAgICApO1xuICAgIHJlZ2lzdGVyRm9ybVdpZGdldChcbiAgICAgICAgRm9ybVdpZGdldFR5cGUuVVBMT0FELFxuICAgICAgICBuZXcgTWFwKFtcbiAgICAgICAgICAgIFsnZGlzYWJsZWQnLCBQUk9QX0JPT0xFQU5dLFxuICAgICAgICAgICAgWydleHRlbnNpb25zJywgUFJPUF9TVFJJTkddLFxuICAgICAgICAgICAgWydmaWxldHlwZScsIFBST1BfU1RSSU5HXSxcbiAgICAgICAgICAgIFsnbXVsdGlwbGUnLCBQUk9QX0JPT0xFQU5dLFxuICAgICAgICAgICAgWydyZWFkb25seScsIFBST1BfQk9PTEVBTl0sXG4gICAgICAgICAgICBbJ3JlcXVpcmVkJywgUFJPUF9CT09MRUFOXVxuICAgICAgICBdKVxuICAgICk7XG59O1xuIl19
@@ -31,6 +31,9 @@ const registerProps = () => {
31
31
  ['selectedFiles', PROP_STRING],
32
32
  ['destination', PROP_STRING],
33
33
  ['filelistheight', PROP_NUMBER],
34
+ ['width', { value: 'auto', ...PROP_STRING }],
35
+ ['showprogressbar', PROP_BOOLEAN],
36
+ ['showprogressbarpercentage', PROP_BOOLEAN]
34
37
  ]));
35
38
  registerFormWidget(FormWidgetType.UPLOAD, new Map([
36
39
  ['disabled', PROP_BOOLEAN],
@@ -48,13 +51,30 @@ const _c2 = (a0, a1) => ({ height: a0, overflow: a1 });
48
51
  const _c3 = a0 => ({ width: a0 });
49
52
  function FileUploadComponent_div_1_input_6_Template(rf, ctx) { if (rf & 1) {
50
53
  const _r3 = i0.ɵɵgetCurrentView();
51
- i0.ɵɵelementStart(0, "input", 13);
52
- i0.ɵɵlistener("change", function FileUploadComponent_div_1_input_6_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onFileSelect($event, $event.target.files)); })("click", function FileUploadComponent_div_1_input_6_Template_input_click_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onFileElemClick($event)); });
54
+ i0.ɵɵelementStart(0, "input", 15);
55
+ i0.ɵɵlistener("click", function FileUploadComponent_div_1_input_6_Template_input_click_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onFileElemClick($event)); })("change", function FileUploadComponent_div_1_input_6_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onFileSelect($event, $event.target.files)); });
53
56
  i0.ɵɵelementEnd();
54
57
  } if (rf & 2) {
55
58
  const ctx_r1 = i0.ɵɵnextContext(2);
56
- i0.ɵɵproperty("accept", ctx_r1.chooseFilter)("disabled", ctx_r1.disabled);
57
- i0.ɵɵattribute("aria-label", ctx_r1.arialabel || "File selection field");
59
+ i0.ɵɵproperty("disabled", ctx_r1.disabled)("accept", ctx_r1.chooseFilter);
60
+ i0.ɵɵattribute("aria-label", ctx_r1.hint || "File selection field");
61
+ } }
62
+ function FileUploadComponent_div_1_label_9_Template(rf, ctx) { if (rf & 1) {
63
+ i0.ɵɵelement(0, "label", 16);
64
+ } if (rf & 2) {
65
+ const ctx_r1 = i0.ɵɵnextContext(2);
66
+ i0.ɵɵproperty("innerHtml", ctx_r1.chooseFilter + " only ", i0.ɵɵsanitizeHtml);
67
+ } }
68
+ function FileUploadComponent_div_1_span_10_Template(rf, ctx) { if (rf & 1) {
69
+ i0.ɵɵelementStart(0, "span", 17);
70
+ i0.ɵɵtext(1, " . ");
71
+ i0.ɵɵelementEnd();
72
+ } }
73
+ function FileUploadComponent_div_1_label_11_Template(rf, ctx) { if (rf & 1) {
74
+ i0.ɵɵelement(0, "label", 16);
75
+ } if (rf & 2) {
76
+ const ctx_r1 = i0.ɵɵnextContext(2);
77
+ i0.ɵɵproperty("innerHtml", ctx_r1.maxfilesize + "MB max", i0.ɵɵsanitizeHtml);
58
78
  } }
59
79
  function FileUploadComponent_div_1_Template(rf, ctx) { if (rf & 1) {
60
80
  const _r1 = i0.ɵɵgetCurrentView();
@@ -67,11 +87,13 @@ function FileUploadComponent_div_1_Template(rf, ctx) { if (rf & 1) {
67
87
  i0.ɵɵtemplate(6, FileUploadComponent_div_1_input_6_Template, 1, 3, "input", 11);
68
88
  i0.ɵɵelementStart(7, "a", 12);
69
89
  i0.ɵɵtext(8);
70
- i0.ɵɵelementEnd()()()()();
90
+ i0.ɵɵelementEnd()();
91
+ i0.ɵɵ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);
92
+ i0.ɵɵelementEnd()()();
71
93
  } if (rf & 2) {
72
94
  const ctx_r1 = i0.ɵɵnextContext();
73
95
  i0.ɵɵadvance();
74
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1, ctx_r1.highlightDropArea));
96
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c1, ctx_r1.highlightDropArea));
75
97
  i0.ɵɵadvance();
76
98
  i0.ɵɵclassMap(ctx_r1.iconclass);
77
99
  i0.ɵɵadvance(2);
@@ -82,10 +104,16 @@ function FileUploadComponent_div_1_Template(rf, ctx) { if (rf & 1) {
82
104
  i0.ɵɵproperty("ngIf", ctx_r1.multiple);
83
105
  i0.ɵɵadvance(2);
84
106
  i0.ɵɵtextInterpolate(ctx_r1.fileUploadMessage);
107
+ i0.ɵɵadvance();
108
+ i0.ɵɵproperty("ngIf", ctx_r1.chooseFilter);
109
+ i0.ɵɵadvance();
110
+ i0.ɵɵproperty("ngIf", ctx_r1.chooseFilter && ctx_r1.maxfilesize);
111
+ i0.ɵɵadvance();
112
+ i0.ɵɵproperty("ngIf", ctx_r1.maxfilesize);
85
113
  } }
86
114
  function FileUploadComponent_div_2_input_3_Template(rf, ctx) { if (rf & 1) {
87
115
  const _r4 = i0.ɵɵgetCurrentView();
88
- i0.ɵɵelementStart(0, "input", 13);
116
+ i0.ɵɵelementStart(0, "input", 26);
89
117
  i0.ɵɵlistener("change", function FileUploadComponent_div_2_input_3_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onFileSelect($event, $event.target.files)); })("click", function FileUploadComponent_div_2_input_3_Template_input_click_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onFileElemClick($event)); });
90
118
  i0.ɵɵelementEnd();
91
119
  } if (rf & 2) {
@@ -95,7 +123,7 @@ function FileUploadComponent_div_2_input_3_Template(rf, ctx) { if (rf & 1) {
95
123
  } }
96
124
  function FileUploadComponent_div_2_input_4_Template(rf, ctx) { if (rf & 1) {
97
125
  const _r5 = i0.ɵɵgetCurrentView();
98
- i0.ɵɵelementStart(0, "input", 21);
126
+ i0.ɵɵelementStart(0, "input", 27);
99
127
  i0.ɵɵlistener("change", function FileUploadComponent_div_2_input_4_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onFileSelect($event, $event.target.files)); })("click", function FileUploadComponent_div_2_input_4_Template_input_click_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onFileElemClick($event)); });
100
128
  i0.ɵɵelementEnd();
101
129
  } if (rf & 2) {
@@ -104,12 +132,12 @@ function FileUploadComponent_div_2_input_4_Template(rf, ctx) { if (rf & 1) {
104
132
  i0.ɵɵattribute("aria-label", ctx_r1.arialabel || "File selection field");
105
133
  } }
106
134
  function FileUploadComponent_div_2_Template(rf, ctx) { if (rf & 1) {
107
- i0.ɵɵelementStart(0, "div", 14)(1, "div", 15)(2, "form", 10);
108
- i0.ɵɵtemplate(3, FileUploadComponent_div_2_input_3_Template, 1, 3, "input", 11)(4, FileUploadComponent_div_2_input_4_Template, 1, 3, "input", 16);
109
- i0.ɵɵelementStart(5, "button", 17);
110
- i0.ɵɵelement(6, "i", 18)(7, "span", 19);
135
+ i0.ɵɵelementStart(0, "div", 18)(1, "div", 19)(2, "form", 10);
136
+ i0.ɵɵtemplate(3, FileUploadComponent_div_2_input_3_Template, 1, 3, "input", 20)(4, FileUploadComponent_div_2_input_4_Template, 1, 3, "input", 21);
137
+ i0.ɵɵelementStart(5, "button", 22);
138
+ i0.ɵɵelement(6, "i", 23)(7, "span", 24);
111
139
  i0.ɵɵelementEnd()()();
112
- i0.ɵɵelement(8, "div", 20);
140
+ i0.ɵɵelement(8, "div", 25);
113
141
  i0.ɵɵelementEnd();
114
142
  } if (rf & 2) {
115
143
  const ctx_r1 = i0.ɵɵnextContext();
@@ -128,9 +156,9 @@ function FileUploadComponent_div_2_Template(rf, ctx) { if (rf & 1) {
128
156
  } }
129
157
  function FileUploadComponent_button_3_Template(rf, ctx) { if (rf & 1) {
130
158
  const _r6 = i0.ɵɵgetCurrentView();
131
- i0.ɵɵelementStart(0, "button", 22);
159
+ i0.ɵɵelementStart(0, "button", 28);
132
160
  i0.ɵɵlistener("click", function FileUploadComponent_button_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.openFileSelector()); });
133
- i0.ɵɵelement(1, "i")(2, "span", 19);
161
+ i0.ɵɵelement(1, "i")(2, "span", 24);
134
162
  i0.ɵɵelementEnd();
135
163
  } if (rf & 2) {
136
164
  const ctx_r1 = i0.ɵɵnextContext();
@@ -140,8 +168,15 @@ function FileUploadComponent_button_3_Template(rf, ctx) { if (rf & 1) {
140
168
  i0.ɵɵadvance();
141
169
  i0.ɵɵproperty("innerHTML", ctx_r1.caption, i0.ɵɵsanitizeHtml);
142
170
  } }
143
- function FileUploadComponent_ul_4_div_1_li_1_span_9_Template(rf, ctx) { if (rf & 1) {
144
- i0.ɵɵelementStart(0, "span", 36);
171
+ function FileUploadComponent_ul_4_div_1_li_1_span_8_Template(rf, ctx) { if (rf & 1) {
172
+ i0.ɵɵelement(0, "span");
173
+ i0.ɵɵpipe(1, "stateClass");
174
+ } if (rf & 2) {
175
+ const ft_r7 = i0.ɵɵnextContext(2).$implicit;
176
+ i0.ɵɵclassMapInterpolate1("status-icon ", i0.ɵɵpipeBind1(1, 3, ft_r7.status), "");
177
+ } }
178
+ function FileUploadComponent_ul_4_div_1_li_1_span_10_Template(rf, ctx) { if (rf & 1) {
179
+ i0.ɵɵelementStart(0, "span", 47);
145
180
  i0.ɵɵtext(1);
146
181
  i0.ɵɵpipe(2, "filesize");
147
182
  i0.ɵɵelementEnd();
@@ -150,95 +185,102 @@ function FileUploadComponent_ul_4_div_1_li_1_span_9_Template(rf, ctx) { if (rf &
150
185
  i0.ɵɵadvance();
151
186
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ft_r7.size, 0));
152
187
  } }
153
- function FileUploadComponent_ul_4_div_1_li_1_div_10_Template(rf, ctx) { if (rf & 1) {
154
- i0.ɵɵelementStart(0, "div", 37);
155
- i0.ɵɵelement(1, "div", 38);
188
+ function FileUploadComponent_ul_4_div_1_li_1_span_11_Template(rf, ctx) { if (rf & 1) {
189
+ i0.ɵɵelement(0, "span", 34);
190
+ i0.ɵɵpipe(1, "stateClass");
191
+ } if (rf & 2) {
192
+ const ft_r7 = i0.ɵɵnextContext(2).$implicit;
193
+ const ctx_r1 = i0.ɵɵnextContext(2);
194
+ i0.ɵɵclassMapInterpolate1("status-icon ", i0.ɵɵpipeBind1(1, 4, ft_r7.status), "");
195
+ i0.ɵɵpropertyInterpolate("title", ft_r7.errMsg || ctx_r1.appLocale.MESSAGE_FILE_UPLOAD_FAILED);
196
+ } }
197
+ function FileUploadComponent_ul_4_div_1_li_1_span_12_Template(rf, ctx) { if (rf & 1) {
198
+ i0.ɵɵelementStart(0, "span", 48);
199
+ i0.ɵɵtext(1, "Upload Failed");
200
+ i0.ɵɵelementEnd();
201
+ } }
202
+ function FileUploadComponent_ul_4_div_1_li_1_div_13_Template(rf, ctx) { if (rf & 1) {
203
+ i0.ɵɵelementStart(0, "div", 49);
204
+ i0.ɵɵelement(1, "div", 50);
156
205
  i0.ɵɵelementEnd();
157
206
  } if (rf & 2) {
158
207
  const ft_r7 = i0.ɵɵnextContext(2).$implicit;
159
208
  i0.ɵɵadvance();
160
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(1, _c3, ft_r7.progress + "%"));
161
- } }
162
- function FileUploadComponent_ul_4_div_1_li_1_div_11_Template(rf, ctx) { if (rf & 1) {
163
- const _r8 = i0.ɵɵgetCurrentView();
164
- i0.ɵɵelementStart(0, "div", 39)(1, "a", 40);
165
- i0.ɵɵlistener("click", function FileUploadComponent_ul_4_div_1_li_1_div_11_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r8); const ft_r7 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.abortFileUpload(ft_r7)); });
166
- i0.ɵɵelement(2, "i", 41);
167
- i0.ɵɵelementEnd()();
209
+ i0.ɵɵproperty("ngClass", ft_r7.status === "error" ? "progress-bar-danger" : "progress-bar-info")("ngStyle", i0.ɵɵpureFunction1(2, _c3, ft_r7.progress + "%"));
168
210
  } }
169
- function FileUploadComponent_ul_4_div_1_li_1_div_12_Template(rf, ctx) { if (rf & 1) {
170
- i0.ɵɵelementStart(0, "div", 39);
171
- i0.ɵɵelement(1, "span");
172
- i0.ɵɵpipe(2, "stateClass");
211
+ function FileUploadComponent_ul_4_div_1_li_1_div_14_Template(rf, ctx) { if (rf & 1) {
212
+ i0.ɵɵelementStart(0, "div", 51);
213
+ i0.ɵɵtext(1);
173
214
  i0.ɵɵelementEnd();
174
215
  } if (rf & 2) {
175
216
  const ft_r7 = i0.ɵɵnextContext(2).$implicit;
176
217
  i0.ɵɵadvance();
177
- i0.ɵɵclassMapInterpolate1("status-icon ", i0.ɵɵpipeBind1(2, 3, ft_r7.status), "");
218
+ i0.ɵɵtextInterpolate1("", ft_r7.progress + "%", " ");
178
219
  } }
179
- function FileUploadComponent_ul_4_div_1_li_1_div_13_Template(rf, ctx) { if (rf & 1) {
180
- const _r9 = i0.ɵɵgetCurrentView();
181
- i0.ɵɵelementStart(0, "div", 39)(1, "a", 42);
182
- i0.ɵɵlistener("click", function FileUploadComponent_ul_4_div_1_li_1_div_13_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r9); const ft_r7 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.clear(ft_r7)); });
183
- i0.ɵɵelement(2, "i");
220
+ function FileUploadComponent_ul_4_div_1_li_1_div_15_Template(rf, ctx) { if (rf & 1) {
221
+ const _r8 = i0.ɵɵgetCurrentView();
222
+ i0.ɵɵelementStart(0, "div", 45)(1, "a", 52);
223
+ i0.ɵɵlistener("click", function FileUploadComponent_ul_4_div_1_li_1_div_15_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r8); const ft_r7 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.abortFileUpload(ft_r7)); });
224
+ i0.ɵɵelement(2, "i", 53);
184
225
  i0.ɵɵelementEnd()();
226
+ } }
227
+ function FileUploadComponent_ul_4_div_1_li_1_a_17_Template(rf, ctx) { if (rf & 1) {
228
+ const _r9 = i0.ɵɵgetCurrentView();
229
+ i0.ɵɵelementStart(0, "a", 54);
230
+ i0.ɵɵlistener("click", function FileUploadComponent_ul_4_div_1_li_1_a_17_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r9); const ft_r7 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.clear(ft_r7)); });
231
+ i0.ɵɵelement(1, "i");
232
+ i0.ɵɵelementEnd();
185
233
  } if (rf & 2) {
186
234
  const ctx_r1 = i0.ɵɵnextContext(4);
187
- i0.ɵɵadvance();
188
235
  i0.ɵɵpropertyInterpolate("title", ctx_r1.cleariconhint);
189
236
  i0.ɵɵadvance();
190
237
  i0.ɵɵclassMap(ctx_r1.cleariconclass);
191
238
  } }
192
- function FileUploadComponent_ul_4_div_1_li_1_div_14_Template(rf, ctx) { if (rf & 1) {
193
- i0.ɵɵelementStart(0, "div", 43);
194
- i0.ɵɵelement(1, "span");
195
- i0.ɵɵpipe(2, "stateClass");
196
- i0.ɵɵelementEnd();
197
- } if (rf & 2) {
198
- const ft_r7 = i0.ɵɵnextContext(2).$implicit;
199
- const ctx_r1 = i0.ɵɵnextContext(2);
200
- i0.ɵɵpropertyInterpolate("title", ft_r7.errMsg || ctx_r1.appLocale.MESSAGE_FILE_UPLOAD_FAILED);
201
- i0.ɵɵadvance();
202
- i0.ɵɵclassMapInterpolate1("status-icon ", i0.ɵɵpipeBind1(2, 4, ft_r7.status), "");
203
- } }
204
239
  function FileUploadComponent_ul_4_div_1_li_1_Template(rf, ctx) { if (rf & 1) {
205
- i0.ɵɵelementStart(0, "li", 26)(1, "div", 27);
206
- i0.ɵɵelement(2, "div", 28);
240
+ i0.ɵɵelementStart(0, "li", 32)(1, "div", 33);
241
+ i0.ɵɵelement(2, "div", 34);
207
242
  i0.ɵɵpipe(3, "fileIconClass");
208
- i0.ɵɵelementStart(4, "div", 29)(5, "p", 30)(6, "label", 31);
243
+ i0.ɵɵelementStart(4, "div", 35)(5, "p", 36)(6, "span", 37);
209
244
  i0.ɵɵtext(7);
210
245
  i0.ɵɵelementEnd();
211
- i0.ɵɵelement(8, "br");
212
- i0.ɵɵtemplate(9, FileUploadComponent_ul_4_div_1_li_1_span_9_Template, 3, 4, "span", 32);
246
+ i0.ɵɵtemplate(8, FileUploadComponent_ul_4_div_1_li_1_span_8_Template, 2, 5, "span", 38);
247
+ i0.ɵɵelement(9, "br");
248
+ i0.ɵɵ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);
213
249
  i0.ɵɵelementEnd();
214
- i0.ɵɵtemplate(10, FileUploadComponent_ul_4_div_1_li_1_div_10_Template, 2, 3, "div", 33);
250
+ i0.ɵɵ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);
215
251
  i0.ɵɵelementEnd();
216
- i0.ɵɵtemplate(11, FileUploadComponent_ul_4_div_1_li_1_div_11_Template, 3, 0, "div", 34)(12, FileUploadComponent_ul_4_div_1_li_1_div_12_Template, 3, 5, "div", 34)(13, FileUploadComponent_ul_4_div_1_li_1_div_13_Template, 3, 4, "div", 34)(14, FileUploadComponent_ul_4_div_1_li_1_div_14_Template, 3, 6, "div", 35);
217
- i0.ɵɵelementEnd()();
252
+ i0.ɵɵtemplate(15, FileUploadComponent_ul_4_div_1_li_1_div_15_Template, 3, 0, "div", 44);
253
+ i0.ɵɵelementStart(16, "div", 45);
254
+ i0.ɵɵtemplate(17, FileUploadComponent_ul_4_div_1_li_1_a_17_Template, 2, 4, "a", 46);
255
+ i0.ɵɵelementEnd()()();
218
256
  } if (rf & 2) {
219
257
  const ft_r7 = i0.ɵɵnextContext().$implicit;
220
258
  const ctx_r1 = i0.ɵɵnextContext(2);
221
259
  i0.ɵɵadvance(2);
222
- i0.ɵɵclassMapInterpolate1("media-left media-middle file-icon ", i0.ɵɵpipeBind1(3, 11, ctx_r1.getFileExtension(ft_r7.name)), "");
260
+ i0.ɵɵclassMapInterpolate1("media-left media-middle file-icon ", i0.ɵɵpipeBind1(3, 13, ctx_r1.getFileExtension(ft_r7.name)), "");
223
261
  i0.ɵɵpropertyInterpolate("title", ctx_r1.getFileExtension(ft_r7.name));
224
262
  i0.ɵɵadvance(5);
225
- i0.ɵɵtextInterpolate(ft_r7.name);
263
+ i0.ɵɵtextInterpolate(ft_r7.storageName || ft_r7.name);
264
+ i0.ɵɵadvance();
265
+ i0.ɵɵproperty("ngIf", ft_r7.status === "success");
226
266
  i0.ɵɵadvance(2);
227
267
  i0.ɵɵproperty("ngIf", ft_r7.fileLength !== 0);
228
268
  i0.ɵɵadvance();
229
- i0.ɵɵproperty("ngIf", ft_r7.status === "onProgress");
269
+ i0.ɵɵproperty("ngIf", ft_r7.status === "error");
230
270
  i0.ɵɵadvance();
231
- i0.ɵɵproperty("ngIf", ft_r7.status === "onProgress" || ft_r7.status === "queued");
271
+ i0.ɵɵproperty("ngIf", ft_r7.status === "error");
232
272
  i0.ɵɵadvance();
233
- i0.ɵɵproperty("ngIf", ft_r7.status === "success");
273
+ i0.ɵɵproperty("ngIf", ft_r7.status === "onProgress" || ctx_r1.showprogressbar);
234
274
  i0.ɵɵadvance();
235
- i0.ɵɵproperty("ngIf", ctx_r1.cleariconclass !== "" && ft_r7.status !== "onProgress");
275
+ i0.ɵɵproperty("ngIf", (ft_r7.status === "onProgress" || ctx_r1.showprogressbar && ctx_r1.showprogressbarpercentage) && ft_r7.progress);
236
276
  i0.ɵɵadvance();
237
- i0.ɵɵproperty("ngIf", ft_r7.status === "error");
277
+ i0.ɵɵproperty("ngIf", ft_r7.status === "onProgress" || ft_r7.status === "queued");
278
+ i0.ɵɵadvance(2);
279
+ i0.ɵɵproperty("ngIf", ctx_r1.cleariconclass !== "" && ft_r7.status !== "onProgress");
238
280
  } }
239
281
  function FileUploadComponent_ul_4_div_1_Template(rf, ctx) { if (rf & 1) {
240
282
  i0.ɵɵelementStart(0, "div");
241
- i0.ɵɵtemplate(1, FileUploadComponent_ul_4_div_1_li_1_Template, 15, 13, "li", 25);
283
+ i0.ɵɵtemplate(1, FileUploadComponent_ul_4_div_1_li_1_Template, 18, 15, "li", 31);
242
284
  i0.ɵɵelementEnd();
243
285
  } if (rf & 2) {
244
286
  const ft_r7 = ctx.$implicit;
@@ -246,25 +288,25 @@ function FileUploadComponent_ul_4_div_1_Template(rf, ctx) { if (rf & 1) {
246
288
  i0.ɵɵproperty("ngIf", ft_r7.status !== "abort");
247
289
  } }
248
290
  function FileUploadComponent_ul_4_Template(rf, ctx) { if (rf & 1) {
249
- i0.ɵɵelementStart(0, "ul", 23);
250
- i0.ɵɵtemplate(1, FileUploadComponent_ul_4_div_1_Template, 2, 1, "div", 24);
291
+ i0.ɵɵelementStart(0, "ul", 29);
292
+ i0.ɵɵtemplate(1, FileUploadComponent_ul_4_div_1_Template, 2, 1, "div", 30);
251
293
  i0.ɵɵelementEnd();
252
294
  } if (rf & 2) {
253
295
  const ctx_r1 = i0.ɵɵnextContext();
254
296
  i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction2(2, _c2, ctx_r1.filelistheight, ctx_r1.overflow));
255
297
  i0.ɵɵadvance();
256
- i0.ɵɵproperty("ngForOf", ctx_r1.multiple ? ctx_r1.multipleSelectedFiles : ctx_r1.selectedFiles);
298
+ i0.ɵɵproperty("ngForOf", ctx_r1.uploadedFiles);
257
299
  } }
258
300
  function FileUploadComponent_ul_5_li_1_Template(rf, ctx) { if (rf & 1) {
259
- i0.ɵɵelementStart(0, "li", 26)(1, "div", 27);
260
- i0.ɵɵelement(2, "div", 46);
261
- i0.ɵɵelementStart(3, "div", 29)(4, "p", 30)(5, "label", 31);
301
+ i0.ɵɵelementStart(0, "li", 32)(1, "div", 33);
302
+ i0.ɵɵelement(2, "div", 57);
303
+ i0.ɵɵelementStart(3, "div", 35)(4, "p", 58)(5, "label", 37);
262
304
  i0.ɵɵtext(6);
263
305
  i0.ɵɵelementEnd();
264
306
  i0.ɵɵelement(7, "br");
265
307
  i0.ɵɵelementEnd()();
266
- i0.ɵɵelementStart(8, "div", 39);
267
- i0.ɵɵelement(9, "span", 47);
308
+ i0.ɵɵelementStart(8, "div", 45);
309
+ i0.ɵɵelement(9, "span", 59);
268
310
  i0.ɵɵelementEnd()()();
269
311
  } if (rf & 2) {
270
312
  const ft_r10 = ctx.$implicit;
@@ -272,8 +314,8 @@ function FileUploadComponent_ul_5_li_1_Template(rf, ctx) { if (rf & 1) {
272
314
  i0.ɵɵtextInterpolate(ft_r10.name);
273
315
  } }
274
316
  function FileUploadComponent_ul_5_Template(rf, ctx) { if (rf & 1) {
275
- i0.ɵɵelementStart(0, "ul", 44);
276
- i0.ɵɵtemplate(1, FileUploadComponent_ul_5_li_1_Template, 10, 1, "li", 45);
317
+ i0.ɵɵelementStart(0, "ul", 55);
318
+ i0.ɵɵtemplate(1, FileUploadComponent_ul_5_li_1_Template, 10, 1, "li", 56);
277
319
  i0.ɵɵelementEnd();
278
320
  } if (rf & 2) {
279
321
  const ctx_r1 = i0.ɵɵnextContext();
@@ -390,8 +432,8 @@ class FileUploadComponent extends StylableComponent {
390
432
  * @param $files
391
433
  */
392
434
  onSelectEventCall($event, $files) {
393
- this.multipleSelectedFiles = this.multiple ? [...this.multipleSelectedFiles, ...$files] : $files;
394
435
  this.selectedFiles = $files;
436
+ this.uploadedFiles = this.multiple ? [...this.uploadedFiles, ...$files] : $files;
395
437
  setTimeout(() => {
396
438
  this.invokeEventCallback('select', {
397
439
  $event: $.extend($event.$files || {}, $files),
@@ -413,12 +455,8 @@ class FileUploadComponent extends StylableComponent {
413
455
  }
414
456
  /*this function to clear the specified file. if argument is not provided, it clears the complete list */
415
457
  clear(fileObj) {
416
- if (this.multiple) {
417
- this.multipleSelectedFiles = (fileObj) ? this.multipleSelectedFiles.filter((file) => file !== fileObj) : [];
418
- }
419
- else {
420
- this.selectedFiles = (fileObj) ? this.selectedFiles.filter((file) => file !== fileObj) : [];
421
- }
458
+ this.selectedFiles = (fileObj) ? this.selectedFiles.filter((file) => file !== fileObj) : [];
459
+ this.uploadedFiles = (fileObj) ? this.uploadedFiles.filter((file) => file !== fileObj) : [];
422
460
  }
423
461
  /*this function to set the class names for clear icon */
424
462
  setClearIconClass(classValue) {
@@ -566,7 +604,7 @@ class FileUploadComponent extends StylableComponent {
566
604
  this.app = app;
567
605
  this.onSelectEvt = onSelectEvt;
568
606
  this.selectedFiles = [];
569
- this.multipleSelectedFiles = [];
607
+ this.uploadedFiles = [];
570
608
  this.selectedFolders = [];
571
609
  this.fileTransfers = {};
572
610
  this.caption = 'Upload';
@@ -592,12 +630,6 @@ class FileUploadComponent extends StylableComponent {
592
630
  this.defaultAllowedExtensions = this.allowedFileUploadExtensions.split(',').map(item => item.trim()).map(item => item.endsWith('/*') ? item : `.${item}`);
593
631
  this.chooseFilter = this.defaultAllowedExtensions.includes('*/*') ? '' : this.defaultAllowedExtensions;
594
632
  this.fileUploadMessage = 'Drop your files here or click here to browse';
595
- this.uploadedFiles = {
596
- fileName: '',
597
- path: '',
598
- length: '',
599
- status: ''
600
- };
601
633
  this.uploadUrl = 'services';
602
634
  // styler(this.nativeElement, this);
603
635
  }
@@ -621,9 +653,9 @@ class FileUploadComponent extends StylableComponent {
621
653
  static { this.ɵfac = function FileUploadComponent_Factory(t) { return new (t || FileUploadComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1.App), i0.ɵɵinjectAttribute('select.event'), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
622
654
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FileUploadComponent, selectors: [["", "wmFileUpload", ""]], features: [i0.ɵɵProvidersFeature([
623
655
  provideAsWidgetRef(FileUploadComponent)
624
- ]), i0.ɵɵ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, "caption", 3, "innerHtml"], [1, "form-horizontal", 3, "name"], ["class", "file-input", "multiple", "", "name", "files", "type", "file", 3, "accept", "disabled", "change", "click", 4, "ngIf"], ["href", "javascript:void(0);", 1, "app-anchor"], ["multiple", "", "name", "files", "type", "file", 1, "file-input", 3, "change", "click", "accept", "disabled"], [1, "app-single-file-upload"], [1, "app-button-wrapper"], ["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"], ["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"], [1, "upload-title"], ["class", "filesize", 4, "ngIf"], ["class", "progress", 4, "ngIf"], ["class", "media-right media-middle", 4, "ngIf"], ["class", "media-right media-middle", 3, "title", 4, "ngIf"], [1, "filesize"], [1, "progress"], [1, "progress-bar", "progress-bar-striped", "progress-bar-info", 3, "ngStyle"], [1, "media-right", "media-middle"], ["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, "media-right", "media-middle", 3, "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, "status-icon", "wi", "wi-cancel", "text-danger"]], template: function FileUploadComponent_Template(rf, ctx) { if (rf & 1) {
656
+ ]), i0.ɵɵ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) {
625
657
  i0.ɵɵelementStart(0, "div", 0);
626
- i0.ɵɵtemplate(1, FileUploadComponent_div_1_Template, 9, 10, "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);
658
+ i0.ɵɵ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);
627
659
  i0.ɵɵelementEnd();
628
660
  } if (rf & 2) {
629
661
  i0.ɵɵadvance();
@@ -633,7 +665,7 @@ class FileUploadComponent extends StylableComponent {
633
665
  i0.ɵɵadvance();
634
666
  i0.ɵɵproperty("ngIf", ctx._isCordova);
635
667
  i0.ɵɵadvance();
636
- i0.ɵɵproperty("ngIf", ctx.selectedFiles.length > 0);
668
+ i0.ɵɵproperty("ngIf", ctx.uploadedFiles.length > 0);
637
669
  i0.ɵɵadvance();
638
670
  i0.ɵɵproperty("ngIf", ctx.selectedFolders.length > 0);
639
671
  } }, dependencies: [i2.NgClass, i2.NgForOf, i2.NgIf, i2.NgStyle, i3.FileIconClassPipe, i3.FileSizePipe, i3.StateClassPipe], encapsulation: 2 }); }
@@ -642,7 +674,7 @@ class FileUploadComponent extends StylableComponent {
642
674
  type: Component,
643
675
  args: [{ selector: '[wmFileUpload]', providers: [
644
676
  provideAsWidgetRef(FileUploadComponent)
645
- ], 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=\"caption\"></label>\n <form class=\"form-horizontal\" name=\"{{formName}}\">\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\"\n type=\"file\">\n <a href=\"javascript:void(0);\" class=\"app-anchor\">{{fileUploadMessage}}</a>\n </form>\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=\"selectedFiles.length > 0\" >\n <div *ngFor=\"let ft of (multiple ? multipleSelectedFiles : selectedFiles)\">\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\">\n <label class=\"upload-title\">{{ft.name}}</label><br/>\n <span class=\"filesize\" *ngIf=\"ft.fileLength !== 0\">{{ft.size | filesize:0}}</span>\n </p>\n <div class=\"progress\" *ngIf=\"ft.status === 'onProgress'\">\n <div class=\"progress-bar progress-bar-striped progress-bar-info\" [ngStyle]=\"{width: (ft.progress +'%')}\"></div>\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\n <div class=\"media-right media-middle\" *ngIf=\"ft.status === 'success'\">\n <span class=\"status-icon {{ft.status | stateClass }}\"></span>\n </div>\n <div *ngIf=\"cleariconclass !== '' && ft.status !== 'onProgress'\" class=\"media-right media-middle\">\n <a (click)=\"clear(ft)\" 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 === 'error'\" title=\"{{ft.errMsg || this.appLocale.MESSAGE_FILE_UPLOAD_FAILED}}\">\n <span class=\"status-icon {{ft.status | stateClass }}\"></span>\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" }]
677
+ ], 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" }]
646
678
  }], () => [{ type: i0.Injector }, { type: i1.App }, { type: undefined, decorators: [{
647
679
  type: Attribute,
648
680
  args: ['select.event']