@salesql/sql_components_vue3 3.8.2 → 3.10.1

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 (30) hide show
  1. package/dist/constants/contact-data.d.ts +9 -2
  2. package/dist/constants/events.d.ts +16 -0
  3. package/dist/constants/pickers.d.ts +2 -0
  4. package/dist/index.cjs +1 -1
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.ts +4 -2
  7. package/dist/index.es.js +2738 -2186
  8. package/dist/index.es.js.map +1 -1
  9. package/dist/sql_components_vue3.css +1 -1
  10. package/dist/ui/DsContactCell/DsContactCell.types.d.ts +16 -1
  11. package/dist/ui/DsContactCell/DsContactCell.vue.d.ts +40 -2
  12. package/dist/ui/DsContactList/DsContactList.types.d.ts +2 -0
  13. package/dist/ui/DsContactList/DsContactList.vue.d.ts +9 -0
  14. package/dist/ui/DsMaskedValue/DsMaskedValue.types.d.ts +2 -0
  15. package/dist/ui/DsMaskedValue/DsMaskedValue.vue.d.ts +9 -0
  16. package/dist/ui/DsOrganizerForm/DsOrganizerForm.types.d.ts +35 -0
  17. package/dist/ui/DsOrganizerForm/DsOrganizerForm.vue.d.ts +150 -0
  18. package/dist/ui/DsOrganizerForm/index.d.ts +2 -0
  19. package/dist/ui/DsPickerRowActions/DsPickerRowActions.types.d.ts +11 -0
  20. package/dist/ui/DsPickerRowActions/DsPickerRowActions.vue.d.ts +57 -0
  21. package/dist/ui/DsPickerRowActions/index.d.ts +2 -0
  22. package/dist/ui/DsPopover/DsPopover.vue.d.ts +9 -0
  23. package/dist/ui/DsPopover/popoverLayers.d.ts +6 -0
  24. package/dist/ui/DsSavedButton/DsSavedButton.types.d.ts +30 -0
  25. package/dist/ui/DsSavedButton/DsSavedButton.vue.d.ts +158 -3
  26. package/dist/ui/DsTagPicker/DsTagPicker.types.d.ts +31 -1
  27. package/dist/ui/DsTagPicker/DsTagPicker.vue.d.ts +156 -1
  28. package/llms-full.txt +248 -62
  29. package/llms.txt +2 -1
  30. package/package.json +1 -1
@@ -0,0 +1,35 @@
1
+ export interface DsOrganizerFormSubmitPayload {
2
+ /** The name, trimmed. */
3
+ name: string;
4
+ color: string;
5
+ }
6
+ export interface DsOrganizerFormProps {
7
+ /** Title row text ("New Folder", "Edit Tag"). */
8
+ title: string;
9
+ name?: string;
10
+ /** The selected swatch (one of `colors`). Empty = none selected. */
11
+ color?: string;
12
+ /** Swatches to pick from (hex strings). The consumer owns the palette. */
13
+ colors: string[];
14
+ /** Submit button label ("Create & Select", "Save"). */
15
+ submitLabel: string;
16
+ /** Submitting: the button shows its spinner and every submit path is blocked. */
17
+ loading?: boolean;
18
+ setColorLabel?: string;
19
+ namePlaceholder?: string;
20
+ /** Accessible name of the back control (the title row). */
21
+ backLabel?: string;
22
+ errorMissingName?: string;
23
+ errorTooLongName?: string;
24
+ maxNameLength?: number;
25
+ /** An error from outside (a failed request); shown under the field when the form has no error of its own. */
26
+ errorMessage?: string;
27
+ /**
28
+ * Edit mode: the name the form opened with. When set, the submit is disabled (and Enter does
29
+ * nothing) until the trimmed name differs from it or the colour differs from `originalColor`.
30
+ * Unset = create mode, no change check.
31
+ */
32
+ originalName?: string;
33
+ /** Edit mode: the colour the form opened with, compared case-insensitively. Needs `originalName`. */
34
+ originalColor?: string;
35
+ }
@@ -0,0 +1,150 @@
1
+ import { type PropType } from 'vue';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ title: {
4
+ type: StringConstructor;
5
+ required: true;
6
+ };
7
+ name: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ color: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ colors: {
16
+ type: PropType<string[]>;
17
+ required: true;
18
+ };
19
+ submitLabel: {
20
+ type: StringConstructor;
21
+ required: true;
22
+ };
23
+ loading: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ setColorLabel: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ namePlaceholder: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ backLabel: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ };
39
+ errorMissingName: {
40
+ type: StringConstructor;
41
+ default: string;
42
+ };
43
+ errorTooLongName: {
44
+ type: StringConstructor;
45
+ default: string;
46
+ };
47
+ maxNameLength: {
48
+ type: NumberConstructor;
49
+ default: number;
50
+ };
51
+ errorMessage: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ };
55
+ originalName: {
56
+ type: StringConstructor;
57
+ default: undefined;
58
+ };
59
+ originalColor: {
60
+ type: StringConstructor;
61
+ default: undefined;
62
+ };
63
+ }>, {
64
+ focus: () => void | undefined;
65
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
66
+ back: (...args: any[]) => void;
67
+ submit: (...args: any[]) => void;
68
+ "update:name": (...args: any[]) => void;
69
+ "update:color": (...args: any[]) => void;
70
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
71
+ title: {
72
+ type: StringConstructor;
73
+ required: true;
74
+ };
75
+ name: {
76
+ type: StringConstructor;
77
+ default: string;
78
+ };
79
+ color: {
80
+ type: StringConstructor;
81
+ default: string;
82
+ };
83
+ colors: {
84
+ type: PropType<string[]>;
85
+ required: true;
86
+ };
87
+ submitLabel: {
88
+ type: StringConstructor;
89
+ required: true;
90
+ };
91
+ loading: {
92
+ type: BooleanConstructor;
93
+ default: boolean;
94
+ };
95
+ setColorLabel: {
96
+ type: StringConstructor;
97
+ default: string;
98
+ };
99
+ namePlaceholder: {
100
+ type: StringConstructor;
101
+ default: string;
102
+ };
103
+ backLabel: {
104
+ type: StringConstructor;
105
+ default: string;
106
+ };
107
+ errorMissingName: {
108
+ type: StringConstructor;
109
+ default: string;
110
+ };
111
+ errorTooLongName: {
112
+ type: StringConstructor;
113
+ default: string;
114
+ };
115
+ maxNameLength: {
116
+ type: NumberConstructor;
117
+ default: number;
118
+ };
119
+ errorMessage: {
120
+ type: StringConstructor;
121
+ default: string;
122
+ };
123
+ originalName: {
124
+ type: StringConstructor;
125
+ default: undefined;
126
+ };
127
+ originalColor: {
128
+ type: StringConstructor;
129
+ default: undefined;
130
+ };
131
+ }>> & Readonly<{
132
+ onBack?: ((...args: any[]) => any) | undefined;
133
+ onSubmit?: ((...args: any[]) => any) | undefined;
134
+ "onUpdate:name"?: ((...args: any[]) => any) | undefined;
135
+ "onUpdate:color"?: ((...args: any[]) => any) | undefined;
136
+ }>, {
137
+ loading: boolean;
138
+ color: string;
139
+ name: string;
140
+ errorMessage: string;
141
+ setColorLabel: string;
142
+ namePlaceholder: string;
143
+ backLabel: string;
144
+ errorMissingName: string;
145
+ errorTooLongName: string;
146
+ maxNameLength: number;
147
+ originalName: string;
148
+ originalColor: string;
149
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
150
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as DsOrganizerForm } from './DsOrganizerForm.vue';
2
+ export * from './DsOrganizerForm.types';
@@ -0,0 +1,11 @@
1
+ import type { DsPickerOption } from '../../constants/pickers';
2
+ export interface DsPickerRowActionsProps {
3
+ /** The row's option; it travels back as the payload of `edit` / `delete`. */
4
+ option: DsPickerOption;
5
+ /** Accessible name of the ⋮ button. */
6
+ actionsLabel?: string;
7
+ editLabel?: string;
8
+ deleteLabel?: string;
9
+ /** Show the Edit item. Off = Delete only. */
10
+ showEdit?: boolean;
11
+ }
@@ -0,0 +1,57 @@
1
+ import { type PropType } from 'vue';
2
+ import type { DsPickerOption } from '../../constants/pickers';
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ option: {
5
+ type: PropType<DsPickerOption>;
6
+ required: true;
7
+ };
8
+ actionsLabel: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ editLabel: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ deleteLabel: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ showEdit: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
+ edit: (...args: any[]) => void;
26
+ delete: (...args: any[]) => void;
27
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
28
+ option: {
29
+ type: PropType<DsPickerOption>;
30
+ required: true;
31
+ };
32
+ actionsLabel: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ editLabel: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ };
40
+ deleteLabel: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
44
+ showEdit: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
48
+ }>> & Readonly<{
49
+ onEdit?: ((...args: any[]) => any) | undefined;
50
+ onDelete?: ((...args: any[]) => any) | undefined;
51
+ }>, {
52
+ showEdit: boolean;
53
+ editLabel: string;
54
+ actionsLabel: string;
55
+ deleteLabel: string;
56
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
57
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as DsPickerRowActions } from './DsPickerRowActions.vue';
2
+ export * from './DsPickerRowActions.types';
@@ -18,6 +18,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
18
18
  type: StringConstructor;
19
19
  default: string;
20
20
  };
21
+ growTo: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
21
25
  closeOnEscape: {
22
26
  type: BooleanConstructor;
23
27
  default: boolean;
@@ -58,6 +62,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
58
62
  type: StringConstructor;
59
63
  default: string;
60
64
  };
65
+ growTo: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
61
69
  closeOnEscape: {
62
70
  type: BooleanConstructor;
63
71
  default: boolean;
@@ -95,6 +103,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
95
103
  placement: DsPopoverPlacement;
96
104
  block: boolean;
97
105
  teleported: boolean;
106
+ growTo: string;
98
107
  closeOnOutside: boolean;
99
108
  triggerOnClick: boolean;
100
109
  offset: string;
@@ -0,0 +1,6 @@
1
+ import type { InjectionKey } from 'vue';
2
+ export interface PopoverLayer {
3
+ register(contains: (node: Node) => boolean): () => void;
4
+ }
5
+ export declare const POPOVER_LAYER: InjectionKey<PopoverLayer>;
6
+ export declare const TELEPORTED_POPOVER_Z_INDEX = 2002;
@@ -20,4 +20,34 @@ export interface DsSavedButtonProps {
20
20
  pill?: boolean;
21
21
  align?: DsPickerAlign;
22
22
  disabled?: boolean;
23
+ /** Swatches (hex) for the create / edit form. Non-empty turns the in-panel form flow on. */
24
+ colors?: string[];
25
+ /** Show the ⋮ menu (Edit / Delete) on every option row. */
26
+ rowActions?: boolean;
27
+ /** The app is saving the form: its submit button shows the spinner and is blocked. */
28
+ formLoading?: boolean;
29
+ /** A failed save, shown under the name field. */
30
+ formError?: string;
31
+ /** Accessible name of each row's ⋮ button. */
32
+ actionsLabel?: string;
33
+ editLabel?: string;
34
+ deleteLabel?: string;
35
+ createFormTitle?: string;
36
+ editFormTitle?: string;
37
+ createSubmitLabel?: string;
38
+ editSubmitLabel?: string;
39
+ formNamePlaceholder?: string;
40
+ setColorLabel?: string;
41
+ backLabel?: string;
42
+ errorMissingName?: string;
43
+ errorTooLongName?: string;
44
+ }
45
+ /** Payload of `create-option`. */
46
+ export interface DsSavedButtonCreatePayload {
47
+ name: string;
48
+ color: string;
49
+ }
50
+ /** Payload of `update-option`. */
51
+ export interface DsSavedButtonUpdatePayload extends DsSavedButtonCreatePayload {
52
+ id: string | number;
23
53
  }
@@ -1,10 +1,11 @@
1
1
  import { type PropType } from 'vue';
2
2
  import { type DsPickerAlign, type DsPickerOption, type DsPickerSize } from '../../constants/pickers';
3
- declare var __VLS_33: {
3
+ declare function closeForm(): void;
4
+ declare var __VLS_55: {
4
5
  query: string;
5
6
  };
6
7
  type __VLS_Slots = {} & {
7
- footer?: (props: typeof __VLS_33) => any;
8
+ footer?: (props: typeof __VLS_55) => any;
8
9
  };
9
10
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
10
11
  label: {
@@ -55,11 +56,81 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
55
56
  type: BooleanConstructor;
56
57
  default: boolean;
57
58
  };
58
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
59
+ colors: {
60
+ type: PropType<string[]>;
61
+ default: () => never[];
62
+ };
63
+ rowActions: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
67
+ formLoading: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
71
+ formError: {
72
+ type: StringConstructor;
73
+ default: string;
74
+ };
75
+ actionsLabel: {
76
+ type: StringConstructor;
77
+ default: string;
78
+ };
79
+ editLabel: {
80
+ type: StringConstructor;
81
+ default: string;
82
+ };
83
+ deleteLabel: {
84
+ type: StringConstructor;
85
+ default: string;
86
+ };
87
+ createFormTitle: {
88
+ type: StringConstructor;
89
+ default: string;
90
+ };
91
+ editFormTitle: {
92
+ type: StringConstructor;
93
+ default: string;
94
+ };
95
+ createSubmitLabel: {
96
+ type: StringConstructor;
97
+ default: string;
98
+ };
99
+ editSubmitLabel: {
100
+ type: StringConstructor;
101
+ default: string;
102
+ };
103
+ formNamePlaceholder: {
104
+ type: StringConstructor;
105
+ default: string;
106
+ };
107
+ setColorLabel: {
108
+ type: StringConstructor;
109
+ default: string;
110
+ };
111
+ backLabel: {
112
+ type: StringConstructor;
113
+ default: string;
114
+ };
115
+ errorMissingName: {
116
+ type: StringConstructor;
117
+ default: undefined;
118
+ };
119
+ errorTooLongName: {
120
+ type: StringConstructor;
121
+ default: undefined;
122
+ };
123
+ }>, {
124
+ closeForm: typeof closeForm;
125
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
59
126
  search: (...args: any[]) => void;
127
+ edit: (...args: any[]) => void;
60
128
  "update:open": (...args: any[]) => void;
61
129
  pick: (...args: any[]) => void;
62
130
  create: (...args: any[]) => void;
131
+ delete: (...args: any[]) => void;
132
+ "create-option": (...args: any[]) => void;
133
+ "update-option": (...args: any[]) => void;
63
134
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
64
135
  label: {
65
136
  type: StringConstructor;
@@ -109,22 +180,106 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
109
180
  type: BooleanConstructor;
110
181
  default: boolean;
111
182
  };
183
+ colors: {
184
+ type: PropType<string[]>;
185
+ default: () => never[];
186
+ };
187
+ rowActions: {
188
+ type: BooleanConstructor;
189
+ default: boolean;
190
+ };
191
+ formLoading: {
192
+ type: BooleanConstructor;
193
+ default: boolean;
194
+ };
195
+ formError: {
196
+ type: StringConstructor;
197
+ default: string;
198
+ };
199
+ actionsLabel: {
200
+ type: StringConstructor;
201
+ default: string;
202
+ };
203
+ editLabel: {
204
+ type: StringConstructor;
205
+ default: string;
206
+ };
207
+ deleteLabel: {
208
+ type: StringConstructor;
209
+ default: string;
210
+ };
211
+ createFormTitle: {
212
+ type: StringConstructor;
213
+ default: string;
214
+ };
215
+ editFormTitle: {
216
+ type: StringConstructor;
217
+ default: string;
218
+ };
219
+ createSubmitLabel: {
220
+ type: StringConstructor;
221
+ default: string;
222
+ };
223
+ editSubmitLabel: {
224
+ type: StringConstructor;
225
+ default: string;
226
+ };
227
+ formNamePlaceholder: {
228
+ type: StringConstructor;
229
+ default: string;
230
+ };
231
+ setColorLabel: {
232
+ type: StringConstructor;
233
+ default: string;
234
+ };
235
+ backLabel: {
236
+ type: StringConstructor;
237
+ default: string;
238
+ };
239
+ errorMissingName: {
240
+ type: StringConstructor;
241
+ default: undefined;
242
+ };
243
+ errorTooLongName: {
244
+ type: StringConstructor;
245
+ default: undefined;
246
+ };
112
247
  }>> & Readonly<{
113
248
  onSearch?: ((...args: any[]) => any) | undefined;
249
+ onEdit?: ((...args: any[]) => any) | undefined;
114
250
  "onUpdate:open"?: ((...args: any[]) => any) | undefined;
115
251
  onPick?: ((...args: any[]) => any) | undefined;
116
252
  onCreate?: ((...args: any[]) => any) | undefined;
253
+ onDelete?: ((...args: any[]) => any) | undefined;
254
+ "onCreate-option"?: ((...args: any[]) => any) | undefined;
255
+ "onUpdate-option"?: ((...args: any[]) => any) | undefined;
117
256
  }>, {
118
257
  size: DsPickerSize;
119
258
  disabled: boolean;
120
259
  pill: boolean;
121
260
  icon: string;
122
261
  tooltip: string;
262
+ editLabel: string;
123
263
  emptyLabel: string;
124
264
  searchPlaceholder: string;
265
+ colors: string[];
266
+ setColorLabel: string;
267
+ backLabel: string;
268
+ errorMissingName: string;
269
+ errorTooLongName: string;
270
+ actionsLabel: string;
271
+ deleteLabel: string;
125
272
  folder: DsPickerOption | null;
126
273
  createLabel: string;
127
274
  align: DsPickerAlign;
275
+ rowActions: boolean;
276
+ formLoading: boolean;
277
+ formError: string;
278
+ createFormTitle: string;
279
+ editFormTitle: string;
280
+ createSubmitLabel: string;
281
+ editSubmitLabel: string;
282
+ formNamePlaceholder: string;
128
283
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
129
284
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
130
285
  export default _default;
@@ -13,7 +13,7 @@ export interface DsTagPickerProps {
13
13
  searchPlaceholder?: string;
14
14
  /** Shown when nothing matches and there is nothing to create. */
15
15
  emptyLabel?: string;
16
- /** Prefix of the create row («Create “{query}”»). Empty = no create affordance. */
16
+ /** Prefix of the create row («Create “{query}”») and, with `colors`, the text of the footer «+ New» button. Empty = no create affordance. */
17
17
  createLabel?: string;
18
18
  /** Accessible name for the `+N` chip ("2 more tags"). */
19
19
  moreLabel?: string;
@@ -22,4 +22,34 @@ export interface DsTagPickerProps {
22
22
  pill?: boolean;
23
23
  align?: DsPickerAlign;
24
24
  disabled?: boolean;
25
+ /** Swatches (hex) for the create / edit form. Non-empty turns the in-panel form flow on. */
26
+ colors?: string[];
27
+ /** Show the ⋮ menu (Edit / Delete) on every option row. */
28
+ rowActions?: boolean;
29
+ /** The app is saving the form: its submit button shows the spinner and is blocked. */
30
+ formLoading?: boolean;
31
+ /** A failed save, shown under the name field. */
32
+ formError?: string;
33
+ /** Accessible name of each row's ⋮ button. */
34
+ actionsLabel?: string;
35
+ editLabel?: string;
36
+ deleteLabel?: string;
37
+ createFormTitle?: string;
38
+ editFormTitle?: string;
39
+ createSubmitLabel?: string;
40
+ editSubmitLabel?: string;
41
+ formNamePlaceholder?: string;
42
+ setColorLabel?: string;
43
+ backLabel?: string;
44
+ errorMissingName?: string;
45
+ errorTooLongName?: string;
46
+ }
47
+ /** Payload of `create-option`. */
48
+ export interface DsTagPickerCreatePayload {
49
+ name: string;
50
+ color: string;
51
+ }
52
+ /** Payload of `update-option`. */
53
+ export interface DsTagPickerUpdatePayload extends DsTagPickerCreatePayload {
54
+ id: string | number;
25
55
  }