@bagelink/vue 0.0.689 → 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 +8 -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 +209 -137
- package/dist/index.mjs +209 -137
- package/dist/plugins/bagel.d.ts +0 -1
- package/dist/plugins/modal.d.ts +0 -1
- package/dist/style.css +5 -5
- 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/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 +3 -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/SelectInput.vue +4 -0
- package/src/utils/index.ts +1 -3
- package/src/utils/lang.ts +9 -2
- 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) {
|
|
@@ -5239,12 +5274,18 @@ const state$1 = reactive({
|
|
|
5239
5274
|
availableLangs: [],
|
|
5240
5275
|
lang: "en"
|
|
5241
5276
|
});
|
|
5277
|
+
function $tdb(langEl) {
|
|
5278
|
+
if (!langEl) {
|
|
5279
|
+
console.warn("No language element provided for $tdb function");
|
|
5280
|
+
return "";
|
|
5281
|
+
}
|
|
5282
|
+
return langEl[state$1.lang] || langEl[state$1.defaultLang] || "";
|
|
5283
|
+
}
|
|
5242
5284
|
function useLang() {
|
|
5243
5285
|
const lang = computed({
|
|
5244
5286
|
get: () => state$1.lang,
|
|
5245
5287
|
set: (val) => state$1.lang = val
|
|
5246
5288
|
});
|
|
5247
|
-
const $tdb = (langEl) => langEl[state$1.lang] || langEl[state$1.defaultLang] || "";
|
|
5248
5289
|
const availableLangs = computed({
|
|
5249
5290
|
get: () => state$1.availableLangs,
|
|
5250
5291
|
set: (val) => state$1.availableLangs = val
|
|
@@ -5312,9 +5353,7 @@ function denullify(itemData, fieldID) {
|
|
|
5312
5353
|
}
|
|
5313
5354
|
const isDate$1 = (dateToTest) => !Number.isNaN(Date.parse(dateToTest));
|
|
5314
5355
|
function getFallbackSchema(data2, showFields) {
|
|
5315
|
-
const keys4 = [
|
|
5316
|
-
...new Set((data2 ?? []).map(Object.keys).flat())
|
|
5317
|
-
];
|
|
5356
|
+
const keys4 = Array.from(new Set((data2 ?? []).map(Object.keys).flat()));
|
|
5318
5357
|
const schema = keys4.map(
|
|
5319
5358
|
(id) => ({
|
|
5320
5359
|
id,
|
|
@@ -16068,7 +16107,7 @@ const _hoisted_4$c = {
|
|
|
16068
16107
|
};
|
|
16069
16108
|
const _hoisted_5$c = ["value"];
|
|
16070
16109
|
const _hoisted_6$7 = { class: "selectinput-options" };
|
|
16071
|
-
const _hoisted_7$3 = ["onClick"];
|
|
16110
|
+
const _hoisted_7$3 = ["aria-selected", "onClick", "onKeydown"];
|
|
16072
16111
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
16073
16112
|
__name: "SelectInput",
|
|
16074
16113
|
props: {
|
|
@@ -16238,7 +16277,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
16238
16277
|
return openBlock(), createElementBlock("div", {
|
|
16239
16278
|
key: `${option2}${i2}`,
|
|
16240
16279
|
class: normalizeClass(["selectinput-option hover gap-1", { selected: isSelected(option2) }]),
|
|
16241
|
-
|
|
16280
|
+
role: "option",
|
|
16281
|
+
tabindex: "0",
|
|
16282
|
+
"aria-selected": isSelected(option2),
|
|
16283
|
+
onClick: ($event) => select2(option2),
|
|
16284
|
+
onKeydown: withKeys(($event) => select2(option2), ["enter"])
|
|
16242
16285
|
}, [
|
|
16243
16286
|
isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$P), {
|
|
16244
16287
|
key: 0,
|
|
@@ -16250,7 +16293,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
16250
16293
|
icon: "fiber_manual_record"
|
|
16251
16294
|
})) : createCommentVNode("", true),
|
|
16252
16295
|
createElementVNode("span", null, toDisplayString(getLabel(option2)), 1)
|
|
16253
|
-
],
|
|
16296
|
+
], 42, _hoisted_7$3);
|
|
16254
16297
|
}), 128))
|
|
16255
16298
|
]),
|
|
16256
16299
|
renderSlot(_ctx.$slots, "last", {}, void 0, true)
|
|
@@ -16306,7 +16349,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
16306
16349
|
};
|
|
16307
16350
|
}
|
|
16308
16351
|
});
|
|
16309
|
-
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-
|
|
16352
|
+
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-b33955d5"]]);
|
|
16310
16353
|
/*!
|
|
16311
16354
|
* vue-draggable-next v2.2.0
|
|
16312
16355
|
* (c) 2023 Anish George
|
|
@@ -32246,7 +32289,7 @@ function pasteRulesPlugin(props2) {
|
|
|
32246
32289
|
}
|
|
32247
32290
|
function findDuplicates(items) {
|
|
32248
32291
|
const filtered = items.filter((el, index2) => items.indexOf(el) !== index2);
|
|
32249
|
-
return
|
|
32292
|
+
return Array.from(new Set(filtered));
|
|
32250
32293
|
}
|
|
32251
32294
|
class ExtensionManager {
|
|
32252
32295
|
constructor(extensions, editor) {
|
|
@@ -33437,7 +33480,7 @@ function getMarksBetween(from2, to2, doc2) {
|
|
|
33437
33480
|
const marks = [];
|
|
33438
33481
|
if (from2 === to2) {
|
|
33439
33482
|
doc2.resolve(from2).marks().forEach((mark) => {
|
|
33440
|
-
const $pos = doc2.resolve(from2
|
|
33483
|
+
const $pos = doc2.resolve(from2);
|
|
33441
33484
|
const range2 = getMarkRange($pos, mark.type);
|
|
33442
33485
|
if (!range2) {
|
|
33443
33486
|
return;
|
|
@@ -33551,27 +33594,36 @@ function isList(name, extensions) {
|
|
|
33551
33594
|
}
|
|
33552
33595
|
return group.split(" ").includes("list");
|
|
33553
33596
|
}
|
|
33554
|
-
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
|
+
}
|
|
33555
33607
|
if (node.isText) {
|
|
33556
33608
|
return !node.text;
|
|
33557
33609
|
}
|
|
33610
|
+
if (node.isAtom || node.isLeaf) {
|
|
33611
|
+
return false;
|
|
33612
|
+
}
|
|
33558
33613
|
if (node.content.childCount === 0) {
|
|
33559
33614
|
return true;
|
|
33560
33615
|
}
|
|
33561
|
-
if (node.isLeaf) {
|
|
33562
|
-
return false;
|
|
33563
|
-
}
|
|
33564
33616
|
if (checkChildren) {
|
|
33565
|
-
let
|
|
33617
|
+
let isContentEmpty = true;
|
|
33566
33618
|
node.content.forEach((childNode) => {
|
|
33567
|
-
if (
|
|
33619
|
+
if (isContentEmpty === false) {
|
|
33568
33620
|
return;
|
|
33569
33621
|
}
|
|
33570
|
-
if (!isNodeEmpty(childNode)) {
|
|
33571
|
-
|
|
33622
|
+
if (!isNodeEmpty(childNode, { ignoreWhitespace, checkChildren })) {
|
|
33623
|
+
isContentEmpty = false;
|
|
33572
33624
|
}
|
|
33573
33625
|
});
|
|
33574
|
-
return
|
|
33626
|
+
return isContentEmpty;
|
|
33575
33627
|
}
|
|
33576
33628
|
return false;
|
|
33577
33629
|
}
|
|
@@ -33785,7 +33837,7 @@ const splitBlock = ({ keepMarks = true } = {}) => ({ tr: tr2, state: state2, dis
|
|
|
33785
33837
|
}
|
|
33786
33838
|
return can;
|
|
33787
33839
|
};
|
|
33788
|
-
const splitListItem = (typeOrName) => ({ tr: tr2, state: state2, dispatch, editor }) => {
|
|
33840
|
+
const splitListItem = (typeOrName, overrideAttrs = {}) => ({ tr: tr2, state: state2, dispatch, editor }) => {
|
|
33789
33841
|
var _a2;
|
|
33790
33842
|
const type3 = getNodeType(typeOrName, state2.schema);
|
|
33791
33843
|
const { $from, $to } = state2.selection;
|
|
@@ -33809,7 +33861,10 @@ const splitListItem = (typeOrName) => ({ tr: tr2, state: state2, dispatch, edito
|
|
|
33809
33861
|
wrap2 = Fragment.from($from.node(d2).copy(wrap2));
|
|
33810
33862
|
}
|
|
33811
33863
|
const depthAfter = $from.indexAfter(-1) < $from.node(-2).childCount ? 1 : $from.indexAfter(-2) < $from.node(-3).childCount ? 2 : 3;
|
|
33812
|
-
const newNextTypeAttributes2 =
|
|
33864
|
+
const newNextTypeAttributes2 = {
|
|
33865
|
+
...getSplittedAttributes(extensionAttributes, $from.node().type.name, $from.node().attrs),
|
|
33866
|
+
...overrideAttrs
|
|
33867
|
+
};
|
|
33813
33868
|
const nextType2 = ((_a2 = type3.contentMatch.defaultType) === null || _a2 === void 0 ? void 0 : _a2.createAndFill(newNextTypeAttributes2)) || void 0;
|
|
33814
33869
|
wrap2 = wrap2.append(Fragment.from(type3.createAndFill(null, nextType2) || void 0));
|
|
33815
33870
|
const start2 = $from.before($from.depth - (depthBefore - 1));
|
|
@@ -33831,8 +33886,14 @@ const splitListItem = (typeOrName) => ({ tr: tr2, state: state2, dispatch, edito
|
|
|
33831
33886
|
return true;
|
|
33832
33887
|
}
|
|
33833
33888
|
const nextType = $to.pos === $from.end() ? grandParent.contentMatchAt(0).defaultType : null;
|
|
33834
|
-
const newTypeAttributes =
|
|
33835
|
-
|
|
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
|
+
};
|
|
33836
33897
|
tr2.delete($from.pos, $to.pos);
|
|
33837
33898
|
const types = nextType ? [
|
|
33838
33899
|
{ type: type3, attrs: newTypeAttributes },
|
|
@@ -34494,8 +34555,8 @@ img.ProseMirror-separator {
|
|
|
34494
34555
|
display: inline !important;
|
|
34495
34556
|
border: none !important;
|
|
34496
34557
|
margin: 0 !important;
|
|
34497
|
-
width:
|
|
34498
|
-
height:
|
|
34558
|
+
width: 0 !important;
|
|
34559
|
+
height: 0 !important;
|
|
34499
34560
|
}
|
|
34500
34561
|
|
|
34501
34562
|
.ProseMirror-gapcursor {
|
|
@@ -34558,6 +34619,7 @@ let Editor$1 = class Editor2 extends EventEmitter {
|
|
|
34558
34619
|
constructor(options = {}) {
|
|
34559
34620
|
super();
|
|
34560
34621
|
this.isFocused = false;
|
|
34622
|
+
this.isInitialized = false;
|
|
34561
34623
|
this.extensionStorage = {};
|
|
34562
34624
|
this.options = {
|
|
34563
34625
|
element: document.createElement("div"),
|
|
@@ -34610,6 +34672,7 @@ let Editor$1 = class Editor2 extends EventEmitter {
|
|
|
34610
34672
|
}
|
|
34611
34673
|
this.commands.focus(this.options.autofocus);
|
|
34612
34674
|
this.emit("create", { editor: this });
|
|
34675
|
+
this.isInitialized = true;
|
|
34613
34676
|
}, 0);
|
|
34614
34677
|
}
|
|
34615
34678
|
/**
|
|
@@ -35246,14 +35309,16 @@ function nodePasteRule(config) {
|
|
|
35246
35309
|
find: config.find,
|
|
35247
35310
|
handler({ match: match2, chain, range: range2, pasteEvent }) {
|
|
35248
35311
|
const attributes = callOrReturn(config.getAttributes, void 0, match2, pasteEvent);
|
|
35312
|
+
const content = callOrReturn(config.getContent, void 0, attributes);
|
|
35249
35313
|
if (attributes === false || attributes === null) {
|
|
35250
35314
|
return null;
|
|
35251
35315
|
}
|
|
35316
|
+
const node = { type: config.type.name, attrs: attributes };
|
|
35317
|
+
if (content) {
|
|
35318
|
+
node.content = content;
|
|
35319
|
+
}
|
|
35252
35320
|
if (match2.input) {
|
|
35253
|
-
chain().deleteRange(range2).insertContentAt(range2.from,
|
|
35254
|
-
type: config.type.name,
|
|
35255
|
-
attrs: attributes
|
|
35256
|
-
});
|
|
35321
|
+
chain().deleteRange(range2).insertContentAt(range2.from, node);
|
|
35257
35322
|
}
|
|
35258
35323
|
}
|
|
35259
35324
|
});
|
|
@@ -35408,6 +35473,7 @@ const ListItem$2 = Node$2.create({
|
|
|
35408
35473
|
});
|
|
35409
35474
|
const TextStyle$1 = Mark.create({
|
|
35410
35475
|
name: "textStyle",
|
|
35476
|
+
priority: 101,
|
|
35411
35477
|
addOptions() {
|
|
35412
35478
|
return {
|
|
35413
35479
|
HTMLAttributes: {}
|
|
@@ -35567,6 +35633,7 @@ const CodeBlock = Node$2.create({
|
|
|
35567
35633
|
languageClassPrefix: "language-",
|
|
35568
35634
|
exitOnTripleEnter: true,
|
|
35569
35635
|
exitOnArrowDown: true,
|
|
35636
|
+
defaultLanguage: null,
|
|
35570
35637
|
HTMLAttributes: {}
|
|
35571
35638
|
};
|
|
35572
35639
|
},
|
|
@@ -35578,7 +35645,7 @@ const CodeBlock = Node$2.create({
|
|
|
35578
35645
|
addAttributes() {
|
|
35579
35646
|
return {
|
|
35580
35647
|
language: {
|
|
35581
|
-
default:
|
|
35648
|
+
default: this.options.defaultLanguage,
|
|
35582
35649
|
parseHTML: (element) => {
|
|
35583
35650
|
var _a2;
|
|
35584
35651
|
const { languageClassPrefix } = this.options;
|
|
@@ -37003,6 +37070,7 @@ const ListItem = Node$2.create({
|
|
|
37003
37070
|
});
|
|
37004
37071
|
const TextStyle = Mark.create({
|
|
37005
37072
|
name: "textStyle",
|
|
37073
|
+
priority: 101,
|
|
37006
37074
|
addOptions() {
|
|
37007
37075
|
return {
|
|
37008
37076
|
HTMLAttributes: {}
|
|
@@ -37060,6 +37128,10 @@ const OrderedList = Node$2.create({
|
|
|
37060
37128
|
parseHTML: (element) => {
|
|
37061
37129
|
return element.hasAttribute("start") ? parseInt(element.getAttribute("start") || "", 10) : 1;
|
|
37062
37130
|
}
|
|
37131
|
+
},
|
|
37132
|
+
type: {
|
|
37133
|
+
default: void 0,
|
|
37134
|
+
parseHTML: (element) => element.getAttribute("type")
|
|
37063
37135
|
}
|
|
37064
37136
|
};
|
|
37065
37137
|
},
|
|
@@ -48113,10 +48185,10 @@ var omit = /* @__PURE__ */ _curry2(function omit2(names, obj) {
|
|
|
48113
48185
|
return result2;
|
|
48114
48186
|
});
|
|
48115
48187
|
var omit$1 = omit;
|
|
48116
|
-
var pickBy = /* @__PURE__ */ _curry2(function pickBy2(
|
|
48188
|
+
var pickBy = /* @__PURE__ */ _curry2(function pickBy2(test2, obj) {
|
|
48117
48189
|
var result2 = {};
|
|
48118
48190
|
for (var prop3 in obj) {
|
|
48119
|
-
if (
|
|
48191
|
+
if (test2(obj[prop3], prop3, obj)) {
|
|
48120
48192
|
result2[prop3] = obj[prop3];
|
|
48121
48193
|
}
|
|
48122
48194
|
}
|