@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.
Files changed (275) hide show
  1. package/dist/components/Accordion.d.ts +12 -0
  2. package/dist/components/Accordion.d.ts.map +1 -0
  3. package/dist/components/Accordion.vue.d.ts.map +1 -1
  4. package/dist/components/AccordionItem.d.ts +34 -0
  5. package/dist/components/AccordionItem.d.ts.map +1 -0
  6. package/dist/components/AccordionItem.vue.d.ts +8 -8
  7. package/dist/components/AccordionItem.vue.d.ts.map +1 -1
  8. package/dist/components/Alert.d.ts +34 -0
  9. package/dist/components/Alert.d.ts.map +1 -0
  10. package/dist/components/Alert.vue.d.ts +11 -12
  11. package/dist/components/Alert.vue.d.ts.map +1 -1
  12. package/dist/components/Avatar.d.ts +36 -0
  13. package/dist/components/Avatar.d.ts.map +1 -0
  14. package/dist/components/Avatar.vue.d.ts +11 -11
  15. package/dist/components/Avatar.vue.d.ts.map +1 -1
  16. package/dist/components/Badge.d.ts +22 -0
  17. package/dist/components/Badge.d.ts.map +1 -0
  18. package/dist/components/Badge.vue.d.ts +2 -3
  19. package/dist/components/Badge.vue.d.ts.map +1 -1
  20. package/dist/components/BglVideo.d.ts +20 -0
  21. package/dist/components/BglVideo.d.ts.map +1 -0
  22. package/dist/components/BglVideo.vue.d.ts +2 -2
  23. package/dist/components/BglVideo.vue.d.ts.map +1 -1
  24. package/dist/components/Btn.d.ts +99 -0
  25. package/dist/components/Btn.d.ts.map +1 -0
  26. package/dist/components/Btn.vue.d.ts +12 -13
  27. package/dist/components/Btn.vue.d.ts.map +1 -1
  28. package/dist/components/Card.d.ts +39 -0
  29. package/dist/components/Card.d.ts.map +1 -0
  30. package/dist/components/Card.vue.d.ts +8 -8
  31. package/dist/components/Card.vue.d.ts.map +1 -1
  32. package/dist/components/Carousel.d.ts +74 -0
  33. package/dist/components/Carousel.d.ts.map +1 -0
  34. package/dist/components/Carousel.vue.d.ts.map +1 -1
  35. package/dist/components/ComboBox.vue.d.ts +3 -3
  36. package/dist/components/Comments.vue.d.ts +2 -2
  37. package/dist/components/ContactSubmissions.vue.d.ts +2 -2
  38. package/dist/components/DataPreview.d.ts +42 -0
  39. package/dist/components/DataPreview.d.ts.map +1 -0
  40. package/dist/components/DataPreview.vue.d.ts +23 -30
  41. package/dist/components/DataPreview.vue.d.ts.map +1 -1
  42. package/dist/components/Drop.vue.d.ts +34 -0
  43. package/dist/components/Drop.vue.d.ts.map +1 -0
  44. package/dist/components/DropDown.vue.d.ts +3 -3
  45. package/dist/components/FileUploader.vue.d.ts +60 -0
  46. package/dist/components/FileUploader.vue.d.ts.map +1 -0
  47. package/dist/components/Flag.d.ts +20 -0
  48. package/dist/components/Flag.d.ts.map +1 -0
  49. package/dist/components/Flag.vue.d.ts +2 -3
  50. package/dist/components/Flag.vue.d.ts.map +1 -1
  51. package/dist/components/FormSchema.vue.d.ts +5 -4
  52. package/dist/components/LangText.vue.d.ts +2 -2
  53. package/dist/components/ListItem.d.ts +34 -0
  54. package/dist/components/ListItem.d.ts.map +1 -0
  55. package/dist/components/ListItem.vue.d.ts +8 -8
  56. package/dist/components/ListItem.vue.d.ts.map +1 -1
  57. package/dist/components/ListView.d.ts +13 -0
  58. package/dist/components/ListView.d.ts.map +1 -0
  59. package/dist/components/ListView.vue.d.ts.map +1 -1
  60. package/dist/components/MapEmbed.d.ts +3 -0
  61. package/dist/components/MapEmbed.d.ts.map +1 -0
  62. package/dist/components/MapEmbed.vue.d.ts.map +1 -1
  63. package/dist/components/MaterialIcon.d.ts +26 -0
  64. package/dist/components/MaterialIcon.d.ts.map +1 -0
  65. package/dist/components/MaterialIcon.vue.d.ts +4 -4
  66. package/dist/components/MaterialIcon.vue.d.ts.map +1 -1
  67. package/dist/components/Modal.d.ts +46 -0
  68. package/dist/components/Modal.d.ts.map +1 -0
  69. package/dist/components/Modal.vue.d.ts +8 -9
  70. package/dist/components/Modal.vue.d.ts.map +1 -1
  71. package/dist/components/ModalBglForm.vue.d.ts +21 -20
  72. package/dist/components/ModalConfirm.d.ts +24 -0
  73. package/dist/components/ModalConfirm.d.ts.map +1 -0
  74. package/dist/components/ModalConfirm.vue.d.ts +8 -8
  75. package/dist/components/ModalConfirm.vue.d.ts.map +1 -1
  76. package/dist/components/ModalForm.d.ts +78 -0
  77. package/dist/components/ModalForm.d.ts.map +1 -0
  78. package/dist/components/ModalForm.vue.d.ts +29 -69
  79. package/dist/components/ModalForm.vue.d.ts.map +1 -1
  80. package/dist/components/NavBar.d.ts +64 -0
  81. package/dist/components/NavBar.d.ts.map +1 -0
  82. package/dist/components/NavBar.vue.d.ts +11 -12
  83. package/dist/components/NavBar.vue.d.ts.map +1 -1
  84. package/dist/components/PageTitle.d.ts +24 -0
  85. package/dist/components/PageTitle.d.ts.map +1 -0
  86. package/dist/components/PageTitle.vue.d.ts.map +1 -1
  87. package/dist/components/PersonPreview.vue.d.ts +5 -4
  88. package/dist/components/PersonPreviewFormkit.vue.d.ts +4 -3
  89. package/dist/components/RTXEditor.vue.d.ts +3 -3
  90. package/dist/components/RouterWrapper.d.ts +3 -0
  91. package/dist/components/RouterWrapper.d.ts.map +1 -0
  92. package/dist/components/RouterWrapper.vue.d.ts.map +1 -1
  93. package/dist/components/TabbedLayout.vue.d.ts +5 -4
  94. package/dist/components/TableSchema.d.ts +35 -0
  95. package/dist/components/TableSchema.d.ts.map +1 -0
  96. package/dist/components/TableSchema.vue.d.ts +15 -9
  97. package/dist/components/TableSchema.vue.d.ts.map +1 -1
  98. package/dist/components/Title.d.ts +42 -0
  99. package/dist/components/Title.d.ts.map +1 -0
  100. package/dist/components/Title.vue.d.ts +1 -1
  101. package/dist/components/Title.vue.d.ts.map +1 -1
  102. package/dist/components/TopBar.d.ts +12 -0
  103. package/dist/components/TopBar.d.ts.map +1 -0
  104. package/dist/components/TopBar.vue.d.ts.map +1 -1
  105. package/dist/components/charts/BarChart.vue.d.ts +2 -2
  106. package/dist/components/dashboard/Lineart.d.ts +20 -0
  107. package/dist/components/dashboard/Lineart.d.ts.map +1 -0
  108. package/dist/components/dashboard/Lineart.vue.d.ts +3 -4
  109. package/dist/components/dashboard/Lineart.vue.d.ts.map +1 -1
  110. package/dist/components/form/BglField.d.ts +25 -0
  111. package/dist/components/form/BglField.d.ts.map +1 -0
  112. package/dist/components/form/BglField.vue.d.ts +5 -6
  113. package/dist/components/form/BglField.vue.d.ts.map +1 -1
  114. package/dist/components/form/BglForm.d.ts +75 -0
  115. package/dist/components/form/BglForm.d.ts.map +1 -0
  116. package/dist/components/form/BglForm.vue.d.ts +12 -13
  117. package/dist/components/form/BglForm.vue.d.ts.map +1 -1
  118. package/dist/components/form/ItemRef.vue.d.ts +5 -3
  119. package/dist/components/form/ItemRef.vue.d.ts.map +1 -1
  120. package/dist/components/form/MaterialIcon.vue.d.ts +4 -3
  121. package/dist/components/form/PlainInputField.vue.d.ts +3 -3
  122. package/dist/components/form/inputs/CheckInput.d.ts +56 -0
  123. package/dist/components/form/inputs/CheckInput.d.ts.map +1 -0
  124. package/dist/components/form/inputs/CheckInput.vue.d.ts +37 -43
  125. package/dist/components/form/inputs/CheckInput.vue.d.ts.map +1 -1
  126. package/dist/components/form/inputs/Checkbox.d.ts +16 -0
  127. package/dist/components/form/inputs/Checkbox.d.ts.map +1 -0
  128. package/dist/components/form/inputs/Checkbox.vue.d.ts +17 -5
  129. package/dist/components/form/inputs/Checkbox.vue.d.ts.map +1 -1
  130. package/dist/components/form/inputs/ColorPicker.d.ts +48 -0
  131. package/dist/components/form/inputs/ColorPicker.d.ts.map +1 -0
  132. package/dist/components/form/inputs/ColorPicker.vue.d.ts +11 -11
  133. package/dist/components/form/inputs/ColorPicker.vue.d.ts.map +1 -1
  134. package/dist/components/form/inputs/CurrencyInput.vue.d.ts +3 -3
  135. package/dist/components/form/inputs/DateInput.d.ts +64 -0
  136. package/dist/components/form/inputs/DateInput.d.ts.map +1 -0
  137. package/dist/components/form/inputs/DateInput.vue.d.ts +11 -12
  138. package/dist/components/form/inputs/DateInput.vue.d.ts.map +1 -1
  139. package/dist/components/form/inputs/DatePicker.d.ts +33 -0
  140. package/dist/components/form/inputs/DatePicker.d.ts.map +1 -0
  141. package/dist/components/form/inputs/DatePicker.vue.d.ts +3 -4
  142. package/dist/components/form/inputs/DatePicker.vue.d.ts.map +1 -1
  143. package/dist/components/form/inputs/DatetimeInput.vue.d.ts +3 -3
  144. package/dist/components/form/inputs/DurationInput.vue.d.ts +3 -3
  145. package/dist/components/form/inputs/DynamicLinkField.vue.d.ts +3 -3
  146. package/dist/components/form/inputs/EmailInput.vue.d.ts +3 -3
  147. package/dist/components/form/inputs/FileUpload.d.ts +108 -0
  148. package/dist/components/form/inputs/FileUpload.d.ts.map +1 -0
  149. package/dist/components/form/inputs/FileUpload.vue.d.ts +8 -9
  150. package/dist/components/form/inputs/FileUpload.vue.d.ts.map +1 -1
  151. package/dist/components/form/inputs/FloatInput.vue.d.ts +3 -3
  152. package/dist/components/form/inputs/IntInput.vue.d.ts +3 -3
  153. package/dist/components/form/inputs/JSONInput.d.ts +53 -0
  154. package/dist/components/form/inputs/JSONInput.d.ts.map +1 -0
  155. package/dist/components/form/inputs/JSONInput.vue.d.ts +11 -11
  156. package/dist/components/form/inputs/JSONInput.vue.d.ts.map +1 -1
  157. package/dist/components/form/inputs/LinkField.vue.d.ts +3 -3
  158. package/dist/components/form/inputs/Password.vue.d.ts +3 -3
  159. package/dist/components/form/inputs/PasswordInput.vue.d.ts +3 -3
  160. package/dist/components/form/inputs/PlainText.vue.d.ts +3 -3
  161. package/dist/components/form/inputs/RadioGroup.d.ts +42 -0
  162. package/dist/components/form/inputs/RadioGroup.d.ts.map +1 -0
  163. package/dist/components/form/inputs/RadioGroup.vue.d.ts +12 -7
  164. package/dist/components/form/inputs/RadioGroup.vue.d.ts.map +1 -1
  165. package/dist/components/form/inputs/RadioPillsInput.d.ts +48 -0
  166. package/dist/components/form/inputs/RadioPillsInput.d.ts.map +1 -0
  167. package/dist/components/form/inputs/RadioPillsInput.vue.d.ts +12 -13
  168. package/dist/components/form/inputs/RadioPillsInput.vue.d.ts.map +1 -1
  169. package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts +2 -2
  170. package/dist/components/form/inputs/RichText.d.ts +20 -0
  171. package/dist/components/form/inputs/RichText.d.ts.map +1 -0
  172. package/dist/components/form/inputs/RichText.vue.d.ts +3 -3
  173. package/dist/components/form/inputs/RichText.vue.d.ts.map +1 -1
  174. package/dist/components/form/inputs/RichText2/Toolbar.d.ts +22 -0
  175. package/dist/components/form/inputs/RichText2/Toolbar.d.ts.map +1 -0
  176. package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts +3 -4
  177. package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts.map +1 -1
  178. package/dist/components/form/inputs/RichText2/index.d.ts +24 -0
  179. package/dist/components/form/inputs/RichText2/index.d.ts.map +1 -0
  180. package/dist/components/form/inputs/RichText2/index.vue.d.ts +3 -4
  181. package/dist/components/form/inputs/RichText2/index.vue.d.ts.map +1 -1
  182. package/dist/components/form/inputs/RichTextEditor.vue.d.ts +3 -3
  183. package/dist/components/form/inputs/SelectField.vue.d.ts +6 -8
  184. package/dist/components/form/inputs/SelectField.vue.d.ts.map +1 -1
  185. package/dist/components/form/inputs/SelectInput.d.ts +55 -0
  186. package/dist/components/form/inputs/SelectInput.d.ts.map +1 -0
  187. package/dist/components/form/inputs/SelectInput.vue.d.ts +8 -9
  188. package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
  189. package/dist/components/form/inputs/SignaturePad.d.ts +72 -0
  190. package/dist/components/form/inputs/SignaturePad.d.ts.map +1 -0
  191. package/dist/components/form/inputs/SignaturePad.vue.d.ts +11 -12
  192. package/dist/components/form/inputs/SignaturePad.vue.d.ts.map +1 -1
  193. package/dist/components/form/inputs/TableField.d.ts +45 -0
  194. package/dist/components/form/inputs/TableField.d.ts.map +1 -0
  195. package/dist/components/form/inputs/TableField.vue.d.ts +11 -11
  196. package/dist/components/form/inputs/TableField.vue.d.ts.map +1 -1
  197. package/dist/components/form/inputs/TelInput.d.ts +241 -0
  198. package/dist/components/form/inputs/TelInput.d.ts.map +1 -0
  199. package/dist/components/form/inputs/TelInput.vue.d.ts +113 -206
  200. package/dist/components/form/inputs/TelInput.vue.d.ts.map +1 -1
  201. package/dist/components/form/inputs/TextArea.vue.d.ts +3 -3
  202. package/dist/components/form/inputs/TextInput.d.ts +90 -0
  203. package/dist/components/form/inputs/TextInput.d.ts.map +1 -0
  204. package/dist/components/form/inputs/TextInput.vue.d.ts +11 -12
  205. package/dist/components/form/inputs/TextInput.vue.d.ts.map +1 -1
  206. package/dist/components/form/inputs/ToggleInput.d.ts +58 -0
  207. package/dist/components/form/inputs/ToggleInput.d.ts.map +1 -0
  208. package/dist/components/form/inputs/ToggleInput.vue.d.ts +37 -45
  209. package/dist/components/form/inputs/ToggleInput.vue.d.ts.map +1 -1
  210. package/dist/components/formkit/AddressArray.vue.d.ts +2 -2
  211. package/dist/components/formkit/BankDetailsArray.vue.d.ts +2 -2
  212. package/dist/components/formkit/ContactArrayFormKit.vue.d.ts +2 -2
  213. package/dist/components/formkit/FileUploader.vue.d.ts +2 -2
  214. package/dist/components/formkit/MiscFields.vue.d.ts +2 -2
  215. package/dist/components/formkit/Toggle.vue.d.ts +2 -2
  216. package/dist/components/layout/BottomMenu.d.ts +27 -0
  217. package/dist/components/layout/BottomMenu.d.ts.map +1 -0
  218. package/dist/components/layout/BottomMenu.vue.d.ts +8 -9
  219. package/dist/components/layout/BottomMenu.vue.d.ts.map +1 -1
  220. package/dist/components/layout/Layout.d.ts +58 -0
  221. package/dist/components/layout/Layout.d.ts.map +1 -0
  222. package/dist/components/layout/Layout.vue.d.ts +11 -11
  223. package/dist/components/layout/Layout.vue.d.ts.map +1 -1
  224. package/dist/components/layout/SidebarMenu.d.ts +38 -0
  225. package/dist/components/layout/SidebarMenu.d.ts.map +1 -0
  226. package/dist/components/layout/SidebarMenu.vue.d.ts +8 -9
  227. package/dist/components/layout/SidebarMenu.vue.d.ts.map +1 -1
  228. package/dist/components/layout/TabbedLayout.d.ts +42 -0
  229. package/dist/components/layout/TabbedLayout.d.ts.map +1 -0
  230. package/dist/components/layout/TabbedLayout.vue.d.ts +8 -9
  231. package/dist/components/layout/TabbedLayout.vue.d.ts.map +1 -1
  232. package/dist/components/layout/Tabs.d.ts +31 -0
  233. package/dist/components/layout/Tabs.d.ts.map +1 -0
  234. package/dist/components/layout/Tabs.vue.d.ts +8 -9
  235. package/dist/components/layout/Tabs.vue.d.ts.map +1 -1
  236. package/dist/components/layout/TabsBody.d.ts +23 -0
  237. package/dist/components/layout/TabsBody.d.ts.map +1 -0
  238. package/dist/components/layout/TabsBody.vue.d.ts +8 -8
  239. package/dist/components/layout/TabsBody.vue.d.ts.map +1 -1
  240. package/dist/components/layout/TabsNav.d.ts +35 -0
  241. package/dist/components/layout/TabsNav.d.ts.map +1 -0
  242. package/dist/components/layout/TabsNav.vue.d.ts +3 -4
  243. package/dist/components/layout/TabsNav.vue.d.ts.map +1 -1
  244. package/dist/components/whatsapp/form/MsgTemplate.vue.d.ts +4 -3
  245. package/dist/components/whatsapp/form/TextVariableExamples.vue.d.ts +2 -2
  246. package/dist/composables/index.d.ts +0 -1
  247. package/dist/index.cjs +224 -140
  248. package/dist/index.mjs +224 -140
  249. package/dist/plugins/bagel.d.ts +0 -1
  250. package/dist/plugins/modal.d.ts +0 -1
  251. package/dist/style.css +87 -27
  252. package/dist/types/BagelForm.d.ts +0 -1
  253. package/dist/types/BtnOptions.d.ts +0 -1
  254. package/dist/types/NavLink.d.ts +0 -1
  255. package/dist/utils/BagelFormUtils.d.ts +2 -2
  256. package/dist/utils/BagelFormUtils.d.ts.map +1 -1
  257. package/dist/utils/allCountries.d.ts +0 -1
  258. package/dist/utils/clickOutside.d.ts +0 -1
  259. package/dist/utils/index.d.ts +0 -1
  260. package/dist/utils/index.d.ts.map +1 -1
  261. package/dist/utils/lang.d.ts +3 -1
  262. package/dist/utils/lang.d.ts.map +1 -1
  263. package/dist/utils/objects.d.ts +1 -0
  264. package/package.json +14 -14
  265. package/src/components/form/inputs/SelectInput.vue +4 -0
  266. package/src/components/form/inputs/TelInput.vue +26 -25
  267. package/src/components/form/inputs/TextInput.vue +1 -0
  268. package/src/styles/inputs.css +79 -2
  269. package/src/utils/BagelFormUtils.ts +32 -1
  270. package/src/utils/index.ts +1 -3
  271. package/src/utils/lang.ts +9 -2
  272. package/dist/components/Popover.vue.d.ts +0 -10
  273. package/dist/components/Popover.vue.d.ts.map +0 -1
  274. package/dist/types/materialIcon.d.ts +0 -2
  275. 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
- width,
121
- height,
122
- top: y2,
123
- left: x2,
124
- right: x2 + width,
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
- const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== "none";
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$filter2;
555
- const placement2 = (_overflowsData$filter2 = overflowsData.filter((d2) => {
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 maximumClippingHeight = height - overflow.top - overflow.bottom;
759
- const maximumClippingWidth = width - overflow.left - overflow.right;
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
- const threshold = 1e3 / freq;
3740
- let timer = null;
3741
- return function throttled() {
3742
- const force = this === true;
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
- if (force || now - timestamp > threshold) {
3745
- if (timer) {
3746
- clearTimeout(timer);
3747
- timer = null;
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
- if (_config.cancelToken) {
3986
- _config.cancelToken.unsubscribe(onCanceled);
3987
- }
3988
- if (_config.signal) {
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, _config, request));
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, _config, request));
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
- _config,
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 (typeof _config.onDownloadProgress === "function") {
4071
- request.addEventListener("progress", progressEventReducer(_config.onDownloadProgress, true));
4089
+ if (onDownloadProgress) {
4090
+ [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
4091
+ request.addEventListener("progress", downloadThrottled);
4072
4092
  }
4073
- if (typeof _config.onUploadProgress === "function" && request.upload) {
4074
- request.upload.addEventListener("progress", progressEventReducer(_config.onUploadProgress));
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
- const { done, value } = await iterator.next();
4156
- if (done) {
4157
- controller.close();
4158
- onFinish();
4159
- return;
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
- onFinish(reason);
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 supportsRequestStream = isReadableStreamSupported && (() => {
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
- data2 = trackStream(_request.body, DEFAULT_CHUNK_SIZE, fetchProgressDecorator(
4304
+ const [onProgress, flush] = progressEventDecorator(
4275
4305
  requestContentLength,
4276
- progressEventReducer(onUploadProgress)
4277
- ), null, encodeText);
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 ? "cors" : "omit";
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, onDownloadProgress && fetchProgressDecorator(
4302
- responseContentLength,
4303
- progressEventReducer(onDownloadProgress, true)
4304
- ), isStreamResponse && onFinish, encodeText),
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.2";
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
- onClick: ($event) => select2(option2)
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
- ], 10, _hoisted_7$3);
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-6747635a"]]);
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-edac341b"]]);
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 [...new Set(filtered)];
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 - 1);
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 } = { checkChildren: true }) {
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 hasSameContent = true;
33628
+ let isContentEmpty = true;
33566
33629
  node.content.forEach((childNode) => {
33567
- if (hasSameContent === false) {
33630
+ if (isContentEmpty === false) {
33568
33631
  return;
33569
33632
  }
33570
- if (!isNodeEmpty(childNode)) {
33571
- hasSameContent = false;
33633
+ if (!isNodeEmpty(childNode, { ignoreWhitespace, checkChildren })) {
33634
+ isContentEmpty = false;
33572
33635
  }
33573
33636
  });
33574
- return hasSameContent;
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 = getSplittedAttributes(extensionAttributes, $from.node().type.name, $from.node().attrs);
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 = getSplittedAttributes(extensionAttributes, grandParent.type.name, grandParent.attrs);
33835
- const newNextTypeAttributes = getSplittedAttributes(extensionAttributes, $from.node().type.name, $from.node().attrs);
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: 1px !important;
34498
- height: 1px !important;
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: null,
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-4c2ef2c5"]]);
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(test, obj) {
48200
+ var pickBy = /* @__PURE__ */ _curry2(function pickBy2(test2, obj) {
48117
48201
  var result2 = {};
48118
48202
  for (var prop3 in obj) {
48119
- if (test(obj[prop3], prop3, obj)) {
48203
+ if (test2(obj[prop3], prop3, obj)) {
48120
48204
  result2[prop3] = obj[prop3];
48121
48205
  }
48122
48206
  }