@ac-design/design-system 1.0.3 → 2.1.0

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 (235) hide show
  1. package/README.md +27 -18
  2. package/dist/lib/charts/ChartFrame.js +5 -0
  3. package/dist/lib/charts/ChartFrame.vue.d.ts +71 -0
  4. package/dist/lib/charts/ChartFrame.vue_vue_type_script_setup_true_lang.js +173 -0
  5. package/dist/lib/charts/cartesian.d.ts +324 -0
  6. package/dist/lib/charts/cartesian.js +137 -0
  7. package/dist/lib/charts/echarts.d.ts +86 -0
  8. package/dist/lib/charts/echarts.js +173 -0
  9. package/dist/lib/charts/graph.d.ts +77 -0
  10. package/dist/lib/charts/graph.js +155 -0
  11. package/dist/lib/charts/index.d.ts +11 -0
  12. package/dist/lib/charts/index.js +7 -0
  13. package/dist/lib/charts/shared.d.ts +53 -0
  14. package/dist/lib/charts/shared.js +96 -0
  15. package/dist/lib/charts/xy.d.ts +69 -0
  16. package/dist/lib/charts/xy.js +73 -0
  17. package/dist/lib/compat.css +2770 -1061
  18. package/dist/lib/components/AcAccordion.vue_vue_type_script_setup_true_lang.js +2 -2
  19. package/dist/lib/components/AcAccordionItem.vue.d.ts +1 -1
  20. package/dist/lib/components/AcAccordionItem.vue_vue_type_script_setup_true_lang.js +5 -5
  21. package/dist/lib/components/AcAlert.vue.d.ts +10 -1
  22. package/dist/lib/components/AcAlert.vue_vue_type_script_setup_true_lang.js +139 -45
  23. package/dist/lib/components/AcAppSwitcher.vue_vue_type_script_setup_true_lang.js +19 -19
  24. package/dist/lib/components/AcAreaChart.js +5 -0
  25. package/dist/lib/components/AcAreaChart.vue.d.ts +47 -0
  26. package/dist/lib/components/AcAreaChart.vue_vue_type_script_setup_true_lang.js +205 -0
  27. package/dist/lib/components/AcAvatar.vue.d.ts +7 -4
  28. package/dist/lib/components/AcAvatar.vue_vue_type_script_setup_true_lang.js +66 -61
  29. package/dist/lib/components/AcBadge.vue.d.ts +20 -7
  30. package/dist/lib/components/AcBadge.vue_vue_type_script_setup_true_lang.js +67 -44
  31. package/dist/lib/components/AcBanner.vue.d.ts +1 -1
  32. package/dist/lib/components/AcBanner.vue_vue_type_script_setup_true_lang.js +30 -30
  33. package/dist/lib/components/AcBarChart.js +5 -0
  34. package/dist/lib/components/AcBarChart.vue.d.ts +46 -0
  35. package/dist/lib/components/AcBarChart.vue_vue_type_script_setup_true_lang.js +213 -0
  36. package/dist/lib/components/AcBreadcrumb.vue.d.ts +4 -1
  37. package/dist/lib/components/AcBreadcrumb.vue_vue_type_script_setup_true_lang.js +36 -34
  38. package/dist/lib/components/AcBulkActionBar.js +5 -0
  39. package/dist/lib/components/AcBulkActionBar.vue.d.ts +45 -0
  40. package/dist/lib/components/AcBulkActionBar.vue_vue_type_script_setup_true_lang.js +84 -0
  41. package/dist/lib/components/AcButton.vue.d.ts +13 -7
  42. package/dist/lib/components/AcButton.vue_vue_type_script_setup_true_lang.js +93 -47
  43. package/dist/lib/components/AcButtons.vue_vue_type_script_setup_true_lang.js +1 -1
  44. package/dist/lib/components/AcCard.vue.d.ts +42 -3
  45. package/dist/lib/components/AcCard.vue_vue_type_script_setup_true_lang.js +175 -14
  46. package/dist/lib/components/AcCellValue.vue.d.ts +6 -3
  47. package/dist/lib/components/AcCellValue.vue_vue_type_script_setup_true_lang.js +219 -178
  48. package/dist/lib/components/AcCheckBox.vue.d.ts +17 -3
  49. package/dist/lib/components/AcCheckBox.vue_vue_type_script_setup_true_lang.js +113 -30
  50. package/dist/lib/components/AcCheckList.js +5 -0
  51. package/dist/lib/components/AcCheckList.vue.d.ts +45 -0
  52. package/dist/lib/components/AcCheckList.vue_vue_type_script_setup_true_lang.js +64 -0
  53. package/dist/lib/components/AcCheckRadio.vue.d.ts +30 -5
  54. package/dist/lib/components/AcCheckRadio.vue_vue_type_script_setup_true_lang.js +102 -26
  55. package/dist/lib/components/AcCircularProgress.js +5 -0
  56. package/dist/lib/components/AcCircularProgress.vue.d.ts +44 -0
  57. package/dist/lib/components/AcCircularProgress.vue_vue_type_script_setup_true_lang.js +114 -0
  58. package/dist/lib/components/AcClusterSwitcher.vue_vue_type_script_setup_true_lang.js +142 -167
  59. package/dist/lib/components/AcCodeEditor.vue_vue_type_script_setup_true_lang.js +9 -9
  60. package/dist/lib/components/AcColorInput.js +5 -0
  61. package/dist/lib/components/AcColorInput.vue.d.ts +57 -0
  62. package/dist/lib/components/AcColorInput.vue_vue_type_script_setup_true_lang.js +217 -0
  63. package/dist/lib/components/AcCommandBlock.js +5 -0
  64. package/dist/lib/components/AcCommandBlock.vue.d.ts +34 -0
  65. package/dist/lib/components/AcCommandBlock.vue_vue_type_script_setup_true_lang.js +88 -0
  66. package/dist/lib/components/AcConfirmModal.js +5 -0
  67. package/dist/lib/components/AcConfirmModal.vue.d.ts +56 -0
  68. package/dist/lib/components/AcConfirmModal.vue_vue_type_script_setup_true_lang.js +96 -0
  69. package/dist/lib/components/AcContentHeader.vue.d.ts +1 -1
  70. package/dist/lib/components/AcContentHeader.vue_vue_type_script_setup_true_lang.js +5 -4
  71. package/dist/lib/components/AcContentLayout.vue_vue_type_script_setup_true_lang.js +2 -2
  72. package/dist/lib/components/AcCopyButton.js +5 -0
  73. package/dist/lib/components/AcCopyButton.vue.d.ts +43 -0
  74. package/dist/lib/components/AcCopyButton.vue_vue_type_script_setup_true_lang.js +92 -0
  75. package/dist/lib/components/AcCostSummary.js +5 -0
  76. package/dist/lib/components/AcCostSummary.vue.d.ts +102 -0
  77. package/dist/lib/components/AcCostSummary.vue_vue_type_script_setup_true_lang.js +179 -0
  78. package/dist/lib/components/AcDatePicker.vue.d.ts +8 -8
  79. package/dist/lib/components/AcDatePicker.vue_vue_type_script_setup_true_lang.js +634 -417
  80. package/dist/lib/components/AcDeleteModal.vue.d.ts +4 -4
  81. package/dist/lib/components/AcDeleteModal.vue_vue_type_script_setup_true_lang.js +57 -60
  82. package/dist/lib/components/AcDonutChart.js +5 -0
  83. package/dist/lib/components/AcDonutChart.vue.d.ts +83 -0
  84. package/dist/lib/components/AcDonutChart.vue_vue_type_script_setup_true_lang.js +237 -0
  85. package/dist/lib/components/AcDropdown.vue.d.ts +5 -2
  86. package/dist/lib/components/AcDropdown.vue_vue_type_script_setup_true_lang.js +91 -78
  87. package/dist/lib/components/AcDropdownDivider.vue_vue_type_script_setup_true_lang.js +11 -10
  88. package/dist/lib/components/AcDropdownItem.vue.d.ts +2 -2
  89. package/dist/lib/components/AcDropdownItem.vue_vue_type_script_setup_true_lang.js +18 -18
  90. package/dist/lib/components/AcEmptyState.vue.d.ts +4 -1
  91. package/dist/lib/components/AcEmptyState.vue_vue_type_script_setup_true_lang.js +50 -39
  92. package/dist/lib/components/AcErrorState.js +5 -0
  93. package/dist/lib/components/AcErrorState.vue.d.ts +46 -0
  94. package/dist/lib/components/AcErrorState.vue_vue_type_script_setup_true_lang.js +66 -0
  95. package/dist/lib/components/AcFeatureCard.vue.d.ts +6 -0
  96. package/dist/lib/components/AcFeatureCard.vue_vue_type_script_setup_true_lang.js +139 -116
  97. package/dist/lib/components/AcFileEditor.vue_vue_type_script_setup_true_lang.js +16 -16
  98. package/dist/lib/components/AcFileUpload.vue.d.ts +2 -2
  99. package/dist/lib/components/AcFileUpload.vue_vue_type_script_setup_true_lang.js +55 -53
  100. package/dist/lib/components/AcFontScale.vue_vue_type_script_setup_true_lang.js +2 -2
  101. package/dist/lib/components/AcFooter.js +5 -0
  102. package/dist/lib/components/AcFooter.vue.d.ts +37 -0
  103. package/dist/lib/components/AcFooter.vue_vue_type_script_setup_true_lang.js +107 -0
  104. package/dist/lib/components/AcForm.vue.d.ts +3 -0
  105. package/dist/lib/components/AcForm.vue_vue_type_script_setup_true_lang.js +4 -2
  106. package/dist/lib/components/AcFormArray.vue.d.ts +2 -2
  107. package/dist/lib/components/AcFormArray.vue_vue_type_script_setup_true_lang.js +149 -147
  108. package/dist/lib/components/AcFormFooter.vue.d.ts +3 -3
  109. package/dist/lib/components/AcFormFooter.vue_vue_type_script_setup_true_lang.js +2 -2
  110. package/dist/lib/components/AcFormSection.vue.d.ts +8 -1
  111. package/dist/lib/components/AcFormSection.vue_vue_type_script_setup_true_lang.js +31 -21
  112. package/dist/lib/components/AcGraphChart.js +5 -0
  113. package/dist/lib/components/AcGraphChart.vue.d.ts +124 -0
  114. package/dist/lib/components/AcGraphChart.vue_vue_type_script_setup_true_lang.js +578 -0
  115. package/dist/lib/components/AcHeader.vue.d.ts +20 -5
  116. package/dist/lib/components/AcHeader.vue_vue_type_script_setup_true_lang.js +82 -28
  117. package/dist/lib/components/AcInfoTable.vue.d.ts +1 -1
  118. package/dist/lib/components/AcInfoTable.vue_vue_type_script_setup_true_lang.js +17 -13
  119. package/dist/lib/components/AcInput.vue.d.ts +4 -4
  120. package/dist/lib/components/AcInput.vue_vue_type_script_setup_true_lang.js +99 -91
  121. package/dist/lib/components/AcKbd.vue_vue_type_script_setup_true_lang.js +1 -1
  122. package/dist/lib/components/AcKeyValueInput.js +5 -0
  123. package/dist/lib/components/AcKeyValueInput.vue.d.ts +114 -0
  124. package/dist/lib/components/AcKeyValueInput.vue_vue_type_script_setup_true_lang.js +336 -0
  125. package/dist/lib/components/AcLineChart.js +5 -0
  126. package/dist/lib/components/AcLineChart.vue.d.ts +44 -0
  127. package/dist/lib/components/AcLineChart.vue_vue_type_script_setup_true_lang.js +175 -0
  128. package/dist/lib/components/AcLoader.js +5 -0
  129. package/dist/lib/components/AcLoader.vue.d.ts +15 -0
  130. package/dist/lib/components/AcLoader.vue_vue_type_script_setup_true_lang.js +66 -0
  131. package/dist/lib/components/AcLocaleSwitcher.js +5 -0
  132. package/dist/lib/components/AcLocaleSwitcher.vue.d.ts +48 -0
  133. package/dist/lib/components/AcLocaleSwitcher.vue_vue_type_script_setup_true_lang.js +111 -0
  134. package/dist/lib/components/AcMapChart.js +5 -0
  135. package/dist/lib/components/AcMapChart.vue.d.ts +136 -0
  136. package/dist/lib/components/AcMapChart.vue_vue_type_script_setup_true_lang.js +518 -0
  137. package/dist/lib/components/AcModal.vue.d.ts +6 -3
  138. package/dist/lib/components/AcModal.vue_vue_type_script_setup_true_lang.js +88 -64
  139. package/dist/lib/components/AcNavbar.vue.d.ts +8 -5
  140. package/dist/lib/components/AcNavbar.vue_vue_type_script_setup_true_lang.js +29 -21
  141. package/dist/lib/components/AcNavbarItem.vue.d.ts +2 -2
  142. package/dist/lib/components/AcNavbarItem.vue_vue_type_script_setup_true_lang.js +23 -24
  143. package/dist/lib/components/AcNotificationMenu.vue.d.ts +3 -3
  144. package/dist/lib/components/AcNotificationMenu.vue_vue_type_script_setup_true_lang.js +139 -174
  145. package/dist/lib/components/AcNumberInput.js +5 -0
  146. package/dist/lib/components/AcNumberInput.vue.d.ts +79 -0
  147. package/dist/lib/components/AcNumberInput.vue_vue_type_script_setup_true_lang.js +241 -0
  148. package/dist/lib/components/AcPage.vue.d.ts +2 -2
  149. package/dist/lib/components/AcPage.vue_vue_type_script_setup_true_lang.js +2 -2
  150. package/dist/lib/components/AcPagination.vue.d.ts +22 -5
  151. package/dist/lib/components/AcPagination.vue_vue_type_script_setup_true_lang.js +87 -56
  152. package/dist/lib/components/AcPreloader.vue.d.ts +3 -3
  153. package/dist/lib/components/AcPreloader.vue_vue_type_script_setup_true_lang.js +15 -16
  154. package/dist/lib/components/AcProductHero.js +5 -0
  155. package/dist/lib/components/AcProductHero.vue.d.ts +56 -0
  156. package/dist/lib/components/AcProductHero.vue_vue_type_script_setup_true_lang.js +95 -0
  157. package/dist/lib/components/AcProgress.vue.d.ts +19 -4
  158. package/dist/lib/components/AcProgress.vue_vue_type_script_setup_true_lang.js +85 -31
  159. package/dist/lib/components/AcResourceCard.vue.d.ts +3 -3
  160. package/dist/lib/components/AcResourceCard.vue_vue_type_script_setup_true_lang.js +17 -17
  161. package/dist/lib/components/AcSearchBar.vue.d.ts +1 -1
  162. package/dist/lib/components/AcSearchBar.vue_vue_type_script_setup_true_lang.js +14 -9
  163. package/dist/lib/components/AcSectionContent.vue.d.ts +2 -2
  164. package/dist/lib/components/AcSectionContent.vue_vue_type_script_setup_true_lang.js +8 -8
  165. package/dist/lib/components/AcSegmentedControl.vue.d.ts +1 -1
  166. package/dist/lib/components/AcSegmentedControl.vue_vue_type_script_setup_true_lang.js +4 -4
  167. package/dist/lib/components/AcSelect.vue.d.ts +6 -6
  168. package/dist/lib/components/AcSelect.vue_vue_type_script_setup_true_lang.js +246 -254
  169. package/dist/lib/components/AcSettingsRow.js +5 -0
  170. package/dist/lib/components/AcSettingsRow.vue.d.ts +29 -0
  171. package/dist/lib/components/AcSettingsRow.vue_vue_type_script_setup_true_lang.js +37 -0
  172. package/dist/lib/components/AcSidePanel.vue_vue_type_script_setup_true_lang.js +32 -32
  173. package/dist/lib/components/AcSideTabs.vue.d.ts +2 -2
  174. package/dist/lib/components/AcSideTabs.vue_vue_type_script_setup_true_lang.js +37 -37
  175. package/dist/lib/components/AcSidebar.vue.d.ts +6 -3
  176. package/dist/lib/components/AcSidebar.vue_vue_type_script_setup_true_lang.js +67 -57
  177. package/dist/lib/components/AcSidebarItem.vue.d.ts +1 -1
  178. package/dist/lib/components/AcSidebarItem.vue_vue_type_script_setup_true_lang.js +46 -45
  179. package/dist/lib/components/AcSidebarSection.vue.d.ts +2 -2
  180. package/dist/lib/components/AcSidebarSection.vue_vue_type_script_setup_true_lang.js +23 -18
  181. package/dist/lib/components/AcSkeleton.vue_vue_type_script_setup_true_lang.js +8 -8
  182. package/dist/lib/components/AcSlider.vue.d.ts +1 -1
  183. package/dist/lib/components/AcSlider.vue_vue_type_script_setup_true_lang.js +174 -172
  184. package/dist/lib/components/AcStatCard.vue.d.ts +3 -3
  185. package/dist/lib/components/AcStatCard.vue_vue_type_script_setup_true_lang.js +90 -85
  186. package/dist/lib/components/AcStatusBar.vue.d.ts +1 -1
  187. package/dist/lib/components/AcStatusBar.vue_vue_type_script_setup_true_lang.js +6 -6
  188. package/dist/lib/components/AcSteps.vue_vue_type_script_setup_true_lang.js +28 -28
  189. package/dist/lib/components/AcSwitch.vue.d.ts +3 -0
  190. package/dist/lib/components/AcSwitch.vue_vue_type_script_setup_true_lang.js +31 -19
  191. package/dist/lib/components/AcSwitchCard.js +5 -0
  192. package/dist/lib/components/AcSwitchCard.vue.d.ts +59 -0
  193. package/dist/lib/components/AcSwitchCard.vue_vue_type_script_setup_true_lang.js +121 -0
  194. package/dist/lib/components/AcTable.vue_vue_type_script_setup_true_lang.js +97 -97
  195. package/dist/lib/components/AcTabs.vue.d.ts +9 -2
  196. package/dist/lib/components/AcTabs.vue_vue_type_script_setup_true_lang.js +43 -28
  197. package/dist/lib/components/AcTag.vue.d.ts +2 -2
  198. package/dist/lib/components/AcTag.vue_vue_type_script_setup_true_lang.js +22 -22
  199. package/dist/lib/components/AcTagInput.js +5 -0
  200. package/dist/lib/components/AcTagInput.vue.d.ts +74 -0
  201. package/dist/lib/components/AcTagInput.vue_vue_type_script_setup_true_lang.js +289 -0
  202. package/dist/lib/components/AcTextarea.vue.d.ts +4 -4
  203. package/dist/lib/components/AcTextarea.vue_vue_type_script_setup_true_lang.js +85 -63
  204. package/dist/lib/components/AcThemeMode.vue.d.ts +3 -3
  205. package/dist/lib/components/AcThemeMode.vue_vue_type_script_setup_true_lang.js +56 -24
  206. package/dist/lib/components/AcTimePicker.js +5 -0
  207. package/dist/lib/components/AcTimePicker.vue.d.ts +65 -0
  208. package/dist/lib/components/AcTimePicker.vue_vue_type_script_setup_true_lang.js +455 -0
  209. package/dist/lib/components/AcToaster.vue.d.ts +6 -3
  210. package/dist/lib/components/AcToaster.vue_vue_type_script_setup_true_lang.js +115 -82
  211. package/dist/lib/components/AcTooltip.vue.d.ts +34 -14
  212. package/dist/lib/components/AcTooltip.vue_vue_type_script_setup_true_lang.js +203 -79
  213. package/dist/lib/components/AcUsageCard.vue_vue_type_script_setup_true_lang.js +27 -27
  214. package/dist/lib/components/AcUserMenu.vue.d.ts +23 -1
  215. package/dist/lib/components/AcUserMenu.vue_vue_type_script_setup_true_lang.js +166 -115
  216. package/dist/lib/components/index.d.ts +21 -2
  217. package/dist/lib/components/status.d.ts +28 -0
  218. package/dist/lib/components/status.js +125 -0
  219. package/dist/lib/composables/copyText.d.ts +2 -1
  220. package/dist/lib/composables/copyText.js +2 -2
  221. package/dist/lib/composables/useApiPagination.d.ts +55 -0
  222. package/dist/lib/composables/useApiPagination.js +58 -0
  223. package/dist/lib/composables/useBulkSelection.d.ts +44 -0
  224. package/dist/lib/composables/useBulkSelection.js +41 -0
  225. package/dist/lib/composables/useFormValidation.d.ts +65 -0
  226. package/dist/lib/composables/useFormValidation.js +148 -0
  227. package/dist/lib/composables/useTablePagination.d.ts +49 -0
  228. package/dist/lib/composables/useTablePagination.js +41 -0
  229. package/dist/lib/composables/useToast.d.ts +17 -1
  230. package/dist/lib/composables/useToast.js +10 -2
  231. package/dist/lib/editor/theme.js +65 -62
  232. package/dist/lib/index.d.ts +21 -3
  233. package/dist/lib/index.js +99 -75
  234. package/dist/lib/theme.css +377 -273
  235. package/package.json +20 -4
@@ -2,9 +2,12 @@ import { computed as e, createBlock as t, createCommentVNode as n, createElement
2
2
  import { ArrowRight as g, CircleAlert as _, Info as v, Megaphone as y, TriangleAlert as b, X as x } from "@lucide/vue";
3
3
  //#region src/lib/components/AcBanner.vue?vue&type=script&setup=true&lang.ts
4
4
  var S = ["role"], C = { class: "flex min-w-0 flex-1 flex-col gap-x-4 gap-y-1.5 sm:flex-row sm:flex-wrap sm:items-center" }, w = { class: "min-w-0" }, T = {
5
+ key: 0,
6
+ class: "font-semibold"
7
+ }, E = {
5
8
  key: 1,
6
9
  "aria-hidden": "true"
7
- }, E = ["href"], D = /*@__PURE__*/ s({
10
+ }, D = ["href"], O = /*@__PURE__*/ s({
8
11
  __name: "AcBanner",
9
12
  props: /*@__PURE__*/ c({
10
13
  color: { default: "info" },
@@ -30,79 +33,76 @@ var S = ["role"], C = { class: "flex min-w-0 flex-1 flex-col gap-x-4 gap-y-1.5 s
30
33
  }),
31
34
  emits: /*@__PURE__*/ c(["action", "close"], ["update:open"]),
32
35
  setup(s, { emit: c }) {
33
- let D = s, O = h(s, "open"), k = c, A = {
36
+ let O = s, k = h(s, "open"), A = c, j = {
34
37
  info: {
35
- subtle: "border-blue-90 bg-blue-97 text-blue-20",
38
+ subtle: "border-info/25 bg-info/10 text-info-strong",
36
39
  solid: "border-black/15 bg-info text-white",
37
- icon: "text-blue-50",
40
+ icon: "text-info-strong",
38
41
  glyph: v
39
42
  },
40
43
  warning: {
41
- subtle: "border-yellow-80 bg-yellow-97 text-yellow-20",
44
+ subtle: "border-warning/30 bg-warning/10 text-warning-strong",
42
45
  solid: "border-black/15 bg-warning text-on-warning",
43
- icon: "text-yellow-50",
46
+ icon: "text-warning-strong",
44
47
  glyph: b
45
48
  },
46
49
  danger: {
47
- subtle: "border-red-90 bg-red-97 text-red-20",
50
+ subtle: "border-danger/25 bg-danger/10 text-danger-strong",
48
51
  solid: "border-black/15 bg-danger text-white",
49
- icon: "text-red-40",
52
+ icon: "text-danger-strong",
50
53
  glyph: _
51
54
  },
52
55
  primary: {
53
- subtle: "border-primary-90 bg-primary-97 text-primary-20",
56
+ subtle: "border-primary/25 bg-primary/10 text-primary-strong",
54
57
  solid: "border-black/15 bg-primary text-white",
55
- icon: "text-primary",
58
+ icon: "text-primary-strong",
56
59
  glyph: y
57
60
  },
58
61
  neutral: {
59
- subtle: "border-border bg-surface-muted text-body",
62
+ subtle: "border-border bg-surface-sunken text-muted",
60
63
  solid: "border-black/15 bg-heading text-surface",
61
64
  icon: "text-muted",
62
65
  glyph: v
63
66
  }
64
- }, j = e(() => A[D.color]), M = e(() => D.icon ?? j.value.glyph);
65
- function N() {
66
- O.value = !1, k("close");
67
+ }, M = e(() => j[O.color]), N = e(() => O.icon ?? M.value.glyph);
68
+ function P() {
69
+ k.value = !1, A("close");
67
70
  }
68
- return (e, c) => O.value ? (u(), r("div", {
71
+ return (e, c) => k.value ? (u(), r("div", {
69
72
  key: 0,
70
- class: l(["flex w-full items-start gap-3 border-b px-4 py-2.5 text-base sm:items-center sm:px-6", [j.value[s.variant], s.variant === "solid" ? "[&_a]:text-inherit [&_strong]:text-inherit" : "[&_strong]:text-heading"]]),
73
+ class: l(["flex w-full items-start gap-3 border-b px-4 py-2.5 text-base sm:items-center sm:px-6 [&_strong]:text-inherit", [M.value[s.variant], s.variant === "solid" && "[&_a]:text-inherit"]]),
71
74
  role: s.color === "danger" || s.color === "warning" ? "alert" : "status",
72
75
  "data-ac-ds": "",
73
76
  "data-testid": "ac-banner"
74
77
  }, [
75
- s.hideIcon ? n("", !0) : (u(), t(f(M.value), {
78
+ s.hideIcon ? n("", !0) : (u(), t(f(N.value), {
76
79
  key: 0,
77
- class: l(["mt-0.5 size-4 shrink-0 sm:mt-0", s.variant === "subtle" ? j.value.icon : "opacity-90"]),
80
+ class: l(["mt-0.5 size-4 shrink-0 sm:mt-0", s.variant === "subtle" ? M.value.icon : "opacity-90"]),
78
81
  "aria-hidden": "true"
79
82
  }, null, 8, ["class"])),
80
83
  i("div", C, [i("p", w, [
81
- s.title ? (u(), r("strong", {
82
- key: 0,
83
- class: l(["font-semibold", s.variant === "subtle" && "text-heading"])
84
- }, p(s.title), 3)) : n("", !0),
85
- s.title && e.$slots.default ? (u(), r("span", T, " · ")) : n("", !0),
84
+ s.title ? (u(), r("strong", T, p(s.title), 1)) : n("", !0),
85
+ s.title && e.$slots.default ? (u(), r("span", E, " · ")) : n("", !0),
86
86
  d(e.$slots, "default")
87
87
  ]), d(e.$slots, "action", {}, () => [s.actionLabel && s.actionHref ? (u(), r("a", {
88
88
  key: 0,
89
89
  href: s.actionHref,
90
- class: "inline-flex shrink-0 items-center gap-1 font-medium whitespace-nowrap underline decoration-current/40 underline-offset-2 transition hover:decoration-current focus-visible:rounded-2 focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring"
90
+ class: "inline-flex shrink-0 items-center gap-1 font-medium whitespace-nowrap underline decoration-current/40 underline-offset-2 transition-colors duration-200 hover:decoration-current focus-visible:rounded-4 focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none"
91
91
  }, [a(p(s.actionLabel), 1), o(m(g), {
92
92
  class: "size-3.5",
93
93
  "aria-hidden": "true"
94
- })], 8, E)) : s.actionLabel ? (u(), r("button", {
94
+ })], 8, D)) : s.actionLabel ? (u(), r("button", {
95
95
  key: 1,
96
96
  type: "button",
97
- class: l(["inline-flex h-7 shrink-0 cursor-pointer items-center self-start rounded-6 border px-2.5 text-xs font-medium whitespace-nowrap transition focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring sm:self-auto", s.variant === "solid" ? "border-current/30 bg-current/10 hover:bg-current/20" : "border-current/25 bg-surface text-heading shadow-xs hover:bg-surface-muted"]),
98
- onClick: c[0] ||= (e) => k("action")
97
+ class: l(["inline-flex h-8 shrink-0 cursor-pointer items-center self-start rounded-10 border px-3 text-base font-medium whitespace-nowrap transition-[color,background-color,border-color,transform] duration-200 focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none active:translate-y-px motion-reduce:active:translate-y-0 sm:-my-1.5 sm:self-auto", s.variant === "solid" ? "border-current/30 bg-current/10 hover:bg-current/20" : "border-border bg-surface text-heading hover:bg-surface-sunken"]),
98
+ onClick: c[0] ||= (e) => A("action")
99
99
  }, p(s.actionLabel), 3)) : n("", !0)])]),
100
100
  s.dismissible ? (u(), r("button", {
101
101
  key: 1,
102
102
  type: "button",
103
- class: "-my-1 -mr-1.5 inline-flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-6 opacity-75 transition hover:bg-current/10 hover:opacity-100 focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring",
103
+ class: "-my-1.5 -mr-2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-8 opacity-75 transition-[background-color,opacity] duration-200 hover:bg-current/10 hover:opacity-100 focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none",
104
104
  "aria-label": "Dismiss",
105
- onClick: N
105
+ onClick: P
106
106
  }, [o(m(x), {
107
107
  class: "size-4",
108
108
  "aria-hidden": "true"
@@ -111,4 +111,4 @@ var S = ["role"], C = { class: "flex min-w-0 flex-1 flex-col gap-x-4 gap-y-1.5 s
111
111
  }
112
112
  });
113
113
  //#endregion
114
- export { D as default };
114
+ export { O as default };
@@ -0,0 +1,5 @@
1
+ import e from "./AcBarChart.vue_vue_type_script_setup_true_lang.js";
2
+ //#region src/lib/components/AcBarChart.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,46 @@
1
+ import type { ChartTooltipSlotProps } from "../charts/ChartFrame.vue";
2
+ import type { XYChartProps } from "../charts/xy";
3
+ export interface Props extends XYChartProps {
4
+ /** Stacks the series in one bar per row, so its length shows the total. Otherwise the series sit side by side. */
5
+ stacked?: boolean;
6
+ /** `vertical` columns, or `horizontal` bars for long category names and rankings. */
7
+ orientation?: "vertical" | "horizontal";
8
+ /** Corner radius of each bar's end, in px. */
9
+ radius?: number;
10
+ /** Widest a bar (or a group of bars) may get, in px, so a few rows don't make slabs. */
11
+ barMaxWidth?: number;
12
+ }
13
+ type __VLS_Slots = {
14
+ /** Replaces the tooltip body for the hovered row. */
15
+ tooltip?: (props: ChartTooltipSlotProps) => unknown;
16
+ };
17
+ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
18
+ legend: import("../charts/shared").ChartLegendPosition;
19
+ title: string;
20
+ description: string;
21
+ height: number;
22
+ orientation: "vertical" | "horizontal";
23
+ radius: number;
24
+ loading: boolean;
25
+ animation: boolean;
26
+ tooltip: boolean;
27
+ emptyText: string;
28
+ stacked: boolean;
29
+ renderer: "canvas" | "svg";
30
+ gridLines: boolean;
31
+ zoom: boolean;
32
+ xFormatter: (value: Date | number | string) => string;
33
+ yFormatter: (value: number) => string;
34
+ xLabel: string;
35
+ yLabel: string;
36
+ yDomain: [number | undefined, number | undefined];
37
+ barMaxWidth: number;
38
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
39
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
40
+ declare const _default: typeof __VLS_export;
41
+ export default _default;
42
+ type __VLS_WithSlots<T, S> = T & {
43
+ new (): {
44
+ $slots: S;
45
+ };
46
+ };
@@ -0,0 +1,213 @@
1
+ import e from "../charts/ChartFrame.js";
2
+ import { bindAxisHover as t, useEChart as n } from "../charts/echarts.js";
3
+ import { readNumber as r } from "../charts/shared.js";
4
+ import { LARGE_DATA as i, useXYChart as a } from "../charts/xy.js";
5
+ import { cartesianOption as o, locateRow as s, prepareZoom as c } from "../charts/cartesian.js";
6
+ import { computed as l, createBlock as u, createElementVNode as d, createSlots as f, defineComponent as p, guardReactiveProps as m, isRef as h, normalizeProps as g, openBlock as _, ref as v, renderSlot as y, unref as b, withCtx as x } from "vue";
7
+ import { ChartColumn as S } from "@lucide/vue";
8
+ import { use as C } from "echarts/core";
9
+ import { BarChart as w } from "echarts/charts";
10
+ import { AxisPointerComponent as T, GridComponent as E } from "echarts/components";
11
+ //#region src/lib/components/AcBarChart.vue?vue&type=script&setup=true&lang.ts
12
+ var D = /*@__PURE__*/ p({
13
+ __name: "AcBarChart",
14
+ props: {
15
+ stacked: {
16
+ type: Boolean,
17
+ default: !1
18
+ },
19
+ orientation: { default: "vertical" },
20
+ radius: { default: 4 },
21
+ barMaxWidth: { default: 48 },
22
+ data: {},
23
+ index: {},
24
+ categories: {},
25
+ height: { default: 280 },
26
+ xFormatter: {
27
+ type: Function,
28
+ default: void 0
29
+ },
30
+ yFormatter: {
31
+ type: Function,
32
+ default: void 0
33
+ },
34
+ xLabel: { default: "" },
35
+ yLabel: { default: "" },
36
+ legend: { default: "top" },
37
+ tooltip: {
38
+ type: Boolean,
39
+ default: !0
40
+ },
41
+ gridLines: {
42
+ type: Boolean,
43
+ default: !0
44
+ },
45
+ yDomain: { default: void 0 },
46
+ loading: {
47
+ type: Boolean,
48
+ default: !1
49
+ },
50
+ emptyText: { default: "No data to show yet" },
51
+ title: { default: "" },
52
+ description: { default: "" },
53
+ zoom: {
54
+ type: Boolean,
55
+ default: !1
56
+ },
57
+ renderer: { default: "canvas" },
58
+ animation: {
59
+ type: Boolean,
60
+ default: !0
61
+ }
62
+ },
63
+ setup(p) {
64
+ C([
65
+ w,
66
+ E,
67
+ T
68
+ ]);
69
+ let D = p, O = l(() => D.orientation === "horizontal"), k = a(D, {
70
+ stacked: () => D.stacked,
71
+ positions: !0,
72
+ horizontal: () => O.value
73
+ }), { hidden: A, width: j, legendItems: M, rowLabel: N, tooltipItems: P, tooltipTotal: F, table: I, ariaLabel: L } = k, R = v(), z = v(null);
74
+ function B(e) {
75
+ let t = D.radius;
76
+ return O.value ? e < 0 ? [
77
+ t,
78
+ 0,
79
+ 0,
80
+ t
81
+ ] : [
82
+ 0,
83
+ t,
84
+ t,
85
+ 0
86
+ ] : e < 0 ? [
87
+ 0,
88
+ 0,
89
+ t,
90
+ t
91
+ ] : [
92
+ t,
93
+ t,
94
+ 0,
95
+ 0
96
+ ];
97
+ }
98
+ function V(e) {
99
+ return D.data.map((t) => {
100
+ let n, i;
101
+ for (let a of e) {
102
+ let e = r(t, a) ?? 0;
103
+ e > 0 ? n = a : e < 0 && (i = a);
104
+ }
105
+ return {
106
+ top: n,
107
+ bottom: i
108
+ };
109
+ });
110
+ }
111
+ function H(e) {
112
+ let t = D.data.length > i, n = k.visibleKeys.value, a = D.stacked && !t ? V(n) : [];
113
+ return n.map((n) => {
114
+ let o = e.color(k.colorOf.value[n]), s = D.data.map((e) => r(e, n)), c = t ? s : s.map((e, t) => e === null || e === 0 ? e : {
115
+ value: e,
116
+ itemStyle: { borderRadius: !D.stacked || a[t]?.top === n || a[t]?.bottom === n ? B(e) : 0 }
117
+ });
118
+ return {
119
+ id: n,
120
+ type: "bar",
121
+ name: D.categories[n]?.name ?? n,
122
+ data: c,
123
+ stack: D.stacked ? "total" : void 0,
124
+ barMaxWidth: D.barMaxWidth,
125
+ barCategoryGap: "30%",
126
+ barGap: D.stacked ? void 0 : "15%",
127
+ itemStyle: {
128
+ color: o,
129
+ borderColor: e.surface,
130
+ borderWidth: D.stacked && !t ? 1 : 0
131
+ },
132
+ emphasis: { focus: "none" },
133
+ large: t,
134
+ largeThreshold: i,
135
+ progressive: t ? 4e3 : 0
136
+ };
137
+ });
138
+ }
139
+ return n({
140
+ host: R,
141
+ renderer: () => D.renderer,
142
+ prepare: () => c(D),
143
+ option: (e) => ({
144
+ ...o(e, D, k, {
145
+ boundaryGap: !0,
146
+ horizontal: O.value,
147
+ pointer: "shadow"
148
+ }),
149
+ series: H(e)
150
+ }),
151
+ setup: (e) => t(e, (t) => s(e, t, k, O.value), (e, t, n) => {
152
+ let r = D.data[e];
153
+ r && D.tooltip && (z.value = {
154
+ clientX: t,
155
+ clientY: n,
156
+ title: N(e),
157
+ items: P(r),
158
+ total: D.stacked && k.visibleKeys.value.length > 1 ? F(r) : void 0,
159
+ datum: r,
160
+ index: e
161
+ });
162
+ }, () => z.value = null)
163
+ }), (t, n) => (_(), u(e, {
164
+ hidden: b(A),
165
+ "onUpdate:hidden": n[0] ||= (e) => h(A) ? A.value = e : null,
166
+ width: b(j),
167
+ "onUpdate:width": n[1] ||= (e) => h(j) ? j.value = e : null,
168
+ testid: "ac-bar-chart",
169
+ height: p.height,
170
+ loading: p.loading,
171
+ empty: !p.data.length,
172
+ "empty-text": p.emptyText,
173
+ "empty-icon": b(S),
174
+ legend: p.legend,
175
+ "legend-items": b(M),
176
+ summary: b(L),
177
+ title: p.title,
178
+ description: p.description,
179
+ table: b(I),
180
+ tip: z.value,
181
+ tooltip: p.tooltip
182
+ }, f({
183
+ default: x(() => [d("div", {
184
+ ref_key: "host",
185
+ ref: R,
186
+ class: "size-full"
187
+ }, null, 512)]),
188
+ _: 2
189
+ }, [t.$slots.tooltip ? {
190
+ name: "tooltip",
191
+ fn: x((e) => [y(t.$slots, "tooltip", g(m(e)))]),
192
+ key: "0"
193
+ } : void 0]), 1032, [
194
+ "hidden",
195
+ "width",
196
+ "height",
197
+ "loading",
198
+ "empty",
199
+ "empty-text",
200
+ "empty-icon",
201
+ "legend",
202
+ "legend-items",
203
+ "summary",
204
+ "title",
205
+ "description",
206
+ "table",
207
+ "tip",
208
+ "tooltip"
209
+ ]));
210
+ }
211
+ });
212
+ //#endregion
213
+ export { D as default };
@@ -14,12 +14,15 @@ export interface Props {
14
14
  items: BreadcrumbItem[];
15
15
  /** Replaces the first item's label with a house icon (the label stays as its accessible name). */
16
16
  homeIcon?: boolean;
17
- /** With more items than this, the middle ones collapse behind "…" until clicked. */
17
+ /** With more items than this, the middle ones collapse behind "…" until clicked. `0` (the default) never collapses, as in cloud-ui. */
18
18
  maxItems?: number;
19
+ /** The mark between crumbs: `chevron` or `slash`. */
20
+ separator?: "chevron" | "slash";
19
21
  }
20
22
  declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
21
23
  homeIcon: boolean;
22
24
  maxItems: number;
25
+ separator: "chevron" | "slash";
23
26
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
27
  declare const _default: typeof __VLS_export;
25
28
  export default _default;
@@ -1,13 +1,13 @@
1
- import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, getCurrentInstance as c, mergeProps as l, normalizeClass as u, openBlock as d, ref as f, renderList as p, resolveDynamicComponent as m, toDisplayString as h, unref as g, withCtx as _ } from "vue";
2
- import { ChevronRight as v, House as y } from "@lucide/vue";
1
+ import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, getCurrentInstance as s, mergeProps as c, normalizeClass as l, openBlock as u, ref as d, renderList as f, resolveDynamicComponent as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
2
+ import { ChevronRight as _, House as v, Slash as y } from "@lucide/vue";
3
3
  //#region src/lib/components/AcBreadcrumb.vue?vue&type=script&setup=true&lang.ts
4
4
  var b = {
5
5
  "aria-label": "Breadcrumb",
6
6
  "data-ac-ds": "",
7
7
  "data-testid": "ac-breadcrumb"
8
- }, x = { class: "flex min-w-0 flex-wrap items-center gap-1 text-xs text-muted" }, S = {
8
+ }, x = { class: "flex min-w-0 flex-wrap items-center gap-0.5 text-base text-muted" }, S = {
9
9
  key: 0,
10
- class: "flex items-center text-slate-60",
10
+ class: "flex items-center text-muted/50",
11
11
  "aria-hidden": "true"
12
12
  }, C = {
13
13
  key: 1,
@@ -15,7 +15,11 @@ var b = {
15
15
  }, w = {
16
16
  key: 2,
17
17
  class: "flex min-w-0 items-center"
18
- }, T = ["aria-current"], E = { class: "truncate" }, D = { class: "truncate" }, O = /*@__PURE__*/ s({
18
+ }, T = ["aria-current"], E = { class: "max-w-64 truncate" }, D = {
19
+ key: 0,
20
+ class: "flex size-5 shrink-0 items-center justify-center rounded-8 bg-primary/10 text-primary",
21
+ "aria-hidden": "true"
22
+ }, O = { class: "max-w-48 truncate" }, k = /*@__PURE__*/ o({
19
23
  __name: "AcBreadcrumb",
20
24
  props: {
21
25
  items: {},
@@ -23,23 +27,24 @@ var b = {
23
27
  type: Boolean,
24
28
  default: !1
25
29
  },
26
- maxItems: { default: 4 }
30
+ maxItems: { default: 0 },
31
+ separator: { default: "chevron" }
27
32
  },
28
- setup(s) {
29
- let O = s, k = c()?.appContext.components.RouterLink, A = f(!1), j = t(() => {
30
- let e = O.items.map((e, t) => ({
33
+ setup(o) {
34
+ let k = o, A = s()?.appContext.components.RouterLink, j = d(!1), M = t(() => {
35
+ let e = k.items.map((e, t) => ({
31
36
  item: e,
32
37
  index: t
33
38
  }));
34
- return A.value || e.length <= O.maxItems ? e : [
39
+ return j.value || k.maxItems < 3 || e.length <= k.maxItems ? e : [
35
40
  e[0],
36
41
  null,
37
- ...e.slice(e.length - (O.maxItems - 2))
42
+ ...e.slice(e.length - (k.maxItems - 2))
38
43
  ];
39
44
  });
40
- function M(e) {
41
- if (e.to !== void 0 && k) return {
42
- is: k,
45
+ function N(e) {
46
+ if (e.to !== void 0 && A) return {
47
+ is: A,
43
48
  to: e.to
44
49
  };
45
50
  let t = e.href ?? (typeof e.to == "string" ? e.to : void 0);
@@ -48,41 +53,38 @@ var b = {
48
53
  href: t
49
54
  } : null;
50
55
  }
51
- return (t, c) => (d(), i("nav", b, [a("ol", x, [(d(!0), i(e, null, p(j.value, (t, f) => (d(), i(e, { key: t ? t.index : "ellipsis" }, [f > 0 ? (d(), i("li", S, [o(g(v), { class: "size-3" })])) : r("", !0), t ? (d(), i("li", w, [t.index === s.items.length - 1 || !M(t.item) ? (d(), i("span", {
56
+ return (t, s) => (u(), i("nav", b, [a("ol", x, [(u(!0), i(e, null, f(M.value, (t, d) => (u(), i(e, { key: t ? t.index : "ellipsis" }, [d > 0 ? (u(), i("li", S, [(u(), n(p(o.separator === "slash" ? h(y) : h(_)), { class: "size-3.5 shrink-0 rtl:rotate-180" }))])) : r("", !0), t ? (u(), i("li", w, [t.index === o.items.length - 1 || !N(t.item) ? (u(), i("span", {
52
57
  key: 0,
53
- class: u(["flex min-w-0 items-center gap-1", t.index === s.items.length - 1 && "font-medium text-heading"]),
54
- "aria-current": t.index === s.items.length - 1 ? "page" : void 0
55
- }, [t.item.icon ? (d(), n(m(t.item.icon), {
58
+ class: l(["flex min-w-0 items-center gap-1.5 px-1.5 py-0.5", t.index === o.items.length - 1 && "font-medium text-heading"]),
59
+ "aria-current": t.index === o.items.length - 1 ? "page" : void 0
60
+ }, [t.item.icon ? (u(), n(p(t.item.icon), {
56
61
  key: 0,
57
- class: "size-3.5 shrink-0",
62
+ class: "size-4 shrink-0 text-primary",
58
63
  "aria-hidden": "true"
59
- })) : r("", !0), a("span", E, h(t.item.label), 1)], 10, T)) : (d(), n(m(M(t.item).is), l({
64
+ })) : r("", !0), a("span", E, m(t.item.label), 1)], 10, T)) : (u(), n(p(N(t.item).is), c({
60
65
  key: 1,
61
66
  ref_for: !0
62
67
  }, {
63
- ...M(t.item),
68
+ ...N(t.item),
64
69
  is: void 0
65
70
  }, {
66
- class: "flex min-w-0 items-center gap-1 rounded-4 transition-colors hover:text-heading focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring",
67
- "aria-label": s.homeIcon && t.index === 0 ? t.item.label : void 0
71
+ class: "flex min-w-0 items-center gap-1.5 rounded-8 px-1.5 py-0.5 text-muted no-underline transition-colors duration-200 hover:bg-surface-sunken hover:text-heading focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none",
72
+ title: t.item.label,
73
+ "aria-label": o.homeIcon && t.index === 0 ? t.item.label : void 0
68
74
  }), {
69
- default: _(() => [s.homeIcon && t.index === 0 ? (d(), n(g(y), {
70
- key: 0,
71
- class: "size-3.5 shrink-0",
72
- "aria-hidden": "true"
73
- })) : (d(), i(e, { key: 1 }, [t.item.icon ? (d(), n(m(t.item.icon), {
75
+ default: g(() => [o.homeIcon && t.index === 0 ? (u(), n(h(v), {
74
76
  key: 0,
75
- class: "size-3.5 shrink-0",
77
+ class: "size-4 shrink-0",
76
78
  "aria-hidden": "true"
77
- })) : r("", !0), a("span", D, h(t.item.label), 1)], 64))]),
79
+ })) : (u(), i(e, { key: 1 }, [t.item.icon ? (u(), i("span", D, [(u(), n(p(t.item.icon), { class: "size-3.5" }))])) : r("", !0), a("span", O, m(t.item.label), 1)], 64))]),
78
80
  _: 2
79
- }, 1040, ["aria-label"]))])) : (d(), i("li", C, [a("button", {
81
+ }, 1040, ["title", "aria-label"]))])) : (u(), i("li", C, [a("button", {
80
82
  type: "button",
81
- class: "cursor-pointer rounded-4 px-1 hover:bg-surface-sunken hover:text-heading focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring",
83
+ class: "cursor-pointer rounded-8 px-1.5 py-0.5 transition-colors duration-200 hover:bg-surface-sunken hover:text-heading focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none",
82
84
  "aria-label": "Show full path",
83
- onClick: c[0] ||= (e) => A.value = !0
85
+ onClick: s[0] ||= (e) => j.value = !0
84
86
  }, " … ")]))], 64))), 128))])]));
85
87
  }
86
88
  });
87
89
  //#endregion
88
- export { O as default };
90
+ export { k as default };
@@ -0,0 +1,5 @@
1
+ import e from "./AcBulkActionBar.vue_vue_type_script_setup_true_lang.js";
2
+ //#region src/lib/components/AcBulkActionBar.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,45 @@
1
+ import type { Component } from "vue";
2
+ import type { Tone } from "./types";
3
+ export interface Props {
4
+ /** How many rows are selected. The bar slides in above 0 and is removed at 0. */
5
+ count: number;
6
+ /** Singular noun for one selected row, in lower case, e.g. "subnet" or "Postgres database". */
7
+ label: string;
8
+ /** Plural noun when it isn't `label` + "s", e.g. "backup policies". */
9
+ pluralLabel?: string;
10
+ /** Text of the batch action button. Pass an empty string to show only the `actions` slot. */
11
+ actionLabel?: string;
12
+ /** Colour of the batch action button, tinted (`light`). */
13
+ actionColor?: Tone;
14
+ /** Icon before the action text. Defaults to a bin when `actionColor` is `danger`, and no icon otherwise. */
15
+ actionIcon?: Component;
16
+ /** Shows a spinner on the action button and disables Clear while the batch request runs. Old cloud-ui `is-loading`. */
17
+ loading?: boolean;
18
+ }
19
+ type __VLS_Slots = {
20
+ /** Extra batch buttons, placed before the main action, e.g. a "Download" button. Use `size="small"` buttons. */
21
+ actions?: () => unknown;
22
+ /** Same as `actions`, for cloud-ui's `BulkActionBar` markup. */
23
+ default?: () => unknown;
24
+ };
25
+ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
+ clear: () => any;
27
+ action: () => any;
28
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
29
+ onClear?: (() => any) | undefined;
30
+ onAction?: (() => any) | undefined;
31
+ }>, {
32
+ loading: boolean;
33
+ actionLabel: string;
34
+ actionIcon: Component;
35
+ actionColor: Tone;
36
+ pluralLabel: string;
37
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
38
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
39
+ declare const _default: typeof __VLS_export;
40
+ export default _default;
41
+ type __VLS_WithSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };