@3ddv/software-division-components 2.0.0 → 2.0.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 (379) hide show
  1. package/package.json +43 -67
  2. package/styles.css +2 -46
  3. package/.postcssrc.json +0 -5
  4. package/.storybook/main.ts +0 -78
  5. package/.storybook/manager-head.html +0 -1
  6. package/.storybook/preview.ts +0 -30
  7. package/.storybook/tsconfig.json +0 -25
  8. package/.storybook/typings.d.ts +0 -4
  9. package/CHANGELOG.md +0 -8
  10. package/LICENSE.md +0 -21
  11. package/backoffice/checkbox/checkbox.component.css +0 -193
  12. package/backoffice/checkbox/checkbox.component.html +0 -23
  13. package/backoffice/checkbox/checkbox.component.ts +0 -252
  14. package/backoffice/checkbox/index.ts +0 -1
  15. package/backoffice/checkbox/ng-package.json +0 -1
  16. package/backoffice/checkbox/public-api.ts +0 -1
  17. package/backoffice/checkbox/story/checkbox.stories.ts +0 -304
  18. package/backoffice/datepicker/datepicker.component.css +0 -262
  19. package/backoffice/datepicker/datepicker.component.html +0 -40
  20. package/backoffice/datepicker/datepicker.component.ts +0 -366
  21. package/backoffice/datepicker/index.ts +0 -1
  22. package/backoffice/datepicker/ng-package.json +0 -1
  23. package/backoffice/datepicker/public-api.ts +0 -2
  24. package/backoffice/datepicker/story/datepicker.stories.ts +0 -32
  25. package/backoffice/datepicker/ui/ui-calendar-helm/src/index.ts +0 -14
  26. package/backoffice/datepicker/ui/ui-calendar-helm/src/lib/hlm-calendar-multi.ts +0 -183
  27. package/backoffice/datepicker/ui/ui-calendar-helm/src/lib/hlm-calendar.ts +0 -171
  28. package/backoffice/datepicker/ui/ui-date-picker-helm/src/index.ts +0 -16
  29. package/backoffice/datepicker/ui/ui-date-picker-helm/src/lib/hlm-date-picker-multi.token.ts +0 -43
  30. package/backoffice/datepicker/ui/ui-date-picker-helm/src/lib/hlm-date-picker-multi.ts +0 -177
  31. package/backoffice/datepicker/ui/ui-date-picker-helm/src/lib/hlm-date-picker.token.ts +0 -43
  32. package/backoffice/datepicker/ui/ui-date-picker-helm/src/lib/hlm-date-picker.ts +0 -167
  33. package/backoffice/datepicker/ui/ui-icon-helm/src/index.ts +0 -11
  34. package/backoffice/datepicker/ui/ui-icon-helm/src/lib/hlm-icon.token.ts +0 -20
  35. package/backoffice/datepicker/ui/ui-icon-helm/src/lib/hlm-icon.ts +0 -35
  36. package/backoffice/datepicker/ui/ui-popover-helm/src/index.ts +0 -15
  37. package/backoffice/datepicker/ui/ui-popover-helm/src/lib/hlm-popover-close.ts +0 -19
  38. package/backoffice/datepicker/ui/ui-popover-helm/src/lib/hlm-popover-content.ts +0 -30
  39. package/backoffice/index.ts +0 -1
  40. package/backoffice/input/index.ts +0 -1
  41. package/backoffice/input/input.component.css +0 -319
  42. package/backoffice/input/input.component.html +0 -51
  43. package/backoffice/input/input.component.ts +0 -497
  44. package/backoffice/input/ng-package.json +0 -1
  45. package/backoffice/input/public-api.ts +0 -2
  46. package/backoffice/input/story/input.stories.ts +0 -243
  47. package/backoffice/radio/index.ts +0 -1
  48. package/backoffice/radio/ng-package.json +0 -1
  49. package/backoffice/radio/public-api.ts +0 -1
  50. package/backoffice/radio/radio.component.css +0 -143
  51. package/backoffice/radio/radio.component.html +0 -15
  52. package/backoffice/radio/radio.component.ts +0 -154
  53. package/backoffice/radio/story/radio.stories.ts +0 -287
  54. package/backoffice/table/_components/pagination/pagination.component.css +0 -117
  55. package/backoffice/table/_components/pagination/pagination.component.html +0 -55
  56. package/backoffice/table/_components/pagination/pagination.component.ts +0 -79
  57. package/backoffice/table/_components/selection-table-head/selection-table-head.component.css +0 -0
  58. package/backoffice/table/_components/selection-table-head/selection-table-head.component.html +0 -6
  59. package/backoffice/table/_components/selection-table-head/selection-table-head.component.ts +0 -36
  60. package/backoffice/table/_components/selection-table-row/selection-table-row.component.css +0 -0
  61. package/backoffice/table/_components/selection-table-row/selection-table-row.component.html +0 -5
  62. package/backoffice/table/_components/selection-table-row/selection-table-row.component.ts +0 -12
  63. package/backoffice/table/_components/sort-header-button/sort-header-button.component.css +0 -14
  64. package/backoffice/table/_components/sort-header-button/sort-header-button.component.html +0 -11
  65. package/backoffice/table/_components/sort-header-button/sort-header-button.component.ts +0 -55
  66. package/backoffice/table/index.ts +0 -1
  67. package/backoffice/table/ng-package.json +0 -1
  68. package/backoffice/table/public-api.ts +0 -6
  69. package/backoffice/table/story/table.stories.ts +0 -364
  70. package/backoffice/table/table.component.css +0 -172
  71. package/backoffice/table/table.component.html +0 -53
  72. package/backoffice/table/table.component.ts +0 -347
  73. package/backoffice/table/ui/ui-icon-helm/src/index.ts +0 -11
  74. package/backoffice/table/ui/ui-icon-helm/src/lib/hlm-icon.token.ts +0 -20
  75. package/backoffice/table/ui/ui-icon-helm/src/lib/hlm-icon.ts +0 -35
  76. package/backoffice/table/ui/ui-table-helm/src/index.ts +0 -13
  77. package/backoffice/table/ui/ui-table-helm/src/lib/hlm-table.ts +0 -220
  78. package/components.json +0 -3
  79. package/dist/styles.css +0 -2
  80. package/documentation.json +0 -30473
  81. package/dvm/cart/cart.component.css +0 -103
  82. package/dvm/cart/cart.component.html +0 -31
  83. package/dvm/cart/cart.component.ts +0 -49
  84. package/dvm/cart/cart.stories.ts +0 -370
  85. package/dvm/cart/cart.types.ts +0 -8
  86. package/dvm/cart/index.ts +0 -2
  87. package/dvm/cart/ng-package.json +0 -1
  88. package/dvm/cart/public-api.ts +0 -8
  89. package/dvm/cart/seat-list.component.css +0 -281
  90. package/dvm/cart/seat-list.component.html +0 -85
  91. package/dvm/cart/seat-list.component.ts +0 -76
  92. package/dvm/cart/seat-list.stories.ts +0 -337
  93. package/dvm/cart-item/cart-item.component.html +0 -1
  94. package/dvm/cart-item/cart-item.component.ts +0 -8
  95. package/dvm/cart-item/cart-item.service.ts +0 -8
  96. package/dvm/cart-item/cart.stories.ts +0 -31
  97. package/dvm/cart-item/index.ts +0 -1
  98. package/dvm/cart-item/ng-package.json +0 -1
  99. package/dvm/cart-item/public-api.ts +0 -6
  100. package/dvm/index.ts +0 -1
  101. package/dvm/legend/index.ts +0 -1
  102. package/dvm/legend/legend.component.css +0 -49
  103. package/dvm/legend/legend.component.html +0 -8
  104. package/dvm/legend/legend.component.ts +0 -41
  105. package/dvm/legend/legend.stories.ts +0 -16
  106. package/dvm/legend/ng-package.json +0 -1
  107. package/dvm/legend/public-api.ts +0 -7
  108. package/dvm/legend/types.ts +0 -6
  109. package/dvm/legend/ui/legend-elements/index.ts +0 -1
  110. package/dvm/legend/ui/legend-elements/legend-elements.component.css +0 -49
  111. package/dvm/legend/ui/legend-elements/legend-elements.component.html +0 -8
  112. package/dvm/legend/ui/legend-elements/legend-elements.component.ts +0 -41
  113. package/dvm/loader/index.ts +0 -1
  114. package/dvm/loader/loader.component.html +0 -1
  115. package/dvm/loader/loader.component.ts +0 -8
  116. package/dvm/loader/loader.service.ts +0 -8
  117. package/dvm/loader/loader.stories.ts +0 -31
  118. package/dvm/loader/ng-package.json +0 -1
  119. package/dvm/loader/public-api.ts +0 -6
  120. package/dvm/map-loader/index.ts +0 -1
  121. package/dvm/map-loader/map-loader.component.css +0 -91
  122. package/dvm/map-loader/map-loader.component.html +0 -23
  123. package/dvm/map-loader/map-loader.component.ts +0 -187
  124. package/dvm/map-loader/map-loader.stories.ts +0 -16
  125. package/dvm/map-loader/ng-package.json +0 -1
  126. package/dvm/map-loader/public-api.ts +0 -5
  127. package/dvm/neighbors/index.ts +0 -1
  128. package/dvm/neighbors/neighbors.component.css +0 -158
  129. package/dvm/neighbors/neighbors.component.html +0 -45
  130. package/dvm/neighbors/neighbors.component.ts +0 -218
  131. package/dvm/neighbors/ng-package.json +0 -1
  132. package/dvm/neighbors/public-api.ts +0 -2
  133. package/dvm/neighbors/story/arrow-left-black-icon.svg +0 -3
  134. package/dvm/neighbors/story/mock-data.ts +0 -15
  135. package/dvm/neighbors/story/neighbours.stories.css +0 -12
  136. package/dvm/neighbors/story/neighbours.stories.ts +0 -117
  137. package/dvm/neighbors/types.ts +0 -14
  138. package/dvm/popover/base-popover.component.ts +0 -70
  139. package/dvm/popover/index.ts +0 -1
  140. package/dvm/popover/ng-package.json +0 -1
  141. package/dvm/popover/popover.component.css +0 -227
  142. package/dvm/popover/popover.component.html +0 -27
  143. package/dvm/popover/popover.component.ts +0 -236
  144. package/dvm/popover/popover.config.ts +0 -30
  145. package/dvm/popover/popover.service.ts +0 -627
  146. package/dvm/popover/popover.stories.ts +0 -873
  147. package/dvm/popover/public-api.ts +0 -14
  148. package/dvm/popover/seat-popover/seat-popover.component.css +0 -89
  149. package/dvm/popover/seat-popover/seat-popover.component.html +0 -40
  150. package/dvm/popover/seat-popover/seat-popover.component.ts +0 -74
  151. package/dvm/popover/section-popover/section-popover.component.css +0 -157
  152. package/dvm/popover/section-popover/section-popover.component.html +0 -58
  153. package/dvm/popover/section-popover/section-popover.component.ts +0 -106
  154. package/dvm/popover/services/dvm-popover-positioner.service.ts +0 -73
  155. package/dvm/popover/services/popover-manager.service.ts +0 -88
  156. package/dvm/popover/transformers/base-popover-data-transformer.ts +0 -36
  157. package/dvm/popover/types.ts +0 -104
  158. package/dvm/stepper/index.ts +0 -1
  159. package/dvm/stepper/ng-package.json +0 -1
  160. package/dvm/stepper/public-api.ts +0 -5
  161. package/dvm/stepper/stepper.component.css +0 -142
  162. package/dvm/stepper/stepper.component.html +0 -9
  163. package/dvm/stepper/stepper.component.ts +0 -101
  164. package/dvm/stepper/types.ts +0 -6
  165. package/dvm/ticket-info-item/index.ts +0 -1
  166. package/dvm/ticket-info-item/ng-package.json +0 -1
  167. package/dvm/ticket-info-item/public-api.ts +0 -6
  168. package/dvm/ticket-info-item/ticket-info-item.component.html +0 -1
  169. package/dvm/ticket-info-item/ticket-info-item.component.ts +0 -8
  170. package/dvm/ticket-info-item/ticket-info-item.service.ts +0 -8
  171. package/dvm/ticket-info-item/ticket-info-item.stories.ts +0 -31
  172. package/generic/add-digital-wallet/add-digital-wallet.component.css +0 -76
  173. package/generic/add-digital-wallet/add-digital-wallet.component.html +0 -46
  174. package/generic/add-digital-wallet/add-digital-wallet.component.ts +0 -44
  175. package/generic/add-digital-wallet/index.ts +0 -1
  176. package/generic/add-digital-wallet/ng-package.json +0 -1
  177. package/generic/add-digital-wallet/public-api.ts +0 -1
  178. package/generic/braintree/braintree.component.css +0 -7
  179. package/generic/braintree/braintree.component.ts +0 -134
  180. package/generic/braintree/index.ts +0 -1
  181. package/generic/braintree/ng-package.json +0 -1
  182. package/generic/braintree/public-api.ts +0 -6
  183. package/generic/braintree/story/braintree.stories.css +0 -3
  184. package/generic/braintree/story/braintree.stories.ts +0 -27
  185. package/generic/braintree/types.ts +0 -28
  186. package/generic/button/button.component.css +0 -305
  187. package/generic/button/button.component.html +0 -10
  188. package/generic/button/button.component.ts +0 -353
  189. package/generic/button/index.ts +0 -1
  190. package/generic/button/ng-package.json +0 -1
  191. package/generic/button/public-api.ts +0 -6
  192. package/generic/button/story/button.stories.ts +0 -384
  193. package/generic/button/ui/ui-button-helm/src/index.ts +0 -10
  194. package/generic/button/ui/ui-button-helm/src/lib/hlm-button.token.ts +0 -22
  195. package/generic/button/ui/ui-button-helm/src/lib/hlm-button.ts +0 -62
  196. package/generic/carousel/carousel-item.component.ts +0 -15
  197. package/generic/carousel/carousel-item.directive.ts +0 -14
  198. package/generic/carousel/carousel.component.css +0 -90
  199. package/generic/carousel/carousel.component.html +0 -13
  200. package/generic/carousel/carousel.component.ts +0 -44
  201. package/generic/carousel/index.ts +0 -1
  202. package/generic/carousel/public-api.ts +0 -2
  203. package/generic/carousel/ui/ui-carousel-helm/src/index.ts +0 -29
  204. package/generic/carousel/ui/ui-carousel-helm/src/lib/hlm-carousel-content.ts +0 -23
  205. package/generic/carousel/ui/ui-carousel-helm/src/lib/hlm-carousel-item.ts +0 -25
  206. package/generic/carousel/ui/ui-carousel-helm/src/lib/hlm-carousel-next.ts +0 -58
  207. package/generic/carousel/ui/ui-carousel-helm/src/lib/hlm-carousel-previous.ts +0 -61
  208. package/generic/carousel/ui/ui-carousel-helm/src/lib/hlm-carousel-slide-display.ts +0 -36
  209. package/generic/carousel/ui/ui-carousel-helm/src/lib/hlm-carousel.ts +0 -105
  210. package/generic/dialog/dialog.component.css +0 -5
  211. package/generic/dialog/dialog.component.html +0 -3
  212. package/generic/dialog/dialog.component.ts +0 -20
  213. package/generic/dialog/dialog.stories.ts +0 -14
  214. package/generic/dialog/index.ts +0 -1
  215. package/generic/dialog/libs/ui-dialog-helm/src/index.ts +0 -37
  216. package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-close.ts +0 -20
  217. package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-content.ts +0 -56
  218. package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-description.ts +0 -17
  219. package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-footer.ts +0 -19
  220. package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-header.ts +0 -19
  221. package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-overlay.ts +0 -23
  222. package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog-title.ts +0 -19
  223. package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog.service.ts +0 -59
  224. package/generic/dialog/libs/ui-dialog-helm/src/lib/hlm-dialog.ts +0 -31
  225. package/generic/dialog/ng-package.json +0 -1
  226. package/generic/dialog/public-api.ts +0 -7
  227. package/generic/dialog/tsconfig.json +0 -7
  228. package/generic/dialog/ui/dialog-close-button/dialog-close-button.component.css +0 -0
  229. package/generic/dialog/ui/dialog-close-button/dialog-close-button.component.html +0 -1
  230. package/generic/dialog/ui/dialog-close-button/dialog-close-button.component.ts +0 -17
  231. package/generic/dialog/ui/dialog-footer/dialog-footer.component.css +0 -0
  232. package/generic/dialog/ui/dialog-footer/dialog-footer.component.html +0 -3
  233. package/generic/dialog/ui/dialog-footer/dialog-footer.component.ts +0 -11
  234. package/generic/dialog/ui/dialog-header/dialog-header.component.css +0 -0
  235. package/generic/dialog/ui/dialog-header/dialog-header.component.html +0 -8
  236. package/generic/dialog/ui/dialog-header/dialog-header.component.ts +0 -18
  237. package/generic/drawer/drawer.component.html +0 -1
  238. package/generic/drawer/drawer.component.ts +0 -8
  239. package/generic/drawer/drawer.service.ts +0 -8
  240. package/generic/drawer/drawer.stories.ts +0 -31
  241. package/generic/drawer/index.ts +0 -1
  242. package/generic/drawer/ng-package.json +0 -1
  243. package/generic/drawer/public-api.ts +0 -6
  244. package/generic/icon/icon.component.css +0 -7
  245. package/generic/icon/icon.component.html +0 -3
  246. package/generic/icon/icon.component.ts +0 -86
  247. package/generic/icon/icon.stories.ts +0 -16
  248. package/generic/icon/index.ts +0 -1
  249. package/generic/icon/lib/ui-icon-helm/src/index.ts +0 -11
  250. package/generic/icon/lib/ui-icon-helm/src/lib/hlm-icon.token.ts +0 -20
  251. package/generic/icon/lib/ui-icon-helm/src/lib/hlm-icon.ts +0 -36
  252. package/generic/icon/ng-package.json +0 -1
  253. package/generic/icon/public-api.ts +0 -6
  254. package/generic/icon/tsconfig.json +0 -7
  255. package/generic/index.ts +0 -1
  256. package/generic/select/index.ts +0 -1
  257. package/generic/select/lib/hlm-select-content.ts +0 -29
  258. package/generic/select/lib/hlm-select-group.ts +0 -17
  259. package/generic/select/lib/hlm-select-label.ts +0 -26
  260. package/generic/select/lib/hlm-select-option.ts +0 -37
  261. package/generic/select/lib/hlm-select-scroll-down.ts +0 -24
  262. package/generic/select/lib/hlm-select-scroll-up.ts +0 -23
  263. package/generic/select/lib/hlm-select-trigger.ts +0 -53
  264. package/generic/select/lib/hlm-select-value.ts +0 -17
  265. package/generic/select/lib/hlm-select.ts +0 -15
  266. package/generic/select/lib/index.ts +0 -38
  267. package/generic/select/ng-package.json +0 -1
  268. package/generic/select/public-api.ts +0 -3
  269. package/generic/select/select.component.css +0 -65
  270. package/generic/select/select.component.html +0 -19
  271. package/generic/select/select.component.ts +0 -25
  272. package/generic/select/types.ts +0 -4
  273. package/ng-package.json +0 -10
  274. package/public/3ddv-logo.jpg +0 -0
  275. package/public/neighbours-after.png +0 -0
  276. package/public/neighbours-before.png +0 -0
  277. package/shared/apply-theme-variables/apply-theme-variables.ts +0 -35
  278. package/shared/apply-theme-variables/index.ts +0 -1
  279. package/shared/format-value.pipe.ts +0 -23
  280. package/shared/index.ts +0 -1
  281. package/shared/lib-provider/config-token.ts +0 -4
  282. package/shared/lib-provider/index.ts +0 -1
  283. package/shared/lib-provider/provide-sdc.ts +0 -24
  284. package/shared/lib-provider/public-api.ts +0 -1
  285. package/shared/ng-package.json +0 -1
  286. package/shared/public-api.ts +0 -6
  287. package/shared/screen-observer/index.ts +0 -2
  288. package/shared/screen-observer/provide-screen-observer.ts +0 -17
  289. package/shared/screen-observer/screen-observer.ts +0 -56
  290. package/shared/screen-observer/sizable-base.ts +0 -70
  291. package/shared/theme-provider/generic-theme.ts +0 -1
  292. package/shared/theme-provider/index.ts +0 -1
  293. package/shared/theme-provider/public-api.ts +0 -1
  294. package/shared/theme-provider/theme-provider.directive.ts +0 -17
  295. package/shared/themes/sdc.css +0 -153
  296. package/shared/types.ts +0 -18
  297. package/src/private-exports.ts +0 -1
  298. package/src/public-api.ts +0 -20
  299. package/tsconfig.json +0 -50
  300. package/tsconfig.lib.prod.json +0 -6
  301. package/tsconfig.spec.json +0 -15
  302. package/tsconfig.temp.json +0 -1
  303. package/utils/index.ts +0 -1
  304. package/utils/ng-package.json +0 -1
  305. package/utils/public-api.ts +0 -1
  306. package/utils/validate-styles-for-component.ts +0 -39
  307. /package/{dist/README.md → README.md} +0 -0
  308. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-backoffice-checkbox.mjs +0 -0
  309. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-backoffice-checkbox.mjs.map +0 -0
  310. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-backoffice-datepicker.mjs +0 -0
  311. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-backoffice-datepicker.mjs.map +0 -0
  312. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-backoffice-input.mjs +0 -0
  313. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-backoffice-input.mjs.map +0 -0
  314. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-backoffice-radio.mjs +0 -0
  315. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-backoffice-radio.mjs.map +0 -0
  316. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-backoffice-table.mjs +0 -0
  317. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-backoffice-table.mjs.map +0 -0
  318. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-dvm-cart-item.mjs +0 -0
  319. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-dvm-cart-item.mjs.map +0 -0
  320. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-dvm-cart.mjs +0 -0
  321. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-dvm-cart.mjs.map +0 -0
  322. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-dvm-legend.mjs +0 -0
  323. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-dvm-legend.mjs.map +0 -0
  324. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-dvm-loader.mjs +0 -0
  325. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-dvm-loader.mjs.map +0 -0
  326. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-dvm-map-loader.mjs +0 -0
  327. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-dvm-map-loader.mjs.map +0 -0
  328. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-dvm-neighbors.mjs +0 -0
  329. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-dvm-neighbors.mjs.map +0 -0
  330. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-dvm-popover.mjs +0 -0
  331. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-dvm-popover.mjs.map +0 -0
  332. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-dvm-stepper.mjs +0 -0
  333. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-dvm-stepper.mjs.map +0 -0
  334. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-dvm-ticket-info-item.mjs +0 -0
  335. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-dvm-ticket-info-item.mjs.map +0 -0
  336. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-generic-add-digital-wallet.mjs +0 -0
  337. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-generic-add-digital-wallet.mjs.map +0 -0
  338. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-generic-braintree.mjs +0 -0
  339. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-generic-braintree.mjs.map +0 -0
  340. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-generic-button.mjs +0 -0
  341. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-generic-button.mjs.map +0 -0
  342. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-generic-dialog.mjs +0 -0
  343. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-generic-dialog.mjs.map +0 -0
  344. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-generic-drawer.mjs +0 -0
  345. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-generic-drawer.mjs.map +0 -0
  346. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-generic-icon.mjs +0 -0
  347. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-generic-icon.mjs.map +0 -0
  348. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-generic-select.mjs +0 -0
  349. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-generic-select.mjs.map +0 -0
  350. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-shared.mjs +0 -0
  351. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-shared.mjs.map +0 -0
  352. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-utils.mjs +0 -0
  353. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components-utils.mjs.map +0 -0
  354. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components.mjs +0 -0
  355. /package/{dist/fesm2022 → fesm2022}/3ddv-software-division-components.mjs.map +0 -0
  356. /package/{dist/types → types}/3ddv-software-division-components-backoffice-checkbox.d.ts +0 -0
  357. /package/{dist/types → types}/3ddv-software-division-components-backoffice-datepicker.d.ts +0 -0
  358. /package/{dist/types → types}/3ddv-software-division-components-backoffice-input.d.ts +0 -0
  359. /package/{dist/types → types}/3ddv-software-division-components-backoffice-radio.d.ts +0 -0
  360. /package/{dist/types → types}/3ddv-software-division-components-backoffice-table.d.ts +0 -0
  361. /package/{dist/types → types}/3ddv-software-division-components-dvm-cart-item.d.ts +0 -0
  362. /package/{dist/types → types}/3ddv-software-division-components-dvm-cart.d.ts +0 -0
  363. /package/{dist/types → types}/3ddv-software-division-components-dvm-legend.d.ts +0 -0
  364. /package/{dist/types → types}/3ddv-software-division-components-dvm-loader.d.ts +0 -0
  365. /package/{dist/types → types}/3ddv-software-division-components-dvm-map-loader.d.ts +0 -0
  366. /package/{dist/types → types}/3ddv-software-division-components-dvm-neighbors.d.ts +0 -0
  367. /package/{dist/types → types}/3ddv-software-division-components-dvm-popover.d.ts +0 -0
  368. /package/{dist/types → types}/3ddv-software-division-components-dvm-stepper.d.ts +0 -0
  369. /package/{dist/types → types}/3ddv-software-division-components-dvm-ticket-info-item.d.ts +0 -0
  370. /package/{dist/types → types}/3ddv-software-division-components-generic-add-digital-wallet.d.ts +0 -0
  371. /package/{dist/types → types}/3ddv-software-division-components-generic-braintree.d.ts +0 -0
  372. /package/{dist/types → types}/3ddv-software-division-components-generic-button.d.ts +0 -0
  373. /package/{dist/types → types}/3ddv-software-division-components-generic-dialog.d.ts +0 -0
  374. /package/{dist/types → types}/3ddv-software-division-components-generic-drawer.d.ts +0 -0
  375. /package/{dist/types → types}/3ddv-software-division-components-generic-icon.d.ts +0 -0
  376. /package/{dist/types → types}/3ddv-software-division-components-generic-select.d.ts +0 -0
  377. /package/{dist/types → types}/3ddv-software-division-components-shared.d.ts +0 -0
  378. /package/{dist/types → types}/3ddv-software-division-components-utils.d.ts +0 -0
  379. /package/{dist/types → types}/3ddv-software-division-components.d.ts +0 -0
@@ -1,29 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { HlmCarousel } from './lib/hlm-carousel';
3
- import { HlmCarouselContent } from './lib/hlm-carousel-content';
4
- import { HlmCarouselItem } from './lib/hlm-carousel-item';
5
- import { HlmCarouselNext } from './lib/hlm-carousel-next';
6
- import { HlmCarouselPrevious } from './lib/hlm-carousel-previous';
7
- import { HlmCarouselSlideDisplay } from './lib/hlm-carousel-slide-display';
8
-
9
- export * from './lib/hlm-carousel';
10
- export * from './lib/hlm-carousel-content';
11
- export * from './lib/hlm-carousel-item';
12
- export * from './lib/hlm-carousel-next';
13
- export * from './lib/hlm-carousel-previous';
14
- export * from './lib/hlm-carousel-slide-display';
15
-
16
- export const HlmCarouselImports = [
17
- HlmCarousel,
18
- HlmCarouselContent,
19
- HlmCarouselItem,
20
- HlmCarouselPrevious,
21
- HlmCarouselNext,
22
- HlmCarouselSlideDisplay,
23
- ] as const;
24
-
25
- @NgModule({
26
- imports: [...HlmCarouselImports],
27
- exports: [...HlmCarouselImports],
28
- })
29
- export class HlmCarouselModule {}
@@ -1,23 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, inject, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/brain/core';
3
- import type { ClassValue } from 'clsx';
4
- import { HlmCarousel } from './hlm-carousel';
5
-
6
- @Component({
7
- selector: 'hlm-carousel-content',
8
- standalone: true,
9
- changeDetection: ChangeDetectionStrategy.OnPush,
10
- encapsulation: ViewEncapsulation.None,
11
- host: {
12
- '[class]': '_computedClass()',
13
- },
14
- template: ` <ng-content /> `,
15
- })
16
- export class HlmCarouselContent {
17
- private readonly _orientation = inject(HlmCarousel).orientation;
18
-
19
- public readonly userClass = input<ClassValue>('', { alias: 'class' });
20
- protected readonly _computedClass = computed(() =>
21
- hlm('flex', this._orientation() === 'horizontal' ? '-ml-4' : '-mt-4 flex-col', this.userClass())
22
- );
23
- }
@@ -1,25 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, inject, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/brain/core';
3
- import type { ClassValue } from 'clsx';
4
- import { HlmCarousel } from './hlm-carousel';
5
-
6
- @Component({
7
- selector: 'hlm-carousel-item',
8
- standalone: true,
9
- changeDetection: ChangeDetectionStrategy.OnPush,
10
- encapsulation: ViewEncapsulation.None,
11
- host: {
12
- '[class]': '_computedClass()',
13
- role: 'group',
14
- 'aria-roledescription': 'slide',
15
- },
16
- template: ` <ng-content /> `,
17
- })
18
- export class HlmCarouselItem {
19
- private readonly _orientation = inject(HlmCarousel).orientation;
20
-
21
- public readonly userClass = input<ClassValue>('', { alias: 'class' });
22
- protected readonly _computedClass = computed(() =>
23
- hlm('min-w-0 shrink-0 grow-0 basis-full', this._orientation() === 'horizontal' ? 'pl-4' : 'pt-4', this.userClass())
24
- );
25
- }
@@ -1,58 +0,0 @@
1
- import { HlmButton, provideBrnButtonConfig } from '@3ddv/software-division-components/generic/button';
2
- import { HlmIcon } from '@3ddv/software-division-components/generic/icon';
3
- import {
4
- ChangeDetectionStrategy,
5
- Component,
6
- ViewEncapsulation,
7
- computed,
8
- effect,
9
- inject,
10
- input,
11
- untracked,
12
- } from '@angular/core';
13
- import { NgIcon, provideIcons } from '@ng-icons/core';
14
- import { lucideArrowRight } from '@ng-icons/lucide';
15
- import { hlm } from '@spartan-ng/brain/core';
16
- import type { ClassValue } from 'clsx';
17
- import { HlmCarousel } from './hlm-carousel';
18
-
19
- @Component({
20
- selector: 'button[hlm-carousel-next], button[hlmCarouselNext]',
21
- standalone: true,
22
- changeDetection: ChangeDetectionStrategy.OnPush,
23
- encapsulation: ViewEncapsulation.None,
24
- host: {
25
- '[disabled]': 'isDisabled()',
26
- '(click)': '_carousel.scrollNext()',
27
- },
28
- hostDirectives: [{ directive: HlmButton, inputs: ['variant', 'size'] }],
29
- providers: [provideIcons({ lucideArrowRight }), provideBrnButtonConfig({ variant: 'outline', size: 'icon' })],
30
- imports: [NgIcon, HlmIcon],
31
- template: `
32
- <ng-icon hlm size="sm" name="lucideArrowRight" />
33
- <span class="sr-only">Next slide</span>
34
- `,
35
- })
36
- export class HlmCarouselNext {
37
- private readonly _button = inject(HlmButton);
38
- protected readonly _carousel = inject(HlmCarousel);
39
- public readonly userClass = input<ClassValue>('', { alias: 'class' });
40
- private readonly _computedClass = computed(() =>
41
- hlm(
42
- 'absolute h-8 w-8 rounded-full',
43
- this._carousel.orientation() === 'horizontal'
44
- ? '-right-12 top-1/2 -translate-y-1/2'
45
- : '-bottom-12 left-1/2 -translate-x-1/2 rotate-90',
46
- this.userClass()
47
- )
48
- );
49
- protected readonly isDisabled = () => !this._carousel.canScrollNext();
50
-
51
- constructor() {
52
- effect(() => {
53
- const computedClass = this._computedClass();
54
-
55
- untracked(() => this._button.setClass(computedClass));
56
- });
57
- }
58
- }
@@ -1,61 +0,0 @@
1
- import { HlmButton, provideBrnButtonConfig } from '@3ddv/software-division-components/generic/button';
2
- import { HlmIcon } from '@3ddv/software-division-components/generic/icon';
3
- import {
4
- ChangeDetectionStrategy,
5
- Component,
6
- ViewEncapsulation,
7
- computed,
8
- effect,
9
- inject,
10
- input,
11
- untracked,
12
- } from '@angular/core';
13
- import { NgIcon, provideIcons } from '@ng-icons/core';
14
- import { lucideArrowLeft } from '@ng-icons/lucide';
15
- import { hlm } from '@spartan-ng/brain/core';
16
- import type { ClassValue } from 'clsx';
17
- import { HlmCarousel } from './hlm-carousel';
18
-
19
- @Component({
20
- selector: 'button[hlm-carousel-previous], button[hlmCarouselPrevious]',
21
- changeDetection: ChangeDetectionStrategy.OnPush,
22
- standalone: true,
23
- encapsulation: ViewEncapsulation.None,
24
- host: {
25
- '[disabled]': 'isDisabled()',
26
- '(click)': '_carousel.scrollPrev()',
27
- },
28
- hostDirectives: [{ directive: HlmButton, inputs: ['variant', 'size'] }],
29
- providers: [provideIcons({ lucideArrowLeft }), provideBrnButtonConfig({ variant: 'outline', size: 'icon' })],
30
- imports: [NgIcon, HlmIcon],
31
- template: `
32
- <ng-icon hlm size="sm" name="lucideArrowLeft" />
33
- <span class="sr-only">Previous slide</span>
34
- `,
35
- })
36
- export class HlmCarouselPrevious {
37
- private readonly _button = inject(HlmButton);
38
-
39
- protected readonly _carousel = inject(HlmCarousel);
40
-
41
- public readonly userClass = input<ClassValue>('', { alias: 'class' });
42
-
43
- private readonly _computedClass = computed(() =>
44
- hlm(
45
- 'absolute h-8 w-8 rounded-full',
46
- this._carousel.orientation() === 'horizontal'
47
- ? '-left-12 top-1/2 -translate-y-1/2'
48
- : '-top-12 left-1/2 -translate-x-1/2 rotate-90',
49
- this.userClass()
50
- )
51
- );
52
- protected readonly isDisabled = () => !this._carousel.canScrollPrev();
53
-
54
- constructor() {
55
- effect(() => {
56
- const computedClass = this._computedClass();
57
-
58
- untracked(() => this._button.setClass(computedClass));
59
- });
60
- }
61
- }
@@ -1,36 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/brain/core';
3
- import { ClassValue } from 'clsx';
4
- import { HlmCarousel } from './hlm-carousel';
5
-
6
- @Component({
7
- selector: 'hlm-carousel-slide-display',
8
- standalone: true,
9
- template: `
10
- <span class="sr-only">{{ _labelContent() }}</span>
11
- <div aria-hidden="true" [class]="slideClass()">{{ _currentSlide() }} / {{ _carousel.slideCount() }}</div>
12
- `,
13
- changeDetection: ChangeDetectionStrategy.OnPush,
14
- host: {
15
- '[class]': '_computedClass()',
16
- },
17
- })
18
- export class HlmCarouselSlideDisplay {
19
- protected readonly _carousel = inject(HlmCarousel);
20
-
21
- protected readonly _currentSlide = computed(() => this._carousel.currentSlide() + 1);
22
-
23
- public readonly userClass = input<ClassValue>('', { alias: 'class' });
24
- protected _computedClass = computed(() => hlm('', this.userClass()));
25
-
26
- public readonly slideClass = input<ClassValue>('text-muted-foreground text-sm');
27
-
28
- /** Screen reader only text for the slide display */
29
- public readonly label = input<string>('Slide');
30
-
31
- protected readonly _labelContent = computed(() => {
32
- const currentSlide = this._currentSlide();
33
- const slideCount = this._carousel.slideCount();
34
- return `${this.label()} ${currentSlide} of ${slideCount} is displayed`;
35
- });
36
- }
@@ -1,105 +0,0 @@
1
- import {
2
- ChangeDetectionStrategy,
3
- Component,
4
- type InputSignal,
5
- type Signal,
6
- ViewEncapsulation,
7
- computed,
8
- input,
9
- signal,
10
- viewChild,
11
- } from '@angular/core';
12
- import { hlm } from '@spartan-ng/brain/core';
13
- import type { ClassValue } from 'clsx';
14
- import {
15
- EmblaCarouselDirective,
16
- type EmblaEventType,
17
- type EmblaOptionsType,
18
- type EmblaPluginType,
19
- } from 'embla-carousel-angular';
20
-
21
- @Component({
22
- selector: 'hlm-carousel',
23
- standalone: true,
24
- changeDetection: ChangeDetectionStrategy.OnPush,
25
- encapsulation: ViewEncapsulation.None,
26
- host: {
27
- '[class]': '_computedClass()',
28
- role: 'region',
29
- 'aria-roledescription': 'carousel',
30
- '(keydown)': 'onKeydown($event)',
31
- },
32
- imports: [EmblaCarouselDirective],
33
- template: `
34
- <div
35
- emblaCarousel
36
- class="overflow-hidden"
37
- [plugins]="plugins()"
38
- [options]="_emblaOptions()"
39
- [subscribeToEvents]="['init', 'select', 'reInit']"
40
- (emblaChange)="onEmblaEvent($event)">
41
- <ng-content select="hlm-carousel-content" />
42
- </div>
43
- <ng-content />
44
- `,
45
- })
46
- export class HlmCarousel {
47
- protected readonly _emblaCarousel = viewChild.required(EmblaCarouselDirective);
48
-
49
- public readonly userClass = input<ClassValue>('', { alias: 'class' });
50
- protected readonly _computedClass = computed(() => hlm('relative', this.userClass()));
51
-
52
- public readonly orientation = input<'horizontal' | 'vertical'>('horizontal');
53
- public readonly options: InputSignal<Omit<EmblaOptionsType, 'axis'> | undefined> =
54
- input<Omit<EmblaOptionsType, 'axis'>>();
55
- public readonly plugins: InputSignal<EmblaPluginType[]> = input<EmblaPluginType[]>([]);
56
-
57
- protected readonly _emblaOptions: Signal<EmblaOptionsType> = computed(() => ({
58
- ...this.options(),
59
- axis: this.orientation() === 'horizontal' ? 'x' : 'y',
60
- }));
61
-
62
- private readonly _canScrollPrev = signal(false);
63
- public readonly canScrollPrev = this._canScrollPrev.asReadonly();
64
- private readonly _canScrollNext = signal(false);
65
- public readonly canScrollNext = this._canScrollNext.asReadonly();
66
-
67
- private readonly _currentSlide = signal(0);
68
- public readonly currentSlide = this._currentSlide.asReadonly();
69
- private readonly _slideCount = signal(0);
70
- public readonly slideCount = this._slideCount.asReadonly();
71
-
72
- protected onEmblaEvent(event: EmblaEventType) {
73
- const emblaApi = this._emblaCarousel().emblaApi;
74
-
75
- if (!emblaApi) {
76
- return;
77
- }
78
-
79
- if (event === 'select' || event === 'init' || event === 'reInit') {
80
- this._canScrollPrev.set(emblaApi.canScrollPrev());
81
- this._canScrollNext.set(emblaApi.canScrollNext());
82
-
83
- this._currentSlide.set(emblaApi.selectedScrollSnap());
84
- this._slideCount.set(emblaApi.scrollSnapList().length);
85
- }
86
- }
87
-
88
- protected onKeydown(event: KeyboardEvent) {
89
- if (event.key === 'ArrowLeft') {
90
- event.preventDefault();
91
- this._emblaCarousel().scrollPrev();
92
- } else if (event.key === 'ArrowRight') {
93
- event.preventDefault();
94
- this._emblaCarousel().scrollNext();
95
- }
96
- }
97
-
98
- scrollPrev() {
99
- this._emblaCarousel().scrollPrev();
100
- }
101
-
102
- scrollNext() {
103
- this._emblaCarousel().scrollNext();
104
- }
105
- }
@@ -1,5 +0,0 @@
1
- @media (min-width: 640px) {
2
- .dialog-content {
3
- max-width: 425px;
4
- }
5
- }
@@ -1,3 +0,0 @@
1
- <hlm-dialog #dialogRef>
2
- <hlm-dialog-content *hlmDialogContent="let ctx" class="dialog-content" />
3
- </hlm-dialog>
@@ -1,20 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, effect, inject, viewChild } from '@angular/core';
2
- import { BrnDialog } from '@spartan-ng/brain/dialog';
3
- import { HlmDialog, HlmDialogContent, HlmDialogService } from './libs/ui-dialog-helm/src';
4
-
5
- @Component({
6
- selector: 'sdc-dialog',
7
- imports: [HlmDialogContent, HlmDialog],
8
- changeDetection: ChangeDetectionStrategy.OnPush,
9
- templateUrl: './dialog.component.html',
10
- })
11
- export class DialogComponent {
12
- public dialogService = inject(HlmDialogService);
13
- public dialogComponent = viewChild(BrnDialog);
14
-
15
- public constructor() {
16
- effect(() => {
17
- this.dialogService.component.set(this.dialogComponent() ?? null);
18
- });
19
- }
20
- }
@@ -1,14 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/angular';
2
- import { DialogComponent } from './dialog.component';
3
-
4
- const meta: Meta<DialogComponent> = {
5
- title: 'Generic/Dialog',
6
- component: DialogComponent,
7
- id: 'Dialog',
8
- };
9
-
10
- export default meta;
11
-
12
- type Story = StoryObj<DialogComponent>;
13
-
14
- export const Primary: Story = {};
@@ -1 +0,0 @@
1
- export * from './public-api';
@@ -1,37 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
-
3
- import { HlmDialog } from './lib/hlm-dialog';
4
- import { HlmDialogClose } from './lib/hlm-dialog-close';
5
- import { HlmDialogContent } from './lib/hlm-dialog-content';
6
- import { HlmDialogDescription } from './lib/hlm-dialog-description';
7
- import { HlmDialogFooter } from './lib/hlm-dialog-footer';
8
- import { HlmDialogHeader } from './lib/hlm-dialog-header';
9
- import { HlmDialogOverlay } from './lib/hlm-dialog-overlay';
10
- import { HlmDialogTitle } from './lib/hlm-dialog-title';
11
-
12
- export * from './lib/hlm-dialog';
13
- export * from './lib/hlm-dialog-close';
14
- export * from './lib/hlm-dialog-content';
15
- export * from './lib/hlm-dialog-description';
16
- export * from './lib/hlm-dialog-footer';
17
- export * from './lib/hlm-dialog-header';
18
- export * from './lib/hlm-dialog-overlay';
19
- export * from './lib/hlm-dialog-title';
20
- export * from './lib/hlm-dialog.service';
21
-
22
- export const HlmDialogImports = [
23
- HlmDialog,
24
- HlmDialogClose,
25
- HlmDialogContent,
26
- HlmDialogDescription,
27
- HlmDialogFooter,
28
- HlmDialogHeader,
29
- HlmDialogOverlay,
30
- HlmDialogTitle,
31
- ] as const;
32
-
33
- @NgModule({
34
- // imports: [...HlmDialogImports],
35
- // exports: [...HlmDialogImports],
36
- })
37
- export class HlmDialogModule {}
@@ -1,20 +0,0 @@
1
- import { computed, Directive, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/brain/core';
3
- import type { ClassValue } from 'clsx';
4
-
5
- @Directive({
6
- selector: '[hlmDialogClose],[brnDialogClose][hlm]',
7
- host: {
8
- '[class]': '_computedClass()',
9
- },
10
- })
11
- export class HlmDialogClose {
12
- public readonly userClass = input<ClassValue>('', { alias: 'class' });
13
-
14
- protected readonly _computedClass = computed(() =>
15
- hlm(
16
- 'absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground',
17
- this.userClass()
18
- )
19
- );
20
- }
@@ -1,56 +0,0 @@
1
- import { HlmIcon } from '@3ddv/software-division-components/generic/icon';
2
- import { NgComponentOutlet } from '@angular/common';
3
- import { ChangeDetectionStrategy, Component, computed, inject, input, ViewEncapsulation } from '@angular/core';
4
- import { NgIcon, provideIcons } from '@ng-icons/core';
5
- import { lucideX } from '@ng-icons/lucide';
6
- import { hlm } from '@spartan-ng/brain/core';
7
- import { BrnDialogClose, BrnDialogRef, injectBrnDialogContext } from '@spartan-ng/brain/dialog';
8
- import type { ClassValue } from 'clsx';
9
- import { HlmDialogClose } from './hlm-dialog-close';
10
-
11
- @Component({
12
- selector: 'hlm-dialog-content',
13
-
14
- imports: [NgComponentOutlet, BrnDialogClose, HlmDialogClose, NgIcon, HlmIcon],
15
- providers: [provideIcons({ lucideX })],
16
- host: {
17
- '[class]': '_computedClass()',
18
- '[attr.data-state]': 'state()',
19
- },
20
- template: `
21
- @if (component) {
22
- <ng-container [ngComponentOutlet]="component" [ngComponentOutletInputs]="componentInputs()" />
23
- } @else {
24
- <ng-content />
25
- }
26
-
27
- <button brnDialogClose class="animated-button" hlm>
28
- <span class="sr-only">Close</span>
29
- <ng-icon hlm name="lucideX" size="sm" />
30
- </button>
31
- `,
32
- changeDetection: ChangeDetectionStrategy.OnPush,
33
- encapsulation: ViewEncapsulation.None,
34
- })
35
- export class HlmDialogContent {
36
- private readonly _dialogRef = inject(BrnDialogRef);
37
- private readonly _dialogContext = injectBrnDialogContext({ optional: true });
38
-
39
- public readonly userClass = input<ClassValue>('', { alias: 'class' });
40
-
41
- public readonly state = computed(() => this._dialogRef?.state() ?? 'closed');
42
- public readonly componentInputs = computed(() => {
43
- const { $component, $dynamicComponentClass, close, ...rest } = this._dialogContext;
44
- return rest;
45
- });
46
- protected readonly _computedClass = computed(() =>
47
- hlm(
48
- 'border-border grid w-full max-w-lg relative gap-4 border bg-white p-6 shadow-lg [animation-duration:200] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-top-[2%] data-[state=open]:slide-in-from-top-[2%] rounded-lg md:w-full',
49
- this.userClass(),
50
- this._dynamicComponentClass
51
- )
52
- );
53
-
54
- public readonly component = this._dialogContext?.$component;
55
- private readonly _dynamicComponentClass = this._dialogContext?.$dynamicComponentClass;
56
- }
@@ -1,17 +0,0 @@
1
- import { computed, Directive, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/brain/core';
3
- import { BrnDialogDescription } from '@spartan-ng/brain/dialog';
4
- import type { ClassValue } from 'clsx';
5
-
6
- @Directive({
7
- selector: '[hlmDialogDescription]',
8
-
9
- host: {
10
- '[class]': '_computedClass()',
11
- },
12
- hostDirectives: [BrnDialogDescription],
13
- })
14
- export class HlmDialogDescription {
15
- public readonly userClass = input<ClassValue>('', { alias: 'class' });
16
- protected readonly _computedClass = computed(() => hlm('text-sm text-muted-foreground', this.userClass()));
17
- }
@@ -1,19 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/brain/core';
3
- import type { ClassValue } from 'clsx';
4
-
5
- @Component({
6
- selector: 'hlm-dialog-footer',
7
-
8
- template: ` <ng-content /> `,
9
- host: {
10
- '[class]': '_computedClass()',
11
- },
12
- changeDetection: ChangeDetectionStrategy.OnPush,
13
- })
14
- export class HlmDialogFooter {
15
- public readonly userClass = input<ClassValue>('', { alias: 'class' });
16
- protected _computedClass = computed(() =>
17
- hlm('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', this.userClass())
18
- );
19
- }
@@ -1,19 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/brain/core';
3
- import type { ClassValue } from 'clsx';
4
-
5
- @Component({
6
- selector: 'hlm-dialog-header',
7
-
8
- template: ` <ng-content /> `,
9
- host: {
10
- '[class]': '_computedClass()',
11
- },
12
- changeDetection: ChangeDetectionStrategy.OnPush,
13
- })
14
- export class HlmDialogHeader {
15
- public readonly userClass = input<ClassValue>('', { alias: 'class' });
16
- protected _computedClass = computed(() =>
17
- hlm('flex flex-col space-y-1.5 text-center sm:text-left', this.userClass())
18
- );
19
- }
@@ -1,23 +0,0 @@
1
- import { computed, Directive, effect, input, untracked } from '@angular/core';
2
- import { hlm, injectCustomClassSettable } from '@spartan-ng/brain/core';
3
- import type { ClassValue } from 'clsx';
4
-
5
- export const hlmDialogOverlayClass =
6
- 'bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0';
7
-
8
- @Directive({
9
- selector: '[hlmDialogOverlay],brn-dialog-overlay[hlm]',
10
- })
11
- export class HlmDialogOverlay {
12
- private readonly _classSettable = injectCustomClassSettable({ optional: true, host: true });
13
-
14
- public readonly userClass = input<ClassValue>('', { alias: 'class' });
15
- protected readonly _computedClass = computed(() => hlm(hlmDialogOverlayClass, this.userClass()));
16
-
17
- constructor() {
18
- effect(() => {
19
- const newClass = this._computedClass();
20
- untracked(() => this._classSettable?.setClassToCustomElement(newClass));
21
- });
22
- }
23
- }
@@ -1,19 +0,0 @@
1
- import { computed, Directive, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/brain/core';
3
- import { BrnDialogTitle } from '@spartan-ng/brain/dialog';
4
- import type { ClassValue } from 'clsx';
5
-
6
- @Directive({
7
- selector: '[hlmDialogTitle]',
8
-
9
- host: {
10
- '[class]': '_computedClass()',
11
- },
12
- hostDirectives: [BrnDialogTitle],
13
- })
14
- export class HlmDialogTitle {
15
- public readonly userClass = input<ClassValue>('', { alias: 'class' });
16
- protected readonly _computedClass = computed(() =>
17
- hlm('text-lg font-semibold leading-none tracking-tight', this.userClass())
18
- );
19
- }