@gct-paas/render-web 0.1.6-dev.2 → 0.1.6-dev.21

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 (80) hide show
  1. package/dist/index.min.css +1 -1
  2. package/dist/loader.esm.min.js +3 -1
  3. package/es/Event/Events.mjs +7 -3
  4. package/es/components/card-view-render/card-view-render.css +71 -0
  5. package/es/components/card-view-render/card-view-render.d.ts +38 -0
  6. package/es/components/card-view-render/card-view-render.mjs +84 -0
  7. package/es/components/collapse-detail/components/collapse-list.vue.d.ts +24 -0
  8. package/es/components/collapse-detail/components/collapse-list.vue.mjs +5 -0
  9. package/es/components/collapse-detail/components/collapse-list.vue_vue_type_script_setup_true_lang.mjs +103 -0
  10. package/es/components/collapse-detail/components/enum-tag-label.vue.d.ts +6 -0
  11. package/es/components/collapse-detail/components/enum-tag-label.vue.mjs +5 -0
  12. package/es/components/collapse-detail/components/enum-tag-label.vue_vue_type_script_setup_true_lang.mjs +61 -0
  13. package/es/components/collapse-detail/components/instance-status-label.vue.d.ts +34 -0
  14. package/es/components/collapse-detail/components/instance-status-label.vue.mjs +7 -0
  15. package/es/components/collapse-detail/components/instance-status-label.vue_vue_type_script_setup_true_lang.mjs +76 -0
  16. package/es/components/collapse-detail/components/instance-status-label.vue_vue_type_style_index_0_scoped_610b0bb3_lang.css +77 -0
  17. package/es/components/collapse-detail/components/label-tag.vue.d.ts +6 -0
  18. package/es/components/collapse-detail/components/label-tag.vue.mjs +7 -0
  19. package/es/components/collapse-detail/components/label-tag.vue_vue_type_script_setup_true_lang.mjs +34 -0
  20. package/es/components/collapse-detail/components/label-tag.vue_vue_type_style_index_0_scoped_b25afce5_lang.css +39 -0
  21. package/es/components/collapse-detail/constants/instance-theme-config.d.ts +64 -0
  22. package/es/components/collapse-detail/constants/instance-theme-config.mjs +100 -0
  23. package/es/components/collapse-detail/constants/status.d.ts +36 -0
  24. package/es/components/collapse-detail/constants/status.mjs +34 -0
  25. package/es/components/collapse-detail/index.d.ts +3 -0
  26. package/es/components/collapse-detail/index.mjs +1 -0
  27. package/es/components/collapse-detail/index.vue.d.ts +37 -0
  28. package/es/components/collapse-detail/index.vue.mjs +7 -0
  29. package/es/components/collapse-detail/index.vue_vue_type_script_setup_true_name_collapse-detail_lang.mjs +90 -0
  30. package/es/components/collapse-detail/index.vue_vue_type_style_index_0_scoped_b4b9903c_lang.css +83 -0
  31. package/es/components/collapse-detail/typing.d.ts +44 -0
  32. package/es/components/collapse-detail/typing.mjs +17 -0
  33. package/es/components/field-search-cascader/field-cascader.vue.d.ts +17 -0
  34. package/es/components/field-search-cascader/field-cascader.vue.mjs +8 -0
  35. package/es/components/field-search-cascader/field-cascader.vue_vue_type_script_setup_true_lang.mjs +297 -0
  36. package/es/components/field-search-cascader/field-cascader.vue_vue_type_style_index_0_scoped_cb5e4d67_lang.css +52 -0
  37. package/es/components/field-search-cascader/field-cascader.vue_vue_type_style_index_1_lang.css +3 -0
  38. package/es/components/field-search-cascader/index.d.ts +2 -0
  39. package/es/components/field-search-cascader/index.mjs +1 -0
  40. package/es/components/form-component/FieldSelect.mjs +1 -0
  41. package/es/components/form-component/field-label/ref-card-label-render.vue_vue_type_script_setup_true_lang.mjs +2 -1
  42. package/es/components/form-component/field-label/tag-span.vue.mjs +1 -1
  43. package/es/components/index.d.ts +7 -0
  44. package/es/components/index.mjs +9 -0
  45. package/es/components/layouts/basic-page/basic-page.vue.d.ts +30 -0
  46. package/es/components/layouts/basic-page/basic-page.vue.mjs +7 -0
  47. package/es/components/layouts/basic-page/basic-page.vue_vue_type_script_setup_true_name_basic-page_lang.mjs +30 -0
  48. package/es/components/layouts/basic-page/basic-page.vue_vue_type_style_index_0_scoped_23453a1b_lang.css +20 -0
  49. package/es/components/layouts/basic-page-render/basic-page-render.vue.d.ts +30 -0
  50. package/es/components/layouts/basic-page-render/basic-page-render.vue.mjs +7 -0
  51. package/es/components/layouts/basic-page-render/basic-page-render.vue_vue_type_script_setup_true_name_BasicPageRender_lang.mjs +30 -0
  52. package/es/components/layouts/basic-page-render/basic-page-render.vue_vue_type_style_index_0_scoped_264ca5fa_lang.css +20 -0
  53. package/es/components/rich-editor/index.d.ts +2 -0
  54. package/es/components/rich-editor/index.mjs +1 -0
  55. package/es/components/rich-editor/rich-editor.vue.d.ts +22 -0
  56. package/es/components/rich-editor/rich-editor.vue.mjs +5 -0
  57. package/es/components/rich-editor/rich-editor.vue_vue_type_script_setup_true_lang.mjs +150 -0
  58. package/es/components/rich-editor/style.css +747 -0
  59. package/es/constants/xlsx-parser.d.ts +15 -0
  60. package/es/constants/xlsx-parser.mjs +58 -0
  61. package/es/enums/xlsx-parser.d.ts +293 -0
  62. package/es/enums/xlsx-parser.mjs +36 -0
  63. package/es/hooks/index.d.ts +1 -0
  64. package/es/hooks/index.mjs +1 -0
  65. package/es/hooks/useQuickSearch.d.ts +8 -0
  66. package/es/hooks/useQuickSearch.mjs +96 -0
  67. package/es/index.d.ts +2 -0
  68. package/es/index.mjs +11 -1
  69. package/es/interface/xlsx-parser/base.d.ts +151 -0
  70. package/es/interface/xlsx-parser/index.d.ts +246 -0
  71. package/es/setup-app.d.ts +2 -0
  72. package/es/setup-app.mjs +10 -0
  73. package/es/types/shims-modules.d.ts +11 -0
  74. package/es/utils/cell-border.d.ts +73 -0
  75. package/es/utils/cell-border.mjs +203 -0
  76. package/es/utils/index.d.ts +1 -0
  77. package/es/utils/index.mjs +1 -0
  78. package/es/utils/xlsx-parser.d.ts +141 -0
  79. package/es/utils/xlsx-parser.mjs +262 -0
  80. package/package.json +20 -11
@@ -0,0 +1,15 @@
1
+ import { IPaper } from '../interface/xlsx-parser/index';
2
+ import { FIELD_TYPE } from '@gct-paas/core';
3
+ export declare const DEFAULT_ROW_HEIGHT = 30;
4
+ export declare const DEFAULT_COL_WIDTH = 75;
5
+ export declare const DefaultPaper: IPaper;
6
+ /**
7
+ * 导入用
8
+ * 字段属性与文本映射
9
+ */
10
+ export declare const FIELD_PROP_LABEL_MAP: Record<string, string>;
11
+ /**
12
+ * 导入用
13
+ * 字段类型与文本映射
14
+ */
15
+ export declare const FIELD_TYPE_LABEL_MAP: Partial<Record<FIELD_TYPE, string>>;
@@ -0,0 +1,58 @@
1
+ import { Orientation } from "../enums/xlsx-parser.mjs";
2
+ import { FIELD_TYPE, t } from "@gct-paas/core";
3
+ var DefaultPaper = {
4
+ sheetId: "1",
5
+ padding: {
6
+ t: 10,
7
+ r: 10,
8
+ b: 10,
9
+ l: 10
10
+ },
11
+ orientation: Orientation.Portrait,
12
+ cols: Array(10).fill("").map(() => ({ width: 75 })),
13
+ rows: Array(20).fill("").map(() => ({ height: 30 })),
14
+ cells: Array(20).fill("").map(() => Array(12).fill("").map(() => ({}))),
15
+ mergedCells: []
16
+ };
17
+ /**
18
+ * 导入用
19
+ * 字段属性与文本映射
20
+ */
21
+ var FIELD_PROP_LABEL_MAP = {
22
+ key: t("sys.onlineForm.fieldKey"),
23
+ name: t("sys.FieldName"),
24
+ type: t("sys.bi.fieldType"),
25
+ required: t("sys.requiredOrNot"),
26
+ uniqueConstraint: t("sys.model.uniqueOrNot"),
27
+ disabled: t("sys.onlineForm.disabledStatus")
28
+ };
29
+ /**
30
+ * 导入用
31
+ * 字段类型与文本映射
32
+ */
33
+ var FIELD_TYPE_LABEL_MAP = {
34
+ [FIELD_TYPE.TEXT]: t("sys.text"),
35
+ [FIELD_TYPE.LONG_TEXT]: t("sys.component.dataConnection.modelField.long_text"),
36
+ [FIELD_TYPE.INTEGER]: t("sys.component.dataConnection.modelField.integer"),
37
+ [FIELD_TYPE.LONG]: t("sys.component.dataConnection.modelField.long"),
38
+ [FIELD_TYPE.DOUBLE]: t("sys.component.dataConnection.modelField.double"),
39
+ [FIELD_TYPE.DECIMAL]: t("sys.component.dataConnection.modelField.decimal"),
40
+ [FIELD_TYPE.BOOLEAN]: t("sys.component.dataConnection.modelField.boolean"),
41
+ [FIELD_TYPE.DATE]: t("sys.component.dataConnection.modelField.date"),
42
+ [FIELD_TYPE.TIME]: t("sys.tableColumnDate"),
43
+ [FIELD_TYPE.DATE_TIME]: t("sys.component.dataConnection.modelField.date_time"),
44
+ [FIELD_TYPE.IMAGE]: t("sys.appDesigner.appLogoImage"),
45
+ [FIELD_TYPE.ATTACHMENT]: t("sys.component.dataConnection.modelField.attachment"),
46
+ [FIELD_TYPE.USER]: t("sys.component.dataConnection.modelField.user"),
47
+ [FIELD_TYPE.USER_MULTI]: t("sys.component.dataConnection.modelField.user_multi"),
48
+ [FIELD_TYPE.ORG]: t("sys.component.dataConnection.modelField.org"),
49
+ [FIELD_TYPE.ORG_MULTI]: t("sys.component.dataConnection.modelField.org_multi"),
50
+ [FIELD_TYPE.OPTION]: t("sys.model.option"),
51
+ [FIELD_TYPE.OPTION_MULTI]: t("sys.component.dataConnection.modelField.enum_multi"),
52
+ [FIELD_TYPE.SIGNATURE]: t("sys.signatureImage"),
53
+ [FIELD_TYPE.MATERIAL_NO]: "LOT/SN",
54
+ [FIELD_TYPE.PRODUCT]: t("sys.model.product"),
55
+ [FIELD_TYPE.DEVICE]: t("sys.developer.devive.index")
56
+ };
57
+ //#endregion
58
+ export { DefaultPaper, FIELD_PROP_LABEL_MAP, FIELD_TYPE_LABEL_MAP };
@@ -0,0 +1,293 @@
1
+ /** 排列方式 */
2
+ export declare enum Orientation {
3
+ /**
4
+ * 纵
5
+ */
6
+ Portrait = "portrait",// 纵
7
+ /**
8
+ * 横
9
+ */
10
+ Landscape = "landscape"
11
+ }
12
+ /** 文字前后位置 */
13
+ export declare enum LabelPosition {
14
+ /**
15
+ * 文字在前
16
+ */
17
+ Before = "before",
18
+ /**
19
+ * 文字在后
20
+ */
21
+ After = "after"
22
+ }
23
+ /** 单元格内容类型 */
24
+ export declare enum CellType {
25
+ /** 默认 */
26
+ Default = "Default",
27
+ /** 组件 */
28
+ Widget = "Widget",
29
+ /** 字段 */
30
+ Field = "Field"
31
+ }
32
+ /**
33
+ * 子表类型
34
+ */
35
+ export declare enum SubTableType {
36
+ DEFAULT = "DEFAULT",
37
+ _2D = "2D",
38
+ CHECK = "CHECK",
39
+ FIXED = "FIXED",
40
+ /** 物料消耗表 */
41
+ MATERIAL_CONSUMPTION = "MATERIAL_CONSUMPTION",
42
+ /** 物料平衡表 */
43
+ MATERIAL_BALANCE = "MATERIAL_BALANCE"
44
+ }
45
+ export declare enum ParamModelTypeEnum {
46
+ /** 组件参数 */
47
+ CompParam = "comp_param",
48
+ /** 内置参数 */
49
+ BuiltinParam = "builtin_param"
50
+ }
51
+ /**
52
+ * 电子表单 子表模型类型
53
+ */
54
+ export declare enum onlineFormMasterModelTypeEnum {
55
+ /** 基础模型 */
56
+ BASE = "BASE",
57
+ /** 动态表单 */
58
+ DYNAMIC_FORM = "DYNAMIC_FORM",
59
+ /** 物料消耗 */
60
+ MATERIAL_CONSUME = "MATERIAL_CONSUME",
61
+ /** 物料余额 */
62
+ MATERIAL_BALANCE = "MATERIAL_BALANCE",
63
+ /** 检验 */
64
+ INSPECTION = "INSPECTION"
65
+ }
66
+ /** 查看时渲染方式 */
67
+ export declare enum CellWidgetViewState {
68
+ /** 文本显示 */
69
+ Readonly = "readonly",
70
+ /** 组件显示-禁用 */
71
+ Disabled = "disabled",
72
+ /** 组件显示-跟随设计 */
73
+ Auto = "auto"
74
+ }
75
+ /** 字段的上下限校验模式 */
76
+ export declare enum RangeValidateMode {
77
+ /** 不校验 */
78
+ No_Validate = "NoValidate",
79
+ /** 固定输入校验 */
80
+ Fixed_Number = "FixedNumber",
81
+ /** 变量校验 */
82
+ Variable_Validate = "VariableValidate"
83
+ }
84
+ /**
85
+ * 小数显示模式
86
+ */
87
+ export declare enum DecimalDisplayMode {
88
+ /** 显示百分比(%) */
89
+ PERCENT = "percent",
90
+ /** 显示原始数值 */
91
+ ORIGIN = "origin"
92
+ }
93
+ /** 布尔显示方式 */
94
+ export declare enum BooleanShowMode {
95
+ /**
96
+ * 只显示真
97
+ */
98
+ OnlyTrue = "onlyTrue",
99
+ /**
100
+ * 只显示真
101
+ */
102
+ OnlyFalse = "onlyFalse",
103
+ /**
104
+ * 同时显示真和假
105
+ */
106
+ Both = "both"
107
+ }
108
+ /** 签名显示方式 */
109
+ export declare enum SignShowTypeEnum {
110
+ /** 垂直显示 */
111
+ VERTICAL = "vertical",
112
+ /** 水平显示 */
113
+ HORIZONTAL = "horizontal"
114
+ }
115
+ /** 签名日期配置 */
116
+ export declare enum SignatureTimeTypeEnum {
117
+ /** 跟随签名 */
118
+ FOLLOW_SIGNATURE = "follow_signature",
119
+ /** 填充新字段 */
120
+ POPULATE_FIELD = "populate_field"
121
+ }
122
+ /** 图片显示模式 */
123
+ export declare enum ImageDisplayModeEnum {
124
+ /** 自定义 */
125
+ CUSTOM = "CUSTOM",
126
+ /** 自适应 */
127
+ ADAPTIVE = "ADAPTIVE"
128
+ }
129
+ /** 签名人数配置 */
130
+ export declare enum SignatureNumberTypeEnum {
131
+ /** 单人签名 */
132
+ SIGNATURE_SINGLE = "signature_single",
133
+ /** 多人签名 */
134
+ SIGNATURE_MULTIPLE = "signature_multiple"
135
+ }
136
+ /**
137
+ * 页面组件值类型
138
+ */
139
+ export declare enum PaperWidgeValueType {
140
+ Fixed = "fixed",
141
+ Field = "field",
142
+ Formula = "formula"
143
+ }
144
+ export declare enum BwipCodeType {
145
+ Code39 = "code39",
146
+ Code128 = "code128",
147
+ QRCode = "qrcode",
148
+ GS1DataMatrix = "gs1datamatrix"
149
+ }
150
+ /** 分栏的方向 */
151
+ export declare enum DiagonalDirection {
152
+ /** 从左上到右下 \ */
153
+ Forward = "forward",
154
+ /** 从右上到左下 / */
155
+ Backward = "backward"
156
+ }
157
+ /**
158
+ * 图片组件高宽呈现模式
159
+ */
160
+ export declare enum WidgetImageSizeMode {
161
+ /**
162
+ * 自适应,响应式的适应外层容器的大小
163
+ */
164
+ RESPONSIVE = "responsive",
165
+ /**
166
+ * 固定值,高宽设了多少就是多少
167
+ */
168
+ FIXED = "fixed"
169
+ }
170
+ /** 线条类型 */
171
+ export declare enum LineType {
172
+ /** 实线 */
173
+ Solid = "solid",
174
+ /** 虚线 */
175
+ Dashed = "dashed",
176
+ /** 点线 */
177
+ Dotted = "dotted"
178
+ }
179
+ /** 线条方向 */
180
+ export declare enum LineDirection {
181
+ /**纵向 */
182
+ vertical = "vertical",
183
+ /**横向 */
184
+ horizontal = "horizontal"
185
+ }
186
+ /**
187
+ * 页面组件类型
188
+ */
189
+ export declare enum PaperWidgeType {
190
+ Text = "text",
191
+ Image = "image",
192
+ Barcode = "barcode",
193
+ Qrcode = "qrcode",
194
+ Pagination = "pagination",
195
+ Watermark = "watermark",
196
+ Diagonal = "diagonal",
197
+ RangeLimit = "rangelimit",
198
+ Line = "line",
199
+ Serialnumber = "serialnumber",
200
+ Power = "power",
201
+ TimeDiff = "timediff"
202
+ }
203
+ export declare enum CellWidgetCategory {
204
+ Text = "text",
205
+ DateTime = "date-time",
206
+ Integer = "integer",
207
+ Double = "double",
208
+ Decimal = "decimal",
209
+ Boolean = "boolean",
210
+ File = "file",
211
+ Image = "image",
212
+ Enum = "enum",
213
+ Signature = "signature",
214
+ User = "user",
215
+ Org = "org",
216
+ Expression = "expression",
217
+ Agg = "agg",
218
+ Ref = "ref",
219
+ /** 追溯字段 */
220
+ Trace = "trace"
221
+ }
222
+ export declare enum CellWidgetRenderComp {
223
+ Input = "input",
224
+ Textarea = "textarea",
225
+ Radio = "radio",
226
+ Checkbox = "checkbox",
227
+ Switch = "switch",
228
+ Select = "select",
229
+ DateTime = "date-time",
230
+ Image = "image",
231
+ Attachment = "attachment",
232
+ Integer = "integer",
233
+ Double = "double",
234
+ Decimal = "decimal",
235
+ Enum = "enum",
236
+ Signature = "signature",
237
+ User = "user",
238
+ Org = "org",
239
+ Expression = "expression",
240
+ Agg = "agg",
241
+ Ref = "ref"
242
+ }
243
+ export declare enum PanelType {
244
+ Paper = 0,
245
+ Cell = 1,
246
+ PaperHeader = 2,
247
+ PaperFooter = 3,
248
+ PaperHeaderWidget = 4,
249
+ PaperFooterWidget = 5,
250
+ DynamicTable = 6,
251
+ _2DTable = 7,
252
+ FixedTable = 8,
253
+ CheckTable = 9,
254
+ DataGroup = 10,
255
+ DataGroup2D = 11,
256
+ TableHeader = 12,
257
+ GlobalConfig = 13,
258
+ DataInitConfig = 14,
259
+ TmplConfig = 15,
260
+ MaterialConsumptionTable = 16,
261
+ MaterialBalanceTable = 17
262
+ }
263
+ export declare enum TimeDiffFormat {
264
+ D_H_MIN_S = "D_H_MIN_S",// 默认值
265
+ Y_M_D_H_MIN_S = "Y_M_D_H_MIN_S",
266
+ H_MIN_S = "H_MIN_S",
267
+ Y = "Y",
268
+ M = "M",
269
+ D = "D",
270
+ H = "H",
271
+ MIN = "MIN",
272
+ S = "S"
273
+ }
274
+ export declare enum FIELD_TYPE_BUSINESS {
275
+ ROUTING_OPERATION = "routing_operation",
276
+ GOOD_QTY = "good_qty",
277
+ NOT_GOOD_QTY = "not_good_qty",
278
+ REPORT_START_TIME = "report_start_time",
279
+ REPORT_END_TIME = "report_end_time",
280
+ WORK_HOURS = "work_hours",
281
+ PRODUCTION_DATE = "production_date",
282
+ REPORTER = "reporter",
283
+ NOT_GOOD_REASON = "not_good_reason",
284
+ NOT_GOOD_GROUP = "not_good_group",
285
+ SCRAP_REASON = "scrap_reason",
286
+ SCRAP_GROUP = "scrap_group",
287
+ SCRAP_QTY = "scrap_qty",
288
+ SCRAP_MATERIAL = "scrap_material",
289
+ SCRAP_MATERIAL_NO = "scrap_material_no",
290
+ DESTRUCTIVE_TEST_QTY = "destructive_test_qty",
291
+ PRODUCT_CHECK_QTY = "product_check_qty",
292
+ MATERIAL_CHECK_QTY = "material_check_qty"
293
+ }
@@ -0,0 +1,36 @@
1
+ //#region src/enums/xlsx-parser.ts
2
+ /** 排列方式 */
3
+ var Orientation = /* @__PURE__ */ function(Orientation) {
4
+ /**
5
+ * 纵
6
+ */
7
+ Orientation["Portrait"] = "portrait";
8
+ /**
9
+ * 横
10
+ */
11
+ Orientation["Landscape"] = "landscape";
12
+ return Orientation;
13
+ }({});
14
+ var FIELD_TYPE_BUSINESS = /* @__PURE__ */ function(FIELD_TYPE_BUSINESS) {
15
+ FIELD_TYPE_BUSINESS["ROUTING_OPERATION"] = "routing_operation";
16
+ FIELD_TYPE_BUSINESS["GOOD_QTY"] = "good_qty";
17
+ FIELD_TYPE_BUSINESS["NOT_GOOD_QTY"] = "not_good_qty";
18
+ FIELD_TYPE_BUSINESS["REPORT_START_TIME"] = "report_start_time";
19
+ FIELD_TYPE_BUSINESS["REPORT_END_TIME"] = "report_end_time";
20
+ FIELD_TYPE_BUSINESS["WORK_HOURS"] = "work_hours";
21
+ FIELD_TYPE_BUSINESS["PRODUCTION_DATE"] = "production_date";
22
+ FIELD_TYPE_BUSINESS["REPORTER"] = "reporter";
23
+ FIELD_TYPE_BUSINESS["NOT_GOOD_REASON"] = "not_good_reason";
24
+ FIELD_TYPE_BUSINESS["NOT_GOOD_GROUP"] = "not_good_group";
25
+ FIELD_TYPE_BUSINESS["SCRAP_REASON"] = "scrap_reason";
26
+ FIELD_TYPE_BUSINESS["SCRAP_GROUP"] = "scrap_group";
27
+ FIELD_TYPE_BUSINESS["SCRAP_QTY"] = "scrap_qty";
28
+ FIELD_TYPE_BUSINESS["SCRAP_MATERIAL"] = "scrap_material";
29
+ FIELD_TYPE_BUSINESS["SCRAP_MATERIAL_NO"] = "scrap_material_no";
30
+ FIELD_TYPE_BUSINESS["DESTRUCTIVE_TEST_QTY"] = "destructive_test_qty";
31
+ FIELD_TYPE_BUSINESS["PRODUCT_CHECK_QTY"] = "product_check_qty";
32
+ FIELD_TYPE_BUSINESS["MATERIAL_CHECK_QTY"] = "material_check_qty";
33
+ return FIELD_TYPE_BUSINESS;
34
+ }({});
35
+ //#endregion
36
+ export { FIELD_TYPE_BUSINESS, Orientation };
@@ -1 +1,2 @@
1
1
  export * from './refCardList';
2
+ export * from './useQuickSearch';
@@ -1 +1,2 @@
1
1
  import "./refCardList.mjs";
2
+ import "./useQuickSearch.mjs";
@@ -0,0 +1,8 @@
1
+ import { QuickSearchEnum } from '@gct-paas/core';
2
+ /**
3
+ * 快速搜索功能模块
4
+ */
5
+ export declare function useSearchEvent(): {
6
+ quickSearchEvent: (type: QuickSearchEnum, key: string, searchName: string, categoryId: string) => Promise<void>;
7
+ };
8
+ export declare function useQuickNext(callback: Fn, onMounted?: Fn): void;
@@ -0,0 +1,96 @@
1
+ import { ModelTypeEnum, PageTypeEnum, PrintTypeEnum, QuickSearchEnum, ScriptTypeEnum } from "@gct-paas/core";
2
+ //#region src/hooks/useQuickSearch.ts
3
+ var searchEventCallback;
4
+ /**
5
+ * 快速搜索功能模块
6
+ */
7
+ function useSearchEvent() {
8
+ const route = _gct.router.currentRoute.value;
9
+ async function quickSearchEvent(type, key, searchName, categoryId) {
10
+ const { name, module } = goRouterMeta[type];
11
+ if (route.name !== name) {
12
+ const searchStr = JSON.stringify({
13
+ module,
14
+ key,
15
+ searchName,
16
+ categoryId
17
+ });
18
+ await _gct.router.push({
19
+ name,
20
+ query: { searchStr: encodeURI(searchStr) }
21
+ });
22
+ } else searchEventCallback?.({
23
+ module,
24
+ key,
25
+ searchName,
26
+ categoryId
27
+ });
28
+ }
29
+ return { quickSearchEvent };
30
+ }
31
+ function useQuickNext(callback, onMounted) {
32
+ searchEventCallback = callback;
33
+ const searchStr = _gct.router.currentRoute.value.query.searchStr;
34
+ if (searchStr) {
35
+ const { module, key, searchName, categoryId } = JSON.parse(decodeURI(searchStr));
36
+ callback({
37
+ module,
38
+ key,
39
+ searchName,
40
+ categoryId
41
+ });
42
+ } else onMounted?.();
43
+ }
44
+ var goRouterMeta = {
45
+ [QuickSearchEnum.MODEL_ENITY]: {
46
+ name: "ModelDesigner",
47
+ module: ModelTypeEnum.ENTITY
48
+ },
49
+ [QuickSearchEnum.MODEL_ENUM]: {
50
+ name: "ModelDesigner",
51
+ module: ModelTypeEnum.ENUM
52
+ },
53
+ [QuickSearchEnum.MODEL_VIEW]: {
54
+ name: "ModelDesigner",
55
+ module: ModelTypeEnum.VIEW
56
+ },
57
+ [QuickSearchEnum.MODEL_DATA]: {
58
+ name: "ModelDesigner",
59
+ module: ModelTypeEnum.DATA
60
+ },
61
+ [QuickSearchEnum.WEB_PAGE]: {
62
+ name: "PageDesigner",
63
+ module: PageTypeEnum.WEB
64
+ },
65
+ [QuickSearchEnum.MOBILE_PAGE]: {
66
+ name: "PageDesigner",
67
+ module: PageTypeEnum.MOBILE
68
+ },
69
+ [QuickSearchEnum.PAD_PAGE]: {
70
+ name: "PageDesigner",
71
+ module: PageTypeEnum.PAD
72
+ },
73
+ [QuickSearchEnum.LABLE_PRINT]: {
74
+ name: "PrintDesign",
75
+ module: PrintTypeEnum.LABEL
76
+ },
77
+ [QuickSearchEnum.DOCUMENT_PRINT]: {
78
+ name: "PrintDesign",
79
+ module: PrintTypeEnum.RECEIPT
80
+ },
81
+ [QuickSearchEnum.PROCESS_DESIGNER]: { name: "Process" },
82
+ [QuickSearchEnum.DEV_SCRIPT]: {
83
+ name: "LogicDevelop",
84
+ module: ScriptTypeEnum.DEFAULT
85
+ },
86
+ [QuickSearchEnum.DEV_LOGIC]: {
87
+ name: "LogicDevelop",
88
+ module: ScriptTypeEnum.ORCHESTRATION
89
+ },
90
+ [QuickSearchEnum.DEV_METHOD]: {
91
+ name: "LogicDevelop",
92
+ module: ScriptTypeEnum.GLOBAL_METHOD
93
+ }
94
+ };
95
+ //#endregion
96
+ export { useQuickNext, useSearchEvent };
package/es/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  export { setupPageEvent, usePageEvent, type ContextPcType, type EventsPC, } from './Event/Events';
2
2
  export * from './components/index';
3
3
  export * from './hooks';
4
+ export { renderWebSetupApp } from './setup-app';
5
+ export * from './utils';
4
6
  export declare function run(): void;
package/es/index.mjs CHANGED
@@ -1,19 +1,29 @@
1
1
  import { setupPageEvent, usePageEvent } from "./Event/Events.mjs";
2
+ import basic_page_default from "./components/layouts/basic-page/basic-page.vue.mjs";
3
+ import basic_page_render_default from "./components/layouts/basic-page-render/basic-page-render.vue.mjs";
2
4
  import tag_span_default from "./components/form-component/field-label/tag-span.vue.mjs";
3
5
  import tag_label_default from "./components/form-component/field-label/tag-label.vue.mjs";
4
6
  import selectTag_default from "./components/form-component/field-label/selectTag.vue.mjs";
7
+ import { CardViewRender } from "./components/card-view-render/card-view-render.mjs";
5
8
  import ref_card_label_render_default from "./components/form-component/field-label/ref-card-label-render.vue.mjs";
6
9
  import { getDataByModelType, useGetRefCard, useRefCardData } from "./hooks/refCardList.mjs";
10
+ import { useQuickNext, useSearchEvent } from "./hooks/useQuickSearch.mjs";
7
11
  import "./hooks/index.mjs";
8
12
  import field_readonly_default from "./components/form-component/field-readonly.vue.mjs";
9
13
  import FieldSelect_default from "./components/form-component/FieldSelect.mjs";
10
14
  import FieldRadio_default from "./components/form-component/FieldRadio.mjs";
11
15
  import FieldCheckbox_default from "./components/form-component/FieldCheckbox.mjs";
12
16
  import multi_field_display_default from "./components/multi-field/multi-field-display.vue.mjs";
17
+ import collapse_detail_default from "./components/collapse-detail/index.vue.mjs";
18
+ import field_cascader_default from "./components/field-search-cascader/field-cascader.vue.mjs";
19
+ import rich_editor_default from "./components/rich-editor/rich-editor.vue.mjs";
13
20
  import "./components/index.mjs";
21
+ import { renderWebSetupApp } from "./setup-app.mjs";
22
+ import { XlsxParser } from "./utils/xlsx-parser.mjs";
23
+ import "./utils/index.mjs";
14
24
  //#region src/index.ts
15
25
  function run() {
16
26
  console.log("Hello World!");
17
27
  }
18
28
  //#endregion
19
- export { FieldCheckbox_default as FieldCheckbox, FieldRadio_default as FieldRadio, FieldSelect_default as FieldSelect, multi_field_display_default as MultiFieldDisplay, tag_span_default as Tag, field_readonly_default as fieldReadonly, getDataByModelType, ref_card_label_render_default as refCardLabelRender, run, selectTag_default as selectTag, setupPageEvent, tag_label_default as taglabel, useGetRefCard, usePageEvent, useRefCardData };
29
+ export { basic_page_default as BasicPage, basic_page_render_default as BasicPageRender, CardViewRender, collapse_detail_default as CollapseDetail, FieldCheckbox_default as FieldCheckbox, FieldRadio_default as FieldRadio, field_cascader_default as FieldSearchCascader, FieldSelect_default as FieldSelect, multi_field_display_default as MultiFieldDisplay, rich_editor_default as RichEditor, tag_span_default as Tag, XlsxParser, field_readonly_default as fieldReadonly, getDataByModelType, ref_card_label_render_default as refCardLabelRender, renderWebSetupApp, run, selectTag_default as selectTag, setupPageEvent, tag_label_default as taglabel, useGetRefCard, usePageEvent, useQuickNext, useRefCardData, useSearchEvent };