@salesql/sql_components_vue3 3.31.0 → 3.33.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/constants/events.d.ts +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +28 -2
- package/dist/index.es.js +4848 -3921
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsAccountMenu/DsAccountMenu.types.d.ts +3 -10
- package/dist/ui/DsAccountMenu/DsAccountMenu.vue.d.ts +1 -1
- package/dist/ui/DsActionMenu/DsActionMenu.types.d.ts +8 -0
- package/dist/ui/DsColumnList/DsColumnList.types.d.ts +26 -0
- package/dist/ui/DsColumnList/DsColumnList.vue.d.ts +66 -0
- package/dist/ui/DsColumnList/index.d.ts +2 -0
- package/dist/ui/DsContactCard/DsContactCard.types.d.ts +30 -0
- package/dist/ui/DsContactCard/DsContactCard.vue.d.ts +103 -0
- package/dist/ui/DsContactCard/index.d.ts +2 -0
- package/dist/ui/DsCreditsChip/DsCreditsChip.types.d.ts +23 -0
- package/dist/ui/DsCreditsChip/DsCreditsChip.vue.d.ts +56 -0
- package/dist/ui/DsCreditsChip/index.d.ts +2 -0
- package/dist/ui/DsCreditsNotice/DsCreditsNotice.types.d.ts +15 -0
- package/dist/ui/DsCreditsNotice/DsCreditsNotice.vue.d.ts +46 -0
- package/dist/ui/DsCreditsNotice/index.d.ts +2 -0
- package/dist/ui/DsCreditsPopover/DsCreditsPopover.types.d.ts +46 -0
- package/dist/ui/DsCreditsPopover/DsCreditsPopover.vue.d.ts +108 -0
- package/dist/ui/DsCreditsPopover/index.d.ts +2 -0
- package/dist/ui/DsCreditsSummary/DsCreditsSummary.types.d.ts +42 -0
- package/dist/ui/DsCreditsSummary/DsCreditsSummary.vue.d.ts +51 -0
- package/dist/ui/DsCreditsSummary/creditsLevel.d.ts +13 -0
- package/dist/ui/DsCreditsSummary/index.d.ts +3 -0
- package/dist/ui/DsEmptyState/DsEmptyState.types.d.ts +11 -0
- package/dist/ui/DsEmptyState/DsEmptyState.vue.d.ts +29 -0
- package/dist/ui/DsFilterChip/DsFilterChip.types.d.ts +11 -0
- package/dist/ui/DsFilterChip/DsFilterChip.vue.d.ts +43 -0
- package/dist/ui/DsFilterChip/index.d.ts +2 -0
- package/dist/ui/DsInput/DsInput.types.d.ts +2 -0
- package/dist/ui/DsInput/DsInput.vue.d.ts +15 -0
- package/dist/ui/DsMenuBackRow/DsMenuBackRow.types.d.ts +6 -0
- package/dist/ui/DsMenuBackRow/DsMenuBackRow.vue.d.ts +26 -0
- package/dist/ui/DsMenuBackRow/index.d.ts +2 -0
- package/dist/ui/DsMenuDrillRow/DsMenuDrillRow.types.d.ts +8 -0
- package/dist/ui/DsMenuDrillRow/DsMenuDrillRow.vue.d.ts +35 -0
- package/dist/ui/DsMenuDrillRow/index.d.ts +2 -0
- package/dist/ui/DsMenuEmpty/DsMenuEmpty.types.d.ts +4 -0
- package/dist/ui/DsMenuEmpty/DsMenuEmpty.vue.d.ts +24 -0
- package/dist/ui/DsMenuEmpty/index.d.ts +2 -0
- package/dist/ui/DsMenuOption/DsMenuOption.types.d.ts +20 -0
- package/dist/ui/DsMenuOption/DsMenuOption.vue.d.ts +77 -0
- package/dist/ui/DsMenuOption/index.d.ts +2 -0
- package/dist/ui/DsMenuSectionLabel/DsMenuSectionLabel.types.d.ts +6 -0
- package/dist/ui/DsMenuSectionLabel/DsMenuSectionLabel.vue.d.ts +26 -0
- package/dist/ui/DsMenuSectionLabel/index.d.ts +2 -0
- package/dist/ui/DsPopover/DsPopover.types.d.ts +8 -0
- package/dist/ui/DsPopover/DsPopover.vue.d.ts +18 -0
- package/dist/ui/DsSavedButton/DsSavedButton.types.d.ts +3 -1
- package/dist/ui/DsSavedButton/DsSavedButton.vue.d.ts +9 -0
- package/dist/ui/DsToolbarButton/DsToolbarButton.types.d.ts +37 -0
- package/dist/ui/DsToolbarButton/DsToolbarButton.vue.d.ts +117 -0
- package/dist/ui/DsToolbarButton/index.d.ts +2 -0
- package/llms-full.txt +508 -25
- package/llms.txt +13 -0
- package/package.json +1 -1
- package/src/icons/manifest.json +3 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type DsCredits, type DsCreditsCopy, type DsCreditsLevel } from './DsCreditsSummary.types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
credits: {
|
|
5
|
+
type: PropType<DsCredits>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
level: {
|
|
9
|
+
type: PropType<DsCreditsLevel>;
|
|
10
|
+
default: "normal";
|
|
11
|
+
};
|
|
12
|
+
prominent: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
planLabel: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
copy: {
|
|
21
|
+
type: PropType<Partial<DsCreditsCopy>>;
|
|
22
|
+
default: undefined;
|
|
23
|
+
};
|
|
24
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
credits: {
|
|
26
|
+
type: PropType<DsCredits>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
level: {
|
|
30
|
+
type: PropType<DsCreditsLevel>;
|
|
31
|
+
default: "normal";
|
|
32
|
+
};
|
|
33
|
+
prominent: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
planLabel: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
copy: {
|
|
42
|
+
type: PropType<Partial<DsCreditsCopy>>;
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
45
|
+
}>> & Readonly<{}>, {
|
|
46
|
+
copy: Partial<DsCreditsCopy>;
|
|
47
|
+
level: DsCreditsLevel;
|
|
48
|
+
prominent: boolean;
|
|
49
|
+
planLabel: string;
|
|
50
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
51
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type DsCreditsLevel } from './DsCreditsSummary.types';
|
|
2
|
+
/** Below this share of the base the balance turns amber (Free 50: 9 or less). */
|
|
3
|
+
export declare const CREDITS_LOW_SHARE = 0.2;
|
|
4
|
+
export interface CreditsLevelInput {
|
|
5
|
+
available?: number | null;
|
|
6
|
+
/** What «low» is measured against: the plan's monthly credits, else the period's total. */
|
|
7
|
+
base?: number | null;
|
|
8
|
+
lowShare?: number;
|
|
9
|
+
/** A free plan still being set up: never coloured, not even at 0. */
|
|
10
|
+
pendingSetup?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/** `out` at 0 or below (with or without a base), `low` under `base × lowShare`, else `normal`. */
|
|
13
|
+
export declare function getCreditsLevel({ available, base, lowShare, pendingSetup, }: CreditsLevelInput): DsCreditsLevel;
|
|
@@ -1,6 +1,17 @@
|
|
|
1
|
+
/** Size of the round holder of `icon`: medium 56px (28px glyph), large 64px (32px glyph). */
|
|
2
|
+
export declare const DS_EMPTY_STATE_ICON_SIZES: {
|
|
3
|
+
readonly MEDIUM: "medium";
|
|
4
|
+
readonly LARGE: "large";
|
|
5
|
+
};
|
|
6
|
+
export type DsEmptyStateIconSize = (typeof DS_EMPTY_STATE_ICON_SIZES)[keyof typeof DS_EMPTY_STATE_ICON_SIZES];
|
|
1
7
|
export interface DsEmptyStateProps {
|
|
2
8
|
/** Illustration URL rendered above the title. Decorative — always renders with alt="". */
|
|
3
9
|
image?: string;
|
|
10
|
+
/** Material Symbols name of a glyph in a round holder above the title. An alternative to `image`: when both are set, `image` wins. */
|
|
11
|
+
icon?: string;
|
|
12
|
+
/** Colour of the glyph (any CSS colour). Default: the muted grey of the holder. */
|
|
13
|
+
iconColor?: string;
|
|
14
|
+
iconSize?: DsEmptyStateIconSize;
|
|
4
15
|
/** Empty-state heading. Rendered as a styled `<p>`, never an `<h1>` — a reusable
|
|
5
16
|
* component must not hardcode a heading level, or it would corrupt the consuming
|
|
6
17
|
* page's heading outline. */
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import { type DsEmptyStateIconSize } from './DsEmptyState.types';
|
|
1
3
|
declare var __VLS_1: {}, __VLS_3: {};
|
|
2
4
|
type __VLS_Slots = {} & {
|
|
3
5
|
'table-header'?: (props: typeof __VLS_1) => any;
|
|
@@ -9,6 +11,18 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
9
11
|
type: StringConstructor;
|
|
10
12
|
default: string;
|
|
11
13
|
};
|
|
14
|
+
icon: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
iconColor: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
iconSize: {
|
|
23
|
+
type: PropType<DsEmptyStateIconSize>;
|
|
24
|
+
default: "medium";
|
|
25
|
+
};
|
|
12
26
|
title: {
|
|
13
27
|
type: StringConstructor;
|
|
14
28
|
default: string;
|
|
@@ -26,6 +40,18 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
26
40
|
type: StringConstructor;
|
|
27
41
|
default: string;
|
|
28
42
|
};
|
|
43
|
+
icon: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
iconColor: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
iconSize: {
|
|
52
|
+
type: PropType<DsEmptyStateIconSize>;
|
|
53
|
+
default: "medium";
|
|
54
|
+
};
|
|
29
55
|
title: {
|
|
30
56
|
type: StringConstructor;
|
|
31
57
|
default: string;
|
|
@@ -41,6 +67,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
41
67
|
}>> & Readonly<{}>, {
|
|
42
68
|
title: string;
|
|
43
69
|
image: string;
|
|
70
|
+
iconSize: DsEmptyStateIconSize;
|
|
71
|
+
icon: string;
|
|
72
|
+
iconColor: string;
|
|
44
73
|
subtitle: string;
|
|
45
74
|
roundedBorder: boolean;
|
|
46
75
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -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;
|
|
@@ -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,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,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,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,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,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;
|
|
@@ -98,4 +98,12 @@ export interface DsPopoverProps {
|
|
|
98
98
|
* `teleported` inside tables and scrollers. Off (default) = no layer. Additive (SALESQL-4183).
|
|
99
99
|
*/
|
|
100
100
|
modal?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* A box the `modal` layer leaves uncovered (same shape as `boundary`): what is there keeps the
|
|
103
|
+
* pointer (hover, clicks), and a press on it still counts as outside for `closeOnOutside`.
|
|
104
|
+
* Re-measured on open, resize and scroll. `null` (default) = the layer covers everything.
|
|
105
|
+
*/
|
|
106
|
+
modalExclude?: DsPopoverBoundary;
|
|
107
|
+
/** Accessible name of the `dialog` panel. Empty = none. Additive. */
|
|
108
|
+
ariaLabel?: string;
|
|
101
109
|
}
|
|
@@ -58,6 +58,14 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
58
58
|
type: BooleanConstructor;
|
|
59
59
|
default: boolean;
|
|
60
60
|
};
|
|
61
|
+
modalExclude: {
|
|
62
|
+
type: PropType<DsPopoverBoundary>;
|
|
63
|
+
default: null;
|
|
64
|
+
};
|
|
65
|
+
ariaLabel: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
61
69
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
62
70
|
"update:open": (...args: any[]) => void;
|
|
63
71
|
"backdrop-click": (...args: any[]) => void;
|
|
@@ -111,12 +119,21 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
111
119
|
type: BooleanConstructor;
|
|
112
120
|
default: boolean;
|
|
113
121
|
};
|
|
122
|
+
modalExclude: {
|
|
123
|
+
type: PropType<DsPopoverBoundary>;
|
|
124
|
+
default: null;
|
|
125
|
+
};
|
|
126
|
+
ariaLabel: {
|
|
127
|
+
type: StringConstructor;
|
|
128
|
+
default: string;
|
|
129
|
+
};
|
|
114
130
|
}>> & Readonly<{
|
|
115
131
|
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
116
132
|
"onBackdrop-click"?: ((...args: any[]) => any) | undefined;
|
|
117
133
|
}>, {
|
|
118
134
|
width: string;
|
|
119
135
|
open: boolean;
|
|
136
|
+
ariaLabel: string;
|
|
120
137
|
block: boolean;
|
|
121
138
|
flush: boolean;
|
|
122
139
|
closeOnEscape: boolean;
|
|
@@ -128,6 +145,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
128
145
|
triggerOnClick: boolean;
|
|
129
146
|
boundary: DsPopoverBoundary;
|
|
130
147
|
modal: boolean;
|
|
148
|
+
modalExclude: DsPopoverBoundary;
|
|
131
149
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
132
150
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
133
151
|
export default _default;
|
|
@@ -10,7 +10,7 @@ export interface DsSavedButtonCopy extends DsPickerOrganizerCopy {
|
|
|
10
10
|
}
|
|
11
11
|
export declare const DS_SAVED_BUTTON_COPY: DsSavedButtonCopy;
|
|
12
12
|
export interface DsSavedButtonProps {
|
|
13
|
-
/** The neutral label ("Saved", or "Save" before the first save). App copy. */
|
|
13
|
+
/** The neutral label ("Saved", or "Save" before the first save); a table cell passes the folder name. It ellipsizes at the width it is given. App copy. */
|
|
14
14
|
label: string;
|
|
15
15
|
/** "Saved in {folder} · change folder". Shown whenever non-empty, and hidden while the panel is open. */
|
|
16
16
|
tooltip?: string;
|
|
@@ -19,6 +19,8 @@ export interface DsSavedButtonProps {
|
|
|
19
19
|
/** Material Symbols ligature for the folder glyph. */
|
|
20
20
|
icon?: string;
|
|
21
21
|
size?: DsPickerSize;
|
|
22
|
+
/** While the panel is open the trigger takes the accent tint (`accent-bg`, `accent-mid` border). The table's Folder cell. */
|
|
23
|
+
tintOpen?: boolean;
|
|
22
24
|
/** Fully round trigger (`DsButton pill`) for the bulk bar beside `DsItemSelectorButton`. Off = the design's table / profile trigger. */
|
|
23
25
|
pill?: boolean;
|
|
24
26
|
align?: DsPickerAlign;
|
|
@@ -50,6 +50,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
50
50
|
type: BooleanConstructor;
|
|
51
51
|
default: boolean;
|
|
52
52
|
};
|
|
53
|
+
tintOpen: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
53
57
|
align: {
|
|
54
58
|
type: PropType<DsPickerAlign>;
|
|
55
59
|
default: "end";
|
|
@@ -198,6 +202,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
198
202
|
type: BooleanConstructor;
|
|
199
203
|
default: boolean;
|
|
200
204
|
};
|
|
205
|
+
tintOpen: {
|
|
206
|
+
type: BooleanConstructor;
|
|
207
|
+
default: boolean;
|
|
208
|
+
};
|
|
201
209
|
align: {
|
|
202
210
|
type: PropType<DsPickerAlign>;
|
|
203
211
|
default: "end";
|
|
@@ -335,6 +343,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
335
343
|
deleteLabel: string;
|
|
336
344
|
createFormTitle: string;
|
|
337
345
|
editFormTitle: string;
|
|
346
|
+
tintOpen: boolean;
|
|
338
347
|
align: DsPickerAlign;
|
|
339
348
|
rowActions: boolean | DsPickerRowActionsMode;
|
|
340
349
|
defaultColor: string;
|
|
@@ -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
|
+
}
|