inl-app-manager 1.5.15

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.
@@ -0,0 +1,567 @@
1
+ import { cardCompInfo } from '@/elements/utils';
2
+ import * as vue from 'vue';
3
+ import { App, PropType } from 'vue';
4
+ export { default as clientUtils } from '@/clientUtils';
5
+ import { PropOptions } from 'ant-design-vue/lib/_util/type';
6
+ import { cardDefaultProps as cardDefaultProps$1 } from '@/component/card/utils';
7
+ export { default as CardHead } from '@/component/card/cardHead';
8
+ export { default as CardBody } from '@/component/card/cardBody';
9
+
10
+ declare const _default$2: (cards: Array<cardCompInfo>, version?: string) => {
11
+ install(app: App): void;
12
+ cards: Record<string, cardCompInfo>;
13
+ version: string;
14
+ };
15
+
16
+ type CardPropTypes =
17
+ /**
18
+ * 字符串
19
+ */
20
+ "string"
21
+ /**
22
+ * 数字
23
+ */
24
+ | "number"
25
+ /**
26
+ * 物模型
27
+ */
28
+ | "thing"
29
+ /**
30
+ * 物模型
31
+ */
32
+ | "flowSelect"
33
+ /**
34
+ * 布尔类型
35
+ */
36
+ | "boolean"
37
+ /**
38
+ * jsx
39
+ */
40
+ | "jsx"
41
+ /**
42
+ * 富文本
43
+ */
44
+ | "richText"
45
+ /**
46
+ * tabs 标签页
47
+ */
48
+ | "tabs"
49
+ /**
50
+ * 单选
51
+ */
52
+ | "radio"
53
+ /**
54
+ * checkBox
55
+ */
56
+ | "checkBox"
57
+ /**
58
+ * 二次确认
59
+ */
60
+ | "confirm"
61
+ /**
62
+ * 事件
63
+ */
64
+ | "event"
65
+ /**
66
+ * 视频选择弹窗
67
+ */
68
+ | "VideoSelect"
69
+ /**
70
+ * 表格
71
+ */
72
+ | "table"
73
+ /**
74
+ * 下拉选项
75
+ */
76
+ | "select"
77
+ /**
78
+ * 树选择
79
+ */
80
+ | "treeSelect"
81
+ /**
82
+ * 系统选择
83
+ */
84
+ | "systemSelect"
85
+ /**
86
+ * 文字样式
87
+ */
88
+ | "textStyle"
89
+ /**
90
+ * 图标选择
91
+ */
92
+ | "icon"
93
+ /**
94
+ * 代码
95
+ */
96
+ | "code"
97
+ /**
98
+ * 流程图
99
+ */
100
+ | "flowsheet"
101
+ /**
102
+ * 颜色
103
+ */
104
+ | "color";
105
+ declare const createCardProps: <T>(props: Record<keyof T, cardDefaultProps>, unUse?: boolean) => Record<string, cardDefaultProps>;
106
+ declare const cardDefComponent: (com: any, b: Omit<cardCompInfo, "comp">, p?: () => JSX.Element) => cardCompInfo;
107
+
108
+ type cardDefaultPropType = PropType<any> | true | null | any;
109
+ /**
110
+ * @description: 卡片组件的props
111
+ */
112
+ type defaultDictionary = Array<{
113
+ name: string;
114
+ id: string;
115
+ }> | Array<{
116
+ label: string;
117
+ value: string;
118
+ }> | any;
119
+ interface cardDefaultProps<T = CardPropTypes, D = defaultDictionary> extends PropOptions {
120
+ type: cardDefaultPropType;
121
+ default: cardDefaultPropType | string;
122
+ label: string;
123
+ state: T;
124
+ code?: string;
125
+ hide?: boolean;
126
+ value?: any;
127
+ description?: string;
128
+ dataDictionary?: D;
129
+ controlInstId?: string;
130
+ stateConfig?: any;
131
+ }
132
+ /**
133
+ * @description: 卡片组件的props
134
+ */
135
+ type cardTabgsLib = {
136
+ name: string;
137
+ key: string;
138
+ };
139
+
140
+ declare const defaultCard: vue.DefineComponent<Record<string, cardDefaultProps<CardPropTypes, any>>, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "tabChange"[], "tabChange", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<Record<string, cardDefaultProps<CardPropTypes, any>>>> & {
141
+ onTabChange?: (...args: any[]) => any;
142
+ }, {
143
+ [x: string]: any;
144
+ }, {}>;
145
+
146
+ declare enum InlCardEventCode {
147
+ click = "\u70B9\u51FB\u4E8B\u4EF6",
148
+ mousemove = "\u9F20\u6807\u79FB\u52A8\u4E8B\u4EF6",
149
+ mouseover = "\u9F20\u6807\u79FB\u5165\u4E8B\u4EF6",
150
+ mouseout = "\u9F20\u6807\u79FB\u51FA\u4E8B\u4EF6",
151
+ mousedown = "\u9F20\u6807\u6309\u4E0B\u4E8B\u4EF6",
152
+ mouseup = "\u9F20\u6807\u62AC\u8D77\u4E8B\u4EF6",
153
+ dblclick = "\u53CC\u51FB\u4E8B\u4EF6",
154
+ keydown = "\u952E\u76D8\u6309\u4E0B\u4E8B\u4EF6",
155
+ keypress = "\u952E\u76D8\u6309\u952E\u4E8B\u4EF6",
156
+ keyup = "\u952E\u76D8\u62AC\u8D77\u4E8B\u4EF6",
157
+ focus = "\u83B7\u53D6\u7126\u70B9\u4E8B\u4EF6",
158
+ blur = "\u5931\u53BB\u7126\u70B9\u4E8B\u4EF6",
159
+ change = "\u5185\u5BB9\u6539\u53D8\u4E8B\u4EF6",
160
+ input = "\u5185\u5BB9\u8F93\u5165\u4E8B\u4EF6",
161
+ submit = "\u63D0\u4EA4\u4E8B\u4EF6",
162
+ reset = "\u91CD\u7F6E\u4E8B\u4EF6",
163
+ select = "\u9009\u4E2D\u4E8B\u4EF6",
164
+ contextmenu = "\u53F3\u952E\u83DC\u5355\u4E8B\u4EF6",
165
+ wheel = "\u6EDA\u8F6E\u4E8B\u4EF6",
166
+ copy = "\u590D\u5236\u4E8B\u4EF6",
167
+ cut = "\u526A\u5207\u4E8B\u4EF6",
168
+ paste = "\u7C98\u8D34\u4E8B\u4EF6",
169
+ drag = "\u62D6\u62FD\u4E8B\u4EF6",
170
+ dragstart = "\u62D6\u62FD\u5F00\u59CB\u4E8B\u4EF6",
171
+ dragend = "\u62D6\u62FD\u7ED3\u675F\u4E8B\u4EF6",
172
+ dragenter = "\u62D6\u62FD\u8FDB\u5165\u4E8B\u4EF6",
173
+ dragleave = "\u62D6\u62FD\u79BB\u5F00\u4E8B\u4EF6",
174
+ dragover = "\u62D6\u62FD\u60AC\u505C\u4E8B\u4EF6",
175
+ drop = "\u62D6\u62FD\u653E\u7F6E\u4E8B\u4EF6",
176
+ scroll = "\u6EDA\u52A8\u4E8B\u4EF6",
177
+ resize = "\u7A97\u53E3\u5927\u5C0F\u6539\u53D8\u4E8B\u4EF6",
178
+ error = "\u52A0\u8F7D\u9519\u8BEF\u4E8B\u4EF6",
179
+ load = "\u52A0\u8F7D\u5B8C\u6210\u4E8B\u4EF6",
180
+ unload = "\u9875\u9762\u5173\u95ED\u4E8B\u4EF6",
181
+ hashchange = "hash\u6539\u53D8\u4E8B\u4EF6",
182
+ popstate = "\u5386\u53F2\u8BB0\u5F55\u6539\u53D8\u4E8B\u4EF6",
183
+ pageshow = "\u9875\u9762\u663E\u793A\u4E8B\u4EF6",
184
+ pagehide = "\u9875\u9762\u9690\u85CF\u4E8B\u4EF6",
185
+ beforeunload = "\u9875\u9762\u5173\u95ED\u524D\u4E8B\u4EF6"
186
+ }
187
+ declare enum term {
188
+ server = "\u670D\u52A1\u7AEF",
189
+ client = "\u5BA2\u6237\u7AEF"
190
+ }
191
+ declare const InlCardEventCodeSelect: {
192
+ label: InlCardEventCode;
193
+ value: "select" | "change" | "input" | "scroll" | "copy" | "resize" | "reset" | "drag" | "click" | "mousemove" | "mouseover" | "mouseout" | "mousedown" | "mouseup" | "dblclick" | "keydown" | "keypress" | "keyup" | "focus" | "blur" | "submit" | "contextmenu" | "wheel" | "cut" | "paste" | "dragstart" | "dragend" | "dragenter" | "dragleave" | "dragover" | "drop" | "error" | "load" | "unload" | "hashchange" | "popstate" | "pageshow" | "pagehide" | "beforeunload";
194
+ }[];
195
+ interface InlCardEvent {
196
+ id?: string;
197
+ pageId?: string;
198
+ pageControlId?: string;
199
+ term: keyof typeof term;
200
+ events: Array<InlCardEventData>;
201
+ }
202
+ interface InlCardEventData {
203
+ code: keyof typeof InlCardEventCode;
204
+ params: Array<{
205
+ name: string;
206
+ value: string;
207
+ }>;
208
+ name: `${InlCardEventCode}`;
209
+ script: string;
210
+ confirmTip: string;
211
+ confirm: boolean;
212
+ }
213
+ declare const createDefaultEventData: (code: keyof typeof InlCardEventCode) => InlCardEventData;
214
+ declare const createDefaultEvent: (terms: keyof typeof term) => InlCardEvent;
215
+
216
+ declare const EDITORSTATE: {
217
+ preview: string;
218
+ editor: string;
219
+ production: string;
220
+ "preview-layout": string;
221
+ };
222
+ type editorState = keyof typeof EDITORSTATE;
223
+
224
+ declare const backgroundTypeList: {
225
+ tupu: string;
226
+ flowChart: string;
227
+ image: string;
228
+ color: string;
229
+ };
230
+ type backgroundType = keyof typeof backgroundTypeList;
231
+ declare const imageFitList: {
232
+ fill: string;
233
+ cover: string;
234
+ contain: string;
235
+ };
236
+ type imageFit = keyof typeof imageFitList;
237
+ declare const themeList: {
238
+ system: string;
239
+ dark: string;
240
+ light: string;
241
+ };
242
+ type themeListType = keyof typeof themeList;
243
+ declare const platformList: {
244
+ pc: {
245
+ label: string;
246
+ icon: string;
247
+ };
248
+ phone: {
249
+ label: string;
250
+ icon: string;
251
+ };
252
+ pad: {
253
+ label: string;
254
+ icon: string;
255
+ };
256
+ custom: {
257
+ label: string;
258
+ icon: string;
259
+ };
260
+ };
261
+ type platformListType = keyof typeof platformList;
262
+ declare const resolutionRatioTemp: Record<platformListType, {
263
+ width: number;
264
+ height: number;
265
+ }>;
266
+ declare const layoutList: {
267
+ custom: string;
268
+ vertical: string;
269
+ tabs: string;
270
+ };
271
+ type layoutListType = keyof typeof layoutList;
272
+ interface BaseConfig {
273
+ template?: string;
274
+ float?: boolean;
275
+ floatLevel?: number;
276
+ backgroundType: backgroundType;
277
+ background: string;
278
+ backgroundFit?: string;
279
+ boxShadow?: string;
280
+ borderRadius?: string;
281
+ borderWidth?: number;
282
+ borderColor?: string;
283
+ paddingTop?: number;
284
+ paddingRight?: number;
285
+ paddingBottom?: number;
286
+ paddingLeft?: number;
287
+ marginTop?: number;
288
+ marginRight?: number;
289
+ marginBottom?: number;
290
+ marginLeft?: number;
291
+ overflow?: string;
292
+ width?: number;
293
+ height?: number;
294
+ colNum?: number;
295
+ colGap?: number;
296
+ rowNum?: number;
297
+ rowGap?: number;
298
+ hide?: boolean;
299
+ invisible?: boolean;
300
+ }
301
+ interface inlCardTreeItem {
302
+ id?: string;
303
+ name: string;
304
+ pageId?: string;
305
+ pageControlId?: string;
306
+ parentId?: string;
307
+ layout: layoutListType;
308
+ sort?: number;
309
+ description?: string;
310
+ datasourceType?: string;
311
+ datasourceContent?: string;
312
+ children?: Array<inlCardTreeItem>;
313
+ styleJson: BaseConfig;
314
+ value?: any;
315
+ code: "card" | "form-item" | "form-card";
316
+ config?: {
317
+ [key: string]: cardDefaultProps$1;
318
+ };
319
+ }
320
+ interface pageInfo extends inlCardTreeItem {
321
+ clientType: platformListType;
322
+ pageType: keyof typeof PageType;
323
+ resolutionRatioW: number;
324
+ resolutionRatioH: number;
325
+ version: string;
326
+ theme: themeListType;
327
+ appId: string;
328
+ thumbnail?: string;
329
+ releaseStatus?: editorState;
330
+ adapter: boolean;
331
+ globalConfig: {
332
+ script?: string;
333
+ style?: string;
334
+ };
335
+ }
336
+ declare const groupBackground = "#dadada";
337
+ declare const nodeTemplate: inlCardTreeItem;
338
+ declare const PageType: {
339
+ form: string;
340
+ bigScreen: string;
341
+ };
342
+ declare const defaultPageInfo: pageInfo;
343
+ interface dictionaries {
344
+ label: string;
345
+ valList: Array<{
346
+ label: string;
347
+ value: string;
348
+ }>;
349
+ }
350
+
351
+ declare const _default$1: vue.DefineComponent<{
352
+ state: {
353
+ type: PropType<"preview" | "editor" | "production" | "preview-layout">;
354
+ default: string;
355
+ };
356
+ pageInfo: {
357
+ type: PropType<pageInfo>;
358
+ default: any;
359
+ };
360
+ isActive: {
361
+ type: BooleanConstructor;
362
+ default: boolean;
363
+ };
364
+ topList: {
365
+ type: PropType<string[]>;
366
+ default: () => any[];
367
+ };
368
+ }, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
369
+ state: {
370
+ type: PropType<"preview" | "editor" | "production" | "preview-layout">;
371
+ default: string;
372
+ };
373
+ pageInfo: {
374
+ type: PropType<pageInfo>;
375
+ default: any;
376
+ };
377
+ isActive: {
378
+ type: BooleanConstructor;
379
+ default: boolean;
380
+ };
381
+ topList: {
382
+ type: PropType<string[]>;
383
+ default: () => any[];
384
+ };
385
+ }>>, {
386
+ state: "preview" | "editor" | "production" | "preview-layout";
387
+ pageInfo: pageInfo;
388
+ topList: string[];
389
+ isActive: boolean;
390
+ }, {}>;
391
+
392
+ declare const InlPageEditor: vue.DefineComponent<{
393
+ id: {
394
+ type: StringConstructor;
395
+ default: string;
396
+ };
397
+ appId: {
398
+ type: StringConstructor;
399
+ required: boolean;
400
+ };
401
+ pageInfo: {
402
+ type: PropType<pageInfo>;
403
+ default: any;
404
+ };
405
+ isActive: {
406
+ type: BooleanConstructor;
407
+ default: boolean;
408
+ };
409
+ state: {
410
+ type: PropType<"preview" | "editor">;
411
+ };
412
+ customCards: {
413
+ type: PropType<Record<string, cardCompInfo>>;
414
+ default: {};
415
+ };
416
+ saveCallback: {
417
+ type: ObjectConstructor;
418
+ default: any;
419
+ };
420
+ }, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("preview" | "saveCallback")[], "preview" | "saveCallback", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
421
+ id: {
422
+ type: StringConstructor;
423
+ default: string;
424
+ };
425
+ appId: {
426
+ type: StringConstructor;
427
+ required: boolean;
428
+ };
429
+ pageInfo: {
430
+ type: PropType<pageInfo>;
431
+ default: any;
432
+ };
433
+ isActive: {
434
+ type: BooleanConstructor;
435
+ default: boolean;
436
+ };
437
+ state: {
438
+ type: PropType<"preview" | "editor">;
439
+ };
440
+ customCards: {
441
+ type: PropType<Record<string, cardCompInfo>>;
442
+ default: {};
443
+ };
444
+ saveCallback: {
445
+ type: ObjectConstructor;
446
+ default: any;
447
+ };
448
+ }>> & {
449
+ onPreview?: (...args: any[]) => any;
450
+ onSaveCallback?: (...args: any[]) => any;
451
+ }, {
452
+ id: string;
453
+ pageInfo: pageInfo;
454
+ isActive: boolean;
455
+ saveCallback: Record<string, any>;
456
+ customCards: Record<string, cardCompInfo>;
457
+ }, {}>;
458
+
459
+ declare const _default: vue.DefineComponent<{
460
+ card: {
461
+ type: PropType<cardCompInfo>;
462
+ };
463
+ code: {
464
+ type: StringConstructor;
465
+ default: string;
466
+ };
467
+ editorIngRef: ObjectConstructor;
468
+ }, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "save"[], "save", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
469
+ card: {
470
+ type: PropType<cardCompInfo>;
471
+ };
472
+ code: {
473
+ type: StringConstructor;
474
+ default: string;
475
+ };
476
+ editorIngRef: ObjectConstructor;
477
+ }>> & {
478
+ onSave?: (...args: any[]) => any;
479
+ }, {
480
+ code: string;
481
+ }, {}>;
482
+
483
+ declare const InlCardEditor: vue.DefineComponent<{
484
+ componentClass: {
485
+ type: PropType<cardCompInfo>;
486
+ };
487
+ value: {
488
+ type: StringConstructor;
489
+ default: string;
490
+ };
491
+ editorConfig: {
492
+ type: ObjectConstructor;
493
+ default: () => {};
494
+ };
495
+ disabled: {
496
+ type: BooleanConstructor;
497
+ default: boolean;
498
+ };
499
+ }, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:value"[], "update:value", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
500
+ componentClass: {
501
+ type: PropType<cardCompInfo>;
502
+ };
503
+ value: {
504
+ type: StringConstructor;
505
+ default: string;
506
+ };
507
+ editorConfig: {
508
+ type: ObjectConstructor;
509
+ default: () => {};
510
+ };
511
+ disabled: {
512
+ type: BooleanConstructor;
513
+ default: boolean;
514
+ };
515
+ }>> & {
516
+ "onUpdate:value"?: (...args: any[]) => any;
517
+ }, {
518
+ value: string;
519
+ disabled: boolean;
520
+ editorConfig: Record<string, any>;
521
+ }, {}>;
522
+
523
+ declare const CodeEditor: vue.DefineComponent<{
524
+ value: {
525
+ type: StringConstructor;
526
+ default: string;
527
+ };
528
+ language: {
529
+ type: StringConstructor;
530
+ default: string;
531
+ };
532
+ theme: {
533
+ type: StringConstructor;
534
+ default: string;
535
+ };
536
+ options: {
537
+ type: ObjectConstructor;
538
+ default: () => {};
539
+ };
540
+ }, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
541
+ value: {
542
+ type: StringConstructor;
543
+ default: string;
544
+ };
545
+ language: {
546
+ type: StringConstructor;
547
+ default: string;
548
+ };
549
+ theme: {
550
+ type: StringConstructor;
551
+ default: string;
552
+ };
553
+ options: {
554
+ type: ObjectConstructor;
555
+ default: () => {};
556
+ };
557
+ }>> & {
558
+ onChange?: (...args: any[]) => any;
559
+ "onUpdate:value"?: (...args: any[]) => any;
560
+ }, {
561
+ value: string;
562
+ theme: string;
563
+ options: Record<string, any>;
564
+ language: string;
565
+ }, {}>;
566
+
567
+ export { BaseConfig, CardPropTypes, CodeEditor, InlCardEditor, InlCardEvent, InlCardEventCode, InlCardEventCodeSelect, InlCardEventData, _default as InlCardStage, InlPageEditor, _default$1 as InlPageStage, PageType, backgroundType, backgroundTypeList, defaultCard as cardBox, cardDefComponent, cardDefaultPropType, cardDefaultProps, cardTabgsLib, createCardProps, createDefaultEvent, createDefaultEventData, defaultDictionary, defaultPageInfo, dictionaries, groupBackground, imageFit, imageFitList, inlCardTreeItem, layoutList, layoutListType, nodeTemplate, pageInfo, platformList, platformListType, resolutionRatioTemp, themeList, themeListType, _default$2 as useComponentFun };