@bigbinary/neetoui 8.2.15 → 8.3.0-beta2
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 +3 -3
- package/dist/Alert.js +5 -5
- package/dist/Button.js +52 -5
- package/dist/Button.js.map +1 -1
- 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/{useRestoreScrollPosition-853e5957.js → HeaderCellMenu-85777f9d.js} +45 -55
- package/dist/HeaderCellMenu-85777f9d.js.map +1 -0
- package/dist/Input.js +2 -2
- package/dist/Label.js +1 -1
- package/dist/Modal.js +3 -3
- package/dist/MultiEmailInput.js +2 -2
- package/dist/NoData.js +2 -1
- package/dist/NoData.js.map +1 -1
- 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 +161 -258
- package/dist/Table.js.map +1 -1
- package/dist/{Textarea-ffce70c4.js → Textarea-67a30930.js} +2 -2
- package/dist/{Textarea-ffce70c4.js.map → Textarea-67a30930.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 +3 -3
- package/dist/cjs/Alert.js +5 -5
- package/dist/cjs/Button.js +52 -4
- package/dist/cjs/Button.js.map +1 -1
- 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/{useRestoreScrollPosition-dd1bbd92.js → HeaderCellMenu-2b1247bb.js} +44 -55
- package/dist/cjs/HeaderCellMenu-2b1247bb.js.map +1 -0
- package/dist/cjs/Input.js +2 -2
- package/dist/cjs/Label.js +1 -1
- package/dist/cjs/Modal.js +3 -3
- package/dist/cjs/MultiEmailInput.js +2 -2
- package/dist/cjs/NoData.js +2 -1
- package/dist/cjs/NoData.js.map +1 -1
- 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 +165 -262
- package/dist/cjs/Table.js.map +1 -1
- package/dist/cjs/{Textarea-19fb996b.js → Textarea-60f7ed17.js} +2 -2
- package/dist/cjs/{Textarea-19fb996b.js.map → Textarea-60f7ed17.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-2db2c836.js → en-80d0fbff.js} +2 -4
- package/dist/cjs/en-80d0fbff.js.map +1 -0
- package/dist/cjs/formik/ActionBlock.js +4 -3
- package/dist/cjs/formik/ActionBlock.js.map +1 -1
- package/dist/cjs/formik/BlockNavigation.js +4 -4
- package/dist/cjs/formik/Button.js +2 -1
- package/dist/cjs/formik/Button.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 -6
- package/dist/cjs/{index-13162f47.js → index-0f5141e0.js} +2 -15
- package/dist/cjs/index-0f5141e0.js.map +1 -0
- package/dist/cjs/{index-00bdc7be.js → index-9d108a41.js} +4 -4
- package/dist/cjs/{index-00bdc7be.js.map → index-9d108a41.js.map} +1 -1
- package/dist/cjs/index.css +1 -1
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/layouts.js +2 -2
- package/dist/cjs/{useOverlayManager-0e028745.js → useOverlayManager-d4108cf8.js} +2 -2
- package/dist/cjs/{useOverlayManager-0e028745.js.map → useOverlayManager-d4108cf8.js.map} +1 -1
- package/dist/{en-8006295a.js → en-41f5c641.js} +2 -4
- package/dist/en-41f5c641.js.map +1 -0
- package/dist/formik/ActionBlock.js +4 -3
- package/dist/formik/ActionBlock.js.map +1 -1
- package/dist/formik/BlockNavigation.js +4 -4
- package/dist/formik/Button.js +2 -1
- package/dist/formik/Button.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 -6
- package/dist/{index-4d4c3cde.js → index-abadd6e9.js} +3 -14
- package/dist/index-abadd6e9.js.map +1 -0
- package/dist/{index-8ff1994f.js → index-fd0e5fa5.js} +4 -4
- package/dist/{index-8ff1994f.js.map → index-fd0e5fa5.js.map} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +6 -6
- package/dist/layouts.js +2 -2
- package/dist/{useOverlayManager-b8edcf18.js → useOverlayManager-593daea1.js} +2 -2
- package/dist/{useOverlayManager-b8edcf18.js.map → useOverlayManager-593daea1.js.map} +1 -1
- package/package.json +1 -1
- package/src/translations/en.json +1 -3
- package/types/Button.d.ts +2 -0
- package/types/Table.d.ts +0 -1
- package/dist/cjs/en-2db2c836.js.map +0 -1
- package/dist/cjs/index-13162f47.js.map +0 -1
- package/dist/cjs/useRestoreScrollPosition-dd1bbd92.js.map +0 -1
- package/dist/en-8006295a.js.map +0 -1
- package/dist/index-4d4c3cde.js.map +0 -1
- package/dist/useRestoreScrollPosition-853e5957.js.map +0 -1
|
@@ -4,14 +4,15 @@ 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
|
+
import '@babel/runtime/helpers/slicedToArray';
|
|
10
11
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
12
|
+
import '@bigbinary/neeto-icons';
|
|
11
13
|
import 'react-router-dom';
|
|
12
14
|
import '../Spinner.js';
|
|
13
15
|
import '../Tooltip.js';
|
|
14
|
-
import '@babel/runtime/helpers/slicedToArray';
|
|
15
16
|
import '@tippyjs/react';
|
|
16
17
|
import 'tippy.js';
|
|
17
18
|
import '@babel/runtime/helpers/classCallCheck';
|
|
@@ -24,7 +25,7 @@ import 'dayjs/plugin/weekOfYear';
|
|
|
24
25
|
import '@bigbinary/neeto-cist';
|
|
25
26
|
import 'qs';
|
|
26
27
|
import 'ramda';
|
|
27
|
-
import '../en-
|
|
28
|
+
import '../en-41f5c641.js';
|
|
28
29
|
|
|
29
30
|
var POSITIONS = {
|
|
30
31
|
left: "left",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionBlock.js","sources":["../../src/formik/ActionBlock.jsx"],"sourcesContent":["/* eslint-disable @bigbinary/neeto/file-name-and-export-name-standards */\nimport React from \"react\";\n\nimport classnames from \"classnames\";\nimport { useFormikContext } from \"formik\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\n\nimport Button from \"components/Button\";\nimport { getLocale } from \"utils\";\n\nimport SubmitButton from \"./Button\";\n\nconst POSITIONS = { left: \"left\", right: \"right\" };\n\nconst ActionBlock = ({\n className,\n submitButtonProps,\n cancelButtonProps,\n isSubmitting: isFormSubmitting,\n position = POSITIONS.left,\n}) => {\n const { t, i18n } = useTranslation();\n\n const {\n handleReset,\n isSubmitting: isFormikSubmitting,\n dirty,\n } = useFormikContext();\n\n const isSubmitting = isFormSubmitting ?? isFormikSubmitting;\n const isButtonPositionRight = position === POSITIONS.right;\n\n const cancelButton = (\n <Button\n data-cy=\"cancel-button\"\n data-test-id=\"cancel-button\"\n disabled={isSubmitting}\n label={getLocale(i18n, t, \"neetoui.actionBlock.cancel\")}\n style=\"text\"\n onClick={handleReset}\n onMouseDown={e => e.preventDefault()}\n {...cancelButtonProps}\n />\n );\n\n const submitButton = (\n <SubmitButton\n data-cy=\"save-changes-button\"\n data-test-id=\"save-changes-button\"\n disabled={isSubmitting || !dirty}\n label={getLocale(i18n, t, \"neetoui.actionBlock.saveChanges\")}\n loading={isSubmitting}\n style=\"primary\"\n type=\"submit\"\n {...submitButtonProps}\n />\n );\n\n return (\n <div\n className={classnames([\n \"neeto-ui-action-block__wrapper\",\n { \"justify-end\": isButtonPositionRight },\n className,\n ])}\n >\n {isButtonPositionRight ? (\n <>\n {cancelButton}\n {submitButton}\n </>\n ) : (\n <>\n {submitButton}\n {cancelButton}\n </>\n )}\n </div>\n );\n};\n\nActionBlock.propTypes = {\n /**\n * To specify additional classnames for action block.\n */\n className: PropTypes.string,\n /**\n * To provide props for submit button.\n */\n submitButtonProps: PropTypes.object,\n /**\n * To provide props for cancel button.\n */\n cancelButtonProps: PropTypes.object,\n /**\n * Optional prop to specify the state of form submission, typically used to provide React Query mutation loading state. If not provided, Formik's `isSubmitting` prop is used.\n */\n isSubmitting: PropTypes.bool,\n /**\n * Determines the alignment of buttons in ActionBlock components. Set to `right` when using ActionBlock to right-align both buttons. Defaults to `left`, left-aligning both buttons.\n */\n position: PropTypes.oneOf(Object.values(POSITIONS)),\n};\n\nexport default ActionBlock;\n"],"names":["POSITIONS","left","right","ActionBlock","_ref","className","submitButtonProps","cancelButtonProps","isFormSubmitting","isSubmitting","_ref$position","position","_useTranslation","useTranslation","t","i18n","_useFormikContext","useFormikContext","handleReset","isFormikSubmitting","dirty","isButtonPositionRight","cancelButton","React","createElement","Button","_extends","disabled","label","getLocale","style","onClick","onMouseDown","e","preventDefault","submitButton","SubmitButton","loading","type","classnames","Fragment"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ActionBlock.js","sources":["../../src/formik/ActionBlock.jsx"],"sourcesContent":["/* eslint-disable @bigbinary/neeto/file-name-and-export-name-standards */\nimport React from \"react\";\n\nimport classnames from \"classnames\";\nimport { useFormikContext } from \"formik\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\n\nimport Button from \"components/Button\";\nimport { getLocale } from \"utils\";\n\nimport SubmitButton from \"./Button\";\n\nconst POSITIONS = { left: \"left\", right: \"right\" };\n\nconst ActionBlock = ({\n className,\n submitButtonProps,\n cancelButtonProps,\n isSubmitting: isFormSubmitting,\n position = POSITIONS.left,\n}) => {\n const { t, i18n } = useTranslation();\n\n const {\n handleReset,\n isSubmitting: isFormikSubmitting,\n dirty,\n } = useFormikContext();\n\n const isSubmitting = isFormSubmitting ?? isFormikSubmitting;\n const isButtonPositionRight = position === POSITIONS.right;\n\n const cancelButton = (\n <Button\n data-cy=\"cancel-button\"\n data-test-id=\"cancel-button\"\n disabled={isSubmitting}\n label={getLocale(i18n, t, \"neetoui.actionBlock.cancel\")}\n style=\"text\"\n onClick={handleReset}\n onMouseDown={e => e.preventDefault()}\n {...cancelButtonProps}\n />\n );\n\n const submitButton = (\n <SubmitButton\n data-cy=\"save-changes-button\"\n data-test-id=\"save-changes-button\"\n disabled={isSubmitting || !dirty}\n label={getLocale(i18n, t, \"neetoui.actionBlock.saveChanges\")}\n loading={isSubmitting}\n style=\"primary\"\n type=\"submit\"\n {...submitButtonProps}\n />\n );\n\n return (\n <div\n className={classnames([\n \"neeto-ui-action-block__wrapper\",\n { \"justify-end\": isButtonPositionRight },\n className,\n ])}\n >\n {isButtonPositionRight ? (\n <>\n {cancelButton}\n {submitButton}\n </>\n ) : (\n <>\n {submitButton}\n {cancelButton}\n </>\n )}\n </div>\n );\n};\n\nActionBlock.propTypes = {\n /**\n * To specify additional classnames for action block.\n */\n className: PropTypes.string,\n /**\n * To provide props for submit button.\n */\n submitButtonProps: PropTypes.object,\n /**\n * To provide props for cancel button.\n */\n cancelButtonProps: PropTypes.object,\n /**\n * Optional prop to specify the state of form submission, typically used to provide React Query mutation loading state. If not provided, Formik's `isSubmitting` prop is used.\n */\n isSubmitting: PropTypes.bool,\n /**\n * Determines the alignment of buttons in ActionBlock components. Set to `right` when using ActionBlock to right-align both buttons. Defaults to `left`, left-aligning both buttons.\n */\n position: PropTypes.oneOf(Object.values(POSITIONS)),\n};\n\nexport default ActionBlock;\n"],"names":["POSITIONS","left","right","ActionBlock","_ref","className","submitButtonProps","cancelButtonProps","isFormSubmitting","isSubmitting","_ref$position","position","_useTranslation","useTranslation","t","i18n","_useFormikContext","useFormikContext","handleReset","isFormikSubmitting","dirty","isButtonPositionRight","cancelButton","React","createElement","Button","_extends","disabled","label","getLocale","style","onClick","onMouseDown","e","preventDefault","submitButton","SubmitButton","loading","type","classnames","Fragment"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,IAAMA,SAAS,GAAG;AAAEC,EAAAA,IAAI,EAAE,MAAM;AAAEC,EAAAA,KAAK,EAAE,OAAA;AAAQ,CAAC,CAAA;AAElD,IAAMC,WAAW,GAAG,SAAdA,WAAWA,CAAAC,IAAA,EAMX;AAAA,EAAA,IALJC,SAAS,GAAAD,IAAA,CAATC,SAAS;IACTC,iBAAiB,GAAAF,IAAA,CAAjBE,iBAAiB;IACjBC,iBAAiB,GAAA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EAAAV,QAAA,CAAA;AACX,IAAA,SAAA,EAAQ,qBAAqB;AAC7B,IAAA,cAAA,EAAa,qBAAqB;AAClCC,IAAAA,QAAQ,EAAElB,YAAY,IAAI,CAACW,KAAM;IACjCQ,KAAK,EAAEC,SAAS,CAACd,IAAI,EAAED,CAAC,EAAE,iCAAiC,CAAE;AAC7DuB,IAAAA,OAAO,EAAE5B,YAAa;AACtBqB,IAAAA,KAAK,EAAC,SAAS;AACfQ,IAAAA,IAAI,EAAC,QAAA;AAAQ,GAAA,EACThC,iBAAiB,CAExB,CAAA,CAAA;EAED,oBACEiB,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACEnB,IAAAA,SAAS,EAAEkC,UAAU,CAAC,CACpB,gCAAgC,EAChC;AAAE,MAAA,aAAa,EAAElB,qBAAAA;KAAuB,EACxChB,SAAS,CACV,CAAA;GAEAgB,EAAAA,qBAAqB,gBACpBE,cAAA,CAAAC,aAAA,CAAAD,cAAA,CAAAiB,QAAA,EACGlB,IAAAA,EAAAA,YAAY,EACZa,YAAY,CACZ,gBAEHZ,cAAA,CAAAC,aAAA,CAAAD,cAAA,CAAAiB,QAAA,EAAA,IAAA,EACGL,YAAY,EACZb,YAAY,CAEhB,CACG,CAAA;AAEV;;;;"}
|
|
@@ -6,7 +6,7 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
6
6
|
import { useHistory } from 'react-router-dom';
|
|
7
7
|
import '@bigbinary/neeto-hotkeys';
|
|
8
8
|
import '../overlayManager.js';
|
|
9
|
-
import { g as getLocale } from '../index-
|
|
9
|
+
import { g as getLocale } from '../index-abadd6e9.js';
|
|
10
10
|
import '@babel/runtime/helpers/defineProperty';
|
|
11
11
|
import 'qs';
|
|
12
12
|
import { useTranslation } from 'react-i18next';
|
|
@@ -22,14 +22,14 @@ import 'dayjs/plugin/weekday';
|
|
|
22
22
|
import 'dayjs/plugin/weekOfYear';
|
|
23
23
|
import '@bigbinary/neeto-cist';
|
|
24
24
|
import 'ramda';
|
|
25
|
-
import '../en-
|
|
25
|
+
import '../en-41f5c641.js';
|
|
26
26
|
import 'classnames';
|
|
27
|
+
import '@bigbinary/neeto-icons';
|
|
27
28
|
import '../Spinner.js';
|
|
28
29
|
import '../Tooltip.js';
|
|
29
30
|
import '@tippyjs/react';
|
|
30
31
|
import 'tippy.js';
|
|
31
|
-
import '
|
|
32
|
-
import '../useOverlayManager-b8edcf18.js';
|
|
32
|
+
import '../useOverlayManager-593daea1.js';
|
|
33
33
|
import '@babel/runtime/helpers/esm/extends';
|
|
34
34
|
import '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';
|
|
35
35
|
import '@babel/runtime/helpers/esm/inheritsLoose';
|
package/dist/formik/Button.js
CHANGED
|
@@ -5,11 +5,12 @@ import { useFormikContext } from 'formik';
|
|
|
5
5
|
import { equals } from 'ramda';
|
|
6
6
|
import Button from '../Button.js';
|
|
7
7
|
import '@babel/runtime/helpers/defineProperty';
|
|
8
|
+
import '@babel/runtime/helpers/slicedToArray';
|
|
8
9
|
import 'classnames';
|
|
10
|
+
import '@bigbinary/neeto-icons';
|
|
9
11
|
import 'react-router-dom';
|
|
10
12
|
import '../Spinner.js';
|
|
11
13
|
import '../Tooltip.js';
|
|
12
|
-
import '@babel/runtime/helpers/slicedToArray';
|
|
13
14
|
import '@tippyjs/react';
|
|
14
15
|
import 'tippy.js';
|
|
15
16
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sources":["../../src/formik/Button.jsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport { useFormikContext } from \"formik\";\nimport { equals } from \"ramda\";\n\nimport Button from \"components/Button\";\n\nconst FormikButton = forwardRef(({ disabled, ...otherProps }, ref) => {\n const { handleSubmit, isSubmitting, values, initialValues, isValid } =\n useFormikContext();\n\n const isDisabled =\n disabled ?? (isSubmitting || equals(values, initialValues));\n\n return (\n <Button\n {...{ ref }}\n disabled={isDisabled}\n loading={isSubmitting && isValid}\n onClick={handleSubmit}\n {...otherProps}\n />\n );\n});\n\nFormikButton.displayName = \"FormikButton\";\n\nexport default FormikButton;\n"],"names":["FormikButton","forwardRef","_ref","ref","disabled","otherProps","_objectWithoutProperties","_excluded","_useFormikContext","useFormikContext","handleSubmit","isSubmitting","values","initialValues","isValid","isDisabled","equals","React","createElement","Button","_extends","loading","onClick","displayName"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.js","sources":["../../src/formik/Button.jsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport { useFormikContext } from \"formik\";\nimport { equals } from \"ramda\";\n\nimport Button from \"components/Button\";\n\nconst FormikButton = forwardRef(({ disabled, ...otherProps }, ref) => {\n const { handleSubmit, isSubmitting, values, initialValues, isValid } =\n useFormikContext();\n\n const isDisabled =\n disabled ?? (isSubmitting || equals(values, initialValues));\n\n return (\n <Button\n {...{ ref }}\n disabled={isDisabled}\n loading={isSubmitting && isValid}\n onClick={handleSubmit}\n {...otherProps}\n />\n );\n});\n\nFormikButton.displayName = \"FormikButton\";\n\nexport default FormikButton;\n"],"names":["FormikButton","forwardRef","_ref","ref","disabled","otherProps","_objectWithoutProperties","_excluded","_useFormikContext","useFormikContext","handleSubmit","isSubmitting","values","initialValues","isValid","isDisabled","equals","React","createElement","Button","_extends","loading","onClick","displayName"],"mappings":";;;;;;;;;;;;;;;;;AAOMA,IAAAA,YAAY,gBAAGC,UAAU,CAAC,UAAAC,IAAA,EAA8BC,GAAG,EAAK;AAAA,EAAA,IAAnCC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;AAAKC,IAAAA,UAAU,GAAAC,wBAAA,CAAAJ,IAAA,EAAAK,SAAA,CAAA,CAAA;EACxD,IAAAC,iBAAA,GACEC,gBAAgB,EAAE;IADZC,YAAY,GAAAF,iBAAA,CAAZE,YAAY;IAAEC,YAAY,GAAAH,iBAAA,CAAZG,YAAY;IAAEC,MAAM,GAAAJ,iBAAA,CAANI,MAAM;IAAEC,aAAa,GAAAL,iBAAA,CAAbK,aAAa;IAAEC,OAAO,GAAAN,iBAAA,CAAPM,OAAO,CAAA;AAGlE,EAAA,IAAMC,UAAU,GACdX,QAAQ,KAAA,IAAA,IAARA,QAAQ,KAARA,KAAAA,CAAAA,GAAAA,QAAQ,GAAKO,YAAY,IAAIK,MAAM,CAACJ,MAAM,EAAEC,aAAa,CAAE,CAAA;AAE7D,EAAA,oBACEI,cAAA,CAAAC,aAAA,CAACC,MAAM,EAAAC,QAAA,CAAA;AACCjB,IAAAA,GAAG,EAAHA,GAAG;AACTC,IAAAA,QAAQ,EAAEW,UAAW;IACrBM,OAAO,EAAEV,YAAY,IAAIG,OAAQ;AACjCQ,IAAAA,OAAO,EAAEZ,YAAAA;AAAa,GAAA,EAClBL,UAAU,CACd,CAAA,CAAA;AAEN,CAAC,EAAC;AAEFL,YAAY,CAACuB,WAAW,GAAG,cAAc;;;;"}
|
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-67a30930.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
|
@@ -18,14 +18,15 @@ import 'formik';
|
|
|
18
18
|
import 'react-i18next';
|
|
19
19
|
import '../Button.js';
|
|
20
20
|
import '@babel/runtime/helpers/defineProperty';
|
|
21
|
+
import '@babel/runtime/helpers/slicedToArray';
|
|
21
22
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
23
|
+
import '@bigbinary/neeto-icons';
|
|
22
24
|
import 'react-router-dom';
|
|
23
25
|
import '../Spinner.js';
|
|
24
26
|
import '../Tooltip.js';
|
|
25
|
-
import '@babel/runtime/helpers/slicedToArray';
|
|
26
27
|
import '@tippyjs/react';
|
|
27
28
|
import 'tippy.js';
|
|
28
|
-
import '../index-
|
|
29
|
+
import '../index-abadd6e9.js';
|
|
29
30
|
import '@babel/runtime/helpers/classCallCheck';
|
|
30
31
|
import '@babel/runtime/helpers/createClass';
|
|
31
32
|
import 'dayjs';
|
|
@@ -36,12 +37,11 @@ import 'dayjs/plugin/weekOfYear';
|
|
|
36
37
|
import '@bigbinary/neeto-cist';
|
|
37
38
|
import 'qs';
|
|
38
39
|
import 'ramda';
|
|
39
|
-
import '../en-
|
|
40
|
+
import '../en-41f5c641.js';
|
|
40
41
|
import '@bigbinary/neeto-hotkeys';
|
|
41
42
|
import '../overlayManager.js';
|
|
42
43
|
import '../Modal.js';
|
|
43
|
-
import '
|
|
44
|
-
import '../useOverlayManager-b8edcf18.js';
|
|
44
|
+
import '../useOverlayManager-593daea1.js';
|
|
45
45
|
import '@babel/runtime/helpers/esm/extends';
|
|
46
46
|
import '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';
|
|
47
47
|
import '@babel/runtime/helpers/esm/inheritsLoose';
|
|
@@ -90,7 +90,7 @@ import 'antd/locale/nl_NL';
|
|
|
90
90
|
import 'antd/locale/pl_PL';
|
|
91
91
|
import 'antd/locale/pt_PT';
|
|
92
92
|
import '../Switch.js';
|
|
93
|
-
import '../Textarea-
|
|
93
|
+
import '../Textarea-67a30930.js';
|
|
94
94
|
import '../TreeSelect.js';
|
|
95
95
|
import 'antd/lib/tree-select';
|
|
96
96
|
//# sourceMappingURL=index.js.map
|
|
@@ -10,7 +10,7 @@ import weekOfYear from 'dayjs/plugin/weekOfYear';
|
|
|
10
10
|
import { preprocessForSerialization } from '@bigbinary/neeto-cist';
|
|
11
11
|
import { stringify } from 'qs';
|
|
12
12
|
import { equals, complement, toPairs, pipe, omit, isEmpty } from 'ramda';
|
|
13
|
-
import { e as enTranslations } from './en-
|
|
13
|
+
import { e as enTranslations } from './en-41f5c641.js';
|
|
14
14
|
|
|
15
15
|
dayjs.extend(weekOfYear);
|
|
16
16
|
dayjs.extend(weekday);
|
|
@@ -150,17 +150,6 @@ var getLocale = function getLocale(i18n, t, translationKey) {
|
|
|
150
150
|
if (isEmpty(i18n)) return getEnTranslationValue(translationKey);
|
|
151
151
|
return i18n.exists(translationKey) ? t(translationKey) : getEnTranslationValue(translationKey);
|
|
152
152
|
};
|
|
153
|
-
var setToLocalStorage = function setToLocalStorage(key, value) {
|
|
154
|
-
return (
|
|
155
|
-
// eslint-disable-next-line @bigbinary/neeto/no-local-storage
|
|
156
|
-
localStorage.setItem(key, JSON.stringify(value))
|
|
157
|
-
);
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
// eslint-disable-next-line @bigbinary/neeto/no-local-storage
|
|
161
|
-
var removeFromLocalStorage = function removeFromLocalStorage(key) {
|
|
162
|
-
return localStorage.removeItem(key);
|
|
163
|
-
};
|
|
164
153
|
|
|
165
|
-
export { ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES as A, UniqueArray as U, hideScrollAndAddMargin as a, buildUrl as b, convertToDayjsObjects as c,
|
|
166
|
-
//# sourceMappingURL=index-
|
|
154
|
+
export { ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES as A, UniqueArray as U, hideScrollAndAddMargin as a, buildUrl as b, convertToDayjsObjects as c, focusFirstFocusableElement as f, getLocale as g, hyphenize as h, noop as n, showScrollAndRemoveMargin as s, trapFocusOnFocusableElements as t };
|
|
155
|
+
//# sourceMappingURL=index-abadd6e9.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-abadd6e9.js","sources":["../src/utils/index.js"],"sourcesContent":["import dayjs from \"dayjs\";\nimport localeData from \"dayjs/plugin/localeData\";\nimport utc from \"dayjs/plugin/utc\";\nimport weekday from \"dayjs/plugin/weekday\";\nimport weekOfYear from \"dayjs/plugin/weekOfYear\";\nimport { preprocessForSerialization } from \"neetocist\";\nimport { parse, stringify } from \"qs\";\nimport { complement, equals, isEmpty, omit, pipe, toPairs } from \"ramda\";\n\n// eslint-disable-next-line import/extensions\nimport en from \"src/translations/en.json\";\n\ndayjs.extend(weekOfYear);\ndayjs.extend(weekday);\ndayjs.extend(localeData);\ndayjs.extend(utc);\n\nconst getEnTranslationValue = translationKey =>\n translationKey.split(\".\").reduce((acc, key) => acc[key], en);\n\nconst getScrollbarWidth = () => {\n const parentDiv = document.createElement(\"div\");\n parentDiv.style.visibility = \"hidden\";\n parentDiv.style.overflow = \"scroll\";\n document.body.appendChild(parentDiv);\n const childDiv = document.createElement(\"div\");\n parentDiv.appendChild(childDiv);\n const scrollbarWidth = parentDiv.offsetWidth - childDiv.offsetWidth;\n parentDiv?.parentNode?.removeChild(parentDiv);\n\n return scrollbarWidth;\n};\n\nexport const noop = () => {};\n\nexport const hyphenize = input => {\n const fallbackString = \"nui\";\n\n if (typeof input === \"number\") return String(input);\n\n if (input && typeof input === \"string\" && input.replace) {\n return input\n .replace(/[\\s_]/g, \"-\")\n .replace(/([a-z])([A-Z])/g, \"$1-$2\")\n .replace(/-+/g, \"-\")\n .toLowerCase();\n }\n\n return fallbackString;\n};\n\nexport const convertToDayjsObjects = value =>\n value instanceof Array\n ? value.map(date => (date ? dayjs(date) : date))\n : value && dayjs(value);\n\nexport class UniqueArray {\n constructor() {\n this.array = [];\n }\n\n add(item) {\n if (this.array.some(equals(item))) return false;\n this.array.push(item);\n\n return true;\n }\n\n remove(item) {\n this.array = this.array.filter(complement(equals(item)));\n }\n}\n\nexport const trapFocusOnFocusableElements = ref => {\n const focusableElements =\n 'button,[href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])';\n\n const firstFocusableElement =\n ref?.current?.querySelectorAll(focusableElements)[0];\n const focusableContent = ref?.current?.querySelectorAll(focusableElements);\n const lastFocusableElement = focusableContent[focusableContent?.length - 1];\n\n const onKeyDown = e => {\n const isTabPressed = e.key === \"Tab\" || e.keyCode === 9;\n if (!isTabPressed) {\n return;\n }\n\n if (e.shiftKey) {\n if (document.activeElement === firstFocusableElement) {\n lastFocusableElement.focus();\n e.preventDefault();\n }\n } else {\n if (document.activeElement === lastFocusableElement) {\n firstFocusableElement.focus();\n e.preventDefault();\n }\n }\n };\n\n document.addEventListener(\"keydown\", onKeyDown);\n\n return () => document.removeEventListener(\"keydown\", onKeyDown);\n};\n\nexport const focusFirstFocusableElement = ref => {\n const focusableElements =\n 'button,[href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])';\n\n const firstFocusableElement =\n ref?.current?.querySelectorAll(focusableElements)[0];\n\n firstFocusableElement?.focus();\n};\n\nexport const hideScrollAndAddMargin = () => {\n const scrollbarWidth = getScrollbarWidth();\n document.body.style.overflow = \"hidden\";\n document.body.style.marginRight = `${scrollbarWidth}px`;\n};\n\nexport const showScrollAndRemoveMargin = () => {\n document.body.style.overflow = \"auto\";\n document.body.style.marginRight = \"0px\";\n};\n\nexport const ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES = {\n colorBgContainer: \"rgb(var(--neeto-ui-white))\",\n colorBorder: \"rgb(var(--neeto-ui-gray-300))\",\n colorBorderSecondary: \"rgb(var(--neeto-ui-gray-200))\",\n colorFillAlter: \"rgb(var(--neeto-ui-gray-100))\",\n colorFillContent: \"rgb(var(--neeto-ui-gray-100))\",\n colorFillSecondary: \"rgb(var(--neeto-ui-gray-100))\",\n colorIcon: \"rgb(var(--neeto-ui-gray-700))\",\n colorIconHover: \"rgb(var(--neeto-ui-gray-800))\",\n colorLink: \"rgb(var(--neeto-ui-primary-500))\",\n colorLinkActive: \"rgb(var(--neeto-ui-primary-800))\",\n colorLinkHover: \"rgb(var(--neeto-ui-primary-600))\",\n colorPrimary: \"rgb(var(--neeto-ui-primary-500))\",\n colorSplit: \"rgb(var(--neeto-ui-gray-100))\",\n colorText: \"rgb(var(--neeto-ui-gray-800))\",\n colorTextDescription: \"rgb(var(--neeto-ui-gray-700))\",\n colorTextDisabled: \"rgb(var(--neeto-ui-gray-600))\",\n colorTextHeading: \"rgb(var(--neeto-ui-black))\",\n colorTextPlaceholder: \"rgb(var(--neeto-ui-gray-500))\",\n controlItemBgActive: \"rgb(var(--neeto-ui-primary-100))\",\n controlItemBgActiveHover: \"rgb(var(--neeto-ui-pastel-purple))\",\n controlItemBgHover: \"rgb(var(--neeto-ui-gray-100))\",\n};\n\nexport const getQueryParams = (options = {}) =>\n parse(location.search, { ignoreQueryPrefix: true, ...options });\n\nexport const buildUrl = (route, params) => {\n const placeHolders = [];\n toPairs(params).forEach(([key, value]) => {\n if (!route.includes(`:${key}`)) return;\n placeHolders.push(key);\n route = route.replace(`:${key}`, encodeURIComponent(value));\n });\n\n const queryParams = pipe(\n omit(placeHolders),\n preprocessForSerialization,\n stringify\n )(params);\n\n return isEmpty(queryParams) ? route : `${route}?${queryParams}`;\n};\n\nexport const getLocale = (i18n, t, translationKey) => {\n if (isEmpty(i18n)) return getEnTranslationValue(translationKey);\n\n return i18n.exists(translationKey)\n ? t(translationKey)\n : getEnTranslationValue(translationKey);\n};\n"],"names":["dayjs","extend","weekOfYear","weekday","localeData","utc","getEnTranslationValue","translationKey","split","reduce","acc","key","en","getScrollbarWidth","_parentDiv$parentNode","parentDiv","document","createElement","style","visibility","overflow","body","appendChild","childDiv","scrollbarWidth","offsetWidth","parentNode","removeChild","noop","hyphenize","input","fallbackString","String","replace","toLowerCase","convertToDayjsObjects","value","Array","map","date","UniqueArray","_classCallCheck","array","_createClass","add","item","some","equals","push","remove","filter","complement","trapFocusOnFocusableElements","ref","_ref$current","_ref$current2","focusableElements","firstFocusableElement","current","querySelectorAll","focusableContent","lastFocusableElement","length","onKeyDown","e","isTabPressed","keyCode","shiftKey","activeElement","focus","preventDefault","addEventListener","removeEventListener","focusFirstFocusableElement","_ref$current3","hideScrollAndAddMargin","marginRight","concat","showScrollAndRemoveMargin","ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES","colorBgContainer","colorBorder","colorBorderSecondary","colorFillAlter","colorFillContent","colorFillSecondary","colorIcon","colorIconHover","colorLink","colorLinkActive","colorLinkHover","colorPrimary","colorSplit","colorText","colorTextDescription","colorTextDisabled","colorTextHeading","colorTextPlaceholder","controlItemBgActive","controlItemBgActiveHover","controlItemBgHover","buildUrl","route","params","placeHolders","toPairs","forEach","_ref","_ref2","_slicedToArray","includes","encodeURIComponent","queryParams","pipe","omit","preprocessForSerialization","stringify","isEmpty","getLocale","i18n","t","exists"],"mappings":";;;;;;;;;;;;;;AAYAA,KAAK,CAACC,MAAM,CAACC,UAAU,CAAC,CAAA;AACxBF,KAAK,CAACC,MAAM,CAACE,OAAO,CAAC,CAAA;AACrBH,KAAK,CAACC,MAAM,CAACG,UAAU,CAAC,CAAA;AACxBJ,KAAK,CAACC,MAAM,CAACI,GAAG,CAAC,CAAA;AAEjB,IAAMC,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAGC,cAAc,EAAA;AAAA,EAAA,OAC1CA,cAAc,CAACC,KAAK,CAAC,GAAG,CAAC,CAACC,MAAM,CAAC,UAACC,GAAG,EAAEC,GAAG,EAAA;IAAA,OAAKD,GAAG,CAACC,GAAG,CAAC,CAAA;AAAA,GAAA,EAAEC,cAAE,CAAC,CAAA;AAAA,CAAA,CAAA;AAE9D,IAAMC,iBAAiB,GAAG,SAApBA,iBAAiBA,GAAS;AAAA,EAAA,IAA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AA,GAAG,GAAAiG,KAAA,CAAA,CAAA,CAAA;AAAExE,MAAAA,KAAK,GAAAwE,KAAA,CAAA,CAAA,CAAA,CAAA;IAClC,IAAI,CAACN,KAAK,CAACQ,QAAQ,KAAAjC,MAAA,CAAKlE,GAAG,CAAA,CAAG,EAAE,OAAA;AAChC6F,IAAAA,YAAY,CAACxD,IAAI,CAACrC,GAAG,CAAC,CAAA;AACtB2F,IAAAA,KAAK,GAAGA,KAAK,CAACrE,OAAO,CAAA4C,GAAAA,CAAAA,MAAA,CAAKlE,GAAG,CAAIoG,EAAAA,kBAAkB,CAAC3E,KAAK,CAAC,CAAC,CAAA;AAC7D,GAAC,CAAC,CAAA;AAEF,EAAA,IAAM4E,WAAW,GAAGC,IAAI,CACtBC,IAAI,CAACV,YAAY,CAAC,EAClBW,0BAA0B,EAC1BC,SAAS,CACV,CAACb,MAAM,CAAC,CAAA;AAET,EAAA,OAAOc,OAAO,CAACL,WAAW,CAAC,GAAGV,KAAK,GAAA,EAAA,CAAAzB,MAAA,CAAMyB,KAAK,EAAA,GAAA,CAAA,CAAAzB,MAAA,CAAImC,WAAW,CAAE,CAAA;AACjE,EAAC;AAEM,IAAMM,SAAS,GAAG,SAAZA,SAASA,CAAIC,IAAI,EAAEC,CAAC,EAAEjH,cAAc,EAAK;EACpD,IAAI8G,OAAO,CAACE,IAAI,CAAC,EAAE,OAAOjH,qBAAqB,CAACC,cAAc,CAAC,CAAA;AAE/D,EAAA,OAAOgH,IAAI,CAACE,MAAM,CAAClH,cAAc,CAAC,GAC9BiH,CAAC,CAACjH,cAAc,CAAC,GACjBD,qBAAqB,CAACC,cAAc,CAAC,CAAA;AAC3C;;;;"}
|
|
@@ -23,7 +23,7 @@ import '@babel/runtime/regenerator';
|
|
|
23
23
|
import 'react-colorful';
|
|
24
24
|
import './tinycolor-282c618c.js';
|
|
25
25
|
import './Dropdown.js';
|
|
26
|
-
import { A as ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES, g as getLocale, h as hyphenize, c as convertToDayjsObjects, n as noop } from './index-
|
|
26
|
+
import { A as ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES, g as getLocale, h as hyphenize, c as convertToDayjsObjects, n as noop } from './index-abadd6e9.js';
|
|
27
27
|
import _DatePicker from 'antd/lib/date-picker';
|
|
28
28
|
import dayjs from 'dayjs';
|
|
29
29
|
import { isPresent, isNotPresent } from '@bigbinary/neeto-cist';
|
|
@@ -35,7 +35,7 @@ import { u as useId } from './useId-c1d20bba.js';
|
|
|
35
35
|
import '@bigbinary/neeto-hotkeys';
|
|
36
36
|
import './overlayManager.js';
|
|
37
37
|
import 'qs';
|
|
38
|
-
import { u as useSyncedRef } from './Textarea-
|
|
38
|
+
import { u as useSyncedRef } from './Textarea-67a30930.js';
|
|
39
39
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
40
40
|
import './Pane.js';
|
|
41
41
|
import './Popover.js';
|
|
@@ -68,7 +68,7 @@ import './Switch.js';
|
|
|
68
68
|
import './Tab.js';
|
|
69
69
|
import 'antd/lib/table';
|
|
70
70
|
import 'react-drag-listview';
|
|
71
|
-
import './
|
|
71
|
+
import './HeaderCellMenu-85777f9d.js';
|
|
72
72
|
import 'react-resizable';
|
|
73
73
|
import Tag from './Tag.js';
|
|
74
74
|
import { ANTD_LOCALE } from './constants.js';
|
|
@@ -511,4 +511,4 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
511
511
|
TimePicker.displayName = "TimePicker";
|
|
512
512
|
|
|
513
513
|
export { DatePicker as D, TimePicker as T };
|
|
514
|
-
//# sourceMappingURL=index-
|
|
514
|
+
//# sourceMappingURL=index-fd0e5fa5.js.map
|