@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
@@ -16,9 +16,8 @@ import * as i4 from '@acorex/components/button';
16
16
  import { AXButtonModule } from '@acorex/components/button';
17
17
  import * as i6 from '@acorex/components/decorators';
18
18
  import { AXDecoratorModule } from '@acorex/components/decorators';
19
- import * as i7 from '@angular/forms';
20
- import { FormsModule } from '@angular/forms';
21
19
  import { AXTextBoxModule } from '@acorex/components/textbox';
20
+ import { FormsModule } from '@angular/forms';
22
21
 
23
22
  const AXBaseDatePickerMixin = _InteractiveComponenetMixin(_DropdownComponenetMixin(_ValueComponenetMixin(AXCalendarBaseComponent)));
24
23
  class AXDatePickerComponent extends AXBaseDatePickerMixin {
@@ -31,9 +30,10 @@ class AXDatePickerComponent extends AXBaseDatePickerMixin {
31
30
  this._format = 'YYYY-MM-dd';
32
31
  this.interface = 'calendar';
33
32
  this._target = this._getHostElement();
34
- this._isMobile = this._platform.is('Mobile');
33
+ this._isMobile = this._platform.is('Mobile') || this._platform.is('SM');
35
34
  this._platform.resize.subscribe(() => {
36
- this._isMobile = this._platform.is('Mobile');
35
+ this._isMobile = this._platform.is('Mobile') || this._platform.is('SM');
36
+ ;
37
37
  this.popover.dispose();
38
38
  });
39
39
  }
@@ -56,7 +56,10 @@ class AXDatePickerComponent extends AXBaseDatePickerMixin {
56
56
  : '';
57
57
  }
58
58
  _handlePopoverOpened(e) {
59
- this._calendar.navTo(this.value || new AXDateTime(new Date(), this.type));
59
+ setTimeout(() => {
60
+ var _a;
61
+ (_a = this._calendar) === null || _a === void 0 ? void 0 : _a.navTo(this.value || new AXDateTime(new Date(), this.type));
62
+ }, 10);
60
63
  }
61
64
  _handleArrowClickEvent(e) {
62
65
  this.toggle();
@@ -184,9 +187,9 @@ class AXDatePickerComponent extends AXBaseDatePickerMixin {
184
187
  }
185
188
  }
186
189
  AXDatePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXDatePickerComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.AXPlatform }], target: i0.ɵɵFactoryTarget.Component });
187
- AXDatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: AXDatePickerComponent, selector: "ax-date-picker", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", disabled: "disabled", tabIndex: "tabIndex", readonly: "readonly", allowNull: "allowNull", value: "value", name: "name", checked: "checked", placeholder: "placeholder", maxLength: "maxLength", debounceTime: "debounceTime", type: "type", autoComplete: "autoComplete", depth: "depth", activeView: "activeView", min: "min", max: "max", disabledDates: "disabledDates", holidayDates: "holidayDates", format: "format", interface: "interface" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged", depthChange: "depthChange", typeChange: "typeChange", disabledDatesChange: "disabledDatesChange", holidayDatesChange: "holidayDatesChange", onNavigate: "onNavigate", formatChange: "formatChange" }, host: { classAttribute: "ax-editor-container ax-drop-down" }, providers: [
190
+ AXDatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: AXDatePickerComponent, selector: "ax-date-picker", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", disabled: "disabled", tabIndex: "tabIndex", readonly: "readonly", allowNull: "allowNull", value: "value", name: "name", checked: "checked", placeholder: "placeholder", maxLength: "maxLength", type: "type", autoComplete: "autoComplete", depth: "depth", activeView: "activeView", min: "min", max: "max", disabledDates: "disabledDates", holidayDates: "holidayDates", format: "format", interface: "interface" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged", depthChange: "depthChange", typeChange: "typeChange", disabledDatesChange: "disabledDatesChange", holidayDatesChange: "holidayDatesChange", onNavigate: "onNavigate", formatChange: "formatChange" }, host: { classAttribute: "ax-editor-container ax-drop-down" }, providers: [
188
191
  { provide: AXClosbaleComponent, useExisting: AXDatePickerComponent },
189
- ], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }, { propertyName: "_calendar", first: true, predicate: AXCalendarComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\">\r\n <input class=\"ax-input\" type=\"text\" [attr.placeholder]=\"placeholder\" [class.ax-state-disabled]=\"disabled\"\r\n [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\" [readonly]=\"readonly\"\r\n [attr.tabindex]=\"_isMobile ? -1 : tabIndex\" [ngModel]=\"displayText\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (mouseup)=\"_handleOnInputClickEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\"\r\n (keydown)=\"_handleOnKeydownEvent($event)\">\r\n</div>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n</ax-button>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-calendar-options\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopoverOpened($event)\">\r\n <div class=\"ax-overlay-pane\" [class.ax-w-full]=\"_isMobile\">\r\n <ax-header *ngIf=\"_isMobile\" >\r\n <ax-title text=\"{{placeholder || 'Choose a date'}}\"></ax-title>\r\n <ax-close-button></ax-close-button>\r\n </ax-header>\r\n <ng-container *ngIf=\"interface === 'calendar'; then calendarTemplate; else pickerTemplate\"></ng-container>\r\n <ng-template #calendarTemplate>\r\n <ax-calendar #calendar [disabled]=\"disabled\" [readonly]=\"readonly\" [(value)]=\"value\" [min]=\"min\" [max]=\"max\"\r\n [disabledDates]=\"disabledDates\" [holidayDates]=\"holidayDates\" [depth]=\"depth\"\r\n (onNavigate)=\"_handleOnNavigate($event)\" [type]=\"type\">\r\n </ax-calendar>\r\n </ng-template>\r\n <ng-template #pickerTemplate>\r\n </ng-template>\r\n\r\n </div>\r\n</ax-popover>", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.AXCalendarComponent, selector: "ax-calendar", inputs: ["readonly", "allowNull", "value", "name", "checked", "disabled", "tabIndex", "depth", "activeView", "min", "max", "disabledDates", "type", "holidayDates", "interface"], outputs: ["valueChange", "onValueChanged", "onBlur", "onFocus", "depthChange", "typeChange", "disabledDatesChange", "holidayDatesChange", "onNavigate"] }, { kind: "component", type: i4.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange"] }, { kind: "component", type: i5.AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "component", type: i6.AXDecoratorHeaderComponent, selector: "ax-header" }, { kind: "component", type: i6.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i6.AXDecoratorTitleComponent, selector: "ax-title", inputs: ["text"] }, { kind: "component", type: i6.AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["icon"] }, { kind: "directive", type: i7.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
192
+ ], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }, { propertyName: "_calendar", first: true, predicate: AXCalendarComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content ax-cursor-pointer\" (click)=\"toggle()\">\r\n <!-- <input class=\"ax-input\" type=\"text\" [attr.placeholder]=\"placeholder\" [class.ax-state-disabled]=\"disabled\"\r\n [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\" [readonly]=\"readonly\"\r\n [attr.tabindex]=\"_isMobile ? -1 : tabIndex\" [ngModel]=\"displayText\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (mouseup)=\"_handleOnInputClickEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\"\r\n (keydown)=\"_handleOnKeydownEvent($event)\"> -->\r\n <div class=\"ax-px-2.5\">\r\n {{displayText}}\r\n </div>\r\n</div>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-icon icon=\"ax-ic ax-ic-chevron -ax-rotate-90 ax-transition-all\"\r\n [class.!ax-rotate-90]=\"isOpen\"></ax-icon>\r\n</ax-button>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopoverOpened($event)\">\r\n <div class=\"ax-overlay-pane\" [class.ax-w-full]=\"_isMobile\">\r\n <ax-header *ngIf=\"_isMobile\" >\r\n <ax-title text=\"{{placeholder || 'Choose a date'}}\"></ax-title>\r\n <ax-close-button></ax-close-button>\r\n </ax-header>\r\n <ng-container *ngIf=\"interface === 'calendar'; then calendarTemplate; else pickerTemplate\"></ng-container>\r\n <ng-template #calendarTemplate>\r\n <ax-calendar #calendar [disabled]=\"disabled\" [readonly]=\"readonly\" [(value)]=\"value\" [min]=\"min\" [max]=\"max\"\r\n [disabledDates]=\"disabledDates\" [holidayDates]=\"holidayDates\" [depth]=\"depth\"\r\n (onNavigate)=\"_handleOnNavigate($event)\" [type]=\"type\">\r\n </ax-calendar>\r\n </ng-template>\r\n <ng-template #pickerTemplate>\r\n </ng-template>\r\n </div>\r\n</ax-popover>", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.AXCalendarComponent, selector: "ax-calendar", inputs: ["readonly", "allowNull", "value", "name", "checked", "disabled", "tabIndex", "depth", "activeView", "min", "max", "disabledDates", "type", "holidayDates", "interface"], outputs: ["valueChange", "onValueChanged", "onBlur", "onFocus", "depthChange", "typeChange", "disabledDatesChange", "holidayDatesChange", "onNavigate"] }, { kind: "component", type: i4.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange"] }, { kind: "component", type: i5.AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "component", type: i6.AXDecoratorHeaderComponent, selector: "ax-header" }, { kind: "component", type: i6.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i6.AXDecoratorTitleComponent, selector: "ax-title", inputs: ["text"] }, { kind: "component", type: i6.AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
190
193
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXDatePickerComponent, decorators: [{
191
194
  type: Component,
192
195
  args: [{ selector: 'ax-date-picker', inputs: [
@@ -204,7 +207,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
204
207
  'placeholder',
205
208
  'maxLength',
206
209
  'allowNull',
207
- 'debounceTime',
208
210
  'type',
209
211
  'autoComplete',
210
212
  'readonly',
@@ -235,7 +237,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
235
237
  'onNavigate',
236
238
  ], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
237
239
  { provide: AXClosbaleComponent, useExisting: AXDatePickerComponent },
238
- ], host: { class: 'ax-editor-container ax-drop-down' }, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\">\r\n <input class=\"ax-input\" type=\"text\" [attr.placeholder]=\"placeholder\" [class.ax-state-disabled]=\"disabled\"\r\n [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\" [readonly]=\"readonly\"\r\n [attr.tabindex]=\"_isMobile ? -1 : tabIndex\" [ngModel]=\"displayText\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (mouseup)=\"_handleOnInputClickEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\"\r\n (keydown)=\"_handleOnKeydownEvent($event)\">\r\n</div>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n</ax-button>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-calendar-options\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopoverOpened($event)\">\r\n <div class=\"ax-overlay-pane\" [class.ax-w-full]=\"_isMobile\">\r\n <ax-header *ngIf=\"_isMobile\" >\r\n <ax-title text=\"{{placeholder || 'Choose a date'}}\"></ax-title>\r\n <ax-close-button></ax-close-button>\r\n </ax-header>\r\n <ng-container *ngIf=\"interface === 'calendar'; then calendarTemplate; else pickerTemplate\"></ng-container>\r\n <ng-template #calendarTemplate>\r\n <ax-calendar #calendar [disabled]=\"disabled\" [readonly]=\"readonly\" [(value)]=\"value\" [min]=\"min\" [max]=\"max\"\r\n [disabledDates]=\"disabledDates\" [holidayDates]=\"holidayDates\" [depth]=\"depth\"\r\n (onNavigate)=\"_handleOnNavigate($event)\" [type]=\"type\">\r\n </ax-calendar>\r\n </ng-template>\r\n <ng-template #pickerTemplate>\r\n </ng-template>\r\n\r\n </div>\r\n</ax-popover>" }]
240
+ ], host: { class: 'ax-editor-container ax-drop-down' }, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content ax-cursor-pointer\" (click)=\"toggle()\">\r\n <!-- <input class=\"ax-input\" type=\"text\" [attr.placeholder]=\"placeholder\" [class.ax-state-disabled]=\"disabled\"\r\n [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\" [readonly]=\"readonly\"\r\n [attr.tabindex]=\"_isMobile ? -1 : tabIndex\" [ngModel]=\"displayText\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (mouseup)=\"_handleOnInputClickEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\"\r\n (keydown)=\"_handleOnKeydownEvent($event)\"> -->\r\n <div class=\"ax-px-2.5\">\r\n {{displayText}}\r\n </div>\r\n</div>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-icon icon=\"ax-ic ax-ic-chevron -ax-rotate-90 ax-transition-all\"\r\n [class.!ax-rotate-90]=\"isOpen\"></ax-icon>\r\n</ax-button>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopoverOpened($event)\">\r\n <div class=\"ax-overlay-pane\" [class.ax-w-full]=\"_isMobile\">\r\n <ax-header *ngIf=\"_isMobile\" >\r\n <ax-title text=\"{{placeholder || 'Choose a date'}}\"></ax-title>\r\n <ax-close-button></ax-close-button>\r\n </ax-header>\r\n <ng-container *ngIf=\"interface === 'calendar'; then calendarTemplate; else pickerTemplate\"></ng-container>\r\n <ng-template #calendarTemplate>\r\n <ax-calendar #calendar [disabled]=\"disabled\" [readonly]=\"readonly\" [(value)]=\"value\" [min]=\"min\" [max]=\"max\"\r\n [disabledDates]=\"disabledDates\" [holidayDates]=\"holidayDates\" [depth]=\"depth\"\r\n (onNavigate)=\"_handleOnNavigate($event)\" [type]=\"type\">\r\n </ax-calendar>\r\n </ng-template>\r\n <ng-template #pickerTemplate>\r\n </ng-template>\r\n </div>\r\n</ax-popover>" }]
239
241
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.AXPlatform }]; }, propDecorators: { popover: [{
240
242
  type: ViewChild,
241
243
  args: [AXPopoverComponent, { static: true }]
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-date-picker.mjs","sources":["../../../../projects/acorex/components/date-picker/src/datepicker.component.ts","../../../../projects/acorex/components/date-picker/src/datepicker.component.html","../../../../projects/acorex/components/date-picker/src/datepicker.module.ts","../../../../projects/acorex/components/date-picker/acorex-components-date-picker.ts"],"sourcesContent":["import { AXStringUtil } from '@acorex/core/utils';\r\nimport { AXPlatform } from '@acorex/core/platform';\r\nimport { AXTranslator } from '@acorex/core/translation';\r\nimport { AXDateTime } from '@acorex/core/dateTime';\r\nimport {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n ViewChild,\r\n Input,\r\n EventEmitter,\r\n Output,\r\n} from '@angular/core';\r\nimport { AXClickEvent, AXClosbaleComponent } from '@acorex/components/common';\r\n\r\nimport {\r\n AXCalendarComponent,\r\n AXCalendarBaseComponent,\r\n AXCalendarNavigateEvent,\r\n} from '@acorex/components/calendar';\r\nimport { AXPopoverComponent } from '@acorex/components/popover';\r\nimport {\r\n AXComponentOptionChanged,\r\n _DropdownComponenetMixin,\r\n _InteractiveComponenetMixin,\r\n _ValueComponenetMixin,\r\n} from '@acorex/components/mixin';\r\n\r\nexport const AXBaseDatePickerMixin = _InteractiveComponenetMixin(\r\n _DropdownComponenetMixin(_ValueComponenetMixin(AXCalendarBaseComponent))\r\n);\r\n\r\n@Component({\r\n selector: 'ax-date-picker',\r\n templateUrl: './datepicker.component.html',\r\n inputs: [\r\n 'isOpen',\r\n 'fitParent',\r\n 'dropdownWidth',\r\n 'position',\r\n 'disabled',\r\n 'tabIndex',\r\n 'readonly',\r\n 'allowNull',\r\n 'value',\r\n 'name',\r\n 'checked',\r\n 'placeholder',\r\n 'maxLength',\r\n 'allowNull',\r\n 'debounceTime',\r\n 'type',\r\n 'autoComplete',\r\n 'readonly',\r\n 'allowNull',\r\n 'value',\r\n 'name',\r\n 'checked',\r\n 'depth',\r\n 'activeView',\r\n 'min',\r\n 'max',\r\n 'disabledDates',\r\n 'type',\r\n 'holidayDates',\r\n ],\r\n outputs: [\r\n 'onOpened',\r\n 'onClosed',\r\n 'onBlur',\r\n 'onFocus',\r\n 'valueChange',\r\n 'onValueChanged',\r\n 'valueChange',\r\n 'onValueChanged',\r\n 'depthChange',\r\n 'typeChange',\r\n 'disabledDatesChange',\r\n 'holidayDatesChange',\r\n 'onNavigate',\r\n ],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n providers: [\r\n { provide: AXClosbaleComponent, useExisting: AXDatePickerComponent },\r\n ],\r\n host: { class: 'ax-editor-container ax-drop-down' },\r\n})\r\nexport class AXDatePickerComponent extends AXBaseDatePickerMixin {\r\n @ViewChild(AXPopoverComponent, { static: true })\r\n popover: AXPopoverComponent;\r\n\r\n @ViewChild(AXCalendarComponent, { static: true })\r\n private _calendar: AXCalendarComponent;\r\n\r\n _target: HTMLDivElement;\r\n displayText: string;\r\n _calendarValue: Date;\r\n _cursorPos: number = 0;\r\n _isMobile: boolean = false;\r\n _popoverTitle: string;\r\n _popoverWidth: number;\r\n\r\n @Output()\r\n formatChange = new EventEmitter<string>();\r\n\r\n private _format: string = 'YYYY-MM-dd';\r\n @Input()\r\n public get format(): string {\r\n return this._format;\r\n }\r\n public set format(v: string) {\r\n this._setOption({\r\n name: 'format',\r\n value: v,\r\n });\r\n }\r\n\r\n @Input()\r\n placeholder: string;\r\n\r\n @Input()\r\n interface: 'calendar' | 'picker' = 'calendar';\r\n\r\n constructor(\r\n _elementRef: ElementRef,\r\n _cdr: ChangeDetectorRef,\r\n private _platform: AXPlatform\r\n ) {\r\n super(_elementRef, _cdr);\r\n this._target = this._getHostElement();\r\n this._isMobile = this._platform.is('Mobile');\r\n this._platform.resize.subscribe(() => {\r\n this._isMobile = this._platform.is('Mobile');\r\n this.popover.dispose();\r\n });\r\n }\r\n\r\n onInit(): void {\r\n this._popoverTitle =\r\n this.placeholder || AXTranslator.get('datepicker.popover.title');\r\n }\r\n\r\n private _updateDisplayText() {\r\n this.displayText = this.value\r\n ? AXDateTime.convert(this.value, this.type).format(this._format)\r\n : '';\r\n }\r\n\r\n _handlePopoverOpened(e) {\r\n this._calendar.navTo(this.value || new AXDateTime(new Date(), this.type));\r\n }\r\n\r\n _handleArrowClickEvent(e: AXClickEvent) {\r\n this.toggle();\r\n }\r\n\r\n _onValueChanged(oldValue?: any, newValue?: any) {\r\n this._updateDisplayText();\r\n this.close();\r\n }\r\n\r\n _onOptionChanged(option: AXComponentOptionChanged): void {\r\n super._onOptionChanged(option);\r\n if (option.name == 'type') {\r\n this._updateDisplayText();\r\n }\r\n }\r\n\r\n _handleOnKeydownEvent(e: KeyboardEvent) {\r\n const ignore = () => {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n };\r\n\r\n const nums: string[] = Array(10)\r\n .fill(0)\r\n .map((v, i) => i.toString());\r\n const chars: string[] = [\r\n 'Backspace',\r\n 'ArrowDown',\r\n 'ArrowUp',\r\n 'ArrowRight',\r\n 'ArrowLeft',\r\n 'Tab',\r\n 'Enter',\r\n ];\r\n const input = e.target as HTMLInputElement;\r\n const key = e.key;\r\n const valStr = input.value;\r\n const sStart = input.selectionStart || 0;\r\n const sEnd = input.selectionEnd || 0;\r\n const dateVal = new AXDateTime(this.value);\r\n //\r\n const re = /[a-zA-Z0-9]+/gi;\r\n const parts = Array.from(this.format.matchAll(re));\r\n const word = valStr.substring(sStart, sEnd);\r\n const part = parts.find((c: any) => c.index >= sStart);\r\n //\r\n //\r\n if ([...nums].includes(key)) {\r\n if (part) {\r\n switch (part[0]) {\r\n case 'dd':\r\n case 'DD':\r\n const newVal = Math.max(1, Math.min(31, Number(word + e.key)));\r\n this.value = dateVal.set('day', newVal).date;\r\n break;\r\n case 'mm':\r\n break;\r\n case 'yy':\r\n case 'YYYY':\r\n break;\r\n }\r\n setTimeout(() => {\r\n this._highlightPart(input, sStart);\r\n }, 10);\r\n ignore();\r\n }\r\n } else if (e.key === 'ArrowRight' || e.key === 'ArrowLeft') {\r\n const next = Array.from(valStr.substr(sEnd).matchAll(re));\r\n const prev = Array.from(valStr.substring(0, sStart).matchAll(re));\r\n ignore();\r\n this._highlightPart(\r\n input,\r\n e.key === 'ArrowRight'\r\n ? sEnd + (next[0]?.index || 0)\r\n : prev[prev.length - 1]?.index\r\n );\r\n } else if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {\r\n if (e.ctrlKey && e.key === 'ArrowDown') {\r\n this.open();\r\n } else {\r\n const sign = e.key === 'ArrowUp' ? +1 : -1;\r\n if (part) {\r\n switch (part[0]) {\r\n case 'dd':\r\n case 'DD':\r\n this.value = dateVal.add('day', sign).date;\r\n break;\r\n case 'mm':\r\n case 'MMM':\r\n case 'MMMM':\r\n this.value = dateVal.add('month', sign).date;\r\n break;\r\n case 'yy':\r\n case 'YYYY':\r\n this.value = dateVal.add('year', sign).date;\r\n break;\r\n }\r\n setTimeout(() => {\r\n this._highlightPart(input, sStart);\r\n }, 10);\r\n }\r\n }\r\n ignore();\r\n } else if (e.key == 'Backspace') {\r\n if (this.allowNull) {\r\n this.value = null;\r\n }\r\n ignore();\r\n }\r\n // else if (nums.includes(key)) {\r\n\r\n // }\r\n // super._emitOnKeydownEvent(e);\r\n }\r\n\r\n _handleOnInputClickEvent(e: MouseEvent): void {\r\n const input = e.target as HTMLInputElement;\r\n this._highlightPart(input);\r\n e.preventDefault();\r\n e.stopPropagation();\r\n }\r\n\r\n _handleOnNavigate(e: AXCalendarNavigateEvent) {\r\n this.onNavigate.emit(e);\r\n }\r\n\r\n private _highlightPart(input: HTMLInputElement, pos?: number) {\r\n const { start, end } = AXStringUtil.getWordBoundsAtPosition(\r\n input.value,\r\n pos != null ? pos : input.selectionStart || 0\r\n );\r\n input.setSelectionRange(start, end);\r\n }\r\n}\r\n","<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\">\r\n <input class=\"ax-input\" type=\"text\" [attr.placeholder]=\"placeholder\" [class.ax-state-disabled]=\"disabled\"\r\n [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\" [readonly]=\"readonly\"\r\n [attr.tabindex]=\"_isMobile ? -1 : tabIndex\" [ngModel]=\"displayText\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (mouseup)=\"_handleOnInputClickEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\"\r\n (keydown)=\"_handleOnKeydownEvent($event)\">\r\n</div>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n</ax-button>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-calendar-options\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopoverOpened($event)\">\r\n <div class=\"ax-overlay-pane\" [class.ax-w-full]=\"_isMobile\">\r\n <ax-header *ngIf=\"_isMobile\" >\r\n <ax-title text=\"{{placeholder || 'Choose a date'}}\"></ax-title>\r\n <ax-close-button></ax-close-button>\r\n </ax-header>\r\n <ng-container *ngIf=\"interface === 'calendar'; then calendarTemplate; else pickerTemplate\"></ng-container>\r\n <ng-template #calendarTemplate>\r\n <ax-calendar #calendar [disabled]=\"disabled\" [readonly]=\"readonly\" [(value)]=\"value\" [min]=\"min\" [max]=\"max\"\r\n [disabledDates]=\"disabledDates\" [holidayDates]=\"holidayDates\" [depth]=\"depth\"\r\n (onNavigate)=\"_handleOnNavigate($event)\" [type]=\"type\">\r\n </ax-calendar>\r\n </ng-template>\r\n <ng-template #pickerTemplate>\r\n </ng-template>\r\n\r\n </div>\r\n</ax-popover>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { AXDateTimeModule } from '@acorex/core/dateTime';\r\n\r\nimport { AXDatePickerComponent } from './datepicker.component';\r\nimport { AXCalendarModule } from '@acorex/components/calendar';\r\nimport { AXButtonModule } from '@acorex/components/button';\r\nimport { AXPopoverModule } from '@acorex/components/popover';\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\nimport { AXTextBoxModule } from '@acorex/components/textbox';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\nconst COMPONENT = [AXDatePickerComponent];\r\nconst MODULES = [\r\n CommonModule,\r\n AXCalendarModule,\r\n AXTextBoxModule,\r\n AXButtonModule,\r\n AXPopoverModule,\r\n AXDecoratorModule,\r\n AXDateTimeModule,\r\n FormsModule\r\n];\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 AXDatepickerModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA8BO,MAAM,qBAAqB,GAAG,2BAA2B,CAC9D,wBAAwB,CAAC,qBAAqB,CAAC,uBAAuB,CAAC,CAAC,EACxE;AA0DI,MAAO,qBAAsB,SAAQ,qBAAqB,CAAA;AAoC9D,IAAA,WAAA,CACE,WAAuB,EACvB,IAAuB,EACf,SAAqB,EAAA;AAE7B,QAAA,KAAK,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;AAFjB,QAAA,IAAS,CAAA,SAAA,GAAT,SAAS,CAAY;AA7B/B,QAAA,IAAU,CAAA,UAAA,GAAW,CAAC,CAAC;AACvB,QAAA,IAAS,CAAA,SAAA,GAAY,KAAK,CAAC;AAK3B,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,YAAY,EAAU,CAAC;AAElC,QAAA,IAAO,CAAA,OAAA,GAAW,YAAY,CAAC;AAgBvC,QAAA,IAAS,CAAA,SAAA,GAA0B,UAAU,CAAC;AAQ5C,QAAA,IAAI,CAAC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AAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAJd,OAAO,CAAA,EAAA,CAAA,CAAA;2FAIX,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAN9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;AACrB,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;AACvB,oBAAA,SAAS,EAAE,EAAE;iBAChB,CAAA;;;AC7BD;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-components-date-picker.mjs","sources":["../../../../projects/acorex/components/date-picker/src/datepicker.component.ts","../../../../projects/acorex/components/date-picker/src/datepicker.component.html","../../../../projects/acorex/components/date-picker/src/datepicker.module.ts","../../../../projects/acorex/components/date-picker/acorex-components-date-picker.ts"],"sourcesContent":["import { AXStringUtil } from '@acorex/core/utils';\r\nimport { AXPlatform } from '@acorex/core/platform';\r\nimport { AXTranslator } from '@acorex/core/translation';\r\nimport { AXDateTime } from '@acorex/core/dateTime';\r\nimport {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n ViewChild,\r\n Input,\r\n EventEmitter,\r\n Output,\r\n} from '@angular/core';\r\nimport { AXClickEvent, AXClosbaleComponent } from '@acorex/components/common';\r\n\r\nimport {\r\n AXCalendarComponent,\r\n AXCalendarBaseComponent,\r\n AXCalendarNavigateEvent,\r\n} from '@acorex/components/calendar';\r\nimport { AXPopoverComponent } from '@acorex/components/popover';\r\nimport {\r\n AXComponentOptionChanged,\r\n _DropdownComponenetMixin,\r\n _InteractiveComponenetMixin,\r\n _ValueComponenetMixin,\r\n} from '@acorex/components/mixin';\r\n\r\nexport const AXBaseDatePickerMixin = _InteractiveComponenetMixin(\r\n _DropdownComponenetMixin(_ValueComponenetMixin(AXCalendarBaseComponent))\r\n);\r\n\r\n@Component({\r\n selector: 'ax-date-picker',\r\n templateUrl: './datepicker.component.html',\r\n inputs: [\r\n 'isOpen',\r\n 'fitParent',\r\n 'dropdownWidth',\r\n 'position',\r\n 'disabled',\r\n 'tabIndex',\r\n 'readonly',\r\n 'allowNull',\r\n 'value',\r\n 'name',\r\n 'checked',\r\n 'placeholder',\r\n 'maxLength',\r\n 'allowNull',\r\n 'type',\r\n 'autoComplete',\r\n 'readonly',\r\n 'allowNull',\r\n 'value',\r\n 'name',\r\n 'checked',\r\n 'depth',\r\n 'activeView',\r\n 'min',\r\n 'max',\r\n 'disabledDates',\r\n 'type',\r\n 'holidayDates',\r\n ],\r\n outputs: [\r\n 'onOpened',\r\n 'onClosed',\r\n 'onBlur',\r\n 'onFocus',\r\n 'valueChange',\r\n 'onValueChanged',\r\n 'valueChange',\r\n 'onValueChanged',\r\n 'depthChange',\r\n 'typeChange',\r\n 'disabledDatesChange',\r\n 'holidayDatesChange',\r\n 'onNavigate',\r\n ],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n providers: [\r\n { provide: AXClosbaleComponent, useExisting: AXDatePickerComponent },\r\n ],\r\n host: { class: 'ax-editor-container ax-drop-down' },\r\n})\r\nexport class AXDatePickerComponent extends AXBaseDatePickerMixin {\r\n @ViewChild(AXPopoverComponent, { static: true })\r\n popover: AXPopoverComponent;\r\n\r\n @ViewChild(AXCalendarComponent, { static: true })\r\n private _calendar: AXCalendarComponent;\r\n\r\n protected _target: HTMLDivElement;\r\n displayText: string;\r\n protected _calendarValue: Date;\r\n protected _cursorPos: number = 0;\r\n protected _isMobile: boolean = false;\r\n protected _popoverTitle: string;\r\n protected _popoverWidth: number;\r\n\r\n @Output()\r\n formatChange = new EventEmitter<string>();\r\n\r\n private _format: string = 'YYYY-MM-dd';\r\n @Input()\r\n public get format(): string {\r\n return this._format;\r\n }\r\n public set format(v: string) {\r\n this._setOption({\r\n name: 'format',\r\n value: v,\r\n });\r\n }\r\n\r\n @Input()\r\n placeholder: string;\r\n\r\n @Input()\r\n interface: 'calendar' | 'picker' = 'calendar';\r\n\r\n constructor(\r\n _elementRef: ElementRef,\r\n _cdr: ChangeDetectorRef,\r\n private _platform: AXPlatform\r\n ) {\r\n super(_elementRef, _cdr);\r\n this._target = this._getHostElement();\r\n this._isMobile = this._platform.is('Mobile') || this._platform.is('SM');\r\n this._platform.resize.subscribe(() => {\r\n this._isMobile = this._platform.is('Mobile') || this._platform.is('SM');;\r\n this.popover.dispose();\r\n });\r\n }\r\n\r\n onInit(): void {\r\n this._popoverTitle =\r\n this.placeholder || AXTranslator.get('datepicker.popover.title');\r\n }\r\n\r\n private _updateDisplayText() {\r\n this.displayText = this.value\r\n ? AXDateTime.convert(this.value, this.type).format(this._format)\r\n : '';\r\n }\r\n\r\n protected _handlePopoverOpened(e) {\r\n setTimeout(() => {\r\n this._calendar?.navTo(this.value || new AXDateTime(new Date(), this.type));\r\n }, 10);\r\n }\r\n\r\n protected _handleArrowClickEvent(e: AXClickEvent) {\r\n this.toggle();\r\n }\r\n\r\n _onValueChanged(oldValue?: any, newValue?: any) {\r\n this._updateDisplayText();\r\n this.close();\r\n }\r\n\r\n _onOptionChanged(option: AXComponentOptionChanged): void {\r\n super._onOptionChanged(option);\r\n if (option.name == 'type') {\r\n this._updateDisplayText();\r\n }\r\n }\r\n\r\n protected _handleOnKeydownEvent(e: KeyboardEvent) {\r\n const ignore = () => {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n };\r\n\r\n const nums: string[] = Array(10)\r\n .fill(0)\r\n .map((v, i) => i.toString());\r\n const chars: string[] = [\r\n 'Backspace',\r\n 'ArrowDown',\r\n 'ArrowUp',\r\n 'ArrowRight',\r\n 'ArrowLeft',\r\n 'Tab',\r\n 'Enter',\r\n ];\r\n const input = e.target as HTMLInputElement;\r\n const key = e.key;\r\n const valStr = input.value;\r\n const sStart = input.selectionStart || 0;\r\n const sEnd = input.selectionEnd || 0;\r\n const dateVal = new AXDateTime(this.value);\r\n //\r\n const re = /[a-zA-Z0-9]+/gi;\r\n const parts = Array.from(this.format.matchAll(re));\r\n const word = valStr.substring(sStart, sEnd);\r\n const part = parts.find((c: any) => c.index >= sStart);\r\n //\r\n //\r\n if ([...nums].includes(key)) {\r\n if (part) {\r\n switch (part[0]) {\r\n case 'dd':\r\n case 'DD':\r\n const newVal = Math.max(1, Math.min(31, Number(word + e.key)));\r\n this.value = dateVal.set('day', newVal).date;\r\n break;\r\n case 'mm':\r\n break;\r\n case 'yy':\r\n case 'YYYY':\r\n break;\r\n }\r\n setTimeout(() => {\r\n this._highlightPart(input, sStart);\r\n }, 10);\r\n ignore();\r\n }\r\n } else if (e.key === 'ArrowRight' || e.key === 'ArrowLeft') {\r\n const next = Array.from(valStr.substr(sEnd).matchAll(re));\r\n const prev = Array.from(valStr.substring(0, sStart).matchAll(re));\r\n ignore();\r\n this._highlightPart(\r\n input,\r\n e.key === 'ArrowRight'\r\n ? sEnd + (next[0]?.index || 0)\r\n : prev[prev.length - 1]?.index\r\n );\r\n } else if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {\r\n if (e.ctrlKey && e.key === 'ArrowDown') {\r\n this.open();\r\n } else {\r\n const sign = e.key === 'ArrowUp' ? +1 : -1;\r\n if (part) {\r\n switch (part[0]) {\r\n case 'dd':\r\n case 'DD':\r\n this.value = dateVal.add('day', sign).date;\r\n break;\r\n case 'mm':\r\n case 'MMM':\r\n case 'MMMM':\r\n this.value = dateVal.add('month', sign).date;\r\n break;\r\n case 'yy':\r\n case 'YYYY':\r\n this.value = dateVal.add('year', sign).date;\r\n break;\r\n }\r\n setTimeout(() => {\r\n this._highlightPart(input, sStart);\r\n }, 10);\r\n }\r\n }\r\n ignore();\r\n } else if (e.key == 'Backspace') {\r\n if (this.allowNull) {\r\n this.value = null;\r\n }\r\n ignore();\r\n }\r\n // else if (nums.includes(key)) {\r\n\r\n // }\r\n // super._emitOnKeydownEvent(e);\r\n }\r\n\r\n protected _handleOnInputClickEvent(e: MouseEvent): void {\r\n const input = e.target as HTMLInputElement;\r\n this._highlightPart(input);\r\n e.preventDefault();\r\n e.stopPropagation();\r\n }\r\n\r\n protected _handleOnNavigate(e: AXCalendarNavigateEvent) {\r\n this.onNavigate.emit(e);\r\n }\r\n\r\n private _highlightPart(input: HTMLInputElement, pos?: number) {\r\n const { start, end } = AXStringUtil.getWordBoundsAtPosition(\r\n input.value,\r\n pos != null ? pos : input.selectionStart || 0\r\n );\r\n input.setSelectionRange(start, end);\r\n }\r\n}\r\n","<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content ax-cursor-pointer\" (click)=\"toggle()\">\r\n <!-- <input class=\"ax-input\" type=\"text\" [attr.placeholder]=\"placeholder\" [class.ax-state-disabled]=\"disabled\"\r\n [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\" [readonly]=\"readonly\"\r\n [attr.tabindex]=\"_isMobile ? -1 : tabIndex\" [ngModel]=\"displayText\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (mouseup)=\"_handleOnInputClickEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\"\r\n (keydown)=\"_handleOnKeydownEvent($event)\"> -->\r\n <div class=\"ax-px-2.5\">\r\n {{displayText}}\r\n </div>\r\n</div>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-icon icon=\"ax-ic ax-ic-chevron -ax-rotate-90 ax-transition-all\"\r\n [class.!ax-rotate-90]=\"isOpen\"></ax-icon>\r\n</ax-button>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopoverOpened($event)\">\r\n <div class=\"ax-overlay-pane\" [class.ax-w-full]=\"_isMobile\">\r\n <ax-header *ngIf=\"_isMobile\" >\r\n <ax-title text=\"{{placeholder || 'Choose a date'}}\"></ax-title>\r\n <ax-close-button></ax-close-button>\r\n </ax-header>\r\n <ng-container *ngIf=\"interface === 'calendar'; then calendarTemplate; else pickerTemplate\"></ng-container>\r\n <ng-template #calendarTemplate>\r\n <ax-calendar #calendar [disabled]=\"disabled\" [readonly]=\"readonly\" [(value)]=\"value\" [min]=\"min\" [max]=\"max\"\r\n [disabledDates]=\"disabledDates\" [holidayDates]=\"holidayDates\" [depth]=\"depth\"\r\n (onNavigate)=\"_handleOnNavigate($event)\" [type]=\"type\">\r\n </ax-calendar>\r\n </ng-template>\r\n <ng-template #pickerTemplate>\r\n </ng-template>\r\n </div>\r\n</ax-popover>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { AXDateTimeModule } from '@acorex/core/dateTime';\r\n\r\nimport { AXDatePickerComponent } from './datepicker.component';\r\nimport { AXCalendarModule } from '@acorex/components/calendar';\r\nimport { AXButtonModule } from '@acorex/components/button';\r\nimport { AXPopoverModule } from '@acorex/components/popover';\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\nimport { AXTextBoxModule } from '@acorex/components/textbox';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\nconst COMPONENT = [AXDatePickerComponent];\r\nconst MODULES = [\r\n CommonModule,\r\n AXCalendarModule,\r\n AXTextBoxModule,\r\n AXButtonModule,\r\n AXPopoverModule,\r\n AXDecoratorModule,\r\n AXDateTimeModule,\r\n FormsModule\r\n];\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 AXDatepickerModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AA8BO,MA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;;+GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAlB,kBAAkB,EAAA,YAAA,EAAA,CAlBZ,qBAAqB,CAAA,EAAA,OAAA,EAAA,CAEpC,YAAY;QACZ,gBAAgB;QAChB,eAAe;QACf,cAAc;QACd,eAAe;QACf,iBAAiB;QACjB,gBAAgB;QAChB,WAAW,aATI,qBAAqB,CAAA,EAAA,CAAA,CAAA;AAkB3B,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAJd,OAAO,CAAA,EAAA,CAAA,CAAA;2FAIX,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAN9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;AACrB,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;AACvB,oBAAA,SAAS,EAAE,EAAE;iBAChB,CAAA;;;AC7BD;;AAEG;;;;"}
@@ -15,7 +15,7 @@ class AXDecoratorIconComponent extends AXBaseComponentMixin {
15
15
  }
16
16
  }
17
17
  AXDecoratorIconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXDecoratorIconComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
18
- AXDecoratorIconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: AXDecoratorIconComponent, selector: "ax-icon", inputs: { icon: "icon" }, host: { properties: { "class": "this.__iconClass" }, classAttribute: "ax-icon" }, usesInheritance: true, ngImport: i0, template: '<ng-content select="i,svg,img"></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
18
+ AXDecoratorIconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: AXDecoratorIconComponent, selector: "ax-icon", inputs: { icon: "icon" }, host: { properties: { "class": "this.__iconClass" }, classAttribute: "ax-icon" }, providers: [{ provide: 'ax-icon', useValue: AXDecoratorIconComponent }], usesInheritance: true, ngImport: i0, template: '<ng-content select="i,svg,img"></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
19
19
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXDecoratorIconComponent, decorators: [{
20
20
  type: Component,
21
21
  args: [{
@@ -23,6 +23,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
23
23
  template: '<ng-content select="i,svg,img"></ng-content>',
24
24
  changeDetection: ChangeDetectionStrategy.OnPush,
25
25
  encapsulation: ViewEncapsulation.None,
26
+ providers: [{ provide: 'ax-icon', useValue: AXDecoratorIconComponent }],
26
27
  host: { class: 'ax-icon' },
27
28
  }]
28
29
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { icon: [{
@@ -240,6 +241,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
240
241
  }]
241
242
  }] });
242
243
 
244
+ class AXDecoratorTextComponent extends AXBaseComponentMixin {
245
+ constructor(_elementRef, _cdr) {
246
+ super(_elementRef, _cdr);
247
+ }
248
+ }
249
+ AXDecoratorTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXDecoratorTextComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
250
+ AXDecoratorTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: AXDecoratorTextComponent, selector: "ax-text", inputs: { content: "content" }, providers: [{ provide: 'ax-text', useValue: AXDecoratorTextComponent }], usesInheritance: true, ngImport: i0, template: `{{ content }}`, isInline: true });
251
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXDecoratorTextComponent, decorators: [{
252
+ type: Component,
253
+ args: [{
254
+ selector: 'ax-text',
255
+ template: `{{ content }}`,
256
+ providers: [{ provide: 'ax-text', useValue: AXDecoratorTextComponent }],
257
+ }]
258
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { content: [{
259
+ type: Input
260
+ }] } });
261
+
243
262
  const COMPONENT = [
244
263
  AXDecoratorPrefixComponent,
245
264
  AXDecoratorSuffixComponent,
@@ -250,7 +269,8 @@ const COMPONENT = [
250
269
  AXDecoratorTitleComponent,
251
270
  AXDecoratorCloseButtonComponent,
252
271
  AXDecoratorOverlayComponent,
253
- AXDecoratorPlaceholderComponent
272
+ AXDecoratorPlaceholderComponent,
273
+ AXDecoratorTextComponent
254
274
  ];
255
275
  const MODULES = [CommonModule];
256
276
  class AXDecoratorModule {
@@ -265,7 +285,8 @@ AXDecoratorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", versi
265
285
  AXDecoratorTitleComponent,
266
286
  AXDecoratorCloseButtonComponent,
267
287
  AXDecoratorOverlayComponent,
268
- AXDecoratorPlaceholderComponent], imports: [CommonModule], exports: [AXDecoratorPrefixComponent,
288
+ AXDecoratorPlaceholderComponent,
289
+ AXDecoratorTextComponent], imports: [CommonModule], exports: [AXDecoratorPrefixComponent,
269
290
  AXDecoratorSuffixComponent,
270
291
  AXDecoratorContentComponent,
271
292
  AXDecoratorHeaderComponent,
@@ -274,7 +295,8 @@ AXDecoratorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", versi
274
295
  AXDecoratorTitleComponent,
275
296
  AXDecoratorCloseButtonComponent,
276
297
  AXDecoratorOverlayComponent,
277
- AXDecoratorPlaceholderComponent] });
298
+ AXDecoratorPlaceholderComponent,
299
+ AXDecoratorTextComponent] });
278
300
  AXDecoratorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXDecoratorModule, imports: [MODULES] });
279
301
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXDecoratorModule, decorators: [{
280
302
  type: NgModule,
@@ -290,5 +312,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
290
312
  * Generated bundle index. Do not edit.
291
313
  */
292
314
 
293
- export { AXDecoratorCloseButtonComponent, AXDecoratorContentComponent, AXDecoratorFooterComponent, AXDecoratorHeaderComponent, AXDecoratorIconComponent, AXDecoratorModule, AXDecoratorOverlayComponent, AXDecoratorPlaceholderComponent, AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDecoratorTitleComponent };
315
+ export { AXDecoratorCloseButtonComponent, AXDecoratorContentComponent, AXDecoratorFooterComponent, AXDecoratorHeaderComponent, AXDecoratorIconComponent, AXDecoratorModule, AXDecoratorOverlayComponent, AXDecoratorPlaceholderComponent, AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDecoratorTextComponent, AXDecoratorTitleComponent };
294
316
  //# sourceMappingURL=acorex-components-decorators.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-decorators.mjs","sources":["../../../../projects/acorex/components/decorators/src/icon.component.ts","../../../../projects/acorex/components/decorators/src/close-button.component.ts","../../../../projects/acorex/components/decorators/src/content.component.ts","../../../../projects/acorex/components/decorators/src/prefix.component.ts","../../../../projects/acorex/components/decorators/src/suffix.component.ts","../../../../projects/acorex/components/decorators/src/header.component.ts","../../../../projects/acorex/components/decorators/src/footer.component.ts","../../../../projects/acorex/components/decorators/src/title.component.ts","../../../../projects/acorex/components/decorators/src/overlay.component.ts","../../../../projects/acorex/components/decorators/src/placeholder.component.ts","../../../../projects/acorex/components/decorators/src/decorators.module.ts","../../../../projects/acorex/components/decorators/acorex-components-decorators.ts"],"sourcesContent":["import { AXBaseComponentMixin } from '@acorex/components/mixin';\r\nimport {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n Input,\r\n HostBinding,\r\n} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ax-icon',\r\n template: '<ng-content select=\"i,svg,img\"></ng-content>',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n host: { class: 'ax-icon' },\r\n})\r\nexport class AXDecoratorIconComponent extends AXBaseComponentMixin {\r\n @Input()\r\n icon: string;\r\n\r\n @HostBinding('class')\r\n private get __iconClass(): string {\r\n return `ax-ic ${this.icon}`;\r\n }\r\n\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n}\r\n","import {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n Input,\r\n Optional,\r\n Inject,\r\n} from '@angular/core';\r\nimport { AXClosbaleComponent } from '@acorex/components/common';\r\nimport { AXBaseComponentMixin } from '@acorex/components/mixin';\r\n\r\n@Component({\r\n selector: 'ax-close-button',\r\n template: `<ax-icon\r\n [icon]=\"icon\"\r\n (click)=\"_handleOnClick($event)\"\r\n tabindex=\"1\"\r\n ></ax-icon>`,\r\n host: { class: 'ax-close-button' },\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class AXDecoratorCloseButtonComponent extends AXBaseComponentMixin {\r\n constructor(\r\n _elementRef: ElementRef,\r\n _cdr: ChangeDetectorRef,\r\n @Optional()\r\n @Inject(AXClosbaleComponent)\r\n private _parent?: AXClosbaleComponent\r\n ) {\r\n super(_elementRef, _cdr);\r\n }\r\n\r\n private _icon: string = 'ax-ic-close';\r\n @Input()\r\n public get icon(): string {\r\n return this._icon || 'ax-ic-close';\r\n }\r\n public set icon(v: string) {\r\n this._icon = v;\r\n }\r\n\r\n _handleOnClick(e: MouseEvent) {\r\n this._parent?.close();\r\n }\r\n}\r\n","import { AXBaseComponentMixin } from '@acorex/components/mixin';\r\nimport {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ax-content',\r\n template: ` <ng-content> </ng-content> `,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n host: { class: 'ax-content' },\r\n})\r\nexport class AXDecoratorContentComponent extends AXBaseComponentMixin {\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n}\r\n","import { AXBaseComponentMixin } from '@acorex/components/mixin';\r\nimport {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ax-prefix',\r\n template: ` <ng-content></ng-content> `,\r\n host: { class: 'ax-prefix' },\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class AXDecoratorPrefixComponent extends AXBaseComponentMixin {\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n}\r\n","import { AXBaseComponentMixin } from '@acorex/components/mixin';\r\nimport {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ax-suffix',\r\n template: ` <ng-content></ng-content> `,\r\n host: { class: 'ax-suffix' },\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class AXDecoratorSuffixComponent extends AXBaseComponentMixin {\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n}\r\n","import { AXBaseComponentMixin } from '@acorex/components/mixin';\r\nimport {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ax-header',\r\n template: `\r\n <ng-content\r\n select=\"ax-suffix,ax-prefix,ax-button,ax-icon,ax-title,ax-data-pager,ax-close-button,ng-container,ng-content,ax-content\"\r\n ></ng-content>\r\n `,\r\n host: { class: 'ax-header' },\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class AXDecoratorHeaderComponent extends AXBaseComponentMixin {\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n}\r\n","import { AXBaseComponentMixin } from '@acorex/components/mixin';\r\nimport {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ax-footer',\r\n template: `\r\n <ng-content\r\n select=\"ax-suffix,ax-prefix,ax-button,ax-title,ax-data-pager,ax-close-button,ng-container\"\r\n ></ng-content>\r\n `,\r\n host: { class: 'ax-footer' },\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class AXDecoratorFooterComponent extends AXBaseComponentMixin {\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n}\r\n","import { AXBaseComponentMixin } from '@acorex/components/mixin';\r\nimport {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n Input,\r\n} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ax-title',\r\n template: `<h4 *ngIf=\"text\">{{ text }}</h4>\r\n <ng-container><ng-content *ngIf=\"!text\"></ng-content></ng-container>`,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n host: { class: 'ax-title' },\r\n})\r\nexport class AXDecoratorTitleComponent extends AXBaseComponentMixin {\r\n constructor(_elementRef: ElementRef, _cdr: ChangeDetectorRef) {\r\n super(_elementRef, _cdr);\r\n }\r\n\r\n @Input()\r\n text: string = '';\r\n}\r\n","import { Component, HostBinding, Input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ax-overlay',\r\n template: `<ng-content></ng-content>`,\r\n})\r\nexport class AXDecoratorOverlayComponent {\r\n @HostBinding('attr.data-overlay-mode')\r\n @Input()\r\n displayMode: 'hover' | 'always' = 'hover';\r\n}\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ax-placeholder',\r\n template: `<ng-content></ng-content>`,\r\n})\r\nexport class AXDecoratorPlaceholderComponent {\r\n\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { AXDecoratorPrefixComponent } from './prefix.component';\r\nimport { AXDecoratorSuffixComponent } from './suffix.component';\r\nimport { AXDecoratorContentComponent } from './content.component';\r\nimport { AXDecoratorHeaderComponent } from './header.component';\r\nimport { AXDecoratorFooterComponent } from './footer.component';\r\nimport { AXDecoratorIconComponent } from './icon.component';\r\nimport { AXDecoratorTitleComponent } from './title.component';\r\nimport { AXDecoratorCloseButtonComponent } from './close-button.component';\r\nimport { AXDecoratorOverlayComponent } from './overlay.component';\r\nimport { AXDecoratorPlaceholderComponent } from './placeholder.component';\r\n\r\nconst COMPONENT = [\r\n AXDecoratorPrefixComponent,\r\n AXDecoratorSuffixComponent,\r\n AXDecoratorContentComponent,\r\n AXDecoratorHeaderComponent,\r\n AXDecoratorFooterComponent,\r\n AXDecoratorIconComponent,\r\n AXDecoratorTitleComponent,\r\n AXDecoratorCloseButtonComponent,\r\n AXDecoratorOverlayComponent,\r\n AXDecoratorPlaceholderComponent\r\n];\r\nconst MODULES = [CommonModule];\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 AXDecoratorModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.AXDecoratorIconComponent"],"mappings":";;;;;;;;AAkBM,MAAO,wBAAyB,SAAQ,oBAAoB,CAAA;IAShE,WAAY,CAAA,UAAsB,EAAE,GAAsB,EAAA;AACxD,QAAA,KAAK,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;KACxB;AAPD,IAAA,IACY,WAAW,GAAA;AACrB,QAAA,OAAO,CAAS,MAAA,EAAA,IAAI,CAAC,IAAI,EAAE,CAAC;KAC7B;;qHAPU,wBAAwB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAxB,wBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,wBAAwB,kLALzB,8CAA8C,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;2FAK7C,wBAAwB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AAA,EAAA,iBAAiB,YAJb,OAAO,CAAA,EAAA,CAAA,CAAA;2FAIX,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAN7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;AACrB,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;AACvB,oBAAA,SAAS,EAAE,EAAE;iBAChB,CAAA;;;AChCD;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-components-decorators.mjs","sources":["../../../../projects/acorex/components/decorators/src/icon.component.ts","../../../../projects/acorex/components/decorators/src/close-button.component.ts","../../../../projects/acorex/components/decorators/src/content.component.ts","../../../../projects/acorex/components/decorators/src/prefix.component.ts","../../../../projects/acorex/components/decorators/src/suffix.component.ts","../../../../projects/acorex/components/decorators/src/header.component.ts","../../../../projects/acorex/components/decorators/src/footer.component.ts","../../../../projects/acorex/components/decorators/src/title.component.ts","../../../../projects/acorex/components/decorators/src/overlay.component.ts","../../../../projects/acorex/components/decorators/src/placeholder.component.ts","../../../../projects/acorex/components/decorators/src/text.component.ts","../../../../projects/acorex/components/decorators/src/decorators.module.ts","../../../../projects/acorex/components/decorators/acorex-components-decorators.ts"],"sourcesContent":["import { AXBaseComponentMixin } from '@acorex/components/mixin';\r\nimport {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n Input,\r\n HostBinding,\r\n} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ax-icon',\r\n template: '<ng-content select=\"i,svg,img\"></ng-content>',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n providers: [{ provide: 'ax-icon', useValue: AXDecoratorIconComponent }],\r\n host: { class: 'ax-icon' },\r\n})\r\nexport class AXDecoratorIconComponent extends AXBaseComponentMixin {\r\n @Input()\r\n icon: string;\r\n\r\n @HostBinding('class')\r\n private get __iconClass(): string {\r\n return `ax-ic ${this.icon}`;\r\n }\r\n\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n}\r\n","import {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n Input,\r\n Optional,\r\n Inject,\r\n} from '@angular/core';\r\nimport { AXClosbaleComponent } from '@acorex/components/common';\r\nimport { AXBaseComponentMixin } from '@acorex/components/mixin';\r\n\r\n@Component({\r\n selector: 'ax-close-button',\r\n template: `<ax-icon\r\n [icon]=\"icon\"\r\n (click)=\"_handleOnClick($event)\"\r\n tabindex=\"1\"\r\n ></ax-icon>`,\r\n host: { class: 'ax-close-button' },\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class AXDecoratorCloseButtonComponent extends AXBaseComponentMixin {\r\n constructor(\r\n _elementRef: ElementRef,\r\n _cdr: ChangeDetectorRef,\r\n @Optional()\r\n @Inject(AXClosbaleComponent)\r\n private _parent?: AXClosbaleComponent\r\n ) {\r\n super(_elementRef, _cdr);\r\n }\r\n\r\n private _icon: string = 'ax-ic-close';\r\n @Input()\r\n public get icon(): string {\r\n return this._icon || 'ax-ic-close';\r\n }\r\n public set icon(v: string) {\r\n this._icon = v;\r\n }\r\n\r\n _handleOnClick(e: MouseEvent) {\r\n this._parent?.close();\r\n }\r\n}\r\n","import { AXBaseComponentMixin } from '@acorex/components/mixin';\r\nimport {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ax-content',\r\n template: ` <ng-content> </ng-content> `,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n host: { class: 'ax-content' },\r\n})\r\nexport class AXDecoratorContentComponent extends AXBaseComponentMixin {\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n}\r\n","import { AXBaseComponentMixin } from '@acorex/components/mixin';\r\nimport {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ax-prefix',\r\n template: ` <ng-content></ng-content> `,\r\n host: { class: 'ax-prefix' },\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class AXDecoratorPrefixComponent extends AXBaseComponentMixin {\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n}\r\n","import { AXBaseComponentMixin } from '@acorex/components/mixin';\r\nimport {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ax-suffix',\r\n template: ` <ng-content></ng-content> `,\r\n host: { class: 'ax-suffix' },\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class AXDecoratorSuffixComponent extends AXBaseComponentMixin {\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n}\r\n","import { AXBaseComponentMixin } from '@acorex/components/mixin';\r\nimport {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ax-header',\r\n template: `\r\n <ng-content\r\n select=\"ax-suffix,ax-prefix,ax-button,ax-icon,ax-title,ax-data-pager,ax-close-button,ng-container,ng-content,ax-content\"\r\n ></ng-content>\r\n `,\r\n host: { class: 'ax-header' },\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class AXDecoratorHeaderComponent extends AXBaseComponentMixin {\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n}\r\n","import { AXBaseComponentMixin } from '@acorex/components/mixin';\r\nimport {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ax-footer',\r\n template: `\r\n <ng-content\r\n select=\"ax-suffix,ax-prefix,ax-button,ax-title,ax-data-pager,ax-close-button,ng-container\"\r\n ></ng-content>\r\n `,\r\n host: { class: 'ax-footer' },\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class AXDecoratorFooterComponent extends AXBaseComponentMixin {\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n}\r\n","import { AXBaseComponentMixin } from '@acorex/components/mixin';\r\nimport {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n Input,\r\n} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ax-title',\r\n template: `<h4 *ngIf=\"text\">{{ text }}</h4>\r\n <ng-container><ng-content *ngIf=\"!text\"></ng-content></ng-container>`,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n host: { class: 'ax-title' },\r\n})\r\nexport class AXDecoratorTitleComponent extends AXBaseComponentMixin {\r\n constructor(_elementRef: ElementRef, _cdr: ChangeDetectorRef) {\r\n super(_elementRef, _cdr);\r\n }\r\n\r\n @Input()\r\n text: string = '';\r\n}\r\n","import { Component, HostBinding, Input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ax-overlay',\r\n template: `<ng-content></ng-content>`,\r\n})\r\nexport class AXDecoratorOverlayComponent {\r\n @HostBinding('attr.data-overlay-mode')\r\n @Input()\r\n displayMode: 'hover' | 'always' = 'hover';\r\n}\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ax-placeholder',\r\n template: `<ng-content></ng-content>`,\r\n})\r\nexport class AXDecoratorPlaceholderComponent {\r\n\r\n}\r\n","import { AXBaseComponentMixin } from '@acorex/components/mixin';\r\nimport { ChangeDetectorRef, Component, ElementRef, Input, OnInit } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ax-text',\r\n template: `{{ content }}`,\r\n providers: [{ provide: 'ax-text', useValue: AXDecoratorTextComponent }],\r\n})\r\nexport class AXDecoratorTextComponent extends AXBaseComponentMixin {\r\n @Input() content: string;\r\n constructor(_elementRef: ElementRef, _cdr: ChangeDetectorRef) {\r\n super(_elementRef, _cdr);\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { AXDecoratorPrefixComponent } from './prefix.component';\r\nimport { AXDecoratorSuffixComponent } from './suffix.component';\r\nimport { AXDecoratorContentComponent } from './content.component';\r\nimport { AXDecoratorHeaderComponent } from './header.component';\r\nimport { AXDecoratorFooterComponent } from './footer.component';\r\nimport { AXDecoratorIconComponent } from './icon.component';\r\nimport { AXDecoratorTitleComponent } from './title.component';\r\nimport { AXDecoratorCloseButtonComponent } from './close-button.component';\r\nimport { AXDecoratorOverlayComponent } from './overlay.component';\r\nimport { AXDecoratorPlaceholderComponent } from './placeholder.component';\r\nimport { AXDecoratorTextComponent } from './text.component';\r\n\r\nconst COMPONENT = [\r\n AXDecoratorPrefixComponent,\r\n AXDecoratorSuffixComponent,\r\n AXDecoratorContentComponent,\r\n AXDecoratorHeaderComponent,\r\n AXDecoratorFooterComponent,\r\n AXDecoratorIconComponent,\r\n AXDecoratorTitleComponent,\r\n AXDecoratorCloseButtonComponent,\r\n AXDecoratorOverlayComponent,\r\n AXDecoratorPlaceholderComponent,\r\n AXDecoratorTextComponent\r\n];\r\nconst MODULES = [CommonModule];\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 AXDecoratorModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.AXDecoratorIconComponent"],"mappings":";;;;;;;;AAmBM,MAAO,wBAAyB,SAAQ,oBAAoB,CAAA;IAShE,WAAY,CAAA,UAAsB,EAAE,GAAsB,EAAA;AACxD,QAAA,KAAK,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;KACxB;AAPD,IAAA,IACY,WAAW,GAAA;AACrB,QAAA,OAAO,CAAS,MAAA,EAAA,IAAI,CAAC,IAAI,EAAE,CAAC;KAC7B;;qHAPU,wBAAwB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAxB,wBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,wBAAwB,EAHxB,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,kBAAA,EAAA,EAAA,cAAA,EAAA,SAAA,EAAA,EAAA,SAAA,EAAA,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,wBAAwB,EAAE,CAAC,iDAH7D,8CAA8C,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAA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AAA,EAAA,CAAA,CAAA;2FAIX,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAN7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;AACrB,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;AACvB,oBAAA,SAAS,EAAE,EAAE;iBAChB,CAAA;;;AClCD;;AAEG;;;;"}
@@ -55,7 +55,7 @@ class AXDialogComponent extends AXBaseComponentMixin {
55
55
  }
56
56
  }
57
57
  AXDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXDialogComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
58
- AXDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: AXDialogComponent, selector: "ax-dialog", usesInheritance: true, ngImport: i0, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" [cdkTrapFocus]=\"true\">\r\n <div class=\"ax-dialog ax-{{options.type}}-default\" cdkDrag role=\"alert\" cdkDragHandle>\r\n <div class=\"ax-dialog-icon-side\">\r\n <i class=\"ax-dialog-icon {{_icon}}\"></i>\r\n </div>\r\n <div class=\"ax-dialog-content-side\">\r\n <div class=\"ax-dialog-title\">{{options.title}}</div>\r\n <div class=\"ax-dialog-content\">{{options.content}}</div>\r\n </div>\r\n <div class=\"ax-dialog-dismiss-icon\">\r\n <i class=\"ax-ic ax-ic-close\" *ngIf=\"options.dismissible\" (click)=\"close()\"></i>\r\n </div>\r\n <ax-footer>\r\n <ng-container *ngFor=\"let button of options.buttons;let i=index\">\r\n <ax-button [text]=\"button.text\" [axAutoFocus]=\"_hasAutoFocus(button)\" [hotkey]=\"button.hotkey\"\r\n (onClick)=\"_handleButtonClick(button)\" [class]=\"button.cssClass\" [look]=\"button.look\"\r\n [color]=\"button.color\"></ax-button>\r\n </ng-container>\r\n </ax-footer>\r\n </div>\r\n</div>", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.AXAutoFocusDirective, selector: "[axAutoFocus]", inputs: ["axAutoFocus"] }, { kind: "directive", type: i2.AXHotkeyDirective, selector: "[hotkey]", inputs: ["hotkey"] }, { kind: "directive", type: i3.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i3.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: i4.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: i5.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange"] }, { kind: "component", type: i6.AXDecoratorFooterComponent, selector: "ax-footer" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
58
+ AXDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: AXDialogComponent, selector: "ax-dialog", usesInheritance: true, ngImport: i0, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" [cdkTrapFocus]=\"true\">\r\n <div class=\"ax-dialog ax-{{options.type}}-default\" cdkDrag role=\"alert\" cdkDragHandle>\r\n <div class=\"ax-dialog-icon-side\">\r\n <i class=\"ax-dialog-icon {{_icon}}\"></i>\r\n </div>\r\n <div class=\"ax-dialog-content-side\">\r\n <div class=\"ax-dialog-title\">{{options.title}}</div>\r\n <div class=\"ax-dialog-content\">{{options.content}}</div>\r\n </div>\r\n <div class=\"ax-dialog-dismiss-icon\">\r\n <i class=\"ax-ic ax-ic-close\" *ngIf=\"options.dismissible\" (click)=\"close()\"></i>\r\n </div>\r\n <ax-footer>\r\n <ng-container *ngFor=\"let button of options.buttons;let i=index\">\r\n <ax-button [text]=\"button.text\" [axAutoFocus]=\"_hasAutoFocus(button)\" [hotkey]=\"button.hotkey\"\r\n (onClick)=\"_handleButtonClick(button)\" [class]=\"button.cssClass\" [look]=\"button.look\"\r\n [color]=\"button.color\"></ax-button>\r\n </ng-container>\r\n </ax-footer>\r\n </div>\r\n</div>", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.AXAutoFocusDirective, selector: "[axAutoFocus]", inputs: ["axAutoFocus", "focus-time"] }, { kind: "directive", type: i2.AXHotkeyDirective, selector: "[hotkey]", inputs: ["hotkey"] }, { kind: "directive", type: i3.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i3.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: i4.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: i5.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange"] }, { kind: "component", type: i6.AXDecoratorFooterComponent, selector: "ax-footer" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
59
59
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXDialogComponent, decorators: [{
60
60
  type: Component,
61
61
  args: [{ selector: 'ax-dialog', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" [cdkTrapFocus]=\"true\">\r\n <div class=\"ax-dialog ax-{{options.type}}-default\" cdkDrag role=\"alert\" cdkDragHandle>\r\n <div class=\"ax-dialog-icon-side\">\r\n <i class=\"ax-dialog-icon {{_icon}}\"></i>\r\n </div>\r\n <div class=\"ax-dialog-content-side\">\r\n <div class=\"ax-dialog-title\">{{options.title}}</div>\r\n <div class=\"ax-dialog-content\">{{options.content}}</div>\r\n </div>\r\n <div class=\"ax-dialog-dismiss-icon\">\r\n <i class=\"ax-ic ax-ic-close\" *ngIf=\"options.dismissible\" (click)=\"close()\"></i>\r\n </div>\r\n <ax-footer>\r\n <ng-container *ngFor=\"let button of options.buttons;let i=index\">\r\n <ax-button [text]=\"button.text\" [axAutoFocus]=\"_hasAutoFocus(button)\" [hotkey]=\"button.hotkey\"\r\n (onClick)=\"_handleButtonClick(button)\" [class]=\"button.cssClass\" [look]=\"button.look\"\r\n [color]=\"button.color\"></ax-button>\r\n </ng-container>\r\n </ax-footer>\r\n </div>\r\n</div>" }]
@@ -121,7 +121,7 @@ class AXDialogService {
121
121
  * Show a confirm box with 'Okay' & 'Cancel' buttons.
122
122
  */
123
123
  confirm(title, content, type = 'primary') {
124
- return new Promise((resolve, reject) => {
124
+ return new Promise((resolve) => {
125
125
  const popup = this.open({
126
126
  title,
127
127
  content,
@@ -134,7 +134,7 @@ class AXDialogService {
134
134
  onClick: () => {
135
135
  popup.close();
136
136
  if (resolve) {
137
- resolve();
137
+ resolve({ result: true });
138
138
  }
139
139
  },
140
140
  type: 'submit',
@@ -145,15 +145,15 @@ class AXDialogService {
145
145
  color: `light`,
146
146
  onClick: () => {
147
147
  popup.close();
148
- if (reject) {
149
- reject();
148
+ if (resolve) {
149
+ resolve({ result: false });
150
150
  }
151
151
  },
152
152
  hotkey: {
153
153
  "Escape": () => {
154
154
  popup.close();
155
- if (reject) {
156
- reject();
155
+ if (resolve) {
156
+ resolve({ result: false });
157
157
  }
158
158
  }
159
159
  },
@@ -190,6 +190,7 @@ class AXDialogService {
190
190
  .global()
191
191
  .centerHorizontally()
192
192
  .centerVertically();
193
+ const lastActiveElement = document.activeElement;
193
194
  const overlayRef = this.overlayService.create({
194
195
  positionStrategy,
195
196
  hasBackdrop: true,
@@ -203,6 +204,9 @@ class AXDialogService {
203
204
  options: options,
204
205
  close: () => {
205
206
  overlayRef.dispose();
207
+ if (lastActiveElement === null || lastActiveElement === void 0 ? void 0 : lastActiveElement.focus) {
208
+ lastActiveElement.focus();
209
+ }
206
210
  },
207
211
  });
208
212
  setTimeout(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-dialog.mjs","sources":["../../../../projects/acorex/components/dialog/src/dialog.component.ts","../../../../projects/acorex/components/dialog/src/dialog.component.html","../../../../projects/acorex/components/dialog/src/dialog.module.ts","../../../../projects/acorex/components/dialog/src/dialog.service.ts","../../../../projects/acorex/components/dialog/acorex-components-dialog.ts"],"sourcesContent":["import {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n} from '@angular/core';\r\nimport { AXButtonItem } from '@acorex/components/button';\r\nimport { AXDialogOptions } from './dialog.class';\r\nimport { AXBaseComponentMixin } from '@acorex/components/mixin';\r\n\r\n@Component({\r\n selector: 'ax-dialog',\r\n templateUrl: './dialog.component.html',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class AXDialogComponent extends AXBaseComponentMixin {\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n\r\n options: AXDialogOptions | any;\r\n _icon: string;\r\n close: () => void;\r\n\r\n onInit() {\r\n switch (this.options.type) {\r\n case 'success':\r\n this._icon = 'ax-ic ax-ic-check';\r\n break;\r\n case 'danger':\r\n this._icon = 'ax-ic ax-ic-error-filled';\r\n break;\r\n case 'warning':\r\n this._icon = 'ax-ic ax-ic-warning-filled';\r\n break;\r\n default:\r\n this._icon = 'ax-ic ax-ic-info-filled';\r\n break;\r\n }\r\n }\r\n\r\n _handleButtonClick(button: AXButtonItem) {\r\n if (button.onClick) {\r\n button.onClick();\r\n }\r\n }\r\n\r\n _hasAutoFocus(button: AXButtonItem) {\r\n const result =\r\n button.autofocus ||\r\n this.options.buttons.length == 1 ||\r\n ((button.type == 'submit' || button.type == 'cancel') &&\r\n !this.options.buttons.some((c) => c.autofocus));\r\n if (result) {\r\n button.autofocus = true;\r\n }\r\n return result;\r\n }\r\n}\r\n","<div class=\"ax-popup-wrapper\" aria-modal=\"true\" [cdkTrapFocus]=\"true\">\r\n <div class=\"ax-dialog ax-{{options.type}}-default\" cdkDrag role=\"alert\" cdkDragHandle>\r\n <div class=\"ax-dialog-icon-side\">\r\n <i class=\"ax-dialog-icon {{_icon}}\"></i>\r\n </div>\r\n <div class=\"ax-dialog-content-side\">\r\n <div class=\"ax-dialog-title\">{{options.title}}</div>\r\n <div class=\"ax-dialog-content\">{{options.content}}</div>\r\n </div>\r\n <div class=\"ax-dialog-dismiss-icon\">\r\n <i class=\"ax-ic ax-ic-close\" *ngIf=\"options.dismissible\" (click)=\"close()\"></i>\r\n </div>\r\n <ax-footer>\r\n <ng-container *ngFor=\"let button of options.buttons;let i=index\">\r\n <ax-button [text]=\"button.text\" [axAutoFocus]=\"_hasAutoFocus(button)\" [hotkey]=\"button.hotkey\"\r\n (onClick)=\"_handleButtonClick(button)\" [class]=\"button.cssClass\" [look]=\"button.look\"\r\n [color]=\"button.color\"></ax-button>\r\n </ng-container>\r\n </ax-footer>\r\n </div>\r\n</div>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { A11yModule } from '@angular/cdk/a11y';\r\nimport { DragDropModule } from '@angular/cdk/drag-drop';\r\nimport { AXButtonModule } from '@acorex/components/button';\r\nimport { AXPageModule } from '@acorex/components/page';\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\nimport { AXCommonModule } from '@acorex/components/common';\r\nimport { AXDialogComponent } from './dialog.component';\r\n\r\nconst COMPONENT = [AXDialogComponent];\r\nconst MODULES = [CommonModule,AXCommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXDecoratorModule];\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 AXDialogModule { }\r\n","import { AXTranslator } from '@acorex/core/translation';\r\nimport { Overlay, ScrollStrategyOptions } from '@angular/cdk/overlay';\r\nimport { ComponentPortal } from '@angular/cdk/portal';\r\nimport { Injectable, Injector } from '@angular/core';\r\nimport { AXStyleColorType } from '@acorex/components/common';\r\nimport {\r\n AXDialogOptions,\r\n AXDialogRef,\r\n} from './dialog.class';\r\nimport { AXDialogComponent } from './dialog.component';\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@Injectable({ providedIn: 'root' })\r\nexport class AXDialogService {\r\n\r\n /**\r\n * @ignore\r\n */\r\n constructor(\r\n private overlayService: Overlay,\r\n private parentInjector: Injector,\r\n private sso: ScrollStrategyOptions\r\n ) { }\r\n\r\n /**\r\n * Show an alert box with 'Okay' button.\r\n */\r\n alert(title: string, content: string, type: AXStyleColorType = 'primary'): Promise<void> {\r\n return new Promise((resolve) => {\r\n const popup = this.open({\r\n title,\r\n type: type,\r\n content,\r\n buttons: [\r\n {\r\n name: 'confirm',\r\n text: AXTranslator.get('common.okay'),\r\n color: type,\r\n onClick: () => {\r\n popup.close();\r\n if (resolve) {\r\n resolve();\r\n }\r\n },\r\n },\r\n ],\r\n });\r\n });\r\n }\r\n\r\n /**\r\n * Show a confirm box with 'Okay' & 'Cancel' buttons.\r\n */\r\n confirm(title: string, content: string, type: AXStyleColorType = 'primary'): Promise<void> {\r\n return new Promise((resolve, reject) => {\r\n const popup = this.open({\r\n title,\r\n content,\r\n type,\r\n buttons: [\r\n {\r\n name: 'confirm',\r\n text: AXTranslator.get('common.okay'),\r\n color: type,\r\n onClick: () => {\r\n popup.close();\r\n if (resolve) {\r\n resolve();\r\n }\r\n },\r\n type: 'submit',\r\n },\r\n {\r\n name: 'cancel',\r\n text: AXTranslator.get('common.cancel'),\r\n color: `light`,\r\n onClick: () => {\r\n popup.close();\r\n if (reject) {\r\n reject();\r\n }\r\n },\r\n hotkey: {\r\n \"Escape\": () => {\r\n popup.close();\r\n if (reject) {\r\n reject();\r\n }\r\n }\r\n },\r\n type: 'cancel',\r\n },\r\n ],\r\n });\r\n });\r\n }\r\n\r\n /**\r\n * Show a custom dialog box.\r\n */\r\n show(options: AXDialogOptions): Promise<{ name: string }> {\r\n return new Promise((resolve) => {\r\n const popup = this.open(options);\r\n options.buttons?.forEach((b) => {\r\n const orginalClick = b.onClick;\r\n b.onClick = () => {\r\n popup.close();\r\n if (orginalClick) {\r\n orginalClick();\r\n }\r\n if (resolve) {\r\n resolve({ name: b.name! });\r\n }\r\n };\r\n });\r\n });\r\n }\r\n\r\n private open(options: AXDialogOptions): AXDialogRef {\r\n let positionStrategy = this.overlayService\r\n .position()\r\n .global()\r\n .centerHorizontally()\r\n .centerVertically();\r\n const overlayRef = this.overlayService.create({\r\n positionStrategy,\r\n hasBackdrop: true,\r\n scrollStrategy: this.sso.block(),\r\n panelClass: ['ax-animate-bounceIn', 'ax-animate-faster'],\r\n });\r\n const dialogPortal = new ComponentPortal(\r\n AXDialogComponent,\r\n null,\r\n this.parentInjector\r\n );\r\n const host = overlayRef.attach(dialogPortal);\r\n if (host.instance) {\r\n Object.assign(host.instance, {\r\n options: options,\r\n close: () => {\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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;;AAiBM,MAAO,iBAAkB,SAAQ,oBAAoB,CAAA;IACzD,WAAY,CAAA,UAAsB,EAAE,GAAsB,EAAA;AACxD,QAAA,KAAK,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;KACxB;IAMD,MAAM,GAAA;AACJ,QAAA,QAAQ,IAAI,CAAC,OAAO,CAAC,IAAI;AACvB,YAAA,KAAK,SAAS;AACZ,gBAAA,IAAI,CAAC,KAAK,GAAG,mBAAmB,CAAC;gBACjC,MAAM;AACR,YAAA,KAAK,QAAQ;AACX,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;AACE,gBAAA,IAAI,CAAC,KAAK,GAAG,yBAAyB,CAAC;gBACvC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B,IAAI,EACJ,IAAI,CAAC,cAAc,CACpB,CAAC;QACF,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAC7C,IAAI,IAAI,CAAC,QAAQ,EAAE;AACjB,YAAA,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE;AAC3B,gBAAA,OAAO,EAAE,OAAO;gBAChB,KAAK,EAAE,MAAK;oBACV,UAAU,CAAC,OAAO,EAAE,CAAC;iBACtB;AACF,aAAA,CAAC,CAAC;YACH,UAAU,CAAC,MAAK;AACd,gBAAA,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,CAAC;aACxC,EAAE,CAAC,CAAC,CAAC;AACP,SAAA;QAED,OAAO;YACL,KAAK,EAAE,MAAK;AACV,gBAAA,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;aACvB;SACF,CAAC;KACH;;4GA5IU,eAAe,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAA,IAAA,CAAA,OAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,QAAA,EAAA,EAAA,EAAA,KAAA,EAAAA,IAAA,CAAA,qBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAf,eAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,cADF,MAAM,EAAA,CAAA,CAAA;2FACnB,eAAe,EAAA,UAAA,EAAA,CAAA;kBAD3B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAA;;;AChBlC;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-components-dialog.mjs","sources":["../../../../projects/acorex/components/dialog/src/dialog.component.ts","../../../../projects/acorex/components/dialog/src/dialog.component.html","../../../../projects/acorex/components/dialog/src/dialog.module.ts","../../../../projects/acorex/components/dialog/src/dialog.service.ts","../../../../projects/acorex/components/dialog/acorex-components-dialog.ts"],"sourcesContent":["import {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n} from '@angular/core';\r\nimport { AXButtonItem } from '@acorex/components/button';\r\nimport { AXDialogOptions } from './dialog.class';\r\nimport { AXBaseComponentMixin } from '@acorex/components/mixin';\r\n\r\n@Component({\r\n selector: 'ax-dialog',\r\n templateUrl: './dialog.component.html',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class AXDialogComponent extends AXBaseComponentMixin {\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n\r\n options: AXDialogOptions | any;\r\n _icon: string;\r\n close: () => void;\r\n\r\n onInit() {\r\n switch (this.options.type) {\r\n case 'success':\r\n this._icon = 'ax-ic ax-ic-check';\r\n break;\r\n case 'danger':\r\n this._icon = 'ax-ic ax-ic-error-filled';\r\n break;\r\n case 'warning':\r\n this._icon = 'ax-ic ax-ic-warning-filled';\r\n break;\r\n default:\r\n this._icon = 'ax-ic ax-ic-info-filled';\r\n break;\r\n }\r\n }\r\n\r\n _handleButtonClick(button: AXButtonItem) {\r\n if (button.onClick) {\r\n button.onClick();\r\n }\r\n }\r\n\r\n _hasAutoFocus(button: AXButtonItem) {\r\n const result =\r\n button.autofocus ||\r\n this.options.buttons.length == 1 ||\r\n ((button.type == 'submit' || button.type == 'cancel') &&\r\n !this.options.buttons.some((c) => c.autofocus));\r\n if (result) {\r\n button.autofocus = true;\r\n }\r\n return result;\r\n }\r\n}\r\n","<div class=\"ax-popup-wrapper\" aria-modal=\"true\" [cdkTrapFocus]=\"true\">\r\n <div class=\"ax-dialog ax-{{options.type}}-default\" cdkDrag role=\"alert\" cdkDragHandle>\r\n <div class=\"ax-dialog-icon-side\">\r\n <i class=\"ax-dialog-icon {{_icon}}\"></i>\r\n </div>\r\n <div class=\"ax-dialog-content-side\">\r\n <div class=\"ax-dialog-title\">{{options.title}}</div>\r\n <div class=\"ax-dialog-content\">{{options.content}}</div>\r\n </div>\r\n <div class=\"ax-dialog-dismiss-icon\">\r\n <i class=\"ax-ic ax-ic-close\" *ngIf=\"options.dismissible\" (click)=\"close()\"></i>\r\n </div>\r\n <ax-footer>\r\n <ng-container *ngFor=\"let button of options.buttons;let i=index\">\r\n <ax-button [text]=\"button.text\" [axAutoFocus]=\"_hasAutoFocus(button)\" [hotkey]=\"button.hotkey\"\r\n (onClick)=\"_handleButtonClick(button)\" [class]=\"button.cssClass\" [look]=\"button.look\"\r\n [color]=\"button.color\"></ax-button>\r\n </ng-container>\r\n </ax-footer>\r\n </div>\r\n</div>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { A11yModule } from '@angular/cdk/a11y';\r\nimport { DragDropModule } from '@angular/cdk/drag-drop';\r\nimport { AXButtonModule } from '@acorex/components/button';\r\nimport { AXPageModule } from '@acorex/components/page';\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\nimport { AXCommonModule } from '@acorex/components/common';\r\nimport { AXDialogComponent } from './dialog.component';\r\n\r\nconst COMPONENT = [AXDialogComponent];\r\nconst MODULES = [CommonModule,AXCommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXDecoratorModule];\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 AXDialogModule { }\r\n","import { AXTranslator } from '@acorex/core/translation';\r\nimport { Overlay, ScrollStrategyOptions } from '@angular/cdk/overlay';\r\nimport { ComponentPortal } from '@angular/cdk/portal';\r\nimport { Injectable, Injector } from '@angular/core';\r\nimport { AXStyleColorType } from '@acorex/components/common';\r\nimport {\r\n AXDialogOptions,\r\n AXDialogRef,\r\n} from './dialog.class';\r\nimport { AXDialogComponent } from './dialog.component';\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@Injectable({ providedIn: 'root' })\r\nexport class AXDialogService {\r\n\r\n /**\r\n * @ignore\r\n */\r\n constructor(\r\n private overlayService: Overlay,\r\n private parentInjector: Injector,\r\n private sso: ScrollStrategyOptions\r\n ) { }\r\n\r\n /**\r\n * Show an alert box with 'Okay' button.\r\n */\r\n alert(title: string, content: string, type: AXStyleColorType = 'primary'): Promise<void> {\r\n return new Promise((resolve) => {\r\n const popup = this.open({\r\n title,\r\n type: type,\r\n content,\r\n buttons: [\r\n {\r\n name: 'confirm',\r\n text: AXTranslator.get('common.okay'),\r\n color: type,\r\n onClick: () => {\r\n popup.close();\r\n if (resolve) {\r\n resolve();\r\n }\r\n },\r\n },\r\n ],\r\n });\r\n });\r\n }\r\n\r\n /**\r\n * Show a confirm box with 'Okay' & 'Cancel' buttons.\r\n */\r\n confirm(title: string, content: string, type: AXStyleColorType = 'primary'): Promise<{ result: boolean }> {\r\n return new Promise<{ result: boolean }>((resolve) => {\r\n const popup = this.open({\r\n title,\r\n content,\r\n type,\r\n buttons: [\r\n {\r\n name: 'confirm',\r\n text: AXTranslator.get('common.okay'),\r\n color: type,\r\n onClick: () => {\r\n popup.close();\r\n if (resolve) {\r\n resolve({ result: true });\r\n }\r\n },\r\n type: 'submit',\r\n },\r\n {\r\n name: 'cancel',\r\n text: AXTranslator.get('common.cancel'),\r\n color: `light`,\r\n onClick: () => {\r\n popup.close();\r\n if (resolve) {\r\n resolve({ result: false });\r\n }\r\n },\r\n hotkey: {\r\n \"Escape\": () => {\r\n popup.close();\r\n if (resolve) {\r\n resolve({ result: false });\r\n }\r\n }\r\n },\r\n type: 'cancel',\r\n },\r\n ],\r\n });\r\n });\r\n }\r\n\r\n /**\r\n * Show a custom dialog box.\r\n */\r\n show(options: AXDialogOptions): Promise<{ name: string }> {\r\n return new Promise((resolve) => {\r\n const popup = this.open(options);\r\n options.buttons?.forEach((b) => {\r\n const orginalClick = b.onClick;\r\n b.onClick = () => {\r\n popup.close();\r\n if (orginalClick) {\r\n orginalClick();\r\n }\r\n if (resolve) {\r\n resolve({ name: b.name! });\r\n }\r\n };\r\n });\r\n });\r\n }\r\n\r\n private open(options: AXDialogOptions): AXDialogRef {\r\n let positionStrategy = this.overlayService\r\n .position()\r\n .global()\r\n .centerHorizontally()\r\n .centerVertically();\r\n\r\n const lastActiveElement = document.activeElement as HTMLElement;\r\n const overlayRef = this.overlayService.create({\r\n positionStrategy,\r\n hasBackdrop: true,\r\n scrollStrategy: this.sso.block(),\r\n panelClass: ['ax-animate-bounceIn', 'ax-animate-faster'],\r\n });\r\n const dialogPortal = new ComponentPortal(\r\n AXDialogComponent,\r\n null,\r\n this.parentInjector\r\n );\r\n const host = overlayRef.attach(dialogPortal);\r\n if (host.instance) {\r\n Object.assign(host.instance, {\r\n options: options,\r\n close: () => {\r\n overlayRef.dispose();\r\n if (lastActiveElement?.focus) {\r\n lastActiveElement.focus();\r\n }\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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;;AAiBM,MAAO,iBAAkB,SAAQ,oBAAoB,CAAA;IACzD,WAAY,CAAA,UAAsB,EAAE,GAAsB,EAAA;AACxD,QAAA,KAAK,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;KACxB;IAMD,MAAM,GAAA;AACJ,QAAA,QAAQ,IAAI,CAAC,OAAO,CAAC,IAAI;AACvB,YAAA,KAAK,SAAS;AACZ,gBAAA,IAAI,CAAC,KAAK,GAAG,mBAAmB,CAAC;gBACjC,MAAM;AACR,YAAA,KAAK,QAAQ;AACX,gBAAA,IAAI,CAAC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