@indielayer/ui 1.8.4 → 1.9.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.
Files changed (119) hide show
  1. package/docs/pages/component/select/usage.vue +17 -5
  2. package/docs/pages/component/table/index.vue +7 -0
  3. package/docs/pages/component/table/usage.vue +5 -1
  4. package/docs/pages/component/table/virtual.vue +53 -0
  5. package/docs/pages/typography.vue +14 -12
  6. package/lib/components/accordion/Accordion.vue.d.ts +4 -4
  7. package/lib/components/accordion/AccordionItem.vue.d.ts +6 -6
  8. package/lib/components/accordion/AccordionItem.vue.js +51 -51
  9. package/lib/components/alert/Alert.vue.d.ts +8 -8
  10. package/lib/components/alert/Alert.vue2.js +20 -20
  11. package/lib/components/avatar/Avatar.vue.d.ts +4 -4
  12. package/lib/components/badge/Badge.vue.d.ts +4 -4
  13. package/lib/components/breadcrumbs/Breadcrumbs.vue.d.ts +4 -4
  14. package/lib/components/button/Button.vue.d.ts +5 -5
  15. package/lib/components/button/ButtonGroup.vue.d.ts +4 -4
  16. package/lib/components/card/Card.vue.d.ts +4 -4
  17. package/lib/components/carousel/Carousel.vue.d.ts +7 -7
  18. package/lib/components/carousel/CarouselSlide.vue.d.ts +4 -4
  19. package/lib/components/checkbox/Checkbox.vue.d.ts +6 -6
  20. package/lib/components/checkbox/Checkbox.vue2.js +60 -60
  21. package/lib/components/container/Container.vue.d.ts +4 -4
  22. package/lib/components/datepicker/Datepicker.vue.d.ts +6 -6
  23. package/lib/components/datepicker/Datepicker.vue.js +3 -3
  24. package/lib/components/divider/Divider.vue.d.ts +4 -4
  25. package/lib/components/drawer/Drawer.vue.d.ts +6 -6
  26. package/lib/components/drawer/Drawer.vue.js +1 -1
  27. package/lib/components/form/Form.vue.d.ts +5 -5
  28. package/lib/components/formGroup/FormGroup.vue.d.ts +6 -6
  29. package/lib/components/formGroup/FormGroup.vue.js +7 -7
  30. package/lib/components/icon/Icon.vue.d.ts +4 -4
  31. package/lib/components/image/Image.vue.d.ts +3 -3
  32. package/lib/components/input/Input.vue.d.ts +6 -6
  33. package/lib/components/inputFooter/InputFooter.vue.d.ts +3 -3
  34. package/lib/components/label/Label.vue.d.ts +4 -4
  35. package/lib/components/link/Link.vue.d.ts +4 -4
  36. package/lib/components/loader/Loader.vue.d.ts +4 -4
  37. package/lib/components/menu/Menu.vue.d.ts +5 -5
  38. package/lib/components/menu/MenuItem.vue.d.ts +5 -5
  39. package/lib/components/menu/MenuItem.vue2.js +1 -1
  40. package/lib/components/modal/Modal.vue.d.ts +6 -6
  41. package/lib/components/modal/Modal.vue.js +1 -1
  42. package/lib/components/notifications/Notifications.vue.d.ts +5 -5
  43. package/lib/components/pagination/Pagination.vue.d.ts +5 -5
  44. package/lib/components/pagination/Pagination.vue.js +41 -41
  45. package/lib/components/pagination/PaginationItem.vue.d.ts +6 -6
  46. package/lib/components/popover/Popover.vue.d.ts +8 -8
  47. package/lib/components/popover/Popover.vue.js +1 -1
  48. package/lib/components/popover/PopoverContainer.vue.d.ts +4 -4
  49. package/lib/components/progress/Progress.vue.d.ts +4 -4
  50. package/lib/components/qrCode/QrCode.vue.d.ts +4 -4
  51. package/lib/components/radio/Radio.vue.d.ts +6 -6
  52. package/lib/components/radio/Radio.vue2.js +63 -63
  53. package/lib/components/scroll/Scroll.vue.d.ts +6 -6
  54. package/lib/components/scroll/Scroll.vue2.js +1 -1
  55. package/lib/components/select/Select.vue.d.ts +42 -6
  56. package/lib/components/select/Select.vue.js +224 -201
  57. package/lib/components/select/theme/Select.base.theme.js +1 -1
  58. package/lib/components/skeleton/Skeleton.vue.d.ts +4 -4
  59. package/lib/components/skeleton/Skeleton.vue.js +17 -17
  60. package/lib/components/slider/Slider.vue.d.ts +6 -6
  61. package/lib/components/spacer/Spacer.d.ts +1 -1
  62. package/lib/components/spinner/Spinner.vue.d.ts +4 -4
  63. package/lib/components/stepper/Stepper.vue.d.ts +5 -5
  64. package/lib/components/tab/Tab.vue.d.ts +5 -5
  65. package/lib/components/tab/Tab.vue.js +1 -1
  66. package/lib/components/tab/TabGroup.vue.d.ts +5 -5
  67. package/lib/components/tab/TabGroup.vue.js +2 -2
  68. package/lib/components/table/Table.vue.d.ts +119 -24
  69. package/lib/components/table/Table.vue.js +226 -188
  70. package/lib/components/table/TableBody.d.ts +1 -1
  71. package/lib/components/table/TableCell.vue.d.ts +4 -4
  72. package/lib/components/table/TableHead.vue.d.ts +10 -2
  73. package/lib/components/table/TableHead.vue.js +16 -13
  74. package/lib/components/table/TableHeader.vue.d.ts +4 -8
  75. package/lib/components/table/TableHeader.vue.js +40 -41
  76. package/lib/components/table/TableRow.vue.d.ts +8 -4
  77. package/lib/components/table/TableRow.vue.js +3 -2
  78. package/lib/components/table/theme/TableHead.base.theme.js +7 -4
  79. package/lib/components/table/theme/TableHead.carbon.theme.js +7 -4
  80. package/lib/components/table/theme/TableHeader.base.theme.js +3 -3
  81. package/lib/components/table/theme/TableHeader.carbon.theme.js +1 -1
  82. package/lib/components/table/theme/TableRow.base.theme.js +1 -1
  83. package/lib/components/tag/Tag.vue.d.ts +5 -5
  84. package/lib/components/textarea/Textarea.vue.d.ts +6 -6
  85. package/lib/components/textarea/Textarea.vue.js +6 -6
  86. package/lib/components/themeProvider/ThemeProvider.vue.d.ts +3 -3
  87. package/lib/components/toggle/Toggle.vue.d.ts +6 -6
  88. package/lib/components/tooltip/ToggleTip.vue.d.ts +3 -3
  89. package/lib/components/tooltip/Tooltip.vue.d.ts +4 -4
  90. package/lib/components/tooltip/Tooltip.vue.js +1 -1
  91. package/lib/composables/index.d.ts +1 -0
  92. package/lib/composables/useInputtable.d.ts +26 -6
  93. package/lib/composables/useVirtualList.d.ts +48 -0
  94. package/lib/composables/useVirtualList.js +123 -0
  95. package/lib/index.js +35 -33
  96. package/lib/index.umd.js +4 -4
  97. package/lib/node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js +412 -0
  98. package/lib/version.d.ts +1 -1
  99. package/lib/version.js +1 -1
  100. package/package.json +3 -3
  101. package/src/components/select/Select.vue +56 -26
  102. package/src/components/select/theme/Select.base.theme.ts +1 -1
  103. package/src/components/table/Table.vue +158 -114
  104. package/src/components/table/TableHead.vue +6 -2
  105. package/src/components/table/TableHeader.vue +0 -1
  106. package/src/components/table/TableRow.vue +1 -0
  107. package/src/components/table/theme/TableHead.base.theme.ts +7 -1
  108. package/src/components/table/theme/TableHead.carbon.theme.ts +7 -1
  109. package/src/components/table/theme/TableHeader.base.theme.ts +0 -2
  110. package/src/components/table/theme/TableHeader.carbon.theme.ts +0 -2
  111. package/src/components/table/theme/TableRow.base.theme.ts +4 -0
  112. package/src/composables/index.ts +1 -0
  113. package/src/composables/useVirtualList.ts +286 -0
  114. package/src/version.ts +1 -1
  115. package/lib/node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.3.9_typescript@5.2.2_/node_modules/@vueuse/core/index.js +0 -379
  116. /package/lib/node_modules/.pnpm/{@vuepic_vue-datepicker@8.3.2_vue@3.3.9_typescript@5.2.2_ → @vuepic_vue-datepicker@8.3.2_vue@3.5.10_typescript@5.2.2_}/node_modules/@vuepic/vue-datepicker/dist/main.css.js +0 -0
  117. /package/lib/node_modules/.pnpm/{@vuepic_vue-datepicker@8.3.2_vue@3.3.9_typescript@5.2.2_ → @vuepic_vue-datepicker@8.3.2_vue@3.5.10_typescript@5.2.2_}/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +0 -0
  118. /package/lib/node_modules/.pnpm/{@vueuse_shared@10.2.0_vue@3.3.9_typescript@5.2.2_ → @vueuse_shared@10.2.0_vue@3.5.10_typescript@5.2.2_}/node_modules/@vueuse/shared/index.js +0 -0
  119. /package/lib/node_modules/.pnpm/{floating-vue@5.2.2_@nuxt_kit@3.10.1_rollup@3.29.4__vue@3.3.9_typescript@5.2.2_ → floating-vue@5.2.2_@nuxt_kit@3.10.1_rollup@3.29.4__vue@3.5.10_typescript@5.2.2_}/node_modules/floating-vue/dist/floating-vue.js +0 -0
@@ -27,7 +27,7 @@ export type BreadcrumbsProps = ExtractPublicPropTypes<typeof breadcrumbsProps>;
27
27
  type InternalClasses = 'wrapper' | 'item' | 'separator';
28
28
  export interface BreadcrumbsTheme extends ThemeComponent<BreadcrumbsProps, InternalClasses> {
29
29
  }
30
- declare const _default: import("vue").DefineComponent<{
30
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
31
31
  items: PropType<BreadcrumbsItem[]>;
32
32
  separator: {
33
33
  type: StringConstructor;
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
40
40
  readonly type: StringConstructor;
41
41
  readonly default: string | undefined;
42
42
  };
43
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
43
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
44
44
  items: PropType<BreadcrumbsItem[]>;
45
45
  separator: {
46
46
  type: StringConstructor;
@@ -53,10 +53,10 @@ declare const _default: import("vue").DefineComponent<{
53
53
  readonly type: StringConstructor;
54
54
  readonly default: string | undefined;
55
55
  };
56
- }>>, {
56
+ }>> & Readonly<{}>, {
57
57
  color: string;
58
58
  separator: string;
59
59
  shadow: boolean;
60
60
  underline: boolean;
61
- }, {}>;
61
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
62
62
  export default _default;
@@ -44,7 +44,7 @@ type InternalExtraData = {
44
44
  };
45
45
  export interface ButtonTheme extends ThemeComponent<ButtonProps, InternalClasses, InternalExtraData> {
46
46
  }
47
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
47
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
48
48
  tag: {
49
49
  type: StringConstructor;
50
50
  default: string;
@@ -80,10 +80,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
80
80
  readonly default: "md";
81
81
  readonly validator: (value: string) => boolean;
82
82
  };
83
- }, {
83
+ }>, {
84
84
  focus: () => void | undefined;
85
85
  blur: () => void | undefined;
86
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
86
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
87
87
  tag: {
88
88
  type: StringConstructor;
89
89
  default: string;
@@ -119,7 +119,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
119
119
  readonly default: "md";
120
120
  readonly validator: (value: string) => boolean;
121
121
  };
122
- }>>, {
122
+ }>> & Readonly<{}>, {
123
123
  disabled: boolean;
124
124
  flat: boolean;
125
125
  type: string;
@@ -134,7 +134,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
134
134
  block: boolean;
135
135
  loading: boolean;
136
136
  loadingStatus: import("../loader/Loader.vue").LoaderStatus;
137
- }, {}>, {
137
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
138
138
  default?(_: {}): any;
139
139
  }>;
140
140
  export default _default;
@@ -38,7 +38,7 @@ type InternalExtraData = {
38
38
  };
39
39
  export interface ButtonGroupTheme extends ThemeComponent<ButtonGroupProps, InternalClasses, InternalExtraData> {
40
40
  }
41
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
41
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
42
42
  tag: {
43
43
  type: StringConstructor;
44
44
  default: string;
@@ -64,7 +64,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
64
64
  readonly default: "md";
65
65
  readonly validator: (value: string) => boolean;
66
66
  };
67
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
67
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
68
68
  tag: {
69
69
  type: StringConstructor;
70
70
  default: string;
@@ -90,7 +90,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
90
90
  readonly default: "md";
91
91
  readonly validator: (value: string) => boolean;
92
92
  };
93
- }>>, {
93
+ }>> & Readonly<{}>, {
94
94
  disabled: boolean;
95
95
  flat: boolean;
96
96
  tag: string;
@@ -102,7 +102,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
102
102
  ghost: boolean;
103
103
  loading: boolean;
104
104
  loadingStatus: import("../loader/Loader.vue").LoaderStatus;
105
- }, {}>, {
105
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
106
106
  default?(_: {}): any;
107
107
  }>;
108
108
  export default _default;
@@ -11,22 +11,22 @@ export type CardProps = ExtractPublicPropTypes<typeof cardProps>;
11
11
  type InternalClasses = 'wrapper';
12
12
  export interface CardTheme extends ThemeComponent<CardProps, InternalClasses> {
13
13
  }
14
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
14
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
15
15
  tag: {
16
16
  type: StringConstructor;
17
17
  default: string;
18
18
  };
19
19
  flat: BooleanConstructor;
20
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
20
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
21
21
  tag: {
22
22
  type: StringConstructor;
23
23
  default: string;
24
24
  };
25
25
  flat: BooleanConstructor;
26
- }>>, {
26
+ }>> & Readonly<{}>, {
27
27
  flat: boolean;
28
28
  tag: string;
29
- }, {}>, {
29
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
30
30
  default?(_: {}): any;
31
31
  }>;
32
32
  export default _default;
@@ -26,7 +26,7 @@ type InternalData = {
26
26
  };
27
27
  export interface CarouselTheme extends ThemeComponent<CarouselProps, InternalClasses, InternalData> {
28
28
  }
29
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
29
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
30
30
  autoplay: BooleanConstructor;
31
31
  delay: {
32
32
  type: NumberConstructor;
@@ -41,11 +41,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
41
41
  default: string;
42
42
  };
43
43
  classDots: (ArrayConstructor | StringConstructor)[];
44
- }, {
44
+ }>, {
45
45
  to: (index: number) => void;
46
46
  next: () => void;
47
47
  prev: () => void;
48
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update"[], "update", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
48
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update"[], "update", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
49
49
  autoplay: BooleanConstructor;
50
50
  delay: {
51
51
  type: NumberConstructor;
@@ -60,14 +60,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
60
60
  default: string;
61
61
  };
62
62
  classDots: (ArrayConstructor | StringConstructor)[];
63
- }>> & {
63
+ }>> & Readonly<{
64
64
  onUpdate?: ((...args: any[]) => any) | undefined;
65
- }, {
65
+ }>, {
66
+ effect: "slide";
66
67
  autoplay: boolean;
67
68
  delay: number;
68
69
  showDots: boolean;
69
- effect: "slide";
70
- }, {}>, {
70
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
71
71
  default?(_: {
72
72
  to: (index: number) => void;
73
73
  next: () => void;
@@ -10,19 +10,19 @@ export type CarouselSlideProps = ExtractPublicPropTypes<typeof carouselSlideProp
10
10
  type InternalClasses = 'wrapper';
11
11
  export interface CarouselSlideTheme extends ThemeComponent<CarouselSlideProps, InternalClasses> {
12
12
  }
13
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
13
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
14
14
  tag: {
15
15
  type: StringConstructor;
16
16
  default: string;
17
17
  };
18
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
19
19
  tag: {
20
20
  type: StringConstructor;
21
21
  default: string;
22
22
  };
23
- }>>, {
23
+ }>> & Readonly<{}>, {
24
24
  tag: string;
25
- }, {}>, {
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
26
26
  default?(_: {}): any;
27
27
  }>;
28
28
  export default _default;
@@ -52,7 +52,7 @@ type InternalExtraData = {
52
52
  };
53
53
  export interface CheckboxTheme extends ThemeComponent<CheckboxProps, InternalClasses, InternalExtraData> {
54
54
  }
55
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
55
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
56
56
  value: (StringConstructor | NumberConstructor)[];
57
57
  indeterminate: BooleanConstructor;
58
58
  glow: BooleanConstructor;
@@ -94,14 +94,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
94
94
  readonly default: "md";
95
95
  readonly validator: (value: string) => boolean;
96
96
  };
97
- }, {
97
+ }>, {
98
98
  focus: () => void | undefined;
99
99
  blur: () => void | undefined;
100
100
  toggle: () => void;
101
101
  reset: () => void;
102
102
  validate: (val?: any) => boolean;
103
103
  setError: (val: string) => void;
104
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
104
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
105
105
  value: (StringConstructor | NumberConstructor)[];
106
106
  indeterminate: BooleanConstructor;
107
107
  glow: BooleanConstructor;
@@ -143,9 +143,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
143
143
  readonly default: "md";
144
144
  readonly validator: (value: string) => boolean;
145
145
  };
146
- }>> & {
146
+ }>> & Readonly<{
147
147
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
148
- }, {
148
+ }>, {
149
149
  disabled: boolean;
150
150
  glow: boolean;
151
151
  color: string;
@@ -160,7 +160,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
160
160
  hideFooter: boolean;
161
161
  rules: unknown[];
162
162
  skipFormRegistry: boolean;
163
- }, {}>, {
163
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
164
164
  icon?(_: {}): any;
165
165
  default?(_: {}): any;
166
166
  }>;
@@ -1,142 +1,142 @@
1
- import { defineComponent as P, ref as w, watch as m, unref as a, openBlock as i, createElementBlock as p, normalizeStyle as R, normalizeClass as u, createElementVNode as d, withKeys as T, withModifiers as H, withDirectives as O, mergeProps as U, toHandlers as X, vModelCheckbox as j, createBlock as V, renderSlot as C, toDisplayString as J, createCommentVNode as Q } from "vue";
2
- import { useTheme as W } from "../../composables/useTheme.js";
1
+ import { defineComponent as R, ref as w, watch as m, unref as o, openBlock as i, createElementBlock as p, normalizeStyle as T, normalizeClass as u, createElementVNode as d, withKeys as H, withModifiers as O, withDirectives as U, mergeProps as X, toHandlers as j, vModelCheckbox as J, createBlock as V, renderSlot as C, toDisplayString as Q, createCommentVNode as W } from "vue";
2
+ import { useTheme as Y } from "../../composables/useTheme.js";
3
3
  import { useCommon as I } from "../../composables/useCommon.js";
4
- import { useColors as Y } from "../../composables/useColors.js";
4
+ import { useColors as Z } from "../../composables/useColors.js";
5
5
  import { useInteractive as z } from "../../composables/useInteractive.js";
6
6
  import { useInputtable as f } from "../../composables/useInputtable.js";
7
- import Z from "../spinner/Spinner.vue.js";
8
- import x from "../inputFooter/InputFooter.vue.js";
7
+ import x from "../spinner/Spinner.vue.js";
8
+ import _ from "../inputFooter/InputFooter.vue.js";
9
9
  const ee = ["onKeypress"], se = ["id", "name", "aria-checked", "aria-disabled", "disabled", "required"], le = {
10
10
  key: 1,
11
11
  name: "check-icon",
12
12
  class: "w-2/3 h-[2px] bg-white dark:bg-secondary-900"
13
- }, oe = /* @__PURE__ */ d("path", { d: "M0 11l2-2 5 5L18 3l2 2L7 18z" }, null, -1), ae = [
14
- oe
15
- ], re = ["textContent"], ie = {
13
+ }, ae = ["textContent"], oe = {
16
14
  ...I.props(),
17
- ...Y.props("primary"),
15
+ ...Z.props("primary"),
18
16
  ...z.props(),
19
17
  ...f.props(),
20
18
  value: [String, Number],
21
19
  indeterminate: Boolean,
22
20
  glow: Boolean
23
- }, te = {
21
+ }, re = {
24
22
  name: "XCheckbox",
25
23
  validators: {
26
24
  ...I.validators()
27
25
  }
28
- }, he = /* @__PURE__ */ P({
29
- ...te,
30
- props: ie,
26
+ }, fe = /* @__PURE__ */ R({
27
+ ...re,
28
+ props: oe,
31
29
  emits: f.emits(!1),
32
30
  setup(A, { expose: B, emit: $ }) {
33
- const s = A, v = $, h = w(null), l = w(!1);
34
- function b() {
35
- l.value = !l.value;
31
+ const l = A, v = $, b = w(null), a = w(!1);
32
+ function y() {
33
+ a.value = !a.value;
36
34
  }
37
- const { focus: y, blur: F } = z(h), {
35
+ const { focus: h, blur: F } = z(b), {
38
36
  errorInternal: G,
39
37
  hideFooterInternal: N,
40
38
  isInsideForm: S,
41
39
  isInsideFormGroup: c,
42
- isFirstValidation: _,
40
+ isFirstValidation: q,
43
41
  formGroup: r,
44
- reset: q,
42
+ reset: E,
45
43
  validate: k,
46
- setError: E
47
- } = f(s, { focus: y, emit: v, withListeners: !1 });
44
+ setError: K
45
+ } = f(l, { focus: h, emit: v, withListeners: !1 });
48
46
  c ? (m(() => r.value, () => {
49
- const e = a(r.value);
50
- e && Array.isArray(e) && e.includes(s.value) ? l.value = !0 : l.value = !1;
51
- }, { immediate: !0, deep: !0 }), m(() => l.value, (e) => {
52
- if (!s.value)
47
+ const e = o(r.value);
48
+ e && Array.isArray(e) && e.includes(l.value) ? a.value = !0 : a.value = !1;
49
+ }, { immediate: !0, deep: !0 }), m(() => a.value, (e) => {
50
+ if (!l.value)
53
51
  return;
54
- const o = a(r.value);
52
+ const s = o(r.value);
55
53
  if (e)
56
- if (o && Array.isArray(o)) {
57
- if (!o.includes(s.value)) {
58
- const n = [...o, s.value];
54
+ if (s && Array.isArray(s)) {
55
+ if (!s.includes(l.value)) {
56
+ const n = [...s, l.value];
59
57
  r.setValue(n);
60
58
  }
61
59
  } else
62
- r.setValue([s.value]);
63
- else if (o && Array.isArray(o) && o.includes(s.value)) {
64
- const n = o.findIndex((D) => D === s.value), g = [...o];
60
+ r.setValue([l.value]);
61
+ else if (s && Array.isArray(s) && s.includes(l.value)) {
62
+ const n = s.findIndex((P) => P === l.value), g = [...s];
65
63
  g.splice(n, 1), r.setValue(g);
66
64
  }
67
- })) : (m(() => s.modelValue, (e) => {
68
- l.value = !!e;
69
- }, { immediate: !0 }), m(() => l.value, (e) => {
65
+ })) : (m(() => l.modelValue, (e) => {
66
+ a.value = !!e;
67
+ }, { immediate: !0 }), m(() => a.value, (e) => {
70
68
  v("update:modelValue", e);
71
69
  }));
72
- const K = {
70
+ const L = {
73
71
  input: () => {
74
72
  c || setTimeout(() => {
75
- s.validateOnInput && !_.value && k(s.modelValue);
73
+ l.validateOnInput && !q.value && k(l.modelValue);
76
74
  }, 0);
77
75
  }
78
- }, { styles: L, classes: t, className: M } = W("Checkbox", {}, s, { checked: l, isInsideForm: S, isInsideFormGroup: c });
79
- return B({ focus: y, blur: F, toggle: b, reset: q, validate: k, setError: E }), (e, o) => (i(), p("label", {
80
- style: R(a(L)),
76
+ }, { styles: M, classes: t, className: D } = Y("Checkbox", {}, l, { checked: a, isInsideForm: S, isInsideFormGroup: c });
77
+ return B({ focus: h, blur: F, toggle: y, reset: E, validate: k, setError: K }), (e, s) => (i(), p("label", {
78
+ style: T(o(M)),
81
79
  class: u([
82
- a(M),
83
- a(t).wrapper
80
+ o(D),
81
+ o(t).wrapper
84
82
  ])
85
83
  }, [
86
84
  d("div", {
87
85
  ref_key: "elRef",
88
- ref: h,
89
- class: u(a(t).content),
86
+ ref: b,
87
+ class: u(o(t).content),
90
88
  tabindex: "0",
91
- onKeypress: T(H(b, ["prevent", "stop"]), ["space"])
89
+ onKeypress: H(O(y, ["prevent", "stop"]), ["space"])
92
90
  }, [
93
- O(d("input", U({
91
+ U(d("input", X({
94
92
  id: e.id,
95
- "onUpdate:modelValue": o[0] || (o[0] = (n) => l.value = n),
93
+ "onUpdate:modelValue": s[0] || (s[0] = (n) => a.value = n),
96
94
  name: e.name,
97
- "aria-checked": e.indeterminate ? "mixed" : l.value ? "true" : "false",
95
+ "aria-checked": e.indeterminate ? "mixed" : a.value ? "true" : "false",
98
96
  "aria-disabled": e.disabled ? "true" : void 0,
99
97
  type: "checkbox",
100
98
  class: "invisible absolute",
101
99
  disabled: e.disabled || e.loading,
102
100
  required: e.required
103
- }, X(K, !0)), null, 16, se), [
104
- [j, l.value]
101
+ }, j(L, !0)), null, 16, se), [
102
+ [J, a.value]
105
103
  ]),
106
104
  d("div", {
107
105
  class: u([
108
- a(t).box,
106
+ o(t).box,
109
107
  [e.glow && !e.disabled && !e.loading ? e.$style["checkbox--glow"] : ""]
110
108
  ])
111
109
  }, [
112
- e.loading ? (i(), V(Z, {
110
+ e.loading ? (i(), V(x, {
113
111
  key: 0,
114
112
  size: e.size,
115
113
  class: "absolute"
116
114
  }, null, 8, ["size"])) : e.indeterminate ? (i(), p("span", le)) : C(e.$slots, "icon", { key: 2 }, () => [
117
115
  (i(), p("svg", {
118
116
  viewBox: "0 0 20 20",
119
- class: u([a(t).icon, { "opacity-0": !l.value }])
120
- }, ae, 2))
117
+ class: u([o(t).icon, { "opacity-0": !a.value }])
118
+ }, s[1] || (s[1] = [
119
+ d("path", { d: "M0 11l2-2 5 5L18 3l2 2L7 18z" }, null, -1)
120
+ ]), 2))
121
121
  ])
122
122
  ], 2),
123
123
  d("div", {
124
- class: u(a(t).label)
124
+ class: u(o(t).label)
125
125
  }, [
126
126
  e.label ? (i(), p("span", {
127
127
  key: 0,
128
- textContent: J(e.label)
129
- }, null, 8, re)) : C(e.$slots, "default", { key: 1 })
128
+ textContent: Q(e.label)
129
+ }, null, 8, ae)) : C(e.$slots, "default", { key: 1 })
130
130
  ], 2)
131
131
  ], 42, ee),
132
- a(N) ? Q("", !0) : (i(), V(x, {
132
+ o(N) ? W("", !0) : (i(), V(_, {
133
133
  key: 0,
134
- error: a(G),
134
+ error: o(G),
135
135
  helper: e.helper
136
136
  }, null, 8, ["error", "helper"]))
137
137
  ], 6));
138
138
  }
139
139
  });
140
140
  export {
141
- he as default
141
+ fe as default
142
142
  };
@@ -14,7 +14,7 @@ export type ContainerProps = ExtractPublicPropTypes<typeof containerProps>;
14
14
  type InternalClasses = 'wrapper';
15
15
  export interface ContainerTheme extends ThemeComponent<ContainerProps, InternalClasses> {
16
16
  }
17
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
17
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
18
18
  tag: {
19
19
  type: StringConstructor;
20
20
  default: string;
@@ -23,7 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
23
23
  type: BooleanConstructor;
24
24
  default: boolean;
25
25
  };
26
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
26
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
27
  tag: {
28
28
  type: StringConstructor;
29
29
  default: string;
@@ -32,10 +32,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
32
32
  type: BooleanConstructor;
33
33
  default: boolean;
34
34
  };
35
- }>>, {
35
+ }>> & Readonly<{}>, {
36
36
  tag: string;
37
37
  fluid: boolean;
38
- }, {}>, {
38
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
39
39
  default?(_: {}): any;
40
40
  }>;
41
41
  export default _default;
@@ -570,7 +570,7 @@ export type DatepickerProps = ExtractPublicPropTypes<typeof datepickerProps>;
570
570
  type InternalClasses = 'wrapper';
571
571
  export interface DatepickerTheme extends ThemeComponent<DatepickerProps, InternalClasses> {
572
572
  }
573
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
573
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
574
574
  multiCalendars: {
575
575
  type: PropType<import("@vuepic/vue-datepicker").DpOptionEnabled | Partial<{
576
576
  static: boolean;
@@ -1132,11 +1132,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
1132
1132
  readonly default: "md";
1133
1133
  readonly validator: (value: string) => boolean;
1134
1134
  };
1135
- }, {
1135
+ }>, {
1136
1136
  focus: () => void;
1137
1137
  blur: () => void;
1138
1138
  validate: () => void;
1139
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1139
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1140
1140
  multiCalendars: {
1141
1141
  type: PropType<import("@vuepic/vue-datepicker").DpOptionEnabled | Partial<{
1142
1142
  static: boolean;
@@ -1698,9 +1698,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
1698
1698
  readonly default: "md";
1699
1699
  readonly validator: (value: string) => boolean;
1700
1700
  };
1701
- }>> & {
1701
+ }>> & Readonly<{
1702
1702
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
1703
- }, {
1703
+ }>, {
1704
1704
  disabled: boolean;
1705
1705
  size: import("../../composables/useCommon").Size;
1706
1706
  position: "left" | "right" | "center" | undefined;
@@ -1909,7 +1909,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
1909
1909
  timePickerInline: boolean;
1910
1910
  quarterPicker: boolean;
1911
1911
  yearFirst: boolean;
1912
- }, {}>, Partial<Record<NonNullable<string | number>, (_: any) => any>>>;
1912
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Partial<Record<NonNullable<string | number>, (_: any) => any>>>;
1913
1913
  export default _default;
1914
1914
  type __VLS_WithTemplateSlots<T, S> = T & {
1915
1915
  new (): {
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as O, ref as d, openBlock as D, createElementBlock as C, normalizeStyle as I, unref as n, normalizeClass as P, createVNode as u, createSlots as T, withCtx as m, withKeys as p, withModifiers as R, renderList as j, renderSlot as F, normalizeProps as A, guardReactiveProps as z } from "vue";
2
- import { useMutationObserver as L } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.3.9_typescript@5.2.2_/node_modules/@vueuse/core/index.js";
2
+ import { useMutationObserver as L } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js";
3
3
  import { useCommon as q } from "../../composables/useCommon.js";
4
4
  import { useInputtable as f } from "../../composables/useInputtable.js";
5
5
  import { useInteractive as M } from "../../composables/useInteractive.js";
6
6
  import { useTheme as V } from "../../composables/useTheme.js";
7
7
  import G from "../input/Input.vue.js";
8
- import Y from "../../node_modules/.pnpm/@vuepic_vue-datepicker@8.3.2_vue@3.3.9_typescript@5.2.2_/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js";
9
- import "../../node_modules/.pnpm/@vuepic_vue-datepicker@8.3.2_vue@3.3.9_typescript@5.2.2_/node_modules/@vuepic/vue-datepicker/dist/main.css.js";
8
+ import Y from "../../node_modules/.pnpm/@vuepic_vue-datepicker@8.3.2_vue@3.5.10_typescript@5.2.2_/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js";
9
+ import "../../node_modules/.pnpm/@vuepic_vue-datepicker@8.3.2_vue@3.5.10_typescript@5.2.2_/node_modules/@vuepic/vue-datepicker/dist/main.css.js";
10
10
  const W = {
11
11
  multiCalendars: { type: [Boolean, Number, String, Object], default: void 0 },
12
12
  modelValue: { type: [String, Date, Array, Object, Number], default: null },
@@ -8,13 +8,13 @@ export type DividerProps = ExtractPublicPropTypes<typeof dividerProps>;
8
8
  type InternalClasses = 'wrapper' | 'label' | 'line';
9
9
  export interface DividerTheme extends ThemeComponent<DividerProps, InternalClasses> {
10
10
  }
11
- declare const _default: import("vue").DefineComponent<{
11
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
12
12
  label: StringConstructor;
13
13
  vertical: BooleanConstructor;
14
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
15
  label: StringConstructor;
16
16
  vertical: BooleanConstructor;
17
- }>>, {
17
+ }>> & Readonly<{}>, {
18
18
  vertical: boolean;
19
- }, {}>;
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
20
20
  export default _default;
@@ -30,7 +30,7 @@ export type DrawerProps = ExtractPublicPropTypes<typeof drawerProps>;
30
30
  type InternalClasses = 'wrapper' | 'backdrop';
31
31
  export interface DrawerTheme extends ThemeComponent<DrawerProps, InternalClasses> {
32
32
  }
33
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
33
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
34
34
  modelValue: BooleanConstructor;
35
35
  position: {
36
36
  type: PropType<"left" | "right" | "top" | "bottom">;
@@ -53,10 +53,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
53
53
  type: BooleanConstructor;
54
54
  default: boolean;
55
55
  };
56
- }, {
56
+ }>, {
57
57
  open: () => void;
58
58
  close: (e?: PointerEvent) => void;
59
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
59
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
60
60
  modelValue: BooleanConstructor;
61
61
  position: {
62
62
  type: PropType<"left" | "right" | "top" | "bottom">;
@@ -79,16 +79,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
79
79
  type: BooleanConstructor;
80
80
  default: boolean;
81
81
  };
82
- }>> & {
82
+ }>> & Readonly<{
83
83
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
84
- }, {
84
+ }>, {
85
85
  position: "left" | "right" | "top" | "bottom";
86
86
  modelValue: boolean;
87
87
  teleportTo: string | HTMLElement;
88
88
  width: string | number;
89
89
  height: string | number;
90
90
  backdrop: boolean;
91
- }, {}>, {
91
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
92
92
  header?(_: {}): any;
93
93
  default?(_: {}): any;
94
94
  footer?(_: {}): any;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as X, ref as a, watchEffect as j, watch as K, computed as v, onMounted as M, openBlock as y, createBlock as O, Teleport as q, createVNode as w, Transition as F, withCtx as g, withDirectives as G, createElementVNode as k, normalizeClass as $, unref as n, createElementBlock as H, createCommentVNode as x, normalizeStyle as I, renderSlot as f, vShow as J } from "vue";
2
- import { useBreakpoints as Q, breakpointsTailwind as U, useEventListener as S, useSwipe as W } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.3.9_typescript@5.2.2_/node_modules/@vueuse/core/index.js";
2
+ import { useBreakpoints as Q, breakpointsTailwind as U, useEventListener as S, useSwipe as W } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js";
3
3
  import { useTheme as Y } from "../../composables/useTheme.js";
4
4
  import Z from "../scroll/Scroll.vue.js";
5
5
  const ee = {