@pareto-engineering/design-system 5.13.1 → 5.13.3-alpha.0
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/{ExposePlainTextPlugin-DeW6mVaE.js → ExposePlainTextPlugin-21aMiDtd.js} +1 -1
- package/dist/{FormBuilder-DWHYIZCN.js → FormBuilder-D-D63IHE.js} +69 -69
- package/dist/{YAxis-ULEXP-uu.js → YAxis-BrfWZMKv.js} +7 -7
- package/dist/assets/FormBuilder.css +1 -1
- package/dist/assets/MetaCard.css +1 -1
- package/dist/assets/SnapScroller.css +1 -1
- package/dist/assets/SocialMediaShareButton.css +1 -1
- package/dist/exports.module-BY48WvdE.js +20 -0
- package/dist/{generateCategoricalChart-ar2rowoi.js → generateCategoricalChart-Ca9TKPy7.js} +97 -97
- package/dist/{index-CxkFVI6N.js → index-BOVlDh8S.js} +2 -2
- package/dist/{index-BUor0nOw.js → index-C3TenDWn.js} +27 -27
- package/dist/{index-C_b9PQD8.js → index-C4uazrih.js} +190 -217
- package/dist/index.js +14 -14
- package/dist/stories/StyleGuide/helpers.js +2 -2
- package/dist/stories/a/AppContext.stories.js +2 -2
- package/dist/stories/a/AreaChart.stories.js +2 -2
- package/dist/stories/a/BarChart.stories.js +2 -2
- package/dist/stories/a/BlurOverlay.stories.js +2 -2
- package/dist/stories/a/ContentTree.stories.js +2 -2
- package/dist/stories/a/Conversation.stories.js +2 -2
- package/dist/stories/a/DatePicker.stories.js +8 -8
- package/dist/stories/a/DotInfo.stories.js +2 -2
- package/dist/stories/a/Figure.stories.js +2 -2
- package/dist/stories/a/HamburgerButton.stories.js +2 -2
- package/dist/stories/a/IconList.stories.js +2 -2
- package/dist/stories/a/Label.stories.js +2 -2
- package/dist/stories/a/LoadingCircle.stories.js +2 -2
- package/dist/stories/a/MetaCard.stories.js +2 -2
- package/dist/stories/a/Notification.stories.js +2 -2
- package/dist/stories/a/NotificationStack.stories.js +2 -2
- package/dist/stories/a/People.stories.js +2 -2
- package/dist/stories/a/PieChart.stories.js +2 -2
- package/dist/stories/a/Popover.stories.js +2 -2
- package/dist/stories/a/ProgressBar.stories.js +2 -2
- package/dist/stories/a/Quote.stories.js +2 -2
- package/dist/stories/a/Removable.stories.js +2 -2
- package/dist/stories/a/SVG.stories.js +3 -3
- package/dist/stories/a/SnapScroller.stories.js +2 -2
- package/dist/stories/a/Spinner.stories.js +2 -2
- package/dist/stories/a/TextSteps.stories.js +2 -2
- package/dist/stories/a/Timestamp.stories.js +39 -28
- package/dist/stories/a/Tip.stories.js +2 -2
- package/dist/stories/a/ToggleSwitch.stories.js +3 -3
- package/dist/stories/a/Tooltip.stories.js +2 -2
- package/dist/stories/a/XMLEditor.stories.js +2 -2
- package/dist/stories/b/Button/Button.stories.js +2 -2
- package/dist/stories/b/Button/Group.stories.js +2 -2
- package/dist/stories/b/Card/Card.stories.js +5 -5
- package/dist/stories/b/Card/Group.stories.js +2 -2
- package/dist/stories/b/Logo.stories.js +2 -2
- package/dist/stories/b/Page.stories.js +2 -2
- package/dist/stories/b/SocialMediaButton.stories.js +2 -2
- package/dist/stories/b/ThemeSelector.stories.js +2 -2
- package/dist/stories/b/Title.stories.js +2 -2
- package/dist/stories/c/Modal.stories.js +2 -2
- package/dist/stories/c/Shortener.stories.js +2 -2
- package/dist/stories/c/SocialMediaShareButton.stories.js +2 -2
- package/dist/stories/f/Checkbox.stories.js +5 -5
- package/dist/stories/f/ChoicesInput.stories.js +17 -17
- package/dist/stories/f/Combobox.stories.js +2 -2
- package/dist/stories/f/Description.stories.js +2 -2
- package/dist/stories/f/DragAndDropFileUpload.stories.js +23 -23
- package/dist/stories/f/EditorInput.stories.js +2 -2
- package/dist/stories/f/FileUpload.stories.js +2 -2
- package/dist/stories/f/HighlightedTextInput.stories.js +2 -2
- package/dist/stories/f/Label.stories.js +2 -2
- package/dist/stories/f/LinkInput.stories.js +2 -2
- package/dist/stories/f/RadioInput.stories.js +2 -2
- package/dist/stories/f/RatingsInput.stories.js +5 -5
- package/dist/stories/f/SelectInput.stories.js +12 -12
- package/dist/stories/f/TextInput.stories.js +9 -9
- package/dist/stories/f/TextareaInput.stories.js +6 -6
- package/dist/stories/g/DragAndDrop.stories.js +6 -6
- package/dist/stories/g/ExpandableLexicalPreview.stories.js +6 -6
- package/dist/stories/g/FormBuilder.stories.js +2 -2
- package/dist/ui/a/AnimatedBlobs/AnimatedBlobs.js +2 -2
- package/dist/ui/a/AnimatedGradient/AnimatedGradient.js +4 -4
- package/dist/ui/a/AnimatedGradient/index.js +1 -1
- package/dist/ui/a/AppContext/ContextProvider.js +1 -1
- package/dist/ui/a/BlurOverlay/BlurOverlay.js +2 -2
- package/dist/ui/a/Charts/AreaChart/AreaChart.js +6 -6
- package/dist/ui/a/Charts/BarChart/BarChart.js +4 -4
- package/dist/ui/a/Charts/Common/CustomLegend/CustomLegend.js +2 -2
- package/dist/ui/a/Charts/Common/CustomTooltipContent/CustomTooltipContent.js +2 -2
- package/dist/ui/a/Charts/Common/YLabelsDropDown/YlabelsDropDown.js +2 -2
- package/dist/ui/a/Charts/PieChart/PieChart.js +119 -119
- package/dist/ui/a/ContentTree/ContentTree.js +3 -3
- package/dist/ui/a/ContentTree/common/Tree/Tree.js +4 -4
- package/dist/ui/a/ContentTree/common/Tree/index.js +1 -1
- package/dist/ui/a/ContentTree/common/index.js +1 -1
- package/dist/ui/a/ContentTree/index.js +1 -1
- package/dist/ui/a/Conversation/Conversation.js +4 -4
- package/dist/ui/a/Conversation/common/Message/Message.js +2 -2
- package/dist/ui/a/Conversation/index.js +3 -3
- package/dist/ui/a/DatePicker/DatePicker.js +2493 -7
- package/dist/ui/a/DatePicker/index.js +2 -2
- package/dist/ui/a/DotInfo/DotInfo.js +2 -2
- package/dist/ui/a/Figure/Figure.js +2 -2
- package/dist/ui/a/HamburgerButton/HamburgerButton.js +2 -2
- package/dist/ui/a/IconList/IconList.js +2 -2
- package/dist/ui/a/IconList/common/Item/Item.js +2 -2
- package/dist/ui/a/Label/Label.js +2 -2
- package/dist/ui/a/LoadingCircle/LoadingCircle.js +2 -2
- package/dist/ui/a/MetaCard/MetaCard.js +2 -2
- package/dist/ui/a/Notification/Notification.js +4 -4
- package/dist/ui/a/Notification/index.js +1 -1
- package/dist/ui/a/NotificationStack/NotificationStack.js +3 -3
- package/dist/ui/a/NotificationStack/index.js +1 -1
- package/dist/ui/a/People/People.js +2 -2
- package/dist/ui/a/People/common/Person/Person.js +2 -2
- package/dist/ui/a/Popover/Popover.js +2 -2
- package/dist/ui/a/ProgressBar/ProgressBar.js +2 -2
- package/dist/ui/a/Quote/Quote.js +2 -2
- package/dist/ui/a/Removable/Removable.js +2 -2
- package/dist/ui/a/SVG/SVG.js +2 -2
- package/dist/ui/a/SVG/common/UseSVG/UseSVG.js +1 -1
- package/dist/ui/a/SnapScroller/SnapScroller.js +2 -2
- package/dist/ui/a/Spinner/Spinner.js +2 -2
- package/dist/ui/a/TextSteps/TextSteps.js +2 -2
- package/dist/ui/a/ThroughPutIndicator/ThroughPutIndicator.js +2 -2
- package/dist/ui/a/Timestamp/Timestamp.js +154 -133
- package/dist/ui/a/Tip/Tip.js +2 -2
- package/dist/ui/a/ToggleSwitch/ToggleSwitch.js +1 -1
- package/dist/ui/a/Tooltip/Tooltip.js +2 -2
- package/dist/ui/a/XMLEditor/XMLEditor.js +16 -16
- package/dist/ui/a/XMLEditor/common/index.js +1 -1
- package/dist/ui/a/XMLEditor/common/theme.js +1 -1
- package/dist/ui/a/index.js +14 -14
- package/dist/ui/b/Button/Button.js +4 -4
- package/dist/ui/b/Button/common/Group/Group.js +2 -2
- package/dist/ui/b/Button/index.js +1 -1
- package/dist/ui/b/Card/Card.js +4 -4
- package/dist/ui/b/Card/common/Group/Group.js +4 -4
- package/dist/ui/b/Card/common/Group/index.js +1 -1
- package/dist/ui/b/Card/common/Section/Section.js +2 -2
- package/dist/ui/b/Card/common/index.js +1 -1
- package/dist/ui/b/Card/index.js +1 -1
- package/dist/ui/b/Logo/Logo.js +5 -5
- package/dist/ui/b/Logo/index.js +2 -2
- package/dist/ui/b/Page/Page.js +4 -4
- package/dist/ui/b/Page/common/PageHelmet/PageHelmet.js +3 -3
- package/dist/ui/b/Page/common/PageHelmet/index.js +1 -1
- package/dist/ui/b/Page/common/Section/Section.js +2 -2
- package/dist/ui/b/Page/common/index.js +1 -1
- package/dist/ui/b/Page/index.js +1 -1
- package/dist/ui/b/SocialMediaButton/SocialMediaButton.js +5 -5
- package/dist/ui/b/SocialMediaButton/index.js +1 -1
- package/dist/ui/b/ThemeSelector/ThemeSelector.js +5 -5
- package/dist/ui/b/ThemeSelector/index.js +1 -1
- package/dist/ui/b/Title/Title.js +2 -2
- package/dist/ui/b/index.js +3 -3
- package/dist/ui/c/Modal/Modal.js +3 -3
- package/dist/ui/c/Modal/common/ModalHeader/ModalHeader.js +4 -4
- package/dist/ui/c/Modal/common/ModalHeader/index.js +1 -1
- package/dist/ui/c/Modal/common/index.js +1 -1
- package/dist/ui/c/Modal/index.js +1 -1
- package/dist/ui/c/Shortener/Shortener.js +4 -4
- package/dist/ui/c/Shortener/index.js +1 -1
- package/dist/ui/c/SocialMediaShareButton/SocialMediaShareButton.js +2 -2
- package/dist/ui/c/index.js +1 -1
- package/dist/ui/f/FormInput/FormInput.js +3 -3
- package/dist/ui/f/FormInput/index.js +1 -1
- package/dist/ui/f/common/CharacterCount/CharacterCount.js +1 -1
- package/dist/ui/f/common/Debugger/Debugger.js +2 -2
- package/dist/ui/f/common/Debugger/index.js +2 -2
- package/dist/ui/f/common/Description/Description.js +2 -2
- package/dist/ui/f/common/Hint/Hint.js +2 -2
- package/dist/ui/f/common/Label/Label.js +2 -2
- package/dist/ui/f/common/index.js +1 -1
- package/dist/ui/f/common/utils/lookUpInputValueFromOptions.js +1 -1
- package/dist/ui/f/fields/Checkbox/Checkbox.js +3 -3
- package/dist/ui/f/fields/Checkbox/index.js +2 -2
- package/dist/ui/f/fields/ChoicesInput/ChoicesInput.js +3 -3
- package/dist/ui/f/fields/ChoicesInput/common/Choice/common/ImageChoice/ImageChoice.js +1 -1
- package/dist/ui/f/fields/ChoicesInput/common/Choice/common/TextChoice/TextChoice.js +1 -1
- package/dist/ui/f/fields/ChoicesInput/index.js +1 -1
- package/dist/ui/f/fields/DragAndDropFileUpload/DragAndDropFileUpload.js +2 -2
- package/dist/ui/f/fields/DragAndDropFileUpload/index.js +1 -1
- package/dist/ui/f/fields/EditorInput/EditorInput.js +4 -4
- package/dist/ui/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.js +5 -5
- package/dist/ui/f/fields/EditorInput/common/BlockFormatDropDown/index.js +1 -1
- package/dist/ui/f/fields/EditorInput/common/ColorPicker/ColorPicker.js +4 -4
- package/dist/ui/f/fields/EditorInput/common/ColorPicker/index.js +1 -1
- package/dist/ui/f/fields/EditorInput/common/ExposePlainTextPlugin.js +2 -2
- package/dist/ui/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.js +5 -5
- package/dist/ui/f/fields/EditorInput/common/FontSizeDropDown/index.js +1 -1
- package/dist/ui/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.js +4 -4
- package/dist/ui/f/fields/EditorInput/common/ToolbarPlugin/index.js +1 -1
- package/dist/ui/f/fields/EditorInput/common/index.js +2 -2
- package/dist/ui/f/fields/EditorInput/index.js +1 -1
- package/dist/ui/f/fields/FileUpload/FileUpload.js +3 -3
- package/dist/ui/f/fields/FileUpload/common/Preview/Preview.js +4 -4
- package/dist/ui/f/fields/FileUpload/common/Preview/index.js +1 -1
- package/dist/ui/f/fields/FileUpload/common/PreviewNewRegistration/PreviewNewRegistration.js +4 -4
- package/dist/ui/f/fields/FileUpload/common/PreviewNewRegistration/index.js +1 -1
- package/dist/ui/f/fields/FileUpload/common/index.js +1 -1
- package/dist/ui/f/fields/FileUpload/index.js +2 -2
- package/dist/ui/f/fields/HighlightedTextInput/HighlightedTextInput.js +2 -2
- package/dist/ui/f/fields/HighlightedTextInput/index.js +1 -1
- package/dist/ui/f/fields/LatexPreviewInput/LatexPreviewInput.js +3 -3
- package/dist/ui/f/fields/LatexPreviewInput/convertLatexToHtml.js +3088 -3088
- package/dist/ui/f/fields/LatexPreviewInput/index.js +1 -1
- package/dist/ui/f/fields/LinkInput/LinkInput.js +4 -4
- package/dist/ui/f/fields/LinkInput/index.js +2 -2
- package/dist/ui/f/fields/PasswordInput/PasswordInput.js +2 -2
- package/dist/ui/f/fields/PasswordInput/index.js +2 -2
- package/dist/ui/f/fields/QueryCombobox/QueryCombobox.js +1 -1
- package/dist/ui/f/fields/QueryCombobox/common/Combobox/Combobox.js +3 -3
- package/dist/ui/f/fields/QueryCombobox/common/Combobox/index.js +1 -1
- package/dist/ui/f/fields/QueryCombobox/common/Menu/Menu.js +3 -3
- package/dist/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +3 -3
- package/dist/ui/f/fields/QueryCombobox/common/MultipleCombobox/index.js +1 -1
- package/dist/ui/f/fields/QueryCombobox/common/index.js +1 -1
- package/dist/ui/f/fields/QueryCombobox/index.js +1 -1
- package/dist/ui/f/fields/RadioInput/RadioInput.js +2 -2
- package/dist/ui/f/fields/RatingsInput/RatingsInput.js +3 -3
- package/dist/ui/f/fields/RatingsInput/common/Rating/Rating.js +2 -2
- package/dist/ui/f/fields/RatingsInput/index.js +1 -1
- package/dist/ui/f/fields/SearchDropdown/SearchDropdown.js +3 -3
- package/dist/ui/f/fields/SearchDropdown/index.js +1 -1
- package/dist/ui/f/fields/SelectInput/SelectInput.js +4 -4
- package/dist/ui/f/fields/SelectInput/common/Menu/Menu.js +4 -4
- package/dist/ui/f/fields/SelectInput/common/Menu/index.js +1 -1
- package/dist/ui/f/fields/SelectInput/common/Multiple/Multiple.js +4 -4
- package/dist/ui/f/fields/SelectInput/common/Multiple/index.js +1 -1
- package/dist/ui/f/fields/SelectInput/common/Single/Single.js +4 -4
- package/dist/ui/f/fields/SelectInput/common/Single/index.js +1 -1
- package/dist/ui/f/fields/SelectInput/common/index.js +1 -1
- package/dist/ui/f/fields/SelectInput/index.js +2 -2
- package/dist/ui/f/fields/SelectSingle/SelectSingle.js +3 -3
- package/dist/ui/f/fields/TextInput/TextInput.js +2 -2
- package/dist/ui/f/fields/TextInput/index.js +1 -1
- package/dist/ui/f/fields/TextareaInput/TextareaInput.js +3 -3
- package/dist/ui/f/fields/TextareaInput/index.js +2 -2
- package/dist/ui/f/fields/ToggleInput/ToggleInput.js +4 -4
- package/dist/ui/f/fields/ToggleInput/index.js +2 -2
- package/dist/ui/f/fields/index.js +12 -12
- package/dist/ui/f/index.js +17 -17
- package/dist/ui/g/DragAndDrop/DragAndDrop.js +1 -1
- package/dist/ui/g/DragAndDrop/common/DraggableItem/DraggableItem.js +1 -1
- package/dist/ui/g/DragAndDrop/common/MultiSectionDragAndDrop/MultiSectionDragAndDrop.js +1 -1
- package/dist/ui/g/DragAndDrop/common/SingleListDragAndDrop/SingleListDragAndDrop.js +1 -1
- package/dist/ui/g/ExpandableLexicalPreview/ExpandableLexicalPreview.js +4 -4
- package/dist/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/NewWindowPortal.js +4 -4
- package/dist/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/index.js +1 -1
- package/dist/ui/g/ExpandableLexicalPreview/common/index.js +1 -1
- package/dist/ui/g/ExpandableLexicalPreview/index.js +1 -1
- package/dist/ui/g/FormBuilder/FormBuilder.js +4 -4
- package/dist/ui/g/FormBuilder/common/Builder/Builder.js +4 -4
- package/dist/ui/g/FormBuilder/common/Builder/common/ActionsContainer/ActionsContainer.js +4 -4
- package/dist/ui/g/FormBuilder/common/Builder/common/ActionsContainer/index.js +1 -1
- package/dist/ui/g/FormBuilder/common/Builder/common/AutoQASection/AutoQASection.js +3 -3
- package/dist/ui/g/FormBuilder/common/Builder/common/AutoQASection/index.js +1 -1
- package/dist/ui/g/FormBuilder/common/Builder/common/InputBuilder/InputBuilder.js +3 -3
- package/dist/ui/g/FormBuilder/common/Builder/common/InputBuilder/index.js +1 -1
- package/dist/ui/g/FormBuilder/common/Builder/common/Section/Section.js +4 -4
- package/dist/ui/g/FormBuilder/common/Builder/common/Section/index.js +1 -1
- package/dist/ui/g/FormBuilder/common/Builder/common/index.js +1 -1
- package/dist/ui/g/FormBuilder/common/Builder/index.js +1 -1
- package/dist/ui/g/FormBuilder/common/Renderer/Renderer.js +3 -3
- package/dist/ui/g/FormBuilder/common/Renderer/common/Section/Section.js +4 -4
- package/dist/ui/g/FormBuilder/common/Renderer/common/Section/index.js +1 -1
- package/dist/ui/g/FormBuilder/common/Renderer/common/index.js +1 -1
- package/dist/ui/g/FormBuilder/common/Renderer/index.js +1 -1
- package/dist/ui/g/FormBuilder/common/index.js +1 -1
- package/dist/ui/g/FormBuilder/index.js +1 -1
- package/dist/ui/g/index.js +4 -4
- package/dist/ui/index.js +14 -14
- package/package.json +4 -4
- package/dist/DatePicker-DHuh_8q6.js +0 -1305
- package/dist/exports.module-DmUnHWIJ.js +0 -20
|
@@ -1,28 +1,44 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as z, useMemo as
|
|
3
|
-
import { P as
|
|
4
|
-
import { s as
|
|
5
|
-
import { r as
|
|
6
|
-
import '../../../assets/Timestamp.css';function
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
return
|
|
10
|
-
}
|
|
11
|
-
|
|
1
|
+
import { jsxs as L } from "react/jsx-runtime";
|
|
2
|
+
import { useState as z, useMemo as F, useCallback as P } from "react";
|
|
3
|
+
import { P as c } from "../../../index-BOVlDh8S.js";
|
|
4
|
+
import { s as U } from "../../../exports.module-BY48WvdE.js";
|
|
5
|
+
import { r as v, t as f, g as T, l as E, b as H, a as W, s as y, f as N } from "../../../index-C4uazrih.js";
|
|
6
|
+
import '../../../assets/Timestamp.css';function b(r) {
|
|
7
|
+
v(1, arguments);
|
|
8
|
+
var t = f(r);
|
|
9
|
+
return t.setHours(0, 0, 0, 0), t;
|
|
10
|
+
}
|
|
11
|
+
var q = 864e5;
|
|
12
|
+
function X(r, t) {
|
|
13
|
+
v(2, arguments);
|
|
14
|
+
var e = b(r), n = b(t), o = e.getTime() - T(e), i = n.getTime() - T(n);
|
|
15
|
+
return Math.round((o - i) / q);
|
|
16
|
+
}
|
|
17
|
+
function I(r, t) {
|
|
18
|
+
v(2, arguments);
|
|
19
|
+
var e = f(r), n = f(t), o = e.getTime() - n.getTime();
|
|
20
|
+
return o < 0 ? -1 : o > 0 ? 1 : o;
|
|
21
|
+
}
|
|
22
|
+
function B(r, t) {
|
|
23
|
+
v(2, arguments);
|
|
24
|
+
var e = f(r), n = f(t), o = e.getFullYear() - n.getFullYear(), i = e.getMonth() - n.getMonth();
|
|
25
|
+
return o * 12 + i;
|
|
26
|
+
}
|
|
27
|
+
function x(r, t) {
|
|
12
28
|
var e = r.getFullYear() - t.getFullYear() || r.getMonth() - t.getMonth() || r.getDate() - t.getDate() || r.getHours() - t.getHours() || r.getMinutes() - t.getMinutes() || r.getSeconds() - t.getSeconds() || r.getMilliseconds() - t.getMilliseconds();
|
|
13
29
|
return e < 0 ? -1 : e > 0 ? 1 : e;
|
|
14
30
|
}
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
var e =
|
|
18
|
-
e.setDate(e.getDate() -
|
|
19
|
-
var a = +(
|
|
31
|
+
function k(r, t) {
|
|
32
|
+
v(2, arguments);
|
|
33
|
+
var e = f(r), n = f(t), o = x(e, n), i = Math.abs(X(e, n));
|
|
34
|
+
e.setDate(e.getDate() - o * i);
|
|
35
|
+
var a = +(x(e, n) === -o), d = o * (i - a);
|
|
20
36
|
return d === 0 ? 0 : d;
|
|
21
37
|
}
|
|
22
|
-
function
|
|
23
|
-
return
|
|
38
|
+
function G(r, t) {
|
|
39
|
+
return v(2, arguments), f(r).getTime() - f(t).getTime();
|
|
24
40
|
}
|
|
25
|
-
var
|
|
41
|
+
var J = {
|
|
26
42
|
ceil: Math.ceil,
|
|
27
43
|
round: Math.round,
|
|
28
44
|
floor: Math.floor,
|
|
@@ -30,185 +46,190 @@ var G = {
|
|
|
30
46
|
return t < 0 ? Math.ceil(t) : Math.floor(t);
|
|
31
47
|
}
|
|
32
48
|
// Math.trunc is not supported by IE
|
|
33
|
-
},
|
|
34
|
-
function K(r) {
|
|
35
|
-
return G[J];
|
|
36
|
-
}
|
|
49
|
+
}, K = "trunc";
|
|
37
50
|
function Q(r) {
|
|
38
|
-
|
|
39
|
-
var t = c(r);
|
|
40
|
-
return t.setHours(23, 59, 59, 999), t;
|
|
51
|
+
return J[K];
|
|
41
52
|
}
|
|
42
53
|
function V(r) {
|
|
43
|
-
|
|
44
|
-
var t =
|
|
45
|
-
return
|
|
46
|
-
}
|
|
47
|
-
function Z(r
|
|
48
|
-
|
|
49
|
-
var
|
|
50
|
-
|
|
54
|
+
v(1, arguments);
|
|
55
|
+
var t = f(r);
|
|
56
|
+
return t.setHours(23, 59, 59, 999), t;
|
|
57
|
+
}
|
|
58
|
+
function Z(r) {
|
|
59
|
+
v(1, arguments);
|
|
60
|
+
var t = f(r), e = t.getMonth();
|
|
61
|
+
return t.setFullYear(t.getFullYear(), e + 1, 0), t.setHours(23, 59, 59, 999), t;
|
|
62
|
+
}
|
|
63
|
+
function ee(r) {
|
|
64
|
+
v(1, arguments);
|
|
65
|
+
var t = f(r);
|
|
66
|
+
return V(t).getTime() === Z(t).getTime();
|
|
67
|
+
}
|
|
68
|
+
function te(r, t) {
|
|
69
|
+
v(2, arguments);
|
|
70
|
+
var e = f(r), n = f(t), o = I(e, n), i = Math.abs(B(e, n)), a;
|
|
71
|
+
if (i < 1)
|
|
51
72
|
a = 0;
|
|
52
73
|
else {
|
|
53
|
-
e.getMonth() === 1 && e.getDate() > 27 && e.setDate(30), e.setMonth(e.getMonth() -
|
|
54
|
-
var d =
|
|
55
|
-
|
|
74
|
+
e.getMonth() === 1 && e.getDate() > 27 && e.setDate(30), e.setMonth(e.getMonth() - o * i);
|
|
75
|
+
var d = I(e, n) === -o;
|
|
76
|
+
ee(f(r)) && i === 1 && I(r, n) === 1 && (d = !1), a = o * (i - Number(d));
|
|
56
77
|
}
|
|
57
78
|
return a === 0 ? 0 : a;
|
|
58
79
|
}
|
|
59
|
-
function
|
|
60
|
-
|
|
61
|
-
var
|
|
62
|
-
return
|
|
80
|
+
function re(r, t, e) {
|
|
81
|
+
v(2, arguments);
|
|
82
|
+
var n = G(r, t) / 1e3;
|
|
83
|
+
return Q()(n);
|
|
63
84
|
}
|
|
64
|
-
function
|
|
85
|
+
function Y(r, t) {
|
|
65
86
|
if (r == null)
|
|
66
87
|
throw new TypeError("assign requires that input parameter not be null or undefined");
|
|
67
88
|
for (var e in t)
|
|
68
89
|
Object.prototype.hasOwnProperty.call(t, e) && (r[e] = t[e]);
|
|
69
90
|
return r;
|
|
70
91
|
}
|
|
71
|
-
function
|
|
72
|
-
return
|
|
92
|
+
function ae(r) {
|
|
93
|
+
return Y({}, r);
|
|
73
94
|
}
|
|
74
|
-
var
|
|
75
|
-
function
|
|
76
|
-
var
|
|
77
|
-
|
|
78
|
-
var
|
|
95
|
+
var R = 1440, ne = 2520, _ = 43200, oe = 86400;
|
|
96
|
+
function se(r, t, e) {
|
|
97
|
+
var n, o;
|
|
98
|
+
v(2, arguments);
|
|
99
|
+
var i = H(), a = (n = (o = e == null ? void 0 : e.locale) !== null && o !== void 0 ? o : i.locale) !== null && n !== void 0 ? n : E;
|
|
79
100
|
if (!a.formatDistance)
|
|
80
101
|
throw new RangeError("locale must contain formatDistance property");
|
|
81
|
-
var d =
|
|
102
|
+
var d = I(r, t);
|
|
82
103
|
if (isNaN(d))
|
|
83
104
|
throw new RangeError("Invalid time value");
|
|
84
|
-
var
|
|
105
|
+
var s = Y(ae(e), {
|
|
85
106
|
addSuffix: !!(e != null && e.addSuffix),
|
|
86
107
|
comparison: d
|
|
87
|
-
}),
|
|
88
|
-
d > 0 ? (
|
|
89
|
-
var m =
|
|
90
|
-
if (
|
|
91
|
-
return e != null && e.includeSeconds ? m < 5 ? a.formatDistance("lessThanXSeconds", 5,
|
|
92
|
-
if (
|
|
93
|
-
return a.formatDistance("xMinutes",
|
|
94
|
-
if (
|
|
95
|
-
return a.formatDistance("aboutXHours", 1,
|
|
96
|
-
if (
|
|
97
|
-
var
|
|
98
|
-
return a.formatDistance("aboutXHours",
|
|
108
|
+
}), g, p;
|
|
109
|
+
d > 0 ? (g = f(t), p = f(r)) : (g = f(r), p = f(t));
|
|
110
|
+
var m = re(p, g), w = (T(p) - T(g)) / 1e3, l = Math.round((m - w) / 60), D;
|
|
111
|
+
if (l < 2)
|
|
112
|
+
return e != null && e.includeSeconds ? m < 5 ? a.formatDistance("lessThanXSeconds", 5, s) : m < 10 ? a.formatDistance("lessThanXSeconds", 10, s) : m < 20 ? a.formatDistance("lessThanXSeconds", 20, s) : m < 40 ? a.formatDistance("halfAMinute", 0, s) : m < 60 ? a.formatDistance("lessThanXMinutes", 1, s) : a.formatDistance("xMinutes", 1, s) : l === 0 ? a.formatDistance("lessThanXMinutes", 1, s) : a.formatDistance("xMinutes", l, s);
|
|
113
|
+
if (l < 45)
|
|
114
|
+
return a.formatDistance("xMinutes", l, s);
|
|
115
|
+
if (l < 90)
|
|
116
|
+
return a.formatDistance("aboutXHours", 1, s);
|
|
117
|
+
if (l < R) {
|
|
118
|
+
var u = Math.round(l / 60);
|
|
119
|
+
return a.formatDistance("aboutXHours", u, s);
|
|
99
120
|
} else {
|
|
100
|
-
if (
|
|
101
|
-
return a.formatDistance("xDays", 1,
|
|
102
|
-
if (
|
|
103
|
-
var
|
|
104
|
-
return a.formatDistance("xDays",
|
|
105
|
-
} else if (
|
|
106
|
-
return
|
|
121
|
+
if (l < ne)
|
|
122
|
+
return a.formatDistance("xDays", 1, s);
|
|
123
|
+
if (l < _) {
|
|
124
|
+
var O = Math.round(l / R);
|
|
125
|
+
return a.formatDistance("xDays", O, s);
|
|
126
|
+
} else if (l < oe)
|
|
127
|
+
return D = Math.round(l / _), a.formatDistance("aboutXMonths", D, s);
|
|
107
128
|
}
|
|
108
|
-
if (
|
|
109
|
-
var S = Math.round(
|
|
110
|
-
return a.formatDistance("xMonths", S,
|
|
129
|
+
if (D = te(p, g), D < 12) {
|
|
130
|
+
var S = Math.round(l / _);
|
|
131
|
+
return a.formatDistance("xMonths", S, s);
|
|
111
132
|
} else {
|
|
112
|
-
var M =
|
|
113
|
-
return M < 3 ? a.formatDistance("aboutXYears",
|
|
133
|
+
var M = D % 12, h = Math.floor(D / 12);
|
|
134
|
+
return M < 3 ? a.formatDistance("aboutXYears", h, s) : M < 9 ? a.formatDistance("overXYears", h, s) : a.formatDistance("almostXYears", h + 1, s);
|
|
114
135
|
}
|
|
115
136
|
}
|
|
116
|
-
function
|
|
117
|
-
var
|
|
118
|
-
|
|
119
|
-
var
|
|
120
|
-
if (!
|
|
137
|
+
function ie(r, t, e) {
|
|
138
|
+
var n, o, i, a, d, s, g, p, m, w;
|
|
139
|
+
v(2, arguments);
|
|
140
|
+
var l = f(r), D = f(t), u = H(), O = (n = (o = e == null ? void 0 : e.locale) !== null && o !== void 0 ? o : u.locale) !== null && n !== void 0 ? n : E, S = W((i = (a = (d = (s = e == null ? void 0 : e.weekStartsOn) !== null && s !== void 0 ? s : e == null || (g = e.locale) === null || g === void 0 || (p = g.options) === null || p === void 0 ? void 0 : p.weekStartsOn) !== null && d !== void 0 ? d : u.weekStartsOn) !== null && a !== void 0 ? a : (m = u.locale) === null || m === void 0 || (w = m.options) === null || w === void 0 ? void 0 : w.weekStartsOn) !== null && i !== void 0 ? i : 0);
|
|
141
|
+
if (!O.localize)
|
|
121
142
|
throw new RangeError("locale must contain localize property");
|
|
122
|
-
if (!
|
|
143
|
+
if (!O.formatLong)
|
|
123
144
|
throw new RangeError("locale must contain formatLong property");
|
|
124
|
-
if (!
|
|
145
|
+
if (!O.formatRelative)
|
|
125
146
|
throw new RangeError("locale must contain formatRelative property");
|
|
126
|
-
var M =
|
|
147
|
+
var M = X(l, D);
|
|
127
148
|
if (isNaN(M))
|
|
128
149
|
throw new RangeError("Invalid time value");
|
|
129
|
-
var
|
|
130
|
-
M < -6 ?
|
|
131
|
-
var C =
|
|
132
|
-
locale:
|
|
150
|
+
var h;
|
|
151
|
+
M < -6 ? h = "other" : M < -1 ? h = "lastWeek" : M < 0 ? h = "yesterday" : M < 1 ? h = "today" : M < 2 ? h = "tomorrow" : M < 7 ? h = "nextWeek" : h = "other";
|
|
152
|
+
var C = y(l, T(l)), A = y(D, T(D)), j = O.formatRelative(h, C, A, {
|
|
153
|
+
locale: O,
|
|
133
154
|
weekStartsOn: S
|
|
134
155
|
});
|
|
135
|
-
return
|
|
136
|
-
locale:
|
|
156
|
+
return N(l, j, {
|
|
157
|
+
locale: O,
|
|
137
158
|
weekStartsOn: S
|
|
138
159
|
});
|
|
139
160
|
}
|
|
140
|
-
const
|
|
161
|
+
const le = U.base, ue = "timestamp", $ = ({
|
|
141
162
|
id: r,
|
|
142
163
|
className: t,
|
|
143
164
|
style: e,
|
|
144
|
-
time:
|
|
145
|
-
prefix:
|
|
146
|
-
enabledFormats:
|
|
165
|
+
time: n,
|
|
166
|
+
prefix: o,
|
|
167
|
+
enabledFormats: i,
|
|
147
168
|
distanceMaxDays: a,
|
|
148
169
|
relativeMaxDays: d,
|
|
149
|
-
dateFormat:
|
|
150
|
-
locale:
|
|
170
|
+
dateFormat: s,
|
|
171
|
+
locale: g,
|
|
151
172
|
// ...otherProps
|
|
152
|
-
as:
|
|
173
|
+
as: p
|
|
153
174
|
}) => {
|
|
154
|
-
const [m,
|
|
155
|
-
unix: (
|
|
156
|
-
date: (
|
|
157
|
-
distance: (
|
|
158
|
-
relative: (
|
|
159
|
-
}), []),
|
|
160
|
-
|
|
161
|
-
const S = (
|
|
162
|
-
|
|
175
|
+
const [m, w] = z(i[0]), l = F(() => ({
|
|
176
|
+
unix: (u) => Number(u),
|
|
177
|
+
date: (u) => N(new Date(u), s),
|
|
178
|
+
distance: (u) => !a || k(Date.now(), new Date(u)) < a ? se(new Date(u), /* @__PURE__ */ new Date(), { addSuffix: !0, locale: g }) : N(new Date(u), s),
|
|
179
|
+
relative: (u) => !d || k(Date.now(), new Date(u)) < d ? ie(new Date(u), /* @__PURE__ */ new Date(), { locale: g }) : N(new Date(u), s)
|
|
180
|
+
}), []), D = P((u) => {
|
|
181
|
+
u.persist();
|
|
182
|
+
const S = (i.findIndex((M) => M === m) + 1) % i.length;
|
|
183
|
+
w(i[S]);
|
|
163
184
|
}, [m]);
|
|
164
|
-
return Number(
|
|
165
|
-
|
|
185
|
+
return Number(n) ? /* @__PURE__ */ L(
|
|
186
|
+
p,
|
|
166
187
|
{
|
|
167
188
|
id: r,
|
|
168
189
|
className: [
|
|
169
|
-
|
|
170
|
-
|
|
190
|
+
le,
|
|
191
|
+
ue,
|
|
171
192
|
t
|
|
172
|
-
].filter((
|
|
193
|
+
].filter((u) => u).join(" "),
|
|
173
194
|
style: e,
|
|
174
|
-
onClick:
|
|
195
|
+
onClick: i.length > 1 ? D : void 0,
|
|
175
196
|
children: [
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
197
|
+
o && o,
|
|
198
|
+
o && " ",
|
|
199
|
+
l[m](Number(n))
|
|
179
200
|
]
|
|
180
201
|
}
|
|
181
202
|
) : null;
|
|
182
203
|
};
|
|
183
|
-
|
|
204
|
+
$.propTypes = {
|
|
184
205
|
/**
|
|
185
206
|
* The HTML id for this element
|
|
186
207
|
*/
|
|
187
|
-
id:
|
|
208
|
+
id: c.string,
|
|
188
209
|
/**
|
|
189
210
|
* The HTML class names for this element
|
|
190
211
|
*/
|
|
191
|
-
className:
|
|
212
|
+
className: c.string,
|
|
192
213
|
/**
|
|
193
214
|
* The React-written, css properties for this element.
|
|
194
215
|
*/
|
|
195
|
-
style:
|
|
216
|
+
style: c.objectOf(c.string),
|
|
196
217
|
/**
|
|
197
218
|
* The children JSX
|
|
198
219
|
*/
|
|
199
|
-
prefix:
|
|
220
|
+
prefix: c.node,
|
|
200
221
|
/**
|
|
201
222
|
* Which html tag to use
|
|
202
223
|
*/
|
|
203
|
-
as:
|
|
204
|
-
|
|
205
|
-
|
|
224
|
+
as: c.oneOfType([
|
|
225
|
+
c.string,
|
|
226
|
+
c.object
|
|
206
227
|
]),
|
|
207
228
|
/**
|
|
208
229
|
* Formats
|
|
209
230
|
*/
|
|
210
|
-
enabledFormats:
|
|
211
|
-
|
|
231
|
+
enabledFormats: c.arrayOf(
|
|
232
|
+
c.oneOf([
|
|
212
233
|
"unix",
|
|
213
234
|
"date",
|
|
214
235
|
"distance",
|
|
@@ -218,33 +239,33 @@ H.propTypes = {
|
|
|
218
239
|
/**
|
|
219
240
|
* How many days to display distance before reverting to unix display
|
|
220
241
|
*/
|
|
221
|
-
distanceMaxDays:
|
|
242
|
+
distanceMaxDays: c.number,
|
|
222
243
|
/**
|
|
223
244
|
* How many days to display distance before reverting to unix display
|
|
224
245
|
*/
|
|
225
|
-
relativeMaxDays:
|
|
246
|
+
relativeMaxDays: c.number,
|
|
226
247
|
/**
|
|
227
248
|
* Unix Format Read https://date-fns.org/v2.16.1/docs/format for options
|
|
228
249
|
*/
|
|
229
|
-
dateFormat:
|
|
250
|
+
dateFormat: c.string,
|
|
230
251
|
/**
|
|
231
252
|
* The time to display
|
|
232
253
|
*/
|
|
233
|
-
time:
|
|
234
|
-
|
|
235
|
-
|
|
254
|
+
time: c.oneOfType([
|
|
255
|
+
c.object,
|
|
256
|
+
c.number
|
|
236
257
|
]).isRequired,
|
|
237
258
|
/**
|
|
238
259
|
* A Date-DNS locale object. Will default to english.
|
|
239
260
|
*/
|
|
240
|
-
locale:
|
|
261
|
+
locale: c.instanceOf(Object)
|
|
241
262
|
};
|
|
242
|
-
|
|
263
|
+
$.defaultProps = {
|
|
243
264
|
// someProp:false
|
|
244
265
|
as: "p",
|
|
245
266
|
dateFormat: "yyyy-MM-dd'T'HH:mm:ss.SSSxxx",
|
|
246
267
|
enabledFormats: ["unix", "date"]
|
|
247
268
|
};
|
|
248
269
|
export {
|
|
249
|
-
|
|
270
|
+
$ as default
|
|
250
271
|
};
|
package/dist/ui/a/Tip/Tip.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as m, jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { P as s } from "../../../index-
|
|
4
|
-
import { s as g } from "../../../exports.module-
|
|
3
|
+
import { P as s } from "../../../index-BOVlDh8S.js";
|
|
4
|
+
import { s as g } from "../../../exports.module-BY48WvdE.js";
|
|
5
5
|
import '../../../assets/Tip.css';const f = g.base, N = "tip", o = ({
|
|
6
6
|
id: r,
|
|
7
7
|
className: a,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { s as p } from "../../../exports.module-
|
|
3
|
+
import { s as p } from "../../../exports.module-BY48WvdE.js";
|
|
4
4
|
import '../../../assets/ToggleSwitch.css';const b = p.base, h = "toggle-switch", x = ({
|
|
5
5
|
id: a,
|
|
6
6
|
className: o,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as g, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect as v } from "react";
|
|
3
|
-
import { P as e } from "../../../index-
|
|
4
|
-
import { s as y } from "../../../exports.module-
|
|
3
|
+
import { P as e } from "../../../index-BOVlDh8S.js";
|
|
4
|
+
import { s as y } from "../../../exports.module-BY48WvdE.js";
|
|
5
5
|
import '../../../assets/Tooltip.css';const b = y.base, N = "tooltip", n = ({
|
|
6
6
|
id: l,
|
|
7
7
|
className: m,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as Dt } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as Rt, useEffect as Nt } from "react";
|
|
3
|
-
import { P as $ } from "../../../index-
|
|
4
|
-
import {
|
|
5
|
-
import { s as us } from "../../../exports.module-
|
|
3
|
+
import { P as $ } from "../../../index-BOVlDh8S.js";
|
|
4
|
+
import { E as v, I as Ue, g as Fe, c as ke, i as F, a as O, T as je, S as Et, b as ne, F as Ye, d as Wt, s as M, N as E, m as R, f as L, e as Ze, C as It, h as Lt, A as Je, D as Mt, j as ce, k as zt, P as Vt, l as Gt, n as Qt, o as Xt, p as X, q as _t, r as Ut, t as S, L as Ft, u as jt, v as Yt, w as Zt, x as Jt, y as Te, z as Ht, B as Kt, G as ve, H as es, J as ts, K as ss, M as ns, O as rs, Q as os, R as is, U as ls, V as as, W as hs, X as cs } from "../../../index-C3TenDWn.js";
|
|
5
|
+
import { s as us } from "../../../exports.module-BY48WvdE.js";
|
|
6
6
|
import '../../../assets/XMLEditor.css';const fs = (t) => {
|
|
7
7
|
let { state: e } = t, s = e.doc.lineAt(e.selection.main.from), n = ye(t.state, s.from);
|
|
8
8
|
return n.line ? ds(t) : n.block ? ms(t) : !1;
|
|
@@ -119,7 +119,7 @@ function xs(t, e, s = e.selection.ranges) {
|
|
|
119
119
|
}
|
|
120
120
|
return null;
|
|
121
121
|
}
|
|
122
|
-
const ue = /* @__PURE__ */
|
|
122
|
+
const ue = /* @__PURE__ */ Je.define(), ks = /* @__PURE__ */ Je.define(), Ss = /* @__PURE__ */ Ye.define(), Ke = /* @__PURE__ */ Ye.define({
|
|
123
123
|
combine(t) {
|
|
124
124
|
return Wt(t, {
|
|
125
125
|
minDepth: 100,
|
|
@@ -262,7 +262,7 @@ function As(t, e, s) {
|
|
|
262
262
|
if (!t.changes)
|
|
263
263
|
return y.selection(n);
|
|
264
264
|
let r = t.changes.map(e), o = e.mapDesc(t.changes, !0), i = t.mapped ? t.mapped.composeDesc(o) : o;
|
|
265
|
-
return new y(r,
|
|
265
|
+
return new y(r, Ze.mapEffects(t.effects, e), i, t.startSelection.map(o), n);
|
|
266
266
|
}
|
|
267
267
|
const qs = /^(input\.type|delete)($|\.)/;
|
|
268
268
|
class A {
|
|
@@ -275,7 +275,7 @@ class A {
|
|
|
275
275
|
addChanges(e, s, n, r, o) {
|
|
276
276
|
let i = this.done, l = i[i.length - 1];
|
|
277
277
|
return l && l.changes && !l.changes.empty && e.changes && (!n || qs.test(n)) && (!l.selectionsAfter.length && s - this.prevTime < r.newGroupDelay && r.joinToEvent(o, Ts(l.changes, e.changes)) || // For compose (but not compose.start) events, always join with previous event
|
|
278
|
-
n == "input.type.compose") ? i = j(i, i.length - 1, r.minDepth, new y(e.changes.compose(l.changes), st(
|
|
278
|
+
n == "input.type.compose") ? i = j(i, i.length - 1, r.minDepth, new y(e.changes.compose(l.changes), st(Ze.mapEffects(e.effects, l.changes), l.effects), l.mapped, l.startSelection, C)) : i = j(i, i.length, r.minDepth, e), new A(i, C, s, n);
|
|
279
279
|
}
|
|
280
280
|
addSelection(e, s, n, r) {
|
|
281
281
|
let o = this.done.length ? this.done[this.done.length - 1].selectionsAfter : C;
|
|
@@ -528,7 +528,7 @@ const yt = (t, e, s) => z(t, (n) => {
|
|
|
528
528
|
if (t.readOnly)
|
|
529
529
|
return !1;
|
|
530
530
|
let s = t.changeByRange((n) => ({
|
|
531
|
-
changes: { from: n.from, to: n.to, insert:
|
|
531
|
+
changes: { from: n.from, to: n.to, insert: je.of(["", ""]) },
|
|
532
532
|
range: O.cursor(n.from)
|
|
533
533
|
}));
|
|
534
534
|
return e(t.update(s, { scrollIntoView: !0, userEvent: "input" })), !0;
|
|
@@ -620,13 +620,13 @@ function $t(t) {
|
|
|
620
620
|
let n = e.changeByRange((r) => {
|
|
621
621
|
let { from: o, to: i } = r, l = e.doc.lineAt(o), a = !t && o == i && On(e, o);
|
|
622
622
|
t && (o = i = (i <= l.to ? l : e.doc.lineAt(i)).to);
|
|
623
|
-
let h = new
|
|
623
|
+
let h = new Ue(e, { simulateBreak: o, simulateDoubleBreak: !!a }), c = Fe(h, o);
|
|
624
624
|
for (c == null && (c = ke(/^\s*/.exec(e.doc.lineAt(o).text)[0], e.tabSize)); i < l.to && /\s/.test(l.text[i - l.from]); )
|
|
625
625
|
i++;
|
|
626
626
|
a ? { from: o, to: i } = a : o > l.from && o < l.from + 100 && !/\S/.test(l.text.slice(0, o)) && (o = l.from);
|
|
627
627
|
let u = ["", F(e, c)];
|
|
628
628
|
return a && u.push(F(e, h.lineIndent(l.from, -1))), {
|
|
629
|
-
changes: { from: o, to: i, insert:
|
|
629
|
+
changes: { from: o, to: i, insert: je.of(u) },
|
|
630
630
|
range: O.cursor(o + 1 + u[1].length)
|
|
631
631
|
};
|
|
632
632
|
});
|
|
@@ -651,11 +651,11 @@ function be(t, e) {
|
|
|
651
651
|
const xn = ({ state: t, dispatch: e }) => {
|
|
652
652
|
if (t.readOnly)
|
|
653
653
|
return !1;
|
|
654
|
-
let s = /* @__PURE__ */ Object.create(null), n = new
|
|
654
|
+
let s = /* @__PURE__ */ Object.create(null), n = new Ue(t, { overrideIndentation: (o) => {
|
|
655
655
|
let i = s[o];
|
|
656
656
|
return i ?? -1;
|
|
657
657
|
} }), r = be(t, (o, i, l) => {
|
|
658
|
-
let a =
|
|
658
|
+
let a = Fe(n, o.from);
|
|
659
659
|
if (a == null)
|
|
660
660
|
return;
|
|
661
661
|
/\S/.test(o.text) || (a = 0);
|
|
@@ -2243,7 +2243,7 @@ function tr(t, e) {
|
|
|
2243
2243
|
return null;
|
|
2244
2244
|
};
|
|
2245
2245
|
}
|
|
2246
|
-
const xe = /* @__PURE__ */
|
|
2246
|
+
const xe = /* @__PURE__ */ jt.define({
|
|
2247
2247
|
name: "xml",
|
|
2248
2248
|
parser: /* @__PURE__ */ Jn.configure({
|
|
2249
2249
|
props: [
|
|
@@ -2276,7 +2276,7 @@ function sr(t = {}) {
|
|
|
2276
2276
|
let e = [xe.data.of({
|
|
2277
2277
|
autocomplete: tr(t.elements || [], t.attributes || [])
|
|
2278
2278
|
})];
|
|
2279
|
-
return t.autoCloseTags !== !1 && e.push(nr), new
|
|
2279
|
+
return t.autoCloseTags !== !1 && e.push(nr), new Ft(xe, e);
|
|
2280
2280
|
}
|
|
2281
2281
|
function _e(t, e, s = t.length) {
|
|
2282
2282
|
if (!e)
|
|
@@ -2331,7 +2331,7 @@ const nr = /* @__PURE__ */ v.inputHandler.of((t, e, s, n, r) => {
|
|
|
2331
2331
|
const c = Te.create({
|
|
2332
2332
|
doc: i,
|
|
2333
2333
|
extensions: [
|
|
2334
|
-
|
|
2334
|
+
Kt.highest(
|
|
2335
2335
|
ve.of([
|
|
2336
2336
|
{
|
|
2337
2337
|
key: "Enter",
|
|
@@ -2344,7 +2344,6 @@ const nr = /* @__PURE__ */ v.inputHandler.of((t, e, s, n, r) => {
|
|
|
2344
2344
|
Cn,
|
|
2345
2345
|
...ws
|
|
2346
2346
|
]),
|
|
2347
|
-
Kt(),
|
|
2348
2347
|
es(),
|
|
2349
2348
|
ts(),
|
|
2350
2349
|
ss(),
|
|
@@ -2355,9 +2354,10 @@ const nr = /* @__PURE__ */ v.inputHandler.of((t, e, s, n, r) => {
|
|
|
2355
2354
|
ls(),
|
|
2356
2355
|
as(),
|
|
2357
2356
|
hs(),
|
|
2357
|
+
cs(),
|
|
2358
2358
|
sr(),
|
|
2359
2359
|
ys(),
|
|
2360
|
-
|
|
2360
|
+
Ht,
|
|
2361
2361
|
Te.readOnly.of(n),
|
|
2362
2362
|
v.updateListener.of((f) => {
|
|
2363
2363
|
l(f);
|
package/dist/ui/a/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { default as a } from "./AppContext/Context.js";
|
|
2
2
|
import { default as p } from "./AppContext/ContextProvider.js";
|
|
3
3
|
import { default as l } from "./AppContext/useApp.js";
|
|
4
|
-
import { default as
|
|
4
|
+
import { default as d } from "./AppContext/useTheme.js";
|
|
5
5
|
import { default as x } from "./BlurOverlay/BlurOverlay.js";
|
|
6
|
-
import { A as n,
|
|
6
|
+
import { A as n, c, d as C, N as T, k as g } from "../../FormBuilder-D-D63IHE.js";
|
|
7
7
|
import "./Conversation/Context.js";
|
|
8
8
|
import "react";
|
|
9
9
|
import { default as A } from "./DotInfo/DotInfo.js";
|
|
10
10
|
import { default as S } from "./Figure/Figure.js";
|
|
11
|
-
import { default as
|
|
11
|
+
import { default as B } from "./HamburgerButton/HamburgerButton.js";
|
|
12
12
|
import { default as L } from "./IconList/IconList.js";
|
|
13
13
|
import { default as I } from "./Label/Label.js";
|
|
14
|
-
import { default as
|
|
14
|
+
import { default as D } from "./LoadingCircle/LoadingCircle.js";
|
|
15
15
|
import { default as M } from "./People/People.js";
|
|
16
16
|
import { default as y } from "./Popover/Popover.js";
|
|
17
17
|
import { default as F } from "./ProgressBar/ProgressBar.js";
|
|
@@ -27,11 +27,11 @@ import { default as ee } from "./TextSteps/TextSteps.js";
|
|
|
27
27
|
import { default as oe } from "./Removable/Removable.js";
|
|
28
28
|
import { default as ae } from "./ToggleSwitch/ToggleSwitch.js";
|
|
29
29
|
import { default as pe } from "./XMLEditor/XMLEditor.js";
|
|
30
|
-
import {
|
|
31
|
-
import { default as
|
|
30
|
+
import { default as le } from "./DatePicker/DatePicker.js";
|
|
31
|
+
import { default as de } from "./Tooltip/Tooltip.js";
|
|
32
32
|
import { default as xe } from "./Charts/AreaChart/AreaChart.js";
|
|
33
33
|
import { default as ne } from "./Charts/BarChart/BarChart.js";
|
|
34
|
-
import { default as
|
|
34
|
+
import { default as Ce } from "./Charts/PieChart/PieChart.js";
|
|
35
35
|
import { default as ge } from "./ThroughPutIndicator/ThroughPutIndicator.js";
|
|
36
36
|
export {
|
|
37
37
|
Y as AnimatedBlobs,
|
|
@@ -41,20 +41,20 @@ export {
|
|
|
41
41
|
xe as AreaChart,
|
|
42
42
|
ne as BarChart,
|
|
43
43
|
x as BlurOverlay,
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
c as ContentTree,
|
|
45
|
+
C as Conversation,
|
|
46
46
|
le as DatePicker,
|
|
47
47
|
A as DotInfo,
|
|
48
48
|
S as Figure,
|
|
49
|
-
|
|
49
|
+
B as HamburgerButton,
|
|
50
50
|
L as IconList,
|
|
51
51
|
I as Label,
|
|
52
|
-
|
|
52
|
+
D as LoadingCircle,
|
|
53
53
|
U as MetaCard,
|
|
54
54
|
T as Notification,
|
|
55
55
|
g as NotificationStack,
|
|
56
56
|
M as People,
|
|
57
|
-
|
|
57
|
+
Ce as PieChart,
|
|
58
58
|
y as Popover,
|
|
59
59
|
F as ProgressBar,
|
|
60
60
|
O as Quote,
|
|
@@ -67,8 +67,8 @@ export {
|
|
|
67
67
|
J as Timestamp,
|
|
68
68
|
_ as Tip,
|
|
69
69
|
ae as ToggleSwitch,
|
|
70
|
-
|
|
70
|
+
de as Tooltip,
|
|
71
71
|
pe as XMLEditor,
|
|
72
72
|
l as useApp,
|
|
73
|
-
|
|
73
|
+
d as useTheme
|
|
74
74
|
};
|