@bigbinary/neeto-rules-frontend 2.1.0 → 2.3.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.
- package/README.md +1 -0
- package/app/javascript/src/translations/en.json +2 -1
- package/dist/NeetoRules.js +9837 -0
- package/dist/NeetoRules.js.map +1 -0
- package/dist/NeetoRulesForm.js +5201 -0
- package/dist/NeetoRulesForm.js.map +1 -0
- package/dist/RulePreview.js +483 -0
- package/dist/RulePreview.js.map +1 -0
- package/dist/{index.cjs.js → cjs/NeetoRules.js} +126 -6019
- package/dist/cjs/NeetoRules.js.map +1 -0
- package/dist/cjs/NeetoRulesForm.js +5255 -0
- package/dist/cjs/NeetoRulesForm.js.map +1 -0
- package/dist/cjs/RulePreview.js +495 -0
- package/dist/cjs/RulePreview.js.map +1 -0
- package/dist/cjs/constants.js +10 -0
- package/dist/cjs/constants.js.map +1 -0
- package/dist/cjs/hooks.js +12 -0
- package/dist/cjs/hooks.js.map +1 -0
- package/dist/cjs/index.js +85 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/constants-12c6ac46.js +5 -0
- package/dist/constants-12c6ac46.js.map +1 -0
- package/dist/constants-2f1113f8.js +8 -0
- package/dist/constants-2f1113f8.js.map +1 -0
- package/dist/constants-67118957.js +55 -0
- package/dist/constants-67118957.js.map +1 -0
- package/dist/constants-7347bfc4.js +48 -0
- package/dist/constants-7347bfc4.js.map +1 -0
- package/dist/constants.js +2 -0
- package/dist/constants.js.map +1 -0
- package/dist/hooks.js +4 -0
- package/dist/hooks.js.map +1 -0
- package/dist/index.js +72 -15694
- package/dist/index.js.map +1 -1
- package/dist/slicedToArray-2af6bc03.js +98 -0
- package/dist/slicedToArray-2af6bc03.js.map +1 -0
- package/dist/slicedToArray-cc928132.js +106 -0
- package/dist/slicedToArray-cc928132.js.map +1 -0
- package/dist/toConsumableArray-1215bc07.js +53 -0
- package/dist/toConsumableArray-1215bc07.js.map +1 -0
- package/dist/toConsumableArray-9f1f441a.js +58 -0
- package/dist/toConsumableArray-9f1f441a.js.map +1 -0
- package/dist/useCustomDataStore-51ceac06.js +13 -0
- package/dist/useCustomDataStore-51ceac06.js.map +1 -0
- package/dist/useCustomDataStore-c57f5581.js +15 -0
- package/dist/useCustomDataStore-c57f5581.js.map +1 -0
- package/dist/useUtilityStore-e4b36ba2.js +27 -0
- package/dist/useUtilityStore-e4b36ba2.js.map +1 -0
- package/dist/useUtilityStore-ee4f96f8.js +25 -0
- package/dist/useUtilityStore-ee4f96f8.js.map +1 -0
- package/package.json +23 -11
- package/dist/index.cjs.js.map +0 -1
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var constants = require('../constants-2f1113f8.js');
|
|
6
|
+
var NeetoRules = require('./NeetoRules.js');
|
|
7
|
+
var useCustomDataStore = require('../useCustomDataStore-c57f5581.js');
|
|
8
|
+
var NeetoRulesForm = require('./NeetoRulesForm.js');
|
|
9
|
+
var RulePreview = require('./RulePreview.js');
|
|
10
|
+
require('../slicedToArray-cc928132.js');
|
|
11
|
+
require('react');
|
|
12
|
+
require('@bigbinary/neeto-cist');
|
|
13
|
+
require('@bigbinary/neeto-commons-frontend/constants');
|
|
14
|
+
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
15
|
+
require('@bigbinary/neeto-molecules/Container');
|
|
16
|
+
require('@tanstack/react-query');
|
|
17
|
+
require('../toConsumableArray-9f1f441a.js');
|
|
18
|
+
require('axios');
|
|
19
|
+
require('@bigbinary/neeto-molecules/Header');
|
|
20
|
+
require('@bigbinary/neeto-molecules/HelpPopover');
|
|
21
|
+
require('@bigbinary/neetoui/Button');
|
|
22
|
+
require('react/jsx-runtime');
|
|
23
|
+
require('react-dom');
|
|
24
|
+
require('@bigbinary/neeto-icons/Reorder');
|
|
25
|
+
require('@bigbinary/neeto-molecules/PageLoader');
|
|
26
|
+
require('@bigbinary/neetoui/Pane');
|
|
27
|
+
require('@bigbinary/neetoui/Typography');
|
|
28
|
+
require('ramda');
|
|
29
|
+
require('react-i18next');
|
|
30
|
+
require('react-router-dom');
|
|
31
|
+
require('zustand/shallow');
|
|
32
|
+
require('@bigbinary/neeto-molecules/SubHeader');
|
|
33
|
+
require('@bigbinary/neeto-molecules/TableWrapper');
|
|
34
|
+
require('@bigbinary/neetoui/Alert');
|
|
35
|
+
require('@bigbinary/neetoui/Table');
|
|
36
|
+
require('@bigbinary/neetoui/NoData');
|
|
37
|
+
require('../useUtilityStore-e4b36ba2.js');
|
|
38
|
+
require('zustand');
|
|
39
|
+
require('i18next');
|
|
40
|
+
require('@bigbinary/neeto-commons-frontend/utils');
|
|
41
|
+
require('@bigbinary/neeto-molecules/MoreDropdown');
|
|
42
|
+
require('@bigbinary/neetoui/Switch');
|
|
43
|
+
require('@bigbinary/neetoui/Tooltip');
|
|
44
|
+
require('formik');
|
|
45
|
+
require('@bigbinary/neeto-icons/Plus');
|
|
46
|
+
require('@bigbinary/neeto-icons/Delete');
|
|
47
|
+
require('@bigbinary/neeto-icons/Refresh');
|
|
48
|
+
require('classnames');
|
|
49
|
+
require('@bigbinary/neeto-icons/Check');
|
|
50
|
+
require('@bigbinary/neeto-icons/Search');
|
|
51
|
+
require('@bigbinary/neetoui/Dropdown');
|
|
52
|
+
require('@bigbinary/neetoui/Input');
|
|
53
|
+
require('@bigbinary/neetoui/formik/Textarea');
|
|
54
|
+
require('@bigbinary/neetoui/formik/ActionBlock');
|
|
55
|
+
require('@bigbinary/neetoui/Label');
|
|
56
|
+
require('@bigbinary/neetoui/Select');
|
|
57
|
+
require('@bigbinary/neetoui/DatePicker');
|
|
58
|
+
require('@bigbinary/neeto-editor/FormikEditor');
|
|
59
|
+
require('@bigbinary/neetoui/formik/MultiEmailInput');
|
|
60
|
+
require('@bigbinary/neetoui/formik/Input');
|
|
61
|
+
require('@bigbinary/neeto-hotkeys');
|
|
62
|
+
require('@bigbinary/neeto-icons/Close');
|
|
63
|
+
require('@bigbinary/neetoui/Checkbox');
|
|
64
|
+
require('react-select/creatable');
|
|
65
|
+
require('@bigbinary/neeto-molecules/PhoneNumber');
|
|
66
|
+
require('@bigbinary/neetoui/Tag');
|
|
67
|
+
require('react-select');
|
|
68
|
+
require('yup');
|
|
69
|
+
require('@bigbinary/neeto-editor/utils');
|
|
70
|
+
require('../constants-67118957.js');
|
|
71
|
+
require('@bigbinary/neeto-icons/Eye');
|
|
72
|
+
require('@bigbinary/neetoui/formik/Select');
|
|
73
|
+
require('@bigbinary/neetoui/formik/Radio');
|
|
74
|
+
require('@bigbinary/neeto-icons/Help');
|
|
75
|
+
require('@bigbinary/neeto-icons/Down');
|
|
76
|
+
require('@bigbinary/neeto-icons/Up');
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
exports.AUTOMATION_RULES_QUERY_KEY = constants.AUTOMATION_RULES;
|
|
81
|
+
exports.NeetoRules = NeetoRules;
|
|
82
|
+
exports.useCustomDataStore = useCustomDataStore.useCustomDataStore;
|
|
83
|
+
exports.NeetoRulesForm = NeetoRulesForm;
|
|
84
|
+
exports.RulePreview = RulePreview;
|
|
85
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-12c6ac46.js","sources":["../app/javascript/src/common/constants.js"],"sourcesContent":["export const AUTOMATION_RULES = \"automation-rules\";\n\nexport const STALE_TIME = 3_200_000;\n"],"names":["AUTOMATION_RULES","STALE_TIME"],"mappings":"AAAO,IAAMA,gBAAgB,GAAG,mBAAkB;AAE3C,IAAMC,UAAU,GAAG;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-2f1113f8.js","sources":["../app/javascript/src/common/constants.js"],"sourcesContent":["export const AUTOMATION_RULES = \"automation-rules\";\n\nexport const STALE_TIME = 3_200_000;\n"],"names":["AUTOMATION_RULES","STALE_TIME"],"mappings":";;AAAO,IAAMA,gBAAgB,GAAG,mBAAkB;AAE3C,IAAMC,UAAU,GAAG;;;;;"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var i18next = require('i18next');
|
|
4
|
+
|
|
5
|
+
var OPERATORS = {
|
|
6
|
+
or: "or_operator",
|
|
7
|
+
and: "and_operator"
|
|
8
|
+
};
|
|
9
|
+
var OPERATOR_LABELS = {
|
|
10
|
+
or_operator: i18next.t("neetoRules.operators.or"),
|
|
11
|
+
and_operator: i18next.t("neetoRules.operators.and")
|
|
12
|
+
};
|
|
13
|
+
var VERB_LABELS = {
|
|
14
|
+
is: i18next.t("neetoRules.conditionVerbs.is"),
|
|
15
|
+
is_not: i18next.t("neetoRules.conditionVerbs.isNot"),
|
|
16
|
+
contains: i18next.t("neetoRules.conditionVerbs.contains"),
|
|
17
|
+
does_not_contain: i18next.t("neetoRules.conditionVerbs.doesNotContain"),
|
|
18
|
+
contains_any_of: i18next.t("neetoRules.conditionVerbs.containsAnyOf"),
|
|
19
|
+
contains_all_of: i18next.t("neetoRules.conditionVerbs.containsAllOf"),
|
|
20
|
+
contains_none_of: i18next.t("neetoRules.conditionVerbs.containsNoneOf"),
|
|
21
|
+
starts_with: i18next.t("neetoRules.conditionVerbs.startsWith"),
|
|
22
|
+
ends_with: i18next.t("neetoRules.conditionVerbs.endsWith"),
|
|
23
|
+
less_than: i18next.t("neetoRules.conditionVerbs.lessThan"),
|
|
24
|
+
greater_than: i18next.t("neetoRules.conditionVerbs.greaterThan"),
|
|
25
|
+
any_time: i18next.t("neetoRules.conditionVerbs.anyTime"),
|
|
26
|
+
during: i18next.t("neetoRules.conditionVerbs.during"),
|
|
27
|
+
not_during: i18next.t("neetoRules.conditionVerbs.notDuring"),
|
|
28
|
+
any_of: i18next.t("neetoRules.conditionVerbs.anyOf"),
|
|
29
|
+
none_of: i18next.t("neetoRules.conditionVerbs.noneOf"),
|
|
30
|
+
is_before: i18next.t("neetoRules.conditionVerbs.isBefore"),
|
|
31
|
+
is_after: i18next.t("neetoRules.conditionVerbs.isAfter")
|
|
32
|
+
};
|
|
33
|
+
var CONDITION_VALUE_TYPES = {
|
|
34
|
+
text: "text",
|
|
35
|
+
number: "number",
|
|
36
|
+
decimal: "decimal",
|
|
37
|
+
url: "url",
|
|
38
|
+
email: "email",
|
|
39
|
+
dropdown: "dropdown",
|
|
40
|
+
multiSelect: "multi-select",
|
|
41
|
+
multiSelectCreate: "multi-select-create",
|
|
42
|
+
date: "date",
|
|
43
|
+
regex: "regex",
|
|
44
|
+
textarea: "textarea"
|
|
45
|
+
};
|
|
46
|
+
var INPUT_FIELD_TYPES = ["email", "text", "number", "decimal", "url", "regex"];
|
|
47
|
+
var MAXIMUM_OPTION_LENGTH = 7;
|
|
48
|
+
|
|
49
|
+
exports.CONDITION_VALUE_TYPES = CONDITION_VALUE_TYPES;
|
|
50
|
+
exports.INPUT_FIELD_TYPES = INPUT_FIELD_TYPES;
|
|
51
|
+
exports.MAXIMUM_OPTION_LENGTH = MAXIMUM_OPTION_LENGTH;
|
|
52
|
+
exports.OPERATORS = OPERATORS;
|
|
53
|
+
exports.OPERATOR_LABELS = OPERATOR_LABELS;
|
|
54
|
+
exports.VERB_LABELS = VERB_LABELS;
|
|
55
|
+
//# sourceMappingURL=constants-67118957.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-67118957.js","sources":["../app/javascript/src/components/NeetoRulesForm/Element/Conditions/constants.js"],"sourcesContent":["import { t } from \"i18next\";\n\nconst OPERATORS = { or: \"or_operator\", and: \"and_operator\" };\n\nconst OPERATOR_LABELS = {\n or_operator: t(\"neetoRules.operators.or\"),\n and_operator: t(\"neetoRules.operators.and\"),\n};\n\nconst VERB_LABELS = {\n is: t(\"neetoRules.conditionVerbs.is\"),\n is_not: t(\"neetoRules.conditionVerbs.isNot\"),\n contains: t(\"neetoRules.conditionVerbs.contains\"),\n does_not_contain: t(\"neetoRules.conditionVerbs.doesNotContain\"),\n contains_any_of: t(\"neetoRules.conditionVerbs.containsAnyOf\"),\n contains_all_of: t(\"neetoRules.conditionVerbs.containsAllOf\"),\n contains_none_of: t(\"neetoRules.conditionVerbs.containsNoneOf\"),\n starts_with: t(\"neetoRules.conditionVerbs.startsWith\"),\n ends_with: t(\"neetoRules.conditionVerbs.endsWith\"),\n less_than: t(\"neetoRules.conditionVerbs.lessThan\"),\n greater_than: t(\"neetoRules.conditionVerbs.greaterThan\"),\n any_time: t(\"neetoRules.conditionVerbs.anyTime\"),\n during: t(\"neetoRules.conditionVerbs.during\"),\n not_during: t(\"neetoRules.conditionVerbs.notDuring\"),\n any_of: t(\"neetoRules.conditionVerbs.anyOf\"),\n none_of: t(\"neetoRules.conditionVerbs.noneOf\"),\n is_before: t(\"neetoRules.conditionVerbs.isBefore\"),\n is_after: t(\"neetoRules.conditionVerbs.isAfter\"),\n};\n\nconst CONDITION_VALUE_TYPES = {\n text: \"text\",\n number: \"number\",\n decimal: \"decimal\",\n url: \"url\",\n email: \"email\",\n dropdown: \"dropdown\",\n multiSelect: \"multi-select\",\n multiSelectCreate: \"multi-select-create\",\n date: \"date\",\n regex: \"regex\",\n textarea: \"textarea\",\n};\n\nconst INPUT_FIELD_TYPES = [\n \"email\",\n \"text\",\n \"number\",\n \"decimal\",\n \"url\",\n \"regex\",\n];\n\nconst DATETIME_FORMAT = { date: \"DD/MM/YYYY\", time: \"HH:mm a\" };\n\nconst MAXIMUM_OPTION_LENGTH = 7;\n\nexport {\n OPERATORS,\n OPERATOR_LABELS,\n VERB_LABELS,\n CONDITION_VALUE_TYPES,\n DATETIME_FORMAT,\n MAXIMUM_OPTION_LENGTH,\n INPUT_FIELD_TYPES,\n};\n"],"names":["OPERATORS","or","and","OPERATOR_LABELS","or_operator","t","and_operator","VERB_LABELS","is","is_not","contains","does_not_contain","contains_any_of","contains_all_of","contains_none_of","starts_with","ends_with","less_than","greater_than","any_time","during","not_during","any_of","none_of","is_before","is_after","CONDITION_VALUE_TYPES","text","number","decimal","url","email","dropdown","multiSelect","multiSelectCreate","date","regex","textarea","INPUT_FIELD_TYPES","MAXIMUM_OPTION_LENGTH"],"mappings":";;;;AAEA,IAAMA,SAAS,GAAG;AAAEC,EAAAA,EAAE,EAAE,aAAa;AAAEC,EAAAA,GAAG,EAAE,cAAA;AAAe,EAAC;AAE5D,IAAMC,eAAe,GAAG;AACtBC,EAAAA,WAAW,EAAEC,SAAC,CAAC,yBAAyB,CAAC;EACzCC,YAAY,EAAED,SAAC,CAAC,0BAA0B,CAAA;AAC5C,EAAC;AAED,IAAME,WAAW,GAAG;AAClBC,EAAAA,EAAE,EAAEH,SAAC,CAAC,8BAA8B,CAAC;AACrCI,EAAAA,MAAM,EAAEJ,SAAC,CAAC,iCAAiC,CAAC;AAC5CK,EAAAA,QAAQ,EAAEL,SAAC,CAAC,oCAAoC,CAAC;AACjDM,EAAAA,gBAAgB,EAAEN,SAAC,CAAC,0CAA0C,CAAC;AAC/DO,EAAAA,eAAe,EAAEP,SAAC,CAAC,yCAAyC,CAAC;AAC7DQ,EAAAA,eAAe,EAAER,SAAC,CAAC,yCAAyC,CAAC;AAC7DS,EAAAA,gBAAgB,EAAET,SAAC,CAAC,0CAA0C,CAAC;AAC/DU,EAAAA,WAAW,EAAEV,SAAC,CAAC,sCAAsC,CAAC;AACtDW,EAAAA,SAAS,EAAEX,SAAC,CAAC,oCAAoC,CAAC;AAClDY,EAAAA,SAAS,EAAEZ,SAAC,CAAC,oCAAoC,CAAC;AAClDa,EAAAA,YAAY,EAAEb,SAAC,CAAC,uCAAuC,CAAC;AACxDc,EAAAA,QAAQ,EAAEd,SAAC,CAAC,mCAAmC,CAAC;AAChDe,EAAAA,MAAM,EAAEf,SAAC,CAAC,kCAAkC,CAAC;AAC7CgB,EAAAA,UAAU,EAAEhB,SAAC,CAAC,qCAAqC,CAAC;AACpDiB,EAAAA,MAAM,EAAEjB,SAAC,CAAC,iCAAiC,CAAC;AAC5CkB,EAAAA,OAAO,EAAElB,SAAC,CAAC,kCAAkC,CAAC;AAC9CmB,EAAAA,SAAS,EAAEnB,SAAC,CAAC,oCAAoC,CAAC;EAClDoB,QAAQ,EAAEpB,SAAC,CAAC,mCAAmC,CAAA;AACjD,EAAC;AAED,IAAMqB,qBAAqB,GAAG;AAC5BC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,QAAQ,EAAE,UAAU;AACpBC,EAAAA,WAAW,EAAE,cAAc;AAC3BC,EAAAA,iBAAiB,EAAE,qBAAqB;AACxCC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,QAAQ,EAAE,UAAA;AACZ,EAAC;AAED,IAAMC,iBAAiB,GAAG,CACxB,OAAO,EACP,MAAM,EACN,QAAQ,EACR,SAAS,EACT,KAAK,EACL,OAAO,EACR;AAIKC,IAAAA,qBAAqB,GAAG;;;;;;;;;"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { t } from 'i18next';
|
|
2
|
+
|
|
3
|
+
var OPERATORS = {
|
|
4
|
+
or: "or_operator",
|
|
5
|
+
and: "and_operator"
|
|
6
|
+
};
|
|
7
|
+
var OPERATOR_LABELS = {
|
|
8
|
+
or_operator: t("neetoRules.operators.or"),
|
|
9
|
+
and_operator: t("neetoRules.operators.and")
|
|
10
|
+
};
|
|
11
|
+
var VERB_LABELS = {
|
|
12
|
+
is: t("neetoRules.conditionVerbs.is"),
|
|
13
|
+
is_not: t("neetoRules.conditionVerbs.isNot"),
|
|
14
|
+
contains: t("neetoRules.conditionVerbs.contains"),
|
|
15
|
+
does_not_contain: t("neetoRules.conditionVerbs.doesNotContain"),
|
|
16
|
+
contains_any_of: t("neetoRules.conditionVerbs.containsAnyOf"),
|
|
17
|
+
contains_all_of: t("neetoRules.conditionVerbs.containsAllOf"),
|
|
18
|
+
contains_none_of: t("neetoRules.conditionVerbs.containsNoneOf"),
|
|
19
|
+
starts_with: t("neetoRules.conditionVerbs.startsWith"),
|
|
20
|
+
ends_with: t("neetoRules.conditionVerbs.endsWith"),
|
|
21
|
+
less_than: t("neetoRules.conditionVerbs.lessThan"),
|
|
22
|
+
greater_than: t("neetoRules.conditionVerbs.greaterThan"),
|
|
23
|
+
any_time: t("neetoRules.conditionVerbs.anyTime"),
|
|
24
|
+
during: t("neetoRules.conditionVerbs.during"),
|
|
25
|
+
not_during: t("neetoRules.conditionVerbs.notDuring"),
|
|
26
|
+
any_of: t("neetoRules.conditionVerbs.anyOf"),
|
|
27
|
+
none_of: t("neetoRules.conditionVerbs.noneOf"),
|
|
28
|
+
is_before: t("neetoRules.conditionVerbs.isBefore"),
|
|
29
|
+
is_after: t("neetoRules.conditionVerbs.isAfter")
|
|
30
|
+
};
|
|
31
|
+
var CONDITION_VALUE_TYPES = {
|
|
32
|
+
text: "text",
|
|
33
|
+
number: "number",
|
|
34
|
+
decimal: "decimal",
|
|
35
|
+
url: "url",
|
|
36
|
+
email: "email",
|
|
37
|
+
dropdown: "dropdown",
|
|
38
|
+
multiSelect: "multi-select",
|
|
39
|
+
multiSelectCreate: "multi-select-create",
|
|
40
|
+
date: "date",
|
|
41
|
+
regex: "regex",
|
|
42
|
+
textarea: "textarea"
|
|
43
|
+
};
|
|
44
|
+
var INPUT_FIELD_TYPES = ["email", "text", "number", "decimal", "url", "regex"];
|
|
45
|
+
var MAXIMUM_OPTION_LENGTH = 7;
|
|
46
|
+
|
|
47
|
+
export { CONDITION_VALUE_TYPES as C, INPUT_FIELD_TYPES as I, MAXIMUM_OPTION_LENGTH as M, OPERATOR_LABELS as O, VERB_LABELS as V, OPERATORS as a };
|
|
48
|
+
//# sourceMappingURL=constants-7347bfc4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-7347bfc4.js","sources":["../app/javascript/src/components/NeetoRulesForm/Element/Conditions/constants.js"],"sourcesContent":["import { t } from \"i18next\";\n\nconst OPERATORS = { or: \"or_operator\", and: \"and_operator\" };\n\nconst OPERATOR_LABELS = {\n or_operator: t(\"neetoRules.operators.or\"),\n and_operator: t(\"neetoRules.operators.and\"),\n};\n\nconst VERB_LABELS = {\n is: t(\"neetoRules.conditionVerbs.is\"),\n is_not: t(\"neetoRules.conditionVerbs.isNot\"),\n contains: t(\"neetoRules.conditionVerbs.contains\"),\n does_not_contain: t(\"neetoRules.conditionVerbs.doesNotContain\"),\n contains_any_of: t(\"neetoRules.conditionVerbs.containsAnyOf\"),\n contains_all_of: t(\"neetoRules.conditionVerbs.containsAllOf\"),\n contains_none_of: t(\"neetoRules.conditionVerbs.containsNoneOf\"),\n starts_with: t(\"neetoRules.conditionVerbs.startsWith\"),\n ends_with: t(\"neetoRules.conditionVerbs.endsWith\"),\n less_than: t(\"neetoRules.conditionVerbs.lessThan\"),\n greater_than: t(\"neetoRules.conditionVerbs.greaterThan\"),\n any_time: t(\"neetoRules.conditionVerbs.anyTime\"),\n during: t(\"neetoRules.conditionVerbs.during\"),\n not_during: t(\"neetoRules.conditionVerbs.notDuring\"),\n any_of: t(\"neetoRules.conditionVerbs.anyOf\"),\n none_of: t(\"neetoRules.conditionVerbs.noneOf\"),\n is_before: t(\"neetoRules.conditionVerbs.isBefore\"),\n is_after: t(\"neetoRules.conditionVerbs.isAfter\"),\n};\n\nconst CONDITION_VALUE_TYPES = {\n text: \"text\",\n number: \"number\",\n decimal: \"decimal\",\n url: \"url\",\n email: \"email\",\n dropdown: \"dropdown\",\n multiSelect: \"multi-select\",\n multiSelectCreate: \"multi-select-create\",\n date: \"date\",\n regex: \"regex\",\n textarea: \"textarea\",\n};\n\nconst INPUT_FIELD_TYPES = [\n \"email\",\n \"text\",\n \"number\",\n \"decimal\",\n \"url\",\n \"regex\",\n];\n\nconst DATETIME_FORMAT = { date: \"DD/MM/YYYY\", time: \"HH:mm a\" };\n\nconst MAXIMUM_OPTION_LENGTH = 7;\n\nexport {\n OPERATORS,\n OPERATOR_LABELS,\n VERB_LABELS,\n CONDITION_VALUE_TYPES,\n DATETIME_FORMAT,\n MAXIMUM_OPTION_LENGTH,\n INPUT_FIELD_TYPES,\n};\n"],"names":["OPERATORS","or","and","OPERATOR_LABELS","or_operator","t","and_operator","VERB_LABELS","is","is_not","contains","does_not_contain","contains_any_of","contains_all_of","contains_none_of","starts_with","ends_with","less_than","greater_than","any_time","during","not_during","any_of","none_of","is_before","is_after","CONDITION_VALUE_TYPES","text","number","decimal","url","email","dropdown","multiSelect","multiSelectCreate","date","regex","textarea","INPUT_FIELD_TYPES","MAXIMUM_OPTION_LENGTH"],"mappings":";;AAEA,IAAMA,SAAS,GAAG;AAAEC,EAAAA,EAAE,EAAE,aAAa;AAAEC,EAAAA,GAAG,EAAE,cAAA;AAAe,EAAC;AAE5D,IAAMC,eAAe,GAAG;AACtBC,EAAAA,WAAW,EAAEC,CAAC,CAAC,yBAAyB,CAAC;EACzCC,YAAY,EAAED,CAAC,CAAC,0BAA0B,CAAA;AAC5C,EAAC;AAED,IAAME,WAAW,GAAG;AAClBC,EAAAA,EAAE,EAAEH,CAAC,CAAC,8BAA8B,CAAC;AACrCI,EAAAA,MAAM,EAAEJ,CAAC,CAAC,iCAAiC,CAAC;AAC5CK,EAAAA,QAAQ,EAAEL,CAAC,CAAC,oCAAoC,CAAC;AACjDM,EAAAA,gBAAgB,EAAEN,CAAC,CAAC,0CAA0C,CAAC;AAC/DO,EAAAA,eAAe,EAAEP,CAAC,CAAC,yCAAyC,CAAC;AAC7DQ,EAAAA,eAAe,EAAER,CAAC,CAAC,yCAAyC,CAAC;AAC7DS,EAAAA,gBAAgB,EAAET,CAAC,CAAC,0CAA0C,CAAC;AAC/DU,EAAAA,WAAW,EAAEV,CAAC,CAAC,sCAAsC,CAAC;AACtDW,EAAAA,SAAS,EAAEX,CAAC,CAAC,oCAAoC,CAAC;AAClDY,EAAAA,SAAS,EAAEZ,CAAC,CAAC,oCAAoC,CAAC;AAClDa,EAAAA,YAAY,EAAEb,CAAC,CAAC,uCAAuC,CAAC;AACxDc,EAAAA,QAAQ,EAAEd,CAAC,CAAC,mCAAmC,CAAC;AAChDe,EAAAA,MAAM,EAAEf,CAAC,CAAC,kCAAkC,CAAC;AAC7CgB,EAAAA,UAAU,EAAEhB,CAAC,CAAC,qCAAqC,CAAC;AACpDiB,EAAAA,MAAM,EAAEjB,CAAC,CAAC,iCAAiC,CAAC;AAC5CkB,EAAAA,OAAO,EAAElB,CAAC,CAAC,kCAAkC,CAAC;AAC9CmB,EAAAA,SAAS,EAAEnB,CAAC,CAAC,oCAAoC,CAAC;EAClDoB,QAAQ,EAAEpB,CAAC,CAAC,mCAAmC,CAAA;AACjD,EAAC;AAED,IAAMqB,qBAAqB,GAAG;AAC5BC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,QAAQ,EAAE,UAAU;AACpBC,EAAAA,WAAW,EAAE,cAAc;AAC3BC,EAAAA,iBAAiB,EAAE,qBAAqB;AACxCC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,QAAQ,EAAE,UAAA;AACZ,EAAC;AAED,IAAMC,iBAAiB,GAAG,CACxB,OAAO,EACP,MAAM,EACN,QAAQ,EACR,SAAS,EACT,KAAK,EACL,OAAO,EACR;AAIKC,IAAAA,qBAAqB,GAAG;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/hooks.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|