@salesql/sql_components_vue3 3.29.1 → 3.31.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/composables/useOrganizerFields.d.ts +34 -0
- package/dist/constants/events.d.ts +28 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +14 -0
- package/dist/index.es.js +5225 -3847
- 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/DsInput/DsInput.vue.d.ts +32 -0
- package/dist/ui/DsListRow/DsListRow.types.d.ts +19 -0
- package/dist/ui/DsListRow/DsListRow.vue.d.ts +78 -0
- package/dist/ui/DsListRow/index.d.ts +2 -0
- package/dist/ui/DsListRowAction/DsListRowAction.types.d.ts +25 -0
- package/dist/ui/DsListRowAction/DsListRowAction.vue.d.ts +68 -0
- package/dist/ui/DsListRowAction/index.d.ts +2 -0
- package/dist/ui/DsOrganizerDialog/DsOrganizerDialog.types.d.ts +41 -0
- package/dist/ui/DsOrganizerDialog/DsOrganizerDialog.vue.d.ts +182 -0
- package/dist/ui/DsOrganizerDialog/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/DsPickerRowActions/DsPickerRowActions.types.d.ts +30 -1
- package/dist/ui/DsPickerRowActions/DsPickerRowActions.vue.d.ts +90 -2
- package/dist/ui/DsSavedButton/DsSavedButton.vue.d.ts +1 -1
- package/dist/ui/DsSelect/DsSelect.vue.d.ts +1 -1
- package/dist/ui/DsSidePanel/DsSidePanel.types.d.ts +24 -0
- package/dist/ui/DsSidePanel/DsSidePanel.vue.d.ts +109 -0
- package/dist/ui/DsSidePanel/index.d.ts +2 -0
- package/llms-full.txt +414 -41
- package/llms.txt +7 -1
- package/package.json +1 -1
- package/src/icons/manifest.json +30 -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 {};
|
|
@@ -52,6 +52,19 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
52
52
|
type: (NumberConstructor | StringConstructor)[];
|
|
53
53
|
default: undefined;
|
|
54
54
|
};
|
|
55
|
+
maxlength: {
|
|
56
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
57
|
+
default: undefined;
|
|
58
|
+
};
|
|
59
|
+
clearable: BooleanConstructor;
|
|
60
|
+
clearLabel: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
describedby: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
55
68
|
modelValue: {
|
|
56
69
|
type: PropType<string>;
|
|
57
70
|
};
|
|
@@ -61,6 +74,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
61
74
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
62
75
|
focus: (...args: any[]) => void;
|
|
63
76
|
blur: (...args: any[]) => void;
|
|
77
|
+
clear: (...args: any[]) => void;
|
|
64
78
|
change: (...args: any[]) => void;
|
|
65
79
|
"field-blur": (...args: any[]) => void;
|
|
66
80
|
"update:modelValue": (value: string) => void;
|
|
@@ -112,12 +126,26 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
112
126
|
type: (NumberConstructor | StringConstructor)[];
|
|
113
127
|
default: undefined;
|
|
114
128
|
};
|
|
129
|
+
maxlength: {
|
|
130
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
131
|
+
default: undefined;
|
|
132
|
+
};
|
|
133
|
+
clearable: BooleanConstructor;
|
|
134
|
+
clearLabel: {
|
|
135
|
+
type: StringConstructor;
|
|
136
|
+
default: string;
|
|
137
|
+
};
|
|
138
|
+
describedby: {
|
|
139
|
+
type: StringConstructor;
|
|
140
|
+
default: string;
|
|
141
|
+
};
|
|
115
142
|
modelValue: {
|
|
116
143
|
type: PropType<string>;
|
|
117
144
|
};
|
|
118
145
|
}>> & Readonly<{
|
|
119
146
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
120
147
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
148
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
121
149
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
122
150
|
"onField-blur"?: ((...args: any[]) => any) | undefined;
|
|
123
151
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
@@ -136,6 +164,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
136
164
|
toggleLabel: string;
|
|
137
165
|
min: string | number;
|
|
138
166
|
max: string | number;
|
|
167
|
+
maxlength: string | number;
|
|
168
|
+
clearable: boolean;
|
|
169
|
+
clearLabel: string;
|
|
170
|
+
describedby: string;
|
|
139
171
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
140
172
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
141
173
|
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface DsListRowProps {
|
|
2
|
+
/** The row's text. Also the content of its tooltip, which opens only when the name is truncated. */
|
|
3
|
+
label: string;
|
|
4
|
+
/** Material Symbols name of the leading glyph. Empty = no icon. */
|
|
5
|
+
icon?: string;
|
|
6
|
+
/** Colour of the icon (any CSS colour, e.g. the folder's). Default: the DS slate. It does not change on hover or when selected. */
|
|
7
|
+
iconColor?: string;
|
|
8
|
+
/** The current item: lavender fill and 1px accent border. Wins over hover. */
|
|
9
|
+
selected?: boolean;
|
|
10
|
+
/** Keep the `actions` slot visible regardless of hover/focus, e.g. while the menu it opens is open. */
|
|
11
|
+
actionsVisible?: boolean;
|
|
12
|
+
/** Side of the row where the name tooltip opens. */
|
|
13
|
+
tooltipPlacement?: 'top' | 'bottom' | 'left' | 'right';
|
|
14
|
+
}
|
|
15
|
+
/** Scope of the `trailing` slot. */
|
|
16
|
+
export interface DsListRowTrailingSlotProps {
|
|
17
|
+
/** The `actions` slot is on screen: yield the place to it (e.g. a favorite badge the toggle replaces). */
|
|
18
|
+
actionsShown: boolean;
|
|
19
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type DsTooltipPlacement } from '../../ui/DsTooltip';
|
|
3
|
+
declare var __VLS_5: {
|
|
4
|
+
actionsShown: boolean;
|
|
5
|
+
}, __VLS_7: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
trailing?: (props: typeof __VLS_5) => any;
|
|
8
|
+
} & {
|
|
9
|
+
actions?: (props: typeof __VLS_7) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
12
|
+
label: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
icon: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
iconColor: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
selected: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
actionsVisible: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
tooltipPlacement: {
|
|
33
|
+
type: PropType<DsTooltipPlacement>;
|
|
34
|
+
default: "bottom";
|
|
35
|
+
};
|
|
36
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
37
|
+
select: (...args: any[]) => void;
|
|
38
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
39
|
+
label: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
icon: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
iconColor: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
selected: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
actionsVisible: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
tooltipPlacement: {
|
|
60
|
+
type: PropType<DsTooltipPlacement>;
|
|
61
|
+
default: "bottom";
|
|
62
|
+
};
|
|
63
|
+
}>> & Readonly<{
|
|
64
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
65
|
+
}>, {
|
|
66
|
+
selected: boolean;
|
|
67
|
+
icon: string;
|
|
68
|
+
iconColor: string;
|
|
69
|
+
actionsVisible: boolean;
|
|
70
|
+
tooltipPlacement: DsTooltipPlacement;
|
|
71
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
72
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
73
|
+
export default _default;
|
|
74
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
75
|
+
new (): {
|
|
76
|
+
$slots: S;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Which fill the hover takes: `mid` on a list row, `tint` on a page header. */
|
|
2
|
+
export declare const DS_LIST_ROW_ACTION_SURFACES: {
|
|
3
|
+
readonly MID: "mid";
|
|
4
|
+
readonly TINT: "tint";
|
|
5
|
+
};
|
|
6
|
+
export type DsListRowActionSurface = (typeof DS_LIST_ROW_ACTION_SURFACES)[keyof typeof DS_LIST_ROW_ACTION_SURFACES];
|
|
7
|
+
/** Glyph size in px: 18 on a row, 20 on a page header. */
|
|
8
|
+
export declare const DS_LIST_ROW_ACTION_ICON_SIZES: {
|
|
9
|
+
readonly ROW: 18;
|
|
10
|
+
readonly HEADER: 20;
|
|
11
|
+
};
|
|
12
|
+
export type DsListRowActionIconSize = (typeof DS_LIST_ROW_ACTION_ICON_SIZES)[keyof typeof DS_LIST_ROW_ACTION_ICON_SIZES];
|
|
13
|
+
export interface DsListRowActionProps {
|
|
14
|
+
/** Material Symbols name of the glyph. */
|
|
15
|
+
icon: string;
|
|
16
|
+
/** Accessible name (required: the button has no text). */
|
|
17
|
+
label: string;
|
|
18
|
+
/** Filled glyph (default) or the outline, e.g. an unfavorited star. */
|
|
19
|
+
filled?: boolean;
|
|
20
|
+
/** Held in its hover look, e.g. while the menu it opens is open. */
|
|
21
|
+
active?: boolean;
|
|
22
|
+
iconSize?: DsListRowActionIconSize;
|
|
23
|
+
surface?: DsListRowActionSurface;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import { type DsListRowActionIconSize, type DsListRowActionSurface } from './DsListRowAction.types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
icon: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
label: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
filled: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
active: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
iconSize: {
|
|
21
|
+
type: PropType<DsListRowActionIconSize>;
|
|
22
|
+
default: 18;
|
|
23
|
+
};
|
|
24
|
+
surface: {
|
|
25
|
+
type: PropType<DsListRowActionSurface>;
|
|
26
|
+
default: "mid";
|
|
27
|
+
};
|
|
28
|
+
disabled: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
+
icon: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
label: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
filled: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
active: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
iconSize: {
|
|
50
|
+
type: PropType<DsListRowActionIconSize>;
|
|
51
|
+
default: 18;
|
|
52
|
+
};
|
|
53
|
+
surface: {
|
|
54
|
+
type: PropType<DsListRowActionSurface>;
|
|
55
|
+
default: "mid";
|
|
56
|
+
};
|
|
57
|
+
disabled: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
}>> & Readonly<{}>, {
|
|
62
|
+
disabled: boolean;
|
|
63
|
+
iconSize: DsListRowActionIconSize;
|
|
64
|
+
filled: boolean;
|
|
65
|
+
active: boolean;
|
|
66
|
+
surface: DsListRowActionSurface;
|
|
67
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
68
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface DsOrganizerDialogSubmitPayload {
|
|
2
|
+
/** The name, trimmed. */
|
|
3
|
+
name: string;
|
|
4
|
+
color: string;
|
|
5
|
+
}
|
|
6
|
+
export interface DsOrganizerDialogProps {
|
|
7
|
+
open?: boolean;
|
|
8
|
+
/** «New folder» / «Edit folder». */
|
|
9
|
+
title: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
/** The selected swatch (one of `colors`). Empty = none selected. */
|
|
12
|
+
color?: string;
|
|
13
|
+
/** Swatches to pick from (hex strings), laid out 8 per row. The consumer owns the palette. */
|
|
14
|
+
colors: readonly string[];
|
|
15
|
+
/** Label of the name field («Folder name»). */
|
|
16
|
+
nameLabel: string;
|
|
17
|
+
/** Label of the palette («Color»). */
|
|
18
|
+
colorLabel: string;
|
|
19
|
+
namePlaceholder?: string;
|
|
20
|
+
/** Submit button label («Create folder» / «Save changes»). */
|
|
21
|
+
submitLabel: string;
|
|
22
|
+
cancelLabel: string;
|
|
23
|
+
/** Accessible name of the dialog's X. */
|
|
24
|
+
closeLabel: string;
|
|
25
|
+
/** Submitting: the button shows its spinner and every submit path is blocked. */
|
|
26
|
+
loading?: boolean;
|
|
27
|
+
/** Shown under the field after a submit attempt with an empty name. */
|
|
28
|
+
errorMissingName?: string;
|
|
29
|
+
/** Shown after a submit attempt when the trimmed name is longer than `maxNameLength`. */
|
|
30
|
+
errorTooLongName?: string;
|
|
31
|
+
/** Also the native `maxlength` of the field. */
|
|
32
|
+
maxNameLength?: number;
|
|
33
|
+
/** An error from outside (the back's «already exists»); shown under the field when the dialog has none of its own. */
|
|
34
|
+
errorMessage?: string;
|
|
35
|
+
/** Edit mode: the name the dialog opened with. Set = submit stays disabled until the name or colour changes. */
|
|
36
|
+
originalName?: string;
|
|
37
|
+
/** Edit mode: the colour the dialog opened with, compared case-insensitively. Needs `originalName`. */
|
|
38
|
+
originalColor?: string;
|
|
39
|
+
/** The `{n}/{max}` counter shows from `maxNameLength - counterThreshold` characters on. Default 19 (from 109/128). */
|
|
40
|
+
counterThreshold?: number;
|
|
41
|
+
}
|