@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.cjs
CHANGED
|
@@ -112,21 +112,12 @@ function getPaddingObject(padding) {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
function rectToClientRect$1(rect) {
|
|
115
|
-
const {
|
|
116
|
-
x: x2,
|
|
117
|
-
y: y2,
|
|
118
|
-
width,
|
|
119
|
-
height
|
|
120
|
-
} = rect;
|
|
121
115
|
return {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
bottom: y2 + height,
|
|
128
|
-
x: x2,
|
|
129
|
-
y: y2
|
|
116
|
+
...rect,
|
|
117
|
+
top: rect.y,
|
|
118
|
+
left: rect.x,
|
|
119
|
+
right: rect.x + rect.width,
|
|
120
|
+
bottom: rect.y + rect.height
|
|
130
121
|
};
|
|
131
122
|
}
|
|
132
123
|
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
@@ -297,10 +288,9 @@ async function detectOverflow$1(state2, options) {
|
|
|
297
288
|
strategy
|
|
298
289
|
}));
|
|
299
290
|
const rect = elementContext === "floating" ? {
|
|
291
|
+
...rects.floating,
|
|
300
292
|
x: x2,
|
|
301
|
-
y: y2
|
|
302
|
-
width: rects.floating.width,
|
|
303
|
-
height: rects.floating.height
|
|
293
|
+
y: y2
|
|
304
294
|
} : rects.reference;
|
|
305
295
|
const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));
|
|
306
296
|
const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
|
|
@@ -511,12 +501,10 @@ const flip$2 = function(options) {
|
|
|
511
501
|
return {};
|
|
512
502
|
}
|
|
513
503
|
const side = getSide$1(placement);
|
|
514
|
-
const initialSideAxis = getSideAxis(initialPlacement);
|
|
515
504
|
const isBasePlacement = getSide$1(initialPlacement) === initialPlacement;
|
|
516
505
|
const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
|
|
517
506
|
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement$1(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
518
|
-
|
|
519
|
-
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
|
|
507
|
+
if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== "none") {
|
|
520
508
|
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
521
509
|
}
|
|
522
510
|
const placements2 = [initialPlacement, ...fallbackPlacements];
|
|
@@ -553,16 +541,8 @@ const flip$2 = function(options) {
|
|
|
553
541
|
if (!resetPlacement) {
|
|
554
542
|
switch (fallbackStrategy) {
|
|
555
543
|
case "bestFit": {
|
|
556
|
-
var _overflowsData$
|
|
557
|
-
const placement2 = (_overflowsData$
|
|
558
|
-
if (hasFallbackAxisSideDirection) {
|
|
559
|
-
const currentSideAxis = getSideAxis(d2.placement);
|
|
560
|
-
return currentSideAxis === initialSideAxis || // Create a bias to the `y` side axis due to horizontal
|
|
561
|
-
// reading directions favoring greater width.
|
|
562
|
-
currentSideAxis === "y";
|
|
563
|
-
}
|
|
564
|
-
return true;
|
|
565
|
-
}).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];
|
|
544
|
+
var _overflowsData$map$so;
|
|
545
|
+
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];
|
|
566
546
|
if (placement2) {
|
|
567
547
|
resetPlacement = placement2;
|
|
568
548
|
}
|
|
@@ -757,16 +737,16 @@ const size = function(options) {
|
|
|
757
737
|
widthSide = side;
|
|
758
738
|
heightSide = alignment === "end" ? "top" : "bottom";
|
|
759
739
|
}
|
|
760
|
-
const
|
|
761
|
-
const
|
|
762
|
-
const overflowAvailableHeight = min$3(height - overflow[heightSide], maximumClippingHeight);
|
|
763
|
-
const overflowAvailableWidth = min$3(width - overflow[widthSide], maximumClippingWidth);
|
|
740
|
+
const overflowAvailableHeight = height - overflow[heightSide];
|
|
741
|
+
const overflowAvailableWidth = width - overflow[widthSide];
|
|
764
742
|
const noShift = !state2.middlewareData.shift;
|
|
765
743
|
let availableHeight = overflowAvailableHeight;
|
|
766
744
|
let availableWidth = overflowAvailableWidth;
|
|
767
745
|
if (isYAxis) {
|
|
746
|
+
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
768
747
|
availableWidth = alignment || noShift ? min$3(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
|
|
769
748
|
} else {
|
|
749
|
+
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
770
750
|
availableHeight = alignment || noShift ? min$3(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
|
|
771
751
|
}
|
|
772
752
|
if (noShift && !alignment) {
|
|
@@ -2847,6 +2827,26 @@ const toJSONObject = (obj) => {
|
|
|
2847
2827
|
};
|
|
2848
2828
|
const isAsyncFn = kindOfTest("AsyncFunction");
|
|
2849
2829
|
const isThenable = (thing) => thing && (isObject$1(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
|
|
2830
|
+
const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
2831
|
+
if (setImmediateSupported) {
|
|
2832
|
+
return setImmediate;
|
|
2833
|
+
}
|
|
2834
|
+
return postMessageSupported ? ((token, callbacks) => {
|
|
2835
|
+
_global.addEventListener("message", ({ source, data: data2 }) => {
|
|
2836
|
+
if (source === _global && data2 === token) {
|
|
2837
|
+
callbacks.length && callbacks.shift()();
|
|
2838
|
+
}
|
|
2839
|
+
}, false);
|
|
2840
|
+
return (cb) => {
|
|
2841
|
+
callbacks.push(cb);
|
|
2842
|
+
_global.postMessage(token, "*");
|
|
2843
|
+
};
|
|
2844
|
+
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
2845
|
+
})(
|
|
2846
|
+
typeof setImmediate === "function",
|
|
2847
|
+
isFunction$1(_global.postMessage)
|
|
2848
|
+
);
|
|
2849
|
+
const asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
2850
2850
|
const utils$1 = {
|
|
2851
2851
|
isArray,
|
|
2852
2852
|
isArrayBuffer,
|
|
@@ -2903,7 +2903,9 @@ const utils$1 = {
|
|
|
2903
2903
|
isSpecCompliantForm,
|
|
2904
2904
|
toJSONObject,
|
|
2905
2905
|
isAsyncFn,
|
|
2906
|
-
isThenable
|
|
2906
|
+
isThenable,
|
|
2907
|
+
setImmediate: _setImmediate,
|
|
2908
|
+
asap
|
|
2907
2909
|
};
|
|
2908
2910
|
function AxiosError(message2, code2, config, request, response) {
|
|
2909
2911
|
Error.call(this);
|
|
@@ -3738,27 +3740,35 @@ function speedometer(samplesCount, min2) {
|
|
|
3738
3740
|
}
|
|
3739
3741
|
function throttle$2(fn3, freq) {
|
|
3740
3742
|
let timestamp = 0;
|
|
3741
|
-
|
|
3742
|
-
let
|
|
3743
|
-
|
|
3744
|
-
|
|
3743
|
+
let threshold = 1e3 / freq;
|
|
3744
|
+
let lastArgs;
|
|
3745
|
+
let timer;
|
|
3746
|
+
const invoke = (args, now = Date.now()) => {
|
|
3747
|
+
timestamp = now;
|
|
3748
|
+
lastArgs = null;
|
|
3749
|
+
if (timer) {
|
|
3750
|
+
clearTimeout(timer);
|
|
3751
|
+
timer = null;
|
|
3752
|
+
}
|
|
3753
|
+
fn3.apply(null, args);
|
|
3754
|
+
};
|
|
3755
|
+
const throttled = (...args) => {
|
|
3745
3756
|
const now = Date.now();
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3757
|
+
const passed = now - timestamp;
|
|
3758
|
+
if (passed >= threshold) {
|
|
3759
|
+
invoke(args, now);
|
|
3760
|
+
} else {
|
|
3761
|
+
lastArgs = args;
|
|
3762
|
+
if (!timer) {
|
|
3763
|
+
timer = setTimeout(() => {
|
|
3764
|
+
timer = null;
|
|
3765
|
+
invoke(lastArgs);
|
|
3766
|
+
}, threshold - passed);
|
|
3750
3767
|
}
|
|
3751
|
-
timestamp = now;
|
|
3752
|
-
return fn3.apply(null, arguments);
|
|
3753
|
-
}
|
|
3754
|
-
if (!timer) {
|
|
3755
|
-
timer = setTimeout(() => {
|
|
3756
|
-
timer = null;
|
|
3757
|
-
timestamp = Date.now();
|
|
3758
|
-
return fn3.apply(null, arguments);
|
|
3759
|
-
}, threshold - (now - timestamp));
|
|
3760
3768
|
}
|
|
3761
3769
|
};
|
|
3770
|
+
const flush = () => lastArgs && invoke(lastArgs);
|
|
3771
|
+
return [throttled, flush];
|
|
3762
3772
|
}
|
|
3763
3773
|
const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
3764
3774
|
let bytesNotified = 0;
|
|
@@ -3778,12 +3788,21 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
|
3778
3788
|
rate: rate ? rate : void 0,
|
|
3779
3789
|
estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
|
|
3780
3790
|
event: e,
|
|
3781
|
-
lengthComputable: total != null
|
|
3791
|
+
lengthComputable: total != null,
|
|
3792
|
+
[isDownloadStream ? "download" : "upload"]: true
|
|
3782
3793
|
};
|
|
3783
|
-
data2[isDownloadStream ? "download" : "upload"] = true;
|
|
3784
3794
|
listener(data2);
|
|
3785
3795
|
}, freq);
|
|
3786
3796
|
};
|
|
3797
|
+
const progressEventDecorator = (total, throttled) => {
|
|
3798
|
+
const lengthComputable = total != null;
|
|
3799
|
+
return [(loaded) => throttled[0]({
|
|
3800
|
+
lengthComputable,
|
|
3801
|
+
total,
|
|
3802
|
+
loaded
|
|
3803
|
+
}), throttled[1]];
|
|
3804
|
+
};
|
|
3805
|
+
const asyncDecorator = (fn3) => (...args) => utils$1.asap(() => fn3(...args));
|
|
3787
3806
|
const isURLSameOrigin = platform.hasStandardBrowserEnv ? (
|
|
3788
3807
|
// Standard browser envs have full support of the APIs needed to test
|
|
3789
3808
|
// whether the request URL is of the same origin as current location.
|
|
@@ -3981,15 +4000,15 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
3981
4000
|
const _config = resolveConfig(config);
|
|
3982
4001
|
let requestData = _config.data;
|
|
3983
4002
|
const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
|
|
3984
|
-
let { responseType } = _config;
|
|
4003
|
+
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
3985
4004
|
let onCanceled;
|
|
4005
|
+
let uploadThrottled, downloadThrottled;
|
|
4006
|
+
let flushUpload, flushDownload;
|
|
3986
4007
|
function done() {
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
_config.signal.removeEventListener("abort", onCanceled);
|
|
3992
|
-
}
|
|
4008
|
+
flushUpload && flushUpload();
|
|
4009
|
+
flushDownload && flushDownload();
|
|
4010
|
+
_config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
|
|
4011
|
+
_config.signal && _config.signal.removeEventListener("abort", onCanceled);
|
|
3993
4012
|
}
|
|
3994
4013
|
let request = new XMLHttpRequest();
|
|
3995
4014
|
request.open(_config.method.toUpperCase(), _config.url, true);
|
|
@@ -4036,11 +4055,11 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
4036
4055
|
if (!request) {
|
|
4037
4056
|
return;
|
|
4038
4057
|
}
|
|
4039
|
-
reject3(new AxiosError("Request aborted", AxiosError.ECONNABORTED,
|
|
4058
|
+
reject3(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
|
|
4040
4059
|
request = null;
|
|
4041
4060
|
};
|
|
4042
4061
|
request.onerror = function handleError() {
|
|
4043
|
-
reject3(new AxiosError("Network Error", AxiosError.ERR_NETWORK,
|
|
4062
|
+
reject3(new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request));
|
|
4044
4063
|
request = null;
|
|
4045
4064
|
};
|
|
4046
4065
|
request.ontimeout = function handleTimeout() {
|
|
@@ -4052,7 +4071,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
4052
4071
|
reject3(new AxiosError(
|
|
4053
4072
|
timeoutErrorMessage,
|
|
4054
4073
|
transitional2.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
|
|
4055
|
-
|
|
4074
|
+
config,
|
|
4056
4075
|
request
|
|
4057
4076
|
));
|
|
4058
4077
|
request = null;
|
|
@@ -4069,11 +4088,14 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
4069
4088
|
if (responseType && responseType !== "json") {
|
|
4070
4089
|
request.responseType = _config.responseType;
|
|
4071
4090
|
}
|
|
4072
|
-
if (
|
|
4073
|
-
|
|
4091
|
+
if (onDownloadProgress) {
|
|
4092
|
+
[downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
|
|
4093
|
+
request.addEventListener("progress", downloadThrottled);
|
|
4074
4094
|
}
|
|
4075
|
-
if (
|
|
4076
|
-
|
|
4095
|
+
if (onUploadProgress && request.upload) {
|
|
4096
|
+
[uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);
|
|
4097
|
+
request.upload.addEventListener("progress", uploadThrottled);
|
|
4098
|
+
request.upload.addEventListener("loadend", flushUpload);
|
|
4077
4099
|
}
|
|
4078
4100
|
if (_config.cancelToken || _config.signal) {
|
|
4079
4101
|
onCanceled = (cancel) => {
|
|
@@ -4151,39 +4173,52 @@ const readBytes = async function* (iterable, chunkSize, encode2) {
|
|
|
4151
4173
|
const trackStream = (stream, chunkSize, onProgress, onFinish, encode2) => {
|
|
4152
4174
|
const iterator = readBytes(stream, chunkSize, encode2);
|
|
4153
4175
|
let bytes = 0;
|
|
4176
|
+
let done;
|
|
4177
|
+
let _onFinish = (e) => {
|
|
4178
|
+
if (!done) {
|
|
4179
|
+
done = true;
|
|
4180
|
+
onFinish && onFinish(e);
|
|
4181
|
+
}
|
|
4182
|
+
};
|
|
4154
4183
|
return new ReadableStream({
|
|
4155
|
-
type: "bytes",
|
|
4156
4184
|
async pull(controller) {
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4185
|
+
try {
|
|
4186
|
+
const { done: done2, value } = await iterator.next();
|
|
4187
|
+
if (done2) {
|
|
4188
|
+
_onFinish();
|
|
4189
|
+
controller.close();
|
|
4190
|
+
return;
|
|
4191
|
+
}
|
|
4192
|
+
let len = value.byteLength;
|
|
4193
|
+
if (onProgress) {
|
|
4194
|
+
let loadedBytes = bytes += len;
|
|
4195
|
+
onProgress(loadedBytes);
|
|
4196
|
+
}
|
|
4197
|
+
controller.enqueue(new Uint8Array(value));
|
|
4198
|
+
} catch (err) {
|
|
4199
|
+
_onFinish(err);
|
|
4200
|
+
throw err;
|
|
4162
4201
|
}
|
|
4163
|
-
let len = value.byteLength;
|
|
4164
|
-
onProgress && onProgress(bytes += len);
|
|
4165
|
-
controller.enqueue(new Uint8Array(value));
|
|
4166
4202
|
},
|
|
4167
4203
|
cancel(reason) {
|
|
4168
|
-
|
|
4204
|
+
_onFinish(reason);
|
|
4169
4205
|
return iterator.return();
|
|
4170
4206
|
}
|
|
4171
4207
|
}, {
|
|
4172
4208
|
highWaterMark: 2
|
|
4173
4209
|
});
|
|
4174
4210
|
};
|
|
4175
|
-
const fetchProgressDecorator = (total, fn3) => {
|
|
4176
|
-
const lengthComputable = total != null;
|
|
4177
|
-
return (loaded) => setTimeout(() => fn3({
|
|
4178
|
-
lengthComputable,
|
|
4179
|
-
total,
|
|
4180
|
-
loaded
|
|
4181
|
-
}));
|
|
4182
|
-
};
|
|
4183
4211
|
const isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
|
|
4184
4212
|
const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
|
|
4185
4213
|
const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
|
|
4186
|
-
const
|
|
4214
|
+
const test = (fn3, ...args) => {
|
|
4215
|
+
try {
|
|
4216
|
+
return !!fn3(...args);
|
|
4217
|
+
} catch (e) {
|
|
4218
|
+
return false;
|
|
4219
|
+
}
|
|
4220
|
+
};
|
|
4221
|
+
const supportsRequestStream = isReadableStreamSupported && test(() => {
|
|
4187
4222
|
let duplexAccessed = false;
|
|
4188
4223
|
const hasContentType = new Request(platform.origin, {
|
|
4189
4224
|
body: new ReadableStream(),
|
|
@@ -4194,14 +4229,9 @@ const supportsRequestStream = isReadableStreamSupported && (() => {
|
|
|
4194
4229
|
}
|
|
4195
4230
|
}).headers.has("Content-Type");
|
|
4196
4231
|
return duplexAccessed && !hasContentType;
|
|
4197
|
-
})
|
|
4232
|
+
});
|
|
4198
4233
|
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
4199
|
-
const supportsResponseStream = isReadableStreamSupported &&
|
|
4200
|
-
try {
|
|
4201
|
-
return utils$1.isReadableStream(new Response("").body);
|
|
4202
|
-
} catch (err) {
|
|
4203
|
-
}
|
|
4204
|
-
})();
|
|
4234
|
+
const supportsResponseStream = isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body));
|
|
4205
4235
|
const resolvers = {
|
|
4206
4236
|
stream: supportsResponseStream && ((res) => res.body)
|
|
4207
4237
|
};
|
|
@@ -4222,7 +4252,7 @@ const getBodyLength = async (body) => {
|
|
|
4222
4252
|
if (utils$1.isSpecCompliantForm(body)) {
|
|
4223
4253
|
return (await new Request(body).arrayBuffer()).byteLength;
|
|
4224
4254
|
}
|
|
4225
|
-
if (utils$1.isArrayBufferView(body)) {
|
|
4255
|
+
if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
|
|
4226
4256
|
return body.byteLength;
|
|
4227
4257
|
}
|
|
4228
4258
|
if (utils$1.isURLSearchParams(body)) {
|
|
@@ -4273,14 +4303,15 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
4273
4303
|
headers.setContentType(contentTypeHeader);
|
|
4274
4304
|
}
|
|
4275
4305
|
if (_request.body) {
|
|
4276
|
-
|
|
4306
|
+
const [onProgress, flush] = progressEventDecorator(
|
|
4277
4307
|
requestContentLength,
|
|
4278
|
-
progressEventReducer(onUploadProgress)
|
|
4279
|
-
)
|
|
4308
|
+
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
4309
|
+
);
|
|
4310
|
+
data2 = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush, encodeText);
|
|
4280
4311
|
}
|
|
4281
4312
|
}
|
|
4282
4313
|
if (!utils$1.isString(withCredentials)) {
|
|
4283
|
-
withCredentials = withCredentials ? "
|
|
4314
|
+
withCredentials = withCredentials ? "include" : "omit";
|
|
4284
4315
|
}
|
|
4285
4316
|
request = new Request(url, {
|
|
4286
4317
|
...fetchOptions,
|
|
@@ -4289,7 +4320,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
4289
4320
|
headers: headers.normalize().toJSON(),
|
|
4290
4321
|
body: data2,
|
|
4291
4322
|
duplex: "half",
|
|
4292
|
-
withCredentials
|
|
4323
|
+
credentials: withCredentials
|
|
4293
4324
|
});
|
|
4294
4325
|
let response = await fetch(request);
|
|
4295
4326
|
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
@@ -4299,11 +4330,15 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
4299
4330
|
options[prop3] = response[prop3];
|
|
4300
4331
|
});
|
|
4301
4332
|
const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
|
|
4333
|
+
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
4334
|
+
responseContentLength,
|
|
4335
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
4336
|
+
) || [];
|
|
4302
4337
|
response = new Response(
|
|
4303
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE,
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4338
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
4339
|
+
flush && flush();
|
|
4340
|
+
isStreamResponse && onFinish();
|
|
4341
|
+
}, encodeText),
|
|
4307
4342
|
options
|
|
4308
4343
|
);
|
|
4309
4344
|
}
|
|
@@ -4429,7 +4464,7 @@ function dispatchRequest(config) {
|
|
|
4429
4464
|
return Promise.reject(reason);
|
|
4430
4465
|
});
|
|
4431
4466
|
}
|
|
4432
|
-
const VERSION = "1.7.
|
|
4467
|
+
const VERSION = "1.7.4";
|
|
4433
4468
|
const validators$1 = {};
|
|
4434
4469
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type3, i2) => {
|
|
4435
4470
|
validators$1[type3] = function validator2(thing) {
|
|
@@ -5225,10 +5260,21 @@ function frmRow(...children2) {
|
|
|
5225
5260
|
children: children2
|
|
5226
5261
|
};
|
|
5227
5262
|
}
|
|
5263
|
+
function findBglFieldById(id, _schema) {
|
|
5264
|
+
for (const field of _schema) {
|
|
5265
|
+
if (field.id === id) return field;
|
|
5266
|
+
if (field.children && Number(field.children.length) > 0) {
|
|
5267
|
+
const child = findBglFieldById(id, field.children);
|
|
5268
|
+
if (child) return child;
|
|
5269
|
+
}
|
|
5270
|
+
}
|
|
5271
|
+
return void 0;
|
|
5272
|
+
}
|
|
5228
5273
|
const bagelFormUtils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5229
5274
|
__proto__: null,
|
|
5230
5275
|
checkField,
|
|
5231
5276
|
dateField,
|
|
5277
|
+
findBglFieldById,
|
|
5232
5278
|
frmRow,
|
|
5233
5279
|
getBaseField,
|
|
5234
5280
|
numField,
|
|
@@ -5241,12 +5287,18 @@ const state$1 = vue.reactive({
|
|
|
5241
5287
|
availableLangs: [],
|
|
5242
5288
|
lang: "en"
|
|
5243
5289
|
});
|
|
5290
|
+
function $tdb(langEl) {
|
|
5291
|
+
if (!langEl) {
|
|
5292
|
+
console.warn("No language element provided for $tdb function");
|
|
5293
|
+
return "";
|
|
5294
|
+
}
|
|
5295
|
+
return langEl[state$1.lang] || langEl[state$1.defaultLang] || "";
|
|
5296
|
+
}
|
|
5244
5297
|
function useLang() {
|
|
5245
5298
|
const lang = vue.computed({
|
|
5246
5299
|
get: () => state$1.lang,
|
|
5247
5300
|
set: (val) => state$1.lang = val
|
|
5248
5301
|
});
|
|
5249
|
-
const $tdb = (langEl) => langEl[state$1.lang] || langEl[state$1.defaultLang] || "";
|
|
5250
5302
|
const availableLangs = vue.computed({
|
|
5251
5303
|
get: () => state$1.availableLangs,
|
|
5252
5304
|
set: (val) => state$1.availableLangs = val
|
|
@@ -5314,9 +5366,7 @@ function denullify(itemData, fieldID) {
|
|
|
5314
5366
|
}
|
|
5315
5367
|
const isDate$1 = (dateToTest) => !Number.isNaN(Date.parse(dateToTest));
|
|
5316
5368
|
function getFallbackSchema(data2, showFields) {
|
|
5317
|
-
const keys4 = [
|
|
5318
|
-
...new Set((data2 ?? []).map(Object.keys).flat())
|
|
5319
|
-
];
|
|
5369
|
+
const keys4 = Array.from(new Set((data2 ?? []).map(Object.keys).flat()));
|
|
5320
5370
|
const schema = keys4.map(
|
|
5321
5371
|
(id) => ({
|
|
5322
5372
|
id,
|
|
@@ -16070,7 +16120,7 @@ const _hoisted_4$c = {
|
|
|
16070
16120
|
};
|
|
16071
16121
|
const _hoisted_5$c = ["value"];
|
|
16072
16122
|
const _hoisted_6$7 = { class: "selectinput-options" };
|
|
16073
|
-
const _hoisted_7$3 = ["onClick"];
|
|
16123
|
+
const _hoisted_7$3 = ["aria-selected", "onClick", "onKeydown"];
|
|
16074
16124
|
const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
16075
16125
|
__name: "SelectInput",
|
|
16076
16126
|
props: {
|
|
@@ -16240,7 +16290,11 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
|
16240
16290
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
16241
16291
|
key: `${option2}${i2}`,
|
|
16242
16292
|
class: vue.normalizeClass(["selectinput-option hover gap-1", { selected: isSelected(option2) }]),
|
|
16243
|
-
|
|
16293
|
+
role: "option",
|
|
16294
|
+
tabindex: "0",
|
|
16295
|
+
"aria-selected": isSelected(option2),
|
|
16296
|
+
onClick: ($event) => select2(option2),
|
|
16297
|
+
onKeydown: vue.withKeys(($event) => select2(option2), ["enter"])
|
|
16244
16298
|
}, [
|
|
16245
16299
|
isSelected(option2) ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$P), {
|
|
16246
16300
|
key: 0,
|
|
@@ -16252,7 +16306,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
|
16252
16306
|
icon: "fiber_manual_record"
|
|
16253
16307
|
})) : vue.createCommentVNode("", true),
|
|
16254
16308
|
vue.createElementVNode("span", null, vue.toDisplayString(getLabel(option2)), 1)
|
|
16255
|
-
],
|
|
16309
|
+
], 42, _hoisted_7$3);
|
|
16256
16310
|
}), 128))
|
|
16257
16311
|
]),
|
|
16258
16312
|
vue.renderSlot(_ctx.$slots, "last", {}, void 0, true)
|
|
@@ -16308,7 +16362,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
|
16308
16362
|
};
|
|
16309
16363
|
}
|
|
16310
16364
|
});
|
|
16311
|
-
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-
|
|
16365
|
+
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-b33955d5"]]);
|
|
16312
16366
|
/*!
|
|
16313
16367
|
* vue-draggable-next v2.2.0
|
|
16314
16368
|
* (c) 2023 Anish George
|
|
@@ -19078,7 +19132,7 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
19078
19132
|
};
|
|
19079
19133
|
}
|
|
19080
19134
|
});
|
|
19081
|
-
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-
|
|
19135
|
+
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-5193fa33"]]);
|
|
19082
19136
|
const _hoisted_1$o = { class: "primary-checkbox" };
|
|
19083
19137
|
const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
19084
19138
|
__name: "Checkbox",
|
|
@@ -32248,7 +32302,7 @@ function pasteRulesPlugin(props2) {
|
|
|
32248
32302
|
}
|
|
32249
32303
|
function findDuplicates(items) {
|
|
32250
32304
|
const filtered = items.filter((el, index2) => items.indexOf(el) !== index2);
|
|
32251
|
-
return
|
|
32305
|
+
return Array.from(new Set(filtered));
|
|
32252
32306
|
}
|
|
32253
32307
|
class ExtensionManager {
|
|
32254
32308
|
constructor(extensions, editor) {
|
|
@@ -33439,7 +33493,7 @@ function getMarksBetween(from2, to2, doc2) {
|
|
|
33439
33493
|
const marks = [];
|
|
33440
33494
|
if (from2 === to2) {
|
|
33441
33495
|
doc2.resolve(from2).marks().forEach((mark) => {
|
|
33442
|
-
const $pos = doc2.resolve(from2
|
|
33496
|
+
const $pos = doc2.resolve(from2);
|
|
33443
33497
|
const range2 = getMarkRange($pos, mark.type);
|
|
33444
33498
|
if (!range2) {
|
|
33445
33499
|
return;
|
|
@@ -33553,27 +33607,36 @@ function isList(name, extensions) {
|
|
|
33553
33607
|
}
|
|
33554
33608
|
return group.split(" ").includes("list");
|
|
33555
33609
|
}
|
|
33556
|
-
function isNodeEmpty(node, { checkChildren
|
|
33610
|
+
function isNodeEmpty(node, { checkChildren = true, ignoreWhitespace = false } = {}) {
|
|
33611
|
+
var _a2;
|
|
33612
|
+
if (ignoreWhitespace) {
|
|
33613
|
+
if (node.type.name === "hardBreak") {
|
|
33614
|
+
return true;
|
|
33615
|
+
}
|
|
33616
|
+
if (node.isText) {
|
|
33617
|
+
return /^\s*$/m.test((_a2 = node.text) !== null && _a2 !== void 0 ? _a2 : "");
|
|
33618
|
+
}
|
|
33619
|
+
}
|
|
33557
33620
|
if (node.isText) {
|
|
33558
33621
|
return !node.text;
|
|
33559
33622
|
}
|
|
33623
|
+
if (node.isAtom || node.isLeaf) {
|
|
33624
|
+
return false;
|
|
33625
|
+
}
|
|
33560
33626
|
if (node.content.childCount === 0) {
|
|
33561
33627
|
return true;
|
|
33562
33628
|
}
|
|
33563
|
-
if (node.isLeaf) {
|
|
33564
|
-
return false;
|
|
33565
|
-
}
|
|
33566
33629
|
if (checkChildren) {
|
|
33567
|
-
let
|
|
33630
|
+
let isContentEmpty = true;
|
|
33568
33631
|
node.content.forEach((childNode) => {
|
|
33569
|
-
if (
|
|
33632
|
+
if (isContentEmpty === false) {
|
|
33570
33633
|
return;
|
|
33571
33634
|
}
|
|
33572
|
-
if (!isNodeEmpty(childNode)) {
|
|
33573
|
-
|
|
33635
|
+
if (!isNodeEmpty(childNode, { ignoreWhitespace, checkChildren })) {
|
|
33636
|
+
isContentEmpty = false;
|
|
33574
33637
|
}
|
|
33575
33638
|
});
|
|
33576
|
-
return
|
|
33639
|
+
return isContentEmpty;
|
|
33577
33640
|
}
|
|
33578
33641
|
return false;
|
|
33579
33642
|
}
|
|
@@ -33787,7 +33850,7 @@ const splitBlock = ({ keepMarks = true } = {}) => ({ tr: tr2, state: state2, dis
|
|
|
33787
33850
|
}
|
|
33788
33851
|
return can;
|
|
33789
33852
|
};
|
|
33790
|
-
const splitListItem = (typeOrName) => ({ tr: tr2, state: state2, dispatch, editor }) => {
|
|
33853
|
+
const splitListItem = (typeOrName, overrideAttrs = {}) => ({ tr: tr2, state: state2, dispatch, editor }) => {
|
|
33791
33854
|
var _a2;
|
|
33792
33855
|
const type3 = getNodeType(typeOrName, state2.schema);
|
|
33793
33856
|
const { $from, $to } = state2.selection;
|
|
@@ -33811,7 +33874,10 @@ const splitListItem = (typeOrName) => ({ tr: tr2, state: state2, dispatch, edito
|
|
|
33811
33874
|
wrap2 = Fragment.from($from.node(d2).copy(wrap2));
|
|
33812
33875
|
}
|
|
33813
33876
|
const depthAfter = $from.indexAfter(-1) < $from.node(-2).childCount ? 1 : $from.indexAfter(-2) < $from.node(-3).childCount ? 2 : 3;
|
|
33814
|
-
const newNextTypeAttributes2 =
|
|
33877
|
+
const newNextTypeAttributes2 = {
|
|
33878
|
+
...getSplittedAttributes(extensionAttributes, $from.node().type.name, $from.node().attrs),
|
|
33879
|
+
...overrideAttrs
|
|
33880
|
+
};
|
|
33815
33881
|
const nextType2 = ((_a2 = type3.contentMatch.defaultType) === null || _a2 === void 0 ? void 0 : _a2.createAndFill(newNextTypeAttributes2)) || void 0;
|
|
33816
33882
|
wrap2 = wrap2.append(Fragment.from(type3.createAndFill(null, nextType2) || void 0));
|
|
33817
33883
|
const start2 = $from.before($from.depth - (depthBefore - 1));
|
|
@@ -33833,8 +33899,14 @@ const splitListItem = (typeOrName) => ({ tr: tr2, state: state2, dispatch, edito
|
|
|
33833
33899
|
return true;
|
|
33834
33900
|
}
|
|
33835
33901
|
const nextType = $to.pos === $from.end() ? grandParent.contentMatchAt(0).defaultType : null;
|
|
33836
|
-
const newTypeAttributes =
|
|
33837
|
-
|
|
33902
|
+
const newTypeAttributes = {
|
|
33903
|
+
...getSplittedAttributes(extensionAttributes, grandParent.type.name, grandParent.attrs),
|
|
33904
|
+
...overrideAttrs
|
|
33905
|
+
};
|
|
33906
|
+
const newNextTypeAttributes = {
|
|
33907
|
+
...getSplittedAttributes(extensionAttributes, $from.node().type.name, $from.node().attrs),
|
|
33908
|
+
...overrideAttrs
|
|
33909
|
+
};
|
|
33838
33910
|
tr2.delete($from.pos, $to.pos);
|
|
33839
33911
|
const types = nextType ? [
|
|
33840
33912
|
{ type: type3, attrs: newTypeAttributes },
|
|
@@ -34496,8 +34568,8 @@ img.ProseMirror-separator {
|
|
|
34496
34568
|
display: inline !important;
|
|
34497
34569
|
border: none !important;
|
|
34498
34570
|
margin: 0 !important;
|
|
34499
|
-
width:
|
|
34500
|
-
height:
|
|
34571
|
+
width: 0 !important;
|
|
34572
|
+
height: 0 !important;
|
|
34501
34573
|
}
|
|
34502
34574
|
|
|
34503
34575
|
.ProseMirror-gapcursor {
|
|
@@ -34560,6 +34632,7 @@ let Editor$1 = class Editor2 extends EventEmitter {
|
|
|
34560
34632
|
constructor(options = {}) {
|
|
34561
34633
|
super();
|
|
34562
34634
|
this.isFocused = false;
|
|
34635
|
+
this.isInitialized = false;
|
|
34563
34636
|
this.extensionStorage = {};
|
|
34564
34637
|
this.options = {
|
|
34565
34638
|
element: document.createElement("div"),
|
|
@@ -34612,6 +34685,7 @@ let Editor$1 = class Editor2 extends EventEmitter {
|
|
|
34612
34685
|
}
|
|
34613
34686
|
this.commands.focus(this.options.autofocus);
|
|
34614
34687
|
this.emit("create", { editor: this });
|
|
34688
|
+
this.isInitialized = true;
|
|
34615
34689
|
}, 0);
|
|
34616
34690
|
}
|
|
34617
34691
|
/**
|
|
@@ -35248,14 +35322,16 @@ function nodePasteRule(config) {
|
|
|
35248
35322
|
find: config.find,
|
|
35249
35323
|
handler({ match: match2, chain, range: range2, pasteEvent }) {
|
|
35250
35324
|
const attributes = callOrReturn(config.getAttributes, void 0, match2, pasteEvent);
|
|
35325
|
+
const content = callOrReturn(config.getContent, void 0, attributes);
|
|
35251
35326
|
if (attributes === false || attributes === null) {
|
|
35252
35327
|
return null;
|
|
35253
35328
|
}
|
|
35329
|
+
const node = { type: config.type.name, attrs: attributes };
|
|
35330
|
+
if (content) {
|
|
35331
|
+
node.content = content;
|
|
35332
|
+
}
|
|
35254
35333
|
if (match2.input) {
|
|
35255
|
-
chain().deleteRange(range2).insertContentAt(range2.from,
|
|
35256
|
-
type: config.type.name,
|
|
35257
|
-
attrs: attributes
|
|
35258
|
-
});
|
|
35334
|
+
chain().deleteRange(range2).insertContentAt(range2.from, node);
|
|
35259
35335
|
}
|
|
35260
35336
|
}
|
|
35261
35337
|
});
|
|
@@ -35410,6 +35486,7 @@ const ListItem$2 = Node$2.create({
|
|
|
35410
35486
|
});
|
|
35411
35487
|
const TextStyle$1 = Mark.create({
|
|
35412
35488
|
name: "textStyle",
|
|
35489
|
+
priority: 101,
|
|
35413
35490
|
addOptions() {
|
|
35414
35491
|
return {
|
|
35415
35492
|
HTMLAttributes: {}
|
|
@@ -35569,6 +35646,7 @@ const CodeBlock = Node$2.create({
|
|
|
35569
35646
|
languageClassPrefix: "language-",
|
|
35570
35647
|
exitOnTripleEnter: true,
|
|
35571
35648
|
exitOnArrowDown: true,
|
|
35649
|
+
defaultLanguage: null,
|
|
35572
35650
|
HTMLAttributes: {}
|
|
35573
35651
|
};
|
|
35574
35652
|
},
|
|
@@ -35580,7 +35658,7 @@ const CodeBlock = Node$2.create({
|
|
|
35580
35658
|
addAttributes() {
|
|
35581
35659
|
return {
|
|
35582
35660
|
language: {
|
|
35583
|
-
default:
|
|
35661
|
+
default: this.options.defaultLanguage,
|
|
35584
35662
|
parseHTML: (element) => {
|
|
35585
35663
|
var _a2;
|
|
35586
35664
|
const { languageClassPrefix } = this.options;
|
|
@@ -37005,6 +37083,7 @@ const ListItem = Node$2.create({
|
|
|
37005
37083
|
});
|
|
37006
37084
|
const TextStyle = Mark.create({
|
|
37007
37085
|
name: "textStyle",
|
|
37086
|
+
priority: 101,
|
|
37008
37087
|
addOptions() {
|
|
37009
37088
|
return {
|
|
37010
37089
|
HTMLAttributes: {}
|
|
@@ -37062,6 +37141,10 @@ const OrderedList = Node$2.create({
|
|
|
37062
37141
|
parseHTML: (element) => {
|
|
37063
37142
|
return element.hasAttribute("start") ? parseInt(element.getAttribute("start") || "", 10) : 1;
|
|
37064
37143
|
}
|
|
37144
|
+
},
|
|
37145
|
+
type: {
|
|
37146
|
+
default: void 0,
|
|
37147
|
+
parseHTML: (element) => element.getAttribute("type")
|
|
37065
37148
|
}
|
|
37066
37149
|
};
|
|
37067
37150
|
},
|
|
@@ -45740,6 +45823,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
45740
45823
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
45741
45824
|
label: {},
|
|
45742
45825
|
id: {},
|
|
45826
|
+
class: {},
|
|
45743
45827
|
autocomplete: { default: "on" },
|
|
45744
45828
|
placeholder: { default: "Enter a phone number" },
|
|
45745
45829
|
required: { type: Boolean, default: false },
|
|
@@ -45978,7 +46062,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
45978
46062
|
}
|
|
45979
46063
|
return (_ctx, _cache) => {
|
|
45980
46064
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
45981
|
-
class: vue.normalizeClass(["bagel-input", { disabled: _ctx.disabled }])
|
|
46065
|
+
class: vue.normalizeClass(["bagel-input", { disabled: _ctx.disabled, [props2.class || ""]: true }])
|
|
45982
46066
|
}, [
|
|
45983
46067
|
vue.createElementVNode("label", null, [
|
|
45984
46068
|
vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
|
|
@@ -46088,7 +46172,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
46088
46172
|
};
|
|
46089
46173
|
}
|
|
46090
46174
|
});
|
|
46091
|
-
const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
46175
|
+
const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-f94249b5"]]);
|
|
46092
46176
|
/*!
|
|
46093
46177
|
* Signature Pad v5.0.2 | https://github.com/szimek/signature_pad
|
|
46094
46178
|
* (c) 2024 Szymon Nowak | Released under the MIT license
|
|
@@ -48115,10 +48199,10 @@ var omit = /* @__PURE__ */ _curry2(function omit2(names, obj) {
|
|
|
48115
48199
|
return result2;
|
|
48116
48200
|
});
|
|
48117
48201
|
var omit$1 = omit;
|
|
48118
|
-
var pickBy = /* @__PURE__ */ _curry2(function pickBy2(
|
|
48202
|
+
var pickBy = /* @__PURE__ */ _curry2(function pickBy2(test2, obj) {
|
|
48119
48203
|
var result2 = {};
|
|
48120
48204
|
for (var prop3 in obj) {
|
|
48121
|
-
if (
|
|
48205
|
+
if (test2(obj[prop3], prop3, obj)) {
|
|
48122
48206
|
result2[prop3] = obj[prop3];
|
|
48123
48207
|
}
|
|
48124
48208
|
}
|