@bigbinary/neetoui 8.2.3 → 8.2.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/ActionDropdown.js +2 -2
- package/dist/Alert.js +3 -3
- package/dist/Checkbox.js +2 -2
- package/dist/ColorPicker.js +2 -2
- package/dist/DatePicker.js +6 -6
- package/dist/Dropdown.js +2 -2
- package/dist/{HeaderCellMenu-fa00cbd9.js → HeaderCellMenu-c806e4d0.js} +2 -2
- package/dist/{HeaderCellMenu-fa00cbd9.js.map → HeaderCellMenu-c806e4d0.js.map} +1 -1
- package/dist/Input.js +2 -2
- package/dist/Modal.js +3 -3
- package/dist/MultiEmailInput.js +2 -2
- package/dist/Pagination.js +2 -2
- package/dist/Pane.js +3 -3
- package/dist/Radio.js +2 -2
- package/dist/Select.js +2 -2
- package/dist/Sidebar.js +2 -2
- package/dist/Slider.js +2 -2
- package/dist/Switch.js +2 -2
- package/dist/Table.js +12 -6
- package/dist/Table.js.map +1 -1
- package/dist/{Textarea-b14bae86.js → Textarea-d9a69b9b.js} +2 -2
- package/dist/{Textarea-b14bae86.js.map → Textarea-d9a69b9b.js.map} +1 -1
- package/dist/Textarea.js +3 -3
- package/dist/TimePicker.js +6 -6
- package/dist/Toastr.js +2 -2
- package/dist/TranslationProvider.js +1 -1
- package/dist/Tree.js +2 -2
- package/dist/TreeSelect.js +2 -2
- package/dist/cjs/ActionDropdown.js +2 -2
- package/dist/cjs/Alert.js +3 -3
- package/dist/cjs/Checkbox.js +2 -2
- package/dist/cjs/ColorPicker.js +2 -2
- package/dist/cjs/DatePicker.js +6 -6
- package/dist/cjs/Dropdown.js +2 -2
- package/dist/cjs/{HeaderCellMenu-27b494da.js → HeaderCellMenu-e9883f63.js} +2 -2
- package/dist/cjs/{HeaderCellMenu-27b494da.js.map → HeaderCellMenu-e9883f63.js.map} +1 -1
- package/dist/cjs/Input.js +2 -2
- package/dist/cjs/Modal.js +3 -3
- package/dist/cjs/MultiEmailInput.js +2 -2
- package/dist/cjs/Pagination.js +2 -2
- package/dist/cjs/Pane.js +3 -3
- package/dist/cjs/Radio.js +2 -2
- package/dist/cjs/Select.js +2 -2
- package/dist/cjs/Sidebar.js +2 -2
- package/dist/cjs/Slider.js +2 -2
- package/dist/cjs/Switch.js +2 -2
- package/dist/cjs/Table.js +12 -6
- package/dist/cjs/Table.js.map +1 -1
- package/dist/cjs/{Textarea-eaf8b986.js → Textarea-a5fa88e6.js} +2 -2
- package/dist/cjs/{Textarea-eaf8b986.js.map → Textarea-a5fa88e6.js.map} +1 -1
- package/dist/cjs/Textarea.js +3 -3
- package/dist/cjs/TimePicker.js +6 -6
- package/dist/cjs/Toastr.js +2 -2
- package/dist/cjs/TranslationProvider.js +1 -1
- package/dist/cjs/Tree.js +2 -2
- package/dist/cjs/TreeSelect.js +2 -2
- package/dist/cjs/{en-c1fe180c.js → en-80d0fbff.js} +3 -2
- package/dist/cjs/en-80d0fbff.js.map +1 -0
- package/dist/cjs/formik/ActionBlock.js +2 -2
- package/dist/cjs/formik/BlockNavigation.js +76 -25
- package/dist/cjs/formik/BlockNavigation.js.map +1 -1
- package/dist/cjs/formik/Checkbox.js +2 -2
- package/dist/cjs/formik/Input.js +2 -2
- package/dist/cjs/formik/MultiEmailInput.js +2 -2
- package/dist/cjs/formik/Radio.js +2 -2
- package/dist/cjs/formik/Select.js +2 -2
- package/dist/cjs/formik/Slider.js +2 -2
- package/dist/cjs/formik/Switch.js +2 -2
- package/dist/cjs/formik/Textarea.js +3 -3
- package/dist/cjs/formik/TreeSelect.js +2 -2
- package/dist/cjs/formik/index.js +6 -7
- package/dist/cjs/formik/index.js.map +1 -1
- package/dist/cjs/{index-7a8fe498.js → index-0f5141e0.js} +2 -2
- package/dist/cjs/{index-7a8fe498.js.map → index-0f5141e0.js.map} +1 -1
- package/dist/cjs/{index-f86bb638.js → index-5622361e.js} +4 -4
- package/dist/cjs/{index-f86bb638.js.map → index-5622361e.js.map} +1 -1
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/layouts.js +2 -2
- package/dist/cjs/{useOverlayManager-763ee731.js → useOverlayManager-d4108cf8.js} +2 -2
- package/dist/cjs/{useOverlayManager-763ee731.js.map → useOverlayManager-d4108cf8.js.map} +1 -1
- package/dist/{en-ffa387d9.js → en-41f5c641.js} +3 -2
- package/dist/en-41f5c641.js.map +1 -0
- package/dist/formik/ActionBlock.js +2 -2
- package/dist/formik/BlockNavigation.js +76 -25
- package/dist/formik/BlockNavigation.js.map +1 -1
- package/dist/formik/Checkbox.js +2 -2
- package/dist/formik/Input.js +2 -2
- package/dist/formik/MultiEmailInput.js +2 -2
- package/dist/formik/Radio.js +2 -2
- package/dist/formik/Select.js +2 -2
- package/dist/formik/Slider.js +2 -2
- package/dist/formik/Switch.js +2 -2
- package/dist/formik/Textarea.js +3 -3
- package/dist/formik/TreeSelect.js +2 -2
- package/dist/formik/index.js +6 -7
- package/dist/formik/index.js.map +1 -1
- package/dist/{index-b467bee0.js → index-52566c57.js} +4 -4
- package/dist/{index-b467bee0.js.map → index-52566c57.js.map} +1 -1
- package/dist/{index-9040fef3.js → index-abadd6e9.js} +2 -2
- package/dist/{index-9040fef3.js.map → index-abadd6e9.js.map} +1 -1
- package/dist/index.js +6 -6
- package/dist/layouts.js +2 -2
- package/dist/{useOverlayManager-5be3be10.js → useOverlayManager-593daea1.js} +2 -2
- package/dist/{useOverlayManager-5be3be10.js.map → useOverlayManager-593daea1.js.map} +1 -1
- package/package.json +1 -1
- package/src/translations/en.json +2 -1
- package/dist/cjs/en-c1fe180c.js.map +0 -1
- package/dist/en-ffa387d9.js.map +0 -1
|
@@ -4,7 +4,7 @@ import classnames from 'classnames';
|
|
|
4
4
|
import { useFormikContext } from 'formik';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import Button from '../Button.js';
|
|
7
|
-
import { g as getLocale } from '../index-
|
|
7
|
+
import { g as getLocale } from '../index-abadd6e9.js';
|
|
8
8
|
import FormikButton from './Button.js';
|
|
9
9
|
import '@babel/runtime/helpers/defineProperty';
|
|
10
10
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
@@ -24,7 +24,7 @@ import 'dayjs/plugin/weekOfYear';
|
|
|
24
24
|
import '@bigbinary/neeto-cist';
|
|
25
25
|
import 'qs';
|
|
26
26
|
import 'ramda';
|
|
27
|
-
import '../en-
|
|
27
|
+
import '../en-41f5c641.js';
|
|
28
28
|
|
|
29
29
|
var POSITIONS = {
|
|
30
30
|
left: "left",
|
|
@@ -2,40 +2,39 @@ import _extends from '@babel/runtime/helpers/extends';
|
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
4
4
|
import { useFormikContext } from 'formik';
|
|
5
|
-
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import Alert from '../Alert.js';
|
|
7
5
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
8
6
|
import { useHistory } from 'react-router-dom';
|
|
9
7
|
import '@bigbinary/neeto-hotkeys';
|
|
10
8
|
import '../overlayManager.js';
|
|
11
|
-
import { g as getLocale } from '../index-
|
|
9
|
+
import { g as getLocale } from '../index-abadd6e9.js';
|
|
12
10
|
import '@babel/runtime/helpers/defineProperty';
|
|
13
11
|
import 'qs';
|
|
14
|
-
import '
|
|
12
|
+
import { useTranslation } from 'react-i18next';
|
|
13
|
+
import Button from '../Button.js';
|
|
14
|
+
import Modal from '../Modal.js';
|
|
15
|
+
import Typography from '../Typography.js';
|
|
16
|
+
import '@babel/runtime/helpers/classCallCheck';
|
|
17
|
+
import '@babel/runtime/helpers/createClass';
|
|
18
|
+
import 'dayjs';
|
|
19
|
+
import 'dayjs/plugin/localeData';
|
|
20
|
+
import 'dayjs/plugin/utc';
|
|
21
|
+
import 'dayjs/plugin/weekday';
|
|
22
|
+
import 'dayjs/plugin/weekOfYear';
|
|
23
|
+
import '@bigbinary/neeto-cist';
|
|
24
|
+
import 'ramda';
|
|
25
|
+
import '../en-41f5c641.js';
|
|
15
26
|
import 'classnames';
|
|
16
27
|
import '../Spinner.js';
|
|
17
28
|
import '../Tooltip.js';
|
|
18
29
|
import '@tippyjs/react';
|
|
19
30
|
import 'tippy.js';
|
|
20
|
-
import '../Modal.js';
|
|
21
31
|
import '@bigbinary/neeto-icons';
|
|
22
|
-
import '../useOverlayManager-
|
|
32
|
+
import '../useOverlayManager-593daea1.js';
|
|
23
33
|
import '@babel/runtime/helpers/esm/extends';
|
|
24
34
|
import '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';
|
|
25
35
|
import '@babel/runtime/helpers/esm/inheritsLoose';
|
|
26
36
|
import 'react-dom';
|
|
27
37
|
import '@babel/runtime/helpers/esm/assertThisInitialized';
|
|
28
|
-
import 'ramda';
|
|
29
|
-
import '../Typography.js';
|
|
30
|
-
import '@babel/runtime/helpers/classCallCheck';
|
|
31
|
-
import '@babel/runtime/helpers/createClass';
|
|
32
|
-
import 'dayjs';
|
|
33
|
-
import 'dayjs/plugin/localeData';
|
|
34
|
-
import 'dayjs/plugin/utc';
|
|
35
|
-
import 'dayjs/plugin/weekday';
|
|
36
|
-
import 'dayjs/plugin/weekOfYear';
|
|
37
|
-
import '@bigbinary/neeto-cist';
|
|
38
|
-
import '../en-ffa387d9.js';
|
|
39
38
|
|
|
40
39
|
var useNavPrompt = function useNavPrompt(_ref) {
|
|
41
40
|
var _ref$shouldBlock = _ref.shouldBlock,
|
|
@@ -101,14 +100,60 @@ var useNavPrompt = function useNavPrompt(_ref) {
|
|
|
101
100
|
};
|
|
102
101
|
};
|
|
103
102
|
|
|
103
|
+
/* eslint-disable @bigbinary/neeto/file-name-and-export-name-standards */
|
|
104
|
+
var Alert = function Alert(_ref) {
|
|
105
|
+
var _ref$isOpen = _ref.isOpen,
|
|
106
|
+
isOpen = _ref$isOpen === void 0 ? false : _ref$isOpen,
|
|
107
|
+
_ref$isSubmitting = _ref.isSubmitting,
|
|
108
|
+
isSubmitting = _ref$isSubmitting === void 0 ? false : _ref$isSubmitting,
|
|
109
|
+
onClose = _ref.onClose,
|
|
110
|
+
onSaveChanges = _ref.onSaveChanges,
|
|
111
|
+
onDiscardChanges = _ref.onDiscardChanges;
|
|
112
|
+
var _useTranslation = useTranslation(),
|
|
113
|
+
t = _useTranslation.t,
|
|
114
|
+
i18n = _useTranslation.i18n;
|
|
115
|
+
var saveChangesButtonRef = useRef(null);
|
|
116
|
+
var cancelButtonLabel = getLocale(i18n, t, "neetoui.blockNavigation.cancelButtonLabel");
|
|
117
|
+
var submitButtonLabel = getLocale(i18n, t, "neetoui.blockNavigation.submitButtonLabel");
|
|
118
|
+
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
119
|
+
isOpen: isOpen,
|
|
120
|
+
onClose: onClose,
|
|
121
|
+
closeButton: true,
|
|
122
|
+
closeOnEsc: true,
|
|
123
|
+
closeOnOutsideClick: true,
|
|
124
|
+
"data-cy": "alert-box",
|
|
125
|
+
initialFocusRef: saveChangesButtonRef,
|
|
126
|
+
size: "medium"
|
|
127
|
+
}, /*#__PURE__*/React__default.createElement(Modal.Header, null, /*#__PURE__*/React__default.createElement(Typography, {
|
|
128
|
+
"data-cy": "alert-title",
|
|
129
|
+
style: "h2"
|
|
130
|
+
}, getLocale(i18n, t, "neetoui.blockNavigation.alertTitle"))), /*#__PURE__*/React__default.createElement(Modal.Body, null, /*#__PURE__*/React__default.createElement(Typography, {
|
|
131
|
+
"data-cy": "alert-message",
|
|
132
|
+
lineHeight: "normal",
|
|
133
|
+
style: "body2"
|
|
134
|
+
}, getLocale(i18n, t, "neetoui.blockNavigation.alertMessage"))), /*#__PURE__*/React__default.createElement(Modal.Footer, {
|
|
135
|
+
className: "neeto-ui-gap-2 neeto-ui-flex neeto-ui-justify-end neeto-ui-items-center"
|
|
136
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
137
|
+
"data-cy": "alert-cancel-button",
|
|
138
|
+
label: cancelButtonLabel,
|
|
139
|
+
style: "danger",
|
|
140
|
+
onClick: onDiscardChanges
|
|
141
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
142
|
+
"data-cy": "alert-submit-button",
|
|
143
|
+
disabled: !isOpen,
|
|
144
|
+
label: submitButtonLabel,
|
|
145
|
+
loading: isSubmitting,
|
|
146
|
+
ref: saveChangesButtonRef,
|
|
147
|
+
style: "primary",
|
|
148
|
+
onClick: onSaveChanges
|
|
149
|
+
})));
|
|
150
|
+
};
|
|
151
|
+
|
|
104
152
|
var _excluded = ["isDirty"];
|
|
105
153
|
var BlockNavigation = function BlockNavigation(_ref) {
|
|
106
154
|
var _ref$isDirty = _ref.isDirty,
|
|
107
155
|
isDirty = _ref$isDirty === void 0 ? false : _ref$isDirty,
|
|
108
156
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
109
|
-
var _useTranslation = useTranslation(),
|
|
110
|
-
t = _useTranslation.t,
|
|
111
|
-
i18n = _useTranslation.i18n;
|
|
112
157
|
var formikContext = useFormikContext();
|
|
113
158
|
var shouldBlock = isDirty || Boolean(formikContext) && Boolean(formikContext.dirty);
|
|
114
159
|
var _useNavPrompt = useNavPrompt({
|
|
@@ -117,17 +162,23 @@ var BlockNavigation = function BlockNavigation(_ref) {
|
|
|
117
162
|
isBlocked = _useNavPrompt.isBlocked,
|
|
118
163
|
continueNavigation = _useNavPrompt.continueNavigation,
|
|
119
164
|
hidePrompt = _useNavPrompt.hidePrompt;
|
|
120
|
-
var
|
|
165
|
+
var handleDiscardChanges = function handleDiscardChanges() {
|
|
121
166
|
if (formikContext) formikContext.resetForm();
|
|
167
|
+
hidePrompt();
|
|
122
168
|
continueNavigation();
|
|
123
169
|
};
|
|
170
|
+
var handleSaveChanges = function handleSaveChanges() {
|
|
171
|
+
if (formikContext.isValid) {
|
|
172
|
+
formikContext.submitForm();
|
|
173
|
+
continueNavigation();
|
|
174
|
+
} else formikContext.setTouched(formikContext.errors);
|
|
175
|
+
hidePrompt();
|
|
176
|
+
};
|
|
124
177
|
return /*#__PURE__*/React__default.createElement(Alert, _extends({
|
|
125
178
|
isOpen: isBlocked,
|
|
126
|
-
message: getLocale(i18n, t, "neetoui.blockNavigation.alertMessage"),
|
|
127
|
-
title: getLocale(i18n, t, "neetoui.blockNavigation.alertTitle"),
|
|
128
|
-
submitButtonLabel: getLocale(i18n, t, "neetoui.blockNavigation.submitButtonLabel"),
|
|
129
179
|
onClose: hidePrompt,
|
|
130
|
-
|
|
180
|
+
onDiscardChanges: handleDiscardChanges,
|
|
181
|
+
onSaveChanges: handleSaveChanges
|
|
131
182
|
}, otherProps));
|
|
132
183
|
};
|
|
133
184
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockNavigation.js","sources":["../../src/hooks/useNavPrompt.js","../../src/formik/BlockNavigation.jsx"],"sourcesContent":["import { useEffect, useRef, useState } from \"react\";\n\nimport { useHistory } from \"react-router-dom\";\n\nconst useNavPrompt = ({ shouldBlock = true }) => {\n const [isBlocked, setIsBlocked] = useState(false);\n\n const history = useHistory();\n const unblockRef = useRef();\n const navRef = useRef();\n\n const continueNavigation = () => {\n if (isBlocked && unblockRef.current) {\n unblockRef.current?.();\n setIsBlocked(false);\n if (navRef.current) {\n const { action, transition } = navRef.current;\n handleNavigation(action, transition);\n }\n }\n };\n\n const hidePrompt = () => setIsBlocked(false);\n\n const handleNavigation = (action, transition) => {\n switch (action) {\n case \"PUSH\":\n history.push(transition);\n break;\n case \"REPLACE\":\n history.replace(transition);\n break;\n case \"POP\":\n history.goBack();\n break;\n }\n };\n\n useEffect(() => {\n if (shouldBlock) {\n unblockRef.current = history.block((transition, action) => {\n setIsBlocked(true);\n navRef.current = { transition, action };\n\n return false;\n });\n\n return () => {\n if (unblockRef.current) {\n unblockRef.current();\n }\n };\n }\n\n return undefined;\n }, [shouldBlock]);\n\n return { isBlocked, continueNavigation, hidePrompt };\n};\n\nexport default useNavPrompt;\n","/* eslint-disable @bigbinary/neeto/file-name-and-export-name-standards */\nimport React from \"react\";\n\nimport { useFormikContext } from \"formik\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\n\nimport Alert from \"components/Alert\";\nimport { useNavPrompt } from \"hooks\";\nimport { getLocale } from \"utils\";\n\nconst BlockNavigation = ({ isDirty = false, ...otherProps }) => {\n const { t, i18n } = useTranslation();\n const formikContext = useFormikContext();\n const shouldBlock =\n isDirty || (Boolean(formikContext) && Boolean(formikContext.dirty));\n\n const { isBlocked, continueNavigation, hidePrompt } = useNavPrompt({\n shouldBlock,\n });\n\n const continueAction = () => {\n if (formikContext) formikContext.resetForm();\n continueNavigation();\n };\n\n return (\n <Alert\n isOpen={isBlocked}\n message={getLocale(i18n, t, \"neetoui.blockNavigation.alertMessage\")}\n title={getLocale(i18n, t, \"neetoui.blockNavigation.alertTitle\")}\n submitButtonLabel={getLocale(\n i18n,\n t,\n \"neetoui.blockNavigation.submitButtonLabel\"\n )}\n onClose={hidePrompt}\n onSubmit={continueAction}\n {...otherProps}\n />\n );\n};\n\nBlockNavigation.propTypes = {\n isDirty: PropTypes.bool,\n message: PropTypes.string,\n title: PropTypes.string,\n submitButtonLabel: PropTypes.string,\n};\n\nexport default BlockNavigation;\n"],"names":["useNavPrompt","_ref","_ref$shouldBlock","shouldBlock","_useState","useState","_useState2","_slicedToArray","isBlocked","setIsBlocked","history","useHistory","unblockRef","useRef","navRef","continueNavigation","current","_unblockRef$current","call","_navRef$current","action","transition","handleNavigation","hidePrompt","push","replace","goBack","useEffect","block","undefined","BlockNavigation","_ref$isDirty","isDirty","otherProps","_objectWithoutProperties","_excluded","_useTranslation","useTranslation","t","i18n","formikContext","useFormikContext","Boolean","dirty","_useNavPrompt","continueAction","resetForm","React","createElement","Alert","_extends","isOpen","message","getLocale","title","submitButtonLabel","onClose","onSubmit"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EA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AA;AAAe,GAAA,EACrBZ,UAAU,CACd,CAAA,CAAA;AAEN;;;;"}
|
|
1
|
+
{"version":3,"file":"BlockNavigation.js","sources":["../../src/hooks/useNavPrompt.js","../../src/formik/BlockNavigation/Alert.jsx","../../src/formik/BlockNavigation/index.jsx"],"sourcesContent":["import { useEffect, useRef, useState } from \"react\";\n\nimport { useHistory } from \"react-router-dom\";\n\nconst useNavPrompt = ({ shouldBlock = true }) => {\n const [isBlocked, setIsBlocked] = useState(false);\n\n const history = useHistory();\n const unblockRef = useRef();\n const navRef = useRef();\n\n const continueNavigation = () => {\n if (isBlocked && unblockRef.current) {\n unblockRef.current?.();\n setIsBlocked(false);\n if (navRef.current) {\n const { action, transition } = navRef.current;\n handleNavigation(action, transition);\n }\n }\n };\n\n const hidePrompt = () => setIsBlocked(false);\n\n const handleNavigation = (action, transition) => {\n switch (action) {\n case \"PUSH\":\n history.push(transition);\n break;\n case \"REPLACE\":\n history.replace(transition);\n break;\n case \"POP\":\n history.goBack();\n break;\n }\n };\n\n useEffect(() => {\n if (shouldBlock) {\n unblockRef.current = history.block((transition, action) => {\n setIsBlocked(true);\n navRef.current = { transition, action };\n\n return false;\n });\n\n return () => {\n if (unblockRef.current) {\n unblockRef.current();\n }\n };\n }\n\n return undefined;\n }, [shouldBlock]);\n\n return { isBlocked, continueNavigation, hidePrompt };\n};\n\nexport default useNavPrompt;\n","/* eslint-disable @bigbinary/neeto/file-name-and-export-name-standards */\nimport React, { useRef } from \"react\";\n\nimport { useTranslation } from \"react-i18next\";\n\nimport Button from \"components/Button\";\nimport Modal from \"components/Modal\";\nimport Typography from \"components/Typography\";\nimport { getLocale } from \"utils\";\n\nconst Alert = ({\n isOpen = false,\n isSubmitting = false,\n onClose,\n onSaveChanges,\n onDiscardChanges,\n}) => {\n const { t, i18n } = useTranslation();\n\n const saveChangesButtonRef = useRef(null);\n\n const cancelButtonLabel = getLocale(\n i18n,\n t,\n \"neetoui.blockNavigation.cancelButtonLabel\"\n );\n\n const submitButtonLabel = getLocale(\n i18n,\n t,\n \"neetoui.blockNavigation.submitButtonLabel\"\n );\n\n return (\n <Modal\n {...{ isOpen, onClose }}\n closeButton\n closeOnEsc\n closeOnOutsideClick\n data-cy=\"alert-box\"\n initialFocusRef={saveChangesButtonRef}\n size=\"medium\"\n >\n <Modal.Header>\n <Typography data-cy=\"alert-title\" style=\"h2\">\n {getLocale(i18n, t, \"neetoui.blockNavigation.alertTitle\")}\n </Typography>\n </Modal.Header>\n <Modal.Body>\n <Typography data-cy=\"alert-message\" lineHeight=\"normal\" style=\"body2\">\n {getLocale(i18n, t, \"neetoui.blockNavigation.alertMessage\")}\n </Typography>\n </Modal.Body>\n <Modal.Footer className=\"neeto-ui-gap-2 neeto-ui-flex neeto-ui-justify-end neeto-ui-items-center\">\n <Button\n data-cy=\"alert-cancel-button\"\n label={cancelButtonLabel}\n style=\"danger\"\n onClick={onDiscardChanges}\n />\n <Button\n data-cy=\"alert-submit-button\"\n disabled={!isOpen}\n label={submitButtonLabel}\n loading={isSubmitting}\n ref={saveChangesButtonRef}\n style=\"primary\"\n onClick={onSaveChanges}\n />\n </Modal.Footer>\n </Modal>\n );\n};\n\nexport default Alert;\n","/* eslint-disable @bigbinary/neeto/file-name-and-export-name-standards */\nimport React from \"react\";\n\nimport { useFormikContext } from \"formik\";\nimport PropTypes from \"prop-types\";\n\nimport { useNavPrompt } from \"hooks\";\n\nimport Alert from \"./Alert\";\n\nconst BlockNavigation = ({ isDirty = false, ...otherProps }) => {\n const formikContext = useFormikContext();\n const shouldBlock =\n isDirty || (Boolean(formikContext) && Boolean(formikContext.dirty));\n\n const { isBlocked, continueNavigation, hidePrompt } = useNavPrompt({\n shouldBlock,\n });\n\n const handleDiscardChanges = () => {\n if (formikContext) formikContext.resetForm();\n hidePrompt();\n continueNavigation();\n };\n\n const handleSaveChanges = () => {\n if (formikContext.isValid) {\n formikContext.submitForm();\n continueNavigation();\n } else formikContext.setTouched(formikContext.errors);\n\n hidePrompt();\n };\n\n return (\n <Alert\n isOpen={isBlocked}\n onClose={hidePrompt}\n onDiscardChanges={handleDiscardChanges}\n onSaveChanges={handleSaveChanges}\n {...otherProps}\n />\n );\n};\n\nBlockNavigation.propTypes = {\n isDirty: PropTypes.bool,\n message: PropTypes.string,\n title: PropTypes.string,\n submitButtonLabel: PropTypes.string,\n};\n\nexport default BlockNavigation;\n"],"names":["useNavPrompt","_ref","_ref$shouldBlock","shouldBlock","_useState","useState","_useState2","_slicedToArray","isBlocked","setIsBlocked","history","useHistory","unblockRef","useRef","navRef","continueNavigation","current","_unblockRef$current","call","_navRef$current","action","transition","handleNavigation","hidePrompt","push","replace","goBack","useEffect","block","undefined","Alert","_ref$isOpen","isOpen","_ref$isSubmitting","isSubmitting","onClose","onSaveChanges","onDiscardChanges","_useTranslation","useTranslation","t","i18n","saveChangesButtonRef","cancelButtonLabel","getLocale","submitButtonLabel","React","createElement","Modal","closeButton","closeOnEsc","closeOnOutsideClick","initialFocusRef","size","Header","Typography","style","Body","lineHeight","Footer","className","Button","label","onClick","disabled","loading","ref","BlockNavigation","_ref$isDirty","isDirty","otherProps","_objectWithoutProperties","_excluded","formikContext","useFormikContext","Boolean","dirty","_useNavPrompt","handleDiscardChanges","resetForm","handleSaveChanges","isValid","submitForm","setTouched","errors","_extends"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAA+B;AAAA,EAAA,IAAAC,gBAAA,GAAAD,IAAA,CAAzBE,WAAW;AAAXA,IAAAA,WAAW,GAAAD,gBAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,gBAAA,CAAA;AACxC,EAAA,IAAAE,SAAA,GAAkCC,QAAQ,CAAC,KAAK,CAAC;IAAAC,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAA1CI,IAAAA,SAAS,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAEG,IAA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BAAkB;IAAEQ,UAAU,GAAAsD,aAAA,CAAVtD,UAAU,CAAA;AAIjD,EAAA,IAAMuD,oBAAoB,GAAG,SAAvBA,oBAAoBA,GAAS;AACjC,IAAA,IAAIL,aAAa,EAAEA,aAAa,CAACM,SAAS,EAAE,CAAA;AAC5CxD,IAAAA,UAAU,EAAE,CAAA;AACZR,IAAAA,kBAAkB,EAAE,CAAA;GACrB,CAAA;AAED,EAAA,IAAMiE,iBAAiB,GAAG,SAApBA,iBAAiBA,GAAS;IAC9B,IAAIP,aAAa,CAACQ,OAAO,EAAE;MACzBR,aAAa,CAACS,UAAU,EAAE,CAAA;AAC1BnE,MAAAA,kBAAkB,EAAE,CAAA;KACrB,MAAM0D,aAAa,CAACU,UAAU,CAACV,aAAa,CAACW,MAAM,CAAC,CAAA;AAErD7D,IAAAA,UAAU,EAAE,CAAA;GACb,CAAA;AAED,EAAA,oBACEuB,cAAA,CAAAC,aAAA,CAACjB,KAAK,EAAAuD,QAAA,CAAA;AACJrD,IAAAA,MAAM,EAAExB,SAAU;AAClB2B,IAAAA,OAAO,EAAEZ,UAAW;AACpBc,IAAAA,gBAAgB,EAAEyC,oBAAqB;AACvC1C,IAAAA,aAAa,EAAE4C,iBAAAA;AAAkB,GAAA,EAC7BV,UAAU,CACd,CAAA,CAAA;AAEN;;;;"}
|
package/dist/formik/Checkbox.js
CHANGED
|
@@ -13,7 +13,7 @@ import '@bigbinary/neeto-hotkeys';
|
|
|
13
13
|
import '../overlayManager.js';
|
|
14
14
|
import '@babel/runtime/helpers/classCallCheck';
|
|
15
15
|
import '@babel/runtime/helpers/createClass';
|
|
16
|
-
import '../index-
|
|
16
|
+
import '../index-abadd6e9.js';
|
|
17
17
|
import 'dayjs';
|
|
18
18
|
import 'dayjs/plugin/localeData';
|
|
19
19
|
import 'dayjs/plugin/utc';
|
|
@@ -21,7 +21,7 @@ import 'dayjs/plugin/weekday';
|
|
|
21
21
|
import 'dayjs/plugin/weekOfYear';
|
|
22
22
|
import '@bigbinary/neeto-cist';
|
|
23
23
|
import 'qs';
|
|
24
|
-
import '../en-
|
|
24
|
+
import '../en-41f5c641.js';
|
|
25
25
|
import '../Label.js';
|
|
26
26
|
import '@bigbinary/neeto-icons';
|
|
27
27
|
import '../Button.js';
|
package/dist/formik/Input.js
CHANGED
|
@@ -13,7 +13,7 @@ import '@bigbinary/neeto-hotkeys';
|
|
|
13
13
|
import '../overlayManager.js';
|
|
14
14
|
import '@babel/runtime/helpers/classCallCheck';
|
|
15
15
|
import '@babel/runtime/helpers/createClass';
|
|
16
|
-
import '../index-
|
|
16
|
+
import '../index-abadd6e9.js';
|
|
17
17
|
import 'dayjs';
|
|
18
18
|
import 'dayjs/plugin/localeData';
|
|
19
19
|
import 'dayjs/plugin/utc';
|
|
@@ -21,7 +21,7 @@ import 'dayjs/plugin/weekday';
|
|
|
21
21
|
import 'dayjs/plugin/weekOfYear';
|
|
22
22
|
import '@bigbinary/neeto-cist';
|
|
23
23
|
import 'qs';
|
|
24
|
-
import '../en-
|
|
24
|
+
import '../en-41f5c641.js';
|
|
25
25
|
import '../Label.js';
|
|
26
26
|
import '@bigbinary/neeto-icons';
|
|
27
27
|
import '../Button.js';
|
|
@@ -29,7 +29,7 @@ import '@babel/runtime/helpers/inherits';
|
|
|
29
29
|
import '@babel/runtime/helpers/createSuper';
|
|
30
30
|
import '@babel/runtime/helpers/taggedTemplateLiteral';
|
|
31
31
|
import '@babel/runtime/helpers/typeof';
|
|
32
|
-
import '../index-
|
|
32
|
+
import '../index-abadd6e9.js';
|
|
33
33
|
import 'dayjs';
|
|
34
34
|
import 'dayjs/plugin/localeData';
|
|
35
35
|
import 'dayjs/plugin/utc';
|
|
@@ -37,7 +37,7 @@ import 'dayjs/plugin/weekday';
|
|
|
37
37
|
import 'dayjs/plugin/weekOfYear';
|
|
38
38
|
import '@bigbinary/neeto-cist';
|
|
39
39
|
import 'qs';
|
|
40
|
-
import '../en-
|
|
40
|
+
import '../en-41f5c641.js';
|
|
41
41
|
import '@babel/runtime/helpers/toArray';
|
|
42
42
|
import '@bigbinary/neeto-icons';
|
|
43
43
|
import '../Tag.js';
|
package/dist/formik/Radio.js
CHANGED
|
@@ -22,7 +22,7 @@ import '@bigbinary/neeto-hotkeys';
|
|
|
22
22
|
import '../overlayManager.js';
|
|
23
23
|
import '@babel/runtime/helpers/classCallCheck';
|
|
24
24
|
import '@babel/runtime/helpers/createClass';
|
|
25
|
-
import '../index-
|
|
25
|
+
import '../index-abadd6e9.js';
|
|
26
26
|
import 'dayjs';
|
|
27
27
|
import 'dayjs/plugin/localeData';
|
|
28
28
|
import 'dayjs/plugin/utc';
|
|
@@ -30,7 +30,7 @@ import 'dayjs/plugin/weekday';
|
|
|
30
30
|
import 'dayjs/plugin/weekOfYear';
|
|
31
31
|
import '@bigbinary/neeto-cist';
|
|
32
32
|
import 'qs';
|
|
33
|
-
import '../en-
|
|
33
|
+
import '../en-41f5c641.js';
|
|
34
34
|
|
|
35
35
|
var _excluded = ["label", "name", "className"];
|
|
36
36
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
package/dist/formik/Select.js
CHANGED
|
@@ -35,14 +35,14 @@ import '../useId-c1d20bba.js';
|
|
|
35
35
|
import 'react-router-dom';
|
|
36
36
|
import '@bigbinary/neeto-hotkeys';
|
|
37
37
|
import '../overlayManager.js';
|
|
38
|
-
import '../index-
|
|
38
|
+
import '../index-abadd6e9.js';
|
|
39
39
|
import 'dayjs';
|
|
40
40
|
import 'dayjs/plugin/localeData';
|
|
41
41
|
import 'dayjs/plugin/utc';
|
|
42
42
|
import 'dayjs/plugin/weekday';
|
|
43
43
|
import 'dayjs/plugin/weekOfYear';
|
|
44
44
|
import 'qs';
|
|
45
|
-
import '../en-
|
|
45
|
+
import '../en-41f5c641.js';
|
|
46
46
|
import '../Label.js';
|
|
47
47
|
import '../Button.js';
|
|
48
48
|
import '../Spinner.js';
|
package/dist/formik/Slider.js
CHANGED
|
@@ -33,7 +33,7 @@ import '@bigbinary/neeto-hotkeys';
|
|
|
33
33
|
import '../overlayManager.js';
|
|
34
34
|
import '@babel/runtime/helpers/classCallCheck';
|
|
35
35
|
import '@babel/runtime/helpers/createClass';
|
|
36
|
-
import '../index-
|
|
36
|
+
import '../index-abadd6e9.js';
|
|
37
37
|
import 'dayjs';
|
|
38
38
|
import 'dayjs/plugin/localeData';
|
|
39
39
|
import 'dayjs/plugin/utc';
|
|
@@ -41,7 +41,7 @@ import 'dayjs/plugin/weekday';
|
|
|
41
41
|
import 'dayjs/plugin/weekOfYear';
|
|
42
42
|
import '@bigbinary/neeto-cist';
|
|
43
43
|
import 'qs';
|
|
44
|
-
import '../en-
|
|
44
|
+
import '../en-41f5c641.js';
|
|
45
45
|
|
|
46
46
|
var _excluded = ["name"];
|
|
47
47
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
package/dist/formik/Switch.js
CHANGED
|
@@ -14,7 +14,7 @@ import '@bigbinary/neeto-hotkeys';
|
|
|
14
14
|
import '../overlayManager.js';
|
|
15
15
|
import '@babel/runtime/helpers/classCallCheck';
|
|
16
16
|
import '@babel/runtime/helpers/createClass';
|
|
17
|
-
import '../index-
|
|
17
|
+
import '../index-abadd6e9.js';
|
|
18
18
|
import 'dayjs';
|
|
19
19
|
import 'dayjs/plugin/localeData';
|
|
20
20
|
import 'dayjs/plugin/utc';
|
|
@@ -22,7 +22,7 @@ import 'dayjs/plugin/weekday';
|
|
|
22
22
|
import 'dayjs/plugin/weekOfYear';
|
|
23
23
|
import '@bigbinary/neeto-cist';
|
|
24
24
|
import 'qs';
|
|
25
|
-
import '../en-
|
|
25
|
+
import '../en-41f5c641.js';
|
|
26
26
|
import '../Label.js';
|
|
27
27
|
import '../Button.js';
|
|
28
28
|
import '../Spinner.js';
|
package/dist/formik/Textarea.js
CHANGED
|
@@ -4,7 +4,7 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
|
|
|
4
4
|
import React__default, { forwardRef } from 'react';
|
|
5
5
|
import { Field, getIn } from 'formik';
|
|
6
6
|
import { dissoc } from 'ramda';
|
|
7
|
-
import { T as Textarea } from '../Textarea-
|
|
7
|
+
import { T as Textarea } from '../Textarea-d9a69b9b.js';
|
|
8
8
|
import '@babel/runtime/helpers/slicedToArray';
|
|
9
9
|
import 'classnames';
|
|
10
10
|
import '../useId-c1d20bba.js';
|
|
@@ -13,7 +13,7 @@ import '@bigbinary/neeto-hotkeys';
|
|
|
13
13
|
import '../overlayManager.js';
|
|
14
14
|
import '@babel/runtime/helpers/classCallCheck';
|
|
15
15
|
import '@babel/runtime/helpers/createClass';
|
|
16
|
-
import '../index-
|
|
16
|
+
import '../index-abadd6e9.js';
|
|
17
17
|
import 'dayjs';
|
|
18
18
|
import 'dayjs/plugin/localeData';
|
|
19
19
|
import 'dayjs/plugin/utc';
|
|
@@ -21,7 +21,7 @@ import 'dayjs/plugin/weekday';
|
|
|
21
21
|
import 'dayjs/plugin/weekOfYear';
|
|
22
22
|
import '@bigbinary/neeto-cist';
|
|
23
23
|
import 'qs';
|
|
24
|
-
import '../en-
|
|
24
|
+
import '../en-41f5c641.js';
|
|
25
25
|
import '../Label.js';
|
|
26
26
|
import '@bigbinary/neeto-icons';
|
|
27
27
|
import '../Button.js';
|
|
@@ -11,7 +11,7 @@ import '@babel/runtime/helpers/defineProperty';
|
|
|
11
11
|
import 'classnames';
|
|
12
12
|
import '@bigbinary/neeto-icons';
|
|
13
13
|
import 'react-i18next';
|
|
14
|
-
import '../index-
|
|
14
|
+
import '../index-abadd6e9.js';
|
|
15
15
|
import '@babel/runtime/helpers/classCallCheck';
|
|
16
16
|
import '@babel/runtime/helpers/createClass';
|
|
17
17
|
import 'dayjs';
|
|
@@ -21,7 +21,7 @@ import 'dayjs/plugin/weekday';
|
|
|
21
21
|
import 'dayjs/plugin/weekOfYear';
|
|
22
22
|
import '@bigbinary/neeto-cist';
|
|
23
23
|
import 'qs';
|
|
24
|
-
import '../en-
|
|
24
|
+
import '../en-41f5c641.js';
|
|
25
25
|
import '../constants.js';
|
|
26
26
|
import 'antd/locale/de_DE';
|
|
27
27
|
import 'antd/locale/en_US';
|
package/dist/formik/index.js
CHANGED
|
@@ -25,7 +25,7 @@ import '../Tooltip.js';
|
|
|
25
25
|
import '@babel/runtime/helpers/slicedToArray';
|
|
26
26
|
import '@tippyjs/react';
|
|
27
27
|
import 'tippy.js';
|
|
28
|
-
import '../index-
|
|
28
|
+
import '../index-abadd6e9.js';
|
|
29
29
|
import '@babel/runtime/helpers/classCallCheck';
|
|
30
30
|
import '@babel/runtime/helpers/createClass';
|
|
31
31
|
import 'dayjs';
|
|
@@ -36,18 +36,17 @@ import 'dayjs/plugin/weekOfYear';
|
|
|
36
36
|
import '@bigbinary/neeto-cist';
|
|
37
37
|
import 'qs';
|
|
38
38
|
import 'ramda';
|
|
39
|
-
import '../en-
|
|
40
|
-
import '
|
|
39
|
+
import '../en-41f5c641.js';
|
|
40
|
+
import '@bigbinary/neeto-hotkeys';
|
|
41
|
+
import '../overlayManager.js';
|
|
41
42
|
import '../Modal.js';
|
|
42
43
|
import '@bigbinary/neeto-icons';
|
|
43
|
-
import '../useOverlayManager-
|
|
44
|
+
import '../useOverlayManager-593daea1.js';
|
|
44
45
|
import '@babel/runtime/helpers/esm/extends';
|
|
45
46
|
import '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';
|
|
46
47
|
import '@babel/runtime/helpers/esm/inheritsLoose';
|
|
47
48
|
import 'react-dom';
|
|
48
49
|
import '@babel/runtime/helpers/esm/assertThisInitialized';
|
|
49
|
-
import '@bigbinary/neeto-hotkeys';
|
|
50
|
-
import '../overlayManager.js';
|
|
51
50
|
import '../Typography.js';
|
|
52
51
|
import '../Checkbox.js';
|
|
53
52
|
import '../useId-c1d20bba.js';
|
|
@@ -91,7 +90,7 @@ import 'antd/locale/nl_NL';
|
|
|
91
90
|
import 'antd/locale/pl_PL';
|
|
92
91
|
import 'antd/locale/pt_PT';
|
|
93
92
|
import '../Switch.js';
|
|
94
|
-
import '../Textarea-
|
|
93
|
+
import '../Textarea-d9a69b9b.js';
|
|
95
94
|
import '../TreeSelect.js';
|
|
96
95
|
import 'antd/lib/tree-select';
|
|
97
96
|
//# sourceMappingURL=index.js.map
|
package/dist/formik/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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -22,7 +22,7 @@ import '@babel/runtime/regenerator';
|
|
|
22
22
|
import 'react-colorful';
|
|
23
23
|
import './tinycolor-282c618c.js';
|
|
24
24
|
import './Dropdown.js';
|
|
25
|
-
import { A as ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES, g as getLocale, h as hyphenize, c as convertToDayjsObjects, n as noop } from './index-
|
|
25
|
+
import { A as ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES, g as getLocale, h as hyphenize, c as convertToDayjsObjects, n as noop } from './index-abadd6e9.js';
|
|
26
26
|
import _DatePicker from 'antd/lib/date-picker';
|
|
27
27
|
import dayjs from 'dayjs';
|
|
28
28
|
import { isPresent, isNotPresent } from '@bigbinary/neeto-cist';
|
|
@@ -34,7 +34,7 @@ import { u as useId } from './useId-c1d20bba.js';
|
|
|
34
34
|
import '@bigbinary/neeto-hotkeys';
|
|
35
35
|
import './overlayManager.js';
|
|
36
36
|
import 'qs';
|
|
37
|
-
import { u as useSyncedRef } from './Textarea-
|
|
37
|
+
import { u as useSyncedRef } from './Textarea-d9a69b9b.js';
|
|
38
38
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
39
39
|
import './Pane.js';
|
|
40
40
|
import './Popover.js';
|
|
@@ -67,7 +67,7 @@ import './Switch.js';
|
|
|
67
67
|
import './Tab.js';
|
|
68
68
|
import 'antd/lib/table';
|
|
69
69
|
import 'react-drag-listview';
|
|
70
|
-
import './HeaderCellMenu-
|
|
70
|
+
import './HeaderCellMenu-c806e4d0.js';
|
|
71
71
|
import 'react-resizable';
|
|
72
72
|
import Tag from './Tag.js';
|
|
73
73
|
import { ANTD_LOCALE } from './constants.js';
|
|
@@ -510,4 +510,4 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
510
510
|
TimePicker.displayName = "TimePicker";
|
|
511
511
|
|
|
512
512
|
export { DatePicker as D, TimePicker as T };
|
|
513
|
-
//# sourceMappingURL=index-
|
|
513
|
+
//# sourceMappingURL=index-52566c57.js.map
|