@yh-ui/components 1.0.38 → 1.0.42

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.
@@ -48,9 +48,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
48
48
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
49
49
  readonly themeOverrides: import("@yh-ui/theme").ComponentThemeVars;
50
50
  readonly loading: boolean;
51
+ readonly virtualScroll: boolean;
51
52
  readonly messages: import("./ai-chat").AiChatMessage[];
52
53
  readonly suggestions: string[];
53
- readonly virtualScroll: boolean;
54
54
  readonly virtualHeight: number;
55
55
  readonly estimatedItemHeight: number;
56
56
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -48,9 +48,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
48
48
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
49
49
  readonly themeOverrides: import("@yh-ui/theme").ComponentThemeVars;
50
50
  readonly loading: boolean;
51
+ readonly virtualScroll: boolean;
51
52
  readonly messages: import("./ai-chat").AiChatMessage[];
52
53
  readonly suggestions: string[];
53
- readonly virtualScroll: boolean;
54
54
  readonly virtualHeight: number;
55
55
  readonly estimatedItemHeight: number;
56
56
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -28,9 +28,9 @@ export declare const YhCascader: import("@yh-ui/utils").SFCWithInstall<{
28
28
  size: import("./src/cascader").CascaderSize;
29
29
  separator: string;
30
30
  multiple: boolean;
31
+ virtual: boolean;
31
32
  clearable: boolean;
32
33
  validateEvent: boolean;
33
- virtual: boolean;
34
34
  filterable: boolean;
35
35
  showAllLevels: boolean;
36
36
  collapseTags: boolean;
@@ -67,9 +67,9 @@ export declare const YhCascader: import("@yh-ui/utils").SFCWithInstall<{
67
67
  size: import("./src/cascader").CascaderSize;
68
68
  separator: string;
69
69
  multiple: boolean;
70
+ virtual: boolean;
70
71
  clearable: boolean;
71
72
  validateEvent: boolean;
72
- virtual: boolean;
73
73
  filterable: boolean;
74
74
  showAllLevels: boolean;
75
75
  collapseTags: boolean;
@@ -111,9 +111,9 @@ export declare const YhCascader: import("@yh-ui/utils").SFCWithInstall<{
111
111
  size: import("./src/cascader").CascaderSize;
112
112
  separator: string;
113
113
  multiple: boolean;
114
+ virtual: boolean;
114
115
  clearable: boolean;
115
116
  validateEvent: boolean;
116
- virtual: boolean;
117
117
  filterable: boolean;
118
118
  showAllLevels: boolean;
119
119
  collapseTags: boolean;
@@ -40,9 +40,9 @@ declare const __VLS_component: import("vue").DefineComponent<CascaderProps, {
40
40
  size: import("./cascader").CascaderSize;
41
41
  separator: string;
42
42
  multiple: boolean;
43
+ virtual: boolean;
43
44
  clearable: boolean;
44
45
  validateEvent: boolean;
45
- virtual: boolean;
46
46
  filterable: boolean;
47
47
  showAllLevels: boolean;
48
48
  collapseTags: boolean;
@@ -40,9 +40,9 @@ declare const __VLS_component: import("vue").DefineComponent<CascaderProps, {
40
40
  size: import("./cascader").CascaderSize;
41
41
  separator: string;
42
42
  multiple: boolean;
43
+ virtual: boolean;
43
44
  clearable: boolean;
44
45
  validateEvent: boolean;
45
- virtual: boolean;
46
46
  filterable: boolean;
47
47
  showAllLevels: boolean;
48
48
  collapseTags: boolean;
@@ -99,10 +99,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
99
99
  readonly span: number;
100
100
  readonly tag: string;
101
101
  readonly md: number | import("./col").ColResponsiveValue;
102
+ readonly lg: number | import("./col").ColResponsiveValue;
102
103
  readonly pull: number;
103
104
  readonly xs: number | import("./col").ColResponsiveValue;
104
105
  readonly sm: number | import("./col").ColResponsiveValue;
105
- readonly lg: number | import("./col").ColResponsiveValue;
106
106
  readonly xl: number | import("./col").ColResponsiveValue;
107
107
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
108
108
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -99,10 +99,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
99
99
  readonly span: number;
100
100
  readonly tag: string;
101
101
  readonly md: number | import("./col").ColResponsiveValue;
102
+ readonly lg: number | import("./col").ColResponsiveValue;
102
103
  readonly pull: number;
103
104
  readonly xs: number | import("./col").ColResponsiveValue;
104
105
  readonly sm: number | import("./col").ColResponsiveValue;
105
- readonly lg: number | import("./col").ColResponsiveValue;
106
106
  readonly xl: number | import("./col").ColResponsiveValue;
107
107
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
108
108
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
package/dist/dayjs.cjs CHANGED
@@ -4,8 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var dayjsModule = _interopRequireWildcard(require("dayjs"));
8
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
9
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
10
- const dayjs = "default" in dayjsModule ? dayjsModule.default : dayjsModule;
7
+ var _dayjs = _interopRequireDefault(require("dayjs"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ const dayjs = typeof _dayjs.default === "function" ? _dayjs.default :
10
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
11
+ _dayjs.default.default || _dayjs.default;
11
12
  module.exports = dayjs;
package/dist/dayjs.mjs CHANGED
@@ -1,3 +1,6 @@
1
- import * as dayjsModule from "dayjs";
2
- const dayjs = "default" in dayjsModule ? dayjsModule.default : dayjsModule;
1
+ import dayjsObject from "dayjs";
2
+ const dayjs = typeof dayjsObject === "function" ? dayjsObject : (
3
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4
+ dayjsObject.default || dayjsObject
5
+ );
3
6
  export default dayjs;
@@ -128,12 +128,12 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
128
128
  readonly error: string;
129
129
  readonly required: boolean;
130
130
  readonly rules: FormRule | FormRule[];
131
- readonly validateStatus: ValidateStatus;
132
131
  readonly labelWidth: string | number;
133
132
  readonly showMessage: boolean;
134
133
  readonly prop: string;
135
134
  readonly validateTrigger: string | string[];
136
135
  readonly errorPosition: "left" | "center" | "right";
136
+ readonly validateStatus: ValidateStatus;
137
137
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
138
138
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
139
139
  export default _default;
@@ -128,12 +128,12 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
128
128
  readonly error: string;
129
129
  readonly required: boolean;
130
130
  readonly rules: FormRule | FormRule[];
131
- readonly validateStatus: ValidateStatus;
132
131
  readonly labelWidth: string | number;
133
132
  readonly showMessage: boolean;
134
133
  readonly prop: string;
135
134
  readonly validateTrigger: string | string[];
136
135
  readonly errorPosition: "left" | "center" | "right";
136
+ readonly validateStatus: ValidateStatus;
137
137
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
138
138
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
139
139
  export default _default;
@@ -33,12 +33,12 @@ export declare const YhSelect: import("@yh-ui/utils").SFCWithInstall<{
33
33
  multiple: boolean;
34
34
  loading: boolean;
35
35
  remote: boolean;
36
+ virtualScroll: boolean;
37
+ itemHeight: number;
36
38
  clearable: boolean;
37
39
  loadingText: string;
38
40
  noDataText: string;
39
41
  validateEvent: boolean;
40
- virtualScroll: boolean;
41
- itemHeight: number;
42
42
  valueKey: string;
43
43
  fitInputWidth: boolean;
44
44
  filterable: boolean;
@@ -77,12 +77,12 @@ export declare const YhSelect: import("@yh-ui/utils").SFCWithInstall<{
77
77
  multiple: boolean;
78
78
  loading: boolean;
79
79
  remote: boolean;
80
+ virtualScroll: boolean;
81
+ itemHeight: number;
80
82
  clearable: boolean;
81
83
  loadingText: string;
82
84
  noDataText: string;
83
85
  validateEvent: boolean;
84
- virtualScroll: boolean;
85
- itemHeight: number;
86
86
  valueKey: string;
87
87
  fitInputWidth: boolean;
88
88
  filterable: boolean;
@@ -126,12 +126,12 @@ export declare const YhSelect: import("@yh-ui/utils").SFCWithInstall<{
126
126
  multiple: boolean;
127
127
  loading: boolean;
128
128
  remote: boolean;
129
+ virtualScroll: boolean;
130
+ itemHeight: number;
129
131
  clearable: boolean;
130
132
  loadingText: string;
131
133
  noDataText: string;
132
134
  validateEvent: boolean;
133
- virtualScroll: boolean;
134
- itemHeight: number;
135
135
  valueKey: string;
136
136
  fitInputWidth: boolean;
137
137
  filterable: boolean;
@@ -41,12 +41,12 @@ declare const __VLS_component: import("vue").DefineComponent<SelectProps, {
41
41
  multiple: boolean;
42
42
  loading: boolean;
43
43
  remote: boolean;
44
+ virtualScroll: boolean;
45
+ itemHeight: number;
44
46
  clearable: boolean;
45
47
  loadingText: string;
46
48
  noDataText: string;
47
49
  validateEvent: boolean;
48
- virtualScroll: boolean;
49
- itemHeight: number;
50
50
  valueKey: string;
51
51
  fitInputWidth: boolean;
52
52
  filterable: boolean;
@@ -41,12 +41,12 @@ declare const __VLS_component: import("vue").DefineComponent<SelectProps, {
41
41
  multiple: boolean;
42
42
  loading: boolean;
43
43
  remote: boolean;
44
+ virtualScroll: boolean;
45
+ itemHeight: number;
44
46
  clearable: boolean;
45
47
  loadingText: string;
46
48
  noDataText: string;
47
49
  validateEvent: boolean;
48
- virtualScroll: boolean;
49
- itemHeight: number;
50
50
  valueKey: string;
51
51
  fitInputWidth: boolean;
52
52
  filterable: boolean;
@@ -48,10 +48,10 @@ declare const __VLS_component: import("vue").DefineComponent<TransferProps, {
48
48
  data: TransferData[];
49
49
  height: number;
50
50
  size: import("./transfer").TransferSize;
51
- modelValue: TransferKey[];
52
- validateEvent: boolean;
53
51
  itemHeight: number;
54
52
  virtual: boolean;
53
+ modelValue: TransferKey[];
54
+ validateEvent: boolean;
55
55
  filterable: boolean;
56
56
  showAllCheckbox: boolean;
57
57
  targetOrder: import("./transfer").TargetOrder;
@@ -48,10 +48,10 @@ declare const __VLS_component: import("vue").DefineComponent<TransferProps, {
48
48
  data: TransferData[];
49
49
  height: number;
50
50
  size: import("./transfer").TransferSize;
51
- modelValue: TransferKey[];
52
- validateEvent: boolean;
53
51
  itemHeight: number;
54
52
  virtual: boolean;
53
+ modelValue: TransferKey[];
54
+ validateEvent: boolean;
55
55
  filterable: boolean;
56
56
  showAllCheckbox: boolean;
57
57
  targetOrder: import("./transfer").TargetOrder;
@@ -208,15 +208,15 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
208
208
  readonly emptyText: string;
209
209
  readonly showCheckbox: boolean;
210
210
  readonly nodeKey: string;
211
- readonly checkOnClickNode: boolean;
212
- readonly expandOnClickNode: boolean;
211
+ readonly checkboxPosition: "left" | "right";
213
212
  readonly defaultExpandAll: boolean;
214
213
  readonly defaultExpandedKeys: (string | number)[];
215
214
  readonly defaultCheckedKeys: (string | number)[];
216
- readonly accordion: boolean;
217
- readonly checkboxPosition: "left" | "right";
218
215
  readonly currentNodeKey: string | number;
219
216
  readonly highlightCurrent: boolean;
217
+ readonly accordion: boolean;
218
+ readonly expandOnClickNode: boolean;
219
+ readonly checkOnClickNode: boolean;
220
220
  readonly showLine: boolean;
221
221
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
222
222
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -208,15 +208,15 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
208
208
  readonly emptyText: string;
209
209
  readonly showCheckbox: boolean;
210
210
  readonly nodeKey: string;
211
- readonly checkOnClickNode: boolean;
212
- readonly expandOnClickNode: boolean;
211
+ readonly checkboxPosition: "left" | "right";
213
212
  readonly defaultExpandAll: boolean;
214
213
  readonly defaultExpandedKeys: (string | number)[];
215
214
  readonly defaultCheckedKeys: (string | number)[];
216
- readonly accordion: boolean;
217
- readonly checkboxPosition: "left" | "right";
218
215
  readonly currentNodeKey: string | number;
219
216
  readonly highlightCurrent: boolean;
217
+ readonly accordion: boolean;
218
+ readonly expandOnClickNode: boolean;
219
+ readonly checkOnClickNode: boolean;
220
220
  readonly showLine: boolean;
221
221
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
222
222
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -112,9 +112,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
112
112
  readonly popperClass: string;
113
113
  readonly placeholder: string;
114
114
  readonly lazy: boolean;
115
+ readonly virtual: boolean;
115
116
  readonly modelValue: TreeKey | TreeKey[];
116
117
  readonly clearable: boolean;
117
- readonly virtual: boolean;
118
118
  readonly filterable: boolean;
119
119
  readonly collapseTags: boolean;
120
120
  readonly collapseTagsTooltip: boolean;
@@ -125,12 +125,12 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
125
125
  readonly itemSize: number;
126
126
  readonly showCheckbox: boolean;
127
127
  readonly nodeKey: string;
128
- readonly checkOnClickNode: boolean;
129
- readonly expandOnClickNode: boolean;
130
128
  readonly defaultExpandAll: boolean;
131
129
  readonly defaultExpandedKeys: TreeKey[];
132
130
  readonly defaultCheckedKeys: TreeKey[];
133
131
  readonly accordion: boolean;
132
+ readonly expandOnClickNode: boolean;
133
+ readonly checkOnClickNode: boolean;
134
134
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
135
135
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
136
136
  export default _default;
@@ -112,9 +112,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
112
112
  readonly popperClass: string;
113
113
  readonly placeholder: string;
114
114
  readonly lazy: boolean;
115
+ readonly virtual: boolean;
115
116
  readonly modelValue: TreeKey | TreeKey[];
116
117
  readonly clearable: boolean;
117
- readonly virtual: boolean;
118
118
  readonly filterable: boolean;
119
119
  readonly collapseTags: boolean;
120
120
  readonly collapseTagsTooltip: boolean;
@@ -125,12 +125,12 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
125
125
  readonly itemSize: number;
126
126
  readonly showCheckbox: boolean;
127
127
  readonly nodeKey: string;
128
- readonly checkOnClickNode: boolean;
129
- readonly expandOnClickNode: boolean;
130
128
  readonly defaultExpandAll: boolean;
131
129
  readonly defaultExpandedKeys: TreeKey[];
132
130
  readonly defaultCheckedKeys: TreeKey[];
133
131
  readonly accordion: boolean;
132
+ readonly expandOnClickNode: boolean;
133
+ readonly checkOnClickNode: boolean;
134
134
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
135
135
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
136
136
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yh-ui/components",
3
- "version": "1.0.38",
3
+ "version": "1.0.42",
4
4
  "description": "YH-UI Vue 3 Components",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -45,10 +45,10 @@
45
45
  "dependencies": {
46
46
  "@webcontainer/api": "^1.6.1",
47
47
  "@floating-ui/dom": "^1.7.4",
48
- "@yh-ui/hooks": "^1.0.38",
49
- "@yh-ui/locale": "^1.0.38",
50
- "@yh-ui/theme": "^1.0.38",
51
- "@yh-ui/utils": "^1.0.38",
48
+ "@yh-ui/hooks": "^1.0.42",
49
+ "@yh-ui/locale": "^1.0.42",
50
+ "@yh-ui/theme": "^1.0.42",
51
+ "@yh-ui/utils": "^1.0.42",
52
52
  "async-validator": "^4.2.5",
53
53
  "dayjs": "^1.11.19",
54
54
  "dompurify": "^3.3.3"