@salesql/sql_components_vue3 3.30.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.
- package/dist/composables/shadowDom.d.ts +2 -0
- package/dist/constants/events.d.ts +18 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +16 -0
- package/dist/index.es.js +5051 -3978
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsAccountMenu/DsAccountMenu.types.d.ts +94 -0
- package/dist/ui/DsAccountMenu/DsAccountMenu.vue.d.ts +136 -0
- package/dist/ui/DsAccountMenu/index.d.ts +2 -0
- package/dist/ui/DsAccountMenu/providerLogos.d.ts +10 -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/DsPanelHeader/DsPanelHeader.types.d.ts +3 -3
- package/dist/ui/DsPanelHeader/DsPanelHeader.vue.d.ts +18 -7
- package/dist/ui/DsPanelHeader/panelHeaderContext.d.ts +5 -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 +410 -62
- package/llms.txt +9 -1
- package/package.json +1 -1
- package/src/icons/manifest.json +18 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
export declare const DS_MAILBOX_PROVIDERS: {
|
|
2
|
+
readonly GOOGLE: "google";
|
|
3
|
+
readonly MICROSOFT: "microsoft";
|
|
4
|
+
};
|
|
5
|
+
export type DsMailboxProvider = (typeof DS_MAILBOX_PROVIDERS)[keyof typeof DS_MAILBOX_PROVIDERS];
|
|
6
|
+
export interface DsAccountMenuUser {
|
|
7
|
+
name: string;
|
|
8
|
+
email: string;
|
|
9
|
+
/** Avatar letters. Empty = the first letters of the first two words of `name`. */
|
|
10
|
+
initials?: string;
|
|
11
|
+
/** Plan chip («Premium», «Free»). Empty = no chip. */
|
|
12
|
+
plan?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface DsAccountMenuCredits {
|
|
15
|
+
/** Used this period. Only read with a `total`. Omitted = `total - available` (not below 0), else 0. */
|
|
16
|
+
used?: number | null;
|
|
17
|
+
/** The period's allowance. `null`, `0` or omitted = unknown: no bar and no «X of Y used». */
|
|
18
|
+
total?: number | null;
|
|
19
|
+
/** «N available». Omitted = `total - used` (not below 0). Given, it wins, even above `total`. */
|
|
20
|
+
available?: number | null;
|
|
21
|
+
/** Reset date, already formatted by the app («Dec 1»). Empty = no reset text. */
|
|
22
|
+
resetsOn?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface DsAccountMenuMailbox {
|
|
25
|
+
/** Stable key. */
|
|
26
|
+
id: string | number;
|
|
27
|
+
email: string;
|
|
28
|
+
provider: DsMailboxProvider;
|
|
29
|
+
/** Not sending (disconnected, disabled, error…): shows the «Reconnect» pill. The app maps statuses. */
|
|
30
|
+
needsReconnect?: boolean;
|
|
31
|
+
}
|
|
32
|
+
/** «Get started · n of total». */
|
|
33
|
+
export interface DsAccountMenuProgress {
|
|
34
|
+
done: number;
|
|
35
|
+
total: number;
|
|
36
|
+
}
|
|
37
|
+
/** Every string of the menu. Pass a partial: it overrides only its keys. */
|
|
38
|
+
export interface DsAccountMenuCopy {
|
|
39
|
+
/** The trigger's and the menu's accessible name. */
|
|
40
|
+
menu: string;
|
|
41
|
+
/** The trigger's tooltip. Empty = none. */
|
|
42
|
+
triggerTooltip: string;
|
|
43
|
+
credits: string;
|
|
44
|
+
creditsAvailable: (available: number) => string;
|
|
45
|
+
creditsUsed: (used: number, total: number) => string;
|
|
46
|
+
/** Never «Renews»: the credits reset. */
|
|
47
|
+
creditsResets: (date: string) => string;
|
|
48
|
+
/** The progress bar's accessible name. */
|
|
49
|
+
creditsProgress: string;
|
|
50
|
+
mailboxes: string;
|
|
51
|
+
mailboxesConnected: (connected: number) => string;
|
|
52
|
+
/** A connected mailbox row's accessible name. */
|
|
53
|
+
mailboxConnectedLabel: (email: string) => string;
|
|
54
|
+
connectMailbox: string;
|
|
55
|
+
connectAnother: string;
|
|
56
|
+
reconnect: string;
|
|
57
|
+
/** The «Reconnect» pill's accessible name. */
|
|
58
|
+
reconnectLabel: (email: string) => string;
|
|
59
|
+
reconnectTooltip: string;
|
|
60
|
+
getStarted: string;
|
|
61
|
+
getStartedProgress: (done: number, total: number) => string;
|
|
62
|
+
bulkSave: string;
|
|
63
|
+
linkedinAccounts: string;
|
|
64
|
+
language: string;
|
|
65
|
+
help: string;
|
|
66
|
+
whatsNew: string;
|
|
67
|
+
/** Accessible name of the unread dot. */
|
|
68
|
+
whatsNewUnread: (unread: number) => string;
|
|
69
|
+
logout: string;
|
|
70
|
+
}
|
|
71
|
+
export declare const DS_ACCOUNT_MENU_COPY: DsAccountMenuCopy;
|
|
72
|
+
export interface DsAccountMenuProps {
|
|
73
|
+
/** Visibility. Omit it and the menu manages itself; bind `v-model:open` to control it. */
|
|
74
|
+
open?: boolean;
|
|
75
|
+
user: DsAccountMenuUser;
|
|
76
|
+
/** The credits block. `null` = hidden. */
|
|
77
|
+
credits?: DsAccountMenuCredits | null;
|
|
78
|
+
/**
|
|
79
|
+
* The mailboxes. `null` = the account has no campaigns access: the whole block is hidden.
|
|
80
|
+
* `[]` = «Mailboxes» + «Connect a mailbox».
|
|
81
|
+
*/
|
|
82
|
+
mailboxes?: DsAccountMenuMailbox[] | null;
|
|
83
|
+
/** «Get started · n of total», while the onboarding checklist is hidden. `null` = no row. */
|
|
84
|
+
getStarted?: DsAccountMenuProgress | null;
|
|
85
|
+
showBulkSave?: boolean;
|
|
86
|
+
showLinkedinAccounts?: boolean;
|
|
87
|
+
/** The current language's name («English»). Empty = no Language row. */
|
|
88
|
+
language?: string;
|
|
89
|
+
showHelp?: boolean;
|
|
90
|
+
showWhatsNew?: boolean;
|
|
91
|
+
/** Unseen updates: an unread dot on «What's new» while above 0. */
|
|
92
|
+
whatsNewUnread?: number;
|
|
93
|
+
copy?: Partial<DsAccountMenuCopy>;
|
|
94
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type DsAccountMenuCopy, type DsAccountMenuCredits, type DsAccountMenuMailbox, type DsAccountMenuProgress, type DsAccountMenuUser } from './DsAccountMenu.types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
open: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
default: undefined;
|
|
7
|
+
};
|
|
8
|
+
user: {
|
|
9
|
+
type: PropType<DsAccountMenuUser>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
credits: {
|
|
13
|
+
type: PropType<DsAccountMenuCredits | null>;
|
|
14
|
+
default: null;
|
|
15
|
+
};
|
|
16
|
+
mailboxes: {
|
|
17
|
+
type: PropType<DsAccountMenuMailbox[] | null>;
|
|
18
|
+
default: null;
|
|
19
|
+
};
|
|
20
|
+
getStarted: {
|
|
21
|
+
type: PropType<DsAccountMenuProgress | null>;
|
|
22
|
+
default: null;
|
|
23
|
+
};
|
|
24
|
+
showBulkSave: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
showLinkedinAccounts: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
language: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
showHelp: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
showWhatsNew: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
whatsNewUnread: {
|
|
45
|
+
type: NumberConstructor;
|
|
46
|
+
default: number;
|
|
47
|
+
};
|
|
48
|
+
copy: {
|
|
49
|
+
type: PropType<Partial<DsAccountMenuCopy>>;
|
|
50
|
+
default: undefined;
|
|
51
|
+
};
|
|
52
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
53
|
+
"update:open": (...args: any[]) => void;
|
|
54
|
+
connect: (...args: any[]) => void;
|
|
55
|
+
reconnect: (...args: any[]) => void;
|
|
56
|
+
"get-started": (...args: any[]) => void;
|
|
57
|
+
"bulk-save": (...args: any[]) => void;
|
|
58
|
+
"linkedin-accounts": (...args: any[]) => void;
|
|
59
|
+
language: (...args: any[]) => void;
|
|
60
|
+
help: (...args: any[]) => void;
|
|
61
|
+
"whats-new": (...args: any[]) => void;
|
|
62
|
+
logout: (...args: any[]) => void;
|
|
63
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
64
|
+
open: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: undefined;
|
|
67
|
+
};
|
|
68
|
+
user: {
|
|
69
|
+
type: PropType<DsAccountMenuUser>;
|
|
70
|
+
required: true;
|
|
71
|
+
};
|
|
72
|
+
credits: {
|
|
73
|
+
type: PropType<DsAccountMenuCredits | null>;
|
|
74
|
+
default: null;
|
|
75
|
+
};
|
|
76
|
+
mailboxes: {
|
|
77
|
+
type: PropType<DsAccountMenuMailbox[] | null>;
|
|
78
|
+
default: null;
|
|
79
|
+
};
|
|
80
|
+
getStarted: {
|
|
81
|
+
type: PropType<DsAccountMenuProgress | null>;
|
|
82
|
+
default: null;
|
|
83
|
+
};
|
|
84
|
+
showBulkSave: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
showLinkedinAccounts: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
language: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
showHelp: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
showWhatsNew: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: boolean;
|
|
103
|
+
};
|
|
104
|
+
whatsNewUnread: {
|
|
105
|
+
type: NumberConstructor;
|
|
106
|
+
default: number;
|
|
107
|
+
};
|
|
108
|
+
copy: {
|
|
109
|
+
type: PropType<Partial<DsAccountMenuCopy>>;
|
|
110
|
+
default: undefined;
|
|
111
|
+
};
|
|
112
|
+
}>> & Readonly<{
|
|
113
|
+
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
114
|
+
onConnect?: ((...args: any[]) => any) | undefined;
|
|
115
|
+
onReconnect?: ((...args: any[]) => any) | undefined;
|
|
116
|
+
"onGet-started"?: ((...args: any[]) => any) | undefined;
|
|
117
|
+
"onBulk-save"?: ((...args: any[]) => any) | undefined;
|
|
118
|
+
"onLinkedin-accounts"?: ((...args: any[]) => any) | undefined;
|
|
119
|
+
onLanguage?: ((...args: any[]) => any) | undefined;
|
|
120
|
+
onHelp?: ((...args: any[]) => any) | undefined;
|
|
121
|
+
"onWhats-new"?: ((...args: any[]) => any) | undefined;
|
|
122
|
+
onLogout?: ((...args: any[]) => any) | undefined;
|
|
123
|
+
}>, {
|
|
124
|
+
copy: Partial<DsAccountMenuCopy>;
|
|
125
|
+
open: boolean;
|
|
126
|
+
language: string;
|
|
127
|
+
credits: DsAccountMenuCredits | null;
|
|
128
|
+
mailboxes: DsAccountMenuMailbox[] | null;
|
|
129
|
+
getStarted: DsAccountMenuProgress | null;
|
|
130
|
+
showBulkSave: boolean;
|
|
131
|
+
showLinkedinAccounts: boolean;
|
|
132
|
+
showHelp: boolean;
|
|
133
|
+
showWhatsNew: boolean;
|
|
134
|
+
whatsNewUnread: number;
|
|
135
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
136
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type DsMailboxProvider } from './DsAccountMenu.types';
|
|
2
|
+
interface ProviderLogo {
|
|
3
|
+
viewBox: string;
|
|
4
|
+
paths: ReadonlyArray<{
|
|
5
|
+
d: string;
|
|
6
|
+
fill: string;
|
|
7
|
+
}>;
|
|
8
|
+
}
|
|
9
|
+
export declare const PROVIDER_LOGOS: Record<DsMailboxProvider, ProviderLogo>;
|
|
10
|
+
export {};
|
|
@@ -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;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export interface DsPanelHeaderProps {
|
|
2
2
|
/** Accessible name of the logo (e.g. «SalesQL»). Empty = decorative. App copy. */
|
|
3
3
|
logoLabel?: string;
|
|
4
|
-
/** «Open dashboard»: the button's
|
|
4
|
+
/** «Open SalesQL dashboard»: the icon-only button's aria-label (and tooltip by default). */
|
|
5
5
|
openLabel: string;
|
|
6
|
-
/** «
|
|
7
|
-
|
|
6
|
+
/** «Open SalesQL»: a shorter tooltip than the aria-label. Empty = `openLabel`. */
|
|
7
|
+
openTooltip?: string;
|
|
8
8
|
}
|