@maltjoy/core-vue 3.24.0 → 3.25.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.
@@ -1,3 +1,5 @@
1
1
  import { LEVELS } from '../../types';
2
2
  export type TJoyHighlightLevels = (typeof LEVELS)[number];
3
3
  export declare const HIGHLIGHT_LEVELS: ("neutral" | "success" | "info" | "warning" | "error")[];
4
+ export type TJoyHighlightVariants = 'ai' | 'default';
5
+ export declare const HIGHLIGHT_VARIANTS: string[];
@@ -1,4 +1,5 @@
1
1
  import { PropType } from 'vue';
2
+ import { TJoyHighlightVariants } from './JoyHighlight.types';
2
3
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
4
  accent: {
4
5
  type: BooleanConstructor;
@@ -16,6 +17,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
16
17
  default: string;
17
18
  validator(level: "neutral" | "success" | "info" | "warning" | "error"): boolean;
18
19
  };
20
+ /** Please note that 'default' variant has no effect. This property is meant to completely override "level" prop style */
21
+ variant: {
22
+ type: PropType<TJoyHighlightVariants>;
23
+ default: string;
24
+ };
19
25
  }, {
20
26
  getRelevantIcon: import("vue").ComputedRef<import("@maltjoy/icons").JoyIconsId>;
21
27
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -35,11 +41,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
35
41
  default: string;
36
42
  validator(level: "neutral" | "success" | "info" | "warning" | "error"): boolean;
37
43
  };
44
+ /** Please note that 'default' variant has no effect. This property is meant to completely override "level" prop style */
45
+ variant: {
46
+ type: PropType<TJoyHighlightVariants>;
47
+ default: string;
48
+ };
38
49
  }>>, {
50
+ variant: TJoyHighlightVariants;
39
51
  level: "neutral" | "success" | "info" | "warning" | "error";
40
52
  accent: boolean;
41
53
  displayIcon: boolean;
42
54
  }, {}>, {
55
+ "highlight-decorator"?(_: {}): any;
43
56
  "highlight-title"?(_: {}): any;
44
57
  default?(_: {}): any;
45
58
  }>;
@@ -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", "special", "primary", "secondary"];
3
+ export declare const TAG_VARIANTS: readonly ["important", "inactive", "pending", "pricing", "special", "primary", "secondary", "ai-primary", "ai-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[];
@@ -35,7 +35,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
35
35
  }, {
36
36
  link: boolean;
37
37
  size: TJoyTagSizes;
38
- variant: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special";
38
+ variant: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special" | "ai-primary" | "ai-secondary";
39
39
  value: string | number;
40
40
  draggable: boolean;
41
41
  removable: boolean;
@@ -4,7 +4,7 @@ import type { TJoyTagSizes } from '../JoyTag/JoyTag.types';
4
4
  declare const _default: <T extends string>(__VLS_props: {
5
5
  size?: TJoyTagSizes | undefined;
6
6
  name?: string | undefined;
7
- variant?: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special" | undefined;
7
+ variant?: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special" | "ai-primary" | "ai-secondary" | undefined;
8
8
  invalid?: boolean | undefined;
9
9
  modelValue?: T[] | undefined;
10
10
  "onUpdate:modelValue"?: ((values: T[]) => any) | undefined;
@@ -32,7 +32,7 @@ declare const _default: <T extends string>(__VLS_props: {
32
32
  props: {
33
33
  size?: TJoyTagSizes | undefined;
34
34
  name?: string | undefined;
35
- variant?: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special" | undefined;
35
+ variant?: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special" | "ai-primary" | "ai-secondary" | undefined;
36
36
  invalid?: boolean | undefined;
37
37
  modelValue?: T[] | undefined;
38
38
  "onUpdate:modelValue"?: ((values: T[]) => any) | undefined;
@@ -64,7 +64,7 @@ declare const _default: <T extends string>(__VLS_props: {
64
64
  props: {
65
65
  size?: TJoyTagSizes | undefined;
66
66
  name?: string | undefined;
67
- variant?: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special" | undefined;
67
+ variant?: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special" | "ai-primary" | "ai-secondary" | undefined;
68
68
  invalid?: boolean | undefined;
69
69
  modelValue?: T[] | undefined;
70
70
  "onUpdate:modelValue"?: ((values: T[]) => any) | undefined;
@@ -26,7 +26,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
26
26
  };
27
27
  /** Apply variant for all VJoyTag. Can be overriden by setting a variant property in specific tags entry. */
28
28
  variant: {
29
- type: PropType<"primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special">;
29
+ type: PropType<"primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special" | "ai-primary" | "ai-secondary">;
30
30
  default: string;
31
31
  };
32
32
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -57,14 +57,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
57
57
  };
58
58
  /** Apply variant for all VJoyTag. Can be overriden by setting a variant property in specific tags entry. */
59
59
  variant: {
60
- type: PropType<"primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special">;
60
+ type: PropType<"primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special" | "ai-primary" | "ai-secondary">;
61
61
  default: string;
62
62
  };
63
63
  }>> & {
64
64
  "onUpdate:modelValue"?: ((tags: TJoyTagsListModel) => any) | undefined;
65
65
  onRemoveTag?: ((tagValue: string | number | undefined) => any) | undefined;
66
66
  }, {
67
- variant: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special";
67
+ variant: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special" | "ai-primary" | "ai-secondary";
68
68
  align: "left" | "right" | "center";
69
69
  removable: boolean;
70
70
  selectable: boolean;
@@ -76,7 +76,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
76
76
  removable: boolean;
77
77
  link?: boolean | undefined;
78
78
  size?: import("../JoyTag/JoyTag.types").TJoyTagSizes | undefined;
79
- variant?: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special" | undefined;
79
+ variant?: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special" | "ai-primary" | "ai-secondary" | undefined;
80
80
  value?: string | number | undefined;
81
81
  draggable?: boolean | undefined;
82
82
  key?: string | number | symbol | undefined;