@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.
@@ -10,19 +10,39 @@ export declare function createSavedStoryState(): {
10
10
  id: string | number;
11
11
  name: string;
12
12
  color?: string | undefined;
13
+ deleteDisabled?: {
14
+ hint: string;
15
+ tooltip?: string | undefined;
16
+ } | undefined;
17
+ deleting?: boolean | undefined;
13
18
  }[], DsPickerOption[] | {
14
19
  id: string | number;
15
20
  name: string;
16
21
  color?: string | undefined;
22
+ deleteDisabled?: {
23
+ hint: string;
24
+ tooltip?: string | undefined;
25
+ } | undefined;
26
+ deleting?: boolean | undefined;
17
27
  }[]>;
18
28
  demoFolders: import("vue").Ref<{
19
29
  id: string | number;
20
30
  name: string;
21
31
  color?: string | undefined;
32
+ deleteDisabled?: {
33
+ hint: string;
34
+ tooltip?: string | undefined;
35
+ } | undefined;
36
+ deleting?: boolean | undefined;
22
37
  }[], DsPickerOption[] | {
23
38
  id: string | number;
24
39
  name: string;
25
40
  color?: string | undefined;
41
+ deleteDisabled?: {
42
+ hint: string;
43
+ tooltip?: string | undefined;
44
+ } | undefined;
45
+ deleting?: boolean | undefined;
26
46
  }[]>;
27
47
  demoCurrentId: import("vue").Ref<string | number | null, string | number | null>;
28
48
  };
@@ -35,6 +35,8 @@ export interface DsSavedButtonProps {
35
35
  rowActions?: DsPickerRowActionsMode | boolean;
36
36
  /** Swatches (hex) of the in-panel form. Only the palette: it gates nothing by itself. */
37
37
  colors?: readonly string[];
38
+ /** Swatch the create form (and Edit of a folder without colour) starts at. Empty (default) = the first of `colors`. */
39
+ defaultColor?: string;
38
40
  /** The app is saving the form: its submit button shows the spinner and is blocked. */
39
41
  formLoading?: boolean;
40
42
  /** A failed save, shown under the name field. */
@@ -8,14 +8,14 @@ declare var __VLS_9: {
8
8
  open: boolean;
9
9
  toggle: typeof toggle;
10
10
  disabled: boolean;
11
- }, __VLS_57: {
11
+ }, __VLS_58: {
12
12
  query: string;
13
13
  openCreateForm: typeof openCreateForm;
14
14
  };
15
15
  type __VLS_Slots = {} & {
16
16
  trigger?: (props: typeof __VLS_9) => any;
17
17
  } & {
18
- footer?: (props: typeof __VLS_57) => any;
18
+ footer?: (props: typeof __VLS_58) => any;
19
19
  };
20
20
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
21
21
  label: {
@@ -76,6 +76,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
76
76
  type: PropType<readonly string[]>;
77
77
  default: () => never[];
78
78
  };
79
+ defaultColor: {
80
+ type: StringConstructor;
81
+ default: string;
82
+ };
79
83
  formLoading: {
80
84
  type: BooleanConstructor;
81
85
  default: boolean;
@@ -160,6 +164,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
160
164
  "create-option": (...args: any[]) => void;
161
165
  "update-option": (...args: any[]) => void;
162
166
  "form-close": (...args: any[]) => void;
167
+ "row-actions-open": (...args: any[]) => void;
163
168
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
164
169
  label: {
165
170
  type: StringConstructor;
@@ -219,6 +224,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
219
224
  type: PropType<readonly string[]>;
220
225
  default: () => never[];
221
226
  };
227
+ defaultColor: {
228
+ type: StringConstructor;
229
+ default: string;
230
+ };
222
231
  formLoading: {
223
232
  type: BooleanConstructor;
224
233
  default: boolean;
@@ -301,6 +310,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
301
310
  "onCreate-option"?: ((...args: any[]) => any) | undefined;
302
311
  "onUpdate-option"?: ((...args: any[]) => any) | undefined;
303
312
  "onForm-close"?: ((...args: any[]) => any) | undefined;
313
+ "onRow-actions-open"?: ((...args: any[]) => any) | undefined;
304
314
  }>, {
305
315
  size: DsPickerSize;
306
316
  copy: Partial<DsSavedButtonCopy>;
@@ -327,6 +337,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
327
337
  tooltipPlacement: DsTooltipPlacement;
328
338
  align: DsPickerAlign;
329
339
  rowActions: boolean | DsPickerRowActionsMode;
340
+ defaultColor: string;
330
341
  formLoading: boolean;
331
342
  formError: string;
332
343
  createSubmitLabel: string;
@@ -0,0 +1,28 @@
1
+ export declare const DS_SKELETON_SHAPES: {
2
+ /** A line of text: full width, 10px high, fully rounded. */
3
+ readonly TEXT: "text";
4
+ /** A box (avatar, logo, button, card): full width, 40px high, `control` radius. */
5
+ readonly RECT: "rect";
6
+ /** A round avatar or dot: 40px, always square and fully rounded. */
7
+ readonly CIRCLE: "circle";
8
+ };
9
+ export type DsSkeletonShape = (typeof DS_SKELETON_SHAPES)[keyof typeof DS_SKELETON_SHAPES];
10
+ /** The DS radius tokens a skeleton can take (`radius.scss`). */
11
+ export declare const DS_SKELETON_RADII: {
12
+ readonly CONTROL: "control";
13
+ readonly CARD: "card";
14
+ readonly CARD_LG: "card-lg";
15
+ readonly FULL: "full";
16
+ };
17
+ export type DsSkeletonRadius = (typeof DS_SKELETON_RADII)[keyof typeof DS_SKELETON_RADII];
18
+ export interface DsSkeletonProps {
19
+ shape?: DsSkeletonShape;
20
+ /** A number is px; a string is any CSS length (`'45%'`, `'8rem'`). */
21
+ width?: number | string;
22
+ /** A number is px; a string is any CSS length. A circle with only one side uses it for both. */
23
+ height?: number | string;
24
+ /** Overrides the shape's radius. Ignored on a circle. */
25
+ radius?: DsSkeletonRadius;
26
+ /** Pulses while mounted (never under reduced motion). */
27
+ animated?: boolean;
28
+ }
@@ -0,0 +1,53 @@
1
+ import { type PropType } from 'vue';
2
+ import { type DsSkeletonRadius, type DsSkeletonShape } from './DsSkeleton.types';
3
+ type Length = number | string;
4
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
+ shape: {
6
+ type: PropType<DsSkeletonShape>;
7
+ default: "text";
8
+ };
9
+ width: {
10
+ type: PropType<Length>;
11
+ default: undefined;
12
+ };
13
+ height: {
14
+ type: PropType<Length>;
15
+ default: undefined;
16
+ };
17
+ radius: {
18
+ type: PropType<DsSkeletonRadius>;
19
+ default: undefined;
20
+ };
21
+ animated: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
26
+ shape: {
27
+ type: PropType<DsSkeletonShape>;
28
+ default: "text";
29
+ };
30
+ width: {
31
+ type: PropType<Length>;
32
+ default: undefined;
33
+ };
34
+ height: {
35
+ type: PropType<Length>;
36
+ default: undefined;
37
+ };
38
+ radius: {
39
+ type: PropType<DsSkeletonRadius>;
40
+ default: undefined;
41
+ };
42
+ animated: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ }>> & Readonly<{}>, {
47
+ width: Length;
48
+ height: Length;
49
+ shape: DsSkeletonShape;
50
+ radius: DsSkeletonRadius;
51
+ animated: boolean;
52
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
53
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as DsSkeleton } from './DsSkeleton.vue';
2
+ export * from './DsSkeleton.types';
@@ -0,0 +1,4 @@
1
+ export interface DsSkeletonGroupProps {
2
+ /** What is loading («Loading profile»), already translated. Read to screen readers only. */
3
+ label?: string;
4
+ }
@@ -0,0 +1,24 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ label: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
+ label: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ }>> & Readonly<{}>, {
16
+ label: string;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
18
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,2 @@
1
+ export { default as DsSkeletonGroup } from './DsSkeletonGroup.vue';
2
+ export * from './DsSkeletonGroup.types';
@@ -47,7 +47,9 @@ export interface DsTagPickerProps {
47
47
  rowActions?: DsPickerRowActionsMode | boolean;
48
48
  /** Swatches (hex) of the in-panel form. Only the palette: it gates nothing by itself. */
49
49
  colors?: readonly string[];
50
- /** The app is saving the form: its submit button shows the spinner and is blocked. */
50
+ /** Swatch the create form (and Edit of a tag without colour) starts at. Empty (default) = the first of `colors`. */
51
+ 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 (multiple selection), that tag enters the working copy checked and Apply keeps it even if `options` does not carry it yet. */
51
53
  formLoading?: boolean;
52
54
  /** A failed save, shown under the name field. */
53
55
  formError?: string;
@@ -2,6 +2,7 @@ import { type PropType } from 'vue';
2
2
  import { type DsPickerAlign, type DsPickerCreateMode, type DsPickerOption, type DsPickerRowActionsMode, 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): void;
5
6
  declare var __VLS_9: {
6
7
  open: boolean;
7
8
  toggle: typeof toggle;
@@ -61,6 +62,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
61
62
  type: PropType<readonly string[]>;
62
63
  default: () => never[];
63
64
  };
65
+ defaultColor: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
64
69
  formLoading: {
65
70
  type: BooleanConstructor;
66
71
  default: boolean;
@@ -146,7 +151,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
146
151
  default: undefined;
147
152
  };
148
153
  }>, {
149
- closeForm: () => void;
154
+ closeForm: typeof closeForm;
150
155
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
151
156
  search: (...args: any[]) => void;
152
157
  edit: (...args: any[]) => void;
@@ -157,6 +162,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
157
162
  "create-option": (...args: any[]) => void;
158
163
  "update-option": (...args: any[]) => void;
159
164
  "form-close": (...args: any[]) => void;
165
+ "row-actions-open": (...args: any[]) => void;
160
166
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
161
167
  label: {
162
168
  type: StringConstructor;
@@ -208,6 +214,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
208
214
  type: PropType<readonly string[]>;
209
215
  default: () => never[];
210
216
  };
217
+ defaultColor: {
218
+ type: StringConstructor;
219
+ default: string;
220
+ };
211
221
  formLoading: {
212
222
  type: BooleanConstructor;
213
223
  default: boolean;
@@ -302,6 +312,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
302
312
  "onCreate-option"?: ((...args: any[]) => any) | undefined;
303
313
  "onUpdate-option"?: ((...args: any[]) => any) | undefined;
304
314
  "onForm-close"?: ((...args: any[]) => any) | undefined;
315
+ "onRow-actions-open"?: ((...args: any[]) => any) | undefined;
305
316
  }>, {
306
317
  size: DsPickerSize;
307
318
  copy: Partial<DsTagPickerCopy>;
@@ -325,6 +336,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
325
336
  editFormTitle: string;
326
337
  align: DsPickerAlign;
327
338
  rowActions: boolean | DsPickerRowActionsMode;
339
+ defaultColor: string;
328
340
  formLoading: boolean;
329
341
  formError: string;
330
342
  createSubmitLabel: string;