@bagelink/vue 0.0.689 → 0.0.694
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 +113 -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 +224 -140
- package/dist/index.mjs +224 -140
- package/dist/plugins/bagel.d.ts +0 -1
- package/dist/plugins/modal.d.ts +0 -1
- package/dist/style.css +87 -27
- 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 +2 -2
- package/dist/utils/BagelFormUtils.d.ts.map +1 -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/components/form/inputs/TelInput.vue +26 -25
- package/src/components/form/inputs/TextInput.vue +1 -0
- package/src/styles/inputs.css +79 -2
- package/src/utils/BagelFormUtils.ts +32 -1
- 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) {
|
|
@@ -5223,10 +5258,21 @@ function frmRow(...children2) {
|
|
|
5223
5258
|
children: children2
|
|
5224
5259
|
};
|
|
5225
5260
|
}
|
|
5261
|
+
function findBglFieldById(id, _schema) {
|
|
5262
|
+
for (const field of _schema) {
|
|
5263
|
+
if (field.id === id) return field;
|
|
5264
|
+
if (field.children && Number(field.children.length) > 0) {
|
|
5265
|
+
const child = findBglFieldById(id, field.children);
|
|
5266
|
+
if (child) return child;
|
|
5267
|
+
}
|
|
5268
|
+
}
|
|
5269
|
+
return void 0;
|
|
5270
|
+
}
|
|
5226
5271
|
const bagelFormUtils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5227
5272
|
__proto__: null,
|
|
5228
5273
|
checkField,
|
|
5229
5274
|
dateField,
|
|
5275
|
+
findBglFieldById,
|
|
5230
5276
|
frmRow,
|
|
5231
5277
|
getBaseField,
|
|
5232
5278
|
numField,
|
|
@@ -5239,12 +5285,18 @@ const state$1 = reactive({
|
|
|
5239
5285
|
availableLangs: [],
|
|
5240
5286
|
lang: "en"
|
|
5241
5287
|
});
|
|
5288
|
+
function $tdb(langEl) {
|
|
5289
|
+
if (!langEl) {
|
|
5290
|
+
console.warn("No language element provided for $tdb function");
|
|
5291
|
+
return "";
|
|
5292
|
+
}
|
|
5293
|
+
return langEl[state$1.lang] || langEl[state$1.defaultLang] || "";
|
|
5294
|
+
}
|
|
5242
5295
|
function useLang() {
|
|
5243
5296
|
const lang = computed({
|
|
5244
5297
|
get: () => state$1.lang,
|
|
5245
5298
|
set: (val) => state$1.lang = val
|
|
5246
5299
|
});
|
|
5247
|
-
const $tdb = (langEl) => langEl[state$1.lang] || langEl[state$1.defaultLang] || "";
|
|
5248
5300
|
const availableLangs = computed({
|
|
5249
5301
|
get: () => state$1.availableLangs,
|
|
5250
5302
|
set: (val) => state$1.availableLangs = val
|
|
@@ -5312,9 +5364,7 @@ function denullify(itemData, fieldID) {
|
|
|
5312
5364
|
}
|
|
5313
5365
|
const isDate$1 = (dateToTest) => !Number.isNaN(Date.parse(dateToTest));
|
|
5314
5366
|
function getFallbackSchema(data2, showFields) {
|
|
5315
|
-
const keys4 = [
|
|
5316
|
-
...new Set((data2 ?? []).map(Object.keys).flat())
|
|
5317
|
-
];
|
|
5367
|
+
const keys4 = Array.from(new Set((data2 ?? []).map(Object.keys).flat()));
|
|
5318
5368
|
const schema = keys4.map(
|
|
5319
5369
|
(id) => ({
|
|
5320
5370
|
id,
|
|
@@ -16068,7 +16118,7 @@ const _hoisted_4$c = {
|
|
|
16068
16118
|
};
|
|
16069
16119
|
const _hoisted_5$c = ["value"];
|
|
16070
16120
|
const _hoisted_6$7 = { class: "selectinput-options" };
|
|
16071
|
-
const _hoisted_7$3 = ["onClick"];
|
|
16121
|
+
const _hoisted_7$3 = ["aria-selected", "onClick", "onKeydown"];
|
|
16072
16122
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
16073
16123
|
__name: "SelectInput",
|
|
16074
16124
|
props: {
|
|
@@ -16238,7 +16288,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
16238
16288
|
return openBlock(), createElementBlock("div", {
|
|
16239
16289
|
key: `${option2}${i2}`,
|
|
16240
16290
|
class: normalizeClass(["selectinput-option hover gap-1", { selected: isSelected(option2) }]),
|
|
16241
|
-
|
|
16291
|
+
role: "option",
|
|
16292
|
+
tabindex: "0",
|
|
16293
|
+
"aria-selected": isSelected(option2),
|
|
16294
|
+
onClick: ($event) => select2(option2),
|
|
16295
|
+
onKeydown: withKeys(($event) => select2(option2), ["enter"])
|
|
16242
16296
|
}, [
|
|
16243
16297
|
isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$P), {
|
|
16244
16298
|
key: 0,
|
|
@@ -16250,7 +16304,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
16250
16304
|
icon: "fiber_manual_record"
|
|
16251
16305
|
})) : createCommentVNode("", true),
|
|
16252
16306
|
createElementVNode("span", null, toDisplayString(getLabel(option2)), 1)
|
|
16253
|
-
],
|
|
16307
|
+
], 42, _hoisted_7$3);
|
|
16254
16308
|
}), 128))
|
|
16255
16309
|
]),
|
|
16256
16310
|
renderSlot(_ctx.$slots, "last", {}, void 0, true)
|
|
@@ -16306,7 +16360,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
16306
16360
|
};
|
|
16307
16361
|
}
|
|
16308
16362
|
});
|
|
16309
|
-
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-
|
|
16363
|
+
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-b33955d5"]]);
|
|
16310
16364
|
/*!
|
|
16311
16365
|
* vue-draggable-next v2.2.0
|
|
16312
16366
|
* (c) 2023 Anish George
|
|
@@ -19076,7 +19130,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
19076
19130
|
};
|
|
19077
19131
|
}
|
|
19078
19132
|
});
|
|
19079
|
-
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-
|
|
19133
|
+
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-5193fa33"]]);
|
|
19080
19134
|
const _hoisted_1$o = { class: "primary-checkbox" };
|
|
19081
19135
|
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
19082
19136
|
__name: "Checkbox",
|
|
@@ -32246,7 +32300,7 @@ function pasteRulesPlugin(props2) {
|
|
|
32246
32300
|
}
|
|
32247
32301
|
function findDuplicates(items) {
|
|
32248
32302
|
const filtered = items.filter((el, index2) => items.indexOf(el) !== index2);
|
|
32249
|
-
return
|
|
32303
|
+
return Array.from(new Set(filtered));
|
|
32250
32304
|
}
|
|
32251
32305
|
class ExtensionManager {
|
|
32252
32306
|
constructor(extensions, editor) {
|
|
@@ -33437,7 +33491,7 @@ function getMarksBetween(from2, to2, doc2) {
|
|
|
33437
33491
|
const marks = [];
|
|
33438
33492
|
if (from2 === to2) {
|
|
33439
33493
|
doc2.resolve(from2).marks().forEach((mark) => {
|
|
33440
|
-
const $pos = doc2.resolve(from2
|
|
33494
|
+
const $pos = doc2.resolve(from2);
|
|
33441
33495
|
const range2 = getMarkRange($pos, mark.type);
|
|
33442
33496
|
if (!range2) {
|
|
33443
33497
|
return;
|
|
@@ -33551,27 +33605,36 @@ function isList(name, extensions) {
|
|
|
33551
33605
|
}
|
|
33552
33606
|
return group.split(" ").includes("list");
|
|
33553
33607
|
}
|
|
33554
|
-
function isNodeEmpty(node, { checkChildren
|
|
33608
|
+
function isNodeEmpty(node, { checkChildren = true, ignoreWhitespace = false } = {}) {
|
|
33609
|
+
var _a2;
|
|
33610
|
+
if (ignoreWhitespace) {
|
|
33611
|
+
if (node.type.name === "hardBreak") {
|
|
33612
|
+
return true;
|
|
33613
|
+
}
|
|
33614
|
+
if (node.isText) {
|
|
33615
|
+
return /^\s*$/m.test((_a2 = node.text) !== null && _a2 !== void 0 ? _a2 : "");
|
|
33616
|
+
}
|
|
33617
|
+
}
|
|
33555
33618
|
if (node.isText) {
|
|
33556
33619
|
return !node.text;
|
|
33557
33620
|
}
|
|
33621
|
+
if (node.isAtom || node.isLeaf) {
|
|
33622
|
+
return false;
|
|
33623
|
+
}
|
|
33558
33624
|
if (node.content.childCount === 0) {
|
|
33559
33625
|
return true;
|
|
33560
33626
|
}
|
|
33561
|
-
if (node.isLeaf) {
|
|
33562
|
-
return false;
|
|
33563
|
-
}
|
|
33564
33627
|
if (checkChildren) {
|
|
33565
|
-
let
|
|
33628
|
+
let isContentEmpty = true;
|
|
33566
33629
|
node.content.forEach((childNode) => {
|
|
33567
|
-
if (
|
|
33630
|
+
if (isContentEmpty === false) {
|
|
33568
33631
|
return;
|
|
33569
33632
|
}
|
|
33570
|
-
if (!isNodeEmpty(childNode)) {
|
|
33571
|
-
|
|
33633
|
+
if (!isNodeEmpty(childNode, { ignoreWhitespace, checkChildren })) {
|
|
33634
|
+
isContentEmpty = false;
|
|
33572
33635
|
}
|
|
33573
33636
|
});
|
|
33574
|
-
return
|
|
33637
|
+
return isContentEmpty;
|
|
33575
33638
|
}
|
|
33576
33639
|
return false;
|
|
33577
33640
|
}
|
|
@@ -33785,7 +33848,7 @@ const splitBlock = ({ keepMarks = true } = {}) => ({ tr: tr2, state: state2, dis
|
|
|
33785
33848
|
}
|
|
33786
33849
|
return can;
|
|
33787
33850
|
};
|
|
33788
|
-
const splitListItem = (typeOrName) => ({ tr: tr2, state: state2, dispatch, editor }) => {
|
|
33851
|
+
const splitListItem = (typeOrName, overrideAttrs = {}) => ({ tr: tr2, state: state2, dispatch, editor }) => {
|
|
33789
33852
|
var _a2;
|
|
33790
33853
|
const type3 = getNodeType(typeOrName, state2.schema);
|
|
33791
33854
|
const { $from, $to } = state2.selection;
|
|
@@ -33809,7 +33872,10 @@ const splitListItem = (typeOrName) => ({ tr: tr2, state: state2, dispatch, edito
|
|
|
33809
33872
|
wrap2 = Fragment.from($from.node(d2).copy(wrap2));
|
|
33810
33873
|
}
|
|
33811
33874
|
const depthAfter = $from.indexAfter(-1) < $from.node(-2).childCount ? 1 : $from.indexAfter(-2) < $from.node(-3).childCount ? 2 : 3;
|
|
33812
|
-
const newNextTypeAttributes2 =
|
|
33875
|
+
const newNextTypeAttributes2 = {
|
|
33876
|
+
...getSplittedAttributes(extensionAttributes, $from.node().type.name, $from.node().attrs),
|
|
33877
|
+
...overrideAttrs
|
|
33878
|
+
};
|
|
33813
33879
|
const nextType2 = ((_a2 = type3.contentMatch.defaultType) === null || _a2 === void 0 ? void 0 : _a2.createAndFill(newNextTypeAttributes2)) || void 0;
|
|
33814
33880
|
wrap2 = wrap2.append(Fragment.from(type3.createAndFill(null, nextType2) || void 0));
|
|
33815
33881
|
const start2 = $from.before($from.depth - (depthBefore - 1));
|
|
@@ -33831,8 +33897,14 @@ const splitListItem = (typeOrName) => ({ tr: tr2, state: state2, dispatch, edito
|
|
|
33831
33897
|
return true;
|
|
33832
33898
|
}
|
|
33833
33899
|
const nextType = $to.pos === $from.end() ? grandParent.contentMatchAt(0).defaultType : null;
|
|
33834
|
-
const newTypeAttributes =
|
|
33835
|
-
|
|
33900
|
+
const newTypeAttributes = {
|
|
33901
|
+
...getSplittedAttributes(extensionAttributes, grandParent.type.name, grandParent.attrs),
|
|
33902
|
+
...overrideAttrs
|
|
33903
|
+
};
|
|
33904
|
+
const newNextTypeAttributes = {
|
|
33905
|
+
...getSplittedAttributes(extensionAttributes, $from.node().type.name, $from.node().attrs),
|
|
33906
|
+
...overrideAttrs
|
|
33907
|
+
};
|
|
33836
33908
|
tr2.delete($from.pos, $to.pos);
|
|
33837
33909
|
const types = nextType ? [
|
|
33838
33910
|
{ type: type3, attrs: newTypeAttributes },
|
|
@@ -34494,8 +34566,8 @@ img.ProseMirror-separator {
|
|
|
34494
34566
|
display: inline !important;
|
|
34495
34567
|
border: none !important;
|
|
34496
34568
|
margin: 0 !important;
|
|
34497
|
-
width:
|
|
34498
|
-
height:
|
|
34569
|
+
width: 0 !important;
|
|
34570
|
+
height: 0 !important;
|
|
34499
34571
|
}
|
|
34500
34572
|
|
|
34501
34573
|
.ProseMirror-gapcursor {
|
|
@@ -34558,6 +34630,7 @@ let Editor$1 = class Editor2 extends EventEmitter {
|
|
|
34558
34630
|
constructor(options = {}) {
|
|
34559
34631
|
super();
|
|
34560
34632
|
this.isFocused = false;
|
|
34633
|
+
this.isInitialized = false;
|
|
34561
34634
|
this.extensionStorage = {};
|
|
34562
34635
|
this.options = {
|
|
34563
34636
|
element: document.createElement("div"),
|
|
@@ -34610,6 +34683,7 @@ let Editor$1 = class Editor2 extends EventEmitter {
|
|
|
34610
34683
|
}
|
|
34611
34684
|
this.commands.focus(this.options.autofocus);
|
|
34612
34685
|
this.emit("create", { editor: this });
|
|
34686
|
+
this.isInitialized = true;
|
|
34613
34687
|
}, 0);
|
|
34614
34688
|
}
|
|
34615
34689
|
/**
|
|
@@ -35246,14 +35320,16 @@ function nodePasteRule(config) {
|
|
|
35246
35320
|
find: config.find,
|
|
35247
35321
|
handler({ match: match2, chain, range: range2, pasteEvent }) {
|
|
35248
35322
|
const attributes = callOrReturn(config.getAttributes, void 0, match2, pasteEvent);
|
|
35323
|
+
const content = callOrReturn(config.getContent, void 0, attributes);
|
|
35249
35324
|
if (attributes === false || attributes === null) {
|
|
35250
35325
|
return null;
|
|
35251
35326
|
}
|
|
35327
|
+
const node = { type: config.type.name, attrs: attributes };
|
|
35328
|
+
if (content) {
|
|
35329
|
+
node.content = content;
|
|
35330
|
+
}
|
|
35252
35331
|
if (match2.input) {
|
|
35253
|
-
chain().deleteRange(range2).insertContentAt(range2.from,
|
|
35254
|
-
type: config.type.name,
|
|
35255
|
-
attrs: attributes
|
|
35256
|
-
});
|
|
35332
|
+
chain().deleteRange(range2).insertContentAt(range2.from, node);
|
|
35257
35333
|
}
|
|
35258
35334
|
}
|
|
35259
35335
|
});
|
|
@@ -35408,6 +35484,7 @@ const ListItem$2 = Node$2.create({
|
|
|
35408
35484
|
});
|
|
35409
35485
|
const TextStyle$1 = Mark.create({
|
|
35410
35486
|
name: "textStyle",
|
|
35487
|
+
priority: 101,
|
|
35411
35488
|
addOptions() {
|
|
35412
35489
|
return {
|
|
35413
35490
|
HTMLAttributes: {}
|
|
@@ -35567,6 +35644,7 @@ const CodeBlock = Node$2.create({
|
|
|
35567
35644
|
languageClassPrefix: "language-",
|
|
35568
35645
|
exitOnTripleEnter: true,
|
|
35569
35646
|
exitOnArrowDown: true,
|
|
35647
|
+
defaultLanguage: null,
|
|
35570
35648
|
HTMLAttributes: {}
|
|
35571
35649
|
};
|
|
35572
35650
|
},
|
|
@@ -35578,7 +35656,7 @@ const CodeBlock = Node$2.create({
|
|
|
35578
35656
|
addAttributes() {
|
|
35579
35657
|
return {
|
|
35580
35658
|
language: {
|
|
35581
|
-
default:
|
|
35659
|
+
default: this.options.defaultLanguage,
|
|
35582
35660
|
parseHTML: (element) => {
|
|
35583
35661
|
var _a2;
|
|
35584
35662
|
const { languageClassPrefix } = this.options;
|
|
@@ -37003,6 +37081,7 @@ const ListItem = Node$2.create({
|
|
|
37003
37081
|
});
|
|
37004
37082
|
const TextStyle = Mark.create({
|
|
37005
37083
|
name: "textStyle",
|
|
37084
|
+
priority: 101,
|
|
37006
37085
|
addOptions() {
|
|
37007
37086
|
return {
|
|
37008
37087
|
HTMLAttributes: {}
|
|
@@ -37060,6 +37139,10 @@ const OrderedList = Node$2.create({
|
|
|
37060
37139
|
parseHTML: (element) => {
|
|
37061
37140
|
return element.hasAttribute("start") ? parseInt(element.getAttribute("start") || "", 10) : 1;
|
|
37062
37141
|
}
|
|
37142
|
+
},
|
|
37143
|
+
type: {
|
|
37144
|
+
default: void 0,
|
|
37145
|
+
parseHTML: (element) => element.getAttribute("type")
|
|
37063
37146
|
}
|
|
37064
37147
|
};
|
|
37065
37148
|
},
|
|
@@ -45738,6 +45821,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
45738
45821
|
props: /* @__PURE__ */ mergeModels({
|
|
45739
45822
|
label: {},
|
|
45740
45823
|
id: {},
|
|
45824
|
+
class: {},
|
|
45741
45825
|
autocomplete: { default: "on" },
|
|
45742
45826
|
placeholder: { default: "Enter a phone number" },
|
|
45743
45827
|
required: { type: Boolean, default: false },
|
|
@@ -45976,7 +46060,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
45976
46060
|
}
|
|
45977
46061
|
return (_ctx, _cache) => {
|
|
45978
46062
|
return openBlock(), createElementBlock("div", {
|
|
45979
|
-
class: normalizeClass(["bagel-input", { disabled: _ctx.disabled }])
|
|
46063
|
+
class: normalizeClass(["bagel-input", { disabled: _ctx.disabled, [props2.class || ""]: true }])
|
|
45980
46064
|
}, [
|
|
45981
46065
|
createElementVNode("label", null, [
|
|
45982
46066
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
@@ -46086,7 +46170,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
46086
46170
|
};
|
|
46087
46171
|
}
|
|
46088
46172
|
});
|
|
46089
|
-
const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
46173
|
+
const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-f94249b5"]]);
|
|
46090
46174
|
/*!
|
|
46091
46175
|
* Signature Pad v5.0.2 | https://github.com/szimek/signature_pad
|
|
46092
46176
|
* (c) 2024 Szymon Nowak | Released under the MIT license
|
|
@@ -48113,10 +48197,10 @@ var omit = /* @__PURE__ */ _curry2(function omit2(names, obj) {
|
|
|
48113
48197
|
return result2;
|
|
48114
48198
|
});
|
|
48115
48199
|
var omit$1 = omit;
|
|
48116
|
-
var pickBy = /* @__PURE__ */ _curry2(function pickBy2(
|
|
48200
|
+
var pickBy = /* @__PURE__ */ _curry2(function pickBy2(test2, obj) {
|
|
48117
48201
|
var result2 = {};
|
|
48118
48202
|
for (var prop3 in obj) {
|
|
48119
|
-
if (
|
|
48203
|
+
if (test2(obj[prop3], prop3, obj)) {
|
|
48120
48204
|
result2[prop3] = obj[prop3];
|
|
48121
48205
|
}
|
|
48122
48206
|
}
|