drapcode-constant 1.1.2 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -214,6 +214,13 @@ export declare const FieldTypes: {
214
214
  advancedOptions: boolean;
215
215
  advSortOrder: number;
216
216
  };
217
+ json: {
218
+ id: string;
219
+ name: string;
220
+ show: boolean;
221
+ advancedOptions: boolean;
222
+ advSortOrder: number;
223
+ };
217
224
  };
218
225
  export declare const defaultFields: string[];
219
226
  export declare const crudKeys: string[];
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
- var __spreadArrays = (this && this.__spreadArrays) || function () {
3
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
4
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
5
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
6
- r[k] = a[j];
7
- return r;
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));
8
10
  };
9
11
  Object.defineProperty(exports, "__esModule", { value: true });
10
12
  exports.filterFieldsForDataTable = exports.fieldToShow = exports.filterFieldForCommandObj = exports.collectionDefaultFieldSortOrder = exports.AllSelectOptionFields = exports.nonReferenceField = exports.NonBelongsSelectOptionFields = exports.MultiSelectOptionFields = exports.SelectOptionFields = exports.level3ReferenceField = exports.level3ReferenceField2 = exports.BelongsCreatedByRefField = exports.notFieldForImport = exports.notFieldForExport = exports.hiddenFormField = exports.DefaultPrivateField = exports.systemAndRefField = exports.placeholderField = exports.ReferenceCreatedByFields = exports.referenceAndDynamicField = exports.BelongsToReferenceField = exports.ImageUrlFields = exports.StringFields = exports.referenceTextField = exports.pageCollectionFields = exports.textField1 = exports.NoRefFields = exports.textEmailPasswordField = exports.simpleTextFeild = exports.pureTextField = exports.mixedField = exports.systemHideField = exports.linkField = exports.numberTextField = exports.exportHideField = exports.uuidField = exports.passwordField = exports.emailField = exports.systemDateField = exports.FileUrlFields = exports.URLFields = exports.ImageFields = exports.childDataField = exports.onlyReferenceField = exports.OptionTypeFields = exports.filterFieldsForForm = exports.fieldType = exports.crudKeys = exports.defaultFields = exports.FieldTypes = void 0;
@@ -213,8 +215,15 @@ exports.FieldTypes = {
213
215
  advancedOptions: true,
214
216
  advSortOrder: 3,
215
217
  },
218
+ json: {
219
+ id: "json",
220
+ name: "JSON",
221
+ show: false,
222
+ advancedOptions: true,
223
+ advSortOrder: 4,
224
+ },
216
225
  };
217
- var createdBy = exports.FieldTypes.createdBy, uuid = exports.FieldTypes.uuid, createdAt = exports.FieldTypes.createdAt, isDeleted = exports.FieldTypes.isDeleted, reference = exports.FieldTypes.reference, multi_reference = exports.FieldTypes.multi_reference, belongsTo = exports.FieldTypes.belongsTo, dynamic_option = exports.FieldTypes.dynamic_option, updatedAt = exports.FieldTypes.updatedAt, color = exports.FieldTypes.color, file = exports.FieldTypes.file, image = exports.FieldTypes.image, multi_image = exports.FieldTypes.multi_image, static_option = exports.FieldTypes.static_option, password = exports.FieldTypes.password, large_text = exports.FieldTypes.large_text, number = exports.FieldTypes.number, url = exports.FieldTypes.url, text = exports.FieldTypes.text, email = exports.FieldTypes.email, custom_uuid = exports.FieldTypes.custom_uuid, date = exports.FieldTypes.date, tel = exports.FieldTypes.tel, boolean = exports.FieldTypes.boolean, unix_timestamp = exports.FieldTypes.unix_timestamp, object = exports.FieldTypes.object, video_link = exports.FieldTypes.video_link, slug = exports.FieldTypes.slug;
226
+ var createdBy = exports.FieldTypes.createdBy, uuid = exports.FieldTypes.uuid, createdAt = exports.FieldTypes.createdAt, isDeleted = exports.FieldTypes.isDeleted, reference = exports.FieldTypes.reference, multi_reference = exports.FieldTypes.multi_reference, belongsTo = exports.FieldTypes.belongsTo, dynamic_option = exports.FieldTypes.dynamic_option, updatedAt = exports.FieldTypes.updatedAt, color = exports.FieldTypes.color, file = exports.FieldTypes.file, image = exports.FieldTypes.image, multi_image = exports.FieldTypes.multi_image, static_option = exports.FieldTypes.static_option, password = exports.FieldTypes.password, large_text = exports.FieldTypes.large_text, number = exports.FieldTypes.number, url = exports.FieldTypes.url, text = exports.FieldTypes.text, email = exports.FieldTypes.email, custom_uuid = exports.FieldTypes.custom_uuid, date = exports.FieldTypes.date, tel = exports.FieldTypes.tel, boolean = exports.FieldTypes.boolean, unix_timestamp = exports.FieldTypes.unix_timestamp, object = exports.FieldTypes.object, video_link = exports.FieldTypes.video_link, slug = exports.FieldTypes.slug, json = exports.FieldTypes.json;
218
227
  exports.defaultFields = [
219
228
  "id",
220
229
  "uuid",
@@ -312,87 +321,87 @@ exports.mixedField = [
312
321
  boolean.id,
313
322
  ];
314
323
  /** Usage of emailField */
315
- var stringField = __spreadArrays(exports.emailField, [color.id, uuid.id, custom_uuid.id]);
316
- exports.pureTextField = __spreadArrays(exports.emailField, exports.numberTextField, exports.linkField, [
324
+ var stringField = __spreadArray(__spreadArray([], exports.emailField, true), [color.id, uuid.id, custom_uuid.id], false);
325
+ exports.pureTextField = __spreadArray(__spreadArray(__spreadArray(__spreadArray([], exports.emailField, true), exports.numberTextField, true), exports.linkField, true), [
317
326
  color.id,
318
- ]);
319
- exports.simpleTextFeild = __spreadArrays(exports.emailField, [
327
+ ], false);
328
+ exports.simpleTextFeild = __spreadArray(__spreadArray([], exports.emailField, true), [
320
329
  boolean.id,
321
330
  url.id,
322
331
  large_text.id,
323
332
  number.id,
324
- ]);
325
- exports.textEmailPasswordField = __spreadArrays(exports.emailField, [password.id]);
326
- exports.NoRefFields = __spreadArrays(exports.emailField, exports.numberTextField, [
333
+ ], false);
334
+ exports.textEmailPasswordField = __spreadArray(__spreadArray([], exports.emailField, true), [password.id], false);
335
+ exports.NoRefFields = __spreadArray(__spreadArray(__spreadArray([], exports.emailField, true), exports.numberTextField, true), [
327
336
  color.id,
328
337
  boolean.id,
329
- ]);
330
- exports.textField1 = __spreadArrays(exports.emailField, exports.numberTextField, [
338
+ ], false);
339
+ exports.textField1 = __spreadArray(__spreadArray(__spreadArray([], exports.emailField, true), exports.numberTextField, true), [
331
340
  boolean.id,
332
341
  url.id,
333
- ]);
342
+ ], false);
334
343
  /** Usage of uuidField */
335
- exports.pageCollectionFields = __spreadArrays(exports.uuidField, [
344
+ exports.pageCollectionFields = __spreadArray(__spreadArray([], exports.uuidField, true), [
336
345
  large_text.id,
337
346
  createdAt.id,
338
347
  number.id,
339
348
  boolean.id,
340
- ]);
341
- exports.referenceTextField = __spreadArrays(exports.uuidField, exports.childDataField, [number.id]);
349
+ ], false);
350
+ exports.referenceTextField = __spreadArray(__spreadArray(__spreadArray([], exports.uuidField, true), exports.childDataField, true), [number.id], false);
342
351
  /** Usage of textEmailPasswordField */
343
- exports.StringFields = __spreadArrays(exports.textEmailPasswordField, exports.linkField);
352
+ exports.StringFields = __spreadArray(__spreadArray([], exports.textEmailPasswordField, true), exports.linkField, true);
344
353
  /** Usage of ImageFields */
345
- exports.ImageUrlFields = __spreadArrays(exports.ImageFields, [file.id]);
354
+ exports.ImageUrlFields = __spreadArray(__spreadArray([], exports.ImageFields, true), [file.id], false);
346
355
  /** Usage of onlyReferenceField */
347
- exports.BelongsToReferenceField = __spreadArrays(exports.onlyReferenceField, [belongsTo.id]);
348
- exports.referenceAndDynamicField = __spreadArrays(exports.onlyReferenceField, [
356
+ exports.BelongsToReferenceField = __spreadArray(__spreadArray([], exports.onlyReferenceField, true), [belongsTo.id], false);
357
+ exports.referenceAndDynamicField = __spreadArray(__spreadArray([], exports.onlyReferenceField, true), [
349
358
  dynamic_option.id,
350
- ]);
351
- exports.ReferenceCreatedByFields = __spreadArrays(exports.onlyReferenceField, [createdBy.id]);
352
- exports.placeholderField = __spreadArrays(exports.onlyReferenceField, exports.systemDateField, [
359
+ ], false);
360
+ exports.ReferenceCreatedByFields = __spreadArray(__spreadArray([], exports.onlyReferenceField, true), [createdBy.id], false);
361
+ exports.placeholderField = __spreadArray(__spreadArray(__spreadArray([], exports.onlyReferenceField, true), exports.systemDateField, true), [
353
362
  createdBy.id,
354
363
  isDeleted.id,
355
364
  password.id,
356
- ]);
365
+ ], false);
357
366
  /** Usage of systemDateField and systemHideField */
358
- exports.systemAndRefField = __spreadArrays(exports.systemHideField, exports.referenceAndDynamicField);
359
- exports.DefaultPrivateField = __spreadArrays(exports.systemHideField, [password.id]);
360
- exports.hiddenFormField = __spreadArrays(exports.systemHideField, exports.systemDateField);
361
- exports.notFieldForExport = __spreadArrays(exports.systemDateField, exports.exportHideField, [
367
+ exports.systemAndRefField = __spreadArray(__spreadArray([], exports.systemHideField, true), exports.referenceAndDynamicField, true);
368
+ exports.DefaultPrivateField = __spreadArray(__spreadArray([], exports.systemHideField, true), [password.id], false);
369
+ exports.hiddenFormField = __spreadArray(__spreadArray([], exports.systemHideField, true), exports.systemDateField, true);
370
+ exports.notFieldForExport = __spreadArray(__spreadArray(__spreadArray([], exports.systemDateField, true), exports.exportHideField, true), [
362
371
  isDeleted.id,
363
372
  object.id,
364
373
  createdBy.id,
365
- ]);
366
- exports.notFieldForImport = __spreadArrays(exports.systemDateField, exports.systemHideField, exports.ImageFields, [
374
+ ], false);
375
+ exports.notFieldForImport = __spreadArray(__spreadArray(__spreadArray(__spreadArray([], exports.systemDateField, true), exports.systemHideField, true), exports.ImageFields, true), [
367
376
  password.id,
368
- ]);
377
+ ], false);
369
378
  /** Usage of BelongsToReferenceField */
370
- exports.BelongsCreatedByRefField = __spreadArrays(exports.BelongsToReferenceField, [
379
+ exports.BelongsCreatedByRefField = __spreadArray(__spreadArray([], exports.BelongsToReferenceField, true), [
371
380
  createdBy.id,
372
- ]);
373
- exports.level3ReferenceField2 = __spreadArrays(exports.BelongsToReferenceField, exports.hiddenFormField, exports.exportHideField);
374
- exports.level3ReferenceField = __spreadArrays(exports.BelongsCreatedByRefField, exports.systemDateField, exports.exportHideField, [
381
+ ], false);
382
+ exports.level3ReferenceField2 = __spreadArray(__spreadArray(__spreadArray([], exports.BelongsToReferenceField, true), exports.hiddenFormField, true), exports.exportHideField, true);
383
+ exports.level3ReferenceField = __spreadArray(__spreadArray(__spreadArray(__spreadArray([], exports.BelongsCreatedByRefField, true), exports.systemDateField, true), exports.exportHideField, true), [
375
384
  isDeleted.id,
376
- ]);
385
+ ], false);
377
386
  /** Usage of OptionTypeFields */
378
- exports.SelectOptionFields = __spreadArrays(exports.OptionTypeFields, [reference.id]);
379
- exports.MultiSelectOptionFields = __spreadArrays(exports.OptionTypeFields, [belongsTo.id]);
380
- exports.NonBelongsSelectOptionFields = __spreadArrays(exports.OptionTypeFields, exports.onlyReferenceField);
381
- exports.nonReferenceField = __spreadArrays(stringField, exports.linkField, [
387
+ exports.SelectOptionFields = __spreadArray(__spreadArray([], exports.OptionTypeFields, true), [reference.id], false);
388
+ exports.MultiSelectOptionFields = __spreadArray(__spreadArray([], exports.OptionTypeFields, true), [belongsTo.id], false);
389
+ exports.NonBelongsSelectOptionFields = __spreadArray(__spreadArray([], exports.OptionTypeFields, true), exports.onlyReferenceField, true);
390
+ exports.nonReferenceField = __spreadArray(__spreadArray(__spreadArray([], stringField, true), exports.linkField, true), [
382
391
  large_text.id,
383
392
  number.id,
384
393
  password.id,
385
394
  video_link.id,
386
395
  boolean.id,
387
- ]);
388
- exports.AllSelectOptionFields = __spreadArrays(exports.onlyReferenceField, exports.MultiSelectOptionFields);
389
- var textField = __spreadArrays(exports.linkField, stringField, [
396
+ ], false);
397
+ exports.AllSelectOptionFields = __spreadArray(__spreadArray([], exports.onlyReferenceField, true), exports.MultiSelectOptionFields, true);
398
+ var textField = __spreadArray(__spreadArray(__spreadArray([], exports.linkField, true), stringField, true), [
390
399
  number.id,
391
400
  date.id,
392
401
  boolean.id,
393
402
  unix_timestamp.id,
394
403
  password.id,
395
- ]);
404
+ ], false);
396
405
  exports.collectionDefaultFieldSortOrder = [
397
406
  { order: 1, field: uuid.id },
398
407
  { order: 2, field: createdAt.id },
@@ -401,11 +410,11 @@ exports.collectionDefaultFieldSortOrder = [
401
410
  ];
402
411
  var filterFieldForCommandObj = function () {
403
412
  return Object.keys(exports.FieldTypes).filter(function (field) {
404
- return !__spreadArrays(exports.systemDateField, exports.systemAndRefField, exports.ImageUrlFields, [
413
+ return !__spreadArray(__spreadArray(__spreadArray(__spreadArray([], exports.systemDateField, true), exports.systemAndRefField, true), exports.ImageUrlFields, true), [
405
414
  belongsTo.id,
406
415
  static_option.id,
407
416
  color.id,
408
- ]).includes(field);
417
+ ], false).includes(field);
409
418
  });
410
419
  };
411
420
  exports.filterFieldForCommandObj = filterFieldForCommandObj;
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
- var __spreadArrays = (this && this.__spreadArrays) || function () {
3
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
4
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
5
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
6
- r[k] = a[j];
7
- return r;
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));
8
10
  };
9
11
  var __importDefault = (this && this.__importDefault) || function (mod) {
10
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -20,7 +22,7 @@ var getTimezoneOffset = function (time) {
20
22
  time = "(GMT+5:30)";
21
23
  }
22
24
  var str = time.substring(4, 10);
23
- return moment_1.default().utcOffset(str).utcOffset();
25
+ return (0, moment_1.default)().utcOffset(str).utcOffset();
24
26
  };
25
27
  exports.getTimezoneOffset = getTimezoneOffset;
26
28
  var replaceNbsps = function (str) {
@@ -32,13 +34,13 @@ exports.defaultMetaTags = [
32
34
  '<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">',
33
35
  ];
34
36
  var getAssetLink = function (path) {
35
- return "https://asset.drapcode.com/" + path;
37
+ return "https://asset.drapcode.com/".concat(path);
36
38
  };
37
39
  exports.getAssetLink = getAssetLink;
38
40
  var getScriptTag = function (paths, isDefer) {
39
41
  if (isDefer === void 0) { isDefer = false; }
40
42
  return paths.map(function (path) {
41
- return "<script type=\"text/javascript\" src=\"" + exports.getAssetLink("js/" + path) + "\" " + (isDefer ? 'defer' : '') + "></script>";
43
+ return "<script type=\"text/javascript\" src=\"".concat((0, exports.getAssetLink)("js/".concat(path)), "\" ").concat(isDefer ? "defer" : "", "></script>");
42
44
  });
43
45
  };
44
46
  exports.getScriptTag = getScriptTag;
@@ -46,20 +48,20 @@ var getCssTag = function (paths, loadAsync) {
46
48
  if (loadAsync === void 0) { loadAsync = false; }
47
49
  if (loadAsync) {
48
50
  return paths.map(function (path) {
49
- return "<link rel=\"preload\" href=\"" + exports.getAssetLink("css/" + path) + "\" as=\"style\" onload=\"this.onload=null;this.rel='stylesheet'\">\n <noscript><link rel=\"stylesheet\" href=\"" + exports.getAssetLink("css/" + path) + "\"></noscript>";
51
+ return "<link rel=\"preload\" href=\"".concat((0, exports.getAssetLink)("css/".concat(path)), "\" as=\"style\" onload=\"this.onload=null;this.rel='stylesheet'\">\n <noscript><link rel=\"stylesheet\" href=\"").concat((0, exports.getAssetLink)("css/".concat(path)), "\"></noscript>");
50
52
  });
51
53
  }
52
54
  else {
53
55
  return paths.map(function (path) {
54
- return "<link rel='stylesheet' type='text/css' href=\"" + exports.getAssetLink("css/" + path) + "\">";
56
+ return "<link rel='stylesheet' type='text/css' href=\"".concat((0, exports.getAssetLink)("css/".concat(path)), "\">");
55
57
  });
56
58
  }
57
59
  };
58
60
  exports.getCssTag = getCssTag;
59
- exports.defaultHeaderJS = __spreadArrays(exports.getScriptTag(["popper.min.js", "bootstrap.min.js", "feather.min.js"], true), [
61
+ exports.defaultHeaderJS = __spreadArray(__spreadArray([], (0, exports.getScriptTag)(["popper.min.js", "bootstrap.min.js", "feather.min.js"], true), true), [
60
62
  '<script type="text/javascript" src="https://polyfill.io/v3/polyfill.min.js?features=default" defer></script>',
61
- ]);
62
- exports.defaultHeaderCSS = __spreadArrays(exports.getCssTag([
63
+ ], false);
64
+ exports.defaultHeaderCSS = __spreadArray(__spreadArray([], (0, exports.getCssTag)([
63
65
  "bootstrap.min.css",
64
66
  "toastr.min.css",
65
67
  "sweetalert2.min.css",
@@ -68,24 +70,24 @@ exports.defaultHeaderCSS = __spreadArrays(exports.getCssTag([
68
70
  "flatpickr.min.css",
69
71
  "loader.css",
70
72
  "all.min.css",
71
- 'dc-custom.min.css',
72
- ], true), [
73
- "<link rel='stylesheet' type='text/css' href='" + exports.getAssetLink("intl-tel-input/intlTelInput.min.css") + "'>",
73
+ "dc-custom.min.css",
74
+ ], true), true), [
75
+ "<link rel='stylesheet' type='text/css' href='".concat((0, exports.getAssetLink)("intl-tel-input/intlTelInput.min.css"), "'>"),
74
76
  "<link rel='stylesheet' type='text/css' href='https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css'>",
75
77
  "<link rel='stylesheet' type='text/css' href='https://unpkg.com/dropzone@5/dist/min/dropzone.min.css'>",
76
78
  "<link rel='stylesheet' type='text/css' href='https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/magnific-popup.min.css'>",
77
- ]);
78
- exports.defaultFonts = __spreadArrays([
79
+ ], false);
80
+ exports.defaultFonts = __spreadArray([
79
81
  '<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>'
80
- ], exports.getCssTag(["googlefonts.css"], true));
82
+ ], (0, exports.getCssTag)(["googlefonts.css"], true), true);
81
83
  var brandMessage = function (brand_msg) {
82
- return "<div style=\"background-color:white;padding:5px; position: fixed;right: 15px;bottom: 15px;font-size: 15px;font-weight: 600;border-radius: 5px;border: 1px solid #223049;z-index:9999;\">\n <a target=\"_blank\" href=\"https://drapcode.com\" style=\"text-decoration: none;color: #223049;display: flex;align-items: center\">\n <img src=\"https://drapcode.com/favicon.png\" alt=\"DrapCode\" style=\"object-fit: contain;width: 20px\"/> &nbsp;\n " + brand_msg + "\n </a>\n </div>";
84
+ return "<div style=\"background-color:white;padding:5px; position: fixed;right: 15px;bottom: 15px;font-size: 15px;font-weight: 600;border-radius: 5px;border: 1px solid #223049;z-index:9999;\">\n <a target=\"_blank\" href=\"https://drapcode.com\" style=\"text-decoration: none;color: #223049;display: flex;align-items: center\">\n <img src=\"https://drapcode.com/favicon.png\" alt=\"DrapCode\" style=\"object-fit: contain;width: 20px\"/> &nbsp;\n ".concat(brand_msg, "\n </a>\n </div>");
83
85
  };
84
86
  exports.brandMessage = brandMessage;
85
- exports.primaryBodyJS = __spreadArrays([
87
+ exports.primaryBodyJS = __spreadArray(__spreadArray([
86
88
  '<script type="text/javascript" src="/resources/constant.js"></script>',
87
89
  '<script type="text/javascript" src="/resources/drapcode.min.js"></script>'
88
- ], exports.getScriptTag([
90
+ ], (0, exports.getScriptTag)([
89
91
  "jquery.validate.min.js",
90
92
  "math.min.js",
91
93
  "moment.js",
@@ -100,8 +102,8 @@ exports.primaryBodyJS = __spreadArrays([
100
102
  "toastr.min.js",
101
103
  "axios.js",
102
104
  "sweetalert2.all.min.js",
103
- ]), [
104
- "<script type=\"text/javascript\" src=\"" + exports.getAssetLink("intl-tel-input/intlTelInput-jquery.min.js") + "\"></script>",
105
+ ]), true), [
106
+ "<script type=\"text/javascript\" src=\"".concat((0, exports.getAssetLink)("intl-tel-input/intlTelInput-jquery.min.js"), "\"></script>"),
105
107
  '<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/apexcharts"></script>',
106
108
  '<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/lodash@4.17.21/lodash.min.js"></script>',
107
109
  '<script type="text/javascript" src="https://unpkg.com/dropzone@5/dist/min/dropzone.min.js"></script>',
@@ -114,4 +116,6 @@ exports.primaryBodyJS = __spreadArrays([
114
116
  '<script type="text/javascript" src="/resources/dataLoader.min.js"></script>',
115
117
  '<script type="text/javascript" src="/resources/drapcode.body.min.js"></script>',
116
118
  '<script type="text/javascript" src="/resources/drapcode.modal.min.js"></script>',
117
- ]);
119
+ '<script src="https://unpkg.com/@popperjs/core@2"></script>',
120
+ '<script src="https://unpkg.com/tippy.js@6"></script>',
121
+ ], false);
@@ -18,6 +18,7 @@ export declare const APP_WRITE = "APP_WRITE";
18
18
  export declare const DRAPCODE = "DRAPCODE";
19
19
  export declare const EMAIL_TEMPLATE = "EMAIL_TEMPLATE";
20
20
  export declare const SMS_TEMPLATE = "SMS_TEMPLATE";
21
+ export declare const TOOLTIP_TEMPLATE = "TOOLTIP_TEMPLATE";
21
22
  export declare const CURRENT_SESSION = "current_session";
22
23
  export declare const CURRENT_USER_LOWER = "current_user";
23
24
  export declare const REFERENCE_FIELDS = "reference_fields";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fieldsKeyPrefixMap = exports.fieldsPrefixForDF = exports.dataSourcePrimaryKeys = exports.API_TYPES2 = exports.API_TYPES = exports.SALESFORCE = exports.DIRECTUS = exports.XATA = exports.CURRENT_USER_REFERENCE_FIELDS_PREFIX = exports.CURRENT_USER_PREFIX = exports.ENVIRONMENT_VARIABLE_PREFIX = exports.CURRENT_USER_DERIVED_FIELDS_PREFIX = exports.PROJECT_CONSTANTS_PREFIX = exports.COLLECTION_CONSTANTS_PREFIX = exports.DERIVED_FIELDS_PREFIX = exports.REFERENCE_FIELDS_PREFIX = exports.FORM_DATA_SESSION = exports.ENVIRONMENT_VARIABLE = exports.PROJECT_CONSTANTS = exports.COLLECTION_CONSTANTS = exports.DERIVED_FIELDS = exports.REFERENCE_FIELDS = exports.CURRENT_USER_LOWER = exports.CURRENT_SESSION = exports.SMS_TEMPLATE = exports.EMAIL_TEMPLATE = exports.DRAPCODE = exports.APP_WRITE = exports.NOTION = exports.APPWRITE = exports.SUPABASE = exports.XANO = exports.MAKE = exports.INTEGROMAT = exports.CHAT_GPT = exports.ZAPIER = exports.FIREBASE_FUNCTION = exports.FIREBASE_CLOUD_FIRESTORE = exports.FIREBASE_REALTIME_DATABASE = exports.AIRTABLE = exports.GOOGLE_SHEET = exports.DATABASE = exports.REST_API = exports.REST_API_PRIMAREY_KEY = void 0;
3
+ exports.fieldsKeyPrefixMap = exports.fieldsPrefixForDF = exports.dataSourcePrimaryKeys = exports.API_TYPES2 = exports.API_TYPES = exports.SALESFORCE = exports.DIRECTUS = exports.XATA = exports.CURRENT_USER_REFERENCE_FIELDS_PREFIX = exports.CURRENT_USER_PREFIX = exports.ENVIRONMENT_VARIABLE_PREFIX = exports.CURRENT_USER_DERIVED_FIELDS_PREFIX = exports.PROJECT_CONSTANTS_PREFIX = exports.COLLECTION_CONSTANTS_PREFIX = exports.DERIVED_FIELDS_PREFIX = exports.REFERENCE_FIELDS_PREFIX = exports.FORM_DATA_SESSION = exports.ENVIRONMENT_VARIABLE = exports.PROJECT_CONSTANTS = exports.COLLECTION_CONSTANTS = exports.DERIVED_FIELDS = exports.REFERENCE_FIELDS = exports.CURRENT_USER_LOWER = exports.CURRENT_SESSION = exports.TOOLTIP_TEMPLATE = exports.SMS_TEMPLATE = exports.EMAIL_TEMPLATE = exports.DRAPCODE = exports.APP_WRITE = exports.NOTION = exports.APPWRITE = exports.SUPABASE = exports.XANO = exports.MAKE = exports.INTEGROMAT = exports.CHAT_GPT = exports.ZAPIER = exports.FIREBASE_FUNCTION = exports.FIREBASE_CLOUD_FIRESTORE = exports.FIREBASE_REALTIME_DATABASE = exports.AIRTABLE = exports.GOOGLE_SHEET = exports.DATABASE = exports.REST_API = exports.REST_API_PRIMAREY_KEY = void 0;
4
4
  exports.REST_API_PRIMAREY_KEY = "_data_source_rest_api_primary_id";
5
5
  exports.REST_API = "REST_API";
6
6
  exports.DATABASE = "DATABASE";
@@ -21,6 +21,7 @@ exports.APP_WRITE = "APP_WRITE";
21
21
  exports.DRAPCODE = "DRAPCODE";
22
22
  exports.EMAIL_TEMPLATE = "EMAIL_TEMPLATE";
23
23
  exports.SMS_TEMPLATE = "SMS_TEMPLATE";
24
+ exports.TOOLTIP_TEMPLATE = "TOOLTIP_TEMPLATE";
24
25
  exports.CURRENT_SESSION = "current_session";
25
26
  exports.CURRENT_USER_LOWER = "current_user";
26
27
  exports.REFERENCE_FIELDS = "reference_fields";
@@ -38,8 +39,8 @@ exports.ENVIRONMENT_VARIABLE_PREFIX = "environment_variable.";
38
39
  exports.CURRENT_USER_PREFIX = "current_user.";
39
40
  exports.CURRENT_USER_REFERENCE_FIELDS_PREFIX = "current_user_reference_field.";
40
41
  exports.XATA = "XATA";
41
- exports.DIRECTUS = 'DIRECTUS';
42
- exports.SALESFORCE = 'SALESFORCE';
42
+ exports.DIRECTUS = "DIRECTUS";
43
+ exports.SALESFORCE = "SALESFORCE";
43
44
  exports.API_TYPES = [
44
45
  exports.REST_API,
45
46
  exports.DATABASE,
@@ -57,7 +58,7 @@ exports.API_TYPES = [
57
58
  exports.CHAT_GPT,
58
59
  exports.XATA,
59
60
  exports.DIRECTUS,
60
- exports.SALESFORCE
61
+ exports.SALESFORCE,
61
62
  ];
62
63
  exports.API_TYPES2 = [
63
64
  exports.REST_API,
@@ -45,6 +45,7 @@ export declare const pluginCode: {
45
45
  PERMISSIONS_MANAGE: string;
46
46
  MESSAGING: string;
47
47
  MULTIPLE_ROLES: string;
48
+ DATA_FORM_SEARCH_HISTORY: string;
48
49
  };
49
50
  export declare const loginPluginCode: string[];
50
51
  export declare const chatGptModels: {
@@ -48,6 +48,7 @@ exports.pluginCode = {
48
48
  PERMISSIONS_MANAGE: "PERMISSIONS_MANAGE",
49
49
  MESSAGING: "MESSAGING",
50
50
  MULTIPLE_ROLES: "MULTIPLE_ROLES",
51
+ DATA_FORM_SEARCH_HISTORY: "DATA_FORM_SEARCH_HISTORY",
51
52
  };
52
53
  exports.loginPluginCode = [
53
54
  exports.pluginCode.LOGIN,
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
- var __spreadArrays = (this && this.__spreadArrays) || function () {
3
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
4
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
5
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
6
- r[k] = a[j];
7
- return r;
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));
8
10
  };
9
11
  Object.defineProperty(exports, "__esModule", { value: true });
10
12
  exports.DateConstant = exports.DateTimeUnit = exports.YEAR = exports.MONTH = exports.WEEK = exports.DAY = exports.HOUR = exports.CURRENT_DATE_TIME = exports.CURRENT_DATE = exports.CURRENT_TIME = exports.CURRENT_TENANT = exports.CURRENT_USER = exports.NOT_EQUAL = exports.BETWEEN = exports.GREATER_THAN_EQUALS_TO = exports.LESS_THAN_EQUALS_TO = exports.GREATER_THAN = exports.LESS_THAN = exports.NOT_IN_LIST = exports.IN_LIST = exports.LIKE = exports.IS_NULL = exports.IS_NOT_NULL = exports.EQUALS = void 0;
@@ -31,11 +33,11 @@ exports.WEEK = "WEEK";
31
33
  exports.MONTH = "MONTH";
32
34
  exports.YEAR = "YEAR";
33
35
  exports.DateTimeUnit = [exports.HOUR, exports.DAY, exports.WEEK, exports.MONTH, exports.YEAR];
34
- exports.DateConstant = __spreadArrays([
36
+ exports.DateConstant = __spreadArray([
35
37
  exports.CURRENT_DATE,
36
38
  exports.CURRENT_TIME,
37
39
  exports.CURRENT_DATE_TIME
38
- ], exports.DateTimeUnit);
40
+ ], exports.DateTimeUnit, true);
39
41
  /*
40
42
  export const dateRangeConstants = [
41
43
  CURRENT_USER,
package/build/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drapcode-constant",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "Drapcode Constants",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",