@farris/ui-vue 1.3.1 → 1.3.4

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 (269) hide show
  1. package/components/accordion/index.esm.js +103 -99
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +301 -351
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/binding-selector/index.esm.js +444 -0
  6. package/components/binding-selector/index.umd.cjs +1 -0
  7. package/components/binding-selector/package.json +8 -0
  8. package/components/border-editor/index.esm.js +5 -3
  9. package/components/border-editor/index.umd.cjs +1 -1
  10. package/components/button-edit/index.esm.js +143 -139
  11. package/components/button-edit/index.umd.cjs +1 -1
  12. package/components/calendar/index.esm.js +407 -396
  13. package/components/calendar/index.umd.cjs +1 -1
  14. package/components/capsule/index.esm.js +266 -255
  15. package/components/capsule/index.umd.cjs +1 -1
  16. package/components/checkbox/index.esm.js +628 -641
  17. package/components/checkbox/index.umd.cjs +1 -1
  18. package/components/color-picker/index.esm.js +379 -374
  19. package/components/color-picker/index.umd.cjs +2 -2
  20. package/components/combo-list/index.esm.js +471 -471
  21. package/components/combo-list/index.umd.cjs +1 -1
  22. package/components/combo-tree/index.esm.js +155 -148
  23. package/components/combo-tree/index.umd.cjs +1 -1
  24. package/components/common/index.esm.js +487 -478
  25. package/components/common/index.umd.cjs +1 -1
  26. package/components/component/index.esm.js +330 -279
  27. package/components/component/index.umd.cjs +1 -1
  28. package/components/condition/index.esm.js +1175 -1280
  29. package/components/condition/index.umd.cjs +1 -1
  30. package/components/content-container/index.esm.js +220 -204
  31. package/components/content-container/index.umd.cjs +1 -1
  32. package/components/data-grid/index.esm.js +4658 -4555
  33. package/components/data-grid/index.umd.cjs +1 -1
  34. package/components/data-view/index.esm.js +2891 -2994
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.esm.js +2375 -2590
  37. package/components/date-picker/index.umd.cjs +1 -1
  38. package/components/designer-canvas/index.css +1 -1
  39. package/components/designer-canvas/index.esm.js +9912 -1191
  40. package/components/designer-canvas/index.umd.cjs +1 -1
  41. package/components/designer-outline/index.esm.js +2 -1
  42. package/components/designer-outline/index.umd.cjs +1 -1
  43. package/components/drawer/index.esm.js +34 -38
  44. package/components/drawer/index.umd.cjs +1 -1
  45. package/components/dropdown/index.esm.js +149 -138
  46. package/components/dropdown/index.umd.cjs +2 -2
  47. package/components/dynamic-form/index.esm.js +1595 -1725
  48. package/components/dynamic-form/index.umd.cjs +1 -1
  49. package/components/dynamic-resolver/index.esm.js +159 -151
  50. package/components/dynamic-resolver/index.umd.cjs +1 -1
  51. package/components/dynamic-view/index.esm.js +218 -218
  52. package/components/dynamic-view/index.umd.cjs +1 -1
  53. package/components/event-parameter/index.esm.js +355 -0
  54. package/components/event-parameter/index.umd.cjs +1 -0
  55. package/components/event-parameter/package.json +8 -0
  56. package/components/events-editor/index.css +1 -1
  57. package/components/events-editor/index.esm.js +622 -633
  58. package/components/events-editor/index.umd.cjs +1 -1
  59. package/components/expression-editor/index.esm.js +95 -91
  60. package/components/expression-editor/index.umd.cjs +1 -1
  61. package/components/external-container/index.esm.js +2079 -2178
  62. package/components/external-container/index.umd.cjs +1 -1
  63. package/components/field-selector/index.esm.js +3062 -3322
  64. package/components/field-selector/index.umd.cjs +1 -1
  65. package/components/filter-bar/index.css +1 -1
  66. package/components/filter-bar/index.esm.js +10581 -3225
  67. package/components/filter-bar/index.umd.cjs +1 -1
  68. package/components/flow-canvas/index.css +1 -1
  69. package/components/flow-canvas/index.esm.js +10182 -1327
  70. package/components/flow-canvas/index.umd.cjs +1 -1
  71. package/components/image-cropper/index.esm.js +353 -341
  72. package/components/image-cropper/index.umd.cjs +1 -1
  73. package/components/input-group/index.esm.js +510 -827
  74. package/components/input-group/index.umd.cjs +1 -1
  75. package/components/layout/index.esm.js +278 -268
  76. package/components/layout/index.umd.cjs +1 -1
  77. package/components/list-nav/index.esm.js +144 -136
  78. package/components/list-nav/index.umd.cjs +1 -1
  79. package/components/list-view/index.esm.js +1909 -2007
  80. package/components/list-view/index.umd.cjs +1 -1
  81. package/components/lookup/index.esm.js +6292 -6244
  82. package/components/lookup/index.umd.cjs +1 -1
  83. package/components/mapping-editor/index.esm.js +5165 -5062
  84. package/components/mapping-editor/index.umd.cjs +1 -1
  85. package/components/message-box/index.esm.js +252 -252
  86. package/components/message-box/index.umd.cjs +1 -1
  87. package/components/modal/index.esm.js +70 -70
  88. package/components/modal/index.umd.cjs +1 -1
  89. package/components/nav/index.esm.js +486 -984
  90. package/components/nav/index.umd.cjs +3 -3
  91. package/components/number-range/index.esm.js +446 -498
  92. package/components/number-range/index.umd.cjs +1 -1
  93. package/components/number-spinner/index.esm.js +363 -388
  94. package/components/number-spinner/index.umd.cjs +1 -1
  95. package/components/order/index.esm.js +1050 -1308
  96. package/components/order/index.umd.cjs +1 -1
  97. package/components/page-footer/index.esm.js +134 -131
  98. package/components/page-footer/index.umd.cjs +1 -1
  99. package/components/page-header/index.esm.js +1072 -1082
  100. package/components/page-header/index.umd.cjs +1 -1
  101. package/components/pagination/index.esm.js +412 -910
  102. package/components/pagination/index.umd.cjs +1 -1
  103. package/components/progress/index.esm.js +214 -203
  104. package/components/progress/index.umd.cjs +3 -3
  105. package/components/property-editor/index.esm.js +1361 -1536
  106. package/components/property-editor/index.umd.cjs +2 -2
  107. package/components/property-panel/index.css +1 -1
  108. package/components/property-panel/index.esm.js +650 -677
  109. package/components/property-panel/index.umd.cjs +1 -1
  110. package/components/query-solution/index.css +1 -1
  111. package/components/query-solution/index.esm.js +12607 -5080
  112. package/components/query-solution/index.umd.cjs +6 -1
  113. package/components/radio-button/index.esm.js +97 -97
  114. package/components/radio-button/index.umd.cjs +1 -1
  115. package/components/radio-group/index.css +1 -1
  116. package/components/radio-group/index.esm.js +1821 -565
  117. package/components/radio-group/index.umd.cjs +1 -1
  118. package/components/rate/index.esm.js +251 -244
  119. package/components/rate/index.umd.cjs +1 -1
  120. package/components/response-layout/index.esm.js +151 -140
  121. package/components/response-layout/index.umd.cjs +1 -1
  122. package/components/response-layout-editor/index.esm.js +707 -676
  123. package/components/response-layout-editor/index.umd.cjs +1 -1
  124. package/components/response-toolbar/index.esm.js +719 -740
  125. package/components/response-toolbar/index.umd.cjs +1 -1
  126. package/components/schema-selector/index.esm.js +5002 -5272
  127. package/components/schema-selector/index.umd.cjs +2 -2
  128. package/components/search-box/index.esm.js +145 -134
  129. package/components/search-box/index.umd.cjs +1 -1
  130. package/components/section/index.esm.js +2128 -427
  131. package/components/section/index.umd.cjs +1 -1
  132. package/components/smoke-detector/index.esm.js +141 -130
  133. package/components/smoke-detector/index.umd.cjs +1 -1
  134. package/components/splitter/index.esm.js +311 -301
  135. package/components/splitter/index.umd.cjs +1 -1
  136. package/components/step/index.esm.js +231 -220
  137. package/components/step/index.umd.cjs +1 -1
  138. package/components/switch/index.esm.js +385 -432
  139. package/components/switch/index.umd.cjs +1 -1
  140. package/components/tabs/index.esm.js +2223 -2203
  141. package/components/tabs/index.umd.cjs +1 -1
  142. package/components/tags/index.esm.js +351 -340
  143. package/components/tags/index.umd.cjs +1 -1
  144. package/components/text/index.esm.js +209 -199
  145. package/components/text/index.umd.cjs +1 -1
  146. package/components/textarea/index.esm.js +399 -421
  147. package/components/textarea/index.umd.cjs +1 -1
  148. package/components/time-picker/index.esm.js +619 -666
  149. package/components/time-picker/index.umd.cjs +1 -1
  150. package/components/transfer/index.esm.js +493 -486
  151. package/components/transfer/index.umd.cjs +1 -1
  152. package/components/tree-grid/index.esm.js +2992 -3101
  153. package/components/tree-grid/index.umd.cjs +1 -1
  154. package/components/tree-view/index.esm.js +2350 -2448
  155. package/components/tree-view/index.umd.cjs +1 -1
  156. package/components/uploader/index.esm.js +563 -554
  157. package/components/uploader/index.umd.cjs +2 -2
  158. package/components/verify-detail/index.esm.js +287 -276
  159. package/components/verify-detail/index.umd.cjs +1 -1
  160. package/components/video/index.esm.js +368 -324
  161. package/components/video/index.umd.cjs +1 -1
  162. package/components/weather/index.esm.js +498 -487
  163. package/components/weather/index.umd.cjs +5 -5
  164. package/farris.all.esm.js +46910 -42804
  165. package/farris.all.umd.cjs +14 -9
  166. package/index.css +1 -1
  167. package/package.json +1 -1
  168. package/types/binding-selector/index.d.ts +55 -0
  169. package/types/binding-selector/src/binding-selector.component.d.ts +11 -0
  170. package/types/binding-selector/src/binding-selector.props.d.ts +52 -0
  171. package/types/binding-selector/src/components/binding-selector-container.component.d.ts +13 -0
  172. package/types/binding-selector/src/composition/use-field-selection.d.ts +9 -0
  173. package/types/combo-list/src/components/list-container.component.d.ts +6 -6
  174. package/types/combo-list/src/components/list-container.props.d.ts +1 -1
  175. package/types/combo-tree/src/components/tree-container.component.d.ts +5 -5
  176. package/types/common/entity/entity-schema.d.ts +26 -11
  177. package/types/common/index.d.ts +1 -0
  178. package/types/common/types.d.ts +2 -2
  179. package/types/condition/src/condition-fields.design.component.d.ts +18 -0
  180. package/types/condition/src/types.d.ts +6 -6
  181. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +20 -0
  182. package/types/data-grid/src/{designer/data-grid-column.props.d.ts → data-grid-column.props.d.ts} +1 -1
  183. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  184. package/types/data-grid/src/designer/grid-field-editor.component.d.ts +14 -14
  185. package/types/data-grid/src/schema/schema-resolver.d.ts +1 -1
  186. package/types/data-view/composition/types.d.ts +2 -2
  187. package/types/date-picker/src/components/calendar/calendar.component.d.ts +3 -3
  188. package/types/date-picker/src/components/month/month.component.d.ts +3 -3
  189. package/types/date-picker/src/components/year/year.component.d.ts +3 -3
  190. package/types/designer-canvas/index.d.ts +2 -1
  191. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  192. package/types/designer-canvas/src/composition/function/drag-resolve.d.ts +5 -0
  193. package/types/designer-canvas/src/composition/types.d.ts +49 -40
  194. package/types/designer-canvas/src/types.d.ts +8 -20
  195. package/types/dynamic-form/index.d.ts +1 -1
  196. package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +2 -0
  197. package/types/dynamic-form/src/schema/{schema-resolver.d.ts → response-form-schema-resolver.d.ts} +1 -1
  198. package/types/dynamic-form/src/types.d.ts +1 -1
  199. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +5 -0
  200. package/types/dynamic-resolver/src/converter/row-number.converter.d.ts +3 -0
  201. package/types/entity-binding-selector/composition/use-entity-tree.d.ts +18 -0
  202. package/types/entity-binding-selector/composition/use-field-tree.d.ts +28 -0
  203. package/types/entity-binding-selector/entity-binding-selector.component.d.ts +11 -0
  204. package/types/entity-binding-selector/entity-binding-selector.props.d.ts +3 -0
  205. package/types/enum-editor/src/components/enum-editor-container.component.d.ts +3 -3
  206. package/types/enum-editor/src/enum-editor.component.d.ts +3 -3
  207. package/types/event-parameter/index.d.ts +31 -0
  208. package/types/event-parameter/src/composition/type.d.ts +77 -0
  209. package/types/event-parameter/src/composition/use-editor-combotree.d.ts +3 -0
  210. package/types/event-parameter/src/composition/use-editor-input.d.ts +3 -0
  211. package/types/event-parameter/src/composition/use-editor-select.d.ts +3 -0
  212. package/types/event-parameter/src/composition/use-editor-switch.d.ts +3 -0
  213. package/types/event-parameter/src/composition/use-editor.d.ts +3 -0
  214. package/types/event-parameter/src/composition/use-general-editor.d.ts +26 -0
  215. package/types/event-parameter/src/event-parameter.component.d.ts +8 -0
  216. package/types/event-parameter/src/event-parameter.props.d.ts +34 -0
  217. package/types/events-editor/src/composition/types.d.ts +1 -1
  218. package/types/external-container/src/designer/import-external-schema.component.d.ts +1 -1
  219. package/types/field-selector/src/field-selector.component.d.ts +1 -2
  220. package/types/field-selector/src/field-selector.props.d.ts +0 -9
  221. package/types/input-group/src/designer/use-input-group-rules.d.ts +1 -2
  222. package/types/list-view/src/designer/list-view-table.design.component.d.ts +15 -0
  223. package/types/list-view/src/list-view-table.component.d.ts +15 -0
  224. package/types/lookup/src/composition/use-user-data.d.ts +2 -2
  225. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -6
  226. package/types/modal/src/composition/modal.service.d.ts +2 -1
  227. package/types/page-header/src/designer/page-header.design.component.d.ts +1 -1
  228. package/types/page-header/src/page-header.component.d.ts +1 -1
  229. package/types/property-panel/index.d.ts +2 -1
  230. package/types/property-panel/src/composition/entity/property-entity.d.ts +1 -1
  231. package/types/property-panel/src/composition/type.d.ts +0 -13
  232. package/types/query-solution/src/composition/types.d.ts +90 -4
  233. package/types/query-solution/src/composition/use-condition.d.ts +19 -0
  234. package/types/query-solution/src/composition/use-header.d.ts +21 -0
  235. package/types/query-solution/src/composition/{use-filter.d.ts → use-http.d.ts} +2 -2
  236. package/types/query-solution/src/composition/use-solution.d.ts +20 -0
  237. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +18 -16
  238. package/types/query-solution/src/designer/query-solution-config/converter/query-solution-config-property.converter.d.ts +4 -0
  239. package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +14 -14
  240. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +3 -51
  241. package/types/query-solution/src/query-solution.d.ts +10 -2
  242. package/types/radio-group/src/designer/item-collection-editor-inner.component.d.ts +29 -0
  243. package/types/radio-group/src/designer/item-collection-editor.component.d.ts +29 -0
  244. package/types/radio-group/src/designer/item-collection-editor.props.d.ts +21 -0
  245. package/types/radio-group/src/schema/schema-mapper.d.ts +1 -0
  246. package/types/radio-group/src/schema/schema-resolver.d.ts +1 -0
  247. package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -0
  248. package/types/section/index.d.ts +15 -0
  249. package/types/section/src/designer/section-header.design.component.d.ts +4 -0
  250. package/types/section/src/designer/section-toolbar-item.props.d.ts +19 -0
  251. package/types/section/src/designer/section-toolbar.design.component.d.ts +3 -0
  252. package/types/section/src/property-config/section.property-config.d.ts +17 -17
  253. package/types/section/src/schema/schema-resolver.d.ts +1 -2
  254. package/types/section/src/schema/toolbar-resolver.d.ts +1 -1
  255. package/types/tabs/src/composition/types.d.ts +4 -1
  256. package/types/tabs/src/property-config/tab-page.property-config.d.ts +9 -59
  257. package/types/tabs/src/property-config/tabs.property-config.d.ts +8 -71
  258. package/types/tabs/src/schema/schema-resolver.d.ts +1 -2
  259. package/types/text/src/composition/types.d.ts +4 -4
  260. package/types/textarea/src/property-config/textarea.property-config.d.ts +23 -0
  261. package/types/weather/src/composition/use-weather-charts.d.ts +15 -0
  262. package/types/weather/src/composition/use-weather-color.d.ts +15 -0
  263. package/types/weather/src/composition/use-weather-data.d.ts +15 -0
  264. package/types/weather/src/composition/use-weather-format-number.d.ts +15 -0
  265. package/types/property-panel/src/composition/entity/use-input-rules.d.ts +0 -3
  266. package/types/tree-grid/src/schema/column-resolver.d.ts +0 -3
  267. package/types/weather/src/composition/types.d.ts +0 -2
  268. /package/types/dynamic-form/src/designer/{use-designer-rules.d.ts → response-form-use-designer-rules.d.ts} +0 -0
  269. /package/types/dynamic-form/src/property-config/{form.property-config.d.ts → response-form.property-config.d.ts} +0 -0
@@ -6,8 +6,8 @@ export interface LookupUserData {
6
6
  size?: Record<string, any>;
7
7
  }
8
8
  export interface UserDataState {
9
- key?: string;
10
- data?: LookupUserData;
9
+ key: string;
10
+ data: LookupUserData;
11
11
  favoriteItems?: any[];
12
12
  }
13
13
  export declare const LOOKUP_USER_DATA_SERVICE = "F_LOOKUP_USER_DATA_SERVICE";
@@ -130,10 +130,8 @@ export declare class LookupPropertyConfig extends InputBaseProperty {
130
130
  type: string;
131
131
  editor: {
132
132
  type: string;
133
- bindingType: {
134
- enable: boolean;
135
- };
136
133
  textField: string;
134
+ idField: string;
137
135
  editorParams: {
138
136
  propertyData: any;
139
137
  formBasicInfo: any;
@@ -159,10 +157,8 @@ export declare class LookupPropertyConfig extends InputBaseProperty {
159
157
  };
160
158
  editor: {
161
159
  type: string;
162
- bindingType: {
163
- enable: boolean;
164
- };
165
160
  textField: string;
161
+ idField: string;
166
162
  editorParams: {
167
163
  propertyData: any;
168
164
  formBasicInfo: any;
@@ -7,7 +7,8 @@ export default class ModalService {
7
7
  private modalRefs;
8
8
  private isUseEscCloseModal;
9
9
  private activeModalInstance;
10
- constructor(currentApp?: App);
10
+ private app;
11
+ constructor(currentApp: App);
11
12
  getCurrentModal(): any;
12
13
  static show(options: ModalOptions): App<any>;
13
14
  open(options: ModalOptions): ModalFunctions;
@@ -1,6 +1,6 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
2
  [x: string]: any;
3
- }, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "Click"[], "Click", import("vue").PublicProps, Readonly<{
3
+ }, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<{
4
4
  [x: string]: any;
5
5
  }> & Readonly<{
6
6
  onClick?: ((...args: any[]) => any) | undefined;
@@ -1,6 +1,6 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
2
  [x: string]: any;
3
- }, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("Click" | "PrePaginationClick" | "NextPaginationClick")[], "Click" | "PrePaginationClick" | "NextPaginationClick", import("vue").PublicProps, Readonly<{
3
+ }, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "prePaginationClick" | "nextPaginationClick")[], "click" | "prePaginationClick" | "nextPaginationClick", import("vue").PublicProps, Readonly<{
4
4
  [x: string]: any;
5
5
  }> & Readonly<{
6
6
  onClick?: ((...args: any[]) => any) | undefined;
@@ -16,10 +16,11 @@
16
16
  import type { App } from 'vue';
17
17
  import FPropertyPanel from './src/property-panel.component';
18
18
  import { BaseControlProperty } from './src/composition/entity/base-property';
19
+ import { SchemaDOMMapping } from './src/composition/entity/schema-dom-mapping';
19
20
  export * from './src/composition/props/property-panel-item.props';
20
21
  export * from './src/composition/props/property-panel.props';
21
22
  export * from './src/composition/type';
22
- export { FPropertyPanel, BaseControlProperty };
23
+ export { FPropertyPanel, BaseControlProperty, SchemaDOMMapping };
23
24
  declare const _default: {
24
25
  install(app: App): void;
25
26
  };
@@ -34,7 +34,7 @@ export interface PropertyEntity {
34
34
  /**
35
35
  * 是否可见,默认true
36
36
  */
37
- visible?: () => boolean;
37
+ visible: boolean | (() => boolean);
38
38
  /**
39
39
  * 最小值
40
40
  */
@@ -56,19 +56,6 @@ export interface FormUnifiedColumnLayout {
56
56
  uniqueColClassInLG: number;
57
57
  uniqueColClassInEL: number;
58
58
  }
59
- /**
60
- * dom Json ViewModel 节点中states实体
61
- */
62
- export declare class FormVariable {
63
- id: string;
64
- code: string;
65
- name: string;
66
- value?: any;
67
- type: string;
68
- category: string;
69
- fields?: any[];
70
- defaultValue?: any;
71
- }
72
59
  export interface IPropertyConfig {
73
60
  getPropertyConfig(propertyData: any, eventsEditorUtils: any): any;
74
61
  }
@@ -1,8 +1,94 @@
1
- import { FieldConfig } from '../../../condition';
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
2
16
  import { QuerySolution } from '../query-solution';
3
- export interface UseFilter {
17
+ import { JSX } from "vue/jsx-runtime";
18
+ import { AxiosResponse } from 'axios';
19
+ export declare enum ValueType {
4
20
  /**
5
- * 切换单选按钮事件
21
+ *值类型
6
22
  */
7
- filterCondition: (fields: FieldConfig[], solutions: QuerySolution[]) => QuerySolution[];
23
+ Value = 0,
24
+ /**
25
+ * 表达式
26
+ */
27
+ Express = 1
28
+ }
29
+ export declare enum RelationType {
30
+ Empty = 0,
31
+ /**
32
+ * 与
33
+ */
34
+ And = 1,
35
+ /**
36
+ * 或
37
+ */
38
+ Or = 2
39
+ }
40
+ /**
41
+ * 比较符
42
+ */
43
+ export declare enum CompareType {
44
+ Equal = 0,
45
+ NotEqual = 1,
46
+ Greater = 2,
47
+ GreaterOrEqual = 3,
48
+ Less = 4,
49
+ LessOrEqual = 5,
50
+ Like = 6,
51
+ LikeStartWith = 7,
52
+ LikeEndWith = 8,
53
+ NotLike = 9,
54
+ NotLikeStartWith = 10,
55
+ NotLikeEndWith = 11,
56
+ Is = 12,
57
+ IsNot = 13,
58
+ In = 14,
59
+ NotIn = 15
60
+ }
61
+ export type TransferItme = {
62
+ id: string;
63
+ name: string;
64
+ };
65
+ export type QueryItem = {
66
+ FilterField: string;
67
+ Compare: CompareType;
68
+ Value: any;
69
+ Relation: RelationType;
70
+ Expresstype: ValueType;
71
+ Lbracket?: string;
72
+ Rbracket?: string;
73
+ };
74
+ export interface UseSolution {
75
+ /**
76
+ * 生成默认筛选方案
77
+ */
78
+ getDefaultSolution: () => QuerySolution;
79
+ loadAllSolution: () => void;
80
+ getGuid: () => string;
81
+ handleQuery: () => void;
82
+ }
83
+ export interface UseHeader {
84
+ renderHeader: () => JSX.Element;
85
+ }
86
+ export interface UseCondition {
87
+ getFilterConditions: (condition: any) => QueryItem[];
88
+ }
89
+ export interface UseHttp {
90
+ createSolution: (solution: any) => Promise<AxiosResponse<any, any>>;
91
+ loadSolution: () => Promise<AxiosResponse<any, any>>;
92
+ updateSolution: (solution: any) => Promise<AxiosResponse<any, any>>;
93
+ getAuth: (type: string) => Promise<AxiosResponse<any, any>>;
8
94
  }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { UseCondition } from './types';
17
+ import { SetupContext } from 'vue';
18
+ import { QuerySolutionProps } from '../query-solution.props';
19
+ export declare function useCondition(props: QuerySolutionProps, context: SetupContext): UseCondition;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { UseHeader, UseHttp, UseSolution } from './types';
17
+ import { Ref, SetupContext } from 'vue';
18
+ import { QuerySolutionProps } from '../query-solution.props';
19
+ import { QuerySolution } from '../query-solution';
20
+ import { FieldConfig } from '../../../condition';
21
+ export declare function useHeader(props: QuerySolutionProps, context: SetupContext, useHttpComposition: UseHttp, useSolutionComposition: UseSolution, solutions: Ref<QuerySolution[]>, currentSolution: Ref<QuerySolution | null>, fields: Ref<FieldConfig[]>): UseHeader;
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { UseFilter } from './types';
16
+ import { UseHttp } from './types';
17
17
  import { SetupContext } from 'vue';
18
18
  import { QuerySolutionProps } from '../query-solution.props';
19
- export declare function useFilter(props: QuerySolutionProps, context: SetupContext): UseFilter;
19
+ export declare function useHttp(props: QuerySolutionProps, context: SetupContext): UseHttp;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { UseHttp, UseSolution } from './types';
17
+ import { Ref, SetupContext } from 'vue';
18
+ import { QuerySolutionProps } from '../query-solution.props';
19
+ import { QuerySolution } from '../query-solution';
20
+ export declare function useSolution(props: QuerySolutionProps, context: SetupContext, useHttpComposition: UseHttp, solutions: Ref<QuerySolution[]>, currentSolution: Ref<QuerySolution | null>): UseSolution;
@@ -16,7 +16,7 @@
16
16
  import { Ref } from "vue";
17
17
  import { TransFerItem } from '../query-solution-config.props';
18
18
  import { JSX } from "vue/jsx-runtime";
19
- export type ControlType = 'text' | 'single-number' | 'number' | 'dropdown' | 'help' | 'combolist-help' | 'date' | 'single-date' | 'date-time' | 'single-date-time' | 'month' | 'single-year' | 'radio' | 'input-group';
19
+ export type ControlType = 'number-spinner' | 'number-range' | 'combo-list' | 'lookup' | 'combo-lookup' | 'date-range' | 'date-picker' | 'radio-group' | 'input-group';
20
20
  export interface UseTransfer {
21
21
  selectPanels: Ref<TransFerItem[]>;
22
22
  /**
@@ -27,20 +27,6 @@ export interface UseTransfer {
27
27
  confirm: () => void;
28
28
  cancel: () => void;
29
29
  }
30
- export interface UsePanel {
31
- renderPanel: () => JSX.Element | null;
32
- getExtendSchemaProerty: (controlType: ControlType) => Partial<PropertyItem>;
33
- }
34
- export interface UseProperty {
35
- getPropertyConfig: (propertyData: PropertyItem) => PropertyConfig;
36
- }
37
- export interface PropertyConfig {
38
- description: string;
39
- title: string;
40
- type: string;
41
- readonly?: boolean;
42
- categories: any;
43
- }
44
30
  export interface PropertyItem {
45
31
  id: string;
46
32
  code: string;
@@ -48,12 +34,13 @@ export interface PropertyItem {
48
34
  name: string;
49
35
  isExtend?: string;
50
36
  controlType: ControlType;
51
- className?: string;
37
+ class?: string;
52
38
  require?: boolean;
53
39
  precision?: number;
54
40
  maxValue?: number;
55
41
  minValue?: number;
56
42
  uri?: string;
43
+ displayName?: string;
57
44
  multiSelect?: boolean;
58
45
  valueType?: Array<any>;
59
46
  enumValue?: string;
@@ -74,5 +61,20 @@ export interface PropertyItem {
74
61
  format?: string;
75
62
  horizontal?: boolean;
76
63
  showLabel?: boolean;
64
+ data?: Array<any>;
77
65
  [prop: string]: any;
78
66
  }
67
+ export interface PropertyConfig {
68
+ description: string;
69
+ title: string;
70
+ type: string;
71
+ readonly?: boolean;
72
+ categories: any;
73
+ }
74
+ export interface UsePanel {
75
+ renderPanel: () => JSX.Element | null;
76
+ getExtendSchemaProerty: (controlType: ControlType, schemaField: any) => Partial<PropertyItem>;
77
+ }
78
+ export interface UseProperty {
79
+ getPropertyConfig: (propertyData: PropertyItem) => PropertyConfig;
80
+ }
@@ -0,0 +1,4 @@
1
+ export declare const queryEnumDefaultConverter: {
2
+ convertFrom: (schema: Record<string, any>, propertyKey: string) => any;
3
+ convertTo: (schema: Record<string, any>, propertyKey: string, propertyValue: any) => void;
4
+ };
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
16
  import { ExtractPropTypes } from 'vue';
17
17
  export type TransFerItem = {
18
18
  id: string;
@@ -1,60 +1,12 @@
1
1
  import { InputBaseProperty } from "../../../property-panel/src/composition/entity/input-base-property";
2
2
  import { DesignerComponentInstance } from "../../../designer-canvas/src/types";
3
- import { PropertyItem } from "../designer/query-solution-config/composition/types";
4
3
  export declare class QuerySolutionPropertyConfig extends InputBaseProperty {
5
4
  getPropertyConfig(propertyData: any, componentInstance: DesignerComponentInstance): {
6
5
  type: string;
7
- categories: {
8
- basic: any;
9
- appearance: any;
10
- behavior: {
11
- description: string;
12
- title: string;
13
- properties: {
14
- isControlInline: {
15
- description: string;
16
- type: string;
17
- title: string;
18
- };
19
- presetQuerySolutionName: {
20
- description: string;
21
- type: string;
22
- title: string;
23
- };
24
- filterText: {
25
- description: string;
26
- type: string;
27
- title: string;
28
- };
29
- expanded: {
30
- description: string;
31
- type: string;
32
- title: string;
33
- };
34
- openAdvancedMode: {
35
- description: string;
36
- type: string;
37
- title: string;
38
- };
39
- };
40
- };
41
- lookup: {
42
- description: string;
43
- title: string;
44
- properties: {
45
- fields: {
46
- description: string;
47
- title: string;
48
- type: string;
49
- editor: {
50
- type: string;
51
- fields: PropertyItem[];
52
- };
53
- };
54
- };
55
- };
56
- };
6
+ categories: {};
57
7
  };
8
+ getBasicPropConfig(): void;
58
9
  private getBehaviorConfig;
59
10
  private getQuerySolutionConfig;
11
+ private getEventPropConfig;
60
12
  }
@@ -7,6 +7,10 @@ export interface QuerySolution {
7
7
  * 唯一性标识
8
8
  */
9
9
  id: string;
10
+ /**
11
+ * 所属表单
12
+ */
13
+ belongId: string;
10
14
  /**
11
15
  * 查询方案编号
12
16
  */
@@ -18,11 +22,15 @@ export interface QuerySolution {
18
22
  /**
19
23
  * 查询条件
20
24
  */
21
- conditions: Condition[];
25
+ conditions: Partial<Condition>[];
26
+ /**
27
+ * 数据存储格式
28
+ */
29
+ queryConditionString?: string;
22
30
  /**
23
31
  * 是否系统预置查询方案
24
32
  */
25
- isPreset: boolean;
33
+ isSystem: boolean;
26
34
  /**
27
35
  * 是否默认查询方案
28
36
  * 初始时,为false
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft selectItem., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /**
17
+ * 先假定 valueField和idField是同一个字段
18
+ * ToDo 支持不同字段
19
+ */
20
+ declare const _default: import("vue").DefineComponent<{
21
+ [x: string]: any;
22
+ }, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{
23
+ [x: string]: any;
24
+ }> & Readonly<{
25
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
26
+ }>, {
27
+ [x: string]: any;
28
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
29
+ export default _default;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft selectItem., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /**
17
+ * 先假定 valueField和idField是同一个字段
18
+ * ToDo 支持不同字段
19
+ */
20
+ declare const _default: import("vue").DefineComponent<{
21
+ [x: string]: any;
22
+ }, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<{
23
+ [x: string]: any;
24
+ }> & Readonly<{
25
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
26
+ }>, {
27
+ [x: string]: any;
28
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
29
+ export default _default;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { ExtractPropTypes } from 'vue';
17
+ export declare const itemCollectionEditorProps: Record<string, any>;
18
+ export type ItemCollectionEditorProps = ExtractPropTypes<typeof itemCollectionEditorProps>;
19
+ export declare const itemCollectionEditorPropsResolver: (schemaValue?: Record<string, any>) => Record<string, any>;
20
+ export declare const itemCollectionEditorInnerProps: Record<string, any>;
21
+ export type ItemCollectionEditorInnerProps = ExtractPropTypes<typeof itemCollectionEditorProps>;
@@ -1,2 +1,3 @@
1
1
  import { MapperFunction } from '../../../dynamic-resolver';
2
2
  export declare const schemaMapper: Map<string, string | MapperFunction>;
3
+ export declare const itemCollectionEditorSchemaMapper: Map<string, string | MapperFunction>;
@@ -1,2 +1,3 @@
1
1
  import { DynamicResolver } from "../../../dynamic-resolver";
2
2
  export declare function schemaResolver(resolver: DynamicResolver, schema: Record<string, any>, context: Record<string, any>): Record<string, any>;
3
+ export declare function itemCollectionEditorSchemaResolver(resolver: DynamicResolver, schema: Record<string, any>, context: Record<string, any>): Record<string, any>;
@@ -5,6 +5,7 @@ export declare class ResponseToolbarProperty extends BaseControlProperty {
5
5
  type: string;
6
6
  categories: {};
7
7
  };
8
+ getAppearancePropConfig(propertyData: any): any;
8
9
  getBasicPropConfig(propertyData: any): void;
9
10
  private getBehaviorProperties;
10
11
  }
@@ -1,3 +1,18 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import Section from './src/section.component';
2
17
  export * from './src/section.props';
3
18
  export { Section };
@@ -0,0 +1,4 @@
1
+ import { DesignerItemContext } from '../../../designer-canvas/src/types';
2
+ import { SetupContext, Ref } from 'vue';
3
+ import { SectionProps } from '../section.props';
4
+ export default function (props: SectionProps, context: SetupContext, expandStatus: Ref<boolean>, sectionRef: Ref<any>, sectionParentElementRef: Ref<any>, maxStatus: Ref<boolean>, designItemContext: DesignerItemContext): () => any;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { ExtractPropTypes } from 'vue';
17
+ export declare const sectionToolbarItemProps: Record<string, any>;
18
+ export type SectionToolbarItemProps = ExtractPropTypes<typeof sectionToolbarItemProps>;
19
+ export declare const sectionToolbarItemResolver: (schemaValue?: Record<string, any>) => Record<string, any>;
@@ -0,0 +1,3 @@
1
+ import { DesignerItemContext } from '../../../designer-canvas/src/types';
2
+ import { SectionProps } from '../section.props';
3
+ export default function (props: SectionProps, designerItemContext: DesignerItemContext): any;