@maltjoy/core-vue 3.34.0-next → 3.34.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 maltcommunity / apps
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -29,6 +29,11 @@ declare const _default: import("vue").DefineComponent<{
29
29
  type: PropType<"eager" | "lazy">;
30
30
  default: string;
31
31
  };
32
+ /** Basic state with no information */
33
+ isEmpty: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
32
37
  }, {
33
38
  isAnonymous: import("vue").ComputedRef<boolean>;
34
39
  initials: import("vue").ComputedRef<string>;
@@ -63,6 +68,11 @@ declare const _default: import("vue").DefineComponent<{
63
68
  type: PropType<"eager" | "lazy">;
64
69
  default: string;
65
70
  };
71
+ /** Basic state with no information */
72
+ isEmpty: {
73
+ type: BooleanConstructor;
74
+ default: boolean;
75
+ };
66
76
  }>> & {
67
77
  onClick?: (() => any) | undefined;
68
78
  }, {
@@ -71,5 +81,6 @@ declare const _default: import("vue").DefineComponent<{
71
81
  loading: "eager" | "lazy";
72
82
  color: import("./JoyAvatar.types").FreelancerAvatarColors | "transparent";
73
83
  profile: "default" | "strategy";
84
+ isEmpty: boolean;
74
85
  }, {}>;
75
86
  export default _default;
@@ -1,3 +1,18 @@
1
1
  import { TPositions } from '../../types';
2
2
  export type TJoyDropdownDirections = 'up' | 'down';
3
3
  export type TJoyDropdownJustify = TPositions;
4
+ export interface TJoyDropdownOption {
5
+ id: string;
6
+ value?: string;
7
+ label: string;
8
+ href?: string;
9
+ /**
10
+ * @default false
11
+ */
12
+ disabled?: boolean;
13
+ /**
14
+ * @default false
15
+ */
16
+ checked?: boolean;
17
+ [k: string]: any;
18
+ }
@@ -1,21 +1,6 @@
1
1
  import { PropType } from 'vue';
2
- import { TJoyDropdownDirections } from './JoyDropdown.types';
2
+ import { TJoyDropdownDirections, TJoyDropdownOption } from './JoyDropdown.types';
3
3
  import { TJoyDropdownListSizes } from '../JoyDropdownList/JoyDropdownList.types';
4
- export interface Option {
5
- id: string;
6
- value?: string;
7
- label: string;
8
- href?: string;
9
- /**
10
- * @default false
11
- */
12
- disabled?: boolean;
13
- /**
14
- * @default false
15
- */
16
- checked?: boolean;
17
- [k: string]: any;
18
- }
19
4
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
20
5
  /** DOM valid selector to give to Vue3 Teleport "to" property */
21
6
  appendTo: {
@@ -52,7 +37,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
52
37
  * ```
53
38
  */
54
39
  options: {
55
- type: PropType<Option[]>;
40
+ type: PropType<TJoyDropdownOption[]>;
56
41
  default(): never[];
57
42
  };
58
43
  size: {
@@ -141,7 +126,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
141
126
  * ```
142
127
  */
143
128
  options: {
144
- type: PropType<Option[]>;
129
+ type: PropType<TJoyDropdownOption[]>;
145
130
  default(): never[];
146
131
  };
147
132
  size: {
@@ -198,7 +183,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
198
183
  width: string;
199
184
  justify: import("../../types/index.js").TPositions;
200
185
  direction: TJoyDropdownDirections;
201
- options: Option[];
186
+ options: TJoyDropdownOption[];
202
187
  modelValue: string;
203
188
  appendTo: string | import("vue").RendererElement | null | undefined;
204
189
  disableTeleport: boolean;
@@ -212,7 +197,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
212
197
  /** Free slot in order to render any kind of component. Can be handy to use it with VJoyMultiCheckbox for instance. */
213
198
  'dropdown-items'?: (() => any) | undefined;
214
199
  /** Use it to customize the innerHTML of the li item. See https://vuejs.org/guide/components/slots.html#scoped-slots */
215
- 'dropdown-item'?: ((option: Option) => any) | undefined;
200
+ 'dropdown-item'?: ((option: TJoyDropdownOption) => any) | undefined;
216
201
  /** Footer that will be injected in the VJoyDropdownList */
217
202
  'dropdown-footer'?: (() => any) | undefined;
218
203
  }> & {
@@ -223,7 +208,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
223
208
  /** Free slot in order to render any kind of component. Can be handy to use it with VJoyMultiCheckbox for instance. */
224
209
  'dropdown-items'?: (() => any) | undefined;
225
210
  /** Use it to customize the innerHTML of the li item. See https://vuejs.org/guide/components/slots.html#scoped-slots */
226
- 'dropdown-item'?: ((option: Option) => any) | undefined;
211
+ 'dropdown-item'?: ((option: TJoyDropdownOption) => any) | undefined;
227
212
  /** Footer that will be injected in the VJoyDropdownList */
228
213
  'dropdown-footer'?: (() => any) | undefined;
229
214
  }>;
@@ -5,3 +5,4 @@ export interface TJoySelectableItemOption extends TVJoySelectableItemProps {
5
5
  [k: string]: any;
6
6
  };
7
7
  }
8
+ export type TJoySelectableItemVariants = 'default' | 'ai';
@@ -1,4 +1,5 @@
1
1
  import { PropType } from 'vue';
2
+ import { TJoySelectableItemVariants } from './VJoySelectableItem.types';
2
3
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
4
  disabled: {
4
5
  type: BooleanConstructor;
@@ -40,6 +41,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
40
41
  icon: {
41
42
  type: PropType<import("@maltjoy/icons").JoyIconsId>;
42
43
  };
44
+ variant: {
45
+ type: PropType<TJoySelectableItemVariants>;
46
+ default: string;
47
+ };
43
48
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
44
49
  "update:checked": (value: string | boolean) => void;
45
50
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -83,6 +88,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
83
88
  icon: {
84
89
  type: PropType<import("@maltjoy/icons").JoyIconsId>;
85
90
  };
91
+ variant: {
92
+ type: PropType<TJoySelectableItemVariants>;
93
+ default: string;
94
+ };
86
95
  }>> & {
87
96
  "onUpdate:checked"?: ((value: string | boolean) => any) | undefined;
88
97
  }, {
@@ -91,6 +100,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
91
100
  multiple: boolean;
92
101
  required: boolean;
93
102
  invalid: boolean;
103
+ variant: TJoySelectableItemVariants;
94
104
  }, {}>, {
95
105
  default?(_: {}): any;
96
106
  default?(_: {}): any;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./style-DuBaqPqS.cjs"),y={install:e=>{typeof window<"u"&&o.createAllSnackbarsContainer(),e.directive("joy-ripple",o.vJoyRipple)}};exports.VJoyAvailability=o.VJoyAvailability;exports.VJoyAvatar=o.VJoyAvatar;exports.VJoyAvatarsList=o.VJoyAvatarsList;exports.VJoyBadge=o.VJoyBadge;exports.VJoyBadgeLevel=o.VJoyBadgeLevel;exports.VJoyBlockSkeleton=o.VJoyBlockSkeleton;exports.VJoyBottomSheet=o.VJoyBottomSheet;exports.VJoyBottomSheetTrigger=o._sfc_main;exports.VJoyButton=o.VJoyButton;exports.VJoyCheckbox=o.VJoyCheckbox;exports.VJoyCollapse=o.VJoyCollapse;exports.VJoyCollapseItem=o.VJoyCollapseItem;exports.VJoyCompanyAvatar=o.VJoyCompanyAvatar;exports.VJoyCounter=o.VJoyCounter;exports.VJoyDialog=o.VJoyDialog;exports.VJoyDialogTrigger=o._sfc_main$1;exports.VJoyDividerCta=o.VJoyDividerCta;exports.VJoyDot=o.VJoyDot;exports.VJoyDrawer=o.VJoyDrawer;exports.VJoyDrawerTrigger=o._sfc_main$2;exports.VJoyDropdown=o.VJoyDropdown;exports.VJoyDropdownList=o.JoyDropdownList;exports.VJoyDropzone=o.VJoyDropzone;exports.VJoyFilterBar=o.VJoyFilterBar;exports.VJoyFilterBarButton=o.VJoyFilterBarButton;exports.VJoyFooter=o.VJoyFooter;exports.VJoyFormError=o.VJoyFormError;exports.VJoyFormFieldSkeleton=o.VJoyFormFieldSkeleton;exports.VJoyFunnel=o.VJoyFunnel;exports.VJoyFunnelFooter=o.VJoyFunnelFooter;exports.VJoyHeader=o.VJoyHeader;exports.VJoyHighlight=o.VJoyHighlight;exports.VJoyIcon=o._sfc_main$3;exports.VJoyIndicator=o.VJoyIndicator;exports.VJoyIndicators=o.VJoyIndicators;exports.VJoyInput=o.VJoyInput;exports.VJoyLabel=o.VJoyLabel;exports.VJoyLink=o.VJoyLink;exports.VJoyMenu=o.VJoyMenu;exports.VJoyMultiCheckbox=o.VJoyMultiCheckbox;exports.VJoyPagination=o.VJoyPagination;exports.VJoyPanel=o.VJoyPanel;exports.VJoyPanelSection=o.VJoyPanelSection;exports.VJoyProductTour=o._sfc_main$4;exports.VJoyProductTourTrigger=o._sfc_main$5;exports.VJoyProgressBar=o.VJoyProgressBar;exports.VJoyRadio=o.VJoyRadio;exports.VJoyRadioGroup=o.VJoyRadioGroup;exports.VJoyRatingStars=o.VJoyRatingStars;exports.VJoyScreenLoader=o.VJoyScreenLoader;exports.VJoySelect=o.VJoySelect;exports.VJoySelectableItem=o.VJoySelectableItem;exports.VJoySelectableItemGroup=o.VJoySelectableItemGroup;exports.VJoySeparator=o.VJoySeparator;exports.VJoySnackbar=o.VJoySnackbar;exports.VJoySpinner=o.VJoySpinner;exports.VJoyStep=o.VJoyStep;exports.VJoyStepper=o.VJoyStepper;exports.VJoyTab=o.VJoyTab;exports.VJoyTabs=o.VJoyTabs;exports.VJoyTag=o.VJoyTag;exports.VJoyTagsInput=o.VJoyTagsInput;exports.VJoyTagsList=o.VJoyTagsList;exports.VJoyTemplate=o.VJoyTemplate;exports.VJoyTemplateShape=o.VJoyTemplateShape;exports.VJoyText=o.VJoyText;exports.VJoyTextarea=o.VJoyTextarea;exports.VJoyToggle=o.VJoyToggle;exports.VJoyTooltip=o.VJoyTooltip;exports.VJoyUserCard=o.VJoyUserCard;exports.VJoyWrapper=o.VJoyWrapper;exports.createAllSnackbarsContainer=o.createAllSnackbarsContainer;exports.pushVJoySnackbar=o.pushVJoySnackbar;exports.resetCount=o.resetCount;exports.vJoyRipple=o.vJoyRipple;exports.JoyVueLightPlugin=y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./style-EtseYIPT.cjs"),y={install:e=>{typeof window<"u"&&o.createAllSnackbarsContainer(),e.directive("joy-ripple",o.vJoyRipple)}};exports.VJoyAvailability=o.VJoyAvailability;exports.VJoyAvatar=o.VJoyAvatar;exports.VJoyAvatarsList=o.VJoyAvatarsList;exports.VJoyBadge=o.VJoyBadge;exports.VJoyBadgeLevel=o.VJoyBadgeLevel;exports.VJoyBlockSkeleton=o.VJoyBlockSkeleton;exports.VJoyBottomSheet=o.VJoyBottomSheet;exports.VJoyBottomSheetTrigger=o._sfc_main;exports.VJoyButton=o.VJoyButton;exports.VJoyCheckbox=o.VJoyCheckbox;exports.VJoyCollapse=o.VJoyCollapse;exports.VJoyCollapseItem=o.VJoyCollapseItem;exports.VJoyCompanyAvatar=o.VJoyCompanyAvatar;exports.VJoyCounter=o.VJoyCounter;exports.VJoyDialog=o.VJoyDialog;exports.VJoyDialogTrigger=o._sfc_main$1;exports.VJoyDividerCta=o.VJoyDividerCta;exports.VJoyDot=o.VJoyDot;exports.VJoyDrawer=o.VJoyDrawer;exports.VJoyDrawerTrigger=o._sfc_main$2;exports.VJoyDropdown=o.VJoyDropdown;exports.VJoyDropdownList=o.JoyDropdownList;exports.VJoyDropzone=o.VJoyDropzone;exports.VJoyFilterBar=o.VJoyFilterBar;exports.VJoyFilterBarButton=o.VJoyFilterBarButton;exports.VJoyFooter=o.VJoyFooter;exports.VJoyFormError=o.VJoyFormError;exports.VJoyFormFieldSkeleton=o.VJoyFormFieldSkeleton;exports.VJoyFunnel=o.VJoyFunnel;exports.VJoyFunnelFooter=o.VJoyFunnelFooter;exports.VJoyHeader=o.VJoyHeader;exports.VJoyHighlight=o.VJoyHighlight;exports.VJoyIcon=o._sfc_main$3;exports.VJoyIndicator=o.VJoyIndicator;exports.VJoyIndicators=o.VJoyIndicators;exports.VJoyInput=o.VJoyInput;exports.VJoyLabel=o.VJoyLabel;exports.VJoyLink=o.VJoyLink;exports.VJoyMenu=o.VJoyMenu;exports.VJoyMultiCheckbox=o.VJoyMultiCheckbox;exports.VJoyPagination=o.VJoyPagination;exports.VJoyPanel=o.VJoyPanel;exports.VJoyPanelSection=o.VJoyPanelSection;exports.VJoyProductTour=o._sfc_main$4;exports.VJoyProductTourTrigger=o._sfc_main$5;exports.VJoyProgressBar=o.VJoyProgressBar;exports.VJoyRadio=o.VJoyRadio;exports.VJoyRadioGroup=o.VJoyRadioGroup;exports.VJoyRatingStars=o.VJoyRatingStars;exports.VJoyScreenLoader=o.VJoyScreenLoader;exports.VJoySelect=o.VJoySelect;exports.VJoySelectableItem=o.VJoySelectableItem;exports.VJoySelectableItemGroup=o.VJoySelectableItemGroup;exports.VJoySeparator=o.VJoySeparator;exports.VJoySnackbar=o.VJoySnackbar;exports.VJoySpinner=o.VJoySpinner;exports.VJoyStep=o.VJoyStep;exports.VJoyStepper=o.VJoyStepper;exports.VJoyTab=o.VJoyTab;exports.VJoyTabs=o.VJoyTabs;exports.VJoyTag=o.VJoyTag;exports.VJoyTagsInput=o.VJoyTagsInput;exports.VJoyTagsList=o.VJoyTagsList;exports.VJoyTemplate=o.VJoyTemplate;exports.VJoyTemplateShape=o.VJoyTemplateShape;exports.VJoyText=o.VJoyText;exports.VJoyTextarea=o.VJoyTextarea;exports.VJoyToggle=o.VJoyToggle;exports.VJoyTooltip=o.VJoyTooltip;exports.VJoyUserCard=o.VJoyUserCard;exports.VJoyWrapper=o.VJoyWrapper;exports.createAllSnackbarsContainer=o.createAllSnackbarsContainer;exports.pushVJoySnackbar=o.pushVJoySnackbar;exports.resetCount=o.resetCount;exports.vJoyRipple=o.vJoyRipple;exports.JoyVueLightPlugin=y;
@@ -1,5 +1,5 @@
1
- import { ah as o, ai as s } from "./style-xj7bj8An.js";
2
- import { V as r, a as t, b as i, c as n, d as l, e as p, f as g, _ as c, g as d, h as u, i as S, j as T, k as m, l as b, m as h, n as k, o as B, p as C, q as D, r as F, s as v, J as I, t as L, u as P, v as f, w, x, y as A, z as R, A as j, B as G, C as H, D as M, E as z, F as E, G as U, H as W, I as q, K, L as N, M as O, N as Q, O as X, P as Y, Q as Z, R as _, S as $, T as aa, U as oa, W as sa, X as ea, Y as ya, Z as Ja, $ as Va, a0 as ra, a1 as ta, a2 as ia, a3 as na, a4 as la, a5 as pa, a6 as ga, a7 as ca, a8 as da, a9 as ua, aa as Sa, ab as Ta, ac as ma, ad as ba, ae as ha, af as ka, ag as Ba, aj as Ca, ak as Da } from "./style-xj7bj8An.js";
1
+ import { ah as o, ai as s } from "./style-E5fmiXIh.js";
2
+ import { V as r, a as t, b as i, c as n, d as l, e as p, f as g, _ as c, g as d, h as u, i as S, j as T, k as m, l as b, m as h, n as k, o as B, p as C, q as D, r as F, s as v, J as I, t as L, u as P, v as f, w, x, y as A, z as R, A as j, B as G, C as H, D as M, E as z, F as E, G as U, H as W, I as q, K, L as N, M as O, N as Q, O as X, P as Y, Q as Z, R as _, S as $, T as aa, U as oa, W as sa, X as ea, Y as ya, Z as Ja, $ as Va, a0 as ra, a1 as ta, a2 as ia, a3 as na, a4 as la, a5 as pa, a6 as ga, a7 as ca, a8 as da, a9 as ua, aa as Sa, ab as Ta, ac as ma, ad as ba, ae as ha, af as ka, ag as Ba, aj as Ca, ak as Da } from "./style-E5fmiXIh.js";
3
3
  const y = {
4
4
  install: (a) => {
5
5
  typeof window < "u" && o(), a.directive("joy-ripple", s);
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "3.33.0"
2
+ "version": "3.34.1"
3
3
  }
package/dist/main.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./style-DuBaqPqS.cjs"),V=Object.freeze(Object.defineProperty({__proto__:null,VJoyAvailability:o.VJoyAvailability,VJoyAvatar:o.VJoyAvatar,VJoyAvatarsList:o.VJoyAvatarsList,VJoyBadge:o.VJoyBadge,VJoyBadgeLevel:o.VJoyBadgeLevel,VJoyBlockSkeleton:o.VJoyBlockSkeleton,VJoyBottomSheet:o.VJoyBottomSheet,VJoyBottomSheetTrigger:o._sfc_main,VJoyButton:o.VJoyButton,VJoyCheckbox:o.VJoyCheckbox,VJoyCollapse:o.VJoyCollapse,VJoyCollapseItem:o.VJoyCollapseItem,VJoyCompanyAvatar:o.VJoyCompanyAvatar,VJoyCounter:o.VJoyCounter,VJoyDialog:o.VJoyDialog,VJoyDialogTrigger:o._sfc_main$1,VJoyDividerCta:o.VJoyDividerCta,VJoyDot:o.VJoyDot,VJoyDrawer:o.VJoyDrawer,VJoyDrawerTrigger:o._sfc_main$2,VJoyDropdown:o.VJoyDropdown,VJoyDropdownList:o.JoyDropdownList,VJoyDropzone:o.VJoyDropzone,VJoyFilterBar:o.VJoyFilterBar,VJoyFilterBarButton:o.VJoyFilterBarButton,VJoyFooter:o.VJoyFooter,VJoyFormError:o.VJoyFormError,VJoyFormFieldSkeleton:o.VJoyFormFieldSkeleton,VJoyFunnel:o.VJoyFunnel,VJoyFunnelFooter:o.VJoyFunnelFooter,VJoyHeader:o.VJoyHeader,VJoyHighlight:o.VJoyHighlight,VJoyIcon:o._sfc_main$3,VJoyIndicator:o.VJoyIndicator,VJoyIndicators:o.VJoyIndicators,VJoyInput:o.VJoyInput,VJoyLabel:o.VJoyLabel,VJoyLink:o.VJoyLink,VJoyMenu:o.VJoyMenu,VJoyMultiCheckbox:o.VJoyMultiCheckbox,VJoyPagination:o.VJoyPagination,VJoyPanel:o.VJoyPanel,VJoyPanelSection:o.VJoyPanelSection,VJoyProductTour:o._sfc_main$4,VJoyProductTourTrigger:o._sfc_main$5,VJoyProgressBar:o.VJoyProgressBar,VJoyRadio:o.VJoyRadio,VJoyRadioGroup:o.VJoyRadioGroup,VJoyRatingStars:o.VJoyRatingStars,VJoyScreenLoader:o.VJoyScreenLoader,VJoySelect:o.VJoySelect,VJoySelectableItem:o.VJoySelectableItem,VJoySelectableItemGroup:o.VJoySelectableItemGroup,VJoySeparator:o.VJoySeparator,VJoySnackbar:o.VJoySnackbar,VJoySpinner:o.VJoySpinner,VJoyStep:o.VJoyStep,VJoyStepper:o.VJoyStepper,VJoyTab:o.VJoyTab,VJoyTabs:o.VJoyTabs,VJoyTag:o.VJoyTag,VJoyTagsInput:o.VJoyTagsInput,VJoyTagsList:o.VJoyTagsList,VJoyTemplate:o.VJoyTemplate,VJoyTemplateShape:o.VJoyTemplateShape,VJoyText:o.VJoyText,VJoyTextarea:o.VJoyTextarea,VJoyToggle:o.VJoyToggle,VJoyTooltip:o.VJoyTooltip,VJoyUserCard:o.VJoyUserCard,VJoyWrapper:o.VJoyWrapper},Symbol.toStringTag,{value:"Module"})),a={install:e=>{Object.entries(V).forEach(([y,J])=>{e.component(y,J)}),typeof window<"u"&&o.createAllSnackbarsContainer(),e.directive("joy-ripple",o.vJoyRipple)}};exports.VJoyAvailability=o.VJoyAvailability;exports.VJoyAvatar=o.VJoyAvatar;exports.VJoyAvatarsList=o.VJoyAvatarsList;exports.VJoyBadge=o.VJoyBadge;exports.VJoyBadgeLevel=o.VJoyBadgeLevel;exports.VJoyBlockSkeleton=o.VJoyBlockSkeleton;exports.VJoyBottomSheet=o.VJoyBottomSheet;exports.VJoyBottomSheetTrigger=o._sfc_main;exports.VJoyButton=o.VJoyButton;exports.VJoyCheckbox=o.VJoyCheckbox;exports.VJoyCollapse=o.VJoyCollapse;exports.VJoyCollapseItem=o.VJoyCollapseItem;exports.VJoyCompanyAvatar=o.VJoyCompanyAvatar;exports.VJoyCounter=o.VJoyCounter;exports.VJoyDialog=o.VJoyDialog;exports.VJoyDialogTrigger=o._sfc_main$1;exports.VJoyDividerCta=o.VJoyDividerCta;exports.VJoyDot=o.VJoyDot;exports.VJoyDrawer=o.VJoyDrawer;exports.VJoyDrawerTrigger=o._sfc_main$2;exports.VJoyDropdown=o.VJoyDropdown;exports.VJoyDropdownList=o.JoyDropdownList;exports.VJoyDropzone=o.VJoyDropzone;exports.VJoyFilterBar=o.VJoyFilterBar;exports.VJoyFilterBarButton=o.VJoyFilterBarButton;exports.VJoyFooter=o.VJoyFooter;exports.VJoyFormError=o.VJoyFormError;exports.VJoyFormFieldSkeleton=o.VJoyFormFieldSkeleton;exports.VJoyFunnel=o.VJoyFunnel;exports.VJoyFunnelFooter=o.VJoyFunnelFooter;exports.VJoyHeader=o.VJoyHeader;exports.VJoyHighlight=o.VJoyHighlight;exports.VJoyIcon=o._sfc_main$3;exports.VJoyIndicator=o.VJoyIndicator;exports.VJoyIndicators=o.VJoyIndicators;exports.VJoyInput=o.VJoyInput;exports.VJoyLabel=o.VJoyLabel;exports.VJoyLink=o.VJoyLink;exports.VJoyMenu=o.VJoyMenu;exports.VJoyMultiCheckbox=o.VJoyMultiCheckbox;exports.VJoyPagination=o.VJoyPagination;exports.VJoyPanel=o.VJoyPanel;exports.VJoyPanelSection=o.VJoyPanelSection;exports.VJoyProductTour=o._sfc_main$4;exports.VJoyProductTourTrigger=o._sfc_main$5;exports.VJoyProgressBar=o.VJoyProgressBar;exports.VJoyRadio=o.VJoyRadio;exports.VJoyRadioGroup=o.VJoyRadioGroup;exports.VJoyRatingStars=o.VJoyRatingStars;exports.VJoyScreenLoader=o.VJoyScreenLoader;exports.VJoySelect=o.VJoySelect;exports.VJoySelectableItem=o.VJoySelectableItem;exports.VJoySelectableItemGroup=o.VJoySelectableItemGroup;exports.VJoySeparator=o.VJoySeparator;exports.VJoySnackbar=o.VJoySnackbar;exports.VJoySpinner=o.VJoySpinner;exports.VJoyStep=o.VJoyStep;exports.VJoyStepper=o.VJoyStepper;exports.VJoyTab=o.VJoyTab;exports.VJoyTabs=o.VJoyTabs;exports.VJoyTag=o.VJoyTag;exports.VJoyTagsInput=o.VJoyTagsInput;exports.VJoyTagsList=o.VJoyTagsList;exports.VJoyTemplate=o.VJoyTemplate;exports.VJoyTemplateShape=o.VJoyTemplateShape;exports.VJoyText=o.VJoyText;exports.VJoyTextarea=o.VJoyTextarea;exports.VJoyToggle=o.VJoyToggle;exports.VJoyTooltip=o.VJoyTooltip;exports.VJoyUserCard=o.VJoyUserCard;exports.VJoyWrapper=o.VJoyWrapper;exports.createAllSnackbarsContainer=o.createAllSnackbarsContainer;exports.pushVJoySnackbar=o.pushVJoySnackbar;exports.resetCount=o.resetCount;exports.vJoyRipple=o.vJoyRipple;exports.JoyVuePlugin=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./style-EtseYIPT.cjs"),V=Object.freeze(Object.defineProperty({__proto__:null,VJoyAvailability:o.VJoyAvailability,VJoyAvatar:o.VJoyAvatar,VJoyAvatarsList:o.VJoyAvatarsList,VJoyBadge:o.VJoyBadge,VJoyBadgeLevel:o.VJoyBadgeLevel,VJoyBlockSkeleton:o.VJoyBlockSkeleton,VJoyBottomSheet:o.VJoyBottomSheet,VJoyBottomSheetTrigger:o._sfc_main,VJoyButton:o.VJoyButton,VJoyCheckbox:o.VJoyCheckbox,VJoyCollapse:o.VJoyCollapse,VJoyCollapseItem:o.VJoyCollapseItem,VJoyCompanyAvatar:o.VJoyCompanyAvatar,VJoyCounter:o.VJoyCounter,VJoyDialog:o.VJoyDialog,VJoyDialogTrigger:o._sfc_main$1,VJoyDividerCta:o.VJoyDividerCta,VJoyDot:o.VJoyDot,VJoyDrawer:o.VJoyDrawer,VJoyDrawerTrigger:o._sfc_main$2,VJoyDropdown:o.VJoyDropdown,VJoyDropdownList:o.JoyDropdownList,VJoyDropzone:o.VJoyDropzone,VJoyFilterBar:o.VJoyFilterBar,VJoyFilterBarButton:o.VJoyFilterBarButton,VJoyFooter:o.VJoyFooter,VJoyFormError:o.VJoyFormError,VJoyFormFieldSkeleton:o.VJoyFormFieldSkeleton,VJoyFunnel:o.VJoyFunnel,VJoyFunnelFooter:o.VJoyFunnelFooter,VJoyHeader:o.VJoyHeader,VJoyHighlight:o.VJoyHighlight,VJoyIcon:o._sfc_main$3,VJoyIndicator:o.VJoyIndicator,VJoyIndicators:o.VJoyIndicators,VJoyInput:o.VJoyInput,VJoyLabel:o.VJoyLabel,VJoyLink:o.VJoyLink,VJoyMenu:o.VJoyMenu,VJoyMultiCheckbox:o.VJoyMultiCheckbox,VJoyPagination:o.VJoyPagination,VJoyPanel:o.VJoyPanel,VJoyPanelSection:o.VJoyPanelSection,VJoyProductTour:o._sfc_main$4,VJoyProductTourTrigger:o._sfc_main$5,VJoyProgressBar:o.VJoyProgressBar,VJoyRadio:o.VJoyRadio,VJoyRadioGroup:o.VJoyRadioGroup,VJoyRatingStars:o.VJoyRatingStars,VJoyScreenLoader:o.VJoyScreenLoader,VJoySelect:o.VJoySelect,VJoySelectableItem:o.VJoySelectableItem,VJoySelectableItemGroup:o.VJoySelectableItemGroup,VJoySeparator:o.VJoySeparator,VJoySnackbar:o.VJoySnackbar,VJoySpinner:o.VJoySpinner,VJoyStep:o.VJoyStep,VJoyStepper:o.VJoyStepper,VJoyTab:o.VJoyTab,VJoyTabs:o.VJoyTabs,VJoyTag:o.VJoyTag,VJoyTagsInput:o.VJoyTagsInput,VJoyTagsList:o.VJoyTagsList,VJoyTemplate:o.VJoyTemplate,VJoyTemplateShape:o.VJoyTemplateShape,VJoyText:o.VJoyText,VJoyTextarea:o.VJoyTextarea,VJoyToggle:o.VJoyToggle,VJoyTooltip:o.VJoyTooltip,VJoyUserCard:o.VJoyUserCard,VJoyWrapper:o.VJoyWrapper},Symbol.toStringTag,{value:"Module"})),a={install:e=>{Object.entries(V).forEach(([y,J])=>{e.component(y,J)}),typeof window<"u"&&o.createAllSnackbarsContainer(),e.directive("joy-ripple",o.vJoyRipple)}};exports.VJoyAvailability=o.VJoyAvailability;exports.VJoyAvatar=o.VJoyAvatar;exports.VJoyAvatarsList=o.VJoyAvatarsList;exports.VJoyBadge=o.VJoyBadge;exports.VJoyBadgeLevel=o.VJoyBadgeLevel;exports.VJoyBlockSkeleton=o.VJoyBlockSkeleton;exports.VJoyBottomSheet=o.VJoyBottomSheet;exports.VJoyBottomSheetTrigger=o._sfc_main;exports.VJoyButton=o.VJoyButton;exports.VJoyCheckbox=o.VJoyCheckbox;exports.VJoyCollapse=o.VJoyCollapse;exports.VJoyCollapseItem=o.VJoyCollapseItem;exports.VJoyCompanyAvatar=o.VJoyCompanyAvatar;exports.VJoyCounter=o.VJoyCounter;exports.VJoyDialog=o.VJoyDialog;exports.VJoyDialogTrigger=o._sfc_main$1;exports.VJoyDividerCta=o.VJoyDividerCta;exports.VJoyDot=o.VJoyDot;exports.VJoyDrawer=o.VJoyDrawer;exports.VJoyDrawerTrigger=o._sfc_main$2;exports.VJoyDropdown=o.VJoyDropdown;exports.VJoyDropdownList=o.JoyDropdownList;exports.VJoyDropzone=o.VJoyDropzone;exports.VJoyFilterBar=o.VJoyFilterBar;exports.VJoyFilterBarButton=o.VJoyFilterBarButton;exports.VJoyFooter=o.VJoyFooter;exports.VJoyFormError=o.VJoyFormError;exports.VJoyFormFieldSkeleton=o.VJoyFormFieldSkeleton;exports.VJoyFunnel=o.VJoyFunnel;exports.VJoyFunnelFooter=o.VJoyFunnelFooter;exports.VJoyHeader=o.VJoyHeader;exports.VJoyHighlight=o.VJoyHighlight;exports.VJoyIcon=o._sfc_main$3;exports.VJoyIndicator=o.VJoyIndicator;exports.VJoyIndicators=o.VJoyIndicators;exports.VJoyInput=o.VJoyInput;exports.VJoyLabel=o.VJoyLabel;exports.VJoyLink=o.VJoyLink;exports.VJoyMenu=o.VJoyMenu;exports.VJoyMultiCheckbox=o.VJoyMultiCheckbox;exports.VJoyPagination=o.VJoyPagination;exports.VJoyPanel=o.VJoyPanel;exports.VJoyPanelSection=o.VJoyPanelSection;exports.VJoyProductTour=o._sfc_main$4;exports.VJoyProductTourTrigger=o._sfc_main$5;exports.VJoyProgressBar=o.VJoyProgressBar;exports.VJoyRadio=o.VJoyRadio;exports.VJoyRadioGroup=o.VJoyRadioGroup;exports.VJoyRatingStars=o.VJoyRatingStars;exports.VJoyScreenLoader=o.VJoyScreenLoader;exports.VJoySelect=o.VJoySelect;exports.VJoySelectableItem=o.VJoySelectableItem;exports.VJoySelectableItemGroup=o.VJoySelectableItemGroup;exports.VJoySeparator=o.VJoySeparator;exports.VJoySnackbar=o.VJoySnackbar;exports.VJoySpinner=o.VJoySpinner;exports.VJoyStep=o.VJoyStep;exports.VJoyStepper=o.VJoyStepper;exports.VJoyTab=o.VJoyTab;exports.VJoyTabs=o.VJoyTabs;exports.VJoyTag=o.VJoyTag;exports.VJoyTagsInput=o.VJoyTagsInput;exports.VJoyTagsList=o.VJoyTagsList;exports.VJoyTemplate=o.VJoyTemplate;exports.VJoyTemplateShape=o.VJoyTemplateShape;exports.VJoyText=o.VJoyText;exports.VJoyTextarea=o.VJoyTextarea;exports.VJoyToggle=o.VJoyToggle;exports.VJoyTooltip=o.VJoyTooltip;exports.VJoyUserCard=o.VJoyUserCard;exports.VJoyWrapper=o.VJoyWrapper;exports.createAllSnackbarsContainer=o.createAllSnackbarsContainer;exports.pushVJoySnackbar=o.pushVJoySnackbar;exports.resetCount=o.resetCount;exports.vJoyRipple=o.vJoyRipple;exports.JoyVuePlugin=a;
package/dist/main.js CHANGED
@@ -1,5 +1,5 @@
1
- import { V as e, a as r, b as y, c as J, d as t, e as V, f as i, _ as n, g as l, h as c, i as g, j as p, k as u, l as d, m as T, n as m, o as S, p as b, q as _, r as f, s as D, J as h, t as B, u as C, v as k, w as P, x as v, y as w, z as F, A as I, B as L, C as x, D as j, E as A, F as $, G as R, H as M, I as O, K as z, L as E, M as G, N as H, O as U, P as W, Q as q, R as K, S as N, T as Q, U as X, W as Y, X as Z, Y as aa, Z as oa, $ as sa, a0 as ea, a1 as ra, a2 as ya, a3 as Ja, a4 as ta, a5 as Va, a6 as ia, a7 as na, a8 as la, a9 as ca, aa as ga, ab as pa, ac as ua, ad as da, ae as Ta, af as ma, ag as Sa, ah as ba, ai as _a } from "./style-xj7bj8An.js";
2
- import { aj as ka, ak as Pa } from "./style-xj7bj8An.js";
1
+ import { V as e, a as r, b as y, c as J, d as t, e as V, f as i, _ as n, g as l, h as c, i as g, j as p, k as u, l as d, m as T, n as m, o as S, p as b, q as _, r as f, s as D, J as h, t as B, u as C, v as k, w as P, x as v, y as w, z as F, A as I, B as L, C as x, D as j, E as A, F as $, G as R, H as M, I as O, K as z, L as E, M as G, N as H, O as U, P as W, Q as q, R as K, S as N, T as Q, U as X, W as Y, X as Z, Y as aa, Z as oa, $ as sa, a0 as ea, a1 as ra, a2 as ya, a3 as Ja, a4 as ta, a5 as Va, a6 as ia, a7 as na, a8 as la, a9 as ca, aa as ga, ab as pa, ac as ua, ad as da, ae as Ta, af as ma, ag as Sa, ah as ba, ai as _a } from "./style-E5fmiXIh.js";
2
+ import { aj as ka, ak as Pa } from "./style-E5fmiXIh.js";
3
3
  const fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4
4
  __proto__: null,
5
5
  VJoyAvailability: e,
@@ -104,7 +104,7 @@ const va = {
104
104
  }, null, 2)
105
105
  ], 10, ma));
106
106
  }
107
- }), ha = (e) => (Ye("data-v-8ff834c8"), e = e(), Ze(), e), ba = ["src", "title", "alt", "loading"], ga = {
107
+ }), ha = (e) => (Ye("data-v-7c6c11df"), e = e(), Ze(), e), ba = ["src", "title", "alt", "loading"], ga = {
108
108
  key: 0,
109
109
  class: "joy-avatar__strategy"
110
110
  }, wa = ["height"], _a = /* @__PURE__ */ ha(() => /* @__PURE__ */ b("path", {
@@ -142,6 +142,11 @@ const va = {
142
142
  loading: {
143
143
  type: String,
144
144
  default: "lazy"
145
+ },
146
+ /** Basic state with no information */
147
+ isEmpty: {
148
+ type: Boolean,
149
+ default: !1
145
150
  }
146
151
  },
147
152
  emits: ["click"],
@@ -153,8 +158,9 @@ const va = {
153
158
  "joy-avatar__link": o.link,
154
159
  "joy-avatar__placeholder": i.value,
155
160
  [`joy-avatar__${o.size}`]: !0,
156
- [`joy-avatar__${o.color}`]: !0
157
- })), i = V(() => !o.fullName && !o.photoUrl && !o.totalNumber), c = V(() => {
161
+ [`joy-avatar__${o.color}`]: !0,
162
+ "joy-avatar--empty": o.isEmpty
163
+ })), i = V(() => !o.fullName && !o.photoUrl && !o.totalNumber && !o.isEmpty), c = V(() => {
158
164
  function u(p) {
159
165
  return p.replace(/[';,:()]/g, "").charAt(0);
160
166
  }
@@ -211,7 +217,7 @@ const va = {
211
217
  ])) : $("", !0)
212
218
  ], 2));
213
219
  }
214
- }), $a = /* @__PURE__ */ F(ka, [["__scopeId", "data-v-8ff834c8"]]), ja = /* @__PURE__ */ A({
220
+ }), $a = /* @__PURE__ */ F(ka, [["__scopeId", "data-v-7c6c11df"]]), ja = /* @__PURE__ */ A({
215
221
  __name: "VJoyAvatarsList",
216
222
  props: {
217
223
  /** Renders a compact list of avatars */
@@ -3342,7 +3348,7 @@ const Al = /* @__PURE__ */ A({
3342
3348
  _: 3
3343
3349
  }, 512));
3344
3350
  }
3345
- }), Cc = /* @__PURE__ */ F(ur, [["__scopeId", "data-v-a152eb12"]]), cr = { class: "joy-dropzone__icon-wrapper" }, dr = /* @__PURE__ */ A({
3351
+ }), Cc = /* @__PURE__ */ F(ur, [["__scopeId", "data-v-3b33b526"]]), cr = { class: "joy-dropzone__icon-wrapper" }, dr = /* @__PURE__ */ A({
3346
3352
  __name: "VJoyDropzoneIcon",
3347
3353
  props: {
3348
3354
  name: { type: String, required: !0 }
@@ -6394,6 +6400,10 @@ const ps = () => {
6394
6400
  subLabel: { type: String },
6395
6401
  icon: {
6396
6402
  type: String
6403
+ },
6404
+ variant: {
6405
+ type: String,
6406
+ default: "default"
6397
6407
  }
6398
6408
  },
6399
6409
  emits: ["update:checked"],
@@ -6451,6 +6461,7 @@ const ps = () => {
6451
6461
  for: e.id,
6452
6462
  class: I([
6453
6463
  "joy-selectable-item",
6464
+ [`joy-selectable-item--${e.variant}`],
6454
6465
  {
6455
6466
  "joy-selectable-item--disabled": e.disabled,
6456
6467
  "joy-selectable-item--checked": e.checked,
@@ -6497,7 +6508,7 @@ const ps = () => {
6497
6508
  }, 8, ["for", "class", "onClick"]))
6498
6509
  ], 10, Ds));
6499
6510
  }
6500
- }), qs = /* @__PURE__ */ F(Js, [["__scopeId", "data-v-63935f26"]]), Hs = ["id"], Ws = /* @__PURE__ */ A({
6511
+ }), qs = /* @__PURE__ */ F(Js, [["__scopeId", "data-v-75192ab4"]]), Hs = ["id"], Ws = /* @__PURE__ */ A({
6501
6512
  __name: "VJoySelectableItemGroup",
6502
6513
  props: {
6503
6514
  options: {
@@ -6581,6 +6592,7 @@ const ps = () => {
6581
6592
  disabled: i.disabled,
6582
6593
  value: i.value,
6583
6594
  multiple: e.multiple,
6595
+ variant: i.variant,
6584
6596
  checked: o(i),
6585
6597
  "onUpdate:checked": (c) => r(i.value, c)
6586
6598
  }), Lt({
@@ -6598,11 +6610,11 @@ const ps = () => {
6598
6610
  ]),
6599
6611
  key: "0"
6600
6612
  } : void 0
6601
- ]), 1040, ["id", "name", "disabled", "value", "multiple", "checked", "onUpdate:checked"]))), 128))
6613
+ ]), 1040, ["id", "name", "disabled", "value", "multiple", "variant", "checked", "onUpdate:checked"]))), 128))
6602
6614
  ], 2)
6603
6615
  ], 8, Hs));
6604
6616
  }
6605
- }), Yc = /* @__PURE__ */ F(Ws, [["__scopeId", "data-v-0851108e"]]), Us = /* @__PURE__ */ A({
6617
+ }), Yc = /* @__PURE__ */ F(Ws, [["__scopeId", "data-v-9c23de38"]]), Us = /* @__PURE__ */ A({
6606
6618
  __name: "VJoySeparator",
6607
6619
  props: {
6608
6620
  /** Main text to apply in the central area */