@ac-design/design-system 2.0.0 → 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/dist/lib/charts/ChartFrame.vue.d.ts +2 -0
- package/dist/lib/charts/ChartFrame.vue_vue_type_script_setup_true_lang.js +42 -37
- 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 +4 -0
- package/dist/lib/charts/index.js +3 -1
- package/dist/lib/charts/shared.d.ts +0 -7
- package/dist/lib/charts/shared.js +1 -19
- package/dist/lib/charts/xy.d.ts +11 -7
- package/dist/lib/charts/xy.js +53 -72
- package/dist/lib/compat.css +1322 -278
- package/dist/lib/components/AcAlert.vue.d.ts +9 -0
- package/dist/lib/components/AcAlert.vue_vue_type_script_setup_true_lang.js +121 -21
- package/dist/lib/components/AcAppSwitcher.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/lib/components/AcAreaChart.vue.d.ts +3 -0
- package/dist/lib/components/AcAreaChart.vue_vue_type_script_setup_true_lang.js +132 -142
- package/dist/lib/components/AcAvatar.vue.d.ts +7 -4
- package/dist/lib/components/AcAvatar.vue_vue_type_script_setup_true_lang.js +59 -54
- package/dist/lib/components/AcBadge.vue.d.ts +7 -3
- package/dist/lib/components/AcBadge.vue_vue_type_script_setup_true_lang.js +35 -28
- package/dist/lib/components/AcBarChart.vue.d.ts +3 -0
- package/dist/lib/components/AcBarChart.vue_vue_type_script_setup_true_lang.js +142 -146
- package/dist/lib/components/AcBreadcrumb.vue.d.ts +4 -1
- package/dist/lib/components/AcBreadcrumb.vue_vue_type_script_setup_true_lang.js +18 -17
- package/dist/lib/components/AcBulkActionBar.vue.d.ts +2 -0
- package/dist/lib/components/AcBulkActionBar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/lib/components/AcButton.vue.d.ts +12 -6
- package/dist/lib/components/AcButton.vue_vue_type_script_setup_true_lang.js +85 -47
- package/dist/lib/components/AcCard.vue.d.ts +34 -3
- package/dist/lib/components/AcCard.vue_vue_type_script_setup_true_lang.js +169 -34
- package/dist/lib/components/AcCellValue.vue.d.ts +3 -3
- package/dist/lib/components/AcCellValue.vue_vue_type_script_setup_true_lang.js +171 -165
- package/dist/lib/components/AcCheckBox.vue.d.ts +1 -1
- package/dist/lib/components/AcCheckBox.vue_vue_type_script_setup_true_lang.js +58 -72
- 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 +100 -36
- package/dist/lib/components/AcCircularProgress.vue.d.ts +4 -4
- package/dist/lib/components/AcCircularProgress.vue_vue_type_script_setup_true_lang.js +12 -9
- package/dist/lib/components/AcColorInput.vue.d.ts +5 -2
- package/dist/lib/components/AcColorInput.vue_vue_type_script_setup_true_lang.js +127 -97
- 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.vue.d.ts +1 -1
- package/dist/lib/components/AcConfirmModal.vue_vue_type_script_setup_true_lang.js +7 -3
- package/dist/lib/components/AcCopyButton.vue.d.ts +2 -2
- package/dist/lib/components/AcCopyButton.vue_vue_type_script_setup_true_lang.js +4 -4
- 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 +3 -3
- package/dist/lib/components/AcDatePicker.vue_vue_type_script_setup_true_lang.js +606 -380
- package/dist/lib/components/AcDeleteModal.vue_vue_type_script_setup_true_lang.js +47 -41
- package/dist/lib/components/AcDonutChart.vue.d.ts +10 -0
- package/dist/lib/components/AcDonutChart.vue_vue_type_script_setup_true_lang.js +116 -89
- package/dist/lib/components/AcDropdown.vue.d.ts +5 -2
- package/dist/lib/components/AcDropdown.vue_vue_type_script_setup_true_lang.js +88 -75
- package/dist/lib/components/AcDropdownDivider.vue_vue_type_script_setup_true_lang.js +11 -10
- package/dist/lib/components/AcDropdownItem.vue.d.ts +1 -1
- package/dist/lib/components/AcDropdownItem.vue_vue_type_script_setup_true_lang.js +17 -17
- package/dist/lib/components/AcEmptyState.vue.d.ts +1 -1
- 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 +136 -114
- package/dist/lib/components/AcFooter.vue.d.ts +1 -1
- package/dist/lib/components/AcFooter.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/lib/components/AcFormFooter.vue.d.ts +1 -1
- package/dist/lib/components/AcFormSection.vue.d.ts +1 -1
- 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 +17 -2
- package/dist/lib/components/AcHeader.vue_vue_type_script_setup_true_lang.js +79 -25
- package/dist/lib/components/AcInfoTable.vue.d.ts +1 -1
- package/dist/lib/components/AcInput.vue.d.ts +1 -1
- package/dist/lib/components/AcInput.vue_vue_type_script_setup_true_lang.js +76 -79
- package/dist/lib/components/AcKeyValueInput.vue.d.ts +4 -4
- package/dist/lib/components/AcKeyValueInput.vue_vue_type_script_setup_true_lang.js +199 -183
- package/dist/lib/components/AcLineChart.vue.d.ts +6 -0
- package/dist/lib/components/AcLineChart.vue_vue_type_script_setup_true_lang.js +113 -125
- 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.vue.d.ts +3 -1
- package/dist/lib/components/AcLocaleSwitcher.vue_vue_type_script_setup_true_lang.js +44 -36
- 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 +85 -61
- package/dist/lib/components/AcNavbar.vue.d.ts +8 -5
- package/dist/lib/components/AcNavbar.vue_vue_type_script_setup_true_lang.js +25 -17
- package/dist/lib/components/AcNavbarItem.vue.d.ts +2 -2
- package/dist/lib/components/AcNavbarItem.vue_vue_type_script_setup_true_lang.js +3 -4
- package/dist/lib/components/AcNotificationMenu.vue.d.ts +3 -3
- package/dist/lib/components/AcNotificationMenu.vue_vue_type_script_setup_true_lang.js +133 -168
- package/dist/lib/components/AcNumberInput.vue.d.ts +2 -2
- package/dist/lib/components/AcNumberInput.vue_vue_type_script_setup_true_lang.js +137 -147
- package/dist/lib/components/AcPage.vue.d.ts +2 -2
- package/dist/lib/components/AcPage.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/lib/components/AcPagination.vue.d.ts +5 -5
- package/dist/lib/components/AcPagination.vue_vue_type_script_setup_true_lang.js +59 -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 +17 -2
- package/dist/lib/components/AcProgress.vue_vue_type_script_setup_true_lang.js +83 -29
- package/dist/lib/components/AcResourceCard.vue.d.ts +1 -1
- package/dist/lib/components/AcResourceCard.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/lib/components/AcSearchBar.vue.d.ts +1 -1
- package/dist/lib/components/AcSearchBar.vue_vue_type_script_setup_true_lang.js +8 -4
- package/dist/lib/components/AcSelect.vue.d.ts +3 -3
- package/dist/lib/components/AcSelect.vue_vue_type_script_setup_true_lang.js +232 -243
- 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 +5 -5
- package/dist/lib/components/AcSideTabs.vue.d.ts +1 -1
- package/dist/lib/components/AcSidebar.vue.d.ts +4 -1
- package/dist/lib/components/AcSidebar.vue_vue_type_script_setup_true_lang.js +104 -94
- package/dist/lib/components/AcSidebarItem.vue.d.ts +1 -1
- package/dist/lib/components/AcSidebarItem.vue_vue_type_script_setup_true_lang.js +42 -42
- 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/AcSteps.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/lib/components/AcSwitch.vue.d.ts +3 -0
- package/dist/lib/components/AcSwitch.vue_vue_type_script_setup_true_lang.js +46 -39
- package/dist/lib/components/AcSwitchCard.vue.d.ts +3 -3
- package/dist/lib/components/AcSwitchCard.vue_vue_type_script_setup_true_lang.js +9 -7
- package/dist/lib/components/AcTable.vue_vue_type_script_setup_true_lang.js +65 -65
- package/dist/lib/components/AcTabs.vue.d.ts +9 -2
- package/dist/lib/components/AcTabs.vue_vue_type_script_setup_true_lang.js +42 -27
- package/dist/lib/components/AcTag.vue.d.ts +1 -1
- package/dist/lib/components/AcTagInput.vue.d.ts +5 -5
- package/dist/lib/components/AcTagInput.vue_vue_type_script_setup_true_lang.js +140 -142
- package/dist/lib/components/AcTextarea.vue.d.ts +1 -1
- package/dist/lib/components/AcTextarea.vue_vue_type_script_setup_true_lang.js +69 -72
- package/dist/lib/components/AcThemeMode.vue.d.ts +3 -3
- package/dist/lib/components/AcThemeMode.vue_vue_type_script_setup_true_lang.js +54 -22
- package/dist/lib/components/AcTimePicker.vue.d.ts +1 -1
- package/dist/lib/components/AcTimePicker.vue_vue_type_script_setup_true_lang.js +177 -185
- package/dist/lib/components/AcToaster.vue.d.ts +6 -3
- package/dist/lib/components/AcToaster.vue_vue_type_script_setup_true_lang.js +103 -64
- package/dist/lib/components/AcTooltip.vue.d.ts +34 -14
- package/dist/lib/components/AcTooltip.vue_vue_type_script_setup_true_lang.js +184 -70
- package/dist/lib/components/AcUserMenu.vue.d.ts +23 -1
- package/dist/lib/components/AcUserMenu.vue_vue_type_script_setup_true_lang.js +181 -138
- package/dist/lib/components/index.d.ts +7 -0
- package/dist/lib/components/status.d.ts +3 -1
- package/dist/lib/components/status.js +20 -5
- package/dist/lib/composables/useToast.d.ts +17 -1
- package/dist/lib/composables/useToast.js +10 -2
- package/dist/lib/index.d.ts +7 -3
- package/dist/lib/index.js +80 -73
- package/dist/lib/theme.css +39 -54
- package/package.json +12 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
import { Teleport as t, createBlock as n, createCommentVNode as r,
|
|
1
|
+
import e from "./AcLoader.js";
|
|
2
|
+
import { Teleport as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, mergeProps as l, openBlock as u, renderSlot as d, toDisplayString as f } from "vue";
|
|
3
3
|
//#region src/lib/components/AcPreloader.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var
|
|
4
|
+
var p = { key: 0 }, m = { class: "max-w-80 text-base text-muted" }, h = /*@__PURE__*/ c({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "AcPreloader",
|
|
7
7
|
props: {
|
|
@@ -16,24 +16,23 @@ var d = { class: "max-w-80 text-base text-muted" }, f = /*@__PURE__*/ o({
|
|
|
16
16
|
},
|
|
17
17
|
minHeight: { default: "240px" }
|
|
18
18
|
},
|
|
19
|
-
setup(
|
|
20
|
-
return (
|
|
19
|
+
setup(c) {
|
|
20
|
+
return (h, g) => (u(), n(t, {
|
|
21
21
|
to: "body",
|
|
22
|
-
disabled: !
|
|
23
|
-
}, [
|
|
22
|
+
disabled: !c.fullPage
|
|
23
|
+
}, [a("div", l(h.$attrs, {
|
|
24
24
|
role: "status",
|
|
25
25
|
"aria-live": "polite",
|
|
26
|
-
class: ["flex flex-col items-center justify-center gap-4 px-4 text-center",
|
|
27
|
-
style:
|
|
26
|
+
class: ["flex flex-col items-center justify-center gap-4 px-4 text-center", c.fullPage ? "fixed inset-0 z-[80] bg-background" : "size-full"],
|
|
27
|
+
style: c.fullPage ? void 0 : { minHeight: c.minHeight },
|
|
28
28
|
"data-ac-ds": "",
|
|
29
29
|
"data-testid": "ac-preloader"
|
|
30
|
-
}), [
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}, null, 8, ["size"])) : r("", !0), i("div", d, [l(f.$slots, "default", {}, () => [a(u(o.message), 1)])])], 16)], 8, ["disabled"]));
|
|
30
|
+
}), [c.showSpinner ? (u(), i("div", p, [s(e, {
|
|
31
|
+
size: c.fullPage ? "large" : "normal",
|
|
32
|
+
label: "",
|
|
33
|
+
"aria-hidden": "true"
|
|
34
|
+
}, null, 8, ["size"])])) : r("", !0), a("div", m, [d(h.$slots, "default", {}, () => [o(f(c.message), 1)])])], 16)], 8, ["disabled"]));
|
|
36
35
|
}
|
|
37
36
|
});
|
|
38
37
|
//#endregion
|
|
39
|
-
export {
|
|
38
|
+
export { h as default };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export interface Props {
|
|
2
|
+
/** The headline in the heading colour, e.g. "Managed Databases." or "Business-ready". */
|
|
3
|
+
title?: string;
|
|
4
|
+
/** The part of the headline in the primary gradient, after `title`, e.g. "Simplified." or "Kubernetes". Leave `title` empty for an all-green headline such as "VMs in minutes.". */
|
|
5
|
+
highlight?: string;
|
|
6
|
+
/** One or two sentences under the headline on what the product does for the reader. */
|
|
7
|
+
description?: string;
|
|
8
|
+
/** Small uppercase label above the price. */
|
|
9
|
+
priceLabel?: string;
|
|
10
|
+
/** The starting price, e.g. "$4". Hides the price block when empty. */
|
|
11
|
+
price?: string;
|
|
12
|
+
/** Unit after the price, e.g. "/mo". */
|
|
13
|
+
pricePeriod?: string;
|
|
14
|
+
/** Benefits listed in the card with green check-circles. */
|
|
15
|
+
features?: string[];
|
|
16
|
+
/** Text of the full-width button at the bottom of the card, e.g. "Create Virtual Machine". Hides the button when empty. */
|
|
17
|
+
actionLabel?: string;
|
|
18
|
+
/** Makes the button a `RouterLink` to this route. Needs vue-router in the app; without it a string is used as `href`. */
|
|
19
|
+
actionTo?: string | Record<string, unknown>;
|
|
20
|
+
/** Makes the button a plain link. */
|
|
21
|
+
actionHref?: string;
|
|
22
|
+
}
|
|
23
|
+
type __VLS_Slots = {
|
|
24
|
+
/** Replaces the headline's text inside the `<h1>`. Wrap the green part in a span with the classes from the Theme table. */
|
|
25
|
+
title?: () => unknown;
|
|
26
|
+
/** Extra content under the description, e.g. a secondary link or badges. */
|
|
27
|
+
default?: () => unknown;
|
|
28
|
+
/** Replaces the card's whole body: price, features and button. */
|
|
29
|
+
card?: () => unknown;
|
|
30
|
+
/** Replaces the card's button, e.g. with two buttons or a disabled one with a tooltip. */
|
|
31
|
+
actions?: () => unknown;
|
|
32
|
+
};
|
|
33
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
|
+
action: (e: MouseEvent) => any;
|
|
35
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
36
|
+
onAction?: ((e: MouseEvent) => any) | undefined;
|
|
37
|
+
}>, {
|
|
38
|
+
title: string;
|
|
39
|
+
description: string;
|
|
40
|
+
actionLabel: string;
|
|
41
|
+
actionHref: string;
|
|
42
|
+
highlight: string;
|
|
43
|
+
priceLabel: string;
|
|
44
|
+
price: string;
|
|
45
|
+
pricePeriod: string;
|
|
46
|
+
features: string[];
|
|
47
|
+
actionTo: string | Record<string, unknown>;
|
|
48
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
49
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
50
|
+
declare const _default: typeof __VLS_export;
|
|
51
|
+
export default _default;
|
|
52
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
53
|
+
new (): {
|
|
54
|
+
$slots: S;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import e from "./AcButton.js";
|
|
2
|
+
import t from "./AcCheckList.js";
|
|
3
|
+
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createStaticVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, normalizeClass as p, openBlock as m, renderSlot as h, resolveDynamicComponent as g, toDisplayString as _, unref as v, useId as y, useSlots as b, withCtx as x } from "vue";
|
|
4
|
+
//#region src/lib/components/AcProductHero.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var S = ["aria-labelledby"], C = { class: "mx-auto flex max-w-page flex-col items-start justify-between gap-7 px-4 lg:flex-row lg:items-center lg:gap-10" }, w = ["id"], T = {
|
|
6
|
+
key: 1,
|
|
7
|
+
class: "box-decoration-clone bg-linear-to-r from-primary via-[color-mix(in_srgb,var(--color-primary)_80%,var(--color-chart-6))] to-[color-mix(in_srgb,var(--color-primary)_45%,var(--color-chart-6))] bg-clip-text text-transparent"
|
|
8
|
+
}, E = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "m-0 max-w-2xl text-lg leading-relaxed text-balance text-muted md:text-xl"
|
|
11
|
+
}, D = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "group relative isolate w-full shrink-0 overflow-hidden rounded-16 border border-border bg-surface/85 p-5 backdrop-blur-md transition-[translate,box-shadow,border-color] duration-[360ms] ease-out-soft hover:-translate-y-1 hover:shadow-xl motion-reduce:transition-none motion-reduce:hover:translate-y-0 lg:w-1/3",
|
|
14
|
+
"data-testid": "ac-product-hero-card"
|
|
15
|
+
}, O = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "mb-3"
|
|
18
|
+
}, k = {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "text-xs font-semibold tracking-wide text-muted uppercase"
|
|
21
|
+
}, A = { class: "m-0 mt-1 text-3xl font-bold tracking-tight text-heading md:text-4xl" }, j = /*@__PURE__*/ d({
|
|
22
|
+
__name: "AcProductHero",
|
|
23
|
+
props: {
|
|
24
|
+
title: { default: "" },
|
|
25
|
+
highlight: { default: "" },
|
|
26
|
+
description: { default: "" },
|
|
27
|
+
priceLabel: { default: "Starting at" },
|
|
28
|
+
price: { default: "" },
|
|
29
|
+
pricePeriod: { default: "" },
|
|
30
|
+
features: { default: () => [] },
|
|
31
|
+
actionLabel: { default: "" },
|
|
32
|
+
actionTo: { default: void 0 },
|
|
33
|
+
actionHref: { default: void 0 }
|
|
34
|
+
},
|
|
35
|
+
emits: ["action"],
|
|
36
|
+
setup(d, { emit: j }) {
|
|
37
|
+
let M = d, N = j, P = b(), F = f()?.appContext.components.RouterLink, I = y(), L = r(() => M.actionTo !== void 0 && !!F), R = r(() => M.actionHref ?? (typeof M.actionTo == "string" ? M.actionTo : void 0));
|
|
38
|
+
function z() {
|
|
39
|
+
return !!(P.card || P.actions || M.price || M.features.length || M.actionLabel);
|
|
40
|
+
}
|
|
41
|
+
function B(e, t) {
|
|
42
|
+
N("action", e), t?.(e);
|
|
43
|
+
}
|
|
44
|
+
return (r, f) => (m(), o("section", {
|
|
45
|
+
class: "relative isolate overflow-hidden bg-linear-to-br from-primary/8 via-background to-surface-sunken/35 py-12 lg:py-16",
|
|
46
|
+
"aria-labelledby": `${v(I)}-title`,
|
|
47
|
+
"data-ac-ds": "",
|
|
48
|
+
"data-testid": "ac-product-hero"
|
|
49
|
+
}, [f[2] ||= c("<div class=\"pointer-events-none absolute inset-0 -z-10\" aria-hidden=\"true\"><div class=\"absolute inset-0 bg-[linear-gradient(to_right,color-mix(in_srgb,var(--color-border)_25%,transparent)_1px,transparent_1px),linear-gradient(to_bottom,color-mix(in_srgb,var(--color-border)_25%,transparent)_1px,transparent_1px)] bg-size-[40px_40px] opacity-50 [mask-image:linear-gradient(to_bottom,black_20%,transparent_95%)]\"></div><div class=\"absolute -top-16 left-[8%] size-44 rounded-full bg-primary/20 opacity-60 blur-3xl\"></div><div class=\"absolute top-10 right-[12%] size-32 rounded-full bg-primary/15 opacity-60 blur-2xl\"></div><div class=\"absolute bottom-0 left-0 h-44 w-full bg-linear-to-t from-background/70 to-transparent\"></div></div>", 1), s("div", C, [s("div", { class: p(["flex min-w-0 flex-col gap-4", z() ? "w-full lg:w-2/3" : "w-full"]) }, [
|
|
50
|
+
s("h1", {
|
|
51
|
+
id: `${v(I)}-title`,
|
|
52
|
+
class: "m-0 max-w-4xl font-heading text-5xl leading-[1.05] font-bold tracking-tight break-words text-heading md:text-6xl lg:text-[60px]"
|
|
53
|
+
}, [h(r.$slots, "title", {}, () => [d.title ? (m(), o(n, { key: 0 }, [l(_(d.highlight ? `${d.title} ` : d.title), 1)], 64)) : a("", !0), d.highlight ? (m(), o("span", T, _(d.highlight), 1)) : a("", !0)])], 8, w),
|
|
54
|
+
d.description ? (m(), o("p", E, _(d.description), 1)) : a("", !0),
|
|
55
|
+
h(r.$slots, "default")
|
|
56
|
+
], 2), z() ? (m(), o("div", D, [f[1] ||= s("div", {
|
|
57
|
+
class: "pointer-events-none absolute inset-0 -z-10 bg-linear-to-r from-transparent via-primary/10 to-transparent opacity-0 transition-opacity duration-700 ease-out-soft group-hover:opacity-100 motion-reduce:transition-none",
|
|
58
|
+
"aria-hidden": "true"
|
|
59
|
+
}, null, -1), h(r.$slots, "card", {}, () => [
|
|
60
|
+
d.price ? (m(), o("div", O, [d.priceLabel ? (m(), o("span", k, _(d.priceLabel), 1)) : a("", !0), s("p", A, _(d.price) + _(d.pricePeriod), 1)])) : a("", !0),
|
|
61
|
+
d.features.length ? (m(), i(t, {
|
|
62
|
+
key: 1,
|
|
63
|
+
items: d.features,
|
|
64
|
+
class: "mb-5"
|
|
65
|
+
}, null, 8, ["items"])) : a("", !0),
|
|
66
|
+
h(r.$slots, "actions", {}, () => [d.actionLabel ? (m(), o(n, { key: 0 }, [L.value ? (m(), i(g(v(F)), {
|
|
67
|
+
key: 0,
|
|
68
|
+
to: d.actionTo,
|
|
69
|
+
custom: ""
|
|
70
|
+
}, {
|
|
71
|
+
default: x(({ href: t, navigate: n }) => [u(e, {
|
|
72
|
+
title: d.actionLabel,
|
|
73
|
+
href: t,
|
|
74
|
+
size: "medium",
|
|
75
|
+
class: "w-full",
|
|
76
|
+
onClick: (e) => B(e, n)
|
|
77
|
+
}, null, 8, [
|
|
78
|
+
"title",
|
|
79
|
+
"href",
|
|
80
|
+
"onClick"
|
|
81
|
+
])]),
|
|
82
|
+
_: 1
|
|
83
|
+
}, 8, ["to"])) : (m(), i(e, {
|
|
84
|
+
key: 1,
|
|
85
|
+
title: d.actionLabel,
|
|
86
|
+
href: R.value,
|
|
87
|
+
size: "medium",
|
|
88
|
+
class: "w-full",
|
|
89
|
+
onClick: f[0] ||= (e) => B(e)
|
|
90
|
+
}, null, 8, ["title", "href"]))], 64)) : a("", !0)])
|
|
91
|
+
])])) : a("", !0)])], 8, S));
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
//#endregion
|
|
95
|
+
export { j as default };
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import type { Tone } from "./types";
|
|
2
|
+
/** One coloured part of a segmented bar. */
|
|
3
|
+
export interface ProgressSegment {
|
|
4
|
+
/** The part's amount, in the same unit as the other segments. */
|
|
5
|
+
value: number;
|
|
6
|
+
/** Fill colour. Without it, segments take the chart palette in order. */
|
|
7
|
+
color?: Tone | "pending" | "neutral";
|
|
8
|
+
/** Name in the legend and the accessible summary, e.g. "Healthy". */
|
|
9
|
+
label?: string;
|
|
10
|
+
}
|
|
2
11
|
export interface Props {
|
|
3
|
-
/** Current amount, from 0 to `max`. Ignored while `indeterminate
|
|
12
|
+
/** Current amount, from 0 to `max`. Ignored while `indeterminate` or when `segments` is set. */
|
|
4
13
|
value?: number;
|
|
5
|
-
/** The amount that fills the bar. */
|
|
14
|
+
/** The amount that fills the bar: 100 for a single value. With `segments`, the sum of the segments unless you set it. */
|
|
6
15
|
max?: number;
|
|
16
|
+
/** Splits the bar into coloured parts, e.g. healthy, warning and hard-limit quotas: `{ value, color?, label? }[]`. Replaces `value`. */
|
|
17
|
+
segments?: ProgressSegment[];
|
|
18
|
+
/** Segments only: where the legend goes. `auto` puts it to the `right` of the bar when any segment has a `label`; `bottom` puts it under; `false` hides it. */
|
|
19
|
+
legend?: boolean | "auto" | "right" | "bottom";
|
|
7
20
|
/** Text above the bar, e.g. "Storage". Also the bar's accessible name. */
|
|
8
21
|
label?: string;
|
|
9
22
|
/** Shows the value to the right of the label: the percentage, or `valueText` when set. */
|
|
@@ -19,6 +32,7 @@ export interface Props {
|
|
|
19
32
|
}
|
|
20
33
|
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
21
34
|
label: string;
|
|
35
|
+
legend: boolean | "auto" | "right" | "bottom";
|
|
22
36
|
value: number;
|
|
23
37
|
color: Tone | "auto";
|
|
24
38
|
max: number;
|
|
@@ -26,6 +40,7 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {},
|
|
|
26
40
|
indeterminate: boolean;
|
|
27
41
|
valueText: string;
|
|
28
42
|
showValue: boolean;
|
|
43
|
+
segments: ProgressSegment[];
|
|
29
44
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
45
|
declare const _default: typeof __VLS_export;
|
|
31
46
|
export default _default;
|
|
@@ -1,24 +1,33 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as e, computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, defineComponent as o, normalizeClass as s, normalizeStyle as c, openBlock as l, renderList as u, toDisplayString as d, unref as f, useId as p } from "vue";
|
|
2
2
|
//#region src/lib/components/AcProgress.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var
|
|
3
|
+
var m = {
|
|
4
4
|
class: "w-full",
|
|
5
5
|
"data-ac-ds": "",
|
|
6
6
|
"data-testid": "ac-progress"
|
|
7
|
-
},
|
|
7
|
+
}, h = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "mb-2 flex items-baseline justify-between gap-3 text-base"
|
|
10
|
-
},
|
|
10
|
+
}, g = ["id"], _ = ["aria-label"], v = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "flex shrink-0 flex-wrap items-center gap-x-3 gap-y-1",
|
|
13
|
+
"aria-hidden": "true"
|
|
14
|
+
}, y = { class: "tabular-nums" }, b = [
|
|
11
15
|
"aria-labelledby",
|
|
12
16
|
"aria-label",
|
|
13
17
|
"aria-valuemax",
|
|
14
18
|
"aria-valuenow",
|
|
15
19
|
"aria-valuetext",
|
|
16
20
|
"aria-busy"
|
|
17
|
-
],
|
|
21
|
+
], x = /*@__PURE__*/ o({
|
|
18
22
|
__name: "AcProgress",
|
|
19
23
|
props: {
|
|
20
24
|
value: { default: 0 },
|
|
21
|
-
max: { default:
|
|
25
|
+
max: { default: void 0 },
|
|
26
|
+
segments: { default: void 0 },
|
|
27
|
+
legend: {
|
|
28
|
+
type: [Boolean, String],
|
|
29
|
+
default: "auto"
|
|
30
|
+
},
|
|
22
31
|
label: { default: "" },
|
|
23
32
|
showValue: {
|
|
24
33
|
type: Boolean,
|
|
@@ -32,45 +41,90 @@ var d = {
|
|
|
32
41
|
},
|
|
33
42
|
size: { default: "normal" }
|
|
34
43
|
},
|
|
35
|
-
setup(
|
|
36
|
-
let
|
|
44
|
+
setup(o) {
|
|
45
|
+
let x = o, S = {
|
|
37
46
|
primary: "bg-primary",
|
|
38
47
|
info: "bg-info",
|
|
39
48
|
success: "bg-success",
|
|
40
49
|
warning: "bg-warning",
|
|
41
50
|
danger: "bg-danger"
|
|
42
|
-
},
|
|
51
|
+
}, C = {
|
|
52
|
+
...S,
|
|
53
|
+
pending: "bg-pending",
|
|
54
|
+
neutral: "bg-chart-8"
|
|
55
|
+
}, w = [
|
|
56
|
+
"bg-chart-1",
|
|
57
|
+
"bg-chart-2",
|
|
58
|
+
"bg-chart-3",
|
|
59
|
+
"bg-chart-4",
|
|
60
|
+
"bg-chart-5",
|
|
61
|
+
"bg-chart-6",
|
|
62
|
+
"bg-chart-7",
|
|
63
|
+
"bg-chart-8"
|
|
64
|
+
], T = {
|
|
43
65
|
small: "h-1",
|
|
44
66
|
normal: "h-1.5",
|
|
45
67
|
large: "h-2.5"
|
|
46
|
-
},
|
|
47
|
-
|
|
68
|
+
}, E = p(), D = t(() => !!x.segments?.length), O = t(() => (x.segments ?? []).reduce((e, t) => e + Math.max(0, t.value), 0)), k = t(() => x.max ?? (D.value ? O.value : 100)), A = t(() => {
|
|
69
|
+
if (k.value <= 0) return 0;
|
|
70
|
+
let e = D.value ? O.value : x.value;
|
|
71
|
+
return Math.min(100, Math.max(0, e / k.value * 100));
|
|
72
|
+
}), j = t(() => (x.segments ?? []).map((e, t) => ({
|
|
73
|
+
key: `${t}-${e.label ?? ""}`,
|
|
74
|
+
label: e.label ?? "",
|
|
75
|
+
value: e.value,
|
|
76
|
+
fill: e.color ? C[e.color] : w[t % w.length],
|
|
77
|
+
width: k.value > 0 ? Math.max(0, e.value) / k.value * 100 : 0
|
|
78
|
+
}))), M = t(() => !D.value || x.legend === !1 ? null : x.legend === "bottom" ? "bottom" : x.legend === "auto" ? j.value.some((e) => e.label) ? "right" : null : "right"), N = t(() => {
|
|
79
|
+
let e = j.value.map((e, t) => `${e.label || `Part ${t + 1}`} ${e.value}`).join(", ");
|
|
80
|
+
return x.label ? `${x.label}: ${e}` : e;
|
|
81
|
+
}), P = t(() => x.color === "auto" ? A.value >= 95 ? "danger" : A.value >= 80 ? "warning" : "primary" : x.color), F = t(() => x.valueText || `${Math.round(A.value)}%`), I = t(() => x.indeterminate && !D.value), L = t(() => !!x.label || x.showValue && !I.value);
|
|
82
|
+
return (t, p) => (l(), r("div", m, [L.value ? (l(), r("div", h, [o.label ? (l(), r("span", {
|
|
48
83
|
key: 0,
|
|
49
|
-
id: `${
|
|
84
|
+
id: `${f(E)}-label`,
|
|
50
85
|
class: "min-w-0 truncate font-medium text-heading"
|
|
51
|
-
},
|
|
86
|
+
}, d(o.label), 9, g)) : n("", !0), o.showValue && !I.value ? (l(), r("span", {
|
|
52
87
|
key: 1,
|
|
53
|
-
class:
|
|
88
|
+
class: s(["ml-auto shrink-0 text-xs tabular-nums", o.color === "auto" && P.value !== "primary" ? P.value === "danger" ? "font-medium text-danger-strong" : "font-medium text-warning-strong" : "text-muted"]),
|
|
54
89
|
"aria-hidden": "true"
|
|
55
|
-
},
|
|
90
|
+
}, d(F.value), 3)) : n("", !0)])) : n("", !0), D.value ? (l(), r("div", {
|
|
91
|
+
key: 1,
|
|
92
|
+
class: s(["flex", M.value === "bottom" ? "flex-col gap-2" : "flex-wrap items-center gap-x-4 gap-y-2"])
|
|
93
|
+
}, [i("div", {
|
|
94
|
+
role: "img",
|
|
95
|
+
"aria-label": N.value,
|
|
96
|
+
class: s(["flex min-w-[120px] flex-1 overflow-hidden rounded-full bg-surface-sunken", T[o.size]])
|
|
97
|
+
}, [(l(!0), r(e, null, u(j.value, (t) => (l(), r(e, { key: t.key }, [t.width > 0 ? (l(), r("div", {
|
|
98
|
+
key: 0,
|
|
99
|
+
class: s(["h-full shrink-0 transition-[width] duration-300 ease-out motion-reduce:transition-none", t.fill]),
|
|
100
|
+
style: c({ width: `${t.width}%` })
|
|
101
|
+
}, null, 6)) : n("", !0)], 64))), 128))], 10, _), M.value ? (l(), r("ul", v, [(l(!0), r(e, null, u(j.value, (e) => (l(), r("li", {
|
|
102
|
+
key: e.key,
|
|
103
|
+
class: "flex items-center gap-1.5 text-xs leading-4 text-muted"
|
|
104
|
+
}, [
|
|
105
|
+
i("span", { class: s(["size-1.5 shrink-0 rounded-full", e.fill]) }, null, 2),
|
|
106
|
+
a(" " + d(e.label) + " ", 1),
|
|
107
|
+
i("span", y, d(e.value), 1)
|
|
108
|
+
]))), 128))])) : n("", !0)], 2)) : (l(), r("div", {
|
|
109
|
+
key: 2,
|
|
56
110
|
role: "progressbar",
|
|
57
|
-
"aria-labelledby":
|
|
58
|
-
"aria-label":
|
|
111
|
+
"aria-labelledby": o.label ? `${f(E)}-label` : void 0,
|
|
112
|
+
"aria-label": o.label ? void 0 : "Progress",
|
|
59
113
|
"aria-valuemin": "0",
|
|
60
|
-
"aria-valuemax":
|
|
61
|
-
"aria-valuenow":
|
|
62
|
-
"aria-valuetext":
|
|
63
|
-
"aria-busy":
|
|
64
|
-
class:
|
|
65
|
-
}, [
|
|
114
|
+
"aria-valuemax": o.indeterminate ? void 0 : k.value,
|
|
115
|
+
"aria-valuenow": o.indeterminate ? void 0 : Math.min(k.value, Math.max(0, o.value)),
|
|
116
|
+
"aria-valuetext": o.indeterminate ? void 0 : F.value,
|
|
117
|
+
"aria-busy": o.indeterminate || void 0,
|
|
118
|
+
class: s(["relative w-full overflow-hidden rounded-full bg-surface-sunken", T[o.size]])
|
|
119
|
+
}, [o.indeterminate ? (l(), r("div", {
|
|
66
120
|
key: 0,
|
|
67
|
-
class:
|
|
68
|
-
}, null, 2)) : (
|
|
121
|
+
class: s(["ac-progress-indeterminate absolute inset-y-0 left-0 w-2/5 rounded-full motion-reduce:w-full motion-reduce:opacity-40", S[P.value]])
|
|
122
|
+
}, null, 2)) : (l(), r("div", {
|
|
69
123
|
key: 1,
|
|
70
|
-
class:
|
|
71
|
-
style:
|
|
72
|
-
}, null, 6))], 10,
|
|
124
|
+
class: s(["h-full rounded-full transition-[width,background-color] duration-300 ease-out motion-reduce:transition-none", S[P.value]]),
|
|
125
|
+
style: c({ width: `${A.value}%` })
|
|
126
|
+
}, null, 6))], 10, b))]));
|
|
73
127
|
}
|
|
74
128
|
});
|
|
75
129
|
//#endregion
|
|
76
|
-
export {
|
|
130
|
+
export { x as default };
|
|
@@ -89,10 +89,10 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, i
|
|
|
89
89
|
loading: boolean;
|
|
90
90
|
subtitle: string;
|
|
91
91
|
mono: boolean;
|
|
92
|
+
columns: 1 | 2 | 3 | 4;
|
|
92
93
|
logo: string;
|
|
93
94
|
logoAlt: string;
|
|
94
95
|
statusColor: Tone | "default";
|
|
95
|
-
columns: 1 | 2 | 3 | 4;
|
|
96
96
|
statusLoading: boolean;
|
|
97
97
|
tags: (ResourceTag | string)[];
|
|
98
98
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import e from "./AcSpinner.js";
|
|
2
2
|
import t from "./AcBadge.js";
|
|
3
3
|
import n from "./AcSkeleton.js";
|
|
4
|
-
import r from "./
|
|
5
|
-
import i from "./
|
|
4
|
+
import r from "./AcDropdown.js";
|
|
5
|
+
import i from "./AcTag.js";
|
|
6
6
|
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createSlots as d, createTextVNode as f, createVNode as p, defineComponent as m, getCurrentInstance as h, mergeProps as g, normalizeClass as _, openBlock as v, renderList as y, renderSlot as b, resolveDynamicComponent as x, toDisplayString as S, unref as C, useId as w, useSlots as T, withCtx as E } from "vue";
|
|
7
7
|
//#region src/lib/components/AcResourceCard.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
var D = ["aria-labelledby", "aria-disabled"], O = { class: "flex min-w-0 items-start gap-3 p-5" }, k = ["aria-hidden"], A = ["src", "alt"], j = { class: "min-w-0 flex-1" }, M = ["id", "title"], N = ["title"], P = {
|
|
@@ -151,7 +151,7 @@ var D = ["aria-labelledby", "aria-disabled"], O = { class: "flex min-w-0 items-s
|
|
|
151
151
|
variant: "light",
|
|
152
152
|
rounded: "",
|
|
153
153
|
dot: ""
|
|
154
|
-
}, null, 8, ["label", "color"])) : c("", !0), (v(!0), l(a, null, y(J.value, (t, n) => (v(), s(
|
|
154
|
+
}, null, 8, ["label", "color"])) : c("", !0), (v(!0), l(a, null, y(J.value, (t, n) => (v(), s(i, {
|
|
155
155
|
key: `${t.key ?? ""}${t.label}${n}`,
|
|
156
156
|
label: t.key ? "" : t.label,
|
|
157
157
|
"key-label": t.key ?? "",
|
|
@@ -172,7 +172,7 @@ var D = ["aria-labelledby", "aria-disabled"], O = { class: "flex min-w-0 items-s
|
|
|
172
172
|
"color"
|
|
173
173
|
]))), 128))])])) : c("", !0)
|
|
174
174
|
]),
|
|
175
|
-
U.actions || U.menu ? (v(), l("div", F, [b(o.$slots, "actions"), U.menu ? (v(), s(
|
|
175
|
+
U.actions || U.menu ? (v(), l("div", F, [b(o.$slots, "actions"), U.menu ? (v(), s(r, {
|
|
176
176
|
key: 0,
|
|
177
177
|
align: "end",
|
|
178
178
|
"menu-label": `Actions for ${m.name}`
|
|
@@ -7,7 +7,7 @@ export interface Props {
|
|
|
7
7
|
placeholder?: string;
|
|
8
8
|
/** Milliseconds to wait after typing before emitting `search`. `0` emits on every key. */
|
|
9
9
|
debounce?: number;
|
|
10
|
-
/** `small` 36px or `normal`
|
|
10
|
+
/** `small` 36px or `normal` 42px tall. */
|
|
11
11
|
size?: "small" | "normal";
|
|
12
12
|
/** Options for a filter select attached to the right of the field, such as cluster status. Bind the choice with `v-model:filter`. No options, no filter. */
|
|
13
13
|
filterOptions?: SearchFilterOption[];
|
|
@@ -25,7 +25,7 @@ var w = {
|
|
|
25
25
|
}),
|
|
26
26
|
emits: /*@__PURE__*/ s(["search"], ["update:modelValue", "update:filter"]),
|
|
27
27
|
setup(o, { emit: s }) {
|
|
28
|
-
let A = o, j = h(o, "modelValue"), M = h(o, "filter"), N = s, P = d(null), F = t(() => A.filterOptions.length > 0), I = t(() => A.size === "small" ? "h-9" : "h-10"), L;
|
|
28
|
+
let A = o, j = h(o, "modelValue"), M = h(o, "filter"), N = s, P = d(null), F = t(() => A.filterOptions.length > 0), I = t(() => A.size === "small" ? "h-9" : "h-10.5"), L;
|
|
29
29
|
function R() {
|
|
30
30
|
j.value = "", P.value?.focus();
|
|
31
31
|
}
|
|
@@ -35,9 +35,9 @@ var w = {
|
|
|
35
35
|
e.length && !e.some((e) => e.value === M.value) && (M.value = e[0].value);
|
|
36
36
|
}, { immediate: !0 }), l(() => clearTimeout(L)), (t, s) => (u(), r("div", w, [i("div", T, [
|
|
37
37
|
a(m(S), {
|
|
38
|
-
class: "pointer-events-none absolute top-1/2 left-3
|
|
38
|
+
class: c(["pointer-events-none absolute top-1/2 left-3 z-20 -translate-y-1/2 text-muted", o.size === "small" ? "size-4" : "size-5"]),
|
|
39
39
|
"aria-hidden": "true"
|
|
40
|
-
}),
|
|
40
|
+
}, null, 8, ["class"]),
|
|
41
41
|
y(i("input", {
|
|
42
42
|
ref_key: "input",
|
|
43
43
|
ref: P,
|
|
@@ -45,7 +45,11 @@ var w = {
|
|
|
45
45
|
type: "search",
|
|
46
46
|
placeholder: o.placeholder,
|
|
47
47
|
"aria-label": o.placeholder,
|
|
48
|
-
class: c(["relative block w-full border border-border bg-background pr-10
|
|
48
|
+
class: c(["relative block w-full border border-border bg-background pr-10 text-base font-normal text-heading transition-[color,background-color,border-color,box-shadow] duration-200 outline-none placeholder:text-muted/80 hover:border-accent-active focus:z-10 focus:focus-ring [&::-webkit-search-cancel-button]:hidden", [
|
|
49
|
+
I.value,
|
|
50
|
+
o.size === "small" ? "pl-9" : "pl-10",
|
|
51
|
+
F.value ? "rounded-l-10" : "rounded-10"
|
|
52
|
+
]]),
|
|
49
53
|
onKeydown: s[1] ||= b((e) => j.value && (R(), e.stopPropagation()), ["esc"])
|
|
50
54
|
}, null, 42, E), [[_, j.value]]),
|
|
51
55
|
j.value ? (u(), r("button", {
|
|
@@ -30,7 +30,7 @@ export interface Props<T> {
|
|
|
30
30
|
errorMsg?: string;
|
|
31
31
|
/** Help text between the label and the field. */
|
|
32
32
|
hint?: string;
|
|
33
|
-
/** `compact` 32px (toolbars and filters), `small` 36px or `normal`
|
|
33
|
+
/** `compact` 32px (toolbars and filters), `small` 36px or `normal` 42px tall. */
|
|
34
34
|
size?: "compact" | "small" | "normal";
|
|
35
35
|
/** Text shown when no option matches the search. */
|
|
36
36
|
noResultText?: string;
|
|
@@ -42,8 +42,8 @@ declare const __VLS_export: <V>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
|
|
|
42
42
|
onSearch?: ((query: string) => any) | undefined;
|
|
43
43
|
onSelect?: ((option: SelectOption<V>) => any) | undefined;
|
|
44
44
|
"onUpdate:modelValue"?: ((value: V | V[] | null) => any) | undefined;
|
|
45
|
-
onRemove?: ((option: SelectOption<V>) => any) | undefined;
|
|
46
45
|
onCreate?: ((text: string) => any) | undefined;
|
|
46
|
+
onRemove?: ((option: SelectOption<V>) => any) | undefined;
|
|
47
47
|
onRefresh?: (() => any) | undefined;
|
|
48
48
|
}> & (typeof globalThis extends {
|
|
49
49
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -65,7 +65,7 @@ declare const __VLS_export: <V>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
|
|
|
65
65
|
query: string;
|
|
66
66
|
}) => unknown;
|
|
67
67
|
};
|
|
68
|
-
emit: (((evt: "search", query: string) => void) & ((evt: "select", option: SelectOption<V>) => void) & ((evt: "
|
|
68
|
+
emit: (((evt: "search", query: string) => void) & ((evt: "select", option: SelectOption<V>) => void) & ((evt: "create", text: string) => void) & ((evt: "remove", option: SelectOption<V>) => void) & ((evt: "refresh") => void)) & ((event: "update:modelValue", value: V | V[] | null) => void);
|
|
69
69
|
}>) => import("vue").VNode & {
|
|
70
70
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
71
71
|
};
|