@salesql/sql_components_vue3 3.32.0 → 3.34.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/usePickerOrganizer.d.ts +15 -0
- package/dist/constants/events.d.ts +10 -0
- package/dist/constants/pickers.d.ts +13 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +21 -7
- package/dist/index.es.js +5288 -4376
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsAccountMenu/DsAccountMenu.types.d.ts +22 -12
- package/dist/ui/DsAccountMenu/DsAccountMenu.vue.d.ts +16 -3
- 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/DsConfirmDialog/DsConfirmDialog.types.d.ts +24 -0
- package/dist/ui/DsConfirmDialog/DsConfirmDialog.vue.d.ts +91 -0
- package/dist/ui/DsConfirmDialog/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/DsItemSelectorButton/DsItemSelectorButton.types.d.ts +6 -0
- package/dist/ui/DsItemSelectorButton/DsItemSelectorButton.vue.d.ts +9 -0
- package/dist/ui/DsModal/DsModal.types.d.ts +8 -0
- package/dist/ui/DsModal/DsModal.vue.d.ts +25 -0
- package/dist/ui/DsModal/modalStack.d.ts +9 -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 +8 -2
- package/dist/ui/DsSavedButton/DsSavedButton.vue.d.ts +33 -4
- package/dist/ui/DsTagPicker/DsTagPicker.types.d.ts +6 -1
- package/dist/ui/DsTagPicker/DsTagPicker.vue.d.ts +12 -2
- package/llms-full.txt +421 -67
- package/llms.txt +7 -0
- package/package.json +1 -1
- package/src/icons/manifest.json +3 -0
|
@@ -16,10 +16,13 @@ export interface DsTagPickerCopy extends DsPickerOrganizerCopy {
|
|
|
16
16
|
newButton: string;
|
|
17
17
|
/** `selection: 'single'`: the row that clears the applied tag. Optional, so a complete copy written before it still compiles. */
|
|
18
18
|
removeTag?: string;
|
|
19
|
+
/** `selection: 'single'` with `selectOnCreate`: the create form's submit, which also picks the new tag («Create & select»). Unset, an explicit `createSubmit` wins over the English default. Optional, like `removeTag`. */
|
|
20
|
+
createSelectSubmit?: string;
|
|
19
21
|
}
|
|
20
22
|
/** The copy the picker renders: every key it shows resolved. */
|
|
21
23
|
export type DsTagPickerResolvedCopy = DsTagPickerCopy & {
|
|
22
24
|
removeTag: string;
|
|
25
|
+
createSelectSubmit: string;
|
|
23
26
|
};
|
|
24
27
|
export declare const DS_TAG_PICKER_COPY: DsTagPickerResolvedCopy;
|
|
25
28
|
export declare const DS_TAG_PICKER_SELECTIONS: {
|
|
@@ -49,8 +52,10 @@ export interface DsTagPickerProps {
|
|
|
49
52
|
colors?: readonly string[];
|
|
50
53
|
/** Swatch the create form (and Edit of a tag without colour) starts at. Empty (default) = the first of `colors`. */
|
|
51
54
|
defaultColor?: string;
|
|
52
|
-
/** The app is saving the form: its submit button shows the spinner and is blocked. On success it calls `closeForm(created)` on the picker's instance: with the tag it just created
|
|
55
|
+
/** The app is saving the form: its submit button shows the spinner and is blocked. On success it calls `closeForm(created)` on the picker's instance: with the tag it just created, multiple selection checks it in the working copy (Apply keeps it even if `options` does not carry it yet) and stays open, also when the user left that form during the save (a form open meanwhile is left alone); single selection with `selectOnCreate` emits `apply [created]` and closes. Returns `'taken'` when it took it, `'not-taken'` when it did not (an edit, the panel closed, or single without `selectOnCreate` or whose form was left or replaced during the save): the app applies it itself, and `'stale'` when a newer submit or selection superseded that save: the app only lists it. Pass `submitSession()`, read in the submit handler, as `closeForm`'s second argument. */
|
|
53
56
|
formLoading?: boolean;
|
|
57
|
+
/** `selection: 'single'`: `closeForm(created)` also applies the new tag and closes («Create & select»). Default `false`: it only goes back to the list. */
|
|
58
|
+
selectOnCreate?: boolean;
|
|
54
59
|
/** A failed save, shown under the name field. */
|
|
55
60
|
formError?: string;
|
|
56
61
|
copy?: Partial<DsTagPickerCopy>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
|
-
import { type DsPickerAlign, type DsPickerCreateMode, type DsPickerOption, type DsPickerRowActionsMode, type DsPickerSize } from '../../constants/pickers';
|
|
2
|
+
import { type DsPickerAlign, type DsPickerCreateMode, type DsPickerOption, type DsPickerRowActionsMode, type DsPickerSaveResult, type DsPickerSize } from '../../constants/pickers';
|
|
3
3
|
import { type DsTagPickerCopy, type DsTagPickerSelection } from './DsTagPicker.types';
|
|
4
4
|
declare function toggle(): void;
|
|
5
|
-
declare function closeForm(created?: DsPickerOption):
|
|
5
|
+
declare function closeForm(created?: DsPickerOption, session?: number): DsPickerSaveResult;
|
|
6
6
|
declare var __VLS_9: {
|
|
7
7
|
open: boolean;
|
|
8
8
|
toggle: typeof toggle;
|
|
@@ -70,6 +70,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
70
70
|
type: BooleanConstructor;
|
|
71
71
|
default: boolean;
|
|
72
72
|
};
|
|
73
|
+
selectOnCreate: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
73
77
|
formError: {
|
|
74
78
|
type: StringConstructor;
|
|
75
79
|
default: string;
|
|
@@ -152,6 +156,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
152
156
|
};
|
|
153
157
|
}>, {
|
|
154
158
|
closeForm: typeof closeForm;
|
|
159
|
+
submitSession: () => number | undefined;
|
|
155
160
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
156
161
|
search: (...args: any[]) => void;
|
|
157
162
|
edit: (...args: any[]) => void;
|
|
@@ -222,6 +227,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
222
227
|
type: BooleanConstructor;
|
|
223
228
|
default: boolean;
|
|
224
229
|
};
|
|
230
|
+
selectOnCreate: {
|
|
231
|
+
type: BooleanConstructor;
|
|
232
|
+
default: boolean;
|
|
233
|
+
};
|
|
225
234
|
formError: {
|
|
226
235
|
type: StringConstructor;
|
|
227
236
|
default: string;
|
|
@@ -338,6 +347,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
338
347
|
rowActions: boolean | DsPickerRowActionsMode;
|
|
339
348
|
defaultColor: string;
|
|
340
349
|
formLoading: boolean;
|
|
350
|
+
selectOnCreate: boolean;
|
|
341
351
|
formError: string;
|
|
342
352
|
createSubmitLabel: string;
|
|
343
353
|
editSubmitLabel: string;
|