@bigbinary/neeto-fields-frontend 2.3.3 → 2.3.5
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/dist/{DeleteAlert-19876639.js → DeleteAlert-CJO7QTRI.js} +4 -5
- package/dist/{DeleteAlert-19876639.js.map → DeleteAlert-CJO7QTRI.js.map} +1 -1
- package/dist/{DeleteAlert-3ac1424d.js → DeleteAlert-eLnhk6_S.js} +13 -23
- package/dist/{DeleteAlert-3ac1424d.js.map → DeleteAlert-eLnhk6_S.js.map} +1 -1
- package/dist/FieldDeleteAlert.js +5 -5
- package/dist/FieldInputs.js +3 -3
- package/dist/FieldInputs.js.map +1 -1
- package/dist/{FieldValueInputWrapper-49352a3a.js → FieldValueInputWrapper-BIn3Jjiy.js} +21 -29
- package/dist/FieldValueInputWrapper-BIn3Jjiy.js.map +1 -0
- package/dist/{FieldValueInputWrapper-8403d6c0.js → FieldValueInputWrapper-CfSB73DA.js} +12 -12
- package/dist/FieldValueInputWrapper-CfSB73DA.js.map +1 -0
- package/dist/FieldValuesContainer.js +6 -6
- package/dist/FieldValuesContainer.js.map +1 -1
- package/dist/FieldsDashboard.js +7 -7
- package/dist/FieldsDashboard.js.map +1 -1
- package/dist/FieldsPane.js +34 -35
- package/dist/FieldsPane.js.map +1 -1
- package/dist/InlineFieldValueInput.js +8 -8
- package/dist/InlineFieldValueInput.js.map +1 -1
- package/dist/cjs/FieldDeleteAlert.js +5 -5
- package/dist/cjs/FieldInputs.js +5 -10
- package/dist/cjs/FieldInputs.js.map +1 -1
- package/dist/cjs/FieldValuesContainer.js +13 -21
- package/dist/cjs/FieldValuesContainer.js.map +1 -1
- package/dist/cjs/FieldsDashboard.js +57 -79
- package/dist/cjs/FieldsDashboard.js.map +1 -1
- package/dist/cjs/FieldsPane.js +69 -87
- package/dist/cjs/FieldsPane.js.map +1 -1
- package/dist/cjs/InlineFieldValueInput.js +12 -19
- package/dist/cjs/InlineFieldValueInput.js.map +1 -1
- package/dist/cjs/hooks.js +3 -5
- package/dist/cjs/hooks.js.map +1 -1
- package/dist/cjs/index.js +32 -34
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/utils.js +3 -5
- package/dist/cjs/utils.js.map +1 -1
- package/dist/{constants-c71008a3.js → constants-CNocslTu.js} +1 -1
- package/dist/{constants-c71008a3.js.map → constants-CNocslTu.js.map} +1 -1
- package/dist/{constants-0e6017ea.js → constants-DAiy8JQK.js} +2 -2
- package/dist/{constants-0e6017ea.js.map → constants-DAiy8JQK.js.map} +1 -1
- package/dist/hooks.js +3 -3
- package/dist/{index-e6e554d7.js → index-BCXsyMdx.js} +1 -1
- package/dist/{index-e6e554d7.js.map → index-BCXsyMdx.js.map} +1 -1
- package/dist/{index-428f286f.js → index-D9idRDgn.js} +1 -1
- package/dist/{index-428f286f.js.map → index-D9idRDgn.js.map} +1 -1
- package/dist/index.js +32 -32
- package/dist/{query-1a62b3ac.js → query-DWn563ij.js} +1 -1
- package/dist/{query-1a62b3ac.js.map → query-DWn563ij.js.map} +1 -1
- package/dist/{query-0df5b2dd.js → query-DXkir3SS.js} +1 -1
- package/dist/{query-0df5b2dd.js.map → query-DXkir3SS.js.map} +1 -1
- package/dist/{useFieldsApi-5e5aa412.js → useFieldsApi-CNM4-TGd.js} +4 -4
- package/dist/useFieldsApi-CNM4-TGd.js.map +1 -0
- package/dist/{useFieldsApi-02aeee16.js → useFieldsApi-CPPFCDrd.js} +14 -21
- package/dist/useFieldsApi-CPPFCDrd.js.map +1 -0
- package/dist/{utils-36c459ce.js → utils-BWHDG-Sn.js} +6 -6
- package/dist/{utils-36c459ce.js.map → utils-BWHDG-Sn.js.map} +1 -1
- package/dist/{utils-6f56aa82.js → utils-fss5EIdx.js} +53 -73
- package/dist/utils-fss5EIdx.js.map +1 -0
- package/dist/utils.js +3 -3
- package/package.json +55 -51
- package/dist/FieldValueInputWrapper-49352a3a.js.map +0 -1
- package/dist/FieldValueInputWrapper-8403d6c0.js.map +0 -1
- package/dist/useFieldsApi-02aeee16.js.map +0 -1
- package/dist/useFieldsApi-5e5aa412.js.map +0 -1
- package/dist/utils-6f56aa82.js.map +0 -1
|
@@ -7,16 +7,16 @@ var classnames = require('classnames');
|
|
|
7
7
|
var neetoCist = require('@bigbinary/neeto-cist');
|
|
8
8
|
var utils$1 = require('@bigbinary/neeto-commons-frontend/utils');
|
|
9
9
|
var Typography = require('@bigbinary/neetoui/Typography');
|
|
10
|
-
var FieldValueInputWrapper = require('../FieldValueInputWrapper-
|
|
11
|
-
var utils = require('../utils-
|
|
12
|
-
var constants = require('../constants-
|
|
10
|
+
var FieldValueInputWrapper = require('../FieldValueInputWrapper-BIn3Jjiy.js');
|
|
11
|
+
var utils = require('../utils-fss5EIdx.js');
|
|
12
|
+
var constants = require('../constants-CNocslTu.js');
|
|
13
13
|
var jsxRuntime = require('react/jsx-runtime');
|
|
14
14
|
require('ramda');
|
|
15
|
-
require('../index-
|
|
15
|
+
require('../index-D9idRDgn.js');
|
|
16
16
|
require('@tanstack/react-query');
|
|
17
17
|
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
18
18
|
require('axios');
|
|
19
|
-
require('../query-
|
|
19
|
+
require('../query-DXkir3SS.js');
|
|
20
20
|
require('@bigbinary/neetoui/formik/Form');
|
|
21
21
|
require('@babel/runtime/helpers/toConsumableArray');
|
|
22
22
|
require('@bigbinary/neetoui/Checkbox');
|
|
@@ -38,18 +38,11 @@ require('@bigbinary/neetoui/Input');
|
|
|
38
38
|
require('@bigbinary/neetoui/Select');
|
|
39
39
|
require('@bigbinary/neetoui/Textarea');
|
|
40
40
|
|
|
41
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
42
|
-
|
|
43
|
-
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
44
|
-
var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray);
|
|
45
|
-
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
46
|
-
var Typography__default = /*#__PURE__*/_interopDefaultLegacy(Typography);
|
|
47
|
-
|
|
48
41
|
var renderDataAsText = function renderDataAsText(field, fieldValues) {
|
|
49
|
-
var _findBy,
|
|
42
|
+
var _findBy, _findBy2, _findBy3;
|
|
50
43
|
var fieldValueData = (_findBy = neetoCist.findBy({
|
|
51
44
|
fieldId: field.id
|
|
52
|
-
}, fieldValues)) === null || _findBy === void 0
|
|
45
|
+
}, fieldValues)) === null || _findBy === void 0 || (_findBy = _findBy.data) === null || _findBy === void 0 ? void 0 : _findBy.value;
|
|
53
46
|
switch (field.kind) {
|
|
54
47
|
case constants.KINDS.date:
|
|
55
48
|
return fieldValueData && utils$1.dateFormat.date(fieldValueData);
|
|
@@ -68,7 +61,7 @@ var renderDataAsText = function renderDataAsText(field, fieldValues) {
|
|
|
68
61
|
case constants.KINDS.multiOption:
|
|
69
62
|
fieldValueData = (_findBy3 = neetoCist.findBy({
|
|
70
63
|
fieldId: field.id
|
|
71
|
-
}, fieldValues)) === null || _findBy3 === void 0
|
|
64
|
+
}, fieldValues)) === null || _findBy3 === void 0 || (_findBy3 = _findBy3.data) === null || _findBy3 === void 0 ? void 0 : _findBy3.values;
|
|
72
65
|
return fieldValueData && fieldValueData.map(function (optionId) {
|
|
73
66
|
var _findBy4;
|
|
74
67
|
return (_findBy4 = neetoCist.findBy({
|
|
@@ -83,10 +76,10 @@ var renderDataAsText = function renderDataAsText(field, fieldValues) {
|
|
|
83
76
|
};
|
|
84
77
|
|
|
85
78
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
86
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
79
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
87
80
|
var DefaultDisplayComponent = function DefaultDisplayComponent(_ref) {
|
|
88
81
|
var value = _ref.value;
|
|
89
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
82
|
+
return /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
90
83
|
className: "text-wrap",
|
|
91
84
|
children: value
|
|
92
85
|
});
|
|
@@ -105,7 +98,7 @@ var InlineFieldValueInput = function InlineFieldValueInput(_ref2) {
|
|
|
105
98
|
_ref2$customDisplayCo = _ref2.customDisplayComponents,
|
|
106
99
|
customDisplayComponents = _ref2$customDisplayCo === void 0 ? {} : _ref2$customDisplayCo;
|
|
107
100
|
var _useState = React.useState(false),
|
|
108
|
-
_useState2 =
|
|
101
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
109
102
|
editMode = _useState2[0],
|
|
110
103
|
setEditMode = _useState2[1];
|
|
111
104
|
var queryOptions = {
|
|
@@ -153,7 +146,7 @@ var InlineFieldValueInput = function InlineFieldValueInput(_ref2) {
|
|
|
153
146
|
}))
|
|
154
147
|
})
|
|
155
148
|
}) : /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
156
|
-
className:
|
|
149
|
+
className: classnames({
|
|
157
150
|
"cursor-pointer": !field.isSystem
|
|
158
151
|
}),
|
|
159
152
|
onClick: function onClick() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InlineFieldValueInput.js","sources":["../../app/javascript/src/components/InlineFieldValueInput/utils.js","../../app/javascript/src/components/InlineFieldValueInput/index.jsx"],"sourcesContent":["import { findBy, isNotEmpty } from \"neetocist\";\nimport { dateFormat } from \"neetocommons/utils\";\n\nimport { KINDS } from \"components/FieldsDashBoard/constants\";\n\nimport { getValueFromBool } from \"../commons/FieldInputs/utils\";\n\nexport const renderDataAsText = (field, fieldValues) => {\n let fieldValueData = findBy({ fieldId: field.id }, fieldValues)?.data?.value;\n\n switch (field.kind) {\n case KINDS.date:\n return fieldValueData && dateFormat.date(fieldValueData);\n case KINDS.time:\n return fieldValueData && dateFormat.time(fieldValueData);\n case KINDS.datetime:\n return fieldValueData && dateFormat.dateTime(fieldValueData);\n case KINDS.dateRange:\n return (\n fieldValueData &&\n isNotEmpty(fieldValueData) &&\n `${dateFormat.date(fieldValueData[0])} - ${dateFormat.date(\n fieldValueData[1]\n )}`\n );\n case KINDS.timeRange:\n return (\n fieldValueData &&\n `${dateFormat.time(fieldValueData[0])} - ${dateFormat.time(\n fieldValueData[1]\n )}`\n );\n case KINDS.singleOption:\n return findBy({ id: fieldValueData }, field.data)?.label;\n case KINDS.multiOption:\n fieldValueData = findBy({ fieldId: field.id }, fieldValues)?.data?.values;\n\n return (\n fieldValueData &&\n fieldValueData\n .map(optionId => findBy({ id: optionId }, field.data)?.label)\n .join(\", \")\n );\n\n case KINDS.checkbox:\n return getValueFromBool(fieldValueData);\n\n default:\n return fieldValueData;\n }\n};\n","import { useState } from \"react\";\n\nimport classnames from \"classnames\";\nimport { noop } from \"neetocist\";\nimport { hyphenize } from \"neetocommons/utils\";\nimport { Typography } from \"neetoui\";\n\nimport FieldValueInputWrapper from \"components/FieldValuesContainer/FieldValueInputWrapper\";\nimport { getFieldInput } from \"components/utils\";\nimport useFieldValues from \"hooks/useFieldValues\";\n\nimport { DIRECT_EDIT_INPUT_FIELDS } from \"./constants\";\nimport { renderDataAsText } from \"./utils\";\n\nconst DefaultDisplayComponent = ({ value }) => (\n <Typography className=\"text-wrap\">{value}</Typography>\n);\n\nconst InlineFieldValueInput = ({\n field,\n fieldValues,\n resourceType,\n resourceId,\n ownerId = \"\",\n onMutationSuccess = noop,\n onMutate = noop,\n customDisplayComponents = {},\n}) => {\n const [editMode, setEditMode] = useState(false);\n\n const queryOptions = {\n onMutate: variables => onMutate(variables.payload || variables),\n onSuccess: (...params) => {\n setEditMode(false);\n onMutationSuccess(...params);\n },\n };\n\n const { handleSubmit } = useFieldValues({\n resourceId,\n resourceType,\n ownerId,\n queryOptions,\n });\n\n const Field = getFieldInput({ field });\n\n const fieldKind = field.kind;\n const isEditable =\n !field.isSystem &&\n (editMode || DIRECT_EDIT_INPUT_FIELDS.includes(fieldKind));\n\n const displayValue = renderDataAsText(field, fieldValues) || \"-\";\n const {\n props: customDisplayComponentProps = {},\n component: CustomDisplayComponent = null,\n } = customDisplayComponents[fieldKind] || {};\n\n const DisplayComponent = CustomDisplayComponent || DefaultDisplayComponent;\n\n return isEditable ? (\n <div data-cy={`inline-field-value-input-${hyphenize(field.name)}`}>\n <FieldValueInputWrapper\n {...{ field, fieldValues }}\n onSubmit={values => handleSubmit(field, values)}\n >\n <Field\n {...{ ...field }}\n individualSubmit\n isInline\n onBlur={() => setEditMode(false)}\n />\n </FieldValueInputWrapper>\n </div>\n ) : (\n <div\n className={classnames({ \"cursor-pointer\": !field.isSystem })}\n onClick={() => setEditMode(true)}\n >\n <DisplayComponent\n {...{ resourceId }}\n value={displayValue}\n {...customDisplayComponentProps}\n />\n </div>\n );\n};\n\nexport default InlineFieldValueInput;\n"],"names":["renderDataAsText","field","fieldValues","_findBy","_findBy$data","_findBy2","_findBy3","_findBy3$data","fieldValueData","findBy","fieldId","id","data","value","kind","KINDS","date","dateFormat","time","datetime","dateTime","dateRange","isNotEmpty","concat","timeRange","singleOption","label","multiOption","values","map","optionId","_findBy4","join","checkbox","getValueFromBool","DefaultDisplayComponent","_ref","_jsx","Typography","className","children","InlineFieldValueInput","_ref2","resourceType","resourceId","_ref2$ownerId","ownerId","_ref2$onMutationSucce","onMutationSuccess","noop","_ref2$onMutate","onMutate","_ref2$customDisplayCo","customDisplayComponents","_useState","useState","_useState2","_slicedToArray","editMode","setEditMode","queryOptions","variables","payload","onSuccess","apply","arguments","_useFieldValues","useFieldValues","handleSubmit","Field","getFieldInput","fieldKind","isEditable","isSystem","DIRECT_EDIT_INPUT_FIELDS","includes","displayValue","_ref3","_ref3$props","props","customDisplayComponentProps","_ref3$component","component","CustomDisplayComponent","DisplayComponent","hyphenize","name","FieldValueInputWrapper","onSubmit","_objectSpread","individualSubmit","isInline","onBlur","classnames","onClick"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOO,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,KAAK,EAAEC,WAAW,EAAK;EAAA,IAAAC,OAAA,EAAAC,YAAA,EAAAC,QAAA,EAAAC,QAAA,EAAAC,aAAA,CAAA;AACtD,EAAA,IAAIC,cAAc,GAAA,CAAAL,OAAA,GAAGM,gBAAM,CAAC;IAAEC,OAAO,EAAET,KAAK,CAACU,EAAAA;AAAG,GAAC,EAAET,WAAW,CAAC,MAAAC,IAAAA,IAAAA,OAAA,wBAAAC,YAAA,GAA1CD,OAAA,CAA4CS,IAAI,MAAAR,IAAAA,IAAAA,YAAA,KAAhDA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,YAAA,CAAkDS,KAAK,CAAA;EAE5E,QAAQZ,KAAK,CAACa,IAAI;IAChB,KAAKC,eAAK,CAACC,IAAI;AACb,MAAA,OAAOR,cAAc,IAAIS,kBAAU,CAACD,IAAI,CAACR,cAAc,CAAC,CAAA;IAC1D,KAAKO,eAAK,CAACG,IAAI;AACb,MAAA,OAAOV,cAAc,IAAIS,kBAAU,CAACC,IAAI,CAACV,cAAc,CAAC,CAAA;IAC1D,KAAKO,eAAK,CAACI,QAAQ;AACjB,MAAA,OAAOX,cAAc,IAAIS,kBAAU,CAACG,QAAQ,CAACZ,cAAc,CAAC,CAAA;IAC9D,KAAKO,eAAK,CAACM,SAAS;AAClB,MAAA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AAA;KACqB,CAAA;GACrB,CAAC,gBAENtB,cAAA,CAAA,KAAA,EAAA;IACEE,SAAS,EAAEsD,8BAAU,CAAC;MAAE,gBAAgB,EAAE,CAAC5F,KAAK,CAACwE,QAAAA;AAAS,KAAC,CAAE;IAC7DqB,OAAO,EAAE,SAATA,OAAOA,GAAA;MAAA,OAAQnC,WAAW,CAAC,IAAI,CAAC,CAAA;KAAC;AAAAnB,IAAAA,QAAA,eAEjCH,cAAA,CAAC+C,gBAAgB,EAAAK,aAAA,CAAA;AACT7C,MAAAA,UAAU,EAAVA,UAAU;AAChB/B,MAAAA,KAAK,EAAE+D,YAAAA;AAAa,KAAA,EAChBI,2BAA2B,CAChC,CAAA;AAAC,GACC,CACN,CAAA;AACH;;;;"}
|
|
1
|
+
{"version":3,"file":"InlineFieldValueInput.js","sources":["../../app/javascript/src/components/InlineFieldValueInput/utils.js","../../app/javascript/src/components/InlineFieldValueInput/index.jsx"],"sourcesContent":["import { findBy, isNotEmpty } from \"neetocist\";\nimport { dateFormat } from \"neetocommons/utils\";\n\nimport { KINDS } from \"components/FieldsDashBoard/constants\";\n\nimport { getValueFromBool } from \"../commons/FieldInputs/utils\";\n\nexport const renderDataAsText = (field, fieldValues) => {\n let fieldValueData = findBy({ fieldId: field.id }, fieldValues)?.data?.value;\n\n switch (field.kind) {\n case KINDS.date:\n return fieldValueData && dateFormat.date(fieldValueData);\n case KINDS.time:\n return fieldValueData && dateFormat.time(fieldValueData);\n case KINDS.datetime:\n return fieldValueData && dateFormat.dateTime(fieldValueData);\n case KINDS.dateRange:\n return (\n fieldValueData &&\n isNotEmpty(fieldValueData) &&\n `${dateFormat.date(fieldValueData[0])} - ${dateFormat.date(\n fieldValueData[1]\n )}`\n );\n case KINDS.timeRange:\n return (\n fieldValueData &&\n `${dateFormat.time(fieldValueData[0])} - ${dateFormat.time(\n fieldValueData[1]\n )}`\n );\n case KINDS.singleOption:\n return findBy({ id: fieldValueData }, field.data)?.label;\n case KINDS.multiOption:\n fieldValueData = findBy({ fieldId: field.id }, fieldValues)?.data?.values;\n\n return (\n fieldValueData &&\n fieldValueData\n .map(optionId => findBy({ id: optionId }, field.data)?.label)\n .join(\", \")\n );\n\n case KINDS.checkbox:\n return getValueFromBool(fieldValueData);\n\n default:\n return fieldValueData;\n }\n};\n","import { useState } from \"react\";\n\nimport classnames from \"classnames\";\nimport { noop } from \"neetocist\";\nimport { hyphenize } from \"neetocommons/utils\";\nimport { Typography } from \"neetoui\";\n\nimport FieldValueInputWrapper from \"components/FieldValuesContainer/FieldValueInputWrapper\";\nimport { getFieldInput } from \"components/utils\";\nimport useFieldValues from \"hooks/useFieldValues\";\n\nimport { DIRECT_EDIT_INPUT_FIELDS } from \"./constants\";\nimport { renderDataAsText } from \"./utils\";\n\nconst DefaultDisplayComponent = ({ value }) => (\n <Typography className=\"text-wrap\">{value}</Typography>\n);\n\nconst InlineFieldValueInput = ({\n field,\n fieldValues,\n resourceType,\n resourceId,\n ownerId = \"\",\n onMutationSuccess = noop,\n onMutate = noop,\n customDisplayComponents = {},\n}) => {\n const [editMode, setEditMode] = useState(false);\n\n const queryOptions = {\n onMutate: variables => onMutate(variables.payload || variables),\n onSuccess: (...params) => {\n setEditMode(false);\n onMutationSuccess(...params);\n },\n };\n\n const { handleSubmit } = useFieldValues({\n resourceId,\n resourceType,\n ownerId,\n queryOptions,\n });\n\n const Field = getFieldInput({ field });\n\n const fieldKind = field.kind;\n const isEditable =\n !field.isSystem &&\n (editMode || DIRECT_EDIT_INPUT_FIELDS.includes(fieldKind));\n\n const displayValue = renderDataAsText(field, fieldValues) || \"-\";\n const {\n props: customDisplayComponentProps = {},\n component: CustomDisplayComponent = null,\n } = customDisplayComponents[fieldKind] || {};\n\n const DisplayComponent = CustomDisplayComponent || DefaultDisplayComponent;\n\n return isEditable ? (\n <div data-cy={`inline-field-value-input-${hyphenize(field.name)}`}>\n <FieldValueInputWrapper\n {...{ field, fieldValues }}\n onSubmit={values => handleSubmit(field, values)}\n >\n <Field\n {...{ ...field }}\n individualSubmit\n isInline\n onBlur={() => setEditMode(false)}\n />\n </FieldValueInputWrapper>\n </div>\n ) : (\n <div\n className={classnames({ \"cursor-pointer\": !field.isSystem })}\n onClick={() => setEditMode(true)}\n >\n <DisplayComponent\n {...{ resourceId }}\n value={displayValue}\n {...customDisplayComponentProps}\n />\n </div>\n );\n};\n\nexport default InlineFieldValueInput;\n"],"names":["renderDataAsText","field","fieldValues","_findBy","_findBy2","_findBy3","fieldValueData","findBy","fieldId","id","data","value","kind","KINDS","date","dateFormat","time","datetime","dateTime","dateRange","isNotEmpty","concat","timeRange","singleOption","label","multiOption","values","map","optionId","_findBy4","join","checkbox","getValueFromBool","DefaultDisplayComponent","_ref","_jsx","Typography","className","children","InlineFieldValueInput","_ref2","resourceType","resourceId","_ref2$ownerId","ownerId","_ref2$onMutationSucce","onMutationSuccess","noop","_ref2$onMutate","onMutate","_ref2$customDisplayCo","customDisplayComponents","_useState","useState","_useState2","_slicedToArray","editMode","setEditMode","queryOptions","variables","payload","onSuccess","apply","arguments","_useFieldValues","useFieldValues","handleSubmit","Field","getFieldInput","fieldKind","isEditable","isSystem","DIRECT_EDIT_INPUT_FIELDS","includes","displayValue","_ref3","_ref3$props","props","customDisplayComponentProps","_ref3$component","component","CustomDisplayComponent","DisplayComponent","hyphenize","name","FieldValueInputWrapper","onSubmit","_objectSpread","individualSubmit","isInline","onBlur","classnames","onClick"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOO,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,KAAK,EAAEC,WAAW,EAAK;AAAA,EAAA,IAAAC,OAAA,EAAAC,QAAA,EAAAC,QAAA;AACtD,EAAA,IAAIC,cAAc,GAAA,CAAAH,OAAA,GAAGI,gBAAM,CAAC;IAAEC,OAAO,EAAEP,KAAK,CAACQ;AAAG,GAAC,EAAEP,WAAW,CAAC,MAAAC,IAAAA,IAAAA,OAAA,gBAAAA,OAA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AAY,QAAA,eAEhDH,cAAA,CAACgC,KAAK,EAAAoB,aAAA,CAAAA,aAAA,CAAA,EAAA,EAAAA,aAAA,CAAA,EAAA,EACKtF,KAAK,CAAA,CAAA,EAAA,EAAA,EAAA;QACduF,gBAAgB,EAAA,IAAA;QAChBC,QAAQ,EAAA,IAAA;QACRC,MAAM,EAAE,SAARA,MAAMA,GAAA;UAAA,OAAQjC,WAAW,CAAC,KAAK,CAAC;AAAA;OACjC,CAAA;KACqB;GACrB,CAAC,gBAENtB,cAAA,CAAA,KAAA,EAAA;IACEE,SAAS,EAAEsD,UAAU,CAAC;MAAE,gBAAgB,EAAE,CAAC1F,KAAK,CAACsE;AAAS,KAAC,CAAE;IAC7DqB,OAAO,EAAE,SAATA,OAAOA,GAAA;MAAA,OAAQnC,WAAW,CAAC,IAAI,CAAC;KAAC;AAAAnB,IAAAA,QAAA,eAEjCH,cAAA,CAAC+C,gBAAgB,EAAAK,aAAA,CAAA;AACT7C,MAAAA,UAAU,EAAVA,UAAU;AAChB/B,MAAAA,KAAK,EAAE+D;AAAa,KAAA,EAChBI,2BAA2B,CAChC;AAAC,GACC,CACN;AACH;;;;"}
|
package/dist/cjs/hooks.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var useFieldsApi = require('../useFieldsApi-02aeee16.js');
|
|
3
|
+
var useFieldsApi = require('../useFieldsApi-CPPFCDrd.js');
|
|
6
4
|
require('@babel/runtime/helpers/toConsumableArray');
|
|
7
5
|
require('@babel/runtime/helpers/defineProperty');
|
|
8
6
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
@@ -10,8 +8,8 @@ require('@tanstack/react-query');
|
|
|
10
8
|
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
11
9
|
require('axios');
|
|
12
10
|
require('@bigbinary/neeto-commons-frontend/utils');
|
|
13
|
-
require('../index-
|
|
14
|
-
require('../query-
|
|
11
|
+
require('../index-D9idRDgn.js');
|
|
12
|
+
require('../query-DXkir3SS.js');
|
|
15
13
|
|
|
16
14
|
|
|
17
15
|
|
package/dist/cjs/hooks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hooks.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,53 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var FieldInputs = require('./FieldInputs.js');
|
|
6
4
|
var FieldsDashboard = require('./FieldsDashboard.js');
|
|
7
|
-
var FieldDeleteAlert = require('../DeleteAlert-
|
|
5
|
+
var FieldDeleteAlert = require('../DeleteAlert-eLnhk6_S.js');
|
|
8
6
|
var FieldsPane = require('./FieldsPane.js');
|
|
9
7
|
var FieldValuesContainer = require('./FieldValuesContainer.js');
|
|
10
8
|
var InlineFieldValueInput = require('./InlineFieldValueInput.js');
|
|
11
|
-
var utils = require('../utils-
|
|
12
|
-
var useFieldsApi = require('../useFieldsApi-
|
|
9
|
+
var utils = require('../utils-fss5EIdx.js');
|
|
10
|
+
var useFieldsApi = require('../useFieldsApi-CPPFCDrd.js');
|
|
13
11
|
require('@babel/runtime/helpers/defineProperty');
|
|
14
12
|
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
15
13
|
require('@bigbinary/neetoui/Typography');
|
|
16
14
|
require('react/jsx-runtime');
|
|
17
|
-
require('@babel/runtime/helpers/toConsumableArray');
|
|
18
15
|
require('@bigbinary/neeto-cist');
|
|
19
|
-
require('ramda');
|
|
20
|
-
require('@bigbinary/neetoui/Checkbox');
|
|
21
|
-
require('../index-428f286f.js');
|
|
22
|
-
require('@babel/runtime/helpers/asyncToGenerator');
|
|
23
|
-
require('@babel/runtime/helpers/slicedToArray');
|
|
24
|
-
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
25
|
-
require('@babel/runtime/regenerator');
|
|
26
|
-
require('react');
|
|
27
|
-
require('formik');
|
|
28
|
-
require('../constants-c71008a3.js');
|
|
29
|
-
require('i18next');
|
|
30
|
-
require('@bigbinary/neetoui/DatePicker');
|
|
31
|
-
require('@bigbinary/neetoui/TimePicker');
|
|
32
|
-
require('dayjs');
|
|
33
|
-
require('yup');
|
|
34
|
-
require('@bigbinary/neeto-commons-frontend/utils/general');
|
|
35
|
-
require('@bigbinary/neeto-icons/Check');
|
|
36
|
-
require('@bigbinary/neetoui/Label');
|
|
37
|
-
require('@bigbinary/neetoui/Spinner');
|
|
38
|
-
require('@bigbinary/neetoui/formik/Select');
|
|
39
|
-
require('@bigbinary/neetoui/Input');
|
|
40
|
-
require('@bigbinary/neetoui/Select');
|
|
41
|
-
require('@bigbinary/neetoui/Textarea');
|
|
42
16
|
require('@bigbinary/neeto-commons-frontend/constants');
|
|
43
17
|
require('@bigbinary/neeto-molecules/Container');
|
|
18
|
+
require('@bigbinary/neetoui/Spinner');
|
|
19
|
+
require('ramda');
|
|
44
20
|
require('react-i18next');
|
|
21
|
+
require('@babel/runtime/helpers/slicedToArray');
|
|
22
|
+
require('react');
|
|
45
23
|
require('@tanstack/react-query');
|
|
46
24
|
require('@bigbinary/neeto-commons-frontend/utils');
|
|
47
25
|
require('@bigbinary/neeto-filters-frontend/utils');
|
|
48
26
|
require('react-router-dom');
|
|
27
|
+
require('../constants-CNocslTu.js');
|
|
28
|
+
require('i18next');
|
|
49
29
|
require('axios');
|
|
50
|
-
require('../
|
|
30
|
+
require('../index-D9idRDgn.js');
|
|
31
|
+
require('../query-DXkir3SS.js');
|
|
51
32
|
require('@bigbinary/neeto-molecules/TableWrapper');
|
|
52
33
|
require('@bigbinary/neetoui/NoData');
|
|
53
34
|
require('@bigbinary/neetoui/Table');
|
|
@@ -61,15 +42,32 @@ require('classnames');
|
|
|
61
42
|
require('@bigbinary/neeto-icons/Reorder');
|
|
62
43
|
require('@bigbinary/neeto-filters-frontend/Bar');
|
|
63
44
|
require('@bigbinary/neeto-molecules/SubHeader');
|
|
45
|
+
require('@bigbinary/neetoui/Alert');
|
|
46
|
+
require('@bigbinary/neeto-molecules/MoreDropdown');
|
|
47
|
+
require('@bigbinary/neetoui/Tab');
|
|
48
|
+
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
64
49
|
require('@bigbinary/neetoui/formik/Form');
|
|
50
|
+
require('yup');
|
|
65
51
|
require('@bigbinary/neetoui/formik/ActionBlock');
|
|
52
|
+
require('formik');
|
|
53
|
+
require('@bigbinary/neetoui/Label');
|
|
66
54
|
require('@bigbinary/neetoui/formik/Input');
|
|
55
|
+
require('@bigbinary/neetoui/formik/Select');
|
|
67
56
|
require('@bigbinary/neetoui/formik/Switch');
|
|
57
|
+
require('@babel/runtime/helpers/toConsumableArray');
|
|
68
58
|
require('@bigbinary/neeto-icons/Delete');
|
|
69
|
-
require('
|
|
70
|
-
require('@bigbinary/
|
|
71
|
-
require('@
|
|
72
|
-
require('
|
|
59
|
+
require('../FieldValueInputWrapper-BIn3Jjiy.js');
|
|
60
|
+
require('@bigbinary/neetoui/Checkbox');
|
|
61
|
+
require('@babel/runtime/helpers/asyncToGenerator');
|
|
62
|
+
require('@babel/runtime/regenerator');
|
|
63
|
+
require('@bigbinary/neetoui/DatePicker');
|
|
64
|
+
require('@bigbinary/neetoui/TimePicker');
|
|
65
|
+
require('dayjs');
|
|
66
|
+
require('@bigbinary/neeto-commons-frontend/utils/general');
|
|
67
|
+
require('@bigbinary/neeto-icons/Check');
|
|
68
|
+
require('@bigbinary/neetoui/Input');
|
|
69
|
+
require('@bigbinary/neetoui/Select');
|
|
70
|
+
require('@bigbinary/neetoui/Textarea');
|
|
73
71
|
|
|
74
72
|
|
|
75
73
|
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/cjs/utils.js
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var utils = require('../utils-6f56aa82.js');
|
|
3
|
+
var utils = require('../utils-fss5EIdx.js');
|
|
6
4
|
require('@babel/runtime/helpers/toConsumableArray');
|
|
7
5
|
require('@babel/runtime/helpers/defineProperty');
|
|
8
6
|
require('@bigbinary/neeto-cist');
|
|
9
7
|
require('ramda');
|
|
10
8
|
require('@bigbinary/neetoui/Checkbox');
|
|
11
|
-
require('../index-
|
|
9
|
+
require('../index-D9idRDgn.js');
|
|
12
10
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
13
11
|
require('@babel/runtime/helpers/slicedToArray');
|
|
14
12
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
@@ -16,7 +14,7 @@ require('@babel/runtime/regenerator');
|
|
|
16
14
|
require('react');
|
|
17
15
|
require('formik');
|
|
18
16
|
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
19
|
-
require('../constants-
|
|
17
|
+
require('../constants-CNocslTu.js');
|
|
20
18
|
require('i18next');
|
|
21
19
|
require('@bigbinary/neetoui/DatePicker');
|
|
22
20
|
require('@bigbinary/neetoui/TimePicker');
|
package/dist/cjs/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants-
|
|
1
|
+
{"version":3,"file":"constants-CNocslTu.js","sources":["../app/javascript/src/components/FieldsDashBoard/constants.js"],"sourcesContent":["import { t } from \"i18next\";\nimport { values } from \"ramda\";\n\nexport const KINDS = {\n text: \"text\",\n number: \"number\",\n monetary: \"monetary\",\n singleOption: \"single_option\",\n multiOption: \"multi_option\",\n date: \"date\",\n time: \"time\",\n dateRange: \"date_range\",\n timeRange: \"time_range\",\n textarea: \"textarea\",\n textArea: \"text_area\",\n person: \"person\",\n checkbox: \"checkbox\",\n regex: \"regex\",\n integer: \"integer\",\n decimal: \"decimal\",\n datetime: \"datetime\",\n};\n\nexport const DISPLAY_KINDS = {\n text: t(\"neetoFields.fields.kinds.text\"),\n number: t(\"neetoFields.fields.kinds.number\"),\n monetary: t(\"neetoFields.fields.kinds.monetary\"),\n single_option: t(\"neetoFields.fields.kinds.singleOption\"),\n multi_option: t(\"neetoFields.fields.kinds.multiOption\"),\n date: t(\"neetoFields.fields.kinds.date\"),\n time: t(\"neetoFields.fields.kinds.time\"),\n date_range: t(\"neetoFields.fields.kinds.dateRange\"),\n time_range: t(\"neetoFields.fields.kinds.timeRange\"),\n textarea: t(\"neetoFields.fields.kinds.textarea\"),\n text_area: t(\"neetoFields.fields.kinds.textArea\"),\n person: t(\"neetoFields.fields.kinds.person\"),\n checkbox: t(\"neetoFields.fields.kinds.checkbox\"),\n regex: t(\"neetoFields.fields.kinds.regex\"),\n integer: t(\"neetoFields.fields.kinds.integer\"),\n decimal: t(\"neetoFields.fields.kinds.decimal\"),\n datetime: t(\"neetoFields.fields.kinds.datetime\"),\n};\n\nexport const FIELD_STATES = {\n active: \"active\",\n inactive: \"inactive\",\n};\n\nexport const DEFAULT_FIELD_STATE_TAXONOMY = {\n active: \"Active\",\n inactive: \"Inactive\",\n};\n\nexport const ALL_KINDS = values(KINDS);\n\nexport const MENU_ITEMS = { EDIT: \"edit\", DELETE: \"delete\" };\n"],"names":["KINDS","text","number","monetary","singleOption","multiOption","date","time","dateRange","timeRange","textarea","textArea","person","checkbox","regex","integer","decimal","datetime","DISPLAY_KINDS","t","single_option","multi_option","date_range","time_range","text_area","FIELD_STATES","active","inactive","DEFAULT_FIELD_STATE_TAXONOMY","ALL_KINDS","values","MENU_ITEMS","EDIT","DELETE"],"mappings":";;;;;AAGO,IAAMA,KAAK,GAAG;AACnBC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,QAAQ,EAAE,UAAU;AACpBC,EAAAA,YAAY,EAAE,eAAe;AAC7BC,EAAAA,WAAW,EAAE,cAAc;AAC3BC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,SAAS,EAAE,YAAY;AACvBC,EAAAA,SAAS,EAAE,YAAY;AACvBC,EAAAA,QAAQ,EAAE,UAAU;AACpBC,EAAAA,QAAQ,EAAE,WAAW;AACrBC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,QAAQ,EAAE,UAAU;AACpBC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,QAAQ,EAAE;AACZ;AAEO,IAAMC,aAAa,GAAG;AAC3BjB,EAAAA,IAAI,EAAEkB,SAAC,CAAC,+BAA+B,CAAC;AACxCjB,EAAAA,MAAM,EAAEiB,SAAC,CAAC,iCAAiC,CAAC;AAC5ChB,EAAAA,QAAQ,EAAEgB,SAAC,CAAC,mCAAmC,CAAC;AAChDC,EAAAA,aAAa,EAAED,SAAC,CAAC,uCAAuC,CAAC;AACzDE,EAAAA,YAAY,EAAEF,SAAC,CAAC,sCAAsC,CAAC;AACvDb,EAAAA,IAAI,EAAEa,SAAC,CAAC,+BAA+B,CAAC;AACxCZ,EAAAA,IAAI,EAAEY,SAAC,CAAC,+BAA+B,CAAC;AACxCG,EAAAA,UAAU,EAAEH,SAAC,CAAC,oCAAoC,CAAC;AACnDI,EAAAA,UAAU,EAAEJ,SAAC,CAAC,oCAAoC,CAAC;AACnDT,EAAAA,QAAQ,EAAES,SAAC,CAAC,mCAAmC,CAAC;AAChDK,EAAAA,SAAS,EAAEL,SAAC,CAAC,mCAAmC,CAAC;AACjDP,EAAAA,MAAM,EAAEO,SAAC,CAAC,iCAAiC,CAAC;AAC5CN,EAAAA,QAAQ,EAAEM,SAAC,CAAC,mCAAmC,CAAC;AAChDL,EAAAA,KAAK,EAAEK,SAAC,CAAC,gCAAgC,CAAC;AAC1CJ,EAAAA,OAAO,EAAEI,SAAC,CAAC,kCAAkC,CAAC;AAC9CH,EAAAA,OAAO,EAAEG,SAAC,CAAC,kCAAkC,CAAC;EAC9CF,QAAQ,EAAEE,SAAC,CAAC,mCAAmC;AACjD;AAEO,IAAMM,YAAY,GAAG;AAC1BC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,QAAQ,EAAE;AACZ;AAEO,IAAMC,4BAA4B,GAAG;AAC1CF,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,QAAQ,EAAE;AACZ;IAEaE,SAAS,GAAGC,YAAM,CAAC9B,KAAK;AAE9B,IAAM+B,UAAU,GAAG;AAAEC,EAAAA,IAAI,EAAE,MAAM;AAAEC,EAAAA,MAAM,EAAE;AAAS;;;;;;;;;"}
|
|
@@ -53,5 +53,5 @@ var MENU_ITEMS = {
|
|
|
53
53
|
DELETE: "delete"
|
|
54
54
|
};
|
|
55
55
|
|
|
56
|
-
export { ALL_KINDS as A,
|
|
57
|
-
//# sourceMappingURL=constants-
|
|
56
|
+
export { ALL_KINDS as A, DISPLAY_KINDS as D, FIELD_STATES as F, KINDS as K, MENU_ITEMS as M, DEFAULT_FIELD_STATE_TAXONOMY as a };
|
|
57
|
+
//# sourceMappingURL=constants-DAiy8JQK.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants-
|
|
1
|
+
{"version":3,"file":"constants-DAiy8JQK.js","sources":["../app/javascript/src/components/FieldsDashBoard/constants.js"],"sourcesContent":["import { t } from \"i18next\";\nimport { values } from \"ramda\";\n\nexport const KINDS = {\n text: \"text\",\n number: \"number\",\n monetary: \"monetary\",\n singleOption: \"single_option\",\n multiOption: \"multi_option\",\n date: \"date\",\n time: \"time\",\n dateRange: \"date_range\",\n timeRange: \"time_range\",\n textarea: \"textarea\",\n textArea: \"text_area\",\n person: \"person\",\n checkbox: \"checkbox\",\n regex: \"regex\",\n integer: \"integer\",\n decimal: \"decimal\",\n datetime: \"datetime\",\n};\n\nexport const DISPLAY_KINDS = {\n text: t(\"neetoFields.fields.kinds.text\"),\n number: t(\"neetoFields.fields.kinds.number\"),\n monetary: t(\"neetoFields.fields.kinds.monetary\"),\n single_option: t(\"neetoFields.fields.kinds.singleOption\"),\n multi_option: t(\"neetoFields.fields.kinds.multiOption\"),\n date: t(\"neetoFields.fields.kinds.date\"),\n time: t(\"neetoFields.fields.kinds.time\"),\n date_range: t(\"neetoFields.fields.kinds.dateRange\"),\n time_range: t(\"neetoFields.fields.kinds.timeRange\"),\n textarea: t(\"neetoFields.fields.kinds.textarea\"),\n text_area: t(\"neetoFields.fields.kinds.textArea\"),\n person: t(\"neetoFields.fields.kinds.person\"),\n checkbox: t(\"neetoFields.fields.kinds.checkbox\"),\n regex: t(\"neetoFields.fields.kinds.regex\"),\n integer: t(\"neetoFields.fields.kinds.integer\"),\n decimal: t(\"neetoFields.fields.kinds.decimal\"),\n datetime: t(\"neetoFields.fields.kinds.datetime\"),\n};\n\nexport const FIELD_STATES = {\n active: \"active\",\n inactive: \"inactive\",\n};\n\nexport const DEFAULT_FIELD_STATE_TAXONOMY = {\n active: \"Active\",\n inactive: \"Inactive\",\n};\n\nexport const ALL_KINDS = values(KINDS);\n\nexport const MENU_ITEMS = { EDIT: \"edit\", DELETE: \"delete\" };\n"],"names":["KINDS","text","number","monetary","singleOption","multiOption","date","time","dateRange","timeRange","textarea","textArea","person","checkbox","regex","integer","decimal","datetime","DISPLAY_KINDS","t","single_option","multi_option","date_range","time_range","text_area","FIELD_STATES","active","inactive","DEFAULT_FIELD_STATE_TAXONOMY","ALL_KINDS","values","MENU_ITEMS","EDIT","DELETE"],"mappings":";;;AAGO,IAAMA,KAAK,GAAG;AACnBC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,QAAQ,EAAE,UAAU;AACpBC,EAAAA,YAAY,EAAE,eAAe;AAC7BC,EAAAA,WAAW,EAAE,cAAc;AAC3BC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,SAAS,EAAE,YAAY;AACvBC,EAAAA,SAAS,EAAE,YAAY;AACvBC,EAAAA,QAAQ,EAAE,UAAU;AACpBC,EAAAA,QAAQ,EAAE,WAAW;AACrBC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,QAAQ,EAAE,UAAU;AACpBC,EAAAA,KAAK,EAAE,OAAO;AACdC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,QAAQ,EAAE;AACZ;AAEO,IAAMC,aAAa,GAAG;AAC3BjB,EAAAA,IAAI,EAAEkB,CAAC,CAAC,+BAA+B,CAAC;AACxCjB,EAAAA,MAAM,EAAEiB,CAAC,CAAC,iCAAiC,CAAC;AAC5ChB,EAAAA,QAAQ,EAAEgB,CAAC,CAAC,mCAAmC,CAAC;AAChDC,EAAAA,aAAa,EAAED,CAAC,CAAC,uCAAuC,CAAC;AACzDE,EAAAA,YAAY,EAAEF,CAAC,CAAC,sCAAsC,CAAC;AACvDb,EAAAA,IAAI,EAAEa,CAAC,CAAC,+BAA+B,CAAC;AACxCZ,EAAAA,IAAI,EAAEY,CAAC,CAAC,+BAA+B,CAAC;AACxCG,EAAAA,UAAU,EAAEH,CAAC,CAAC,oCAAoC,CAAC;AACnDI,EAAAA,UAAU,EAAEJ,CAAC,CAAC,oCAAoC,CAAC;AACnDT,EAAAA,QAAQ,EAAES,CAAC,CAAC,mCAAmC,CAAC;AAChDK,EAAAA,SAAS,EAAEL,CAAC,CAAC,mCAAmC,CAAC;AACjDP,EAAAA,MAAM,EAAEO,CAAC,CAAC,iCAAiC,CAAC;AAC5CN,EAAAA,QAAQ,EAAEM,CAAC,CAAC,mCAAmC,CAAC;AAChDL,EAAAA,KAAK,EAAEK,CAAC,CAAC,gCAAgC,CAAC;AAC1CJ,EAAAA,OAAO,EAAEI,CAAC,CAAC,kCAAkC,CAAC;AAC9CH,EAAAA,OAAO,EAAEG,CAAC,CAAC,kCAAkC,CAAC;EAC9CF,QAAQ,EAAEE,CAAC,CAAC,mCAAmC;AACjD;AAEO,IAAMM,YAAY,GAAG;AAC1BC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,QAAQ,EAAE;AACZ;AAEO,IAAMC,4BAA4B,GAAG;AAC1CF,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,QAAQ,EAAE;AACZ;IAEaE,SAAS,GAAGC,MAAM,CAAC9B,KAAK;AAE9B,IAAM+B,UAAU,GAAG;AAAEC,EAAAA,IAAI,EAAE,MAAM;AAAEC,EAAAA,MAAM,EAAE;AAAS;;;;"}
|
package/dist/hooks.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as useCreateField,
|
|
1
|
+
export { c as useCreateField, b as useDestroyField, u as useFetchFields, d as useShowField, a as useUpdateField } from './useFieldsApi-CNM4-TGd.js';
|
|
2
2
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
3
3
|
import '@babel/runtime/helpers/defineProperty';
|
|
4
4
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
@@ -6,6 +6,6 @@ import '@tanstack/react-query';
|
|
|
6
6
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
7
7
|
import 'axios';
|
|
8
8
|
import '@bigbinary/neeto-commons-frontend/utils';
|
|
9
|
-
import './index-
|
|
10
|
-
import './query-
|
|
9
|
+
import './index-BCXsyMdx.js';
|
|
10
|
+
import './query-DWn563ij.js';
|
|
11
11
|
//# sourceMappingURL=hooks.js.map
|
|
@@ -13,4 +13,4 @@ var SUBMIT_FIELD_STATUS = {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export { CONFIGS_URL as C, DEPENDENCIES_URL as D, FIELDS_URL as F, SUBMIT_FIELD_STATUS as S, FIELDS_REORDER_URL as a, FIELD_URL as b, FIELD_VALUES_URL as c, FIELD_VALUE_URL as d };
|
|
16
|
-
//# sourceMappingURL=index-
|
|
16
|
+
//# sourceMappingURL=index-BCXsyMdx.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BCXsyMdx.js","sources":["../app/javascript/src/constants/index.js"],"sourcesContent":["export const NEETO_FIELDS_URL = \"/neeto_fields_engine/api/v1\";\nexport const FIELDS_URL = `${NEETO_FIELDS_URL}/fields`;\nexport const FIELD_VALUES_URL = `${NEETO_FIELDS_URL}/field_values`;\nexport const FIELD_VALUE_URL = `${NEETO_FIELDS_URL}/field_values/:fieldValueId`;\nexport const FIELD_URL = `${NEETO_FIELDS_URL}/fields/:fieldId`;\nexport const DEPENDENCIES_URL = `${NEETO_FIELDS_URL}/fields/:fieldId/dependencies`;\nexport const FIELDS_REORDER_URL = `${FIELDS_URL}/reorder`;\nexport const CONFIGS_URL = `${NEETO_FIELDS_URL}/configs`;\n\nexport const INFO_ICON_SIZE = 16;\n\nexport const SUBMIT_FIELD_STATUS = {\n SUBMITTING: \"submitting\",\n SUCCESS: \"success\",\n FAILED: \"failed\",\n};\n"],"names":["NEETO_FIELDS_URL","FIELDS_URL","concat","FIELD_VALUES_URL","FIELD_VALUE_URL","FIELD_URL","DEPENDENCIES_URL","FIELDS_REORDER_URL","CONFIGS_URL","SUBMIT_FIELD_STATUS","SUBMITTING","SUCCESS","FAILED"],"mappings":"AAAO,IAAMA,gBAAgB,GAAG,6BAA6B;IAChDC,UAAU,GAAA,EAAA,CAAAC,MAAA,CAAMF,gBAAgB,EAAS,SAAA;IACzCG,gBAAgB,GAAA,EAAA,CAAAD,MAAA,CAAMF,gBAAgB,EAAe,eAAA;IACrDI,eAAe,GAAA,EAAA,CAAAF,MAAA,CAAMF,gBAAgB,EAA6B,6BAAA;IAClEK,SAAS,GAAA,EAAA,CAAAH,MAAA,CAAMF,gBAAgB,EAAkB,kBAAA;IACjDM,gBAAgB,GAAA,EAAA,CAAAJ,MAAA,CAAMF,gBAAgB,EAA+B,+BAAA;IACrEO,kBAAkB,GAAA,EAAA,CAAAL,MAAA,CAAMD,UAAU,EAAU,UAAA;IAC5CO,WAAW,GAAA,EAAA,CAAAN,MAAA,CAAMF,gBAAgB,EAAU,UAAA;AAIjD,IAAMS,mBAAmB,GAAG;AACjCC,EAAAA,UAAU,EAAE,YAAY;AACxBC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,MAAM,EAAE;AACV;;;;"}
|
|
@@ -22,4 +22,4 @@ exports.FIELD_URL = FIELD_URL;
|
|
|
22
22
|
exports.FIELD_VALUES_URL = FIELD_VALUES_URL;
|
|
23
23
|
exports.FIELD_VALUE_URL = FIELD_VALUE_URL;
|
|
24
24
|
exports.SUBMIT_FIELD_STATUS = SUBMIT_FIELD_STATUS;
|
|
25
|
-
//# sourceMappingURL=index-
|
|
25
|
+
//# sourceMappingURL=index-D9idRDgn.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-D9idRDgn.js","sources":["../app/javascript/src/constants/index.js"],"sourcesContent":["export const NEETO_FIELDS_URL = \"/neeto_fields_engine/api/v1\";\nexport const FIELDS_URL = `${NEETO_FIELDS_URL}/fields`;\nexport const FIELD_VALUES_URL = `${NEETO_FIELDS_URL}/field_values`;\nexport const FIELD_VALUE_URL = `${NEETO_FIELDS_URL}/field_values/:fieldValueId`;\nexport const FIELD_URL = `${NEETO_FIELDS_URL}/fields/:fieldId`;\nexport const DEPENDENCIES_URL = `${NEETO_FIELDS_URL}/fields/:fieldId/dependencies`;\nexport const FIELDS_REORDER_URL = `${FIELDS_URL}/reorder`;\nexport const CONFIGS_URL = `${NEETO_FIELDS_URL}/configs`;\n\nexport const INFO_ICON_SIZE = 16;\n\nexport const SUBMIT_FIELD_STATUS = {\n SUBMITTING: \"submitting\",\n SUCCESS: \"success\",\n FAILED: \"failed\",\n};\n"],"names":["NEETO_FIELDS_URL","FIELDS_URL","concat","FIELD_VALUES_URL","FIELD_VALUE_URL","FIELD_URL","DEPENDENCIES_URL","FIELDS_REORDER_URL","CONFIGS_URL","SUBMIT_FIELD_STATUS","SUBMITTING","SUCCESS","FAILED"],"mappings":";;AAAO,IAAMA,gBAAgB,GAAG,6BAA6B;IAChDC,UAAU,GAAA,EAAA,CAAAC,MAAA,CAAMF,gBAAgB,EAAS,SAAA;IACzCG,gBAAgB,GAAA,EAAA,CAAAD,MAAA,CAAMF,gBAAgB,EAAe,eAAA;IACrDI,eAAe,GAAA,EAAA,CAAAF,MAAA,CAAMF,gBAAgB,EAA6B,6BAAA;IAClEK,SAAS,GAAA,EAAA,CAAAH,MAAA,CAAMF,gBAAgB,EAAkB,kBAAA;IACjDM,gBAAgB,GAAA,EAAA,CAAAJ,MAAA,CAAMF,gBAAgB,EAA+B,+BAAA;IACrEO,kBAAkB,GAAA,EAAA,CAAAL,MAAA,CAAMD,UAAU,EAAU,UAAA;IAC5CO,WAAW,GAAA,EAAA,CAAAN,MAAA,CAAMF,gBAAgB,EAAU,UAAA;AAIjD,IAAMS,mBAAmB,GAAG;AACjCC,EAAAA,UAAU,EAAE,YAAY;AACxBC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,MAAM,EAAE;AACV;;;;;;;;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -1,49 +1,32 @@
|
|
|
1
1
|
export { default as FieldInputs } from './FieldInputs.js';
|
|
2
2
|
export { default as FieldsDashboard } from './FieldsDashboard.js';
|
|
3
|
-
export { D as FieldDeleteAlert } from './DeleteAlert-
|
|
3
|
+
export { D as FieldDeleteAlert } from './DeleteAlert-CJO7QTRI.js';
|
|
4
4
|
export { default as FieldsPane } from './FieldsPane.js';
|
|
5
5
|
export { default as FieldValuesContainer } from './FieldValuesContainer.js';
|
|
6
6
|
export { default as InlineFieldValueInput } from './InlineFieldValueInput.js';
|
|
7
|
-
export { n as neetoFieldsUtils } from './utils-
|
|
8
|
-
export { c as useCreateField,
|
|
7
|
+
export { n as neetoFieldsUtils } from './utils-BWHDG-Sn.js';
|
|
8
|
+
export { c as useCreateField, b as useDestroyField, u as useFetchFields, d as useShowField, a as useUpdateField } from './useFieldsApi-CNM4-TGd.js';
|
|
9
9
|
import '@babel/runtime/helpers/defineProperty';
|
|
10
10
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
11
11
|
import '@bigbinary/neetoui/Typography';
|
|
12
12
|
import 'react/jsx-runtime';
|
|
13
|
-
import '@babel/runtime/helpers/toConsumableArray';
|
|
14
13
|
import '@bigbinary/neeto-cist';
|
|
15
|
-
import 'ramda';
|
|
16
|
-
import '@bigbinary/neetoui/Checkbox';
|
|
17
|
-
import './index-e6e554d7.js';
|
|
18
|
-
import '@babel/runtime/helpers/asyncToGenerator';
|
|
19
|
-
import '@babel/runtime/helpers/slicedToArray';
|
|
20
|
-
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
21
|
-
import '@babel/runtime/regenerator';
|
|
22
|
-
import 'react';
|
|
23
|
-
import 'formik';
|
|
24
|
-
import './constants-0e6017ea.js';
|
|
25
|
-
import 'i18next';
|
|
26
|
-
import '@bigbinary/neetoui/DatePicker';
|
|
27
|
-
import '@bigbinary/neetoui/TimePicker';
|
|
28
|
-
import 'dayjs';
|
|
29
|
-
import 'yup';
|
|
30
|
-
import '@bigbinary/neeto-commons-frontend/utils/general';
|
|
31
|
-
import '@bigbinary/neeto-icons/Check';
|
|
32
|
-
import '@bigbinary/neetoui/Label';
|
|
33
|
-
import '@bigbinary/neetoui/Spinner';
|
|
34
|
-
import '@bigbinary/neetoui/formik/Select';
|
|
35
|
-
import '@bigbinary/neetoui/Input';
|
|
36
|
-
import '@bigbinary/neetoui/Select';
|
|
37
|
-
import '@bigbinary/neetoui/Textarea';
|
|
38
14
|
import '@bigbinary/neeto-commons-frontend/constants';
|
|
39
15
|
import '@bigbinary/neeto-molecules/Container';
|
|
16
|
+
import '@bigbinary/neetoui/Spinner';
|
|
17
|
+
import 'ramda';
|
|
40
18
|
import 'react-i18next';
|
|
19
|
+
import '@babel/runtime/helpers/slicedToArray';
|
|
20
|
+
import 'react';
|
|
41
21
|
import '@tanstack/react-query';
|
|
42
22
|
import '@bigbinary/neeto-commons-frontend/utils';
|
|
43
23
|
import '@bigbinary/neeto-filters-frontend/utils';
|
|
44
24
|
import 'react-router-dom';
|
|
25
|
+
import './constants-DAiy8JQK.js';
|
|
26
|
+
import 'i18next';
|
|
45
27
|
import 'axios';
|
|
46
|
-
import './
|
|
28
|
+
import './index-BCXsyMdx.js';
|
|
29
|
+
import './query-DWn563ij.js';
|
|
47
30
|
import '@bigbinary/neeto-molecules/TableWrapper';
|
|
48
31
|
import '@bigbinary/neetoui/NoData';
|
|
49
32
|
import '@bigbinary/neetoui/Table';
|
|
@@ -57,13 +40,30 @@ import 'classnames';
|
|
|
57
40
|
import '@bigbinary/neeto-icons/Reorder';
|
|
58
41
|
import '@bigbinary/neeto-filters-frontend/Bar';
|
|
59
42
|
import '@bigbinary/neeto-molecules/SubHeader';
|
|
43
|
+
import '@bigbinary/neetoui/Alert';
|
|
44
|
+
import '@bigbinary/neeto-molecules/MoreDropdown';
|
|
45
|
+
import '@bigbinary/neetoui/Tab';
|
|
46
|
+
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
60
47
|
import '@bigbinary/neetoui/formik/Form';
|
|
48
|
+
import 'yup';
|
|
61
49
|
import '@bigbinary/neetoui/formik/ActionBlock';
|
|
50
|
+
import 'formik';
|
|
51
|
+
import '@bigbinary/neetoui/Label';
|
|
62
52
|
import '@bigbinary/neetoui/formik/Input';
|
|
53
|
+
import '@bigbinary/neetoui/formik/Select';
|
|
63
54
|
import '@bigbinary/neetoui/formik/Switch';
|
|
55
|
+
import '@babel/runtime/helpers/toConsumableArray';
|
|
64
56
|
import '@bigbinary/neeto-icons/Delete';
|
|
65
|
-
import '
|
|
66
|
-
import '@bigbinary/
|
|
67
|
-
import '@
|
|
68
|
-
import '
|
|
57
|
+
import './FieldValueInputWrapper-CfSB73DA.js';
|
|
58
|
+
import '@bigbinary/neetoui/Checkbox';
|
|
59
|
+
import '@babel/runtime/helpers/asyncToGenerator';
|
|
60
|
+
import '@babel/runtime/regenerator';
|
|
61
|
+
import '@bigbinary/neetoui/DatePicker';
|
|
62
|
+
import '@bigbinary/neetoui/TimePicker';
|
|
63
|
+
import 'dayjs';
|
|
64
|
+
import '@bigbinary/neeto-commons-frontend/utils/general';
|
|
65
|
+
import '@bigbinary/neeto-icons/Check';
|
|
66
|
+
import '@bigbinary/neetoui/Input';
|
|
67
|
+
import '@bigbinary/neetoui/Select';
|
|
68
|
+
import '@bigbinary/neetoui/Textarea';
|
|
69
69
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-
|
|
1
|
+
{"version":3,"file":"query-DWn563ij.js","sources":["../app/javascript/src/constants/query.js"],"sourcesContent":["const QUERY_KEYS = {\n FIELDS: \"fields\",\n FIELD_VALUES: \"field_values\",\n CONFIGS: \"configurations\",\n DEPENDENCIES: \"dependencies\",\n};\n\nconst DEFAULT_STALE_TIME = 3_600_000; // 1 hour\n\nexport { QUERY_KEYS, DEFAULT_STALE_TIME };\n"],"names":["QUERY_KEYS","FIELDS","FIELD_VALUES","CONFIGS","DEPENDENCIES","DEFAULT_STALE_TIME"],"mappings":"AAAA,IAAMA,UAAU,GAAG;AACjBC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,YAAY,EAAE,cAAc;AAC5BC,EAAAA,OAAO,EAAE,gBAAgB;AACzBC,EAAAA,YAAY,EAAE;AAChB;AAEA,IAAMC,kBAAkB,GAAG,QAAU;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-
|
|
1
|
+
{"version":3,"file":"query-DXkir3SS.js","sources":["../app/javascript/src/constants/query.js"],"sourcesContent":["const QUERY_KEYS = {\n FIELDS: \"fields\",\n FIELD_VALUES: \"field_values\",\n CONFIGS: \"configurations\",\n DEPENDENCIES: \"dependencies\",\n};\n\nconst DEFAULT_STALE_TIME = 3_600_000; // 1 hour\n\nexport { QUERY_KEYS, DEFAULT_STALE_TIME };\n"],"names":["QUERY_KEYS","FIELDS","FIELD_VALUES","CONFIGS","DEPENDENCIES","DEFAULT_STALE_TIME"],"mappings":";;AAAA,IAAMA,UAAU,GAAG;AACjBC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,YAAY,EAAE,cAAc;AAC5BC,EAAAA,OAAO,EAAE,gBAAgB;AACzBC,EAAAA,YAAY,EAAE;AAChB;AAEA,IAAMC,kBAAkB,GAAG,QAAU;;;;;"}
|
|
@@ -5,8 +5,8 @@ import { useQuery } from '@tanstack/react-query';
|
|
|
5
5
|
import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
6
6
|
import axios from 'axios';
|
|
7
7
|
import { buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
|
|
8
|
-
import { F as FIELDS_URL, a as FIELDS_REORDER_URL, b as FIELD_URL, D as DEPENDENCIES_URL } from './index-
|
|
9
|
-
import { D as DEFAULT_STALE_TIME, Q as QUERY_KEYS } from './query-
|
|
8
|
+
import { F as FIELDS_URL, a as FIELDS_REORDER_URL, b as FIELD_URL, D as DEPENDENCIES_URL } from './index-BCXsyMdx.js';
|
|
9
|
+
import { D as DEFAULT_STALE_TIME, Q as QUERY_KEYS } from './query-DWn563ij.js';
|
|
10
10
|
|
|
11
11
|
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
12
|
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -148,5 +148,5 @@ var useReorderFields = function useReorderFields() {
|
|
|
148
148
|
});
|
|
149
149
|
};
|
|
150
150
|
|
|
151
|
-
export {
|
|
152
|
-
//# sourceMappingURL=useFieldsApi-
|
|
151
|
+
export { useUpdateField as a, useDestroyField as b, useCreateField as c, useShowField as d, useFetchDependencies as e, useReorderFields as f, useFetchFields as u };
|
|
152
|
+
//# sourceMappingURL=useFieldsApi-CNM4-TGd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFieldsApi-CNM4-TGd.js","sources":["../app/javascript/src/apis/fields.js","../app/javascript/src/hooks/reactQuery/useFieldsApi.js"],"sourcesContent":["import axios from \"axios\";\nimport { buildUrl } from \"neetocommons/utils\";\n\nimport {\n DEPENDENCIES_URL,\n FIELDS_REORDER_URL,\n FIELDS_URL,\n FIELD_URL,\n} from \"src/constants\";\n\nconst fieldUrl = fieldId => buildUrl(FIELD_URL, { fieldId });\nconst dependenciesUrl = fieldId => buildUrl(DEPENDENCIES_URL, { fieldId });\n\nconst fetch = ({ resourceType, ownerId, state, filters, pageProps = {} }) =>\n axios.get(FIELDS_URL, {\n params: { resourceType, ownerId, state, filters, ...pageProps },\n });\n\nconst create = payload => axios.post(FIELDS_URL, payload);\n\nconst show = ({ fieldId, ownerId }) =>\n axios.get(fieldUrl(fieldId), { params: { ownerId } });\n\nconst destroy = ({ fieldId, ownerId }) =>\n axios.delete(fieldUrl(fieldId), { data: { ownerId } });\n\nconst update = ({ fieldId, payload }) => axios.put(fieldUrl(fieldId), payload);\n\nconst reorder = payload => axios.patch(FIELDS_REORDER_URL, payload);\n\nconst dependencies = ({ fieldId, ownerId }) =>\n axios.get(dependenciesUrl(fieldId), { params: { ownerId } });\n\nconst fieldsApi = {\n fetch,\n create,\n show,\n destroy,\n update,\n reorder,\n dependencies,\n};\n\nexport default fieldsApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport fieldsApi from \"apis/fields\";\nimport { DEFAULT_STALE_TIME, QUERY_KEYS } from \"src/constants/query\";\n\nconst { FIELDS, DEPENDENCIES } = QUERY_KEYS;\n\nexport const useFetchFields = ({ prefixQueryKeys = [], ...params }, options) =>\n useQuery({\n queryKey: [FIELDS, ...prefixQueryKeys, params],\n queryFn: () => fieldsApi.fetch(params),\n staleTime: DEFAULT_STALE_TIME,\n ...options,\n });\n\nexport const useCreateField = options =>\n useMutationWithInvalidation(fieldsApi.create, {\n keysToInvalidate: [[FIELDS]],\n ...options,\n });\n\nexport const useShowField = ({ fieldId, ownerId }, options) =>\n useQuery({\n queryKey: [FIELDS, fieldId],\n queryFn: () => fieldsApi.show({ fieldId, ownerId }),\n ...options,\n });\n\nexport const useFetchDependencies = ({ fieldId, ownerId }, options) =>\n useQuery({\n queryKey: [DEPENDENCIES, fieldId],\n queryFn: () => fieldsApi.dependencies({ fieldId, ownerId }),\n ...options,\n });\n\nexport const useUpdateField = options =>\n useMutationWithInvalidation(fieldsApi.update, {\n keysToInvalidate: [[FIELDS]],\n ...options,\n });\n\nexport const useDestroyField = options =>\n useMutationWithInvalidation(fieldsApi.destroy, {\n keysToInvalidate: [[FIELDS]],\n ...options,\n });\n\nexport const useReorderFields = () =>\n useMutationWithInvalidation(fieldsApi.reorder, {\n keysToInvalidate: [[FIELDS]],\n });\n"],"names":["fieldUrl","fieldId","buildUrl","FIELD_URL","dependenciesUrl","DEPENDENCIES_URL","fetch","_ref","resourceType","ownerId","state","filters","_ref$pageProps","pageProps","axios","get","FIELDS_URL","params","_objectSpread","create","payload","post","show","_ref2","destroy","_ref3","data","update","_ref4","put","reorder","patch","FIELDS_REORDER_URL","dependencies","_ref5","fieldsApi","FIELDS","QUERY_KEYS","DEPENDENCIES","useFetchFields","options","_ref$prefixQueryKeys","prefixQueryKeys","_objectWithoutProperties","_excluded","useQuery","queryKey","concat","_toConsumableArray","queryFn","staleTime","DEFAULT_STALE_TIME","useCreateField","useMutationWithInvalidation","keysToInvalidate","useShowField","useFetchDependencies","useUpdateField","useDestroyField","useReorderFields"],"mappings":";;;;;;;;;;;;AAUA,IAAMA,QAAQ,GAAG,SAAXA,QAAQA,CAAGC,OAAO,EAAA;EAAA,OAAIC,QAAQ,CAACC,SAAS,EAAE;AAAEF,IAAAA,OAAO,EAAPA;AAAQ,GAAC,CAAC;AAAA,CAAA;AAC5D,IAAMG,eAAe,GAAG,SAAlBA,eAAeA,CAAGH,OAAO,EAAA;EAAA,OAAIC,QAAQ,CAACG,gBAAgB,EAAE;AAAEJ,IAAAA,OAAO,EAAPA;AAAQ,GAAC,CAAC;AAAA,CAAA;AAE1E,IAAMK,KAAK,GAAG,SAARA,KAAKA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,YAAY,GAAAD,IAAA,CAAZC,YAAY;IAAEC,OAAO,GAAAF,IAAA,CAAPE,OAAO;IAAEC,KAAK,GAAAH,IAAA,CAALG,KAAK;IAAEC,OAAO,GAAAJ,IAAA,CAAPI,OAAO;IAAAC,cAAA,GAAAL,IAAA,CAAEM,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAA,KAAA,CAAA,GAAG,EAAE,GAAAA,cAAA;AAAA,EAAA,OACpEE,KAAK,CA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