@ac-design/design-system 2.6.1 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/lib/charts/ChartFrame.vue_vue_type_script_setup_true_lang.js +2 -2
  2. package/dist/lib/charts/graph.d.ts +9 -15
  3. package/dist/lib/charts/graph.js +79 -75
  4. package/dist/lib/charts/index.d.ts +4 -2
  5. package/dist/lib/charts/index.js +2 -1
  6. package/dist/lib/charts/nodeSymbol.d.ts +15 -0
  7. package/dist/lib/charts/nodeSymbol.js +27 -0
  8. package/dist/lib/charts/tree.d.ts +15 -0
  9. package/dist/lib/charts/tree.js +89 -0
  10. package/dist/lib/compat.css +113 -0
  11. package/dist/lib/components/AcAccordionItem.vue.d.ts +3 -1
  12. package/dist/lib/components/AcAccordionItem.vue_vue_type_script_setup_true_lang.js +35 -26
  13. package/dist/lib/components/AcAlert.vue.d.ts +1 -1
  14. package/dist/lib/components/AcBadge.vue.d.ts +1 -1
  15. package/dist/lib/components/AcBanner.vue.d.ts +1 -1
  16. package/dist/lib/components/AcCard.vue.d.ts +1 -1
  17. package/dist/lib/components/AcCellValue.vue.d.ts +1 -1
  18. package/dist/lib/components/AcCheckList.vue.d.ts +1 -1
  19. package/dist/lib/components/AcConfirmModal.vue.d.ts +1 -1
  20. package/dist/lib/components/AcDropdownItem.vue.d.ts +1 -1
  21. package/dist/lib/components/AcFeatureCard.vue.d.ts +1 -1
  22. package/dist/lib/components/AcGraphChart.vue.d.ts +53 -3
  23. package/dist/lib/components/AcGraphChart.vue_vue_type_script_setup_true_lang.js +401 -233
  24. package/dist/lib/components/AcList.js +5 -0
  25. package/dist/lib/components/AcList.vue.d.ts +56 -0
  26. package/dist/lib/components/AcList.vue_vue_type_script_setup_true_lang.js +74 -0
  27. package/dist/lib/components/AcListItem.js +5 -0
  28. package/dist/lib/components/AcListItem.vue.d.ts +53 -0
  29. package/dist/lib/components/AcListItem.vue_vue_type_script_setup_true_lang.js +105 -0
  30. package/dist/lib/components/AcMapChart.vue.d.ts +66 -3
  31. package/dist/lib/components/AcMapChart.vue_vue_type_script_setup_true_lang.js +403 -201
  32. package/dist/lib/components/AcMonthPicker.js +5 -0
  33. package/dist/lib/components/AcMonthPicker.vue.d.ts +102 -0
  34. package/dist/lib/components/AcMonthPicker.vue_vue_type_script_setup_true_lang.js +595 -0
  35. package/dist/lib/components/AcNavbarItem.vue.d.ts +1 -1
  36. package/dist/lib/components/AcResourceCard.vue.d.ts +1 -1
  37. package/dist/lib/components/AcSideTabs.vue.d.ts +3 -1
  38. package/dist/lib/components/AcSideTabs.vue_vue_type_script_setup_true_lang.js +53 -33
  39. package/dist/lib/components/AcSidebarItem.vue.d.ts +1 -1
  40. package/dist/lib/components/AcStatCard.vue.d.ts +1 -1
  41. package/dist/lib/components/AcTreeChart.js +5 -0
  42. package/dist/lib/components/AcTreeChart.vue.d.ts +135 -0
  43. package/dist/lib/components/AcTreeChart.vue_vue_type_script_setup_true_lang.js +809 -0
  44. package/dist/lib/components/AcUsageCard.vue.d.ts +1 -1
  45. package/dist/lib/components/index.d.ts +5 -2
  46. package/dist/lib/composables/copyText.d.ts +5 -1
  47. package/dist/lib/composables/copyText.js +15 -3
  48. package/dist/lib/index.d.ts +3 -0
  49. package/dist/lib/index.js +85 -81
  50. package/package.json +1 -1
@@ -0,0 +1,5 @@
1
+ import e from "./AcMonthPicker.vue_vue_type_script_setup_true_lang.js";
2
+ //#region src/lib/components/AcMonthPicker.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,102 @@
1
+ import type { HTMLAttributes } from "vue";
2
+ export interface MonthPickerPreset {
3
+ /** Button text, e.g. "Last 6 months". */
4
+ label: string;
5
+ /** Returns the value in the same format as `v-model`: `YYYY-MM`, or `[start, end]` with `range`. */
6
+ value: () => string | [string, string];
7
+ }
8
+ export interface Props {
9
+ /** Label above the field. Doubles as the accessible name of the trigger and the popover. */
10
+ label?: string;
11
+ /** Text shown in the field while there's no value. Defaults to "Choose month" (or "Choose months" with `range`). */
12
+ placeholder?: string;
13
+ /** Pick a start and an end month; `v-model` becomes `[start, end]`, swapped so start ≤ end. */
14
+ range?: boolean;
15
+ /** Earliest choosable month as `YYYY-MM`; a `YYYY-MM-DD` uses its month. */
16
+ minMonth?: string;
17
+ /** Latest choosable month as `YYYY-MM`; a `YYYY-MM-DD` uses its month. */
18
+ maxMonth?: string;
19
+ /** Old `min-date`: the same as `minMonth`, which wins when both are set. */
20
+ minDate?: string;
21
+ /** Old `max-date`: the same as `maxMonth`, which wins when both are set. */
22
+ maxDate?: string;
23
+ /** Return `true` to block a month. It receives the month as `YYYY-MM`. */
24
+ isMonthDisabled?: (month: string) => boolean;
25
+ /** Quick picks shown beside the grid, such as “Last 6 months”. Choosing one applies it at once. */
26
+ presets?: MonthPickerPreset[];
27
+ /** BCP 47 locale for month names and the field text, e.g. "March 2026". Defaults to the browser's. */
28
+ locale?: string;
29
+ /** Shows a clear button in the field, and a Clear button in the popover, when there is a value. */
30
+ clearable?: boolean;
31
+ /** Disables the field. */
32
+ disabled?: boolean;
33
+ /** Marks the field required and adds a red asterisk. */
34
+ required?: boolean;
35
+ /** Error text under the field. Turns the border red and sets `aria-invalid`. */
36
+ errorMsg?: string;
37
+ /** Help text between the label and the field. */
38
+ hint?: string;
39
+ /** `small` 36px or `normal` 42px tall, the same as `AcInput`; `large` is 50px with 16px medium text, as `AcDatePicker`. */
40
+ size?: "small" | "normal" | "large";
41
+ /** Adds a hidden input with this name so plain form posts include the value. A range posts as `start/end`. */
42
+ name?: string;
43
+ /** Draws the month grid in place, with no field, popover or border. Each pick updates `v-model` at once. */
44
+ inline?: boolean;
45
+ /** Shape of `v-model`: `string` for `YYYY-MM`, or `date` for a `Date` at local midnight on the 1st. Not for `range`. */
46
+ valueType?: "string" | "date";
47
+ /** Classes for the field box under the label, e.g. `max-w-xs` to keep it narrower than the hint. */
48
+ fieldClass?: HTMLAttributes["class"];
49
+ }
50
+ type __VLS_Props = Props;
51
+ type __VLS_Slots = {
52
+ /** Content before the label text, such as a 14px icon. */
53
+ "label-icon"?: () => unknown;
54
+ /** Content after the label text, such as "(Optional)" or an info tooltip. */
55
+ "label-extra"?: () => unknown;
56
+ };
57
+ type __VLS_ModelProps = {
58
+ /** `"2026-03"`, or `[start, end]` with `range`; a `Date` with `value-type="date"`. `null` when empty. */
59
+ modelValue?: string | Date | [string, string] | null;
60
+ /** Whether the popover is open. */
61
+ "open"?: boolean;
62
+ };
63
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
64
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
65
+ /** Moves focus to the field, or to the grid's current month when `inline`. */
66
+ focus: () => void;
67
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
68
+ "update:modelValue": (value: string | Date | [string, string] | null) => any;
69
+ "update:open": (value: boolean) => any;
70
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
71
+ "onUpdate:modelValue"?: ((value: string | Date | [string, string] | null) => any) | undefined;
72
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
73
+ }>, {
74
+ required: boolean;
75
+ label: string;
76
+ disabled: boolean;
77
+ name: string;
78
+ size: "small" | "normal" | "large";
79
+ hint: string;
80
+ inline: boolean;
81
+ placeholder: string;
82
+ errorMsg: string;
83
+ range: boolean;
84
+ clearable: boolean;
85
+ presets: MonthPickerPreset[];
86
+ locale: string;
87
+ minDate: string;
88
+ maxDate: string;
89
+ valueType: "string" | "date";
90
+ fieldClass: string | false | Record<string, any> | import("vue").ClassValue[] | null;
91
+ minMonth: string;
92
+ maxMonth: string;
93
+ isMonthDisabled: (month: string) => boolean;
94
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
95
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
96
+ declare const _default: typeof __VLS_export;
97
+ export default _default;
98
+ type __VLS_WithSlots<T, S> = T & {
99
+ new (): {
100
+ $slots: S;
101
+ };
102
+ };