carbon-components-angular 3.17.0 → 3.17.4

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 (197) hide show
  1. package/combobox/combobox.module.ngfactory.js +4 -3
  2. package/combobox/combobox.module.ngsummary.json +1 -1
  3. package/docs/documentation/classes/NumberChange.html +9 -8
  4. package/docs/documentation/components/Accordion.html +1 -1
  5. package/docs/documentation/components/AccordionItem.html +1 -1
  6. package/docs/documentation/components/AlertModal.html +1 -1
  7. package/docs/documentation/components/Breadcrumb.html +1 -1
  8. package/docs/documentation/components/BreadcrumbItemComponent.html +1 -1
  9. package/docs/documentation/components/Checkbox.html +1 -1
  10. package/docs/documentation/components/ClickableTile.html +1 -1
  11. package/docs/documentation/components/CodeSnippet.html +1 -1
  12. package/docs/documentation/components/ComboBox.html +1 -1
  13. package/docs/documentation/components/ContentSwitcher.html +1 -1
  14. package/docs/documentation/components/DatePicker.html +1 -1
  15. package/docs/documentation/components/DatePickerInput.html +1 -1
  16. package/docs/documentation/components/Dialog.html +1 -1
  17. package/docs/documentation/components/DialogPlaceholder.html +1 -1
  18. package/docs/documentation/components/Documentation.html +1 -1
  19. package/docs/documentation/components/Dropdown.html +150 -71
  20. package/docs/documentation/components/DropdownList.html +1 -1
  21. package/docs/documentation/components/ExpandableTile.html +1 -1
  22. package/docs/documentation/components/File.html +50 -7
  23. package/docs/documentation/components/FileUploader.html +40 -28
  24. package/docs/documentation/components/Hamburger.html +1 -1
  25. package/docs/documentation/components/Header.html +429 -12
  26. package/docs/documentation/components/HeaderAction.html +7 -9
  27. package/docs/documentation/components/HeaderGlobal.html +1 -1
  28. package/docs/documentation/components/HeaderItem.html +1 -1
  29. package/docs/documentation/components/HeaderMenu.html +1 -1
  30. package/docs/documentation/components/HeaderNavigation.html +1 -1
  31. package/docs/documentation/components/InlineLoading.html +1 -1
  32. package/docs/documentation/components/Label.html +1 -1
  33. package/docs/documentation/components/ListColumn.html +1 -1
  34. package/docs/documentation/components/ListHeader.html +1 -1
  35. package/docs/documentation/components/ListRow.html +1 -1
  36. package/docs/documentation/components/Loading.html +1 -1
  37. package/docs/documentation/components/Modal.html +1 -1
  38. package/docs/documentation/components/ModalFooter.html +1 -1
  39. package/docs/documentation/components/ModalHeader.html +1 -1
  40. package/docs/documentation/components/ModalPlaceholder.html +1 -1
  41. package/docs/documentation/components/Notification.html +84 -19
  42. package/docs/documentation/components/{Number.html → NumberComponent.html} +14 -13
  43. package/docs/documentation/components/OverflowMenu.html +1 -1
  44. package/docs/documentation/components/OverflowMenuOption.html +1 -1
  45. package/docs/documentation/components/OverflowMenuPane.html +1 -1
  46. package/docs/documentation/components/Overlay.html +1 -1
  47. package/docs/documentation/components/Pagination.html +1 -1
  48. package/docs/documentation/components/Panel.html +1 -1
  49. package/docs/documentation/components/Placeholder.html +1 -1
  50. package/docs/documentation/components/ProductSwitcher.html +1 -1
  51. package/docs/documentation/components/ProgressIndicator.html +1 -1
  52. package/docs/documentation/components/Radio.html +1 -1
  53. package/docs/documentation/components/RadioGroup.html +1 -1
  54. package/docs/documentation/components/Sample.html +1 -1
  55. package/docs/documentation/components/SampleSub.html +1 -1
  56. package/docs/documentation/components/Search.html +1 -1
  57. package/docs/documentation/components/Select.html +1 -1
  58. package/docs/documentation/components/SelectionTile.html +1 -1
  59. package/docs/documentation/components/SideNav.html +1 -1
  60. package/docs/documentation/components/SideNavHeader.html +1 -1
  61. package/docs/documentation/components/SideNavItem.html +1 -1
  62. package/docs/documentation/components/SideNavMenu.html +1 -1
  63. package/docs/documentation/components/Slider.html +1 -1
  64. package/docs/documentation/components/StructuredList.html +1 -1
  65. package/docs/documentation/components/SwitcherList.html +1 -1
  66. package/docs/documentation/components/SwitcherListItem.html +1 -1
  67. package/docs/documentation/components/Tab.html +1 -1
  68. package/docs/documentation/components/TabHeaders.html +33 -31
  69. package/docs/documentation/components/Table.html +1 -1
  70. package/docs/documentation/components/TableBody.html +24 -22
  71. package/docs/documentation/components/TableCheckbox.html +1 -1
  72. package/docs/documentation/components/TableContainer.html +1 -1
  73. package/docs/documentation/components/TableData.html +1 -1
  74. package/docs/documentation/components/TableExpandButton.html +1 -1
  75. package/docs/documentation/components/TableExpandedRow.html +1 -1
  76. package/docs/documentation/components/TableHead.html +1 -1
  77. package/docs/documentation/components/TableHeadCell.html +1 -1
  78. package/docs/documentation/components/TableHeadCheckbox.html +1 -1
  79. package/docs/documentation/components/TableHeadExpand.html +1 -1
  80. package/docs/documentation/components/TableHeader.html +1 -1
  81. package/docs/documentation/components/TableRowComponent.html +1 -1
  82. package/docs/documentation/components/TableToolbar.html +1 -1
  83. package/docs/documentation/components/TableToolbarActions.html +1 -1
  84. package/docs/documentation/components/TableToolbarContent.html +1 -1
  85. package/docs/documentation/components/TableToolbarSearch.html +1 -1
  86. package/docs/documentation/components/Tabs.html +1 -1
  87. package/docs/documentation/components/Tag.html +1 -1
  88. package/docs/documentation/components/TagFilter.html +1 -1
  89. package/docs/documentation/components/Tile.html +1 -1
  90. package/docs/documentation/components/TileGroup.html +1 -1
  91. package/docs/documentation/components/TimePicker.html +1 -1
  92. package/docs/documentation/components/TimePickerSelect.html +1 -1
  93. package/docs/documentation/components/Toast.html +103 -28
  94. package/docs/documentation/components/Toggle.html +1 -1
  95. package/docs/documentation/components/Tooltip.html +1 -1
  96. package/docs/documentation/components/TooltipDefinition.html +1 -1
  97. package/docs/documentation/components/TooltipIcon.html +1 -1
  98. package/docs/documentation/coverage.html +17 -17
  99. package/docs/documentation/graph/dependencies.dot +1 -3
  100. package/docs/documentation/interfaces/FileItem.html +66 -0
  101. package/docs/documentation/interfaces/NotificationContent.html +78 -0
  102. package/docs/documentation/interfaces/ToastContent.html +2 -0
  103. package/docs/documentation/js/menu-wc.js +1 -1
  104. package/docs/documentation/js/search/search_index.js +2 -2
  105. package/docs/documentation/modules/DropdownModule.html +3 -1
  106. package/docs/documentation/modules/FileUploaderModule.html +3 -1
  107. package/docs/documentation/modules/NumberModule/dependencies.svg +30 -56
  108. package/docs/documentation/modules/NumberModule.html +32 -58
  109. package/docs/storybook/iframe.html +3 -3
  110. package/docs/storybook/index.html +1 -1
  111. package/docs/storybook/main.604029a81eeba7dfa6f2.bundle.js +1 -0
  112. package/docs/storybook/{main.9b7b4c6bd6a4a7a1e383.bundle.js → main.d185cd03d35d1c8840ae.bundle.js} +271 -122
  113. package/docs/storybook/main.d185cd03d35d1c8840ae.bundle.js.map +1 -0
  114. package/docs/storybook/{runtime~main.9b7b4c6bd6a4a7a1e383.bundle.js → runtime~main.d185cd03d35d1c8840ae.bundle.js} +1 -1
  115. package/docs/storybook/{runtime~main.9b7b4c6bd6a4a7a1e383.bundle.js.map → runtime~main.d185cd03d35d1c8840ae.bundle.js.map} +1 -1
  116. package/docs/storybook/{vendors~main.9b7b4c6bd6a4a7a1e383.bundle.js → vendors~main.d185cd03d35d1c8840ae.bundle.js} +1 -1
  117. package/docs/storybook/{vendors~main.9b7b4c6bd6a4a7a1e383.bundle.js.map → vendors~main.d185cd03d35d1c8840ae.bundle.js.map} +1 -1
  118. package/docs/storybook/{vendors~main.3867fd102613e5004ee8.bundle.js → vendors~main.ffd26d1a4b0f598e04d1.bundle.js} +15 -15
  119. package/dropdown/dropdown.component.d.ts +8 -0
  120. package/dropdown/dropdown.component.js +15 -1
  121. package/dropdown/dropdown.component.js.map +1 -1
  122. package/dropdown/dropdown.component.metadata.json +1 -1
  123. package/dropdown/dropdown.component.ngfactory.js +15 -12
  124. package/dropdown/dropdown.component.ngfactory.js.map +1 -1
  125. package/dropdown/dropdown.component.ngsummary.json +1 -1
  126. package/dropdown/dropdown.module.js +3 -1
  127. package/dropdown/dropdown.module.js.map +1 -1
  128. package/dropdown/dropdown.module.metadata.json +1 -1
  129. package/dropdown/dropdown.module.ngfactory.js +2 -1
  130. package/dropdown/dropdown.module.ngfactory.js.map +1 -1
  131. package/dropdown/dropdown.module.ngsummary.json +1 -1
  132. package/file-uploader/file-item.interface.d.ts +2 -0
  133. package/file-uploader/file-item.interface.js.map +1 -1
  134. package/file-uploader/file-uploader.component.js +3 -1
  135. package/file-uploader/file-uploader.component.js.map +1 -1
  136. package/file-uploader/file-uploader.component.metadata.json +1 -1
  137. package/file-uploader/file-uploader.component.ngfactory.js +9 -8
  138. package/file-uploader/file-uploader.component.ngfactory.js.map +1 -1
  139. package/file-uploader/file-uploader.module.js +3 -1
  140. package/file-uploader/file-uploader.module.js.map +1 -1
  141. package/file-uploader/file-uploader.module.metadata.json +1 -1
  142. package/file-uploader/file-uploader.module.ngfactory.js +2 -1
  143. package/file-uploader/file-uploader.module.ngfactory.js.map +1 -1
  144. package/file-uploader/file-uploader.module.ngsummary.json +1 -1
  145. package/file-uploader/file.component.d.ts +1 -0
  146. package/file-uploader/file.component.js +10 -2
  147. package/file-uploader/file.component.js.map +1 -1
  148. package/file-uploader/file.component.metadata.json +1 -1
  149. package/file-uploader/file.component.ngfactory.js +19 -16
  150. package/file-uploader/file.component.ngfactory.js.map +1 -1
  151. package/file-uploader/file.component.ngsummary.json +1 -1
  152. package/notification/notification-content.interface.d.ts +2 -0
  153. package/notification/notification-content.interface.js.map +1 -1
  154. package/notification/notification.component.d.ts +3 -0
  155. package/notification/notification.component.js +16 -2
  156. package/notification/notification.component.js.map +1 -1
  157. package/notification/notification.component.metadata.json +1 -1
  158. package/notification/notification.component.ngfactory.js +4 -3
  159. package/notification/notification.component.ngfactory.js.map +1 -1
  160. package/notification/notification.component.ngsummary.json +1 -1
  161. package/notification/notification.module.ngfactory.js.map +1 -1
  162. package/notification/toast.component.d.ts +1 -0
  163. package/notification/toast.component.js +10 -2
  164. package/notification/toast.component.js.map +1 -1
  165. package/notification/toast.component.metadata.json +1 -1
  166. package/notification/toast.component.ngfactory.js +7 -6
  167. package/notification/toast.component.ngfactory.js.map +1 -1
  168. package/notification/toast.component.ngsummary.json +1 -1
  169. package/number-input/number.component.d.ts +3 -2
  170. package/number-input/number.component.js +22 -21
  171. package/number-input/number.component.js.map +1 -1
  172. package/package.json +3 -3
  173. package/table/body/table-body.component.js +1 -1
  174. package/table/body/table-body.component.js.map +1 -1
  175. package/table/body/table-body.component.metadata.json +1 -1
  176. package/table/body/table-body.component.ngfactory.js +1 -1
  177. package/table/body/table-body.component.ngfactory.js.map +1 -1
  178. package/tabs/tab-headers.component.js +1 -1
  179. package/tabs/tab-headers.component.js.map +1 -1
  180. package/tabs/tab-headers.component.metadata.json +1 -1
  181. package/tabs/tab-headers.component.ngfactory.js +1 -1
  182. package/tabs/tab-headers.component.ngfactory.js.map +1 -1
  183. package/ui-shell/header/header-action.component.js +1 -1
  184. package/ui-shell/header/header-action.component.js.map +1 -1
  185. package/ui-shell/header/header-action.component.metadata.json +1 -1
  186. package/ui-shell/header/header-action.component.ngfactory.js +5 -6
  187. package/ui-shell/header/header-action.component.ngfactory.js.map +1 -1
  188. package/ui-shell/header/header.component.d.ts +26 -1
  189. package/ui-shell/header/header.component.js +40 -5
  190. package/ui-shell/header/header.component.js.map +1 -1
  191. package/ui-shell/header/header.component.metadata.json +1 -1
  192. package/ui-shell/header/header.component.ngfactory.js +9 -3
  193. package/ui-shell/header/header.component.ngfactory.js.map +1 -1
  194. package/ui-shell/header/header.component.ngsummary.json +1 -1
  195. package/ui-shell/header/header.module.ngfactory.js.map +1 -1
  196. package/docs/storybook/main.51fd4ec04666087c08cd.bundle.js +0 -1
  197. package/docs/storybook/main.9b7b4c6bd6a4a7a1e383.bundle.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown.module.ngfactory.js","sourceRoot":"","sources":["../src/dropdown/dropdown.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './dropdown.module';\nimport * as i2 from '@angular/common';\nimport * as i3 from '@angular/forms';\nimport * as i4 from '../placeholder/placeholder.component';\nimport * as i5 from '@carbon/icons-angular/lib/chevron--down/16';\nimport * as i6 from './dropdown.component';\nimport * as i7 from './list/dropdown-list.component';\nimport * as i8 from './scrollable-list.directive';\nimport * as i9 from '../i18n/replace.pipe';\nimport * as i10 from '../i18n/i18n.module';\nimport * as i11 from '../placeholder/placeholder.module';\nexport const DropdownModuleNgFactory:i0.NgModuleFactory<i1.DropdownModule> = (null as any);\nvar _decl0_0:i2.NgClass = (<any>(null as any));\nvar _decl0_1:i2.NgComponentOutlet = (<any>(null as any));\nvar _decl0_2:i2.NgForOf<any> = (<any>(null as any));\nvar _decl0_3:i2.NgIf = (<any>(null as any));\nvar _decl0_4:i2.NgTemplateOutlet = (<any>(null as any));\nvar _decl0_5:i2.NgStyle = (<any>(null as any));\nvar _decl0_6:i2.NgSwitch = (<any>(null as any));\nvar _decl0_7:i2.NgSwitchCase = (<any>(null as any));\nvar _decl0_8:i2.NgSwitchDefault = (<any>(null as any));\nvar _decl0_9:i2.NgPlural = (<any>(null as any));\nvar _decl0_10:i2.NgPluralCase = (<any>(null as any));\nvar _decl0_11:i3.ɵangular_packages_forms_forms_bg = (<any>(null as any));\nvar _decl0_12:i3.NgSelectOption = (<any>(null as any));\nvar _decl0_13:i3.ɵangular_packages_forms_forms_r = (<any>(null as any));\nvar _decl0_14:i3.DefaultValueAccessor = (<any>(null as any));\nvar _decl0_15:i3.ɵangular_packages_forms_forms_bd = (<any>(null as any));\nvar _decl0_16:i3.ɵangular_packages_forms_forms_bf = (<any>(null as any));\nvar _decl0_17:i3.CheckboxControlValueAccessor = (<any>(null as any));\nvar _decl0_18:i3.SelectControlValueAccessor = (<any>(null as any));\nvar _decl0_19:i3.SelectMultipleControlValueAccessor = (<any>(null as any));\nvar _decl0_20:i3.RadioControlValueAccessor = (<any>(null as any));\nvar _decl0_21:i3.NgControlStatus = (<any>(null as any));\nvar _decl0_22:i3.NgControlStatusGroup = (<any>(null as any));\nvar _decl0_23:i3.RequiredValidator = (<any>(null as any));\nvar _decl0_24:i3.MinLengthValidator = (<any>(null as any));\nvar _decl0_25:i3.MaxLengthValidator = (<any>(null as any));\nvar _decl0_26:i3.PatternValidator = (<any>(null as any));\nvar _decl0_27:i3.CheckboxRequiredValidator = (<any>(null as any));\nvar _decl0_28:i3.EmailValidator = (<any>(null as any));\nvar _decl0_29:i3.NgModel = (<any>(null as any));\nvar _decl0_30:i3.NgModelGroup = (<any>(null as any));\nvar _decl0_31:i3.NgForm = (<any>(null as any));\nvar _decl0_32:i4.Placeholder = (<any>(null as any));\nvar _decl0_33:i5.ChevronDown16 = (<any>(null as any));\nvar _decl0_34:i5.ChevronDown16Directive = (<any>(null as any));\nvar _decl0_35:i6.Dropdown = (<any>(null as any));\nvar _decl0_36:i7.DropdownList = (<any>(null as any));\nvar _decl0_37:i8.ScrollableList = (<any>(null as any));\nvar _decl0_38:i2.AsyncPipe = (<any>(null as any));\nvar _decl0_39:i2.UpperCasePipe = (<any>(null as any));\nvar _decl0_40:i2.LowerCasePipe = (<any>(null as any));\nvar _decl0_41:i2.JsonPipe = (<any>(null as any));\nvar _decl0_42:i2.SlicePipe = (<any>(null as any));\nvar _decl0_43:i2.DecimalPipe = (<any>(null as any));\nvar _decl0_44:i2.PercentPipe = (<any>(null as any));\nvar _decl0_45:i2.TitleCasePipe = (<any>(null as any));\nvar _decl0_46:i2.CurrencyPipe = (<any>(null as any));\nvar _decl0_47:i2.DatePipe = (<any>(null as any));\nvar _decl0_48:i2.I18nPluralPipe = (<any>(null as any));\nvar _decl0_49:i2.I18nSelectPipe = (<any>(null as any));\nvar _decl0_50:i2.KeyValuePipe = (<any>(null as any));\nvar _decl0_51:i9.ReplacePipe = (<any>(null as any));\nvar _decl0_52:i2.CommonModule = (<any>(null as any));\nvar _decl0_53:i3.FormsModule = (<any>(null as any));\nvar _decl0_54:i10.I18nModule = (<any>(null as any));\nvar _decl0_55:i11.PlaceholderModule = (<any>(null as any));\nvar _decl0_56:i5.ChevronDown16Module = (<any>(null as any));\nvar _decl0_57:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_58:i0.ElementRef<any> = (<any>(null as any));\nfunction _View_Dropdown_Host_1_0():void {\n var _any:any = (null as any);\n}\nfunction _View_Dropdown_1_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_35.label;\n currVal_0;\n const currVal_1:any = _decl0_35.helperText;\n currVal_1;\n const currVal_2:any = 'bx--dropdown bx--list-box';\n currVal_2;\n const currVal_3:any = (<any>{'bx--dropdown--light':(_decl0_35.theme === 'light'),\n 'bx--list-box--inline':_decl0_35.inline,'bx--skeleton':_decl0_35.skeleton,'bx--dropdown--disabled bx--list-box--disabled':_decl0_35.disabled});\n currVal_3;\n const currVal_4:any = _decl0_35.id;\n currVal_4;\n const currVal_5:any = 'bx--list-box__field';\n currVal_5;\n const currVal_6:any = (<any>{'a':!_decl0_35.menuIsClosed});\n currVal_6;\n const currVal_7:any = !_decl0_35.menuIsClosed;\n currVal_7;\n const currVal_8:any = _decl0_35.disabled;\n currVal_8;\n const currVal_9:any = _decl0_35.disabled;\n currVal_9;\n const currVal_10:any = ((_decl0_35.type === 'multi') && (_decl0_35.getSelectedCount() > 0));\n currVal_10;\n const currVal_11:any = _decl0_35.isRenderString();\n currVal_11;\n const currVal_12:any = !_decl0_35.isRenderString();\n currVal_12;\n const currVal_13:any = !_decl0_35.skeleton;\n currVal_13;\n const currVal_14:any = (<any>{'drop-up':_decl0_35.dropUp});\n currVal_14;\n const currVal_15:any = !_decl0_35.menuIsClosed;\n currVal_15;\n const pd_16:any = ((<any>_decl0_35.toggleMenu()) !== false);\n const pd_17:any = ((<any>_decl0_35.onBlur()) !== false);\n}\nfunction _View_DropdownList_Host_2_0():void {\n var _any:any = (null as any);\n}\nfunction _View_DropdownList_2_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_36.ariaLabel;\n currVal_0;\n const currVal_1:any = _decl0_36.displayItems;\n currVal_1;\n}\n"]}
1
+ {"version":3,"file":"dropdown.module.ngfactory.js","sourceRoot":"","sources":["../src/dropdown/dropdown.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './dropdown.module';\nimport * as i2 from '@angular/common';\nimport * as i3 from '@angular/forms';\nimport * as i4 from '../placeholder/placeholder.component';\nimport * as i5 from '@carbon/icons-angular/lib/chevron--down/16';\nimport * as i6 from '@carbon/icons-angular/lib/warning--filled/16';\nimport * as i7 from './dropdown.component';\nimport * as i8 from './list/dropdown-list.component';\nimport * as i9 from './scrollable-list.directive';\nimport * as i10 from '../i18n/replace.pipe';\nimport * as i11 from '../i18n/i18n.module';\nimport * as i12 from '../placeholder/placeholder.module';\nexport const DropdownModuleNgFactory:i0.NgModuleFactory<i1.DropdownModule> = (null as any);\nvar _decl0_0:i2.NgClass = (<any>(null as any));\nvar _decl0_1:i2.NgComponentOutlet = (<any>(null as any));\nvar _decl0_2:i2.NgForOf<any> = (<any>(null as any));\nvar _decl0_3:i2.NgIf = (<any>(null as any));\nvar _decl0_4:i2.NgTemplateOutlet = (<any>(null as any));\nvar _decl0_5:i2.NgStyle = (<any>(null as any));\nvar _decl0_6:i2.NgSwitch = (<any>(null as any));\nvar _decl0_7:i2.NgSwitchCase = (<any>(null as any));\nvar _decl0_8:i2.NgSwitchDefault = (<any>(null as any));\nvar _decl0_9:i2.NgPlural = (<any>(null as any));\nvar _decl0_10:i2.NgPluralCase = (<any>(null as any));\nvar _decl0_11:i3.ɵangular_packages_forms_forms_bg = (<any>(null as any));\nvar _decl0_12:i3.NgSelectOption = (<any>(null as any));\nvar _decl0_13:i3.ɵangular_packages_forms_forms_r = (<any>(null as any));\nvar _decl0_14:i3.DefaultValueAccessor = (<any>(null as any));\nvar _decl0_15:i3.ɵangular_packages_forms_forms_bd = (<any>(null as any));\nvar _decl0_16:i3.ɵangular_packages_forms_forms_bf = (<any>(null as any));\nvar _decl0_17:i3.CheckboxControlValueAccessor = (<any>(null as any));\nvar _decl0_18:i3.SelectControlValueAccessor = (<any>(null as any));\nvar _decl0_19:i3.SelectMultipleControlValueAccessor = (<any>(null as any));\nvar _decl0_20:i3.RadioControlValueAccessor = (<any>(null as any));\nvar _decl0_21:i3.NgControlStatus = (<any>(null as any));\nvar _decl0_22:i3.NgControlStatusGroup = (<any>(null as any));\nvar _decl0_23:i3.RequiredValidator = (<any>(null as any));\nvar _decl0_24:i3.MinLengthValidator = (<any>(null as any));\nvar _decl0_25:i3.MaxLengthValidator = (<any>(null as any));\nvar _decl0_26:i3.PatternValidator = (<any>(null as any));\nvar _decl0_27:i3.CheckboxRequiredValidator = (<any>(null as any));\nvar _decl0_28:i3.EmailValidator = (<any>(null as any));\nvar _decl0_29:i3.NgModel = (<any>(null as any));\nvar _decl0_30:i3.NgModelGroup = (<any>(null as any));\nvar _decl0_31:i3.NgForm = (<any>(null as any));\nvar _decl0_32:i4.Placeholder = (<any>(null as any));\nvar _decl0_33:i5.ChevronDown16 = (<any>(null as any));\nvar _decl0_34:i5.ChevronDown16Directive = (<any>(null as any));\nvar _decl0_35:i6.WarningFilled16 = (<any>(null as any));\nvar _decl0_36:i6.WarningFilled16Directive = (<any>(null as any));\nvar _decl0_37:i7.Dropdown = (<any>(null as any));\nvar _decl0_38:i8.DropdownList = (<any>(null as any));\nvar _decl0_39:i9.ScrollableList = (<any>(null as any));\nvar _decl0_40:i2.AsyncPipe = (<any>(null as any));\nvar _decl0_41:i2.UpperCasePipe = (<any>(null as any));\nvar _decl0_42:i2.LowerCasePipe = (<any>(null as any));\nvar _decl0_43:i2.JsonPipe = (<any>(null as any));\nvar _decl0_44:i2.SlicePipe = (<any>(null as any));\nvar _decl0_45:i2.DecimalPipe = (<any>(null as any));\nvar _decl0_46:i2.PercentPipe = (<any>(null as any));\nvar _decl0_47:i2.TitleCasePipe = (<any>(null as any));\nvar _decl0_48:i2.CurrencyPipe = (<any>(null as any));\nvar _decl0_49:i2.DatePipe = (<any>(null as any));\nvar _decl0_50:i2.I18nPluralPipe = (<any>(null as any));\nvar _decl0_51:i2.I18nSelectPipe = (<any>(null as any));\nvar _decl0_52:i2.KeyValuePipe = (<any>(null as any));\nvar _decl0_53:i10.ReplacePipe = (<any>(null as any));\nvar _decl0_54:i2.CommonModule = (<any>(null as any));\nvar _decl0_55:i3.FormsModule = (<any>(null as any));\nvar _decl0_56:i11.I18nModule = (<any>(null as any));\nvar _decl0_57:i12.PlaceholderModule = (<any>(null as any));\nvar _decl0_58:i5.ChevronDown16Module = (<any>(null as any));\nvar _decl0_59:i6.WarningFilled16Module = (<any>(null as any));\nvar _decl0_60:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_61:i0.ElementRef<any> = (<any>(null as any));\nfunction _View_Dropdown_Host_1_0():void {\n var _any:any = (null as any);\n}\nfunction _View_Dropdown_1_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_37.label;\n currVal_0;\n const currVal_1:any = _decl0_37.helperText;\n currVal_1;\n const currVal_2:any = 'bx--dropdown bx--list-box';\n currVal_2;\n const currVal_3:any = (<any>{'bx--dropdown--light':(_decl0_37.theme === 'light'),\n 'bx--list-box--inline':_decl0_37.inline,'bx--skeleton':_decl0_37.skeleton,'bx--dropdown--disabled bx--list-box--disabled':_decl0_37.disabled,\n 'bx--dropdown--invalid':_decl0_37.invalid});\n currVal_3;\n const currVal_4:any = _decl0_37.id;\n currVal_4;\n const currVal_5:any = 'bx--list-box__field';\n currVal_5;\n const currVal_6:any = (<any>{'a':!_decl0_37.menuIsClosed});\n currVal_6;\n const currVal_7:any = !_decl0_37.menuIsClosed;\n currVal_7;\n const currVal_8:any = _decl0_37.disabled;\n currVal_8;\n const currVal_9:any = _decl0_37.disabled;\n currVal_9;\n const currVal_10:any = ((_decl0_37.type === 'multi') && (_decl0_37.getSelectedCount() > 0));\n currVal_10;\n const currVal_11:any = _decl0_37.isRenderString();\n currVal_11;\n const currVal_12:any = !_decl0_37.isRenderString();\n currVal_12;\n const currVal_13:any = _decl0_37.invalid;\n currVal_13;\n const currVal_14:any = !_decl0_37.skeleton;\n currVal_14;\n const currVal_15:any = (<any>{'drop-up':_decl0_37.dropUp});\n currVal_15;\n const currVal_16:any = !_decl0_37.menuIsClosed;\n currVal_16;\n const currVal_17:any = _decl0_37.invalid;\n currVal_17;\n const pd_18:any = ((<any>_decl0_37.toggleMenu()) !== false);\n const pd_19:any = ((<any>_decl0_37.onBlur()) !== false);\n}\nfunction _View_DropdownList_Host_2_0():void {\n var _any:any = (null as any);\n}\nfunction _View_DropdownList_2_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_38.ariaLabel;\n currVal_0;\n const currVal_1:any = _decl0_38.displayItems;\n currVal_1;\n}\n"]}
@@ -1 +1 @@
1
- {"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbol":1,"members":[]}},{"symbol":{"__symbol":2,"members":[]},"metadata":{"__symbol":3,"members":[]}},{"symbol":{"__symbol":4,"members":[]},"metadata":{"__symbol":5,"members":[]}},{"symbol":{"__symbol":6,"members":[]},"metadata":{"__symbol":7,"members":[]}},{"symbol":{"__symbol":8,"members":[]},"metadata":{"__symbol":9,"members":[]}},{"symbol":{"__symbol":10,"members":[]},"metadata":{"__symbol":11,"members":[]}},{"symbol":{"__symbol":12,"members":[]},"metadata":{"__symbolic":"class"},"type":{"summaryKind":2,"type":{"reference":{"__symbol":12,"members":[]},"diDeps":[],"lifecycleHooks":[]},"entryComponents":[],"providers":[{"provider":{"token":{"identifier":{"reference":{"__symbol":13,"members":[]}}},"useClass":{"reference":{"__symbol":14,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":15,"members":[]}}}},{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":true,"token":{"identifier":{"reference":{"__symbol":16,"members":[]}}}}],"lifecycleHooks":[]},"useFactory":null,"deps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":15,"members":[]}}}},{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":true,"token":{"identifier":{"reference":{"__symbol":16,"members":[]}}}}],"multi":false},"module":{"reference":{"__symbol":17,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":18,"members":[]},"diDeps":[],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":18,"members":[]},"diDeps":[],"lifecycleHooks":[]},"useFactory":null,"deps":[],"multi":false},"module":{"reference":{"__symbol":19,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":20,"members":[]},"diDeps":[],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":20,"members":[]},"diDeps":[],"lifecycleHooks":[]},"useFactory":null,"deps":[],"multi":false},"module":{"reference":{"__symbol":21,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":20,"members":[]}}},"useClass":null,"useFactory":{"reference":{"__symbol":22,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":true,"isOptional":true,"token":{"identifier":{"reference":{"__symbol":20,"members":[]}}}}]},"deps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":true,"isOptional":true,"token":{"identifier":{"reference":{"__symbol":20,"members":[]}}}}],"multi":false},"module":{"reference":{"__symbol":21,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":23,"members":[]}}},"useClass":null,"useFactory":{"reference":{"__symbol":24,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":true,"isOptional":true,"token":{"identifier":{"reference":{"__symbol":23,"members":[]}}}}]},"deps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":true,"isOptional":true,"token":{"identifier":{"reference":{"__symbol":23,"members":[]}}}}],"multi":false},"module":{"reference":{"__symbol":25,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":11,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":23,"members":[]}}}}],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":11,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":23,"members":[]}}}}],"lifecycleHooks":[]},"useFactory":null,"deps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":23,"members":[]}}}}],"multi":false},"module":{"reference":{"__symbol":12,"members":[]},"diDeps":[],"lifecycleHooks":[]}}],"modules":[{"reference":{"__symbol":17,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":26,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":19,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":21,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":25,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":27,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":12,"members":[]},"diDeps":[],"lifecycleHooks":[]}],"exportedDirectives":[{"reference":{"__symbol":1,"members":[]}},{"reference":{"__symbol":3,"members":[]}},{"reference":{"__symbol":5,"members":[]}}],"exportedPipes":[]}}],"symbols":[{"__symbol":0,"name":"Dropdown","filePath":"./dropdown.module"},{"__symbol":1,"name":"Dropdown","filePath":"./dropdown.component"},{"__symbol":2,"name":"DropdownList","filePath":"./dropdown.module"},{"__symbol":3,"name":"DropdownList","filePath":"./list/dropdown-list.component"},{"__symbol":4,"name":"ScrollableList","filePath":"./dropdown.module"},{"__symbol":5,"name":"ScrollableList","filePath":"./scrollable-list.directive"},{"__symbol":6,"name":"AbstractDropdownView","filePath":"./dropdown.module"},{"__symbol":7,"name":"AbstractDropdownView","filePath":"./abstract-dropdown-view.class"},{"__symbol":8,"name":"ListItem","filePath":"./dropdown.module"},{"__symbol":9,"name":"ListItem","filePath":"./list-item.interface"},{"__symbol":10,"name":"DropdownService","filePath":"./dropdown.module"},{"__symbol":11,"name":"DropdownService","filePath":"./dropdown.service"},{"__symbol":12,"name":"DropdownModule","filePath":"./dropdown.module"},{"__symbol":13,"name":"NgLocalization","filePath":"@angular/common"},{"__symbol":14,"name":"NgLocaleLocalization","filePath":"@angular/common"},{"__symbol":15,"name":"LOCALE_ID","filePath":"@angular/core"},{"__symbol":16,"name":"ɵangular_packages_common_common_a","filePath":"@angular/common"},{"__symbol":17,"name":"CommonModule","filePath":"@angular/common"},{"__symbol":18,"name":"ɵangular_packages_forms_forms_i","filePath":"@angular/forms"},{"__symbol":19,"name":"FormsModule","filePath":"@angular/forms"},{"__symbol":20,"name":"I18n","filePath":"../i18n/i18n.service"},{"__symbol":21,"name":"I18nModule","filePath":"../i18n/i18n.module"},{"__symbol":22,"name":"I18N_SERVICE_PROVIDER_FACTORY","filePath":"../i18n/i18n.module"},{"__symbol":23,"name":"PlaceholderService","filePath":"../placeholder/placeholder.service"},{"__symbol":24,"name":"PLACEHOLDER_SERVICE_PROVIDER_FACTORY","filePath":"../placeholder/placeholder.module"},{"__symbol":25,"name":"PlaceholderModule","filePath":"../placeholder/placeholder.module"},{"__symbol":26,"name":"ɵangular_packages_forms_forms_bb","filePath":"@angular/forms"},{"__symbol":27,"name":"ChevronDown16Module","filePath":"@carbon/icons-angular/lib/chevron--down/16"}]}
1
+ {"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbol":1,"members":[]}},{"symbol":{"__symbol":2,"members":[]},"metadata":{"__symbol":3,"members":[]}},{"symbol":{"__symbol":4,"members":[]},"metadata":{"__symbol":5,"members":[]}},{"symbol":{"__symbol":6,"members":[]},"metadata":{"__symbol":7,"members":[]}},{"symbol":{"__symbol":8,"members":[]},"metadata":{"__symbol":9,"members":[]}},{"symbol":{"__symbol":10,"members":[]},"metadata":{"__symbol":11,"members":[]}},{"symbol":{"__symbol":12,"members":[]},"metadata":{"__symbolic":"class"},"type":{"summaryKind":2,"type":{"reference":{"__symbol":12,"members":[]},"diDeps":[],"lifecycleHooks":[]},"entryComponents":[],"providers":[{"provider":{"token":{"identifier":{"reference":{"__symbol":13,"members":[]}}},"useClass":{"reference":{"__symbol":14,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":15,"members":[]}}}},{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":true,"token":{"identifier":{"reference":{"__symbol":16,"members":[]}}}}],"lifecycleHooks":[]},"useFactory":null,"deps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":15,"members":[]}}}},{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":true,"token":{"identifier":{"reference":{"__symbol":16,"members":[]}}}}],"multi":false},"module":{"reference":{"__symbol":17,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":18,"members":[]},"diDeps":[],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":18,"members":[]},"diDeps":[],"lifecycleHooks":[]},"useFactory":null,"deps":[],"multi":false},"module":{"reference":{"__symbol":19,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":20,"members":[]},"diDeps":[],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":20,"members":[]},"diDeps":[],"lifecycleHooks":[]},"useFactory":null,"deps":[],"multi":false},"module":{"reference":{"__symbol":21,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":20,"members":[]}}},"useClass":null,"useFactory":{"reference":{"__symbol":22,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":true,"isOptional":true,"token":{"identifier":{"reference":{"__symbol":20,"members":[]}}}}]},"deps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":true,"isOptional":true,"token":{"identifier":{"reference":{"__symbol":20,"members":[]}}}}],"multi":false},"module":{"reference":{"__symbol":21,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":23,"members":[]}}},"useClass":null,"useFactory":{"reference":{"__symbol":24,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":true,"isOptional":true,"token":{"identifier":{"reference":{"__symbol":23,"members":[]}}}}]},"deps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":true,"isOptional":true,"token":{"identifier":{"reference":{"__symbol":23,"members":[]}}}}],"multi":false},"module":{"reference":{"__symbol":25,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":11,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":23,"members":[]}}}}],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":11,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":23,"members":[]}}}}],"lifecycleHooks":[]},"useFactory":null,"deps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":23,"members":[]}}}}],"multi":false},"module":{"reference":{"__symbol":12,"members":[]},"diDeps":[],"lifecycleHooks":[]}}],"modules":[{"reference":{"__symbol":17,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":26,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":19,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":21,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":25,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":27,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":28,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":12,"members":[]},"diDeps":[],"lifecycleHooks":[]}],"exportedDirectives":[{"reference":{"__symbol":1,"members":[]}},{"reference":{"__symbol":3,"members":[]}},{"reference":{"__symbol":5,"members":[]}}],"exportedPipes":[]}}],"symbols":[{"__symbol":0,"name":"Dropdown","filePath":"./dropdown.module"},{"__symbol":1,"name":"Dropdown","filePath":"./dropdown.component"},{"__symbol":2,"name":"DropdownList","filePath":"./dropdown.module"},{"__symbol":3,"name":"DropdownList","filePath":"./list/dropdown-list.component"},{"__symbol":4,"name":"ScrollableList","filePath":"./dropdown.module"},{"__symbol":5,"name":"ScrollableList","filePath":"./scrollable-list.directive"},{"__symbol":6,"name":"AbstractDropdownView","filePath":"./dropdown.module"},{"__symbol":7,"name":"AbstractDropdownView","filePath":"./abstract-dropdown-view.class"},{"__symbol":8,"name":"ListItem","filePath":"./dropdown.module"},{"__symbol":9,"name":"ListItem","filePath":"./list-item.interface"},{"__symbol":10,"name":"DropdownService","filePath":"./dropdown.module"},{"__symbol":11,"name":"DropdownService","filePath":"./dropdown.service"},{"__symbol":12,"name":"DropdownModule","filePath":"./dropdown.module"},{"__symbol":13,"name":"NgLocalization","filePath":"@angular/common"},{"__symbol":14,"name":"NgLocaleLocalization","filePath":"@angular/common"},{"__symbol":15,"name":"LOCALE_ID","filePath":"@angular/core"},{"__symbol":16,"name":"ɵangular_packages_common_common_a","filePath":"@angular/common"},{"__symbol":17,"name":"CommonModule","filePath":"@angular/common"},{"__symbol":18,"name":"ɵangular_packages_forms_forms_i","filePath":"@angular/forms"},{"__symbol":19,"name":"FormsModule","filePath":"@angular/forms"},{"__symbol":20,"name":"I18n","filePath":"../i18n/i18n.service"},{"__symbol":21,"name":"I18nModule","filePath":"../i18n/i18n.module"},{"__symbol":22,"name":"I18N_SERVICE_PROVIDER_FACTORY","filePath":"../i18n/i18n.module"},{"__symbol":23,"name":"PlaceholderService","filePath":"../placeholder/placeholder.service"},{"__symbol":24,"name":"PLACEHOLDER_SERVICE_PROVIDER_FACTORY","filePath":"../placeholder/placeholder.module"},{"__symbol":25,"name":"PlaceholderModule","filePath":"../placeholder/placeholder.module"},{"__symbol":26,"name":"ɵangular_packages_forms_forms_bb","filePath":"@angular/forms"},{"__symbol":27,"name":"ChevronDown16Module","filePath":"@carbon/icons-angular/lib/chevron--down/16"},{"__symbol":28,"name":"WarningFilled16Module","filePath":"@carbon/icons-angular/lib/warning--filled/16"}]}
@@ -22,4 +22,6 @@ export interface FileItem {
22
22
  file: File;
23
23
  state: "edit" | "upload" | "complete";
24
24
  uploaded: boolean;
25
+ invalid: boolean;
26
+ invalidText: string;
25
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"file-item.interface.js","sourceRoot":"","sources":["../src/file-uploader/file-item.interface.ts"],"names":[],"mappings":"","sourcesContent":["export interface FileItem {\n\tfile: File;\n\tstate: \"edit\" | \"upload\" | \"complete\";\n\tuploaded: boolean;\n}\n"]}
1
+ {"version":3,"file":"file-item.interface.js","sourceRoot":"","sources":["../src/file-uploader/file-item.interface.ts"],"names":[],"mappings":"","sourcesContent":["export interface FileItem {\n\tfile: File;\n\tstate: \"edit\" | \"upload\" | \"complete\";\n\tuploaded: boolean;\n\tinvalid: boolean;\n\tinvalidText: string;\n}\n"]}
@@ -104,6 +104,8 @@ var FileUploader = /** @class */ (function () {
104
104
  var fileItem = {
105
105
  uploaded: false,
106
106
  state: "edit",
107
+ invalid: false,
108
+ invalidText: "",
107
109
  file: file
108
110
  };
109
111
  this.files.add(fileItem);
@@ -135,7 +137,7 @@ var FileUploader = /** @class */ (function () {
135
137
  FileUploader.decorators = [
136
138
  { type: Component, args: [{
137
139
  selector: "ibm-file-uploader",
138
- template: "\n\t\t<ng-container *ngIf=\"!skeleton; else skeletonTemplate\">\n\t\t\t<strong class=\"bx--file--label\">{{title}}</strong>\n\t\t\t<p class=\"bx--label-description\">{{description}}</p>\n\t\t\t<div class=\"bx--file\">\n\t\t\t\t<button\n\t\t\t\t\tibmButton=\"primary\"\n\t\t\t\t\t(click)=\"fileInput.click()\"\n\t\t\t\t\t[attr.for]=\"fileUploaderId\"\n\t\t\t\t\t[size]=\"size\">\n\t\t\t\t\t{{buttonText}}\n\t\t\t\t</button>\n\t\t\t\t<input\n\t\t\t\t\t#fileInput\n\t\t\t\t\ttype=\"file\"\n\t\t\t\t\tclass=\"bx--file-input\"\n\t\t\t\t\t[accept]=\"accept\"\n\t\t\t\t\t[id]=\"fileUploaderId\"\n\t\t\t\t\t[multiple]=\"multiple\"\n\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\t(change)=\"onFilesAdded()\"/>\n\t\t\t\t<div class=\"bx--file-container\">\n\t\t\t\t\t<ibm-file *ngFor=\"let fileItem of files\" [fileItem]=\"fileItem\" (remove)=\"removeFile(fileItem)\"></ibm-file>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</ng-container>\n\n\t\t<ng-template #skeletonTemplate>\n\t\t\t<div class=\"bx--skeleton__text\" style=\"width: 100px\"></div>\n\t\t\t<div class=\"bx--skeleton__text\" style=\"width: 225px\"></div>\n\t\t\t<button ibmButton skeleton=\"true\"></button>\n\t\t</ng-template>\n\t",
140
+ template: "\n\t\t<ng-container *ngIf=\"!skeleton; else skeletonTemplate\">\n\t\t\t<strong class=\"bx--file--label\">{{title}}</strong>\n\t\t\t<p class=\"bx--label-description\">{{description}}</p>\n\t\t\t<div class=\"bx--file\">\n\t\t\t\t<button\n\t\t\t\t\tibmButton=\"primary\"\n\t\t\t\t\t(click)=\"fileInput.click()\"\n\t\t\t\t\t[attr.for]=\"fileUploaderId\"\n\t\t\t\t\t[size]=\"size\">\n\t\t\t\t\t{{buttonText}}\n\t\t\t\t</button>\n\t\t\t\t<input\n\t\t\t\t\t#fileInput\n\t\t\t\t\ttype=\"file\"\n\t\t\t\t\tclass=\"bx--file-input\"\n\t\t\t\t\t[accept]=\"accept\"\n\t\t\t\t\t[id]=\"fileUploaderId\"\n\t\t\t\t\t[multiple]=\"multiple\"\n\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\t(change)=\"onFilesAdded()\"/>\n\t\t\t\t<div class=\"bx--file-container\">\n\t\t\t\t\t<div *ngFor=\"let fileItem of files\">\n\t\t\t\t\t\t<ibm-file [fileItem]=\"fileItem\" (remove)=\"removeFile(fileItem)\"></ibm-file>\n\t\t\t\t\t\t<div *ngIf=\"fileItem.invalid\" class=\"bx--form-requirement\">\n\t\t\t\t\t\t\t{{fileItem.invalidText}}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</ng-container>\n\n\t\t<ng-template #skeletonTemplate>\n\t\t\t<div class=\"bx--skeleton__text\" style=\"width: 100px\"></div>\n\t\t\t<div class=\"bx--skeleton__text\" style=\"width: 225px\"></div>\n\t\t\t<button ibmButton skeleton=\"true\"></button>\n\t\t</ng-template>\n\t",
139
141
  providers: [
140
142
  {
141
143
  provide: NG_VALUE_ACCESSOR,
@@ -1 +1 @@
1
- {"version":3,"file":"file-uploader.component.js","sourceRoot":"","sources":["../src/file-uploader/file-uploader.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,KAAK,EACL,MAAM,EACN,SAAS,EACT,YAAY,EAEZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAG3C,IAAM,IAAI,GAAG,cAAO,CAAC,CAAC;;AAEtB;;;;GAIG;AACH;IAmGC,sBAAsB,IAAU;QAAV,SAAI,GAAJ,IAAI,CAAM;QAnDhC;;;;WAIG;QACM,eAAU,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC;QASzD;;WAEG;QACM,WAAM,GAAG,EAAE,CAAC;QACrB;;;;WAIG;QACM,aAAQ,GAAG,IAAI,CAAC;QACzB;;WAEG;QACM,aAAQ,GAAG,KAAK,CAAC;QAO1B;;WAEG;QACM,mBAAc,GAAG,mBAAiB,YAAY,CAAC,iBAAmB,CAAC;QASlE,gBAAW,GAAG,IAAI,YAAY,EAAO,CAAC;QAEtC,sBAAiB,GAAe,IAAI,CAAC;QACrC,qBAAgB,GAA+B,IAAI,CAAC;QAG7D,YAAY,CAAC,iBAAiB,EAAE,CAAC;IAClC,CAAC;IAKD,sBAAI,+BAAK;QAHT;;WAEG;aACH;YACC,OAAO,IAAI,CAAC,KAAK,CAAC;QACnB,CAAC;aACD,UAAU,CAAgB;YACzB,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,EAAE;gBACrB,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;gBACf,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;aACzB;QACF,CAAC;;;OANA;IAQD,+BAAQ,GAAR;QACC,sDAAsD;QACtD,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YAChB,IAAI,CAAC,KAAK,GAAG,IAAI,GAAG,EAAE,CAAC;YACvB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAClC;IACF,CAAC;IAED,6BAAM,GAAN;QACC,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAC1B,CAAC;IAED;;OAEG;IACH,iCAAU,GAAV,UAAW,KAAoB;QAC9B,IAAI,KAAK,KAAK,IAAI,CAAC,KAAK,EAAE;YACzB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;SACnB;IACF,CAAC;IAED,mCAAY,GAAZ;QACC,IAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,KAAK,CAAC;QACjD,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YACnB,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;SACnB;QACD,KAAiB,UAAK,EAAL,eAAK,EAAL,mBAAK,EAAL,IAAK,EAAE;YAAnB,IAAI,IAAI,cAAA;YACZ,IAAM,QAAQ,GAAa;gBAC1B,QAAQ,EAAE,KAAK;gBACf,KAAK,EAAE,MAAM;gBACb,IAAI,EAAE,IAAI;aACV,CAAC;YACF,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YACzB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAClC;QAED,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;IACzB,CAAC;IAED,iCAAU,GAAV,UAAW,QAAQ;QAClB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAC5B,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,KAAK,GAAG,EAAE,CAAC;QACxC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACnC,CAAC;IAED;;OAEG;IACH,wCAAiB,GAAjB,UAAkB,EAAO;QACxB,IAAI,CAAC,iBAAiB,GAAG,EAAE,CAAC;IAC7B,CAAC;IACD;;OAEG;IACH,uCAAgB,GAAhB,UAAiB,EAAO;QACvB,IAAI,CAAC,gBAAgB,GAAG,EAAE,CAAC;IAC5B,CAAC;IAhID;;OAEG;IACI,8BAAiB,GAAG,CAAC,CAAC;;gBA/C7B,SAAS,SAAC;oBACV,QAAQ,EAAE,mBAAmB;oBAC7B,QAAQ,EAAE,ipCAgCT;oBACD,SAAS,EAAE;wBACV;4BACC,OAAO,EAAE,iBAAiB;4BAC1B,WAAW,EAAE,YAAY;4BACzB,KAAK,EAAE,IAAI;yBACX;qBACD;iBACD;;;;gBApDQ,IAAI;;;6BA+DX,KAAK;wBAIL,KAAK;8BAIL,KAAK;yBAIL,KAAK;2BAML,KAAK;2BAIL,KAAK;uBAML,KAAK;iCAIL,KAAK;4BAIL,SAAS,SAAC,WAAW;wBAIrB,KAAK;8BACL,MAAM;;IA+ER,mBAAC;CAAA,AA7KD,IA6KC;SAlIY,YAAY","sourcesContent":["import {\n\tComponent,\n\tInput,\n\tOutput,\n\tViewChild,\n\tEventEmitter,\n\tOnInit\n} from \"@angular/core\";\nimport { NG_VALUE_ACCESSOR } from \"@angular/forms\";\n\nimport { I18n } from \"../i18n/i18n.module\";\nimport { FileItem } from \"./file-item.interface\";\n\nconst noop = () => {};\n\n/**\n * [See demo](../../?path=/story/file-uploader--basic)\n *\n * <example-url>../../iframe.html?id=file-uploader--basic</example-url>\n */\n@Component({\n\tselector: \"ibm-file-uploader\",\n\ttemplate: `\n\t\t<ng-container *ngIf=\"!skeleton; else skeletonTemplate\">\n\t\t\t<strong class=\"bx--file--label\">{{title}}</strong>\n\t\t\t<p class=\"bx--label-description\">{{description}}</p>\n\t\t\t<div class=\"bx--file\">\n\t\t\t\t<button\n\t\t\t\t\tibmButton=\"primary\"\n\t\t\t\t\t(click)=\"fileInput.click()\"\n\t\t\t\t\t[attr.for]=\"fileUploaderId\"\n\t\t\t\t\t[size]=\"size\">\n\t\t\t\t\t{{buttonText}}\n\t\t\t\t</button>\n\t\t\t\t<input\n\t\t\t\t\t#fileInput\n\t\t\t\t\ttype=\"file\"\n\t\t\t\t\tclass=\"bx--file-input\"\n\t\t\t\t\t[accept]=\"accept\"\n\t\t\t\t\t[id]=\"fileUploaderId\"\n\t\t\t\t\t[multiple]=\"multiple\"\n\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\t(change)=\"onFilesAdded()\"/>\n\t\t\t\t<div class=\"bx--file-container\">\n\t\t\t\t\t<ibm-file *ngFor=\"let fileItem of files\" [fileItem]=\"fileItem\" (remove)=\"removeFile(fileItem)\"></ibm-file>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</ng-container>\n\n\t\t<ng-template #skeletonTemplate>\n\t\t\t<div class=\"bx--skeleton__text\" style=\"width: 100px\"></div>\n\t\t\t<div class=\"bx--skeleton__text\" style=\"width: 225px\"></div>\n\t\t\t<button ibmButton skeleton=\"true\"></button>\n\t\t</ng-template>\n\t`,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: FileUploader,\n\t\t\tmulti: true\n\t\t}\n\t]\n})\nexport class FileUploader implements OnInit {\n\t/**\n\t * Counter used to create unique ids for file-uploader components\n\t */\n\tstatic fileUploaderCount = 0;\n\t/**\n\t * Accessible text for the button that opens the upload window.\n\t *\n\t * Defaults to the `FILE_UPLOADER.OPEN` value from the i18n service\n\t */\n\t@Input() buttonText = this.i18n.get().FILE_UPLOADER.OPEN;\n\t/**\n\t * Text set to the title\n\t */\n\t@Input() title: string;\n\t/**\n\t * Text set to the description\n\t */\n\t@Input() description: string;\n\t/**\n\t * Specify the types of files that the input should be able to receive\n\t */\n\t@Input() accept = [];\n\t/**\n\t * Set to `false` to tell the component to only accept a single file on upload.\n\t *\n\t * Defaults to `true`. Accepts multiple files.\n\t */\n\t@Input() multiple = true;\n\t/**\n\t * Set to `true` for a loading file uploader.\n\t */\n\t@Input() skeleton = false;\n\t/**\n\t * Sets the size of the button.\n\t *\n\t * @type {(\"sm\" | \"normal\")}\n\t */\n\t@Input() size: \"sm\" | \"normal\";\n\t/**\n\t * Provides a unique id for the underlying <input> node\n\t */\n\t@Input() fileUploaderId = `file-uploader-${FileUploader.fileUploaderCount}`;\n\t/**\n\t * Maintains a reference to the view DOM element of the underlying <input> node\n\t */\n\t@ViewChild(\"fileInput\") fileInput;\n\t/**\n\t * The list of files that have been submitted to be uploaded\n\t */\n\t@Input() files: Set<FileItem>;\n\t@Output() filesChange = new EventEmitter<any>();\n\n\tprotected onTouchedCallback: () => void = noop;\n\tprotected onChangeCallback: (_: Set<FileItem>) => void = noop;\n\n\tconstructor(protected i18n: I18n) {\n\t\tFileUploader.fileUploaderCount++;\n\t}\n\n\t/**\n\t * Specifies the property to be used as the return value to `ngModel`\n\t */\n\tget value(): Set<FileItem> {\n\t\treturn this.files;\n\t}\n\tset value(v: Set<FileItem>) {\n\t\tif (v !== this.files) {\n\t\t\tthis.files = v;\n\t\t\tthis.onChangeCallback(v);\n\t\t}\n\t}\n\n\tngOnInit() {\n\t\t// overrides the undefined files value set by the user\n\t\tif (!this.files) {\n\t\t\tthis.files = new Set();\n\t\t\tthis.filesChange.emit(this.files);\n\t\t}\n\t}\n\n\tonBlur() {\n\t\tthis.onTouchedCallback();\n\t}\n\n\t/**\n\t * Propagates the injected `value`.\n\t */\n\twriteValue(value: Set<FileItem>) {\n\t\tif (value !== this.value) {\n\t\t\tthis.files = value;\n\t\t}\n\t}\n\n\tonFilesAdded() {\n\t\tconst files = this.fileInput.nativeElement.files;\n\t\tif (!this.multiple) {\n\t\t\tthis.files.clear();\n\t\t}\n\t\tfor (let file of files) {\n\t\t\tconst fileItem: FileItem = {\n\t\t\t\tuploaded: false,\n\t\t\t\tstate: \"edit\",\n\t\t\t\tfile: file\n\t\t\t};\n\t\t\tthis.files.add(fileItem);\n\t\t\tthis.filesChange.emit(this.files);\n\t\t}\n\n\t\tthis.value = this.files;\n\t}\n\n\tremoveFile(fileItem) {\n\t\tthis.files.delete(fileItem);\n\t\tthis.fileInput.nativeElement.value = \"\";\n\t\tthis.filesChange.emit(this.files);\n\t}\n\n\t/**\n\t * Registers the injected function to control the touch use of the `FileUploader`.\n\t */\n\tregisterOnTouched(fn: any) {\n\t\tthis.onTouchedCallback = fn;\n\t}\n\t/**\n\t * Sets a method in order to propagate changes back to the form.\n\t */\n\tregisterOnChange(fn: any) {\n\t\tthis.onChangeCallback = fn;\n\t}\n}\n"]}
1
+ {"version":3,"file":"file-uploader.component.js","sourceRoot":"","sources":["../src/file-uploader/file-uploader.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,KAAK,EACL,MAAM,EACN,SAAS,EACT,YAAY,EAEZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAG3C,IAAM,IAAI,GAAG,cAAO,CAAC,CAAC;;AAEtB;;;;GAIG;AACH;IAwGC,sBAAsB,IAAU;QAAV,SAAI,GAAJ,IAAI,CAAM;QAnDhC;;;;WAIG;QACM,eAAU,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC;QASzD;;WAEG;QACM,WAAM,GAAG,EAAE,CAAC;QACrB;;;;WAIG;QACM,aAAQ,GAAG,IAAI,CAAC;QACzB;;WAEG;QACM,aAAQ,GAAG,KAAK,CAAC;QAO1B;;WAEG;QACM,mBAAc,GAAG,mBAAiB,YAAY,CAAC,iBAAmB,CAAC;QASlE,gBAAW,GAAG,IAAI,YAAY,EAAO,CAAC;QAEtC,sBAAiB,GAAe,IAAI,CAAC;QACrC,qBAAgB,GAA+B,IAAI,CAAC;QAG7D,YAAY,CAAC,iBAAiB,EAAE,CAAC;IAClC,CAAC;IAKD,sBAAI,+BAAK;QAHT;;WAEG;aACH;YACC,OAAO,IAAI,CAAC,KAAK,CAAC;QACnB,CAAC;aACD,UAAU,CAAgB;YACzB,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,EAAE;gBACrB,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;gBACf,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;aACzB;QACF,CAAC;;;OANA;IAQD,+BAAQ,GAAR;QACC,sDAAsD;QACtD,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YAChB,IAAI,CAAC,KAAK,GAAG,IAAI,GAAG,EAAE,CAAC;YACvB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAClC;IACF,CAAC;IAED,6BAAM,GAAN;QACC,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAC1B,CAAC;IAED;;OAEG;IACH,iCAAU,GAAV,UAAW,KAAoB;QAC9B,IAAI,KAAK,KAAK,IAAI,CAAC,KAAK,EAAE;YACzB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;SACnB;IACF,CAAC;IAED,mCAAY,GAAZ;QACC,IAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,KAAK,CAAC;QACjD,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YACnB,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;SACnB;QACD,KAAiB,UAAK,EAAL,eAAK,EAAL,mBAAK,EAAL,IAAK,EAAE;YAAnB,IAAI,IAAI,cAAA;YACZ,IAAM,QAAQ,GAAa;gBAC1B,QAAQ,EAAE,KAAK;gBACf,KAAK,EAAE,MAAM;gBACb,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,EAAE;gBACf,IAAI,EAAE,IAAI;aACV,CAAC;YACF,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YACzB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAClC;QAED,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;IACzB,CAAC;IAED,iCAAU,GAAV,UAAW,QAAQ;QAClB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAC5B,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,KAAK,GAAG,EAAE,CAAC;QACxC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACnC,CAAC;IAED;;OAEG;IACH,wCAAiB,GAAjB,UAAkB,EAAO;QACxB,IAAI,CAAC,iBAAiB,GAAG,EAAE,CAAC;IAC7B,CAAC;IACD;;OAEG;IACH,uCAAgB,GAAhB,UAAiB,EAAO;QACvB,IAAI,CAAC,gBAAgB,GAAG,EAAE,CAAC;IAC5B,CAAC;IAlID;;OAEG;IACI,8BAAiB,GAAG,CAAC,CAAC;;gBApD7B,SAAS,SAAC;oBACV,QAAQ,EAAE,mBAAmB;oBAC7B,QAAQ,EAAE,+zCAqCT;oBACD,SAAS,EAAE;wBACV;4BACC,OAAO,EAAE,iBAAiB;4BAC1B,WAAW,EAAE,YAAY;4BACzB,KAAK,EAAE,IAAI;yBACX;qBACD;iBACD;;;;gBAzDQ,IAAI;;;6BAoEX,KAAK;wBAIL,KAAK;8BAIL,KAAK;yBAIL,KAAK;2BAML,KAAK;2BAIL,KAAK;uBAML,KAAK;iCAIL,KAAK;4BAIL,SAAS,SAAC,WAAW;wBAIrB,KAAK;8BACL,MAAM;;IAiFR,mBAAC;CAAA,AApLD,IAoLC;SApIY,YAAY","sourcesContent":["import {\n\tComponent,\n\tInput,\n\tOutput,\n\tViewChild,\n\tEventEmitter,\n\tOnInit\n} from \"@angular/core\";\nimport { NG_VALUE_ACCESSOR } from \"@angular/forms\";\n\nimport { I18n } from \"../i18n/i18n.module\";\nimport { FileItem } from \"./file-item.interface\";\n\nconst noop = () => {};\n\n/**\n * [See demo](../../?path=/story/file-uploader--basic)\n *\n * <example-url>../../iframe.html?id=file-uploader--basic</example-url>\n */\n@Component({\n\tselector: \"ibm-file-uploader\",\n\ttemplate: `\n\t\t<ng-container *ngIf=\"!skeleton; else skeletonTemplate\">\n\t\t\t<strong class=\"bx--file--label\">{{title}}</strong>\n\t\t\t<p class=\"bx--label-description\">{{description}}</p>\n\t\t\t<div class=\"bx--file\">\n\t\t\t\t<button\n\t\t\t\t\tibmButton=\"primary\"\n\t\t\t\t\t(click)=\"fileInput.click()\"\n\t\t\t\t\t[attr.for]=\"fileUploaderId\"\n\t\t\t\t\t[size]=\"size\">\n\t\t\t\t\t{{buttonText}}\n\t\t\t\t</button>\n\t\t\t\t<input\n\t\t\t\t\t#fileInput\n\t\t\t\t\ttype=\"file\"\n\t\t\t\t\tclass=\"bx--file-input\"\n\t\t\t\t\t[accept]=\"accept\"\n\t\t\t\t\t[id]=\"fileUploaderId\"\n\t\t\t\t\t[multiple]=\"multiple\"\n\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\t(change)=\"onFilesAdded()\"/>\n\t\t\t\t<div class=\"bx--file-container\">\n\t\t\t\t\t<div *ngFor=\"let fileItem of files\">\n\t\t\t\t\t\t<ibm-file [fileItem]=\"fileItem\" (remove)=\"removeFile(fileItem)\"></ibm-file>\n\t\t\t\t\t\t<div *ngIf=\"fileItem.invalid\" class=\"bx--form-requirement\">\n\t\t\t\t\t\t\t{{fileItem.invalidText}}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</ng-container>\n\n\t\t<ng-template #skeletonTemplate>\n\t\t\t<div class=\"bx--skeleton__text\" style=\"width: 100px\"></div>\n\t\t\t<div class=\"bx--skeleton__text\" style=\"width: 225px\"></div>\n\t\t\t<button ibmButton skeleton=\"true\"></button>\n\t\t</ng-template>\n\t`,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: FileUploader,\n\t\t\tmulti: true\n\t\t}\n\t]\n})\nexport class FileUploader implements OnInit {\n\t/**\n\t * Counter used to create unique ids for file-uploader components\n\t */\n\tstatic fileUploaderCount = 0;\n\t/**\n\t * Accessible text for the button that opens the upload window.\n\t *\n\t * Defaults to the `FILE_UPLOADER.OPEN` value from the i18n service\n\t */\n\t@Input() buttonText = this.i18n.get().FILE_UPLOADER.OPEN;\n\t/**\n\t * Text set to the title\n\t */\n\t@Input() title: string;\n\t/**\n\t * Text set to the description\n\t */\n\t@Input() description: string;\n\t/**\n\t * Specify the types of files that the input should be able to receive\n\t */\n\t@Input() accept = [];\n\t/**\n\t * Set to `false` to tell the component to only accept a single file on upload.\n\t *\n\t * Defaults to `true`. Accepts multiple files.\n\t */\n\t@Input() multiple = true;\n\t/**\n\t * Set to `true` for a loading file uploader.\n\t */\n\t@Input() skeleton = false;\n\t/**\n\t * Sets the size of the button.\n\t *\n\t * @type {(\"sm\" | \"normal\")}\n\t */\n\t@Input() size: \"sm\" | \"normal\";\n\t/**\n\t * Provides a unique id for the underlying <input> node\n\t */\n\t@Input() fileUploaderId = `file-uploader-${FileUploader.fileUploaderCount}`;\n\t/**\n\t * Maintains a reference to the view DOM element of the underlying <input> node\n\t */\n\t@ViewChild(\"fileInput\") fileInput;\n\t/**\n\t * The list of files that have been submitted to be uploaded\n\t */\n\t@Input() files: Set<FileItem>;\n\t@Output() filesChange = new EventEmitter<any>();\n\n\tprotected onTouchedCallback: () => void = noop;\n\tprotected onChangeCallback: (_: Set<FileItem>) => void = noop;\n\n\tconstructor(protected i18n: I18n) {\n\t\tFileUploader.fileUploaderCount++;\n\t}\n\n\t/**\n\t * Specifies the property to be used as the return value to `ngModel`\n\t */\n\tget value(): Set<FileItem> {\n\t\treturn this.files;\n\t}\n\tset value(v: Set<FileItem>) {\n\t\tif (v !== this.files) {\n\t\t\tthis.files = v;\n\t\t\tthis.onChangeCallback(v);\n\t\t}\n\t}\n\n\tngOnInit() {\n\t\t// overrides the undefined files value set by the user\n\t\tif (!this.files) {\n\t\t\tthis.files = new Set();\n\t\t\tthis.filesChange.emit(this.files);\n\t\t}\n\t}\n\n\tonBlur() {\n\t\tthis.onTouchedCallback();\n\t}\n\n\t/**\n\t * Propagates the injected `value`.\n\t */\n\twriteValue(value: Set<FileItem>) {\n\t\tif (value !== this.value) {\n\t\t\tthis.files = value;\n\t\t}\n\t}\n\n\tonFilesAdded() {\n\t\tconst files = this.fileInput.nativeElement.files;\n\t\tif (!this.multiple) {\n\t\t\tthis.files.clear();\n\t\t}\n\t\tfor (let file of files) {\n\t\t\tconst fileItem: FileItem = {\n\t\t\t\tuploaded: false,\n\t\t\t\tstate: \"edit\",\n\t\t\t\tinvalid: false,\n\t\t\t\tinvalidText: \"\",\n\t\t\t\tfile: file\n\t\t\t};\n\t\t\tthis.files.add(fileItem);\n\t\t\tthis.filesChange.emit(this.files);\n\t\t}\n\n\t\tthis.value = this.files;\n\t}\n\n\tremoveFile(fileItem) {\n\t\tthis.files.delete(fileItem);\n\t\tthis.fileInput.nativeElement.value = \"\";\n\t\tthis.filesChange.emit(this.files);\n\t}\n\n\t/**\n\t * Registers the injected function to control the touch use of the `FileUploader`.\n\t */\n\tregisterOnTouched(fn: any) {\n\t\tthis.onTouchedCallback = fn;\n\t}\n\t/**\n\t * Sets a method in order to propagate changes back to the form.\n\t */\n\tregisterOnChange(fn: any) {\n\t\tthis.onChangeCallback = fn;\n\t}\n}\n"]}
@@ -1 +1 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"ɵ0":{"__symbolic":"error","message":"Lambda not supported","line":13,"character":13},"FileUploader":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":20,"character":1},"arguments":[{"selector":"ibm-file-uploader","template":"\n\t\t<ng-container *ngIf=\"!skeleton; else skeletonTemplate\">\n\t\t\t<strong class=\"bx--file--label\">{{title}}</strong>\n\t\t\t<p class=\"bx--label-description\">{{description}}</p>\n\t\t\t<div class=\"bx--file\">\n\t\t\t\t<button\n\t\t\t\t\tibmButton=\"primary\"\n\t\t\t\t\t(click)=\"fileInput.click()\"\n\t\t\t\t\t[attr.for]=\"fileUploaderId\"\n\t\t\t\t\t[size]=\"size\">\n\t\t\t\t\t{{buttonText}}\n\t\t\t\t</button>\n\t\t\t\t<input\n\t\t\t\t\t#fileInput\n\t\t\t\t\ttype=\"file\"\n\t\t\t\t\tclass=\"bx--file-input\"\n\t\t\t\t\t[accept]=\"accept\"\n\t\t\t\t\t[id]=\"fileUploaderId\"\n\t\t\t\t\t[multiple]=\"multiple\"\n\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\t(change)=\"onFilesAdded()\"/>\n\t\t\t\t<div class=\"bx--file-container\">\n\t\t\t\t\t<ibm-file *ngFor=\"let fileItem of files\" [fileItem]=\"fileItem\" (remove)=\"removeFile(fileItem)\"></ibm-file>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</ng-container>\n\n\t\t<ng-template #skeletonTemplate>\n\t\t\t<div class=\"bx--skeleton__text\" style=\"width: 100px\"></div>\n\t\t\t<div class=\"bx--skeleton__text\" style=\"width: 225px\"></div>\n\t\t\t<button ibmButton skeleton=\"true\"></button>\n\t\t</ng-template>\n\t","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":57,"character":12},"useExisting":{"__symbolic":"reference","name":"FileUploader"},"multi":true}]}]}],"members":{"buttonText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":73,"character":2}}]}],"title":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":77,"character":2}}]}],"description":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":81,"character":2}}]}],"accept":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":85,"character":2}}]}],"multiple":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":91,"character":2}}]}],"skeleton":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":95,"character":2}}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":101,"character":2}}]}],"fileUploaderId":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":105,"character":2}}]}],"fileInput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":109,"character":2},"arguments":["fileInput"]}]}],"files":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":113,"character":2}}]}],"filesChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":114,"character":2}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../i18n/i18n.module","name":"I18n","line":119,"character":29}]}],"ngOnInit":[{"__symbolic":"method"}],"onBlur":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"onFilesAdded":[{"__symbolic":"method"}],"removeFile":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}]},"statics":{"fileUploaderCount":0}}}}]
1
+ [{"__symbolic":"module","version":4,"metadata":{"ɵ0":{"__symbolic":"error","message":"Lambda not supported","line":13,"character":13},"FileUploader":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":20,"character":1},"arguments":[{"selector":"ibm-file-uploader","template":"\n\t\t<ng-container *ngIf=\"!skeleton; else skeletonTemplate\">\n\t\t\t<strong class=\"bx--file--label\">{{title}}</strong>\n\t\t\t<p class=\"bx--label-description\">{{description}}</p>\n\t\t\t<div class=\"bx--file\">\n\t\t\t\t<button\n\t\t\t\t\tibmButton=\"primary\"\n\t\t\t\t\t(click)=\"fileInput.click()\"\n\t\t\t\t\t[attr.for]=\"fileUploaderId\"\n\t\t\t\t\t[size]=\"size\">\n\t\t\t\t\t{{buttonText}}\n\t\t\t\t</button>\n\t\t\t\t<input\n\t\t\t\t\t#fileInput\n\t\t\t\t\ttype=\"file\"\n\t\t\t\t\tclass=\"bx--file-input\"\n\t\t\t\t\t[accept]=\"accept\"\n\t\t\t\t\t[id]=\"fileUploaderId\"\n\t\t\t\t\t[multiple]=\"multiple\"\n\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\t(change)=\"onFilesAdded()\"/>\n\t\t\t\t<div class=\"bx--file-container\">\n\t\t\t\t\t<div *ngFor=\"let fileItem of files\">\n\t\t\t\t\t\t<ibm-file [fileItem]=\"fileItem\" (remove)=\"removeFile(fileItem)\"></ibm-file>\n\t\t\t\t\t\t<div *ngIf=\"fileItem.invalid\" class=\"bx--form-requirement\">\n\t\t\t\t\t\t\t{{fileItem.invalidText}}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</ng-container>\n\n\t\t<ng-template #skeletonTemplate>\n\t\t\t<div class=\"bx--skeleton__text\" style=\"width: 100px\"></div>\n\t\t\t<div class=\"bx--skeleton__text\" style=\"width: 225px\"></div>\n\t\t\t<button ibmButton skeleton=\"true\"></button>\n\t\t</ng-template>\n\t","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":62,"character":12},"useExisting":{"__symbolic":"reference","name":"FileUploader"},"multi":true}]}]}],"members":{"buttonText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":78,"character":2}}]}],"title":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":82,"character":2}}]}],"description":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":86,"character":2}}]}],"accept":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":90,"character":2}}]}],"multiple":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":96,"character":2}}]}],"skeleton":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":100,"character":2}}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":106,"character":2}}]}],"fileUploaderId":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":110,"character":2}}]}],"fileInput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":114,"character":2},"arguments":["fileInput"]}]}],"files":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":118,"character":2}}]}],"filesChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":119,"character":2}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../i18n/i18n.module","name":"I18n","line":124,"character":29}]}],"ngOnInit":[{"__symbolic":"method"}],"onBlur":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"onFilesAdded":[{"__symbolic":"method"}],"removeFile":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}]},"statics":{"fileUploaderCount":0}}}}]
@@ -28,26 +28,27 @@ import * as i0 from "@angular/core";
28
28
  import * as i1 from "./file.component.ngfactory";
29
29
  import * as i2 from "./file.component";
30
30
  import * as i3 from "../i18n/i18n.service";
31
- import * as i4 from "../button/button.directive";
32
- import * as i5 from "@angular/common";
31
+ import * as i4 from "@angular/common";
32
+ import * as i5 from "../button/button.directive";
33
33
  import * as i6 from "@angular/forms";
34
34
  import * as i7 from "./file-uploader.component";
35
35
  var styles_FileUploader = [];
36
36
  var RenderType_FileUploader = i0.ɵcrt({ encapsulation: 2, styles: styles_FileUploader, data: {} });
37
37
  export { RenderType_FileUploader as RenderType_FileUploader };
38
- function View_FileUploader_2(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "ibm-file", [], [[2, "bx--file__selected-file", null]], [[null, "remove"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("remove" === en)) {
38
+ function View_FileUploader_3(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "div", [["class", "bx--form-requirement"]], null, null, null, null, null)), (_l()(), i0.ɵted(1, null, [" ", " "]))], null, function (_ck, _v) { var currVal_0 = _v.parent.context.$implicit.invalidText; _ck(_v, 1, 0, currVal_0); }); }
39
+ function View_FileUploader_2(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, "div", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "ibm-file", [], [[2, "bx--file__selected-file", null], [2, "bx--file__selected-file--invalid", null]], [[null, "remove"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("remove" === en)) {
39
40
  var pd_0 = (_co.removeFile(_v.context.$implicit) !== false);
40
41
  ad = (pd_0 && ad);
41
- } return ad; }, i1.View_File_0, i1.RenderType_File)), i0.ɵdid(1, 49152, null, 0, i2.File, [i3.I18n], { fileItem: [0, "fileItem"] }, { remove: "remove" })], function (_ck, _v) { var currVal_1 = _v.context.$implicit; _ck(_v, 1, 0, currVal_1); }, function (_ck, _v) { var currVal_0 = i0.ɵnov(_v, 1).selectedFile; _ck(_v, 0, 0, currVal_0); }); }
42
+ } return ad; }, i1.View_File_0, i1.RenderType_File)), i0.ɵdid(2, 49152, null, 0, i2.File, [i3.I18n], { fileItem: [0, "fileItem"] }, { remove: "remove" }), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_FileUploader_3)), i0.ɵdid(4, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) { var currVal_2 = _v.context.$implicit; _ck(_v, 2, 0, currVal_2); var currVal_3 = _v.context.$implicit.invalid; _ck(_v, 4, 0, currVal_3); }, function (_ck, _v) { var currVal_0 = i0.ɵnov(_v, 2).selectedFile; var currVal_1 = i0.ɵnov(_v, 2).isInvalidText; _ck(_v, 1, 0, currVal_0, currVal_1); }); }
42
43
  function View_FileUploader_1(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 12, null, null, null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "strong", [["class", "bx--file--label"]], null, null, null, null, null)), (_l()(), i0.ɵted(2, null, ["", ""])), (_l()(), i0.ɵeld(3, 0, null, null, 1, "p", [["class", "bx--label-description"]], null, null, null, null, null)), (_l()(), i0.ɵted(4, null, ["", ""])), (_l()(), i0.ɵeld(5, 0, null, null, 7, "div", [["class", "bx--file"]], null, null, null, null, null)), (_l()(), i0.ɵeld(6, 0, null, null, 2, "button", [["ibmButton", "primary"]], [[1, "for", 0], [2, "bx--btn", null], [2, "bx--btn--primary", null], [2, "bx--btn--secondary", null], [2, "bx--btn--tertiary", null], [2, "bx--btn--ghost", null], [2, "bx--btn--danger", null], [2, "bx--btn--danger--primary", null], [2, "bx--skeleton", null], [2, "bx--btn--sm", null], [2, "bx--toolbar-action", null], [2, "bx--overflow-menu", null]], [[null, "click"]], function (_v, en, $event) { var ad = true; if (("click" === en)) {
43
44
  var pd_0 = (i0.ɵnov(_v, 9).click() !== false);
44
45
  ad = (pd_0 && ad);
45
- } return ad; }, null, null)), i0.ɵdid(7, 16384, null, 0, i4.Button, [], { ibmButton: [0, "ibmButton"], size: [1, "size"] }, null), (_l()(), i0.ɵted(8, null, [" ", " "])), (_l()(), i0.ɵeld(9, 0, [[1, 0], ["fileInput", 1]], null, 0, "input", [["class", "bx--file-input"], ["tabindex", "-1"], ["type", "file"]], [[8, "accept", 0], [8, "id", 0], [8, "multiple", 0]], [[null, "change"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("change" === en)) {
46
+ } return ad; }, null, null)), i0.ɵdid(7, 16384, null, 0, i5.Button, [], { ibmButton: [0, "ibmButton"], size: [1, "size"] }, null), (_l()(), i0.ɵted(8, null, [" ", " "])), (_l()(), i0.ɵeld(9, 0, [[1, 0], ["fileInput", 1]], null, 0, "input", [["class", "bx--file-input"], ["tabindex", "-1"], ["type", "file"]], [[8, "accept", 0], [8, "id", 0], [8, "multiple", 0]], [[null, "change"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("change" === en)) {
46
47
  var pd_0 = (_co.onFilesAdded() !== false);
47
48
  ad = (pd_0 && ad);
48
- } return ad; }, null, null)), (_l()(), i0.ɵeld(10, 0, null, null, 2, "div", [["class", "bx--file-container"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_FileUploader_2)), i0.ɵdid(12, 278528, null, 0, i5.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_14 = "primary"; var currVal_15 = _co.size; _ck(_v, 7, 0, currVal_14, currVal_15); var currVal_20 = _co.files; _ck(_v, 12, 0, currVal_20); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.title; _ck(_v, 2, 0, currVal_0); var currVal_1 = _co.description; _ck(_v, 4, 0, currVal_1); var currVal_2 = _co.fileUploaderId; var currVal_3 = i0.ɵnov(_v, 7).baseClass; var currVal_4 = i0.ɵnov(_v, 7).primaryButton; var currVal_5 = i0.ɵnov(_v, 7).secondaryButton; var currVal_6 = i0.ɵnov(_v, 7).tertiaryButton; var currVal_7 = i0.ɵnov(_v, 7).ghostButton; var currVal_8 = i0.ɵnov(_v, 7).dangerButton; var currVal_9 = i0.ɵnov(_v, 7).dangerPrimaryButton; var currVal_10 = i0.ɵnov(_v, 7).skeleton; var currVal_11 = i0.ɵnov(_v, 7).smallSize; var currVal_12 = i0.ɵnov(_v, 7).toolbarAction; var currVal_13 = i0.ɵnov(_v, 7).overflowMenu; _ck(_v, 6, 1, [currVal_2, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7, currVal_8, currVal_9, currVal_10, currVal_11, currVal_12, currVal_13]); var currVal_16 = _co.buttonText; _ck(_v, 8, 0, currVal_16); var currVal_17 = _co.accept; var currVal_18 = _co.fileUploaderId; var currVal_19 = _co.multiple; _ck(_v, 9, 0, currVal_17, currVal_18, currVal_19); }); }
49
- function View_FileUploader_3(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, "div", [["class", "bx--skeleton__text"], ["style", "width: 100px"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 0, "div", [["class", "bx--skeleton__text"], ["style", "width: 225px"]], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 1, "button", [["ibmButton", ""], ["skeleton", "true"]], [[2, "bx--btn", null], [2, "bx--btn--primary", null], [2, "bx--btn--secondary", null], [2, "bx--btn--tertiary", null], [2, "bx--btn--ghost", null], [2, "bx--btn--danger", null], [2, "bx--btn--danger--primary", null], [2, "bx--skeleton", null], [2, "bx--btn--sm", null], [2, "bx--toolbar-action", null], [2, "bx--overflow-menu", null]], null, null, null, null)), i0.ɵdid(3, 16384, null, 0, i4.Button, [], { ibmButton: [0, "ibmButton"], skeleton: [1, "skeleton"] }, null)], function (_ck, _v) { var currVal_11 = ""; var currVal_12 = "true"; _ck(_v, 3, 0, currVal_11, currVal_12); }, function (_ck, _v) { var currVal_0 = i0.ɵnov(_v, 3).baseClass; var currVal_1 = i0.ɵnov(_v, 3).primaryButton; var currVal_2 = i0.ɵnov(_v, 3).secondaryButton; var currVal_3 = i0.ɵnov(_v, 3).tertiaryButton; var currVal_4 = i0.ɵnov(_v, 3).ghostButton; var currVal_5 = i0.ɵnov(_v, 3).dangerButton; var currVal_6 = i0.ɵnov(_v, 3).dangerPrimaryButton; var currVal_7 = i0.ɵnov(_v, 3).skeleton; var currVal_8 = i0.ɵnov(_v, 3).smallSize; var currVal_9 = i0.ɵnov(_v, 3).toolbarAction; var currVal_10 = i0.ɵnov(_v, 3).overflowMenu; _ck(_v, 2, 1, [currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7, currVal_8, currVal_9, currVal_10]); }); }
50
- export function View_FileUploader_0(_l) { return i0.ɵvid(0, [i0.ɵqud(671088640, 1, { fileInput: 0 }), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_FileUploader_1)), i0.ɵdid(2, 16384, null, 0, i5.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"], ngIfElse: [1, "ngIfElse"] }, null), (_l()(), i0.ɵand(0, [["skeletonTemplate", 2]], null, 0, null, View_FileUploader_3))], function (_ck, _v) { var _co = _v.component; var currVal_0 = !_co.skeleton; var currVal_1 = i0.ɵnov(_v, 3); _ck(_v, 2, 0, currVal_0, currVal_1); }, null); }
49
+ } return ad; }, null, null)), (_l()(), i0.ɵeld(10, 0, null, null, 2, "div", [["class", "bx--file-container"]], null, null, null, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_FileUploader_2)), i0.ɵdid(12, 278528, null, 0, i4.NgForOf, [i0.ViewContainerRef, i0.TemplateRef, i0.IterableDiffers], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_14 = "primary"; var currVal_15 = _co.size; _ck(_v, 7, 0, currVal_14, currVal_15); var currVal_20 = _co.files; _ck(_v, 12, 0, currVal_20); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.title; _ck(_v, 2, 0, currVal_0); var currVal_1 = _co.description; _ck(_v, 4, 0, currVal_1); var currVal_2 = _co.fileUploaderId; var currVal_3 = i0.ɵnov(_v, 7).baseClass; var currVal_4 = i0.ɵnov(_v, 7).primaryButton; var currVal_5 = i0.ɵnov(_v, 7).secondaryButton; var currVal_6 = i0.ɵnov(_v, 7).tertiaryButton; var currVal_7 = i0.ɵnov(_v, 7).ghostButton; var currVal_8 = i0.ɵnov(_v, 7).dangerButton; var currVal_9 = i0.ɵnov(_v, 7).dangerPrimaryButton; var currVal_10 = i0.ɵnov(_v, 7).skeleton; var currVal_11 = i0.ɵnov(_v, 7).smallSize; var currVal_12 = i0.ɵnov(_v, 7).toolbarAction; var currVal_13 = i0.ɵnov(_v, 7).overflowMenu; _ck(_v, 6, 1, [currVal_2, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7, currVal_8, currVal_9, currVal_10, currVal_11, currVal_12, currVal_13]); var currVal_16 = _co.buttonText; _ck(_v, 8, 0, currVal_16); var currVal_17 = _co.accept; var currVal_18 = _co.fileUploaderId; var currVal_19 = _co.multiple; _ck(_v, 9, 0, currVal_17, currVal_18, currVal_19); }); }
50
+ function View_FileUploader_4(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 0, "div", [["class", "bx--skeleton__text"], ["style", "width: 100px"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 0, "div", [["class", "bx--skeleton__text"], ["style", "width: 225px"]], null, null, null, null, null)), (_l()(), i0.ɵeld(2, 0, null, null, 1, "button", [["ibmButton", ""], ["skeleton", "true"]], [[2, "bx--btn", null], [2, "bx--btn--primary", null], [2, "bx--btn--secondary", null], [2, "bx--btn--tertiary", null], [2, "bx--btn--ghost", null], [2, "bx--btn--danger", null], [2, "bx--btn--danger--primary", null], [2, "bx--skeleton", null], [2, "bx--btn--sm", null], [2, "bx--toolbar-action", null], [2, "bx--overflow-menu", null]], null, null, null, null)), i0.ɵdid(3, 16384, null, 0, i5.Button, [], { ibmButton: [0, "ibmButton"], skeleton: [1, "skeleton"] }, null)], function (_ck, _v) { var currVal_11 = ""; var currVal_12 = "true"; _ck(_v, 3, 0, currVal_11, currVal_12); }, function (_ck, _v) { var currVal_0 = i0.ɵnov(_v, 3).baseClass; var currVal_1 = i0.ɵnov(_v, 3).primaryButton; var currVal_2 = i0.ɵnov(_v, 3).secondaryButton; var currVal_3 = i0.ɵnov(_v, 3).tertiaryButton; var currVal_4 = i0.ɵnov(_v, 3).ghostButton; var currVal_5 = i0.ɵnov(_v, 3).dangerButton; var currVal_6 = i0.ɵnov(_v, 3).dangerPrimaryButton; var currVal_7 = i0.ɵnov(_v, 3).skeleton; var currVal_8 = i0.ɵnov(_v, 3).smallSize; var currVal_9 = i0.ɵnov(_v, 3).toolbarAction; var currVal_10 = i0.ɵnov(_v, 3).overflowMenu; _ck(_v, 2, 1, [currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7, currVal_8, currVal_9, currVal_10]); }); }
51
+ export function View_FileUploader_0(_l) { return i0.ɵvid(0, [i0.ɵqud(671088640, 1, { fileInput: 0 }), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_FileUploader_1)), i0.ɵdid(2, 16384, null, 0, i4.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"], ngIfElse: [1, "ngIfElse"] }, null), (_l()(), i0.ɵand(0, [["skeletonTemplate", 2]], null, 0, null, View_FileUploader_4))], function (_ck, _v) { var _co = _v.component; var currVal_0 = !_co.skeleton; var currVal_1 = i0.ɵnov(_v, 3); _ck(_v, 2, 0, currVal_0, currVal_1); }, null); }
51
52
  export function View_FileUploader_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "ibm-file-uploader", [], null, null, null, View_FileUploader_0, RenderType_FileUploader)), i0.ɵprd(5120, null, i6.NG_VALUE_ACCESSOR, function (p0_0) { return [p0_0]; }, [i7.FileUploader]), i0.ɵdid(2, 114688, null, 0, i7.FileUploader, [i3.I18n], null, null)], function (_ck, _v) { _ck(_v, 2, 0); }, null); }
52
53
  var FileUploaderNgFactory = i0.ɵccf("ibm-file-uploader", i7.FileUploader, View_FileUploader_Host_0, { buttonText: "buttonText", title: "title", description: "description", accept: "accept", multiple: "multiple", skeleton: "skeleton", size: "size", fileUploaderId: "fileUploaderId", files: "files" }, { filesChange: "filesChange" }, []);
53
54
  export { FileUploaderNgFactory as FileUploaderNgFactory };
@@ -1 +1 @@
1
- {"version":3,"file":"file-uploader.component.ngfactory.js","sourceRoot":"","sources":["../src/file-uploader/file-uploader.component.ngfactory.ts","../src/file-uploader/file-uploader.component.ts.FileUploader.html"],"names":[],"mappings":";;;;;;;;;;;;;;;;;uDCsBK,wKAA+F,YAAhC;;wBAA+B;MAA9F,oJAA+F,2BAAtD,kBAAqB,oBAA9D,YAA+F,EAAtD,SAAqB,2BAA9D,oEAA+F;uDArBlG,8EAAuD,KACtD,2GAAgC,KAAA,gCAAS,MACzC,4GAAiC,KAAA,gCAAe,MAChD,iGAAsB,KACrB,seAIe,EAFd;;wBAA2B;MAF5B,8HAIe,IAAA,kCAEf,MACA,0QAQ4B,YAA3B;;wBAAyB;MAR1B,wBAQ4B,KAC5B,4GAAgC,KAC/B,2MAA+F,iDAhB/F,0BAAmB,EAGnB,oBAAa,OAJd,YAIe,EAHd,UAAmB,EAGnB,UAAa,GAaH,oBAA8B,QAAxC,aAA+F,EAArF,UAA8B,mDApBV,kDAAS,GACR,wDAAe,GAK9C,mBAA2B,iBAH5B,qgBAGC,SAA2B,EAH5B,2HAIe,CAAA,GAAA,yDAEf,GAKC,oBAAiB,SACjB,oBAAqB,iBACrB,oBAAqB,WANtB,YAQ4B,EAJ3B,UAAiB,EACjB,UAAqB,EACrB,UAAqB;uDAUvB,sIAAqD,KACrD,sIAAqD,KACrD,8iBAAkC,yBAA1B,mBAAS,EAAC,uBAAe,EAAjC,YAAkC,EAA1B,UAAS,EAAC,UAAe,2BAAjC,0nBAAkC;uGA7BnC,uMAAuD,IA0BvD,gFAA+B,kDA1BjB,4DAAwC,GAAtD,YAAuD,EAAzC,oBAAwC","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n","\n\t\t<ng-container *ngIf=\"!skeleton; else skeletonTemplate\">\n\t\t\t<strong class=\"bx--file--label\">{{title}}</strong>\n\t\t\t<p class=\"bx--label-description\">{{description}}</p>\n\t\t\t<div class=\"bx--file\">\n\t\t\t\t<button\n\t\t\t\t\tibmButton=\"primary\"\n\t\t\t\t\t(click)=\"fileInput.click()\"\n\t\t\t\t\t[attr.for]=\"fileUploaderId\"\n\t\t\t\t\t[size]=\"size\">\n\t\t\t\t\t{{buttonText}}\n\t\t\t\t</button>\n\t\t\t\t<input\n\t\t\t\t\t#fileInput\n\t\t\t\t\ttype=\"file\"\n\t\t\t\t\tclass=\"bx--file-input\"\n\t\t\t\t\t[accept]=\"accept\"\n\t\t\t\t\t[id]=\"fileUploaderId\"\n\t\t\t\t\t[multiple]=\"multiple\"\n\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\t(change)=\"onFilesAdded()\"/>\n\t\t\t\t<div class=\"bx--file-container\">\n\t\t\t\t\t<ibm-file *ngFor=\"let fileItem of files\" [fileItem]=\"fileItem\" (remove)=\"removeFile(fileItem)\"></ibm-file>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</ng-container>\n\n\t\t<ng-template #skeletonTemplate>\n\t\t\t<div class=\"bx--skeleton__text\" style=\"width: 100px\"></div>\n\t\t\t<div class=\"bx--skeleton__text\" style=\"width: 225px\"></div>\n\t\t\t<button ibmButton skeleton=\"true\"></button>\n\t\t</ng-template>\n\t"]}
1
+ {"version":3,"file":"file-uploader.component.ngfactory.js","sourceRoot":"","sources":["../src/file-uploader/file-uploader.component.ngfactory.ts","../src/file-uploader/file-uploader.component.ts.FileUploader.html"],"names":[],"mappings":";;;;;;;;;;;;;;;;;uDCwBM,6GAA2D,KAAA,mJAE3D;uDAJD,4EAAoC,KACnC,uNAAgE,YAAhC;;wBAA+B;MAA/D,oJAAgE,MAChE,4KAA2D,yBADjD,kBAAqB,oBAA/B,YAAgE,EAAtD,SAAqB,GAC1B,kBAAwB,4BAA7B,YAA2D,EAAtD,SAAwB,2BAD7B,6HAAgE;uDAtBpE,8EAAuD,KACtD,2GAAgC,KAAA,gCAAS,MACzC,4GAAiC,KAAA,gCAAe,MAChD,iGAAsB,KACrB,seAIe,EAFd;;wBAA2B;MAF5B,8HAIe,IAAA,kCAEf,MACA,0QAQ4B,YAA3B;;wBAAyB;MAR1B,wBAQ4B,KAC5B,4GAAgC,KAC/B,2MAAoC,iDAhBpC,0BAAmB,EAGnB,oBAAa,OAJd,YAIe,EAHd,UAAmB,EAGnB,UAAa,GAaR,oBAA8B,QAAnC,aAAoC,EAA/B,UAA8B,mDApBL,kDAAS,GACR,wDAAe,GAK9C,mBAA2B,iBAH5B,qgBAGC,SAA2B,EAH5B,2HAIe,CAAA,GAAA,yDAEf,GAKC,oBAAiB,SACjB,oBAAqB,iBACrB,oBAAqB,WANtB,YAQ4B,EAJ3B,UAAiB,EACjB,UAAqB,EACrB,UAAqB;uDAevB,sIAAqD,KACrD,sIAAqD,KACrD,8iBAAkC,yBAA1B,mBAAS,EAAC,uBAAe,EAAjC,YAAkC,EAA1B,UAAS,EAAC,UAAe,2BAAjC,0nBAAkC;uGAlCnC,uMAAuD,IA+BvD,gFAA+B,kDA/BjB,4DAAwC,GAAtD,YAAuD,EAAzC,oBAAwC","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n","\n\t\t<ng-container *ngIf=\"!skeleton; else skeletonTemplate\">\n\t\t\t<strong class=\"bx--file--label\">{{title}}</strong>\n\t\t\t<p class=\"bx--label-description\">{{description}}</p>\n\t\t\t<div class=\"bx--file\">\n\t\t\t\t<button\n\t\t\t\t\tibmButton=\"primary\"\n\t\t\t\t\t(click)=\"fileInput.click()\"\n\t\t\t\t\t[attr.for]=\"fileUploaderId\"\n\t\t\t\t\t[size]=\"size\">\n\t\t\t\t\t{{buttonText}}\n\t\t\t\t</button>\n\t\t\t\t<input\n\t\t\t\t\t#fileInput\n\t\t\t\t\ttype=\"file\"\n\t\t\t\t\tclass=\"bx--file-input\"\n\t\t\t\t\t[accept]=\"accept\"\n\t\t\t\t\t[id]=\"fileUploaderId\"\n\t\t\t\t\t[multiple]=\"multiple\"\n\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\t(change)=\"onFilesAdded()\"/>\n\t\t\t\t<div class=\"bx--file-container\">\n\t\t\t\t\t<div *ngFor=\"let fileItem of files\">\n\t\t\t\t\t\t<ibm-file [fileItem]=\"fileItem\" (remove)=\"removeFile(fileItem)\"></ibm-file>\n\t\t\t\t\t\t<div *ngIf=\"fileItem.invalid\" class=\"bx--form-requirement\">\n\t\t\t\t\t\t\t{{fileItem.invalidText}}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</ng-container>\n\n\t\t<ng-template #skeletonTemplate>\n\t\t\t<div class=\"bx--skeleton__text\" style=\"width: 100px\"></div>\n\t\t\t<div class=\"bx--skeleton__text\" style=\"width: 225px\"></div>\n\t\t\t<button ibmButton skeleton=\"true\"></button>\n\t\t</ng-template>\n\t"]}
@@ -22,6 +22,7 @@ import { NgModule } from "@angular/core";
22
22
  import { CommonModule } from "@angular/common";
23
23
  import { Close16Module } from "@carbon/icons-angular/lib/close/16";
24
24
  import { CheckmarkFilled16Module } from "@carbon/icons-angular/lib/checkmark--filled/16";
25
+ import { WarningFilled16Module } from "@carbon/icons-angular/lib/warning--filled/16";
25
26
  import { FileUploader } from "./file-uploader.component";
26
27
  import { File } from "./file.component";
27
28
  import { ButtonModule } from "../button/button.module";
@@ -39,7 +40,8 @@ var FileUploaderModule = /** @class */ (function () {
39
40
  ButtonModule,
40
41
  LoadingModule,
41
42
  Close16Module,
42
- CheckmarkFilled16Module
43
+ CheckmarkFilled16Module,
44
+ WarningFilled16Module
43
45
  ]
44
46
  },] },
45
47
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"file-uploader.module.js","sourceRoot":"","sources":["../src/file-uploader/file-uploader.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AAEzF,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD;IAAA;IAWkC,CAAC;;gBAXlC,QAAQ,SAAC;oBACT,YAAY,EAAE,CAAC,YAAY,EAAE,IAAI,CAAC;oBAClC,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE;wBACR,YAAY;wBACZ,YAAY;wBACZ,aAAa;wBACb,aAAa;wBACb,uBAAuB;qBACvB;iBACD;;IACiC,yBAAC;CAAA,AAXnC,IAWmC;SAAtB,kBAAkB","sourcesContent":["import { NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { Close16Module } from \"@carbon/icons-angular/lib/close/16\";\nimport { CheckmarkFilled16Module } from \"@carbon/icons-angular/lib/checkmark--filled/16\";\n\nimport { FileUploader } from \"./file-uploader.component\";\nimport { File } from \"./file.component\";\nimport { ButtonModule } from \"../button/button.module\";\nimport { LoadingModule } from \"../loading/loading.module\";\n\nexport { FileUploader } from \"./file-uploader.component\";\n\n@NgModule({\n\tdeclarations: [FileUploader, File],\n\texports: [FileUploader],\n\timports: [\n\t\tCommonModule,\n\t\tButtonModule,\n\t\tLoadingModule,\n\t\tClose16Module,\n\t\tCheckmarkFilled16Module\n\t]\n})\nexport class FileUploaderModule { }\n"]}
1
+ {"version":3,"file":"file-uploader.module.js","sourceRoot":"","sources":["../src/file-uploader/file-uploader.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AACzF,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAErF,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD;IAAA;IAYkC,CAAC;;gBAZlC,QAAQ,SAAC;oBACT,YAAY,EAAE,CAAC,YAAY,EAAE,IAAI,CAAC;oBAClC,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE;wBACR,YAAY;wBACZ,YAAY;wBACZ,aAAa;wBACb,aAAa;wBACb,uBAAuB;wBACvB,qBAAqB;qBACrB;iBACD;;IACiC,yBAAC;CAAA,AAZnC,IAYmC;SAAtB,kBAAkB","sourcesContent":["import { NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { Close16Module } from \"@carbon/icons-angular/lib/close/16\";\nimport { CheckmarkFilled16Module } from \"@carbon/icons-angular/lib/checkmark--filled/16\";\nimport { WarningFilled16Module } from \"@carbon/icons-angular/lib/warning--filled/16\";\n\nimport { FileUploader } from \"./file-uploader.component\";\nimport { File } from \"./file.component\";\nimport { ButtonModule } from \"../button/button.module\";\nimport { LoadingModule } from \"../loading/loading.module\";\n\nexport { FileUploader } from \"./file-uploader.component\";\n\n@NgModule({\n\tdeclarations: [FileUploader, File],\n\texports: [FileUploader],\n\timports: [\n\t\tCommonModule,\n\t\tButtonModule,\n\t\tLoadingModule,\n\t\tClose16Module,\n\t\tCheckmarkFilled16Module,\n\t\tWarningFilled16Module\n\t]\n})\nexport class FileUploaderModule { }\n"]}
@@ -1 +1 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"FileUploaderModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":12,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./file-uploader.component","name":"FileUploader","line":13,"character":16},{"__symbolic":"reference","module":"./file.component","name":"File","line":13,"character":30}],"exports":[{"__symbolic":"reference","module":"./file-uploader.component","name":"FileUploader","line":14,"character":11}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":16,"character":2},{"__symbolic":"reference","module":"../button/button.module","name":"ButtonModule","line":17,"character":2},{"__symbolic":"reference","module":"../loading/loading.module","name":"LoadingModule","line":18,"character":2},{"__symbolic":"reference","module":"@carbon/icons-angular/lib/close/16","name":"Close16Module","line":19,"character":2},{"__symbolic":"reference","module":"@carbon/icons-angular/lib/checkmark--filled/16","name":"CheckmarkFilled16Module","line":20,"character":2}]}]}]}},"exports":[{"from":"./file-uploader.component","export":["FileUploader"]}]}]
1
+ [{"__symbolic":"module","version":4,"metadata":{"FileUploaderModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":13,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./file-uploader.component","name":"FileUploader","line":14,"character":16},{"__symbolic":"reference","module":"./file.component","name":"File","line":14,"character":30}],"exports":[{"__symbolic":"reference","module":"./file-uploader.component","name":"FileUploader","line":15,"character":11}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":17,"character":2},{"__symbolic":"reference","module":"../button/button.module","name":"ButtonModule","line":18,"character":2},{"__symbolic":"reference","module":"../loading/loading.module","name":"LoadingModule","line":19,"character":2},{"__symbolic":"reference","module":"@carbon/icons-angular/lib/close/16","name":"Close16Module","line":20,"character":2},{"__symbolic":"reference","module":"@carbon/icons-angular/lib/checkmark--filled/16","name":"CheckmarkFilled16Module","line":21,"character":2},{"__symbolic":"reference","module":"@carbon/icons-angular/lib/warning--filled/16","name":"WarningFilled16Module","line":22,"character":2}]}]}]}},"exports":[{"from":"./file-uploader.component","export":["FileUploader"]}]}]
@@ -33,6 +33,7 @@ import * as i5 from "../button/button.module";
33
33
  import * as i6 from "../loading/loading.module";
34
34
  import * as i7 from "@carbon/icons-angular/lib/close/16";
35
35
  import * as i8 from "@carbon/icons-angular/lib/checkmark--filled/16";
36
- var FileUploaderModuleNgFactory = i0.ɵcmf(i1.FileUploaderModule, [], function (_l) { return i0.ɵmod([i0.ɵmpd(512, i0.ComponentFactoryResolver, i0.ɵCodegenComponentFactoryResolver, [[8, []], [3, i0.ComponentFactoryResolver], i0.NgModuleRef]), i0.ɵmpd(4608, i2.NgLocalization, i2.NgLocaleLocalization, [i0.LOCALE_ID, [2, i2.ɵangular_packages_common_common_a]]), i0.ɵmpd(5120, i3.I18n, i4.I18N_SERVICE_PROVIDER_FACTORY, [[3, i3.I18n]]), i0.ɵmpd(1073742336, i2.CommonModule, i2.CommonModule, []), i0.ɵmpd(1073742336, i5.ButtonModule, i5.ButtonModule, []), i0.ɵmpd(1073742336, i4.I18nModule, i4.I18nModule, []), i0.ɵmpd(1073742336, i6.LoadingModule, i6.LoadingModule, []), i0.ɵmpd(1073742336, i7.Close16Module, i7.Close16Module, []), i0.ɵmpd(1073742336, i8.CheckmarkFilled16Module, i8.CheckmarkFilled16Module, []), i0.ɵmpd(1073742336, i1.FileUploaderModule, i1.FileUploaderModule, [])]); });
36
+ import * as i9 from "@carbon/icons-angular/lib/warning--filled/16";
37
+ var FileUploaderModuleNgFactory = i0.ɵcmf(i1.FileUploaderModule, [], function (_l) { return i0.ɵmod([i0.ɵmpd(512, i0.ComponentFactoryResolver, i0.ɵCodegenComponentFactoryResolver, [[8, []], [3, i0.ComponentFactoryResolver], i0.NgModuleRef]), i0.ɵmpd(4608, i2.NgLocalization, i2.NgLocaleLocalization, [i0.LOCALE_ID, [2, i2.ɵangular_packages_common_common_a]]), i0.ɵmpd(5120, i3.I18n, i4.I18N_SERVICE_PROVIDER_FACTORY, [[3, i3.I18n]]), i0.ɵmpd(1073742336, i2.CommonModule, i2.CommonModule, []), i0.ɵmpd(1073742336, i5.ButtonModule, i5.ButtonModule, []), i0.ɵmpd(1073742336, i4.I18nModule, i4.I18nModule, []), i0.ɵmpd(1073742336, i6.LoadingModule, i6.LoadingModule, []), i0.ɵmpd(1073742336, i7.Close16Module, i7.Close16Module, []), i0.ɵmpd(1073742336, i8.CheckmarkFilled16Module, i8.CheckmarkFilled16Module, []), i0.ɵmpd(1073742336, i9.WarningFilled16Module, i9.WarningFilled16Module, []), i0.ɵmpd(1073742336, i1.FileUploaderModule, i1.FileUploaderModule, [])]); });
37
38
  export { FileUploaderModuleNgFactory as FileUploaderModuleNgFactory };
38
39
  //# sourceMappingURL=file-uploader.module.ngfactory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"file-uploader.module.ngfactory.js","sourceRoot":"","sources":["../src/file-uploader/file-uploader.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './file-uploader.module';\nimport * as i2 from '@angular/common';\nimport * as i3 from '../button/button.directive';\nimport * as i4 from '../loading/loading.component';\nimport * as i5 from '@carbon/icons-angular/lib/close/16';\nimport * as i6 from '@carbon/icons-angular/lib/checkmark--filled/16';\nimport * as i7 from './file-uploader.component';\nimport * as i8 from './file.component';\nimport * as i9 from '../button/button.module';\nimport * as i10 from '../loading/loading.module';\nexport const FileUploaderModuleNgFactory:i0.NgModuleFactory<i1.FileUploaderModule> = (null as any);\nvar _decl0_0:i2.NgClass = (<any>(null as any));\nvar _decl0_1:i2.NgComponentOutlet = (<any>(null as any));\nvar _decl0_2:i2.NgForOf<any> = (<any>(null as any));\nvar _decl0_3:i2.NgIf = (<any>(null as any));\nvar _decl0_4:i2.NgTemplateOutlet = (<any>(null as any));\nvar _decl0_5:i2.NgStyle = (<any>(null as any));\nvar _decl0_6:i2.NgSwitch = (<any>(null as any));\nvar _decl0_7:i2.NgSwitchCase = (<any>(null as any));\nvar _decl0_8:i2.NgSwitchDefault = (<any>(null as any));\nvar _decl0_9:i2.NgPlural = (<any>(null as any));\nvar _decl0_10:i2.NgPluralCase = (<any>(null as any));\nvar _decl0_11:i3.Button = (<any>(null as any));\nvar _decl0_12:i4.Loading = (<any>(null as any));\nvar _decl0_13:i5.Close16 = (<any>(null as any));\nvar _decl0_14:i5.Close16Directive = (<any>(null as any));\nvar _decl0_15:i6.CheckmarkFilled16 = (<any>(null as any));\nvar _decl0_16:i6.CheckmarkFilled16Directive = (<any>(null as any));\nvar _decl0_17:i7.FileUploader = (<any>(null as any));\nvar _decl0_18:i8.File = (<any>(null as any));\nvar _decl0_19:i2.AsyncPipe = (<any>(null as any));\nvar _decl0_20:i2.UpperCasePipe = (<any>(null as any));\nvar _decl0_21:i2.LowerCasePipe = (<any>(null as any));\nvar _decl0_22:i2.JsonPipe = (<any>(null as any));\nvar _decl0_23:i2.SlicePipe = (<any>(null as any));\nvar _decl0_24:i2.DecimalPipe = (<any>(null as any));\nvar _decl0_25:i2.PercentPipe = (<any>(null as any));\nvar _decl0_26:i2.TitleCasePipe = (<any>(null as any));\nvar _decl0_27:i2.CurrencyPipe = (<any>(null as any));\nvar _decl0_28:i2.DatePipe = (<any>(null as any));\nvar _decl0_29:i2.I18nPluralPipe = (<any>(null as any));\nvar _decl0_30:i2.I18nSelectPipe = (<any>(null as any));\nvar _decl0_31:i2.KeyValuePipe = (<any>(null as any));\nvar _decl0_32:i2.CommonModule = (<any>(null as any));\nvar _decl0_33:i9.ButtonModule = (<any>(null as any));\nvar _decl0_34:i10.LoadingModule = (<any>(null as any));\nvar _decl0_35:i5.Close16Module = (<any>(null as any));\nvar _decl0_36:i6.CheckmarkFilled16Module = (<any>(null as any));\nvar _decl0_37:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_38:i0.ElementRef<any> = (<any>(null as any));\nfunction _View_FileUploader_Host_1_0():void {\n var _any:any = (null as any);\n}\nfunction _View_FileUploader_1_0():void {\n var _any:any = (null as any);\n const currVal_0:any = !_decl0_17.skeleton;\n currVal_0;\n const currVal_1:any = _any;\n currVal_1;\n}\nfunction _View_File_Host_2_0():void {\n var _any:any = (null as any);\n}\nfunction _View_File_2_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_18.fileItem.file.name;\n currVal_0;\n const currVal_1:any = (_decl0_18.fileItem.state === 'edit');\n currVal_1;\n const currVal_2:any = (_decl0_18.fileItem.state === 'upload');\n currVal_2;\n const currVal_3:any = (_decl0_18.fileItem.state === 'complete');\n currVal_3;\n}\n"]}
1
+ {"version":3,"file":"file-uploader.module.ngfactory.js","sourceRoot":"","sources":["../src/file-uploader/file-uploader.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './file-uploader.module';\nimport * as i2 from '@angular/common';\nimport * as i3 from '../button/button.directive';\nimport * as i4 from '../loading/loading.component';\nimport * as i5 from '@carbon/icons-angular/lib/close/16';\nimport * as i6 from '@carbon/icons-angular/lib/checkmark--filled/16';\nimport * as i7 from '@carbon/icons-angular/lib/warning--filled/16';\nimport * as i8 from './file-uploader.component';\nimport * as i9 from './file.component';\nimport * as i10 from '../button/button.module';\nimport * as i11 from '../loading/loading.module';\nexport const FileUploaderModuleNgFactory:i0.NgModuleFactory<i1.FileUploaderModule> = (null as any);\nvar _decl0_0:i2.NgClass = (<any>(null as any));\nvar _decl0_1:i2.NgComponentOutlet = (<any>(null as any));\nvar _decl0_2:i2.NgForOf<any> = (<any>(null as any));\nvar _decl0_3:i2.NgIf = (<any>(null as any));\nvar _decl0_4:i2.NgTemplateOutlet = (<any>(null as any));\nvar _decl0_5:i2.NgStyle = (<any>(null as any));\nvar _decl0_6:i2.NgSwitch = (<any>(null as any));\nvar _decl0_7:i2.NgSwitchCase = (<any>(null as any));\nvar _decl0_8:i2.NgSwitchDefault = (<any>(null as any));\nvar _decl0_9:i2.NgPlural = (<any>(null as any));\nvar _decl0_10:i2.NgPluralCase = (<any>(null as any));\nvar _decl0_11:i3.Button = (<any>(null as any));\nvar _decl0_12:i4.Loading = (<any>(null as any));\nvar _decl0_13:i5.Close16 = (<any>(null as any));\nvar _decl0_14:i5.Close16Directive = (<any>(null as any));\nvar _decl0_15:i6.CheckmarkFilled16 = (<any>(null as any));\nvar _decl0_16:i6.CheckmarkFilled16Directive = (<any>(null as any));\nvar _decl0_17:i7.WarningFilled16 = (<any>(null as any));\nvar _decl0_18:i7.WarningFilled16Directive = (<any>(null as any));\nvar _decl0_19:i8.FileUploader = (<any>(null as any));\nvar _decl0_20:i9.File = (<any>(null as any));\nvar _decl0_21:i2.AsyncPipe = (<any>(null as any));\nvar _decl0_22:i2.UpperCasePipe = (<any>(null as any));\nvar _decl0_23:i2.LowerCasePipe = (<any>(null as any));\nvar _decl0_24:i2.JsonPipe = (<any>(null as any));\nvar _decl0_25:i2.SlicePipe = (<any>(null as any));\nvar _decl0_26:i2.DecimalPipe = (<any>(null as any));\nvar _decl0_27:i2.PercentPipe = (<any>(null as any));\nvar _decl0_28:i2.TitleCasePipe = (<any>(null as any));\nvar _decl0_29:i2.CurrencyPipe = (<any>(null as any));\nvar _decl0_30:i2.DatePipe = (<any>(null as any));\nvar _decl0_31:i2.I18nPluralPipe = (<any>(null as any));\nvar _decl0_32:i2.I18nSelectPipe = (<any>(null as any));\nvar _decl0_33:i2.KeyValuePipe = (<any>(null as any));\nvar _decl0_34:i2.CommonModule = (<any>(null as any));\nvar _decl0_35:i10.ButtonModule = (<any>(null as any));\nvar _decl0_36:i11.LoadingModule = (<any>(null as any));\nvar _decl0_37:i5.Close16Module = (<any>(null as any));\nvar _decl0_38:i6.CheckmarkFilled16Module = (<any>(null as any));\nvar _decl0_39:i7.WarningFilled16Module = (<any>(null as any));\nvar _decl0_40:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_41:i0.ElementRef<any> = (<any>(null as any));\nfunction _View_FileUploader_Host_1_0():void {\n var _any:any = (null as any);\n}\nfunction _View_FileUploader_1_0():void {\n var _any:any = (null as any);\n const currVal_0:any = !_decl0_19.skeleton;\n currVal_0;\n const currVal_1:any = _any;\n currVal_1;\n}\nfunction _View_File_Host_2_0():void {\n var _any:any = (null as any);\n}\nfunction _View_File_2_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_20.fileItem.file.name;\n currVal_0;\n const currVal_1:any = (_decl0_20.fileItem.state === 'edit');\n currVal_1;\n const currVal_2:any = (_decl0_20.fileItem.state === 'upload');\n currVal_2;\n const currVal_3:any = (_decl0_20.fileItem.state === 'complete');\n currVal_3;\n}\n"]}
@@ -1 +1 @@
1
- {"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbol":1,"members":[]}},{"symbol":{"__symbol":2,"members":[]},"metadata":{"__symbolic":"class"},"type":{"summaryKind":2,"type":{"reference":{"__symbol":2,"members":[]},"diDeps":[],"lifecycleHooks":[]},"entryComponents":[],"providers":[{"provider":{"token":{"identifier":{"reference":{"__symbol":3,"members":[]}}},"useClass":{"reference":{"__symbol":4,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":5,"members":[]}}}},{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":true,"token":{"identifier":{"reference":{"__symbol":6,"members":[]}}}}],"lifecycleHooks":[]},"useFactory":null,"deps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":5,"members":[]}}}},{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":true,"token":{"identifier":{"reference":{"__symbol":6,"members":[]}}}}],"multi":false},"module":{"reference":{"__symbol":7,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":8,"members":[]},"diDeps":[],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":8,"members":[]},"diDeps":[],"lifecycleHooks":[]},"useFactory":null,"deps":[],"multi":false},"module":{"reference":{"__symbol":9,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":8,"members":[]}}},"useClass":null,"useFactory":{"reference":{"__symbol":10,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":true,"isOptional":true,"token":{"identifier":{"reference":{"__symbol":8,"members":[]}}}}]},"deps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":true,"isOptional":true,"token":{"identifier":{"reference":{"__symbol":8,"members":[]}}}}],"multi":false},"module":{"reference":{"__symbol":9,"members":[]},"diDeps":[],"lifecycleHooks":[]}}],"modules":[{"reference":{"__symbol":7,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":11,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":9,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":12,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":13,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":14,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":2,"members":[]},"diDeps":[],"lifecycleHooks":[]}],"exportedDirectives":[{"reference":{"__symbol":1,"members":[]}}],"exportedPipes":[]}}],"symbols":[{"__symbol":0,"name":"FileUploader","filePath":"./file-uploader.module"},{"__symbol":1,"name":"FileUploader","filePath":"./file-uploader.component"},{"__symbol":2,"name":"FileUploaderModule","filePath":"./file-uploader.module"},{"__symbol":3,"name":"NgLocalization","filePath":"@angular/common"},{"__symbol":4,"name":"NgLocaleLocalization","filePath":"@angular/common"},{"__symbol":5,"name":"LOCALE_ID","filePath":"@angular/core"},{"__symbol":6,"name":"ɵangular_packages_common_common_a","filePath":"@angular/common"},{"__symbol":7,"name":"CommonModule","filePath":"@angular/common"},{"__symbol":8,"name":"I18n","filePath":"../i18n/i18n.service"},{"__symbol":9,"name":"I18nModule","filePath":"../i18n/i18n.module"},{"__symbol":10,"name":"I18N_SERVICE_PROVIDER_FACTORY","filePath":"../i18n/i18n.module"},{"__symbol":11,"name":"ButtonModule","filePath":"../button/button.module"},{"__symbol":12,"name":"LoadingModule","filePath":"../loading/loading.module"},{"__symbol":13,"name":"Close16Module","filePath":"@carbon/icons-angular/lib/close/16"},{"__symbol":14,"name":"CheckmarkFilled16Module","filePath":"@carbon/icons-angular/lib/checkmark--filled/16"}]}
1
+ {"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbol":1,"members":[]}},{"symbol":{"__symbol":2,"members":[]},"metadata":{"__symbolic":"class"},"type":{"summaryKind":2,"type":{"reference":{"__symbol":2,"members":[]},"diDeps":[],"lifecycleHooks":[]},"entryComponents":[],"providers":[{"provider":{"token":{"identifier":{"reference":{"__symbol":3,"members":[]}}},"useClass":{"reference":{"__symbol":4,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":5,"members":[]}}}},{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":true,"token":{"identifier":{"reference":{"__symbol":6,"members":[]}}}}],"lifecycleHooks":[]},"useFactory":null,"deps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":5,"members":[]}}}},{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":true,"token":{"identifier":{"reference":{"__symbol":6,"members":[]}}}}],"multi":false},"module":{"reference":{"__symbol":7,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":8,"members":[]},"diDeps":[],"lifecycleHooks":[]}},"useClass":{"reference":{"__symbol":8,"members":[]},"diDeps":[],"lifecycleHooks":[]},"useFactory":null,"deps":[],"multi":false},"module":{"reference":{"__symbol":9,"members":[]},"diDeps":[],"lifecycleHooks":[]}},{"provider":{"token":{"identifier":{"reference":{"__symbol":8,"members":[]}}},"useClass":null,"useFactory":{"reference":{"__symbol":10,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":true,"isOptional":true,"token":{"identifier":{"reference":{"__symbol":8,"members":[]}}}}]},"deps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":true,"isOptional":true,"token":{"identifier":{"reference":{"__symbol":8,"members":[]}}}}],"multi":false},"module":{"reference":{"__symbol":9,"members":[]},"diDeps":[],"lifecycleHooks":[]}}],"modules":[{"reference":{"__symbol":7,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":11,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":9,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":12,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":13,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":14,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":15,"members":[]},"diDeps":[],"lifecycleHooks":[]},{"reference":{"__symbol":2,"members":[]},"diDeps":[],"lifecycleHooks":[]}],"exportedDirectives":[{"reference":{"__symbol":1,"members":[]}}],"exportedPipes":[]}}],"symbols":[{"__symbol":0,"name":"FileUploader","filePath":"./file-uploader.module"},{"__symbol":1,"name":"FileUploader","filePath":"./file-uploader.component"},{"__symbol":2,"name":"FileUploaderModule","filePath":"./file-uploader.module"},{"__symbol":3,"name":"NgLocalization","filePath":"@angular/common"},{"__symbol":4,"name":"NgLocaleLocalization","filePath":"@angular/common"},{"__symbol":5,"name":"LOCALE_ID","filePath":"@angular/core"},{"__symbol":6,"name":"ɵangular_packages_common_common_a","filePath":"@angular/common"},{"__symbol":7,"name":"CommonModule","filePath":"@angular/common"},{"__symbol":8,"name":"I18n","filePath":"../i18n/i18n.service"},{"__symbol":9,"name":"I18nModule","filePath":"../i18n/i18n.module"},{"__symbol":10,"name":"I18N_SERVICE_PROVIDER_FACTORY","filePath":"../i18n/i18n.module"},{"__symbol":11,"name":"ButtonModule","filePath":"../button/button.module"},{"__symbol":12,"name":"LoadingModule","filePath":"../loading/loading.module"},{"__symbol":13,"name":"Close16Module","filePath":"@carbon/icons-angular/lib/close/16"},{"__symbol":14,"name":"CheckmarkFilled16Module","filePath":"@carbon/icons-angular/lib/checkmark--filled/16"},{"__symbol":15,"name":"WarningFilled16Module","filePath":"@carbon/icons-angular/lib/warning--filled/16"}]}
@@ -33,5 +33,6 @@ export declare class File {
33
33
  fileItem: FileItem;
34
34
  remove: EventEmitter<{}>;
35
35
  selectedFile: boolean;
36
+ readonly isInvalidText: string;
36
37
  constructor(i18n: I18n);
37
38
  }
@@ -30,10 +30,17 @@ var File = /** @class */ (function () {
30
30
  this.remove = new EventEmitter();
31
31
  this.selectedFile = true;
32
32
  }
33
+ Object.defineProperty(File.prototype, "isInvalidText", {
34
+ get: function () {
35
+ return this.fileItem.invalidText;
36
+ },
37
+ enumerable: true,
38
+ configurable: true
39
+ });
33
40
  File.decorators = [
34
41
  { type: Component, args: [{
35
42
  selector: "ibm-file",
36
- template: "\n\t\t<p class=\"bx--file-filename\">{{fileItem.file.name}}</p>\n\t\t<span\n\t\t\t*ngIf=\"fileItem.state === 'edit'\"\n\t\t\tclass=\"bx--file__state-container\"\n\t\t\t(click)=\"remove.emit()\"\n\t\t\t(keyup.enter)=\"remove.emit()\"\n\t\t\t(keyup.space)=\"remove.emit()\"\n\t\t\ttabindex=\"0\">\n\t\t\t<ibm-icon-close16\n\t\t\t\tclass=\"bx--file-close\"\n\t\t\t\t[ariaLabel]=\"translations.REMOVE_BUTTON\">\n\t\t\t</ibm-icon-close16>\n\t\t</span>\n\t\t<span *ngIf=\"fileItem.state === 'upload'\">\n\t\t\t<ibm-loading size=\"sm\"></ibm-loading>\n\t\t</span>\n\t\t<span\n\t\t\t*ngIf=\"fileItem.state === 'complete'\"\n\t\t\tclass=\"bx--file__state-container\"\n\t\t\ttabindex=\"0\">\n\t\t\t<ibm-icon-checkmark-filled16\n\t\t\t\tclass=\"bx--file-complete\"\n\t\t\t\t[ariaLabel]=\"translations.CHECKMARK\">\n\t\t\t</ibm-icon-checkmark-filled16>\n\t\t</span>\n\t"
43
+ template: "\n\t\t<p class=\"bx--file-filename\">{{fileItem.file.name}}</p>\n\t\t<span\n\t\t\t*ngIf=\"fileItem.state === 'edit'\"\n\t\t\tclass=\"bx--file__state-container\"\n\t\t\t(click)=\"remove.emit()\"\n\t\t\t(keyup.enter)=\"remove.emit()\"\n\t\t\t(keyup.space)=\"remove.emit()\"\n\t\t\ttabindex=\"0\">\n\t\t\t<ibm-icon-warning-filled16\n\t\t\t\t*ngIf=\"isInvalidText\"\n\t\t\t\tclass=\"bx--file--invalid\">\n\t\t\t</ibm-icon-warning-filled16>\n\t\t\t<ibm-icon-close16\n\t\t\t\tclass=\"bx--file-close\"\n\t\t\t\t[ariaLabel]=\"translations.REMOVE_BUTTON\">\n\t\t\t</ibm-icon-close16>\n\t\t</span>\n\t\t<span *ngIf=\"fileItem.state === 'upload'\">\n\t\t\t<ibm-loading size=\"sm\"></ibm-loading>\n\t\t</span>\n\t\t<span\n\t\t\t*ngIf=\"fileItem.state === 'complete'\"\n\t\t\tclass=\"bx--file__state-container\"\n\t\t\ttabindex=\"0\">\n\t\t\t<ibm-icon-checkmark-filled16\n\t\t\t\tclass=\"bx--file-complete\"\n\t\t\t\t[ariaLabel]=\"translations.CHECKMARK\">\n\t\t\t</ibm-icon-checkmark-filled16>\n\t\t</span>\n\t"
37
44
  },] },
38
45
  ];
39
46
  /** @nocollapse */
@@ -44,7 +51,8 @@ var File = /** @class */ (function () {
44
51
  translations: [{ type: Input }],
45
52
  fileItem: [{ type: Input }],
46
53
  remove: [{ type: Output }],
47
- selectedFile: [{ type: HostBinding, args: ["class.bx--file__selected-file",] }]
54
+ selectedFile: [{ type: HostBinding, args: ["class.bx--file__selected-file",] }],
55
+ isInvalidText: [{ type: HostBinding, args: ["class.bx--file__selected-file--invalid",] }]
48
56
  };
49
57
  return File;
50
58
  }());
@@ -1 +1 @@
1
- {"version":3,"file":"file.component.js","sourceRoot":"","sources":["../src/file-uploader/file.component.ts"],"names":[],"mappings":"AACA,OAAO,EACN,SAAS,EACT,KAAK,EACL,MAAM,EAEN,YAAY,EAEZ,WAAW,EACX,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAG3C;IA4CC,cAAsB,IAAU;QAAV,SAAI,GAAJ,IAAI,CAAM;QAbhC;;WAEG;QACM,iBAAY,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC;QAM5C,WAAM,GAAG,IAAI,YAAY,EAAE,CAAC;QAEQ,iBAAY,GAAG,IAAI,CAAC;IAE/B,CAAC;;gBA5CpC,SAAS,SAAC;oBACV,QAAQ,EAAE,UAAU;oBACpB,QAAQ,EAAE,21BA0BT;iBACD;;;;gBAhCQ,IAAI;;;+BAqCX,KAAK;2BAIL,KAAK;yBAEL,MAAM;+BAEN,WAAW,SAAC,+BAA+B;;IAG7C,WAAC;CAAA,AA7CD,IA6CC;SAfY,IAAI","sourcesContent":["\nimport {\n\tComponent,\n\tInput,\n\tOutput,\n\tViewChild,\n\tEventEmitter,\n\tOnInit,\n\tHostBinding\n} from \"@angular/core\";\nimport { NG_VALUE_ACCESSOR } from \"@angular/forms\";\n\nimport { I18n } from \"../i18n/i18n.module\";\nimport { FileItem } from \"./file-item.interface\";\n\n@Component({\n\tselector: \"ibm-file\",\n\ttemplate: `\n\t\t<p class=\"bx--file-filename\">{{fileItem.file.name}}</p>\n\t\t<span\n\t\t\t*ngIf=\"fileItem.state === 'edit'\"\n\t\t\tclass=\"bx--file__state-container\"\n\t\t\t(click)=\"remove.emit()\"\n\t\t\t(keyup.enter)=\"remove.emit()\"\n\t\t\t(keyup.space)=\"remove.emit()\"\n\t\t\ttabindex=\"0\">\n\t\t\t<ibm-icon-close16\n\t\t\t\tclass=\"bx--file-close\"\n\t\t\t\t[ariaLabel]=\"translations.REMOVE_BUTTON\">\n\t\t\t</ibm-icon-close16>\n\t\t</span>\n\t\t<span *ngIf=\"fileItem.state === 'upload'\">\n\t\t\t<ibm-loading size=\"sm\"></ibm-loading>\n\t\t</span>\n\t\t<span\n\t\t\t*ngIf=\"fileItem.state === 'complete'\"\n\t\t\tclass=\"bx--file__state-container\"\n\t\t\ttabindex=\"0\">\n\t\t\t<ibm-icon-checkmark-filled16\n\t\t\t\tclass=\"bx--file-complete\"\n\t\t\t\t[ariaLabel]=\"translations.CHECKMARK\">\n\t\t\t</ibm-icon-checkmark-filled16>\n\t\t</span>\n\t`\n})\nexport class File {\n\t/**\n\t * Accessible translations for the close and complete icons\n\t */\n\t@Input() translations = this.i18n.get().FILE_UPLOADER;\n\t/**\n\t * A single `FileItem` from the set of `FileItem`s\n\t */\n\t@Input() fileItem: FileItem;\n\n\t@Output() remove = new EventEmitter();\n\n\t@HostBinding(\"class.bx--file__selected-file\") selectedFile = true;\n\n\tconstructor(protected i18n: I18n) {}\n}\n"]}
1
+ {"version":3,"file":"file.component.js","sourceRoot":"","sources":["../src/file-uploader/file.component.ts"],"names":[],"mappings":"AACA,OAAO,EACN,SAAS,EACT,KAAK,EACL,MAAM,EAEN,YAAY,EAEZ,WAAW,EACX,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAG3C;IAoDC,cAAsB,IAAU;QAAV,SAAI,GAAJ,IAAI,CAAM;QAjBhC;;WAEG;QACM,iBAAY,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC;QAM5C,WAAM,GAAG,IAAI,YAAY,EAAE,CAAC;QAEQ,iBAAY,GAAG,IAAI,CAAC;IAM/B,CAAC;IAJpC,sBAA2D,+BAAa;aAAxE;YACC,OAAO,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC;QAClC,CAAC;;;OAAA;;gBAlDD,SAAS,SAAC;oBACV,QAAQ,EAAE,UAAU;oBACpB,QAAQ,EAAE,w+BA8BT;iBACD;;;;gBApCQ,IAAI;;;+BAyCX,KAAK;2BAIL,KAAK;yBAEL,MAAM;+BAEN,WAAW,SAAC,+BAA+B;gCAE3C,WAAW,SAAC,wCAAwC;;IAKtD,WAAC;CAAA,AArDD,IAqDC;SAnBY,IAAI","sourcesContent":["\nimport {\n\tComponent,\n\tInput,\n\tOutput,\n\tViewChild,\n\tEventEmitter,\n\tOnInit,\n\tHostBinding\n} from \"@angular/core\";\nimport { NG_VALUE_ACCESSOR } from \"@angular/forms\";\n\nimport { I18n } from \"../i18n/i18n.module\";\nimport { FileItem } from \"./file-item.interface\";\n\n@Component({\n\tselector: \"ibm-file\",\n\ttemplate: `\n\t\t<p class=\"bx--file-filename\">{{fileItem.file.name}}</p>\n\t\t<span\n\t\t\t*ngIf=\"fileItem.state === 'edit'\"\n\t\t\tclass=\"bx--file__state-container\"\n\t\t\t(click)=\"remove.emit()\"\n\t\t\t(keyup.enter)=\"remove.emit()\"\n\t\t\t(keyup.space)=\"remove.emit()\"\n\t\t\ttabindex=\"0\">\n\t\t\t<ibm-icon-warning-filled16\n\t\t\t\t*ngIf=\"isInvalidText\"\n\t\t\t\tclass=\"bx--file--invalid\">\n\t\t\t</ibm-icon-warning-filled16>\n\t\t\t<ibm-icon-close16\n\t\t\t\tclass=\"bx--file-close\"\n\t\t\t\t[ariaLabel]=\"translations.REMOVE_BUTTON\">\n\t\t\t</ibm-icon-close16>\n\t\t</span>\n\t\t<span *ngIf=\"fileItem.state === 'upload'\">\n\t\t\t<ibm-loading size=\"sm\"></ibm-loading>\n\t\t</span>\n\t\t<span\n\t\t\t*ngIf=\"fileItem.state === 'complete'\"\n\t\t\tclass=\"bx--file__state-container\"\n\t\t\ttabindex=\"0\">\n\t\t\t<ibm-icon-checkmark-filled16\n\t\t\t\tclass=\"bx--file-complete\"\n\t\t\t\t[ariaLabel]=\"translations.CHECKMARK\">\n\t\t\t</ibm-icon-checkmark-filled16>\n\t\t</span>\n\t`\n})\nexport class File {\n\t/**\n\t * Accessible translations for the close and complete icons\n\t */\n\t@Input() translations = this.i18n.get().FILE_UPLOADER;\n\t/**\n\t * A single `FileItem` from the set of `FileItem`s\n\t */\n\t@Input() fileItem: FileItem;\n\n\t@Output() remove = new EventEmitter();\n\n\t@HostBinding(\"class.bx--file__selected-file\") selectedFile = true;\n\n\t@HostBinding(\"class.bx--file__selected-file--invalid\") get isInvalidText() {\n\t\treturn this.fileItem.invalidText;\n\t}\n\n\tconstructor(protected i18n: I18n) {}\n}\n"]}
@@ -1 +1 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"File":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":15,"character":1},"arguments":[{"selector":"ibm-file","template":"\n\t\t<p class=\"bx--file-filename\">{{fileItem.file.name}}</p>\n\t\t<span\n\t\t\t*ngIf=\"fileItem.state === 'edit'\"\n\t\t\tclass=\"bx--file__state-container\"\n\t\t\t(click)=\"remove.emit()\"\n\t\t\t(keyup.enter)=\"remove.emit()\"\n\t\t\t(keyup.space)=\"remove.emit()\"\n\t\t\ttabindex=\"0\">\n\t\t\t<ibm-icon-close16\n\t\t\t\tclass=\"bx--file-close\"\n\t\t\t\t[ariaLabel]=\"translations.REMOVE_BUTTON\">\n\t\t\t</ibm-icon-close16>\n\t\t</span>\n\t\t<span *ngIf=\"fileItem.state === 'upload'\">\n\t\t\t<ibm-loading size=\"sm\"></ibm-loading>\n\t\t</span>\n\t\t<span\n\t\t\t*ngIf=\"fileItem.state === 'complete'\"\n\t\t\tclass=\"bx--file__state-container\"\n\t\t\ttabindex=\"0\">\n\t\t\t<ibm-icon-checkmark-filled16\n\t\t\t\tclass=\"bx--file-complete\"\n\t\t\t\t[ariaLabel]=\"translations.CHECKMARK\">\n\t\t\t</ibm-icon-checkmark-filled16>\n\t\t</span>\n\t"}]}],"members":{"translations":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":49,"character":2}}]}],"fileItem":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":53,"character":2}}]}],"remove":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":55,"character":2}}]}],"selectedFile":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":57,"character":2},"arguments":["class.bx--file__selected-file"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../i18n/i18n.module","name":"I18n","line":59,"character":29}]}]}}}}]
1
+ [{"__symbolic":"module","version":4,"metadata":{"File":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":15,"character":1},"arguments":[{"selector":"ibm-file","template":"\n\t\t<p class=\"bx--file-filename\">{{fileItem.file.name}}</p>\n\t\t<span\n\t\t\t*ngIf=\"fileItem.state === 'edit'\"\n\t\t\tclass=\"bx--file__state-container\"\n\t\t\t(click)=\"remove.emit()\"\n\t\t\t(keyup.enter)=\"remove.emit()\"\n\t\t\t(keyup.space)=\"remove.emit()\"\n\t\t\ttabindex=\"0\">\n\t\t\t<ibm-icon-warning-filled16\n\t\t\t\t*ngIf=\"isInvalidText\"\n\t\t\t\tclass=\"bx--file--invalid\">\n\t\t\t</ibm-icon-warning-filled16>\n\t\t\t<ibm-icon-close16\n\t\t\t\tclass=\"bx--file-close\"\n\t\t\t\t[ariaLabel]=\"translations.REMOVE_BUTTON\">\n\t\t\t</ibm-icon-close16>\n\t\t</span>\n\t\t<span *ngIf=\"fileItem.state === 'upload'\">\n\t\t\t<ibm-loading size=\"sm\"></ibm-loading>\n\t\t</span>\n\t\t<span\n\t\t\t*ngIf=\"fileItem.state === 'complete'\"\n\t\t\tclass=\"bx--file__state-container\"\n\t\t\ttabindex=\"0\">\n\t\t\t<ibm-icon-checkmark-filled16\n\t\t\t\tclass=\"bx--file-complete\"\n\t\t\t\t[ariaLabel]=\"translations.CHECKMARK\">\n\t\t\t</ibm-icon-checkmark-filled16>\n\t\t</span>\n\t"}]}],"members":{"translations":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":53,"character":2}}]}],"fileItem":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":57,"character":2}}]}],"remove":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":59,"character":2}}]}],"selectedFile":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":61,"character":2},"arguments":["class.bx--file__selected-file"]}]}],"isInvalidText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":63,"character":2},"arguments":["class.bx--file__selected-file--invalid"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../i18n/i18n.module","name":"I18n","line":67,"character":29}]}]}}}}]
@@ -25,19 +25,22 @@
25
25
  * tslint:disable
26
26
  */
27
27
  import * as i0 from "@angular/core";
28
- import * as i1 from "../../../node_modules/@carbon/icons-angular/lib/close/16.ngfactory";
29
- import * as i2 from "@carbon/icons-angular/lib/close/16";
30
- import * as i3 from "../loading/loading.component.ngfactory";
31
- import * as i4 from "../loading/loading.component";
32
- import * as i5 from "../i18n/i18n.service";
33
- import * as i6 from "../../../node_modules/@carbon/icons-angular/lib/checkmark--filled/16.ngfactory";
34
- import * as i7 from "@carbon/icons-angular/lib/checkmark--filled/16";
35
- import * as i8 from "@angular/common";
36
- import * as i9 from "./file.component";
28
+ import * as i1 from "../../../node_modules/@carbon/icons-angular/lib/warning--filled/16.ngfactory";
29
+ import * as i2 from "@carbon/icons-angular/lib/warning--filled/16";
30
+ import * as i3 from "@angular/common";
31
+ import * as i4 from "../../../node_modules/@carbon/icons-angular/lib/close/16.ngfactory";
32
+ import * as i5 from "@carbon/icons-angular/lib/close/16";
33
+ import * as i6 from "../loading/loading.component.ngfactory";
34
+ import * as i7 from "../loading/loading.component";
35
+ import * as i8 from "../i18n/i18n.service";
36
+ import * as i9 from "../../../node_modules/@carbon/icons-angular/lib/checkmark--filled/16.ngfactory";
37
+ import * as i10 from "@carbon/icons-angular/lib/checkmark--filled/16";
38
+ import * as i11 from "./file.component";
37
39
  var styles_File = [];
38
40
  var RenderType_File = i0.ɵcrt({ encapsulation: 2, styles: styles_File, data: {} });
39
41
  export { RenderType_File as RenderType_File };
40
- function View_File_1(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "span", [["class", "bx--file__state-container"], ["tabindex", "0"]], null, [[null, "click"], [null, "keyup.enter"], [null, "keyup.space"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) {
42
+ function View_File_2(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "ibm-icon-warning-filled16", [["class", "bx--file--invalid"]], null, null, null, i1.View_WarningFilled16_0, i1.RenderType_WarningFilled16)), i0.ɵdid(1, 49152, null, 0, i2.WarningFilled16, [], null, null)], null, null); }
43
+ function View_File_1(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 4, "span", [["class", "bx--file__state-container"], ["tabindex", "0"]], null, [[null, "click"], [null, "keyup.enter"], [null, "keyup.space"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) {
41
44
  var pd_0 = (_co.remove.emit() !== false);
42
45
  ad = (pd_0 && ad);
43
46
  } if (("keyup.enter" === en)) {
@@ -46,11 +49,11 @@ function View_File_1(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, nul
46
49
  } if (("keyup.space" === en)) {
47
50
  var pd_2 = (_co.remove.emit() !== false);
48
51
  ad = (pd_2 && ad);
49
- } return ad; }, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "ibm-icon-close16", [["class", "bx--file-close"]], null, null, null, i1.View_Close16_0, i1.RenderType_Close16)), i0.ɵdid(2, 49152, null, 0, i2.Close16, [], { ariaLabel: [0, "ariaLabel"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.translations.REMOVE_BUTTON; _ck(_v, 2, 0, currVal_0); }, null); }
50
- function View_File_2(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "span", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "ibm-loading", [["size", "sm"]], [[2, "bx--loading-overlay", null]], null, null, i3.View_Loading_0, i3.RenderType_Loading)), i0.ɵdid(2, 49152, null, 0, i4.Loading, [i5.I18n], { size: [0, "size"] }, null)], function (_ck, _v) { var currVal_1 = "sm"; _ck(_v, 2, 0, currVal_1); }, function (_ck, _v) { var currVal_0 = i0.ɵnov(_v, 2).overlay; _ck(_v, 1, 0, currVal_0); }); }
51
- function View_File_3(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "span", [["class", "bx--file__state-container"], ["tabindex", "0"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "ibm-icon-checkmark-filled16", [["class", "bx--file-complete"]], null, null, null, i6.View_CheckmarkFilled16_0, i6.RenderType_CheckmarkFilled16)), i0.ɵdid(2, 49152, null, 0, i7.CheckmarkFilled16, [], { ariaLabel: [0, "ariaLabel"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.translations.CHECKMARK; _ck(_v, 2, 0, currVal_0); }, null); }
52
- export function View_File_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "p", [["class", "bx--file-filename"]], null, null, null, null, null)), (_l()(), i0.ɵted(1, null, ["", ""])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_File_1)), i0.ɵdid(3, 16384, null, 0, i8.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_File_2)), i0.ɵdid(5, 16384, null, 0, i8.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_File_3)), i0.ɵdid(7, 16384, null, 0, i8.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_1 = (_co.fileItem.state === "edit"); _ck(_v, 3, 0, currVal_1); var currVal_2 = (_co.fileItem.state === "upload"); _ck(_v, 5, 0, currVal_2); var currVal_3 = (_co.fileItem.state === "complete"); _ck(_v, 7, 0, currVal_3); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.fileItem.file.name; _ck(_v, 1, 0, currVal_0); }); }
53
- export function View_File_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "ibm-file", [], [[2, "bx--file__selected-file", null]], null, null, View_File_0, RenderType_File)), i0.ɵdid(1, 49152, null, 0, i9.File, [i5.I18n], null, null)], null, function (_ck, _v) { var currVal_0 = i0.ɵnov(_v, 1).selectedFile; _ck(_v, 0, 0, currVal_0); }); }
54
- var FileNgFactory = i0.ɵccf("ibm-file", i9.File, View_File_Host_0, { translations: "translations", fileItem: "fileItem" }, { remove: "remove" }, []);
52
+ } return ad; }, null, null)), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_File_2)), i0.ɵdid(2, 16384, null, 0, i3.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵeld(3, 0, null, null, 1, "ibm-icon-close16", [["class", "bx--file-close"]], null, null, null, i4.View_Close16_0, i4.RenderType_Close16)), i0.ɵdid(4, 49152, null, 0, i5.Close16, [], { ariaLabel: [0, "ariaLabel"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.isInvalidText; _ck(_v, 2, 0, currVal_0); var currVal_1 = _co.translations.REMOVE_BUTTON; _ck(_v, 4, 0, currVal_1); }, null); }
53
+ function View_File_3(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "span", [], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "ibm-loading", [["size", "sm"]], [[2, "bx--loading-overlay", null]], null, null, i6.View_Loading_0, i6.RenderType_Loading)), i0.ɵdid(2, 49152, null, 0, i7.Loading, [i8.I18n], { size: [0, "size"] }, null)], function (_ck, _v) { var currVal_1 = "sm"; _ck(_v, 2, 0, currVal_1); }, function (_ck, _v) { var currVal_0 = i0.ɵnov(_v, 2).overlay; _ck(_v, 1, 0, currVal_0); }); }
54
+ function View_File_4(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 2, "span", [["class", "bx--file__state-container"], ["tabindex", "0"]], null, null, null, null, null)), (_l()(), i0.ɵeld(1, 0, null, null, 1, "ibm-icon-checkmark-filled16", [["class", "bx--file-complete"]], null, null, null, i9.View_CheckmarkFilled16_0, i9.RenderType_CheckmarkFilled16)), i0.ɵdid(2, 49152, null, 0, i10.CheckmarkFilled16, [], { ariaLabel: [0, "ariaLabel"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.translations.CHECKMARK; _ck(_v, 2, 0, currVal_0); }, null); }
55
+ export function View_File_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "p", [["class", "bx--file-filename"]], null, null, null, null, null)), (_l()(), i0.ɵted(1, null, ["", ""])), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_File_1)), i0.ɵdid(3, 16384, null, 0, i3.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_File_3)), i0.ɵdid(5, 16384, null, 0, i3.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null), (_l()(), i0.ɵand(16777216, null, null, 1, null, View_File_4)), i0.ɵdid(7, 16384, null, 0, i3.NgIf, [i0.ViewContainerRef, i0.TemplateRef], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_1 = (_co.fileItem.state === "edit"); _ck(_v, 3, 0, currVal_1); var currVal_2 = (_co.fileItem.state === "upload"); _ck(_v, 5, 0, currVal_2); var currVal_3 = (_co.fileItem.state === "complete"); _ck(_v, 7, 0, currVal_3); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.fileItem.file.name; _ck(_v, 1, 0, currVal_0); }); }
56
+ export function View_File_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "ibm-file", [], [[2, "bx--file__selected-file", null], [2, "bx--file__selected-file--invalid", null]], null, null, View_File_0, RenderType_File)), i0.ɵdid(1, 49152, null, 0, i11.File, [i8.I18n], null, null)], null, function (_ck, _v) { var currVal_0 = i0.ɵnov(_v, 1).selectedFile; var currVal_1 = i0.ɵnov(_v, 1).isInvalidText; _ck(_v, 0, 0, currVal_0, currVal_1); }); }
57
+ var FileNgFactory = i0.ɵccf("ibm-file", i11.File, View_File_Host_0, { translations: "translations", fileItem: "fileItem" }, { remove: "remove" }, []);
55
58
  export { FileNgFactory as FileNgFactory };
56
59
  //# sourceMappingURL=file.component.ngfactory.js.map