star-horse-lowcode 3.1.10 → 3.1.12

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.
Files changed (36) hide show
  1. package/README.md +10 -0
  2. package/dist/assets/index.css +1 -1
  3. package/dist/components/comp/StarHorseJsonEditor.vue.d.ts +4 -4
  4. package/dist/components/comp/StarHorseSearchComp.vue.d.ts +20 -4
  5. package/dist/components/comp/StarHorseSearchForm.vue.d.ts +12 -2
  6. package/dist/components/comp/StarHorseStaticTable.vue.d.ts +1 -1
  7. package/dist/components/formcomp/utils/FieldList.vue.d.ts +4 -4
  8. package/dist/components/system/StarHorseQueryBuilder.vue.d.ts +271 -0
  9. package/dist/components/types/PageFieldInfo.d.ts +7 -8
  10. package/dist/components/types/SearchProps.d.ts +2 -3
  11. package/dist/index.es.js +6 -6
  12. package/dist/lang/en_US.d.ts +47 -0
  13. package/dist/lang/zh_CN.d.ts +47 -0
  14. package/dist/plugins/AblesPlugin.d.ts +1 -1
  15. package/dist/store/DesignForm.d.ts +75 -75
  16. package/dist/store/FormDataCache.d.ts +24 -12
  17. package/dist/store/StoreManager.d.ts +198 -174
  18. package/dist/types/components/comp/StarHorseJsonEditor.vue.d.ts +4 -4
  19. package/dist/types/components/comp/StarHorseSearchComp.vue.d.ts +20 -4
  20. package/dist/types/components/comp/StarHorseSearchForm.vue.d.ts +12 -2
  21. package/dist/types/components/formcomp/utils/FieldList.vue.d.ts +4 -4
  22. package/dist/types/components/system/StarHorseQueryBuilder.vue.d.ts +271 -0
  23. package/dist/types/components/system/StarHorseSvg.vue.d.ts +2 -2
  24. package/dist/types/components/system/code-editor/TabBar.vue.d.ts +2 -2
  25. package/dist/types/components/types/PageFieldInfo.d.ts +7 -8
  26. package/dist/types/components/types/SearchProps.d.ts +2 -3
  27. package/dist/types/lang/en_US.d.ts +47 -0
  28. package/dist/types/lang/zh_CN.d.ts +47 -0
  29. package/dist/types/plugins/AblesPlugin.d.ts +1 -1
  30. package/dist/types/sample/commonpage/dynamic_form_utils.d.ts +8 -0
  31. package/dist/types/store/DesignForm.d.ts +75 -75
  32. package/dist/types/store/FormDataCache.d.ts +24 -12
  33. package/dist/types/store/StoreManager.d.ts +198 -174
  34. package/dist/types/utils/preview.d.ts +2 -1
  35. package/dist/utils/preview.d.ts +2 -1
  36. package/package.json +13 -13
@@ -12,13 +12,13 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
12
12
  default: () => string[];
13
13
  };
14
14
  modelValue: {
15
- type: PropType<{}>;
15
+ type: PropType<any>;
16
16
  };
17
17
  }>, {
18
18
  editor: import('vue').Ref<any, any>;
19
19
  setEditorContent: (value: any) => void;
20
20
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
- "update:modelValue": (value: {}) => any;
21
+ "update:modelValue": (value: any) => any;
22
22
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
23
  options: {
24
24
  type: PropType<any>;
@@ -32,10 +32,10 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
32
32
  default: () => string[];
33
33
  };
34
34
  modelValue: {
35
- type: PropType<{}>;
35
+ type: PropType<any>;
36
36
  };
37
37
  }>> & Readonly<{
38
- "onUpdate:modelValue"?: (value: {}) => any;
38
+ "onUpdate:modelValue"?: (value: any) => any;
39
39
  }>, {
40
40
  currentMode: any;
41
41
  modeList: unknown[];
@@ -1,3 +1,6 @@
1
+ import { PropType } from 'vue';
2
+ import { SearchFields } from '../types/SearchProps';
3
+ import { SearchParams } from '../types/Params';
1
4
  declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
5
  dialogInput: {
3
6
  type: BooleanConstructor;
@@ -11,14 +14,20 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
11
14
  type: ObjectConstructor;
12
15
  };
13
16
  formData: {
14
- type: ObjectConstructor;
17
+ type: PropType<SearchFields>;
15
18
  required: true;
16
19
  };
17
20
  defaultCondition: {
18
- type: ArrayConstructor;
21
+ type: PropType<SearchParams[]>;
22
+ };
23
+ /** 是否展示「高级查询」入口,默认开启 */
24
+ showAdvanced: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
19
27
  };
20
28
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
29
  searchData: (...args: any[]) => void;
30
+ searchOrderBy: (...args: any[]) => void;
22
31
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
32
  dialogInput: {
24
33
  type: BooleanConstructor;
@@ -32,17 +41,24 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
32
41
  type: ObjectConstructor;
33
42
  };
34
43
  formData: {
35
- type: ObjectConstructor;
44
+ type: PropType<SearchFields>;
36
45
  required: true;
37
46
  };
38
47
  defaultCondition: {
39
- type: ArrayConstructor;
48
+ type: PropType<SearchParams[]>;
49
+ };
50
+ /** 是否展示「高级查询」入口,默认开启 */
51
+ showAdvanced: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
40
54
  };
41
55
  }>> & Readonly<{
42
56
  onSearchData?: (...args: any[]) => any;
57
+ onSearchOrderBy?: (...args: any[]) => any;
43
58
  }>, {
44
59
  dialogInput: boolean;
45
60
  mutComp: boolean;
61
+ showAdvanced: boolean;
46
62
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
47
63
  declare const _default: typeof __VLS_export;
48
64
  export default _default;
@@ -2,11 +2,15 @@ import { SearchParams } from '../types/Params';
2
2
  import { SearchFields } from '../types/SearchProps';
3
3
  type __VLS_Props = {
4
4
  formData: SearchFields;
5
- defaultCondition: SearchParams[];
5
+ defaultCondition?: SearchParams[];
6
6
  dialogInput: boolean;
7
7
  mutComp: boolean;
8
8
  };
9
- declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
9
+ declare var __VLS_115: {};
10
+ type __VLS_Slots = {} & {
11
+ 'action-append'?: (props: typeof __VLS_115) => any;
12
+ };
13
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
10
14
  searchForm: import('vue').Ref<any, any>;
11
15
  setData: (data: any) => void;
12
16
  createSearchParams: (formData: any) => any[];
@@ -20,5 +24,11 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
20
24
  dialogInput: boolean;
21
25
  mutComp: boolean;
22
26
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
23
28
  declare const _default: typeof __VLS_export;
24
29
  export default _default;
30
+ type __VLS_WithSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -89,8 +89,8 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
89
89
  type: ArrayConstructor;
90
90
  };
91
91
  }>> & Readonly<{}>, {
92
- dataFormat: Function;
93
92
  height: string;
93
+ dataFormat: Function;
94
94
  compSize: string;
95
95
  dialogInput: boolean;
96
96
  expand: boolean;
@@ -1,7 +1,7 @@
1
1
  type __VLS_Props = {
2
- showContainer: boolean;
3
- showFormItems: boolean;
4
- showThirdItems: boolean;
2
+ showContainer?: boolean;
3
+ showFormItems?: boolean;
4
+ showThirdItems?: boolean;
5
5
  };
6
6
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
7
  selectData: (...args: any[]) => void;
@@ -11,6 +11,6 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
11
11
  showContainer: boolean;
12
12
  showFormItems: boolean;
13
13
  showThirdItems: boolean;
14
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
15
15
  declare const _default: typeof __VLS_export;
16
16
  export default _default;
@@ -0,0 +1,271 @@
1
+ import { PropType } from 'vue';
2
+ import { SelectOption } from '../types/SearchProps';
3
+ declare var __VLS_73: {
4
+ item: any;
5
+ valueKey: string;
6
+ prop: any;
7
+ condition: any;
8
+ disabled: boolean;
9
+ }, __VLS_153: {
10
+ item: any;
11
+ valueKey: string;
12
+ prop: any;
13
+ condition: any;
14
+ disabled: boolean;
15
+ };
16
+ type __VLS_Slots = {} & {
17
+ 'value-input'?: (props: typeof __VLS_73) => any;
18
+ } & {
19
+ 'value-input'?: (props: typeof __VLS_153) => any;
20
+ };
21
+ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
22
+ /** Property name options for dropdown (SelectOption[] or string[]) */
23
+ properties: {
24
+ type: PropType<SelectOption[] | string[]>;
25
+ default: () => any[];
26
+ };
27
+ /** Alias options for table alias dropdown (e.g., [{name:'t', value:'t'}]) */
28
+ aliasOptions: {
29
+ type: PropType<SelectOption[] | string[]>;
30
+ default: () => any[];
31
+ };
32
+ /** Max nesting depth (default 3) */
33
+ maxDepth: {
34
+ type: NumberConstructor;
35
+ default: number;
36
+ };
37
+ /** Current depth (used internally for recursion) */
38
+ depth: {
39
+ type: NumberConstructor;
40
+ default: number;
41
+ };
42
+ /** Whether component is disabled */
43
+ disabled: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ /** Max height before scrollbar appears (CSS value, e.g. '400px', '50vh') */
48
+ maxHeight: {
49
+ type: StringConstructor;
50
+ default: string;
51
+ };
52
+ /** Placeholder text for property name */
53
+ propertyPlaceholder: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
57
+ /** Output key name for property field */
58
+ propertyName: {
59
+ type: StringConstructor;
60
+ default: string;
61
+ };
62
+ /** Output key name for value field */
63
+ valueName: {
64
+ type: StringConstructor;
65
+ default: string;
66
+ };
67
+ /** Output key name for condition field */
68
+ conditionName: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ };
72
+ /** Output key name for OR sub-list */
73
+ orConditionName: {
74
+ type: StringConstructor;
75
+ default: string;
76
+ };
77
+ /** Output key name for alias field */
78
+ aliasName: {
79
+ type: StringConstructor;
80
+ default: string;
81
+ };
82
+ /** Hide the alias column entirely (for single-table scenarios where alias is not part of the output format) */
83
+ hideAlias: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
87
+ /** Which tabs to show: 'all' or array of 'conditions','sort','aggregate' */
88
+ tabs: {
89
+ type: PropType<"all" | ("conditions" | "sort" | "aggregate")[]>;
90
+ default: string;
91
+ };
92
+ /** Output key name for sort field */
93
+ sortName: {
94
+ type: StringConstructor;
95
+ default: string;
96
+ };
97
+ /** Output key name for aggregate field */
98
+ aggName: {
99
+ type: StringConstructor;
100
+ default: string;
101
+ };
102
+ /** Sort items (use with v-model:sort-value or :sort-value) */
103
+ sortValue: {
104
+ type: PropType<any[]>;
105
+ default: any;
106
+ };
107
+ /** Aggregate items (use with v-model:agg-value or :agg-value) */
108
+ aggValue: {
109
+ type: PropType<any[]>;
110
+ default: any;
111
+ };
112
+ /** GroupBy items (part of aggregate query) */
113
+ groupByValue: {
114
+ type: PropType<any[]>;
115
+ default: any;
116
+ };
117
+ /** Having items (part of aggregate query) */
118
+ havingValue: {
119
+ type: PropType<any[]>;
120
+ default: any;
121
+ };
122
+ modelValue: {
123
+ type: PropType<any[]>;
124
+ };
125
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
126
+ "update:modelValue": (value: any[]) => any;
127
+ } & {
128
+ "update:sortValue": (val: any[]) => any;
129
+ "update:aggValue": (val: any[]) => any;
130
+ "update:groupByValue": (val: any[]) => any;
131
+ "update:havingValue": (val: any[]) => any;
132
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
133
+ /** Property name options for dropdown (SelectOption[] or string[]) */
134
+ properties: {
135
+ type: PropType<SelectOption[] | string[]>;
136
+ default: () => any[];
137
+ };
138
+ /** Alias options for table alias dropdown (e.g., [{name:'t', value:'t'}]) */
139
+ aliasOptions: {
140
+ type: PropType<SelectOption[] | string[]>;
141
+ default: () => any[];
142
+ };
143
+ /** Max nesting depth (default 3) */
144
+ maxDepth: {
145
+ type: NumberConstructor;
146
+ default: number;
147
+ };
148
+ /** Current depth (used internally for recursion) */
149
+ depth: {
150
+ type: NumberConstructor;
151
+ default: number;
152
+ };
153
+ /** Whether component is disabled */
154
+ disabled: {
155
+ type: BooleanConstructor;
156
+ default: boolean;
157
+ };
158
+ /** Max height before scrollbar appears (CSS value, e.g. '400px', '50vh') */
159
+ maxHeight: {
160
+ type: StringConstructor;
161
+ default: string;
162
+ };
163
+ /** Placeholder text for property name */
164
+ propertyPlaceholder: {
165
+ type: StringConstructor;
166
+ default: string;
167
+ };
168
+ /** Output key name for property field */
169
+ propertyName: {
170
+ type: StringConstructor;
171
+ default: string;
172
+ };
173
+ /** Output key name for value field */
174
+ valueName: {
175
+ type: StringConstructor;
176
+ default: string;
177
+ };
178
+ /** Output key name for condition field */
179
+ conditionName: {
180
+ type: StringConstructor;
181
+ default: string;
182
+ };
183
+ /** Output key name for OR sub-list */
184
+ orConditionName: {
185
+ type: StringConstructor;
186
+ default: string;
187
+ };
188
+ /** Output key name for alias field */
189
+ aliasName: {
190
+ type: StringConstructor;
191
+ default: string;
192
+ };
193
+ /** Hide the alias column entirely (for single-table scenarios where alias is not part of the output format) */
194
+ hideAlias: {
195
+ type: BooleanConstructor;
196
+ default: boolean;
197
+ };
198
+ /** Which tabs to show: 'all' or array of 'conditions','sort','aggregate' */
199
+ tabs: {
200
+ type: PropType<"all" | ("conditions" | "sort" | "aggregate")[]>;
201
+ default: string;
202
+ };
203
+ /** Output key name for sort field */
204
+ sortName: {
205
+ type: StringConstructor;
206
+ default: string;
207
+ };
208
+ /** Output key name for aggregate field */
209
+ aggName: {
210
+ type: StringConstructor;
211
+ default: string;
212
+ };
213
+ /** Sort items (use with v-model:sort-value or :sort-value) */
214
+ sortValue: {
215
+ type: PropType<any[]>;
216
+ default: any;
217
+ };
218
+ /** Aggregate items (use with v-model:agg-value or :agg-value) */
219
+ aggValue: {
220
+ type: PropType<any[]>;
221
+ default: any;
222
+ };
223
+ /** GroupBy items (part of aggregate query) */
224
+ groupByValue: {
225
+ type: PropType<any[]>;
226
+ default: any;
227
+ };
228
+ /** Having items (part of aggregate query) */
229
+ havingValue: {
230
+ type: PropType<any[]>;
231
+ default: any;
232
+ };
233
+ modelValue: {
234
+ type: PropType<any[]>;
235
+ };
236
+ }>> & Readonly<{
237
+ "onUpdate:modelValue"?: (value: any[]) => any;
238
+ "onUpdate:sortValue"?: (val: any[]) => any;
239
+ "onUpdate:aggValue"?: (val: any[]) => any;
240
+ "onUpdate:groupByValue"?: (val: any[]) => any;
241
+ "onUpdate:havingValue"?: (val: any[]) => any;
242
+ }>, {
243
+ disabled: boolean;
244
+ propertyName: string;
245
+ valueName: string;
246
+ aliasName: string;
247
+ properties: string[] | SelectOption[];
248
+ aliasOptions: string[] | SelectOption[];
249
+ maxDepth: number;
250
+ depth: number;
251
+ maxHeight: string;
252
+ propertyPlaceholder: string;
253
+ conditionName: string;
254
+ orConditionName: string;
255
+ hideAlias: boolean;
256
+ tabs: "all" | ("conditions" | "sort" | "aggregate")[];
257
+ sortName: string;
258
+ aggName: string;
259
+ sortValue: any[];
260
+ aggValue: any[];
261
+ groupByValue: any[];
262
+ havingValue: any[];
263
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
264
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
265
+ declare const _default: typeof __VLS_export;
266
+ export default _default;
267
+ type __VLS_WithSlots<T, S> = T & {
268
+ new (): {
269
+ $slots: S;
270
+ };
271
+ };
@@ -2,7 +2,6 @@ import { ApiUrls } from './ApiUrls';
2
2
  import { SearchParams } from './Params';
3
3
  import { RuleType } from './RuleType';
4
4
  import { SearchFields } from './SearchProps';
5
- import { Ref } from 'vue';
6
5
  /**
7
6
  * Tab 表单数据
8
7
  */
@@ -126,23 +125,23 @@ export declare interface FieldInfo {
126
125
  /**
127
126
  * 是否必须项
128
127
  */
129
- required?: boolean | Ref<boolean>;
128
+ required?: boolean;
130
129
  /**
131
130
  * 表单是否显示该属性
132
131
  */
133
- formVisible?: boolean | Ref<boolean>;
132
+ formVisible?: boolean;
134
133
  /**
135
134
  * 列表是否显示该属性
136
135
  */
137
- listVisible?: boolean | Ref<boolean>;
136
+ listVisible?: boolean;
138
137
  /**
139
138
  * 查看页面是否显示该属性
140
139
  */
141
- viewVisible?: boolean | Ref<boolean>;
140
+ viewVisible?: boolean;
142
141
  /**
143
142
  * app端是否可见
144
143
  */
145
- visiblePlatform?: string | Ref<string>;
144
+ visiblePlatform?: string;
146
145
  /**
147
146
  * 列表所在列最小宽度
148
147
  */
@@ -150,11 +149,11 @@ export declare interface FieldInfo {
150
149
  /**
151
150
  * 是否禁用,true 禁用 false 非禁用
152
151
  */
153
- disabled?: boolean | Ref<boolean>;
152
+ disabled?: boolean;
154
153
  /**
155
154
  * 编辑时禁用,true 禁用 false 非禁用
156
155
  */
157
- editDisabled?: boolean | Ref<boolean>;
156
+ editDisabled?: boolean;
158
157
  /**
159
158
  * Tab容器数据
160
159
  */
@@ -1,11 +1,10 @@
1
1
  import { CompParams } from './PageFieldInfo';
2
- import { Ref } from 'vue';
3
2
  export type SelectOption = {
4
3
  name?: string;
5
4
  value?: string | number;
6
5
  disabled?: string;
7
6
  helpMsg?: string;
8
- children?: SelectOption[] | Ref<SelectOption[]>;
7
+ children?: SelectOption[];
9
8
  };
10
9
  /**
11
10
  * 查询组件的属性
@@ -36,7 +35,7 @@ export type SearchProps = {
36
35
  /**
37
36
  * 废弃,请根据具体业务在preps 中添加 values 或者data
38
37
  */
39
- optionList?: SelectOption[] | Ref<SelectOption[]>;
38
+ optionList?: SelectOption[];
40
39
  };
41
40
  /**
42
41
  * 查询属性