@hoci/components 0.4.2 → 0.5.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.mts CHANGED
@@ -1,6 +1,8 @@
1
1
  import * as vue from 'vue';
2
- import { App } from 'vue';
2
+ import { PropType, App } from 'vue';
3
3
  import * as _hoci_core from '@hoci/core';
4
+ import * as _hoci_shared from '@hoci/shared';
5
+ import { ElementLike, ActivateEvent } from '@hoci/shared';
4
6
 
5
7
  declare const HiAffix: vue.DefineComponent<{
6
8
  as: {
@@ -15,7 +17,7 @@ declare const HiAffix: vue.DefineComponent<{
15
17
  type: NumberConstructor;
16
18
  default: number;
17
19
  };
18
- offsetType: {
20
+ position: {
19
21
  type: vue.PropType<"top" | "bottom">;
20
22
  default: string;
21
23
  };
@@ -41,7 +43,7 @@ declare const HiAffix: vue.DefineComponent<{
41
43
  type: NumberConstructor;
42
44
  default: number;
43
45
  };
44
- offsetType: {
46
+ position: {
45
47
  type: vue.PropType<"top" | "bottom">;
46
48
  default: string;
47
49
  };
@@ -55,7 +57,7 @@ declare const HiAffix: vue.DefineComponent<{
55
57
  }>>, {
56
58
  fixedClass: string;
57
59
  offset: number;
58
- offsetType: "top" | "bottom";
60
+ position: "top" | "bottom";
59
61
  zIndex: number;
60
62
  as: string;
61
63
  }, {}>;
@@ -362,6 +364,210 @@ declare const HiSwitch: vue.DefineComponent<{
362
364
  as: string;
363
365
  }, {}>;
364
366
 
367
+ declare const HiConfigProvider: vue.DefineComponent<{
368
+ icon: {
369
+ type: PropType<Partial<{
370
+ size: number | undefined;
371
+ sizeUnit: string | undefined;
372
+ }>>;
373
+ };
374
+ activateEvent: {
375
+ type: PropType<Partial<_hoci_core.ActivateEvent>>;
376
+ };
377
+ }, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
378
+ [key: string]: any;
379
+ }>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
380
+ icon: {
381
+ type: PropType<Partial<{
382
+ size: number | undefined;
383
+ sizeUnit: string | undefined;
384
+ }>>;
385
+ };
386
+ activateEvent: {
387
+ type: PropType<Partial<_hoci_core.ActivateEvent>>;
388
+ };
389
+ }>>, {}, {}>;
390
+
391
+ declare const HiTabs: vue.DefineComponent<{
392
+ headerClass: {
393
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
394
+ };
395
+ contentClass: {
396
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
397
+ };
398
+ as: {
399
+ type: StringConstructor;
400
+ default: string;
401
+ };
402
+ headerAs: {
403
+ type: StringConstructor;
404
+ default: string;
405
+ };
406
+ contentAs: {
407
+ type: StringConstructor;
408
+ default: string;
409
+ };
410
+ modelValue: {
411
+ type: vue.PropType<any>;
412
+ default: () => null;
413
+ };
414
+ activeClass: {
415
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
416
+ default: string;
417
+ };
418
+ itemClass: {
419
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
420
+ default: string;
421
+ };
422
+ disabledClass: {
423
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
424
+ default: string;
425
+ };
426
+ unactiveClass: {
427
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
428
+ default: string;
429
+ };
430
+ label: {
431
+ type: vue.PropType<string | ((val?: any) => string) | null>;
432
+ };
433
+ multiple: {
434
+ type: (NumberConstructor | BooleanConstructor)[];
435
+ default: () => false;
436
+ };
437
+ clearable: {
438
+ type: BooleanConstructor;
439
+ };
440
+ defaultValue: {
441
+ type: vue.PropType<any>;
442
+ default: () => null;
443
+ };
444
+ activateEvent: {
445
+ type: vue.PropType<_hoci_shared.ActivateEvent>;
446
+ };
447
+ }, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
448
+ [key: string]: any;
449
+ }>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
450
+ headerClass: {
451
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
452
+ };
453
+ contentClass: {
454
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
455
+ };
456
+ as: {
457
+ type: StringConstructor;
458
+ default: string;
459
+ };
460
+ headerAs: {
461
+ type: StringConstructor;
462
+ default: string;
463
+ };
464
+ contentAs: {
465
+ type: StringConstructor;
466
+ default: string;
467
+ };
468
+ modelValue: {
469
+ type: vue.PropType<any>;
470
+ default: () => null;
471
+ };
472
+ activeClass: {
473
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
474
+ default: string;
475
+ };
476
+ itemClass: {
477
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
478
+ default: string;
479
+ };
480
+ disabledClass: {
481
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
482
+ default: string;
483
+ };
484
+ unactiveClass: {
485
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
486
+ default: string;
487
+ };
488
+ label: {
489
+ type: vue.PropType<string | ((val?: any) => string) | null>;
490
+ };
491
+ multiple: {
492
+ type: (NumberConstructor | BooleanConstructor)[];
493
+ default: () => false;
494
+ };
495
+ clearable: {
496
+ type: BooleanConstructor;
497
+ };
498
+ defaultValue: {
499
+ type: vue.PropType<any>;
500
+ default: () => null;
501
+ };
502
+ activateEvent: {
503
+ type: vue.PropType<_hoci_shared.ActivateEvent>;
504
+ };
505
+ }>>, {
506
+ multiple: number | boolean;
507
+ modelValue: any;
508
+ activeClass: string | string[] | Record<string, boolean>;
509
+ itemClass: string | string[] | Record<string, boolean>;
510
+ disabledClass: string | string[] | Record<string, boolean>;
511
+ unactiveClass: string | string[] | Record<string, boolean>;
512
+ clearable: boolean;
513
+ defaultValue: any;
514
+ as: string;
515
+ headerAs: string;
516
+ contentAs: string;
517
+ }, {}>;
518
+
519
+ declare const HiTabPane: vue.DefineComponent<{
520
+ value: {
521
+ type: vue.PropType<any>;
522
+ default(): string;
523
+ };
524
+ label: {
525
+ type: vue.PropType<ElementLike | ((val: any) => string) | null>;
526
+ };
527
+ keepAlive: {
528
+ type: BooleanConstructor;
529
+ default: () => true;
530
+ };
531
+ key: {
532
+ type: vue.PropType<string | number | symbol>;
533
+ };
534
+ activateEvent: {
535
+ type: vue.PropType<ActivateEvent>;
536
+ };
537
+ disabled: {
538
+ type: BooleanConstructor;
539
+ default: boolean;
540
+ };
541
+ }, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
542
+ [key: string]: any;
543
+ }>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
544
+ value: {
545
+ type: vue.PropType<any>;
546
+ default(): string;
547
+ };
548
+ label: {
549
+ type: vue.PropType<ElementLike | ((val: any) => string) | null>;
550
+ };
551
+ keepAlive: {
552
+ type: BooleanConstructor;
553
+ default: () => true;
554
+ };
555
+ key: {
556
+ type: vue.PropType<string | number | symbol>;
557
+ };
558
+ activateEvent: {
559
+ type: vue.PropType<ActivateEvent>;
560
+ };
561
+ disabled: {
562
+ type: BooleanConstructor;
563
+ default: boolean;
564
+ };
565
+ }>>, {
566
+ value: any;
567
+ disabled: boolean;
568
+ keepAlive: boolean;
569
+ }, {}>;
570
+
365
571
  declare const install: (app: App) => void;
366
572
 
367
- export { HiAffix, HiIcon, HiItem, HiSelection, HiSwitch, install };
573
+ export { HiAffix, HiConfigProvider, HiIcon, HiItem, HiSelection, HiSwitch, HiTabPane, HiTabs, install };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import * as vue from 'vue';
2
- import { App } from 'vue';
2
+ import { PropType, App } from 'vue';
3
3
  import * as _hoci_core from '@hoci/core';
4
+ import * as _hoci_shared from '@hoci/shared';
5
+ import { ElementLike, ActivateEvent } from '@hoci/shared';
4
6
 
5
7
  declare const HiAffix: vue.DefineComponent<{
6
8
  as: {
@@ -15,7 +17,7 @@ declare const HiAffix: vue.DefineComponent<{
15
17
  type: NumberConstructor;
16
18
  default: number;
17
19
  };
18
- offsetType: {
20
+ position: {
19
21
  type: vue.PropType<"top" | "bottom">;
20
22
  default: string;
21
23
  };
@@ -41,7 +43,7 @@ declare const HiAffix: vue.DefineComponent<{
41
43
  type: NumberConstructor;
42
44
  default: number;
43
45
  };
44
- offsetType: {
46
+ position: {
45
47
  type: vue.PropType<"top" | "bottom">;
46
48
  default: string;
47
49
  };
@@ -55,7 +57,7 @@ declare const HiAffix: vue.DefineComponent<{
55
57
  }>>, {
56
58
  fixedClass: string;
57
59
  offset: number;
58
- offsetType: "top" | "bottom";
60
+ position: "top" | "bottom";
59
61
  zIndex: number;
60
62
  as: string;
61
63
  }, {}>;
@@ -362,6 +364,210 @@ declare const HiSwitch: vue.DefineComponent<{
362
364
  as: string;
363
365
  }, {}>;
364
366
 
367
+ declare const HiConfigProvider: vue.DefineComponent<{
368
+ icon: {
369
+ type: PropType<Partial<{
370
+ size: number | undefined;
371
+ sizeUnit: string | undefined;
372
+ }>>;
373
+ };
374
+ activateEvent: {
375
+ type: PropType<Partial<_hoci_core.ActivateEvent>>;
376
+ };
377
+ }, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
378
+ [key: string]: any;
379
+ }>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
380
+ icon: {
381
+ type: PropType<Partial<{
382
+ size: number | undefined;
383
+ sizeUnit: string | undefined;
384
+ }>>;
385
+ };
386
+ activateEvent: {
387
+ type: PropType<Partial<_hoci_core.ActivateEvent>>;
388
+ };
389
+ }>>, {}, {}>;
390
+
391
+ declare const HiTabs: vue.DefineComponent<{
392
+ headerClass: {
393
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
394
+ };
395
+ contentClass: {
396
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
397
+ };
398
+ as: {
399
+ type: StringConstructor;
400
+ default: string;
401
+ };
402
+ headerAs: {
403
+ type: StringConstructor;
404
+ default: string;
405
+ };
406
+ contentAs: {
407
+ type: StringConstructor;
408
+ default: string;
409
+ };
410
+ modelValue: {
411
+ type: vue.PropType<any>;
412
+ default: () => null;
413
+ };
414
+ activeClass: {
415
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
416
+ default: string;
417
+ };
418
+ itemClass: {
419
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
420
+ default: string;
421
+ };
422
+ disabledClass: {
423
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
424
+ default: string;
425
+ };
426
+ unactiveClass: {
427
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
428
+ default: string;
429
+ };
430
+ label: {
431
+ type: vue.PropType<string | ((val?: any) => string) | null>;
432
+ };
433
+ multiple: {
434
+ type: (NumberConstructor | BooleanConstructor)[];
435
+ default: () => false;
436
+ };
437
+ clearable: {
438
+ type: BooleanConstructor;
439
+ };
440
+ defaultValue: {
441
+ type: vue.PropType<any>;
442
+ default: () => null;
443
+ };
444
+ activateEvent: {
445
+ type: vue.PropType<_hoci_shared.ActivateEvent>;
446
+ };
447
+ }, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
448
+ [key: string]: any;
449
+ }>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
450
+ headerClass: {
451
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
452
+ };
453
+ contentClass: {
454
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
455
+ };
456
+ as: {
457
+ type: StringConstructor;
458
+ default: string;
459
+ };
460
+ headerAs: {
461
+ type: StringConstructor;
462
+ default: string;
463
+ };
464
+ contentAs: {
465
+ type: StringConstructor;
466
+ default: string;
467
+ };
468
+ modelValue: {
469
+ type: vue.PropType<any>;
470
+ default: () => null;
471
+ };
472
+ activeClass: {
473
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
474
+ default: string;
475
+ };
476
+ itemClass: {
477
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
478
+ default: string;
479
+ };
480
+ disabledClass: {
481
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
482
+ default: string;
483
+ };
484
+ unactiveClass: {
485
+ type: vue.PropType<string | string[] | Record<string, boolean>>;
486
+ default: string;
487
+ };
488
+ label: {
489
+ type: vue.PropType<string | ((val?: any) => string) | null>;
490
+ };
491
+ multiple: {
492
+ type: (NumberConstructor | BooleanConstructor)[];
493
+ default: () => false;
494
+ };
495
+ clearable: {
496
+ type: BooleanConstructor;
497
+ };
498
+ defaultValue: {
499
+ type: vue.PropType<any>;
500
+ default: () => null;
501
+ };
502
+ activateEvent: {
503
+ type: vue.PropType<_hoci_shared.ActivateEvent>;
504
+ };
505
+ }>>, {
506
+ multiple: number | boolean;
507
+ modelValue: any;
508
+ activeClass: string | string[] | Record<string, boolean>;
509
+ itemClass: string | string[] | Record<string, boolean>;
510
+ disabledClass: string | string[] | Record<string, boolean>;
511
+ unactiveClass: string | string[] | Record<string, boolean>;
512
+ clearable: boolean;
513
+ defaultValue: any;
514
+ as: string;
515
+ headerAs: string;
516
+ contentAs: string;
517
+ }, {}>;
518
+
519
+ declare const HiTabPane: vue.DefineComponent<{
520
+ value: {
521
+ type: vue.PropType<any>;
522
+ default(): string;
523
+ };
524
+ label: {
525
+ type: vue.PropType<ElementLike | ((val: any) => string) | null>;
526
+ };
527
+ keepAlive: {
528
+ type: BooleanConstructor;
529
+ default: () => true;
530
+ };
531
+ key: {
532
+ type: vue.PropType<string | number | symbol>;
533
+ };
534
+ activateEvent: {
535
+ type: vue.PropType<ActivateEvent>;
536
+ };
537
+ disabled: {
538
+ type: BooleanConstructor;
539
+ default: boolean;
540
+ };
541
+ }, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
542
+ [key: string]: any;
543
+ }>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
544
+ value: {
545
+ type: vue.PropType<any>;
546
+ default(): string;
547
+ };
548
+ label: {
549
+ type: vue.PropType<ElementLike | ((val: any) => string) | null>;
550
+ };
551
+ keepAlive: {
552
+ type: BooleanConstructor;
553
+ default: () => true;
554
+ };
555
+ key: {
556
+ type: vue.PropType<string | number | symbol>;
557
+ };
558
+ activateEvent: {
559
+ type: vue.PropType<ActivateEvent>;
560
+ };
561
+ disabled: {
562
+ type: BooleanConstructor;
563
+ default: boolean;
564
+ };
565
+ }>>, {
566
+ value: any;
567
+ disabled: boolean;
568
+ keepAlive: boolean;
569
+ }, {}>;
570
+
365
571
  declare const install: (app: App) => void;
366
572
 
367
- export { HiAffix, HiIcon, HiItem, HiSelection, HiSwitch, install };
573
+ export { HiAffix, HiConfigProvider, HiIcon, HiItem, HiSelection, HiSwitch, HiTabPane, HiTabs, install };