@salesql/sql_components_vue3 3.33.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 +4 -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 +7 -5
- package/dist/index.es.js +4795 -4474
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsAccountMenu/DsAccountMenu.types.d.ts +19 -2
- package/dist/ui/DsAccountMenu/DsAccountMenu.vue.d.ts +15 -2
- 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/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/DsSavedButton/DsSavedButton.types.d.ts +5 -1
- package/dist/ui/DsSavedButton/DsSavedButton.vue.d.ts +24 -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 +187 -65
- package/llms.txt +1 -0
- package/package.json +1 -1
|
@@ -11,6 +11,18 @@ export interface PickerOrganizerOptions {
|
|
|
11
11
|
emit: (event: PickerOrganizerEvent, payload?: unknown) => void;
|
|
12
12
|
focusSearch: () => void;
|
|
13
13
|
}
|
|
14
|
+
/** Where a save's answer lands: its form still open, that form left, or a newer submit / pick. */
|
|
15
|
+
export declare const PICKER_SAVE_STATES: {
|
|
16
|
+
readonly CURRENT: "current";
|
|
17
|
+
readonly LEFT: "left";
|
|
18
|
+
readonly SUPERSEDED: "superseded";
|
|
19
|
+
};
|
|
20
|
+
export type PickerSaveState = (typeof PICKER_SAVE_STATES)[keyof typeof PICKER_SAVE_STATES];
|
|
21
|
+
export interface PickerSettledSave {
|
|
22
|
+
state: PickerSaveState;
|
|
23
|
+
/** The answered save created an option (with no submit on record: the form is not an edit). */
|
|
24
|
+
create: boolean;
|
|
25
|
+
}
|
|
14
26
|
export declare function usePickerOrganizer(options: PickerOrganizerOptions): {
|
|
15
27
|
view: import("vue").Ref<"form" | "list", "form" | "list">;
|
|
16
28
|
mode: import("vue").Ref<"edit" | "create", "edit" | "create">;
|
|
@@ -44,5 +56,8 @@ export declare function usePickerOrganizer(options: PickerOrganizerOptions): {
|
|
|
44
56
|
onDelete: (option: DsPickerOption) => void;
|
|
45
57
|
onSubmit: ({ name, color }: DsOrganizerFormSubmitPayload) => void;
|
|
46
58
|
closeForm: () => void;
|
|
59
|
+
settleSave: (session?: number) => PickerSettledSave;
|
|
60
|
+
submitSession: () => number | undefined;
|
|
61
|
+
markSelection: () => void;
|
|
47
62
|
};
|
|
48
63
|
export {};
|
|
@@ -86,12 +86,16 @@ export declare const CANCEL: "cancel";
|
|
|
86
86
|
export type CancelEventName = typeof CANCEL;
|
|
87
87
|
export declare const SAVE: "save";
|
|
88
88
|
export type SaveEventName = typeof SAVE;
|
|
89
|
+
export declare const CONFIRM: "confirm";
|
|
90
|
+
export type ConfirmEventName = typeof CONFIRM;
|
|
89
91
|
export declare const OPEN: "open";
|
|
90
92
|
export type OpenEventName = typeof OPEN;
|
|
91
93
|
export declare const CONNECT: "connect";
|
|
92
94
|
export type ConnectEventName = typeof CONNECT;
|
|
93
95
|
export declare const RECONNECT: "reconnect";
|
|
94
96
|
export type ReconnectEventName = typeof RECONNECT;
|
|
97
|
+
export declare const RETRY_MAILBOXES: "retry-mailboxes";
|
|
98
|
+
export type RetryMailboxesEventName = typeof RETRY_MAILBOXES;
|
|
95
99
|
export declare const GET_STARTED: "get-started";
|
|
96
100
|
export type GetStartedEventName = typeof GET_STARTED;
|
|
97
101
|
export declare const BULK_SAVE: "bulk-save";
|
|
@@ -47,6 +47,19 @@ export declare const DS_PICKER_ROW_ACTIONS: {
|
|
|
47
47
|
readonly FORM: "form";
|
|
48
48
|
};
|
|
49
49
|
export type DsPickerRowActionsMode = (typeof DS_PICKER_ROW_ACTIONS)[keyof typeof DS_PICKER_ROW_ACTIONS];
|
|
50
|
+
/**
|
|
51
|
+
* What `closeForm(created, session)` did with a saved item. `taken`: the picker selected it (or
|
|
52
|
+
* checked it, multiple tags, also from a form left meanwhile). `not-taken`: it did not (no
|
|
53
|
+
* `selectOnCreate`, an edit, the panel closed, or a single picker whose form was left meanwhile),
|
|
54
|
+
* so the app may select it. `stale`: a newer submit
|
|
55
|
+
* or selection superseded that save; the app adds it to its catalogue but does not select it.
|
|
56
|
+
*/
|
|
57
|
+
export declare const DS_PICKER_SAVE_RESULTS: {
|
|
58
|
+
readonly TAKEN: "taken";
|
|
59
|
+
readonly NOT_TAKEN: "not-taken";
|
|
60
|
+
readonly STALE: "stale";
|
|
61
|
+
};
|
|
62
|
+
export type DsPickerSaveResult = (typeof DS_PICKER_SAVE_RESULTS)[keyof typeof DS_PICKER_SAVE_RESULTS];
|
|
50
63
|
/** The strings the in-panel form and the row ⋮ menu share between the pickers. */
|
|
51
64
|
export interface DsPickerOrganizerCopy {
|
|
52
65
|
/** Accessible name of each row's ⋮ button. */
|