drapcode-constant 1.7.1 → 1.7.3
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/README.md +64 -0
- package/build/constants/FieldTypes.d.ts +12 -256
- package/build/constants/FieldTypes.js +131 -152
- package/build/constants/FieldTypes.js.map +1 -0
- package/build/constants/aiModel.js +1 -0
- package/build/constants/aiModel.js.map +1 -0
- package/build/constants/builder.d.ts +22 -1
- package/build/constants/builder.js +124 -78
- package/build/constants/builder.js.map +1 -0
- package/build/constants/collection.js +4 -3
- package/build/constants/collection.js.map +1 -0
- package/build/constants/exportCode.js +1 -0
- package/build/constants/exportCode.js.map +1 -0
- package/build/constants/externalApi.js +1 -0
- package/build/constants/externalApi.js.map +1 -0
- package/build/constants/images.d.ts +5 -0
- package/build/constants/images.js +50 -0
- package/build/constants/images.js.map +1 -0
- package/build/constants/loan.js +1 -0
- package/build/constants/loan.js.map +1 -0
- package/build/constants/messages.js +1 -0
- package/build/constants/messages.js.map +1 -0
- package/build/constants/permissions.d.ts +1 -0
- package/build/constants/permissions.js +131 -128
- package/build/constants/permissions.js.map +1 -0
- package/build/constants/plugins.d.ts +1 -0
- package/build/constants/plugins.js +2 -0
- package/build/constants/plugins.js.map +1 -0
- package/build/constants/query.d.ts +17 -0
- package/build/constants/query.js +28 -13
- package/build/constants/query.js.map +1 -0
- package/build/constants/redis.d.ts +8 -0
- package/build/constants/redis.js +11 -1
- package/build/constants/redis.js.map +1 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +2 -0
- package/build/index.js.map +1 -0
- package/build/types/field.d.ts +30 -0
- package/build/types/field.js +3 -0
- package/build/types/field.js.map +1 -0
- package/package.json +15 -4
@@ -1,16 +1,11 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
3
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
4
|
-
if (ar || !(i in from)) {
|
5
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
6
|
-
ar[i] = from[i];
|
7
|
-
}
|
8
|
-
}
|
9
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
10
|
-
};
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.NoRefFields = exports.simpleTextField = exports.pureTextField = exports.notFieldForImport = exports.nonExportField = exports.stringLinkField = exports.mixedField = exports.normalTextField = exports.hiddenFormField = exports.stringField = exports.BelongsSelectOptionFields = exports.
|
13
|
-
exports.filterIndexFields = exports.filterFieldsForPlaceholderModal = exports.filterFieldsForItemTemplate = exports.filterFieldForItemTemplate = exports.filterSystemCreatedFieldsForItemList = exports.filterFieldsForItemList = exports.filterFieldsForDataTable = exports.fieldToShow = exports.filterFieldForCommandObj = exports.collectionDefaultFieldSortOrder = exports.AllSelectOptionFields = exports.nonReferenceField = exports.level3ReferenceField = exports.notFieldForExport = exports.level3ReferenceField2 = exports.
|
3
|
+
exports.pageCollectionFields = exports.textField1 = exports.NoRefFields = exports.simpleTextField = exports.pureTextField = exports.textTypeAndColorField = exports.notFieldForImport = exports.nonExportField = exports.stringLinkField = exports.mixedField = exports.normalTextField = exports.hiddenFormField = exports.stringField = exports.BelongsSelectOptionFields = exports.BelongsCreatedByRefField = exports.DefaultPrivateField = exports.TextTypeFields = exports.dateField = exports.MultiSelectOptionFields = exports.SelectOptionFields = exports.ImageUrlFields = exports.textEmailPasswordField = exports.hashCodeFieldText = exports.systemHideField = exports.textNumberField = exports.timeSlotPicker = exports.passwordBooleanField = exports.hiddenField = exports.byFields = exports.booleanUrlField = exports.largeTextNumberField = exports.passwordUrlField = exports.linkField = exports.numberTextField = exports.exportHideField = exports.uuidField = exports.passwordField = exports.emailField = exports.systemDateField = exports.FileUrlFields = exports.URLFields = exports.ImageFields = exports.ReferenceCreatedByFields = exports.BelongsToReferenceField = exports.childDataField = exports.OptionTypeFields = exports.fieldType = exports.crudKeys = exports.defaultFields = exports.FieldTypes = void 0;
|
4
|
+
exports.filterIndexFields = exports.filterFieldsForPlaceholderModal = exports.filterFieldsForItemTemplate = exports.filterFieldForItemTemplate = exports.filterSystemCreatedFieldsForItemList = exports.filterFieldsForItemList = exports.filterFieldsForDataTable = exports.fieldToShow = exports.filterFieldForCommandObj = exports.filterFieldsForForm = exports.collectionDefaultFieldSortOrder = exports.AllSelectOptionFields = exports.nonReferenceField = exports.level3ReferenceField = exports.notFieldForExport = exports.level3ReferenceField2 = exports.belongsToAndHiddenField = exports.systemAndRefField = exports.placeholderField = exports.StringFields = exports.referenceTextField = void 0;
|
5
|
+
/**
|
6
|
+
* Collection of all available field types in the system
|
7
|
+
* Each field type defines its properties, validation rules, and display settings
|
8
|
+
*/
|
14
9
|
exports.FieldTypes = {
|
15
10
|
text: {
|
16
11
|
id: "text",
|
@@ -79,12 +74,6 @@ exports.FieldTypes = {
|
|
79
74
|
compositeKey: true,
|
80
75
|
sortOrder: 11,
|
81
76
|
},
|
82
|
-
multi_reference: {
|
83
|
-
id: "multi_reference",
|
84
|
-
name: "Multi-reference",
|
85
|
-
show: false,
|
86
|
-
compositeKey: false,
|
87
|
-
},
|
88
77
|
image: {
|
89
78
|
id: "image",
|
90
79
|
name: "Image",
|
@@ -197,20 +186,22 @@ exports.FieldTypes = {
|
|
197
186
|
algorithm: "",
|
198
187
|
show: true,
|
199
188
|
sortOrder: 12,
|
189
|
+
compositeKey: false,
|
200
190
|
},
|
201
191
|
object: {
|
202
192
|
id: "object",
|
203
193
|
name: "Object",
|
204
194
|
show: false,
|
205
|
-
sortOrder:
|
195
|
+
sortOrder: 0,
|
196
|
+
compositeKey: false,
|
206
197
|
},
|
207
198
|
unix_timestamp: {
|
208
199
|
id: "unix_timestamp",
|
209
200
|
name: "Unix Timestamp",
|
210
201
|
validation: { min: 20, max: 140 },
|
211
|
-
miliSec: true,
|
212
202
|
show: false,
|
213
203
|
advancedOptions: true,
|
204
|
+
compositeKey: false,
|
214
205
|
advSortOrder: 1,
|
215
206
|
},
|
216
207
|
time_slot: {
|
@@ -218,6 +209,7 @@ exports.FieldTypes = {
|
|
218
209
|
name: "Time Slot",
|
219
210
|
show: false,
|
220
211
|
advancedOptions: true,
|
212
|
+
compositeKey: false,
|
221
213
|
advSortOrder: 2,
|
222
214
|
},
|
223
215
|
time_picker: {
|
@@ -225,6 +217,7 @@ exports.FieldTypes = {
|
|
225
217
|
name: "Timepicker",
|
226
218
|
show: false,
|
227
219
|
advancedOptions: true,
|
220
|
+
compositeKey: false,
|
228
221
|
advSortOrder: 3,
|
229
222
|
},
|
230
223
|
slug: {
|
@@ -232,6 +225,7 @@ exports.FieldTypes = {
|
|
232
225
|
name: "Slug",
|
233
226
|
show: false,
|
234
227
|
advancedOptions: true,
|
228
|
+
compositeKey: false,
|
235
229
|
advSortOrder: 4,
|
236
230
|
},
|
237
231
|
json: {
|
@@ -239,6 +233,7 @@ exports.FieldTypes = {
|
|
239
233
|
name: "JSON",
|
240
234
|
show: false,
|
241
235
|
advancedOptions: true,
|
236
|
+
compositeKey: false,
|
242
237
|
advSortOrder: 5,
|
243
238
|
},
|
244
239
|
markdown: {
|
@@ -246,14 +241,15 @@ exports.FieldTypes = {
|
|
246
241
|
name: "Markdown",
|
247
242
|
show: false,
|
248
243
|
advancedOptions: true,
|
244
|
+
compositeKey: false,
|
249
245
|
advSortOrder: 6,
|
250
246
|
},
|
251
247
|
};
|
252
|
-
|
248
|
+
const { belongsTo, boolean, color, createdAt, createdBy, custom_uuid, date, dynamic_option, email, file, image, isDeleted, large_text, multi_image, number, object, password, reference, static_option, tel, text, uuid, updatedAt, url, unix_timestamp, video_link,
|
253
249
|
// slug,
|
254
250
|
// json,
|
255
251
|
// markdown,
|
256
|
-
time_picker
|
252
|
+
time_picker, time_slot, updatedBy, version, } = exports.FieldTypes;
|
257
253
|
exports.defaultFields = [
|
258
254
|
"id",
|
259
255
|
"uuid",
|
@@ -278,7 +274,7 @@ exports.defaultFields = [
|
|
278
274
|
"version",
|
279
275
|
];
|
280
276
|
exports.crudKeys = ["create", "update", "detail", "list", "delete"];
|
281
|
-
|
277
|
+
const fieldType = (itemName, type) => {
|
282
278
|
if (itemName === "custom_uuid") {
|
283
279
|
return "uuid";
|
284
280
|
}
|
@@ -317,22 +313,12 @@ var fieldType = function (itemName, type) {
|
|
317
313
|
return type;
|
318
314
|
};
|
319
315
|
exports.fieldType = fieldType;
|
320
|
-
var filterFieldsForForm = function (fields) {
|
321
|
-
return fields.filter(function (field) {
|
322
|
-
return (field.type !== createdBy.id &&
|
323
|
-
field.type !== updatedBy.id &&
|
324
|
-
field.type !== version.id &&
|
325
|
-
field.type !== uuid.id &&
|
326
|
-
field.type !== updatedAt.id &&
|
327
|
-
field.type !== createdAt.id &&
|
328
|
-
field.type !== isDeleted.id);
|
329
|
-
});
|
330
|
-
};
|
331
|
-
exports.filterFieldsForForm = filterFieldsForForm;
|
332
316
|
/** TWO */
|
333
317
|
exports.OptionTypeFields = [static_option.id, dynamic_option.id];
|
334
|
-
|
318
|
+
//Can be removed
|
335
319
|
exports.childDataField = [reference.id, dynamic_option.id];
|
320
|
+
exports.BelongsToReferenceField = [reference.id, belongsTo.id];
|
321
|
+
exports.ReferenceCreatedByFields = [reference.id, createdBy.id];
|
336
322
|
exports.ImageFields = [image.id, multi_image.id];
|
337
323
|
exports.URLFields = [image.id, file.id];
|
338
324
|
exports.FileUrlFields = [file.id, url.id];
|
@@ -343,182 +329,175 @@ exports.uuidField = [text.id, uuid.id];
|
|
343
329
|
exports.exportHideField = [password.id, file.id];
|
344
330
|
exports.numberTextField = [number.id, tel.id];
|
345
331
|
exports.linkField = [tel.id, url.id];
|
346
|
-
exports.passwordUrlField = [password.id, url.id];
|
347
|
-
exports.largeTextNumberField = [large_text.id, number.id];
|
348
|
-
exports.booleanUrlField = [boolean.id, url.id];
|
332
|
+
exports.passwordUrlField = [password.id, url.id];
|
333
|
+
exports.largeTextNumberField = [large_text.id, number.id];
|
334
|
+
exports.booleanUrlField = [boolean.id, url.id];
|
335
|
+
exports.byFields = new Set([createdBy.id, updatedBy.id]);
|
349
336
|
exports.hiddenField = [
|
350
337
|
createdBy.id,
|
351
338
|
isDeleted.id,
|
352
339
|
updatedBy.id,
|
353
340
|
version.id,
|
354
|
-
];
|
355
|
-
exports.passwordBooleanField = [boolean.id, password.id];
|
356
|
-
exports.timeSlotPicker = [time_picker.id, time_slot.id];
|
357
|
-
exports.textNumberField = [text.id, number.id];
|
341
|
+
];
|
342
|
+
exports.passwordBooleanField = [boolean.id, password.id];
|
343
|
+
exports.timeSlotPicker = [time_picker.id, time_slot.id];
|
344
|
+
exports.textNumberField = [text.id, number.id];
|
358
345
|
/** THREE */
|
359
|
-
exports.systemHideField =
|
360
|
-
exports.hashCodeFieldText = [color.id, uuid.id, custom_uuid.id];
|
361
|
-
exports.textEmailPasswordField =
|
362
|
-
exports.ImageUrlFields =
|
363
|
-
exports.
|
364
|
-
exports.
|
365
|
-
|
366
|
-
], false);
|
367
|
-
exports.ReferenceCreatedByFields = __spreadArray(__spreadArray([], exports.onlyReferenceField, true), [createdBy.id], false);
|
368
|
-
exports.SelectOptionFields = __spreadArray(__spreadArray([], exports.OptionTypeFields, true), [reference.id], false);
|
369
|
-
exports.MultiSelectOptionFields = __spreadArray(__spreadArray([], exports.OptionTypeFields, true), [belongsTo.id], false);
|
370
|
-
exports.dateField = __spreadArray(__spreadArray([], exports.systemDateField, true), [date.id], false);
|
346
|
+
exports.systemHideField = [...exports.hiddenField, uuid.id];
|
347
|
+
exports.hashCodeFieldText = [color.id, uuid.id, custom_uuid.id];
|
348
|
+
exports.textEmailPasswordField = [...exports.emailField, password.id];
|
349
|
+
exports.ImageUrlFields = [...exports.ImageFields, file.id];
|
350
|
+
exports.SelectOptionFields = [...exports.OptionTypeFields, reference.id];
|
351
|
+
exports.MultiSelectOptionFields = [...exports.OptionTypeFields, belongsTo.id];
|
352
|
+
exports.dateField = [...exports.systemDateField, date.id];
|
371
353
|
/** FOUR */
|
372
|
-
exports.TextTypeFields =
|
373
|
-
exports.DefaultPrivateField =
|
374
|
-
exports.BelongsCreatedByRefField =
|
354
|
+
exports.TextTypeFields = [...exports.emailField, ...exports.numberTextField];
|
355
|
+
exports.DefaultPrivateField = [...exports.systemHideField, password.id];
|
356
|
+
exports.BelongsCreatedByRefField = [
|
357
|
+
...exports.BelongsToReferenceField,
|
375
358
|
createdBy.id,
|
376
|
-
]
|
377
|
-
exports.
|
378
|
-
exports.
|
359
|
+
];
|
360
|
+
exports.BelongsSelectOptionFields = [
|
361
|
+
...exports.SelectOptionFields,
|
379
362
|
createdBy.id,
|
380
363
|
belongsTo.id,
|
381
|
-
]
|
364
|
+
];
|
382
365
|
/** FIVE */
|
383
|
-
exports.stringField =
|
384
|
-
exports.hiddenFormField =
|
385
|
-
exports.normalTextField =
|
386
|
-
exports.mixedField =
|
366
|
+
exports.stringField = [...exports.emailField, ...exports.hashCodeFieldText];
|
367
|
+
exports.hiddenFormField = [...exports.systemHideField, ...exports.systemDateField];
|
368
|
+
exports.normalTextField = [...exports.TextTypeFields, ...exports.passwordUrlField];
|
369
|
+
exports.mixedField = [
|
370
|
+
...exports.hashCodeFieldText,
|
371
|
+
...exports.largeTextNumberField,
|
387
372
|
video_link.id,
|
388
373
|
boolean.id,
|
389
|
-
]
|
390
|
-
exports.stringLinkField =
|
391
|
-
exports.nonExportField =
|
392
|
-
exports.notFieldForImport =
|
374
|
+
];
|
375
|
+
exports.stringLinkField = [...exports.stringField, ...exports.linkField];
|
376
|
+
exports.nonExportField = [...exports.systemDateField, ...exports.exportHideField];
|
377
|
+
exports.notFieldForImport = [
|
378
|
+
...exports.hiddenFormField,
|
379
|
+
...exports.ImageFields,
|
393
380
|
password.id,
|
394
|
-
]
|
381
|
+
];
|
395
382
|
/** Usage of emailField */
|
396
|
-
exports.
|
397
|
-
exports.
|
398
|
-
exports.
|
399
|
-
exports.
|
383
|
+
exports.textTypeAndColorField = [...exports.TextTypeFields, color.id];
|
384
|
+
exports.pureTextField = [...exports.textTypeAndColorField, ...exports.linkField];
|
385
|
+
exports.simpleTextField = [
|
386
|
+
...exports.emailField,
|
387
|
+
...exports.largeTextNumberField,
|
388
|
+
...exports.booleanUrlField,
|
389
|
+
];
|
390
|
+
exports.NoRefFields = [...exports.textTypeAndColorField, boolean.id];
|
391
|
+
exports.textField1 = [...exports.TextTypeFields, ...exports.booleanUrlField];
|
400
392
|
/** Usage of uuidField */
|
401
|
-
exports.pageCollectionFields =
|
393
|
+
exports.pageCollectionFields = [
|
394
|
+
...exports.uuidField,
|
395
|
+
...exports.largeTextNumberField,
|
402
396
|
createdAt.id,
|
403
397
|
boolean.id,
|
404
|
-
]
|
405
|
-
exports.referenceTextField =
|
398
|
+
];
|
399
|
+
exports.referenceTextField = [...exports.uuidField, ...exports.childDataField, number.id];
|
406
400
|
/** Usage of textEmailPasswordField */
|
407
|
-
exports.StringFields =
|
408
|
-
exports.placeholderField =
|
401
|
+
exports.StringFields = [...exports.textEmailPasswordField, ...exports.linkField];
|
402
|
+
exports.placeholderField = [
|
403
|
+
reference.id,
|
404
|
+
...exports.systemDateField,
|
405
|
+
...exports.hiddenField,
|
409
406
|
password.id,
|
410
|
-
]
|
407
|
+
];
|
411
408
|
/** Usage of systemDateField and systemHideField */
|
412
|
-
exports.systemAndRefField =
|
409
|
+
exports.systemAndRefField = [...exports.systemHideField, ...exports.childDataField];
|
410
|
+
exports.belongsToAndHiddenField = [
|
411
|
+
...exports.BelongsToReferenceField,
|
412
|
+
...exports.hiddenFormField,
|
413
|
+
];
|
413
414
|
/** Usage of BelongsToReferenceField */
|
414
|
-
exports.level3ReferenceField2 =
|
415
|
-
exports.
|
416
|
-
exports.
|
415
|
+
exports.level3ReferenceField2 = [
|
416
|
+
...exports.belongsToAndHiddenField,
|
417
|
+
...exports.exportHideField,
|
418
|
+
];
|
419
|
+
exports.notFieldForExport = [...exports.nonExportField, ...exports.hiddenField, object.id];
|
420
|
+
exports.level3ReferenceField = [
|
421
|
+
...exports.BelongsCreatedByRefField,
|
422
|
+
...exports.nonExportField,
|
417
423
|
isDeleted.id,
|
418
|
-
]
|
424
|
+
];
|
419
425
|
/** Usage of OptionTypeFields */
|
420
|
-
exports.nonReferenceField =
|
426
|
+
exports.nonReferenceField = [
|
427
|
+
...exports.stringLinkField,
|
428
|
+
...exports.largeTextNumberField,
|
429
|
+
...exports.passwordBooleanField,
|
421
430
|
video_link.id,
|
422
|
-
]
|
423
|
-
exports.AllSelectOptionFields =
|
424
|
-
|
431
|
+
];
|
432
|
+
exports.AllSelectOptionFields = [reference.id, ...exports.MultiSelectOptionFields];
|
433
|
+
const textField = [
|
434
|
+
...exports.stringLinkField,
|
435
|
+
...exports.passwordBooleanField,
|
425
436
|
number.id,
|
426
437
|
date.id,
|
427
438
|
unix_timestamp.id,
|
428
|
-
]
|
439
|
+
];
|
429
440
|
exports.collectionDefaultFieldSortOrder = [
|
430
441
|
{ order: 1, field: uuid.id },
|
431
442
|
{ order: 2, field: createdAt.id },
|
432
443
|
{ order: 3, field: createdBy.id },
|
433
444
|
{ order: 4, field: updatedAt.id },
|
434
445
|
];
|
435
|
-
|
436
|
-
return
|
437
|
-
return !
|
446
|
+
const filterFieldsForForm = (fields) => {
|
447
|
+
return fields.filter((field) => {
|
448
|
+
return !exports.hiddenFormField.includes(field.type);
|
449
|
+
});
|
450
|
+
};
|
451
|
+
exports.filterFieldsForForm = filterFieldsForForm;
|
452
|
+
const filterFieldForCommandObj = () => {
|
453
|
+
return Object.keys(exports.FieldTypes).filter((field) => {
|
454
|
+
return ![
|
455
|
+
...exports.systemDateField,
|
456
|
+
...exports.systemAndRefField,
|
457
|
+
...exports.ImageUrlFields,
|
438
458
|
belongsTo.id,
|
439
459
|
static_option.id,
|
440
460
|
color.id,
|
441
|
-
]
|
461
|
+
].includes(field);
|
442
462
|
});
|
443
463
|
};
|
444
464
|
exports.filterFieldForCommandObj = filterFieldForCommandObj;
|
445
|
-
|
465
|
+
const fieldToShow = (type) => {
|
446
466
|
return !exports.systemAndRefField.includes(type);
|
447
467
|
};
|
448
468
|
exports.fieldToShow = fieldToShow;
|
449
|
-
|
450
|
-
return fields.filter(
|
451
|
-
|
452
|
-
field.type !== createdBy.id &&
|
453
|
-
field.type !== updatedBy.id &&
|
454
|
-
field.type !== version.id &&
|
455
|
-
field.type !== uuid.id &&
|
456
|
-
field.type !== updatedAt.id &&
|
457
|
-
field.type !== createdAt.id &&
|
458
|
-
field.type !== reference.id &&
|
459
|
-
field.type !== multi_reference.id &&
|
460
|
-
field.type !== isDeleted.id &&
|
461
|
-
field.type !== belongsTo.id &&
|
462
|
-
field.id !== "");
|
463
|
-
});
|
469
|
+
const filterFieldsForDataTable = (fields) => {
|
470
|
+
return fields.filter((field) => ![...exports.belongsToAndHiddenField, "utility"].includes(field.type) &&
|
471
|
+
field.id !== "");
|
464
472
|
};
|
465
473
|
exports.filterFieldsForDataTable = filterFieldsForDataTable;
|
466
|
-
|
467
|
-
return fields.filter(
|
468
|
-
return (field.type !== createdBy.id &&
|
469
|
-
field.type !== updatedBy.id &&
|
470
|
-
field.type !== version.id &&
|
471
|
-
field.type !== uuid.id &&
|
472
|
-
field.type !== isDeleted.id &&
|
473
|
-
field.type !== password.id);
|
474
|
-
});
|
474
|
+
const filterFieldsForItemList = (fields) => {
|
475
|
+
return fields.filter((field) => ![...exports.systemHideField, password.id].includes(field.type));
|
475
476
|
};
|
476
477
|
exports.filterFieldsForItemList = filterFieldsForItemList;
|
477
|
-
|
478
|
-
return fields.filter(
|
478
|
+
const filterSystemCreatedFieldsForItemList = (fields) => {
|
479
|
+
return fields.filter((field) => field.type === createdAt.id);
|
479
480
|
};
|
480
481
|
exports.filterSystemCreatedFieldsForItemList = filterSystemCreatedFieldsForItemList;
|
481
|
-
|
482
|
-
return (fieldName !== createdBy.id &&
|
483
|
-
fieldName !== updatedBy.id &&
|
484
|
-
fieldName !== version.id &&
|
485
|
-
fieldName !== createdAt.id &&
|
486
|
-
fieldName !== updatedAt.id &&
|
487
|
-
fieldName !== uuid.id &&
|
488
|
-
fieldName !== image.id &&
|
489
|
-
fieldName !== multi_image.id &&
|
490
|
-
fieldName !== reference.id &&
|
491
|
-
fieldName !== multi_reference.id &&
|
492
|
-
fieldName !== isDeleted.id);
|
493
|
-
};
|
482
|
+
const filterFieldForItemTemplate = (fieldName) => [...exports.hiddenFormField, reference.id, ...exports.ImageFields].includes(fieldName);
|
494
483
|
exports.filterFieldForItemTemplate = filterFieldForItemTemplate;
|
495
|
-
|
496
|
-
return fields.filter(
|
497
|
-
return (field.type
|
498
|
-
field.type !== updatedBy.id &&
|
499
|
-
field.type !== version.id &&
|
500
|
-
field.type !== createdAt.id &&
|
501
|
-
field.type !== updatedAt.id &&
|
502
|
-
field.type !== uuid.id &&
|
503
|
-
field.type !== isDeleted.id &&
|
504
|
-
field.type !== image.id &&
|
505
|
-
field.type !== multi_image.id &&
|
506
|
-
field.type !== reference.id &&
|
507
|
-
field.type !== multi_reference.id &&
|
508
|
-
field.type !== password.id);
|
484
|
+
const filterFieldsForItemTemplate = (fields) => {
|
485
|
+
return fields.filter((field) => {
|
486
|
+
return [...exports.notFieldForImport, reference.id].includes(field.type);
|
509
487
|
});
|
510
488
|
};
|
511
489
|
exports.filterFieldsForItemTemplate = filterFieldsForItemTemplate;
|
512
|
-
|
513
|
-
return fields.filter(
|
490
|
+
const filterFieldsForPlaceholderModal = (fields) => {
|
491
|
+
return fields.filter((field) => {
|
514
492
|
return !exports.placeholderField.includes(field.type);
|
515
493
|
});
|
516
494
|
};
|
517
495
|
exports.filterFieldsForPlaceholderModal = filterFieldsForPlaceholderModal;
|
518
|
-
|
496
|
+
const filterIndexFields = (fields) => {
|
519
497
|
if (!fields || fields.length === 0) {
|
520
498
|
return [];
|
521
499
|
}
|
522
|
-
return fields.filter(
|
500
|
+
return fields.filter((field) => textField.includes(field.type));
|
523
501
|
};
|
524
502
|
exports.filterIndexFields = filterIndexFields;
|
503
|
+
//# sourceMappingURL=FieldTypes.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+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E,uBAAe,CAAC,aAAa;QACpC,KAAK,EAAE,uBAAe,CAAC,aAAa;QACpC,SAAS,EAAE,iBAAS;KACrB;IACD;QACE,KAAK,EAAE,uBAAe,CAAC,cAAc;QACrC,KAAK,EAAE,uBAAe,CAAC,cAAc;QACrC,SAAS,EAAE,iBAAS;KACrB;IACD;QACE,KAAK,EAAE,uBAAe,CAAC,4BAA4B;QACnD,KAAK,EAAE,uBAAe,CAAC,4BAA4B;QACnD,SAAS,EAAE,iBAAS;KACrB;IACD;QACE,KAAK,EAAE,uBAAe,CAAC,4BAA4B;QACnD,KAAK,EAAE,uBAAe,CAAC,4BAA4B;QACnD,SAAS,EAAE,iBAAS;KACrB;IACD;QACE,KAAK,EAAE,uBAAe,CAAC,wBAAwB;QAC/C,KAAK,EAAE,uBAAe,CAAC,wBAAwB;QAC/C,SAAS,EAAE,iBAAS;KACrB;IACD;QACE,KAAK,EAAE,yBAAiB,CAAC,YAAY;QACrC,KAAK,EAAE,yBAAiB,CAAC,YAAY;QACrC,SAAS,EAAE,mBAAW;KACvB;IACD;QACE,KAAK,EAAE,yBAAiB,CAAC,YAAY;QACrC,KAAK,EAAE,yBAAiB,CAAC,YAAY;QACrC,SAAS,EAAE,mBAAW;KACvB;CACF,CAAC"}
|
@@ -1,7 +1,28 @@
|
|
1
|
+
/**
|
2
|
+
* Returns the HTML template for a 204 No Content page
|
3
|
+
*/
|
1
4
|
export declare const pageNotFound: () => string;
|
2
|
-
|
5
|
+
/**
|
6
|
+
* Gets the timezone offset in minutes from a timezone string
|
7
|
+
* @param time - Timezone string in format "(GMT+X:XX)" (default: "(GMT+5:30)")
|
8
|
+
* @returns The timezone offset in minutes
|
9
|
+
*/
|
10
|
+
export declare const getTimezoneOffset: (time?: string) => string | number;
|
11
|
+
/**
|
12
|
+
* Replaces non-breaking spaces with regular spaces in a string
|
13
|
+
* @param str - The input string
|
14
|
+
* @returns The string with non-breaking spaces replaced
|
15
|
+
*/
|
3
16
|
export declare const replaceNbsps: (str: string) => string;
|
17
|
+
/**
|
18
|
+
* Default meta tags for HTML pages
|
19
|
+
*/
|
4
20
|
export declare const defaultMetaTags: string[];
|
21
|
+
/**
|
22
|
+
* Generates a full asset URL
|
23
|
+
* @param path - The asset path
|
24
|
+
* @returns The complete asset URL
|
25
|
+
*/
|
5
26
|
export declare const getAssetLink: (path: string) => string;
|
6
27
|
export declare const defaultHeaderJS: string[];
|
7
28
|
export declare const defaultHeaderCSS: string[];
|