@hoci/core 0.5.2 → 0.5.4
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.cjs +7 -11
- package/dist/index.d.cts +6 -21
- package/dist/index.d.mts +6 -21
- package/dist/index.d.ts +6 -21
- package/dist/index.mjs +7 -11
- package/package.json +8 -3
package/dist/index.cjs
CHANGED
|
@@ -413,30 +413,26 @@ const useSelectionItem = shared.defineHookComponent({
|
|
|
413
413
|
const switchProps = shared.defineHookProps({
|
|
414
414
|
modelValue: {
|
|
415
415
|
type: Boolean,
|
|
416
|
-
default: false
|
|
416
|
+
default: () => false
|
|
417
417
|
},
|
|
418
418
|
class: {
|
|
419
|
-
type: shared.classPropType
|
|
420
|
-
required: true
|
|
419
|
+
type: shared.classPropType
|
|
421
420
|
},
|
|
422
421
|
activeClass: {
|
|
423
|
-
type: shared.classPropType
|
|
424
|
-
default: "checked"
|
|
422
|
+
type: shared.classPropType
|
|
425
423
|
},
|
|
426
424
|
unactiveClass: {
|
|
427
|
-
type: shared.classPropType
|
|
428
|
-
default: "unchecked"
|
|
425
|
+
type: shared.classPropType
|
|
429
426
|
},
|
|
430
427
|
activateEvent: {
|
|
431
428
|
type: String
|
|
432
429
|
},
|
|
433
430
|
disabled: {
|
|
434
431
|
type: Boolean,
|
|
435
|
-
default: false
|
|
432
|
+
default: () => false
|
|
436
433
|
},
|
|
437
434
|
disabledClass: {
|
|
438
|
-
type: shared.classPropType
|
|
439
|
-
default: ""
|
|
435
|
+
type: shared.classPropType
|
|
440
436
|
}
|
|
441
437
|
});
|
|
442
438
|
const switchEmits = shared.defineHookEmits(["update:modelValue", "change"]);
|
|
@@ -538,7 +534,7 @@ const useIcon = shared.defineHookComponent({
|
|
|
538
534
|
});
|
|
539
535
|
const staticStyle = vue.computed(() => {
|
|
540
536
|
return {
|
|
541
|
-
"--icon-url": `url(
|
|
537
|
+
"--icon-url": `url("${props.src}")`
|
|
542
538
|
};
|
|
543
539
|
});
|
|
544
540
|
const style = vue.computed(() => {
|
package/dist/index.d.cts
CHANGED
|
@@ -421,30 +421,26 @@ interface HiItemSlotsData {
|
|
|
421
421
|
declare const switchProps: {
|
|
422
422
|
modelValue: {
|
|
423
423
|
type: BooleanConstructor;
|
|
424
|
-
default:
|
|
424
|
+
default: () => false;
|
|
425
425
|
};
|
|
426
426
|
class: {
|
|
427
427
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
428
|
-
required: true;
|
|
429
428
|
};
|
|
430
429
|
activeClass: {
|
|
431
430
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
432
|
-
default: string;
|
|
433
431
|
};
|
|
434
432
|
unactiveClass: {
|
|
435
433
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
436
|
-
default: string;
|
|
437
434
|
};
|
|
438
435
|
activateEvent: {
|
|
439
436
|
type: PropType<ActivateEvent>;
|
|
440
437
|
};
|
|
441
438
|
disabled: {
|
|
442
439
|
type: BooleanConstructor;
|
|
443
|
-
default:
|
|
440
|
+
default: () => false;
|
|
444
441
|
};
|
|
445
442
|
disabledClass: {
|
|
446
443
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
447
|
-
default: string;
|
|
448
444
|
};
|
|
449
445
|
};
|
|
450
446
|
type HiSwitchProps = typeof switchProps;
|
|
@@ -458,65 +454,54 @@ declare const useSwitch: _hoci_shared.HookComponent<{
|
|
|
458
454
|
}, ("change" | "update:modelValue")[], {
|
|
459
455
|
modelValue: {
|
|
460
456
|
type: BooleanConstructor;
|
|
461
|
-
default:
|
|
457
|
+
default: () => false;
|
|
462
458
|
};
|
|
463
459
|
class: {
|
|
464
460
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
465
|
-
required: true;
|
|
466
461
|
};
|
|
467
462
|
activeClass: {
|
|
468
463
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
469
|
-
default: string;
|
|
470
464
|
};
|
|
471
465
|
unactiveClass: {
|
|
472
466
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
473
|
-
default: string;
|
|
474
467
|
};
|
|
475
468
|
activateEvent: {
|
|
476
469
|
type: PropType<ActivateEvent>;
|
|
477
470
|
};
|
|
478
471
|
disabled: {
|
|
479
472
|
type: BooleanConstructor;
|
|
480
|
-
default:
|
|
473
|
+
default: () => false;
|
|
481
474
|
};
|
|
482
475
|
disabledClass: {
|
|
483
476
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
484
|
-
default: string;
|
|
485
477
|
};
|
|
486
478
|
}, vue.ExtractPropTypes<{
|
|
487
479
|
modelValue: {
|
|
488
480
|
type: BooleanConstructor;
|
|
489
|
-
default:
|
|
481
|
+
default: () => false;
|
|
490
482
|
};
|
|
491
483
|
class: {
|
|
492
484
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
493
|
-
required: true;
|
|
494
485
|
};
|
|
495
486
|
activeClass: {
|
|
496
487
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
497
|
-
default: string;
|
|
498
488
|
};
|
|
499
489
|
unactiveClass: {
|
|
500
490
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
501
|
-
default: string;
|
|
502
491
|
};
|
|
503
492
|
activateEvent: {
|
|
504
493
|
type: PropType<ActivateEvent>;
|
|
505
494
|
};
|
|
506
495
|
disabled: {
|
|
507
496
|
type: BooleanConstructor;
|
|
508
|
-
default:
|
|
497
|
+
default: () => false;
|
|
509
498
|
};
|
|
510
499
|
disabledClass: {
|
|
511
500
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
512
|
-
default: string;
|
|
513
501
|
};
|
|
514
502
|
}>, {
|
|
515
503
|
disabled: boolean;
|
|
516
504
|
modelValue: boolean;
|
|
517
|
-
activeClass: string | string[] | Record<string, boolean>;
|
|
518
|
-
disabledClass: string | string[] | Record<string, boolean>;
|
|
519
|
-
unactiveClass: string | string[] | Record<string, boolean>;
|
|
520
505
|
}>;
|
|
521
506
|
|
|
522
507
|
declare const iconProps: {
|
package/dist/index.d.mts
CHANGED
|
@@ -421,30 +421,26 @@ interface HiItemSlotsData {
|
|
|
421
421
|
declare const switchProps: {
|
|
422
422
|
modelValue: {
|
|
423
423
|
type: BooleanConstructor;
|
|
424
|
-
default:
|
|
424
|
+
default: () => false;
|
|
425
425
|
};
|
|
426
426
|
class: {
|
|
427
427
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
428
|
-
required: true;
|
|
429
428
|
};
|
|
430
429
|
activeClass: {
|
|
431
430
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
432
|
-
default: string;
|
|
433
431
|
};
|
|
434
432
|
unactiveClass: {
|
|
435
433
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
436
|
-
default: string;
|
|
437
434
|
};
|
|
438
435
|
activateEvent: {
|
|
439
436
|
type: PropType<ActivateEvent>;
|
|
440
437
|
};
|
|
441
438
|
disabled: {
|
|
442
439
|
type: BooleanConstructor;
|
|
443
|
-
default:
|
|
440
|
+
default: () => false;
|
|
444
441
|
};
|
|
445
442
|
disabledClass: {
|
|
446
443
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
447
|
-
default: string;
|
|
448
444
|
};
|
|
449
445
|
};
|
|
450
446
|
type HiSwitchProps = typeof switchProps;
|
|
@@ -458,65 +454,54 @@ declare const useSwitch: _hoci_shared.HookComponent<{
|
|
|
458
454
|
}, ("change" | "update:modelValue")[], {
|
|
459
455
|
modelValue: {
|
|
460
456
|
type: BooleanConstructor;
|
|
461
|
-
default:
|
|
457
|
+
default: () => false;
|
|
462
458
|
};
|
|
463
459
|
class: {
|
|
464
460
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
465
|
-
required: true;
|
|
466
461
|
};
|
|
467
462
|
activeClass: {
|
|
468
463
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
469
|
-
default: string;
|
|
470
464
|
};
|
|
471
465
|
unactiveClass: {
|
|
472
466
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
473
|
-
default: string;
|
|
474
467
|
};
|
|
475
468
|
activateEvent: {
|
|
476
469
|
type: PropType<ActivateEvent>;
|
|
477
470
|
};
|
|
478
471
|
disabled: {
|
|
479
472
|
type: BooleanConstructor;
|
|
480
|
-
default:
|
|
473
|
+
default: () => false;
|
|
481
474
|
};
|
|
482
475
|
disabledClass: {
|
|
483
476
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
484
|
-
default: string;
|
|
485
477
|
};
|
|
486
478
|
}, vue.ExtractPropTypes<{
|
|
487
479
|
modelValue: {
|
|
488
480
|
type: BooleanConstructor;
|
|
489
|
-
default:
|
|
481
|
+
default: () => false;
|
|
490
482
|
};
|
|
491
483
|
class: {
|
|
492
484
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
493
|
-
required: true;
|
|
494
485
|
};
|
|
495
486
|
activeClass: {
|
|
496
487
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
497
|
-
default: string;
|
|
498
488
|
};
|
|
499
489
|
unactiveClass: {
|
|
500
490
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
501
|
-
default: string;
|
|
502
491
|
};
|
|
503
492
|
activateEvent: {
|
|
504
493
|
type: PropType<ActivateEvent>;
|
|
505
494
|
};
|
|
506
495
|
disabled: {
|
|
507
496
|
type: BooleanConstructor;
|
|
508
|
-
default:
|
|
497
|
+
default: () => false;
|
|
509
498
|
};
|
|
510
499
|
disabledClass: {
|
|
511
500
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
512
|
-
default: string;
|
|
513
501
|
};
|
|
514
502
|
}>, {
|
|
515
503
|
disabled: boolean;
|
|
516
504
|
modelValue: boolean;
|
|
517
|
-
activeClass: string | string[] | Record<string, boolean>;
|
|
518
|
-
disabledClass: string | string[] | Record<string, boolean>;
|
|
519
|
-
unactiveClass: string | string[] | Record<string, boolean>;
|
|
520
505
|
}>;
|
|
521
506
|
|
|
522
507
|
declare const iconProps: {
|
package/dist/index.d.ts
CHANGED
|
@@ -421,30 +421,26 @@ interface HiItemSlotsData {
|
|
|
421
421
|
declare const switchProps: {
|
|
422
422
|
modelValue: {
|
|
423
423
|
type: BooleanConstructor;
|
|
424
|
-
default:
|
|
424
|
+
default: () => false;
|
|
425
425
|
};
|
|
426
426
|
class: {
|
|
427
427
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
428
|
-
required: true;
|
|
429
428
|
};
|
|
430
429
|
activeClass: {
|
|
431
430
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
432
|
-
default: string;
|
|
433
431
|
};
|
|
434
432
|
unactiveClass: {
|
|
435
433
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
436
|
-
default: string;
|
|
437
434
|
};
|
|
438
435
|
activateEvent: {
|
|
439
436
|
type: PropType<ActivateEvent>;
|
|
440
437
|
};
|
|
441
438
|
disabled: {
|
|
442
439
|
type: BooleanConstructor;
|
|
443
|
-
default:
|
|
440
|
+
default: () => false;
|
|
444
441
|
};
|
|
445
442
|
disabledClass: {
|
|
446
443
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
447
|
-
default: string;
|
|
448
444
|
};
|
|
449
445
|
};
|
|
450
446
|
type HiSwitchProps = typeof switchProps;
|
|
@@ -458,65 +454,54 @@ declare const useSwitch: _hoci_shared.HookComponent<{
|
|
|
458
454
|
}, ("change" | "update:modelValue")[], {
|
|
459
455
|
modelValue: {
|
|
460
456
|
type: BooleanConstructor;
|
|
461
|
-
default:
|
|
457
|
+
default: () => false;
|
|
462
458
|
};
|
|
463
459
|
class: {
|
|
464
460
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
465
|
-
required: true;
|
|
466
461
|
};
|
|
467
462
|
activeClass: {
|
|
468
463
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
469
|
-
default: string;
|
|
470
464
|
};
|
|
471
465
|
unactiveClass: {
|
|
472
466
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
473
|
-
default: string;
|
|
474
467
|
};
|
|
475
468
|
activateEvent: {
|
|
476
469
|
type: PropType<ActivateEvent>;
|
|
477
470
|
};
|
|
478
471
|
disabled: {
|
|
479
472
|
type: BooleanConstructor;
|
|
480
|
-
default:
|
|
473
|
+
default: () => false;
|
|
481
474
|
};
|
|
482
475
|
disabledClass: {
|
|
483
476
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
484
|
-
default: string;
|
|
485
477
|
};
|
|
486
478
|
}, vue.ExtractPropTypes<{
|
|
487
479
|
modelValue: {
|
|
488
480
|
type: BooleanConstructor;
|
|
489
|
-
default:
|
|
481
|
+
default: () => false;
|
|
490
482
|
};
|
|
491
483
|
class: {
|
|
492
484
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
493
|
-
required: true;
|
|
494
485
|
};
|
|
495
486
|
activeClass: {
|
|
496
487
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
497
|
-
default: string;
|
|
498
488
|
};
|
|
499
489
|
unactiveClass: {
|
|
500
490
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
501
|
-
default: string;
|
|
502
491
|
};
|
|
503
492
|
activateEvent: {
|
|
504
493
|
type: PropType<ActivateEvent>;
|
|
505
494
|
};
|
|
506
495
|
disabled: {
|
|
507
496
|
type: BooleanConstructor;
|
|
508
|
-
default:
|
|
497
|
+
default: () => false;
|
|
509
498
|
};
|
|
510
499
|
disabledClass: {
|
|
511
500
|
type: PropType<string | string[] | Record<string, boolean>>;
|
|
512
|
-
default: string;
|
|
513
501
|
};
|
|
514
502
|
}>, {
|
|
515
503
|
disabled: boolean;
|
|
516
504
|
modelValue: boolean;
|
|
517
|
-
activeClass: string | string[] | Record<string, boolean>;
|
|
518
|
-
disabledClass: string | string[] | Record<string, boolean>;
|
|
519
|
-
unactiveClass: string | string[] | Record<string, boolean>;
|
|
520
505
|
}>;
|
|
521
506
|
|
|
522
507
|
declare const iconProps: {
|
package/dist/index.mjs
CHANGED
|
@@ -412,30 +412,26 @@ const useSelectionItem = defineHookComponent({
|
|
|
412
412
|
const switchProps = defineHookProps({
|
|
413
413
|
modelValue: {
|
|
414
414
|
type: Boolean,
|
|
415
|
-
default: false
|
|
415
|
+
default: () => false
|
|
416
416
|
},
|
|
417
417
|
class: {
|
|
418
|
-
type: classPropType
|
|
419
|
-
required: true
|
|
418
|
+
type: classPropType
|
|
420
419
|
},
|
|
421
420
|
activeClass: {
|
|
422
|
-
type: classPropType
|
|
423
|
-
default: "checked"
|
|
421
|
+
type: classPropType
|
|
424
422
|
},
|
|
425
423
|
unactiveClass: {
|
|
426
|
-
type: classPropType
|
|
427
|
-
default: "unchecked"
|
|
424
|
+
type: classPropType
|
|
428
425
|
},
|
|
429
426
|
activateEvent: {
|
|
430
427
|
type: String
|
|
431
428
|
},
|
|
432
429
|
disabled: {
|
|
433
430
|
type: Boolean,
|
|
434
|
-
default: false
|
|
431
|
+
default: () => false
|
|
435
432
|
},
|
|
436
433
|
disabledClass: {
|
|
437
|
-
type: classPropType
|
|
438
|
-
default: ""
|
|
434
|
+
type: classPropType
|
|
439
435
|
}
|
|
440
436
|
});
|
|
441
437
|
const switchEmits = defineHookEmits(["update:modelValue", "change"]);
|
|
@@ -537,7 +533,7 @@ const useIcon = defineHookComponent({
|
|
|
537
533
|
});
|
|
538
534
|
const staticStyle = computed(() => {
|
|
539
535
|
return {
|
|
540
|
-
"--icon-url": `url(
|
|
536
|
+
"--icon-url": `url("${props.src}")`
|
|
541
537
|
};
|
|
542
538
|
});
|
|
543
539
|
const style = computed(() => {
|
package/package.json
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hoci/core",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "",
|
|
5
|
-
"author": "
|
|
5
|
+
"author": "Chizuki <chizukicn@outlook.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/chizukicn/hoci",
|
|
10
|
+
"directory": "packages/core"
|
|
11
|
+
},
|
|
7
12
|
"exports": {
|
|
8
13
|
".": {
|
|
9
14
|
"types": "./dist/index.d.ts",
|
|
@@ -25,7 +30,7 @@
|
|
|
25
30
|
"@vueuse/core": ">=10.5.0",
|
|
26
31
|
"maybe-types": "^0.1.0",
|
|
27
32
|
"tslx": "^0.1.1",
|
|
28
|
-
"@hoci/shared": "0.5.
|
|
33
|
+
"@hoci/shared": "0.5.4"
|
|
29
34
|
},
|
|
30
35
|
"scripts": {
|
|
31
36
|
"build": "unbuild",
|