@acorex/components 6.0.16 → 6.1.1

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 (238) hide show
  1. package/alert/src/alert.component.d.ts +4 -4
  2. package/avatar/src/avatar.component.d.ts +6 -9
  3. package/badge/src/badge.component.d.ts +1 -1
  4. package/breadcrumbs/src/breadcrumbs-item.component.d.ts +4 -4
  5. package/button/src/button-group.component.d.ts +4 -4
  6. package/button/src/button-item.class.d.ts +2 -1
  7. package/button/src/button-item.component.d.ts +4 -4
  8. package/button/src/button.component.d.ts +3 -1
  9. package/calendar/src/calendar.component.d.ts +20 -20
  10. package/color-picker/src/color-picker.component.d.ts +18 -21
  11. package/common/public-api.d.ts +1 -0
  12. package/common/src/auto-focus.directive.d.ts +2 -1
  13. package/common/src/common.module.d.ts +4 -3
  14. package/common/src/debounce-time.directive.d.ts +17 -0
  15. package/common/src/events.class.d.ts +2 -2
  16. package/date-picker/src/datepicker.component.d.ts +23 -23
  17. package/decorators/public-api.d.ts +1 -0
  18. package/decorators/src/decorators.module.d.ts +3 -2
  19. package/decorators/src/text.component.d.ts +9 -0
  20. package/dialog/src/dialog.service.d.ts +3 -1
  21. package/dropdown/src/dropdown-panel.component.d.ts +1 -0
  22. package/dropdown/src/dropdown.module.d.ts +7 -5
  23. package/esm2020/action-sheet/src/action-sheet-item.component.mjs +1 -1
  24. package/esm2020/alert/src/alert.component.mjs +4 -8
  25. package/esm2020/avatar/src/avatar.component.mjs +14 -21
  26. package/esm2020/badge/src/badge.component.mjs +3 -3
  27. package/esm2020/button/src/button-item.class.mjs +1 -1
  28. package/esm2020/button/src/button-item.component.mjs +3 -3
  29. package/esm2020/button/src/button.component.mjs +9 -6
  30. package/esm2020/calendar/src/calendar.component.mjs +7 -4
  31. package/esm2020/collapse/src/collapse.component.mjs +3 -3
  32. package/esm2020/color-palette/src/color-palette-input.component.mjs +1 -1
  33. package/esm2020/color-picker/src/color-picker.component.mjs +4 -4
  34. package/esm2020/common/public-api.mjs +2 -1
  35. package/esm2020/common/src/auto-focus.directive.mjs +7 -3
  36. package/esm2020/common/src/common.module.mjs +6 -1
  37. package/esm2020/common/src/debounce-time.directive.mjs +47 -0
  38. package/esm2020/common/src/events.class.mjs +1 -1
  39. package/esm2020/data-pager/src/data-pager-input-selector.component.mjs +5 -4
  40. package/esm2020/data-pager/src/data-pager-next-buttons.components.mjs +1 -1
  41. package/esm2020/data-pager/src/data-pager-numeric-selector.component.mjs +1 -1
  42. package/esm2020/data-pager/src/data-pager-pagesize-dropdown.component.mjs +1 -1
  43. package/esm2020/data-pager/src/data-pager-prev-buttons.component.mjs +1 -1
  44. package/esm2020/date-picker/src/datepicker.component.mjs +10 -9
  45. package/esm2020/decorators/public-api.mjs +2 -1
  46. package/esm2020/decorators/src/decorators.module.mjs +8 -4
  47. package/esm2020/decorators/src/icon.component.mjs +3 -2
  48. package/esm2020/decorators/src/text.component.mjs +21 -0
  49. package/esm2020/dialog/src/dialog.class.mjs +1 -1
  50. package/esm2020/dialog/src/dialog.component.mjs +1 -1
  51. package/esm2020/dialog/src/dialog.service.mjs +11 -7
  52. package/esm2020/dropdown/src/dropdown-panel.component.mjs +14 -3
  53. package/esm2020/dropdown/src/dropdown.module.mjs +6 -4
  54. package/esm2020/form/src/form.component.mjs +10 -3
  55. package/esm2020/form/src/validation-summary.component.mjs +1 -1
  56. package/esm2020/image/src/image.component.mjs +36 -9
  57. package/esm2020/menu/src/menu.component.mjs +5 -3
  58. package/esm2020/mixin/src/textbox-mixin.class.mjs +52 -83
  59. package/esm2020/number-box/src/number-box.component.mjs +10 -5
  60. package/esm2020/password-box/src/password-box.component.mjs +12 -6
  61. package/esm2020/popover/src/popover.component.mjs +9 -18
  62. package/esm2020/popup/src/popup.component.mjs +14 -6
  63. package/esm2020/popup/src/popup.module.mjs +4 -3
  64. package/esm2020/popup/src/popup.service.mjs +8 -4
  65. package/esm2020/search-box/src/search-box.component.mjs +4 -3
  66. package/esm2020/select-box/src/selectbox.component.mjs +5 -5
  67. package/esm2020/textarea/src/textarea.component.mjs +11 -5
  68. package/esm2020/textbox/public-api.mjs +2 -1
  69. package/esm2020/textbox/src/mask-options.directive.mjs +22 -0
  70. package/esm2020/textbox/src/textbox.component.mjs +66 -9
  71. package/esm2020/textbox/src/textbox.module.mjs +12 -11
  72. package/esm2020/time-box/src/time-box.component.mjs +11 -5
  73. package/esm2020/toast/src/toast.component.mjs +1 -1
  74. package/esm2020/uploader/src/uploader.component.mjs +17 -4
  75. package/fesm2015/acorex-components-action-sheet.mjs +1 -1
  76. package/fesm2015/acorex-components-action-sheet.mjs.map +1 -1
  77. package/fesm2015/acorex-components-alert.mjs +3 -7
  78. package/fesm2015/acorex-components-alert.mjs.map +1 -1
  79. package/fesm2015/acorex-components-avatar.mjs +13 -20
  80. package/fesm2015/acorex-components-avatar.mjs.map +1 -1
  81. package/fesm2015/acorex-components-badge.mjs +2 -2
  82. package/fesm2015/acorex-components-badge.mjs.map +1 -1
  83. package/fesm2015/acorex-components-button.mjs +10 -7
  84. package/fesm2015/acorex-components-button.mjs.map +1 -1
  85. package/fesm2015/acorex-components-calendar.mjs +5 -3
  86. package/fesm2015/acorex-components-calendar.mjs.map +1 -1
  87. package/fesm2015/acorex-components-collapse.mjs +2 -2
  88. package/fesm2015/acorex-components-collapse.mjs.map +1 -1
  89. package/fesm2015/acorex-components-color-palette.mjs +1 -1
  90. package/fesm2015/acorex-components-color-palette.mjs.map +1 -1
  91. package/fesm2015/acorex-components-color-picker.mjs +3 -3
  92. package/fesm2015/acorex-components-color-picker.mjs.map +1 -1
  93. package/fesm2015/acorex-components-common.mjs +67 -14
  94. package/fesm2015/acorex-components-common.mjs.map +1 -1
  95. package/fesm2015/acorex-components-data-pager.mjs +8 -7
  96. package/fesm2015/acorex-components-data-pager.mjs.map +1 -1
  97. package/fesm2015/acorex-components-date-picker.mjs +11 -9
  98. package/fesm2015/acorex-components-date-picker.mjs.map +1 -1
  99. package/fesm2015/acorex-components-decorators.mjs +27 -5
  100. package/fesm2015/acorex-components-decorators.mjs.map +1 -1
  101. package/fesm2015/acorex-components-dialog.mjs +11 -7
  102. package/fesm2015/acorex-components-dialog.mjs.map +1 -1
  103. package/fesm2015/acorex-components-dropdown.mjs +18 -5
  104. package/fesm2015/acorex-components-dropdown.mjs.map +1 -1
  105. package/fesm2015/acorex-components-form.mjs +10 -3
  106. package/fesm2015/acorex-components-form.mjs.map +1 -1
  107. package/fesm2015/acorex-components-image.mjs +35 -8
  108. package/fesm2015/acorex-components-image.mjs.map +1 -1
  109. package/fesm2015/acorex-components-menu.mjs +5 -3
  110. package/fesm2015/acorex-components-menu.mjs.map +1 -1
  111. package/fesm2015/acorex-components-mixin.mjs +3 -33
  112. package/fesm2015/acorex-components-mixin.mjs.map +1 -1
  113. package/fesm2015/acorex-components-number-box.mjs +10 -5
  114. package/fesm2015/acorex-components-number-box.mjs.map +1 -1
  115. package/fesm2015/acorex-components-password-box.mjs +11 -5
  116. package/fesm2015/acorex-components-password-box.mjs.map +1 -1
  117. package/fesm2015/acorex-components-popover.mjs +9 -18
  118. package/fesm2015/acorex-components-popover.mjs.map +1 -1
  119. package/fesm2015/acorex-components-popup.mjs +23 -11
  120. package/fesm2015/acorex-components-popup.mjs.map +1 -1
  121. package/fesm2015/acorex-components-search-box.mjs +3 -2
  122. package/fesm2015/acorex-components-search-box.mjs.map +1 -1
  123. package/fesm2015/acorex-components-select-box.mjs +4 -4
  124. package/fesm2015/acorex-components-select-box.mjs.map +1 -1
  125. package/fesm2015/acorex-components-textarea.mjs +10 -4
  126. package/fesm2015/acorex-components-textarea.mjs.map +1 -1
  127. package/fesm2015/acorex-components-textbox.mjs +96 -20
  128. package/fesm2015/acorex-components-textbox.mjs.map +1 -1
  129. package/fesm2015/acorex-components-time-box.mjs +11 -5
  130. package/fesm2015/acorex-components-time-box.mjs.map +1 -1
  131. package/fesm2015/acorex-components-toast.mjs +1 -1
  132. package/fesm2015/acorex-components-toast.mjs.map +1 -1
  133. package/fesm2015/acorex-components-uploader.mjs +16 -3
  134. package/fesm2015/acorex-components-uploader.mjs.map +1 -1
  135. package/fesm2020/acorex-components-action-sheet.mjs +1 -1
  136. package/fesm2020/acorex-components-action-sheet.mjs.map +1 -1
  137. package/fesm2020/acorex-components-alert.mjs +3 -7
  138. package/fesm2020/acorex-components-alert.mjs.map +1 -1
  139. package/fesm2020/acorex-components-avatar.mjs +13 -20
  140. package/fesm2020/acorex-components-avatar.mjs.map +1 -1
  141. package/fesm2020/acorex-components-badge.mjs +2 -2
  142. package/fesm2020/acorex-components-badge.mjs.map +1 -1
  143. package/fesm2020/acorex-components-button.mjs +10 -7
  144. package/fesm2020/acorex-components-button.mjs.map +1 -1
  145. package/fesm2020/acorex-components-calendar.mjs +5 -3
  146. package/fesm2020/acorex-components-calendar.mjs.map +1 -1
  147. package/fesm2020/acorex-components-collapse.mjs +2 -2
  148. package/fesm2020/acorex-components-collapse.mjs.map +1 -1
  149. package/fesm2020/acorex-components-color-palette.mjs +1 -1
  150. package/fesm2020/acorex-components-color-palette.mjs.map +1 -1
  151. package/fesm2020/acorex-components-color-picker.mjs +3 -3
  152. package/fesm2020/acorex-components-color-picker.mjs.map +1 -1
  153. package/fesm2020/acorex-components-common.mjs +66 -14
  154. package/fesm2020/acorex-components-common.mjs.map +1 -1
  155. package/fesm2020/acorex-components-data-pager.mjs +8 -7
  156. package/fesm2020/acorex-components-data-pager.mjs.map +1 -1
  157. package/fesm2020/acorex-components-date-picker.mjs +10 -9
  158. package/fesm2020/acorex-components-date-picker.mjs.map +1 -1
  159. package/fesm2020/acorex-components-decorators.mjs +27 -5
  160. package/fesm2020/acorex-components-decorators.mjs.map +1 -1
  161. package/fesm2020/acorex-components-dialog.mjs +11 -7
  162. package/fesm2020/acorex-components-dialog.mjs.map +1 -1
  163. package/fesm2020/acorex-components-dropdown.mjs +18 -5
  164. package/fesm2020/acorex-components-dropdown.mjs.map +1 -1
  165. package/fesm2020/acorex-components-form.mjs +10 -3
  166. package/fesm2020/acorex-components-form.mjs.map +1 -1
  167. package/fesm2020/acorex-components-image.mjs +35 -8
  168. package/fesm2020/acorex-components-image.mjs.map +1 -1
  169. package/fesm2020/acorex-components-menu.mjs +5 -3
  170. package/fesm2020/acorex-components-menu.mjs.map +1 -1
  171. package/fesm2020/acorex-components-mixin.mjs +51 -81
  172. package/fesm2020/acorex-components-mixin.mjs.map +1 -1
  173. package/fesm2020/acorex-components-number-box.mjs +10 -5
  174. package/fesm2020/acorex-components-number-box.mjs.map +1 -1
  175. package/fesm2020/acorex-components-password-box.mjs +11 -5
  176. package/fesm2020/acorex-components-password-box.mjs.map +1 -1
  177. package/fesm2020/acorex-components-popover.mjs +8 -17
  178. package/fesm2020/acorex-components-popover.mjs.map +1 -1
  179. package/fesm2020/acorex-components-popup.mjs +23 -11
  180. package/fesm2020/acorex-components-popup.mjs.map +1 -1
  181. package/fesm2020/acorex-components-search-box.mjs +3 -2
  182. package/fesm2020/acorex-components-search-box.mjs.map +1 -1
  183. package/fesm2020/acorex-components-select-box.mjs +4 -4
  184. package/fesm2020/acorex-components-select-box.mjs.map +1 -1
  185. package/fesm2020/acorex-components-textarea.mjs +10 -4
  186. package/fesm2020/acorex-components-textarea.mjs.map +1 -1
  187. package/fesm2020/acorex-components-textbox.mjs +95 -20
  188. package/fesm2020/acorex-components-textbox.mjs.map +1 -1
  189. package/fesm2020/acorex-components-time-box.mjs +11 -5
  190. package/fesm2020/acorex-components-time-box.mjs.map +1 -1
  191. package/fesm2020/acorex-components-toast.mjs +1 -1
  192. package/fesm2020/acorex-components-toast.mjs.map +1 -1
  193. package/fesm2020/acorex-components-uploader.mjs +16 -3
  194. package/fesm2020/acorex-components-uploader.mjs.map +1 -1
  195. package/form/src/form.component.d.ts +2 -0
  196. package/image/src/image.component.d.ts +16 -7
  197. package/menu/src/menu.component.d.ts +1 -0
  198. package/mixin/src/base-components.class.d.ts +1 -1
  199. package/mixin/src/base-menu-mixin.class.d.ts +4 -4
  200. package/mixin/src/button-mixin.class.d.ts +1 -1
  201. package/mixin/src/clickable-mixin.class.d.ts +1 -1
  202. package/mixin/src/color-look-mixing.class.d.ts +1 -1
  203. package/mixin/src/datalist-component.class.d.ts +9 -9
  204. package/mixin/src/dropdown-mixin.class.d.ts +1 -1
  205. package/mixin/src/interactive-mixin.class.d.ts +3 -3
  206. package/mixin/src/loading-mixin.class.d.ts +1 -1
  207. package/mixin/src/mixin.class.d.ts +42 -47
  208. package/mixin/src/page-component.class.d.ts +1 -1
  209. package/mixin/src/selection-component.class.d.ts +1 -1
  210. package/mixin/src/sizable-mixin.class.d.ts +1 -1
  211. package/mixin/src/textbox-mixin.class.d.ts +4 -13
  212. package/mixin/src/value-mixin.class.d.ts +7 -7
  213. package/number-box/src/number-box.component.d.ts +3 -1
  214. package/package.json +1 -9
  215. package/password-box/src/password-box.component.d.ts +3 -1
  216. package/popover/src/popover.component.d.ts +2 -2
  217. package/popup/src/popup.module.d.ts +7 -6
  218. package/select-box/src/selectbox.component.d.ts +1 -1
  219. package/tabs/src/tab-item.component.d.ts +1 -1
  220. package/textarea/src/textarea.component.d.ts +3 -1
  221. package/textbox/public-api.d.ts +1 -0
  222. package/textbox/src/mask-options.directive.d.ts +13 -0
  223. package/textbox/src/textbox.component.d.ts +14 -3
  224. package/textbox/src/textbox.module.d.ts +7 -6
  225. package/time-box/src/time-box.component.d.ts +4 -2
  226. package/uploader/src/uploader.component.d.ts +4 -0
  227. package/esm2020/input-mask/acorex-components-input-mask.mjs +0 -5
  228. package/esm2020/input-mask/public-api.mjs +0 -3
  229. package/esm2020/input-mask/src/input-mask.component.mjs +0 -58
  230. package/esm2020/input-mask/src/input-mask.module.mjs +0 -24
  231. package/fesm2015/acorex-components-input-mask.mjs +0 -86
  232. package/fesm2015/acorex-components-input-mask.mjs.map +0 -1
  233. package/fesm2020/acorex-components-input-mask.mjs +0 -86
  234. package/fesm2020/acorex-components-input-mask.mjs.map +0 -1
  235. package/input-mask/index.d.ts +0 -5
  236. package/input-mask/public-api.d.ts +0 -2
  237. package/input-mask/src/input-mask.component.d.ts +0 -25
  238. package/input-mask/src/input-mask.module.d.ts +0 -10
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-toast.mjs","sources":["../../../../projects/acorex/components/toast/src/toast.component.ts","../../../../projects/acorex/components/toast/src/toast.component.html","../../../../projects/acorex/components/toast/src/toast.module.ts","../../../../projects/acorex/components/toast/src/toast.service.ts","../../../../projects/acorex/components/toast/acorex-components-toast.ts"],"sourcesContent":["import { AXClosbaleComponent } from '@acorex/components/common';\r\nimport { AXButtonItem } from '@acorex/components/button';\r\nimport {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n} from '@angular/core';\r\nimport { AXToastOptions } from './toast.class';\r\nimport { AXBaseComponentMixin } from '@acorex/components/mixin';\r\n\r\n/**\r\n * The Button is a component which detects user interaction and triggers a corresponding event\r\n *\r\n * @category Components\r\n */\r\n@Component({\r\n selector: 'ax-toast',\r\n templateUrl: './toast.component.html',\r\n host: { class: 'ax-toast' },\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n providers: [{ provide: AXClosbaleComponent, useExisting: AXToastComponent }],\r\n})\r\nexport class AXToastComponent extends AXBaseComponentMixin {\r\n options: AXToastOptions;\r\n _toastWidth: number = 100;\r\n _icon: string;\r\n close: () => void;\r\n /**\r\n * @ignore\r\n */\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n\r\n onInit() {\r\n if (this.options.timeOut) {\r\n setTimeout(() => {\r\n this.close();\r\n }, this.options.timeOut);\r\n }\r\n switch (this.options.color) {\r\n case 'success':\r\n this._icon = 'ax-ic ax-ic-check-filled';\r\n break;\r\n case 'warning':\r\n this._icon = 'ax-ic ax-ic-warning-filled';\r\n break;\r\n case 'danger':\r\n this._icon = 'ax-ic ax-ic-error-filled';\r\n break;\r\n default:\r\n this._icon = '';\r\n break;\r\n }\r\n }\r\n\r\n _handleButtonClick(button: AXButtonItem) {\r\n if (button.onClick) {\r\n button.onClick(this);\r\n }\r\n }\r\n}\r\n","<ax-alert [color]=\"options.color\" [look]=\"options.look\" [timeOut]=\"options.timeOut\">\r\n <ax-header *ngIf=\"options.title\">\r\n <ax-prefix>\r\n <ax-icon *ngIf=\"_icon\" [icon]=\"_icon\"></ax-icon>\r\n <ax-title [text]=\"options.title\"></ax-title>\r\n </ax-prefix>\r\n <ax-suffix>\r\n <ax-close-button *ngIf=\"options.closeable\"></ax-close-button>\r\n </ax-suffix>\r\n </ax-header>\r\n <ax-content *ngIf=\"options.content\">\r\n <ax-icon *ngIf=\"_icon && !options.title\" [icon]=\"_icon\"></ax-icon>\r\n <div [innerHTML]=\"options.content\"></div>\r\n </ax-content>\r\n <ax-footer *ngIf=\"options?.buttons?.length\">\r\n <ng-container>\r\n <ax-button *ngFor=\"let button of options.buttons\" [text]=\"button.text\"\r\n (onClick)=\"_handleButtonClick(button)\" [color]=\"options.color\" [look]=\"'default'\"></ax-button>\r\n </ng-container>\r\n </ax-footer>\r\n</ax-alert>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { AXToastComponent } from './toast.component';\r\nimport { AXAlertModule } from '@acorex/components/alert';\r\nimport { AXButtonModule } from '@acorex/components/button';\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\n\r\nconst COMPONENT = [AXToastComponent];\r\nconst MODULES = [CommonModule, AXButtonModule, AXDecoratorModule, AXAlertModule];\r\n\r\n@NgModule({\r\n declarations: [...COMPONENT],\r\n imports: [...MODULES],\r\n exports: [...COMPONENT],\r\n providers: [],\r\n})\r\nexport class AXToastModule {\r\n \r\n}\r\n","import { AXConfig } from '@acorex/core/config';\r\nimport { Overlay } from '@angular/cdk/overlay';\r\nimport { ComponentPortal } from '@angular/cdk/portal';\r\nimport { Injectable, Injector } from '@angular/core';\r\nimport { AXToastOptions, AXToastRef } from './toast.class';\r\nimport { AXToastComponent } from './toast.component';\r\n\r\n\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class AXToastService {\r\n\r\n\r\n private readonly _defaults = {\r\n gap: 5,\r\n timeOut: 2500,\r\n location: 'bottom-center',\r\n }\r\n\r\n constructor(private overlayService: Overlay, private parentInjector: Injector) {\r\n\r\n }\r\n\r\n private _activeList: AXToastComponent[] = [];\r\n\r\n primary(content: string) {\r\n this.show({\r\n timeOut: AXConfig.get('toast.timeOut') || this._defaults.timeOut,\r\n color: 'primary',\r\n content: content\r\n });\r\n }\r\n secondary(content: string) {\r\n this.show({\r\n timeOut: AXConfig.get('toast.timeOut') || this._defaults.timeOut,\r\n color: 'secondary',\r\n content: content\r\n });\r\n }\r\n info(content: string) {\r\n this.show({\r\n timeOut: AXConfig.get('toast.timeOut') || this._defaults.timeOut,\r\n color: 'info',\r\n content: content\r\n });\r\n }\r\n\r\n success(content: string) {\r\n this.show({\r\n timeOut: AXConfig.get('toast.timeOut') || this._defaults.timeOut,\r\n color: 'success',\r\n content: content\r\n });\r\n }\r\n\r\n warning(content: string) {\r\n this.show({\r\n timeOut: AXConfig.get('toast.timeOut') || this._defaults.timeOut,\r\n color: 'warning',\r\n content: content\r\n });\r\n }\r\n\r\n danger(content: string) {\r\n this.show({\r\n timeOut: AXConfig.get('toast.timeOut') || this._defaults.timeOut,\r\n color: 'danger',\r\n content: content\r\n });\r\n }\r\n light(content: string) {\r\n this.show({\r\n timeOut: AXConfig.get('toast.timeOut') || this._defaults.timeOut,\r\n color: 'light',\r\n content: content\r\n });\r\n }\r\n dark(content: string) {\r\n this.show({\r\n timeOut: AXConfig.get('toast.timeOut') || this._defaults.timeOut,\r\n color: 'dark',\r\n content: content\r\n });\r\n }\r\n\r\n show(options: AXToastOptions): AXToastRef {\r\n const opt = Object.assign(\r\n {\r\n closeable: true,\r\n location: AXConfig.get('toast.location') || this._defaults.location\r\n },\r\n options\r\n );\r\n const gap = AXConfig.get('toast.gap') || this._defaults.gap;\r\n\r\n let positionStrategy = this.overlayService.position().global();\r\n const pos = this.getPosition(opt.location) + gap + 'px';\r\n switch (opt.location) {\r\n case 'bottom-center':\r\n positionStrategy = positionStrategy.bottom(pos).centerHorizontally()\r\n break;\r\n case 'bottom-end':\r\n positionStrategy = positionStrategy.bottom(pos).right(gap + 'px');\r\n break;\r\n case 'bottom-start':\r\n positionStrategy = positionStrategy.bottom(pos).left(gap + 'px');\r\n break;\r\n case 'top-center':\r\n positionStrategy = positionStrategy.top(pos).centerHorizontally()\r\n break;\r\n case 'top-end':\r\n positionStrategy = positionStrategy.top(pos).right(gap + 'px');\r\n break;\r\n case 'top-start':\r\n positionStrategy = positionStrategy.top(pos).left(gap + 'px');\r\n break;\r\n case 'center-start':\r\n positionStrategy = positionStrategy.centerVertically().left(gap + 'px');\r\n break;\r\n case 'center-end':\r\n positionStrategy = positionStrategy.centerVertically().right(gap + 'px');\r\n break;\r\n default:\r\n break;\r\n }\r\n const overlayRef = this.overlayService.create(\r\n {\r\n positionStrategy,\r\n panelClass: ['ax-animate-animated', 'ax-animate-fadeIn', 'ax-animate-faster'],\r\n });\r\n const toastPortal = new ComponentPortal(AXToastComponent, null, this.parentInjector);\r\n\r\n const host = overlayRef.attach(toastPortal);\r\n (host.instance as any).visibleIndex = this._activeList.length;\r\n this._activeList.push(host.instance);\r\n if (host.instance) {\r\n Object.assign(host.instance, {\r\n options: opt,\r\n close: () => {\r\n this._activeList = this._activeList.filter(c => c != host.instance);\r\n overlayRef.dispose()\r\n }\r\n });\r\n setTimeout(() => {\r\n host.changeDetectorRef.detectChanges();\r\n }, 0);\r\n }\r\n\r\n return {\r\n close: () => {\r\n host.instance.close();\r\n }\r\n }\r\n }\r\n\r\n\r\n\r\n public hideAll() {\r\n this._activeList.forEach(c => c.close());\r\n }\r\n\r\n private getPosition(location: string) {\r\n const list = this._activeList.filter(c => c.options.location == location);\r\n if (list.length == 0) return 0;\r\n if (location.split('-')[0] == 'bottom') {\r\n return window.innerHeight - list[list.length - 1]._getHostElement().offsetTop;\r\n }\r\n else {\r\n return list[list.length - 1]._getHostElement().offsetTop + list[list.length - 1]._getHostElement().offsetHeight;\r\n }\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;AAYA;;;;AAIG;AASG,MAAO,gBAAiB,SAAQ,oBAAoB,CAAA;AAKxD;;AAEG;IACH,WAAY,CAAA,UAAsB,EAAE,GAAsB,EAAA;AACxD,QAAA,KAAK,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;QAPzB,IAAW,CAAA,WAAA,GAAW,GAAG,CAAC;KAQzB;IAED,MAAM,GAAA;AACJ,QAAA,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YACxB,UAAU,CAAC,MAAK;gBACd,IAAI,CAAC,KAAK,EAAE,CAAC;AACf,aAAC,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AAC1B,SAAA;AACD,QAAA,QAAQ,IAAI,CAAC,OAAO,CAAC,KAAK;AACxB,YAAA,KAAK,SAAS;AACZ,gBAAA,IAAI,CAAC,KAAK,GAAG,0BAA0B,CAAC;gBACxC,MAAM;AACR,YAAA,KAAK,SAAS;AACZ,gBAAA,IAAI,CAAC,KAAK,GAAG,4BAA4B,CAAC;gBAC1C,MAAM;AACR,YAAA,KAAK,QAAQ;AACX,gBAAA,IAAI,CAAC,KAAK,GAAG,0BAA0B,CAAC;gBACxC,MAAM;AACR,YAAA;AACE,gBAAA,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;gBAChB,MAAM;AACT,SAAA;KACF;AAED,IAAA,kBAAkB,CAAC,MAAoB,EAAA;QACrC,IAAI,MAAM,CAAC,OAAO,EAAE;AAClB,YAAA,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AACtB,SAAA;KACF;;6GAtCU,gBAAgB,EAAA,IAAA,EAAA,CAAA,EAA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,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,cADD,MAAM,EAAA,CAAA,CAAA;2FACnB,cAAc,EAAA,UAAA,EAAA,CAAA;kBAD1B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAA;;;ACTlC;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-components-toast.mjs","sources":["../../../../projects/acorex/components/toast/src/toast.component.ts","../../../../projects/acorex/components/toast/src/toast.component.html","../../../../projects/acorex/components/toast/src/toast.module.ts","../../../../projects/acorex/components/toast/src/toast.service.ts","../../../../projects/acorex/components/toast/acorex-components-toast.ts"],"sourcesContent":["import { AXClosbaleComponent } from '@acorex/components/common';\r\nimport { AXButtonItem } from '@acorex/components/button';\r\nimport {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n} from '@angular/core';\r\nimport { AXToastOptions } from './toast.class';\r\nimport { AXBaseComponentMixin } from '@acorex/components/mixin';\r\n\r\n/**\r\n * The Button is a component which detects user interaction and triggers a corresponding event\r\n *\r\n * @category Components\r\n */\r\n@Component({\r\n selector: 'ax-toast',\r\n templateUrl: './toast.component.html',\r\n host: { class: 'ax-toast' },\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n providers: [{ provide: AXClosbaleComponent, useExisting: AXToastComponent }],\r\n})\r\nexport class AXToastComponent extends AXBaseComponentMixin {\r\n options: AXToastOptions;\r\n _toastWidth: number = 100;\r\n _icon: string;\r\n close: () => void;\r\n /**\r\n * @ignore\r\n */\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n\r\n onInit() {\r\n if (this.options.timeOut) {\r\n setTimeout(() => {\r\n this.close();\r\n }, this.options.timeOut);\r\n }\r\n switch (this.options.color) {\r\n case 'success':\r\n this._icon = 'ax-ic ax-ic-check-filled';\r\n break;\r\n case 'warning':\r\n this._icon = 'ax-ic ax-ic-warning-filled';\r\n break;\r\n case 'danger':\r\n this._icon = 'ax-ic ax-ic-error-filled';\r\n break;\r\n default:\r\n this._icon = '';\r\n break;\r\n }\r\n }\r\n\r\n _handleButtonClick(button: AXButtonItem) {\r\n if (button.onClick) {\r\n button.onClick(this);\r\n }\r\n }\r\n}\r\n","<ax-alert [color]=\"options.color\" [look]=\"options.look\" [timeOut]=\"options.timeOut\">\r\n <ax-header *ngIf=\"options.title\">\r\n <ax-prefix>\r\n <ax-icon *ngIf=\"_icon\" [icon]=\"_icon\"></ax-icon>\r\n <ax-title [text]=\"options.title\"></ax-title>\r\n </ax-prefix>\r\n <ax-suffix>\r\n <ax-close-button *ngIf=\"options.closeable\"></ax-close-button>\r\n </ax-suffix>\r\n </ax-header>\r\n <ax-content *ngIf=\"options.content\">\r\n <ax-icon *ngIf=\"_icon && !options.title\" [icon]=\"_icon\"></ax-icon>\r\n <div [innerHTML]=\"options.content\"></div>\r\n </ax-content>\r\n <ax-footer *ngIf=\"options?.buttons?.length\">\r\n <ng-container>\r\n <ax-button *ngFor=\"let button of options.buttons\" [text]=\"button.text\"\r\n (onClick)=\"_handleButtonClick(button)\" [color]=\"options.color\" [look]=\"'default'\"></ax-button>\r\n </ng-container>\r\n </ax-footer>\r\n</ax-alert>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { AXToastComponent } from './toast.component';\r\nimport { AXAlertModule } from '@acorex/components/alert';\r\nimport { AXButtonModule } from '@acorex/components/button';\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\n\r\nconst COMPONENT = [AXToastComponent];\r\nconst MODULES = [CommonModule, AXButtonModule, AXDecoratorModule, AXAlertModule];\r\n\r\n@NgModule({\r\n declarations: [...COMPONENT],\r\n imports: [...MODULES],\r\n exports: [...COMPONENT],\r\n providers: [],\r\n})\r\nexport class AXToastModule {\r\n \r\n}\r\n","import { AXConfig } from '@acorex/core/config';\r\nimport { Overlay } from '@angular/cdk/overlay';\r\nimport { ComponentPortal } from '@angular/cdk/portal';\r\nimport { Injectable, Injector } from '@angular/core';\r\nimport { AXToastOptions, AXToastRef } from './toast.class';\r\nimport { AXToastComponent } from './toast.component';\r\n\r\n\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class AXToastService {\r\n\r\n\r\n private readonly _defaults = {\r\n gap: 5,\r\n timeOut: 2500,\r\n location: 'bottom-center',\r\n }\r\n\r\n constructor(private overlayService: Overlay, private parentInjector: Injector) {\r\n\r\n }\r\n\r\n private _activeList: AXToastComponent[] = [];\r\n\r\n primary(content: string) {\r\n this.show({\r\n timeOut: AXConfig.get('toast.timeOut') || this._defaults.timeOut,\r\n color: 'primary',\r\n content: content\r\n });\r\n }\r\n secondary(content: string) {\r\n this.show({\r\n timeOut: AXConfig.get('toast.timeOut') || this._defaults.timeOut,\r\n color: 'secondary',\r\n content: content\r\n });\r\n }\r\n info(content: string) {\r\n this.show({\r\n timeOut: AXConfig.get('toast.timeOut') || this._defaults.timeOut,\r\n color: 'info',\r\n content: content\r\n });\r\n }\r\n\r\n success(content: string) {\r\n this.show({\r\n timeOut: AXConfig.get('toast.timeOut') || this._defaults.timeOut,\r\n color: 'success',\r\n content: content\r\n });\r\n }\r\n\r\n warning(content: string) {\r\n this.show({\r\n timeOut: AXConfig.get('toast.timeOut') || this._defaults.timeOut,\r\n color: 'warning',\r\n content: content\r\n });\r\n }\r\n\r\n danger(content: string) {\r\n this.show({\r\n timeOut: AXConfig.get('toast.timeOut') || this._defaults.timeOut,\r\n color: 'danger',\r\n content: content\r\n });\r\n }\r\n light(content: string) {\r\n this.show({\r\n timeOut: AXConfig.get('toast.timeOut') || this._defaults.timeOut,\r\n color: 'light',\r\n content: content\r\n });\r\n }\r\n dark(content: string) {\r\n this.show({\r\n timeOut: AXConfig.get('toast.timeOut') || this._defaults.timeOut,\r\n color: 'dark',\r\n content: content\r\n });\r\n }\r\n\r\n show(options: AXToastOptions): AXToastRef {\r\n const opt = Object.assign(\r\n {\r\n closeable: true,\r\n location: AXConfig.get('toast.location') || this._defaults.location\r\n },\r\n options\r\n );\r\n const gap = AXConfig.get('toast.gap') || this._defaults.gap;\r\n\r\n let positionStrategy = this.overlayService.position().global();\r\n const pos = this.getPosition(opt.location) + gap + 'px';\r\n switch (opt.location) {\r\n case 'bottom-center':\r\n positionStrategy = positionStrategy.bottom(pos).centerHorizontally()\r\n break;\r\n case 'bottom-end':\r\n positionStrategy = positionStrategy.bottom(pos).right(gap + 'px');\r\n break;\r\n case 'bottom-start':\r\n positionStrategy = positionStrategy.bottom(pos).left(gap + 'px');\r\n break;\r\n case 'top-center':\r\n positionStrategy = positionStrategy.top(pos).centerHorizontally()\r\n break;\r\n case 'top-end':\r\n positionStrategy = positionStrategy.top(pos).right(gap + 'px');\r\n break;\r\n case 'top-start':\r\n positionStrategy = positionStrategy.top(pos).left(gap + 'px');\r\n break;\r\n case 'center-start':\r\n positionStrategy = positionStrategy.centerVertically().left(gap + 'px');\r\n break;\r\n case 'center-end':\r\n positionStrategy = positionStrategy.centerVertically().right(gap + 'px');\r\n break;\r\n default:\r\n break;\r\n }\r\n const overlayRef = this.overlayService.create(\r\n {\r\n positionStrategy,\r\n panelClass: ['ax-animate-animated', 'ax-animate-fadeIn', 'ax-animate-faster'],\r\n });\r\n const toastPortal = new ComponentPortal(AXToastComponent, null, this.parentInjector);\r\n\r\n const host = overlayRef.attach(toastPortal);\r\n (host.instance as any).visibleIndex = this._activeList.length;\r\n this._activeList.push(host.instance);\r\n if (host.instance) {\r\n Object.assign(host.instance, {\r\n options: opt,\r\n close: () => {\r\n this._activeList = this._activeList.filter(c => c != host.instance);\r\n overlayRef.dispose()\r\n }\r\n });\r\n setTimeout(() => {\r\n host.changeDetectorRef.detectChanges();\r\n }, 0);\r\n }\r\n\r\n return {\r\n close: () => {\r\n host.instance.close();\r\n }\r\n }\r\n }\r\n\r\n\r\n\r\n public hideAll() {\r\n this._activeList.forEach(c => c.close());\r\n }\r\n\r\n private getPosition(location: string) {\r\n const list = this._activeList.filter(c => c.options.location == location);\r\n if (list.length == 0) return 0;\r\n if (location.split('-')[0] == 'bottom') {\r\n return window.innerHeight - list[list.length - 1]._getHostElement().offsetTop;\r\n }\r\n else {\r\n return list[list.length - 1]._getHostElement().offsetTop + list[list.length - 1]._getHostElement().offsetHeight;\r\n }\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;AAYA;;;;AAIG;AASG,MAAO,gBAAiB,SAAQ,oBAAoB,CAAA;AAKxD;;AAEG;IACH,WAAY,CAAA,UAAsB,EAAE,GAAsB,EAAA;AACxD,QAAA,KAAK,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;QAPzB,IAAW,CAAA,WAAA,GAAW,GAAG,CAAC;KAQzB;IAED,MAAM,GAAA;AACJ,QAAA,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YACxB,UAAU,CAAC,MAAK;gBACd,IAAI,CAAC,KAAK,EAAE,CAAC;AACf,aAAC,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AAC1B,SAAA;AACD,QAAA,QAAQ,IAAI,CAAC,OAAO,CAAC,KAAK;AACxB,YAAA,KAAK,SAAS;AACZ,gBAAA,IAAI,CAAC,KAAK,GAAG,0BAA0B,CAAC;gBACxC,MAAM;AACR,YAAA,KAAK,SAAS;AACZ,gBAAA,IAAI,CAAC,KAAK,GAAG,4BAA4B,CAAC;gBAC1C,MAAM;AACR,YAAA,KAAK,QAAQ;AACX,gBAAA,IAAI,CAAC,KAAK,GAAG,0BAA0B,CAAC;gBACxC,MAAM;AACR,YAAA;AACE,gBAAA,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;gBAChB,MAAM;AACT,SAAA;KACF;AAED,IAAA,kBAAkB,CAAC,MAAoB,EAAA;QACrC,IAAI,MAAM,CAAC,OAAO,EAAE;AAClB,YAAA,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A,UAAA,EAAA,CAAA,CAAA;AAAd,cAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,cADD,MAAM,EAAA,CAAA,CAAA;2FACnB,cAAc,EAAA,UAAA,EAAA,CAAA;kBAD1B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAA;;;ACTlC;;AAEG;;;;"}
@@ -11,6 +11,8 @@ class AXUploaderComponent extends AXBaseComponentMixin {
11
11
  super(elementRef, cdr);
12
12
  this._fileService = _fileService;
13
13
  this.onValueChanged = new EventEmitter();
14
+ this.firstInit = true;
15
+ this._showText = true;
14
16
  this.multiple = false;
15
17
  this.accept = '*/*';
16
18
  }
@@ -32,7 +34,7 @@ class AXUploaderComponent extends AXBaseComponentMixin {
32
34
  component: this,
33
35
  isUserInteraction: true,
34
36
  value: files,
35
- htmlElement: this._getHostElement()
37
+ htmlElement: this._getHostElement(),
36
38
  });
37
39
  }
38
40
  onInit() {
@@ -47,6 +49,17 @@ class AXUploaderComponent extends AXBaseComponentMixin {
47
49
  this._dropArea.addEventListener(eventName, this._handleUnhighlight.bind(this), false);
48
50
  });
49
51
  }
52
+ ngDoCheck() {
53
+ this.checkIsBoxHasMinWidth();
54
+ }
55
+ checkIsBoxHasMinWidth() {
56
+ this.firstInit = false;
57
+ let boxWidth = this._getHostElement().getBoundingClientRect().width;
58
+ console.log(boxWidth);
59
+ if (boxWidth <= 176 && this.firstInit === false) {
60
+ this._showText = false;
61
+ }
62
+ }
50
63
  preventDefaults(e) {
51
64
  e.preventDefault();
52
65
  e.stopPropagation();
@@ -62,10 +75,10 @@ class AXUploaderComponent extends AXBaseComponentMixin {
62
75
  }
63
76
  }
64
77
  AXUploaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXUploaderComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.AXFileService }], target: i0.ɵɵFactoryTarget.Component });
65
- AXUploaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: AXUploaderComponent, selector: "ax-uploader", inputs: { multiple: "multiple", accept: "accept" }, outputs: { onValueChanged: "onValueChanged" }, host: { listeners: { "click": "_handleClick($event)", "drop": "_handleDrop($event)" }, properties: { "class.ax-look-default": "this.__defaultClass" } }, viewQueries: [{ propertyName: "_placeholder", first: true, predicate: ["contentRef"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-container><div #contentRef><ng-content></ng-content></div></ng-container>\r\n<ng-container *ngIf=\"contentRef.childNodes.length == 0\">\r\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2\">\r\n <i class=\"ax-ic ax-ic-cloud-upload upload-icon\"></i>\r\n <div class=\"ax-p-4 ax-text-center\">Drag your file here or, <span class=\"ax-text-primary-500\">click to browse</span></div>\r\n </div>\r\n</ng-container>", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
78
+ AXUploaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: AXUploaderComponent, selector: "ax-uploader", inputs: { multiple: "multiple", accept: "accept" }, outputs: { onValueChanged: "onValueChanged" }, host: { listeners: { "click": "_handleClick($event)", "drop": "_handleDrop($event)" }, properties: { "class.ax-look-default": "this.__defaultClass" } }, viewQueries: [{ propertyName: "_placeholder", first: true, predicate: ["contentRef"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-container><div #contentRef><ng-content></ng-content></div></ng-container>\r\n<ng-container *ngIf=\"contentRef.childNodes.length == 0\">\r\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2\">\r\n <i class=\"ax-ic ax-ic-cloud-upload upload-icon\"></i>\r\n <div class=\"ax-p-4 ax-text-center\" *ngIf=\"_showText\">Drag your file here or, <span class=\"ax-text-primary-500\">click to browse</span></div>\r\n </div>\r\n</ng-container>", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
66
79
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXUploaderComponent, decorators: [{
67
80
  type: Component,
68
- args: [{ selector: 'ax-uploader', encapsulation: ViewEncapsulation.None, template: "<ng-container><div #contentRef><ng-content></ng-content></div></ng-container>\r\n<ng-container *ngIf=\"contentRef.childNodes.length == 0\">\r\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2\">\r\n <i class=\"ax-ic ax-ic-cloud-upload upload-icon\"></i>\r\n <div class=\"ax-p-4 ax-text-center\">Drag your file here or, <span class=\"ax-text-primary-500\">click to browse</span></div>\r\n </div>\r\n</ng-container>" }]
81
+ args: [{ selector: 'ax-uploader', encapsulation: ViewEncapsulation.None, template: "<ng-container><div #contentRef><ng-content></ng-content></div></ng-container>\r\n<ng-container *ngIf=\"contentRef.childNodes.length == 0\">\r\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2\">\r\n <i class=\"ax-ic ax-ic-cloud-upload upload-icon\"></i>\r\n <div class=\"ax-p-4 ax-text-center\" *ngIf=\"_showText\">Drag your file here or, <span class=\"ax-text-primary-500\">click to browse</span></div>\r\n </div>\r\n</ng-container>" }]
69
82
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.AXFileService }]; }, propDecorators: { onValueChanged: [{
70
83
  type: Output
71
84
  }], _placeholder: [{
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-uploader.mjs","sources":["../../../../projects/acorex/components/uploader/src/uploader.component.ts","../../../../projects/acorex/components/uploader/src/uploader.component.html","../../../../projects/acorex/components/uploader/src/uploader.module.ts","../../../../projects/acorex/components/uploader/acorex-components-uploader.ts"],"sourcesContent":["import { AXValueChangedEvent } from '@acorex/components/common';\r\nimport { AXBaseComponentMixin } from '@acorex/components/mixin';\r\nimport { AXFileService } from '@acorex/core/file';\r\nimport {\r\n ChangeDetectorRef,\r\n Component,\r\n ElementRef,\r\n EventEmitter,\r\n HostBinding,\r\n HostListener,\r\n Input,\r\n Output,\r\n ViewChild,\r\n ViewEncapsulation,\r\n} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ax-uploader',\r\n templateUrl: './uploader.component.html',\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class AXUploaderComponent extends AXBaseComponentMixin {\r\n\r\n @Output()\r\n onValueChanged: EventEmitter<AXValueChangedEvent<File[]>> = new EventEmitter<AXValueChangedEvent<File[]>>();\r\n\r\n constructor(\r\n elementRef: ElementRef,\r\n cdr: ChangeDetectorRef,\r\n private _fileService: AXFileService\r\n ) {\r\n super(elementRef, cdr);\r\n }\r\n\r\n @ViewChild('contentRef', { static: true })\r\n _placeholder: ElementRef;\r\n\r\n @Input()\r\n multiple: boolean = false;\r\n\r\n @Input()\r\n accept: string = '*/*';\r\n\r\n private _dropArea: HTMLDivElement;\r\n\r\n @HostListener('click', ['$event'])\r\n async _handleClick(e: MouseEvent) {\r\n const files = await this._fileService.choose({\r\n accept: this.accept,\r\n multiple: this.multiple,\r\n });\r\n this._handleFiles(files);\r\n }\r\n\r\n @HostListener('drop', ['$event'])\r\n async _handleDrop(e: any) {\r\n let dt = e.dataTransfer;\r\n let files = dt.files;\r\n this._handleFiles(Array.from(files));\r\n e.preventDefault();\r\n }\r\n\r\n _handleFiles(files: File[]) {\r\n this.onValueChanged.emit({\r\n component: this,\r\n isUserInteraction: true,\r\n value: files,\r\n htmlElement: this._getHostElement()\r\n });\r\n }\r\n\r\n onInit(): void {\r\n this._dropArea = this._getHostElement();\r\n ['dragenter', 'dragover', 'dragleave', 'drop'].forEach((eventName) => {\r\n this._dropArea.addEventListener(eventName, this.preventDefaults, false);\r\n });\r\n ['dragenter', 'dragover'].forEach((eventName) => {\r\n this._dropArea.addEventListener(\r\n eventName,\r\n this._handleHighlight.bind(this),\r\n false\r\n );\r\n });\r\n\r\n ['dragleave', 'drop'].forEach((eventName) => {\r\n this._dropArea.addEventListener(\r\n eventName,\r\n this._handleUnhighlight.bind(this),\r\n false\r\n );\r\n });\r\n }\r\n\r\n preventDefaults(e: any) {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n }\r\n\r\n _handleHighlight(e) {\r\n this._dropArea.classList.add('ax-state-hover');\r\n }\r\n\r\n _handleUnhighlight(e) {\r\n this._dropArea.classList.remove('ax-state-hover');\r\n }\r\n\r\n @HostBinding('class.ax-look-default')\r\n get __defaultClass() {\r\n return !this._placeholder?.nativeElement.childNodes.length\r\n }\r\n\r\n}\r\n","<ng-container><div #contentRef><ng-content></ng-content></div></ng-container>\r\n<ng-container *ngIf=\"contentRef.childNodes.length == 0\">\r\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2\">\r\n <i class=\"ax-ic ax-ic-cloud-upload upload-icon\"></i>\r\n <div class=\"ax-p-4 ax-text-center\">Drag your file here or, <span class=\"ax-text-primary-500\">click to browse</span></div>\r\n </div>\r\n</ng-container>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { AXUploaderComponent } from './uploader.component';\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\n\r\n@NgModule({\r\n declarations: [AXUploaderComponent],\r\n imports: [CommonModule,AXDecoratorModule],\r\n exports: [AXUploaderComponent],\r\n providers: [],\r\n})\r\nexport class AXUploaderModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAqBM,MAAO,mBAAoB,SAAQ,oBAAoB,CAAA;AAK3D,IAAA,WAAA,CACE,UAAsB,EACtB,GAAsB,EACd,YAA2B,EAAA;AAEnC,QAAA,KAAK,CAA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AAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,iBALZ,mBAAmB,CAAA,EAAA,OAAA,EAAA,CACxB,YAAY,EAAC,iBAAiB,aAC9B,mBAAmB,CAAA,EAAA,CAAA,CAAA;8GAGlB,gBAAgB,EAAA,OAAA,EAAA,CAJjB,YAAY,EAAC,iBAAiB,CAAA,EAAA,CAAA,CAAA;2FAI7B,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;AACnC,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAC,iBAAiB,CAAC;oBACzC,OAAO,EAAE,CAAC,mBAAmB,CAAC;AAC9B,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-components-uploader.mjs","sources":["../../../../projects/acorex/components/uploader/src/uploader.component.ts","../../../../projects/acorex/components/uploader/src/uploader.component.html","../../../../projects/acorex/components/uploader/src/uploader.module.ts","../../../../projects/acorex/components/uploader/acorex-components-uploader.ts"],"sourcesContent":["import { AXValueChangedEvent } from '@acorex/components/common';\r\nimport { AXBaseComponentMixin } from '@acorex/components/mixin';\r\nimport { AXFileService } from '@acorex/core/file';\r\nimport {\r\n ChangeDetectorRef,\r\n Component,\r\n ElementRef,\r\n EventEmitter,\r\n HostBinding,\r\n HostListener,\r\n Input,\r\n Output,\r\n ViewChild,\r\n ViewEncapsulation,\r\n} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ax-uploader',\r\n templateUrl: './uploader.component.html',\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class AXUploaderComponent extends AXBaseComponentMixin {\r\n @Output()\r\n onValueChanged: EventEmitter<AXValueChangedEvent<File[]>> = new EventEmitter<\r\n AXValueChangedEvent<File[]>\r\n >();\r\n\r\n firstInit: boolean = true;\r\n _showText: boolean = true;\r\n\r\n constructor(\r\n elementRef: ElementRef,\r\n cdr: ChangeDetectorRef,\r\n private _fileService: AXFileService\r\n ) {\r\n super(elementRef, cdr);\r\n }\r\n\r\n @ViewChild('contentRef', { static: true })\r\n _placeholder: ElementRef;\r\n\r\n @Input()\r\n multiple: boolean = false;\r\n\r\n @Input()\r\n accept: string = '*/*';\r\n\r\n private _dropArea: HTMLDivElement;\r\n\r\n @HostListener('click', ['$event'])\r\n async _handleClick(e: MouseEvent) {\r\n const files = await this._fileService.choose({\r\n accept: this.accept,\r\n multiple: this.multiple,\r\n });\r\n this._handleFiles(files);\r\n }\r\n\r\n @HostListener('drop', ['$event'])\r\n async _handleDrop(e: any) {\r\n let dt = e.dataTransfer;\r\n let files = dt.files;\r\n this._handleFiles(Array.from(files));\r\n e.preventDefault();\r\n }\r\n\r\n _handleFiles(files: File[]) {\r\n this.onValueChanged.emit({\r\n component: this,\r\n isUserInteraction: true,\r\n value: files,\r\n htmlElement: this._getHostElement(),\r\n });\r\n }\r\n\r\n onInit(): void {\r\n this._dropArea = this._getHostElement();\r\n ['dragenter', 'dragover', 'dragleave', 'drop'].forEach((eventName) => {\r\n this._dropArea.addEventListener(eventName, this.preventDefaults, false);\r\n });\r\n ['dragenter', 'dragover'].forEach((eventName) => {\r\n this._dropArea.addEventListener(\r\n eventName,\r\n this._handleHighlight.bind(this),\r\n false\r\n );\r\n });\r\n\r\n ['dragleave', 'drop'].forEach((eventName) => {\r\n this._dropArea.addEventListener(\r\n eventName,\r\n this._handleUnhighlight.bind(this),\r\n false\r\n );\r\n });\r\n }\r\n\r\n ngDoCheck() {\r\n this.checkIsBoxHasMinWidth()\r\n }\r\n \r\n checkIsBoxHasMinWidth(){\r\n this.firstInit = false;\r\n let boxWidth: number = this._getHostElement().getBoundingClientRect().width;\r\n console.log(boxWidth);\r\n \r\n if (boxWidth <= 176 && this.firstInit === false) {\r\n this._showText = false;\r\n }\r\n }\r\n\r\n preventDefaults(e: any) {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n }\r\n\r\n _handleHighlight(e) {\r\n this._dropArea.classList.add('ax-state-hover');\r\n }\r\n\r\n _handleUnhighlight(e) {\r\n this._dropArea.classList.remove('ax-state-hover');\r\n }\r\n\r\n @HostBinding('class.ax-look-default')\r\n get __defaultClass() {\r\n return !this._placeholder?.nativeElement.childNodes.length;\r\n }\r\n}\r\n","<ng-container><div #contentRef><ng-content></ng-content></div></ng-container>\r\n<ng-container *ngIf=\"contentRef.childNodes.length == 0\">\r\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-2\">\r\n <i class=\"ax-ic ax-ic-cloud-upload upload-icon\"></i>\r\n <div class=\"ax-p-4 ax-text-center\" *ngIf=\"_showText\">Drag your file here or, <span class=\"ax-text-primary-500\">click to browse</span></div>\r\n </div>\r\n</ng-container>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { AXUploaderComponent } from './uploader.component';\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\n\r\n@NgModule({\r\n declarations: [AXUploaderComponent],\r\n imports: [CommonModule,AXDecoratorModule],\r\n exports: [AXUploaderComponent],\r\n providers: [],\r\n})\r\nexport class AXUploaderModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAqBM,MAAO,mBAAoB,SAAQ,oBAAoB,CAAA;AAS3D,IAAA,WAAA,CACE,UAAsB,EACtB,GAAsB,EACd,YAA2B,EAAA;AAEnC,QAAA,KAAK,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;QAFf,IAAY,CAAA,YAAA,GAAZ,YAAY,CAAe;AAVrC,QAAA,IAAA,CAAA,cAAc,GAA8C,IAAI,YAAY,EAEzE,CAAC;QAEJ,IAAS,CAAA,SAAA,GAAY,IAAI,CAAC;QAC1B,IAAS,CAAA,SAAA,GAAY,IAAI,CAAC;QAc1B,IAA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,QAAQ,CAAC,CAAA;gBAmE5B,cAAc,EAAA,CAAA;sBADjB,WAAW;uBAAC,uBAAuB,CAAA;;;MEjHzB,gBAAgB,CAAA;;6GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAhB,gBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,iBALZ,mBAAmB,CAAA,EAAA,OAAA,EAAA,CACxB,YAAY,EAAC,iBAAiB,aAC9B,mBAAmB,CAAA,EAAA,CAAA,CAAA;8GAGlB,gBAAgB,EAAA,OAAA,EAAA,CAJjB,YAAY,EAAC,iBAAiB,CAAA,EAAA,CAAA,CAAA;2FAI7B,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;AACnC,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAC,iBAAiB,CAAC;oBACzC,OAAO,EAAE,CAAC,mBAAmB,CAAC;AAC9B,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
@@ -34,6 +34,8 @@ export declare class AXFormComponent extends AXBaseComponentMixin {
34
34
  * @ignore
35
35
  */
36
36
  constructor(elementRef: ElementRef, cdr: ChangeDetectorRef);
37
+ _handleSubmit(e: SubmitEvent): void;
38
+ _handleReset(e: Event): void;
37
39
  private _getComponenets;
38
40
  onViewInit(): void;
39
41
  private _bindEvents;
@@ -1,18 +1,27 @@
1
- import { OnInit } from '@angular/core';
1
+ import { AXHtmlEvent } from '@acorex/components/common';
2
+ import { AXBaseComponent } from '@acorex/components/mixin';
3
+ import { ChangeDetectorRef, ElementRef, EventEmitter } from '@angular/core';
2
4
  import * as i0 from "@angular/core";
3
- export declare class AXImageComponent implements OnInit {
5
+ export declare class AXImageComponent extends AXBaseComponent {
6
+ private cdr;
7
+ /**
8
+ * @ignore
9
+ */
10
+ constructor(elementRef: ElementRef, cdr: ChangeDetectorRef);
4
11
  src?: string | null;
5
12
  alt?: string | null;
13
+ priority: 'low' | 'auto' | 'high';
6
14
  lazy: boolean;
15
+ onLoad: EventEmitter<AXHtmlEvent>;
16
+ onError: EventEmitter<AXHtmlEvent<ErrorEvent>>;
7
17
  _hasError: boolean;
8
18
  _isLoaded: boolean;
9
19
  _isLoading: boolean;
10
- constructor();
11
- ngOnInit(): void;
12
- _handleLoadImage(e: any): void;
13
- _handleErrorImage(e: any): void;
20
+ onInit(): void;
21
+ _handleLoadImage(e: Event): void;
22
+ _handleErrorImage(e: ErrorEvent): void;
14
23
  get __stateError(): boolean;
15
24
  get __stateLoading(): boolean;
16
25
  static ɵfac: i0.ɵɵFactoryDeclaration<AXImageComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<AXImageComponent, "ax-image", never, { "src": "src"; "alt": "alt"; "lazy": "lazy"; }, {}, never, ["ax-overlay", "ax-placeholder", "ax-loading"], false>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXImageComponent, "ax-image", never, { "src": "src"; "alt": "alt"; "priority": "priority"; "lazy": "lazy"; }, { "onLoad": "onLoad"; "onError": "onError"; }, never, ["ax-overlay", "ax-placeholder", "ax-loading"], false>;
18
27
  }
@@ -18,6 +18,7 @@ export declare class AXMenuComponent extends AXBaseMenuMixin implements OnInit {
18
18
  _overlayRef: OverlayRef;
19
19
  get emptyTemplate(): TemplateRef<any>;
20
20
  get itemTemplate(): TemplateRef<any>;
21
+ rtl: boolean;
21
22
  private _levelCount;
22
23
  private _oldItem;
23
24
  constructor(_elementRef: ElementRef, cdr: ChangeDetectorRef, _overlay: Overlay, _platform: AXPlatform);
@@ -58,7 +58,7 @@ export declare function _BaseComponenetMixin<TBase extends Constructor<AXBaseCom
58
58
  * A token that specifies the layout direction of component.
59
59
  */
60
60
  rtl: boolean;
61
- "__#32621@#elementRef": ElementRef<any>;
61
+ "__#34338@#elementRef": ElementRef<any>;
62
62
  _cdr: ChangeDetectorRef;
63
63
  _isInited: boolean;
64
64
  _isRendered: boolean;
@@ -6,8 +6,8 @@ export declare function _BaseMenuComponentMixin<TBase extends Constructor<AXBase
6
6
  new (...args: any[]): {
7
7
  textField: string;
8
8
  valueField: string;
9
- "__#32622@#isLoading": boolean;
10
- "__#32622@#loadedItems": any;
9
+ "__#34339@#isLoading": boolean;
10
+ "__#34339@#loadedItems": any;
11
11
  visibleField: string;
12
12
  disableField: string;
13
13
  hasChildField: string;
@@ -16,7 +16,7 @@ export declare function _BaseMenuComponentMixin<TBase extends Constructor<AXBase
16
16
  orientation: 'horizontal' | 'vertical' | 'sidemenu';
17
17
  dividerField: string;
18
18
  onMenuItemClick: EventEmitter<AXItemClickEvent<any>>;
19
- "__#32622@#items": any;
19
+ "__#34339@#items": any;
20
20
  items: any;
21
21
  readonly displayItems: any;
22
22
  readonly isLoading: boolean;
@@ -28,7 +28,7 @@ export declare function _BaseMenuComponentMixin<TBase extends Constructor<AXBase
28
28
  refresh(): void;
29
29
  id: string;
30
30
  rtl: boolean;
31
- "__#32621@#elementRef": import("@angular/core").ElementRef<any>;
31
+ "__#34338@#elementRef": import("@angular/core").ElementRef<any>;
32
32
  _cdr: import("@angular/core").ChangeDetectorRef;
33
33
  _isInited: boolean;
34
34
  _isRendered: boolean;
@@ -27,7 +27,7 @@ export declare function _ButtonComponentMixin<TBase extends Constructor<AXBaseCo
27
27
  };
28
28
  id: string;
29
29
  rtl: boolean;
30
- "__#32621@#elementRef": import("@angular/core").ElementRef<any>;
30
+ "__#34338@#elementRef": import("@angular/core").ElementRef<any>;
31
31
  _cdr: import("@angular/core").ChangeDetectorRef;
32
32
  _isInited: boolean;
33
33
  _isRendered: boolean;
@@ -14,7 +14,7 @@ export declare function _ClickableComponenetMixin<TBase extends Constructor<AXBa
14
14
  * @ignore
15
15
  */
16
16
  rtl: boolean;
17
- "__#32621@#elementRef": import("@angular/core").ElementRef<any>;
17
+ "__#34338@#elementRef": import("@angular/core").ElementRef<any>;
18
18
  _cdr: import("@angular/core").ChangeDetectorRef;
19
19
  _isInited: boolean;
20
20
  _isRendered: boolean;
@@ -18,7 +18,7 @@ export declare function _ColorLookComponentMixin<TBase extends Constructor<AXBas
18
18
  look: AXStyleLookType;
19
19
  id: string;
20
20
  rtl: boolean;
21
- "__#32621@#elementRef": import("@angular/core").ElementRef<any>;
21
+ "__#34338@#elementRef": import("@angular/core").ElementRef<any>;
22
22
  _cdr: import("@angular/core").ChangeDetectorRef;
23
23
  _isInited: boolean;
24
24
  _isRendered: boolean;
@@ -7,16 +7,16 @@ export declare function _DatalistComponenetMixin<TBase extends Constructor<AXBas
7
7
  textField: string;
8
8
  childrenField: string;
9
9
  pageSize: number;
10
- "__#32623@#currentPage": number;
11
- "__#32623@#isLoading": boolean;
12
- "__#32623@#loadedItems": any[];
13
- "__#32623@#flatItems": any[];
14
- "__#32623@#totalItems": number;
15
- "__#32623@#isLazy": boolean;
10
+ "__#34340@#currentPage": number;
11
+ "__#34340@#isLoading": boolean;
12
+ "__#34340@#loadedItems": any[];
13
+ "__#34340@#flatItems": any[];
14
+ "__#34340@#totalItems": number;
15
+ "__#34340@#isLazy": boolean;
16
16
  readonly totalCount: number;
17
17
  readonly isLazy: boolean;
18
18
  readonly loadedCount: number;
19
- "__#32623@#items": AXDataListItems;
19
+ "__#34340@#items": AXDataListItems;
20
20
  items: AXDataListItems;
21
21
  readonly displayItems: any[];
22
22
  readonly flatItems: any[];
@@ -26,14 +26,14 @@ export declare function _DatalistComponenetMixin<TBase extends Constructor<AXBas
26
26
  searchQuery?: string;
27
27
  }): void;
28
28
  _onDataLoaded(): void;
29
- "__#32623@#generateFlatItems"(): void;
29
+ "__#34340@#generateFlatItems"(): void;
30
30
  _getItemDisplayTextTemplte(item: any): any;
31
31
  _trackByFunction(item: any): any;
32
32
  refresh(): void;
33
33
  empty(): void;
34
34
  id: string;
35
35
  rtl: boolean;
36
- "__#32621@#elementRef": import("@angular/core").ElementRef<any>;
36
+ "__#34338@#elementRef": import("@angular/core").ElementRef<any>;
37
37
  _cdr: import("@angular/core").ChangeDetectorRef;
38
38
  _isInited: boolean;
39
39
  _isRendered: boolean;
@@ -24,7 +24,7 @@ export declare function _DropdownComponenetMixin<TBase extends Constructor<AXBas
24
24
  readonly isOpen: boolean;
25
25
  id: string;
26
26
  rtl: boolean;
27
- "__#32621@#elementRef": import("@angular/core").ElementRef<any>;
27
+ "__#34338@#elementRef": import("@angular/core").ElementRef<any>;
28
28
  _cdr: import("@angular/core").ChangeDetectorRef;
29
29
  _isInited: boolean;
30
30
  _isRendered: boolean;
@@ -3,12 +3,12 @@ import { AXBaseComponent } from "./base-components.class";
3
3
  import { Constructor } from "./constratctor";
4
4
  import { AXFocusEvent } from "@acorex/components/common";
5
5
  export declare function _InteractiveComponenetMixin<TBase extends Constructor<AXBaseComponent>>(Base: TBase): (abstract new (...args: any[]) => {
6
- "__#32624@#disabled": boolean;
6
+ "__#34341@#disabled": boolean;
7
7
  /**
8
8
  * If set to true, it disables the component.
9
9
  */
10
10
  disabled: boolean;
11
- "__#32624@#tabIndex": number;
11
+ "__#34341@#tabIndex": number;
12
12
  /**
13
13
  * Specifies the tabindex of the component.
14
14
  */
@@ -35,7 +35,7 @@ export declare function _InteractiveComponenetMixin<TBase extends Constructor<AX
35
35
  hasFocus(): boolean;
36
36
  id: string;
37
37
  rtl: boolean;
38
- "__#32621@#elementRef": import("@angular/core").ElementRef<any>;
38
+ "__#34338@#elementRef": import("@angular/core").ElementRef<any>;
39
39
  _cdr: import("@angular/core").ChangeDetectorRef;
40
40
  _isInited: boolean;
41
41
  _isRendered: boolean;
@@ -17,7 +17,7 @@ export declare function _LoadingComponenetMixin<TBase extends Constructor<AXBase
17
17
  _onInternalInit(): void;
18
18
  id: string;
19
19
  rtl: boolean;
20
- "__#32621@#elementRef": import("@angular/core").ElementRef<any>;
20
+ "__#34338@#elementRef": import("@angular/core").ElementRef<any>;
21
21
  _cdr: import("@angular/core").ChangeDetectorRef;
22
22
  _isInited: boolean;
23
23
  _isRendered: boolean;