yukit-web 0.10.5 → 0.10.7

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 (190) hide show
  1. package/fesm2022/yukit-web-chart.mjs +807 -552
  2. package/fesm2022/yukit-web-chart.mjs.map +1 -1
  3. package/fesm2022/yukit-web-helm-accordion.mjs +271 -100
  4. package/fesm2022/yukit-web-helm-accordion.mjs.map +1 -1
  5. package/fesm2022/yukit-web-helm-alert-dialog.mjs +675 -243
  6. package/fesm2022/yukit-web-helm-alert-dialog.mjs.map +1 -1
  7. package/fesm2022/yukit-web-helm-alert.mjs +199 -91
  8. package/fesm2022/yukit-web-helm-alert.mjs.map +1 -1
  9. package/fesm2022/yukit-web-helm-aspect-ratio.mjs +77 -43
  10. package/fesm2022/yukit-web-helm-aspect-ratio.mjs.map +1 -1
  11. package/fesm2022/yukit-web-helm-attachment.mjs +552 -205
  12. package/fesm2022/yukit-web-helm-attachment.mjs.map +1 -1
  13. package/fesm2022/yukit-web-helm-autocomplete.mjs +913 -288
  14. package/fesm2022/yukit-web-helm-autocomplete.mjs.map +1 -1
  15. package/fesm2022/yukit-web-helm-avatar.mjs +298 -137
  16. package/fesm2022/yukit-web-helm-avatar.mjs.map +1 -1
  17. package/fesm2022/yukit-web-helm-badge.mjs +78 -44
  18. package/fesm2022/yukit-web-helm-badge.mjs.map +1 -1
  19. package/fesm2022/yukit-web-helm-breadcrumb.mjs +466 -183
  20. package/fesm2022/yukit-web-helm-breadcrumb.mjs.map +1 -1
  21. package/fesm2022/yukit-web-helm-bubble.mjs +297 -118
  22. package/fesm2022/yukit-web-helm-bubble.mjs.map +1 -1
  23. package/fesm2022/yukit-web-helm-button-group.mjs +179 -83
  24. package/fesm2022/yukit-web-helm-button-group.mjs.map +1 -1
  25. package/fesm2022/yukit-web-helm-button.mjs +137 -67
  26. package/fesm2022/yukit-web-helm-button.mjs.map +1 -1
  27. package/fesm2022/yukit-web-helm-calendar.mjs +957 -230
  28. package/fesm2022/yukit-web-helm-calendar.mjs.map +1 -1
  29. package/fesm2022/yukit-web-helm-card.mjs +318 -136
  30. package/fesm2022/yukit-web-helm-card.mjs.map +1 -1
  31. package/fesm2022/yukit-web-helm-carousel.mjs +563 -233
  32. package/fesm2022/yukit-web-helm-carousel.mjs.map +1 -1
  33. package/fesm2022/yukit-web-helm-checkbox.mjs +367 -101
  34. package/fesm2022/yukit-web-helm-checkbox.mjs.map +1 -1
  35. package/fesm2022/yukit-web-helm-collapsible.mjs +155 -61
  36. package/fesm2022/yukit-web-helm-collapsible.mjs.map +1 -1
  37. package/fesm2022/yukit-web-helm-combobox.mjs +1572 -481
  38. package/fesm2022/yukit-web-helm-combobox.mjs.map +1 -1
  39. package/fesm2022/yukit-web-helm-command.mjs +752 -260
  40. package/fesm2022/yukit-web-helm-command.mjs.map +1 -1
  41. package/fesm2022/yukit-web-helm-context-menu.mjs +161 -63
  42. package/fesm2022/yukit-web-helm-context-menu.mjs.map +1 -1
  43. package/fesm2022/yukit-web-helm-date-picker.mjs +2322 -932
  44. package/fesm2022/yukit-web-helm-date-picker.mjs.map +1 -1
  45. package/fesm2022/yukit-web-helm-dialog.mjs +625 -240
  46. package/fesm2022/yukit-web-helm-dialog.mjs.map +1 -1
  47. package/fesm2022/yukit-web-helm-drawer.mjs +539 -222
  48. package/fesm2022/yukit-web-helm-drawer.mjs.map +1 -1
  49. package/fesm2022/yukit-web-helm-dropdown-menu.mjs +1295 -493
  50. package/fesm2022/yukit-web-helm-dropdown-menu.mjs.map +1 -1
  51. package/fesm2022/yukit-web-helm-empty.mjs +280 -121
  52. package/fesm2022/yukit-web-helm-empty.mjs.map +1 -1
  53. package/fesm2022/yukit-web-helm-field.mjs +670 -301
  54. package/fesm2022/yukit-web-helm-field.mjs.map +1 -1
  55. package/fesm2022/yukit-web-helm-hover-card.mjs +198 -99
  56. package/fesm2022/yukit-web-helm-hover-card.mjs.map +1 -1
  57. package/fesm2022/yukit-web-helm-input-group.mjs +357 -165
  58. package/fesm2022/yukit-web-helm-input-group.mjs.map +1 -1
  59. package/fesm2022/yukit-web-helm-input-otp.mjs +306 -114
  60. package/fesm2022/yukit-web-helm-input-otp.mjs.map +1 -1
  61. package/fesm2022/yukit-web-helm-input.mjs +62 -30
  62. package/fesm2022/yukit-web-helm-input.mjs.map +1 -1
  63. package/fesm2022/yukit-web-helm-item.mjs +545 -227
  64. package/fesm2022/yukit-web-helm-item.mjs.map +1 -1
  65. package/fesm2022/yukit-web-helm-kbd.mjs +85 -44
  66. package/fesm2022/yukit-web-helm-kbd.mjs.map +1 -1
  67. package/fesm2022/yukit-web-helm-label.mjs +60 -28
  68. package/fesm2022/yukit-web-helm-label.mjs.map +1 -1
  69. package/fesm2022/yukit-web-helm-marker.mjs +165 -74
  70. package/fesm2022/yukit-web-helm-marker.mjs.map +1 -1
  71. package/fesm2022/yukit-web-helm-menubar.mjs +207 -82
  72. package/fesm2022/yukit-web-helm-menubar.mjs.map +1 -1
  73. package/fesm2022/yukit-web-helm-message.mjs +277 -112
  74. package/fesm2022/yukit-web-helm-message.mjs.map +1 -1
  75. package/fesm2022/yukit-web-helm-native-select.mjs +363 -129
  76. package/fesm2022/yukit-web-helm-native-select.mjs.map +1 -1
  77. package/fesm2022/yukit-web-helm-navigation-menu.mjs +398 -166
  78. package/fesm2022/yukit-web-helm-navigation-menu.mjs.map +1 -1
  79. package/fesm2022/yukit-web-helm-pagination.mjs +1444 -460
  80. package/fesm2022/yukit-web-helm-pagination.mjs.map +1 -1
  81. package/fesm2022/yukit-web-helm-popover.mjs +358 -133
  82. package/fesm2022/yukit-web-helm-popover.mjs.map +1 -1
  83. package/fesm2022/yukit-web-helm-progress.mjs +126 -58
  84. package/fesm2022/yukit-web-helm-progress.mjs.map +1 -1
  85. package/fesm2022/yukit-web-helm-radio-group.mjs +420 -144
  86. package/fesm2022/yukit-web-helm-radio-group.mjs.map +1 -1
  87. package/fesm2022/yukit-web-helm-resizable.mjs +210 -91
  88. package/fesm2022/yukit-web-helm-resizable.mjs.map +1 -1
  89. package/fesm2022/yukit-web-helm-scroll-area.mjs +64 -34
  90. package/fesm2022/yukit-web-helm-scroll-area.mjs.map +1 -1
  91. package/fesm2022/yukit-web-helm-select.mjs +1059 -351
  92. package/fesm2022/yukit-web-helm-select.mjs.map +1 -1
  93. package/fesm2022/yukit-web-helm-separator.mjs +61 -31
  94. package/fesm2022/yukit-web-helm-separator.mjs.map +1 -1
  95. package/fesm2022/yukit-web-helm-sheet.mjs +590 -231
  96. package/fesm2022/yukit-web-helm-sheet.mjs.map +1 -1
  97. package/fesm2022/yukit-web-helm-sidebar.mjs +1781 -757
  98. package/fesm2022/yukit-web-helm-sidebar.mjs.map +1 -1
  99. package/fesm2022/yukit-web-helm-skeleton.mjs +45 -27
  100. package/fesm2022/yukit-web-helm-skeleton.mjs.map +1 -1
  101. package/fesm2022/yukit-web-helm-slider.mjs +139 -59
  102. package/fesm2022/yukit-web-helm-slider.mjs.map +1 -1
  103. package/fesm2022/yukit-web-helm-sonner.mjs +350 -62
  104. package/fesm2022/yukit-web-helm-sonner.mjs.map +1 -1
  105. package/fesm2022/yukit-web-helm-spinner.mjs +118 -44
  106. package/fesm2022/yukit-web-helm-spinner.mjs.map +1 -1
  107. package/fesm2022/yukit-web-helm-switch.mjs +326 -94
  108. package/fesm2022/yukit-web-helm-switch.mjs.map +1 -1
  109. package/fesm2022/yukit-web-helm-table.mjs +374 -177
  110. package/fesm2022/yukit-web-helm-table.mjs.map +1 -1
  111. package/fesm2022/yukit-web-helm-tabs.mjs +549 -173
  112. package/fesm2022/yukit-web-helm-tabs.mjs.map +1 -1
  113. package/fesm2022/yukit-web-helm-textarea.mjs +62 -30
  114. package/fesm2022/yukit-web-helm-textarea.mjs.map +1 -1
  115. package/fesm2022/yukit-web-helm-toggle-group.mjs +291 -89
  116. package/fesm2022/yukit-web-helm-toggle-group.mjs.map +1 -1
  117. package/fesm2022/yukit-web-helm-toggle.mjs +132 -57
  118. package/fesm2022/yukit-web-helm-toggle.mjs.map +1 -1
  119. package/fesm2022/yukit-web-helm-tooltip.mjs +84 -54
  120. package/fesm2022/yukit-web-helm-tooltip.mjs.map +1 -1
  121. package/fesm2022/yukit-web-helm-typography.mjs +461 -202
  122. package/fesm2022/yukit-web-helm-typography.mjs.map +1 -1
  123. package/fesm2022/yukit-web-helm-utils.mjs +131 -253
  124. package/fesm2022/yukit-web-helm-utils.mjs.map +1 -1
  125. package/fesm2022/yukit-web.mjs +24457 -9655
  126. package/fesm2022/yukit-web.mjs.map +1 -1
  127. package/package.json +9 -9
  128. package/types/yukit-web-chart.d.ts +184 -125
  129. package/types/yukit-web-helm-accordion.d.ts +49 -28
  130. package/types/yukit-web-helm-alert-dialog.d.ts +127 -73
  131. package/types/yukit-web-helm-alert.d.ts +30 -32
  132. package/types/yukit-web-helm-aspect-ratio.d.ts +17 -15
  133. package/types/yukit-web-helm-attachment.d.ts +97 -69
  134. package/types/yukit-web-helm-autocomplete.d.ts +205 -79
  135. package/types/yukit-web-helm-avatar.d.ts +44 -39
  136. package/types/yukit-web-helm-badge.d.ts +18 -17
  137. package/types/yukit-web-helm-breadcrumb.d.ts +69 -45
  138. package/types/yukit-web-helm-bubble.d.ts +54 -40
  139. package/types/yukit-web-helm-button-group.d.ts +29 -22
  140. package/types/yukit-web-helm-button.d.ts +41 -31
  141. package/types/yukit-web-helm-calendar.d.ts +157 -85
  142. package/types/yukit-web-helm-card.d.ts +38 -42
  143. package/types/yukit-web-helm-carousel.d.ts +105 -73
  144. package/types/yukit-web-helm-checkbox.d.ts +117 -58
  145. package/types/yukit-web-helm-collapsible.d.ts +34 -19
  146. package/types/yukit-web-helm-combobox.d.ts +355 -150
  147. package/types/yukit-web-helm-command.d.ts +140 -73
  148. package/types/yukit-web-helm-context-menu.d.ts +48 -27
  149. package/types/yukit-web-helm-date-picker.d.ts +852 -556
  150. package/types/yukit-web-helm-dialog.d.ts +106 -78
  151. package/types/yukit-web-helm-drawer.d.ts +90 -61
  152. package/types/yukit-web-helm-dropdown-menu.d.ts +278 -158
  153. package/types/yukit-web-helm-empty.d.ts +38 -42
  154. package/types/yukit-web-helm-field.d.ts +122 -91
  155. package/types/yukit-web-helm-hover-card.d.ts +39 -27
  156. package/types/yukit-web-helm-input-group.d.ts +63 -41
  157. package/types/yukit-web-helm-input-otp.d.ts +38 -35
  158. package/types/yukit-web-helm-input.d.ts +19 -12
  159. package/types/yukit-web-helm-item.d.ts +90 -82
  160. package/types/yukit-web-helm-kbd.d.ts +10 -15
  161. package/types/yukit-web-helm-label.d.ts +14 -11
  162. package/types/yukit-web-helm-marker.d.ts +26 -27
  163. package/types/yukit-web-helm-menubar.d.ts +61 -32
  164. package/types/yukit-web-helm-message.d.ts +34 -38
  165. package/types/yukit-web-helm-native-select.d.ts +102 -61
  166. package/types/yukit-web-helm-navigation-menu.d.ts +76 -42
  167. package/types/yukit-web-helm-pagination.d.ts +344 -166
  168. package/types/yukit-web-helm-popover.d.ts +62 -42
  169. package/types/yukit-web-helm-progress.d.ts +27 -20
  170. package/types/yukit-web-helm-radio-group.d.ts +121 -63
  171. package/types/yukit-web-helm-resizable.d.ts +46 -24
  172. package/types/yukit-web-helm-scroll-area.d.ts +6 -10
  173. package/types/yukit-web-helm-select.d.ts +231 -114
  174. package/types/yukit-web-helm-separator.d.ts +15 -12
  175. package/types/yukit-web-helm-sheet.d.ts +94 -65
  176. package/types/yukit-web-helm-sidebar.d.ts +322 -232
  177. package/types/yukit-web-helm-skeleton.d.ts +6 -10
  178. package/types/yukit-web-helm-slider.d.ts +33 -13
  179. package/types/yukit-web-helm-sonner.d.ts +112 -51
  180. package/types/yukit-web-helm-spinner.d.ts +24 -17
  181. package/types/yukit-web-helm-switch.d.ts +89 -51
  182. package/types/yukit-web-helm-table.d.ts +38 -42
  183. package/types/yukit-web-helm-tabs.d.ts +116 -60
  184. package/types/yukit-web-helm-textarea.d.ts +19 -12
  185. package/types/yukit-web-helm-toggle-group.d.ts +81 -32
  186. package/types/yukit-web-helm-toggle.d.ts +39 -21
  187. package/types/yukit-web-helm-tooltip.d.ts +21 -16
  188. package/types/yukit-web-helm-typography.d.ts +62 -77
  189. package/types/yukit-web-helm-utils.d.ts +8 -11
  190. package/types/yukit-web.d.ts +5092 -2351
@@ -1 +1 @@
1
- {"version":3,"file":"yukit-web-helm-switch.mjs","sources":["../../../projects/yukit-web/helm/switch/src/lib/hlm-switch-thumb.ts","../../../projects/yukit-web/helm/switch/src/lib/hlm-switch.ts","../../../projects/yukit-web/helm/switch/src/index.ts","../../../projects/yukit-web/helm/switch/src/yukit-web-helm-switch.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: 'brn-switch-thumb[hlm],[hlmSwitchThumb]',\n\thost: { 'data-slot': 'switch-thumb' },\n})\nexport class HlmSwitchThumb {\n\tconstructor() {\n\t\tclasses(() => 'bg-background dark:data-unchecked:bg-foreground dark:data-checked:bg-primary-foreground rounded-full group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-unchecked:translate-x-0 data-checked:ltr:translate-x-[calc(100%-2px)] data-checked:rtl:-translate-x-[calc(100%-2px)] pointer-events-none block ring-0 transition-transform');\n\t}\n}\n","import type { BooleanInput } from '@angular/cdk/coercion';\nimport {\n\tbooleanAttribute,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tforwardRef,\n\tinput,\n\tlinkedSignal,\n\toutput,\n} from '@angular/core';\nimport { type ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { ChangeFn, TouchFn } from '@spartan-ng/brain/forms';\nimport { BrnSwitch, type BrnSwitchSize, BrnSwitchThumb } from '@spartan-ng/brain/switch';\nimport { hlm } from 'yukit-web/helm/utils';\nimport type { ClassValue } from 'clsx';\nimport { HlmSwitchThumb } from './hlm-switch-thumb';\n\nexport const HLM_SWITCH_VALUE_ACCESSOR = {\n\tprovide: NG_VALUE_ACCESSOR,\n\tuseExisting: forwardRef(() => HlmSwitch),\n\tmulti: true,\n};\n\n@Component({\n\tselector: 'hlm-switch',\n\timports: [BrnSwitchThumb, BrnSwitch, HlmSwitchThumb],\n\tproviders: [HLM_SWITCH_VALUE_ACCESSOR],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'data-slot': 'switch',\n\t\tclass: 'contents',\n\t\t'[attr.aria-label]': 'null',\n\t\t'[attr.aria-labelledby]': 'null',\n\t\t'[attr.aria-describedby]': 'null',\n\t},\n\ttemplate: `\n\t\t<brn-switch\n\t\t\t[class]=\"_computedClass()\"\n\t\t\t[size]=\"size()\"\n\t\t\t[checked]=\"checked()\"\n\t\t\t(checkedChange)=\"handleChange($event)\"\n\t\t\t(touched)=\"_onTouched?.()\"\n\t\t\t[disabled]=\"_disabled()\"\n\t\t\t[id]=\"inputId()\"\n\t\t\t[aria-label]=\"ariaLabel()\"\n\t\t\t[aria-labelledby]=\"ariaLabelledby()\"\n\t\t\t[aria-describedby]=\"ariaDescribedby()\"\n\t\t>\n\t\t\t<brn-switch-thumb hlm />\n\t\t</brn-switch>\n\t`,\n})\nexport class HlmSwitch implements ControlValueAccessor {\n\tpublic readonly userClass = input<ClassValue>('', { alias: 'class' });\n\tprotected readonly _computedClass = computed(() =>\n\t\thlm(\n\t\t\t'data-checked:bg-primary data-unchecked:bg-input focus-visible:border-ring focus-visible:ring-ring/50 data-[matches-spartan-invalid=true]:ring-destructive/20 dark:data-[matches-spartan-invalid=true]:ring-destructive/40 data-[matches-spartan-invalid=true]:border-destructive dark:data-[matches-spartan-invalid=true]:border-destructive/50 dark:data-unchecked:bg-input/80 rounded-full border border-transparent focus-visible:ring-3 data-[matches-spartan-invalid=true]:ring-3 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] group/switch inline-flex shrink-0 items-center transition-all outline-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50',\n\t\t\tthis.userClass(),\n\t\t),\n\t);\n\n\t/** The checked state of the switch. */\n\tpublic readonly checkedInput = input<boolean, BooleanInput>(false, { alias: 'checked', transform: booleanAttribute });\n\tpublic readonly checked = linkedSignal(this.checkedInput);\n\n\t/** Emits when the checked state of the switch changes. */\n\tpublic readonly checkedChange = output<boolean>();\n\n\t/** The disabled state of the switch. */\n\tpublic readonly disabled = input<boolean, BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\n\t/** The size of the switch. */\n\tpublic readonly size = input<BrnSwitchSize>('default');\n\n\t/** Used to set the id on the underlying brn element. */\n\tpublic readonly inputId = input<string | null>(null);\n\n\t/** Used to set the aria-label attribute on the underlying brn element. */\n\tpublic readonly ariaLabel = input<string | null>(null, { alias: 'aria-label' });\n\n\t/** Used to set the aria-labelledby attribute on the underlying brn element. */\n\tpublic readonly ariaLabelledby = input<string | null>(null, { alias: 'aria-labelledby' });\n\n\t/** Used to set the aria-describedby attribute on the underlying brn element. */\n\tpublic readonly ariaDescribedby = input<string | null>(null, { alias: 'aria-describedby' });\n\n\tprotected readonly _disabled = linkedSignal(this.disabled);\n\n\tprotected _onChange?: ChangeFn<boolean>;\n\tprotected _onTouched?: TouchFn;\n\n\tprotected handleChange(value: boolean): void {\n\t\tthis.checked.set(value);\n\t\tthis._onChange?.(value);\n\t\tthis.checkedChange.emit(value);\n\t}\n\n\t/** CONTROL VALUE ACCESSOR */\n\twriteValue(value: boolean): void {\n\t\tthis.checked.set(Boolean(value));\n\t}\n\n\tregisterOnChange(fn: ChangeFn<boolean>): void {\n\t\tthis._onChange = fn;\n\t}\n\n\tregisterOnTouched(fn: TouchFn): void {\n\t\tthis._onTouched = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis._disabled.set(isDisabled);\n\t}\n}\n","import { HlmSwitch } from './lib/hlm-switch';\nimport { HlmSwitchThumb } from './lib/hlm-switch-thumb';\n\nexport * from './lib/hlm-switch';\nexport * from './lib/hlm-switch-thumb';\n\nexport const HlmSwitchImports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A,EAAA,wCAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FA2BvC,SAAS,EAAA,UAAA,EAAA,CAAA;kBA7BrB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,YAAY;AACtB,oBAAA,OAAO,EAAE,CAAC,cAAc,EAAE,SAAS,EAAE,cAAc,CAAC;oBACpD,SAAS,EAAE,CAAC,yBAAyB,CAAC;oBACtC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE;AACL,wBAAA,WAAW,EAAE,QAAQ;AACrB,wBAAA,KAAK,EAAE,UAAU;AACjB,wBAAA,mBAAmB,EAAE,MAAM;AAC3B,wBAAA,wBAAwB,EAAE,MAAM;AAChC,wBAAA,yBAAyB,EAAE,MAAM;AACjC,qBAAA;AACD,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;AAeT,CAAA,CAAA;AACD,iBAAA;;;MC9CY,gBAAgB,GAAG,CAAC,SAAS,EAAE,cAAc;;ACN1D;;AAEG;;"}
1
+ {"version":3,"file":"yukit-web-helm-switch.mjs","names":[],"sources":["../../../projects/yukit-web/helm/switch/src/lib/hlm-switch-thumb.ts","../../../projects/yukit-web/helm/switch/src/lib/hlm-switch.ts","../../../projects/yukit-web/helm/switch/src/index.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: 'brn-switch-thumb[hlm],[hlmSwitchThumb]',\n\thost: { 'data-slot': 'switch-thumb' },\n})\nexport class HlmSwitchThumb {\n\tconstructor() {\n\t\tclasses(() => 'bg-background dark:data-unchecked:bg-foreground dark:data-checked:bg-primary-foreground rounded-full group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-unchecked:translate-x-0 data-checked:ltr:translate-x-[calc(100%-2px)] data-checked:rtl:-translate-x-[calc(100%-2px)] pointer-events-none block ring-0 transition-transform');\n\t}\n}\n","import type { BooleanInput } from '@angular/cdk/coercion';\nimport {\n\tbooleanAttribute,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tforwardRef,\n\tinput,\n\tlinkedSignal,\n\toutput,\n} from '@angular/core';\nimport { type ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { ChangeFn, TouchFn } from '@spartan-ng/brain/forms';\nimport { BrnSwitch, type BrnSwitchSize, BrnSwitchThumb } from '@spartan-ng/brain/switch';\nimport { hlm } from 'yukit-web/helm/utils';\nimport type { ClassValue } from 'clsx';\nimport { HlmSwitchThumb } from './hlm-switch-thumb';\n\nexport const HLM_SWITCH_VALUE_ACCESSOR = {\n\tprovide: NG_VALUE_ACCESSOR,\n\tuseExisting: forwardRef(() => HlmSwitch),\n\tmulti: true,\n};\n\n@Component({\n\tselector: 'hlm-switch',\n\timports: [BrnSwitchThumb, BrnSwitch, HlmSwitchThumb],\n\tproviders: [HLM_SWITCH_VALUE_ACCESSOR],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'data-slot': 'switch',\n\t\tclass: 'contents',\n\t\t'[attr.aria-label]': 'null',\n\t\t'[attr.aria-labelledby]': 'null',\n\t\t'[attr.aria-describedby]': 'null',\n\t},\n\ttemplate: `\n\t\t<brn-switch\n\t\t\t[class]=\"_computedClass()\"\n\t\t\t[size]=\"size()\"\n\t\t\t[checked]=\"checked()\"\n\t\t\t(checkedChange)=\"handleChange($event)\"\n\t\t\t(touched)=\"_onTouched?.()\"\n\t\t\t[disabled]=\"_disabled()\"\n\t\t\t[id]=\"inputId()\"\n\t\t\t[aria-label]=\"ariaLabel()\"\n\t\t\t[aria-labelledby]=\"ariaLabelledby()\"\n\t\t\t[aria-describedby]=\"ariaDescribedby()\"\n\t\t>\n\t\t\t<brn-switch-thumb hlm />\n\t\t</brn-switch>\n\t`,\n})\nexport class HlmSwitch implements ControlValueAccessor {\n\tpublic readonly userClass = input<ClassValue>('', { alias: 'class' });\n\tprotected readonly _computedClass = computed(() =>\n\t\thlm(\n\t\t\t'data-checked:bg-primary data-unchecked:bg-input focus-visible:border-ring focus-visible:ring-ring/50 data-[matches-spartan-invalid=true]:ring-destructive/20 dark:data-[matches-spartan-invalid=true]:ring-destructive/40 data-[matches-spartan-invalid=true]:border-destructive dark:data-[matches-spartan-invalid=true]:border-destructive/50 dark:data-unchecked:bg-input/80 rounded-full border border-transparent focus-visible:ring-3 data-[matches-spartan-invalid=true]:ring-3 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] group/switch inline-flex shrink-0 items-center transition-all outline-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50',\n\t\t\tthis.userClass(),\n\t\t),\n\t);\n\n\t/** The checked state of the switch. */\n\tpublic readonly checkedInput = input<boolean, BooleanInput>(false, { alias: 'checked', transform: booleanAttribute });\n\tpublic readonly checked = linkedSignal(this.checkedInput);\n\n\t/** Emits when the checked state of the switch changes. */\n\tpublic readonly checkedChange = output<boolean>();\n\n\t/** The disabled state of the switch. */\n\tpublic readonly disabled = input<boolean, BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\n\t/** The size of the switch. */\n\tpublic readonly size = input<BrnSwitchSize>('default');\n\n\t/** Used to set the id on the underlying brn element. */\n\tpublic readonly inputId = input<string | null>(null);\n\n\t/** Used to set the aria-label attribute on the underlying brn element. */\n\tpublic readonly ariaLabel = input<string | null>(null, { alias: 'aria-label' });\n\n\t/** Used to set the aria-labelledby attribute on the underlying brn element. */\n\tpublic readonly ariaLabelledby = input<string | null>(null, { alias: 'aria-labelledby' });\n\n\t/** Used to set the aria-describedby attribute on the underlying brn element. */\n\tpublic readonly ariaDescribedby = input<string | null>(null, { alias: 'aria-describedby' });\n\n\tprotected readonly _disabled = linkedSignal(this.disabled);\n\n\tprotected _onChange?: ChangeFn<boolean>;\n\tprotected _onTouched?: TouchFn;\n\n\tprotected handleChange(value: boolean): void {\n\t\tthis.checked.set(value);\n\t\tthis._onChange?.(value);\n\t\tthis.checkedChange.emit(value);\n\t}\n\n\t/** CONTROL VALUE ACCESSOR */\n\twriteValue(value: boolean): void {\n\t\tthis.checked.set(Boolean(value));\n\t}\n\n\tregisterOnChange(fn: ChangeFn<boolean>): void {\n\t\tthis._onChange = fn;\n\t}\n\n\tregisterOnTouched(fn: TouchFn): void {\n\t\tthis._onTouched = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis._disabled.set(isDisabled);\n\t}\n}\n","import { HlmSwitch } from './lib/hlm-switch';\nimport { HlmSwitchThumb } from './lib/hlm-switch-thumb';\n\nexport * from './lib/hlm-switch';\nexport * from './lib/hlm-switch-thumb';\n\nexport const HlmSwitchImports = [HlmSwitch, HlmSwitchThumb] as const;\n"],"mappings":";;;;;AAOA,IAAa,iBAAb,MAAa,eAAc;CAC1B,cAAA;EACC,cAAc,iWAAiW;CAChX;CAHY;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAc,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAd;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAc,cAAA;GAAA,UAAA;GAAA,MAAA,EAAA,YAAA,EAAA,aAAA,eAAA,EAAA;GAAA,UAAA;EAAA,CAAA;CAAA;;AAAd,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAc,YAAA,CAAA;EAJ1B,MAAA;EAAU,MAAA,CAAA;GACV,UAAU;GACV,MAAM,EAAE,aAAa,eAAc;EACnC,CAAA;;;;ACYD,MAAa,4BAA4B;CACxC,SAAS;CACT,aAAa,iBAAiB,SAAS;CACvC,OAAO;AACP;AA+BD,IAAa,YAAb,MAAa,UAAS;CA7BtB,cA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EAAA,eAAA,gBAAA;GAAA,MAAA;IAAA,YAAA,EAAA,aAAA,SAAA;IAAA,YAAA;KAAA,mBAAA;KAAA,wBAAA;KAAA,yBAAA;IAAA;IAAA,gBAAA;GAAA;GAAA,WA1BV,CAAC,yBAAyB;GAAC,UAAA;GAAA,UAS5B;;;;;;;;;;;;;;;;GAeT,UAAA;GAAA,cAAA;IAAA;KAAA,MAAA;KAAA,MAzBS;KAAc,UAAA;IAAA;IAAA;KAAA,MAAA;KAAA,MAAE;KAAS,UAAA;KAAA,QAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;KAAA;KAAA,SAAA,CAAA,iBAAA,SAAA;IAAA;IAAA;KAAA,MAAA;KAAA,MAAE;KAAc,UAAA;IAAA;GAAA;GAAA,iBAAA,GAAA,wBAAA;EAAA,CAAA;CAAA;;AA2BvC,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAS,YAAA,CAAA;EA7BrB,MAAA;EAAU,MAAA,CAAA;GACV,UAAU;GACV,SAAS;IAAC;IAAgB;IAAW;GAAc;GACnD,WAAW,CAAC,yBAAyB;GACrC,iBAAiB,wBAAwB;GACzC,MAAM;IACL,aAAa;IACb,OAAO;IACP,qBAAqB;IACrB,0BAA0B;IAC1B,2BAA2B;GAC3B;GACD,UAAU;;;;;;;;;;;;;;;;EAgBV,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC9CD,MAAa,mBAAmB,CAAC,WAAW,cAAc"}
@@ -1,180 +1,377 @@
1
- import * as i0 from '@angular/core';
2
- import { Directive } from '@angular/core';
3
- import { classes } from 'yukit-web/helm/utils';
4
-
5
- class HlmTableContainer {
6
- constructor() {
7
- classes(() => 'relative w-full overflow-x-auto');
8
- }
9
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmTableContainer, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
10
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmTableContainer, isStandalone: true, selector: "div[hlmTableContainer]", host: { attributes: { "data-slot": "table-container" } }, ngImport: i0 }); }
11
- }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmTableContainer, decorators: [{
13
- type: Directive,
14
- args: [{
15
- selector: 'div[hlmTableContainer]',
16
- host: { 'data-slot': 'table-container' },
17
- }]
18
- }], ctorParameters: () => [] });
19
- /**
20
- * Directive to apply Shadcn-like styling to a <table> element.
21
- */
22
- class HlmTable {
23
- constructor() {
24
- classes(() => 'w-full caption-bottom text-sm');
25
- }
26
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmTable, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
27
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmTable, isStandalone: true, selector: "table[hlmTable]", host: { attributes: { "data-slot": "table" } }, ngImport: i0 }); }
28
- }
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmTable, decorators: [{
30
- type: Directive,
31
- args: [{
32
- selector: 'table[hlmTable]',
33
- host: { 'data-slot': 'table' },
34
- }]
35
- }], ctorParameters: () => [] });
36
- /**
37
- * Directive to apply Shadcn-like styling to a <thead> element
38
- * within an HlmTable context.
39
- */
40
- class HlmTHead {
41
- constructor() {
42
- classes(() => '[&_tr]:border-b');
43
- }
44
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmTHead, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
45
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmTHead, isStandalone: true, selector: "thead[hlmTHead],thead[hlmTableHeader]", host: { attributes: { "data-slot": "table-header" } }, ngImport: i0 }); }
46
- }
47
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmTHead, decorators: [{
48
- type: Directive,
49
- args: [{
50
- selector: 'thead[hlmTHead],thead[hlmTableHeader]',
51
- host: { 'data-slot': 'table-header' },
52
- }]
53
- }], ctorParameters: () => [] });
54
- /**
55
- * Directive to apply Shadcn-like styling to a <tbody> element
56
- * within an HlmTable context.
57
- */
58
- class HlmTBody {
59
- constructor() {
60
- classes(() => '[&_tr:last-child]:border-0');
61
- }
62
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmTBody, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
63
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmTBody, isStandalone: true, selector: "tbody[hlmTBody],tbody[hlmTableBody]", host: { attributes: { "data-slot": "table-body" } }, ngImport: i0 }); }
64
- }
65
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmTBody, decorators: [{
66
- type: Directive,
67
- args: [{
68
- selector: 'tbody[hlmTBody],tbody[hlmTableBody]',
69
- host: { 'data-slot': 'table-body' },
70
- }]
71
- }], ctorParameters: () => [] });
72
- /**
73
- * Directive to apply Shadcn-like styling to a <tfoot> element
74
- * within an HlmTable context.
75
- */
76
- class HlmTFoot {
77
- constructor() {
78
- classes(() => 'bg-muted/50 border-t font-medium [&>tr]:last:border-b-0');
79
- }
80
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmTFoot, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
81
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmTFoot, isStandalone: true, selector: "tfoot[hlmTFoot],tfoot[hlmTableFooter]", host: { attributes: { "data-slot": "table-footer" } }, ngImport: i0 }); }
82
- }
83
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmTFoot, decorators: [{
84
- type: Directive,
85
- args: [{
86
- selector: 'tfoot[hlmTFoot],tfoot[hlmTableFooter]',
87
- host: { 'data-slot': 'table-footer' },
88
- }]
89
- }], ctorParameters: () => [] });
90
- /**
91
- * Directive to apply Shadcn-like styling to a <tr> element
92
- * within an HlmTable context.
93
- */
94
- class HlmTr {
95
- constructor() {
96
- classes(() => 'hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors has-aria-expanded:bg-muted/50');
97
- }
98
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmTr, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
99
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmTr, isStandalone: true, selector: "tr[hlmTr],tr[hlmTableRow]", host: { attributes: { "data-slot": "table-row" } }, ngImport: i0 }); }
100
- }
101
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmTr, decorators: [{
102
- type: Directive,
103
- args: [{
104
- selector: 'tr[hlmTr],tr[hlmTableRow]',
105
- host: { 'data-slot': 'table-row' },
106
- }]
107
- }], ctorParameters: () => [] });
108
- /**
109
- * Directive to apply Shadcn-like styling to a <th> element
110
- * within an HlmTable context.
111
- */
112
- class HlmTh {
113
- constructor() {
114
- classes(() => 'text-foreground h-10 px-2 text-start align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pe-0');
115
- }
116
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmTh, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
117
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmTh, isStandalone: true, selector: "th[hlmTh],th[hlmTableHead]", host: { attributes: { "data-slot": "table-head" } }, ngImport: i0 }); }
118
- }
119
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmTh, decorators: [{
120
- type: Directive,
121
- args: [{
122
- selector: 'th[hlmTh],th[hlmTableHead]',
123
- host: { 'data-slot': 'table-head' },
124
- }]
125
- }], ctorParameters: () => [] });
126
- /**
127
- * Directive to apply Shadcn-like styling to a <td> element
128
- * within an HlmTable context.
129
- */
130
- class HlmTd {
131
- constructor() {
132
- classes(() => 'p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0');
133
- }
134
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmTd, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
135
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmTd, isStandalone: true, selector: "td[hlmTd],td[hlmTableCell]", host: { attributes: { "data-slot": "table-cell" } }, ngImport: i0 }); }
136
- }
137
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmTd, decorators: [{
138
- type: Directive,
139
- args: [{
140
- selector: 'td[hlmTd],td[hlmTableCell]',
141
- host: { 'data-slot': 'table-cell' },
142
- }]
143
- }], ctorParameters: () => [] });
144
- /**
145
- * Directive to apply Shadcn-like styling to a <caption> element
146
- * within an HlmTable context.
147
- */
148
- class HlmCaption {
149
- constructor() {
150
- classes(() => 'text-muted-foreground mt-4 text-sm');
151
- }
152
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCaption, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
153
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.22", type: HlmCaption, isStandalone: true, selector: "caption[hlmCaption],caption[hlmTableCaption]", host: { attributes: { "data-slot": "table-caption" } }, ngImport: i0 }); }
154
- }
155
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HlmCaption, decorators: [{
156
- type: Directive,
157
- args: [{
158
- selector: 'caption[hlmCaption],caption[hlmTableCaption]',
159
- host: { 'data-slot': 'table-caption' },
160
- }]
161
- }], ctorParameters: () => [] });
162
-
1
+ import * as i0 from "@angular/core";
2
+ import { Directive } from "@angular/core";
3
+ import { classes } from "yukit-web/helm/utils";
4
+ var HlmTableContainer = class HlmTableContainer {
5
+ constructor() {
6
+ classes(() => "relative w-full overflow-x-auto");
7
+ }
8
+ static {
9
+ this.ɵfac = i0.ɵɵngDeclareFactory({
10
+ minVersion: "12.0.0",
11
+ version: "22.2.4",
12
+ ngImport: i0,
13
+ type: HlmTableContainer,
14
+ deps: [],
15
+ target: i0.ɵɵFactoryTarget.Directive
16
+ });
17
+ }
18
+ static {
19
+ this.ɵdir = i0.ɵɵngDeclareDirective({
20
+ minVersion: "14.0.0",
21
+ version: "22.2.4",
22
+ type: HlmTableContainer,
23
+ isStandalone: true,
24
+ selector: "div[hlmTableContainer]",
25
+ host: { attributes: { "data-slot": "table-container" } },
26
+ ngImport: i0
27
+ });
28
+ }
29
+ };
30
+ i0.ɵɵngDeclareClassMetadata({
31
+ minVersion: "12.0.0",
32
+ version: "22.2.4",
33
+ ngImport: i0,
34
+ type: HlmTableContainer,
35
+ decorators: [{
36
+ type: Directive,
37
+ args: [{
38
+ selector: "div[hlmTableContainer]",
39
+ host: { "data-slot": "table-container" }
40
+ }]
41
+ }],
42
+ ctorParameters: () => []
43
+ });
44
+ var HlmTable = class HlmTable {
45
+ constructor() {
46
+ classes(() => "w-full caption-bottom text-sm");
47
+ }
48
+ static {
49
+ this.ɵfac = i0.ɵɵngDeclareFactory({
50
+ minVersion: "12.0.0",
51
+ version: "22.2.4",
52
+ ngImport: i0,
53
+ type: HlmTable,
54
+ deps: [],
55
+ target: i0.ɵɵFactoryTarget.Directive
56
+ });
57
+ }
58
+ static {
59
+ this.ɵdir = i0.ɵɵngDeclareDirective({
60
+ minVersion: "14.0.0",
61
+ version: "22.2.4",
62
+ type: HlmTable,
63
+ isStandalone: true,
64
+ selector: "table[hlmTable]",
65
+ host: { attributes: { "data-slot": "table" } },
66
+ ngImport: i0
67
+ });
68
+ }
69
+ };
70
+ i0.ɵɵngDeclareClassMetadata({
71
+ minVersion: "12.0.0",
72
+ version: "22.2.4",
73
+ ngImport: i0,
74
+ type: HlmTable,
75
+ decorators: [{
76
+ type: Directive,
77
+ args: [{
78
+ selector: "table[hlmTable]",
79
+ host: { "data-slot": "table" }
80
+ }]
81
+ }],
82
+ ctorParameters: () => []
83
+ });
84
+ var HlmTHead = class HlmTHead {
85
+ constructor() {
86
+ classes(() => "[&_tr]:border-b");
87
+ }
88
+ static {
89
+ this.ɵfac = i0.ɵɵngDeclareFactory({
90
+ minVersion: "12.0.0",
91
+ version: "22.2.4",
92
+ ngImport: i0,
93
+ type: HlmTHead,
94
+ deps: [],
95
+ target: i0.ɵɵFactoryTarget.Directive
96
+ });
97
+ }
98
+ static {
99
+ this.ɵdir = i0.ɵɵngDeclareDirective({
100
+ minVersion: "14.0.0",
101
+ version: "22.2.4",
102
+ type: HlmTHead,
103
+ isStandalone: true,
104
+ selector: "thead[hlmTHead],thead[hlmTableHeader]",
105
+ host: { attributes: { "data-slot": "table-header" } },
106
+ ngImport: i0
107
+ });
108
+ }
109
+ };
110
+ i0.ɵɵngDeclareClassMetadata({
111
+ minVersion: "12.0.0",
112
+ version: "22.2.4",
113
+ ngImport: i0,
114
+ type: HlmTHead,
115
+ decorators: [{
116
+ type: Directive,
117
+ args: [{
118
+ selector: "thead[hlmTHead],thead[hlmTableHeader]",
119
+ host: { "data-slot": "table-header" }
120
+ }]
121
+ }],
122
+ ctorParameters: () => []
123
+ });
124
+ var HlmTBody = class HlmTBody {
125
+ constructor() {
126
+ classes(() => "[&_tr:last-child]:border-0");
127
+ }
128
+ static {
129
+ this.ɵfac = i0.ɵɵngDeclareFactory({
130
+ minVersion: "12.0.0",
131
+ version: "22.2.4",
132
+ ngImport: i0,
133
+ type: HlmTBody,
134
+ deps: [],
135
+ target: i0.ɵɵFactoryTarget.Directive
136
+ });
137
+ }
138
+ static {
139
+ this.ɵdir = i0.ɵɵngDeclareDirective({
140
+ minVersion: "14.0.0",
141
+ version: "22.2.4",
142
+ type: HlmTBody,
143
+ isStandalone: true,
144
+ selector: "tbody[hlmTBody],tbody[hlmTableBody]",
145
+ host: { attributes: { "data-slot": "table-body" } },
146
+ ngImport: i0
147
+ });
148
+ }
149
+ };
150
+ i0.ɵɵngDeclareClassMetadata({
151
+ minVersion: "12.0.0",
152
+ version: "22.2.4",
153
+ ngImport: i0,
154
+ type: HlmTBody,
155
+ decorators: [{
156
+ type: Directive,
157
+ args: [{
158
+ selector: "tbody[hlmTBody],tbody[hlmTableBody]",
159
+ host: { "data-slot": "table-body" }
160
+ }]
161
+ }],
162
+ ctorParameters: () => []
163
+ });
164
+ var HlmTFoot = class HlmTFoot {
165
+ constructor() {
166
+ classes(() => "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0");
167
+ }
168
+ static {
169
+ this.ɵfac = i0.ɵɵngDeclareFactory({
170
+ minVersion: "12.0.0",
171
+ version: "22.2.4",
172
+ ngImport: i0,
173
+ type: HlmTFoot,
174
+ deps: [],
175
+ target: i0.ɵɵFactoryTarget.Directive
176
+ });
177
+ }
178
+ static {
179
+ this.ɵdir = i0.ɵɵngDeclareDirective({
180
+ minVersion: "14.0.0",
181
+ version: "22.2.4",
182
+ type: HlmTFoot,
183
+ isStandalone: true,
184
+ selector: "tfoot[hlmTFoot],tfoot[hlmTableFooter]",
185
+ host: { attributes: { "data-slot": "table-footer" } },
186
+ ngImport: i0
187
+ });
188
+ }
189
+ };
190
+ i0.ɵɵngDeclareClassMetadata({
191
+ minVersion: "12.0.0",
192
+ version: "22.2.4",
193
+ ngImport: i0,
194
+ type: HlmTFoot,
195
+ decorators: [{
196
+ type: Directive,
197
+ args: [{
198
+ selector: "tfoot[hlmTFoot],tfoot[hlmTableFooter]",
199
+ host: { "data-slot": "table-footer" }
200
+ }]
201
+ }],
202
+ ctorParameters: () => []
203
+ });
204
+ var HlmTr = class HlmTr {
205
+ constructor() {
206
+ classes(() => "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors has-aria-expanded:bg-muted/50");
207
+ }
208
+ static {
209
+ this.ɵfac = i0.ɵɵngDeclareFactory({
210
+ minVersion: "12.0.0",
211
+ version: "22.2.4",
212
+ ngImport: i0,
213
+ type: HlmTr,
214
+ deps: [],
215
+ target: i0.ɵɵFactoryTarget.Directive
216
+ });
217
+ }
218
+ static {
219
+ this.ɵdir = i0.ɵɵngDeclareDirective({
220
+ minVersion: "14.0.0",
221
+ version: "22.2.4",
222
+ type: HlmTr,
223
+ isStandalone: true,
224
+ selector: "tr[hlmTr],tr[hlmTableRow]",
225
+ host: { attributes: { "data-slot": "table-row" } },
226
+ ngImport: i0
227
+ });
228
+ }
229
+ };
230
+ i0.ɵɵngDeclareClassMetadata({
231
+ minVersion: "12.0.0",
232
+ version: "22.2.4",
233
+ ngImport: i0,
234
+ type: HlmTr,
235
+ decorators: [{
236
+ type: Directive,
237
+ args: [{
238
+ selector: "tr[hlmTr],tr[hlmTableRow]",
239
+ host: { "data-slot": "table-row" }
240
+ }]
241
+ }],
242
+ ctorParameters: () => []
243
+ });
244
+ var HlmTh = class HlmTh {
245
+ constructor() {
246
+ classes(() => "text-foreground h-10 px-2 text-start align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pe-0");
247
+ }
248
+ static {
249
+ this.ɵfac = i0.ɵɵngDeclareFactory({
250
+ minVersion: "12.0.0",
251
+ version: "22.2.4",
252
+ ngImport: i0,
253
+ type: HlmTh,
254
+ deps: [],
255
+ target: i0.ɵɵFactoryTarget.Directive
256
+ });
257
+ }
258
+ static {
259
+ this.ɵdir = i0.ɵɵngDeclareDirective({
260
+ minVersion: "14.0.0",
261
+ version: "22.2.4",
262
+ type: HlmTh,
263
+ isStandalone: true,
264
+ selector: "th[hlmTh],th[hlmTableHead]",
265
+ host: { attributes: { "data-slot": "table-head" } },
266
+ ngImport: i0
267
+ });
268
+ }
269
+ };
270
+ i0.ɵɵngDeclareClassMetadata({
271
+ minVersion: "12.0.0",
272
+ version: "22.2.4",
273
+ ngImport: i0,
274
+ type: HlmTh,
275
+ decorators: [{
276
+ type: Directive,
277
+ args: [{
278
+ selector: "th[hlmTh],th[hlmTableHead]",
279
+ host: { "data-slot": "table-head" }
280
+ }]
281
+ }],
282
+ ctorParameters: () => []
283
+ });
284
+ var HlmTd = class HlmTd {
285
+ constructor() {
286
+ classes(() => "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0");
287
+ }
288
+ static {
289
+ this.ɵfac = i0.ɵɵngDeclareFactory({
290
+ minVersion: "12.0.0",
291
+ version: "22.2.4",
292
+ ngImport: i0,
293
+ type: HlmTd,
294
+ deps: [],
295
+ target: i0.ɵɵFactoryTarget.Directive
296
+ });
297
+ }
298
+ static {
299
+ this.ɵdir = i0.ɵɵngDeclareDirective({
300
+ minVersion: "14.0.0",
301
+ version: "22.2.4",
302
+ type: HlmTd,
303
+ isStandalone: true,
304
+ selector: "td[hlmTd],td[hlmTableCell]",
305
+ host: { attributes: { "data-slot": "table-cell" } },
306
+ ngImport: i0
307
+ });
308
+ }
309
+ };
310
+ i0.ɵɵngDeclareClassMetadata({
311
+ minVersion: "12.0.0",
312
+ version: "22.2.4",
313
+ ngImport: i0,
314
+ type: HlmTd,
315
+ decorators: [{
316
+ type: Directive,
317
+ args: [{
318
+ selector: "td[hlmTd],td[hlmTableCell]",
319
+ host: { "data-slot": "table-cell" }
320
+ }]
321
+ }],
322
+ ctorParameters: () => []
323
+ });
324
+ var HlmCaption = class HlmCaption {
325
+ constructor() {
326
+ classes(() => "text-muted-foreground mt-4 text-sm");
327
+ }
328
+ static {
329
+ this.ɵfac = i0.ɵɵngDeclareFactory({
330
+ minVersion: "12.0.0",
331
+ version: "22.2.4",
332
+ ngImport: i0,
333
+ type: HlmCaption,
334
+ deps: [],
335
+ target: i0.ɵɵFactoryTarget.Directive
336
+ });
337
+ }
338
+ static {
339
+ this.ɵdir = i0.ɵɵngDeclareDirective({
340
+ minVersion: "14.0.0",
341
+ version: "22.2.4",
342
+ type: HlmCaption,
343
+ isStandalone: true,
344
+ selector: "caption[hlmCaption],caption[hlmTableCaption]",
345
+ host: { attributes: { "data-slot": "table-caption" } },
346
+ ngImport: i0
347
+ });
348
+ }
349
+ };
350
+ i0.ɵɵngDeclareClassMetadata({
351
+ minVersion: "12.0.0",
352
+ version: "22.2.4",
353
+ ngImport: i0,
354
+ type: HlmCaption,
355
+ decorators: [{
356
+ type: Directive,
357
+ args: [{
358
+ selector: "caption[hlmCaption],caption[hlmTableCaption]",
359
+ host: { "data-slot": "table-caption" }
360
+ }]
361
+ }],
362
+ ctorParameters: () => []
363
+ });
163
364
  const HlmTableImports = [
164
- HlmCaption,
165
- HlmTableContainer,
166
- HlmTable,
167
- HlmTBody,
168
- HlmTd,
169
- HlmTFoot,
170
- HlmTh,
171
- HlmTHead,
172
- HlmTr,
365
+ HlmCaption,
366
+ HlmTableContainer,
367
+ HlmTable,
368
+ HlmTBody,
369
+ HlmTd,
370
+ HlmTFoot,
371
+ HlmTh,
372
+ HlmTHead,
373
+ HlmTr
173
374
  ];
174
-
175
- /**
176
- * Generated bundle index. Do not edit.
177
- */
178
-
179
375
  export { HlmCaption, HlmTBody, HlmTFoot, HlmTHead, HlmTable, HlmTableContainer, HlmTableImports, HlmTd, HlmTh, HlmTr };
180
- //# sourceMappingURL=yukit-web-helm-table.mjs.map
376
+
377
+ //# sourceMappingURL=yukit-web-helm-table.mjs.map