drapcode-constant 1.1.1 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -207,6 +207,13 @@ export declare const FieldTypes: {
|
|
207
207
|
advancedOptions: boolean;
|
208
208
|
advSortOrder: number;
|
209
209
|
};
|
210
|
+
slug: {
|
211
|
+
id: string;
|
212
|
+
name: string;
|
213
|
+
show: boolean;
|
214
|
+
advancedOptions: boolean;
|
215
|
+
advSortOrder: number;
|
216
|
+
};
|
210
217
|
};
|
211
218
|
export declare const defaultFields: string[];
|
212
219
|
export declare const crudKeys: string[];
|
@@ -53,7 +53,7 @@ exports.FieldTypes = {
|
|
53
53
|
color: {
|
54
54
|
id: "color",
|
55
55
|
name: "Color",
|
56
|
-
show:
|
56
|
+
show: true,
|
57
57
|
compositeKey: false,
|
58
58
|
},
|
59
59
|
file: {
|
@@ -208,8 +208,15 @@ exports.FieldTypes = {
|
|
208
208
|
advancedOptions: true,
|
209
209
|
advSortOrder: 2,
|
210
210
|
},
|
211
|
+
slug: {
|
212
|
+
id: "slug",
|
213
|
+
name: "Slug",
|
214
|
+
show: false,
|
215
|
+
advancedOptions: true,
|
216
|
+
advSortOrder: 3,
|
217
|
+
},
|
211
218
|
};
|
212
|
-
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;
|
219
|
+
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;
|
213
220
|
exports.defaultFields = [
|
214
221
|
"id",
|
215
222
|
"uuid",
|
@@ -340,7 +347,9 @@ exports.StringFields = __spreadArray(__spreadArray([], exports.textEmailPassword
|
|
340
347
|
exports.ImageUrlFields = __spreadArray(__spreadArray([], exports.ImageFields, true), [file.id], false);
|
341
348
|
/** Usage of onlyReferenceField */
|
342
349
|
exports.BelongsToReferenceField = __spreadArray(__spreadArray([], exports.onlyReferenceField, true), [belongsTo.id], false);
|
343
|
-
exports.referenceAndDynamicField = __spreadArray(__spreadArray([], exports.onlyReferenceField, true), [
|
350
|
+
exports.referenceAndDynamicField = __spreadArray(__spreadArray([], exports.onlyReferenceField, true), [
|
351
|
+
dynamic_option.id,
|
352
|
+
], false);
|
344
353
|
exports.ReferenceCreatedByFields = __spreadArray(__spreadArray([], exports.onlyReferenceField, true), [createdBy.id], false);
|
345
354
|
exports.placeholderField = __spreadArray(__spreadArray(__spreadArray([], exports.onlyReferenceField, true), exports.systemDateField, true), [
|
346
355
|
createdBy.id,
|
@@ -394,22 +403,6 @@ exports.collectionDefaultFieldSortOrder = [
|
|
394
403
|
];
|
395
404
|
var filterFieldForCommandObj = function () {
|
396
405
|
return Object.keys(exports.FieldTypes).filter(function (field) {
|
397
|
-
// return (
|
398
|
-
// field != createdBy.id &&
|
399
|
-
// field != uuid.id &&
|
400
|
-
// field != createdAt.id &&
|
401
|
-
// field != isDeleted.id &&
|
402
|
-
// field != reference.id &&
|
403
|
-
// field != multi_reference.id &&
|
404
|
-
// field != belongsTo.id &&
|
405
|
-
// field != dynamic_option.id &&
|
406
|
-
// field != updatedAt.id &&
|
407
|
-
// field != color.id &&
|
408
|
-
// field != file.id &&
|
409
|
-
// field != image.id &&
|
410
|
-
// field != static_option.id &&
|
411
|
-
// field != multi_image.id
|
412
|
-
// );
|
413
406
|
return !__spreadArray(__spreadArray(__spreadArray(__spreadArray([], exports.systemDateField, true), exports.systemAndRefField, true), exports.ImageUrlFields, true), [
|
414
407
|
belongsTo.id,
|
415
408
|
static_option.id,
|
@@ -40,7 +40,7 @@ exports.getAssetLink = getAssetLink;
|
|
40
40
|
var getScriptTag = function (paths, isDefer) {
|
41
41
|
if (isDefer === void 0) { isDefer = false; }
|
42
42
|
return paths.map(function (path) {
|
43
|
-
return "<script type=\"text/javascript\" src=\"".concat((0, exports.getAssetLink)("js/".concat(path)), "\" ").concat(isDefer ?
|
43
|
+
return "<script type=\"text/javascript\" src=\"".concat((0, exports.getAssetLink)("js/".concat(path)), "\" ").concat(isDefer ? "defer" : "", "></script>");
|
44
44
|
});
|
45
45
|
};
|
46
46
|
exports.getScriptTag = getScriptTag;
|
@@ -70,7 +70,7 @@ exports.defaultHeaderCSS = __spreadArray(__spreadArray([], (0, exports.getCssTag
|
|
70
70
|
"flatpickr.min.css",
|
71
71
|
"loader.css",
|
72
72
|
"all.min.css",
|
73
|
-
|
73
|
+
"dc-custom.min.css",
|
74
74
|
], true), true), [
|
75
75
|
"<link rel='stylesheet' type='text/css' href='".concat((0, exports.getAssetLink)("intl-tel-input/intlTelInput.min.css"), "'>"),
|
76
76
|
"<link rel='stylesheet' type='text/css' href='https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css'>",
|
@@ -116,4 +116,6 @@ exports.primaryBodyJS = __spreadArray(__spreadArray([
|
|
116
116
|
'<script type="text/javascript" src="/resources/dataLoader.min.js"></script>',
|
117
117
|
'<script type="text/javascript" src="/resources/drapcode.body.min.js"></script>',
|
118
118
|
'<script type="text/javascript" src="/resources/drapcode.modal.min.js"></script>',
|
119
|
+
'<script src="https://unpkg.com/@popperjs/core@2"></script>',
|
120
|
+
'<script src="https://unpkg.com/tippy.js@6"></script>',
|
119
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 =
|
42
|
-
exports.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,
|