@salesql/sql_components_vue3 3.31.0 → 3.32.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 (32) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.ts +14 -0
  4. package/dist/index.es.js +3767 -3431
  5. package/dist/index.es.js.map +1 -1
  6. package/dist/sql_components_vue3.css +1 -1
  7. package/dist/ui/DsFilterChip/DsFilterChip.types.d.ts +11 -0
  8. package/dist/ui/DsFilterChip/DsFilterChip.vue.d.ts +43 -0
  9. package/dist/ui/DsFilterChip/index.d.ts +2 -0
  10. package/dist/ui/DsInput/DsInput.types.d.ts +2 -0
  11. package/dist/ui/DsInput/DsInput.vue.d.ts +15 -0
  12. package/dist/ui/DsMenuBackRow/DsMenuBackRow.types.d.ts +6 -0
  13. package/dist/ui/DsMenuBackRow/DsMenuBackRow.vue.d.ts +26 -0
  14. package/dist/ui/DsMenuBackRow/index.d.ts +2 -0
  15. package/dist/ui/DsMenuDrillRow/DsMenuDrillRow.types.d.ts +8 -0
  16. package/dist/ui/DsMenuDrillRow/DsMenuDrillRow.vue.d.ts +35 -0
  17. package/dist/ui/DsMenuDrillRow/index.d.ts +2 -0
  18. package/dist/ui/DsMenuEmpty/DsMenuEmpty.types.d.ts +4 -0
  19. package/dist/ui/DsMenuEmpty/DsMenuEmpty.vue.d.ts +24 -0
  20. package/dist/ui/DsMenuEmpty/index.d.ts +2 -0
  21. package/dist/ui/DsMenuOption/DsMenuOption.types.d.ts +20 -0
  22. package/dist/ui/DsMenuOption/DsMenuOption.vue.d.ts +77 -0
  23. package/dist/ui/DsMenuOption/index.d.ts +2 -0
  24. package/dist/ui/DsMenuSectionLabel/DsMenuSectionLabel.types.d.ts +6 -0
  25. package/dist/ui/DsMenuSectionLabel/DsMenuSectionLabel.vue.d.ts +26 -0
  26. package/dist/ui/DsMenuSectionLabel/index.d.ts +2 -0
  27. package/dist/ui/DsToolbarButton/DsToolbarButton.types.d.ts +37 -0
  28. package/dist/ui/DsToolbarButton/DsToolbarButton.vue.d.ts +117 -0
  29. package/dist/ui/DsToolbarButton/index.d.ts +2 -0
  30. package/llms-full.txt +274 -23
  31. package/llms.txt +7 -0
  32. package/package.json +1 -1
@@ -0,0 +1,11 @@
1
+ export interface DsFilterChipProps {
2
+ /** The filter's name («Tags»). Applied, a colon is appended: «Tags:». App copy. */
3
+ label: string;
4
+ /** What the filter is set to («Q3 Outbound», «3 tags»). Non-empty = applied. Ellipsizes at 150px. */
5
+ value?: string;
6
+ /** The menu it opens is showing: `slate-tint` fill, `aria-expanded`. */
7
+ open?: boolean;
8
+ /** Accessible name of the × («Clear Tags»). Without it there is no × (it would be unnamed). */
9
+ clearLabel?: string;
10
+ disabled?: boolean;
11
+ }
@@ -0,0 +1,43 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ label: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ };
6
+ value: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ open: BooleanConstructor;
11
+ clearLabel: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ disabled: BooleanConstructor;
16
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
+ click: (...args: any[]) => void;
18
+ clear: (...args: any[]) => void;
19
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
20
+ label: {
21
+ type: StringConstructor;
22
+ required: true;
23
+ };
24
+ value: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ open: BooleanConstructor;
29
+ clearLabel: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
33
+ disabled: BooleanConstructor;
34
+ }>> & Readonly<{
35
+ onClick?: ((...args: any[]) => any) | undefined;
36
+ onClear?: ((...args: any[]) => any) | undefined;
37
+ }>, {
38
+ open: boolean;
39
+ disabled: boolean;
40
+ clearLabel: string;
41
+ value: string;
42
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
43
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as DsFilterChip } from './DsFilterChip.vue';
2
+ export * from './DsFilterChip.types';
@@ -6,11 +6,13 @@ export declare const DS_INPUT_TYPES: {
6
6
  readonly NUMBER: "number";
7
7
  readonly SEARCH: "search";
8
8
  readonly URL: "url";
9
+ readonly DATE: "date";
9
10
  };
10
11
  export type DsInputType = (typeof DS_INPUT_TYPES)[keyof typeof DS_INPUT_TYPES];
11
12
  export declare const DS_INPUT_SIZES: {
12
13
  readonly XS: "xs";
13
14
  readonly SM: "sm";
15
+ readonly TOOLBAR: "toolbar";
14
16
  readonly MD: "md";
15
17
  };
16
18
  export type DsInputSize = (typeof DS_INPUT_SIZES)[keyof typeof DS_INPUT_SIZES];
@@ -65,6 +65,12 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
65
65
  type: StringConstructor;
66
66
  default: string;
67
67
  };
68
+ applied: BooleanConstructor;
69
+ hint: {
70
+ type: StringConstructor;
71
+ default: string;
72
+ };
73
+ clearIcon: BooleanConstructor;
68
74
  modelValue: {
69
75
  type: PropType<string>;
70
76
  };
@@ -139,6 +145,12 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
139
145
  type: StringConstructor;
140
146
  default: string;
141
147
  };
148
+ applied: BooleanConstructor;
149
+ hint: {
150
+ type: StringConstructor;
151
+ default: string;
152
+ };
153
+ clearIcon: BooleanConstructor;
142
154
  modelValue: {
143
155
  type: PropType<string>;
144
156
  };
@@ -168,6 +180,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
168
180
  clearable: boolean;
169
181
  clearLabel: string;
170
182
  describedby: string;
183
+ applied: boolean;
184
+ hint: string;
185
+ clearIcon: boolean;
171
186
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
172
187
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
173
188
  export default _default;
@@ -0,0 +1,6 @@
1
+ export interface DsMenuBackRowProps {
2
+ /** The view you are in («Tags»). App copy. */
3
+ label: string;
4
+ /** Accessible name when the label alone is ambiguous («Back to filters»). Empty = the label names it. */
5
+ ariaLabel?: string;
6
+ }
@@ -0,0 +1,26 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ label: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ };
6
+ ariaLabel: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ back: (...args: any[]) => void;
12
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
13
+ label: {
14
+ type: StringConstructor;
15
+ required: true;
16
+ };
17
+ ariaLabel: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ }>> & Readonly<{
22
+ onBack?: ((...args: any[]) => any) | undefined;
23
+ }>, {
24
+ ariaLabel: string;
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
26
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as DsMenuBackRow } from './DsMenuBackRow.vue';
2
+ export * from './DsMenuBackRow.types';
@@ -0,0 +1,8 @@
1
+ export interface DsMenuDrillRowProps {
2
+ /** The name («Tags»). Bold. App copy. */
3
+ label: string;
4
+ /** What it is set to. Non-empty = applied: accent-shadow, bold. */
5
+ value?: string;
6
+ /** Shown, muted, while there is no value («Any»). App copy. */
7
+ placeholder?: string;
8
+ }
@@ -0,0 +1,35 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ label: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ };
6
+ value: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ placeholder: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ select: (...args: any[]) => void;
16
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
17
+ label: {
18
+ type: StringConstructor;
19
+ required: true;
20
+ };
21
+ value: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ placeholder: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ }>> & Readonly<{
30
+ onSelect?: ((...args: any[]) => any) | undefined;
31
+ }>, {
32
+ placeholder: string;
33
+ value: string;
34
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
35
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as DsMenuDrillRow } from './DsMenuDrillRow.vue';
2
+ export * from './DsMenuDrillRow.types';
@@ -0,0 +1,4 @@
1
+ export interface DsMenuEmptyProps {
2
+ /** The message. The default slot replaces it. App copy. */
3
+ label?: string;
4
+ }
@@ -0,0 +1,24 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ label: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
+ label: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ }>> & Readonly<{}>, {
16
+ label: string;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
18
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,2 @@
1
+ export { default as DsMenuEmpty } from './DsMenuEmpty.vue';
2
+ export * from './DsMenuEmpty.types';
@@ -0,0 +1,20 @@
1
+ export declare const DS_MENU_OPTION_TYPES: {
2
+ readonly CHECKBOX: "checkbox";
3
+ readonly RADIO: "radio";
4
+ };
5
+ export type DsMenuOptionType = (typeof DS_MENU_OPTION_TYPES)[keyof typeof DS_MENU_OPTION_TYPES];
6
+ export interface DsMenuOptionProps {
7
+ /** v-model: this option is selected. */
8
+ modelValue?: boolean;
9
+ /** `checkbox` (default, multi-select) or `radio` (single choice). */
10
+ type?: DsMenuOptionType;
11
+ /** The text. The default slot replaces it. App copy. */
12
+ label?: string;
13
+ /** Small text at the right end, e.g. a count. */
14
+ hint?: string;
15
+ disabled?: boolean;
16
+ /** Native `name`. Radios of one group share it, which gives them arrow-key navigation. */
17
+ name?: string;
18
+ /** Native `value` of a radio. */
19
+ value?: string;
20
+ }
@@ -0,0 +1,77 @@
1
+ import { type PropType } from 'vue';
2
+ import { type DsMenuOptionType } from './DsMenuOption.types';
3
+ declare var __VLS_5: {}, __VLS_7: {};
4
+ type __VLS_Slots = {} & {
5
+ leading?: (props: typeof __VLS_5) => any;
6
+ } & {
7
+ default?: (props: typeof __VLS_7) => any;
8
+ };
9
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
10
+ type: {
11
+ type: PropType<DsMenuOptionType>;
12
+ default: "checkbox";
13
+ };
14
+ label: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ hint: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ disabled: BooleanConstructor;
23
+ name: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ value: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ modelValue: {
32
+ type: PropType<boolean>;
33
+ };
34
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
35
+ "update:modelValue": (value: boolean) => any;
36
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
37
+ type: {
38
+ type: PropType<DsMenuOptionType>;
39
+ default: "checkbox";
40
+ };
41
+ label: {
42
+ type: StringConstructor;
43
+ default: string;
44
+ };
45
+ hint: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ };
49
+ disabled: BooleanConstructor;
50
+ name: {
51
+ type: StringConstructor;
52
+ default: string;
53
+ };
54
+ value: {
55
+ type: StringConstructor;
56
+ default: string;
57
+ };
58
+ modelValue: {
59
+ type: PropType<boolean>;
60
+ };
61
+ }>> & Readonly<{
62
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
63
+ }>, {
64
+ label: string;
65
+ type: DsMenuOptionType;
66
+ disabled: boolean;
67
+ name: string;
68
+ hint: string;
69
+ value: string;
70
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
71
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
72
+ export default _default;
73
+ type __VLS_WithSlots<T, S> = T & {
74
+ new (): {
75
+ $slots: S;
76
+ };
77
+ };
@@ -0,0 +1,2 @@
1
+ export { default as DsMenuOption } from './DsMenuOption.vue';
2
+ export * from './DsMenuOption.types';
@@ -0,0 +1,6 @@
1
+ export interface DsMenuSectionLabelProps {
2
+ /** The section title («Has any of these tags»). Drawn uppercase. App copy. */
3
+ label: string;
4
+ /** Text of the action at the right end. Empty (default) = no action. App copy. */
5
+ clearLabel?: string;
6
+ }
@@ -0,0 +1,26 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ label: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ };
6
+ clearLabel: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ clear: (...args: any[]) => void;
12
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
13
+ label: {
14
+ type: StringConstructor;
15
+ required: true;
16
+ };
17
+ clearLabel: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ }>> & Readonly<{
22
+ onClear?: ((...args: any[]) => any) | undefined;
23
+ }>, {
24
+ clearLabel: string;
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
26
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as DsMenuSectionLabel } from './DsMenuSectionLabel.vue';
2
+ export * from './DsMenuSectionLabel.types';
@@ -0,0 +1,37 @@
1
+ import type { DsTooltipPlacement } from '../../ui/DsTooltip';
2
+ export declare const DS_TOOLBAR_BUTTON_VARIANTS: {
3
+ readonly OUTLINE: "outline";
4
+ readonly PRIMARY: "primary";
5
+ };
6
+ export type DsToolbarButtonVariant = (typeof DS_TOOLBAR_BUTTON_VARIANTS)[keyof typeof DS_TOOLBAR_BUTTON_VARIANTS];
7
+ export interface DsToolbarButtonProps {
8
+ /** The visible text. In `compact` it is not drawn and becomes the accessible name instead. App copy. */
9
+ label: string;
10
+ /** Material Symbols name of the leading glyph (18px). The `icon` slot replaces it. */
11
+ icon?: string;
12
+ variant?: DsToolbarButtonVariant;
13
+ /** A trailing `keyboard_arrow_down`, for a button that opens a menu. */
14
+ caret?: boolean;
15
+ /** Its filter or sort is in effect: accent fill, `accent-mid` border, `accent-shadow` text. */
16
+ applied?: boolean;
17
+ /**
18
+ * Whether the panel it opens is showing. Left out, the button is a plain action: no `aria-expanded`
19
+ * or `aria-haspopup`. Passed (even `false`), it is a disclosure for a `dialog` panel (DsPopover).
20
+ */
21
+ open?: boolean;
22
+ /** Icon (+ caret) only: the label is not drawn, a tooltip names the button. */
23
+ compact?: boolean;
24
+ /** A pill with the number of filters in effect. Zero draws nothing. */
25
+ count?: number;
26
+ /** The tooltip text. In `compact` it falls back to the label. */
27
+ tooltip?: string;
28
+ /** Keep the tooltip on a full button too (text that adds information, e.g. an export's progress). */
29
+ tooltipAlways?: boolean;
30
+ /** Side of the button where the tooltip opens. Default `bottom`. */
31
+ tooltipPlacement?: DsTooltipPlacement;
32
+ /** Accessible name when it must differ from the label («Filters (3)»). */
33
+ ariaLabel?: string;
34
+ /** Max width of the label before it ellipsizes. A number is px. */
35
+ labelMaxWidth?: number | string | null;
36
+ disabled?: boolean;
37
+ }
@@ -0,0 +1,117 @@
1
+ import { type PropType } from 'vue';
2
+ import { type DsTooltipPlacement } from '../../ui/DsTooltip';
3
+ import { type DsToolbarButtonVariant } from './DsToolbarButton.types';
4
+ declare var __VLS_6: {};
5
+ type __VLS_Slots = {} & {
6
+ icon?: (props: typeof __VLS_6) => any;
7
+ };
8
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
9
+ label: {
10
+ type: StringConstructor;
11
+ required: true;
12
+ };
13
+ icon: {
14
+ type: StringConstructor;
15
+ default: string;
16
+ };
17
+ variant: {
18
+ type: PropType<DsToolbarButtonVariant>;
19
+ default: "outline";
20
+ };
21
+ caret: BooleanConstructor;
22
+ applied: BooleanConstructor;
23
+ open: {
24
+ type: BooleanConstructor;
25
+ default: undefined;
26
+ };
27
+ compact: BooleanConstructor;
28
+ count: {
29
+ type: NumberConstructor;
30
+ default: number;
31
+ };
32
+ tooltip: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ tooltipAlways: BooleanConstructor;
37
+ tooltipPlacement: {
38
+ type: PropType<DsTooltipPlacement>;
39
+ default: "bottom";
40
+ };
41
+ ariaLabel: {
42
+ type: StringConstructor;
43
+ default: string;
44
+ };
45
+ labelMaxWidth: {
46
+ type: (NumberConstructor | StringConstructor)[];
47
+ default: null;
48
+ };
49
+ disabled: BooleanConstructor;
50
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
51
+ click: (...args: any[]) => void;
52
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
53
+ label: {
54
+ type: StringConstructor;
55
+ required: true;
56
+ };
57
+ icon: {
58
+ type: StringConstructor;
59
+ default: string;
60
+ };
61
+ variant: {
62
+ type: PropType<DsToolbarButtonVariant>;
63
+ default: "outline";
64
+ };
65
+ caret: BooleanConstructor;
66
+ applied: BooleanConstructor;
67
+ open: {
68
+ type: BooleanConstructor;
69
+ default: undefined;
70
+ };
71
+ compact: BooleanConstructor;
72
+ count: {
73
+ type: NumberConstructor;
74
+ default: number;
75
+ };
76
+ tooltip: {
77
+ type: StringConstructor;
78
+ default: string;
79
+ };
80
+ tooltipAlways: BooleanConstructor;
81
+ tooltipPlacement: {
82
+ type: PropType<DsTooltipPlacement>;
83
+ default: "bottom";
84
+ };
85
+ ariaLabel: {
86
+ type: StringConstructor;
87
+ default: string;
88
+ };
89
+ labelMaxWidth: {
90
+ type: (NumberConstructor | StringConstructor)[];
91
+ default: null;
92
+ };
93
+ disabled: BooleanConstructor;
94
+ }>> & Readonly<{
95
+ onClick?: ((...args: any[]) => any) | undefined;
96
+ }>, {
97
+ open: boolean;
98
+ variant: DsToolbarButtonVariant;
99
+ ariaLabel: string;
100
+ disabled: boolean;
101
+ compact: boolean;
102
+ applied: boolean;
103
+ icon: string;
104
+ caret: boolean;
105
+ tooltip: string;
106
+ labelMaxWidth: string | number;
107
+ tooltipPlacement: DsTooltipPlacement;
108
+ count: number;
109
+ tooltipAlways: boolean;
110
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
111
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
112
+ export default _default;
113
+ type __VLS_WithSlots<T, S> = T & {
114
+ new (): {
115
+ $slots: S;
116
+ };
117
+ };
@@ -0,0 +1,2 @@
1
+ export { default as DsToolbarButton } from './DsToolbarButton.vue';
2
+ export * from './DsToolbarButton.types';