guava-ui 0.2.9 → 0.3.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.
@@ -1,3 +1,4 @@
1
+ import { AllowDropFunction } from 'element-plus/es/components/tree/src/tree.type';
1
2
  import { App } from 'vue';
2
3
  import { ButtonType } from 'element-plus';
3
4
  import { CascaderOption } from 'element-plus';
@@ -86,6 +87,7 @@ export declare const dateFormatConfig: {
86
87
  week: {
87
88
  placeholder: string;
88
89
  dateFormat: string;
90
+ valueFormat: string;
89
91
  };
90
92
  month: {
91
93
  placeholder: string;
@@ -125,6 +127,8 @@ export declare const generateKey: (num: number) => string;
125
127
 
126
128
  export declare const getDomCssProp: (prop: string, dom?: HTMLElement) => string;
127
129
 
130
+ export declare const getFormModel: (fmNode: FormInstance | null | undefined) => Recordable<any>;
131
+
128
132
  export declare const getVNodeName: (vnode: any) => string;
129
133
 
130
134
  export declare const getVNodeText: (vnode: any) => string;
@@ -358,10 +362,10 @@ onConfirm?: ((...args: any[]) => any) | undefined;
358
362
  link: boolean;
359
363
  size: "" | "small" | "default" | "large";
360
364
  type: "" | "default" | "primary" | "success" | "warning" | "danger" | "info" | "text";
365
+ disabled: string | boolean;
361
366
  text: string;
362
367
  icon: string;
363
368
  confirm: string | boolean;
364
- disabled: string | boolean;
365
369
  nativeType: string;
366
370
  loading: boolean;
367
371
  visible: boolean;
@@ -559,8 +563,8 @@ size: "" | "small" | "default" | "large";
559
563
  placeholder: string;
560
564
  vref: string;
561
565
  id: string;
562
- trigger: string;
563
566
  disabled: boolean;
567
+ trigger: string;
564
568
  visible: boolean;
565
569
  options: CascaderOption[];
566
570
  multiple: boolean;
@@ -644,8 +648,8 @@ onChange?: ((...args: any[]) => any) | undefined;
644
648
  value: TCheckboxValueType;
645
649
  size: "" | "small" | "default" | "large";
646
650
  vref: string;
647
- label: TCheckboxValueType;
648
651
  disabled: boolean;
652
+ label: TCheckboxValueType;
649
653
  visible: boolean;
650
654
  border: boolean;
651
655
  indeterminate: boolean;
@@ -737,8 +741,8 @@ name: string;
737
741
  value: TCheckboxButtonValue;
738
742
  size: "small" | "default" | "large";
739
743
  vref: string;
740
- label: TCheckboxButtonValue;
741
744
  disabled: boolean;
745
+ label: TCheckboxButtonValue;
742
746
  visible: boolean;
743
747
  border: boolean;
744
748
  indeterminate: boolean;
@@ -812,8 +816,8 @@ value: TCheckboxGroupType;
812
816
  size: "small" | "default" | "large";
813
817
  vref: string;
814
818
  max: number;
815
- label: string;
816
819
  disabled: boolean;
820
+ label: string;
817
821
  min: number;
818
822
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
819
823
 
@@ -970,7 +974,7 @@ default: () => never[];
970
974
  };
971
975
  disabledDate: {
972
976
  type: FunctionConstructor;
973
- default: () => void;
977
+ default: undefined;
974
978
  };
975
979
  editable: {
976
980
  type: BooleanConstructor;
@@ -980,6 +984,10 @@ unlink: {
980
984
  type: BooleanConstructor;
981
985
  default: boolean;
982
986
  };
987
+ showWeekNumber: {
988
+ type: BooleanConstructor;
989
+ default: boolean;
990
+ };
983
991
  }>, () => JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("blur" | "change" | "focus" | "input" | "pick" | "update:modelValue")[], "blur" | "change" | "focus" | "input" | "pick" | "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
984
992
  vref: {
985
993
  type: StringConstructor;
@@ -1047,7 +1055,7 @@ default: () => never[];
1047
1055
  };
1048
1056
  disabledDate: {
1049
1057
  type: FunctionConstructor;
1050
- default: () => void;
1058
+ default: undefined;
1051
1059
  };
1052
1060
  editable: {
1053
1061
  type: BooleanConstructor;
@@ -1057,6 +1065,10 @@ unlink: {
1057
1065
  type: BooleanConstructor;
1058
1066
  default: boolean;
1059
1067
  };
1068
+ showWeekNumber: {
1069
+ type: BooleanConstructor;
1070
+ default: boolean;
1071
+ };
1060
1072
  }>> & Readonly<{
1061
1073
  onFocus?: ((...args: any[]) => any) | undefined;
1062
1074
  onBlur?: ((...args: any[]) => any) | undefined;
@@ -1084,6 +1096,7 @@ valueFormat: string;
1084
1096
  rangeSeparator: string;
1085
1097
  startPlaceholder: string;
1086
1098
  endPlaceholder: string;
1099
+ showWeekNumber: boolean;
1087
1100
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1088
1101
 
1089
1102
  export declare const GvDialog: DefineComponent<ExtractPropTypes< {
@@ -1512,7 +1525,7 @@ default: string;
1512
1525
  };
1513
1526
  size: {
1514
1527
  type: PropType<ComponentSize>;
1515
- default: undefined;
1528
+ default: string;
1516
1529
  };
1517
1530
  disabled: {
1518
1531
  type: BooleanConstructor;
@@ -1585,7 +1598,7 @@ default: string;
1585
1598
  };
1586
1599
  size: {
1587
1600
  type: PropType<ComponentSize>;
1588
- default: undefined;
1601
+ default: string;
1589
1602
  };
1590
1603
  disabled: {
1591
1604
  type: BooleanConstructor;
@@ -1721,7 +1734,7 @@ position: {
1721
1734
  type: StringConstructor;
1722
1735
  default: undefined;
1723
1736
  };
1724
- }>, JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("blur" | "change" | "focus" | "input" | "keydown" | "update:modelValue")[], "blur" | "change" | "focus" | "input" | "keydown" | "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
1737
+ }>, () => JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("blur" | "change" | "focus" | "input" | "keydown" | "update:modelValue")[], "blur" | "change" | "focus" | "input" | "keydown" | "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
1725
1738
  vref: {
1726
1739
  type: StringConstructor;
1727
1740
  default: string;
@@ -1802,8 +1815,8 @@ placeholder: string;
1802
1815
  vref: string;
1803
1816
  max: number;
1804
1817
  id: string;
1805
- position: string;
1806
1818
  disabled: boolean;
1819
+ position: string;
1807
1820
  visible: boolean;
1808
1821
  step: number;
1809
1822
  min: number;
@@ -2001,8 +2014,8 @@ name: string;
2001
2014
  value: TRadioValue;
2002
2015
  size: "" | "small" | "default" | "large";
2003
2016
  vref: string;
2004
- label: TRadioValue;
2005
2017
  disabled: boolean;
2018
+ label: TRadioValue;
2006
2019
  border: boolean;
2007
2020
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2008
2021
 
@@ -2055,8 +2068,8 @@ onChange?: ((...args: any[]) => any) | undefined;
2055
2068
  name: string;
2056
2069
  value: string | number | boolean;
2057
2070
  vref: string;
2058
- label: string;
2059
2071
  disabled: boolean;
2072
+ label: string;
2060
2073
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2061
2074
 
2062
2075
  export declare const GvRadioGroup: DefineComponent<ExtractPropTypes< {
@@ -2365,8 +2378,8 @@ size: "" | "small" | "default" | "large";
2365
2378
  placeholder: string;
2366
2379
  vref: string;
2367
2380
  id: string;
2368
- label: string;
2369
2381
  disabled: boolean;
2382
+ label: string;
2370
2383
  visible: boolean;
2371
2384
  multiple: boolean;
2372
2385
  modelValue: string | unknown[] | Record<string, unknown>;
@@ -2864,21 +2877,25 @@ default: boolean;
2864
2877
  "onTab-click"?: ((...args: any[]) => any) | undefined;
2865
2878
  }>, {
2866
2879
  name: string;
2880
+ disabled: boolean;
2867
2881
  label: string;
2868
2882
  maxHeight: string | number;
2869
- disabled: boolean;
2870
2883
  visible: boolean;
2871
2884
  autoHeight: boolean;
2872
2885
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2873
2886
 
2874
2887
  export declare const GvTabs: DefineComponent<ExtractPropTypes< {
2875
2888
  tabPosition: {
2876
- type: StringConstructor;
2889
+ type: PropType<"left" | "right" | "bottom" | "top">;
2877
2890
  default: string;
2878
2891
  };
2879
- value: {
2892
+ defaultValue: {
2880
2893
  type: PropType<number | string>;
2881
- default: undefined;
2894
+ default: number;
2895
+ };
2896
+ modelValue: {
2897
+ type: PropType<number | string>;
2898
+ default: number;
2882
2899
  };
2883
2900
  type: {
2884
2901
  type: PropType<"card" | "border-card">;
@@ -2894,12 +2911,16 @@ default: undefined;
2894
2911
  };
2895
2912
  }>, () => JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "tab-click"[], "tab-click", PublicProps, Readonly<ExtractPropTypes< {
2896
2913
  tabPosition: {
2897
- type: StringConstructor;
2914
+ type: PropType<"left" | "right" | "bottom" | "top">;
2898
2915
  default: string;
2899
2916
  };
2900
- value: {
2917
+ defaultValue: {
2901
2918
  type: PropType<number | string>;
2902
- default: undefined;
2919
+ default: number;
2920
+ };
2921
+ modelValue: {
2922
+ type: PropType<number | string>;
2923
+ default: number;
2903
2924
  };
2904
2925
  type: {
2905
2926
  type: PropType<"card" | "border-card">;
@@ -2916,10 +2937,11 @@ default: undefined;
2916
2937
  }>> & Readonly<{
2917
2938
  "onTab-click"?: ((...args: any[]) => any) | undefined;
2918
2939
  }>, {
2919
- value: string | number;
2920
2940
  type: "card" | "border-card";
2941
+ modelValue: string | number;
2921
2942
  closable: boolean;
2922
- tabPosition: string;
2943
+ defaultValue: string | number;
2944
+ tabPosition: "right" | "bottom" | "left" | "top";
2923
2945
  tabMaxHeight: string | number;
2924
2946
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2925
2947
 
@@ -3204,6 +3226,10 @@ draggable: {
3204
3226
  type: BooleanConstructor;
3205
3227
  default: boolean;
3206
3228
  };
3229
+ allowDrop: {
3230
+ type: PropType<AllowDropFunction>;
3231
+ default: undefined;
3232
+ };
3207
3233
  defaultExpandedKeys: {
3208
3234
  type: PropType<(string | number)[]>;
3209
3235
  default: () => never[];
@@ -3236,7 +3262,7 @@ renderContent: {
3236
3262
  type: PropType<RenderContentFunction>;
3237
3263
  default: undefined;
3238
3264
  };
3239
- }>, () => JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("check" | "check-change" | "node-click" | "node-collapse" | "node-expand" | "node-drop")[], "check" | "check-change" | "node-click" | "node-collapse" | "node-expand" | "node-drop", PublicProps, Readonly<ExtractPropTypes< {
3265
+ }>, () => JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("check" | "node-click" | "node-expand" | "node-collapse" | "check-change" | "node-drop")[], "check" | "node-click" | "node-expand" | "node-collapse" | "check-change" | "node-drop", PublicProps, Readonly<ExtractPropTypes< {
3240
3266
  treeData: {
3241
3267
  type: PropType<TreeData[]>;
3242
3268
  default: () => never[];
@@ -3265,6 +3291,10 @@ draggable: {
3265
3291
  type: BooleanConstructor;
3266
3292
  default: boolean;
3267
3293
  };
3294
+ allowDrop: {
3295
+ type: PropType<AllowDropFunction>;
3296
+ default: undefined;
3297
+ };
3268
3298
  defaultExpandedKeys: {
3269
3299
  type: PropType<(string | number)[]>;
3270
3300
  default: () => never[];
@@ -3298,11 +3328,11 @@ type: PropType<RenderContentFunction>;
3298
3328
  default: undefined;
3299
3329
  };
3300
3330
  }>> & Readonly<{
3301
- "onNode-expand"?: ((...args: any[]) => any) | undefined;
3302
- "onCheck-change"?: ((...args: any[]) => any) | undefined;
3331
+ onCheck?: ((...args: any[]) => any) | undefined;
3303
3332
  "onNode-click"?: ((...args: any[]) => any) | undefined;
3333
+ "onNode-expand"?: ((...args: any[]) => any) | undefined;
3304
3334
  "onNode-collapse"?: ((...args: any[]) => any) | undefined;
3305
- onCheck?: ((...args: any[]) => any) | undefined;
3335
+ "onCheck-change"?: ((...args: any[]) => any) | undefined;
3306
3336
  "onNode-drop"?: ((...args: any[]) => any) | undefined;
3307
3337
  }>, {
3308
3338
  lazy: boolean;
@@ -3312,14 +3342,15 @@ defaultExpandAll: boolean;
3312
3342
  treeProps: TreeOptionProps;
3313
3343
  iconClass: string;
3314
3344
  checkOnClickNode: boolean;
3345
+ treeData: TreeData[];
3315
3346
  nodeKey: string;
3316
- expandOnClickNode: boolean;
3317
- defaultCheckedKeys: (string | number)[];
3318
- defaultExpandedKeys: (string | number)[];
3319
- renderContent: RenderContentFunction;
3320
3347
  showCheckbox: boolean;
3348
+ allowDrop: AllowDropFunction;
3349
+ defaultExpandedKeys: (string | number)[];
3350
+ defaultCheckedKeys: (string | number)[];
3351
+ expandOnClickNode: boolean;
3321
3352
  filterNodeMethod: FilterNodeMethodFunction;
3322
- treeData: TreeData[];
3353
+ renderContent: RenderContentFunction;
3323
3354
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3324
3355
 
3325
3356
  export declare const hasClass: (ele: HTMLElement, cls: string) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "guava-ui",
3
- "version": "0.2.9",
3
+ "version": "0.3.0",
4
4
  "description": "vue3 & element-plus & typesScript & vite UI platform",
5
5
  "author": "Andy <xukaixing@hotmail.com>",
6
6
  "license": "Apache-2.0",