@mintplayer/vue-bootstrap 3.28.0 → 3.29.0

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 (265) hide show
  1. package/accordion/index.mjs +45 -36
  2. package/accordion/src/BsAccordion.vue.d.ts +12 -5
  3. package/accordion/src/BsAccordionItem.vue.d.ts +9 -2
  4. package/accordion/src/accordion-context.d.ts +8 -0
  5. package/accordion/src/index.d.ts +1 -1
  6. package/calendar/index.mjs +99 -24
  7. package/calendar/src/generated/BsCalendar.generated.vue.d.ts +113 -0
  8. package/{charts/trend/src/BsTrendChart.vue.d.ts → calendar/src/generated/calendar.view.generated.vue.d.ts} +4 -5
  9. package/calendar/src/generated/index.d.ts +1 -0
  10. package/calendar/src/index.d.ts +2 -1
  11. package/card/index.mjs +39 -46
  12. package/card/src/BsCard.vue.d.ts +8 -1
  13. package/card/src/BsCardFooter.vue.d.ts +2 -1
  14. package/card/src/BsCardHeader.vue.d.ts +4 -8
  15. package/card/src/BsCardImg.vue.d.ts +2 -1
  16. package/carousel/index.mjs +149 -61
  17. package/carousel/src/carousel.vue.d.ts +2 -0
  18. package/carousel/src/generated/BsCarousel.generated.vue.d.ts +234 -0
  19. package/carousel/src/generated/BsCarouselItem.generated.vue.d.ts +122 -0
  20. package/{navbar/src/BsNavbarItem.vue.d.ts → carousel/src/generated/carousel-item.view.generated.vue.d.ts} +11 -14
  21. package/carousel/src/generated/carousel.view.generated.vue.d.ts +27 -0
  22. package/carousel/src/generated/index.d.ts +2 -0
  23. package/carousel/src/index.d.ts +2 -2
  24. package/charts/hierarchy/index.mjs +242 -41
  25. package/charts/hierarchy/src/generated/BsHierarchyChart.generated.vue.d.ts +292 -0
  26. package/charts/hierarchy/src/generated/hierarchy-chart.view.generated.vue.d.ts +8 -0
  27. package/charts/hierarchy/src/generated/index.d.ts +1 -0
  28. package/charts/hierarchy/src/index.d.ts +2 -2
  29. package/charts/sparkline/index.mjs +44 -18
  30. package/charts/sparkline/src/BsSparkline.vue.d.ts +14 -2
  31. package/charts/trend/index.mjs +133 -21
  32. package/charts/trend/src/generated/BsTrendChart.generated.vue.d.ts +136 -0
  33. package/charts/trend/src/generated/index.d.ts +1 -0
  34. package/charts/trend/src/generated/trend-chart.view.generated.vue.d.ts +8 -0
  35. package/charts/trend/src/index.d.ts +2 -2
  36. package/checkbox/index.mjs +1 -29
  37. package/checkbox/src/BsCheckbox.vue.d.ts +29 -5
  38. package/chunks/BsCheckbox-C8H1KT2D.mjs +96 -0
  39. package/chunks/BsDatatable.generated-CLyz-zYI.mjs +446 -0
  40. package/chunks/BsDatetimePicker.generated-DB9itVGP.mjs +191 -0
  41. package/chunks/BsSplitterPanel.generated-B84cMuMJ.mjs +97 -0
  42. package/chunks/BsTreeview.generated-Rf47miZv.mjs +124 -0
  43. package/chunks/radio-group-key-CnFhXLW0.mjs +4 -0
  44. package/code-snippet/index.mjs +123 -31
  45. package/code-snippet/src/generated/BsCodeSnippet.generated.vue.d.ts +132 -0
  46. package/code-snippet/src/generated/code-snippet.view.generated.vue.d.ts +8 -0
  47. package/code-snippet/src/generated/index.d.ts +1 -0
  48. package/code-snippet/src/index.d.ts +2 -1
  49. package/datatable/index.mjs +3 -86
  50. package/datatable/src/generated/BsDatatable.generated.vue.d.ts +544 -0
  51. package/datatable/src/generated/datatable.view.generated.vue.d.ts +59 -0
  52. package/datatable/src/generated/index.d.ts +1 -0
  53. package/datatable/src/index.d.ts +3 -1
  54. package/datepicker/index.mjs +155 -24
  55. package/datepicker/src/generated/BsDatepicker.generated.vue.d.ts +183 -0
  56. package/datepicker/src/generated/datepicker.view.generated.vue.d.ts +8 -0
  57. package/datepicker/src/generated/index.d.ts +1 -0
  58. package/datepicker/src/index.d.ts +3 -1
  59. package/datetime-picker/index.mjs +1 -29
  60. package/datetime-picker/src/generated/BsDatetimePicker.generated.vue.d.ts +216 -0
  61. package/datetime-picker/src/generated/datetime-picker.view.generated.vue.d.ts +8 -0
  62. package/datetime-picker/src/generated/index.d.ts +1 -0
  63. package/datetime-picker/src/index.d.ts +2 -1
  64. package/dock/index.mjs +122 -23
  65. package/dock/src/generated/BsDockManager.generated.vue.d.ts +174 -0
  66. package/dock/src/generated/dock-manager.view.generated.vue.d.ts +33 -0
  67. package/dock/src/generated/dock-node.view.generated.vue.d.ts +6 -0
  68. package/dock/src/generated/index.d.ts +1 -0
  69. package/dock/src/index.d.ts +3 -1
  70. package/dropdown-menu/index.mjs +33 -31
  71. package/dropdown-menu/src/BsDropdownItem.vue.d.ts +1 -1
  72. package/dropdown-menu/src/BsDropdownMenu.vue.d.ts +12 -5
  73. package/dropdown-menu/src/index.d.ts +1 -1
  74. package/file-manager/index.mjs +265 -17
  75. package/file-manager/src/generated/BsFileManager.generated.vue.d.ts +213 -0
  76. package/file-manager/src/generated/file-manager.view.generated.vue.d.ts +8 -0
  77. package/file-manager/src/generated/index.d.ts +1 -0
  78. package/file-manager/src/index.d.ts +3 -1
  79. package/input-group/index.mjs +15 -8
  80. package/input-group/src/BsInputGroup.vue.d.ts +7 -1
  81. package/machine/index.mjs +64 -1
  82. package/machine/src/content.d.ts +13 -0
  83. package/machine/src/core.d.ts +23 -0
  84. package/machine/src/core.spec.d.ts +1 -0
  85. package/machine/src/index.d.ts +2 -0
  86. package/multi-range/index.mjs +97 -22
  87. package/multi-range/src/generated/BsMultiRange.generated.vue.d.ts +132 -0
  88. package/multi-range/src/generated/index.d.ts +1 -0
  89. package/multi-range/src/generated/multi-range.view.generated.vue.d.ts +8 -0
  90. package/multi-range/src/index.d.ts +2 -1
  91. package/navbar/index.mjs +189 -57
  92. package/navbar/src/generated/BsNavbar.generated.vue.d.ts +196 -0
  93. package/navbar/src/generated/BsNavbarDropdown.generated.vue.d.ts +155 -0
  94. package/navbar/src/generated/BsNavbarItem.generated.vue.d.ts +144 -0
  95. package/navbar/src/generated/BsNavbarNav.generated.vue.d.ts +135 -0
  96. package/navbar/src/generated/index.d.ts +4 -0
  97. package/navbar/src/generated/navbar-dropdown.view.generated.vue.d.ts +34 -0
  98. package/navbar/src/generated/navbar-item.view.generated.vue.d.ts +27 -0
  99. package/navbar/src/generated/navbar-nav.view.generated.vue.d.ts +27 -0
  100. package/navbar/src/generated/navbar.view.generated.vue.d.ts +38 -0
  101. package/navbar/src/index.d.ts +2 -5
  102. package/otp-input/index.mjs +115 -21
  103. package/otp-input/src/generated/BsOtpInput.generated.vue.d.ts +134 -0
  104. package/otp-input/src/generated/index.d.ts +1 -0
  105. package/{theming/src/BsThemeToggle.vue.d.ts → otp-input/src/generated/otp-input.view.generated.vue.d.ts} +3 -3
  106. package/otp-input/src/index.d.ts +2 -1
  107. package/package.json +7 -5
  108. package/pagination/index.mjs +54 -20
  109. package/pagination/src/BsPagination.vue.d.ts +21 -4
  110. package/phone-input/index.mjs +151 -31
  111. package/phone-input/src/generated/BsPhoneInput.generated.vue.d.ts +174 -0
  112. package/phone-input/src/generated/index.d.ts +1 -0
  113. package/{file-manager/src/BsFileManager.vue.d.ts → phone-input/src/generated/phone-input.view.generated.vue.d.ts} +3 -3
  114. package/phone-input/src/index.d.ts +2 -1
  115. package/query-builder/index.mjs +259 -42
  116. package/query-builder/src/generated/BsQueryBuilder.generated.vue.d.ts +268 -0
  117. package/query-builder/src/generated/index.d.ts +1 -0
  118. package/query-builder/src/generated/query-builder-item.view.generated.vue.d.ts +30 -0
  119. package/query-builder/src/generated/query-builder.view.generated.vue.d.ts +33 -0
  120. package/query-builder/src/index.d.ts +3 -1
  121. package/radio/index.mjs +74 -21
  122. package/radio/src/BsRadio.vue.d.ts +28 -8
  123. package/radio/src/index.d.ts +1 -0
  124. package/radio/src/radio-group-key.d.ts +10 -0
  125. package/radio-group/index.mjs +37 -20
  126. package/radio-group/src/BsRadioGroup.vue.d.ts +13 -8
  127. package/ribbon/index.mjs +1223 -25
  128. package/ribbon/src/generated/BsQuickAccessToolbar.generated.vue.d.ts +135 -0
  129. package/ribbon/src/generated/BsRibbon.generated.vue.d.ts +219 -0
  130. package/ribbon/src/generated/BsRibbonButton.generated.vue.d.ts +199 -0
  131. package/ribbon/src/generated/BsRibbonCheckBox.generated.vue.d.ts +106 -0
  132. package/ribbon/src/generated/BsRibbonColorPicker.generated.vue.d.ts +106 -0
  133. package/ribbon/src/generated/BsRibbonComboBox.generated.vue.d.ts +117 -0
  134. package/ribbon/src/generated/BsRibbonContextualTabSet.generated.vue.d.ts +153 -0
  135. package/ribbon/src/generated/BsRibbonDropdownButton.generated.vue.d.ts +204 -0
  136. package/ribbon/src/generated/BsRibbonGallery.generated.vue.d.ts +210 -0
  137. package/ribbon/src/generated/BsRibbonGalleryItem.generated.vue.d.ts +175 -0
  138. package/ribbon/src/generated/BsRibbonGroup.generated.vue.d.ts +199 -0
  139. package/ribbon/src/generated/BsRibbonGroupButton.generated.vue.d.ts +117 -0
  140. package/ribbon/src/generated/BsRibbonMenuItem.generated.vue.d.ts +188 -0
  141. package/ribbon/src/generated/BsRibbonMenuSeparator.generated.vue.d.ts +17 -0
  142. package/ribbon/src/generated/BsRibbonSplitButton.generated.vue.d.ts +208 -0
  143. package/ribbon/src/generated/BsRibbonTab.generated.vue.d.ts +175 -0
  144. package/ribbon/src/generated/BsRibbonTemplateItem.generated.vue.d.ts +135 -0
  145. package/ribbon/src/generated/BsRibbonToggleButton.generated.vue.d.ts +210 -0
  146. package/ribbon/src/generated/index.d.ts +18 -0
  147. package/ribbon/src/generated/quick-access-toolbar.view.generated.vue.d.ts +27 -0
  148. package/ribbon/src/generated/ribbon-button.view.generated.vue.d.ts +27 -0
  149. package/ribbon/src/generated/ribbon-check-box.view.generated.vue.d.ts +8 -0
  150. package/ribbon/src/generated/ribbon-color-picker.view.generated.vue.d.ts +8 -0
  151. package/ribbon/src/generated/ribbon-combo-box.view.generated.vue.d.ts +9 -0
  152. package/ribbon/src/generated/ribbon-contextual-tab-set.view.generated.vue.d.ts +27 -0
  153. package/ribbon/src/generated/ribbon-dropdown-button.view.generated.vue.d.ts +29 -0
  154. package/ribbon/src/generated/ribbon-gallery-item.view.generated.vue.d.ts +27 -0
  155. package/ribbon/src/generated/ribbon-gallery.view.generated.vue.d.ts +28 -0
  156. package/ribbon/src/generated/ribbon-group-button.view.generated.vue.d.ts +9 -0
  157. package/ribbon/src/generated/ribbon-group.view.generated.vue.d.ts +27 -0
  158. package/ribbon/src/generated/ribbon-menu-item.view.generated.vue.d.ts +27 -0
  159. package/ribbon/src/generated/ribbon-menu-separator.view.generated.vue.d.ts +8 -0
  160. package/ribbon/src/generated/ribbon-split-button.view.generated.vue.d.ts +29 -0
  161. package/ribbon/src/generated/ribbon-tab.view.generated.vue.d.ts +27 -0
  162. package/ribbon/src/generated/ribbon-template-item.view.generated.vue.d.ts +27 -0
  163. package/ribbon/src/generated/ribbon-toggle-button.view.generated.vue.d.ts +27 -0
  164. package/ribbon/src/generated/ribbon.view.generated.vue.d.ts +29 -0
  165. package/ribbon/src/index.d.ts +3 -2
  166. package/scheduler/index.mjs +457 -39
  167. package/scheduler/src/generated/BsScheduler.generated.vue.d.ts +202 -0
  168. package/scheduler/src/generated/index.d.ts +1 -0
  169. package/scheduler/src/generated/sched-editor.view.generated.vue.d.ts +6 -0
  170. package/scheduler/src/generated/sched-month.view.generated.vue.d.ts +6 -0
  171. package/scheduler/src/generated/sched-popover-event.view.generated.vue.d.ts +6 -0
  172. package/scheduler/src/generated/sched-popover.view.generated.vue.d.ts +6 -0
  173. package/scheduler/src/generated/sched-row-panel.view.generated.vue.d.ts +6 -0
  174. package/scheduler/src/generated/sched-time-grid.view.generated.vue.d.ts +6 -0
  175. package/scheduler/src/generated/sched-timeline.view.generated.vue.d.ts +6 -0
  176. package/scheduler/src/generated/sched-year.view.generated.vue.d.ts +6 -0
  177. package/scheduler/src/generated/scheduler.view.generated.vue.d.ts +8 -0
  178. package/scheduler/src/index.d.ts +4 -2
  179. package/select/index.mjs +129 -30
  180. package/select/src/generated/BsSelect.generated.vue.d.ts +257 -0
  181. package/select/src/generated/index.d.ts +1 -0
  182. package/select/src/generated/select.view.generated.vue.d.ts +37 -0
  183. package/select/src/index.d.ts +2 -1
  184. package/shell/index.mjs +54 -27
  185. package/shell/src/BsShell.vue.d.ts +23 -11
  186. package/shell/src/index.d.ts +2 -1
  187. package/shell/src/shell-state-change.d.ts +4 -0
  188. package/signature-pad/index.mjs +101 -22
  189. package/signature-pad/src/generated/BsSignaturePad.generated.vue.d.ts +129 -0
  190. package/signature-pad/src/generated/index.d.ts +1 -0
  191. package/signature-pad/src/generated/signature-pad.view.generated.vue.d.ts +8 -0
  192. package/signature-pad/src/index.d.ts +2 -2
  193. package/splitter/index.mjs +1 -13
  194. package/splitter/src/generated/BsSplitter.generated.vue.d.ts +177 -0
  195. package/splitter/src/generated/BsSplitterPanel.generated.vue.d.ts +122 -0
  196. package/splitter/src/generated/index.d.ts +2 -0
  197. package/splitter/src/generated/splitter-panel.view.generated.vue.d.ts +27 -0
  198. package/splitter/src/generated/splitter.view.generated.vue.d.ts +27 -0
  199. package/splitter/src/index.d.ts +2 -2
  200. package/src/index.d.ts +4 -7
  201. package/tab-control/index.mjs +90 -21
  202. package/tab-control/src/BsTabControl.vue.d.ts +63 -28
  203. package/{timeline/src/BsTimelineItem.vue.d.ts → tab-control/src/BsTabPage.vue.d.ts} +8 -11
  204. package/tab-control/src/index.d.ts +2 -1
  205. package/theming/index.mjs +53 -31
  206. package/theming/src/generated/BsThemeToggle.generated.vue.d.ts +31 -0
  207. package/theming/src/generated/index.d.ts +1 -0
  208. package/theming/src/generated/theme-toggle.view.generated.vue.d.ts +8 -0
  209. package/theming/src/index.d.ts +2 -2
  210. package/theming/src/useBsTheme.d.ts +2 -2
  211. package/tile-manager/src/BsTileManager.vue.d.ts +3 -3
  212. package/timeline/index.mjs +224 -136
  213. package/timeline/src/generated/BsTimeline.generated.vue.d.ts +328 -0
  214. package/timeline/src/generated/BsTimelineItem.generated.vue.d.ts +209 -0
  215. package/timeline/src/generated/index.d.ts +2 -0
  216. package/timeline/src/generated/timeline-item.view.generated.vue.d.ts +45 -0
  217. package/timeline/src/generated/timeline.view.generated.vue.d.ts +89 -0
  218. package/timeline/src/index.d.ts +3 -4
  219. package/timepicker/index.mjs +195 -42
  220. package/timepicker/src/generated/BsTimeList.generated.vue.d.ts +94 -0
  221. package/timepicker/src/generated/BsTimepicker.generated.vue.d.ts +161 -0
  222. package/timepicker/src/generated/index.d.ts +2 -0
  223. package/timepicker/src/generated/time-list.view.generated.vue.d.ts +8 -0
  224. package/timepicker/src/generated/timepicker.view.generated.vue.d.ts +8 -0
  225. package/timepicker/src/index.d.ts +2 -2
  226. package/toggle-button/index.mjs +18 -19
  227. package/toggle-button/src/BsToggleButton.vue.d.ts +2 -6
  228. package/tree-select/index.mjs +240 -91
  229. package/tree-select/src/generated/BsTreeSelect.generated.vue.d.ts +323 -0
  230. package/tree-select/src/generated/index.d.ts +1 -0
  231. package/tree-select/src/generated/tree-select.view.generated.vue.d.ts +56 -0
  232. package/tree-select/src/index.d.ts +3 -3
  233. package/treeview/index.mjs +1 -58
  234. package/treeview/src/generated/BsTreeview.generated.vue.d.ts +240 -0
  235. package/treeview/src/generated/index.d.ts +1 -0
  236. package/treeview/src/generated/treeview.view.generated.vue.d.ts +36 -0
  237. package/treeview/src/index.d.ts +2 -1
  238. package/typeahead/index.mjs +71 -59
  239. package/typeahead/src/BsTypeahead.vue.d.ts +3 -3
  240. package/calendar/src/BsCalendar.vue.d.ts +0 -28
  241. package/carousel/src/BsCarousel.vue.d.ts +0 -53
  242. package/charts/hierarchy/src/BsHierarchyChart.vue.d.ts +0 -19
  243. package/code-snippet/src/BsCodeSnippet.vue.d.ts +0 -43
  244. package/datatable/src/BsDatatable.vue.d.ts +0 -89
  245. package/datepicker/src/BsDatepicker.vue.d.ts +0 -28
  246. package/datetime-picker/src/BsDatetimePicker.vue.d.ts +0 -28
  247. package/dock/src/BsDockManager.vue.d.ts +0 -29
  248. package/multi-range/src/BsMultiRange.vue.d.ts +0 -11
  249. package/navbar/src/BsNavbar.vue.d.ts +0 -38
  250. package/navbar/src/BsNavbarBrand.vue.d.ts +0 -21
  251. package/navbar/src/BsNavbarDropdown.vue.d.ts +0 -22
  252. package/otp-input/src/BsOtpInput.vue.d.ts +0 -11
  253. package/phone-input/src/BsPhoneInput.vue.d.ts +0 -16
  254. package/query-builder/src/BsQueryBuilder.vue.d.ts +0 -20
  255. package/ribbon/src/BsRibbon.vue.d.ts +0 -29
  256. package/scheduler/src/BsScheduler.vue.d.ts +0 -31
  257. package/select/src/BsSelect.vue.d.ts +0 -33
  258. package/signature-pad/src/BsSignaturePad.vue.d.ts +0 -12
  259. package/splitter/src/BsSplitter.vue.d.ts +0 -17
  260. package/timeline/src/BsTimeline.vue.d.ts +0 -58
  261. package/timepicker/src/BsTimeList.vue.d.ts +0 -28
  262. package/timepicker/src/BsTimepicker.vue.d.ts +0 -28
  263. package/tree-select/src/BsTreeSelect.vue.d.ts +0 -32
  264. package/treeview/src/BsTreeview.vue.d.ts +0 -27
  265. package/vue-bootstrap.css +0 -2
@@ -1,37 +1,157 @@
1
- import { createElementBlock as e, defineComponent as t, mergeModels as n, mergeProps as r, onMounted as i, openBlock as a, ref as o, useModel as s, watch as c } from "vue";
2
- import "@mintplayer/web-components/phone-input";
3
- //#endregion
4
- //#region libs/mintplayer-vue-bootstrap/phone-input/src/BsPhoneInput.vue
5
- var l = /* @__PURE__ */ t({
1
+ import { useCore as e } from "../machine/index.mjs";
2
+ import { Fragment as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, defineComponent as s, mergeProps as c, openBlock as l, renderList as u, toDisplayString as d, unref as f, useTemplateRef as p } from "vue";
3
+ import { installLightStyles as m } from "@mintplayer/ui-core/scoped-styles";
4
+ import { phoneInputCore as h, phoneInputScopedStyles as g } from "@mintplayer/ui-core/phone-input";
5
+ //#region libs/mintplayer-vue-bootstrap/phone-input/src/generated/phone-input.view.generated.vue?vue&type=script&setup=true&lang.ts
6
+ var _ = {
7
+ key: 0,
8
+ "data-mps": "phone-input",
9
+ type: "button"
10
+ }, v = ["innerHTML"], y = ["innerHTML"], b = /* @__PURE__ */ s({
6
11
  inheritAttrs: !1,
7
- __name: "BsPhoneInput",
12
+ __name: "phone-input.view.generated",
13
+ props: { view: {} },
14
+ setup(e) {
15
+ return (n, s) => (l(), i("div", c({
16
+ class: n.$attrs.class,
17
+ style: n.$attrs.style,
18
+ "data-mps": "phone-input",
19
+ ref: "root"
20
+ }, e.view.root), [
21
+ a("div", c({ "data-mps": "phone-input" }, e.view.group), [
22
+ a("select", c({ "data-mps": "phone-input" }, e.view.select), [e.view.rich ? (l(), i("button", _, [...s[0] ||= [a("selectedcontent", null, null, -1)]])) : r("", !0), (l(!0), i(t, null, u(e.view.options, (n) => (l(), i("option", c({
23
+ "data-mps": "phone-input",
24
+ key: n.key
25
+ }, { ref_for: !0 }, n.bag), [e.view.rich ? (l(), i(t, { key: 0 }, [
26
+ a("span", c({ "data-mps": "phone-input" }, { ref_for: !0 }, e.view.flagBox, { innerHTML: n.flag }), null, 16, v),
27
+ a("span", c({ "data-mps": "phone-input" }, { ref_for: !0 }, e.view.richLabel), d(n.name), 17),
28
+ a("span", c({ "data-mps": "phone-input" }, { ref_for: !0 }, e.view.listOnly), d(n.dial), 17),
29
+ a("span", c({ "data-mps": "phone-input" }, { ref_for: !0 }, e.view.closedOnly), d(n.iso), 17)
30
+ ], 64)) : (l(), i(t, { key: 1 }, [o(d(n.label), 1)], 64))], 16))), 128))], 16),
31
+ a("span", c({ "data-mps": "phone-input" }, e.view.addon), [a("span", c({ "data-mps": "phone-input" }, e.view.flag, { innerHTML: e.view.flagHtml }), null, 16, y), a("span", c({ "data-mps": "phone-input" }, e.view.dial), d(e.view.dialText), 17)], 16),
32
+ a("input", c({ "data-mps": "phone-input" }, {
33
+ ...e.view.input,
34
+ ...n.$attrs,
35
+ class: String(e.view.input.class ?? ""),
36
+ style: void 0,
37
+ role: String(e.view.input.role ?? n.$attrs.role ?? "") || void 0
38
+ }), null, 16)
39
+ ], 16),
40
+ e.view.hidden ? (l(), i("input", c({
41
+ key: 0,
42
+ "data-mps": "phone-input"
43
+ }, e.view.hidden), null, 16)) : r("", !0),
44
+ e.view.showFeedback ? (l(), i("div", c({
45
+ key: 1,
46
+ "data-mps": "phone-input"
47
+ }, e.view.feedback.attrs), d(e.view.feedback.text), 17)) : r("", !0)
48
+ ], 16));
49
+ }
50
+ }), x = /* @__PURE__ */ s({
51
+ name: "BsPhoneInput",
52
+ __name: "BsPhoneInput.generated",
8
53
  props: {
9
- modelValue: {},
10
- modelModifiers: {}
11
- },
12
- emits: /*@__PURE__*/ n(["phoneChange", "countryChange"], ["update:modelValue"]),
13
- setup(t, { emit: n }) {
14
- let l = s(t, "modelValue"), u = n, d = o(null);
15
- function f() {
16
- d.value && (d.value.value = l.value ?? null);
54
+ value: {
55
+ type: String,
56
+ default: null
57
+ },
58
+ country: {
59
+ type: String,
60
+ default: null
61
+ },
62
+ defaultCountry: {
63
+ type: String,
64
+ default: void 0
65
+ },
66
+ locale: {
67
+ type: String,
68
+ default: void 0
69
+ },
70
+ preferredCountries: {
71
+ type: String,
72
+ default: null
73
+ },
74
+ allowedCountries: {
75
+ type: String,
76
+ default: null
77
+ },
78
+ disabled: {
79
+ type: Boolean,
80
+ default: !1
81
+ },
82
+ required: {
83
+ type: Boolean,
84
+ default: !1
85
+ },
86
+ invalid: {
87
+ type: Boolean,
88
+ default: !1
89
+ },
90
+ errorText: {
91
+ type: String,
92
+ default: void 0
93
+ },
94
+ placeholder: {
95
+ type: String,
96
+ default: void 0
97
+ },
98
+ autocomplete: {
99
+ type: String,
100
+ default: "tel-national"
101
+ },
102
+ name: {
103
+ type: String,
104
+ default: void 0
105
+ },
106
+ inputLabel: {
107
+ type: String,
108
+ default: void 0
109
+ },
110
+ countryLabel: {
111
+ type: String,
112
+ default: void 0
17
113
  }
18
- i(f), c(l, f);
19
- function p(e) {
20
- let t = e.detail;
21
- t && (l.value = t.value, u("phoneChange", t));
22
- }
23
- function m(e) {
24
- let t = e.detail;
25
- t && u("countryChange", t.country);
26
- }
27
- return (t, n) => (a(), e("mp-phone-input", r({
28
- ref_key: "el",
29
- ref: d
30
- }, t.$attrs, {
31
- onValueChange: p,
32
- onCountryChange: m
33
- }), null, 16));
114
+ },
115
+ emits: [
116
+ "valuechange",
117
+ "countrychange",
118
+ "phonechange",
119
+ "update:value",
120
+ "update:country"
121
+ ],
122
+ setup(t, { expose: r, emit: i }) {
123
+ let a = t, o = i;
124
+ m("phone-input", g);
125
+ let s = p("template"), u = e(h, () => ({
126
+ value: a.value,
127
+ country: a.country,
128
+ defaultCountry: a.defaultCountry,
129
+ locale: a.locale,
130
+ preferredCountries: a.preferredCountries,
131
+ allowedCountries: a.allowedCountries,
132
+ disabled: a.disabled,
133
+ required: a.required,
134
+ invalid: a.invalid,
135
+ errorText: a.errorText,
136
+ placeholder: a.placeholder,
137
+ autocomplete: a.autocomplete,
138
+ name: a.name,
139
+ inputLabel: a.inputLabel,
140
+ countryLabel: a.countryLabel
141
+ }), {
142
+ idPrefix: "bs-phone-input",
143
+ root: () => s.value?.$el,
144
+ emit: (e, t) => o(e.startsWith("update:") ? e : e.toLowerCase(), t),
145
+ models: ["value", "country"]
146
+ }), d = u.props;
147
+ return r({
148
+ focusInput: (...e) => u.call("focusInput", e),
149
+ whenReady: (...e) => u.call("whenReady", e)
150
+ }), (e, t) => (l(), n(b, c({
151
+ ref_key: "template",
152
+ ref: s
153
+ }, f(d)), null, 16));
34
154
  }
35
155
  });
36
156
  //#endregion
37
- export { l as BsPhoneInput };
157
+ export { x as BsPhoneInput };
@@ -0,0 +1,174 @@
1
+ import { PropType } from 'vue';
2
+ import { PhoneChangeEventDetail, PhoneInputInputs, PhoneInputMethods } from '@mintplayer/ui-core/phone-input';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ value: {
5
+ type: PropType<PhoneInputInputs["value"]>;
6
+ default: null;
7
+ };
8
+ country: {
9
+ type: PropType<PhoneInputInputs["country"]>;
10
+ default: null;
11
+ };
12
+ defaultCountry: {
13
+ type: PropType<PhoneInputInputs["defaultCountry"]>;
14
+ default: undefined;
15
+ };
16
+ locale: {
17
+ type: PropType<PhoneInputInputs["locale"]>;
18
+ default: undefined;
19
+ };
20
+ preferredCountries: {
21
+ type: PropType<PhoneInputInputs["preferredCountries"]>;
22
+ default: null;
23
+ };
24
+ allowedCountries: {
25
+ type: PropType<PhoneInputInputs["allowedCountries"]>;
26
+ default: null;
27
+ };
28
+ disabled: {
29
+ type: PropType<PhoneInputInputs["disabled"]>;
30
+ default: boolean;
31
+ };
32
+ required: {
33
+ type: PropType<PhoneInputInputs["required"]>;
34
+ default: boolean;
35
+ };
36
+ invalid: {
37
+ type: PropType<PhoneInputInputs["invalid"]>;
38
+ default: boolean;
39
+ };
40
+ errorText: {
41
+ type: PropType<PhoneInputInputs["errorText"]>;
42
+ default: undefined;
43
+ };
44
+ placeholder: {
45
+ type: PropType<PhoneInputInputs["placeholder"]>;
46
+ default: undefined;
47
+ };
48
+ autocomplete: {
49
+ type: PropType<PhoneInputInputs["autocomplete"]>;
50
+ default: string;
51
+ };
52
+ name: {
53
+ type: PropType<PhoneInputInputs["name"]>;
54
+ default: undefined;
55
+ };
56
+ inputLabel: {
57
+ type: PropType<PhoneInputInputs["inputLabel"]>;
58
+ default: undefined;
59
+ };
60
+ countryLabel: {
61
+ type: PropType<PhoneInputInputs["countryLabel"]>;
62
+ default: undefined;
63
+ };
64
+ }>, {
65
+ /** Moves focus into the number field, not the country picker. */
66
+ focusInput: (options?: FocusOptions | undefined) => ReturnType<PhoneInputMethods["focusInput"]>;
67
+ /** Settles once the flags and the rules in flight have been applied. */
68
+ whenReady: () => ReturnType<PhoneInputMethods["whenReady"]>;
69
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
70
+ valuechange: (detail: string | null) => any;
71
+ "update:value": (value: string | null) => any;
72
+ countrychange: (detail: string) => any;
73
+ phonechange: (detail: PhoneChangeEventDetail) => any;
74
+ "update:country": (value: string | null) => any;
75
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
76
+ value: {
77
+ type: PropType<PhoneInputInputs["value"]>;
78
+ default: null;
79
+ };
80
+ country: {
81
+ type: PropType<PhoneInputInputs["country"]>;
82
+ default: null;
83
+ };
84
+ defaultCountry: {
85
+ type: PropType<PhoneInputInputs["defaultCountry"]>;
86
+ default: undefined;
87
+ };
88
+ locale: {
89
+ type: PropType<PhoneInputInputs["locale"]>;
90
+ default: undefined;
91
+ };
92
+ preferredCountries: {
93
+ type: PropType<PhoneInputInputs["preferredCountries"]>;
94
+ default: null;
95
+ };
96
+ allowedCountries: {
97
+ type: PropType<PhoneInputInputs["allowedCountries"]>;
98
+ default: null;
99
+ };
100
+ disabled: {
101
+ type: PropType<PhoneInputInputs["disabled"]>;
102
+ default: boolean;
103
+ };
104
+ required: {
105
+ type: PropType<PhoneInputInputs["required"]>;
106
+ default: boolean;
107
+ };
108
+ invalid: {
109
+ type: PropType<PhoneInputInputs["invalid"]>;
110
+ default: boolean;
111
+ };
112
+ errorText: {
113
+ type: PropType<PhoneInputInputs["errorText"]>;
114
+ default: undefined;
115
+ };
116
+ placeholder: {
117
+ type: PropType<PhoneInputInputs["placeholder"]>;
118
+ default: undefined;
119
+ };
120
+ autocomplete: {
121
+ type: PropType<PhoneInputInputs["autocomplete"]>;
122
+ default: string;
123
+ };
124
+ name: {
125
+ type: PropType<PhoneInputInputs["name"]>;
126
+ default: undefined;
127
+ };
128
+ inputLabel: {
129
+ type: PropType<PhoneInputInputs["inputLabel"]>;
130
+ default: undefined;
131
+ };
132
+ countryLabel: {
133
+ type: PropType<PhoneInputInputs["countryLabel"]>;
134
+ default: undefined;
135
+ };
136
+ }>> & Readonly<{
137
+ onValuechange?: ((detail: string | null) => any) | undefined;
138
+ "onUpdate:value"?: ((value: string | null) => any) | undefined;
139
+ onCountrychange?: ((detail: string) => any) | undefined;
140
+ onPhonechange?: ((detail: PhoneChangeEventDetail) => any) | undefined;
141
+ "onUpdate:country"?: ((value: string | null) => any) | undefined;
142
+ }>, {
143
+ name: string | null | undefined;
144
+ disabled: boolean;
145
+ value: string | null;
146
+ invalid: boolean;
147
+ locale: string | null | undefined;
148
+ placeholder: string | null | undefined;
149
+ inputLabel: string | null | undefined;
150
+ required: boolean;
151
+ errorText: string | null | undefined;
152
+ autocomplete: string;
153
+ country: string | null;
154
+ defaultCountry: string | null | undefined;
155
+ preferredCountries: string | readonly string[] | null;
156
+ allowedCountries: string | readonly string[] | null;
157
+ countryLabel: string | null | undefined;
158
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
159
+ template: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
160
+ view: import('@mintplayer/ui-core/phone-input').PhoneInputView;
161
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
162
+ root: HTMLDivElement;
163
+ }, any, import('vue').ComponentProvideOptions, {
164
+ P: {};
165
+ B: {};
166
+ D: {};
167
+ C: {};
168
+ M: {};
169
+ Defaults: {};
170
+ }, Readonly<{
171
+ view: import('@mintplayer/ui-core/phone-input').PhoneInputView;
172
+ }> & Readonly<{}>, {}, {}, {}, {}, {}> | null;
173
+ }, any>;
174
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as BsPhoneInput } from './BsPhoneInput.generated.vue';
@@ -1,8 +1,8 @@
1
- import { MpFileManager, FileSystemNode } from '@mintplayer/web-components/file-manager';
1
+ import { PhoneInputView } from '@mintplayer/ui-core/phone-input';
2
2
  type __VLS_Props = {
3
- nodes?: FileSystemNode[];
3
+ view: PhoneInputView;
4
4
  };
5
5
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
6
- el: MpFileManager | null;
6
+ root: HTMLDivElement;
7
7
  }, any>;
8
8
  export default _default;
@@ -1 +1,2 @@
1
- export { default as BsPhoneInput } from './BsPhoneInput.vue';
1
+ export * from './generated';
2
+ export type { PhoneChangeEventDetail } from '@mintplayer/ui-core/phone-input';