@salesql/sql_components_vue3 3.26.0 → 3.28.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 +12 -0
- package/dist/constants/events.d.ts +2 -0
- package/dist/constants/pickers.d.ts +18 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.es.js +3142 -2963
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/stories/ExtensionPanelStage.vue.d.ts +12 -0
- package/dist/ui/DsPickerRowActions/DsPickerRowActions.types.d.ts +5 -1
- package/dist/ui/DsPickerRowActions/DsPickerRowActions.vue.d.ts +20 -0
- package/dist/ui/DsSavedButton/DsSavedButton.story-state.d.ts +20 -0
- package/dist/ui/DsSavedButton/DsSavedButton.types.d.ts +2 -0
- package/dist/ui/DsSavedButton/DsSavedButton.vue.d.ts +13 -2
- package/dist/ui/DsSkeleton/DsSkeleton.types.d.ts +28 -0
- package/dist/ui/DsSkeleton/DsSkeleton.vue.d.ts +53 -0
- package/dist/ui/DsSkeleton/index.d.ts +2 -0
- package/dist/ui/DsSkeletonGroup/DsSkeletonGroup.types.d.ts +4 -0
- package/dist/ui/DsSkeletonGroup/DsSkeletonGroup.vue.d.ts +24 -0
- package/dist/ui/DsSkeletonGroup/index.d.ts +2 -0
- package/dist/ui/DsTagPicker/DsTagPicker.types.d.ts +3 -1
- package/dist/ui/DsTagPicker/DsTagPicker.vue.d.ts +13 -1
- package/llms-full.txt +155 -47
- package/llms.txt +2 -0
- package/package.json +1 -1
|
@@ -6,6 +6,8 @@ export interface PickerOrganizerOptions {
|
|
|
6
6
|
colors: () => readonly string[];
|
|
7
7
|
rowActions: () => DsPickerRowActionsMode;
|
|
8
8
|
formError: () => string;
|
|
9
|
+
/** The colour a new option (or one without colour) starts at; empty / unset = the first of `colors`. */
|
|
10
|
+
defaultColor?: () => string;
|
|
9
11
|
emit: (event: PickerOrganizerEvent, payload?: unknown) => void;
|
|
10
12
|
focusSearch: () => void;
|
|
11
13
|
}
|
|
@@ -16,10 +18,20 @@ export declare function usePickerOrganizer(options: PickerOrganizerOptions): {
|
|
|
16
18
|
id: string | number;
|
|
17
19
|
name: string;
|
|
18
20
|
color?: string | undefined;
|
|
21
|
+
deleteDisabled?: {
|
|
22
|
+
hint: string;
|
|
23
|
+
tooltip?: string | undefined;
|
|
24
|
+
} | undefined;
|
|
25
|
+
deleting?: boolean | undefined;
|
|
19
26
|
} | null, DsPickerOption | {
|
|
20
27
|
id: string | number;
|
|
21
28
|
name: string;
|
|
22
29
|
color?: string | undefined;
|
|
30
|
+
deleteDisabled?: {
|
|
31
|
+
hint: string;
|
|
32
|
+
tooltip?: string | undefined;
|
|
33
|
+
} | undefined;
|
|
34
|
+
deleting?: boolean | undefined;
|
|
23
35
|
} | null>;
|
|
24
36
|
formName: import("vue").Ref<string, string>;
|
|
25
37
|
formColor: import("vue").Ref<string, string>;
|
|
@@ -76,6 +76,8 @@ export declare const UPDATE_COLOR: "update:color";
|
|
|
76
76
|
export type UpdateColorEventName = typeof UPDATE_COLOR;
|
|
77
77
|
export declare const FORM_CLOSE: "form-close";
|
|
78
78
|
export type FormCloseEventName = typeof FORM_CLOSE;
|
|
79
|
+
export declare const ROW_ACTIONS_OPEN: "row-actions-open";
|
|
80
|
+
export type RowActionsOpenEventName = typeof ROW_ACTIONS_OPEN;
|
|
79
81
|
export declare const CANCEL: "cancel";
|
|
80
82
|
export type CancelEventName = typeof CANCEL;
|
|
81
83
|
export declare const SAVE: "save";
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { type DsPopoverPlacement } from '../ui/DsPopover';
|
|
2
|
+
/** Why a row's Delete is blocked: the app sets it on the option, the ⋮ menu shows it. */
|
|
3
|
+
export interface DsPickerDeleteDisabled {
|
|
4
|
+
/** Short text after the Delete label («Protected», «Not empty»). App copy. */
|
|
5
|
+
hint: string;
|
|
6
|
+
/** Longer reason, in a tooltip on the Delete item. */
|
|
7
|
+
tooltip?: string;
|
|
8
|
+
}
|
|
2
9
|
/** One selectable thing: a folder, a tag, a campaign. `color` tints the row glyph / dot. */
|
|
3
10
|
export interface DsPickerOption {
|
|
4
11
|
id: string | number;
|
|
5
12
|
name: string;
|
|
6
13
|
color?: string;
|
|
14
|
+
/** Delete stays visible but blocked, with its reason. Unset = Delete works. */
|
|
15
|
+
deleteDisabled?: DsPickerDeleteDisabled;
|
|
16
|
+
/** The app is deleting it: its ⋮ menu stays open with the row in loading until this clears. */
|
|
17
|
+
deleting?: boolean;
|
|
7
18
|
}
|
|
8
19
|
/** Trigger height — `medium` for rows and the full profile, `large` for action / bulk bars. */
|
|
9
20
|
export declare const DS_PICKER_SIZES: {
|
|
@@ -42,6 +53,9 @@ export interface DsPickerOrganizerCopy {
|
|
|
42
53
|
actions: string;
|
|
43
54
|
edit: string;
|
|
44
55
|
delete: string;
|
|
56
|
+
/** First click on Delete turns the row into these two. Unset = DsPickerRowActions' fallback. */
|
|
57
|
+
deleteConfirm?: string;
|
|
58
|
+
deleteConfirmAction?: string;
|
|
45
59
|
createFormTitle: string;
|
|
46
60
|
editFormTitle: string;
|
|
47
61
|
createSubmit: string;
|
|
@@ -68,6 +82,10 @@ export interface DsSequenceChannelOption {
|
|
|
68
82
|
export declare function filterOptions<T extends {
|
|
69
83
|
name: string;
|
|
70
84
|
}>(options: readonly T[], query: string): T[];
|
|
85
|
+
/** Some row is being deleted: its panel and ⋮ stay open until the app answers. */
|
|
86
|
+
export declare function isDeletingAny(options: readonly DsPickerOption[]): boolean;
|
|
87
|
+
/** A row that was being deleted left the list: the delete went through. */
|
|
88
|
+
export declare function lostDeletingOption(next: readonly DsPickerOption[], previous: readonly DsPickerOption[]): boolean;
|
|
71
89
|
/** The panel opens below the trigger, aligned to the edge the consumer asked for. */
|
|
72
90
|
export declare function pickerPlacement(align: DsPickerAlign): DsPopoverPlacement;
|
|
73
91
|
/**
|