@lucca-front/ng 20.3.3-rc.6 → 21.0.0-rc.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 (261) hide show
  1. package/api/index.d.ts +18 -0
  2. package/breadcrumbs/index.d.ts +1 -3
  3. package/callout/index.d.ts +8 -2
  4. package/chip/index.d.ts +3 -2
  5. package/clear/index.d.ts +30 -0
  6. package/code/index.d.ts +9 -0
  7. package/container/index.d.ts +2 -2
  8. package/core/index.d.ts +6 -6
  9. package/core-select/department/index.d.ts +1 -1
  10. package/core-select/index.d.ts +2 -1
  11. package/core-select/occupation-category/index.d.ts +26 -0
  12. package/data-table/index.d.ts +68 -30
  13. package/date/index.d.ts +18 -0
  14. package/date2/index.d.ts +15 -15
  15. package/department/index.d.ts +10 -1
  16. package/divider/index.d.ts +7 -4
  17. package/dropdown/index.d.ts +6 -3
  18. package/establishment/index.d.ts +15 -0
  19. package/fancy-box/index.d.ts +2 -1
  20. package/fesm2022/lucca-front-ng-a11y.mjs +32 -32
  21. package/fesm2022/lucca-front-ng-a11y.mjs.map +1 -1
  22. package/fesm2022/lucca-front-ng-animations.mjs.map +1 -1
  23. package/fesm2022/lucca-front-ng-api.mjs +76 -59
  24. package/fesm2022/lucca-front-ng-api.mjs.map +1 -1
  25. package/fesm2022/lucca-front-ng-app-layout.mjs +8 -8
  26. package/fesm2022/lucca-front-ng-app-layout.mjs.map +1 -1
  27. package/fesm2022/lucca-front-ng-box.mjs +8 -8
  28. package/fesm2022/lucca-front-ng-box.mjs.map +1 -1
  29. package/fesm2022/lucca-front-ng-breadcrumbs.mjs +18 -30
  30. package/fesm2022/lucca-front-ng-breadcrumbs.mjs.map +1 -1
  31. package/fesm2022/lucca-front-ng-button.mjs +12 -7
  32. package/fesm2022/lucca-front-ng-button.mjs.map +1 -1
  33. package/fesm2022/lucca-front-ng-callout.mjs +117 -64
  34. package/fesm2022/lucca-front-ng-callout.mjs.map +1 -1
  35. package/fesm2022/lucca-front-ng-chip.mjs +29 -25
  36. package/fesm2022/lucca-front-ng-chip.mjs.map +1 -1
  37. package/fesm2022/lucca-front-ng-clear.mjs +94 -0
  38. package/fesm2022/lucca-front-ng-clear.mjs.map +1 -0
  39. package/fesm2022/lucca-front-ng-code.mjs +21 -0
  40. package/fesm2022/lucca-front-ng-code.mjs.map +1 -0
  41. package/fesm2022/lucca-front-ng-comment.mjs +31 -31
  42. package/fesm2022/lucca-front-ng-comment.mjs.map +1 -1
  43. package/fesm2022/lucca-front-ng-container.mjs +18 -18
  44. package/fesm2022/lucca-front-ng-container.mjs.map +1 -1
  45. package/fesm2022/lucca-front-ng-core-select-api.mjs +14 -16
  46. package/fesm2022/lucca-front-ng-core-select-api.mjs.map +1 -1
  47. package/fesm2022/lucca-front-ng-core-select-department.mjs +16 -18
  48. package/fesm2022/lucca-front-ng-core-select-department.mjs.map +1 -1
  49. package/fesm2022/lucca-front-ng-core-select-establishment.mjs +18 -19
  50. package/fesm2022/lucca-front-ng-core-select-establishment.mjs.map +1 -1
  51. package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs +12 -13
  52. package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs.map +1 -1
  53. package/fesm2022/lucca-front-ng-core-select-occupation-category.mjs +79 -0
  54. package/fesm2022/lucca-front-ng-core-select-occupation-category.mjs.map +1 -0
  55. package/fesm2022/lucca-front-ng-core-select-user.mjs +60 -62
  56. package/fesm2022/lucca-front-ng-core-select-user.mjs.map +1 -1
  57. package/fesm2022/lucca-front-ng-core-select.mjs +103 -113
  58. package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
  59. package/fesm2022/lucca-front-ng-core.mjs +48 -49
  60. package/fesm2022/lucca-front-ng-core.mjs.map +1 -1
  61. package/fesm2022/lucca-front-ng-data-table.mjs +266 -87
  62. package/fesm2022/lucca-front-ng-data-table.mjs.map +1 -1
  63. package/fesm2022/lucca-front-ng-date.mjs +113 -97
  64. package/fesm2022/lucca-front-ng-date.mjs.map +1 -1
  65. package/fesm2022/lucca-front-ng-date2.mjs +134 -136
  66. package/fesm2022/lucca-front-ng-date2.mjs.map +1 -1
  67. package/fesm2022/lucca-front-ng-department.mjs +56 -47
  68. package/fesm2022/lucca-front-ng-department.mjs.map +1 -1
  69. package/fesm2022/lucca-front-ng-dialog.mjs +53 -56
  70. package/fesm2022/lucca-front-ng-dialog.mjs.map +1 -1
  71. package/fesm2022/lucca-front-ng-divider.mjs +13 -15
  72. package/fesm2022/lucca-front-ng-divider.mjs.map +1 -1
  73. package/fesm2022/lucca-front-ng-dropdown.mjs +225 -224
  74. package/fesm2022/lucca-front-ng-dropdown.mjs.map +1 -1
  75. package/fesm2022/lucca-front-ng-empty-state.mjs +13 -9
  76. package/fesm2022/lucca-front-ng-empty-state.mjs.map +1 -1
  77. package/fesm2022/lucca-front-ng-establishment.mjs +85 -71
  78. package/fesm2022/lucca-front-ng-establishment.mjs.map +1 -1
  79. package/fesm2022/lucca-front-ng-fancy-box.mjs +10 -6
  80. package/fesm2022/lucca-front-ng-fancy-box.mjs.map +1 -1
  81. package/fesm2022/lucca-front-ng-file-upload.mjs +112 -112
  82. package/fesm2022/lucca-front-ng-file-upload.mjs.map +1 -1
  83. package/fesm2022/lucca-front-ng-filter-pills.mjs +78 -81
  84. package/fesm2022/lucca-front-ng-filter-pills.mjs.map +1 -1
  85. package/fesm2022/lucca-front-ng-footer.mjs +12 -19
  86. package/fesm2022/lucca-front-ng-footer.mjs.map +1 -1
  87. package/fesm2022/lucca-front-ng-form-field.mjs +88 -88
  88. package/fesm2022/lucca-front-ng-form-field.mjs.map +1 -1
  89. package/fesm2022/lucca-front-ng-form-header.mjs +23 -0
  90. package/fesm2022/lucca-front-ng-form-header.mjs.map +1 -0
  91. package/fesm2022/lucca-front-ng-form.mjs +24 -0
  92. package/fesm2022/lucca-front-ng-form.mjs.map +1 -0
  93. package/fesm2022/lucca-front-ng-formly.mjs +77 -77
  94. package/fesm2022/lucca-front-ng-formly.mjs.map +1 -1
  95. package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs +19 -20
  96. package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs.map +1 -1
  97. package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-html.mjs.map +1 -1
  98. package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-markdown.mjs +3 -2
  99. package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-markdown.mjs.map +1 -1
  100. package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-plain-text.mjs.map +1 -1
  101. package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs +206 -150
  102. package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs.map +1 -1
  103. package/fesm2022/lucca-front-ng-forms.mjs +185 -171
  104. package/fesm2022/lucca-front-ng-forms.mjs.map +1 -1
  105. package/fesm2022/lucca-front-ng-gauge.mjs +26 -26
  106. package/fesm2022/lucca-front-ng-gauge.mjs.map +1 -1
  107. package/fesm2022/lucca-front-ng-grid.mjs +26 -26
  108. package/fesm2022/lucca-front-ng-grid.mjs.map +1 -1
  109. package/fesm2022/lucca-front-ng-highlight-data.mjs +20 -20
  110. package/fesm2022/lucca-front-ng-highlight-data.mjs.map +1 -1
  111. package/fesm2022/lucca-front-ng-horizontal-navigation.mjs +17 -32
  112. package/fesm2022/lucca-front-ng-horizontal-navigation.mjs.map +1 -1
  113. package/fesm2022/lucca-front-ng-icon.mjs +6 -6
  114. package/fesm2022/lucca-front-ng-icon.mjs.map +1 -1
  115. package/fesm2022/lucca-front-ng-index-table.mjs +355 -0
  116. package/fesm2022/lucca-front-ng-index-table.mjs.map +1 -0
  117. package/fesm2022/lucca-front-ng-inline-message.mjs +4 -4
  118. package/fesm2022/lucca-front-ng-inline-message.mjs.map +1 -1
  119. package/fesm2022/lucca-front-ng-input.mjs +67 -57
  120. package/fesm2022/lucca-front-ng-input.mjs.map +1 -1
  121. package/fesm2022/lucca-front-ng-link.mjs +24 -23
  122. package/fesm2022/lucca-front-ng-link.mjs.map +1 -1
  123. package/fesm2022/lucca-front-ng-listbox.mjs +31 -31
  124. package/fesm2022/lucca-front-ng-listbox.mjs.map +1 -1
  125. package/fesm2022/lucca-front-ng-listing.mjs +28 -24
  126. package/fesm2022/lucca-front-ng-listing.mjs.map +1 -1
  127. package/fesm2022/lucca-front-ng-loading.mjs +11 -11
  128. package/fesm2022/lucca-front-ng-loading.mjs.map +1 -1
  129. package/fesm2022/lucca-front-ng-main-layout.mjs +14 -14
  130. package/fesm2022/lucca-front-ng-main-layout.mjs.map +1 -1
  131. package/fesm2022/lucca-front-ng-mobile-push.mjs +39 -31
  132. package/fesm2022/lucca-front-ng-mobile-push.mjs.map +1 -1
  133. package/fesm2022/lucca-front-ng-modal.mjs +57 -62
  134. package/fesm2022/lucca-front-ng-modal.mjs.map +1 -1
  135. package/fesm2022/lucca-front-ng-multi-select.mjs +247 -230
  136. package/fesm2022/lucca-front-ng-multi-select.mjs.map +1 -1
  137. package/fesm2022/lucca-front-ng-new-badge.mjs +4 -4
  138. package/fesm2022/lucca-front-ng-new-badge.mjs.map +1 -1
  139. package/fesm2022/lucca-front-ng-number-format.mjs +11 -13
  140. package/fesm2022/lucca-front-ng-number-format.mjs.map +1 -1
  141. package/fesm2022/lucca-front-ng-number.mjs +11 -10
  142. package/fesm2022/lucca-front-ng-number.mjs.map +1 -1
  143. package/fesm2022/lucca-front-ng-numeric-badge.mjs +22 -10
  144. package/fesm2022/lucca-front-ng-numeric-badge.mjs.map +1 -1
  145. package/fesm2022/lucca-front-ng-option.mjs +287 -240
  146. package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
  147. package/fesm2022/lucca-front-ng-page-header.mjs +11 -11
  148. package/fesm2022/lucca-front-ng-page-header.mjs.map +1 -1
  149. package/fesm2022/lucca-front-ng-pagination.mjs +38 -38
  150. package/fesm2022/lucca-front-ng-pagination.mjs.map +1 -1
  151. package/fesm2022/lucca-front-ng-plg-push.mjs +54 -5
  152. package/fesm2022/lucca-front-ng-plg-push.mjs.map +1 -1
  153. package/fesm2022/lucca-front-ng-popover.mjs +38 -28
  154. package/fesm2022/lucca-front-ng-popover.mjs.map +1 -1
  155. package/fesm2022/lucca-front-ng-popover2.mjs +36 -33
  156. package/fesm2022/lucca-front-ng-popover2.mjs.map +1 -1
  157. package/fesm2022/lucca-front-ng-popup.mjs +13 -10
  158. package/fesm2022/lucca-front-ng-popup.mjs.map +1 -1
  159. package/fesm2022/lucca-front-ng-progress-bar.mjs +28 -0
  160. package/fesm2022/lucca-front-ng-progress-bar.mjs.map +1 -0
  161. package/fesm2022/lucca-front-ng-read-more.mjs +46 -78
  162. package/fesm2022/lucca-front-ng-read-more.mjs.map +1 -1
  163. package/fesm2022/lucca-front-ng-safe-content.mjs +10 -11
  164. package/fesm2022/lucca-front-ng-safe-content.mjs.map +1 -1
  165. package/fesm2022/lucca-front-ng-scroll-box.mjs +46 -0
  166. package/fesm2022/lucca-front-ng-scroll-box.mjs.map +1 -0
  167. package/fesm2022/lucca-front-ng-scroll.mjs +10 -8
  168. package/fesm2022/lucca-front-ng-scroll.mjs.map +1 -1
  169. package/fesm2022/lucca-front-ng-scrollBox.mjs +1 -66
  170. package/fesm2022/lucca-front-ng-scrollBox.mjs.map +1 -1
  171. package/fesm2022/lucca-front-ng-segmented-control-tabs.mjs +98 -0
  172. package/fesm2022/lucca-front-ng-segmented-control-tabs.mjs.map +1 -0
  173. package/fesm2022/lucca-front-ng-segmented-control.mjs +71 -0
  174. package/fesm2022/lucca-front-ng-segmented-control.mjs.map +1 -0
  175. package/fesm2022/lucca-front-ng-segmentedControl.mjs +1 -66
  176. package/fesm2022/lucca-front-ng-segmentedControl.mjs.map +1 -1
  177. package/fesm2022/lucca-front-ng-segmentedControlTabs.mjs +1 -93
  178. package/fesm2022/lucca-front-ng-segmentedControlTabs.mjs.map +1 -1
  179. package/fesm2022/lucca-front-ng-select.mjs +21 -20
  180. package/fesm2022/lucca-front-ng-select.mjs.map +1 -1
  181. package/fesm2022/lucca-front-ng-sidepanel.mjs +7 -7
  182. package/fesm2022/lucca-front-ng-sidepanel.mjs.map +1 -1
  183. package/fesm2022/lucca-front-ng-simple-select.mjs +75 -67
  184. package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
  185. package/fesm2022/lucca-front-ng-skeleton.mjs +46 -44
  186. package/fesm2022/lucca-front-ng-skeleton.mjs.map +1 -1
  187. package/fesm2022/lucca-front-ng-sortable-list.mjs +49 -0
  188. package/fesm2022/lucca-front-ng-sortable-list.mjs.map +1 -0
  189. package/fesm2022/lucca-front-ng-status-badge.mjs +34 -0
  190. package/fesm2022/lucca-front-ng-status-badge.mjs.map +1 -0
  191. package/fesm2022/lucca-front-ng-statusBadge.mjs +1 -29
  192. package/fesm2022/lucca-front-ng-statusBadge.mjs.map +1 -1
  193. package/fesm2022/lucca-front-ng-table-of-content.mjs +39 -0
  194. package/fesm2022/lucca-front-ng-table-of-content.mjs.map +1 -0
  195. package/fesm2022/lucca-front-ng-tag.mjs +35 -13
  196. package/fesm2022/lucca-front-ng-tag.mjs.map +1 -1
  197. package/fesm2022/lucca-front-ng-time.mjs +132 -142
  198. package/fesm2022/lucca-front-ng-time.mjs.map +1 -1
  199. package/fesm2022/lucca-front-ng-title.mjs +10 -10
  200. package/fesm2022/lucca-front-ng-title.mjs.map +1 -1
  201. package/fesm2022/lucca-front-ng-toast.mjs +26 -23
  202. package/fesm2022/lucca-front-ng-toast.mjs.map +1 -1
  203. package/fesm2022/lucca-front-ng-tooltip.mjs +40 -32
  204. package/fesm2022/lucca-front-ng-tooltip.mjs.map +1 -1
  205. package/fesm2022/lucca-front-ng-tree-select.mjs +20 -21
  206. package/fesm2022/lucca-front-ng-tree-select.mjs.map +1 -1
  207. package/fesm2022/lucca-front-ng-user-popover.mjs +23 -27
  208. package/fesm2022/lucca-front-ng-user-popover.mjs.map +1 -1
  209. package/fesm2022/lucca-front-ng-user.mjs +134 -111
  210. package/fesm2022/lucca-front-ng-user.mjs.map +1 -1
  211. package/fesm2022/lucca-front-ng-vertical-navigation.mjs +91 -0
  212. package/fesm2022/lucca-front-ng-vertical-navigation.mjs.map +1 -0
  213. package/file-upload/index.d.ts +25 -25
  214. package/footer/index.d.ts +7 -7
  215. package/form/index.d.ts +9 -0
  216. package/form-field/index.d.ts +33 -32
  217. package/form-header/index.d.ts +9 -0
  218. package/forms/index.d.ts +39 -37
  219. package/forms/rich-text-input/index.d.ts +4 -1
  220. package/gauge/index.d.ts +17 -17
  221. package/grid/index.d.ts +14 -14
  222. package/horizontal-navigation/index.d.ts +5 -8
  223. package/index-table/index.d.ts +103 -0
  224. package/input/index.d.ts +27 -15
  225. package/link/index.d.ts +3 -4
  226. package/listbox/index.d.ts +20 -20
  227. package/listing/index.d.ts +13 -9
  228. package/loading/index.d.ts +4 -4
  229. package/main-layout/index.d.ts +3 -3
  230. package/modal/index.d.ts +3 -2
  231. package/multi-select/index.d.ts +13 -3
  232. package/number/index.d.ts +3 -0
  233. package/option/index.d.ts +58 -4
  234. package/package.json +125 -69
  235. package/page-header/index.d.ts +5 -5
  236. package/plg-push/index.d.ts +13 -1
  237. package/popover/index.d.ts +12 -0
  238. package/popup/index.d.ts +3 -0
  239. package/progress-bar/index.d.ts +14 -0
  240. package/read-more/index.d.ts +6 -12
  241. package/scroll/index.d.ts +3 -0
  242. package/scroll-box/index.d.ts +15 -0
  243. package/scrollBox/index.d.ts +1 -19
  244. package/segmented-control/index.d.ts +28 -0
  245. package/segmented-control-tabs/index.d.ts +34 -0
  246. package/segmentedControl/index.d.ts +1 -28
  247. package/segmentedControlTabs/index.d.ts +1 -34
  248. package/select/index.d.ts +5 -4
  249. package/simple-select/index.d.ts +1 -0
  250. package/skeleton/index.d.ts +2 -1
  251. package/sortable-list/index.d.ts +22 -0
  252. package/src/components/cdk/_dragDrop.scss +31 -3
  253. package/src/definitions/option/_option-item.scss +6 -0
  254. package/status-badge/index.d.ts +16 -0
  255. package/statusBadge/index.d.ts +1 -16
  256. package/table-of-content/index.d.ts +16 -0
  257. package/time/index.d.ts +30 -30
  258. package/toast/index.d.ts +3 -0
  259. package/tooltip/index.d.ts +9 -0
  260. package/user/index.d.ts +20 -3
  261. package/vertical-navigation/index.d.ts +42 -0
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { ChangeDetectionStrategy, InjectionToken, ViewContainerRef, ViewChild, Directive, HostBinding, Component, Injector, inject, ApplicationRef, Injectable, DestroyRef, signal, ViewEncapsulation, NgModule } from '@angular/core';
2
+ import { ChangeDetectionStrategy, InjectionToken, ViewContainerRef, ViewChild, Directive, Component, Injector, inject, ApplicationRef, Injectable, DestroyRef, signal, ViewEncapsulation, NgModule } from '@angular/core';
3
3
  import * as i2 from '@angular/cdk/a11y';
4
4
  import { A11yModule } from '@angular/cdk/a11y';
5
5
  import { AsyncPipe, NgClass } from '@angular/common';
@@ -12,11 +12,11 @@ import { ALuPopupRef } from '@lucca-front/ng/popup';
12
12
  import { ComponentPortal } from '@angular/cdk/portal';
13
13
  import * as i1 from '@angular/cdk/overlay';
14
14
  import { OverlayModule } from '@angular/cdk/overlay';
15
+ import { DialogModule } from '@angular/cdk/dialog';
15
16
  import { injectDialogData, injectDialogRef, DialogComponent, DialogHeaderComponent, DialogContentComponent, DialogFooterComponent, LuDialogService } from '@lucca-front/ng/dialog';
16
17
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
17
18
  import { ButtonComponent } from '@lucca-front/ng/button';
18
19
  import { NumericBadgeComponent } from '@lucca-front/ng/numeric-badge';
19
- import { DialogModule } from '@angular/cdk/dialog';
20
20
 
21
21
  const luDefaultModalConfig = {
22
22
  mode: 'modal',
@@ -40,45 +40,45 @@ const luModalClasses = {
40
40
  };
41
41
 
42
42
  const Translations = {
43
- en: {
44
- submit: 'Ok',
45
- cancel: 'Cancel',
46
- close: 'Close',
47
- },
48
- de: {
49
- submit: 'OK',
50
- cancel: 'Abbrechen',
51
- close: 'Schließen',
43
+ 'nl-BE': {
44
+ submit: 'Oké',
45
+ cancel: 'Annuleren',
46
+ close: 'Sluiten',
52
47
  },
53
- fr: {
54
- submit: 'Ok',
55
- cancel: 'Annuler',
56
- close: 'Fermer',
48
+ nl: {
49
+ submit: 'Oké',
50
+ cancel: 'Annuleren',
51
+ close: 'Sluiten',
57
52
  },
58
53
  it: {
59
54
  submit: 'Ok',
60
55
  cancel: 'Annullare',
61
56
  close: 'Chiudere',
62
57
  },
63
- nl: {
64
- submit: 'Oké',
65
- cancel: 'Annuleren',
66
- close: 'Sluiten',
58
+ fr: {
59
+ submit: 'Ok',
60
+ cancel: 'Annuler',
61
+ close: 'Fermer',
67
62
  },
68
- 'nl-BE': {
69
- submit: 'Oké',
70
- cancel: 'Annuleren',
71
- close: 'Sluiten',
63
+ pt: {
64
+ submit: 'Ok',
65
+ cancel: 'Cancelar',
66
+ close: 'Fechar',
72
67
  },
73
68
  es: {
74
69
  submit: 'Aceptar',
75
70
  cancel: 'Cancelar',
76
71
  close: 'Cerrar',
77
72
  },
78
- pt: {
73
+ de: {
74
+ submit: 'OK',
75
+ cancel: 'Abbrechen',
76
+ close: 'Schließen',
77
+ },
78
+ en: {
79
79
  submit: 'Ok',
80
- cancel: 'Cancelar',
81
- close: 'Fechar',
80
+ cancel: 'Cancel',
81
+ close: 'Close',
82
82
  },
83
83
  };
84
84
 
@@ -165,10 +165,10 @@ class ALuModalPanelComponent {
165
165
  listenComponentValue(selector) {
166
166
  return this.doCheck$.pipe(map(selector), distinctUntilChanged(), switchMap((value) => (isObservable(value) ? value : of(value))));
167
167
  }
168
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ALuModalPanelComponent, deps: [{ token: ALuModalRef }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
169
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.12", type: ALuModalPanelComponent, isStandalone: true, viewQueries: [{ propertyName: "_containerRef", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0 }); }
168
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: ALuModalPanelComponent, deps: [{ token: ALuModalRef }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
169
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.2", type: ALuModalPanelComponent, isStandalone: true, viewQueries: [{ propertyName: "_containerRef", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0 }); }
170
170
  }
171
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ALuModalPanelComponent, decorators: [{
171
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: ALuModalPanelComponent, decorators: [{
172
172
  type: Directive
173
173
  }], ctorParameters: () => [{ type: ALuModalRef }, { type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { _containerRef: [{
174
174
  type: ViewChild,
@@ -178,33 +178,25 @@ const panelImports = [A11yModule, AsyncPipe, LuTooltipModule, NgClass];
178
178
  class LuModalPanelComponent extends ALuModalPanelComponent {
179
179
  constructor(_ref, _elementRef, _renderer) {
180
180
  super(_ref, _elementRef, _renderer);
181
- this.class = true;
182
181
  }
183
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuModalPanelComponent, deps: [{ token: ALuModalRef }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
184
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.12", type: LuModalPanelComponent, isStandalone: true, selector: "lu-modal-panel", host: { properties: { "class.lu-modal-panel": "this.class" } }, usesInheritance: true, ngImport: i0, template: "<div\n\tcdkTrapFocus=\"true\"\n\tcdkTrapFocusAutoCapture=\"true\"\n\trole=\"dialog\"\n\taria-modal=\"true\"\n\t[attr.aria-labelledby]=\"'luModalTitle' + modalId\"\n\t[class]=\"modalClasses.panelInner\"\n>\n\t<div [class]=\"modalClasses.panelContainer\" role=\"document\">\n\t\t<div class=\"lu-modal-header\" tabindex=\"-1\" cdkFocusInitial>\n\t\t\t<button type=\"button\" class=\"button mod-onlyIcon mod-ghost mod-S lu-modal-header-close\" (click)=\"dismiss()\" [luTooltip]=\"closeLabel\">\n\t\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon icon-signClose\"></span>\n\t\t\t\t<span class=\"pr-u-mask\">{{ closeLabel }}</span>\n\t\t\t</button>\n\t\t\t<h1 [attr.id]=\"'luModalTitle' + modalId\" class=\"lu-modal-header-title\">{{ title$ | async }}</h1>\n\t\t</div>\n\t\t<div class=\"lu-modal-content\">\n\t\t\t<ng-container #container />\n\t\t</div>\n\t\t<div class=\"lu-modal-footer\">\n\t\t\t@if (!isSubmitHidden) {\n\t\t\t\t<button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tclass=\"button palette-{{ submitPalette }}\"\n\t\t\t\t\t[ngClass]=\"submitClass$ | async\"\n\t\t\t\t\t[disabled]=\"submitDisabled$ | async\"\n\t\t\t\t\t(click)=\"submit()\"\n\t\t\t\t>\n\t\t\t\t\t{{ submitLabel$ | async }}\n\t\t\t\t\t@if (hasSubmitCounter$ | async) {\n\t\t\t\t\t\t<label class=\"numericBadge palette-product\">{{ submitCounter$ | async }}</label>\n\t\t\t\t\t}\n\t\t\t\t</button>\n\t\t\t}\n\t\t\t<button type=\"button\" class=\"button mod-ghost\" (click)=\"dismiss()\">{{ cancelLabel$ | async }}</button>\n\t\t</div>\n\t</div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "ngmodule", type: LuTooltipModule }, { kind: "directive", type: i3.LuTooltipTriggerDirective, selector: "[luTooltip]", inputs: ["luTooltip", "luTooltipEnterDelay", "luTooltipLeaveDelay", "luTooltipDisabled", "luTooltipOnlyForDisplay", "luTooltipPosition", "luTooltipWhenEllipsis", "luTooltipAnchor"], exportAs: ["luTooltip"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
182
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuModalPanelComponent, deps: [{ token: ALuModalRef }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
183
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.2", type: LuModalPanelComponent, isStandalone: true, selector: "lu-modal-panel", host: { classAttribute: "lu-modal-panel" }, usesInheritance: true, ngImport: i0, template: "<div\n\tcdkTrapFocus=\"true\"\n\tcdkTrapFocusAutoCapture=\"true\"\n\trole=\"dialog\"\n\taria-modal=\"true\"\n\t[attr.aria-labelledby]=\"'luModalTitle' + modalId\"\n\t[class]=\"modalClasses.panelInner\"\n>\n\t<div [class]=\"modalClasses.panelContainer\" role=\"document\">\n\t\t<div class=\"lu-modal-header\" tabindex=\"-1\" cdkFocusInitial>\n\t\t\t<button type=\"button\" class=\"button mod-onlyIcon mod-ghost mod-S lu-modal-header-close\" (click)=\"dismiss()\" [luTooltip]=\"closeLabel\">\n\t\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon icon-signClose\"></span>\n\t\t\t\t<span class=\"pr-u-mask\">{{ closeLabel }}</span>\n\t\t\t</button>\n\t\t\t<h1 [attr.id]=\"'luModalTitle' + modalId\" class=\"lu-modal-header-title\">{{ title$ | async }}</h1>\n\t\t</div>\n\t\t<div class=\"lu-modal-content\">\n\t\t\t<ng-container #container />\n\t\t</div>\n\t\t<div class=\"lu-modal-footer\">\n\t\t\t@if (!isSubmitHidden) {\n\t\t\t\t<button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tclass=\"button palette-{{ submitPalette }}\"\n\t\t\t\t\t[ngClass]=\"submitClass$ | async\"\n\t\t\t\t\t[disabled]=\"submitDisabled$ | async\"\n\t\t\t\t\t(click)=\"submit()\"\n\t\t\t\t>\n\t\t\t\t\t{{ submitLabel$ | async }}\n\t\t\t\t\t@if (hasSubmitCounter$ | async) {\n\t\t\t\t\t\t<label class=\"numericBadge palette-product\">{{ submitCounter$ | async }}</label>\n\t\t\t\t\t}\n\t\t\t\t</button>\n\t\t\t}\n\t\t\t<button type=\"button\" class=\"button mod-ghost\" (click)=\"dismiss()\">{{ cancelLabel$ | async }}</button>\n\t\t</div>\n\t</div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "ngmodule", type: LuTooltipModule }, { kind: "directive", type: i3.LuTooltipTriggerDirective, selector: "[luTooltip]", inputs: ["luTooltip", "luTooltipEnterDelay", "luTooltipLeaveDelay", "luTooltipDisabled", "luTooltipOnlyForDisplay", "luTooltipPosition", "luTooltipWhenEllipsis", "luTooltipAnchor"], exportAs: ["luTooltip"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
185
184
  }
186
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuModalPanelComponent, decorators: [{
185
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuModalPanelComponent, decorators: [{
187
186
  type: Component,
188
- args: [{ selector: 'lu-modal-panel', standalone: true, imports: panelImports, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n\tcdkTrapFocus=\"true\"\n\tcdkTrapFocusAutoCapture=\"true\"\n\trole=\"dialog\"\n\taria-modal=\"true\"\n\t[attr.aria-labelledby]=\"'luModalTitle' + modalId\"\n\t[class]=\"modalClasses.panelInner\"\n>\n\t<div [class]=\"modalClasses.panelContainer\" role=\"document\">\n\t\t<div class=\"lu-modal-header\" tabindex=\"-1\" cdkFocusInitial>\n\t\t\t<button type=\"button\" class=\"button mod-onlyIcon mod-ghost mod-S lu-modal-header-close\" (click)=\"dismiss()\" [luTooltip]=\"closeLabel\">\n\t\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon icon-signClose\"></span>\n\t\t\t\t<span class=\"pr-u-mask\">{{ closeLabel }}</span>\n\t\t\t</button>\n\t\t\t<h1 [attr.id]=\"'luModalTitle' + modalId\" class=\"lu-modal-header-title\">{{ title$ | async }}</h1>\n\t\t</div>\n\t\t<div class=\"lu-modal-content\">\n\t\t\t<ng-container #container />\n\t\t</div>\n\t\t<div class=\"lu-modal-footer\">\n\t\t\t@if (!isSubmitHidden) {\n\t\t\t\t<button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tclass=\"button palette-{{ submitPalette }}\"\n\t\t\t\t\t[ngClass]=\"submitClass$ | async\"\n\t\t\t\t\t[disabled]=\"submitDisabled$ | async\"\n\t\t\t\t\t(click)=\"submit()\"\n\t\t\t\t>\n\t\t\t\t\t{{ submitLabel$ | async }}\n\t\t\t\t\t@if (hasSubmitCounter$ | async) {\n\t\t\t\t\t\t<label class=\"numericBadge palette-product\">{{ submitCounter$ | async }}</label>\n\t\t\t\t\t}\n\t\t\t\t</button>\n\t\t\t}\n\t\t\t<button type=\"button\" class=\"button mod-ghost\" (click)=\"dismiss()\">{{ cancelLabel$ | async }}</button>\n\t\t</div>\n\t</div>\n</div>\n" }]
189
- }], ctorParameters: () => [{ type: ALuModalRef }, { type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { class: [{
190
- type: HostBinding,
191
- args: ['class.lu-modal-panel']
192
- }] } });
187
+ args: [{ selector: 'lu-modal-panel', imports: panelImports, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'lu-modal-panel' }, template: "<div\n\tcdkTrapFocus=\"true\"\n\tcdkTrapFocusAutoCapture=\"true\"\n\trole=\"dialog\"\n\taria-modal=\"true\"\n\t[attr.aria-labelledby]=\"'luModalTitle' + modalId\"\n\t[class]=\"modalClasses.panelInner\"\n>\n\t<div [class]=\"modalClasses.panelContainer\" role=\"document\">\n\t\t<div class=\"lu-modal-header\" tabindex=\"-1\" cdkFocusInitial>\n\t\t\t<button type=\"button\" class=\"button mod-onlyIcon mod-ghost mod-S lu-modal-header-close\" (click)=\"dismiss()\" [luTooltip]=\"closeLabel\">\n\t\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon icon-signClose\"></span>\n\t\t\t\t<span class=\"pr-u-mask\">{{ closeLabel }}</span>\n\t\t\t</button>\n\t\t\t<h1 [attr.id]=\"'luModalTitle' + modalId\" class=\"lu-modal-header-title\">{{ title$ | async }}</h1>\n\t\t</div>\n\t\t<div class=\"lu-modal-content\">\n\t\t\t<ng-container #container />\n\t\t</div>\n\t\t<div class=\"lu-modal-footer\">\n\t\t\t@if (!isSubmitHidden) {\n\t\t\t\t<button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tclass=\"button palette-{{ submitPalette }}\"\n\t\t\t\t\t[ngClass]=\"submitClass$ | async\"\n\t\t\t\t\t[disabled]=\"submitDisabled$ | async\"\n\t\t\t\t\t(click)=\"submit()\"\n\t\t\t\t>\n\t\t\t\t\t{{ submitLabel$ | async }}\n\t\t\t\t\t@if (hasSubmitCounter$ | async) {\n\t\t\t\t\t\t<label class=\"numericBadge palette-product\">{{ submitCounter$ | async }}</label>\n\t\t\t\t\t}\n\t\t\t\t</button>\n\t\t\t}\n\t\t\t<button type=\"button\" class=\"button mod-ghost\" (click)=\"dismiss()\">{{ cancelLabel$ | async }}</button>\n\t\t</div>\n\t</div>\n</div>\n" }]
188
+ }], ctorParameters: () => [{ type: ALuModalRef }, { type: i0.ElementRef }, { type: i0.Renderer2 }] });
193
189
  class LuModalPanelComponentDefaultCD extends ALuModalPanelComponent {
194
190
  constructor(_ref, _elementRef, _renderer) {
195
191
  super(_ref, _elementRef, _renderer);
196
- this.class = true;
197
192
  }
198
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuModalPanelComponentDefaultCD, deps: [{ token: ALuModalRef }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
199
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.12", type: LuModalPanelComponentDefaultCD, isStandalone: true, selector: "lu-modal-panel-default", host: { properties: { "class.lu-modal-panel": "this.class" } }, usesInheritance: true, ngImport: i0, template: "<div\n\tcdkTrapFocus=\"true\"\n\tcdkTrapFocusAutoCapture=\"true\"\n\trole=\"dialog\"\n\taria-modal=\"true\"\n\t[attr.aria-labelledby]=\"'luModalTitle' + modalId\"\n\t[class]=\"modalClasses.panelInner\"\n>\n\t<div [class]=\"modalClasses.panelContainer\" role=\"document\">\n\t\t<div class=\"lu-modal-header\" tabindex=\"-1\" cdkFocusInitial>\n\t\t\t<button type=\"button\" class=\"button mod-onlyIcon mod-ghost mod-S lu-modal-header-close\" (click)=\"dismiss()\" [luTooltip]=\"closeLabel\">\n\t\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon icon-signClose\"></span>\n\t\t\t\t<span class=\"pr-u-mask\">{{ closeLabel }}</span>\n\t\t\t</button>\n\t\t\t<h1 [attr.id]=\"'luModalTitle' + modalId\" class=\"lu-modal-header-title\">{{ title$ | async }}</h1>\n\t\t</div>\n\t\t<div class=\"lu-modal-content\">\n\t\t\t<ng-container #container />\n\t\t</div>\n\t\t<div class=\"lu-modal-footer\">\n\t\t\t@if (!isSubmitHidden) {\n\t\t\t\t<button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tclass=\"button palette-{{ submitPalette }}\"\n\t\t\t\t\t[ngClass]=\"submitClass$ | async\"\n\t\t\t\t\t[disabled]=\"submitDisabled$ | async\"\n\t\t\t\t\t(click)=\"submit()\"\n\t\t\t\t>\n\t\t\t\t\t{{ submitLabel$ | async }}\n\t\t\t\t\t@if (hasSubmitCounter$ | async) {\n\t\t\t\t\t\t<label class=\"numericBadge palette-product\">{{ submitCounter$ | async }}</label>\n\t\t\t\t\t}\n\t\t\t\t</button>\n\t\t\t}\n\t\t\t<button type=\"button\" class=\"button mod-ghost\" (click)=\"dismiss()\">{{ cancelLabel$ | async }}</button>\n\t\t</div>\n\t</div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "ngmodule", type: LuTooltipModule }, { kind: "directive", type: i3.LuTooltipTriggerDirective, selector: "[luTooltip]", inputs: ["luTooltip", "luTooltipEnterDelay", "luTooltipLeaveDelay", "luTooltipDisabled", "luTooltipOnlyForDisplay", "luTooltipPosition", "luTooltipWhenEllipsis", "luTooltipAnchor"], exportAs: ["luTooltip"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
193
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuModalPanelComponentDefaultCD, deps: [{ token: ALuModalRef }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
194
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.2", type: LuModalPanelComponentDefaultCD, isStandalone: true, selector: "lu-modal-panel-default", host: { classAttribute: "lu-modal-panel" }, usesInheritance: true, ngImport: i0, template: "<div\n\tcdkTrapFocus=\"true\"\n\tcdkTrapFocusAutoCapture=\"true\"\n\trole=\"dialog\"\n\taria-modal=\"true\"\n\t[attr.aria-labelledby]=\"'luModalTitle' + modalId\"\n\t[class]=\"modalClasses.panelInner\"\n>\n\t<div [class]=\"modalClasses.panelContainer\" role=\"document\">\n\t\t<div class=\"lu-modal-header\" tabindex=\"-1\" cdkFocusInitial>\n\t\t\t<button type=\"button\" class=\"button mod-onlyIcon mod-ghost mod-S lu-modal-header-close\" (click)=\"dismiss()\" [luTooltip]=\"closeLabel\">\n\t\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon icon-signClose\"></span>\n\t\t\t\t<span class=\"pr-u-mask\">{{ closeLabel }}</span>\n\t\t\t</button>\n\t\t\t<h1 [attr.id]=\"'luModalTitle' + modalId\" class=\"lu-modal-header-title\">{{ title$ | async }}</h1>\n\t\t</div>\n\t\t<div class=\"lu-modal-content\">\n\t\t\t<ng-container #container />\n\t\t</div>\n\t\t<div class=\"lu-modal-footer\">\n\t\t\t@if (!isSubmitHidden) {\n\t\t\t\t<button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tclass=\"button palette-{{ submitPalette }}\"\n\t\t\t\t\t[ngClass]=\"submitClass$ | async\"\n\t\t\t\t\t[disabled]=\"submitDisabled$ | async\"\n\t\t\t\t\t(click)=\"submit()\"\n\t\t\t\t>\n\t\t\t\t\t{{ submitLabel$ | async }}\n\t\t\t\t\t@if (hasSubmitCounter$ | async) {\n\t\t\t\t\t\t<label class=\"numericBadge palette-product\">{{ submitCounter$ | async }}</label>\n\t\t\t\t\t}\n\t\t\t\t</button>\n\t\t\t}\n\t\t\t<button type=\"button\" class=\"button mod-ghost\" (click)=\"dismiss()\">{{ cancelLabel$ | async }}</button>\n\t\t</div>\n\t</div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "ngmodule", type: LuTooltipModule }, { kind: "directive", type: i3.LuTooltipTriggerDirective, selector: "[luTooltip]", inputs: ["luTooltip", "luTooltipEnterDelay", "luTooltipLeaveDelay", "luTooltipDisabled", "luTooltipOnlyForDisplay", "luTooltipPosition", "luTooltipWhenEllipsis", "luTooltipAnchor"], exportAs: ["luTooltip"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
200
195
  }
201
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuModalPanelComponentDefaultCD, decorators: [{
196
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuModalPanelComponentDefaultCD, decorators: [{
202
197
  type: Component,
203
- args: [{ selector: 'lu-modal-panel-default', standalone: true, imports: panelImports, changeDetection: ChangeDetectionStrategy.Default, template: "<div\n\tcdkTrapFocus=\"true\"\n\tcdkTrapFocusAutoCapture=\"true\"\n\trole=\"dialog\"\n\taria-modal=\"true\"\n\t[attr.aria-labelledby]=\"'luModalTitle' + modalId\"\n\t[class]=\"modalClasses.panelInner\"\n>\n\t<div [class]=\"modalClasses.panelContainer\" role=\"document\">\n\t\t<div class=\"lu-modal-header\" tabindex=\"-1\" cdkFocusInitial>\n\t\t\t<button type=\"button\" class=\"button mod-onlyIcon mod-ghost mod-S lu-modal-header-close\" (click)=\"dismiss()\" [luTooltip]=\"closeLabel\">\n\t\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon icon-signClose\"></span>\n\t\t\t\t<span class=\"pr-u-mask\">{{ closeLabel }}</span>\n\t\t\t</button>\n\t\t\t<h1 [attr.id]=\"'luModalTitle' + modalId\" class=\"lu-modal-header-title\">{{ title$ | async }}</h1>\n\t\t</div>\n\t\t<div class=\"lu-modal-content\">\n\t\t\t<ng-container #container />\n\t\t</div>\n\t\t<div class=\"lu-modal-footer\">\n\t\t\t@if (!isSubmitHidden) {\n\t\t\t\t<button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tclass=\"button palette-{{ submitPalette }}\"\n\t\t\t\t\t[ngClass]=\"submitClass$ | async\"\n\t\t\t\t\t[disabled]=\"submitDisabled$ | async\"\n\t\t\t\t\t(click)=\"submit()\"\n\t\t\t\t>\n\t\t\t\t\t{{ submitLabel$ | async }}\n\t\t\t\t\t@if (hasSubmitCounter$ | async) {\n\t\t\t\t\t\t<label class=\"numericBadge palette-product\">{{ submitCounter$ | async }}</label>\n\t\t\t\t\t}\n\t\t\t\t</button>\n\t\t\t}\n\t\t\t<button type=\"button\" class=\"button mod-ghost\" (click)=\"dismiss()\">{{ cancelLabel$ | async }}</button>\n\t\t</div>\n\t</div>\n</div>\n" }]
204
- }], ctorParameters: () => [{ type: ALuModalRef }, { type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { class: [{
205
- type: HostBinding,
206
- args: ['class.lu-modal-panel']
207
- }] } });
198
+ args: [{ selector: 'lu-modal-panel-default', imports: panelImports, changeDetection: ChangeDetectionStrategy.Default, host: { class: 'lu-modal-panel' }, template: "<div\n\tcdkTrapFocus=\"true\"\n\tcdkTrapFocusAutoCapture=\"true\"\n\trole=\"dialog\"\n\taria-modal=\"true\"\n\t[attr.aria-labelledby]=\"'luModalTitle' + modalId\"\n\t[class]=\"modalClasses.panelInner\"\n>\n\t<div [class]=\"modalClasses.panelContainer\" role=\"document\">\n\t\t<div class=\"lu-modal-header\" tabindex=\"-1\" cdkFocusInitial>\n\t\t\t<button type=\"button\" class=\"button mod-onlyIcon mod-ghost mod-S lu-modal-header-close\" (click)=\"dismiss()\" [luTooltip]=\"closeLabel\">\n\t\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon icon-signClose\"></span>\n\t\t\t\t<span class=\"pr-u-mask\">{{ closeLabel }}</span>\n\t\t\t</button>\n\t\t\t<h1 [attr.id]=\"'luModalTitle' + modalId\" class=\"lu-modal-header-title\">{{ title$ | async }}</h1>\n\t\t</div>\n\t\t<div class=\"lu-modal-content\">\n\t\t\t<ng-container #container />\n\t\t</div>\n\t\t<div class=\"lu-modal-footer\">\n\t\t\t@if (!isSubmitHidden) {\n\t\t\t\t<button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tclass=\"button palette-{{ submitPalette }}\"\n\t\t\t\t\t[ngClass]=\"submitClass$ | async\"\n\t\t\t\t\t[disabled]=\"submitDisabled$ | async\"\n\t\t\t\t\t(click)=\"submit()\"\n\t\t\t\t>\n\t\t\t\t\t{{ submitLabel$ | async }}\n\t\t\t\t\t@if (hasSubmitCounter$ | async) {\n\t\t\t\t\t\t<label class=\"numericBadge palette-product\">{{ submitCounter$ | async }}</label>\n\t\t\t\t\t}\n\t\t\t\t</button>\n\t\t\t}\n\t\t\t<button type=\"button\" class=\"button mod-ghost\" (click)=\"dismiss()\">{{ cancelLabel$ | async }}</button>\n\t\t</div>\n\t</div>\n</div>\n" }]
199
+ }], ctorParameters: () => [{ type: ALuModalRef }, { type: i0.ElementRef }, { type: i0.Renderer2 }] });
208
200
 
209
201
  /** Injection token that can be used to access the data that was passed in to a dialog. */
210
202
  const LU_MODAL_DATA = new InjectionToken('LuModalData');
@@ -267,10 +259,10 @@ class LuModalRefFactory {
267
259
  forge(component, config) {
268
260
  return new LuModalRef(this._overlay, this._injector, component, config, this._applicationRef);
269
261
  }
270
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuModalRefFactory, deps: [{ token: i1.Overlay }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
271
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuModalRefFactory }); }
262
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuModalRefFactory, deps: [{ token: i1.Overlay }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
263
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuModalRefFactory }); }
272
264
  }
273
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuModalRefFactory, decorators: [{
265
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuModalRefFactory, decorators: [{
274
266
  type: Injectable
275
267
  }], ctorParameters: () => [{ type: i1.Overlay }, { type: i0.Injector }] });
276
268
 
@@ -297,7 +289,7 @@ class DialogContentAdapterComponent {
297
289
  this.#injector = inject(Injector);
298
290
  this.dialogData = injectDialogData();
299
291
  this.ref = injectDialogRef();
300
- this.submitClass = signal('', ...(ngDevMode ? [{ debugName: "submitClass" }] : []));
292
+ this.submitClass = signal('');
301
293
  this.error$ = new Subject();
302
294
  this.doCheck$ = new ReplaySubject(1);
303
295
  this.intl = getIntl(LU_MODAL_TRANSLATIONS);
@@ -367,12 +359,12 @@ class DialogContentAdapterComponent {
367
359
  injector,
368
360
  }).instance;
369
361
  }
370
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: DialogContentAdapterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
371
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.12", type: DialogContentAdapterComponent, isStandalone: true, selector: "lu-dialog-content-adapter", viewQueries: [{ propertyName: "contentProjectionRef", first: true, predicate: ["contentProjectionRef"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<lu-dialog>\n\t<lu-dialog-header\n\t\t><h1>{{ title$ | async }}</h1></lu-dialog-header\n\t>\n\t<lu-dialog-content>\n\t\t<ng-container #contentProjectionRef />\n\t</lu-dialog-content>\n\t<lu-dialog-footer>\n\t\t<div class=\"footer-actions\">\n\t\t\t@if (hasSubmit$ | async) {\n\t\t\t\t<button\n\t\t\t\t\tluButton\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t[palette]=\"submitPalette\"\n\t\t\t\t\t[disabled]=\"submitDisabled$ | async\"\n\t\t\t\t\t[class]=\"submitClass()\"\n\t\t\t\t\t(click)=\"submit()\"\n\t\t\t\t>\n\t\t\t\t\t{{ submitLabel$ | async }}\n\t\t\t\t\t@if (hasSubmitCounter$ | async) {\n\t\t\t\t\t\t<lu-numeric-badge disableTooltip palette=\"product\" [value]=\"submitCounter$ | async\" />\n\t\t\t\t\t}\n\t\t\t\t</button>\n\t\t\t}\n\t\t\t<button luButton type=\"button\" class=\"button mod-ghost\" (click)=\"dismiss()\">{{ cancelLabel$ | async }}</button>\n\t\t</div>\n\t</lu-dialog-footer>\n</lu-dialog>\n", dependencies: [{ kind: "component", type: DialogComponent, selector: "lu-dialog" }, { kind: "component", type: DialogHeaderComponent, selector: "lu-dialog-header" }, { kind: "component", type: DialogContentComponent, selector: "lu-dialog-content" }, { kind: "component", type: DialogFooterComponent, selector: "lu-dialog-footer" }, { kind: "component", type: ButtonComponent, selector: "button[luButton],a[luButton]", inputs: ["size", "block", "critical", "delete", "disclosure", "palette", "state", "luButton"] }, { kind: "component", type: NumericBadgeComponent, selector: "lu-numeric-badge", inputs: ["value", "size", "loading", "maxValue", "disableTooltip", "palette"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None }); }
362
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: DialogContentAdapterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
363
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.2", type: DialogContentAdapterComponent, isStandalone: true, selector: "lu-dialog-content-adapter", viewQueries: [{ propertyName: "contentProjectionRef", first: true, predicate: ["contentProjectionRef"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<lu-dialog>\n\t<lu-dialog-header\n\t\t><h1>{{ title$ | async }}</h1></lu-dialog-header\n\t>\n\t<lu-dialog-content>\n\t\t<ng-container #contentProjectionRef />\n\t</lu-dialog-content>\n\t<lu-dialog-footer>\n\t\t<div class=\"footer-actions\">\n\t\t\t@if (hasSubmit$ | async) {\n\t\t\t\t<button\n\t\t\t\t\tluButton\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t[palette]=\"submitPalette\"\n\t\t\t\t\t[disabled]=\"submitDisabled$ | async\"\n\t\t\t\t\t[class]=\"submitClass()\"\n\t\t\t\t\t(click)=\"submit()\"\n\t\t\t\t>\n\t\t\t\t\t{{ submitLabel$ | async }}\n\t\t\t\t\t@if (hasSubmitCounter$ | async) {\n\t\t\t\t\t\t<lu-numeric-badge disableTooltip palette=\"product\" [value]=\"submitCounter$ | async\" />\n\t\t\t\t\t}\n\t\t\t\t</button>\n\t\t\t}\n\t\t\t<button luButton type=\"button\" class=\"button mod-ghost\" (click)=\"dismiss()\">{{ cancelLabel$ | async }}</button>\n\t\t</div>\n\t</lu-dialog-footer>\n</lu-dialog>\n", dependencies: [{ kind: "component", type: DialogComponent, selector: "lu-dialog" }, { kind: "component", type: DialogHeaderComponent, selector: "lu-dialog-header" }, { kind: "component", type: DialogContentComponent, selector: "lu-dialog-content" }, { kind: "component", type: DialogFooterComponent, selector: "lu-dialog-footer" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "component", type: ButtonComponent, selector: "button[luButton],a[luButton]", inputs: ["size", "block", "critical", "delete", "disclosure", "palette", "state", "luButton"] }, { kind: "component", type: NumericBadgeComponent, selector: "lu-numeric-badge", inputs: ["value", "size", "loading", "maxValue", "disableTooltip", "palette"] }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None }); }
372
364
  }
373
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: DialogContentAdapterComponent, decorators: [{
365
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: DialogContentAdapterComponent, decorators: [{
374
366
  type: Component,
375
- args: [{ selector: 'lu-dialog-content-adapter', standalone: true, changeDetection: ChangeDetectionStrategy.Default, encapsulation: ViewEncapsulation.None, imports: [DialogComponent, DialogHeaderComponent, DialogContentComponent, DialogFooterComponent, AsyncPipe, ButtonComponent, NumericBadgeComponent], template: "<lu-dialog>\n\t<lu-dialog-header\n\t\t><h1>{{ title$ | async }}</h1></lu-dialog-header\n\t>\n\t<lu-dialog-content>\n\t\t<ng-container #contentProjectionRef />\n\t</lu-dialog-content>\n\t<lu-dialog-footer>\n\t\t<div class=\"footer-actions\">\n\t\t\t@if (hasSubmit$ | async) {\n\t\t\t\t<button\n\t\t\t\t\tluButton\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t[palette]=\"submitPalette\"\n\t\t\t\t\t[disabled]=\"submitDisabled$ | async\"\n\t\t\t\t\t[class]=\"submitClass()\"\n\t\t\t\t\t(click)=\"submit()\"\n\t\t\t\t>\n\t\t\t\t\t{{ submitLabel$ | async }}\n\t\t\t\t\t@if (hasSubmitCounter$ | async) {\n\t\t\t\t\t\t<lu-numeric-badge disableTooltip palette=\"product\" [value]=\"submitCounter$ | async\" />\n\t\t\t\t\t}\n\t\t\t\t</button>\n\t\t\t}\n\t\t\t<button luButton type=\"button\" class=\"button mod-ghost\" (click)=\"dismiss()\">{{ cancelLabel$ | async }}</button>\n\t\t</div>\n\t</lu-dialog-footer>\n</lu-dialog>\n" }]
367
+ args: [{ selector: 'lu-dialog-content-adapter', changeDetection: ChangeDetectionStrategy.Default, encapsulation: ViewEncapsulation.None, imports: [DialogComponent, DialogHeaderComponent, DialogContentComponent, DialogFooterComponent, AsyncPipe, ButtonComponent, NumericBadgeComponent], template: "<lu-dialog>\n\t<lu-dialog-header\n\t\t><h1>{{ title$ | async }}</h1></lu-dialog-header\n\t>\n\t<lu-dialog-content>\n\t\t<ng-container #contentProjectionRef />\n\t</lu-dialog-content>\n\t<lu-dialog-footer>\n\t\t<div class=\"footer-actions\">\n\t\t\t@if (hasSubmit$ | async) {\n\t\t\t\t<button\n\t\t\t\t\tluButton\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t[palette]=\"submitPalette\"\n\t\t\t\t\t[disabled]=\"submitDisabled$ | async\"\n\t\t\t\t\t[class]=\"submitClass()\"\n\t\t\t\t\t(click)=\"submit()\"\n\t\t\t\t>\n\t\t\t\t\t{{ submitLabel$ | async }}\n\t\t\t\t\t@if (hasSubmitCounter$ | async) {\n\t\t\t\t\t\t<lu-numeric-badge disableTooltip palette=\"product\" [value]=\"submitCounter$ | async\" />\n\t\t\t\t\t}\n\t\t\t\t</button>\n\t\t\t}\n\t\t\t<button luButton type=\"button\" class=\"button mod-ghost\" (click)=\"dismiss()\">{{ cancelLabel$ | async }}</button>\n\t\t</div>\n\t</lu-dialog-footer>\n</lu-dialog>\n" }]
376
368
  }], propDecorators: { contentProjectionRef: [{
377
369
  type: ViewChild,
378
370
  args: ['contentProjectionRef', { read: ViewContainerRef, static: true }]
@@ -407,10 +399,10 @@ class LuModal {
407
399
  ref.open(data);
408
400
  return ref;
409
401
  }
410
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuModal, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
411
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuModal }); }
402
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuModal, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
403
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuModal }); }
412
404
  }
413
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuModal, decorators: [{
405
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuModal, decorators: [{
414
406
  type: Injectable
415
407
  }] });
416
408
 
@@ -421,12 +413,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
421
413
  function provideLuModal() {
422
414
  return [LuModal, { provide: LU_MODAL_REF_FACTORY, useClass: LuModalRefFactory }, LuDialogService];
423
415
  }
416
+ /**
417
+ * @deprecated use `OverlayModule, DialogModule` imports && provide `provideLuModal(), LuDialogService` instead
418
+ */
424
419
  class LuModalModule {
425
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
426
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.12", ngImport: i0, type: LuModalModule, imports: [OverlayModule, DialogModule] }); }
427
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuModalModule, providers: [provideLuModal(), LuDialogService], imports: [OverlayModule, DialogModule] }); }
420
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
421
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.2", ngImport: i0, type: LuModalModule, imports: [OverlayModule, DialogModule] }); }
422
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuModalModule, providers: [provideLuModal(), LuDialogService], imports: [OverlayModule, DialogModule] }); }
428
423
  }
429
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuModalModule, decorators: [{
424
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuModalModule, decorators: [{
430
425
  type: NgModule,
431
426
  args: [{
432
427
  imports: [OverlayModule, DialogModule],
@@ -1 +1 @@
1
- {"version":3,"file":"lucca-front-ng-modal.mjs","sources":["../../../packages/ng/modal/modal-config.default.ts","../../../packages/ng/modal/modal-config.model.ts","../../../packages/ng/modal/translations.ts","../../../packages/ng/modal/modal.translate.ts","../../../packages/ng/modal/modal-ref.model.ts","../../../packages/ng/modal/modal-panel.component.ts","../../../packages/ng/modal/modal-panel.component.html","../../../packages/ng/modal/modal.token.ts","../../../packages/ng/modal/modal.utils.ts","../../../packages/ng/modal/modal-ref.factory.ts","../../../packages/ng/modal/dialog-adapter/dialog-ref-adapter.ts","../../../packages/ng/modal/dialog-adapter/dialog-content-adapter/dialog-content-adapter.component.ts","../../../packages/ng/modal/dialog-adapter/dialog-content-adapter/dialog-content-adapter.component.html","../../../packages/ng/modal/modal.service.ts","../../../packages/ng/modal/modal.module.ts","../../../packages/ng/modal/lucca-front-ng-modal.ts"],"sourcesContent":["import { ChangeDetectionStrategy } from '@angular/core';\nimport { LuModalConfig } from './modal-config.model';\n\nexport const luDefaultModalConfig: LuModalConfig = {\n\tmode: 'modal',\n\tposition: 'center',\n\tnoBackdrop: false,\n\tundismissable: false,\n\tbackdropClass: ['cdk-overlay-dark-backdrop', 'lu-popup-backdrop'],\n\tpanelClass: 'lu-popup-panel',\n\tsize: 'M',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n};\n\nexport const luDefaultSidepanelConfig: LuModalConfig = {\n\t...luDefaultModalConfig,\n\tmode: 'sidepanel',\n\tposition: 'right',\n};\n","import { ChangeDetectionStrategy } from '@angular/core';\nimport { ILuPopupConfig } from '@lucca-front/ng/popup';\n\nexport type LuModalMode = 'modal' | 'sidepanel';\n\nexport interface LuModalClasses {\n\tpanel: string;\n\tpanelContainer: string;\n\tpanelInner: string;\n\toverlayPane?: string;\n}\n\nexport const luModalClasses: Record<LuModalMode, LuModalClasses> = {\n\tmodal: { panel: 'lu-modal-panel', panelInner: 'lu-modal-panel-inner', panelContainer: 'lu-modal-container' },\n\tsidepanel: { panel: 'lu-sidepanel-panel', panelInner: 'lu-sidepanel-panel-inner', overlayPane: 'mod-sidepanel', panelContainer: 'lu-sidepanel-container' },\n};\n\ntype LuModalModeWithPosition = { mode?: 'modal'; position: undefined | 'center' } | { mode: 'sidepanel'; position: 'left' | 'right' };\n\nexport type LuModalConfig = ILuPopupConfig &\n\tLuModalModeWithPosition & {\n\t\tchangeDetection: ChangeDetectionStrategy;\n\t};\n","export const Translations = {\n\ten: {\n\t\tsubmit: 'Ok',\n\t\tcancel: 'Cancel',\n\t\tclose: 'Close',\n\t},\n\tde: {\n\t\tsubmit: 'OK',\n\t\tcancel: 'Abbrechen',\n\t\tclose: 'Schließen',\n\t},\n\tfr: {\n\t\tsubmit: 'Ok',\n\t\tcancel: 'Annuler',\n\t\tclose: 'Fermer',\n\t},\n\tit: {\n\t\tsubmit: 'Ok',\n\t\tcancel: 'Annullare',\n\t\tclose: 'Chiudere',\n\t},\n\tnl: {\n\t\tsubmit: 'Oké',\n\t\tcancel: 'Annuleren',\n\t\tclose: 'Sluiten',\n\t},\n\t'nl-BE': {\n\t\tsubmit: 'Oké',\n\t\tcancel: 'Annuleren',\n\t\tclose: 'Sluiten',\n\t},\n\tes: {\n\t\tsubmit: 'Aceptar',\n\t\tcancel: 'Cancelar',\n\t\tclose: 'Cerrar',\n\t},\n\tpt: {\n\t\tsubmit: 'Ok',\n\t\tcancel: 'Cancelar',\n\t\tclose: 'Fechar',\n\t},\n};\n","import { InjectionToken } from '@angular/core';\nimport { LuTranslation } from '@lucca-front/ng/core';\nimport { Translations } from './translations';\n\nexport const LU_MODAL_TRANSLATIONS = new InjectionToken('LuModalTranslations', {\n\tfactory: () => luModalTranslations,\n});\n\nexport interface ILuModalLabel {\n\tsubmit: string;\n\tcancel: string;\n\tclose: string;\n}\n\nexport const luModalTranslations: LuTranslation<ILuModalLabel> = Translations;\n","import { ComponentType } from '@angular/cdk/portal';\nimport { ALuPopupRef, ILuPopupRef } from '@lucca-front/ng/popup';\nimport { LuModalClasses, luModalClasses, LuModalConfig, LuModalMode } from './modal-config.model';\nimport { ILuModalContent, LuModalContentResult } from './modal.model';\n\nexport interface ILuModalRef<D = unknown, R = unknown> extends ILuPopupRef<D, R> {\n\tmode: LuModalMode;\n\tmodalClasses: LuModalClasses;\n}\n\nexport interface IModalRefFactory {\n\tforge<T extends ILuModalContent, C extends LuModalConfig, D>(component: ComponentType<T>, config: C): ILuModalRef<D, LuModalContentResult<T>>;\n}\n\nexport abstract class ALuModalRef<T extends ILuModalContent = ILuModalContent, D = unknown, R = unknown, C extends LuModalConfig = LuModalConfig>\n\textends ALuPopupRef<T, D, R, C>\n\timplements ILuModalRef<D, R>\n{\n\tpublic get mode(): LuModalMode {\n\t\treturn this._config.mode || 'modal';\n\t}\n\n\tpublic get modalClasses(): LuModalClasses {\n\t\treturn luModalClasses[this.mode];\n\t}\n}\n","import { A11yModule } from '@angular/cdk/a11y';\nimport { AsyncPipe, NgClass } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, Directive, DoCheck, ElementRef, HostBinding, Injector, OnDestroy, Renderer2, Type, ViewChild, ViewContainerRef } from '@angular/core';\nimport { getIntl } from '@lucca-front/ng/core';\nimport { LuTooltipModule } from '@lucca-front/ng/tooltip';\nimport { Observable, ReplaySubject, Subject, Subscription, isObservable, of, timer } from 'rxjs';\nimport { delay, distinctUntilChanged, map, switchMap, tap } from 'rxjs/operators';\nimport { LuModalClasses } from './modal-config.model';\nimport { ALuModalRef } from './modal-ref.model';\nimport { ILuModalContent } from './modal.model';\nimport { LU_MODAL_TRANSLATIONS } from './modal.translate';\n\nlet modalId = 0;\n\n@Directive()\nexport abstract class ALuModalPanelComponent<T extends ILuModalContent> implements OnDestroy, DoCheck {\n\t@ViewChild('container', { read: ViewContainerRef, static: true })\n\tprotected _containerRef: ViewContainerRef;\n\tprotected _componentInstance: ILuModalContent;\n\tprotected doCheck$ = new ReplaySubject<void>(1);\n\n\tpublic intl = getIntl(LU_MODAL_TRANSLATIONS);\n\tprotected title$ = this.listenComponentValue(() => this._componentInstance.title);\n\tprotected submitLabel$ = this.listenComponentValue(() => this._componentInstance.submitLabel || this.intl.submit);\n\tprotected cancelLabel$ = this.listenComponentValue(() => this._componentInstance.cancelLabel || this.intl.cancel);\n\tprotected submitCounter$ = this.listenComponentValue(() => this._componentInstance.submitCounter);\n\tprotected submitDisabled$ = this.listenComponentValue(() => this._componentInstance.submitDisabled);\n\tprotected hasSubmitCounter$ = this.submitCounter$.pipe(map(Boolean));\n\n\tprotected closeLabel = this.intl.close;\n\n\tget isSubmitHidden() {\n\t\treturn !this._componentInstance.submitAction;\n\t}\n\tget submitPalette() {\n\t\treturn this._componentInstance.submitPalette || 'product';\n\t}\n\n\tsubmitClass$ = new Subject();\n\terror$ = new Subject();\n\n\tpublic readonly modalId = modalId++;\n\n\tprivate _subs = new Subscription();\n\tpublic modalClasses: LuModalClasses;\n\n\tconstructor(\n\t\tprotected _ref: ALuModalRef<T>,\n\t\t_elementRef: ElementRef<HTMLElement>,\n\t\t_renderer: Renderer2,\n\t) {\n\t\tthis.modalClasses = _ref.modalClasses;\n\t\t_renderer.addClass(_elementRef.nativeElement, this.modalClasses.panel);\n\t}\n\tngDoCheck(): void {\n\t\tthis.doCheck$.next();\n\t}\n\tattachInnerComponent(componentType: Type<T>, injector: Injector) {\n\t\tconst ref = this._containerRef.createComponent(componentType, { injector });\n\t\tthis._componentInstance = ref.instance;\n\t\treturn ref;\n\t}\n\tngOnDestroy() {\n\t\tthis.doCheck$.complete();\n\t\tthis._subs.unsubscribe();\n\t}\n\tdismiss() {\n\t\tthis._ref.dismiss();\n\t}\n\tsubmit() {\n\t\tthis.error$.next(undefined);\n\t\tthis.submitClass$.next('is-loading');\n\t\tconst result$ = this._componentInstance.submitAction();\n\t\tif (result$ instanceof Observable) {\n\t\t\tthis._subs.add(\n\t\t\t\tresult$\n\t\t\t\t\t.pipe(\n\t\t\t\t\t\ttap((_) => this.submitClass$.next('is-success')),\n\t\t\t\t\t\tdelay(500),\n\t\t\t\t\t)\n\t\t\t\t\t.subscribe({\n\t\t\t\t\t\tnext: (result) => this._ref.close(result),\n\t\t\t\t\t\terror: (err) => {\n\t\t\t\t\t\t\tthis.submitClass$.next('is-error');\n\t\t\t\t\t\t\tthis.error$.next(err);\n\t\t\t\t\t\t\ttimer(2000).subscribe((_) => {\n\t\t\t\t\t\t\t\tthis.submitClass$.next('');\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t},\n\t\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\t\tthis.submitClass$.next('');\n\t\t\t\t\t\t},\n\t\t\t\t\t}),\n\t\t\t);\n\t\t} else {\n\t\t\tthis._ref.close(result$);\n\t\t}\n\t}\n\n\tprivate listenComponentValue<TValue>(selector: () => TValue | Observable<TValue>): Observable<TValue> {\n\t\treturn this.doCheck$.pipe(\n\t\t\tmap(selector),\n\t\t\tdistinctUntilChanged(),\n\t\t\tswitchMap((value) => (isObservable(value) ? value : of(value))),\n\t\t);\n\t}\n}\n\nconst panelImports = [A11yModule, AsyncPipe, LuTooltipModule, NgClass];\n\n@Component({\n\tselector: 'lu-modal-panel',\n\tstandalone: true,\n\timports: panelImports,\n\ttemplateUrl: './modal-panel.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class LuModalPanelComponent<T extends ILuModalContent = ILuModalContent> extends ALuModalPanelComponent<T> {\n\t@HostBinding('class.lu-modal-panel') class = true;\n\tconstructor(_ref: ALuModalRef<T>, _elementRef: ElementRef<HTMLElement>, _renderer: Renderer2) {\n\t\tsuper(_ref, _elementRef, _renderer);\n\t}\n}\n@Component({\n\tselector: 'lu-modal-panel-default',\n\tstandalone: true,\n\timports: panelImports,\n\ttemplateUrl: './modal-panel.component.html',\n\tchangeDetection: ChangeDetectionStrategy.Default,\n})\nexport class LuModalPanelComponentDefaultCD<T extends ILuModalContent = ILuModalContent> extends ALuModalPanelComponent<T> {\n\t@HostBinding('class.lu-modal-panel') class = true;\n\tconstructor(_ref: ALuModalRef<T>, _elementRef: ElementRef<HTMLElement>, _renderer: Renderer2) {\n\t\tsuper(_ref, _elementRef, _renderer);\n\t}\n}\n","<div\n\tcdkTrapFocus=\"true\"\n\tcdkTrapFocusAutoCapture=\"true\"\n\trole=\"dialog\"\n\taria-modal=\"true\"\n\t[attr.aria-labelledby]=\"'luModalTitle' + modalId\"\n\t[class]=\"modalClasses.panelInner\"\n>\n\t<div [class]=\"modalClasses.panelContainer\" role=\"document\">\n\t\t<div class=\"lu-modal-header\" tabindex=\"-1\" cdkFocusInitial>\n\t\t\t<button type=\"button\" class=\"button mod-onlyIcon mod-ghost mod-S lu-modal-header-close\" (click)=\"dismiss()\" [luTooltip]=\"closeLabel\">\n\t\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon icon-signClose\"></span>\n\t\t\t\t<span class=\"pr-u-mask\">{{ closeLabel }}</span>\n\t\t\t</button>\n\t\t\t<h1 [attr.id]=\"'luModalTitle' + modalId\" class=\"lu-modal-header-title\">{{ title$ | async }}</h1>\n\t\t</div>\n\t\t<div class=\"lu-modal-content\">\n\t\t\t<ng-container #container />\n\t\t</div>\n\t\t<div class=\"lu-modal-footer\">\n\t\t\t@if (!isSubmitHidden) {\n\t\t\t\t<button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tclass=\"button palette-{{ submitPalette }}\"\n\t\t\t\t\t[ngClass]=\"submitClass$ | async\"\n\t\t\t\t\t[disabled]=\"submitDisabled$ | async\"\n\t\t\t\t\t(click)=\"submit()\"\n\t\t\t\t>\n\t\t\t\t\t{{ submitLabel$ | async }}\n\t\t\t\t\t@if (hasSubmitCounter$ | async) {\n\t\t\t\t\t\t<label class=\"numericBadge palette-product\">{{ submitCounter$ | async }}</label>\n\t\t\t\t\t}\n\t\t\t\t</button>\n\t\t\t}\n\t\t\t<button type=\"button\" class=\"button mod-ghost\" (click)=\"dismiss()\">{{ cancelLabel$ | async }}</button>\n\t\t</div>\n\t</div>\n</div>\n","import { InjectionToken } from '@angular/core';\nimport { luDefaultModalConfig } from './modal-config.default';\nimport { LuModalConfig } from './modal-config.model';\nimport { IModalRefFactory } from './modal-ref.model';\n\n/** Injection token that can be used to access the data that was passed in to a dialog. */\nexport const LU_MODAL_DATA = new InjectionToken<unknown>('LuModalData');\nexport const LU_MODAL_CONFIG = new InjectionToken<LuModalConfig>('LuModalDefaultConfig', {\n\tfactory: () => luDefaultModalConfig,\n});\nexport const LU_MODAL_REF_FACTORY = new InjectionToken<IModalRefFactory>('LuModalRefFactory');\n","import { ApplicationRef } from '@angular/core';\n\nexport function setAriaHiddenOnApplicationRoot(applicationRef: ApplicationRef, hidden: boolean): void {\n\tfor (const component of applicationRef.components) {\n\t\tconst nativeElement = component.location.nativeElement as unknown;\n\n\t\tif (nativeElement instanceof HTMLElement) {\n\t\t\tnativeElement.ariaHidden = hidden ? 'true' : undefined;\n\t\t}\n\t}\n}\n","import { ComponentType, Overlay } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { ApplicationRef, ChangeDetectionStrategy, ComponentRef, inject, Injectable, Injector } from '@angular/core';\nimport { ILuPopupRefFactory } from '@lucca-front/ng/popup';\nimport { LuModalConfig } from './modal-config.model';\nimport { ALuModalPanelComponent, LuModalPanelComponent, LuModalPanelComponentDefaultCD } from './modal-panel.component';\nimport { ALuModalRef, ILuModalRef } from './modal-ref.model';\nimport { ILuModalContent } from './modal.model';\nimport { LU_MODAL_DATA } from './modal.token';\nimport { setAriaHiddenOnApplicationRoot } from './modal.utils';\n\nclass LuModalRef<T extends ILuModalContent = ILuModalContent, D = unknown, R = unknown, C extends LuModalConfig = LuModalConfig> extends ALuModalRef<T, D, R, C> implements ILuModalRef<D, R> {\n\tprotected _containerRef: ComponentRef<ALuModalPanelComponent<T>>;\n\tconstructor(\n\t\tprotected override _overlay: Overlay,\n\t\tprotected override _injector: Injector,\n\t\tprotected override _component: ComponentType<T>,\n\t\tprotected override _config: C,\n\t\tprotected _applicationRef: ApplicationRef,\n\t) {\n\t\tsuper(_overlay, _injector, _component, _config);\n\t}\n\tprotected override _openPopup(data?: D) {\n\t\tconst injector = Injector.create({\n\t\t\tproviders: [\n\t\t\t\t{ provide: ALuModalRef, useValue: this },\n\t\t\t\t{ provide: LU_MODAL_DATA, useValue: data },\n\t\t\t],\n\t\t\tparent: this._injector,\n\t\t});\n\n\t\tconst containerPortal = new ComponentPortal<ALuModalPanelComponent<T>>(\n\t\t\tthis._config.changeDetection === ChangeDetectionStrategy.OnPush ? LuModalPanelComponent : LuModalPanelComponentDefaultCD,\n\t\t\tundefined,\n\t\t\tinjector,\n\t\t);\n\t\tthis._containerRef = this._overlayRef.attach<ALuModalPanelComponent<T>>(containerPortal);\n\t\tconst panel = this._containerRef.instance;\n\t\tthis._componentRef = panel.attachInnerComponent(this._component, injector);\n\t\tsetAriaHiddenOnApplicationRoot(this._applicationRef, true);\n\t}\n\tprotected override _closePopup() {\n\t\tthis._componentRef.destroy();\n\t\tthis._containerRef.destroy();\n\t\tsetAriaHiddenOnApplicationRoot(this._applicationRef, false);\n\t}\n\n\tprotected override _getOverlayPanelClasses(): string[] {\n\t\tconst classes = super._getOverlayPanelClasses();\n\n\t\tif (this.modalClasses.overlayPane) {\n\t\t\tclasses.push(this.modalClasses.overlayPane);\n\t\t}\n\n\t\treturn classes;\n\t}\n}\n\n@Injectable()\nexport class LuModalRefFactory implements ILuPopupRefFactory<ILuModalContent, LuModalConfig> {\n\tprotected _applicationRef = inject(ApplicationRef);\n\n\tconstructor(\n\t\tprotected _overlay: Overlay,\n\t\tprotected _injector: Injector,\n\t) {}\n\tforge<T extends ILuModalContent, C extends LuModalConfig, D, R>(component: ComponentType<T>, config: C) {\n\t\treturn new LuModalRef<T, D, R>(this._overlay, this._injector, component, config, this._applicationRef);\n\t}\n}\n","import { Observable, of } from 'rxjs';\nimport { LuModalClasses, LuModalMode } from '../modal-config.model';\nimport { ILuModalRef } from '../modal-ref.model';\nimport { ILuModalContent, LuModalContentResult } from '../modal.model';\nimport { LuDialogRef } from '@lucca-front/ng/dialog';\nimport { map } from 'rxjs/operators';\nimport { DialogContentAdapterComponent } from './dialog-content-adapter/dialog-content-adapter.component';\n\nexport class DialogRefAdapter<D, T extends ILuModalContent> implements ILuModalRef<D, LuModalContentResult<T>> {\n\tmode: LuModalMode;\n\tmodalClasses: LuModalClasses;\n\n\tonOpen: Observable<D> = of(this.dialogRef.instance.dialogData.data);\n\tonClose: Observable<LuModalContentResult<T>> = this.dialogRef.result$ as Observable<LuModalContentResult<T>>;\n\tonDismiss: Observable<void> = this.dialogRef.dismissed$;\n\tonBackdropClick: Observable<void> = this.dialogRef.cdkRef.backdropClick.pipe(map(() => {}));\n\n\tconstructor(private readonly dialogRef: LuDialogRef<DialogContentAdapterComponent<D, T>>) {}\n\n\topen(): void {}\n\n\tclose(result: LuModalContentResult<T>): void {\n\t\tthis.dialogRef.close(result);\n\t}\n\n\tdismiss(): void {\n\t\tthis.dialogRef.dismiss();\n\t}\n}\n","import { ComponentType } from '@angular/cdk/overlay';\nimport { AsyncPipe } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, DestroyRef, DoCheck, inject, Injector, OnInit, signal, ViewChild, ViewContainerRef, ViewEncapsulation } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ButtonComponent } from '@lucca-front/ng/button';\nimport { getIntl, Palette } from '@lucca-front/ng/core';\nimport { DialogComponent, DialogContentComponent, DialogFooterComponent, DialogHeaderComponent, injectDialogData, injectDialogRef } from '@lucca-front/ng/dialog';\nimport { NumericBadgeComponent } from '@lucca-front/ng/numeric-badge';\nimport { isObservable, Observable, of, ReplaySubject, Subject } from 'rxjs';\nimport { delay, distinctUntilChanged, map, switchMap, tap } from 'rxjs/operators';\nimport { ALuModalRef } from '../../modal-ref.model';\nimport { ILuModalContent, LuModalContentResult } from '../../modal.model';\nimport { LU_MODAL_DATA } from '../../modal.token';\nimport { LU_MODAL_TRANSLATIONS } from '../../modal.translate';\n\ninterface AdapterData<D, C> {\n\tcomponent: ComponentType<C>;\n\tdata: D;\n}\n\n@Component({\n\tselector: 'lu-dialog-content-adapter',\n\tstandalone: true,\n\ttemplateUrl: './dialog-content-adapter.component.html',\n\tchangeDetection: ChangeDetectionStrategy.Default,\n\tencapsulation: ViewEncapsulation.None,\n\timports: [DialogComponent, DialogHeaderComponent, DialogContentComponent, DialogFooterComponent, AsyncPipe, ButtonComponent, NumericBadgeComponent],\n})\nexport class DialogContentAdapterComponent<D, C extends ILuModalContent> implements OnInit, DoCheck {\n\t#destroyRef = inject(DestroyRef);\n\n\t@ViewChild('contentProjectionRef', { read: ViewContainerRef, static: true })\n\tcontentProjectionRef: ViewContainerRef;\n\n\t#contentComponentInstance: C;\n\n\t#injector = inject(Injector);\n\n\tdialogData = injectDialogData<AdapterData<D, C>>();\n\n\tref = injectDialogRef<LuModalContentResult<C>>();\n\n\tsubmitClass = signal('');\n\terror$ = new Subject();\n\n\tprotected doCheck$ = new ReplaySubject<void>(1);\n\n\tpublic intl = getIntl(LU_MODAL_TRANSLATIONS);\n\tprotected title$ = this.observeValue(() => this.#contentComponentInstance.title);\n\tprotected submitLabel$ = this.observeValue(() => this.#contentComponentInstance.submitLabel || this.intl.submit);\n\tprotected cancelLabel$ = this.observeValue(() => this.#contentComponentInstance.cancelLabel || this.intl.cancel);\n\tprotected submitCounter$ = this.observeValue(() => this.#contentComponentInstance.submitCounter);\n\tprotected submitDisabled$ = this.observeValue(() => this.#contentComponentInstance.submitDisabled);\n\tprotected hasSubmitCounter$ = this.submitCounter$.pipe(map(Boolean));\n\tprotected hasSubmit$ = this.observeValue(() => this.#contentComponentInstance.submitAction).pipe(map(Boolean));\n\n\tget submitPalette() {\n\t\treturn (this.#contentComponentInstance.submitPalette || 'product') as Palette;\n\t}\n\n\tprivate observeValue<TValue>(selector: () => TValue | Observable<TValue>): Observable<TValue> {\n\t\treturn this.doCheck$.pipe(\n\t\t\ttakeUntilDestroyed(this.#destroyRef),\n\t\t\tmap(selector),\n\t\t\tdistinctUntilChanged(),\n\t\t\tswitchMap((value) => (isObservable(value) ? value : of(value))),\n\t\t);\n\t}\n\n\tsubmit(): void {\n\t\tthis.error$.next(undefined);\n\t\tthis.submitClass.set('is-loading');\n\t\tif (this.#contentComponentInstance.submitAction) {\n\t\t\tconst result$ = this.#contentComponentInstance.submitAction();\n\t\t\tif (isObservable(result$)) {\n\t\t\t\tresult$\n\t\t\t\t\t.pipe(\n\t\t\t\t\t\ttap(() => this.submitClass.set('is-success')),\n\t\t\t\t\t\tdelay(500),\n\t\t\t\t\t\ttakeUntilDestroyed(this.#destroyRef),\n\t\t\t\t\t)\n\t\t\t\t\t.subscribe({\n\t\t\t\t\t\tnext: (res) => this.ref.close(res as LuModalContentResult<C>),\n\t\t\t\t\t\terror: (err) => {\n\t\t\t\t\t\t\tthis.submitClass.set('is-error');\n\t\t\t\t\t\t\tthis.error$.next(err);\n\t\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\t\tthis.submitClass.set('');\n\t\t\t\t\t\t\t}, 2000);\n\t\t\t\t\t\t},\n\t\t\t\t\t\tcomplete: () => this.submitClass.set(''),\n\t\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tthis.ref.close(result$ as LuModalContentResult<C>);\n\t\t\t}\n\t\t} else {\n\t\t\tthis.ref.close(undefined);\n\t\t}\n\t}\n\n\tdismiss(): void {\n\t\tthis.ref.dismiss();\n\t}\n\n\tclose(res: LuModalContentResult<C>): void {\n\t\tthis.ref.close(res);\n\t}\n\n\tngDoCheck(): void {\n\t\tthis.doCheck$.next();\n\t}\n\n\tngOnInit(): void {\n\t\tconst injector = Injector.create({\n\t\t\tproviders: [\n\t\t\t\t{ provide: ALuModalRef, useValue: this },\n\t\t\t\t{ provide: LU_MODAL_DATA, useValue: this.dialogData.data },\n\t\t\t],\n\t\t\tparent: this.#injector,\n\t\t});\n\t\tthis.#contentComponentInstance = this.contentProjectionRef.createComponent(this.dialogData.component, {\n\t\t\tinjector,\n\t\t}).instance;\n\t}\n}\n","<lu-dialog>\n\t<lu-dialog-header\n\t\t><h1>{{ title$ | async }}</h1></lu-dialog-header\n\t>\n\t<lu-dialog-content>\n\t\t<ng-container #contentProjectionRef />\n\t</lu-dialog-content>\n\t<lu-dialog-footer>\n\t\t<div class=\"footer-actions\">\n\t\t\t@if (hasSubmit$ | async) {\n\t\t\t\t<button\n\t\t\t\t\tluButton\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t[palette]=\"submitPalette\"\n\t\t\t\t\t[disabled]=\"submitDisabled$ | async\"\n\t\t\t\t\t[class]=\"submitClass()\"\n\t\t\t\t\t(click)=\"submit()\"\n\t\t\t\t>\n\t\t\t\t\t{{ submitLabel$ | async }}\n\t\t\t\t\t@if (hasSubmitCounter$ | async) {\n\t\t\t\t\t\t<lu-numeric-badge disableTooltip palette=\"product\" [value]=\"submitCounter$ | async\" />\n\t\t\t\t\t}\n\t\t\t\t</button>\n\t\t\t}\n\t\t\t<button luButton type=\"button\" class=\"button mod-ghost\" (click)=\"dismiss()\">{{ cancelLabel$ | async }}</button>\n\t\t</div>\n\t</lu-dialog-footer>\n</lu-dialog>\n","import { ComponentType } from '@angular/cdk/portal';\nimport { inject, Injectable } from '@angular/core';\nimport { LuModalConfig } from './modal-config.model';\nimport { ILuModalRef } from './modal-ref.model';\nimport { ILuModalContent, LuModalContentResult } from './modal.model';\nimport { LU_MODAL_CONFIG, LU_MODAL_REF_FACTORY } from './modal.token';\nimport { LuDialogConfig, LuDialogService } from '@lucca-front/ng/dialog';\nimport { DialogRefAdapter } from './dialog-adapter/dialog-ref-adapter';\nimport { DialogContentAdapterComponent } from './dialog-adapter/dialog-content-adapter/dialog-content-adapter.component';\n\n@Injectable()\nexport class LuModal {\n\tprotected _factory = inject(LU_MODAL_REF_FACTORY);\n\tprotected _config = inject(LU_MODAL_CONFIG);\n\tprotected luDialogService = inject(LuDialogService);\n\n\topen<T extends ILuModalContent, D>(component: ComponentType<T>, data: D = undefined, config: Partial<LuModalConfig> = {}): ILuModalRef<D, LuModalContentResult<T>> {\n\t\tconst extendedConfig = { ...this._config, ...config } as LuModalConfig;\n\t\tconst mode = extendedConfig.mode === 'sidepanel' ? 'drawer' : 'default';\n\t\tconst dialogRef = this.luDialogService.open({\n\t\t\tcontent: DialogContentAdapterComponent<D, T>,\n\t\t\tdata: {\n\t\t\t\tcomponent: component,\n\t\t\t\tdata,\n\t\t\t},\n\t\t\tmodal: !extendedConfig.noBackdrop,\n\t\t\talert: extendedConfig.undismissable,\n\t\t\tsize: extendedConfig.size as LuDialogConfig<unknown>['size'],\n\t\t\tmode,\n\t\t\tpanelClasses: Array.isArray(extendedConfig.panelClass) ? extendedConfig.panelClass : [extendedConfig.panelClass],\n\t\t});\n\t\treturn new DialogRefAdapter<D, T>(dialogRef);\n\t}\n\n\tlegacyOpen<T extends ILuModalContent, D>(component: ComponentType<T>, data: D = undefined, config: Partial<LuModalConfig> = {}): ILuModalRef<D, LuModalContentResult<T>> {\n\t\tconst extendedConfig = { ...this._config, ...config } as LuModalConfig;\n\t\tconst ref = this._factory.forge<T, LuModalConfig, D>(component, extendedConfig);\n\t\tref.open(data);\n\t\treturn ref;\n\t}\n}\n","import { OverlayModule } from '@angular/cdk/overlay';\nimport { NgModule, Provider } from '@angular/core';\nimport { LuModalRefFactory } from './modal-ref.factory';\nimport { LuModal } from './modal.service';\nimport { LU_MODAL_REF_FACTORY } from './modal.token';\nimport { LuDialogService } from '@lucca-front/ng/dialog';\nimport { DialogModule } from '@angular/cdk/dialog';\n\n/**\n * Provide LuModal.\n * Note that OverlayModule should be imported in one of the EnvironmentInjectors (AppModule, lazy-loaded route) using `providers: [importProvidersFrom(OverlayModule)]`.\n */\nexport function provideLuModal(): Provider[] {\n\treturn [LuModal, { provide: LU_MODAL_REF_FACTORY, useClass: LuModalRefFactory }, LuDialogService];\n}\n\n@NgModule({\n\timports: [OverlayModule, DialogModule],\n\tproviders: [provideLuModal(), LuDialogService],\n})\nexport class LuModalModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.ALuModalRef"],"mappings":";;;;;;;;;;;;;;;;;;;;AAGO,MAAM,oBAAoB,GAAkB;AAClD,IAAA,IAAI,EAAE,OAAO;AACb,IAAA,QAAQ,EAAE,QAAQ;AAClB,IAAA,UAAU,EAAE,KAAK;AACjB,IAAA,aAAa,EAAE,KAAK;AACpB,IAAA,aAAa,EAAE,CAAC,2BAA2B,EAAE,mBAAmB,CAAC;AACjE,IAAA,UAAU,EAAE,gBAAgB;AAC5B,IAAA,IAAI,EAAE,GAAG;IACT,eAAe,EAAE,uBAAuB,CAAC,MAAM;;AAGzC,MAAM,wBAAwB,GAAkB;AACtD,IAAA,GAAG,oBAAoB;AACvB,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,QAAQ,EAAE,OAAO;;;ACLX,MAAM,cAAc,GAAwC;AAClE,IAAA,KAAK,EAAE,EAAE,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,sBAAsB,EAAE,cAAc,EAAE,oBAAoB,EAAE;AAC5G,IAAA,SAAS,EAAE,EAAE,KAAK,EAAE,oBAAoB,EAAE,UAAU,EAAE,0BAA0B,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,wBAAwB,EAAE;;;ACdpJ,MAAM,YAAY,GAAG;AAC3B,IAAA,EAAE,EAAE;AACH,QAAA,MAAM,EAAE,IAAI;AACZ,QAAA,MAAM,EAAE,QAAQ;AAChB,QAAA,KAAK,EAA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,IAAI,CAAC;AACd,QAAA,OAAO,GAAG;IACX;+GA5BY,OAAO,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;mHAAP,OAAO,EAAA,CAAA,CAAA;;4FAAP,OAAO,EAAA,UAAA,EAAA,CAAA;kBADnB;;;ACFD;;;AAGG;SACa,cAAc,GAAA;AAC7B,IAAA,OAAO,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,iBAAiB,EAAE,EAAE,eAAe,CAAC;AAClG;MAMa,aAAa,CAAA;+GAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAb,aAAa,EAAA,OAAA,EAAA,CAHf,aAAa,EAAE,YAAY,CAAA,EAAA,CAAA,CAAA;gHAGzB,aAAa,EAAA,SAAA,EAFd,CAAC,cAAc,EAAE,EAAE,eAAe,CAAC,EAAA,OAAA,EAAA,CADpC,aAAa,EAAE,YAAY,CAAA,EAAA,CAAA,CAAA;;4FAGzB,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,OAAO,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC;AACtC,oBAAA,SAAS,EAAE,CAAC,cAAc,EAAE,EAAE,eAAe,CAAC;AAC9C,iBAAA;;;ACnBD;;AAEG;;;;"}
1
+ {"version":3,"file":"lucca-front-ng-modal.mjs","sources":["../../../packages/ng/modal/modal-config.default.ts","../../../packages/ng/modal/modal-config.model.ts","../../../packages/ng/modal/translations.ts","../../../packages/ng/modal/modal.translate.ts","../../../packages/ng/modal/modal-ref.model.ts","../../../packages/ng/modal/modal-panel.component.ts","../../../packages/ng/modal/modal-panel.component.html","../../../packages/ng/modal/modal.token.ts","../../../packages/ng/modal/modal.utils.ts","../../../packages/ng/modal/modal-ref.factory.ts","../../../packages/ng/modal/dialog-adapter/dialog-ref-adapter.ts","../../../packages/ng/modal/dialog-adapter/dialog-content-adapter/dialog-content-adapter.component.ts","../../../packages/ng/modal/dialog-adapter/dialog-content-adapter/dialog-content-adapter.component.html","../../../packages/ng/modal/modal.service.ts","../../../packages/ng/modal/modal.module.ts","../../../packages/ng/modal/lucca-front-ng-modal.ts"],"sourcesContent":["import { ChangeDetectionStrategy } from '@angular/core';\nimport { LuModalConfig } from './modal-config.model';\n\nexport const luDefaultModalConfig: LuModalConfig = {\n\tmode: 'modal',\n\tposition: 'center',\n\tnoBackdrop: false,\n\tundismissable: false,\n\tbackdropClass: ['cdk-overlay-dark-backdrop', 'lu-popup-backdrop'],\n\tpanelClass: 'lu-popup-panel',\n\tsize: 'M',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n};\n\nexport const luDefaultSidepanelConfig: LuModalConfig = {\n\t...luDefaultModalConfig,\n\tmode: 'sidepanel',\n\tposition: 'right',\n};\n","import { ChangeDetectionStrategy } from '@angular/core';\nimport { ILuPopupConfig } from '@lucca-front/ng/popup';\n\nexport type LuModalMode = 'modal' | 'sidepanel';\n\nexport interface LuModalClasses {\n\tpanel: string;\n\tpanelContainer: string;\n\tpanelInner: string;\n\toverlayPane?: string;\n}\n\nexport const luModalClasses: Record<LuModalMode, LuModalClasses> = {\n\tmodal: { panel: 'lu-modal-panel', panelInner: 'lu-modal-panel-inner', panelContainer: 'lu-modal-container' },\n\tsidepanel: { panel: 'lu-sidepanel-panel', panelInner: 'lu-sidepanel-panel-inner', overlayPane: 'mod-sidepanel', panelContainer: 'lu-sidepanel-container' },\n};\n\ntype LuModalModeWithPosition = { mode?: 'modal'; position: undefined | 'center' } | { mode: 'sidepanel'; position: 'left' | 'right' };\n\nexport type LuModalConfig = ILuPopupConfig &\n\tLuModalModeWithPosition & {\n\t\tchangeDetection: ChangeDetectionStrategy;\n\t};\n","export const Translations = {\n\t'nl-BE': {\n\t\tsubmit: 'Oké',\n\t\tcancel: 'Annuleren',\n\t\tclose: 'Sluiten',\n\t},\n\tnl: {\n\t\tsubmit: 'Oké',\n\t\tcancel: 'Annuleren',\n\t\tclose: 'Sluiten',\n\t},\n\tit: {\n\t\tsubmit: 'Ok',\n\t\tcancel: 'Annullare',\n\t\tclose: 'Chiudere',\n\t},\n\tfr: {\n\t\tsubmit: 'Ok',\n\t\tcancel: 'Annuler',\n\t\tclose: 'Fermer',\n\t},\n\tpt: {\n\t\tsubmit: 'Ok',\n\t\tcancel: 'Cancelar',\n\t\tclose: 'Fechar',\n\t},\n\tes: {\n\t\tsubmit: 'Aceptar',\n\t\tcancel: 'Cancelar',\n\t\tclose: 'Cerrar',\n\t},\n\tde: {\n\t\tsubmit: 'OK',\n\t\tcancel: 'Abbrechen',\n\t\tclose: 'Schließen',\n\t},\n\ten: {\n\t\tsubmit: 'Ok',\n\t\tcancel: 'Cancel',\n\t\tclose: 'Close',\n\t},\n};\n","import { InjectionToken } from '@angular/core';\nimport { LuTranslation } from '@lucca-front/ng/core';\nimport { Translations } from './translations';\n\nexport const LU_MODAL_TRANSLATIONS = new InjectionToken('LuModalTranslations', {\n\tfactory: () => luModalTranslations,\n});\n\nexport interface ILuModalLabel {\n\tsubmit: string;\n\tcancel: string;\n\tclose: string;\n}\n\nexport const luModalTranslations: LuTranslation<ILuModalLabel> = Translations;\n","import { ComponentType } from '@angular/cdk/portal';\nimport { ALuPopupRef, ILuPopupRef } from '@lucca-front/ng/popup';\nimport { LuModalClasses, luModalClasses, LuModalConfig, LuModalMode } from './modal-config.model';\nimport { ILuModalContent, LuModalContentResult } from './modal.model';\n\nexport interface ILuModalRef<D = unknown, R = unknown> extends ILuPopupRef<D, R> {\n\tmode: LuModalMode;\n\tmodalClasses: LuModalClasses;\n}\n\nexport interface IModalRefFactory {\n\tforge<T extends ILuModalContent, C extends LuModalConfig, D>(component: ComponentType<T>, config: C): ILuModalRef<D, LuModalContentResult<T>>;\n}\n\nexport abstract class ALuModalRef<T extends ILuModalContent = ILuModalContent, D = unknown, R = unknown, C extends LuModalConfig = LuModalConfig>\n\textends ALuPopupRef<T, D, R, C>\n\timplements ILuModalRef<D, R>\n{\n\tpublic get mode(): LuModalMode {\n\t\treturn this._config.mode || 'modal';\n\t}\n\n\tpublic get modalClasses(): LuModalClasses {\n\t\treturn luModalClasses[this.mode];\n\t}\n}\n","import { A11yModule } from '@angular/cdk/a11y';\nimport { AsyncPipe, NgClass } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, Directive, DoCheck, ElementRef, Injector, OnDestroy, Renderer2, Type, ViewChild, ViewContainerRef } from '@angular/core';\nimport { getIntl } from '@lucca-front/ng/core';\nimport { LuTooltipModule } from '@lucca-front/ng/tooltip';\nimport { Observable, ReplaySubject, Subject, Subscription, isObservable, of, timer } from 'rxjs';\nimport { delay, distinctUntilChanged, map, switchMap, tap } from 'rxjs/operators';\nimport { LuModalClasses } from './modal-config.model';\nimport { ALuModalRef } from './modal-ref.model';\nimport { ILuModalContent } from './modal.model';\nimport { LU_MODAL_TRANSLATIONS } from './modal.translate';\n\nlet modalId = 0;\n\n@Directive()\nexport abstract class ALuModalPanelComponent<T extends ILuModalContent> implements OnDestroy, DoCheck {\n\t@ViewChild('container', { read: ViewContainerRef, static: true })\n\tprotected _containerRef: ViewContainerRef;\n\tprotected _componentInstance: ILuModalContent;\n\tprotected doCheck$ = new ReplaySubject<void>(1);\n\n\tpublic intl = getIntl(LU_MODAL_TRANSLATIONS);\n\tprotected title$ = this.listenComponentValue(() => this._componentInstance.title);\n\tprotected submitLabel$ = this.listenComponentValue(() => this._componentInstance.submitLabel || this.intl.submit);\n\tprotected cancelLabel$ = this.listenComponentValue(() => this._componentInstance.cancelLabel || this.intl.cancel);\n\tprotected submitCounter$ = this.listenComponentValue(() => this._componentInstance.submitCounter);\n\tprotected submitDisabled$ = this.listenComponentValue(() => this._componentInstance.submitDisabled);\n\tprotected hasSubmitCounter$ = this.submitCounter$.pipe(map(Boolean));\n\n\tprotected closeLabel = this.intl.close;\n\n\tget isSubmitHidden() {\n\t\treturn !this._componentInstance.submitAction;\n\t}\n\tget submitPalette() {\n\t\treturn this._componentInstance.submitPalette || 'product';\n\t}\n\n\tsubmitClass$ = new Subject();\n\terror$ = new Subject();\n\n\tpublic readonly modalId = modalId++;\n\n\tprivate _subs = new Subscription();\n\tpublic modalClasses: LuModalClasses;\n\n\tconstructor(\n\t\tprotected _ref: ALuModalRef<T>,\n\t\t_elementRef: ElementRef<HTMLElement>,\n\t\t_renderer: Renderer2,\n\t) {\n\t\tthis.modalClasses = _ref.modalClasses;\n\t\t_renderer.addClass(_elementRef.nativeElement, this.modalClasses.panel);\n\t}\n\tngDoCheck(): void {\n\t\tthis.doCheck$.next();\n\t}\n\tattachInnerComponent(componentType: Type<T>, injector: Injector) {\n\t\tconst ref = this._containerRef.createComponent(componentType, { injector });\n\t\tthis._componentInstance = ref.instance;\n\t\treturn ref;\n\t}\n\tngOnDestroy() {\n\t\tthis.doCheck$.complete();\n\t\tthis._subs.unsubscribe();\n\t}\n\tdismiss() {\n\t\tthis._ref.dismiss();\n\t}\n\tsubmit() {\n\t\tthis.error$.next(undefined);\n\t\tthis.submitClass$.next('is-loading');\n\t\tconst result$ = this._componentInstance.submitAction();\n\t\tif (result$ instanceof Observable) {\n\t\t\tthis._subs.add(\n\t\t\t\tresult$\n\t\t\t\t\t.pipe(\n\t\t\t\t\t\ttap((_) => this.submitClass$.next('is-success')),\n\t\t\t\t\t\tdelay(500),\n\t\t\t\t\t)\n\t\t\t\t\t.subscribe({\n\t\t\t\t\t\tnext: (result) => this._ref.close(result),\n\t\t\t\t\t\terror: (err) => {\n\t\t\t\t\t\t\tthis.submitClass$.next('is-error');\n\t\t\t\t\t\t\tthis.error$.next(err);\n\t\t\t\t\t\t\ttimer(2000).subscribe((_) => {\n\t\t\t\t\t\t\t\tthis.submitClass$.next('');\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t},\n\t\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\t\tthis.submitClass$.next('');\n\t\t\t\t\t\t},\n\t\t\t\t\t}),\n\t\t\t);\n\t\t} else {\n\t\t\tthis._ref.close(result$);\n\t\t}\n\t}\n\n\tprivate listenComponentValue<TValue>(selector: () => TValue | Observable<TValue>): Observable<TValue> {\n\t\treturn this.doCheck$.pipe(\n\t\t\tmap(selector),\n\t\t\tdistinctUntilChanged(),\n\t\t\tswitchMap((value) => (isObservable(value) ? value : of(value))),\n\t\t);\n\t}\n}\n\nconst panelImports = [A11yModule, AsyncPipe, LuTooltipModule, NgClass];\n\n@Component({\n\tselector: 'lu-modal-panel',\n\timports: panelImports,\n\ttemplateUrl: './modal-panel.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: { class: 'lu-modal-panel' },\n})\nexport class LuModalPanelComponent<T extends ILuModalContent = ILuModalContent> extends ALuModalPanelComponent<T> {\n\tconstructor(_ref: ALuModalRef<T>, _elementRef: ElementRef<HTMLElement>, _renderer: Renderer2) {\n\t\tsuper(_ref, _elementRef, _renderer);\n\t}\n}\n@Component({\n\tselector: 'lu-modal-panel-default',\n\timports: panelImports,\n\ttemplateUrl: './modal-panel.component.html',\n\t// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection\n\tchangeDetection: ChangeDetectionStrategy.Default,\n\thost: { class: 'lu-modal-panel' },\n})\nexport class LuModalPanelComponentDefaultCD<T extends ILuModalContent = ILuModalContent> extends ALuModalPanelComponent<T> {\n\tconstructor(_ref: ALuModalRef<T>, _elementRef: ElementRef<HTMLElement>, _renderer: Renderer2) {\n\t\tsuper(_ref, _elementRef, _renderer);\n\t}\n}\n","<div\n\tcdkTrapFocus=\"true\"\n\tcdkTrapFocusAutoCapture=\"true\"\n\trole=\"dialog\"\n\taria-modal=\"true\"\n\t[attr.aria-labelledby]=\"'luModalTitle' + modalId\"\n\t[class]=\"modalClasses.panelInner\"\n>\n\t<div [class]=\"modalClasses.panelContainer\" role=\"document\">\n\t\t<div class=\"lu-modal-header\" tabindex=\"-1\" cdkFocusInitial>\n\t\t\t<button type=\"button\" class=\"button mod-onlyIcon mod-ghost mod-S lu-modal-header-close\" (click)=\"dismiss()\" [luTooltip]=\"closeLabel\">\n\t\t\t\t<span aria-hidden=\"true\" class=\"lucca-icon icon-signClose\"></span>\n\t\t\t\t<span class=\"pr-u-mask\">{{ closeLabel }}</span>\n\t\t\t</button>\n\t\t\t<h1 [attr.id]=\"'luModalTitle' + modalId\" class=\"lu-modal-header-title\">{{ title$ | async }}</h1>\n\t\t</div>\n\t\t<div class=\"lu-modal-content\">\n\t\t\t<ng-container #container />\n\t\t</div>\n\t\t<div class=\"lu-modal-footer\">\n\t\t\t@if (!isSubmitHidden) {\n\t\t\t\t<button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tclass=\"button palette-{{ submitPalette }}\"\n\t\t\t\t\t[ngClass]=\"submitClass$ | async\"\n\t\t\t\t\t[disabled]=\"submitDisabled$ | async\"\n\t\t\t\t\t(click)=\"submit()\"\n\t\t\t\t>\n\t\t\t\t\t{{ submitLabel$ | async }}\n\t\t\t\t\t@if (hasSubmitCounter$ | async) {\n\t\t\t\t\t\t<label class=\"numericBadge palette-product\">{{ submitCounter$ | async }}</label>\n\t\t\t\t\t}\n\t\t\t\t</button>\n\t\t\t}\n\t\t\t<button type=\"button\" class=\"button mod-ghost\" (click)=\"dismiss()\">{{ cancelLabel$ | async }}</button>\n\t\t</div>\n\t</div>\n</div>\n","import { InjectionToken } from '@angular/core';\nimport { luDefaultModalConfig } from './modal-config.default';\nimport { LuModalConfig } from './modal-config.model';\nimport { IModalRefFactory } from './modal-ref.model';\n\n/** Injection token that can be used to access the data that was passed in to a dialog. */\nexport const LU_MODAL_DATA = new InjectionToken<unknown>('LuModalData');\nexport const LU_MODAL_CONFIG = new InjectionToken<LuModalConfig>('LuModalDefaultConfig', {\n\tfactory: () => luDefaultModalConfig,\n});\nexport const LU_MODAL_REF_FACTORY = new InjectionToken<IModalRefFactory>('LuModalRefFactory');\n","import { ApplicationRef } from '@angular/core';\n\nexport function setAriaHiddenOnApplicationRoot(applicationRef: ApplicationRef, hidden: boolean): void {\n\tfor (const component of applicationRef.components) {\n\t\tconst nativeElement = component.location.nativeElement as unknown;\n\n\t\tif (nativeElement instanceof HTMLElement) {\n\t\t\tnativeElement.ariaHidden = hidden ? 'true' : undefined;\n\t\t}\n\t}\n}\n","import { ComponentType, Overlay } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { ApplicationRef, ChangeDetectionStrategy, ComponentRef, inject, Injectable, Injector } from '@angular/core';\nimport { ILuPopupRefFactory } from '@lucca-front/ng/popup';\nimport { LuModalConfig } from './modal-config.model';\nimport { ALuModalPanelComponent, LuModalPanelComponent, LuModalPanelComponentDefaultCD } from './modal-panel.component';\nimport { ALuModalRef, ILuModalRef } from './modal-ref.model';\nimport { ILuModalContent } from './modal.model';\nimport { LU_MODAL_DATA } from './modal.token';\nimport { setAriaHiddenOnApplicationRoot } from './modal.utils';\n\nclass LuModalRef<T extends ILuModalContent = ILuModalContent, D = unknown, R = unknown, C extends LuModalConfig = LuModalConfig> extends ALuModalRef<T, D, R, C> implements ILuModalRef<D, R> {\n\tprotected _containerRef: ComponentRef<ALuModalPanelComponent<T>>;\n\tconstructor(\n\t\tprotected override _overlay: Overlay,\n\t\tprotected override _injector: Injector,\n\t\tprotected override _component: ComponentType<T>,\n\t\tprotected override _config: C,\n\t\tprotected _applicationRef: ApplicationRef,\n\t) {\n\t\tsuper(_overlay, _injector, _component, _config);\n\t}\n\tprotected override _openPopup(data?: D) {\n\t\tconst injector = Injector.create({\n\t\t\tproviders: [\n\t\t\t\t{ provide: ALuModalRef, useValue: this },\n\t\t\t\t{ provide: LU_MODAL_DATA, useValue: data },\n\t\t\t],\n\t\t\tparent: this._injector,\n\t\t});\n\n\t\tconst containerPortal = new ComponentPortal<ALuModalPanelComponent<T>>(\n\t\t\tthis._config.changeDetection === ChangeDetectionStrategy.OnPush ? LuModalPanelComponent : LuModalPanelComponentDefaultCD,\n\t\t\tundefined,\n\t\t\tinjector,\n\t\t);\n\t\tthis._containerRef = this._overlayRef.attach<ALuModalPanelComponent<T>>(containerPortal);\n\t\tconst panel = this._containerRef.instance;\n\t\tthis._componentRef = panel.attachInnerComponent(this._component, injector);\n\t\tsetAriaHiddenOnApplicationRoot(this._applicationRef, true);\n\t}\n\tprotected override _closePopup() {\n\t\tthis._componentRef.destroy();\n\t\tthis._containerRef.destroy();\n\t\tsetAriaHiddenOnApplicationRoot(this._applicationRef, false);\n\t}\n\n\tprotected override _getOverlayPanelClasses(): string[] {\n\t\tconst classes = super._getOverlayPanelClasses();\n\n\t\tif (this.modalClasses.overlayPane) {\n\t\t\tclasses.push(this.modalClasses.overlayPane);\n\t\t}\n\n\t\treturn classes;\n\t}\n}\n\n@Injectable()\nexport class LuModalRefFactory implements ILuPopupRefFactory<ILuModalContent, LuModalConfig> {\n\tprotected _applicationRef = inject(ApplicationRef);\n\n\tconstructor(\n\t\tprotected _overlay: Overlay,\n\t\tprotected _injector: Injector,\n\t) {}\n\tforge<T extends ILuModalContent, C extends LuModalConfig, D, R>(component: ComponentType<T>, config: C) {\n\t\treturn new LuModalRef<T, D, R>(this._overlay, this._injector, component, config, this._applicationRef);\n\t}\n}\n","import { Observable, of } from 'rxjs';\nimport { LuModalClasses, LuModalMode } from '../modal-config.model';\nimport { ILuModalRef } from '../modal-ref.model';\nimport { ILuModalContent, LuModalContentResult } from '../modal.model';\nimport { LuDialogRef } from '@lucca-front/ng/dialog';\nimport { map } from 'rxjs/operators';\nimport { DialogContentAdapterComponent } from './dialog-content-adapter/dialog-content-adapter.component';\n\nexport class DialogRefAdapter<D, T extends ILuModalContent> implements ILuModalRef<D, LuModalContentResult<T>> {\n\tmode: LuModalMode;\n\tmodalClasses: LuModalClasses;\n\n\tonOpen: Observable<D> = of(this.dialogRef.instance.dialogData.data);\n\tonClose: Observable<LuModalContentResult<T>> = this.dialogRef.result$ as Observable<LuModalContentResult<T>>;\n\tonDismiss: Observable<void> = this.dialogRef.dismissed$;\n\tonBackdropClick: Observable<void> = this.dialogRef.cdkRef.backdropClick.pipe(map(() => {}));\n\n\tconstructor(private readonly dialogRef: LuDialogRef<DialogContentAdapterComponent<D, T>>) {}\n\n\topen(): void {}\n\n\tclose(result: LuModalContentResult<T>): void {\n\t\tthis.dialogRef.close(result);\n\t}\n\n\tdismiss(): void {\n\t\tthis.dialogRef.dismiss();\n\t}\n}\n","import { ComponentType } from '@angular/cdk/overlay';\nimport { AsyncPipe } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, DestroyRef, DoCheck, inject, Injector, OnInit, signal, ViewChild, ViewContainerRef, ViewEncapsulation } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ButtonComponent } from '@lucca-front/ng/button';\nimport { getIntl, Palette } from '@lucca-front/ng/core';\nimport { DialogComponent, DialogContentComponent, DialogFooterComponent, DialogHeaderComponent, injectDialogData, injectDialogRef } from '@lucca-front/ng/dialog';\nimport { NumericBadgeComponent } from '@lucca-front/ng/numeric-badge';\nimport { isObservable, Observable, of, ReplaySubject, Subject } from 'rxjs';\nimport { delay, distinctUntilChanged, map, switchMap, tap } from 'rxjs/operators';\nimport { ALuModalRef } from '../../modal-ref.model';\nimport { ILuModalContent, LuModalContentResult } from '../../modal.model';\nimport { LU_MODAL_DATA } from '../../modal.token';\nimport { LU_MODAL_TRANSLATIONS } from '../../modal.translate';\n\ninterface AdapterData<D, C> {\n\tcomponent: ComponentType<C>;\n\tdata: D;\n}\n\n@Component({\n\tselector: 'lu-dialog-content-adapter',\n\ttemplateUrl: './dialog-content-adapter.component.html',\n\t// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection\n\tchangeDetection: ChangeDetectionStrategy.Default,\n\tencapsulation: ViewEncapsulation.None,\n\timports: [DialogComponent, DialogHeaderComponent, DialogContentComponent, DialogFooterComponent, AsyncPipe, ButtonComponent, NumericBadgeComponent],\n})\nexport class DialogContentAdapterComponent<D, C extends ILuModalContent> implements OnInit, DoCheck {\n\t#destroyRef = inject(DestroyRef);\n\n\t@ViewChild('contentProjectionRef', { read: ViewContainerRef, static: true })\n\tcontentProjectionRef: ViewContainerRef;\n\n\t#contentComponentInstance: C;\n\n\t#injector = inject(Injector);\n\n\tdialogData = injectDialogData<AdapterData<D, C>>();\n\n\tref = injectDialogRef<LuModalContentResult<C>>();\n\n\tsubmitClass = signal('');\n\terror$ = new Subject();\n\n\tprotected doCheck$ = new ReplaySubject<void>(1);\n\n\tpublic intl = getIntl(LU_MODAL_TRANSLATIONS);\n\tprotected title$ = this.observeValue(() => this.#contentComponentInstance.title);\n\tprotected submitLabel$ = this.observeValue(() => this.#contentComponentInstance.submitLabel || this.intl.submit);\n\tprotected cancelLabel$ = this.observeValue(() => this.#contentComponentInstance.cancelLabel || this.intl.cancel);\n\tprotected submitCounter$ = this.observeValue(() => this.#contentComponentInstance.submitCounter);\n\tprotected submitDisabled$ = this.observeValue(() => this.#contentComponentInstance.submitDisabled);\n\tprotected hasSubmitCounter$ = this.submitCounter$.pipe(map(Boolean));\n\tprotected hasSubmit$ = this.observeValue(() => this.#contentComponentInstance.submitAction).pipe(map(Boolean));\n\n\tget submitPalette() {\n\t\treturn (this.#contentComponentInstance.submitPalette || 'product') as Palette;\n\t}\n\n\tprivate observeValue<TValue>(selector: () => TValue | Observable<TValue>): Observable<TValue> {\n\t\treturn this.doCheck$.pipe(\n\t\t\ttakeUntilDestroyed(this.#destroyRef),\n\t\t\tmap(selector),\n\t\t\tdistinctUntilChanged(),\n\t\t\tswitchMap((value) => (isObservable(value) ? value : of(value))),\n\t\t);\n\t}\n\n\tsubmit(): void {\n\t\tthis.error$.next(undefined);\n\t\tthis.submitClass.set('is-loading');\n\t\tif (this.#contentComponentInstance.submitAction) {\n\t\t\tconst result$ = this.#contentComponentInstance.submitAction();\n\t\t\tif (isObservable(result$)) {\n\t\t\t\tresult$\n\t\t\t\t\t.pipe(\n\t\t\t\t\t\ttap(() => this.submitClass.set('is-success')),\n\t\t\t\t\t\tdelay(500),\n\t\t\t\t\t\ttakeUntilDestroyed(this.#destroyRef),\n\t\t\t\t\t)\n\t\t\t\t\t.subscribe({\n\t\t\t\t\t\tnext: (res) => this.ref.close(res as LuModalContentResult<C>),\n\t\t\t\t\t\terror: (err) => {\n\t\t\t\t\t\t\tthis.submitClass.set('is-error');\n\t\t\t\t\t\t\tthis.error$.next(err);\n\t\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\t\tthis.submitClass.set('');\n\t\t\t\t\t\t\t}, 2000);\n\t\t\t\t\t\t},\n\t\t\t\t\t\tcomplete: () => this.submitClass.set(''),\n\t\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tthis.ref.close(result$ as LuModalContentResult<C>);\n\t\t\t}\n\t\t} else {\n\t\t\tthis.ref.close(undefined);\n\t\t}\n\t}\n\n\tdismiss(): void {\n\t\tthis.ref.dismiss();\n\t}\n\n\tclose(res: LuModalContentResult<C>): void {\n\t\tthis.ref.close(res);\n\t}\n\n\tngDoCheck(): void {\n\t\tthis.doCheck$.next();\n\t}\n\n\tngOnInit(): void {\n\t\tconst injector = Injector.create({\n\t\t\tproviders: [\n\t\t\t\t{ provide: ALuModalRef, useValue: this },\n\t\t\t\t{ provide: LU_MODAL_DATA, useValue: this.dialogData.data },\n\t\t\t],\n\t\t\tparent: this.#injector,\n\t\t});\n\t\tthis.#contentComponentInstance = this.contentProjectionRef.createComponent(this.dialogData.component, {\n\t\t\tinjector,\n\t\t}).instance;\n\t}\n}\n","<lu-dialog>\n\t<lu-dialog-header\n\t\t><h1>{{ title$ | async }}</h1></lu-dialog-header\n\t>\n\t<lu-dialog-content>\n\t\t<ng-container #contentProjectionRef />\n\t</lu-dialog-content>\n\t<lu-dialog-footer>\n\t\t<div class=\"footer-actions\">\n\t\t\t@if (hasSubmit$ | async) {\n\t\t\t\t<button\n\t\t\t\t\tluButton\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t[palette]=\"submitPalette\"\n\t\t\t\t\t[disabled]=\"submitDisabled$ | async\"\n\t\t\t\t\t[class]=\"submitClass()\"\n\t\t\t\t\t(click)=\"submit()\"\n\t\t\t\t>\n\t\t\t\t\t{{ submitLabel$ | async }}\n\t\t\t\t\t@if (hasSubmitCounter$ | async) {\n\t\t\t\t\t\t<lu-numeric-badge disableTooltip palette=\"product\" [value]=\"submitCounter$ | async\" />\n\t\t\t\t\t}\n\t\t\t\t</button>\n\t\t\t}\n\t\t\t<button luButton type=\"button\" class=\"button mod-ghost\" (click)=\"dismiss()\">{{ cancelLabel$ | async }}</button>\n\t\t</div>\n\t</lu-dialog-footer>\n</lu-dialog>\n","import { ComponentType } from '@angular/cdk/portal';\nimport { inject, Injectable } from '@angular/core';\nimport { LuModalConfig } from './modal-config.model';\nimport { ILuModalRef } from './modal-ref.model';\nimport { ILuModalContent, LuModalContentResult } from './modal.model';\nimport { LU_MODAL_CONFIG, LU_MODAL_REF_FACTORY } from './modal.token';\nimport { LuDialogConfig, LuDialogService } from '@lucca-front/ng/dialog';\nimport { DialogRefAdapter } from './dialog-adapter/dialog-ref-adapter';\nimport { DialogContentAdapterComponent } from './dialog-adapter/dialog-content-adapter/dialog-content-adapter.component';\n\n@Injectable()\nexport class LuModal {\n\tprotected _factory = inject(LU_MODAL_REF_FACTORY);\n\tprotected _config = inject(LU_MODAL_CONFIG);\n\tprotected luDialogService = inject(LuDialogService);\n\n\topen<T extends ILuModalContent, D>(component: ComponentType<T>, data: D = undefined, config: Partial<LuModalConfig> = {}): ILuModalRef<D, LuModalContentResult<T>> {\n\t\tconst extendedConfig = { ...this._config, ...config } as LuModalConfig;\n\t\tconst mode = extendedConfig.mode === 'sidepanel' ? 'drawer' : 'default';\n\t\tconst dialogRef = this.luDialogService.open({\n\t\t\tcontent: DialogContentAdapterComponent<D, T>,\n\t\t\tdata: {\n\t\t\t\tcomponent: component,\n\t\t\t\tdata,\n\t\t\t},\n\t\t\tmodal: !extendedConfig.noBackdrop,\n\t\t\talert: extendedConfig.undismissable,\n\t\t\tsize: extendedConfig.size as LuDialogConfig<unknown>['size'],\n\t\t\tmode,\n\t\t\tpanelClasses: Array.isArray(extendedConfig.panelClass) ? extendedConfig.panelClass : [extendedConfig.panelClass],\n\t\t});\n\t\treturn new DialogRefAdapter<D, T>(dialogRef);\n\t}\n\n\tlegacyOpen<T extends ILuModalContent, D>(component: ComponentType<T>, data: D = undefined, config: Partial<LuModalConfig> = {}): ILuModalRef<D, LuModalContentResult<T>> {\n\t\tconst extendedConfig = { ...this._config, ...config } as LuModalConfig;\n\t\tconst ref = this._factory.forge<T, LuModalConfig, D>(component, extendedConfig);\n\t\tref.open(data);\n\t\treturn ref;\n\t}\n}\n","import { DialogModule } from '@angular/cdk/dialog';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { NgModule, Provider } from '@angular/core';\nimport { LuDialogService } from '@lucca-front/ng/dialog';\nimport { LuModalRefFactory } from './modal-ref.factory';\nimport { LuModal } from './modal.service';\nimport { LU_MODAL_REF_FACTORY } from './modal.token';\n\n/**\n * Provide LuModal.\n * Note that OverlayModule should be imported in one of the EnvironmentInjectors (AppModule, lazy-loaded route) using `providers: [importProvidersFrom(OverlayModule)]`.\n */\nexport function provideLuModal(): Provider[] {\n\treturn [LuModal, { provide: LU_MODAL_REF_FACTORY, useClass: LuModalRefFactory }, LuDialogService];\n}\n\n/**\n * @deprecated use `OverlayModule, DialogModule` imports && provide `provideLuModal(), LuDialogService` instead\n */\n@NgModule({\n\timports: [OverlayModule, DialogModule],\n\tproviders: [provideLuModal(), LuDialogService],\n})\nexport class LuModalModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.ALuModalRef"],"mappings":";;;;;;;;;;;;;;;;;;;;AAGa,MAAA,oBAAoB,GAAkB;AAClD,IAAA,IAAI,EAAE,OAAO;AACb,IAAA,QAAQ,EAAE,QAAQ;AAClB,IAAA,UAAU,EAAE,K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