@ac-design/design-system 2.2.1 → 2.4.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/compat.css +421 -0
- package/dist/lib/components/AcAppSwitcher.vue.d.ts +1 -1
- package/dist/lib/components/AcAppSwitcher.vue_vue_type_script_setup_true_lang.js +23 -23
- package/dist/lib/components/AcAreaChart.vue.d.ts +1 -1
- package/dist/lib/components/AcBarChart.vue.d.ts +1 -1
- package/dist/lib/components/AcButton.vue.d.ts +25 -13
- package/dist/lib/components/AcButton.vue_vue_type_script_setup_true_lang.js +122 -71
- package/dist/lib/components/AcCard.vue.d.ts +11 -5
- package/dist/lib/components/AcCard.vue_vue_type_script_setup_true_lang.js +99 -51
- package/dist/lib/components/AcCellValue.vue.d.ts +3 -3
- package/dist/lib/components/AcCellValue.vue_vue_type_script_setup_true_lang.js +20 -20
- package/dist/lib/components/AcCheckBox.vue.d.ts +4 -1
- package/dist/lib/components/AcCheckBox.vue_vue_type_script_setup_true_lang.js +50 -50
- package/dist/lib/components/AcCircularProgress.vue.d.ts +1 -1
- package/dist/lib/components/AcCodeEditor.vue.d.ts +12 -0
- package/dist/lib/components/AcCodeEditor.vue_vue_type_script_setup_true_lang.js +240 -207
- package/dist/lib/components/AcColorInput.vue.d.ts +4 -4
- package/dist/lib/components/AcColorInput.vue_vue_type_script_setup_true_lang.js +72 -66
- package/dist/lib/components/AcCostSummary.vue.d.ts +1 -1
- package/dist/lib/components/AcDatePicker.vue.d.ts +41 -10
- package/dist/lib/components/AcDatePicker.vue_vue_type_script_setup_true_lang.js +554 -446
- package/dist/lib/components/AcDeleteModal.vue.d.ts +1 -1
- package/dist/lib/components/AcDonutChart.vue.d.ts +2 -2
- package/dist/lib/components/AcDropdown.vue.d.ts +1 -1
- package/dist/lib/components/AcDropdown.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/lib/components/AcErrorState.vue.d.ts +1 -1
- package/dist/lib/components/AcFormFooter.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/lib/components/AcGraphChart.vue.d.ts +2 -2
- package/dist/lib/components/AcHeader.vue.d.ts +1 -1
- package/dist/lib/components/AcInput.vue.d.ts +86 -44
- package/dist/lib/components/AcInput.vue_vue_type_script_setup_true_lang.js +319 -86
- package/dist/lib/components/AcKeyValueInput.vue.d.ts +34 -54
- package/dist/lib/components/AcKeyValueInput.vue_vue_type_script_setup_true_lang.js +134 -106
- package/dist/lib/components/AcLineChart.vue.d.ts +1 -1
- package/dist/lib/components/AcLocaleSwitcher.vue.d.ts +6 -0
- package/dist/lib/components/AcLocaleSwitcher.vue_vue_type_script_setup_true_lang.js +74 -58
- package/dist/lib/components/AcMapChart.vue.d.ts +2 -2
- package/dist/lib/components/AcModal.vue.d.ts +1 -1
- package/dist/lib/components/AcNavbar.vue.d.ts +2 -0
- package/dist/lib/components/AcNavbar.vue_vue_type_script_setup_true_lang.js +31 -25
- package/dist/lib/components/AcNotificationMenu.vue.d.ts +1 -1
- package/dist/lib/components/AcNotificationMenu.vue_vue_type_script_setup_true_lang.js +24 -24
- package/dist/lib/components/AcNumberInput.vue.d.ts +55 -45
- package/dist/lib/components/AcNumberInput.vue_vue_type_script_setup_true_lang.js +159 -99
- package/dist/lib/components/AcRadioCard.js +5 -0
- package/dist/lib/components/AcRadioCard.vue.d.ts +55 -0
- package/dist/lib/components/AcRadioCard.vue_vue_type_script_setup_true_lang.js +135 -0
- package/dist/lib/components/AcSelect.vue.d.ts +46 -6
- package/dist/lib/components/AcSelect.vue_vue_type_script_setup_true_lang.js +309 -197
- package/dist/lib/components/AcSidePanel.vue.d.ts +1 -1
- package/dist/lib/components/AcSidebar.vue.d.ts +9 -0
- package/dist/lib/components/AcSidebar.vue_vue_type_script_setup_true_lang.js +113 -94
- package/dist/lib/components/AcSidebarSection.vue_vue_type_script_setup_true_lang.js +19 -18
- package/dist/lib/components/AcSlider.vue.d.ts +2 -2
- package/dist/lib/components/AcSwitch.vue_vue_type_script_setup_true_lang.js +23 -23
- package/dist/lib/components/AcTable.vue.d.ts +50 -5
- package/dist/lib/components/AcTable.vue_vue_type_script_setup_true_lang.js +257 -129
- package/dist/lib/components/AcTagInput.vue.d.ts +23 -4
- package/dist/lib/components/AcTagInput.vue_vue_type_script_setup_true_lang.js +126 -114
- package/dist/lib/components/AcTaintInput.js +5 -0
- package/dist/lib/components/AcTaintInput.vue.d.ts +44 -0
- package/dist/lib/components/AcTaintInput.vue_vue_type_script_setup_true_lang.js +208 -0
- package/dist/lib/components/AcTextarea.vue.d.ts +64 -4
- package/dist/lib/components/AcTextarea.vue_vue_type_script_setup_true_lang.js +159 -68
- package/dist/lib/components/AcThemeMode.vue.d.ts +10 -2
- package/dist/lib/components/AcThemeMode.vue_vue_type_script_setup_true_lang.js +53 -42
- package/dist/lib/components/AcTimePicker.vue.d.ts +36 -11
- package/dist/lib/components/AcTimePicker.vue_vue_type_script_setup_true_lang.js +232 -168
- package/dist/lib/components/AcTooltip.vue.d.ts +3 -3
- package/dist/lib/components/AcUserMenu.vue.d.ts +8 -0
- package/dist/lib/components/AcUserMenu.vue_vue_type_script_setup_true_lang.js +126 -109
- package/dist/lib/components/index.d.ts +2 -0
- package/dist/lib/components/types.d.ts +2 -0
- package/dist/lib/composables/useToast.d.ts +2 -2
- package/dist/lib/index.d.ts +2 -1
- package/dist/lib/index.js +51 -49
- package/package.json +1 -1
|
@@ -22,6 +22,8 @@ export interface Props<T> {
|
|
|
22
22
|
loading?: boolean;
|
|
23
23
|
/** Shows a refresh button that emits `refresh`. */
|
|
24
24
|
refreshable?: boolean;
|
|
25
|
+
/** With `refreshable`, spins the refresh icon while options reload. Unlike `loading`, the field stays usable. */
|
|
26
|
+
refreshing?: boolean;
|
|
25
27
|
/** Disables the field. */
|
|
26
28
|
disabled?: boolean;
|
|
27
29
|
/** Marks the field required and adds a red asterisk. */
|
|
@@ -30,18 +32,44 @@ export interface Props<T> {
|
|
|
30
32
|
errorMsg?: string;
|
|
31
33
|
/** Help text between the label and the field. */
|
|
32
34
|
hint?: string;
|
|
33
|
-
/** `compact` 32px (toolbars and filters), `small` 36px
|
|
34
|
-
size?: "compact" | "small" | "normal";
|
|
35
|
+
/** Field height: `xs` 26px, `compact` 32px (toolbars and filters), `xsmall` 34px, `small` 36px, `medium` 38px, `normal` 42px or `large` 50px. Old cloud-ui `size` `xs`, `sm`, `md`, `lg`, `xl` are `xs`, `xsmall`, `medium`, `normal`, `large`. */
|
|
36
|
+
size?: "xs" | "compact" | "xsmall" | "small" | "medium" | "normal" | "large";
|
|
37
|
+
/** Field style: `outline` (bordered), `soft` (accent fill, no border) or `ghost` (no fill, no border), e.g. inside a table row. */
|
|
38
|
+
variant?: "outline" | "soft" | "ghost";
|
|
39
|
+
/** Draws a primary halo around the field to point the viewer at it. */
|
|
40
|
+
highlight?: boolean;
|
|
41
|
+
/** Shows the value but blocks changes: a muted fill, and "(read only)" after the label. Old cloud-ui `is-read-only`. */
|
|
42
|
+
readonly?: boolean;
|
|
43
|
+
/** With `required`, shows "This field is required. Please select an option." (with `multiple`, "…at least one option.") when the list closes or the value changes while nothing is selected. It shows instead of `errorMsg`. */
|
|
44
|
+
validateRequired?: boolean;
|
|
45
|
+
/** Treats values that aren't in `options` as no selection, so the field shows the placeholder instead of the raw value. */
|
|
46
|
+
hideUnknownValues?: boolean;
|
|
47
|
+
/** What a single select writes to `v-model` when the viewer clears it, e.g. `""` for a string field. */
|
|
48
|
+
emptyValue?: T | null;
|
|
49
|
+
/** With `multiple`, writes `[]` on mount when `v-model` starts empty (`null`, `undefined` or `""`), so the app always reads an array. */
|
|
50
|
+
initEmptyArray?: boolean;
|
|
51
|
+
/** Text shown when the list is empty or nothing matches the search, in place of "No options" and "No results for “text”", e.g. "No options found". */
|
|
52
|
+
emptyText?: string;
|
|
53
|
+
/** With `refreshable`, hides the refresh button while the field is disabled instead of showing it greyed out. */
|
|
54
|
+
hideRefreshWhenDisabled?: boolean;
|
|
55
|
+
/** With `multiple`, pads the chips like a line of text, so a field with chips is 4–8px taller than the bare field. */
|
|
56
|
+
looseChips?: boolean;
|
|
35
57
|
/** Text shown when no option matches the search. */
|
|
36
58
|
noResultText?: string;
|
|
59
|
+
/** Side of the field the list opens on: `bottom` or `top`. It flips to the other side when there isn't room. */
|
|
60
|
+
placement?: "bottom" | "top";
|
|
37
61
|
}
|
|
38
|
-
declare const __VLS_export: <V>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
62
|
+
declare const __VLS_export: <V, M = V | V[] | null>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
39
63
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<(Props<V> & {
|
|
40
|
-
modelValue?:
|
|
64
|
+
modelValue?: M;
|
|
65
|
+
/** Whether the list is open. Bind `v-model:open` to react when it opens or closes, e.g. to check a required field. */
|
|
66
|
+
open?: boolean;
|
|
41
67
|
}) & {
|
|
42
68
|
onSearch?: ((query: string) => any) | undefined;
|
|
43
69
|
onSelect?: ((option: SelectOption<V>) => any) | undefined;
|
|
44
|
-
"onUpdate:modelValue"?: ((value:
|
|
70
|
+
"onUpdate:modelValue"?: ((value: M) => any) | undefined;
|
|
71
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
72
|
+
onChange?: ((value: M) => any) | undefined;
|
|
45
73
|
onCreate?: ((text: string) => any) | undefined;
|
|
46
74
|
onRemove?: ((option: SelectOption<V>) => any) | undefined;
|
|
47
75
|
onRefresh?: (() => any) | undefined;
|
|
@@ -60,12 +88,24 @@ declare const __VLS_export: <V>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
|
|
|
60
88
|
selected: boolean;
|
|
61
89
|
active: boolean;
|
|
62
90
|
}) => unknown;
|
|
91
|
+
/** Content of the closed field for the chosen option in single select, e.g. an icon and a second line. Receives the option; defaults to its label. */
|
|
92
|
+
selected?: (props: {
|
|
93
|
+
option: SelectOption<V>;
|
|
94
|
+
}) => unknown;
|
|
63
95
|
/** Content shown when the list is empty or nothing matches. */
|
|
64
96
|
empty?: (props: {
|
|
65
97
|
query: string;
|
|
66
98
|
}) => unknown;
|
|
99
|
+
/** One template for an option in the list and in the closed field (single select). `option` and `selected` win over it. Old cloud-ui `custom-options`. */
|
|
100
|
+
content?: (props: {
|
|
101
|
+
option: SelectOption<V>;
|
|
102
|
+
}) => unknown;
|
|
103
|
+
/** Content before the label text, e.g. an icon. */
|
|
104
|
+
"label-icon"?: () => unknown;
|
|
105
|
+
/** Content after the label text, e.g. "(Optional)". */
|
|
106
|
+
"label-extra"?: () => unknown;
|
|
67
107
|
};
|
|
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:
|
|
108
|
+
emit: (((evt: "search", query: string) => void) & ((evt: "select", option: SelectOption<V>) => void) & ((evt: "change", value: M) => void) & ((evt: "create", text: string) => void) & ((evt: "remove", option: SelectOption<V>) => void) & ((evt: "refresh") => void)) & (((event: "update:modelValue", value: M) => void) & ((event: "update:open", value: boolean) => void));
|
|
69
109
|
}>) => import("vue").VNode & {
|
|
70
110
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
71
111
|
};
|