drapcode-constant 1.6.9 → 1.7.0
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.
|
@@ -346,7 +346,12 @@ exports.linkField = [tel.id, url.id];
|
|
|
346
346
|
exports.passwordUrlField = [password.id, url.id]; //N
|
|
347
347
|
exports.largeTextNumberField = [large_text.id, number.id]; //N
|
|
348
348
|
exports.booleanUrlField = [boolean.id, url.id]; //N
|
|
349
|
-
exports.hiddenField = [
|
|
349
|
+
exports.hiddenField = [
|
|
350
|
+
createdBy.id,
|
|
351
|
+
isDeleted.id,
|
|
352
|
+
updatedBy.id,
|
|
353
|
+
version.id,
|
|
354
|
+
]; //N
|
|
350
355
|
exports.passwordBooleanField = [boolean.id, password.id]; //N
|
|
351
356
|
exports.timeSlotPicker = [time_picker.id, time_slot.id]; //N
|
|
352
357
|
exports.textNumberField = [text.id, number.id]; //N
|
|
@@ -24,14 +24,50 @@ exports.deepseekAiEngines = {
|
|
|
24
24
|
};
|
|
25
25
|
exports.aiModelEngines = [
|
|
26
26
|
// { label: openAiEngines.GPT_4_VISION, value: openAiEngines.GPT_4_VISION, modelType: OPEN_AI },
|
|
27
|
-
{
|
|
28
|
-
|
|
27
|
+
{
|
|
28
|
+
label: exports.openAiEngines.GPT_4_TURBO_2024_04_09,
|
|
29
|
+
value: exports.openAiEngines.GPT_4_TURBO_2024_04_09,
|
|
30
|
+
modelType: exports.OPEN_AI,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
label: exports.openAiEngines.GPT_4O_2024_05_13,
|
|
34
|
+
value: exports.openAiEngines.GPT_4O_2024_05_13,
|
|
35
|
+
modelType: exports.OPEN_AI,
|
|
36
|
+
},
|
|
29
37
|
// { label: claudeAiEngines.CLAUDE_3_SONNET, value: claudeAiEngines.CLAUDE_3_SONNET, modelType: CLAUDE_AI },
|
|
30
|
-
{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
{
|
|
36
|
-
|
|
38
|
+
{
|
|
39
|
+
label: exports.claudeAiEngines.CLAUDE_3_OPUS,
|
|
40
|
+
value: exports.claudeAiEngines.CLAUDE_3_OPUS,
|
|
41
|
+
modelType: exports.CLAUDE_AI,
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
label: exports.claudeAiEngines.CLAUDE_3_HAIKU,
|
|
45
|
+
value: exports.claudeAiEngines.CLAUDE_3_HAIKU,
|
|
46
|
+
modelType: exports.CLAUDE_AI,
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
label: exports.claudeAiEngines.CLAUDE_3_5_SONNET_2024_06_20,
|
|
50
|
+
value: exports.claudeAiEngines.CLAUDE_3_5_SONNET_2024_06_20,
|
|
51
|
+
modelType: exports.CLAUDE_AI,
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label: exports.claudeAiEngines.CLAUDE_3_5_SONNET_2024_10_22,
|
|
55
|
+
value: exports.claudeAiEngines.CLAUDE_3_5_SONNET_2024_10_22,
|
|
56
|
+
modelType: exports.CLAUDE_AI,
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
label: exports.claudeAiEngines.CLAUDE_3_5_SONNET_LATEST,
|
|
60
|
+
value: exports.claudeAiEngines.CLAUDE_3_5_SONNET_LATEST,
|
|
61
|
+
modelType: exports.CLAUDE_AI,
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: exports.deepseekAiEngines.DEEP_SEEK_V3,
|
|
65
|
+
value: exports.deepseekAiEngines.DEEP_SEEK_V3,
|
|
66
|
+
modelType: exports.DEEPSEEK_AI,
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
label: exports.deepseekAiEngines.DEEP_SEEK_R1,
|
|
70
|
+
value: exports.deepseekAiEngines.DEEP_SEEK_R1,
|
|
71
|
+
modelType: exports.DEEPSEEK_AI,
|
|
72
|
+
},
|
|
37
73
|
];
|
|
@@ -3,8 +3,6 @@ export declare const getTimezoneOffset: (time?: string) => number;
|
|
|
3
3
|
export declare const replaceNbsps: (str: string) => string;
|
|
4
4
|
export declare const defaultMetaTags: string[];
|
|
5
5
|
export declare const getAssetLink: (path: string) => string;
|
|
6
|
-
export declare const getScriptTag: (paths: Array<string>, isDefer?: boolean) => string[];
|
|
7
|
-
export declare const getCssTag: (paths: Array<string>, loadAsync?: boolean) => string[];
|
|
8
6
|
export declare const defaultHeaderJS: string[];
|
|
9
7
|
export declare const defaultHeaderCSS: string[];
|
|
10
8
|
export declare const defaultFonts: string[];
|
|
@@ -12,8 +12,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.PAGE_SNAPSHOT = exports.CONSTRAINT = exports.CONSTANT = exports.APP_CONSTANT = exports.ENV_VARIABLE = exports.ENVIRONMENT = exports.RESOURCE = exports.DERIVED_FIELD = exports.CONSTRUCTOR = exports.HTML_THEME = exports.CUSTOM_JS = exports.CUSTOM_CSS = exports.PWA_CONFIG = exports.LOCALIZATION = exports.CODE_EXPORT = exports.DATABASE_EXPORT = exports.DEVELOPER_API = exports.PROJECT_VERSION = exports.BACKGROUND_TASK = exports.WEBHOOK = exports.FIELD = exports.ACTION = exports.DATA_SOURCE = exports.TOOLTIP_TEMPLATE_PER = exports.SMS_TEMPLATE_PER = exports.EMAIL_TEMPLATE_PER = exports.PLUGIN = exports.COLLECTION_ITEM = exports.CUSTOM_DATA_MAPPING = exports.CUSTOM_COMPONENT = exports.EXTERNAL_API = exports.EVENT = exports.SNIPPET = exports.PAGE = exports.VALIDATION = exports.FILTER = exports.RECORD = exports.COLLECTION = exports.primaryBodyJS = exports.brandMessage = exports.defaultFonts = exports.defaultHeaderCSS = exports.defaultHeaderJS = exports.
|
|
16
|
-
exports.falsyValues = exports.truthyValues =
|
|
15
|
+
exports.PERMISSION_TYPES = exports.SNIPPET_SNAPSHOT = exports.PAGE_SNAPSHOT = exports.CONSTRAINT = exports.CONSTANT = exports.APP_CONSTANT = exports.ENV_VARIABLE = exports.ENVIRONMENT = exports.RESOURCE = exports.DERIVED_FIELD = exports.CONSTRUCTOR = exports.HTML_THEME = exports.CUSTOM_JS = exports.CUSTOM_CSS = exports.PWA_CONFIG = exports.LOCALIZATION = exports.CODE_EXPORT = exports.DATABASE_EXPORT = exports.DEVELOPER_API = exports.PROJECT_VERSION = exports.BACKGROUND_TASK = exports.WEBHOOK = exports.FIELD = exports.ACTION = exports.DATA_SOURCE = exports.TOOLTIP_TEMPLATE_PER = exports.SMS_TEMPLATE_PER = exports.EMAIL_TEMPLATE_PER = exports.PLUGIN = exports.COLLECTION_ITEM = exports.CUSTOM_DATA_MAPPING = exports.CUSTOM_COMPONENT = exports.EXTERNAL_API = exports.EVENT = exports.SNIPPET = exports.PAGE = exports.VALIDATION = exports.FILTER = exports.RECORD = exports.COLLECTION = exports.primaryBodyJS = exports.brandMessage = exports.defaultFonts = exports.defaultHeaderCSS = exports.defaultHeaderJS = exports.getAssetLink = exports.defaultMetaTags = exports.replaceNbsps = exports.getTimezoneOffset = exports.pageNotFound = void 0;
|
|
16
|
+
exports.falsyValues = exports.truthyValues = void 0;
|
|
17
17
|
var moment_1 = __importDefault(require("moment"));
|
|
18
18
|
var externalApi_1 = require("./externalApi");
|
|
19
19
|
var pageNotFound = function () { return "\n<div data-js=\"drapcode-sections\" id=\"ioob\" class=\"dc-sections\"> \n<div id=\"i45i\" class=\"container\">\n<div id=\"ip9d\" class=\"row\">\n <div id=\"i5t6\" class=\"col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12\"> \n <div id=\"ipmr\" class=\"container\">\n <div id=\"iwzs\" class=\"row\">\n <div id=\"i8j4\" class=\"col\">\n <h1 id=\"il68\" class=\"display-1\">204</h1>\n </div>\n </div>\n <div id=\"ic9ma\" class=\"row\">\n <div id=\"iz54g\" class=\"col\">\n <h3 id=\"igrlf\">No Content<br/></h3>\n <p id=\"iwq91\">There's no page content available<br/></p>\n </div>\n </div>\n </div>\n </div>\n</div>\n</div>\n</div>"; };
|
|
@@ -45,7 +45,6 @@ var getScriptTag = function (paths, isDefer) {
|
|
|
45
45
|
return "<script type=\"text/javascript\" src=\"".concat((0, exports.getAssetLink)("js/".concat(path)), "\" ").concat(isDefer ? "defer" : "", "></script>");
|
|
46
46
|
});
|
|
47
47
|
};
|
|
48
|
-
exports.getScriptTag = getScriptTag;
|
|
49
48
|
var getCssTag = function (paths, loadAsync) {
|
|
50
49
|
if (loadAsync === void 0) { loadAsync = false; }
|
|
51
50
|
if (loadAsync) {
|
|
@@ -59,11 +58,10 @@ var getCssTag = function (paths, loadAsync) {
|
|
|
59
58
|
});
|
|
60
59
|
}
|
|
61
60
|
};
|
|
62
|
-
exports.
|
|
63
|
-
exports.defaultHeaderJS = __spreadArray(__spreadArray([], (0, exports.getScriptTag)(["popper.min.js", "bootstrap.min.js", "feather.min.js"], true), true), [
|
|
61
|
+
exports.defaultHeaderJS = __spreadArray(__spreadArray([], getScriptTag(["popper.min.js", "bootstrap.min.js", "feather.min.js"], true), true), [
|
|
64
62
|
'<script type="text/javascript" src="https://polyfill.io/v3/polyfill.min.js?features=default" defer></script>',
|
|
65
63
|
], false);
|
|
66
|
-
exports.defaultHeaderCSS = __spreadArray(__spreadArray([],
|
|
64
|
+
exports.defaultHeaderCSS = __spreadArray(__spreadArray([], getCssTag([
|
|
67
65
|
"bootstrap.min.css",
|
|
68
66
|
"toastr.min.css",
|
|
69
67
|
"sweetalert2.min.css",
|
|
@@ -82,7 +80,7 @@ exports.defaultHeaderCSS = __spreadArray(__spreadArray([], (0, exports.getCssTag
|
|
|
82
80
|
], false);
|
|
83
81
|
exports.defaultFonts = __spreadArray([
|
|
84
82
|
'<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>'
|
|
85
|
-
],
|
|
83
|
+
], getCssTag(["googlefonts.css"], true), true);
|
|
86
84
|
var brandMessage = function (brand_msg) {
|
|
87
85
|
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\"/> \n ".concat(brand_msg, "\n </a>\n </div>");
|
|
88
86
|
};
|
|
@@ -90,7 +88,7 @@ exports.brandMessage = brandMessage;
|
|
|
90
88
|
exports.primaryBodyJS = __spreadArray(__spreadArray([
|
|
91
89
|
'<script type="text/javascript" src="/resources/constant.js"></script>',
|
|
92
90
|
'<script type="text/javascript" src="/resources/drapcode.min.js"></script>'
|
|
93
|
-
],
|
|
91
|
+
], getScriptTag([
|
|
94
92
|
"jquery.validate.min.js",
|
|
95
93
|
"math.min.js",
|
|
96
94
|
"moment.js",
|
package/build/constants/query.js
CHANGED
|
@@ -46,12 +46,3 @@ exports.DateConstant = __spreadArray([
|
|
|
46
46
|
], exports.DateTimeUnit, true);
|
|
47
47
|
exports.DateRangeConstant = [exports.CURRENT_MONTH, exports.CURRENT_YEAR];
|
|
48
48
|
exports.EQUALS_OR_IGNORE = "EQUALS_OR_IGNORE";
|
|
49
|
-
/*
|
|
50
|
-
export const dateRangeConstants = [
|
|
51
|
-
CURRENT_USER,
|
|
52
|
-
CURRENT_DATE,
|
|
53
|
-
CURRENT_DATE_TIME,
|
|
54
|
-
CURRENT_TIME,
|
|
55
|
-
];
|
|
56
|
-
|
|
57
|
-
*/
|