@steedos-widgets/amis-lib 1.0.2 → 1.0.6

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.
@@ -118,10 +118,82 @@ export function getListSchema(appName: any, objectName: any, listViewName: any,
118
118
  uiSchema: any;
119
119
  isCustomAmisSchema?: undefined;
120
120
  amisSchema?: undefined;
121
+ isCalendar?: undefined;
121
122
  } | {
122
123
  uiSchema: any;
123
124
  isCustomAmisSchema: boolean;
124
125
  amisSchema: any;
126
+ isCalendar?: undefined;
127
+ } | {
128
+ uiSchema: any;
129
+ isCalendar: boolean;
130
+ amisSchema: {
131
+ type: string;
132
+ label: string;
133
+ name: string;
134
+ initialEvents: {
135
+ id: string;
136
+ title: string;
137
+ start: string;
138
+ }[];
139
+ onEvent: {
140
+ select: {
141
+ weight: number;
142
+ actions: {
143
+ componentId: string;
144
+ args: {};
145
+ actionType: string;
146
+ script: string;
147
+ }[];
148
+ };
149
+ eventClick: {
150
+ weight: number;
151
+ actions: {
152
+ componentId: string;
153
+ args: {};
154
+ actionType: string;
155
+ script: string;
156
+ }[];
157
+ };
158
+ eventAdd: {
159
+ weight: number;
160
+ actions: {
161
+ componentId: string;
162
+ args: {};
163
+ actionType: string;
164
+ script: string;
165
+ }[];
166
+ };
167
+ eventChange: {
168
+ weight: number;
169
+ actions: {
170
+ componentId: string;
171
+ args: {};
172
+ actionType: string;
173
+ script: string;
174
+ }[];
175
+ };
176
+ eventRemove: {
177
+ weight: number;
178
+ actions: {
179
+ componentId: string;
180
+ args: {};
181
+ actionType: string;
182
+ script: string;
183
+ }[];
184
+ };
185
+ eventsSet: {
186
+ weight: number;
187
+ actions: {
188
+ componentId: string;
189
+ args: {};
190
+ actionType: string;
191
+ script: string;
192
+ }[];
193
+ };
194
+ };
195
+ };
196
+ isCustomAmisSchema?: undefined;
125
197
  } | {
126
198
  uiSchema: any;
127
199
  amisSchema: {
@@ -134,6 +206,7 @@ export function getListSchema(appName: any, objectName: any, listViewName: any,
134
206
  ctx: {};
135
207
  };
136
208
  isCustomAmisSchema?: undefined;
209
+ isCalendar?: undefined;
137
210
  }>;
138
211
  export function getTableSchema(appName: any, objectName: any, columns: any, ctx?: {}): Promise<{
139
212
  uiSchema: any;
@@ -322,10 +395,82 @@ export function getObjectRelatedList(appName: any, objectName: any, recordId: an
322
395
  uiSchema: any;
323
396
  isCustomAmisSchema?: undefined;
324
397
  amisSchema?: undefined;
398
+ isCalendar?: undefined;
325
399
  } | {
326
400
  uiSchema: any;
327
401
  isCustomAmisSchema: boolean;
328
402
  amisSchema: any;
403
+ isCalendar?: undefined;
404
+ } | {
405
+ uiSchema: any;
406
+ isCalendar: boolean;
407
+ amisSchema: {
408
+ type: string;
409
+ label: string;
410
+ name: string;
411
+ initialEvents: {
412
+ id: string;
413
+ title: string;
414
+ start: string;
415
+ }[];
416
+ onEvent: {
417
+ select: {
418
+ weight: number;
419
+ actions: {
420
+ componentId: string;
421
+ args: {};
422
+ actionType: string;
423
+ script: string;
424
+ }[];
425
+ };
426
+ eventClick: {
427
+ weight: number;
428
+ actions: {
429
+ componentId: string;
430
+ args: {};
431
+ actionType: string;
432
+ script: string;
433
+ }[];
434
+ };
435
+ eventAdd: {
436
+ weight: number;
437
+ actions: {
438
+ componentId: string;
439
+ args: {};
440
+ actionType: string;
441
+ script: string;
442
+ }[];
443
+ };
444
+ eventChange: {
445
+ weight: number;
446
+ actions: {
447
+ componentId: string;
448
+ args: {};
449
+ actionType: string;
450
+ script: string;
451
+ }[];
452
+ };
453
+ eventRemove: {
454
+ weight: number;
455
+ actions: {
456
+ componentId: string;
457
+ args: {};
458
+ actionType: string;
459
+ script: string;
460
+ }[];
461
+ };
462
+ eventsSet: {
463
+ weight: number;
464
+ actions: {
465
+ componentId: string;
466
+ args: {};
467
+ actionType: string;
468
+ script: string;
469
+ }[];
470
+ };
471
+ };
472
+ };
473
+ isCustomAmisSchema?: undefined;
329
474
  } | {
330
475
  uiSchema: any;
331
476
  amisSchema: {
@@ -338,6 +483,7 @@ export function getObjectRelatedList(appName: any, objectName: any, recordId: an
338
483
  ctx: {};
339
484
  };
340
485
  isCustomAmisSchema?: undefined;
486
+ isCalendar?: undefined;
341
487
  };
342
488
  })[]>;
343
489
  export function getObjectRelated({ appName, masterObjectName, objectName, relatedFieldName, recordId, formFactor }: {
@@ -355,10 +501,82 @@ export function getObjectRelated({ appName, masterObjectName, objectName, relate
355
501
  uiSchema: any;
356
502
  isCustomAmisSchema?: undefined;
357
503
  amisSchema?: undefined;
504
+ isCalendar?: undefined;
358
505
  } | {
359
506
  uiSchema: any;
360
507
  isCustomAmisSchema: boolean;
361
508
  amisSchema: any;
509
+ isCalendar?: undefined;
510
+ } | {
511
+ uiSchema: any;
512
+ isCalendar: boolean;
513
+ amisSchema: {
514
+ type: string;
515
+ label: string;
516
+ name: string;
517
+ initialEvents: {
518
+ id: string;
519
+ title: string;
520
+ start: string;
521
+ }[];
522
+ onEvent: {
523
+ select: {
524
+ weight: number;
525
+ actions: {
526
+ componentId: string;
527
+ args: {};
528
+ actionType: string;
529
+ script: string;
530
+ }[];
531
+ };
532
+ eventClick: {
533
+ weight: number;
534
+ actions: {
535
+ componentId: string;
536
+ args: {};
537
+ actionType: string;
538
+ script: string;
539
+ }[];
540
+ };
541
+ eventAdd: {
542
+ weight: number;
543
+ actions: {
544
+ componentId: string;
545
+ args: {};
546
+ actionType: string;
547
+ script: string;
548
+ }[];
549
+ };
550
+ eventChange: {
551
+ weight: number;
552
+ actions: {
553
+ componentId: string;
554
+ args: {};
555
+ actionType: string;
556
+ script: string;
557
+ }[];
558
+ };
559
+ eventRemove: {
560
+ weight: number;
561
+ actions: {
562
+ componentId: string;
563
+ args: {};
564
+ actionType: string;
565
+ script: string;
566
+ }[];
567
+ };
568
+ eventsSet: {
569
+ weight: number;
570
+ actions: {
571
+ componentId: string;
572
+ args: {};
573
+ actionType: string;
574
+ script: string;
575
+ }[];
576
+ };
577
+ };
578
+ };
579
+ isCustomAmisSchema?: undefined;
362
580
  } | {
363
581
  uiSchema: any;
364
582
  amisSchema: {
@@ -371,6 +589,7 @@ export function getObjectRelated({ appName, masterObjectName, objectName, relate
371
589
  ctx: {};
372
590
  };
373
591
  isCustomAmisSchema?: undefined;
592
+ isCalendar?: undefined;
374
593
  };
375
594
  record: any;
376
595
  masterObjectUISchema: any;
@@ -28,10 +28,82 @@ export function getAmisObjectRelatedList(appName: any, objectName: any, recordId
28
28
  uiSchema: any;
29
29
  isCustomAmisSchema?: undefined;
30
30
  amisSchema?: undefined;
31
+ isCalendar?: undefined;
31
32
  } | {
32
33
  uiSchema: any;
33
34
  isCustomAmisSchema: boolean;
34
35
  amisSchema: any;
36
+ isCalendar?: undefined;
37
+ } | {
38
+ uiSchema: any;
39
+ isCalendar: boolean;
40
+ amisSchema: {
41
+ type: string;
42
+ label: string;
43
+ name: string;
44
+ initialEvents: {
45
+ id: string;
46
+ title: string;
47
+ start: string;
48
+ }[];
49
+ onEvent: {
50
+ select: {
51
+ weight: number;
52
+ actions: {
53
+ componentId: string;
54
+ args: {};
55
+ actionType: string;
56
+ script: string;
57
+ }[];
58
+ };
59
+ eventClick: {
60
+ weight: number;
61
+ actions: {
62
+ componentId: string;
63
+ args: {};
64
+ actionType: string;
65
+ script: string;
66
+ }[];
67
+ };
68
+ eventAdd: {
69
+ weight: number;
70
+ actions: {
71
+ componentId: string;
72
+ args: {};
73
+ actionType: string;
74
+ script: string;
75
+ }[];
76
+ };
77
+ eventChange: {
78
+ weight: number;
79
+ actions: {
80
+ componentId: string;
81
+ args: {};
82
+ actionType: string;
83
+ script: string;
84
+ }[];
85
+ };
86
+ eventRemove: {
87
+ weight: number;
88
+ actions: {
89
+ componentId: string;
90
+ args: {};
91
+ actionType: string;
92
+ script: string;
93
+ }[];
94
+ };
95
+ eventsSet: {
96
+ weight: number;
97
+ actions: {
98
+ componentId: string;
99
+ args: {};
100
+ actionType: string;
101
+ script: string;
102
+ }[];
103
+ };
104
+ };
105
+ };
106
+ isCustomAmisSchema?: undefined;
35
107
  } | {
36
108
  uiSchema: any;
37
109
  amisSchema: {
@@ -44,9 +116,10 @@ export function getAmisObjectRelatedList(appName: any, objectName: any, recordId
44
116
  ctx: {};
45
117
  };
46
118
  isCustomAmisSchema?: undefined;
119
+ isCalendar?: undefined;
47
120
  };
48
121
  })[]>;
49
- export function getRecordDetailRelatedListSchema(objectName: any, recordId: any, relatedObjectName: any, relatedKey: any, top: any, hiddenEmptyTable: any, appId: any): Promise<{
122
+ export function getRecordDetailRelatedListSchema(objectName: any, recordId: any, relatedObjectName: any, relatedKey: any, top: any, perPage: any, hiddenEmptyTable: any, appId: any): Promise<{
50
123
  uiSchema: any;
51
124
  amisSchema: {
52
125
  type: string;
@@ -33,123 +33,6 @@ export function getListPageInitSchema(objectApiName: any, formFactor: any, userS
33
33
  objectApiName: any;
34
34
  columnsTogglable: boolean;
35
35
  showHeader: boolean;
36
- headerSchema: {
37
- type: string;
38
- body: ({
39
- type: string;
40
- columns: ({
41
- body: {
42
- type: string;
43
- columns: ({
44
- body: {
45
- type: string;
46
- className: string;
47
- tpl: string;
48
- };
49
- md: string;
50
- className: string;
51
- columnClassName: string;
52
- valign?: undefined;
53
- } | {
54
- body: ({
55
- type: string;
56
- tpl: string;
57
- inline: boolean;
58
- wrapperComponent: string;
59
- className: string;
60
- label?: undefined;
61
- rightIcon?: undefined;
62
- size?: undefined;
63
- hideCaret?: undefined;
64
- btnClassName?: undefined;
65
- buttons?: undefined;
66
- } | {
67
- type: string;
68
- className: string;
69
- label: string;
70
- rightIcon: string;
71
- size: string;
72
- hideCaret: boolean;
73
- btnClassName: string;
74
- buttons: any[];
75
- tpl?: undefined;
76
- inline?: undefined;
77
- wrapperComponent?: undefined;
78
- })[];
79
- md: string;
80
- valign: string;
81
- columnClassName: string;
82
- className?: undefined;
83
- })[];
84
- }[];
85
- md: string;
86
- } | {
87
- body: {
88
- type: string;
89
- items: {
90
- type: string;
91
- name: any;
92
- objectName: any;
93
- visibleOn: any;
94
- className: string;
95
- }[];
96
- };
97
- md: string;
98
- })[];
99
- align: string;
100
- } | {
101
- type: string;
102
- align: string;
103
- columns: ({
104
- body: {
105
- type: string;
106
- tpl: string;
107
- visibleOn: string;
108
- inline: boolean;
109
- wrapperComponent: string;
110
- className: string;
111
- style: {
112
- fontFamily: string;
113
- fontSize: number;
114
- };
115
- id: string;
116
- }[];
117
- md: string;
118
- valign: string;
119
- } | {
120
- body: ({
121
- type: string;
122
- label: string;
123
- icon: string;
124
- className: string;
125
- onEvent: {
126
- click: {
127
- actions: {
128
- actionType: string;
129
- args: {
130
- value: {
131
- showFieldsFilter: string;
132
- };
133
- };
134
- componentId: string;
135
- }[];
136
- };
137
- };
138
- } | {
139
- type: string;
140
- label: string;
141
- icon: string;
142
- actionType: string;
143
- target: string;
144
- className: string;
145
- })[];
146
- md: string;
147
- valign?: undefined;
148
- })[];
149
- className: string;
150
- })[];
151
- className: string;
152
- }[];
153
36
  }[];
154
37
  }>;
155
38
  export function getRecordPageInitSchema(objectApiName: any): Promise<{
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/amis-lib",
3
3
  "private": false,
4
- "version": "1.0.2",
4
+ "version": "1.0.6",
5
5
  "unpkg": "./dist/index.umd.js",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",
@@ -28,7 +28,6 @@
28
28
  "@rollup/plugin-node-resolve": "^13.1.3",
29
29
  "@rollup/plugin-typescript": "^8.4.0",
30
30
  "@types/lodash": "^4.14.184",
31
- "amis": "^2.1.1-beta.2",
32
31
  "fast-glob": "^3.2.12",
33
32
  "rimraf": "3.0.2",
34
33
  "rollup": "^2.70.1",
@@ -59,5 +58,5 @@
59
58
  "dependencies": {
60
59
  "lodash": "^4.17.21"
61
60
  },
62
- "gitHead": "5f7847f19bb73803c65c84c385d00cc2b62e5088"
61
+ "gitHead": "73ac0f171da61f66bb6dbff35e2e5dc7251ff1de"
63
62
  }