sd-render 1.2.6 → 1.2.7

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,615 @@
1
+ import { PropType } from 'vue';
2
+ import { ConnectStateStore, ConnectWs } from '../../types/StateStore';
3
+ import { OrderBy } from '../../types/SdGridType';
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ formId: {
6
+ type: StringConstructor;
7
+ required: true;
8
+ };
9
+ valueField: {
10
+ type: StringConstructor;
11
+ default: string;
12
+ };
13
+ labelField: {
14
+ type: StringConstructor;
15
+ required: true;
16
+ };
17
+ detailContent: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ parentField: {
22
+ type: StringConstructor;
23
+ required: true;
24
+ };
25
+ rootValue: {
26
+ type: any;
27
+ default: null;
28
+ };
29
+ params: {
30
+ type: PropType<Record<string, any>>;
31
+ default: () => {};
32
+ };
33
+ limit: {
34
+ type: NumberConstructor;
35
+ default: number;
36
+ };
37
+ where: {
38
+ type: StringConstructor;
39
+ default: string;
40
+ };
41
+ orderBy: {
42
+ type: PropType<OrderBy[]>;
43
+ default: null;
44
+ };
45
+ userState: {
46
+ type: PropType<ConnectStateStore>;
47
+ required: true;
48
+ };
49
+ titleEnable: {
50
+ type: BooleanConstructor;
51
+ default: boolean;
52
+ };
53
+ titleName: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
57
+ iconName: {
58
+ type: StringConstructor;
59
+ default: string;
60
+ };
61
+ height: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ };
65
+ defaultExpandAll: {
66
+ type: BooleanConstructor;
67
+ default: boolean;
68
+ };
69
+ highlightCurrent: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
72
+ };
73
+ emptyText: {
74
+ type: StringConstructor;
75
+ default: string;
76
+ };
77
+ itemSize: {
78
+ type: NumberConstructor;
79
+ default: number;
80
+ };
81
+ searchFields: {
82
+ type: {
83
+ (arrayLength: number): string[];
84
+ (...items: string[]): string[];
85
+ new (arrayLength: number): string[];
86
+ new (...items: string[]): string[];
87
+ isArray(arg: any): arg is any[];
88
+ readonly prototype: any[];
89
+ from<T>(arrayLike: ArrayLike<T>): T[];
90
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
91
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
92
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
93
+ of<T>(...items: T[]): T[];
94
+ readonly [Symbol.species]: ArrayConstructor;
95
+ };
96
+ default: undefined;
97
+ };
98
+ searchMode: {
99
+ type: PropType<"data" | "db">;
100
+ default: string;
101
+ };
102
+ searchPlaceholder: {
103
+ type: StringConstructor;
104
+ default: string;
105
+ };
106
+ addBtnEnable: {
107
+ type: BooleanConstructor;
108
+ default: boolean;
109
+ };
110
+ appendBtnEnable: {
111
+ type: BooleanConstructor;
112
+ default: boolean;
113
+ };
114
+ viewBtnEnable: {
115
+ type: BooleanConstructor;
116
+ default: boolean;
117
+ };
118
+ updateBtnEnable: {
119
+ type: BooleanConstructor;
120
+ default: boolean;
121
+ };
122
+ delBtnEnable: {
123
+ type: BooleanConstructor;
124
+ default: boolean;
125
+ };
126
+ reloadBtnEnable: {
127
+ type: BooleanConstructor;
128
+ default: boolean;
129
+ };
130
+ addRootLabel: {
131
+ type: StringConstructor;
132
+ default: string;
133
+ };
134
+ reloadLabel: {
135
+ type: StringConstructor;
136
+ default: string;
137
+ };
138
+ appendLabel: {
139
+ type: StringConstructor;
140
+ default: string;
141
+ };
142
+ viewLabel: {
143
+ type: StringConstructor;
144
+ default: string;
145
+ };
146
+ editLabel: {
147
+ type: StringConstructor;
148
+ default: string;
149
+ };
150
+ deleteLabel: {
151
+ type: StringConstructor;
152
+ default: string;
153
+ };
154
+ deleteConfirmText: {
155
+ type: StringConstructor;
156
+ default: string;
157
+ };
158
+ backdropForm: {
159
+ type: BooleanConstructor;
160
+ default: boolean;
161
+ };
162
+ initData: {
163
+ type: PropType<Record<string, any>>;
164
+ default: () => {};
165
+ };
166
+ enableWs: {
167
+ type: BooleanConstructor;
168
+ default: boolean;
169
+ };
170
+ buildState: {
171
+ type: BooleanConstructor;
172
+ default: boolean;
173
+ };
174
+ insertBefore: {
175
+ type: PropType<(parentRow: any | null) => void>;
176
+ default: null;
177
+ };
178
+ updateBefore: {
179
+ type: PropType<(row: any) => void>;
180
+ default: null;
181
+ };
182
+ viewBefore: {
183
+ type: PropType<(row: any) => void>;
184
+ default: null;
185
+ };
186
+ beforeSave: {
187
+ type: PropType<(row: any) => void>;
188
+ default: null;
189
+ };
190
+ afterDelete: {
191
+ type: PropType<(row: any) => void>;
192
+ default: null;
193
+ };
194
+ allowDeleteFunc: {
195
+ type: PropType<(row: any) => boolean>;
196
+ default: null;
197
+ };
198
+ clickEvent: {
199
+ type: PropType<(row: any) => void>;
200
+ default: null;
201
+ };
202
+ selectEvent: {
203
+ type: PropType<(row: any) => void>;
204
+ default: null;
205
+ };
206
+ unselectEvent: {
207
+ type: PropType<(row: any) => void>;
208
+ default: null;
209
+ };
210
+ }>, {
211
+ subFormOpen: any;
212
+ }, {
213
+ treeData: any[];
214
+ loading: boolean;
215
+ defaultParams: Record<string, any>;
216
+ selectedKey: any;
217
+ titleNameForm: string;
218
+ iconForm: string;
219
+ sdformModel: any;
220
+ wsConn: ConnectWs | undefined;
221
+ widgetId: string;
222
+ afterDeleteForm: any;
223
+ sdFunc: any;
224
+ lastInsert: boolean;
225
+ searchText: string;
226
+ searchTimer: any;
227
+ treeHeight: number;
228
+ expandedKeys: any[];
229
+ resizeObserver: ResizeObserver | undefined;
230
+ }, {
231
+ treeProps(): object;
232
+ isAutoHeight(): boolean;
233
+ heightStyle(): string;
234
+ }, {
235
+ resolveParentId(raw: any): any;
236
+ buildTree(flatList: any[]): any[];
237
+ loadModel(): Promise<void>;
238
+ initForm(sdform: any): void;
239
+ setupWs(): void;
240
+ loadData(): void;
241
+ openForm(payload: {
242
+ initData: any;
243
+ parentId: string;
244
+ readonly?: boolean;
245
+ modelValue?: boolean;
246
+ }): void;
247
+ handleAddRoot(): void;
248
+ handleAppend(parentRow: any): void;
249
+ handleUpdate(row: any): void;
250
+ handleView(row: any): void;
251
+ handleCancel(): void;
252
+ afterSave(formData: any, autoSave?: boolean): void;
253
+ handleDelete(row: any): void;
254
+ handleNodeClick(data: any): void;
255
+ updateTreeHeight(): void;
256
+ countVisibleNodes(): number;
257
+ onNodeToggle(_data: any, node: any): void;
258
+ handleSearch(): void;
259
+ applyClientFilter(): void;
260
+ filterMethod(query: string, data: any): boolean;
261
+ expandAllNodes(): void;
262
+ reload(): void;
263
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("select" | "aftersave" | "node-click" | "unselect" | "afterdelete")[], "select" | "aftersave" | "node-click" | "unselect" | "afterdelete", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
264
+ formId: {
265
+ type: StringConstructor;
266
+ required: true;
267
+ };
268
+ valueField: {
269
+ type: StringConstructor;
270
+ default: string;
271
+ };
272
+ labelField: {
273
+ type: StringConstructor;
274
+ required: true;
275
+ };
276
+ detailContent: {
277
+ type: StringConstructor;
278
+ default: string;
279
+ };
280
+ parentField: {
281
+ type: StringConstructor;
282
+ required: true;
283
+ };
284
+ rootValue: {
285
+ type: any;
286
+ default: null;
287
+ };
288
+ params: {
289
+ type: PropType<Record<string, any>>;
290
+ default: () => {};
291
+ };
292
+ limit: {
293
+ type: NumberConstructor;
294
+ default: number;
295
+ };
296
+ where: {
297
+ type: StringConstructor;
298
+ default: string;
299
+ };
300
+ orderBy: {
301
+ type: PropType<OrderBy[]>;
302
+ default: null;
303
+ };
304
+ userState: {
305
+ type: PropType<ConnectStateStore>;
306
+ required: true;
307
+ };
308
+ titleEnable: {
309
+ type: BooleanConstructor;
310
+ default: boolean;
311
+ };
312
+ titleName: {
313
+ type: StringConstructor;
314
+ default: string;
315
+ };
316
+ iconName: {
317
+ type: StringConstructor;
318
+ default: string;
319
+ };
320
+ height: {
321
+ type: StringConstructor;
322
+ default: string;
323
+ };
324
+ defaultExpandAll: {
325
+ type: BooleanConstructor;
326
+ default: boolean;
327
+ };
328
+ highlightCurrent: {
329
+ type: BooleanConstructor;
330
+ default: boolean;
331
+ };
332
+ emptyText: {
333
+ type: StringConstructor;
334
+ default: string;
335
+ };
336
+ itemSize: {
337
+ type: NumberConstructor;
338
+ default: number;
339
+ };
340
+ searchFields: {
341
+ type: {
342
+ (arrayLength: number): string[];
343
+ (...items: string[]): string[];
344
+ new (arrayLength: number): string[];
345
+ new (...items: string[]): string[];
346
+ isArray(arg: any): arg is any[];
347
+ readonly prototype: any[];
348
+ from<T>(arrayLike: ArrayLike<T>): T[];
349
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
350
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
351
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
352
+ of<T>(...items: T[]): T[];
353
+ readonly [Symbol.species]: ArrayConstructor;
354
+ };
355
+ default: undefined;
356
+ };
357
+ searchMode: {
358
+ type: PropType<"data" | "db">;
359
+ default: string;
360
+ };
361
+ searchPlaceholder: {
362
+ type: StringConstructor;
363
+ default: string;
364
+ };
365
+ addBtnEnable: {
366
+ type: BooleanConstructor;
367
+ default: boolean;
368
+ };
369
+ appendBtnEnable: {
370
+ type: BooleanConstructor;
371
+ default: boolean;
372
+ };
373
+ viewBtnEnable: {
374
+ type: BooleanConstructor;
375
+ default: boolean;
376
+ };
377
+ updateBtnEnable: {
378
+ type: BooleanConstructor;
379
+ default: boolean;
380
+ };
381
+ delBtnEnable: {
382
+ type: BooleanConstructor;
383
+ default: boolean;
384
+ };
385
+ reloadBtnEnable: {
386
+ type: BooleanConstructor;
387
+ default: boolean;
388
+ };
389
+ addRootLabel: {
390
+ type: StringConstructor;
391
+ default: string;
392
+ };
393
+ reloadLabel: {
394
+ type: StringConstructor;
395
+ default: string;
396
+ };
397
+ appendLabel: {
398
+ type: StringConstructor;
399
+ default: string;
400
+ };
401
+ viewLabel: {
402
+ type: StringConstructor;
403
+ default: string;
404
+ };
405
+ editLabel: {
406
+ type: StringConstructor;
407
+ default: string;
408
+ };
409
+ deleteLabel: {
410
+ type: StringConstructor;
411
+ default: string;
412
+ };
413
+ deleteConfirmText: {
414
+ type: StringConstructor;
415
+ default: string;
416
+ };
417
+ backdropForm: {
418
+ type: BooleanConstructor;
419
+ default: boolean;
420
+ };
421
+ initData: {
422
+ type: PropType<Record<string, any>>;
423
+ default: () => {};
424
+ };
425
+ enableWs: {
426
+ type: BooleanConstructor;
427
+ default: boolean;
428
+ };
429
+ buildState: {
430
+ type: BooleanConstructor;
431
+ default: boolean;
432
+ };
433
+ insertBefore: {
434
+ type: PropType<(parentRow: any | null) => void>;
435
+ default: null;
436
+ };
437
+ updateBefore: {
438
+ type: PropType<(row: any) => void>;
439
+ default: null;
440
+ };
441
+ viewBefore: {
442
+ type: PropType<(row: any) => void>;
443
+ default: null;
444
+ };
445
+ beforeSave: {
446
+ type: PropType<(row: any) => void>;
447
+ default: null;
448
+ };
449
+ afterDelete: {
450
+ type: PropType<(row: any) => void>;
451
+ default: null;
452
+ };
453
+ allowDeleteFunc: {
454
+ type: PropType<(row: any) => boolean>;
455
+ default: null;
456
+ };
457
+ clickEvent: {
458
+ type: PropType<(row: any) => void>;
459
+ default: null;
460
+ };
461
+ selectEvent: {
462
+ type: PropType<(row: any) => void>;
463
+ default: null;
464
+ };
465
+ unselectEvent: {
466
+ type: PropType<(row: any) => void>;
467
+ default: null;
468
+ };
469
+ }>> & Readonly<{
470
+ onSelect?: ((...args: any[]) => any) | undefined;
471
+ onAftersave?: ((...args: any[]) => any) | undefined;
472
+ "onNode-click"?: ((...args: any[]) => any) | undefined;
473
+ onUnselect?: ((...args: any[]) => any) | undefined;
474
+ onAfterdelete?: ((...args: any[]) => any) | undefined;
475
+ }>, {
476
+ iconName: string;
477
+ params: Record<string, any>;
478
+ height: string;
479
+ afterDelete: (row: any) => void;
480
+ limit: number;
481
+ where: string;
482
+ orderBy: OrderBy[];
483
+ valueField: string;
484
+ searchFields: string[];
485
+ initData: Record<string, any>;
486
+ searchPlaceholder: string;
487
+ detailContent: string;
488
+ addBtnEnable: boolean;
489
+ updateBtnEnable: boolean;
490
+ delBtnEnable: boolean;
491
+ viewBtnEnable: boolean;
492
+ reloadBtnEnable: boolean;
493
+ titleEnable: boolean;
494
+ titleName: string;
495
+ enableWs: boolean;
496
+ buildState: boolean;
497
+ insertBefore: (parentRow: any | null) => void;
498
+ updateBefore: (row: any) => void;
499
+ viewBefore: (row: any) => void;
500
+ beforeSave: (row: any) => void;
501
+ allowDeleteFunc: (row: any) => boolean;
502
+ clickEvent: (row: any) => void;
503
+ selectEvent: (row: any) => void;
504
+ unselectEvent: (row: any) => void;
505
+ backdropForm: boolean;
506
+ emptyText: string;
507
+ defaultExpandAll: boolean;
508
+ rootValue: any;
509
+ highlightCurrent: boolean;
510
+ itemSize: number;
511
+ searchMode: "data" | "db";
512
+ appendBtnEnable: boolean;
513
+ addRootLabel: string;
514
+ reloadLabel: string;
515
+ appendLabel: string;
516
+ viewLabel: string;
517
+ editLabel: string;
518
+ deleteLabel: string;
519
+ deleteConfirmText: string;
520
+ }, {}, {
521
+ SDCustomContent: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
522
+ content: {
523
+ type: StringConstructor;
524
+ default: string;
525
+ };
526
+ data: {
527
+ type: PropType<Record<string, any>>;
528
+ default: () => {};
529
+ };
530
+ params: {
531
+ type: PropType<Record<string, any>>;
532
+ default: () => {};
533
+ };
534
+ state: {
535
+ type: PropType<Record<string, any>>;
536
+ default: () => {};
537
+ };
538
+ components: {
539
+ type: PropType<Record<string, any>>;
540
+ default: () => {};
541
+ };
542
+ sanitize: {
543
+ type: BooleanConstructor;
544
+ default: boolean;
545
+ };
546
+ showErrorDetail: {
547
+ type: BooleanConstructor;
548
+ default: boolean;
549
+ };
550
+ errorFallbackText: {
551
+ type: StringConstructor;
552
+ default: string;
553
+ };
554
+ }>, {}, {
555
+ dynamicComp: any;
556
+ error: string;
557
+ }, {
558
+ scopeTypeError(): string;
559
+ }, {
560
+ normalizeSelfClosing(html: string): string;
561
+ sanitizeTemplate(html: string): string;
562
+ compileTemplate(tpl: string): Promise<Function>;
563
+ buildScopeProxy(): {};
564
+ rebuild(): Promise<void>;
565
+ getInner(): any;
566
+ getRef(name: string): any;
567
+ getRefs(): Record<string, any>;
568
+ getEl(name: string): any;
569
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "rendered"[], "rendered", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
570
+ content: {
571
+ type: StringConstructor;
572
+ default: string;
573
+ };
574
+ data: {
575
+ type: PropType<Record<string, any>>;
576
+ default: () => {};
577
+ };
578
+ params: {
579
+ type: PropType<Record<string, any>>;
580
+ default: () => {};
581
+ };
582
+ state: {
583
+ type: PropType<Record<string, any>>;
584
+ default: () => {};
585
+ };
586
+ components: {
587
+ type: PropType<Record<string, any>>;
588
+ default: () => {};
589
+ };
590
+ sanitize: {
591
+ type: BooleanConstructor;
592
+ default: boolean;
593
+ };
594
+ showErrorDetail: {
595
+ type: BooleanConstructor;
596
+ default: boolean;
597
+ };
598
+ errorFallbackText: {
599
+ type: StringConstructor;
600
+ default: string;
601
+ };
602
+ }>> & Readonly<{
603
+ onRendered?: ((...args: any[]) => any) | undefined;
604
+ }>, {
605
+ data: Record<string, any>;
606
+ params: Record<string, any>;
607
+ components: Record<string, any>;
608
+ content: string;
609
+ state: Record<string, any>;
610
+ sanitize: boolean;
611
+ showErrorDetail: boolean;
612
+ errorFallbackText: string;
613
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
614
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
615
+ export default _default;