@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.
- package/README.md +27 -18
- package/dist/lib/charts/ChartFrame.js +5 -0
- package/dist/lib/charts/ChartFrame.vue.d.ts +71 -0
- package/dist/lib/charts/ChartFrame.vue_vue_type_script_setup_true_lang.js +173 -0
- package/dist/lib/charts/cartesian.d.ts +324 -0
- package/dist/lib/charts/cartesian.js +137 -0
- package/dist/lib/charts/echarts.d.ts +86 -0
- package/dist/lib/charts/echarts.js +173 -0
- package/dist/lib/charts/graph.d.ts +77 -0
- package/dist/lib/charts/graph.js +155 -0
- package/dist/lib/charts/index.d.ts +11 -0
- package/dist/lib/charts/index.js +7 -0
- package/dist/lib/charts/shared.d.ts +53 -0
- package/dist/lib/charts/shared.js +96 -0
- package/dist/lib/charts/xy.d.ts +69 -0
- package/dist/lib/charts/xy.js +73 -0
- package/dist/lib/compat.css +2770 -1061
- package/dist/lib/components/AcAccordion.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/lib/components/AcAccordionItem.vue.d.ts +1 -1
- package/dist/lib/components/AcAccordionItem.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/lib/components/AcAlert.vue.d.ts +10 -1
- package/dist/lib/components/AcAlert.vue_vue_type_script_setup_true_lang.js +139 -45
- package/dist/lib/components/AcAppSwitcher.vue_vue_type_script_setup_true_lang.js +19 -19
- package/dist/lib/components/AcAreaChart.js +5 -0
- package/dist/lib/components/AcAreaChart.vue.d.ts +47 -0
- package/dist/lib/components/AcAreaChart.vue_vue_type_script_setup_true_lang.js +205 -0
- package/dist/lib/components/AcAvatar.vue.d.ts +7 -4
- package/dist/lib/components/AcAvatar.vue_vue_type_script_setup_true_lang.js +66 -61
- package/dist/lib/components/AcBadge.vue.d.ts +20 -7
- package/dist/lib/components/AcBadge.vue_vue_type_script_setup_true_lang.js +67 -44
- package/dist/lib/components/AcBanner.vue.d.ts +1 -1
- package/dist/lib/components/AcBanner.vue_vue_type_script_setup_true_lang.js +30 -30
- package/dist/lib/components/AcBarChart.js +5 -0
- package/dist/lib/components/AcBarChart.vue.d.ts +46 -0
- package/dist/lib/components/AcBarChart.vue_vue_type_script_setup_true_lang.js +213 -0
- package/dist/lib/components/AcBreadcrumb.vue.d.ts +4 -1
- package/dist/lib/components/AcBreadcrumb.vue_vue_type_script_setup_true_lang.js +36 -34
- package/dist/lib/components/AcBulkActionBar.js +5 -0
- package/dist/lib/components/AcBulkActionBar.vue.d.ts +45 -0
- package/dist/lib/components/AcBulkActionBar.vue_vue_type_script_setup_true_lang.js +84 -0
- package/dist/lib/components/AcButton.vue.d.ts +13 -7
- package/dist/lib/components/AcButton.vue_vue_type_script_setup_true_lang.js +93 -47
- package/dist/lib/components/AcButtons.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/lib/components/AcCard.vue.d.ts +42 -3
- package/dist/lib/components/AcCard.vue_vue_type_script_setup_true_lang.js +175 -14
- package/dist/lib/components/AcCellValue.vue.d.ts +6 -3
- package/dist/lib/components/AcCellValue.vue_vue_type_script_setup_true_lang.js +219 -178
- package/dist/lib/components/AcCheckBox.vue.d.ts +17 -3
- package/dist/lib/components/AcCheckBox.vue_vue_type_script_setup_true_lang.js +113 -30
- package/dist/lib/components/AcCheckList.js +5 -0
- package/dist/lib/components/AcCheckList.vue.d.ts +45 -0
- package/dist/lib/components/AcCheckList.vue_vue_type_script_setup_true_lang.js +64 -0
- package/dist/lib/components/AcCheckRadio.vue.d.ts +30 -5
- package/dist/lib/components/AcCheckRadio.vue_vue_type_script_setup_true_lang.js +102 -26
- package/dist/lib/components/AcCircularProgress.js +5 -0
- package/dist/lib/components/AcCircularProgress.vue.d.ts +44 -0
- package/dist/lib/components/AcCircularProgress.vue_vue_type_script_setup_true_lang.js +114 -0
- package/dist/lib/components/AcClusterSwitcher.vue_vue_type_script_setup_true_lang.js +142 -167
- package/dist/lib/components/AcCodeEditor.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/lib/components/AcColorInput.js +5 -0
- package/dist/lib/components/AcColorInput.vue.d.ts +57 -0
- package/dist/lib/components/AcColorInput.vue_vue_type_script_setup_true_lang.js +217 -0
- package/dist/lib/components/AcCommandBlock.js +5 -0
- package/dist/lib/components/AcCommandBlock.vue.d.ts +34 -0
- package/dist/lib/components/AcCommandBlock.vue_vue_type_script_setup_true_lang.js +88 -0
- package/dist/lib/components/AcConfirmModal.js +5 -0
- package/dist/lib/components/AcConfirmModal.vue.d.ts +56 -0
- package/dist/lib/components/AcConfirmModal.vue_vue_type_script_setup_true_lang.js +96 -0
- package/dist/lib/components/AcContentHeader.vue.d.ts +1 -1
- package/dist/lib/components/AcContentHeader.vue_vue_type_script_setup_true_lang.js +5 -4
- package/dist/lib/components/AcContentLayout.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/lib/components/AcCopyButton.js +5 -0
- package/dist/lib/components/AcCopyButton.vue.d.ts +43 -0
- package/dist/lib/components/AcCopyButton.vue_vue_type_script_setup_true_lang.js +92 -0
- package/dist/lib/components/AcCostSummary.js +5 -0
- package/dist/lib/components/AcCostSummary.vue.d.ts +102 -0
- package/dist/lib/components/AcCostSummary.vue_vue_type_script_setup_true_lang.js +179 -0
- package/dist/lib/components/AcDatePicker.vue.d.ts +8 -8
- package/dist/lib/components/AcDatePicker.vue_vue_type_script_setup_true_lang.js +634 -417
- package/dist/lib/components/AcDeleteModal.vue.d.ts +4 -4
- package/dist/lib/components/AcDeleteModal.vue_vue_type_script_setup_true_lang.js +57 -60
- package/dist/lib/components/AcDonutChart.js +5 -0
- package/dist/lib/components/AcDonutChart.vue.d.ts +83 -0
- package/dist/lib/components/AcDonutChart.vue_vue_type_script_setup_true_lang.js +237 -0
- package/dist/lib/components/AcDropdown.vue.d.ts +5 -2
- package/dist/lib/components/AcDropdown.vue_vue_type_script_setup_true_lang.js +91 -78
- package/dist/lib/components/AcDropdownDivider.vue_vue_type_script_setup_true_lang.js +11 -10
- package/dist/lib/components/AcDropdownItem.vue.d.ts +2 -2
- package/dist/lib/components/AcDropdownItem.vue_vue_type_script_setup_true_lang.js +18 -18
- package/dist/lib/components/AcEmptyState.vue.d.ts +4 -1
- package/dist/lib/components/AcEmptyState.vue_vue_type_script_setup_true_lang.js +50 -39
- package/dist/lib/components/AcErrorState.js +5 -0
- package/dist/lib/components/AcErrorState.vue.d.ts +46 -0
- package/dist/lib/components/AcErrorState.vue_vue_type_script_setup_true_lang.js +66 -0
- package/dist/lib/components/AcFeatureCard.vue.d.ts +6 -0
- package/dist/lib/components/AcFeatureCard.vue_vue_type_script_setup_true_lang.js +139 -116
- package/dist/lib/components/AcFileEditor.vue_vue_type_script_setup_true_lang.js +16 -16
- package/dist/lib/components/AcFileUpload.vue.d.ts +2 -2
- package/dist/lib/components/AcFileUpload.vue_vue_type_script_setup_true_lang.js +55 -53
- package/dist/lib/components/AcFontScale.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/lib/components/AcFooter.js +5 -0
- package/dist/lib/components/AcFooter.vue.d.ts +37 -0
- package/dist/lib/components/AcFooter.vue_vue_type_script_setup_true_lang.js +107 -0
- package/dist/lib/components/AcForm.vue.d.ts +3 -0
- package/dist/lib/components/AcForm.vue_vue_type_script_setup_true_lang.js +4 -2
- package/dist/lib/components/AcFormArray.vue.d.ts +2 -2
- package/dist/lib/components/AcFormArray.vue_vue_type_script_setup_true_lang.js +149 -147
- package/dist/lib/components/AcFormFooter.vue.d.ts +3 -3
- package/dist/lib/components/AcFormFooter.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/lib/components/AcFormSection.vue.d.ts +8 -1
- package/dist/lib/components/AcFormSection.vue_vue_type_script_setup_true_lang.js +31 -21
- package/dist/lib/components/AcGraphChart.js +5 -0
- package/dist/lib/components/AcGraphChart.vue.d.ts +124 -0
- package/dist/lib/components/AcGraphChart.vue_vue_type_script_setup_true_lang.js +578 -0
- package/dist/lib/components/AcHeader.vue.d.ts +20 -5
- package/dist/lib/components/AcHeader.vue_vue_type_script_setup_true_lang.js +82 -28
- package/dist/lib/components/AcInfoTable.vue.d.ts +1 -1
- package/dist/lib/components/AcInfoTable.vue_vue_type_script_setup_true_lang.js +17 -13
- package/dist/lib/components/AcInput.vue.d.ts +4 -4
- package/dist/lib/components/AcInput.vue_vue_type_script_setup_true_lang.js +99 -91
- package/dist/lib/components/AcKbd.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/lib/components/AcKeyValueInput.js +5 -0
- package/dist/lib/components/AcKeyValueInput.vue.d.ts +114 -0
- package/dist/lib/components/AcKeyValueInput.vue_vue_type_script_setup_true_lang.js +336 -0
- package/dist/lib/components/AcLineChart.js +5 -0
- package/dist/lib/components/AcLineChart.vue.d.ts +44 -0
- package/dist/lib/components/AcLineChart.vue_vue_type_script_setup_true_lang.js +175 -0
- package/dist/lib/components/AcLoader.js +5 -0
- package/dist/lib/components/AcLoader.vue.d.ts +15 -0
- package/dist/lib/components/AcLoader.vue_vue_type_script_setup_true_lang.js +66 -0
- package/dist/lib/components/AcLocaleSwitcher.js +5 -0
- package/dist/lib/components/AcLocaleSwitcher.vue.d.ts +48 -0
- package/dist/lib/components/AcLocaleSwitcher.vue_vue_type_script_setup_true_lang.js +111 -0
- package/dist/lib/components/AcMapChart.js +5 -0
- package/dist/lib/components/AcMapChart.vue.d.ts +136 -0
- package/dist/lib/components/AcMapChart.vue_vue_type_script_setup_true_lang.js +518 -0
- package/dist/lib/components/AcModal.vue.d.ts +6 -3
- package/dist/lib/components/AcModal.vue_vue_type_script_setup_true_lang.js +88 -64
- package/dist/lib/components/AcNavbar.vue.d.ts +8 -5
- package/dist/lib/components/AcNavbar.vue_vue_type_script_setup_true_lang.js +29 -21
- package/dist/lib/components/AcNavbarItem.vue.d.ts +2 -2
- package/dist/lib/components/AcNavbarItem.vue_vue_type_script_setup_true_lang.js +23 -24
- package/dist/lib/components/AcNotificationMenu.vue.d.ts +3 -3
- package/dist/lib/components/AcNotificationMenu.vue_vue_type_script_setup_true_lang.js +139 -174
- package/dist/lib/components/AcNumberInput.js +5 -0
- package/dist/lib/components/AcNumberInput.vue.d.ts +79 -0
- package/dist/lib/components/AcNumberInput.vue_vue_type_script_setup_true_lang.js +241 -0
- package/dist/lib/components/AcPage.vue.d.ts +2 -2
- package/dist/lib/components/AcPage.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/lib/components/AcPagination.vue.d.ts +22 -5
- package/dist/lib/components/AcPagination.vue_vue_type_script_setup_true_lang.js +87 -56
- package/dist/lib/components/AcPreloader.vue.d.ts +3 -3
- package/dist/lib/components/AcPreloader.vue_vue_type_script_setup_true_lang.js +15 -16
- package/dist/lib/components/AcProductHero.js +5 -0
- package/dist/lib/components/AcProductHero.vue.d.ts +56 -0
- package/dist/lib/components/AcProductHero.vue_vue_type_script_setup_true_lang.js +95 -0
- package/dist/lib/components/AcProgress.vue.d.ts +19 -4
- package/dist/lib/components/AcProgress.vue_vue_type_script_setup_true_lang.js +85 -31
- package/dist/lib/components/AcResourceCard.vue.d.ts +3 -3
- package/dist/lib/components/AcResourceCard.vue_vue_type_script_setup_true_lang.js +17 -17
- package/dist/lib/components/AcSearchBar.vue.d.ts +1 -1
- package/dist/lib/components/AcSearchBar.vue_vue_type_script_setup_true_lang.js +14 -9
- package/dist/lib/components/AcSectionContent.vue.d.ts +2 -2
- package/dist/lib/components/AcSectionContent.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/lib/components/AcSegmentedControl.vue.d.ts +1 -1
- package/dist/lib/components/AcSegmentedControl.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/lib/components/AcSelect.vue.d.ts +6 -6
- package/dist/lib/components/AcSelect.vue_vue_type_script_setup_true_lang.js +246 -254
- package/dist/lib/components/AcSettingsRow.js +5 -0
- package/dist/lib/components/AcSettingsRow.vue.d.ts +29 -0
- package/dist/lib/components/AcSettingsRow.vue_vue_type_script_setup_true_lang.js +37 -0
- package/dist/lib/components/AcSidePanel.vue_vue_type_script_setup_true_lang.js +32 -32
- package/dist/lib/components/AcSideTabs.vue.d.ts +2 -2
- package/dist/lib/components/AcSideTabs.vue_vue_type_script_setup_true_lang.js +37 -37
- package/dist/lib/components/AcSidebar.vue.d.ts +6 -3
- package/dist/lib/components/AcSidebar.vue_vue_type_script_setup_true_lang.js +67 -57
- package/dist/lib/components/AcSidebarItem.vue.d.ts +1 -1
- package/dist/lib/components/AcSidebarItem.vue_vue_type_script_setup_true_lang.js +46 -45
- package/dist/lib/components/AcSidebarSection.vue.d.ts +2 -2
- package/dist/lib/components/AcSidebarSection.vue_vue_type_script_setup_true_lang.js +23 -18
- package/dist/lib/components/AcSkeleton.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/lib/components/AcSlider.vue.d.ts +1 -1
- package/dist/lib/components/AcSlider.vue_vue_type_script_setup_true_lang.js +174 -172
- package/dist/lib/components/AcStatCard.vue.d.ts +3 -3
- package/dist/lib/components/AcStatCard.vue_vue_type_script_setup_true_lang.js +90 -85
- package/dist/lib/components/AcStatusBar.vue.d.ts +1 -1
- package/dist/lib/components/AcStatusBar.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/lib/components/AcSteps.vue_vue_type_script_setup_true_lang.js +28 -28
- package/dist/lib/components/AcSwitch.vue.d.ts +3 -0
- package/dist/lib/components/AcSwitch.vue_vue_type_script_setup_true_lang.js +31 -19
- package/dist/lib/components/AcSwitchCard.js +5 -0
- package/dist/lib/components/AcSwitchCard.vue.d.ts +59 -0
- package/dist/lib/components/AcSwitchCard.vue_vue_type_script_setup_true_lang.js +121 -0
- package/dist/lib/components/AcTable.vue_vue_type_script_setup_true_lang.js +97 -97
- package/dist/lib/components/AcTabs.vue.d.ts +9 -2
- package/dist/lib/components/AcTabs.vue_vue_type_script_setup_true_lang.js +43 -28
- package/dist/lib/components/AcTag.vue.d.ts +2 -2
- package/dist/lib/components/AcTag.vue_vue_type_script_setup_true_lang.js +22 -22
- package/dist/lib/components/AcTagInput.js +5 -0
- package/dist/lib/components/AcTagInput.vue.d.ts +74 -0
- package/dist/lib/components/AcTagInput.vue_vue_type_script_setup_true_lang.js +289 -0
- package/dist/lib/components/AcTextarea.vue.d.ts +4 -4
- package/dist/lib/components/AcTextarea.vue_vue_type_script_setup_true_lang.js +85 -63
- package/dist/lib/components/AcThemeMode.vue.d.ts +3 -3
- package/dist/lib/components/AcThemeMode.vue_vue_type_script_setup_true_lang.js +56 -24
- package/dist/lib/components/AcTimePicker.js +5 -0
- package/dist/lib/components/AcTimePicker.vue.d.ts +65 -0
- package/dist/lib/components/AcTimePicker.vue_vue_type_script_setup_true_lang.js +455 -0
- package/dist/lib/components/AcToaster.vue.d.ts +6 -3
- package/dist/lib/components/AcToaster.vue_vue_type_script_setup_true_lang.js +115 -82
- package/dist/lib/components/AcTooltip.vue.d.ts +34 -14
- package/dist/lib/components/AcTooltip.vue_vue_type_script_setup_true_lang.js +203 -79
- package/dist/lib/components/AcUsageCard.vue_vue_type_script_setup_true_lang.js +27 -27
- package/dist/lib/components/AcUserMenu.vue.d.ts +23 -1
- package/dist/lib/components/AcUserMenu.vue_vue_type_script_setup_true_lang.js +166 -115
- package/dist/lib/components/index.d.ts +21 -2
- package/dist/lib/components/status.d.ts +28 -0
- package/dist/lib/components/status.js +125 -0
- package/dist/lib/composables/copyText.d.ts +2 -1
- package/dist/lib/composables/copyText.js +2 -2
- package/dist/lib/composables/useApiPagination.d.ts +55 -0
- package/dist/lib/composables/useApiPagination.js +58 -0
- package/dist/lib/composables/useBulkSelection.d.ts +44 -0
- package/dist/lib/composables/useBulkSelection.js +41 -0
- package/dist/lib/composables/useFormValidation.d.ts +65 -0
- package/dist/lib/composables/useFormValidation.js +148 -0
- package/dist/lib/composables/useTablePagination.d.ts +49 -0
- package/dist/lib/composables/useTablePagination.js +41 -0
- package/dist/lib/composables/useToast.d.ts +17 -1
- package/dist/lib/composables/useToast.js +10 -2
- package/dist/lib/editor/theme.js +65 -62
- package/dist/lib/index.d.ts +21 -3
- package/dist/lib/index.js +99 -75
- package/dist/lib/theme.css +377 -273
- 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
|
-
},
|
|
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
|
|
36
|
+
let O = s, k = h(s, "open"), A = c, j = {
|
|
34
37
|
info: {
|
|
35
|
-
subtle: "border-
|
|
38
|
+
subtle: "border-info/25 bg-info/10 text-info-strong",
|
|
36
39
|
solid: "border-black/15 bg-info text-white",
|
|
37
|
-
icon: "text-
|
|
40
|
+
icon: "text-info-strong",
|
|
38
41
|
glyph: v
|
|
39
42
|
},
|
|
40
43
|
warning: {
|
|
41
|
-
subtle: "border-
|
|
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-
|
|
46
|
+
icon: "text-warning-strong",
|
|
44
47
|
glyph: b
|
|
45
48
|
},
|
|
46
49
|
danger: {
|
|
47
|
-
subtle: "border-
|
|
50
|
+
subtle: "border-danger/25 bg-danger/10 text-danger-strong",
|
|
48
51
|
solid: "border-black/15 bg-danger text-white",
|
|
49
|
-
icon: "text-
|
|
52
|
+
icon: "text-danger-strong",
|
|
50
53
|
glyph: _
|
|
51
54
|
},
|
|
52
55
|
primary: {
|
|
53
|
-
subtle: "border-primary
|
|
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-
|
|
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
|
-
},
|
|
65
|
-
function
|
|
66
|
-
|
|
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) =>
|
|
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", [
|
|
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(
|
|
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" ?
|
|
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
|
-
|
|
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-
|
|
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,
|
|
94
|
+
})], 8, D)) : s.actionLabel ? (u(), r("button", {
|
|
95
95
|
key: 1,
|
|
96
96
|
type: "button",
|
|
97
|
-
class: l(["inline-flex h-
|
|
98
|
-
onClick: c[0] ||= (e) =>
|
|
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-
|
|
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:
|
|
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 {
|
|
114
|
+
export { O 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,
|
|
2
|
-
import { ChevronRight as
|
|
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-
|
|
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-
|
|
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 = {
|
|
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:
|
|
30
|
+
maxItems: { default: 0 },
|
|
31
|
+
separator: { default: "chevron" }
|
|
27
32
|
},
|
|
28
|
-
setup(
|
|
29
|
-
let
|
|
30
|
-
let e =
|
|
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
|
|
39
|
+
return j.value || k.maxItems < 3 || e.length <= k.maxItems ? e : [
|
|
35
40
|
e[0],
|
|
36
41
|
null,
|
|
37
|
-
...e.slice(e.length - (
|
|
42
|
+
...e.slice(e.length - (k.maxItems - 2))
|
|
38
43
|
];
|
|
39
44
|
});
|
|
40
|
-
function
|
|
41
|
-
if (e.to !== void 0 &&
|
|
42
|
-
is:
|
|
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,
|
|
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:
|
|
54
|
-
"aria-current": t.index ===
|
|
55
|
-
}, [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-
|
|
62
|
+
class: "size-4 shrink-0 text-primary",
|
|
58
63
|
"aria-hidden": "true"
|
|
59
|
-
})) : r("", !0), a("span", E,
|
|
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
|
-
...
|
|
68
|
+
...N(t.item),
|
|
64
69
|
is: void 0
|
|
65
70
|
}, {
|
|
66
|
-
class: "flex min-w-0 items-center gap-1 rounded-
|
|
67
|
-
|
|
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:
|
|
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-
|
|
77
|
+
class: "size-4 shrink-0",
|
|
76
78
|
"aria-hidden": "true"
|
|
77
|
-
})) : r("", !0), a("span",
|
|
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"]))])) : (
|
|
81
|
+
}, 1040, ["title", "aria-label"]))])) : (u(), i("li", C, [a("button", {
|
|
80
82
|
type: "button",
|
|
81
|
-
class: "cursor-pointer rounded-
|
|
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:
|
|
85
|
+
onClick: s[0] ||= (e) => j.value = !0
|
|
84
86
|
}, " … ")]))], 64))), 128))])]));
|
|
85
87
|
}
|
|
86
88
|
});
|
|
87
89
|
//#endregion
|
|
88
|
-
export {
|
|
90
|
+
export { k 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
|
+
};
|