@bigbinary/neeto-approvals-frontend 1.2.18 → 1.2.20
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/.ready +1 -1
- package/dist/Approvals.js +6 -6
- package/dist/Form.js +4 -4
- package/dist/Public.js +3 -3
- package/dist/RequestDetailsPane.js +4 -4
- package/dist/cjs/Approvals.js +6 -6
- package/dist/cjs/Form.js +4 -4
- package/dist/cjs/Public.js +3 -3
- package/dist/cjs/RequestDetailsPane.js +4 -4
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/v2/Approvals.js +57 -61
- package/dist/cjs/v2/Approvals.js.map +1 -1
- package/dist/cjs/v2/Form.js +8 -8
- package/dist/cjs/v2/Form.js.map +1 -1
- package/dist/cjs/v2/Public.js +3 -3
- package/dist/cjs/v2/RequestDetailsPane.js +4 -4
- package/dist/cjs/v2/index.js +9 -9
- package/dist/{constants-DaDwtZe3.js → constants-BStDLPVr.js} +2 -2
- package/dist/{constants-DaDwtZe3.js.map → constants-BStDLPVr.js.map} +1 -1
- package/dist/{constants-qLYJlKc6.js → constants-Bo5FPtSn.js} +2 -2
- package/dist/{constants-qLYJlKc6.js.map → constants-Bo5FPtSn.js.map} +1 -1
- package/dist/{constants-DzID-rqV.js → constants-CkgOXbuj.js} +2 -2
- package/dist/{constants-DzID-rqV.js.map → constants-CkgOXbuj.js.map} +1 -1
- package/dist/{constants-BwvPJzqf.js → constants-DIOzO1GT.js} +2 -2
- package/dist/{constants-BwvPJzqf.js.map → constants-DIOzO1GT.js.map} +1 -1
- package/dist/{index-t8u9Sjvr.js → index-BGCvDbJ9.js} +3 -3
- package/dist/{index-t8u9Sjvr.js.map → index-BGCvDbJ9.js.map} +1 -1
- package/dist/{index-CFiP9Hcn.js → index-D8MZXpK9.js} +3 -3
- package/dist/{index-CFiP9Hcn.js.map → index-D8MZXpK9.js.map} +1 -1
- package/dist/{index-hZqdAkyl.js → index-DOxS3L2E.js} +4 -5
- package/dist/index-DOxS3L2E.js.map +1 -0
- package/dist/{index-C8moxeiZ.js → index-DeahXT_7.js} +5 -6
- package/dist/index-DeahXT_7.js.map +1 -0
- package/dist/index.js +6 -6
- package/dist/{useTemplatesApi-BII_qvcl.js → useTemplatesApi-06zSv6Fv.js} +2 -2
- package/dist/{useTemplatesApi-BII_qvcl.js.map → useTemplatesApi-06zSv6Fv.js.map} +1 -1
- package/dist/{useTemplatesApi-ByO6idQD.js → useTemplatesApi-Ba1i3rkm.js} +2 -2
- package/dist/{useTemplatesApi-ByO6idQD.js.map → useTemplatesApi-Ba1i3rkm.js.map} +1 -1
- package/dist/v2/Approvals.js +58 -62
- package/dist/v2/Approvals.js.map +1 -1
- package/dist/v2/Form.js +9 -9
- package/dist/v2/Form.js.map +1 -1
- package/dist/v2/Public.js +3 -3
- package/dist/v2/RequestDetailsPane.js +4 -4
- package/dist/v2/index.js +9 -9
- package/package.json +21 -18
- package/dist/index-C8moxeiZ.js.map +0 -1
- package/dist/index-hZqdAkyl.js.map +0 -1
package/dist/.ready
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Built at 2026-
|
|
1
|
+
Built at 2026-10-08T11:44:32.448Z
|
package/dist/Approvals.js
CHANGED
|
@@ -17,25 +17,25 @@ import { useTranslation, Trans } from 'react-i18next';
|
|
|
17
17
|
import { a as useFetchRequests } from './useRequestsApi-DEGfFuv5.js';
|
|
18
18
|
import DateFormat from '@bigbinary/neeto-molecules/DateFormat';
|
|
19
19
|
import Tag from '@bigbinary/neetoui/Tag';
|
|
20
|
-
import { a as STATUS_TAG_STYLE, D as DEFAULT_FILTER_VALUES, c as SEARCH_DELAY, S as STATUSES, d as SORT_ORDER, e as DATA_TESTID_KEY } from './constants-
|
|
20
|
+
import { a as STATUS_TAG_STYLE, D as DEFAULT_FILTER_VALUES, c as SEARCH_DELAY, S as STATUSES, d as SORT_ORDER, e as DATA_TESTID_KEY } from './constants-Bo5FPtSn.js';
|
|
21
21
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
22
|
-
import { u as updateApprovalDetails, R as RequestDetailsPane, g as getApprovalFilter } from './index-
|
|
22
|
+
import { u as updateApprovalDetails, R as RequestDetailsPane, g as getApprovalFilter } from './index-BGCvDbJ9.js';
|
|
23
23
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
24
24
|
import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
|
|
25
25
|
import Alert from '@bigbinary/neetoui/Alert';
|
|
26
|
-
import { b as useCreateTemplate, c as useUpdateTemplate, u as useFetchTemplates, d as useDeleteTemplate } from './useTemplatesApi-
|
|
26
|
+
import { b as useCreateTemplate, c as useUpdateTemplate, u as useFetchTemplates, d as useDeleteTemplate } from './useTemplatesApi-06zSv6Fv.js';
|
|
27
27
|
import Pane from '@bigbinary/neetoui/Pane';
|
|
28
28
|
import Typography from '@bigbinary/neetoui/Typography';
|
|
29
29
|
import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
|
|
30
30
|
import FormikForm from '@bigbinary/neetoui/formik/Form';
|
|
31
|
-
import { isEditorEmpty } from '@bigbinary/neeto-editor/utils';
|
|
31
|
+
import { isEditorEmpty } from '@bigbinary/neeto-editor-frontend/utils';
|
|
32
32
|
import * as yup from 'yup';
|
|
33
33
|
import { useFormikContext } from 'formik';
|
|
34
34
|
import ToggleFeatureCard from '@bigbinary/neeto-molecules/ToggleFeatureCard';
|
|
35
35
|
import Input from '@bigbinary/neetoui/formik/Input';
|
|
36
36
|
import Textarea from '@bigbinary/neetoui/formik/Textarea';
|
|
37
|
-
import FormikEditor from '@bigbinary/neeto-editor/FormikEditor';
|
|
38
|
-
import EditorContent from '@bigbinary/neeto-editor/EditorContent';
|
|
37
|
+
import FormikEditor from '@bigbinary/neeto-editor-frontend/FormikEditor';
|
|
38
|
+
import EditorContent from '@bigbinary/neeto-editor-frontend/EditorContent';
|
|
39
39
|
import Label from '@bigbinary/neetoui/Label';
|
|
40
40
|
import MoreDropdown from '@bigbinary/neeto-molecules/MoreDropdown';
|
|
41
41
|
import NeetoHeader from '@bigbinary/neeto-molecules/Header';
|
package/dist/Form.js
CHANGED
|
@@ -8,13 +8,13 @@ import FormikForm from '@bigbinary/neetoui/formik/Form';
|
|
|
8
8
|
import { useTranslation } from 'react-i18next';
|
|
9
9
|
import { useFormikContext } from 'formik';
|
|
10
10
|
import { globalProps } from '@bigbinary/neeto-commons-frontend/initializers';
|
|
11
|
-
import FormikEditor from '@bigbinary/neeto-editor/FormikEditor';
|
|
11
|
+
import FormikEditor from '@bigbinary/neeto-editor-frontend/FormikEditor';
|
|
12
12
|
import Select from '@bigbinary/neetoui/Select';
|
|
13
13
|
import { isEmpty } from 'ramda';
|
|
14
14
|
import { u as useFetchApprovers } from './useApproversApi-B7ChYonT.js';
|
|
15
|
-
import { u as useFetchTemplates, a as useFetchTemplate } from './useTemplatesApi-
|
|
15
|
+
import { u as useFetchTemplates, a as useFetchTemplate } from './useTemplatesApi-06zSv6Fv.js';
|
|
16
16
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
17
|
-
import { R as REQUEST_FORM_VALIDATION_SCHEMA, A as APPROVAL_REQUEST_FORM_INITIAL_VALUES } from './constants-
|
|
17
|
+
import { R as REQUEST_FORM_VALIDATION_SCHEMA, A as APPROVAL_REQUEST_FORM_INITIAL_VALUES } from './constants-Bo5FPtSn.js';
|
|
18
18
|
import '@babel/runtime/helpers/defineProperty';
|
|
19
19
|
import '@tanstack/react-query';
|
|
20
20
|
import 'axios';
|
|
@@ -22,7 +22,7 @@ import './queryConstants-Vrcjv9lF.js';
|
|
|
22
22
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
23
23
|
import '@bigbinary/neeto-commons-frontend/utils';
|
|
24
24
|
import 'i18next';
|
|
25
|
-
import '@bigbinary/neeto-editor/utils';
|
|
25
|
+
import '@bigbinary/neeto-editor-frontend/utils';
|
|
26
26
|
import 'yup';
|
|
27
27
|
|
|
28
28
|
var Form$1 = function Form(_ref) {
|
package/dist/Public.js
CHANGED
|
@@ -4,7 +4,7 @@ import NeetoHeader from '@bigbinary/neeto-molecules/Header';
|
|
|
4
4
|
import CardLayout from '@bigbinary/neeto-molecules/CardLayout';
|
|
5
5
|
import Container from '@bigbinary/neeto-molecules/Container';
|
|
6
6
|
import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
|
|
7
|
-
import EditorContent from '@bigbinary/neeto-editor/EditorContent';
|
|
7
|
+
import EditorContent from '@bigbinary/neeto-editor-frontend/EditorContent';
|
|
8
8
|
import Button from '@bigbinary/neetoui/Button';
|
|
9
9
|
import Callout from '@bigbinary/neetoui/Callout';
|
|
10
10
|
import Textarea from '@bigbinary/neetoui/Textarea';
|
|
@@ -12,7 +12,7 @@ import Typography from '@bigbinary/neetoui/Typography';
|
|
|
12
12
|
import { u as useFetchPublicRequest, a as useAcceptPendingRequest, b as useDeclinePendingRequest } from './useApprovalRequest-D_WJmB5t.js';
|
|
13
13
|
import { useState, useEffect } from 'react';
|
|
14
14
|
import { useParams } from 'react-router-dom';
|
|
15
|
-
import { S as STATUSES } from './constants-
|
|
15
|
+
import { S as STATUSES } from './constants-Bo5FPtSn.js';
|
|
16
16
|
import { useTranslation, Trans } from 'react-i18next';
|
|
17
17
|
import { isEmpty } from 'ramda';
|
|
18
18
|
import { withEventTargetValue } from '@bigbinary/neeto-commons-frontend/utils';
|
|
@@ -23,7 +23,7 @@ import '@tanstack/react-query';
|
|
|
23
23
|
import 'axios';
|
|
24
24
|
import './queryConstants-Vrcjv9lF.js';
|
|
25
25
|
import 'i18next';
|
|
26
|
-
import '@bigbinary/neeto-editor/utils';
|
|
26
|
+
import '@bigbinary/neeto-editor-frontend/utils';
|
|
27
27
|
import 'yup';
|
|
28
28
|
|
|
29
29
|
var Public = function Public() {
|
|
@@ -3,7 +3,7 @@ import '@babel/runtime/helpers/slicedToArray';
|
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@bigbinary/neeto-cist';
|
|
5
5
|
import '@bigbinary/neeto-commons-frontend/utils';
|
|
6
|
-
import '@bigbinary/neeto-editor/EditorContent';
|
|
6
|
+
import '@bigbinary/neeto-editor-frontend/EditorContent';
|
|
7
7
|
import '@bigbinary/neetoui/Label';
|
|
8
8
|
import '@bigbinary/neetoui/Pane';
|
|
9
9
|
import '@bigbinary/neetoui/Tag';
|
|
@@ -11,8 +11,8 @@ import '@bigbinary/neetoui/Textarea';
|
|
|
11
11
|
import '@bigbinary/neetoui/Typography';
|
|
12
12
|
import 'react-i18next';
|
|
13
13
|
import './useRequestsApi-DEGfFuv5.js';
|
|
14
|
-
export { R as default } from './index-
|
|
15
|
-
import './constants-
|
|
14
|
+
export { R as default } from './index-BGCvDbJ9.js';
|
|
15
|
+
import './constants-Bo5FPtSn.js';
|
|
16
16
|
import 'react/jsx-runtime';
|
|
17
17
|
import '@tanstack/react-query';
|
|
18
18
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
@@ -25,6 +25,6 @@ import 'dayjs/plugin/utc';
|
|
|
25
25
|
import 'i18next';
|
|
26
26
|
import '@bigbinary/neeto-commons-frontend/constants';
|
|
27
27
|
import '@bigbinary/neeto-commons-frontend/initializers';
|
|
28
|
-
import '@bigbinary/neeto-editor/utils';
|
|
28
|
+
import '@bigbinary/neeto-editor-frontend/utils';
|
|
29
29
|
import 'yup';
|
|
30
30
|
//# sourceMappingURL=RequestDetailsPane.js.map
|
package/dist/cjs/Approvals.js
CHANGED
|
@@ -19,25 +19,25 @@ var reactI18next = require('react-i18next');
|
|
|
19
19
|
var useRequestsApi = require('../useRequestsApi-DO-oEAzQ.js');
|
|
20
20
|
var DateFormat = require('@bigbinary/neeto-molecules/DateFormat');
|
|
21
21
|
var Tag = require('@bigbinary/neetoui/Tag');
|
|
22
|
-
var constants = require('../constants-
|
|
22
|
+
var constants = require('../constants-DIOzO1GT.js');
|
|
23
23
|
var jsxRuntime = require('react/jsx-runtime');
|
|
24
|
-
var RequestDetailsPane = require('../index-
|
|
24
|
+
var RequestDetailsPane = require('../index-D8MZXpK9.js');
|
|
25
25
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
26
26
|
var PageLoader = require('@bigbinary/neeto-molecules/PageLoader');
|
|
27
27
|
var Alert = require('@bigbinary/neetoui/Alert');
|
|
28
|
-
var useTemplatesApi = require('../useTemplatesApi-
|
|
28
|
+
var useTemplatesApi = require('../useTemplatesApi-Ba1i3rkm.js');
|
|
29
29
|
var Pane = require('@bigbinary/neetoui/Pane');
|
|
30
30
|
var Typography = require('@bigbinary/neetoui/Typography');
|
|
31
31
|
var ActionBlock = require('@bigbinary/neetoui/formik/ActionBlock');
|
|
32
32
|
var FormikForm = require('@bigbinary/neetoui/formik/Form');
|
|
33
|
-
var utils = require('@bigbinary/neeto-editor/utils');
|
|
33
|
+
var utils = require('@bigbinary/neeto-editor-frontend/utils');
|
|
34
34
|
var yup = require('yup');
|
|
35
35
|
var formik = require('formik');
|
|
36
36
|
var ToggleFeatureCard = require('@bigbinary/neeto-molecules/ToggleFeatureCard');
|
|
37
37
|
var Input = require('@bigbinary/neetoui/formik/Input');
|
|
38
38
|
var Textarea = require('@bigbinary/neetoui/formik/Textarea');
|
|
39
|
-
var FormikEditor = require('@bigbinary/neeto-editor/FormikEditor');
|
|
40
|
-
var EditorContent = require('@bigbinary/neeto-editor/EditorContent');
|
|
39
|
+
var FormikEditor = require('@bigbinary/neeto-editor-frontend/FormikEditor');
|
|
40
|
+
var EditorContent = require('@bigbinary/neeto-editor-frontend/EditorContent');
|
|
41
41
|
var Label = require('@bigbinary/neetoui/Label');
|
|
42
42
|
var MoreDropdown = require('@bigbinary/neeto-molecules/MoreDropdown');
|
|
43
43
|
var NeetoHeader = require('@bigbinary/neeto-molecules/Header');
|
package/dist/cjs/Form.js
CHANGED
|
@@ -10,13 +10,13 @@ var FormikForm = require('@bigbinary/neetoui/formik/Form');
|
|
|
10
10
|
var reactI18next = require('react-i18next');
|
|
11
11
|
var formik = require('formik');
|
|
12
12
|
var initializers = require('@bigbinary/neeto-commons-frontend/initializers');
|
|
13
|
-
var FormikEditor = require('@bigbinary/neeto-editor/FormikEditor');
|
|
13
|
+
var FormikEditor = require('@bigbinary/neeto-editor-frontend/FormikEditor');
|
|
14
14
|
var Select = require('@bigbinary/neetoui/Select');
|
|
15
15
|
var ramda = require('ramda');
|
|
16
16
|
var useApproversApi = require('../useApproversApi-BO6XC1KJ.js');
|
|
17
|
-
var useTemplatesApi = require('../useTemplatesApi-
|
|
17
|
+
var useTemplatesApi = require('../useTemplatesApi-Ba1i3rkm.js');
|
|
18
18
|
var jsxRuntime = require('react/jsx-runtime');
|
|
19
|
-
var constants$1 = require('../constants-
|
|
19
|
+
var constants$1 = require('../constants-DIOzO1GT.js');
|
|
20
20
|
require('@babel/runtime/helpers/defineProperty');
|
|
21
21
|
require('@tanstack/react-query');
|
|
22
22
|
require('axios');
|
|
@@ -24,7 +24,7 @@ require('../queryConstants-DjYiOKxE.js');
|
|
|
24
24
|
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
25
25
|
require('@bigbinary/neeto-commons-frontend/utils');
|
|
26
26
|
require('i18next');
|
|
27
|
-
require('@bigbinary/neeto-editor/utils');
|
|
27
|
+
require('@bigbinary/neeto-editor-frontend/utils');
|
|
28
28
|
require('yup');
|
|
29
29
|
|
|
30
30
|
var Form$1 = function Form(_ref) {
|
package/dist/cjs/Public.js
CHANGED
|
@@ -6,7 +6,7 @@ var NeetoHeader = require('@bigbinary/neeto-molecules/Header');
|
|
|
6
6
|
var CardLayout = require('@bigbinary/neeto-molecules/CardLayout');
|
|
7
7
|
var Container = require('@bigbinary/neeto-molecules/Container');
|
|
8
8
|
var PageLoader = require('@bigbinary/neeto-molecules/PageLoader');
|
|
9
|
-
var EditorContent = require('@bigbinary/neeto-editor/EditorContent');
|
|
9
|
+
var EditorContent = require('@bigbinary/neeto-editor-frontend/EditorContent');
|
|
10
10
|
var Button = require('@bigbinary/neetoui/Button');
|
|
11
11
|
var Callout = require('@bigbinary/neetoui/Callout');
|
|
12
12
|
var Textarea = require('@bigbinary/neetoui/Textarea');
|
|
@@ -14,7 +14,7 @@ var Typography = require('@bigbinary/neetoui/Typography');
|
|
|
14
14
|
var useApprovalRequest = require('../useApprovalRequest-XjfcKfLQ.js');
|
|
15
15
|
var react = require('react');
|
|
16
16
|
var reactRouterDom = require('react-router-dom');
|
|
17
|
-
var constants = require('../constants-
|
|
17
|
+
var constants = require('../constants-DIOzO1GT.js');
|
|
18
18
|
var reactI18next = require('react-i18next');
|
|
19
19
|
var ramda = require('ramda');
|
|
20
20
|
var utils = require('@bigbinary/neeto-commons-frontend/utils');
|
|
@@ -25,7 +25,7 @@ require('@tanstack/react-query');
|
|
|
25
25
|
require('axios');
|
|
26
26
|
require('../queryConstants-DjYiOKxE.js');
|
|
27
27
|
require('i18next');
|
|
28
|
-
require('@bigbinary/neeto-editor/utils');
|
|
28
|
+
require('@bigbinary/neeto-editor-frontend/utils');
|
|
29
29
|
require('yup');
|
|
30
30
|
|
|
31
31
|
var Public = function Public() {
|
|
@@ -5,7 +5,7 @@ require('@babel/runtime/helpers/slicedToArray');
|
|
|
5
5
|
require('react');
|
|
6
6
|
require('@bigbinary/neeto-cist');
|
|
7
7
|
require('@bigbinary/neeto-commons-frontend/utils');
|
|
8
|
-
require('@bigbinary/neeto-editor/EditorContent');
|
|
8
|
+
require('@bigbinary/neeto-editor-frontend/EditorContent');
|
|
9
9
|
require('@bigbinary/neetoui/Label');
|
|
10
10
|
require('@bigbinary/neetoui/Pane');
|
|
11
11
|
require('@bigbinary/neetoui/Tag');
|
|
@@ -13,8 +13,8 @@ require('@bigbinary/neetoui/Textarea');
|
|
|
13
13
|
require('@bigbinary/neetoui/Typography');
|
|
14
14
|
require('react-i18next');
|
|
15
15
|
require('../useRequestsApi-DO-oEAzQ.js');
|
|
16
|
-
var RequestDetailsPane = require('../index-
|
|
17
|
-
require('../constants-
|
|
16
|
+
var RequestDetailsPane = require('../index-D8MZXpK9.js');
|
|
17
|
+
require('../constants-DIOzO1GT.js');
|
|
18
18
|
require('react/jsx-runtime');
|
|
19
19
|
require('@tanstack/react-query');
|
|
20
20
|
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
@@ -27,7 +27,7 @@ require('dayjs/plugin/utc');
|
|
|
27
27
|
require('i18next');
|
|
28
28
|
require('@bigbinary/neeto-commons-frontend/constants');
|
|
29
29
|
require('@bigbinary/neeto-commons-frontend/initializers');
|
|
30
|
-
require('@bigbinary/neeto-editor/utils');
|
|
30
|
+
require('@bigbinary/neeto-editor-frontend/utils');
|
|
31
31
|
require('yup');
|
|
32
32
|
|
|
33
33
|
|
package/dist/cjs/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var Approvals = require('./Approvals.js');
|
|
4
4
|
var Form = require('./Form.js');
|
|
5
5
|
var Public = require('./Public.js');
|
|
6
|
-
var RequestDetailsPane = require('../index-
|
|
6
|
+
var RequestDetailsPane = require('../index-D8MZXpK9.js');
|
|
7
7
|
require('@babel/runtime/helpers/defineProperty');
|
|
8
8
|
require('@babel/runtime/helpers/slicedToArray');
|
|
9
9
|
require('react');
|
|
@@ -26,14 +26,14 @@ require('react-i18next');
|
|
|
26
26
|
require('../useRequestsApi-DO-oEAzQ.js');
|
|
27
27
|
require('@bigbinary/neeto-molecules/DateFormat');
|
|
28
28
|
require('@bigbinary/neetoui/Tag');
|
|
29
|
-
require('../constants-
|
|
30
|
-
require('@bigbinary/neeto-editor/utils');
|
|
29
|
+
require('../constants-DIOzO1GT.js');
|
|
30
|
+
require('@bigbinary/neeto-editor-frontend/utils');
|
|
31
31
|
require('yup');
|
|
32
32
|
require('react/jsx-runtime');
|
|
33
33
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
34
34
|
require('@bigbinary/neeto-molecules/PageLoader');
|
|
35
35
|
require('@bigbinary/neetoui/Alert');
|
|
36
|
-
require('../useTemplatesApi-
|
|
36
|
+
require('../useTemplatesApi-Ba1i3rkm.js');
|
|
37
37
|
require('@bigbinary/neeto-commons-frontend/utils');
|
|
38
38
|
require('@bigbinary/neetoui/Pane');
|
|
39
39
|
require('@bigbinary/neetoui/Typography');
|
|
@@ -43,8 +43,8 @@ require('formik');
|
|
|
43
43
|
require('@bigbinary/neeto-molecules/ToggleFeatureCard');
|
|
44
44
|
require('@bigbinary/neetoui/formik/Input');
|
|
45
45
|
require('@bigbinary/neetoui/formik/Textarea');
|
|
46
|
-
require('@bigbinary/neeto-editor/FormikEditor');
|
|
47
|
-
require('@bigbinary/neeto-editor/EditorContent');
|
|
46
|
+
require('@bigbinary/neeto-editor-frontend/FormikEditor');
|
|
47
|
+
require('@bigbinary/neeto-editor-frontend/EditorContent');
|
|
48
48
|
require('@bigbinary/neetoui/Label');
|
|
49
49
|
require('@bigbinary/neeto-molecules/MoreDropdown');
|
|
50
50
|
require('@bigbinary/neeto-molecules/Header');
|
package/dist/cjs/v2/Approvals.js
CHANGED
|
@@ -10,25 +10,25 @@ var useViewsApi = require('../../useViewsApi-B1OpZkLp.js');
|
|
|
10
10
|
var neetoAtoms = require('@bigbinary/neeto-atoms');
|
|
11
11
|
var i18next = require('i18next');
|
|
12
12
|
var constants$1 = require('@bigbinary/neeto-commons-frontend/v2/constants');
|
|
13
|
+
var lucideReact = require('lucide-react');
|
|
13
14
|
var neetoCist = require('@bigbinary/neeto-cist');
|
|
14
|
-
var TableWrapper = require('@bigbinary/neeto-molecules/v2/TableWrapper');
|
|
15
15
|
var ramda = require('ramda');
|
|
16
16
|
var reactI18next = require('react-i18next');
|
|
17
17
|
var useRequestsApi = require('../../useRequestsApi-DO-oEAzQ.js');
|
|
18
18
|
var DateFormat = require('@bigbinary/neeto-molecules/v2/DateFormat');
|
|
19
|
-
var constants = require('../../constants-
|
|
19
|
+
var constants = require('../../constants-BStDLPVr.js');
|
|
20
20
|
var jsxRuntime = require('react/jsx-runtime');
|
|
21
|
-
var v2_RequestDetailsPane = require('../../index-
|
|
21
|
+
var v2_RequestDetailsPane = require('../../index-DOxS3L2E.js');
|
|
22
22
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
23
23
|
var PageLoader = require('@bigbinary/neeto-molecules/v2/PageLoader');
|
|
24
|
-
var useTemplatesApi = require('../../useTemplatesApi-
|
|
24
|
+
var useTemplatesApi = require('../../useTemplatesApi-Ba1i3rkm.js');
|
|
25
25
|
var formik$1 = require('@bigbinary/neeto-atoms/formik');
|
|
26
|
-
var utils = require('@bigbinary/neeto-editor/v2/utils');
|
|
26
|
+
var utils = require('@bigbinary/neeto-editor-frontend/v2/utils');
|
|
27
27
|
var yup = require('yup');
|
|
28
28
|
var formik = require('formik');
|
|
29
29
|
var ToggleFeatureCard = require('@bigbinary/neeto-molecules/v2/ToggleFeatureCard');
|
|
30
|
-
var FormikEditor = require('@bigbinary/neeto-editor/v2/FormikEditor');
|
|
31
|
-
var EditorContent = require('@bigbinary/neeto-editor/v2/EditorContent');
|
|
30
|
+
var FormikEditor = require('@bigbinary/neeto-editor-frontend/v2/FormikEditor');
|
|
31
|
+
var EditorContent = require('@bigbinary/neeto-editor-frontend/v2/EditorContent');
|
|
32
32
|
var MoreDropdown = require('@bigbinary/neeto-molecules/v2/MoreDropdown');
|
|
33
33
|
var NeetoHeader = require('@bigbinary/neeto-molecules/v2/Header');
|
|
34
34
|
require('@bigbinary/neeto-commons-frontend/constants');
|
|
@@ -41,8 +41,8 @@ require('@bigbinary/neeto-commons-frontend/utils/timezonePlugin');
|
|
|
41
41
|
require('dayjs/plugin/utc');
|
|
42
42
|
require('@bigbinary/neeto-commons-frontend/utils');
|
|
43
43
|
require('@bigbinary/neeto-commons-frontend/v2/initializers');
|
|
44
|
-
require('../../constants-
|
|
45
|
-
require('@bigbinary/neeto-editor/utils');
|
|
44
|
+
require('../../constants-DIOzO1GT.js');
|
|
45
|
+
require('@bigbinary/neeto-editor-frontend/utils');
|
|
46
46
|
|
|
47
47
|
function _interopNamespaceDefault(e) {
|
|
48
48
|
var n = Object.create(null);
|
|
@@ -171,27 +171,25 @@ var History = function History(_ref) {
|
|
|
171
171
|
}));
|
|
172
172
|
};
|
|
173
173
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
174
|
-
children: [!ramda.isEmpty(approvalHistories) ? /*#__PURE__*/jsxRuntime.jsx(
|
|
174
|
+
children: [!ramda.isEmpty(approvalHistories) ? /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.DataTable, {
|
|
175
|
+
totalCount: totalCount,
|
|
176
|
+
allowRowClick: true,
|
|
175
177
|
className: "mt-6",
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
},
|
|
188
|
-
onRowClick: function onRowClick(_, approvalDetails) {
|
|
189
|
-
return setApprovalDetails(approvalDetails);
|
|
190
|
-
}
|
|
191
|
-
})
|
|
178
|
+
columns: HISTORY_TABLE_COLUMNS,
|
|
179
|
+
currentPage: pageProperties.page,
|
|
180
|
+
data: approvalHistories,
|
|
181
|
+
pageSize: pageProperties.pageSize,
|
|
182
|
+
onPageChange: handlePageChange,
|
|
183
|
+
onSort: function onSort(sorter) {
|
|
184
|
+
return handleTableChange(sorter !== null && sorter !== void 0 ? sorter : {});
|
|
185
|
+
},
|
|
186
|
+
onRowClick: function onRowClick(_, approvalDetails) {
|
|
187
|
+
return setApprovalDetails(approvalDetails);
|
|
188
|
+
}
|
|
192
189
|
}) : /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
193
190
|
className: "flex h-full w-full flex-grow items-center justify-center",
|
|
194
191
|
children: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Empty, {
|
|
192
|
+
icon: lucideReact.History,
|
|
195
193
|
helpText: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
|
|
196
194
|
i18nKey: "neetoApprovals.common.noDataHelpTextLearnMore",
|
|
197
195
|
values: {
|
|
@@ -266,27 +264,25 @@ var PendingRequests = function PendingRequests(_ref) {
|
|
|
266
264
|
}));
|
|
267
265
|
};
|
|
268
266
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
269
|
-
children: [!ramda.isEmpty(pendingRequests) ? /*#__PURE__*/jsxRuntime.jsx(
|
|
267
|
+
children: [!ramda.isEmpty(pendingRequests) ? /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.DataTable, {
|
|
268
|
+
totalCount: totalCount,
|
|
269
|
+
allowRowClick: true,
|
|
270
270
|
className: "mt-6",
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
},
|
|
283
|
-
onRowClick: function onRowClick(_, approvalDetails) {
|
|
284
|
-
return setApprovalDetails(approvalDetails);
|
|
285
|
-
}
|
|
286
|
-
})
|
|
271
|
+
columns: PENDING_TABLE_COLUMNS,
|
|
272
|
+
currentPage: pageProperties.page,
|
|
273
|
+
data: pendingRequests,
|
|
274
|
+
pageSize: pageProperties.pageSize,
|
|
275
|
+
onPageChange: handlePageChange,
|
|
276
|
+
onSort: function onSort(sorter) {
|
|
277
|
+
return handleTableChange(sorter !== null && sorter !== void 0 ? sorter : {});
|
|
278
|
+
},
|
|
279
|
+
onRowClick: function onRowClick(_, approvalDetails) {
|
|
280
|
+
return setApprovalDetails(approvalDetails);
|
|
281
|
+
}
|
|
287
282
|
}) : /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
288
283
|
className: "flex h-full w-full flex-grow items-center justify-center",
|
|
289
284
|
children: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Empty, {
|
|
285
|
+
icon: lucideReact.FileClock,
|
|
290
286
|
helpText: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
|
|
291
287
|
i18nKey: "neetoApprovals.common.noDataHelpTextLearnMore",
|
|
292
288
|
components: {
|
|
@@ -416,11 +412,11 @@ var Form = function Form(_ref) {
|
|
|
416
412
|
onClose: onClose,
|
|
417
413
|
size: "large",
|
|
418
414
|
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Sheet.Header, {
|
|
419
|
-
children: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.
|
|
420
|
-
variant: "h2",
|
|
415
|
+
children: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Sheet.Title, {
|
|
421
416
|
children: header
|
|
422
417
|
})
|
|
423
418
|
}), /*#__PURE__*/jsxRuntime.jsxs(formik$1.Form, {
|
|
419
|
+
className: "flex min-h-0 flex-1 flex-col",
|
|
424
420
|
formikProps: {
|
|
425
421
|
enableReinitialize: true,
|
|
426
422
|
initialValues: neetoCist.isPresent(initialData) ? initialData : TEMPLATE_FORM_INITIAL_VALUES,
|
|
@@ -547,8 +543,7 @@ var TemplateDetails = function TemplateDetails(_ref) {
|
|
|
547
543
|
onClose: onClose,
|
|
548
544
|
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Sheet.Header, {
|
|
549
545
|
className: "space-y-2",
|
|
550
|
-
children: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.
|
|
551
|
-
variant: "h2",
|
|
546
|
+
children: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Sheet.Title, {
|
|
552
547
|
children: t("neetoApprovals.common.templateDetails")
|
|
553
548
|
})
|
|
554
549
|
}), /*#__PURE__*/jsxRuntime.jsxs(neetoAtoms.Sheet.Body, {
|
|
@@ -640,27 +635,25 @@ var Table = function Table(_ref) {
|
|
|
640
635
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
641
636
|
className: "flex h-full w-full flex-grow items-center justify-center",
|
|
642
637
|
children: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Empty, _objectSpread$3({
|
|
638
|
+
icon: lucideReact.LayoutTemplate,
|
|
643
639
|
title: t("neetoApprovals.common.notFound_", {
|
|
644
640
|
what: entity
|
|
645
641
|
})
|
|
646
642
|
}, !filters.searchTerm && noDataProps))
|
|
647
643
|
});
|
|
648
644
|
}
|
|
649
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
645
|
+
return /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.DataTable, {
|
|
646
|
+
columns: columns,
|
|
647
|
+
onRowClick: onRowClick,
|
|
648
|
+
totalCount: totalCount,
|
|
650
649
|
className: "mt-6",
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
pageSize: pageProperties.pageSize,
|
|
659
|
-
onPageChange: handlePageChange,
|
|
660
|
-
onSort: function onSort(sorter) {
|
|
661
|
-
return handleSort(sorter !== null && sorter !== void 0 ? sorter : {});
|
|
662
|
-
}
|
|
663
|
-
})
|
|
650
|
+
currentPage: pageProperties.page,
|
|
651
|
+
data: rowData,
|
|
652
|
+
pageSize: pageProperties.pageSize,
|
|
653
|
+
onPageChange: handlePageChange,
|
|
654
|
+
onSort: function onSort(sorter) {
|
|
655
|
+
return handleSort(sorter !== null && sorter !== void 0 ? sorter : {});
|
|
656
|
+
}
|
|
664
657
|
});
|
|
665
658
|
};
|
|
666
659
|
|
|
@@ -686,6 +679,7 @@ var columnData = function columnData(_ref) {
|
|
|
686
679
|
className: "me-1 my-1"
|
|
687
680
|
},
|
|
688
681
|
dropdownProps: {
|
|
682
|
+
className: "w-max",
|
|
689
683
|
onClick: function onClick(e) {
|
|
690
684
|
return e.stopPropagation();
|
|
691
685
|
}
|
|
@@ -945,6 +939,7 @@ var Tab = function Tab(_ref) {
|
|
|
945
939
|
_useFetchViews$data2$ = _useFetchViews$data2.views,
|
|
946
940
|
views = _useFetchViews$data2$ === void 0 ? {} : _useFetchViews$data2$;
|
|
947
941
|
return /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Tabs, {
|
|
942
|
+
size: "lg",
|
|
948
943
|
value: activeFilter,
|
|
949
944
|
onValueChange: function onValueChange(filter) {
|
|
950
945
|
return history.push(getRoute(filter));
|
|
@@ -978,6 +973,7 @@ var Approvals = function Approvals(_ref) {
|
|
|
978
973
|
setIsNewTemplatePaneOpen: setIsNewTemplatePaneOpen
|
|
979
974
|
});
|
|
980
975
|
return /*#__PURE__*/jsxRuntime.jsxs(Container, {
|
|
976
|
+
className: "pb-10",
|
|
981
977
|
children: [/*#__PURE__*/jsxRuntime.jsx(Header, _objectSpread({}, _objectSpread({
|
|
982
978
|
appRoutes: appRoutes
|
|
983
979
|
}, config))), /*#__PURE__*/jsxRuntime.jsx(Tab, {
|