@bigbinary/neeto-rules-frontend 2.5.15-beta-8 → 2.5.15-beta-9
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 +45 -0
- package/app/javascript/src/translations/en.json +4 -1
- package/dist/NeetoRules.js +1 -1
- package/dist/NeetoRulesForm.js +327 -83
- package/dist/NeetoRulesForm.js.map +1 -1
- package/dist/RulePreview.js +1 -1
- package/dist/cjs/NeetoRules.js +1 -1
- package/dist/cjs/NeetoRulesForm.js +324 -80
- package/dist/cjs/NeetoRulesForm.js.map +1 -1
- package/dist/cjs/RulePreview.js +1 -1
- package/dist/cjs/index.js +3 -3
- package/dist/index.js +3 -3
- package/dist/{useUtilityStore-y6y2o_xQ.js → useUtilityStore-BcSUEW_u.js} +7 -1
- package/dist/useUtilityStore-BcSUEW_u.js.map +1 -0
- package/dist/{useUtilityStore-BFuftXo4.js → useUtilityStore-DhJI92iM.js} +7 -1
- package/dist/useUtilityStore-DhJI92iM.js.map +1 -0
- package/package.json +12 -12
- package/types.d.ts +10 -0
- package/dist/useUtilityStore-BFuftXo4.js.map +0 -1
- package/dist/useUtilityStore-y6y2o_xQ.js.map +0 -1
package/dist/cjs/RulePreview.js
CHANGED
|
@@ -7,7 +7,7 @@ var Pane = require('@bigbinary/neetoui/Pane');
|
|
|
7
7
|
var Spinner = require('@bigbinary/neetoui/Spinner');
|
|
8
8
|
var Typography = require('@bigbinary/neetoui/Typography');
|
|
9
9
|
var reactI18next = require('react-i18next');
|
|
10
|
-
var useUtilityStore = require('../useUtilityStore-
|
|
10
|
+
var useUtilityStore = require('../useUtilityStore-DhJI92iM.js');
|
|
11
11
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
12
12
|
var react = require('react');
|
|
13
13
|
var Down = require('@bigbinary/neeto-icons/Down');
|
package/dist/cjs/index.js
CHANGED
|
@@ -32,7 +32,7 @@ require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
|
32
32
|
require('@bigbinary/neeto-molecules/Container');
|
|
33
33
|
require('@bigbinary/neeto-molecules/Header');
|
|
34
34
|
require('@bigbinary/neetoui/Button');
|
|
35
|
-
require('../useUtilityStore-
|
|
35
|
+
require('../useUtilityStore-DhJI92iM.js');
|
|
36
36
|
require('zustand');
|
|
37
37
|
require('zustand/shallow');
|
|
38
38
|
require('@bigbinary/neeto-molecules/SubHeader');
|
|
@@ -54,6 +54,7 @@ require('@bigbinary/neeto-icons/Plus');
|
|
|
54
54
|
require('@bigbinary/neeto-icons/Delete');
|
|
55
55
|
require('@bigbinary/neeto-icons/Refresh');
|
|
56
56
|
require('classnames');
|
|
57
|
+
require('yup');
|
|
57
58
|
require('@bigbinary/neetoui/formik/Radio');
|
|
58
59
|
require('@bigbinary/neetoui/managers');
|
|
59
60
|
require('@bigbinary/neeto-icons/Collapse');
|
|
@@ -62,6 +63,7 @@ require('@bigbinary/neetoui/formik/Textarea');
|
|
|
62
63
|
require('@bigbinary/neetoui/formik/Input');
|
|
63
64
|
require('@bigbinary/neetoui/formik/Switch');
|
|
64
65
|
require('@monaco-editor/react');
|
|
66
|
+
require('@bigbinary/neeto-icons/Help');
|
|
65
67
|
require('@bigbinary/neeto-molecules/DynamicVariables');
|
|
66
68
|
require('@bigbinary/neetoui/Select');
|
|
67
69
|
require('@bigbinary/neetoui/DatePicker');
|
|
@@ -76,7 +78,6 @@ require('@babel/runtime/helpers/toArray');
|
|
|
76
78
|
require('@bigbinary/neeto-molecules/PhoneNumber');
|
|
77
79
|
require('@bigbinary/neetoui/Tag');
|
|
78
80
|
require('react-select');
|
|
79
|
-
require('yup');
|
|
80
81
|
require('../constants-BkPVd-Gz.js');
|
|
81
82
|
require('@bigbinary/neetoui/Radio');
|
|
82
83
|
require('@bigbinary/neeto-editor/utils');
|
|
@@ -84,7 +85,6 @@ require('@bigbinary/neeto-icons/Eye');
|
|
|
84
85
|
require('@bigbinary/neeto-icons/Down');
|
|
85
86
|
require('@bigbinary/neetoui/Dropdown');
|
|
86
87
|
require('@bigbinary/neetoui/Tooltip');
|
|
87
|
-
require('@bigbinary/neeto-icons/Help');
|
|
88
88
|
require('@babel/runtime/helpers/typeof');
|
|
89
89
|
require('@bigbinary/neeto-icons/Up');
|
|
90
90
|
|
package/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
|
30
30
|
import '@bigbinary/neeto-molecules/Container';
|
|
31
31
|
import '@bigbinary/neeto-molecules/Header';
|
|
32
32
|
import '@bigbinary/neetoui/Button';
|
|
33
|
-
import './useUtilityStore-
|
|
33
|
+
import './useUtilityStore-BcSUEW_u.js';
|
|
34
34
|
import 'zustand';
|
|
35
35
|
import 'zustand/shallow';
|
|
36
36
|
import '@bigbinary/neeto-molecules/SubHeader';
|
|
@@ -52,6 +52,7 @@ import '@bigbinary/neeto-icons/Plus';
|
|
|
52
52
|
import '@bigbinary/neeto-icons/Delete';
|
|
53
53
|
import '@bigbinary/neeto-icons/Refresh';
|
|
54
54
|
import 'classnames';
|
|
55
|
+
import 'yup';
|
|
55
56
|
import '@bigbinary/neetoui/formik/Radio';
|
|
56
57
|
import '@bigbinary/neetoui/managers';
|
|
57
58
|
import '@bigbinary/neeto-icons/Collapse';
|
|
@@ -60,6 +61,7 @@ import '@bigbinary/neetoui/formik/Textarea';
|
|
|
60
61
|
import '@bigbinary/neetoui/formik/Input';
|
|
61
62
|
import '@bigbinary/neetoui/formik/Switch';
|
|
62
63
|
import '@monaco-editor/react';
|
|
64
|
+
import '@bigbinary/neeto-icons/Help';
|
|
63
65
|
import '@bigbinary/neeto-molecules/DynamicVariables';
|
|
64
66
|
import '@bigbinary/neetoui/Select';
|
|
65
67
|
import '@bigbinary/neetoui/DatePicker';
|
|
@@ -74,7 +76,6 @@ import '@babel/runtime/helpers/toArray';
|
|
|
74
76
|
import '@bigbinary/neeto-molecules/PhoneNumber';
|
|
75
77
|
import '@bigbinary/neetoui/Tag';
|
|
76
78
|
import 'react-select';
|
|
77
|
-
import 'yup';
|
|
78
79
|
import './constants-DghBXpIM.js';
|
|
79
80
|
import '@bigbinary/neetoui/Radio';
|
|
80
81
|
import '@bigbinary/neeto-editor/utils';
|
|
@@ -82,7 +83,6 @@ import '@bigbinary/neeto-icons/Eye';
|
|
|
82
83
|
import '@bigbinary/neeto-icons/Down';
|
|
83
84
|
import '@bigbinary/neetoui/Dropdown';
|
|
84
85
|
import '@bigbinary/neetoui/Tooltip';
|
|
85
|
-
import '@bigbinary/neeto-icons/Help';
|
|
86
86
|
import '@babel/runtime/helpers/typeof';
|
|
87
87
|
import '@bigbinary/neeto-icons/Up';
|
|
88
88
|
//# sourceMappingURL=index.js.map
|
|
@@ -35,6 +35,7 @@ var useUtilityStore = create(withImmutableActions(function (set) {
|
|
|
35
35
|
panelState: {
|
|
36
36
|
data: {}
|
|
37
37
|
},
|
|
38
|
+
isSaveAsTemplateEnabled: false,
|
|
38
39
|
setMoreActionDropdownItems: function setMoreActionDropdownItems(items) {
|
|
39
40
|
return set({
|
|
40
41
|
moreActionDropdownItems: items,
|
|
@@ -56,9 +57,14 @@ var useUtilityStore = create(withImmutableActions(function (set) {
|
|
|
56
57
|
data: {}
|
|
57
58
|
}
|
|
58
59
|
});
|
|
60
|
+
},
|
|
61
|
+
setIsSaveAsTemplateEnabled: function setIsSaveAsTemplateEnabled(isSaveAsTemplateEnabled) {
|
|
62
|
+
return set({
|
|
63
|
+
isSaveAsTemplateEnabled: isSaveAsTemplateEnabled
|
|
64
|
+
});
|
|
59
65
|
}
|
|
60
66
|
};
|
|
61
67
|
}));
|
|
62
68
|
|
|
63
69
|
export { createRoutes as c, getSeparator as g, useUtilityStore as u };
|
|
64
|
-
//# sourceMappingURL=useUtilityStore-
|
|
70
|
+
//# sourceMappingURL=useUtilityStore-BcSUEW_u.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useUtilityStore-BcSUEW_u.js","sources":["../app/javascript/src/utils.js","../app/javascript/src/components/stores/useUtilityStore.js"],"sourcesContent":["export const createRoutes = basePath => ({\n index: basePath,\n new: `${basePath}/new`,\n edit: `${basePath}/:ruleId/edit`,\n});\n\nexport const getSeparator = ({\n defaultSeparator,\n index = 0,\n selectedField,\n}) => {\n if (!selectedField || !selectedField.separator) return defaultSeparator;\n\n if (!Array.isArray(selectedField.separator)) {\n return selectedField.separator?.toLowerCase();\n }\n\n return selectedField.separator[index]?.toLowerCase() ?? defaultSeparator;\n};\n","import { withImmutableActions } from \"neetocommons/react-utils\";\nimport { always, modify } from \"ramda\";\nimport { create } from \"zustand\";\n\nconst applyStateOrUpdater = stateOrUpdater =>\n typeof stateOrUpdater === \"function\"\n ? stateOrUpdater\n : always(stateOrUpdater);\n\n/** @type {import(\"neetocommons/react-utils\").ZustandStoreHook} */\nconst useUtilityStore = create(\n withImmutableActions(set => ({\n moreActionDropdownItems: [],\n showPreviewPane: false,\n panelState: { data: {} },\n isSaveAsTemplateEnabled: false,\n\n setMoreActionDropdownItems: items =>\n set({ moreActionDropdownItems: items, showPreviewPane: true }),\n hidePreviewPane: () =>\n set({ moreActionDropdownItems: [], showPreviewPane: false }),\n setPanelState: stateOrUpdater =>\n set(modify(\"panelState\", applyStateOrUpdater(stateOrUpdater))),\n resetPanelState: () => set({ panelState: { data: {} } }),\n setIsSaveAsTemplateEnabled: isSaveAsTemplateEnabled =>\n set({ isSaveAsTemplateEnabled }),\n }))\n);\n\nexport default useUtilityStore;\n"],"names":["createRoutes","basePath","index","concat","edit","getSeparator","_ref","_selectedField$separa2","_selectedField$separa3","defaultSeparator","_ref$index","selectedField","separator","Array","isArray","_selectedField$separa","toLowerCase","applyStateOrUpdater","stateOrUpdater","always","useUtilityStore","create","withImmutableActions","set","moreActionDropdownItems","showPreviewPane","panelState","data","isSaveAsTemplateEnabled","setMoreActionDropdownItems","items","hidePreviewPane","setPanelState","modify","resetPanelState","setIsSaveAsTemplateEnabled"],"mappings":";;;;IAAaA,YAAY,GAAG,SAAfA,YAAY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mutableActions(function (s
|
|
|
37
37
|
panelState: {
|
|
38
38
|
data: {}
|
|
39
39
|
},
|
|
40
|
+
isSaveAsTemplateEnabled: false,
|
|
40
41
|
setMoreActionDropdownItems: function setMoreActionDropdownItems(items) {
|
|
41
42
|
return set({
|
|
42
43
|
moreActionDropdownItems: items,
|
|
@@ -58,6 +59,11 @@ var useUtilityStore = zustand.create(reactUtils.withImmutableActions(function (s
|
|
|
58
59
|
data: {}
|
|
59
60
|
}
|
|
60
61
|
});
|
|
62
|
+
},
|
|
63
|
+
setIsSaveAsTemplateEnabled: function setIsSaveAsTemplateEnabled(isSaveAsTemplateEnabled) {
|
|
64
|
+
return set({
|
|
65
|
+
isSaveAsTemplateEnabled: isSaveAsTemplateEnabled
|
|
66
|
+
});
|
|
61
67
|
}
|
|
62
68
|
};
|
|
63
69
|
}));
|
|
@@ -65,4 +71,4 @@ var useUtilityStore = zustand.create(reactUtils.withImmutableActions(function (s
|
|
|
65
71
|
exports.createRoutes = createRoutes;
|
|
66
72
|
exports.getSeparator = getSeparator;
|
|
67
73
|
exports.useUtilityStore = useUtilityStore;
|
|
68
|
-
//# sourceMappingURL=useUtilityStore-
|
|
74
|
+
//# sourceMappingURL=useUtilityStore-DhJI92iM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useUtilityStore-DhJI92iM.js","sources":["../app/javascript/src/utils.js","../app/javascript/src/components/stores/useUtilityStore.js"],"sourcesContent":["export const createRoutes = basePath => ({\n index: basePath,\n new: `${basePath}/new`,\n edit: `${basePath}/:ruleId/edit`,\n});\n\nexport const getSeparator = ({\n defaultSeparator,\n index = 0,\n selectedField,\n}) => {\n if (!selectedField || !selectedField.separator) return defaultSeparator;\n\n if (!Array.isArray(selectedField.separator)) {\n return selectedField.separator?.toLowerCase();\n }\n\n return selectedField.separator[index]?.toLowerCase() ?? defaultSeparator;\n};\n","import { withImmutableActions } from \"neetocommons/react-utils\";\nimport { always, modify } from \"ramda\";\nimport { create } from \"zustand\";\n\nconst applyStateOrUpdater = stateOrUpdater =>\n typeof stateOrUpdater === \"function\"\n ? stateOrUpdater\n : always(stateOrUpdater);\n\n/** @type {import(\"neetocommons/react-utils\").ZustandStoreHook} */\nconst useUtilityStore = create(\n withImmutableActions(set => ({\n moreActionDropdownItems: [],\n showPreviewPane: false,\n panelState: { data: {} },\n isSaveAsTemplateEnabled: false,\n\n setMoreActionDropdownItems: items =>\n set({ moreActionDropdownItems: items, showPreviewPane: true }),\n hidePreviewPane: () =>\n set({ moreActionDropdownItems: [], showPreviewPane: false }),\n setPanelState: stateOrUpdater =>\n set(modify(\"panelState\", applyStateOrUpdater(stateOrUpdater))),\n resetPanelState: () => set({ panelState: { data: {} } }),\n setIsSaveAsTemplateEnabled: isSaveAsTemplateEnabled =>\n set({ isSaveAsTemplateEnabled }),\n }))\n);\n\nexport default useUtilityStore;\n"],"names":["createRoutes","basePath","index","concat","edit","getSeparator","_ref","_selectedField$separa2","_selectedField$separa3","defaultSeparator","_ref$index","selectedField","separator","Array","isArray","_selectedField$separa","toLowerCase","applyStateOrUpdater","stateOrUpdater","always","useUtilityStore","create","withImmutableActions","set","moreActionDropdownItems","showPreviewPane","panelState","data","isSaveAsTemplateEnabled","setMoreActionDropdownItems","items","hidePreviewPane","setPanelState","modify","resetPanelState","setIsSaveAsTemplateEnabled"],"mappings":";;;;;;IAAaA,YAAY,GAAG,SAAfA,YAAYA,CAAGC,QAAQ,EAAA;EAAA,OAAK;AACvCC,IAAAA,KAAK,EAAED,QAAQ;IACf,KAAAE,EAAAA,EAAAA,CAAAA,MAAA,CAAQF,QAAQ,EAAM,MAAA,CAAA;IACtBG,IAAI,EAAA,EAAA,CAAAD,MAAA,CAAKF,QAAQ,EAAA,eAAA;GAClB;AAAA;IAEYI,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAInB;EAAA,IAAAC,sBAAA,EAAAC,sBAAA;AAAA,EAAA,IAHJC,gBAAgB,GAAAH,IAAA,CAAhBG,gB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CAAEC,KAAK,EAAA;AAAA,MAAA,OAC/BP,GAAG,CAAC;AAAEC,QAAAA,uBAAuB,EAAEM,KAAK;AAAEL,QAAAA,eAAe,EAAE;AAAK,OAAC,CAAC;AAAA,KAAA;IAChEM,eAAe,EAAE,SAAjBA,eAAeA,GAAA;AAAA,MAAA,OACbR,GAAG,CAAC;AAAEC,QAAAA,uBAAuB,EAAE,EAAE;AAAEC,QAAAA,eAAe,EAAE;AAAM,OAAC,CAAC;AAAA,KAAA;AAC9DO,IAAAA,aAAa,EAAE,SAAfA,aAAaA,CAAEd,cAAc,EAAA;MAAA,OAC3BK,GAAG,CAACU,YAAM,CAAC,YAAY,EAAEhB,mBAAmB,CAACC,cAAc,CAAC,CAAC,CAAC;AAAA,KAAA;IAChEgB,eAAe,EAAE,SAAjBA,eAAeA,GAAA;AAAA,MAAA,OAAQX,GAAG,CAAC;AAAEG,QAAAA,UAAU,EAAE;AAAEC,UAAAA,IAAI,EAAE;AAAG;AAAE,OAAC,CAAC;AAAA,KAAA;AACxDQ,IAAAA,0BAA0B,EAAE,SAA5BA,0BAA0BA,CAAEP,uBAAuB,EAAA;AAAA,MAAA,OACjDL,GAAG,CAAC;AAAEK,QAAAA,uBAAuB,EAAvBA;AAAwB,OAAC,CAAC;AAAA;GACnC;AAAA,CAAC,CACJ;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-rules-frontend",
|
|
3
|
-
"version": "2.5.15-beta-
|
|
3
|
+
"version": "2.5.15-beta-9",
|
|
4
4
|
"description": "A repo acts as the source of truth for the new nano's structure, configs, data etc.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://github.com/bigbinary/neeto-rules-nano",
|
|
@@ -59,14 +59,14 @@
|
|
|
59
59
|
"@babel/preset-typescript": "7.26.0",
|
|
60
60
|
"@babel/runtime": "7.26.10",
|
|
61
61
|
"@bigbinary/babel-preset-neeto": "^1.0.3",
|
|
62
|
-
"@bigbinary/eslint-plugin-neeto": "1.6.
|
|
62
|
+
"@bigbinary/eslint-plugin-neeto": "1.6.3",
|
|
63
63
|
"@bigbinary/neeto-cist": "1.0.17",
|
|
64
|
-
"@bigbinary/neeto-commons-frontend": "4.13.
|
|
65
|
-
"@bigbinary/neeto-editor": "1.47.
|
|
66
|
-
"@bigbinary/neeto-filters-frontend": "4.3.
|
|
64
|
+
"@bigbinary/neeto-commons-frontend": "4.13.43",
|
|
65
|
+
"@bigbinary/neeto-editor": "1.47.16",
|
|
66
|
+
"@bigbinary/neeto-filters-frontend": "4.3.21",
|
|
67
67
|
"@bigbinary/neeto-hotkeys": "1.0.9",
|
|
68
|
-
"@bigbinary/neeto-icons": "1.20.
|
|
69
|
-
"@bigbinary/neeto-molecules": "3.16.
|
|
68
|
+
"@bigbinary/neeto-icons": "1.20.49",
|
|
69
|
+
"@bigbinary/neeto-molecules": "3.16.63",
|
|
70
70
|
"@bigbinary/neetoui": "8.3.9",
|
|
71
71
|
"@emotion/is-prop-valid": "1.2.0",
|
|
72
72
|
"@faker-js/faker": "8.2.0",
|
|
@@ -177,12 +177,12 @@
|
|
|
177
177
|
"peerDependencies": {
|
|
178
178
|
"@babel/runtime": "7.26.10",
|
|
179
179
|
"@bigbinary/neeto-cist": "1.0.17",
|
|
180
|
-
"@bigbinary/neeto-commons-frontend": "4.13.
|
|
181
|
-
"@bigbinary/neeto-editor": "1.47.
|
|
182
|
-
"@bigbinary/neeto-filters-frontend": "4.3.
|
|
180
|
+
"@bigbinary/neeto-commons-frontend": "4.13.43",
|
|
181
|
+
"@bigbinary/neeto-editor": "1.47.16",
|
|
182
|
+
"@bigbinary/neeto-filters-frontend": "4.3.21",
|
|
183
183
|
"@bigbinary/neeto-hotkeys": "1.0.9",
|
|
184
|
-
"@bigbinary/neeto-icons": "1.20.
|
|
185
|
-
"@bigbinary/neeto-molecules": "3.16.
|
|
184
|
+
"@bigbinary/neeto-icons": "1.20.49",
|
|
185
|
+
"@bigbinary/neeto-molecules": "3.16.63",
|
|
186
186
|
"@bigbinary/neetoui": "8.3.9",
|
|
187
187
|
"@hello-pangea/dnd": "16.3.0",
|
|
188
188
|
"@honeybadger-io/js": "6.10.1",
|
package/types.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ import {
|
|
|
6
6
|
SelectProps,
|
|
7
7
|
TextareaProps,
|
|
8
8
|
TooltipProps,
|
|
9
|
+
PopoverProps,
|
|
10
|
+
ButtonProps,
|
|
9
11
|
} from "neetoui";
|
|
10
12
|
import { FieldHelperProps } from "formik";
|
|
11
13
|
|
|
@@ -52,6 +54,13 @@ interface actionNameOptionsProps {
|
|
|
52
54
|
variables?: variableProps[];
|
|
53
55
|
dropdownOptions?: array;
|
|
54
56
|
defaultData?: object;
|
|
57
|
+
helpPopoverProps?: {
|
|
58
|
+
[key: string]: {
|
|
59
|
+
title?: string;
|
|
60
|
+
description?: React.ReactNode;
|
|
61
|
+
helpLinkProps?: ButtonProps;
|
|
62
|
+
} & PopoverProps;
|
|
63
|
+
};
|
|
55
64
|
}
|
|
56
65
|
|
|
57
66
|
interface dropdownListProps {
|
|
@@ -70,6 +79,7 @@ interface ActionsProps extends commonInputProps {
|
|
|
70
79
|
showAddButton?: boolean;
|
|
71
80
|
onSelectAction?: () => void;
|
|
72
81
|
routeToSlackIntegration?: string;
|
|
82
|
+
isSaveAsTemplateEnabled?: boolean;
|
|
73
83
|
}
|
|
74
84
|
|
|
75
85
|
interface CardProps {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useUtilityStore-BFuftXo4.js","sources":["../app/javascript/src/utils.js","../app/javascript/src/components/stores/useUtilityStore.js"],"sourcesContent":["export const createRoutes = basePath => ({\n index: basePath,\n new: `${basePath}/new`,\n edit: `${basePath}/:ruleId/edit`,\n});\n\nexport const getSeparator = ({\n defaultSeparator,\n index = 0,\n selectedField,\n}) => {\n if (!selectedField || !selectedField.separator) return defaultSeparator;\n\n if (!Array.isArray(selectedField.separator)) {\n return selectedField.separator?.toLowerCase();\n }\n\n return selectedField.separator[index]?.toLowerCase() ?? defaultSeparator;\n};\n","import { withImmutableActions } from \"neetocommons/react-utils\";\nimport { always, modify } from \"ramda\";\nimport { create } from \"zustand\";\n\nconst applyStateOrUpdater = stateOrUpdater =>\n typeof stateOrUpdater === \"function\"\n ? stateOrUpdater\n : always(stateOrUpdater);\n\n/** @type {import(\"neetocommons/react-utils\").ZustandStoreHook} */\nconst useUtilityStore = create(\n withImmutableActions(set => ({\n moreActionDropdownItems: [],\n showPreviewPane: false,\n panelState: { data: {} },\n\n setMoreActionDropdownItems: items =>\n set({ moreActionDropdownItems: items, showPreviewPane: true }),\n hidePreviewPane: () =>\n set({ moreActionDropdownItems: [], showPreviewPane: false }),\n setPanelState: stateOrUpdater =>\n set(modify(\"panelState\", applyStateOrUpdater(stateOrUpdater))),\n resetPanelState: () => set({ panelState: { data: {} } }),\n }))\n);\n\nexport default useUtilityStore;\n"],"names":["createRoutes","basePath","index","concat","edit","getSeparator","_ref","_selectedField$separa2","_selectedField$separa3","defaultSeparator","_ref$index","selectedField","separator","Array","isArray","_selectedField$separa","toLowerCase","applyStateOrUpdater","stateOrUpdater","always","useUtilityStore","create","withImmutableActions","set","moreActionDropdownItems","showPreviewPane","panelState","data","setMoreActionDropdownItems","items","hidePreviewPane","setPanelState","modify","resetPanelState"],"mappings":";;;;;;IAAaA,YAAY,GAAG,SAAfA,YAAYA,CAAGC,QAAQ,EAAA;EAAA,OAAK;AACvCC,IAAAA,KAAK,EAAED,QAAQ;IACf,KAAAE,EAAAA,EAAAA,CAAAA,MAAA,CAAQF,QAAQ,EAAM,MAAA,CAAA;IACtBG,IAAI,EAAA,EAAA,CAAAD,MAAA,CAAKF,QAAQ,EAAA,eAAA;GAClB;AAAA;IAEYI,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAInB;EAAA,IAAAC,sBAAA,EAAAC,sBAAA;AAAA,EAAA,IAHJC,gBA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KAAK,EAAA;AAAA,MAAA,OAC/BN,GAAG,CAAC;AAAEC,QAAAA,uBAAuB,EAAEK,KAAK;AAAEJ,QAAAA,eAAe,EAAE;AAAK,OAAC,CAAC;AAAA,KAAA;IAChEK,eAAe,EAAE,SAAjBA,eAAeA,GAAA;AAAA,MAAA,OACbP,GAAG,CAAC;AAAEC,QAAAA,uBAAuB,EAAE,EAAE;AAAEC,QAAAA,eAAe,EAAE;AAAM,OAAC,CAAC;AAAA,KAAA;AAC9DM,IAAAA,aAAa,EAAE,SAAfA,aAAaA,CAAEb,cAAc,EAAA;MAAA,OAC3BK,GAAG,CAACS,YAAM,CAAC,YAAY,EAAEf,mBAAmB,CAACC,cAAc,CAAC,CAAC,CAAC;AAAA,KAAA;IAChEe,eAAe,EAAE,SAAjBA,eAAeA,GAAA;AAAA,MAAA,OAAQV,GAAG,CAAC;AAAEG,QAAAA,UAAU,EAAE;AAAEC,UAAAA,IAAI,EAAE;AAAG;AAAE,OAAC,CAAC;AAAA;GACzD;AAAA,CAAC,CACJ;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useUtilityStore-y6y2o_xQ.js","sources":["../app/javascript/src/utils.js","../app/javascript/src/components/stores/useUtilityStore.js"],"sourcesContent":["export const createRoutes = basePath => ({\n index: basePath,\n new: `${basePath}/new`,\n edit: `${basePath}/:ruleId/edit`,\n});\n\nexport const getSeparator = ({\n defaultSeparator,\n index = 0,\n selectedField,\n}) => {\n if (!selectedField || !selectedField.separator) return defaultSeparator;\n\n if (!Array.isArray(selectedField.separator)) {\n return selectedField.separator?.toLowerCase();\n }\n\n return selectedField.separator[index]?.toLowerCase() ?? defaultSeparator;\n};\n","import { withImmutableActions } from \"neetocommons/react-utils\";\nimport { always, modify } from \"ramda\";\nimport { create } from \"zustand\";\n\nconst applyStateOrUpdater = stateOrUpdater =>\n typeof stateOrUpdater === \"function\"\n ? stateOrUpdater\n : always(stateOrUpdater);\n\n/** @type {import(\"neetocommons/react-utils\").ZustandStoreHook} */\nconst useUtilityStore = create(\n withImmutableActions(set => ({\n moreActionDropdownItems: [],\n showPreviewPane: false,\n panelState: { data: {} },\n\n setMoreActionDropdownItems: items =>\n set({ moreActionDropdownItems: items, showPreviewPane: true }),\n hidePreviewPane: () =>\n set({ moreActionDropdownItems: [], showPreviewPane: false }),\n setPanelState: stateOrUpdater =>\n set(modify(\"panelState\", applyStateOrUpdater(stateOrUpdater))),\n resetPanelState: () => set({ panelState: { data: {} } }),\n }))\n);\n\nexport default useUtilityStore;\n"],"names":["createRoutes","basePath","index","concat","edit","getSeparator","_ref","_selectedField$separa2","_selectedField$separa3","defaultSeparator","_ref$index","selectedField","separator","Array","isArray","_selectedField$separa","toLowerCase","applyStateOrUpdater","stateOrUpdater","always","useUtilityStore","create","withImmutableActions","set","moreActionDropdownItems","showPreviewPane","panelState","data","setMoreActionDropdownItems","items","hidePreviewPane","setPanelState","modify","resetPanelState"],"mappings":";;;;IAAaA,YAAY,GAAG,SAAfA,YAAYA,CAAGC,QAAQ,EAAA;EAAA,OAAK;AACvCC,IAAAA,KAAK,EAAED,QAAQ;IACf,KAAAE,EAAAA,EAAAA,CAAAA,MAAA,CAAQF,QAAQ,EAAM,MAAA,CAAA;IACtBG,IAAI,EAAA,EAAA,CAAAD,MAAA,CAAKF,QAAQ,EAAA,eAAA;GAClB;AAAA;IAEYI,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAInB;EAAA,IAAAC,sBAAA,EAAAC,sBAAA;AAAA,EAAA,IAHJC,gBAAgB,GAAAH,IAAA,CAAhBG,gBAAgB;IAAAC,UAAA,GAAAJ,IAAA,CAChBJ,KAAK;AAALA,IAAAA,KAAK,GAAAQ,UAAA,KAAG,KAAA,CAAA,GAAA,CAAC,GAAAA,UAAA;IACTC,aAAa,GAAAL,IAAA,CAAbK,aAAa;EAEb,IAAI,CAACA,aAAa,IAAI,CAACA,aAAa,CAACC,SAAS,EAAE,OAAOH,gBAAgB;EAEvE,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