orion-design 0.1.52 → 0.1.54

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. package/dist/components/Button/index.js +1 -1
  2. package/dist/components/Flex/Col.d.ts +5 -16
  3. package/dist/components/Flex/Item.d.ts +1 -15
  4. package/dist/components/Flex/Row.d.ts +5 -16
  5. package/dist/components/Flex/index.js +44 -51
  6. package/dist/components/Flex/index.js.map +1 -1
  7. package/dist/components/Form/FileInput/FileInput.vue.d.ts +4 -4
  8. package/dist/components/Form/Form.vue.d.ts +2 -2
  9. package/dist/components/Form/LovInput/LovInput.vue.d.ts +8 -8
  10. package/dist/components/Form/TableSelect/TableSelect.vue.d.ts +8 -8
  11. package/dist/components/Form/index.d.ts +1 -1
  12. package/dist/components/Form/index.js +1 -1
  13. package/dist/components/LovTable/LovPagetable.vue.d.ts +144 -504
  14. package/dist/components/LovTable/LovQuerytable.vue.d.ts +84 -356
  15. package/dist/components/LovTable/index.d.ts +114 -430
  16. package/dist/components/Pagetable/Pagetable.d.ts +43 -153
  17. package/dist/components/Pagetable/columns/PagetableCellButton.d.ts +5 -16
  18. package/dist/components/Pagetable/columns/PagetableColumnButtongroup.d.ts +23 -96
  19. package/dist/components/Pagetable/columns/PagetableColumnDate.d.ts +28 -120
  20. package/dist/components/Pagetable/columns/PagetableColumnDiy.d.ts +20 -83
  21. package/dist/components/Pagetable/columns/PagetableColumnLink.d.ts +23 -95
  22. package/dist/components/Pagetable/columns/PagetableColumnMultiselect.d.ts +33 -127
  23. package/dist/components/Pagetable/columns/PagetableColumnNumber.d.ts +29 -100
  24. package/dist/components/Pagetable/columns/PagetableColumnSingleselect.d.ts +33 -127
  25. package/dist/components/Pagetable/columns/PagetableColumnString.d.ts +22 -94
  26. package/dist/components/Pagetable/columns/PagetableColumngroup.d.ts +8 -29
  27. package/dist/components/Pagetable/hooks/useColumns.js +2 -2
  28. package/dist/components/Pagetable/hooks/useColumns.js.map +1 -1
  29. package/dist/components/Pagetable/hooks/usePagetable.d.ts +20 -16
  30. package/dist/components/Pagetable/hooks/usePagetable.js +33 -26
  31. package/dist/components/Pagetable/hooks/usePagetable.js.map +1 -1
  32. package/dist/components/Pagetable/index.d.ts +72 -216
  33. package/dist/components/Pagetable/index.js +526 -497
  34. package/dist/components/Pagetable/index.js.map +1 -1
  35. package/dist/components/Querytable/Querytable.d.ts +18 -78
  36. package/dist/components/Querytable/columns/QuerytableCellButton.d.ts +5 -16
  37. package/dist/components/Querytable/columns/QuerytableColumnButtongroup.d.ts +20 -83
  38. package/dist/components/Querytable/columns/QuerytableColumnDate.d.ts +26 -108
  39. package/dist/components/Querytable/columns/QuerytableColumnDiy.d.ts +17 -70
  40. package/dist/components/Querytable/columns/QuerytableColumnLink.d.ts +19 -81
  41. package/dist/components/Querytable/columns/QuerytableColumnMultiselect.d.ts +29 -113
  42. package/dist/components/Querytable/columns/QuerytableColumnNumber.d.ts +26 -87
  43. package/dist/components/Querytable/columns/QuerytableColumnSingleselect.d.ts +30 -114
  44. package/dist/components/Querytable/columns/QuerytableColumnString.d.ts +20 -82
  45. package/dist/components/Querytable/columns/QuerytableColumngroup.d.ts +8 -29
  46. package/dist/components/Querytable/hooks/useColumns.js +2 -2
  47. package/dist/components/Querytable/hooks/useColumns.js.map +1 -1
  48. package/dist/components/Querytable/index.d.ts +49 -157
  49. package/dist/components/Querytable/index.js +384 -367
  50. package/dist/components/Querytable/index.js.map +1 -1
  51. package/dist/components/RichTextEditor/RichTextEditor.d.ts +22 -48
  52. package/dist/components/RichTextEditor/index.d.ts +15 -34
  53. package/dist/components/RichTextEditor/index.js +31 -26
  54. package/dist/components/RichTextEditor/index.js.map +1 -1
  55. package/dist/components/Space/index.d.ts +11 -62
  56. package/dist/components/TableSelectPagetable/TableSelectPagetable.vue.d.ts +144 -504
  57. package/dist/components/TableSelectPagetable/index.d.ts +72 -252
  58. package/dist/components/Throne/ThroneContextProvider.d.ts +5 -16
  59. package/dist/components/_antd_util/camelize.d.ts +2 -0
  60. package/dist/components/_antd_util/camelize.js +8 -0
  61. package/dist/components/_antd_util/camelize.js.map +1 -0
  62. package/dist/components/_antd_util/classNames.js +24 -0
  63. package/dist/components/_antd_util/classNames.js.map +1 -0
  64. package/dist/components/_antd_util/index.d.ts +1 -0
  65. package/dist/components/_antd_util/index.js +14 -0
  66. package/dist/components/_antd_util/index.js.map +1 -0
  67. package/dist/components/_antd_util/isValid.js.map +1 -0
  68. package/dist/components/components.js +2 -2
  69. package/dist/components/index.js +3 -3
  70. package/dist/components-BZKLgLQx.js +54 -0
  71. package/dist/components-BZKLgLQx.js.map +1 -0
  72. package/dist/index-CvcZkdiG.js +46 -0
  73. package/dist/index-CvcZkdiG.js.map +1 -0
  74. package/dist/index.js +2 -2
  75. package/dist/version/version.d.ts +1 -1
  76. package/dist/version/version.js +1 -1
  77. package/dist/version/version.js.map +1 -1
  78. package/package.json +1 -1
  79. package/dist/components/Pagetable/interface.d.ts +0 -11
  80. package/dist/components/Pagetable/interface.js +0 -2
  81. package/dist/components/Pagetable/interface.js.map +0 -1
  82. package/dist/components/Querytable/interface.d.ts +0 -10
  83. package/dist/components/Querytable/interface.js +0 -2
  84. package/dist/components/Querytable/interface.js.map +0 -1
  85. package/dist/components/_util/classNames.js +0 -24
  86. package/dist/components/_util/classNames.js.map +0 -1
  87. package/dist/components/_util/isValid.js.map +0 -1
  88. package/dist/components/_util/props-util/index.d.ts +0 -6
  89. package/dist/components/_util/props-util/index.js +0 -26
  90. package/dist/components/_util/props-util/index.js.map +0 -1
  91. package/dist/components/_util/props-util/initDefaultProps.d.ts +0 -6
  92. package/dist/components/_util/props-util/initDefaultProps.js +0 -14
  93. package/dist/components/_util/props-util/initDefaultProps.js.map +0 -1
  94. package/dist/components/_util/type.d.ts +0 -66
  95. package/dist/components/_util/type.js +0 -53
  96. package/dist/components/_util/type.js.map +0 -1
  97. package/dist/components/_util/util.d.ts +0 -18
  98. package/dist/components/_util/util.js +0 -55
  99. package/dist/components/_util/util.js.map +0 -1
  100. package/dist/components/_util/vue-types/index.d.ts +0 -12
  101. package/dist/components/_util/vue-types/index.js +0 -331
  102. package/dist/components/_util/vue-types/index.js.map +0 -1
  103. package/dist/components-BvgQJQRM.js +0 -55
  104. package/dist/components-BvgQJQRM.js.map +0 -1
  105. package/dist/index-BbsXWo7C.js +0 -44
  106. package/dist/index-BbsXWo7C.js.map +0 -1
  107. /package/dist/components/{_util → _antd_util}/classNames.d.ts +0 -0
  108. /package/dist/components/{_util → _antd_util}/isValid.d.ts +0 -0
  109. /package/dist/components/{_util → _antd_util}/isValid.js +0 -0
@@ -6,36 +6,19 @@ declare const _default: import('../_util').SFCWithInstall<{
6
6
  }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
7
7
  div: HTMLDivElement;
8
8
  table: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
9
- data: {
10
- type: import('vue').PropType<any[]>;
11
- default: any[];
12
- };
13
- tailData: {
14
- type: import('vue').PropType<Record<string, any>>;
15
- default: Record<string, any>;
16
- };
17
- pagination: {
18
- type: import('vue').PropType<{
19
- currentPage?: number;
20
- pageSize?: number;
21
- pageSizes?: number[];
22
- total?: number;
23
- }>;
24
- default: {
25
- currentPage?: number;
26
- pageSize?: number;
27
- pageSizes?: number[];
28
- total?: number;
29
- };
30
- };
9
+ data: ArrayConstructor;
10
+ tailData: ObjectConstructor;
11
+ pagination: import('vue').PropType<{
12
+ currentPage?: number;
13
+ pageSize?: number;
14
+ pageSizes?: number[];
15
+ total?: number;
16
+ }>;
31
17
  paginationTeleported: {
32
18
  type: BooleanConstructor;
33
19
  default: boolean;
34
20
  };
35
- paginationPagerCount: {
36
- type: import('vue').PropType<number>;
37
- default: number;
38
- };
21
+ paginationPagerCount: NumberConstructor;
39
22
  paginationShowTotal: {
40
23
  type: BooleanConstructor;
41
24
  default: boolean;
@@ -60,70 +43,33 @@ declare const _default: import('../_util').SFCWithInstall<{
60
43
  type: BooleanConstructor;
61
44
  default: boolean;
62
45
  };
63
- size: {
64
- type: import('vue').PropType<"" | "small" | "default" | "large">;
65
- default: "" | "small" | "default" | "large";
66
- };
67
- rowClassName: {
68
- type: import('vue').PropType<string | ((data: {
69
- rowData: any;
70
- rowIndex: number;
71
- }) => string)>;
72
- default: string | ((data: {
73
- rowData: any;
74
- rowIndex: number;
75
- }) => string);
76
- };
77
- rowStyle: {
78
- type: import('vue').PropType<import('vue').CSSProperties | ((data: {
79
- rowData: any;
80
- rowIndex: number;
81
- }) => import('vue').CSSProperties)>;
82
- default: import('vue').CSSProperties | ((data: {
83
- rowData: any;
84
- rowIndex: number;
85
- }) => import('vue').CSSProperties);
86
- };
87
- cellClassName: {
88
- type: import('vue').PropType<string | ((data: {
89
- rowData: any;
90
- column: {
91
- name: string;
92
- head: string;
93
- };
94
- rowIndex: number;
95
- columnIndex: number;
96
- }) => string)>;
97
- default: string | ((data: {
98
- rowData: any;
99
- column: {
100
- name: string;
101
- head: string;
102
- };
103
- rowIndex: number;
104
- columnIndex: number;
105
- }) => string);
106
- };
107
- cellStyle: {
108
- type: import('vue').PropType<import('vue').CSSProperties | ((data: {
109
- rowData: any;
110
- column: {
111
- name: string;
112
- head: string;
113
- };
114
- rowIndex: number;
115
- columnIndex: number;
116
- }) => import('vue').CSSProperties)>;
117
- default: import('vue').CSSProperties | ((data: {
118
- rowData: any;
119
- column: {
120
- name: string;
121
- head: string;
122
- };
123
- rowIndex: number;
124
- columnIndex: number;
125
- }) => import('vue').CSSProperties);
126
- };
46
+ size: import('vue').PropType<"" | "large" | "default" | "small">;
47
+ rowClassName: import('vue').PropType<string | ((data: {
48
+ rowData: any;
49
+ rowIndex: number;
50
+ }) => string)>;
51
+ rowStyle: import('vue').PropType<import('vue').CSSProperties | ((data: {
52
+ rowData: any;
53
+ rowIndex: number;
54
+ }) => import('vue').CSSProperties)>;
55
+ cellClassName: import('vue').PropType<string | ((data: {
56
+ rowData: any;
57
+ column: {
58
+ name: string;
59
+ head: string;
60
+ };
61
+ rowIndex: number;
62
+ columnIndex: number;
63
+ }) => string)>;
64
+ cellStyle: import('vue').PropType<import('vue').CSSProperties | ((data: {
65
+ rowData: any;
66
+ column: {
67
+ name: string;
68
+ head: string;
69
+ };
70
+ rowIndex: number;
71
+ columnIndex: number;
72
+ }) => import('vue').CSSProperties)>;
127
73
  }>> & Readonly<{
128
74
  onSelect?: ((...args: any[]) => any) | undefined;
129
75
  "onSelect-all"?: ((...args: any[]) => any) | undefined;
@@ -136,49 +82,13 @@ declare const _default: import('../_util').SFCWithInstall<{
136
82
  onCellClick?: ((...args: any[]) => any) | undefined;
137
83
  onCellDblclick?: ((...args: any[]) => any) | undefined;
138
84
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("select" | "select-all" | "selectionChange" | "currentRowChange" | "update:pagination" | "paginationChange" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick")[], import('vue').PublicProps, {
139
- size: "" | "small" | "default" | "large";
140
- data: any[];
141
- pagination: {
142
- currentPage?: number;
143
- pageSize?: number;
144
- pageSizes?: number[];
145
- total?: number;
146
- };
147
- tailData: Record<string, any>;
148
85
  paginationTeleported: boolean;
149
- paginationPagerCount: number;
150
86
  paginationShowTotal: boolean;
151
87
  paginationShowSizes: boolean;
152
88
  paginationShowJumber: boolean;
153
89
  showRowNumber: boolean;
154
90
  selectionMode: boolean;
155
91
  currentRowMode: boolean;
156
- rowClassName: string | ((data: {
157
- rowData: any;
158
- rowIndex: number;
159
- }) => string);
160
- rowStyle: import('vue').CSSProperties | ((data: {
161
- rowData: any;
162
- rowIndex: number;
163
- }) => import('vue').CSSProperties);
164
- cellClassName: string | ((data: {
165
- rowData: any;
166
- column: {
167
- name: string;
168
- head: string;
169
- };
170
- rowIndex: number;
171
- columnIndex: number;
172
- }) => string);
173
- cellStyle: import('vue').CSSProperties | ((data: {
174
- rowData: any;
175
- column: {
176
- name: string;
177
- head: string;
178
- };
179
- rowIndex: number;
180
- columnIndex: number;
181
- }) => import('vue').CSSProperties);
182
92
  }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
183
93
  P: {};
184
94
  B: {};
@@ -187,36 +97,19 @@ declare const _default: import('../_util').SFCWithInstall<{
187
97
  M: {};
188
98
  Defaults: {};
189
99
  }, Readonly<import('vue').ExtractPropTypes<{
190
- data: {
191
- type: import('vue').PropType<any[]>;
192
- default: any[];
193
- };
194
- tailData: {
195
- type: import('vue').PropType<Record<string, any>>;
196
- default: Record<string, any>;
197
- };
198
- pagination: {
199
- type: import('vue').PropType<{
200
- currentPage?: number;
201
- pageSize?: number;
202
- pageSizes?: number[];
203
- total?: number;
204
- }>;
205
- default: {
206
- currentPage?: number;
207
- pageSize?: number;
208
- pageSizes?: number[];
209
- total?: number;
210
- };
211
- };
100
+ data: ArrayConstructor;
101
+ tailData: ObjectConstructor;
102
+ pagination: import('vue').PropType<{
103
+ currentPage?: number;
104
+ pageSize?: number;
105
+ pageSizes?: number[];
106
+ total?: number;
107
+ }>;
212
108
  paginationTeleported: {
213
109
  type: BooleanConstructor;
214
110
  default: boolean;
215
111
  };
216
- paginationPagerCount: {
217
- type: import('vue').PropType<number>;
218
- default: number;
219
- };
112
+ paginationPagerCount: NumberConstructor;
220
113
  paginationShowTotal: {
221
114
  type: BooleanConstructor;
222
115
  default: boolean;
@@ -241,70 +134,33 @@ declare const _default: import('../_util').SFCWithInstall<{
241
134
  type: BooleanConstructor;
242
135
  default: boolean;
243
136
  };
244
- size: {
245
- type: import('vue').PropType<"" | "small" | "default" | "large">;
246
- default: "" | "small" | "default" | "large";
247
- };
248
- rowClassName: {
249
- type: import('vue').PropType<string | ((data: {
250
- rowData: any;
251
- rowIndex: number;
252
- }) => string)>;
253
- default: string | ((data: {
254
- rowData: any;
255
- rowIndex: number;
256
- }) => string);
257
- };
258
- rowStyle: {
259
- type: import('vue').PropType<import('vue').CSSProperties | ((data: {
260
- rowData: any;
261
- rowIndex: number;
262
- }) => import('vue').CSSProperties)>;
263
- default: import('vue').CSSProperties | ((data: {
264
- rowData: any;
265
- rowIndex: number;
266
- }) => import('vue').CSSProperties);
267
- };
268
- cellClassName: {
269
- type: import('vue').PropType<string | ((data: {
270
- rowData: any;
271
- column: {
272
- name: string;
273
- head: string;
274
- };
275
- rowIndex: number;
276
- columnIndex: number;
277
- }) => string)>;
278
- default: string | ((data: {
279
- rowData: any;
280
- column: {
281
- name: string;
282
- head: string;
283
- };
284
- rowIndex: number;
285
- columnIndex: number;
286
- }) => string);
287
- };
288
- cellStyle: {
289
- type: import('vue').PropType<import('vue').CSSProperties | ((data: {
290
- rowData: any;
291
- column: {
292
- name: string;
293
- head: string;
294
- };
295
- rowIndex: number;
296
- columnIndex: number;
297
- }) => import('vue').CSSProperties)>;
298
- default: import('vue').CSSProperties | ((data: {
299
- rowData: any;
300
- column: {
301
- name: string;
302
- head: string;
303
- };
304
- rowIndex: number;
305
- columnIndex: number;
306
- }) => import('vue').CSSProperties);
307
- };
137
+ size: import('vue').PropType<"" | "large" | "default" | "small">;
138
+ rowClassName: import('vue').PropType<string | ((data: {
139
+ rowData: any;
140
+ rowIndex: number;
141
+ }) => string)>;
142
+ rowStyle: import('vue').PropType<import('vue').CSSProperties | ((data: {
143
+ rowData: any;
144
+ rowIndex: number;
145
+ }) => import('vue').CSSProperties)>;
146
+ cellClassName: import('vue').PropType<string | ((data: {
147
+ rowData: any;
148
+ column: {
149
+ name: string;
150
+ head: string;
151
+ };
152
+ rowIndex: number;
153
+ columnIndex: number;
154
+ }) => string)>;
155
+ cellStyle: import('vue').PropType<import('vue').CSSProperties | ((data: {
156
+ rowData: any;
157
+ column: {
158
+ name: string;
159
+ head: string;
160
+ };
161
+ rowIndex: number;
162
+ columnIndex: number;
163
+ }) => import('vue').CSSProperties)>;
308
164
  }>> & Readonly<{
309
165
  onSelect?: ((...args: any[]) => any) | undefined;
310
166
  "onSelect-all"?: ((...args: any[]) => any) | undefined;
@@ -317,49 +173,13 @@ declare const _default: import('../_util').SFCWithInstall<{
317
173
  onCellClick?: ((...args: any[]) => any) | undefined;
318
174
  onCellDblclick?: ((...args: any[]) => any) | undefined;
319
175
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
320
- size: "" | "small" | "default" | "large";
321
- data: any[];
322
- pagination: {
323
- currentPage?: number;
324
- pageSize?: number;
325
- pageSizes?: number[];
326
- total?: number;
327
- };
328
- tailData: Record<string, any>;
329
176
  paginationTeleported: boolean;
330
- paginationPagerCount: number;
331
177
  paginationShowTotal: boolean;
332
178
  paginationShowSizes: boolean;
333
179
  paginationShowJumber: boolean;
334
180
  showRowNumber: boolean;
335
181
  selectionMode: boolean;
336
182
  currentRowMode: boolean;
337
- rowClassName: string | ((data: {
338
- rowData: any;
339
- rowIndex: number;
340
- }) => string);
341
- rowStyle: import('vue').CSSProperties | ((data: {
342
- rowData: any;
343
- rowIndex: number;
344
- }) => import('vue').CSSProperties);
345
- cellClassName: string | ((data: {
346
- rowData: any;
347
- column: {
348
- name: string;
349
- head: string;
350
- };
351
- rowIndex: number;
352
- columnIndex: number;
353
- }) => string);
354
- cellStyle: import('vue').CSSProperties | ((data: {
355
- rowData: any;
356
- column: {
357
- name: string;
358
- head: string;
359
- };
360
- rowIndex: number;
361
- columnIndex: number;
362
- }) => import('vue').CSSProperties);
363
183
  }> | null;
364
184
  }, any, import('vue').ComponentProvideOptions, {
365
185
  P: {};
@@ -1,25 +1,14 @@
1
- import { PropType, ExtractPropTypes } from 'vue';
1
+ import { ExtractPropTypes } from 'vue';
2
2
  export declare const throneContextProviderProps: () => {
3
- context: {
4
- type: PropType<Record<string, any>>;
5
- default: Record<string, any>;
6
- };
3
+ context: ObjectConstructor;
7
4
  };
8
5
  export type ThroneContextProviderProps = Partial<ExtractPropTypes<ReturnType<typeof throneContextProviderProps>>>;
9
6
  export type ThroneContextProviderContext = Partial<ThroneContextProviderProps>;
10
7
  declare const _default: import('../_util').SFCWithInstall<import('vue').DefineComponent<ExtractPropTypes<{
11
- context: {
12
- type: PropType<Record<string, any>>;
13
- default: Record<string, any>;
14
- };
8
+ context: ObjectConstructor;
15
9
  }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
16
10
  [key: string]: any;
17
11
  }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
18
- context: {
19
- type: PropType<Record<string, any>>;
20
- default: Record<string, any>;
21
- };
22
- }>> & Readonly<{}>, {
23
- context: Record<string, any>;
24
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>> & {};
12
+ context: ObjectConstructor;
13
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>> & {};
25
14
  export default _default;
@@ -0,0 +1,2 @@
1
+ declare const camelize: (str: any) => any;
2
+ export default camelize;
@@ -0,0 +1,8 @@
1
+ const n = (t) => {
2
+ const c = /* @__PURE__ */ Object.create(null);
3
+ return (e) => c[e] || (c[e] = t(e));
4
+ }, a = /-(\w)/g, o = n((t) => t.replace(a, (c, e) => e ? e.toUpperCase() : ""));
5
+ export {
6
+ o as default
7
+ };
8
+ //# sourceMappingURL=camelize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"camelize.js","sources":["../../../src/components/_antd_util/camelize.ts"],"sourcesContent":["const cacheStringFunction = (fn) => {\r\n const cache = Object.create(null)\r\n return (str) => {\r\n const hit = cache[str]\r\n return hit || (cache[str] = fn(str))\r\n }\r\n}\r\n\r\nconst camelizeRE = /-(\\w)/g\r\nconst camelize = cacheStringFunction((str) => {\r\n return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''))\r\n})\r\n\r\nexport default camelize\r\n"],"names":["cacheStringFunction","fn","cache","str","camelizeRE","camelize","_","c"],"mappings":"AAAA,MAAMA,IAAsB,CAACC,MAAO;AAC5B,QAAAC,IAAe,uBAAA,OAAO,IAAI;AAChC,SAAO,CAACC,MACMD,EAAMC,CAAG,MACND,EAAMC,CAAG,IAAIF,EAAGE,CAAG;AAEtC,GAEMC,IAAa,UACbC,IAAWL,EAAoB,CAACG,MAC7BA,EAAI,QAAQC,GAAY,CAACE,GAAGC,MAAOA,IAAIA,EAAE,YAAY,IAAI,EAAG,CACpE;"}
@@ -0,0 +1,24 @@
1
+ const r = Array.isArray, c = (n) => typeof n == "string", f = (n) => n !== null && typeof n == "object";
2
+ function l(...n) {
3
+ const e = [];
4
+ for (let i = 0; i < n.length; i++) {
5
+ const s = n[i];
6
+ if (s) {
7
+ if (c(s))
8
+ e.push(s);
9
+ else if (r(s))
10
+ for (let t = 0; t < s.length; t++) {
11
+ const o = l(s[t]);
12
+ o && e.push(o);
13
+ }
14
+ else if (f(s))
15
+ for (const t in s)
16
+ s[t] && e.push(t);
17
+ }
18
+ }
19
+ return e.join(" ");
20
+ }
21
+ export {
22
+ l as default
23
+ };
24
+ //# sourceMappingURL=classNames.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"classNames.js","sources":["../../../src/components/_antd_util/classNames.ts"],"sourcesContent":["const isArray = Array.isArray\r\n\r\nconst isString = (val) => typeof val === 'string'\r\n\r\nconst isObject = (val) => val !== null && typeof val === 'object'\r\n\r\nfunction classNames(...args: any[]) {\r\n const classes = []\r\n for (let i = 0; i < args.length; i++) {\r\n const value = args[i]\r\n if (!value) continue\r\n if (isString(value)) {\r\n // @ts-ignore\r\n classes.push(value)\r\n } else if (isArray(value)) {\r\n for (let i = 0; i < value.length; i++) {\r\n const inner = classNames(value[i])\r\n if (inner) {\r\n // @ts-ignore\r\n classes.push(inner)\r\n }\r\n }\r\n } else if (isObject(value)) {\r\n for (const name in value) {\r\n if (value[name]) {\r\n // @ts-ignore\r\n classes.push(name)\r\n }\r\n }\r\n }\r\n }\r\n return classes.join(' ')\r\n}\r\n\r\nexport default classNames\r\n"],"names":["isArray","isString","val","isObject","classNames","args","classes","value","i","inner","name"],"mappings":"AAAA,MAAMA,IAAU,MAAM,SAEhBC,IAAW,CAACC,MAAQ,OAAOA,KAAQ,UAEnCC,IAAW,CAACD,MAAQA,MAAQ,QAAQ,OAAOA,KAAQ;AAEzD,SAASE,KAAcC,GAAa;AAClC,QAAMC,IAAU,CAAA;AAChB,WAAS,IAAI,GAAG,IAAID,EAAK,QAAQ,KAAK;AAC9B,UAAAE,IAAQF,EAAK,CAAC;AACpB,QAAKE;AACD,UAAAN,EAASM,CAAK;AAEhB,QAAAD,EAAQ,KAAKC,CAAK;AAAA,eACTP,EAAQO,CAAK;AACtB,iBAASC,IAAI,GAAGA,IAAID,EAAM,QAAQC,KAAK;AACrC,gBAAMC,IAAQL,EAAWG,EAAMC,CAAC,CAAC;AACjC,UAAIC,KAEFH,EAAQ,KAAKG,CAAK;AAAA,QAEtB;AAAA,eACSN,EAASI,CAAK;AACvB,mBAAWG,KAAQH;AACb,UAAAA,EAAMG,CAAI,KAEZJ,EAAQ,KAAKI,CAAI;AAAA;AAAA,EAIzB;AACO,SAAAJ,EAAQ,KAAK,GAAG;AACzB;"}
@@ -0,0 +1 @@
1
+ export declare function filterEmpty(children?: never[]): never[];
@@ -0,0 +1,14 @@
1
+ import { Fragment as n, Comment as p, Text as m } from "vue";
2
+ function s(t = []) {
3
+ const r = [];
4
+ return t.forEach((e) => {
5
+ Array.isArray(e) ? r.push(...e) : (e == null ? void 0 : e.type) === n ? r.push(...s(e.children)) : r.push(e);
6
+ }), r.filter((e) => !f(e));
7
+ }
8
+ function f(t) {
9
+ return t && (t.type === p || t.type === n && t.children.length === 0 || t.type === m && t.children.trim() === "");
10
+ }
11
+ export {
12
+ s as filterEmpty
13
+ };
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/_antd_util/index.ts"],"sourcesContent":["import { isVNode, Fragment, Comment, Text } from 'vue'\r\nimport isValid from './isValid'\r\n\r\nconst skipFlattenKey = Symbol('skipFlatten')\r\n\r\nconst flattenChildren = (children = [], filterEmpty = true) => {\r\n const temp = Array.isArray(children) ? children : [children]\r\n const res = []\r\n temp.forEach((child) => {\r\n if (Array.isArray(child)) {\r\n res.push(...flattenChildren(child, filterEmpty))\r\n // @ts-ignore\r\n } else if (child && child.type === Fragment) {\r\n // @ts-ignore\r\n if (child.key === skipFlattenKey) {\r\n res.push(child)\r\n } else {\r\n // @ts-ignore\r\n res.push(...flattenChildren(child.children, filterEmpty))\r\n }\r\n } else if (child && isVNode(child)) {\r\n if (filterEmpty && !isEmptyElement(child)) {\r\n res.push(child)\r\n } else if (!filterEmpty) {\r\n res.push(child)\r\n }\r\n } else if (isValid(child)) {\r\n res.push(child)\r\n }\r\n })\r\n return res\r\n}\r\n\r\nexport function filterEmpty(children = []) {\r\n const res = []\r\n children.forEach((child) => {\r\n if (Array.isArray(child)) {\r\n // @ts-ignore\r\n res.push(...child)\r\n // @ts-ignore\r\n } else if (child?.type === Fragment) {\r\n // @ts-ignore\r\n res.push(...filterEmpty(child.children))\r\n } else {\r\n res.push(child)\r\n }\r\n })\r\n return res.filter((c) => !isEmptyElement(c))\r\n}\r\n\r\nfunction isEmptyElement(c: any) {\r\n return c && (c.type === Comment || (c.type === Fragment && c.children.length === 0) || (c.type === Text && c.children.trim() === ''))\r\n}\r\n"],"names":["filterEmpty","children","res","child","Fragment","c","isEmptyElement","Comment","Text"],"mappings":";AAiCgB,SAAAA,EAAYC,IAAW,IAAI;AACzC,QAAMC,IAAM,CAAA;AACH,SAAAD,EAAA,QAAQ,CAACE,MAAU;AACtB,IAAA,MAAM,QAAQA,CAAK,IAEjBD,EAAA,KAAK,GAAGC,CAAK,KAERA,KAAA,gBAAAA,EAAO,UAASC,IAEzBF,EAAI,KAAK,GAAGF,EAAYG,EAAM,QAAQ,CAAC,IAEvCD,EAAI,KAAKC,CAAK;AAAA,EAChB,CACD,GACMD,EAAI,OAAO,CAACG,MAAM,CAACC,EAAeD,CAAC,CAAC;AAC7C;AAEA,SAASC,EAAeD,GAAQ;AAC9B,SAAOA,MAAMA,EAAE,SAASE,KAAYF,EAAE,SAASD,KAAYC,EAAE,SAAS,WAAW,KAAOA,EAAE,SAASG,KAAQH,EAAE,SAAS,WAAW;AACnI;"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isValid.js","sources":["../../../src/components/_antd_util/isValid.ts"],"sourcesContent":["const isValid = (value: any): boolean => {\r\n return value !== undefined && value !== null && value !== ''\r\n}\r\nexport default isValid\r\n"],"names":["isValid","value"],"mappings":"AAAM,MAAAA,IAAU,CAACC,MACeA,KAAU,QAAQA,MAAU;"}
@@ -1,6 +1,6 @@
1
1
  import { default as r } from "./Button/index.js";
2
- import { T as t } from "../components-BvgQJQRM.js";
3
- import { S as l } from "../index-BbsXWo7C.js";
2
+ import { T as t } from "../components-BZKLgLQx.js";
3
+ import { S as l } from "../index-CvcZkdiG.js";
4
4
  import { Colflex as m, Flexitem as p, Rowflex as s } from "./Flex/index.js";
5
5
  import { default as u } from "./Card/index.js";
6
6
  import { default as T } from "./Tabs/index.js";
@@ -1,5 +1,5 @@
1
- import { c as t } from "../components-BvgQJQRM.js";
2
- import { T as x } from "../components-BvgQJQRM.js";
1
+ import { c as t } from "../components-BZKLgLQx.js";
2
+ import { T as x } from "../components-BZKLgLQx.js";
3
3
  import { default as p } from "./Modal/index.js";
4
4
  import { default as n } from "./Form/index.js";
5
5
  import { OTree as c, OTree as b } from "./Tree/index.js";
@@ -7,7 +7,7 @@ import { OMessage as g } from "./Message/index.js";
7
7
  import { OMessageBox as C } from "./MessageBox/index.js";
8
8
  import { default as P, pagetableProps as v } from "./Pagetable/index.js";
9
9
  import { default as M } from "./Button/index.js";
10
- import { S as L } from "../index-BbsXWo7C.js";
10
+ import { S as L } from "../index-CvcZkdiG.js";
11
11
  import { Colflex as B, Flexitem as F, Rowflex as K } from "./Flex/index.js";
12
12
  import { default as j } from "./Card/index.js";
13
13
  import { default as w } from "./Tabs/index.js";
@@ -0,0 +1,54 @@
1
+ import r from "./components/Button/index.js";
2
+ import { defineComponent as t, renderSlot as m } from "vue";
3
+ import { provideThroneContext as n } from "./Throne/hooks/use-throne-context.js";
4
+ import "lodash-es";
5
+ import { withInstall as i } from "./components/_util/vue/install.js";
6
+ import "element-plus";
7
+ import { S as p } from "./index-CvcZkdiG.js";
8
+ import { Colflex as f, Flexitem as a, Rowflex as l } from "./components/Flex/index.js";
9
+ import d from "./components/Card/index.js";
10
+ import x from "./components/Tabs/index.js";
11
+ import s from "./components/Pagetable/index.js";
12
+ import c from "./components/Querytable/index.js";
13
+ import b from "./components/Modal/index.js";
14
+ import T from "./components/Form/index.js";
15
+ import { LovPagetable as u, LovQuerytable as P } from "./components/LovTable/index.js";
16
+ import v from "./components/TableSelectPagetable/index.js";
17
+ import C from "./components/Icon/index.js";
18
+ import { OTree as h } from "./components/Tree/index.js";
19
+ const $ = () => ({
20
+ context: Object
21
+ }), S = /* @__PURE__ */ t({
22
+ name: "OThroneContextProvider",
23
+ inheritAttrs: !1,
24
+ props: $(),
25
+ setup(o, {
26
+ slots: e
27
+ }) {
28
+ return n(o), () => m(e, "default");
29
+ }
30
+ }), g = i(S), G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31
+ __proto__: null,
32
+ Button: r,
33
+ Card: d,
34
+ Colflex: f,
35
+ Flexitem: a,
36
+ Form: T,
37
+ Icon: C,
38
+ LovPagetable: u,
39
+ LovQuerytable: P,
40
+ Modal: b,
41
+ Pagetable: s,
42
+ Querytable: c,
43
+ Rowflex: l,
44
+ Space: p,
45
+ TableSelectPagetable: v,
46
+ Tabs: x,
47
+ ThroneContextProvider: g,
48
+ Tree: h
49
+ }, Symbol.toStringTag, { value: "Module" }));
50
+ export {
51
+ g as T,
52
+ G as c
53
+ };
54
+ //# sourceMappingURL=components-BZKLgLQx.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components-BZKLgLQx.js","sources":["../src/components/Throne/ThroneContextProvider.tsx"],"sourcesContent":["import { defineComponent, renderSlot } from 'vue'\r\nimport type { ExtractPropTypes } from 'vue'\r\n\r\nimport { provideThroneContext } from '../../Throne/hooks/use-throne-context'\r\n\r\nimport { withInstall } from '../_util'\r\n\r\nexport const throneContextProviderProps = () => ({\r\n context: Object,\r\n})\r\n\r\nexport type ThroneContextProviderProps = Partial<ExtractPropTypes<ReturnType<typeof throneContextProviderProps>>>\r\n\r\nexport type ThroneContextProviderContext = Partial<ThroneContextProviderProps>\r\n\r\nconst ThroneContextProvider = defineComponent({\r\n name: 'OThroneContextProvider',\r\n inheritAttrs: false,\r\n props: throneContextProviderProps(),\r\n setup(props, { slots }) {\r\n provideThroneContext(props)\r\n return () => {\r\n return renderSlot(slots, 'default')\r\n }\r\n },\r\n})\r\n\r\nexport default withInstall<typeof ThroneContextProvider, {}>(ThroneContextProvider)\r\n"],"names":["throneContextProviderProps","context","Object","ThroneContextProvider","defineComponent","name","inheritAttrs","props","setup","slots","provideThroneContext","renderSlot","withInstall"],"mappings":";;;;;;;;;;;;;;;;;;AAOO,MAAMA,IAA6BA,OAAO;AAAA,EAC/CC,SAASC;AACX,IAMMC,IAAwBC,gBAAAA,EAAgB;AAAA,EAC5CC,MAAM;AAAA,EACNC,cAAc;AAAA,EACdC,OAAOP,EAA4B;AAAA,EACnCQ,MAAMD,GAAO;AAAA,IAAEE,OAAAA;AAAAA,EAAM,GAAG;AACtBC,WAAAA,EAAqBH,CAAK,GACnB,MACEI,EAAWF,GAAO,SAAS;AAAA,EAEtC;AACF,CAAC,GAEcG,IAAAA,EAA8CT,CAAqB;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,46 @@
1
+ import { defineComponent as p, computed as m, createVNode as a } from "vue";
2
+ import { filterEmpty as u } from "./components/_antd_util/index.js";
3
+ import "lodash-es";
4
+ import { withInstall as f } from "./components/_util/vue/install.js";
5
+ import "element-plus";
6
+ const g = () => ({
7
+ gutter: [Boolean, String],
8
+ vertical: [Boolean, String]
9
+ }), d = /* @__PURE__ */ p({
10
+ name: "OSpace",
11
+ inheritAttrs: !1,
12
+ props: g(),
13
+ slots: Object,
14
+ setup(e, {
15
+ slots: r,
16
+ attrs: n,
17
+ emit: S,
18
+ expose: v
19
+ }) {
20
+ const s = m(() => {
21
+ const {
22
+ vertical: t
23
+ } = e;
24
+ return ["orion-space", {
25
+ vertical: t === !0 || t === ""
26
+ }];
27
+ });
28
+ return () => {
29
+ var i;
30
+ const t = (i = r.default) == null ? void 0 : i.call(r), o = u(t);
31
+ if (o.length === 0)
32
+ return null;
33
+ const c = {};
34
+ return typeof e.gutter == "string" && e.gutter && (c.gap = e.gutter), a("div", {
35
+ class: [s.value, n.class],
36
+ style: [c, n.style]
37
+ }, [o.map((l) => a("div", {
38
+ class: ["orion-space-item"]
39
+ }, [l]))]);
40
+ };
41
+ }
42
+ }), j = f(d, {});
43
+ export {
44
+ j as S
45
+ };
46
+ //# sourceMappingURL=index-CvcZkdiG.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-CvcZkdiG.js","sources":["../src/components/Space/index.tsx"],"sourcesContent":["import { computed, defineComponent } from 'vue'\r\nimport type { SlotsType, ExtractPropTypes, CSSProperties } from 'vue'\r\nimport { filterEmpty } from '../_antd_util'\r\nimport { withInstall } from '../_util'\r\n\r\nexport const spaceProps = () => ({\r\n gutter: [Boolean, String],\r\n vertical: [Boolean, String],\r\n})\r\n\r\nexport type SpaceProps = Partial<ExtractPropTypes<ReturnType<typeof spaceProps>>>\r\n\r\nconst Space = defineComponent({\r\n name: 'OSpace',\r\n inheritAttrs: false,\r\n props: spaceProps(),\r\n slots: Object as SlotsType<{\r\n default?: any\r\n }>,\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const classes = computed(() => {\r\n const { vertical } = props\r\n\r\n return ['orion-space', { [`vertical`]: vertical === true || vertical === '' }]\r\n })\r\n\r\n return () => {\r\n const children = slots.default?.()\r\n const items = filterEmpty(children)\r\n const len = items.length\r\n\r\n if (len === 0) {\r\n return null\r\n }\r\n\r\n const gapStyle: CSSProperties = {}\r\n if (typeof props.gutter == 'string' && props.gutter) {\r\n gapStyle.gap = props.gutter\r\n }\r\n\r\n return (\r\n <div class={[classes.value, attrs.class]} style={[gapStyle, attrs.style as CSSProperties]}>\r\n {items.map((child) => {\r\n return <div class={['orion-space-item']}>{child}</div>\r\n })}\r\n </div>\r\n )\r\n }\r\n },\r\n})\r\n\r\nexport default withInstall<typeof Space, {}>(Space, {})\r\n"],"names":["spaceProps","gutter","Boolean","String","vertical","Space","defineComponent","name","inheritAttrs","props","slots","Object","setup","attrs","emit","expose","classes","computed","children","default","items","filterEmpty","length","gapStyle","gap","_createVNode","value","class","style","map","child","Space$1","withInstall"],"mappings":";;;;;AAKO,MAAMA,IAAaA,OAAO;AAAA,EAC/BC,QAAQ,CAACC,SAASC,MAAM;AAAA,EACxBC,UAAU,CAACF,SAASC,MAAM;AAC5B,IAIME,IAAQC,gBAAAA,EAAgB;AAAA,EAC5BC,MAAM;AAAA,EACNC,cAAc;AAAA,EACdC,OAAOT,EAAY;AAAA,EACnBU,OAAOC;AAAAA,EAGPC,MAAMH,GAAO;AAAA,IAAEC,OAAAA;AAAAA,IAAOG,OAAAA;AAAAA,IAAOC,MAAAA;AAAAA,IAAMC,QAAAA;AAAAA,EAAO,GAAG;AAC3C,UAAMC,IAAUC,EAAS,MAAM;AAC7B,YAAM;AAAA,QAAEb,UAAAA;AAAAA,MAAU,IAAGK;AAErB,aAAO,CAAC,eAAe;AAAA,QAAG,UAAaL,MAAa,MAAQA,MAAa;AAAA,MAAG,CAAC;AAAA,IAC/E,CAAC;AAED,WAAO,MAAM;;AACX,YAAMc,KAAWR,IAAAA,EAAMS,YAANT,gBAAAA,EAAAA,KAAAA,IACXU,IAAQC,EAAYH,CAAQ;AAGlC,UAFYE,EAAME,WAEN;AACV,eAAO;AAGT,YAAMC,IAA0B,CAAA;AAChC,aAAI,OAAOd,EAAMR,UAAU,YAAYQ,EAAMR,WAC3CsB,EAASC,MAAMf,EAAMR,SAGvBwB,EAAA,OAAA;AAAA,QAAA,OACc,CAACT,EAAQU,OAAOb,EAAMc,KAAK;AAAA,QAAC,OAAS,CAACJ,GAAUV,EAAMe,KAAK;AAAA,MAAkB,GAAA,CACtFR,EAAMS,IAAKC,CAAAA,MACVL,EAAA,OAAA;AAAA,QAAA,OAAmB,CAAC,kBAAkB;AAAA,MAAC,GAAA,CAAGK,CAAK,CAAA,CAChD,CAAC,CAAA;AAAA;EAIV;AACF,CAAC,GAEDC,IAAeC,EAA8B3B,GAAO,EAAE;"}