@saltcorn/data 0.8.6-beta.16 → 0.8.6-beta.18
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/index.d.ts +86 -80
- package/dist/base-plugin/index.d.ts.map +1 -1
- package/dist/base-plugin/types.d.ts +35 -28
- package/dist/base-plugin/types.d.ts.map +1 -1
- package/dist/base-plugin/types.js +40 -24
- package/dist/base-plugin/types.js.map +1 -1
- package/dist/base-plugin/viewtemplates/edit.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/edit.js +10 -7
- package/dist/base-plugin/viewtemplates/edit.js.map +1 -1
- package/dist/base-plugin/viewtemplates/show.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/show.js +37 -6
- package/dist/base-plugin/viewtemplates/show.js.map +1 -1
- package/dist/base-plugin/viewtemplates/viewable_fields.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/viewable_fields.js +2 -2
- package/dist/base-plugin/viewtemplates/viewable_fields.js.map +1 -1
- package/dist/db/state.d.ts +2 -2
- package/dist/db/state.d.ts.map +1 -1
- package/dist/db/state.js.map +1 -1
- package/dist/models/index.d.ts +2 -2
- package/dist/models/layout.d.ts +1 -1
- package/dist/models/layout.d.ts.map +1 -1
- package/dist/models/layout.js +4 -1
- package/dist/models/layout.js.map +1 -1
- package/dist/models/page.d.ts.map +1 -1
- package/dist/models/page.js +11 -7
- package/dist/models/page.js.map +1 -1
- package/dist/plugin-helper.d.ts.map +1 -1
- package/dist/plugin-helper.js +2 -2
- package/dist/plugin-helper.js.map +1 -1
- package/dist/utils.d.ts +1 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +8 -0
- package/dist/utils.js.map +1 -1
- package/package.json +7 -7
- package/dist/base-plugin/base.test.d.ts +0 -2
- package/dist/base-plugin/base.test.d.ts.map +0 -1
- package/dist/base-plugin/base.test.js +0 -15
- package/dist/base-plugin/base.test.js.map +0 -1
|
@@ -19,8 +19,14 @@ export const types: ({
|
|
|
19
19
|
run: (s: any) => any;
|
|
20
20
|
};
|
|
21
21
|
as_link: {
|
|
22
|
+
configFields: {
|
|
23
|
+
name: string;
|
|
24
|
+
label: string;
|
|
25
|
+
type: string;
|
|
26
|
+
sublabel: string;
|
|
27
|
+
}[];
|
|
22
28
|
isEdit: boolean;
|
|
23
|
-
run: (s: any) => any;
|
|
29
|
+
run: (s: any, req: any, attrs?: {}) => any;
|
|
24
30
|
};
|
|
25
31
|
img_from_url: {
|
|
26
32
|
isEdit: boolean;
|
|
@@ -286,90 +292,16 @@ export const types: ({
|
|
|
286
292
|
fieldviews: {
|
|
287
293
|
show: {
|
|
288
294
|
isEdit: boolean;
|
|
289
|
-
run: (
|
|
290
|
-
};
|
|
291
|
-
checkboxes: {
|
|
292
|
-
isEdit: boolean;
|
|
293
|
-
run: (v: any) => any;
|
|
294
|
-
};
|
|
295
|
-
TrueFalse: {
|
|
296
|
-
isEdit: boolean;
|
|
297
|
-
run: (v: any) => "" | "True" | "False";
|
|
298
|
-
};
|
|
299
|
-
edit: {
|
|
300
|
-
isEdit: boolean;
|
|
301
|
-
configFields: {
|
|
302
|
-
name: string;
|
|
303
|
-
label: string;
|
|
304
|
-
type: string;
|
|
305
|
-
attributes: {
|
|
306
|
-
options: string[];
|
|
307
|
-
};
|
|
308
|
-
}[];
|
|
309
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
310
|
-
};
|
|
311
|
-
switch: {
|
|
312
|
-
isEdit: boolean;
|
|
313
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
314
|
-
};
|
|
315
|
-
tristate: {
|
|
316
|
-
isEdit: boolean;
|
|
317
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
318
|
-
};
|
|
319
|
-
};
|
|
320
|
-
attributes: object[];
|
|
321
|
-
readFromFormRecord: (rec: any, name: string) => boolean | null;
|
|
322
|
-
read: (v: object) => boolean | null;
|
|
323
|
-
readFromDB: (v: object) => object;
|
|
324
|
-
listAs: (v: object) => object;
|
|
325
|
-
validate: () => boolean;
|
|
326
|
-
} | {
|
|
327
|
-
name: string;
|
|
328
|
-
sql_name: string;
|
|
329
|
-
contract: () => Function;
|
|
330
|
-
attributes: object[];
|
|
331
|
-
fieldviews: {
|
|
332
|
-
show: {
|
|
333
|
-
isEdit: boolean;
|
|
334
|
-
run: (d: any, req: any) => any;
|
|
335
|
-
};
|
|
336
|
-
showDay: {
|
|
337
|
-
isEdit: boolean;
|
|
338
|
-
run: (d: any, req: any) => any;
|
|
339
|
-
};
|
|
340
|
-
format: {
|
|
341
|
-
isEdit: boolean;
|
|
342
|
-
configFields: {
|
|
343
|
-
name: string;
|
|
344
|
-
label: string;
|
|
345
|
-
type: string;
|
|
346
|
-
sublabel: string;
|
|
347
|
-
}[];
|
|
348
|
-
run: (d: any, req: any, options: any) => any;
|
|
349
|
-
};
|
|
350
|
-
relative: {
|
|
351
|
-
isEdit: boolean;
|
|
352
|
-
run: (d: any, req: any) => string;
|
|
353
|
-
};
|
|
354
|
-
yearsAgo: {
|
|
355
|
-
isEdit: boolean;
|
|
356
|
-
run: (d: any, req: any) => string;
|
|
295
|
+
run: (s: any) => any;
|
|
357
296
|
};
|
|
358
297
|
edit: {
|
|
359
298
|
isEdit: boolean;
|
|
360
299
|
blockDisplay: boolean;
|
|
361
300
|
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
362
301
|
};
|
|
363
|
-
editDay: {
|
|
364
|
-
isEdit: boolean;
|
|
365
|
-
blockDisplay: boolean;
|
|
366
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
367
|
-
};
|
|
368
302
|
};
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
};
|
|
372
|
-
read: (v: object, attrs: object) => object;
|
|
303
|
+
attributes: object[];
|
|
304
|
+
read: (v: object) => object;
|
|
373
305
|
validate: () => boolean;
|
|
374
306
|
} | {
|
|
375
307
|
name: string;
|
|
@@ -444,19 +376,93 @@ export const types: ({
|
|
|
444
376
|
name: string;
|
|
445
377
|
sql_name: string;
|
|
446
378
|
contract: () => Function;
|
|
379
|
+
attributes: object[];
|
|
447
380
|
fieldviews: {
|
|
448
381
|
show: {
|
|
449
382
|
isEdit: boolean;
|
|
450
|
-
run: (
|
|
383
|
+
run: (d: any, req: any) => any;
|
|
384
|
+
};
|
|
385
|
+
showDay: {
|
|
386
|
+
isEdit: boolean;
|
|
387
|
+
run: (d: any, req: any) => any;
|
|
388
|
+
};
|
|
389
|
+
format: {
|
|
390
|
+
isEdit: boolean;
|
|
391
|
+
configFields: {
|
|
392
|
+
name: string;
|
|
393
|
+
label: string;
|
|
394
|
+
type: string;
|
|
395
|
+
sublabel: string;
|
|
396
|
+
}[];
|
|
397
|
+
run: (d: any, req: any, options: any) => any;
|
|
398
|
+
};
|
|
399
|
+
relative: {
|
|
400
|
+
isEdit: boolean;
|
|
401
|
+
run: (d: any, req: any) => string;
|
|
402
|
+
};
|
|
403
|
+
yearsAgo: {
|
|
404
|
+
isEdit: boolean;
|
|
405
|
+
run: (d: any, req: any) => string;
|
|
451
406
|
};
|
|
452
407
|
edit: {
|
|
453
408
|
isEdit: boolean;
|
|
454
409
|
blockDisplay: boolean;
|
|
455
410
|
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
456
411
|
};
|
|
412
|
+
editDay: {
|
|
413
|
+
isEdit: boolean;
|
|
414
|
+
blockDisplay: boolean;
|
|
415
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
presets: {
|
|
419
|
+
Now: () => Date;
|
|
420
|
+
};
|
|
421
|
+
read: (v: object, attrs: object) => object;
|
|
422
|
+
validate: () => boolean;
|
|
423
|
+
} | {
|
|
424
|
+
name: string;
|
|
425
|
+
sql_name: string;
|
|
426
|
+
contract: () => Function;
|
|
427
|
+
fieldviews: {
|
|
428
|
+
show: {
|
|
429
|
+
isEdit: boolean;
|
|
430
|
+
run: (v: any) => any;
|
|
431
|
+
};
|
|
432
|
+
checkboxes: {
|
|
433
|
+
isEdit: boolean;
|
|
434
|
+
run: (v: any) => any;
|
|
435
|
+
};
|
|
436
|
+
TrueFalse: {
|
|
437
|
+
isEdit: boolean;
|
|
438
|
+
run: (v: any) => "" | "True" | "False";
|
|
439
|
+
};
|
|
440
|
+
edit: {
|
|
441
|
+
isEdit: boolean;
|
|
442
|
+
configFields: {
|
|
443
|
+
name: string;
|
|
444
|
+
label: string;
|
|
445
|
+
type: string;
|
|
446
|
+
attributes: {
|
|
447
|
+
options: string[];
|
|
448
|
+
};
|
|
449
|
+
}[];
|
|
450
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
451
|
+
};
|
|
452
|
+
switch: {
|
|
453
|
+
isEdit: boolean;
|
|
454
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
455
|
+
};
|
|
456
|
+
tristate: {
|
|
457
|
+
isEdit: boolean;
|
|
458
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
459
|
+
};
|
|
457
460
|
};
|
|
458
461
|
attributes: object[];
|
|
459
|
-
|
|
462
|
+
readFromFormRecord: (rec: any, name: string) => boolean | null;
|
|
463
|
+
read: (v: object) => boolean | null;
|
|
464
|
+
readFromDB: (v: object) => object;
|
|
465
|
+
listAs: (v: object) => object;
|
|
460
466
|
validate: () => boolean;
|
|
461
467
|
})[];
|
|
462
468
|
export const viewtemplates: ({
|
|
@@ -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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Fields: {
|
|
27
|
+
name: string;
|
|
28
|
+
label: string;
|
|
29
|
+
type: string;
|
|
30
|
+
sublabel: string;
|
|
31
|
+
}[];
|
|
26
32
|
const isEdit_3: boolean;
|
|
27
33
|
export { isEdit_3 as isEdit };
|
|
28
|
-
export function run_3(s: any): any;
|
|
34
|
+
export function run_3(s: any, req: any, attrs?: {}): any;
|
|
29
35
|
export { run_3 as run };
|
|
30
36
|
}
|
|
31
37
|
namespace img_from_url {
|
|
@@ -44,7 +50,7 @@ export namespace string {
|
|
|
44
50
|
const isEdit_6: boolean;
|
|
45
51
|
export { isEdit_6 as isEdit };
|
|
46
52
|
export const blockDisplay: boolean;
|
|
47
|
-
export function
|
|
53
|
+
export function configFields_1(field: any): ({
|
|
48
54
|
name: string;
|
|
49
55
|
label: string;
|
|
50
56
|
type: string;
|
|
@@ -66,6 +72,7 @@ export namespace string {
|
|
|
66
72
|
type?: undefined;
|
|
67
73
|
sublabel?: undefined;
|
|
68
74
|
})[];
|
|
75
|
+
export { configFields_1 as configFields };
|
|
69
76
|
export function run_6(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
|
|
70
77
|
export { run_6 as run };
|
|
71
78
|
}
|
|
@@ -74,7 +81,7 @@ export namespace string {
|
|
|
74
81
|
export { isEdit_7 as isEdit };
|
|
75
82
|
const blockDisplay_1: boolean;
|
|
76
83
|
export { blockDisplay_1 as blockDisplay };
|
|
77
|
-
const
|
|
84
|
+
const configFields_2: ({
|
|
78
85
|
name: string;
|
|
79
86
|
label: string;
|
|
80
87
|
type: string;
|
|
@@ -113,7 +120,7 @@ export namespace string {
|
|
|
113
120
|
type?: undefined;
|
|
114
121
|
default?: undefined;
|
|
115
122
|
})[];
|
|
116
|
-
export {
|
|
123
|
+
export { configFields_2 as configFields };
|
|
117
124
|
export function run_7(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
|
|
118
125
|
export { run_7 as run };
|
|
119
126
|
}
|
|
@@ -122,7 +129,7 @@ export namespace string {
|
|
|
122
129
|
export { isEdit_8 as isEdit };
|
|
123
130
|
const blockDisplay_2: boolean;
|
|
124
131
|
export { blockDisplay_2 as blockDisplay };
|
|
125
|
-
const
|
|
132
|
+
const configFields_3: ({
|
|
126
133
|
name: string;
|
|
127
134
|
label: string;
|
|
128
135
|
type: string;
|
|
@@ -144,7 +151,7 @@ export namespace string {
|
|
|
144
151
|
input_type?: undefined;
|
|
145
152
|
options?: undefined;
|
|
146
153
|
})[];
|
|
147
|
-
export {
|
|
154
|
+
export { configFields_3 as configFields };
|
|
148
155
|
export function run_8(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
|
|
149
156
|
export { run_8 as run };
|
|
150
157
|
}
|
|
@@ -159,12 +166,12 @@ export namespace string {
|
|
|
159
166
|
namespace radio_group {
|
|
160
167
|
const isEdit_10: boolean;
|
|
161
168
|
export { isEdit_10 as isEdit };
|
|
162
|
-
const
|
|
169
|
+
const configFields_4: {
|
|
163
170
|
type: string;
|
|
164
171
|
name: string;
|
|
165
172
|
label: string;
|
|
166
173
|
}[];
|
|
167
|
-
export {
|
|
174
|
+
export { configFields_4 as configFields };
|
|
168
175
|
export function run_10(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
|
|
169
176
|
export { run_10 as run };
|
|
170
177
|
}
|
|
@@ -172,12 +179,12 @@ export namespace string {
|
|
|
172
179
|
const isEdit_11: boolean;
|
|
173
180
|
export { isEdit_11 as isEdit };
|
|
174
181
|
export const isFilter: boolean;
|
|
175
|
-
const
|
|
182
|
+
const configFields_5: {
|
|
176
183
|
type: string;
|
|
177
184
|
name: string;
|
|
178
185
|
label: string;
|
|
179
186
|
}[];
|
|
180
|
-
export {
|
|
187
|
+
export { configFields_5 as configFields };
|
|
181
188
|
export function run_11(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
|
|
182
189
|
export { run_11 as run };
|
|
183
190
|
}
|
|
@@ -227,23 +234,23 @@ export namespace int {
|
|
|
227
234
|
export { isEdit_14 as isEdit };
|
|
228
235
|
const blockDisplay_5: boolean;
|
|
229
236
|
export { blockDisplay_5 as blockDisplay };
|
|
230
|
-
const
|
|
237
|
+
const configFields_6: {
|
|
231
238
|
name: string;
|
|
232
239
|
label: string;
|
|
233
240
|
type: string;
|
|
234
241
|
}[];
|
|
235
|
-
export {
|
|
242
|
+
export { configFields_6 as configFields };
|
|
236
243
|
export function run_14(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
|
|
237
244
|
export { run_14 as run };
|
|
238
245
|
}
|
|
239
246
|
export { edit_1 as edit };
|
|
240
247
|
export namespace number_slider {
|
|
241
|
-
export function
|
|
248
|
+
export function configFields_7(field: any): {
|
|
242
249
|
name: string;
|
|
243
250
|
type: any;
|
|
244
251
|
required: boolean;
|
|
245
252
|
}[];
|
|
246
|
-
export {
|
|
253
|
+
export { configFields_7 as configFields };
|
|
247
254
|
const isEdit_15: boolean;
|
|
248
255
|
export { isEdit_15 as isEdit };
|
|
249
256
|
const blockDisplay_6: boolean;
|
|
@@ -252,12 +259,12 @@ export namespace int {
|
|
|
252
259
|
export { run_15 as run };
|
|
253
260
|
}
|
|
254
261
|
export namespace range_interval {
|
|
255
|
-
export function
|
|
262
|
+
export function configFields_8(field: any): {
|
|
256
263
|
name: string;
|
|
257
264
|
type: any;
|
|
258
265
|
required: boolean;
|
|
259
266
|
}[];
|
|
260
|
-
export {
|
|
267
|
+
export { configFields_8 as configFields };
|
|
261
268
|
const isEdit_16: boolean;
|
|
262
269
|
export { isEdit_16 as isEdit };
|
|
263
270
|
const isFilter_1: boolean;
|
|
@@ -268,7 +275,7 @@ export namespace int {
|
|
|
268
275
|
export { run_16 as run };
|
|
269
276
|
}
|
|
270
277
|
export namespace progress_bar {
|
|
271
|
-
export function
|
|
278
|
+
export function configFields_9(field: any): ({
|
|
272
279
|
name: string;
|
|
273
280
|
type: any;
|
|
274
281
|
required: boolean;
|
|
@@ -279,7 +286,7 @@ export namespace int {
|
|
|
279
286
|
label: string;
|
|
280
287
|
required?: undefined;
|
|
281
288
|
})[];
|
|
282
|
-
export {
|
|
289
|
+
export { configFields_9 as configFields };
|
|
283
290
|
const isEdit_17: boolean;
|
|
284
291
|
export { isEdit_17 as isEdit };
|
|
285
292
|
export function run_17(v: any, req: any, attrs?: {}): any;
|
|
@@ -292,24 +299,24 @@ export namespace int {
|
|
|
292
299
|
export { isFilter_2 as isFilter };
|
|
293
300
|
const blockDisplay_8: boolean;
|
|
294
301
|
export { blockDisplay_8 as blockDisplay };
|
|
295
|
-
const
|
|
302
|
+
const configFields_10: {
|
|
296
303
|
name: string;
|
|
297
304
|
label: string;
|
|
298
305
|
type: string;
|
|
299
306
|
}[];
|
|
300
|
-
export {
|
|
307
|
+
export { configFields_10 as configFields };
|
|
301
308
|
export function run_18(nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any, state?: {}): any;
|
|
302
309
|
export { run_18 as run };
|
|
303
310
|
}
|
|
304
311
|
export namespace below_input { }
|
|
305
312
|
export namespace show_star_rating {
|
|
306
|
-
export function
|
|
313
|
+
export function configFields_11(field: any): {
|
|
307
314
|
name: string;
|
|
308
315
|
type: string;
|
|
309
316
|
required: boolean;
|
|
310
317
|
default: number;
|
|
311
318
|
}[];
|
|
312
|
-
export {
|
|
319
|
+
export { configFields_11 as configFields };
|
|
313
320
|
const isEdit_19: boolean;
|
|
314
321
|
export { isEdit_19 as isEdit };
|
|
315
322
|
const blockDisplay_9: boolean;
|
|
@@ -318,13 +325,13 @@ export namespace int {
|
|
|
318
325
|
export { run_19 as run };
|
|
319
326
|
}
|
|
320
327
|
export namespace edit_star_rating {
|
|
321
|
-
export function
|
|
328
|
+
export function configFields_12(field: any): {
|
|
322
329
|
name: string;
|
|
323
330
|
type: string;
|
|
324
331
|
required: boolean;
|
|
325
332
|
default: number;
|
|
326
333
|
}[];
|
|
327
|
-
export {
|
|
334
|
+
export { configFields_12 as configFields };
|
|
328
335
|
const isEdit_20: boolean;
|
|
329
336
|
export { isEdit_20 as isEdit };
|
|
330
337
|
const blockDisplay_10: boolean;
|
|
@@ -373,7 +380,7 @@ export namespace bool {
|
|
|
373
380
|
export namespace edit_2 {
|
|
374
381
|
const isEdit_24: boolean;
|
|
375
382
|
export { isEdit_24 as isEdit };
|
|
376
|
-
const
|
|
383
|
+
const configFields_13: {
|
|
377
384
|
name: string;
|
|
378
385
|
label: string;
|
|
379
386
|
type: string;
|
|
@@ -381,7 +388,7 @@ export namespace bool {
|
|
|
381
388
|
options: string[];
|
|
382
389
|
};
|
|
383
390
|
}[];
|
|
384
|
-
export {
|
|
391
|
+
export { configFields_13 as configFields };
|
|
385
392
|
export function run_24(nm: any, v: any, attrs: any, cls: any, required: any, field: any): any;
|
|
386
393
|
export { run_24 as run };
|
|
387
394
|
}
|
|
@@ -437,13 +444,13 @@ export namespace date {
|
|
|
437
444
|
export namespace format {
|
|
438
445
|
const isEdit_29: boolean;
|
|
439
446
|
export { isEdit_29 as isEdit };
|
|
440
|
-
const
|
|
447
|
+
const configFields_14: {
|
|
441
448
|
name: string;
|
|
442
449
|
label: string;
|
|
443
450
|
type: string;
|
|
444
451
|
sublabel: string;
|
|
445
452
|
}[];
|
|
446
|
-
export {
|
|
453
|
+
export { configFields_14 as configFields };
|
|
447
454
|
export function run_29(d: any, req: any, options: any): any;
|
|
448
455
|
export { run_29 as run };
|
|
449
456
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../base-plugin/types.js"],"names":[],"mappings":";gBAqTa,MAAM;oBAEN,MAAM;IAML,+CA6EX;IAMS;;gBAK+D;;;;YAYxC,6BAAyB;;;;;YAGjD,mCACiE;;;;;;YAIjE,mCAA+C
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../base-plugin/types.js"],"names":[],"mappings":";gBAqTa,MAAM;oBAEN,MAAM;IAML,+CA6EX;IAMS;;gBAK+D;;;;YAYxC,6BAAyB;;;;;YAGjD,mCACiE;;;;;;YAIjE,mCAA+C;;;;;;;;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;YASH,8CAKG;;;;;;;;;;;;;YAiBH,4DAWJ;;;;;;YASI,iDAKJ;;;;;;YASI,iDAGJ;;;;;;;;YAWI,8FAkBD;;;;;;;;;YAWC,8FAkBD;;;;;;QASD,qBAAgB;;;IAOjB,yDAWL;;IAKS,sCAA2C;;;;kBAjT1C,MAAM;;sBAEN,MAAM;;IAQP;;;iBAAmD;;;;;;YAY/B,uCAAc;;;;;;;;;YAUnC,8FAiBD;;;;;;;;;;;;;;;;;YAz+BH,qHAaD;;;;;;;;wBAo+BO,MAAM,EAAE;;IAWb,+DAYL;;IAMC,mEAKC;;;;kBA5KQ,MAAM;;sBAEN,MAAM;;IAKP,uCAAY;;;;;;YAcb,oCAMG;;;;;;;;;YAWH,8FAWD;;;;;;wBAGG,MAAM,EAAE;;IAMb,0CAOL;;IAIS,sCAET"}
|
|
@@ -339,8 +339,18 @@ const string = {
|
|
|
339
339
|
* @subcategory types / string
|
|
340
340
|
*/
|
|
341
341
|
as_link: {
|
|
342
|
+
configFields: [
|
|
343
|
+
{
|
|
344
|
+
name: "link_title",
|
|
345
|
+
label: "Link title",
|
|
346
|
+
type: "String",
|
|
347
|
+
sublabel: "Optional. If blank, label is URL",
|
|
348
|
+
},
|
|
349
|
+
],
|
|
342
350
|
isEdit: false,
|
|
343
|
-
run: (s
|
|
351
|
+
run: (s, req, attrs = {}) => s
|
|
352
|
+
? a({ href: text(s || "") }, text_attr(attrs?.link_title || s || ""))
|
|
353
|
+
: "",
|
|
344
354
|
},
|
|
345
355
|
/**
|
|
346
356
|
* @namespace
|
|
@@ -1351,32 +1361,38 @@ const bool = {
|
|
|
1351
1361
|
},
|
|
1352
1362
|
},
|
|
1353
1363
|
],
|
|
1354
|
-
run: (nm, v, attrs, cls, required, field) =>
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1364
|
+
run: (nm, v, attrs, cls, required, field) => {
|
|
1365
|
+
const onChange = attrs.isFilter && v ? `unset_state_field('${nm}')` : attrs.onChange;
|
|
1366
|
+
return input({
|
|
1367
|
+
class: ["me-2 mt-1", attrs?.size || null, cls],
|
|
1368
|
+
"data-fieldname": text_attr(field.name),
|
|
1369
|
+
type: "checkbox",
|
|
1370
|
+
onChange,
|
|
1371
|
+
readonly: attrs.readonly,
|
|
1372
|
+
name: text_attr(nm),
|
|
1373
|
+
id: `input${text_attr(nm)}`,
|
|
1374
|
+
...(v && { checked: true }),
|
|
1375
|
+
...(attrs.disabled && { onclick: "return false;" }),
|
|
1376
|
+
});
|
|
1377
|
+
},
|
|
1365
1378
|
},
|
|
1366
1379
|
switch: {
|
|
1367
1380
|
isEdit: true,
|
|
1368
|
-
run: (nm, v, attrs, cls, required, field) =>
|
|
1369
|
-
|
|
1370
|
-
"
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1381
|
+
run: (nm, v, attrs, cls, required, field) => {
|
|
1382
|
+
const onChange = attrs.isFilter && v ? `unset_state_field('${nm}')` : attrs.onChange;
|
|
1383
|
+
return span({ class: "form-switch" }, input({
|
|
1384
|
+
class: ["form-check-input", cls],
|
|
1385
|
+
"data-fieldname": text_attr(field.name),
|
|
1386
|
+
type: "checkbox",
|
|
1387
|
+
onChange,
|
|
1388
|
+
readonly: attrs.readonly,
|
|
1389
|
+
role: "switch",
|
|
1390
|
+
name: text_attr(nm),
|
|
1391
|
+
id: `input${text_attr(nm)}`,
|
|
1392
|
+
...(v && { checked: true }),
|
|
1393
|
+
...(attrs.disabled && { onclick: "return false;" }),
|
|
1394
|
+
}));
|
|
1395
|
+
},
|
|
1380
1396
|
},
|
|
1381
1397
|
/**
|
|
1382
1398
|
* @namespace
|