@saltcorn/data 0.9.0-beta.1 → 0.9.0-beta.2
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.
- package/dist/base-plugin/fieldviews.d.ts +9 -0
- package/dist/base-plugin/fieldviews.d.ts.map +1 -1
- package/dist/base-plugin/fieldviews.js +10 -0
- package/dist/base-plugin/fieldviews.js.map +1 -1
- package/dist/base-plugin/fileviews.d.ts +8 -0
- package/dist/base-plugin/fileviews.js +8 -0
- package/dist/base-plugin/fileviews.js.map +1 -1
- package/dist/base-plugin/index.d.ts +364 -322
- package/dist/base-plugin/index.d.ts.map +1 -1
- package/dist/base-plugin/types.d.ts +75 -0
- package/dist/base-plugin/types.d.ts.map +1 -1
- package/dist/base-plugin/types.js +54 -4
- package/dist/base-plugin/types.js.map +1 -1
- package/dist/base-plugin/viewtemplates/show.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/show.js +6 -0
- package/dist/base-plugin/viewtemplates/show.js.map +1 -1
- package/dist/db/state.d.ts +3 -1
- package/dist/db/state.d.ts.map +1 -1
- package/dist/db/state.js +5 -0
- package/dist/db/state.js.map +1 -1
- package/dist/diagram/node_extract_utils.d.ts.map +1 -1
- package/dist/diagram/node_extract_utils.js +3 -1
- package/dist/diagram/node_extract_utils.js.map +1 -1
- package/dist/plugin-helper.d.ts.map +1 -1
- package/dist/plugin-helper.js +10 -0
- package/dist/plugin-helper.js.map +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../base-plugin/index.js"],"names":[],"mappings":"AAuCA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../base-plugin/index.js"],"names":[],"mappings":"AAuCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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|
@@ -9,17 +9,22 @@ export namespace string {
|
|
|
9
9
|
namespace fieldviews {
|
|
10
10
|
namespace as_text {
|
|
11
11
|
const isEdit: boolean;
|
|
12
|
+
const description: string;
|
|
12
13
|
function run(s: any): string;
|
|
13
14
|
}
|
|
14
15
|
namespace preFormatted {
|
|
15
16
|
const isEdit_1: boolean;
|
|
16
17
|
export { isEdit_1 as isEdit };
|
|
18
|
+
const description_1: string;
|
|
19
|
+
export { description_1 as description };
|
|
17
20
|
export function run_1(s: any): any;
|
|
18
21
|
export { run_1 as run };
|
|
19
22
|
}
|
|
20
23
|
namespace code {
|
|
21
24
|
const isEdit_2: boolean;
|
|
22
25
|
export { isEdit_2 as isEdit };
|
|
26
|
+
const description_2: string;
|
|
27
|
+
export { description_2 as description };
|
|
23
28
|
export function run_2(s: any): any;
|
|
24
29
|
export { run_2 as run };
|
|
25
30
|
}
|
|
@@ -30,6 +35,8 @@ export namespace string {
|
|
|
30
35
|
type: string;
|
|
31
36
|
sublabel: string;
|
|
32
37
|
}[];
|
|
38
|
+
const description_3: string;
|
|
39
|
+
export { description_3 as description };
|
|
33
40
|
const isEdit_3: boolean;
|
|
34
41
|
export { isEdit_3 as isEdit };
|
|
35
42
|
export function run_3(s: any, req: any, attrs?: {}): any;
|
|
@@ -38,12 +45,16 @@ export namespace string {
|
|
|
38
45
|
namespace img_from_url {
|
|
39
46
|
const isEdit_4: boolean;
|
|
40
47
|
export { isEdit_4 as isEdit };
|
|
48
|
+
const description_4: string;
|
|
49
|
+
export { description_4 as description };
|
|
41
50
|
export function run_4(s: any, req: any, attrs: any): any;
|
|
42
51
|
export { run_4 as run };
|
|
43
52
|
}
|
|
44
53
|
namespace as_header {
|
|
45
54
|
const isEdit_5: boolean;
|
|
46
55
|
export { isEdit_5 as isEdit };
|
|
56
|
+
const description_5: string;
|
|
57
|
+
export { description_5 as description };
|
|
47
58
|
export function run_5(s: any): any;
|
|
48
59
|
export { run_5 as run };
|
|
49
60
|
}
|
|
@@ -51,6 +62,8 @@ export namespace string {
|
|
|
51
62
|
const isEdit_6: boolean;
|
|
52
63
|
export { isEdit_6 as isEdit };
|
|
53
64
|
export const blockDisplay: boolean;
|
|
65
|
+
const description_6: string;
|
|
66
|
+
export { description_6 as description };
|
|
54
67
|
export function configFields_1(field: any): ({
|
|
55
68
|
name: string;
|
|
56
69
|
label: string;
|
|
@@ -82,6 +95,8 @@ export namespace string {
|
|
|
82
95
|
export { isEdit_7 as isEdit };
|
|
83
96
|
const blockDisplay_1: boolean;
|
|
84
97
|
export { blockDisplay_1 as blockDisplay };
|
|
98
|
+
const description_7: string;
|
|
99
|
+
export { description_7 as description };
|
|
85
100
|
const configFields_2: ({
|
|
86
101
|
name: string;
|
|
87
102
|
label: string;
|
|
@@ -130,6 +145,8 @@ export namespace string {
|
|
|
130
145
|
export { isEdit_8 as isEdit };
|
|
131
146
|
const blockDisplay_2: boolean;
|
|
132
147
|
export { blockDisplay_2 as blockDisplay };
|
|
148
|
+
const description_8: string;
|
|
149
|
+
export { description_8 as description };
|
|
133
150
|
const configFields_3: ({
|
|
134
151
|
name: string;
|
|
135
152
|
label: string;
|
|
@@ -161,6 +178,8 @@ export namespace string {
|
|
|
161
178
|
export { isEdit_9 as isEdit };
|
|
162
179
|
const blockDisplay_3: boolean;
|
|
163
180
|
export { blockDisplay_3 as blockDisplay };
|
|
181
|
+
const description_9: string;
|
|
182
|
+
export { description_9 as description };
|
|
164
183
|
export function run_9(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
|
|
165
184
|
export { run_9 as run };
|
|
166
185
|
}
|
|
@@ -173,6 +192,8 @@ export namespace string {
|
|
|
173
192
|
label: string;
|
|
174
193
|
}[];
|
|
175
194
|
export { configFields_4 as configFields };
|
|
195
|
+
const description_10: string;
|
|
196
|
+
export { description_10 as description };
|
|
176
197
|
export function run_10(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
|
|
177
198
|
export { run_10 as run };
|
|
178
199
|
}
|
|
@@ -180,6 +201,8 @@ export namespace string {
|
|
|
180
201
|
const isEdit_11: boolean;
|
|
181
202
|
export { isEdit_11 as isEdit };
|
|
182
203
|
export const isFilter: boolean;
|
|
204
|
+
const description_11: string;
|
|
205
|
+
export { description_11 as description };
|
|
183
206
|
const configFields_5: {
|
|
184
207
|
type: string;
|
|
185
208
|
name: string;
|
|
@@ -194,6 +217,8 @@ export namespace string {
|
|
|
194
217
|
export { isEdit_12 as isEdit };
|
|
195
218
|
const blockDisplay_4: boolean;
|
|
196
219
|
export { blockDisplay_4 as blockDisplay };
|
|
220
|
+
const description_12: string;
|
|
221
|
+
export { description_12 as description };
|
|
197
222
|
export function run_12(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
|
|
198
223
|
export { run_12 as run };
|
|
199
224
|
}
|
|
@@ -229,6 +254,8 @@ export namespace int {
|
|
|
229
254
|
export namespace show {
|
|
230
255
|
const isEdit_13: boolean;
|
|
231
256
|
export { isEdit_13 as isEdit };
|
|
257
|
+
const description_13: string;
|
|
258
|
+
export { description_13 as description };
|
|
232
259
|
export function run_13(s: any): string;
|
|
233
260
|
export { run_13 as run };
|
|
234
261
|
}
|
|
@@ -237,6 +264,8 @@ export namespace int {
|
|
|
237
264
|
export { isEdit_14 as isEdit };
|
|
238
265
|
const blockDisplay_5: boolean;
|
|
239
266
|
export { blockDisplay_5 as blockDisplay };
|
|
267
|
+
const description_14: string;
|
|
268
|
+
export { description_14 as description };
|
|
240
269
|
const configFields_6: {
|
|
241
270
|
name: string;
|
|
242
271
|
label: string;
|
|
@@ -256,6 +285,8 @@ export namespace int {
|
|
|
256
285
|
export { configFields_7 as configFields };
|
|
257
286
|
const isEdit_15: boolean;
|
|
258
287
|
export { isEdit_15 as isEdit };
|
|
288
|
+
const description_15: string;
|
|
289
|
+
export { description_15 as description };
|
|
259
290
|
const blockDisplay_6: boolean;
|
|
260
291
|
export { blockDisplay_6 as blockDisplay };
|
|
261
292
|
export function run_15(nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any): any;
|
|
@@ -274,6 +305,8 @@ export namespace int {
|
|
|
274
305
|
export { isFilter_1 as isFilter };
|
|
275
306
|
const blockDisplay_7: boolean;
|
|
276
307
|
export { blockDisplay_7 as blockDisplay };
|
|
308
|
+
const description_16: string;
|
|
309
|
+
export { description_16 as description };
|
|
277
310
|
export function run_16(nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any, state?: {}): any;
|
|
278
311
|
export { run_16 as run };
|
|
279
312
|
}
|
|
@@ -292,6 +325,8 @@ export namespace int {
|
|
|
292
325
|
export { configFields_9 as configFields };
|
|
293
326
|
const isEdit_17: boolean;
|
|
294
327
|
export { isEdit_17 as isEdit };
|
|
328
|
+
const description_17: string;
|
|
329
|
+
export { description_17 as description };
|
|
295
330
|
export function run_17(v: any, req: any, attrs?: {}): any;
|
|
296
331
|
export { run_17 as run };
|
|
297
332
|
}
|
|
@@ -330,6 +365,8 @@ export namespace int {
|
|
|
330
365
|
export { configFields_10 as configFields };
|
|
331
366
|
const isEdit_18: boolean;
|
|
332
367
|
export { isEdit_18 as isEdit };
|
|
368
|
+
const description_18: string;
|
|
369
|
+
export { description_18 as description };
|
|
333
370
|
export function run_18(v: any, req: any, attrs?: {}): any;
|
|
334
371
|
export { run_18 as run };
|
|
335
372
|
}
|
|
@@ -351,6 +388,8 @@ export namespace int {
|
|
|
351
388
|
}
|
|
352
389
|
export namespace below_input { }
|
|
353
390
|
export namespace show_star_rating {
|
|
391
|
+
const description_19: string;
|
|
392
|
+
export { description_19 as description };
|
|
354
393
|
export function configFields_12(field: any): {
|
|
355
394
|
name: string;
|
|
356
395
|
type: string;
|
|
@@ -366,6 +405,8 @@ export namespace int {
|
|
|
366
405
|
export { run_20 as run };
|
|
367
406
|
}
|
|
368
407
|
export namespace edit_star_rating {
|
|
408
|
+
const description_20: string;
|
|
409
|
+
export { description_20 as description };
|
|
369
410
|
export function configFields_13(field: any): {
|
|
370
411
|
name: string;
|
|
371
412
|
type: string;
|
|
@@ -404,6 +445,8 @@ export namespace bool {
|
|
|
404
445
|
export namespace show_1 {
|
|
405
446
|
const isEdit_22: boolean;
|
|
406
447
|
export { isEdit_22 as isEdit };
|
|
448
|
+
const description_21: string;
|
|
449
|
+
export { description_21 as description };
|
|
407
450
|
export function run_22(v: any): any;
|
|
408
451
|
export { run_22 as run };
|
|
409
452
|
}
|
|
@@ -411,18 +454,24 @@ export namespace bool {
|
|
|
411
454
|
export namespace checkboxes {
|
|
412
455
|
const isEdit_23: boolean;
|
|
413
456
|
export { isEdit_23 as isEdit };
|
|
457
|
+
const description_22: string;
|
|
458
|
+
export { description_22 as description };
|
|
414
459
|
export function run_23(v: any): any;
|
|
415
460
|
export { run_23 as run };
|
|
416
461
|
}
|
|
417
462
|
export namespace TrueFalse {
|
|
418
463
|
const isEdit_24: boolean;
|
|
419
464
|
export { isEdit_24 as isEdit };
|
|
465
|
+
const description_23: string;
|
|
466
|
+
export { description_23 as description };
|
|
420
467
|
export function run_24(v: any): "" | "True" | "False";
|
|
421
468
|
export { run_24 as run };
|
|
422
469
|
}
|
|
423
470
|
export namespace edit_2 {
|
|
424
471
|
const isEdit_25: boolean;
|
|
425
472
|
export { isEdit_25 as isEdit };
|
|
473
|
+
const description_24: string;
|
|
474
|
+
export { description_24 as description };
|
|
426
475
|
const configFields_14: {
|
|
427
476
|
name: string;
|
|
428
477
|
label: string;
|
|
@@ -439,6 +488,8 @@ export namespace bool {
|
|
|
439
488
|
export namespace _switch {
|
|
440
489
|
const isEdit_26: boolean;
|
|
441
490
|
export { isEdit_26 as isEdit };
|
|
491
|
+
const description_25: string;
|
|
492
|
+
export { description_25 as description };
|
|
442
493
|
export function run_26(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
|
|
443
494
|
export { run_26 as run };
|
|
444
495
|
}
|
|
@@ -446,6 +497,8 @@ export namespace bool {
|
|
|
446
497
|
export namespace tristate {
|
|
447
498
|
const isEdit_27: boolean;
|
|
448
499
|
export { isEdit_27 as isEdit };
|
|
500
|
+
const description_26: string;
|
|
501
|
+
export { description_26 as description };
|
|
449
502
|
export function run_27(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
|
|
450
503
|
export { run_27 as run };
|
|
451
504
|
}
|
|
@@ -476,6 +529,8 @@ export namespace date {
|
|
|
476
529
|
export namespace show_2 {
|
|
477
530
|
const isEdit_28: boolean;
|
|
478
531
|
export { isEdit_28 as isEdit };
|
|
532
|
+
const description_27: string;
|
|
533
|
+
export { description_27 as description };
|
|
479
534
|
export function run_28(d: any, req: any): any;
|
|
480
535
|
export { run_28 as run };
|
|
481
536
|
}
|
|
@@ -483,12 +538,16 @@ export namespace date {
|
|
|
483
538
|
export namespace showDay {
|
|
484
539
|
const isEdit_29: boolean;
|
|
485
540
|
export { isEdit_29 as isEdit };
|
|
541
|
+
const description_28: string;
|
|
542
|
+
export { description_28 as description };
|
|
486
543
|
export function run_29(d: any, req: any): any;
|
|
487
544
|
export { run_29 as run };
|
|
488
545
|
}
|
|
489
546
|
export namespace format {
|
|
490
547
|
const isEdit_30: boolean;
|
|
491
548
|
export { isEdit_30 as isEdit };
|
|
549
|
+
const description_29: string;
|
|
550
|
+
export { description_29 as description };
|
|
492
551
|
const configFields_15: {
|
|
493
552
|
name: string;
|
|
494
553
|
label: string;
|
|
@@ -502,12 +561,16 @@ export namespace date {
|
|
|
502
561
|
export namespace relative {
|
|
503
562
|
const isEdit_31: boolean;
|
|
504
563
|
export { isEdit_31 as isEdit };
|
|
564
|
+
const description_30: string;
|
|
565
|
+
export { description_30 as description };
|
|
505
566
|
export function run_31(d: any, req: any): string;
|
|
506
567
|
export { run_31 as run };
|
|
507
568
|
}
|
|
508
569
|
export namespace yearsAgo {
|
|
509
570
|
const isEdit_32: boolean;
|
|
510
571
|
export { isEdit_32 as isEdit };
|
|
572
|
+
const description_31: string;
|
|
573
|
+
export { description_31 as description };
|
|
511
574
|
export function run_32(d: any, req: any): string;
|
|
512
575
|
export { run_32 as run };
|
|
513
576
|
}
|
|
@@ -516,6 +579,8 @@ export namespace date {
|
|
|
516
579
|
export { isEdit_33 as isEdit };
|
|
517
580
|
const blockDisplay_11: boolean;
|
|
518
581
|
export { blockDisplay_11 as blockDisplay };
|
|
582
|
+
const description_32: string;
|
|
583
|
+
export { description_32 as description };
|
|
519
584
|
export function run_33(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
|
|
520
585
|
export { run_33 as run };
|
|
521
586
|
}
|
|
@@ -525,6 +590,8 @@ export namespace date {
|
|
|
525
590
|
export { isEdit_34 as isEdit };
|
|
526
591
|
const blockDisplay_12: boolean;
|
|
527
592
|
export { blockDisplay_12 as blockDisplay };
|
|
593
|
+
const description_33: string;
|
|
594
|
+
export { description_33 as description };
|
|
528
595
|
export function run_34(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
|
|
529
596
|
export { run_34 as run };
|
|
530
597
|
}
|
|
@@ -555,6 +622,8 @@ export namespace float {
|
|
|
555
622
|
export namespace show_3 {
|
|
556
623
|
const isEdit_35: boolean;
|
|
557
624
|
export { isEdit_35 as isEdit };
|
|
625
|
+
const description_34: string;
|
|
626
|
+
export { description_34 as description };
|
|
558
627
|
export function run_35(s: any): string;
|
|
559
628
|
export { run_35 as run };
|
|
560
629
|
}
|
|
@@ -564,6 +633,8 @@ export namespace float {
|
|
|
564
633
|
export { isEdit_36 as isEdit };
|
|
565
634
|
const blockDisplay_13: boolean;
|
|
566
635
|
export { blockDisplay_13 as blockDisplay };
|
|
636
|
+
const description_35: string;
|
|
637
|
+
export { description_35 as description };
|
|
567
638
|
export function run_36(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
|
|
568
639
|
export { run_36 as run };
|
|
569
640
|
}
|
|
@@ -611,6 +682,8 @@ export namespace color {
|
|
|
611
682
|
export namespace show_4 {
|
|
612
683
|
const isEdit_38: boolean;
|
|
613
684
|
export { isEdit_38 as isEdit };
|
|
685
|
+
const description_36: string;
|
|
686
|
+
export { description_36 as description };
|
|
614
687
|
export function run_38(s: any): any;
|
|
615
688
|
export { run_38 as run };
|
|
616
689
|
}
|
|
@@ -620,6 +693,8 @@ export namespace color {
|
|
|
620
693
|
export { isEdit_39 as isEdit };
|
|
621
694
|
const blockDisplay_15: boolean;
|
|
622
695
|
export { blockDisplay_15 as blockDisplay };
|
|
696
|
+
const description_37: string;
|
|
697
|
+
export { description_37 as description };
|
|
623
698
|
export function run_39(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
|
|
624
699
|
export { run_39 as run };
|
|
625
700
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../base-plugin/types.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../base-plugin/types.js"],"names":[],"mappings":";gBAoWa,MAAM;oBAEN,MAAM;;IAQL,+CA6EX;IAMS;;gBAK+D;;;;;YAehE,6BAAyB;;;;;;;YAKzB,mCACiE;;;;;;;;YAKjE,mCAA+C;;;;;;;;;;;;;;YAkB/C,yDAGG;;;;;;;;YAUH,yDAAmE;;;;;;;;YAWnE,mCAA6B;;;;;;;;;YAYpB;;;;;;;;;;;;;;;;;;;;;iBAmCb;;YACI,6FAuEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAiDH,6FAyCF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAyCE,6FAqBF;;;;;;;;;;YAWE,6FAgBF;;;;;;;;;;;;;;YAiBE,8FAcyB;;;;;;;;;;;;;;;YAczB,8FAYoB;;;;;;;;;;YAWpB,8FAWD;;;;IAOF,0CAQL;;QAYK;;mBAAmB;QAMZ;;mBAAyD;;IAOpE,+FAYC;IAMkB,iFAEwB;;;kBAuBlC,MAAM;;sBAEN,MAAM;;;;IAUP;;;gBAAoD;;;;;;;;;;;YAgBrD,uCAAc;;;;;;;;;;;;;;;;YAcd,8FAuBJ;;;;;YA3+BS;;;;gBAOb;;;;;;;;YAII,yGAmBD;;;;YAG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;YAWH,8FAWD;;;;;;wBAGG,MAAM,EAAE;;IAMb,0CAOL;;IAIS,sCAET"}
|
|
@@ -27,6 +27,7 @@ const number_slider = (type) => ({
|
|
|
27
27
|
: []),
|
|
28
28
|
],
|
|
29
29
|
isEdit: true,
|
|
30
|
+
description: "Input on a slider between defined maximum and minimum values",
|
|
30
31
|
blockDisplay: true,
|
|
31
32
|
run: (nm, v, attrs = {}, cls, required, field) => input({
|
|
32
33
|
type: "range",
|
|
@@ -59,6 +60,7 @@ const range_interval = (type) => ({
|
|
|
59
60
|
isEdit: false,
|
|
60
61
|
isFilter: true,
|
|
61
62
|
blockDisplay: true,
|
|
63
|
+
description: "User can pick filtered interval by moving low and high controls on a slider.",
|
|
62
64
|
/* https://stackoverflow.com/a/31083391 */
|
|
63
65
|
run: (nm, v, attrs = {}, cls, required, field, state = {}) => {
|
|
64
66
|
return section({ class: ["range-slider", cls] }, span({ class: "rangeValues" }), input({
|
|
@@ -108,6 +110,7 @@ const progress_bar = (type) => ({
|
|
|
108
110
|
{ name: "px_height", type: "Integer", label: "Height in px" },
|
|
109
111
|
],
|
|
110
112
|
isEdit: false,
|
|
113
|
+
description: "Show value as a percentage filled on a horizontal progress bar",
|
|
111
114
|
run: (v, req, attrs = {}) => div({
|
|
112
115
|
style: {
|
|
113
116
|
width: "100%",
|
|
@@ -141,6 +144,7 @@ const heat_cell = (type) => ({
|
|
|
141
144
|
{ name: "em_height", type: "Integer", label: "Height in em", default: 1.5 },
|
|
142
145
|
],
|
|
143
146
|
isEdit: false,
|
|
147
|
+
description: "Set background color on according to value on a color scale",
|
|
144
148
|
run: (v, req, attrs = {}) => {
|
|
145
149
|
if (typeof v !== "number")
|
|
146
150
|
return "";
|
|
@@ -364,13 +368,19 @@ const string = {
|
|
|
364
368
|
* @category saltcorn-data
|
|
365
369
|
* @subcategory types / string
|
|
366
370
|
*/
|
|
367
|
-
as_text: {
|
|
371
|
+
as_text: {
|
|
372
|
+
isEdit: false,
|
|
373
|
+
description: "Show the value with no other formatting",
|
|
374
|
+
run: (s) => text_attr(s || ""),
|
|
375
|
+
},
|
|
368
376
|
preFormatted: {
|
|
369
377
|
isEdit: false,
|
|
378
|
+
description: "Pre-formatted (in a <pre> tag)",
|
|
370
379
|
run: (s) => s ? span({ style: "white-space:pre-wrap" }, text_attr(s || "")) : "",
|
|
371
380
|
},
|
|
372
381
|
code: {
|
|
373
382
|
isEdit: false,
|
|
383
|
+
description: "Show as a code block",
|
|
374
384
|
run: (s) => (s ? pre(code(text_attr(s || ""))) : ""),
|
|
375
385
|
},
|
|
376
386
|
/**
|
|
@@ -387,6 +397,7 @@ const string = {
|
|
|
387
397
|
sublabel: "Optional. If blank, label is URL",
|
|
388
398
|
},
|
|
389
399
|
],
|
|
400
|
+
description: "Show a link with the field value as the URL.",
|
|
390
401
|
isEdit: false,
|
|
391
402
|
run: (s, req, attrs = {}) => s
|
|
392
403
|
? a({ href: text(s || "") }, text_attr(attrs?.link_title || s || ""))
|
|
@@ -399,6 +410,7 @@ const string = {
|
|
|
399
410
|
*/
|
|
400
411
|
img_from_url: {
|
|
401
412
|
isEdit: false,
|
|
413
|
+
description: "Show an image from the URL in the field value",
|
|
402
414
|
run: (s, req, attrs) => img({ src: text(s || ""), style: "width:100%" }),
|
|
403
415
|
},
|
|
404
416
|
/**
|
|
@@ -406,7 +418,11 @@ const string = {
|
|
|
406
418
|
* @category saltcorn-data
|
|
407
419
|
* @subcategory types / string
|
|
408
420
|
*/
|
|
409
|
-
as_header: {
|
|
421
|
+
as_header: {
|
|
422
|
+
isEdit: false,
|
|
423
|
+
description: "Show this as a header",
|
|
424
|
+
run: (s) => h3(text_attr(s || "")),
|
|
425
|
+
},
|
|
410
426
|
/**
|
|
411
427
|
* @namespace
|
|
412
428
|
* @category saltcorn-data
|
|
@@ -415,6 +431,7 @@ const string = {
|
|
|
415
431
|
edit: {
|
|
416
432
|
isEdit: true,
|
|
417
433
|
blockDisplay: true,
|
|
434
|
+
description: "edit with a standard text input, or dropdown if field has options",
|
|
418
435
|
configFields: (field) => [
|
|
419
436
|
...(field.attributes.options &&
|
|
420
437
|
field.attributes.options.length > 0 &&
|
|
@@ -516,6 +533,7 @@ const string = {
|
|
|
516
533
|
fill_formula_btn: {
|
|
517
534
|
isEdit: true,
|
|
518
535
|
blockDisplay: true,
|
|
536
|
+
description: "Input with a button prefills value from specified formula",
|
|
519
537
|
configFields: [
|
|
520
538
|
{
|
|
521
539
|
name: "formula",
|
|
@@ -586,6 +604,7 @@ const string = {
|
|
|
586
604
|
make_unique: {
|
|
587
605
|
isEdit: true,
|
|
588
606
|
blockDisplay: true,
|
|
607
|
+
description: "Make this input unique in the database table",
|
|
589
608
|
configFields: [
|
|
590
609
|
{
|
|
591
610
|
name: "placeholder",
|
|
@@ -643,6 +662,7 @@ const string = {
|
|
|
643
662
|
textarea: {
|
|
644
663
|
isEdit: true,
|
|
645
664
|
blockDisplay: true,
|
|
665
|
+
description: "Edit as a text area (multi line input)",
|
|
646
666
|
run: (nm, v, attrs, cls, required, field) => textarea({
|
|
647
667
|
class: ["form-control", cls],
|
|
648
668
|
name: text_attr(nm),
|
|
@@ -671,6 +691,7 @@ const string = {
|
|
|
671
691
|
label: "Inline",
|
|
672
692
|
},
|
|
673
693
|
],
|
|
694
|
+
description: "Pick from a radio group. Field must have options",
|
|
674
695
|
run: (nm, v, attrs, cls, required, field) => attrs.options
|
|
675
696
|
? radio_group({
|
|
676
697
|
class: cls,
|
|
@@ -689,6 +710,7 @@ const string = {
|
|
|
689
710
|
checkbox_group: {
|
|
690
711
|
isEdit: false,
|
|
691
712
|
isFilter: true,
|
|
713
|
+
description: "Filter from a checkbox group. Field must have options. Possible selections are treated as OR.",
|
|
692
714
|
configFields: [
|
|
693
715
|
{
|
|
694
716
|
type: "Bool",
|
|
@@ -717,6 +739,7 @@ const string = {
|
|
|
717
739
|
password: {
|
|
718
740
|
isEdit: true,
|
|
719
741
|
blockDisplay: true,
|
|
742
|
+
description: "Password input type, characters are hidden when typed",
|
|
720
743
|
run: (nm, v, attrs, cls, required, field) => input({
|
|
721
744
|
type: "password",
|
|
722
745
|
disabled: attrs.disabled,
|
|
@@ -830,7 +853,11 @@ const int = {
|
|
|
830
853
|
* @category saltcorn-data
|
|
831
854
|
* @subcategory types / int
|
|
832
855
|
*/
|
|
833
|
-
show: {
|
|
856
|
+
show: {
|
|
857
|
+
isEdit: false,
|
|
858
|
+
description: "Show value with no additional formatting.",
|
|
859
|
+
run: (s) => text(s),
|
|
860
|
+
},
|
|
834
861
|
/**
|
|
835
862
|
* @namespace
|
|
836
863
|
* @category saltcorn-data
|
|
@@ -839,6 +866,7 @@ const int = {
|
|
|
839
866
|
edit: {
|
|
840
867
|
isEdit: true,
|
|
841
868
|
blockDisplay: true,
|
|
869
|
+
description: "Number input, optionally with stepper.",
|
|
842
870
|
configFields: [
|
|
843
871
|
{ name: "stepper_btns", label: "Stepper buttons", type: "Bool" },
|
|
844
872
|
],
|
|
@@ -874,6 +902,7 @@ const int = {
|
|
|
874
902
|
above_input: number_limit("gte"),
|
|
875
903
|
below_input: number_limit("lte"),
|
|
876
904
|
show_star_rating: {
|
|
905
|
+
description: "Show value as filled stars out of maximum.",
|
|
877
906
|
configFields: (field) => [
|
|
878
907
|
...(!isdef(field.attributes.min)
|
|
879
908
|
? [{ name: "min", type: "Integer", required: true, default: 1 }]
|
|
@@ -890,6 +919,7 @@ const int = {
|
|
|
890
919
|
}))),
|
|
891
920
|
},
|
|
892
921
|
edit_star_rating: {
|
|
922
|
+
description: "Input by clicking filled stars out of maximum.",
|
|
893
923
|
configFields: (field) => [
|
|
894
924
|
...(!isdef(field.attributes.min)
|
|
895
925
|
? [{ name: "min", type: "Integer", required: true, default: 1 }]
|
|
@@ -981,6 +1011,7 @@ const color = {
|
|
|
981
1011
|
*/
|
|
982
1012
|
show: {
|
|
983
1013
|
isEdit: false,
|
|
1014
|
+
description: "A box filled with the color",
|
|
984
1015
|
run: (s) => s
|
|
985
1016
|
? div({
|
|
986
1017
|
class: "color-type-show",
|
|
@@ -996,6 +1027,7 @@ const color = {
|
|
|
996
1027
|
edit: {
|
|
997
1028
|
isEdit: true,
|
|
998
1029
|
blockDisplay: true,
|
|
1030
|
+
description: "Simple color picker",
|
|
999
1031
|
run: (nm, v, attrs, cls, required, field) => input({
|
|
1000
1032
|
type: "color",
|
|
1001
1033
|
class: ["form-control", cls],
|
|
@@ -1060,7 +1092,11 @@ const float = {
|
|
|
1060
1092
|
* @category saltcorn-data
|
|
1061
1093
|
* @subcategory types / float
|
|
1062
1094
|
*/
|
|
1063
|
-
show: {
|
|
1095
|
+
show: {
|
|
1096
|
+
isEdit: false,
|
|
1097
|
+
description: "Show number with no additional formatting",
|
|
1098
|
+
run: (s) => text(s),
|
|
1099
|
+
},
|
|
1064
1100
|
/**
|
|
1065
1101
|
* @namespace
|
|
1066
1102
|
* @category saltcorn-data
|
|
@@ -1069,6 +1105,7 @@ const float = {
|
|
|
1069
1105
|
edit: {
|
|
1070
1106
|
isEdit: true,
|
|
1071
1107
|
blockDisplay: true,
|
|
1108
|
+
description: "Number input",
|
|
1072
1109
|
run: (nm, v, attrs, cls, required, field) => input({
|
|
1073
1110
|
type: "number",
|
|
1074
1111
|
class: ["form-control", cls],
|
|
@@ -1178,6 +1215,7 @@ const date = {
|
|
|
1178
1215
|
*/
|
|
1179
1216
|
show: {
|
|
1180
1217
|
isEdit: false,
|
|
1218
|
+
description: "Show date and time in the users locale",
|
|
1181
1219
|
run: (d, req) => typeof d === "string"
|
|
1182
1220
|
? localeDateTime(new Date(d))
|
|
1183
1221
|
: d && d.toISOString
|
|
@@ -1191,6 +1229,7 @@ const date = {
|
|
|
1191
1229
|
*/
|
|
1192
1230
|
showDay: {
|
|
1193
1231
|
isEdit: false,
|
|
1232
|
+
description: "Show date in the users locale",
|
|
1194
1233
|
run: (d, req) => typeof d === "string"
|
|
1195
1234
|
? localeDate(new Date(d))
|
|
1196
1235
|
: d && d.toISOString
|
|
@@ -1204,6 +1243,7 @@ const date = {
|
|
|
1204
1243
|
*/
|
|
1205
1244
|
format: {
|
|
1206
1245
|
isEdit: false,
|
|
1246
|
+
description: "Display date with a specified format",
|
|
1207
1247
|
configFields: [
|
|
1208
1248
|
{
|
|
1209
1249
|
name: "format",
|
|
@@ -1228,6 +1268,7 @@ const date = {
|
|
|
1228
1268
|
*/
|
|
1229
1269
|
relative: {
|
|
1230
1270
|
isEdit: false,
|
|
1271
|
+
description: "Display relative to current time (e.g. 2 hours ago)",
|
|
1231
1272
|
run: (d, req) => {
|
|
1232
1273
|
if (!d)
|
|
1233
1274
|
return "";
|
|
@@ -1245,6 +1286,7 @@ const date = {
|
|
|
1245
1286
|
*/
|
|
1246
1287
|
yearsAgo: {
|
|
1247
1288
|
isEdit: false,
|
|
1289
|
+
description: "Show how many years ago this occurred.",
|
|
1248
1290
|
run: (d, req) => {
|
|
1249
1291
|
if (!d)
|
|
1250
1292
|
return "";
|
|
@@ -1259,6 +1301,7 @@ const date = {
|
|
|
1259
1301
|
edit: {
|
|
1260
1302
|
isEdit: true,
|
|
1261
1303
|
blockDisplay: true,
|
|
1304
|
+
description: "Ask user to enter a date string. For a better user experience install the flatpickr module.",
|
|
1262
1305
|
run: (nm, v, attrs, cls, required, field) => input({
|
|
1263
1306
|
type: "text",
|
|
1264
1307
|
class: ["form-control", cls],
|
|
@@ -1284,6 +1327,7 @@ const date = {
|
|
|
1284
1327
|
editDay: {
|
|
1285
1328
|
isEdit: true,
|
|
1286
1329
|
blockDisplay: true,
|
|
1330
|
+
description: "Ask user to enter a day string. For a better user experience install the flatpickr module.",
|
|
1287
1331
|
run: (nm, v, attrs, cls, required, field) => input({
|
|
1288
1332
|
type: "text",
|
|
1289
1333
|
class: ["form-control", cls],
|
|
@@ -1366,6 +1410,7 @@ const bool = {
|
|
|
1366
1410
|
*/
|
|
1367
1411
|
show: {
|
|
1368
1412
|
isEdit: false,
|
|
1413
|
+
description: "Show as a green tick or red cross circle",
|
|
1369
1414
|
run: (v) => typeof v === "undefined" || v === null
|
|
1370
1415
|
? ""
|
|
1371
1416
|
: v
|
|
@@ -1383,6 +1428,7 @@ const bool = {
|
|
|
1383
1428
|
*/
|
|
1384
1429
|
checkboxes: {
|
|
1385
1430
|
isEdit: false,
|
|
1431
|
+
description: "Show with a non-editable checkbox",
|
|
1386
1432
|
run: (v) => v === true
|
|
1387
1433
|
? input({ disabled: true, type: "checkbox", checked: true })
|
|
1388
1434
|
: v === false
|
|
@@ -1396,6 +1442,7 @@ const bool = {
|
|
|
1396
1442
|
*/
|
|
1397
1443
|
TrueFalse: {
|
|
1398
1444
|
isEdit: false,
|
|
1445
|
+
description: "Show as True or False",
|
|
1399
1446
|
run: (v) => (v === true ? "True" : v === false ? "False" : ""),
|
|
1400
1447
|
},
|
|
1401
1448
|
/**
|
|
@@ -1405,6 +1452,7 @@ const bool = {
|
|
|
1405
1452
|
*/
|
|
1406
1453
|
edit: {
|
|
1407
1454
|
isEdit: true,
|
|
1455
|
+
description: "Edit with a checkbox",
|
|
1408
1456
|
configFields: [
|
|
1409
1457
|
{
|
|
1410
1458
|
name: "size",
|
|
@@ -1434,6 +1482,7 @@ const bool = {
|
|
|
1434
1482
|
},
|
|
1435
1483
|
switch: {
|
|
1436
1484
|
isEdit: true,
|
|
1485
|
+
description: "Edit with a switch",
|
|
1437
1486
|
run: (nm, v, attrs, cls, required, field) => {
|
|
1438
1487
|
const onChange = attrs.isFilter && v
|
|
1439
1488
|
? `unset_state_field('${nm}', this)`
|
|
@@ -1459,6 +1508,7 @@ const bool = {
|
|
|
1459
1508
|
*/
|
|
1460
1509
|
tristate: {
|
|
1461
1510
|
isEdit: true,
|
|
1511
|
+
description: "Edit with a control that can be True, False and Null (missing)",
|
|
1462
1512
|
run: (nm, v, attrs, cls, required, field) => attrs.disabled
|
|
1463
1513
|
? !(!isdef(v) || v === null)
|
|
1464
1514
|
? ""
|