@maltjoy/core-vue 3.19.4 → 3.19.6

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.
@@ -0,0 +1,3 @@
1
+ import { SIZES } from '../../types';
2
+ export type TJoyDialogSizes = Extract<(typeof SIZES)[number], 'large'> | 'default';
3
+ export declare const DIALOG_SIZES: TJoyDialogSizes[];
@@ -1,5 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { TJoyButtonSizes } from '../JoyButton/JoyButton.types';
3
+ import { TJoyDialogSizes } from './JoyDialog.types';
3
4
  declare function hide(options?: {
4
5
  fireHideEvent: boolean;
5
6
  }): Promise<void>;
@@ -8,6 +9,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
8
9
  id: {
9
10
  type: StringConstructor;
10
11
  };
12
+ size: {
13
+ type: PropType<TJoyDialogSizes>;
14
+ default: string;
15
+ };
11
16
  /** By default a focus-trap is activated. It means you can loop over all interactive elements within the open dialog. */
12
17
  focusTrap: {
13
18
  type: BooleanConstructor;
@@ -82,6 +87,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
82
87
  id: {
83
88
  type: StringConstructor;
84
89
  };
90
+ size: {
91
+ type: PropType<TJoyDialogSizes>;
92
+ default: string;
93
+ };
85
94
  /** By default a focus-trap is activated. It means you can loop over all interactive elements within the open dialog. */
86
95
  focusTrap: {
87
96
  type: BooleanConstructor;
@@ -147,6 +156,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
147
156
  "onDialog:before-unmount"?: (() => any) | undefined;
148
157
  "onDialog:confirm"?: (() => any) | undefined;
149
158
  }, {
159
+ size: TJoyDialogSizes;
150
160
  closeLabel: string;
151
161
  open: boolean;
152
162
  preventBodyScroll: boolean;
@@ -5,6 +5,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
5
5
  $: import("vue").ComponentInternalInstance;
6
6
  $data: {};
7
7
  $props: {
8
+ size?: import("../components.types").TJoyDialogSizes | undefined;
8
9
  closeLabel?: string | undefined;
9
10
  open?: boolean | undefined;
10
11
  preventBodyScroll?: boolean | undefined;
@@ -86,6 +87,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
86
87
  id: {
87
88
  type: StringConstructor;
88
89
  };
90
+ size: {
91
+ type: import("vue").PropType<import("../components.types").TJoyDialogSizes>;
92
+ default: string;
93
+ };
89
94
  focusTrap: {
90
95
  type: BooleanConstructor;
91
96
  default: boolean;
@@ -153,6 +158,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
153
158
  "dialog:before-unmount": () => void;
154
159
  "dialog:confirm": () => void;
155
160
  }, string, {
161
+ size: import("../components.types").TJoyDialogSizes;
156
162
  closeLabel: string;
157
163
  open: boolean;
158
164
  preventBodyScroll: boolean;
@@ -185,6 +191,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
185
191
  id: {
186
192
  type: StringConstructor;
187
193
  };
194
+ size: {
195
+ type: import("vue").PropType<import("../components.types").TJoyDialogSizes>;
196
+ default: string;
197
+ };
188
198
  focusTrap: {
189
199
  type: BooleanConstructor;
190
200
  default: boolean;
@@ -264,6 +274,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
264
274
  $: import("vue").ComponentInternalInstance;
265
275
  $data: {};
266
276
  $props: {
277
+ size?: import("../components.types").TJoyDialogSizes | undefined;
267
278
  closeLabel?: string | undefined;
268
279
  open?: boolean | undefined;
269
280
  preventBodyScroll?: boolean | undefined;
@@ -345,6 +356,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
345
356
  id: {
346
357
  type: StringConstructor;
347
358
  };
359
+ size: {
360
+ type: import("vue").PropType<import("../components.types").TJoyDialogSizes>;
361
+ default: string;
362
+ };
348
363
  focusTrap: {
349
364
  type: BooleanConstructor;
350
365
  default: boolean;
@@ -412,6 +427,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
412
427
  "dialog:before-unmount": () => void;
413
428
  "dialog:confirm": () => void;
414
429
  }, string, {
430
+ size: import("../components.types").TJoyDialogSizes;
415
431
  closeLabel: string;
416
432
  open: boolean;
417
433
  preventBodyScroll: boolean;
@@ -444,6 +460,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
444
460
  id: {
445
461
  type: StringConstructor;
446
462
  };
463
+ size: {
464
+ type: import("vue").PropType<import("../components.types").TJoyDialogSizes>;
465
+ default: string;
466
+ };
447
467
  focusTrap: {
448
468
  type: BooleanConstructor;
449
469
  default: boolean;
@@ -66,6 +66,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
66
66
  };
67
67
  /** Adds a legend like symbol on the right of the component. Made for number based values */
68
68
  unit: StringConstructor;
69
+ /** Activates the readonly mode for the input */
70
+ readonly: {
71
+ type: BooleanConstructor;
72
+ default: boolean;
73
+ };
69
74
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
70
75
  "update:modelValue": (value: string) => void;
71
76
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -134,6 +139,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
134
139
  };
135
140
  /** Adds a legend like symbol on the right of the component. Made for number based values */
136
141
  unit: StringConstructor;
142
+ /** Activates the readonly mode for the input */
143
+ readonly: {
144
+ type: BooleanConstructor;
145
+ default: boolean;
146
+ };
137
147
  }>> & {
138
148
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
139
149
  }, {
@@ -149,6 +159,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
149
159
  lazy: boolean;
150
160
  };
151
161
  clearable: boolean;
162
+ readonly: boolean;
152
163
  }, {}>, {
153
164
  default?(_: {}): any;
154
165
  }>;
@@ -10,6 +10,7 @@ export type TJoySnackbarEvents = {
10
10
  'snackbar:action-click': undefined;
11
11
  };
12
12
  export interface IJoynackbarServiceOptions {
13
+ disableStacking?: boolean;
13
14
  snackbarHostId?: string;
14
15
  props: InstanceType<typeof VJoySnackbar>['$props'];
15
16
  }
@@ -1,6 +1,6 @@
1
1
  import { SIZES } from '../../types';
2
2
  import VJoyTag from './VJoyTag.vue';
3
- export declare const TAG_VARIANTS: readonly ["important", "inactive", "pending", "pricing", "primary", "secondary"];
3
+ export declare const TAG_VARIANTS: readonly ["important", "inactive", "pending", "pricing", "special", "primary", "secondary"];
4
4
  export type TJoyTagVariants = (typeof TAG_VARIANTS)[number];
5
5
  export type TJoyTagSizes = Exclude<(typeof SIZES)[number], 'xlarge' | 'xxsmall'>;
6
6
  export declare const TAG_SIZES: TJoyTagSizes[];
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<{
11
11
  default: string;
12
12
  };
13
13
  variant: {
14
- type: PropType<"primary" | "secondary" | "important" | "inactive" | "pending" | "pricing">;
14
+ type: PropType<"primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special">;
15
15
  default: string;
16
16
  };
17
17
  /** Use v-model:selected */
@@ -51,7 +51,7 @@ declare const _default: import("vue").DefineComponent<{
51
51
  default: string;
52
52
  };
53
53
  variant: {
54
- type: PropType<"primary" | "secondary" | "important" | "inactive" | "pending" | "pricing">;
54
+ type: PropType<"primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special">;
55
55
  default: string;
56
56
  };
57
57
  /** Use v-model:selected */
@@ -83,7 +83,7 @@ declare const _default: import("vue").DefineComponent<{
83
83
  }, {
84
84
  link: boolean;
85
85
  size: TJoyTagSizes;
86
- variant: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing";
86
+ variant: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special";
87
87
  value: string;
88
88
  selected: boolean;
89
89
  selectable: boolean;
@@ -25,7 +25,7 @@ declare const _default: import("vue").DefineComponent<{
25
25
  };
26
26
  /** Apply variant for all VJoyTag. Can be overriden by setting a variant property in specific tags entry. */
27
27
  variant: {
28
- type: PropType<"primary" | "secondary" | "important" | "inactive" | "pending" | "pricing">;
28
+ type: PropType<"primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special">;
29
29
  default: string;
30
30
  };
31
31
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -56,14 +56,14 @@ declare const _default: import("vue").DefineComponent<{
56
56
  };
57
57
  /** Apply variant for all VJoyTag. Can be overriden by setting a variant property in specific tags entry. */
58
58
  variant: {
59
- type: PropType<"primary" | "secondary" | "important" | "inactive" | "pending" | "pricing">;
59
+ type: PropType<"primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special">;
60
60
  default: string;
61
61
  };
62
62
  }>> & {
63
63
  "onUpdate:modelValue"?: ((tags: TJoyTagsListModel) => any) | undefined;
64
64
  onRemoveTag?: ((tagValue: string) => any) | undefined;
65
65
  }, {
66
- variant: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing";
66
+ variant: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special";
67
67
  selectable: boolean;
68
68
  removable: boolean;
69
69
  align: "left" | "right" | "center";
@@ -5,6 +5,7 @@ export * from './JoyBadgeLevel/JoyBadgeLevel.types';
5
5
  export * from './JoyButton/JoyButton.types';
6
6
  export * from './JoyCompanyAvatar/JoyCompanyAvatar.types';
7
7
  export * from './JoyDrawer/JoyDrawer.types';
8
+ export * from './JoyDialog/JoyDialog.types';
8
9
  export * from './JoyDropdown/JoyDropdown.types';
9
10
  export * from './JoyDropdownList/JoyDropdownList.types';
10
11
  export * from './JoyFunnel/JoyFunnel.types';