@bagelink/vue 0.0.687 → 0.0.692
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/components/Accordion.d.ts +12 -0
- package/dist/components/Accordion.d.ts.map +1 -0
- package/dist/components/Accordion.vue.d.ts.map +1 -1
- package/dist/components/AccordionItem.d.ts +34 -0
- package/dist/components/AccordionItem.d.ts.map +1 -0
- package/dist/components/AccordionItem.vue.d.ts +8 -8
- package/dist/components/AccordionItem.vue.d.ts.map +1 -1
- package/dist/components/Alert.d.ts +34 -0
- package/dist/components/Alert.d.ts.map +1 -0
- package/dist/components/Alert.vue.d.ts +11 -12
- package/dist/components/Alert.vue.d.ts.map +1 -1
- package/dist/components/Avatar.d.ts +36 -0
- package/dist/components/Avatar.d.ts.map +1 -0
- package/dist/components/Avatar.vue.d.ts +11 -11
- package/dist/components/Avatar.vue.d.ts.map +1 -1
- package/dist/components/Badge.d.ts +22 -0
- package/dist/components/Badge.d.ts.map +1 -0
- package/dist/components/Badge.vue.d.ts +2 -3
- package/dist/components/Badge.vue.d.ts.map +1 -1
- package/dist/components/BglVideo.d.ts +20 -0
- package/dist/components/BglVideo.d.ts.map +1 -0
- package/dist/components/BglVideo.vue.d.ts +2 -2
- package/dist/components/BglVideo.vue.d.ts.map +1 -1
- package/dist/components/Btn.d.ts +99 -0
- package/dist/components/Btn.d.ts.map +1 -0
- package/dist/components/Btn.vue.d.ts +12 -13
- package/dist/components/Btn.vue.d.ts.map +1 -1
- package/dist/components/Card.d.ts +39 -0
- package/dist/components/Card.d.ts.map +1 -0
- package/dist/components/Card.vue.d.ts +8 -8
- package/dist/components/Card.vue.d.ts.map +1 -1
- package/dist/components/Carousel.d.ts +74 -0
- package/dist/components/Carousel.d.ts.map +1 -0
- package/dist/components/Carousel.vue.d.ts.map +1 -1
- package/dist/components/ComboBox.vue.d.ts +3 -3
- package/dist/components/Comments.vue.d.ts +2 -2
- package/dist/components/ContactSubmissions.vue.d.ts +2 -2
- package/dist/components/DataPreview.d.ts +42 -0
- package/dist/components/DataPreview.d.ts.map +1 -0
- package/dist/components/DataPreview.vue.d.ts +23 -30
- package/dist/components/DataPreview.vue.d.ts.map +1 -1
- package/dist/components/Drop.vue.d.ts +34 -0
- package/dist/components/Drop.vue.d.ts.map +1 -0
- package/dist/components/DropDown.vue.d.ts +3 -3
- package/dist/components/FileUploader.vue.d.ts +60 -0
- package/dist/components/FileUploader.vue.d.ts.map +1 -0
- package/dist/components/Flag.d.ts +20 -0
- package/dist/components/Flag.d.ts.map +1 -0
- package/dist/components/Flag.vue.d.ts +2 -3
- package/dist/components/Flag.vue.d.ts.map +1 -1
- package/dist/components/FormSchema.vue.d.ts +5 -4
- package/dist/components/LangText.vue.d.ts +2 -2
- package/dist/components/ListItem.d.ts +34 -0
- package/dist/components/ListItem.d.ts.map +1 -0
- package/dist/components/ListItem.vue.d.ts +8 -8
- package/dist/components/ListItem.vue.d.ts.map +1 -1
- package/dist/components/ListView.d.ts +13 -0
- package/dist/components/ListView.d.ts.map +1 -0
- package/dist/components/ListView.vue.d.ts.map +1 -1
- package/dist/components/MapEmbed.d.ts +3 -0
- package/dist/components/MapEmbed.d.ts.map +1 -0
- package/dist/components/MapEmbed.vue.d.ts.map +1 -1
- package/dist/components/MaterialIcon.d.ts +26 -0
- package/dist/components/MaterialIcon.d.ts.map +1 -0
- package/dist/components/MaterialIcon.vue.d.ts +4 -4
- package/dist/components/MaterialIcon.vue.d.ts.map +1 -1
- package/dist/components/Modal.d.ts +46 -0
- package/dist/components/Modal.d.ts.map +1 -0
- package/dist/components/Modal.vue.d.ts +8 -9
- package/dist/components/Modal.vue.d.ts.map +1 -1
- package/dist/components/ModalBglForm.vue.d.ts +21 -20
- package/dist/components/ModalConfirm.d.ts +24 -0
- package/dist/components/ModalConfirm.d.ts.map +1 -0
- package/dist/components/ModalConfirm.vue.d.ts +8 -8
- package/dist/components/ModalConfirm.vue.d.ts.map +1 -1
- package/dist/components/ModalForm.d.ts +78 -0
- package/dist/components/ModalForm.d.ts.map +1 -0
- package/dist/components/ModalForm.vue.d.ts +29 -69
- package/dist/components/ModalForm.vue.d.ts.map +1 -1
- package/dist/components/NavBar.d.ts +64 -0
- package/dist/components/NavBar.d.ts.map +1 -0
- package/dist/components/NavBar.vue.d.ts +11 -12
- package/dist/components/NavBar.vue.d.ts.map +1 -1
- package/dist/components/PageTitle.d.ts +24 -0
- package/dist/components/PageTitle.d.ts.map +1 -0
- package/dist/components/PageTitle.vue.d.ts.map +1 -1
- package/dist/components/PersonPreview.vue.d.ts +5 -4
- package/dist/components/PersonPreviewFormkit.vue.d.ts +4 -3
- package/dist/components/RTXEditor.vue.d.ts +3 -3
- package/dist/components/RouterWrapper.d.ts +3 -0
- package/dist/components/RouterWrapper.d.ts.map +1 -0
- package/dist/components/RouterWrapper.vue.d.ts.map +1 -1
- package/dist/components/TabbedLayout.vue.d.ts +5 -4
- package/dist/components/TableSchema.d.ts +35 -0
- package/dist/components/TableSchema.d.ts.map +1 -0
- package/dist/components/TableSchema.vue.d.ts +15 -9
- package/dist/components/TableSchema.vue.d.ts.map +1 -1
- package/dist/components/Title.d.ts +42 -0
- package/dist/components/Title.d.ts.map +1 -0
- package/dist/components/Title.vue.d.ts +1 -1
- package/dist/components/Title.vue.d.ts.map +1 -1
- package/dist/components/TopBar.d.ts +12 -0
- package/dist/components/TopBar.d.ts.map +1 -0
- package/dist/components/TopBar.vue.d.ts.map +1 -1
- package/dist/components/charts/BarChart.vue.d.ts +2 -2
- package/dist/components/dashboard/Lineart.d.ts +20 -0
- package/dist/components/dashboard/Lineart.d.ts.map +1 -0
- package/dist/components/dashboard/Lineart.vue.d.ts +3 -4
- package/dist/components/dashboard/Lineart.vue.d.ts.map +1 -1
- package/dist/components/form/BglField.d.ts +25 -0
- package/dist/components/form/BglField.d.ts.map +1 -0
- package/dist/components/form/BglField.vue.d.ts +5 -6
- package/dist/components/form/BglField.vue.d.ts.map +1 -1
- package/dist/components/form/BglForm.d.ts +75 -0
- package/dist/components/form/BglForm.d.ts.map +1 -0
- package/dist/components/form/BglForm.vue.d.ts +12 -13
- package/dist/components/form/BglForm.vue.d.ts.map +1 -1
- package/dist/components/form/ItemRef.vue.d.ts +5 -3
- package/dist/components/form/ItemRef.vue.d.ts.map +1 -1
- package/dist/components/form/MaterialIcon.vue.d.ts +4 -3
- package/dist/components/form/PlainInputField.vue.d.ts +3 -3
- package/dist/components/form/inputs/CheckInput.d.ts +56 -0
- package/dist/components/form/inputs/CheckInput.d.ts.map +1 -0
- package/dist/components/form/inputs/CheckInput.vue.d.ts +37 -43
- package/dist/components/form/inputs/CheckInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/Checkbox.d.ts +16 -0
- package/dist/components/form/inputs/Checkbox.d.ts.map +1 -0
- package/dist/components/form/inputs/Checkbox.vue.d.ts +17 -5
- package/dist/components/form/inputs/Checkbox.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/ColorPicker.d.ts +48 -0
- package/dist/components/form/inputs/ColorPicker.d.ts.map +1 -0
- package/dist/components/form/inputs/ColorPicker.vue.d.ts +11 -11
- package/dist/components/form/inputs/ColorPicker.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/CurrencyInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/DateInput.d.ts +64 -0
- package/dist/components/form/inputs/DateInput.d.ts.map +1 -0
- package/dist/components/form/inputs/DateInput.vue.d.ts +11 -12
- package/dist/components/form/inputs/DateInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DatePicker.d.ts +33 -0
- package/dist/components/form/inputs/DatePicker.d.ts.map +1 -0
- package/dist/components/form/inputs/DatePicker.vue.d.ts +3 -4
- package/dist/components/form/inputs/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DatetimeInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/DurationInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/DynamicLinkField.vue.d.ts +3 -3
- package/dist/components/form/inputs/EmailInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/FileUpload.d.ts +108 -0
- package/dist/components/form/inputs/FileUpload.d.ts.map +1 -0
- package/dist/components/form/inputs/FileUpload.vue.d.ts +10 -9
- package/dist/components/form/inputs/FileUpload.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/FloatInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/IntInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/JSONInput.d.ts +53 -0
- package/dist/components/form/inputs/JSONInput.d.ts.map +1 -0
- package/dist/components/form/inputs/JSONInput.vue.d.ts +11 -11
- package/dist/components/form/inputs/JSONInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/LinkField.vue.d.ts +3 -3
- package/dist/components/form/inputs/Password.vue.d.ts +3 -3
- package/dist/components/form/inputs/PasswordInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/PlainText.vue.d.ts +3 -3
- package/dist/components/form/inputs/RadioGroup.d.ts +42 -0
- package/dist/components/form/inputs/RadioGroup.d.ts.map +1 -0
- package/dist/components/form/inputs/RadioGroup.vue.d.ts +12 -7
- package/dist/components/form/inputs/RadioGroup.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RadioPillsInput.d.ts +48 -0
- package/dist/components/form/inputs/RadioPillsInput.d.ts.map +1 -0
- package/dist/components/form/inputs/RadioPillsInput.vue.d.ts +12 -13
- package/dist/components/form/inputs/RadioPillsInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts +2 -2
- package/dist/components/form/inputs/RichText.d.ts +20 -0
- package/dist/components/form/inputs/RichText.d.ts.map +1 -0
- package/dist/components/form/inputs/RichText.vue.d.ts +3 -3
- package/dist/components/form/inputs/RichText.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText2/Toolbar.d.ts +22 -0
- package/dist/components/form/inputs/RichText2/Toolbar.d.ts.map +1 -0
- package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts +3 -4
- package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText2/index.d.ts +24 -0
- package/dist/components/form/inputs/RichText2/index.d.ts.map +1 -0
- package/dist/components/form/inputs/RichText2/index.vue.d.ts +3 -4
- package/dist/components/form/inputs/RichText2/index.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichTextEditor.vue.d.ts +3 -3
- package/dist/components/form/inputs/SelectField.vue.d.ts +6 -8
- package/dist/components/form/inputs/SelectField.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectInput.d.ts +55 -0
- package/dist/components/form/inputs/SelectInput.d.ts.map +1 -0
- package/dist/components/form/inputs/SelectInput.vue.d.ts +8 -9
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SignaturePad.d.ts +72 -0
- package/dist/components/form/inputs/SignaturePad.d.ts.map +1 -0
- package/dist/components/form/inputs/SignaturePad.vue.d.ts +11 -12
- package/dist/components/form/inputs/SignaturePad.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TableField.d.ts +45 -0
- package/dist/components/form/inputs/TableField.d.ts.map +1 -0
- package/dist/components/form/inputs/TableField.vue.d.ts +11 -11
- package/dist/components/form/inputs/TableField.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TelInput.d.ts +241 -0
- package/dist/components/form/inputs/TelInput.d.ts.map +1 -0
- package/dist/components/form/inputs/TelInput.vue.d.ts +112 -206
- package/dist/components/form/inputs/TelInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TextArea.vue.d.ts +3 -3
- package/dist/components/form/inputs/TextInput.d.ts +90 -0
- package/dist/components/form/inputs/TextInput.d.ts.map +1 -0
- package/dist/components/form/inputs/TextInput.vue.d.ts +11 -12
- package/dist/components/form/inputs/TextInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/ToggleInput.d.ts +58 -0
- package/dist/components/form/inputs/ToggleInput.d.ts.map +1 -0
- package/dist/components/form/inputs/ToggleInput.vue.d.ts +37 -45
- package/dist/components/form/inputs/ToggleInput.vue.d.ts.map +1 -1
- package/dist/components/formkit/AddressArray.vue.d.ts +2 -2
- package/dist/components/formkit/BankDetailsArray.vue.d.ts +2 -2
- package/dist/components/formkit/ContactArrayFormKit.vue.d.ts +2 -2
- package/dist/components/formkit/FileUploader.vue.d.ts +2 -2
- package/dist/components/formkit/MiscFields.vue.d.ts +2 -2
- package/dist/components/formkit/Toggle.vue.d.ts +2 -2
- package/dist/components/layout/BottomMenu.d.ts +27 -0
- package/dist/components/layout/BottomMenu.d.ts.map +1 -0
- package/dist/components/layout/BottomMenu.vue.d.ts +8 -9
- package/dist/components/layout/BottomMenu.vue.d.ts.map +1 -1
- package/dist/components/layout/Layout.d.ts +58 -0
- package/dist/components/layout/Layout.d.ts.map +1 -0
- package/dist/components/layout/Layout.vue.d.ts +11 -11
- package/dist/components/layout/Layout.vue.d.ts.map +1 -1
- package/dist/components/layout/SidebarMenu.d.ts +38 -0
- package/dist/components/layout/SidebarMenu.d.ts.map +1 -0
- package/dist/components/layout/SidebarMenu.vue.d.ts +8 -9
- package/dist/components/layout/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/components/layout/TabbedLayout.d.ts +42 -0
- package/dist/components/layout/TabbedLayout.d.ts.map +1 -0
- package/dist/components/layout/TabbedLayout.vue.d.ts +8 -9
- package/dist/components/layout/TabbedLayout.vue.d.ts.map +1 -1
- package/dist/components/layout/Tabs.d.ts +31 -0
- package/dist/components/layout/Tabs.d.ts.map +1 -0
- package/dist/components/layout/Tabs.vue.d.ts +8 -9
- package/dist/components/layout/Tabs.vue.d.ts.map +1 -1
- package/dist/components/layout/TabsBody.d.ts +23 -0
- package/dist/components/layout/TabsBody.d.ts.map +1 -0
- package/dist/components/layout/TabsBody.vue.d.ts +8 -8
- package/dist/components/layout/TabsBody.vue.d.ts.map +1 -1
- package/dist/components/layout/TabsNav.d.ts +35 -0
- package/dist/components/layout/TabsNav.d.ts.map +1 -0
- package/dist/components/layout/TabsNav.vue.d.ts +3 -4
- package/dist/components/layout/TabsNav.vue.d.ts.map +1 -1
- package/dist/components/whatsapp/form/MsgTemplate.vue.d.ts +4 -3
- package/dist/components/whatsapp/form/TextVariableExamples.vue.d.ts +2 -2
- package/dist/composables/index.d.ts +0 -1
- package/dist/index.cjs +226 -166
- package/dist/index.mjs +226 -166
- package/dist/plugins/bagel.d.ts +0 -1
- package/dist/plugins/modal.d.ts +0 -1
- package/dist/style.css +63 -130
- package/dist/types/BagelForm.d.ts +0 -1
- package/dist/types/BtnOptions.d.ts +0 -1
- package/dist/types/NavLink.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/BagelFormUtils.d.ts +0 -1
- package/dist/utils/allCountries.d.ts +0 -1
- package/dist/utils/clickOutside.d.ts +0 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/lang.d.ts +1 -1
- package/dist/utils/lang.d.ts.map +1 -1
- package/dist/utils/objects.d.ts +1 -0
- package/package.json +14 -14
- package/src/components/form/inputs/DatePicker.vue +1 -1
- package/src/components/form/inputs/FileUpload.vue +3 -1
- package/src/components/form/inputs/SelectInput.vue +4 -0
- package/src/components/form/inputs/TelInput.vue +53 -74
- package/src/styles/layout.css +17 -50
- package/src/styles/mobilLayout.css +16 -47
- package/src/styles/text.css +0 -8
- package/src/types/index.ts +0 -1
- package/src/utils/index.ts +1 -3
- package/src/utils/lang.ts +1 -1
- package/dist/components/Popover.vue.d.ts +0 -10
- package/dist/components/Popover.vue.d.ts.map +0 -1
- package/dist/types/materialIcon.d.ts +0 -2
- package/dist/types/materialIcon.d.ts.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -110,21 +110,12 @@ function getPaddingObject(padding) {
|
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
function rectToClientRect$1(rect) {
|
|
113
|
-
const {
|
|
114
|
-
x: x2,
|
|
115
|
-
y: y2,
|
|
116
|
-
width,
|
|
117
|
-
height
|
|
118
|
-
} = rect;
|
|
119
113
|
return {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
bottom: y2 + height,
|
|
126
|
-
x: x2,
|
|
127
|
-
y: y2
|
|
114
|
+
...rect,
|
|
115
|
+
top: rect.y,
|
|
116
|
+
left: rect.x,
|
|
117
|
+
right: rect.x + rect.width,
|
|
118
|
+
bottom: rect.y + rect.height
|
|
128
119
|
};
|
|
129
120
|
}
|
|
130
121
|
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
@@ -295,10 +286,9 @@ async function detectOverflow$1(state2, options) {
|
|
|
295
286
|
strategy
|
|
296
287
|
}));
|
|
297
288
|
const rect = elementContext === "floating" ? {
|
|
289
|
+
...rects.floating,
|
|
298
290
|
x: x2,
|
|
299
|
-
y: y2
|
|
300
|
-
width: rects.floating.width,
|
|
301
|
-
height: rects.floating.height
|
|
291
|
+
y: y2
|
|
302
292
|
} : rects.reference;
|
|
303
293
|
const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));
|
|
304
294
|
const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
|
|
@@ -509,12 +499,10 @@ const flip$2 = function(options) {
|
|
|
509
499
|
return {};
|
|
510
500
|
}
|
|
511
501
|
const side = getSide$1(placement);
|
|
512
|
-
const initialSideAxis = getSideAxis(initialPlacement);
|
|
513
502
|
const isBasePlacement = getSide$1(initialPlacement) === initialPlacement;
|
|
514
503
|
const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
|
|
515
504
|
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement$1(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
516
|
-
|
|
517
|
-
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
|
|
505
|
+
if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== "none") {
|
|
518
506
|
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
519
507
|
}
|
|
520
508
|
const placements2 = [initialPlacement, ...fallbackPlacements];
|
|
@@ -551,16 +539,8 @@ const flip$2 = function(options) {
|
|
|
551
539
|
if (!resetPlacement) {
|
|
552
540
|
switch (fallbackStrategy) {
|
|
553
541
|
case "bestFit": {
|
|
554
|
-
var _overflowsData$
|
|
555
|
-
const placement2 = (_overflowsData$
|
|
556
|
-
if (hasFallbackAxisSideDirection) {
|
|
557
|
-
const currentSideAxis = getSideAxis(d2.placement);
|
|
558
|
-
return currentSideAxis === initialSideAxis || // Create a bias to the `y` side axis due to horizontal
|
|
559
|
-
// reading directions favoring greater width.
|
|
560
|
-
currentSideAxis === "y";
|
|
561
|
-
}
|
|
562
|
-
return true;
|
|
563
|
-
}).map((d2) => [d2.placement, d2.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a2, b2) => a2[1] - b2[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
|
|
542
|
+
var _overflowsData$map$so;
|
|
543
|
+
const placement2 = (_overflowsData$map$so = overflowsData.map((d2) => [d2.placement, d2.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a2, b2) => a2[1] - b2[1])[0]) == null ? void 0 : _overflowsData$map$so[0];
|
|
564
544
|
if (placement2) {
|
|
565
545
|
resetPlacement = placement2;
|
|
566
546
|
}
|
|
@@ -755,16 +735,16 @@ const size = function(options) {
|
|
|
755
735
|
widthSide = side;
|
|
756
736
|
heightSide = alignment === "end" ? "top" : "bottom";
|
|
757
737
|
}
|
|
758
|
-
const
|
|
759
|
-
const
|
|
760
|
-
const overflowAvailableHeight = min$3(height - overflow[heightSide], maximumClippingHeight);
|
|
761
|
-
const overflowAvailableWidth = min$3(width - overflow[widthSide], maximumClippingWidth);
|
|
738
|
+
const overflowAvailableHeight = height - overflow[heightSide];
|
|
739
|
+
const overflowAvailableWidth = width - overflow[widthSide];
|
|
762
740
|
const noShift = !state2.middlewareData.shift;
|
|
763
741
|
let availableHeight = overflowAvailableHeight;
|
|
764
742
|
let availableWidth = overflowAvailableWidth;
|
|
765
743
|
if (isYAxis) {
|
|
744
|
+
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
766
745
|
availableWidth = alignment || noShift ? min$3(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
|
|
767
746
|
} else {
|
|
747
|
+
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
768
748
|
availableHeight = alignment || noShift ? min$3(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
|
|
769
749
|
}
|
|
770
750
|
if (noShift && !alignment) {
|
|
@@ -2845,6 +2825,26 @@ const toJSONObject = (obj) => {
|
|
|
2845
2825
|
};
|
|
2846
2826
|
const isAsyncFn = kindOfTest("AsyncFunction");
|
|
2847
2827
|
const isThenable = (thing) => thing && (isObject$1(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
|
|
2828
|
+
const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
2829
|
+
if (setImmediateSupported) {
|
|
2830
|
+
return setImmediate;
|
|
2831
|
+
}
|
|
2832
|
+
return postMessageSupported ? ((token, callbacks) => {
|
|
2833
|
+
_global.addEventListener("message", ({ source, data: data2 }) => {
|
|
2834
|
+
if (source === _global && data2 === token) {
|
|
2835
|
+
callbacks.length && callbacks.shift()();
|
|
2836
|
+
}
|
|
2837
|
+
}, false);
|
|
2838
|
+
return (cb) => {
|
|
2839
|
+
callbacks.push(cb);
|
|
2840
|
+
_global.postMessage(token, "*");
|
|
2841
|
+
};
|
|
2842
|
+
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
2843
|
+
})(
|
|
2844
|
+
typeof setImmediate === "function",
|
|
2845
|
+
isFunction$1(_global.postMessage)
|
|
2846
|
+
);
|
|
2847
|
+
const asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
2848
2848
|
const utils$1 = {
|
|
2849
2849
|
isArray,
|
|
2850
2850
|
isArrayBuffer,
|
|
@@ -2901,7 +2901,9 @@ const utils$1 = {
|
|
|
2901
2901
|
isSpecCompliantForm,
|
|
2902
2902
|
toJSONObject,
|
|
2903
2903
|
isAsyncFn,
|
|
2904
|
-
isThenable
|
|
2904
|
+
isThenable,
|
|
2905
|
+
setImmediate: _setImmediate,
|
|
2906
|
+
asap
|
|
2905
2907
|
};
|
|
2906
2908
|
function AxiosError(message2, code2, config, request, response) {
|
|
2907
2909
|
Error.call(this);
|
|
@@ -3736,27 +3738,35 @@ function speedometer(samplesCount, min2) {
|
|
|
3736
3738
|
}
|
|
3737
3739
|
function throttle$2(fn3, freq) {
|
|
3738
3740
|
let timestamp = 0;
|
|
3739
|
-
|
|
3740
|
-
let
|
|
3741
|
-
|
|
3742
|
-
|
|
3741
|
+
let threshold = 1e3 / freq;
|
|
3742
|
+
let lastArgs;
|
|
3743
|
+
let timer;
|
|
3744
|
+
const invoke = (args, now = Date.now()) => {
|
|
3745
|
+
timestamp = now;
|
|
3746
|
+
lastArgs = null;
|
|
3747
|
+
if (timer) {
|
|
3748
|
+
clearTimeout(timer);
|
|
3749
|
+
timer = null;
|
|
3750
|
+
}
|
|
3751
|
+
fn3.apply(null, args);
|
|
3752
|
+
};
|
|
3753
|
+
const throttled = (...args) => {
|
|
3743
3754
|
const now = Date.now();
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3755
|
+
const passed = now - timestamp;
|
|
3756
|
+
if (passed >= threshold) {
|
|
3757
|
+
invoke(args, now);
|
|
3758
|
+
} else {
|
|
3759
|
+
lastArgs = args;
|
|
3760
|
+
if (!timer) {
|
|
3761
|
+
timer = setTimeout(() => {
|
|
3762
|
+
timer = null;
|
|
3763
|
+
invoke(lastArgs);
|
|
3764
|
+
}, threshold - passed);
|
|
3748
3765
|
}
|
|
3749
|
-
timestamp = now;
|
|
3750
|
-
return fn3.apply(null, arguments);
|
|
3751
|
-
}
|
|
3752
|
-
if (!timer) {
|
|
3753
|
-
timer = setTimeout(() => {
|
|
3754
|
-
timer = null;
|
|
3755
|
-
timestamp = Date.now();
|
|
3756
|
-
return fn3.apply(null, arguments);
|
|
3757
|
-
}, threshold - (now - timestamp));
|
|
3758
3766
|
}
|
|
3759
3767
|
};
|
|
3768
|
+
const flush = () => lastArgs && invoke(lastArgs);
|
|
3769
|
+
return [throttled, flush];
|
|
3760
3770
|
}
|
|
3761
3771
|
const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
3762
3772
|
let bytesNotified = 0;
|
|
@@ -3776,12 +3786,21 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
|
3776
3786
|
rate: rate ? rate : void 0,
|
|
3777
3787
|
estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
|
|
3778
3788
|
event: e,
|
|
3779
|
-
lengthComputable: total != null
|
|
3789
|
+
lengthComputable: total != null,
|
|
3790
|
+
[isDownloadStream ? "download" : "upload"]: true
|
|
3780
3791
|
};
|
|
3781
|
-
data2[isDownloadStream ? "download" : "upload"] = true;
|
|
3782
3792
|
listener(data2);
|
|
3783
3793
|
}, freq);
|
|
3784
3794
|
};
|
|
3795
|
+
const progressEventDecorator = (total, throttled) => {
|
|
3796
|
+
const lengthComputable = total != null;
|
|
3797
|
+
return [(loaded) => throttled[0]({
|
|
3798
|
+
lengthComputable,
|
|
3799
|
+
total,
|
|
3800
|
+
loaded
|
|
3801
|
+
}), throttled[1]];
|
|
3802
|
+
};
|
|
3803
|
+
const asyncDecorator = (fn3) => (...args) => utils$1.asap(() => fn3(...args));
|
|
3785
3804
|
const isURLSameOrigin = platform.hasStandardBrowserEnv ? (
|
|
3786
3805
|
// Standard browser envs have full support of the APIs needed to test
|
|
3787
3806
|
// whether the request URL is of the same origin as current location.
|
|
@@ -3979,15 +3998,15 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
3979
3998
|
const _config = resolveConfig(config);
|
|
3980
3999
|
let requestData = _config.data;
|
|
3981
4000
|
const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
|
|
3982
|
-
let { responseType } = _config;
|
|
4001
|
+
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
3983
4002
|
let onCanceled;
|
|
4003
|
+
let uploadThrottled, downloadThrottled;
|
|
4004
|
+
let flushUpload, flushDownload;
|
|
3984
4005
|
function done() {
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
_config.signal.removeEventListener("abort", onCanceled);
|
|
3990
|
-
}
|
|
4006
|
+
flushUpload && flushUpload();
|
|
4007
|
+
flushDownload && flushDownload();
|
|
4008
|
+
_config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
|
|
4009
|
+
_config.signal && _config.signal.removeEventListener("abort", onCanceled);
|
|
3991
4010
|
}
|
|
3992
4011
|
let request = new XMLHttpRequest();
|
|
3993
4012
|
request.open(_config.method.toUpperCase(), _config.url, true);
|
|
@@ -4034,11 +4053,11 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
4034
4053
|
if (!request) {
|
|
4035
4054
|
return;
|
|
4036
4055
|
}
|
|
4037
|
-
reject3(new AxiosError("Request aborted", AxiosError.ECONNABORTED,
|
|
4056
|
+
reject3(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
|
|
4038
4057
|
request = null;
|
|
4039
4058
|
};
|
|
4040
4059
|
request.onerror = function handleError() {
|
|
4041
|
-
reject3(new AxiosError("Network Error", AxiosError.ERR_NETWORK,
|
|
4060
|
+
reject3(new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request));
|
|
4042
4061
|
request = null;
|
|
4043
4062
|
};
|
|
4044
4063
|
request.ontimeout = function handleTimeout() {
|
|
@@ -4050,7 +4069,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
4050
4069
|
reject3(new AxiosError(
|
|
4051
4070
|
timeoutErrorMessage,
|
|
4052
4071
|
transitional2.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
|
|
4053
|
-
|
|
4072
|
+
config,
|
|
4054
4073
|
request
|
|
4055
4074
|
));
|
|
4056
4075
|
request = null;
|
|
@@ -4067,11 +4086,14 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
4067
4086
|
if (responseType && responseType !== "json") {
|
|
4068
4087
|
request.responseType = _config.responseType;
|
|
4069
4088
|
}
|
|
4070
|
-
if (
|
|
4071
|
-
|
|
4089
|
+
if (onDownloadProgress) {
|
|
4090
|
+
[downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
|
|
4091
|
+
request.addEventListener("progress", downloadThrottled);
|
|
4072
4092
|
}
|
|
4073
|
-
if (
|
|
4074
|
-
|
|
4093
|
+
if (onUploadProgress && request.upload) {
|
|
4094
|
+
[uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);
|
|
4095
|
+
request.upload.addEventListener("progress", uploadThrottled);
|
|
4096
|
+
request.upload.addEventListener("loadend", flushUpload);
|
|
4075
4097
|
}
|
|
4076
4098
|
if (_config.cancelToken || _config.signal) {
|
|
4077
4099
|
onCanceled = (cancel) => {
|
|
@@ -4149,39 +4171,52 @@ const readBytes = async function* (iterable, chunkSize, encode2) {
|
|
|
4149
4171
|
const trackStream = (stream, chunkSize, onProgress, onFinish, encode2) => {
|
|
4150
4172
|
const iterator = readBytes(stream, chunkSize, encode2);
|
|
4151
4173
|
let bytes = 0;
|
|
4174
|
+
let done;
|
|
4175
|
+
let _onFinish = (e) => {
|
|
4176
|
+
if (!done) {
|
|
4177
|
+
done = true;
|
|
4178
|
+
onFinish && onFinish(e);
|
|
4179
|
+
}
|
|
4180
|
+
};
|
|
4152
4181
|
return new ReadableStream({
|
|
4153
|
-
type: "bytes",
|
|
4154
4182
|
async pull(controller) {
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4183
|
+
try {
|
|
4184
|
+
const { done: done2, value } = await iterator.next();
|
|
4185
|
+
if (done2) {
|
|
4186
|
+
_onFinish();
|
|
4187
|
+
controller.close();
|
|
4188
|
+
return;
|
|
4189
|
+
}
|
|
4190
|
+
let len = value.byteLength;
|
|
4191
|
+
if (onProgress) {
|
|
4192
|
+
let loadedBytes = bytes += len;
|
|
4193
|
+
onProgress(loadedBytes);
|
|
4194
|
+
}
|
|
4195
|
+
controller.enqueue(new Uint8Array(value));
|
|
4196
|
+
} catch (err) {
|
|
4197
|
+
_onFinish(err);
|
|
4198
|
+
throw err;
|
|
4160
4199
|
}
|
|
4161
|
-
let len = value.byteLength;
|
|
4162
|
-
onProgress && onProgress(bytes += len);
|
|
4163
|
-
controller.enqueue(new Uint8Array(value));
|
|
4164
4200
|
},
|
|
4165
4201
|
cancel(reason) {
|
|
4166
|
-
|
|
4202
|
+
_onFinish(reason);
|
|
4167
4203
|
return iterator.return();
|
|
4168
4204
|
}
|
|
4169
4205
|
}, {
|
|
4170
4206
|
highWaterMark: 2
|
|
4171
4207
|
});
|
|
4172
4208
|
};
|
|
4173
|
-
const fetchProgressDecorator = (total, fn3) => {
|
|
4174
|
-
const lengthComputable = total != null;
|
|
4175
|
-
return (loaded) => setTimeout(() => fn3({
|
|
4176
|
-
lengthComputable,
|
|
4177
|
-
total,
|
|
4178
|
-
loaded
|
|
4179
|
-
}));
|
|
4180
|
-
};
|
|
4181
4209
|
const isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
|
|
4182
4210
|
const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
|
|
4183
4211
|
const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
|
|
4184
|
-
const
|
|
4212
|
+
const test = (fn3, ...args) => {
|
|
4213
|
+
try {
|
|
4214
|
+
return !!fn3(...args);
|
|
4215
|
+
} catch (e) {
|
|
4216
|
+
return false;
|
|
4217
|
+
}
|
|
4218
|
+
};
|
|
4219
|
+
const supportsRequestStream = isReadableStreamSupported && test(() => {
|
|
4185
4220
|
let duplexAccessed = false;
|
|
4186
4221
|
const hasContentType = new Request(platform.origin, {
|
|
4187
4222
|
body: new ReadableStream(),
|
|
@@ -4192,14 +4227,9 @@ const supportsRequestStream = isReadableStreamSupported && (() => {
|
|
|
4192
4227
|
}
|
|
4193
4228
|
}).headers.has("Content-Type");
|
|
4194
4229
|
return duplexAccessed && !hasContentType;
|
|
4195
|
-
})
|
|
4230
|
+
});
|
|
4196
4231
|
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
4197
|
-
const supportsResponseStream = isReadableStreamSupported &&
|
|
4198
|
-
try {
|
|
4199
|
-
return utils$1.isReadableStream(new Response("").body);
|
|
4200
|
-
} catch (err) {
|
|
4201
|
-
}
|
|
4202
|
-
})();
|
|
4232
|
+
const supportsResponseStream = isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body));
|
|
4203
4233
|
const resolvers = {
|
|
4204
4234
|
stream: supportsResponseStream && ((res) => res.body)
|
|
4205
4235
|
};
|
|
@@ -4220,7 +4250,7 @@ const getBodyLength = async (body) => {
|
|
|
4220
4250
|
if (utils$1.isSpecCompliantForm(body)) {
|
|
4221
4251
|
return (await new Request(body).arrayBuffer()).byteLength;
|
|
4222
4252
|
}
|
|
4223
|
-
if (utils$1.isArrayBufferView(body)) {
|
|
4253
|
+
if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
|
|
4224
4254
|
return body.byteLength;
|
|
4225
4255
|
}
|
|
4226
4256
|
if (utils$1.isURLSearchParams(body)) {
|
|
@@ -4271,14 +4301,15 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
4271
4301
|
headers.setContentType(contentTypeHeader);
|
|
4272
4302
|
}
|
|
4273
4303
|
if (_request.body) {
|
|
4274
|
-
|
|
4304
|
+
const [onProgress, flush] = progressEventDecorator(
|
|
4275
4305
|
requestContentLength,
|
|
4276
|
-
progressEventReducer(onUploadProgress)
|
|
4277
|
-
)
|
|
4306
|
+
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
4307
|
+
);
|
|
4308
|
+
data2 = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush, encodeText);
|
|
4278
4309
|
}
|
|
4279
4310
|
}
|
|
4280
4311
|
if (!utils$1.isString(withCredentials)) {
|
|
4281
|
-
withCredentials = withCredentials ? "
|
|
4312
|
+
withCredentials = withCredentials ? "include" : "omit";
|
|
4282
4313
|
}
|
|
4283
4314
|
request = new Request(url, {
|
|
4284
4315
|
...fetchOptions,
|
|
@@ -4287,7 +4318,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
4287
4318
|
headers: headers.normalize().toJSON(),
|
|
4288
4319
|
body: data2,
|
|
4289
4320
|
duplex: "half",
|
|
4290
|
-
withCredentials
|
|
4321
|
+
credentials: withCredentials
|
|
4291
4322
|
});
|
|
4292
4323
|
let response = await fetch(request);
|
|
4293
4324
|
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
@@ -4297,11 +4328,15 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
4297
4328
|
options[prop3] = response[prop3];
|
|
4298
4329
|
});
|
|
4299
4330
|
const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
|
|
4331
|
+
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
4332
|
+
responseContentLength,
|
|
4333
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
4334
|
+
) || [];
|
|
4300
4335
|
response = new Response(
|
|
4301
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE,
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4336
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
4337
|
+
flush && flush();
|
|
4338
|
+
isStreamResponse && onFinish();
|
|
4339
|
+
}, encodeText),
|
|
4305
4340
|
options
|
|
4306
4341
|
);
|
|
4307
4342
|
}
|
|
@@ -4427,7 +4462,7 @@ function dispatchRequest(config) {
|
|
|
4427
4462
|
return Promise.reject(reason);
|
|
4428
4463
|
});
|
|
4429
4464
|
}
|
|
4430
|
-
const VERSION = "1.7.
|
|
4465
|
+
const VERSION = "1.7.4";
|
|
4431
4466
|
const validators$1 = {};
|
|
4432
4467
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type3, i2) => {
|
|
4433
4468
|
validators$1[type3] = function validator2(thing) {
|
|
@@ -5318,9 +5353,7 @@ function denullify(itemData, fieldID) {
|
|
|
5318
5353
|
}
|
|
5319
5354
|
const isDate$1 = (dateToTest) => !Number.isNaN(Date.parse(dateToTest));
|
|
5320
5355
|
function getFallbackSchema(data2, showFields) {
|
|
5321
|
-
const keys4 = [
|
|
5322
|
-
...new Set((data2 ?? []).map(Object.keys).flat())
|
|
5323
|
-
];
|
|
5356
|
+
const keys4 = Array.from(new Set((data2 ?? []).map(Object.keys).flat()));
|
|
5324
5357
|
const schema = keys4.map(
|
|
5325
5358
|
(id) => ({
|
|
5326
5359
|
id,
|
|
@@ -16074,7 +16107,7 @@ const _hoisted_4$c = {
|
|
|
16074
16107
|
};
|
|
16075
16108
|
const _hoisted_5$c = ["value"];
|
|
16076
16109
|
const _hoisted_6$7 = { class: "selectinput-options" };
|
|
16077
|
-
const _hoisted_7$3 = ["onClick"];
|
|
16110
|
+
const _hoisted_7$3 = ["aria-selected", "onClick", "onKeydown"];
|
|
16078
16111
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
16079
16112
|
__name: "SelectInput",
|
|
16080
16113
|
props: {
|
|
@@ -16244,7 +16277,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
16244
16277
|
return openBlock(), createElementBlock("div", {
|
|
16245
16278
|
key: `${option2}${i2}`,
|
|
16246
16279
|
class: normalizeClass(["selectinput-option hover gap-1", { selected: isSelected(option2) }]),
|
|
16247
|
-
|
|
16280
|
+
role: "option",
|
|
16281
|
+
tabindex: "0",
|
|
16282
|
+
"aria-selected": isSelected(option2),
|
|
16283
|
+
onClick: ($event) => select2(option2),
|
|
16284
|
+
onKeydown: withKeys(($event) => select2(option2), ["enter"])
|
|
16248
16285
|
}, [
|
|
16249
16286
|
isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$P), {
|
|
16250
16287
|
key: 0,
|
|
@@ -16256,7 +16293,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
16256
16293
|
icon: "fiber_manual_record"
|
|
16257
16294
|
})) : createCommentVNode("", true),
|
|
16258
16295
|
createElementVNode("span", null, toDisplayString(getLabel(option2)), 1)
|
|
16259
|
-
],
|
|
16296
|
+
], 42, _hoisted_7$3);
|
|
16260
16297
|
}), 128))
|
|
16261
16298
|
]),
|
|
16262
16299
|
renderSlot(_ctx.$slots, "last", {}, void 0, true)
|
|
@@ -16312,7 +16349,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
16312
16349
|
};
|
|
16313
16350
|
}
|
|
16314
16351
|
});
|
|
16315
|
-
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-
|
|
16352
|
+
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-b33955d5"]]);
|
|
16316
16353
|
/*!
|
|
16317
16354
|
* vue-draggable-next v2.2.0
|
|
16318
16355
|
* (c) 2023 Anish George
|
|
@@ -19306,7 +19343,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
19306
19343
|
}
|
|
19307
19344
|
});
|
|
19308
19345
|
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-d86ce838"]]);
|
|
19309
|
-
const _withScopeId$2 = (n2) => (pushScopeId("data-v-
|
|
19346
|
+
const _withScopeId$2 = (n2) => (pushScopeId("data-v-4c71cd49"), n2 = n2(), popScopeId(), n2);
|
|
19310
19347
|
const _hoisted_1$k = { class: "bagel-input" };
|
|
19311
19348
|
const _hoisted_2$f = {
|
|
19312
19349
|
key: 0,
|
|
@@ -19343,7 +19380,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19343
19380
|
width: {},
|
|
19344
19381
|
topic: {}
|
|
19345
19382
|
},
|
|
19346
|
-
emits: ["update:modelValue"],
|
|
19383
|
+
emits: ["update:modelValue", "addFileStart"],
|
|
19347
19384
|
setup(__props, { emit: __emit }) {
|
|
19348
19385
|
const props2 = __props;
|
|
19349
19386
|
const emit2 = __emit;
|
|
@@ -19412,6 +19449,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19412
19449
|
updateModelValue();
|
|
19413
19450
|
}
|
|
19414
19451
|
async function flushQueue() {
|
|
19452
|
+
emit2("addFileStart");
|
|
19415
19453
|
for (const file of fileQueue.value) {
|
|
19416
19454
|
file.uploading = true;
|
|
19417
19455
|
if (!props2.multiple) storageFiles.value.splice(0, 1);
|
|
@@ -19553,7 +19591,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19553
19591
|
};
|
|
19554
19592
|
}
|
|
19555
19593
|
});
|
|
19556
|
-
const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
19594
|
+
const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-4c71cd49"]]);
|
|
19557
19595
|
const _withScopeId$1 = (n2) => (pushScopeId("data-v-06b95183"), n2 = n2(), popScopeId(), n2);
|
|
19558
19596
|
const _hoisted_1$j = ["title"];
|
|
19559
19597
|
const _hoisted_2$e = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
|
|
@@ -32251,7 +32289,7 @@ function pasteRulesPlugin(props2) {
|
|
|
32251
32289
|
}
|
|
32252
32290
|
function findDuplicates(items) {
|
|
32253
32291
|
const filtered = items.filter((el, index2) => items.indexOf(el) !== index2);
|
|
32254
|
-
return
|
|
32292
|
+
return Array.from(new Set(filtered));
|
|
32255
32293
|
}
|
|
32256
32294
|
class ExtensionManager {
|
|
32257
32295
|
constructor(extensions, editor) {
|
|
@@ -33442,7 +33480,7 @@ function getMarksBetween(from2, to2, doc2) {
|
|
|
33442
33480
|
const marks = [];
|
|
33443
33481
|
if (from2 === to2) {
|
|
33444
33482
|
doc2.resolve(from2).marks().forEach((mark) => {
|
|
33445
|
-
const $pos = doc2.resolve(from2
|
|
33483
|
+
const $pos = doc2.resolve(from2);
|
|
33446
33484
|
const range2 = getMarkRange($pos, mark.type);
|
|
33447
33485
|
if (!range2) {
|
|
33448
33486
|
return;
|
|
@@ -33556,27 +33594,36 @@ function isList(name, extensions) {
|
|
|
33556
33594
|
}
|
|
33557
33595
|
return group.split(" ").includes("list");
|
|
33558
33596
|
}
|
|
33559
|
-
function isNodeEmpty(node, { checkChildren
|
|
33597
|
+
function isNodeEmpty(node, { checkChildren = true, ignoreWhitespace = false } = {}) {
|
|
33598
|
+
var _a2;
|
|
33599
|
+
if (ignoreWhitespace) {
|
|
33600
|
+
if (node.type.name === "hardBreak") {
|
|
33601
|
+
return true;
|
|
33602
|
+
}
|
|
33603
|
+
if (node.isText) {
|
|
33604
|
+
return /^\s*$/m.test((_a2 = node.text) !== null && _a2 !== void 0 ? _a2 : "");
|
|
33605
|
+
}
|
|
33606
|
+
}
|
|
33560
33607
|
if (node.isText) {
|
|
33561
33608
|
return !node.text;
|
|
33562
33609
|
}
|
|
33610
|
+
if (node.isAtom || node.isLeaf) {
|
|
33611
|
+
return false;
|
|
33612
|
+
}
|
|
33563
33613
|
if (node.content.childCount === 0) {
|
|
33564
33614
|
return true;
|
|
33565
33615
|
}
|
|
33566
|
-
if (node.isLeaf) {
|
|
33567
|
-
return false;
|
|
33568
|
-
}
|
|
33569
33616
|
if (checkChildren) {
|
|
33570
|
-
let
|
|
33617
|
+
let isContentEmpty = true;
|
|
33571
33618
|
node.content.forEach((childNode) => {
|
|
33572
|
-
if (
|
|
33619
|
+
if (isContentEmpty === false) {
|
|
33573
33620
|
return;
|
|
33574
33621
|
}
|
|
33575
|
-
if (!isNodeEmpty(childNode)) {
|
|
33576
|
-
|
|
33622
|
+
if (!isNodeEmpty(childNode, { ignoreWhitespace, checkChildren })) {
|
|
33623
|
+
isContentEmpty = false;
|
|
33577
33624
|
}
|
|
33578
33625
|
});
|
|
33579
|
-
return
|
|
33626
|
+
return isContentEmpty;
|
|
33580
33627
|
}
|
|
33581
33628
|
return false;
|
|
33582
33629
|
}
|
|
@@ -33790,7 +33837,7 @@ const splitBlock = ({ keepMarks = true } = {}) => ({ tr: tr2, state: state2, dis
|
|
|
33790
33837
|
}
|
|
33791
33838
|
return can;
|
|
33792
33839
|
};
|
|
33793
|
-
const splitListItem = (typeOrName) => ({ tr: tr2, state: state2, dispatch, editor }) => {
|
|
33840
|
+
const splitListItem = (typeOrName, overrideAttrs = {}) => ({ tr: tr2, state: state2, dispatch, editor }) => {
|
|
33794
33841
|
var _a2;
|
|
33795
33842
|
const type3 = getNodeType(typeOrName, state2.schema);
|
|
33796
33843
|
const { $from, $to } = state2.selection;
|
|
@@ -33814,7 +33861,10 @@ const splitListItem = (typeOrName) => ({ tr: tr2, state: state2, dispatch, edito
|
|
|
33814
33861
|
wrap2 = Fragment.from($from.node(d2).copy(wrap2));
|
|
33815
33862
|
}
|
|
33816
33863
|
const depthAfter = $from.indexAfter(-1) < $from.node(-2).childCount ? 1 : $from.indexAfter(-2) < $from.node(-3).childCount ? 2 : 3;
|
|
33817
|
-
const newNextTypeAttributes2 =
|
|
33864
|
+
const newNextTypeAttributes2 = {
|
|
33865
|
+
...getSplittedAttributes(extensionAttributes, $from.node().type.name, $from.node().attrs),
|
|
33866
|
+
...overrideAttrs
|
|
33867
|
+
};
|
|
33818
33868
|
const nextType2 = ((_a2 = type3.contentMatch.defaultType) === null || _a2 === void 0 ? void 0 : _a2.createAndFill(newNextTypeAttributes2)) || void 0;
|
|
33819
33869
|
wrap2 = wrap2.append(Fragment.from(type3.createAndFill(null, nextType2) || void 0));
|
|
33820
33870
|
const start2 = $from.before($from.depth - (depthBefore - 1));
|
|
@@ -33836,8 +33886,14 @@ const splitListItem = (typeOrName) => ({ tr: tr2, state: state2, dispatch, edito
|
|
|
33836
33886
|
return true;
|
|
33837
33887
|
}
|
|
33838
33888
|
const nextType = $to.pos === $from.end() ? grandParent.contentMatchAt(0).defaultType : null;
|
|
33839
|
-
const newTypeAttributes =
|
|
33840
|
-
|
|
33889
|
+
const newTypeAttributes = {
|
|
33890
|
+
...getSplittedAttributes(extensionAttributes, grandParent.type.name, grandParent.attrs),
|
|
33891
|
+
...overrideAttrs
|
|
33892
|
+
};
|
|
33893
|
+
const newNextTypeAttributes = {
|
|
33894
|
+
...getSplittedAttributes(extensionAttributes, $from.node().type.name, $from.node().attrs),
|
|
33895
|
+
...overrideAttrs
|
|
33896
|
+
};
|
|
33841
33897
|
tr2.delete($from.pos, $to.pos);
|
|
33842
33898
|
const types = nextType ? [
|
|
33843
33899
|
{ type: type3, attrs: newTypeAttributes },
|
|
@@ -34499,8 +34555,8 @@ img.ProseMirror-separator {
|
|
|
34499
34555
|
display: inline !important;
|
|
34500
34556
|
border: none !important;
|
|
34501
34557
|
margin: 0 !important;
|
|
34502
|
-
width:
|
|
34503
|
-
height:
|
|
34558
|
+
width: 0 !important;
|
|
34559
|
+
height: 0 !important;
|
|
34504
34560
|
}
|
|
34505
34561
|
|
|
34506
34562
|
.ProseMirror-gapcursor {
|
|
@@ -34563,6 +34619,7 @@ let Editor$1 = class Editor2 extends EventEmitter {
|
|
|
34563
34619
|
constructor(options = {}) {
|
|
34564
34620
|
super();
|
|
34565
34621
|
this.isFocused = false;
|
|
34622
|
+
this.isInitialized = false;
|
|
34566
34623
|
this.extensionStorage = {};
|
|
34567
34624
|
this.options = {
|
|
34568
34625
|
element: document.createElement("div"),
|
|
@@ -34615,6 +34672,7 @@ let Editor$1 = class Editor2 extends EventEmitter {
|
|
|
34615
34672
|
}
|
|
34616
34673
|
this.commands.focus(this.options.autofocus);
|
|
34617
34674
|
this.emit("create", { editor: this });
|
|
34675
|
+
this.isInitialized = true;
|
|
34618
34676
|
}, 0);
|
|
34619
34677
|
}
|
|
34620
34678
|
/**
|
|
@@ -35251,14 +35309,16 @@ function nodePasteRule(config) {
|
|
|
35251
35309
|
find: config.find,
|
|
35252
35310
|
handler({ match: match2, chain, range: range2, pasteEvent }) {
|
|
35253
35311
|
const attributes = callOrReturn(config.getAttributes, void 0, match2, pasteEvent);
|
|
35312
|
+
const content = callOrReturn(config.getContent, void 0, attributes);
|
|
35254
35313
|
if (attributes === false || attributes === null) {
|
|
35255
35314
|
return null;
|
|
35256
35315
|
}
|
|
35316
|
+
const node = { type: config.type.name, attrs: attributes };
|
|
35317
|
+
if (content) {
|
|
35318
|
+
node.content = content;
|
|
35319
|
+
}
|
|
35257
35320
|
if (match2.input) {
|
|
35258
|
-
chain().deleteRange(range2).insertContentAt(range2.from,
|
|
35259
|
-
type: config.type.name,
|
|
35260
|
-
attrs: attributes
|
|
35261
|
-
});
|
|
35321
|
+
chain().deleteRange(range2).insertContentAt(range2.from, node);
|
|
35262
35322
|
}
|
|
35263
35323
|
}
|
|
35264
35324
|
});
|
|
@@ -35413,6 +35473,7 @@ const ListItem$2 = Node$2.create({
|
|
|
35413
35473
|
});
|
|
35414
35474
|
const TextStyle$1 = Mark.create({
|
|
35415
35475
|
name: "textStyle",
|
|
35476
|
+
priority: 101,
|
|
35416
35477
|
addOptions() {
|
|
35417
35478
|
return {
|
|
35418
35479
|
HTMLAttributes: {}
|
|
@@ -35572,6 +35633,7 @@ const CodeBlock = Node$2.create({
|
|
|
35572
35633
|
languageClassPrefix: "language-",
|
|
35573
35634
|
exitOnTripleEnter: true,
|
|
35574
35635
|
exitOnArrowDown: true,
|
|
35636
|
+
defaultLanguage: null,
|
|
35575
35637
|
HTMLAttributes: {}
|
|
35576
35638
|
};
|
|
35577
35639
|
},
|
|
@@ -35583,7 +35645,7 @@ const CodeBlock = Node$2.create({
|
|
|
35583
35645
|
addAttributes() {
|
|
35584
35646
|
return {
|
|
35585
35647
|
language: {
|
|
35586
|
-
default:
|
|
35648
|
+
default: this.options.defaultLanguage,
|
|
35587
35649
|
parseHTML: (element) => {
|
|
35588
35650
|
var _a2;
|
|
35589
35651
|
const { languageClassPrefix } = this.options;
|
|
@@ -37008,6 +37070,7 @@ const ListItem = Node$2.create({
|
|
|
37008
37070
|
});
|
|
37009
37071
|
const TextStyle = Mark.create({
|
|
37010
37072
|
name: "textStyle",
|
|
37073
|
+
priority: 101,
|
|
37011
37074
|
addOptions() {
|
|
37012
37075
|
return {
|
|
37013
37076
|
HTMLAttributes: {}
|
|
@@ -37065,6 +37128,10 @@ const OrderedList = Node$2.create({
|
|
|
37065
37128
|
parseHTML: (element) => {
|
|
37066
37129
|
return element.hasAttribute("start") ? parseInt(element.getAttribute("start") || "", 10) : 1;
|
|
37067
37130
|
}
|
|
37131
|
+
},
|
|
37132
|
+
type: {
|
|
37133
|
+
default: void 0,
|
|
37134
|
+
parseHTML: (element) => element.getAttribute("type")
|
|
37068
37135
|
}
|
|
37069
37136
|
};
|
|
37070
37137
|
},
|
|
@@ -45798,18 +45865,18 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
45798
45865
|
searchable: true
|
|
45799
45866
|
};
|
|
45800
45867
|
const defaultInputOptions = {
|
|
45801
|
-
showDialCode: true,
|
|
45802
|
-
autofocus: false,
|
|
45868
|
+
"showDialCode": true,
|
|
45869
|
+
"autofocus": false,
|
|
45803
45870
|
"aria-describedby": "",
|
|
45804
|
-
id: "",
|
|
45805
|
-
maxlength: 25,
|
|
45806
|
-
minlength: 9,
|
|
45807
|
-
pattern: void 0,
|
|
45808
|
-
name: "",
|
|
45809
|
-
readonly: false,
|
|
45810
|
-
tabindex: 0,
|
|
45811
|
-
style: "",
|
|
45812
|
-
placeholder: "Enter a phone number"
|
|
45871
|
+
"id": "",
|
|
45872
|
+
"maxlength": 25,
|
|
45873
|
+
"minlength": 9,
|
|
45874
|
+
"pattern": void 0,
|
|
45875
|
+
"name": "",
|
|
45876
|
+
"readonly": false,
|
|
45877
|
+
"tabindex": 0,
|
|
45878
|
+
"style": "",
|
|
45879
|
+
"placeholder": "Enter a phone number"
|
|
45813
45880
|
};
|
|
45814
45881
|
const computedDropDownOptions = computed(() => ({
|
|
45815
45882
|
...defaultDropdownOptions,
|
|
@@ -45902,16 +45969,6 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
45902
45969
|
}
|
|
45903
45970
|
);
|
|
45904
45971
|
async function initializeCountry() {
|
|
45905
|
-
if (props2.modelValue.includes("+")) {
|
|
45906
|
-
const sanitized = `${props2.modelValue}`.replace(/[\+\-\s]/gi, "");
|
|
45907
|
-
const twoDigits = sanitized.slice(0, 2);
|
|
45908
|
-
const threeDigits = sanitized.slice(0, 3);
|
|
45909
|
-
const country = findCountryByDialCode(+threeDigits) || findCountryByDialCode(+twoDigits);
|
|
45910
|
-
if (country) {
|
|
45911
|
-
chooseCountry(country.iso2);
|
|
45912
|
-
return;
|
|
45913
|
-
}
|
|
45914
|
-
}
|
|
45915
45972
|
if (props2.defaultCountry) {
|
|
45916
45973
|
if (typeof props2.defaultCountry === "string") {
|
|
45917
45974
|
chooseCountry(props2.defaultCountry);
|
|
@@ -45949,9 +46006,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
45949
46006
|
return countryList;
|
|
45950
46007
|
}
|
|
45951
46008
|
function findCountryByDialCode(dialCode) {
|
|
45952
|
-
return filteredCountries.value.find(
|
|
45953
|
-
(country) => Number(country.dialCode) === dialCode
|
|
45954
|
-
);
|
|
46009
|
+
return filteredCountries.value.find((country) => Number(country.dialCode) === dialCode);
|
|
45955
46010
|
}
|
|
45956
46011
|
function chooseCountry(country) {
|
|
45957
46012
|
var _a2;
|
|
@@ -45979,7 +46034,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
45979
46034
|
emit2("space");
|
|
45980
46035
|
}
|
|
45981
46036
|
function reset() {
|
|
45982
|
-
selectedIndex.value = sortedCountries.value.findIndex(
|
|
46037
|
+
selectedIndex.value = sortedCountries.value.findIndex(
|
|
46038
|
+
(c2) => c2.iso2 === activeCountryCode.value
|
|
46039
|
+
);
|
|
45983
46040
|
open.value = false;
|
|
45984
46041
|
}
|
|
45985
46042
|
function handleInput(e) {
|
|
@@ -46035,7 +46092,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
46035
46092
|
class: "flex gap-075",
|
|
46036
46093
|
tabindex: "-1",
|
|
46037
46094
|
"aria-selected": unref(activeCountryCode) === pb.iso2 && !isPreferred(pb),
|
|
46038
|
-
onClick: ($event) =>
|
|
46095
|
+
onClick: ($event) => {
|
|
46096
|
+
chooseCountry(pb.iso2);
|
|
46097
|
+
hide2();
|
|
46098
|
+
},
|
|
46039
46099
|
onMousemove: ($event) => isRef(selectedIndex) ? selectedIndex.value = index2 : selectedIndex = index2
|
|
46040
46100
|
}, [
|
|
46041
46101
|
computedDropDownOptions.value.showFlags ? (openBlock(), createBlock(unref(Flag), {
|
|
@@ -46098,7 +46158,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
46098
46158
|
};
|
|
46099
46159
|
}
|
|
46100
46160
|
});
|
|
46101
|
-
const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
46161
|
+
const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-4c2ef2c5"]]);
|
|
46102
46162
|
/*!
|
|
46103
46163
|
* Signature Pad v5.0.2 | https://github.com/szimek/signature_pad
|
|
46104
46164
|
* (c) 2024 Szymon Nowak | Released under the MIT license
|
|
@@ -48125,10 +48185,10 @@ var omit = /* @__PURE__ */ _curry2(function omit2(names, obj) {
|
|
|
48125
48185
|
return result2;
|
|
48126
48186
|
});
|
|
48127
48187
|
var omit$1 = omit;
|
|
48128
|
-
var pickBy = /* @__PURE__ */ _curry2(function pickBy2(
|
|
48188
|
+
var pickBy = /* @__PURE__ */ _curry2(function pickBy2(test2, obj) {
|
|
48129
48189
|
var result2 = {};
|
|
48130
48190
|
for (var prop3 in obj) {
|
|
48131
|
-
if (
|
|
48191
|
+
if (test2(obj[prop3], prop3, obj)) {
|
|
48132
48192
|
result2[prop3] = obj[prop3];
|
|
48133
48193
|
}
|
|
48134
48194
|
}
|