@vadem/ui 0.0.0-stage → 0.0.2

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 (289) hide show
  1. package/LICENSE-lucide.txt +43 -0
  2. package/README.md +93 -2
  3. package/fesm2022/vadem-ui-accordion.mjs +139 -0
  4. package/fesm2022/vadem-ui-accordion.mjs.map +1 -0
  5. package/fesm2022/vadem-ui-active-filters.mjs +355 -0
  6. package/fesm2022/vadem-ui-active-filters.mjs.map +1 -0
  7. package/fesm2022/vadem-ui-alert-dialog.mjs +433 -0
  8. package/fesm2022/vadem-ui-alert-dialog.mjs.map +1 -0
  9. package/fesm2022/vadem-ui-alert.mjs +266 -0
  10. package/fesm2022/vadem-ui-alert.mjs.map +1 -0
  11. package/fesm2022/vadem-ui-autocomplete.mjs +715 -0
  12. package/fesm2022/vadem-ui-autocomplete.mjs.map +1 -0
  13. package/fesm2022/vadem-ui-avatar.mjs +219 -0
  14. package/fesm2022/vadem-ui-avatar.mjs.map +1 -0
  15. package/fesm2022/vadem-ui-badge.mjs +86 -0
  16. package/fesm2022/vadem-ui-badge.mjs.map +1 -0
  17. package/fesm2022/vadem-ui-breadcrumbs.mjs +61 -0
  18. package/fesm2022/vadem-ui-breadcrumbs.mjs.map +1 -0
  19. package/fesm2022/vadem-ui-button.mjs +220 -0
  20. package/fesm2022/vadem-ui-button.mjs.map +1 -0
  21. package/fesm2022/vadem-ui-calendar.mjs +1314 -0
  22. package/fesm2022/vadem-ui-calendar.mjs.map +1 -0
  23. package/fesm2022/vadem-ui-card.mjs +271 -0
  24. package/fesm2022/vadem-ui-card.mjs.map +1 -0
  25. package/fesm2022/vadem-ui-character-count.mjs +269 -0
  26. package/fesm2022/vadem-ui-character-count.mjs.map +1 -0
  27. package/fesm2022/vadem-ui-chart.mjs +1984 -0
  28. package/fesm2022/vadem-ui-chart.mjs.map +1 -0
  29. package/fesm2022/vadem-ui-checkbox.mjs +67 -0
  30. package/fesm2022/vadem-ui-checkbox.mjs.map +1 -0
  31. package/fesm2022/vadem-ui-color-picker.mjs +815 -0
  32. package/fesm2022/vadem-ui-color-picker.mjs.map +1 -0
  33. package/fesm2022/vadem-ui-command.mjs +735 -0
  34. package/fesm2022/vadem-ui-command.mjs.map +1 -0
  35. package/fesm2022/vadem-ui-copy-button.mjs +375 -0
  36. package/fesm2022/vadem-ui-copy-button.mjs.map +1 -0
  37. package/fesm2022/vadem-ui-date-range-picker.mjs +1011 -0
  38. package/fesm2022/vadem-ui-date-range-picker.mjs.map +1 -0
  39. package/fesm2022/vadem-ui-description-list.mjs +59 -0
  40. package/fesm2022/vadem-ui-description-list.mjs.map +1 -0
  41. package/fesm2022/vadem-ui-dialog.mjs +587 -0
  42. package/fesm2022/vadem-ui-dialog.mjs.map +1 -0
  43. package/fesm2022/vadem-ui-dropzone.mjs +176 -0
  44. package/fesm2022/vadem-ui-dropzone.mjs.map +1 -0
  45. package/fesm2022/vadem-ui-editable-text.mjs +641 -0
  46. package/fesm2022/vadem-ui-editable-text.mjs.map +1 -0
  47. package/fesm2022/vadem-ui-empty-state.mjs +175 -0
  48. package/fesm2022/vadem-ui-empty-state.mjs.map +1 -0
  49. package/fesm2022/vadem-ui-expandable-text.mjs +244 -0
  50. package/fesm2022/vadem-ui-expandable-text.mjs.map +1 -0
  51. package/fesm2022/vadem-ui-field.mjs +583 -0
  52. package/fesm2022/vadem-ui-field.mjs.map +1 -0
  53. package/fesm2022/vadem-ui-file-preview.mjs +532 -0
  54. package/fesm2022/vadem-ui-file-preview.mjs.map +1 -0
  55. package/fesm2022/vadem-ui-file-size.mjs +83 -0
  56. package/fesm2022/vadem-ui-file-size.mjs.map +1 -0
  57. package/fesm2022/vadem-ui-form-error-summary.mjs +201 -0
  58. package/fesm2022/vadem-ui-form-error-summary.mjs.map +1 -0
  59. package/fesm2022/vadem-ui-icon.mjs +303 -0
  60. package/fesm2022/vadem-ui-icon.mjs.map +1 -0
  61. package/fesm2022/vadem-ui-input.mjs +120 -0
  62. package/fesm2022/vadem-ui-input.mjs.map +1 -0
  63. package/fesm2022/vadem-ui-kbd.mjs +286 -0
  64. package/fesm2022/vadem-ui-kbd.mjs.map +1 -0
  65. package/fesm2022/vadem-ui-keyboard.mjs +105 -0
  66. package/fesm2022/vadem-ui-keyboard.mjs.map +1 -0
  67. package/fesm2022/vadem-ui-locale.mjs +443 -0
  68. package/fesm2022/vadem-ui-locale.mjs.map +1 -0
  69. package/fesm2022/vadem-ui-menu.mjs +657 -0
  70. package/fesm2022/vadem-ui-menu.mjs.map +1 -0
  71. package/fesm2022/vadem-ui-navigation-list.mjs +130 -0
  72. package/fesm2022/vadem-ui-navigation-list.mjs.map +1 -0
  73. package/fesm2022/vadem-ui-number-input.mjs +264 -0
  74. package/fesm2022/vadem-ui-number-input.mjs.map +1 -0
  75. package/fesm2022/vadem-ui-otp-input.mjs +86 -0
  76. package/fesm2022/vadem-ui-otp-input.mjs.map +1 -0
  77. package/fesm2022/vadem-ui-pagination.mjs +353 -0
  78. package/fesm2022/vadem-ui-pagination.mjs.map +1 -0
  79. package/fesm2022/vadem-ui-password-input.mjs +213 -0
  80. package/fesm2022/vadem-ui-password-input.mjs.map +1 -0
  81. package/fesm2022/vadem-ui-popover.mjs +178 -0
  82. package/fesm2022/vadem-ui-popover.mjs.map +1 -0
  83. package/fesm2022/vadem-ui-progress.mjs +331 -0
  84. package/fesm2022/vadem-ui-progress.mjs.map +1 -0
  85. package/fesm2022/vadem-ui-radio.mjs +39 -0
  86. package/fesm2022/vadem-ui-radio.mjs.map +1 -0
  87. package/fesm2022/vadem-ui-range-slider.mjs +561 -0
  88. package/fesm2022/vadem-ui-range-slider.mjs.map +1 -0
  89. package/fesm2022/vadem-ui-rating.mjs +404 -0
  90. package/fesm2022/vadem-ui-rating.mjs.map +1 -0
  91. package/fesm2022/vadem-ui-relative-time.mjs +217 -0
  92. package/fesm2022/vadem-ui-relative-time.mjs.map +1 -0
  93. package/fesm2022/vadem-ui-reorder-list.mjs +601 -0
  94. package/fesm2022/vadem-ui-reorder-list.mjs.map +1 -0
  95. package/fesm2022/vadem-ui-scroll-area.mjs +65 -0
  96. package/fesm2022/vadem-ui-scroll-area.mjs.map +1 -0
  97. package/fesm2022/vadem-ui-search-input.mjs +307 -0
  98. package/fesm2022/vadem-ui-search-input.mjs.map +1 -0
  99. package/fesm2022/vadem-ui-segmented.mjs +297 -0
  100. package/fesm2022/vadem-ui-segmented.mjs.map +1 -0
  101. package/fesm2022/vadem-ui-select.mjs +1462 -0
  102. package/fesm2022/vadem-ui-select.mjs.map +1 -0
  103. package/fesm2022/vadem-ui-sidebar.mjs +493 -0
  104. package/fesm2022/vadem-ui-sidebar.mjs.map +1 -0
  105. package/fesm2022/vadem-ui-skeleton.mjs +106 -0
  106. package/fesm2022/vadem-ui-skeleton.mjs.map +1 -0
  107. package/fesm2022/vadem-ui-slider.mjs +60 -0
  108. package/fesm2022/vadem-ui-slider.mjs.map +1 -0
  109. package/fesm2022/vadem-ui-splitter.mjs +438 -0
  110. package/fesm2022/vadem-ui-splitter.mjs.map +1 -0
  111. package/fesm2022/vadem-ui-stat.mjs +369 -0
  112. package/fesm2022/vadem-ui-stat.mjs.map +1 -0
  113. package/fesm2022/vadem-ui-stepper.mjs +483 -0
  114. package/fesm2022/vadem-ui-stepper.mjs.map +1 -0
  115. package/fesm2022/vadem-ui-switch.mjs +45 -0
  116. package/fesm2022/vadem-ui-switch.mjs.map +1 -0
  117. package/fesm2022/vadem-ui-table.mjs +593 -0
  118. package/fesm2022/vadem-ui-table.mjs.map +1 -0
  119. package/fesm2022/vadem-ui-tabs.mjs +405 -0
  120. package/fesm2022/vadem-ui-tabs.mjs.map +1 -0
  121. package/fesm2022/vadem-ui-tag-input.mjs +685 -0
  122. package/fesm2022/vadem-ui-tag-input.mjs.map +1 -0
  123. package/fesm2022/vadem-ui-text-highlight.mjs +126 -0
  124. package/fesm2022/vadem-ui-text-highlight.mjs.map +1 -0
  125. package/fesm2022/vadem-ui-time-input.mjs +430 -0
  126. package/fesm2022/vadem-ui-time-input.mjs.map +1 -0
  127. package/fesm2022/vadem-ui-timeline.mjs +313 -0
  128. package/fesm2022/vadem-ui-timeline.mjs.map +1 -0
  129. package/fesm2022/vadem-ui-toast.mjs +397 -0
  130. package/fesm2022/vadem-ui-toast.mjs.map +1 -0
  131. package/fesm2022/vadem-ui-toolbar.mjs +396 -0
  132. package/fesm2022/vadem-ui-toolbar.mjs.map +1 -0
  133. package/fesm2022/vadem-ui-tooltip.mjs +218 -0
  134. package/fesm2022/vadem-ui-tooltip.mjs.map +1 -0
  135. package/fesm2022/vadem-ui-tree.mjs +551 -0
  136. package/fesm2022/vadem-ui-tree.mjs.map +1 -0
  137. package/fesm2022/vadem-ui-upload-list.mjs +408 -0
  138. package/fesm2022/vadem-ui-upload-list.mjs.map +1 -0
  139. package/fesm2022/vadem-ui.mjs +4 -0
  140. package/fesm2022/vadem-ui.mjs.map +1 -0
  141. package/fonts/jetbrains-mono/OFL.txt +93 -0
  142. package/fonts/jetbrains-mono/jetbrains-mono-cyrillic.woff2 +0 -0
  143. package/fonts/jetbrains-mono/jetbrains-mono-latin.woff2 +0 -0
  144. package/fonts/manrope/OFL.txt +93 -0
  145. package/fonts/manrope/manrope-cyrillic.woff2 +0 -0
  146. package/fonts/manrope/manrope-latin.woff2 +0 -0
  147. package/package.json +329 -3
  148. package/styles/base.css +160 -0
  149. package/styles/components/accordion.css +130 -0
  150. package/styles/components/active-filters.css +42 -0
  151. package/styles/components/alert-dialog.css +34 -0
  152. package/styles/components/alert.css +159 -0
  153. package/styles/components/autocomplete.css +97 -0
  154. package/styles/components/avatar.css +90 -0
  155. package/styles/components/badge.css +91 -0
  156. package/styles/components/breadcrumbs.css +94 -0
  157. package/styles/components/button.css +174 -0
  158. package/styles/components/calendar.css +186 -0
  159. package/styles/components/card.css +206 -0
  160. package/styles/components/character-count.css +41 -0
  161. package/styles/components/chart.css +308 -0
  162. package/styles/components/checkbox.css +115 -0
  163. package/styles/components/color-picker.css +158 -0
  164. package/styles/components/command.css +175 -0
  165. package/styles/components/copy-button.css +58 -0
  166. package/styles/components/date-range-picker.css +153 -0
  167. package/styles/components/description-list.css +69 -0
  168. package/styles/components/dialog.css +334 -0
  169. package/styles/components/dropzone.css +89 -0
  170. package/styles/components/editable-text.css +58 -0
  171. package/styles/components/empty-state.css +72 -0
  172. package/styles/components/expandable-text.css +24 -0
  173. package/styles/components/field.css +148 -0
  174. package/styles/components/file-preview.css +65 -0
  175. package/styles/components/form-error-summary.css +71 -0
  176. package/styles/components/icon.css +38 -0
  177. package/styles/components/index.css +80 -0
  178. package/styles/components/input.css +171 -0
  179. package/styles/components/kbd.css +42 -0
  180. package/styles/components/menu.css +168 -0
  181. package/styles/components/multi-select.css +156 -0
  182. package/styles/components/navigation-list.css +147 -0
  183. package/styles/components/number-input.css +33 -0
  184. package/styles/components/otp-input.css +26 -0
  185. package/styles/components/pagination.css +127 -0
  186. package/styles/components/password-input.css +20 -0
  187. package/styles/components/popover.css +93 -0
  188. package/styles/components/progress-ring.css +112 -0
  189. package/styles/components/progress.css +162 -0
  190. package/styles/components/radio.css +117 -0
  191. package/styles/components/range-slider.css +158 -0
  192. package/styles/components/rating.css +100 -0
  193. package/styles/components/reorder-list.css +143 -0
  194. package/styles/components/scroll-area.css +39 -0
  195. package/styles/components/search-input.css +25 -0
  196. package/styles/components/segmented.css +136 -0
  197. package/styles/components/select.css +257 -0
  198. package/styles/components/sidebar.css +105 -0
  199. package/styles/components/skeleton.css +83 -0
  200. package/styles/components/slider.css +132 -0
  201. package/styles/components/splitter.css +83 -0
  202. package/styles/components/stat.css +62 -0
  203. package/styles/components/stepper.css +236 -0
  204. package/styles/components/switch.css +107 -0
  205. package/styles/components/table.css +195 -0
  206. package/styles/components/tabs.css +198 -0
  207. package/styles/components/tag-input.css +138 -0
  208. package/styles/components/text-highlight.css +22 -0
  209. package/styles/components/time-input.css +96 -0
  210. package/styles/components/timeline.css +182 -0
  211. package/styles/components/toast.css +146 -0
  212. package/styles/components/toolbar.css +72 -0
  213. package/styles/components/tooltip.css +93 -0
  214. package/styles/components/tree.css +88 -0
  215. package/styles/components/upload-list.css +113 -0
  216. package/styles/fonts.css +67 -0
  217. package/styles/index.css +14 -0
  218. package/styles/reset.css +57 -0
  219. package/styles/tokens/primitives.css +364 -0
  220. package/styles/tokens/semantic.css +233 -0
  221. package/types/vadem-ui-accordion.d.ts +43 -0
  222. package/types/vadem-ui-active-filters.d.ts +73 -0
  223. package/types/vadem-ui-alert-dialog.d.ts +87 -0
  224. package/types/vadem-ui-alert.d.ts +64 -0
  225. package/types/vadem-ui-autocomplete.d.ts +156 -0
  226. package/types/vadem-ui-avatar.d.ts +59 -0
  227. package/types/vadem-ui-badge.d.ts +25 -0
  228. package/types/vadem-ui-breadcrumbs.d.ts +22 -0
  229. package/types/vadem-ui-button.d.ts +52 -0
  230. package/types/vadem-ui-calendar.d.ts +327 -0
  231. package/types/vadem-ui-card.d.ts +58 -0
  232. package/types/vadem-ui-character-count.d.ts +71 -0
  233. package/types/vadem-ui-chart.d.ts +452 -0
  234. package/types/vadem-ui-checkbox.d.ts +20 -0
  235. package/types/vadem-ui-color-picker.d.ts +171 -0
  236. package/types/vadem-ui-command.d.ts +145 -0
  237. package/types/vadem-ui-copy-button.d.ts +90 -0
  238. package/types/vadem-ui-date-range-picker.d.ts +216 -0
  239. package/types/vadem-ui-description-list.d.ts +15 -0
  240. package/types/vadem-ui-dialog.d.ts +174 -0
  241. package/types/vadem-ui-dropzone.d.ts +73 -0
  242. package/types/vadem-ui-editable-text.d.ts +141 -0
  243. package/types/vadem-ui-empty-state.d.ts +34 -0
  244. package/types/vadem-ui-expandable-text.d.ts +52 -0
  245. package/types/vadem-ui-field.d.ts +180 -0
  246. package/types/vadem-ui-file-preview.d.ts +108 -0
  247. package/types/vadem-ui-file-size.d.ts +18 -0
  248. package/types/vadem-ui-form-error-summary.d.ts +46 -0
  249. package/types/vadem-ui-icon.d.ts +152 -0
  250. package/types/vadem-ui-input.d.ts +31 -0
  251. package/types/vadem-ui-kbd.d.ts +66 -0
  252. package/types/vadem-ui-keyboard.d.ts +61 -0
  253. package/types/vadem-ui-locale.d.ts +241 -0
  254. package/types/vadem-ui-menu.d.ts +134 -0
  255. package/types/vadem-ui-navigation-list.d.ts +28 -0
  256. package/types/vadem-ui-number-input.d.ts +39 -0
  257. package/types/vadem-ui-otp-input.d.ts +15 -0
  258. package/types/vadem-ui-pagination.d.ts +96 -0
  259. package/types/vadem-ui-password-input.d.ts +36 -0
  260. package/types/vadem-ui-popover.d.ts +48 -0
  261. package/types/vadem-ui-progress.d.ts +95 -0
  262. package/types/vadem-ui-radio.d.ts +11 -0
  263. package/types/vadem-ui-range-slider.d.ts +136 -0
  264. package/types/vadem-ui-rating.d.ts +95 -0
  265. package/types/vadem-ui-relative-time.d.ts +58 -0
  266. package/types/vadem-ui-reorder-list.d.ts +120 -0
  267. package/types/vadem-ui-scroll-area.d.ts +13 -0
  268. package/types/vadem-ui-search-input.d.ts +58 -0
  269. package/types/vadem-ui-segmented.d.ts +76 -0
  270. package/types/vadem-ui-select.d.ts +303 -0
  271. package/types/vadem-ui-sidebar.d.ts +70 -0
  272. package/types/vadem-ui-skeleton.d.ts +28 -0
  273. package/types/vadem-ui-slider.d.ts +17 -0
  274. package/types/vadem-ui-splitter.d.ts +99 -0
  275. package/types/vadem-ui-stat.d.ts +101 -0
  276. package/types/vadem-ui-stepper.d.ts +108 -0
  277. package/types/vadem-ui-switch.d.ts +10 -0
  278. package/types/vadem-ui-table.d.ts +172 -0
  279. package/types/vadem-ui-tabs.d.ts +101 -0
  280. package/types/vadem-ui-tag-input.d.ts +170 -0
  281. package/types/vadem-ui-text-highlight.d.ts +27 -0
  282. package/types/vadem-ui-time-input.d.ts +47 -0
  283. package/types/vadem-ui-timeline.d.ts +54 -0
  284. package/types/vadem-ui-toast.d.ts +104 -0
  285. package/types/vadem-ui-toolbar.d.ts +80 -0
  286. package/types/vadem-ui-tooltip.d.ts +71 -0
  287. package/types/vadem-ui-tree.d.ts +123 -0
  288. package/types/vadem-ui-upload-list.d.ts +70 -0
  289. package/types/vadem-ui.d.ts +1 -0
@@ -0,0 +1,405 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, DestroyRef, Directive, ElementRef, ViewEncapsulation, booleanAttribute, computed, inject, input, model, signal } from "@angular/core";
3
+ import { vdUniqueId } from "@vadem/ui/field";
4
+ import { vdIsActivationKey, vdIsActivationKey as vdIsActivationKey$1, vdRovingTarget, vdRovingTarget as vdRovingTarget$1 } from "@vadem/ui/keyboard";
5
+ var VdTabs = class VdTabs {
6
+ value = model(void 0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
7
+ variant = input("line", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
8
+ orientation = input("horizontal", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
9
+ activation = input("automatic", ...ngDevMode ? [{ debugName: "activation" }] : /* istanbul ignore next */ []);
10
+ tabs = signal([], ...ngDevMode ? [{ debugName: "tabs" }] : /* istanbul ignore next */ []);
11
+ panels = signal([], ...ngDevMode ? [{ debugName: "panels" }] : /* istanbul ignore next */ []);
12
+ ordered = computed(() => [...this.tabs()].sort((a, b) => a.el.compareDocumentPosition(b.el) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1), ...ngDevMode ? [{ debugName: "ordered" }] : /* istanbul ignore next */ []);
13
+ selected = computed(() => {
14
+ const value = this.value();
15
+ const tabs = this.ordered();
16
+ if (value !== void 0 && tabs.some((t) => t.value() === value && !t.disabled())) return value;
17
+ return tabs.find((t) => !t.disabled())?.value();
18
+ }, ...ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []);
19
+ tabId(value) {
20
+ return this.tabs().find((t) => t.value() === value)?.id ?? null;
21
+ }
22
+ panelId(value) {
23
+ return this.panels().find((p) => p.value() === value)?.id ?? null;
24
+ }
25
+ select(value) {
26
+ this.value.set(value);
27
+ }
28
+ registerTab(tab) {
29
+ this.tabs.update((items) => [...items, tab]);
30
+ return () => this.tabs.update((items) => items.filter((i) => i !== tab));
31
+ }
32
+ registerPanel(panel) {
33
+ this.panels.update((items) => [...items, panel]);
34
+ return () => this.panels.update((items) => items.filter((i) => i !== panel));
35
+ }
36
+ handleKeydown(tab, event) {
37
+ const tabs = this.ordered();
38
+ const current = tabs.indexOf(tab);
39
+ if (this.activation() === "manual" && vdIsActivationKey$1(event.key)) {
40
+ event.preventDefault();
41
+ this.select(tab.value());
42
+ return;
43
+ }
44
+ const dir = tab.el.matches(":dir(rtl)") ? "rtl" : "ltr";
45
+ const target = vdRovingTarget$1(event.key, current, tabs.map((t) => t.disabled()), {
46
+ orientation: this.orientation(),
47
+ dir,
48
+ loop: true
49
+ });
50
+ if (target === null) return;
51
+ event.preventDefault();
52
+ const next = tabs[target];
53
+ next.el.focus();
54
+ if (this.activation() === "automatic") this.select(next.value());
55
+ }
56
+ static ɵfac = i0.ɵɵngDeclareFactory({
57
+ minVersion: "12.0.0",
58
+ version: "22.2.1",
59
+ ngImport: i0,
60
+ type: VdTabs,
61
+ deps: [],
62
+ target: i0.ɵɵFactoryTarget.Component
63
+ });
64
+ static ɵcmp = i0.ɵɵngDeclareComponent({
65
+ minVersion: "17.1.0",
66
+ version: "22.2.1",
67
+ type: VdTabs,
68
+ isStandalone: true,
69
+ selector: "vd-tabs",
70
+ inputs: {
71
+ value: {
72
+ classPropertyName: "value",
73
+ publicName: "value",
74
+ isSignal: true,
75
+ isRequired: false,
76
+ transformFunction: null
77
+ },
78
+ variant: {
79
+ classPropertyName: "variant",
80
+ publicName: "variant",
81
+ isSignal: true,
82
+ isRequired: false,
83
+ transformFunction: null
84
+ },
85
+ orientation: {
86
+ classPropertyName: "orientation",
87
+ publicName: "orientation",
88
+ isSignal: true,
89
+ isRequired: false,
90
+ transformFunction: null
91
+ },
92
+ activation: {
93
+ classPropertyName: "activation",
94
+ publicName: "activation",
95
+ isSignal: true,
96
+ isRequired: false,
97
+ transformFunction: null
98
+ }
99
+ },
100
+ outputs: { value: "valueChange" },
101
+ host: {
102
+ properties: {
103
+ "attr.data-variant": "variant()",
104
+ "attr.data-orientation": "orientation()"
105
+ },
106
+ classAttribute: "vd-tabs"
107
+ },
108
+ ngImport: i0,
109
+ template: "<ng-content />",
110
+ isInline: true,
111
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
112
+ encapsulation: i0.ViewEncapsulation.None
113
+ });
114
+ };
115
+ i0.ɵɵngDeclareClassMetadata({
116
+ minVersion: "12.0.0",
117
+ version: "22.2.1",
118
+ ngImport: i0,
119
+ type: VdTabs,
120
+ decorators: [{
121
+ type: Component,
122
+ args: [{
123
+ selector: "vd-tabs",
124
+ template: "<ng-content />",
125
+ host: {
126
+ class: "vd-tabs",
127
+ "[attr.data-variant]": "variant()",
128
+ "[attr.data-orientation]": "orientation()"
129
+ },
130
+ changeDetection: ChangeDetectionStrategy.OnPush,
131
+ encapsulation: ViewEncapsulation.None
132
+ }]
133
+ }],
134
+ propDecorators: {
135
+ value: [{
136
+ type: i0.Input,
137
+ args: [{
138
+ isSignal: true,
139
+ alias: "value",
140
+ required: false
141
+ }]
142
+ }, {
143
+ type: i0.Output,
144
+ args: ["valueChange"]
145
+ }],
146
+ variant: [{
147
+ type: i0.Input,
148
+ args: [{
149
+ isSignal: true,
150
+ alias: "variant",
151
+ required: false
152
+ }]
153
+ }],
154
+ orientation: [{
155
+ type: i0.Input,
156
+ args: [{
157
+ isSignal: true,
158
+ alias: "orientation",
159
+ required: false
160
+ }]
161
+ }],
162
+ activation: [{
163
+ type: i0.Input,
164
+ args: [{
165
+ isSignal: true,
166
+ alias: "activation",
167
+ required: false
168
+ }]
169
+ }]
170
+ }
171
+ });
172
+ var VdTabList = class VdTabList {
173
+ tabs = inject(VdTabs);
174
+ static ɵfac = i0.ɵɵngDeclareFactory({
175
+ minVersion: "12.0.0",
176
+ version: "22.2.1",
177
+ ngImport: i0,
178
+ type: VdTabList,
179
+ deps: [],
180
+ target: i0.ɵɵFactoryTarget.Directive
181
+ });
182
+ static ɵdir = i0.ɵɵngDeclareDirective({
183
+ minVersion: "14.0.0",
184
+ version: "22.2.1",
185
+ type: VdTabList,
186
+ isStandalone: true,
187
+ selector: "[vdTabList]",
188
+ host: {
189
+ attributes: { "role": "tablist" },
190
+ properties: { "attr.aria-orientation": "tabs.orientation()" },
191
+ classAttribute: "vd-tabs__list"
192
+ },
193
+ ngImport: i0
194
+ });
195
+ };
196
+ i0.ɵɵngDeclareClassMetadata({
197
+ minVersion: "12.0.0",
198
+ version: "22.2.1",
199
+ ngImport: i0,
200
+ type: VdTabList,
201
+ decorators: [{
202
+ type: Directive,
203
+ args: [{
204
+ selector: "[vdTabList]",
205
+ host: {
206
+ class: "vd-tabs__list",
207
+ role: "tablist",
208
+ "[attr.aria-orientation]": "tabs.orientation()"
209
+ }
210
+ }]
211
+ }]
212
+ });
213
+ var VdTab = class VdTab {
214
+ value = input.required(...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
215
+ disabled = input(false, {
216
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
217
+ transform: booleanAttribute
218
+ });
219
+ tabs = inject(VdTabs);
220
+ el = inject(ElementRef).nativeElement;
221
+ id = vdUniqueId("vd-tab");
222
+ selected = computed(() => this.tabs.selected() === this.value(), ...ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []);
223
+ destroyRef = inject(DestroyRef);
224
+ ngOnInit() {
225
+ this.destroyRef.onDestroy(this.tabs.registerTab(this));
226
+ }
227
+ static ɵfac = i0.ɵɵngDeclareFactory({
228
+ minVersion: "12.0.0",
229
+ version: "22.2.1",
230
+ ngImport: i0,
231
+ type: VdTab,
232
+ deps: [],
233
+ target: i0.ɵɵFactoryTarget.Directive
234
+ });
235
+ static ɵdir = i0.ɵɵngDeclareDirective({
236
+ minVersion: "17.1.0",
237
+ version: "22.2.1",
238
+ type: VdTab,
239
+ isStandalone: true,
240
+ selector: "button[vdTab]",
241
+ inputs: {
242
+ value: {
243
+ classPropertyName: "value",
244
+ publicName: "value",
245
+ isSignal: true,
246
+ isRequired: true,
247
+ transformFunction: null
248
+ },
249
+ disabled: {
250
+ classPropertyName: "disabled",
251
+ publicName: "disabled",
252
+ isSignal: true,
253
+ isRequired: false,
254
+ transformFunction: null
255
+ }
256
+ },
257
+ host: {
258
+ attributes: {
259
+ "type": "button",
260
+ "role": "tab"
261
+ },
262
+ listeners: {
263
+ "click": "tabs.select(value())",
264
+ "keydown": "tabs.handleKeydown(this, $event)"
265
+ },
266
+ properties: {
267
+ "id": "id",
268
+ "attr.aria-selected": "selected()",
269
+ "attr.aria-controls": "tabs.panelId(value())",
270
+ "attr.tabindex": "selected() ? 0 : -1",
271
+ "attr.data-state": "selected() ? \"active\" : \"inactive\"",
272
+ "disabled": "disabled()"
273
+ },
274
+ classAttribute: "vd-tabs__tab"
275
+ },
276
+ ngImport: i0
277
+ });
278
+ };
279
+ i0.ɵɵngDeclareClassMetadata({
280
+ minVersion: "12.0.0",
281
+ version: "22.2.1",
282
+ ngImport: i0,
283
+ type: VdTab,
284
+ decorators: [{
285
+ type: Directive,
286
+ args: [{
287
+ selector: "button[vdTab]",
288
+ host: {
289
+ class: "vd-tabs__tab",
290
+ type: "button",
291
+ role: "tab",
292
+ "[id]": "id",
293
+ "[attr.aria-selected]": "selected()",
294
+ "[attr.aria-controls]": "tabs.panelId(value())",
295
+ "[attr.tabindex]": "selected() ? 0 : -1",
296
+ "[attr.data-state]": "selected() ? \"active\" : \"inactive\"",
297
+ "[disabled]": "disabled()",
298
+ "(click)": "tabs.select(value())",
299
+ "(keydown)": "tabs.handleKeydown(this, $event)"
300
+ }
301
+ }]
302
+ }],
303
+ propDecorators: {
304
+ value: [{
305
+ type: i0.Input,
306
+ args: [{
307
+ isSignal: true,
308
+ alias: "value",
309
+ required: true
310
+ }]
311
+ }],
312
+ disabled: [{
313
+ type: i0.Input,
314
+ args: [{
315
+ isSignal: true,
316
+ alias: "disabled",
317
+ required: false
318
+ }]
319
+ }]
320
+ }
321
+ });
322
+ var VdTabPanel = class VdTabPanel {
323
+ value = input.required(...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
324
+ tabs = inject(VdTabs);
325
+ id = vdUniqueId("vd-tabpanel");
326
+ selected = computed(() => this.tabs.selected() === this.value(), ...ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []);
327
+ destroyRef = inject(DestroyRef);
328
+ ngOnInit() {
329
+ this.destroyRef.onDestroy(this.tabs.registerPanel(this));
330
+ }
331
+ static ɵfac = i0.ɵɵngDeclareFactory({
332
+ minVersion: "12.0.0",
333
+ version: "22.2.1",
334
+ ngImport: i0,
335
+ type: VdTabPanel,
336
+ deps: [],
337
+ target: i0.ɵɵFactoryTarget.Directive
338
+ });
339
+ static ɵdir = i0.ɵɵngDeclareDirective({
340
+ minVersion: "17.1.0",
341
+ version: "22.2.1",
342
+ type: VdTabPanel,
343
+ isStandalone: true,
344
+ selector: "[vdTabPanel]",
345
+ inputs: { value: {
346
+ classPropertyName: "value",
347
+ publicName: "value",
348
+ isSignal: true,
349
+ isRequired: true,
350
+ transformFunction: null
351
+ } },
352
+ host: {
353
+ attributes: {
354
+ "role": "tabpanel",
355
+ "tabindex": "0"
356
+ },
357
+ properties: {
358
+ "id": "id",
359
+ "attr.aria-labelledby": "tabs.tabId(value())",
360
+ "hidden": "!selected()",
361
+ "attr.data-state": "selected() ? \"active\" : \"inactive\""
362
+ },
363
+ classAttribute: "vd-tabs__panel"
364
+ },
365
+ ngImport: i0
366
+ });
367
+ };
368
+ i0.ɵɵngDeclareClassMetadata({
369
+ minVersion: "12.0.0",
370
+ version: "22.2.1",
371
+ ngImport: i0,
372
+ type: VdTabPanel,
373
+ decorators: [{
374
+ type: Directive,
375
+ args: [{
376
+ selector: "[vdTabPanel]",
377
+ host: {
378
+ class: "vd-tabs__panel",
379
+ role: "tabpanel",
380
+ tabindex: "0",
381
+ "[id]": "id",
382
+ "[attr.aria-labelledby]": "tabs.tabId(value())",
383
+ "[hidden]": "!selected()",
384
+ "[attr.data-state]": "selected() ? \"active\" : \"inactive\""
385
+ }
386
+ }]
387
+ }],
388
+ propDecorators: { value: [{
389
+ type: i0.Input,
390
+ args: [{
391
+ isSignal: true,
392
+ alias: "value",
393
+ required: true
394
+ }]
395
+ }] }
396
+ });
397
+ const VD_TABS = [
398
+ VdTabs,
399
+ VdTabList,
400
+ VdTab,
401
+ VdTabPanel
402
+ ];
403
+ export { VD_TABS, VdTab, VdTabList, VdTabPanel, VdTabs, vdIsActivationKey, vdRovingTarget };
404
+
405
+ //# sourceMappingURL=vadem-ui-tabs.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vadem-ui-tabs.mjs","names":[],"sources":["../../../projects/ui/tabs/src/tabs.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n Directive,\n ElementRef,\n OnInit,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n model,\n signal,\n} from '@angular/core';\nimport { vdUniqueId } from '@vadem/ui/field';\nimport { VdOrientation, vdIsActivationKey, vdRovingTarget } from '@vadem/ui/keyboard';\n\nexport type VdTabsVariant = 'line' | 'pill';\nexport type VdTabsActivation = 'automatic' | 'manual';\n\n/**\n * Tabs container: owns the selected value and keyboard behavior. Compose with\n * `vdTabList`, `vdTab` and `vdTabPanel`. Spec: specs/tabs.md\n */\n@Component({\n selector: 'vd-tabs',\n template: '<ng-content />',\n host: {\n class: 'vd-tabs',\n '[attr.data-variant]': 'variant()',\n '[attr.data-orientation]': 'orientation()',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class VdTabs {\n /** Selected tab value. Defaults to the first enabled tab. */\n readonly value = model<string | undefined>(undefined);\n readonly variant = input<VdTabsVariant>('line');\n readonly orientation = input<VdOrientation>('horizontal');\n /** `automatic`: arrows select. `manual`: arrows move focus, Enter/Space select. */\n readonly activation = input<VdTabsActivation>('automatic');\n\n private readonly tabs = signal<readonly VdTab[]>([]);\n private readonly panels = signal<readonly VdTabPanel[]>([]);\n\n /** Tabs in DOM order (registration order can differ for dynamic lists). */\n private readonly ordered = computed(() =>\n [...this.tabs()].sort((a, b) =>\n a.el.compareDocumentPosition(b.el) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1,\n ),\n );\n\n readonly selected = computed(() => {\n const value = this.value();\n const tabs = this.ordered();\n if (value !== undefined && tabs.some((t) => t.value() === value && !t.disabled())) return value;\n return tabs.find((t) => !t.disabled())?.value();\n });\n\n tabId(value: string): string | null {\n return this.tabs().find((t) => t.value() === value)?.id ?? null;\n }\n\n panelId(value: string): string | null {\n return this.panels().find((p) => p.value() === value)?.id ?? null;\n }\n\n select(value: string): void {\n this.value.set(value);\n }\n\n /** Returns the unregister function. */\n registerTab(tab: VdTab): () => void {\n this.tabs.update((items) => [...items, tab]);\n return () => this.tabs.update((items) => items.filter((i) => i !== tab));\n }\n\n registerPanel(panel: VdTabPanel): () => void {\n this.panels.update((items) => [...items, panel]);\n return () => this.panels.update((items) => items.filter((i) => i !== panel));\n }\n\n handleKeydown(tab: VdTab, event: KeyboardEvent): void {\n const tabs = this.ordered();\n const current = tabs.indexOf(tab);\n\n if (this.activation() === 'manual' && vdIsActivationKey(event.key)) {\n event.preventDefault();\n this.select(tab.value());\n return;\n }\n\n const dir = tab.el.matches(':dir(rtl)') ? 'rtl' : 'ltr';\n const target = vdRovingTarget(\n event.key,\n current,\n tabs.map((t) => t.disabled()),\n { orientation: this.orientation(), dir, loop: true },\n );\n if (target === null) return;\n\n event.preventDefault();\n const next = tabs[target];\n next.el.focus();\n if (this.activation() === 'automatic') this.select(next.value());\n }\n}\n\n/** Container for the tabs. Needs an accessible name (`aria-label` or `aria-labelledby`). */\n@Directive({\n selector: '[vdTabList]',\n host: {\n class: 'vd-tabs__list',\n role: 'tablist',\n '[attr.aria-orientation]': 'tabs.orientation()',\n },\n})\nexport class VdTabList {\n protected readonly tabs = inject(VdTabs);\n}\n\n@Directive({\n selector: 'button[vdTab]',\n host: {\n class: 'vd-tabs__tab',\n type: 'button',\n role: 'tab',\n '[id]': 'id',\n '[attr.aria-selected]': 'selected()',\n '[attr.aria-controls]': 'tabs.panelId(value())',\n '[attr.tabindex]': 'selected() ? 0 : -1',\n '[attr.data-state]': 'selected() ? \"active\" : \"inactive\"',\n '[disabled]': 'disabled()',\n '(click)': 'tabs.select(value())',\n '(keydown)': 'tabs.handleKeydown(this, $event)',\n },\n})\nexport class VdTab implements OnInit {\n readonly value = input.required<string>();\n readonly disabled = input(false, { transform: booleanAttribute });\n\n protected readonly tabs = inject(VdTabs);\n readonly el: HTMLElement = inject(ElementRef).nativeElement;\n readonly id = vdUniqueId('vd-tab');\n protected readonly selected = computed(() => this.tabs.selected() === this.value());\n\n private readonly destroyRef = inject(DestroyRef);\n\n // Register once inputs are set: dynamic `[value]` bindings aren't available in the constructor.\n ngOnInit(): void {\n this.destroyRef.onDestroy(this.tabs.registerTab(this));\n }\n}\n\n@Directive({\n selector: '[vdTabPanel]',\n host: {\n class: 'vd-tabs__panel',\n role: 'tabpanel',\n tabindex: '0',\n '[id]': 'id',\n '[attr.aria-labelledby]': 'tabs.tabId(value())',\n '[hidden]': '!selected()',\n '[attr.data-state]': 'selected() ? \"active\" : \"inactive\"',\n },\n})\nexport class VdTabPanel implements OnInit {\n readonly value = input.required<string>();\n\n protected readonly tabs = inject(VdTabs);\n readonly id = vdUniqueId('vd-tabpanel');\n protected readonly selected = computed(() => this.tabs.selected() === this.value());\n\n private readonly destroyRef = inject(DestroyRef);\n\n ngOnInit(): void {\n this.destroyRef.onDestroy(this.tabs.registerPanel(this));\n }\n}\n\nexport const VD_TABS = [VdTabs, VdTabList, VdTab, VdTabPanel] as const;\n"],"mappings":";;;;AAoCA,IAAa,SAAb,MAAa,OAAM;CAER,QAAQ,MAA0B,QAAU,GAAA,YAAA,CAA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