@hoci/core 0.10.0 → 1.0.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.
- package/dist/index.d.ts +19 -19
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -215,13 +215,13 @@ declare const iconProps: {
|
|
|
215
215
|
required: true;
|
|
216
216
|
};
|
|
217
217
|
size: {
|
|
218
|
-
type: (
|
|
218
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
219
219
|
};
|
|
220
220
|
width: {
|
|
221
|
-
type: (
|
|
221
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
222
222
|
};
|
|
223
223
|
height: {
|
|
224
|
-
type: (
|
|
224
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
225
225
|
};
|
|
226
226
|
color: {
|
|
227
227
|
type: StringConstructor;
|
|
@@ -241,13 +241,13 @@ declare const useIcon: _hoci_shared0.HookComponent<{
|
|
|
241
241
|
required: true;
|
|
242
242
|
};
|
|
243
243
|
size: {
|
|
244
|
-
type: (
|
|
244
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
245
245
|
};
|
|
246
246
|
width: {
|
|
247
|
-
type: (
|
|
247
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
248
248
|
};
|
|
249
249
|
height: {
|
|
250
|
-
type: (
|
|
250
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
251
251
|
};
|
|
252
252
|
color: {
|
|
253
253
|
type: StringConstructor;
|
|
@@ -263,13 +263,13 @@ declare const useIcon: _hoci_shared0.HookComponent<{
|
|
|
263
263
|
required: true;
|
|
264
264
|
};
|
|
265
265
|
size: {
|
|
266
|
-
type: (
|
|
266
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
267
267
|
};
|
|
268
268
|
width: {
|
|
269
|
-
type: (
|
|
269
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
270
270
|
};
|
|
271
271
|
height: {
|
|
272
|
-
type: (
|
|
272
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
273
273
|
};
|
|
274
274
|
color: {
|
|
275
275
|
type: StringConstructor;
|
|
@@ -356,8 +356,8 @@ declare const useSelectionItem: _hoci_shared0.HookComponent<{
|
|
|
356
356
|
};
|
|
357
357
|
}>, {
|
|
358
358
|
value: any;
|
|
359
|
-
disabled: boolean;
|
|
360
359
|
keepAlive: boolean;
|
|
360
|
+
disabled: boolean;
|
|
361
361
|
}>;
|
|
362
362
|
interface HiItemSlotsData {
|
|
363
363
|
active: boolean;
|
|
@@ -495,11 +495,11 @@ declare const usePopover: _hoci_shared0.HookComponent<{
|
|
|
495
495
|
};
|
|
496
496
|
}>, {
|
|
497
497
|
offset: number;
|
|
498
|
-
visible: boolean;
|
|
499
498
|
disabled: boolean;
|
|
500
499
|
placement: Placement;
|
|
501
500
|
triggerEvent: TriggerEvent;
|
|
502
501
|
lazy: boolean;
|
|
502
|
+
visible: boolean;
|
|
503
503
|
teleport: string | boolean | HTMLElement;
|
|
504
504
|
}>;
|
|
505
505
|
//#endregion
|
|
@@ -582,7 +582,7 @@ declare const selectionProps: {
|
|
|
582
582
|
};
|
|
583
583
|
};
|
|
584
584
|
type SelectionProps = typeof selectionProps;
|
|
585
|
-
declare const selectionEmits: ("change" | "
|
|
585
|
+
declare const selectionEmits: ("change" | "reject" | "update:modelValue" | "load" | "unload")[];
|
|
586
586
|
declare function useSelectionContext(): HiSelectionContext;
|
|
587
587
|
declare const useSelectionList: _hoci_shared0.HookComponent<{
|
|
588
588
|
options: vue.Reactive<Option[]>;
|
|
@@ -593,7 +593,7 @@ declare const useSelectionList: _hoci_shared0.HookComponent<{
|
|
|
593
593
|
render: () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
594
594
|
[key: string]: any;
|
|
595
595
|
}>;
|
|
596
|
-
}, ("change" | "
|
|
596
|
+
}, ("change" | "reject" | "update:modelValue" | "load" | "unload")[], {
|
|
597
597
|
modelValue: {
|
|
598
598
|
type: PropType<any>;
|
|
599
599
|
default: () => null;
|
|
@@ -697,11 +697,11 @@ declare const useSelectionList: _hoci_shared0.HookComponent<{
|
|
|
697
697
|
modelValue: any;
|
|
698
698
|
multiple: number | boolean | [number, (number | undefined)?];
|
|
699
699
|
activeClass: string | string[] | Record<string, boolean>;
|
|
700
|
-
itemClass: string | string[] | Record<string, boolean>;
|
|
701
|
-
disabledClass: string | string[] | Record<string, boolean>;
|
|
702
700
|
unactiveClass: string | string[] | Record<string, boolean>;
|
|
703
|
-
|
|
701
|
+
disabledClass: string | string[] | Record<string, boolean>;
|
|
704
702
|
defaultValue: any;
|
|
703
|
+
itemClass: string | string[] | Record<string, boolean>;
|
|
704
|
+
clearable: boolean;
|
|
705
705
|
}>;
|
|
706
706
|
interface HiSelectionSlotData extends Record<string, unknown> {
|
|
707
707
|
isActive: (value: any) => boolean;
|
|
@@ -736,14 +736,14 @@ declare const switchProps: {
|
|
|
736
736
|
};
|
|
737
737
|
};
|
|
738
738
|
type HiSwitchProps = typeof switchProps;
|
|
739
|
-
declare const switchEmits: ("change" | "
|
|
739
|
+
declare const switchEmits: ("change" | "reject" | "update:modelValue")[];
|
|
740
740
|
declare const useSwitch: _hoci_shared0.HookComponent<{
|
|
741
741
|
toggle: (value?: any) => void;
|
|
742
742
|
modelValue: vue.Ref<boolean, boolean>;
|
|
743
743
|
className: vue.ComputedRef<string>;
|
|
744
744
|
isDisabled: vue.ComputedRef<boolean>;
|
|
745
745
|
activateEvent: vue.ComputedRef<ActivateEvent>;
|
|
746
|
-
}, ("change" | "
|
|
746
|
+
}, ("change" | "reject" | "update:modelValue")[], {
|
|
747
747
|
modelValue: {
|
|
748
748
|
type: BooleanConstructor;
|
|
749
749
|
default: () => false;
|
|
@@ -792,8 +792,8 @@ declare const useSwitch: _hoci_shared0.HookComponent<{
|
|
|
792
792
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
793
793
|
};
|
|
794
794
|
}>, {
|
|
795
|
-
modelValue: boolean;
|
|
796
795
|
disabled: boolean;
|
|
796
|
+
modelValue: boolean;
|
|
797
797
|
}>;
|
|
798
798
|
//#endregion
|
|
799
799
|
//#region src/virtual-list/index.d.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hoci/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "1.0.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "Chizuki <chizukicn@outlook.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@tanstack/virtual-core": "^3.13.18",
|
|
27
27
|
"maybe-types": "^0.2.0",
|
|
28
28
|
"tslx": "^0.3.0",
|
|
29
|
-
"@hoci/shared": "0.
|
|
29
|
+
"@hoci/shared": "1.0.0"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "tsdown"
|