bitboss-ui 0.1.2 → 0.1.4

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 (284) hide show
  1. package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +1 -0
  2. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +151 -0
  3. package/dist/components/BbPopover/BbPopover.vue.d.ts +96 -0
  4. package/dist/components/BbRatio/BbRatio.vue.d.ts +12 -0
  5. package/dist/components/BbSpinner/BbSpinner.vue.d.ts +1 -1
  6. package/dist/index.d.ts +4 -0
  7. package/dist/index.js +104 -98
  8. package/dist/index.js.map +1 -1
  9. package/dist/index10.js +123 -95
  10. package/dist/index10.js.map +1 -1
  11. package/dist/index100.js +43 -3
  12. package/dist/index100.js.map +1 -1
  13. package/dist/index101.js +2 -2
  14. package/dist/index102.js +2 -2
  15. package/dist/index103.js +2 -2
  16. package/dist/index104.js +2 -2
  17. package/dist/index105.js +2 -2
  18. package/dist/index106.js +2 -2
  19. package/dist/index107.js +2 -2
  20. package/dist/index108.js +2 -2
  21. package/dist/index109.js +2 -2
  22. package/dist/index110.js +2 -2
  23. package/dist/index111.js +2 -2
  24. package/dist/index112.js +2 -2
  25. package/dist/index113.js +2 -2
  26. package/dist/index114.js +2 -2
  27. package/dist/index115.js +2 -2
  28. package/dist/index116.js +2 -2
  29. package/dist/index117.js +2 -2
  30. package/dist/index118.js +2 -2
  31. package/dist/index119.js +3 -2
  32. package/dist/index119.js.map +1 -1
  33. package/dist/index12.js +4 -4
  34. package/dist/index120.js +2 -2
  35. package/dist/index121.js +3 -2
  36. package/dist/index121.js.map +1 -1
  37. package/dist/index123.js +2 -2
  38. package/dist/index124.js +2 -3
  39. package/dist/index124.js.map +1 -1
  40. package/dist/index125.js +2 -2
  41. package/dist/index126.js +2 -3
  42. package/dist/index126.js.map +1 -1
  43. package/dist/index127.js +2 -2
  44. package/dist/index128.js +2 -2
  45. package/dist/index129.js +3 -2
  46. package/dist/index129.js.map +1 -1
  47. package/dist/index130.js +2 -2
  48. package/dist/index131.js +2 -2
  49. package/dist/index132.js +2 -2
  50. package/dist/index133.js +2 -2
  51. package/dist/index134.js +2 -3
  52. package/dist/index134.js.map +1 -1
  53. package/dist/index135.js +2 -2
  54. package/dist/index136.js +2 -2
  55. package/dist/index137.js +2 -2
  56. package/dist/index138.js +2 -2
  57. package/dist/index139.js +2 -2
  58. package/dist/index14.js +6 -6
  59. package/dist/index140.js +3 -2
  60. package/dist/index140.js.map +1 -1
  61. package/dist/index141.js +2 -2
  62. package/dist/index142.js +3 -2
  63. package/dist/index142.js.map +1 -1
  64. package/dist/index145.js +2 -2
  65. package/dist/index146.js +2 -3
  66. package/dist/index146.js.map +1 -1
  67. package/dist/index147.js +2 -2
  68. package/dist/index148.js +2 -3
  69. package/dist/index148.js.map +1 -1
  70. package/dist/index149.js +2 -2
  71. package/dist/index150.js +2 -2
  72. package/dist/index151.js +3 -2
  73. package/dist/index151.js.map +1 -1
  74. package/dist/index152.js +3 -4
  75. package/dist/index152.js.map +1 -1
  76. package/dist/index153.js +3 -8
  77. package/dist/index153.js.map +1 -1
  78. package/dist/index154.js +3 -2
  79. package/dist/index154.js.map +1 -1
  80. package/dist/index155.js +3 -2
  81. package/dist/index155.js.map +1 -1
  82. package/dist/index156.js +3 -5
  83. package/dist/index156.js.map +1 -1
  84. package/dist/index157.js +348 -17
  85. package/dist/index157.js.map +1 -1
  86. package/dist/index158.js +131 -17
  87. package/dist/index158.js.map +1 -1
  88. package/dist/index159.js +5 -29
  89. package/dist/index159.js.map +1 -1
  90. package/dist/index16.js +1 -1
  91. package/dist/index160.js +19 -2
  92. package/dist/index160.js.map +1 -1
  93. package/dist/index162.js +2 -2
  94. package/dist/index162.js.map +1 -1
  95. package/dist/index163.js +184 -14
  96. package/dist/index163.js.map +1 -1
  97. package/dist/index164.js +2 -13
  98. package/dist/index164.js.map +1 -1
  99. package/dist/index165.js +23 -2
  100. package/dist/index165.js.map +1 -1
  101. package/dist/index166.js +328 -3
  102. package/dist/index166.js.map +1 -1
  103. package/dist/index167.js +16 -2
  104. package/dist/index167.js.map +1 -1
  105. package/dist/index168.js +12 -5
  106. package/dist/index168.js.map +1 -1
  107. package/dist/index169.js +2 -350
  108. package/dist/index169.js.map +1 -1
  109. package/dist/index170.js +2 -134
  110. package/dist/index170.js.map +1 -1
  111. package/dist/index171.js +2 -186
  112. package/dist/index171.js.map +1 -1
  113. package/dist/index172.js +4 -23
  114. package/dist/index172.js.map +1 -1
  115. package/dist/index173.js +8 -328
  116. package/dist/index173.js.map +1 -1
  117. package/dist/index174.js +20 -2
  118. package/dist/index174.js.map +1 -1
  119. package/dist/index175.js +29 -21
  120. package/dist/index175.js.map +1 -1
  121. package/dist/index176.js +2 -3
  122. package/dist/index176.js.map +1 -1
  123. package/dist/index177.js +3 -3
  124. package/dist/index177.js.map +1 -1
  125. package/dist/index178.js +6 -38
  126. package/dist/index178.js.map +1 -1
  127. package/dist/index179.js +2 -28
  128. package/dist/index179.js.map +1 -1
  129. package/dist/index18.js +2 -2
  130. package/dist/index180.js +2 -13
  131. package/dist/index180.js.map +1 -1
  132. package/dist/index181.js +20 -8
  133. package/dist/index181.js.map +1 -1
  134. package/dist/index182.js +3 -96
  135. package/dist/index182.js.map +1 -1
  136. package/dist/index183.js +3 -4
  137. package/dist/index183.js.map +1 -1
  138. package/dist/index184.js +38 -295
  139. package/dist/index184.js.map +1 -1
  140. package/dist/index185.js +9 -6
  141. package/dist/index185.js.map +1 -1
  142. package/dist/index186.js +96 -2
  143. package/dist/index186.js.map +1 -1
  144. package/dist/index187.js +28 -2
  145. package/dist/index187.js.map +1 -1
  146. package/dist/index188.js +13 -2
  147. package/dist/index188.js.map +1 -1
  148. package/dist/index189.js +6 -2
  149. package/dist/index189.js.map +1 -1
  150. package/dist/index190.js +2 -235
  151. package/dist/index190.js.map +1 -1
  152. package/dist/index191.js +294 -88
  153. package/dist/index191.js.map +1 -1
  154. package/dist/index192.js +2 -2
  155. package/dist/index193.js +2 -117
  156. package/dist/index193.js.map +1 -1
  157. package/dist/index194.js +111 -100
  158. package/dist/index194.js.map +1 -1
  159. package/dist/index195.js +105 -78
  160. package/dist/index195.js.map +1 -1
  161. package/dist/index196.js +4 -224
  162. package/dist/index196.js.map +1 -1
  163. package/dist/index197.js +226 -249
  164. package/dist/index197.js.map +1 -1
  165. package/dist/index198.js +2 -38
  166. package/dist/index198.js.map +1 -1
  167. package/dist/index199.js +2 -2
  168. package/dist/index199.js.map +1 -1
  169. package/dist/index20.js +4 -4
  170. package/dist/index200.js +89 -2
  171. package/dist/index200.js.map +1 -1
  172. package/dist/index201.js +79 -2
  173. package/dist/index201.js.map +1 -1
  174. package/dist/index202.js +49 -8
  175. package/dist/index202.js.map +1 -1
  176. package/dist/index203.js +223 -5
  177. package/dist/index203.js.map +1 -1
  178. package/dist/index204.js +261 -0
  179. package/dist/index204.js.map +1 -0
  180. package/dist/index205.js +41 -0
  181. package/dist/index205.js.map +1 -0
  182. package/dist/index206.js +5 -0
  183. package/dist/index206.js.map +1 -0
  184. package/dist/index207.js +5 -0
  185. package/dist/index207.js.map +1 -0
  186. package/dist/index208.js +12 -0
  187. package/dist/index208.js.map +1 -0
  188. package/dist/index209.js +9 -0
  189. package/dist/index209.js.map +1 -0
  190. package/dist/index210.js +5 -0
  191. package/dist/index210.js.map +1 -0
  192. package/dist/index211.js +14 -0
  193. package/dist/index211.js.map +1 -0
  194. package/dist/index212.js +434 -0
  195. package/dist/index212.js.map +1 -0
  196. package/dist/index213.js +12 -0
  197. package/dist/index213.js.map +1 -0
  198. package/dist/index214.js +203 -0
  199. package/dist/index214.js.map +1 -0
  200. package/dist/index22.js +14 -14
  201. package/dist/index24.js +4 -4
  202. package/dist/index26.js +2 -2
  203. package/dist/index28.js +4 -4
  204. package/dist/index34.js +2 -2
  205. package/dist/index36.js +50 -37
  206. package/dist/index36.js.map +1 -1
  207. package/dist/index38.js +39 -39
  208. package/dist/index38.js.map +1 -1
  209. package/dist/index4.js +2 -2
  210. package/dist/index40.js +36 -82
  211. package/dist/index40.js.map +1 -1
  212. package/dist/index42.js +44 -57
  213. package/dist/index42.js.map +1 -1
  214. package/dist/index44.js +98 -79
  215. package/dist/index44.js.map +1 -1
  216. package/dist/index46.js +79 -81
  217. package/dist/index46.js.map +1 -1
  218. package/dist/index48.js +80 -40
  219. package/dist/index48.js.map +1 -1
  220. package/dist/index50.js +40 -283
  221. package/dist/index50.js.map +1 -1
  222. package/dist/index52.js +279 -95
  223. package/dist/index52.js.map +1 -1
  224. package/dist/index54.js +98 -212
  225. package/dist/index54.js.map +1 -1
  226. package/dist/index56.js +213 -44
  227. package/dist/index56.js.map +1 -1
  228. package/dist/index58.js +45 -40
  229. package/dist/index58.js.map +1 -1
  230. package/dist/index59.js +2 -96
  231. package/dist/index59.js.map +1 -1
  232. package/dist/index6.js +4 -4
  233. package/dist/index60.js +44 -2
  234. package/dist/index60.js.map +1 -1
  235. package/dist/index61.js +89 -211
  236. package/dist/index61.js.map +1 -1
  237. package/dist/index63.js +210 -130
  238. package/dist/index63.js.map +1 -1
  239. package/dist/index65.js +134 -18
  240. package/dist/index65.js.map +1 -1
  241. package/dist/index67.js +145 -74
  242. package/dist/index67.js.map +1 -1
  243. package/dist/index69.js +18 -98
  244. package/dist/index69.js.map +1 -1
  245. package/dist/index71.js +77 -17
  246. package/dist/index71.js.map +1 -1
  247. package/dist/index73.js +48 -66
  248. package/dist/index73.js.map +1 -1
  249. package/dist/index75.js +21 -78
  250. package/dist/index75.js.map +1 -1
  251. package/dist/index77.js +77 -46
  252. package/dist/index77.js.map +1 -1
  253. package/dist/index79.js +44 -61
  254. package/dist/index79.js.map +1 -1
  255. package/dist/index8.js +188 -181
  256. package/dist/index8.js.map +1 -1
  257. package/dist/index81.js +82 -106
  258. package/dist/index81.js.map +1 -1
  259. package/dist/index83.js +88 -370
  260. package/dist/index83.js.map +1 -1
  261. package/dist/index85.js +106 -74
  262. package/dist/index85.js.map +1 -1
  263. package/dist/index87.js +371 -68
  264. package/dist/index87.js.map +1 -1
  265. package/dist/index89.js +75 -111
  266. package/dist/index89.js.map +1 -1
  267. package/dist/index91.js +76 -87
  268. package/dist/index91.js.map +1 -1
  269. package/dist/index93.js +111 -32
  270. package/dist/index93.js.map +1 -1
  271. package/dist/index94.js +2 -37
  272. package/dist/index94.js.map +1 -1
  273. package/dist/index95.js +87 -42
  274. package/dist/index95.js.map +1 -1
  275. package/dist/index96.js +2 -43
  276. package/dist/index96.js.map +1 -1
  277. package/dist/index97.js +38 -3
  278. package/dist/index97.js.map +1 -1
  279. package/dist/index98.js +37 -3
  280. package/dist/index98.js.map +1 -1
  281. package/dist/index99.js +47 -3
  282. package/dist/index99.js.map +1 -1
  283. package/dist/style.css +1 -1
  284. package/package.json +1 -1
package/dist/index44.js CHANGED
@@ -1,86 +1,105 @@
1
- import { defineComponent as y, computed as _, openBlock as n, createBlock as r, unref as e, createSlots as h, withCtx as i, createElementBlock as u, toDisplayString as c, createCommentVNode as d, renderSlot as m, createElementVNode as g, createVNode as C, renderList as x, normalizeProps as V, guardReactiveProps as $, mergeProps as z, createTextVNode as f } from "vue";
2
- import { actions as p, state as o } from "./index178.js";
3
- import v from "./index2.js";
4
- import "./index3.js";
5
- import A from "./index12.js";
6
- import "./index13.js";
7
- import B from "./index96.js";
8
- import "./index142.js";
9
- const N = {
10
- key: 0,
11
- class: "bb-confirm__content"
12
- }, P = {
13
- key: 0,
14
- class: "bb-confirm__text"
15
- }, S = { class: "bb-confirm__spinner" }, F = /* @__PURE__ */ y({
16
- __name: "BbConfirm",
17
- setup(E) {
18
- const s = _(() => p.value[0]), a = _(() => p.value[1]), b = (t) => {
19
- t ? a.value.handler() : s.value.handler();
1
+ import { defineComponent as p, openBlock as m, createBlock as c, withCtx as i, renderSlot as a, normalizeProps as l, guardReactiveProps as s, createVNode as b, mergeProps as h, createSlots as g, renderList as T } from "vue";
2
+ import f from "./index6.js";
3
+ import "./index7.js";
4
+ import y from "./index14.js";
5
+ import "./index15.js";
6
+ const w = /* @__PURE__ */ p({
7
+ __name: "BbCheckboxGroup",
8
+ props: {
9
+ autofocus: { type: Boolean },
10
+ color: {},
11
+ dependencies: {},
12
+ depsDebounceTime: {},
13
+ direction: {},
14
+ inputDirection: {},
15
+ disabled: { type: Boolean },
16
+ enforceCoherence: { type: Boolean },
17
+ errors: {},
18
+ hasErrors: { type: Boolean },
19
+ hideLegend: { type: Boolean },
20
+ hideLabel: { type: Boolean },
21
+ id: {},
22
+ inputPosition: {},
23
+ items: { type: [Array, Function] },
24
+ itemText: { type: [String, Function] },
25
+ itemValue: { type: [String, Function] },
26
+ legend: {},
27
+ legendPosition: {},
28
+ loadingText: {},
29
+ modelValue: {},
30
+ modelValueDebounceTime: {},
31
+ name: {},
32
+ noDataText: {},
33
+ readonly: { type: Boolean },
34
+ reverse: { type: Boolean }
35
+ },
36
+ emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
37
+ setup(V, { emit: o }) {
38
+ const d = {
39
+ onBlur: (e) => o("blur", e),
40
+ onChange: (e) => o("change", e),
41
+ onClick: (e) => o("click", e),
42
+ onFocus: (e) => o("focus", e),
43
+ onInactive: () => o("inactive"),
44
+ onInput: (e) => o("input", e),
45
+ onKeydown: (e) => o("keydown", e),
46
+ onMousedown: (e) => o("mousedown", e),
47
+ onMouseup: (e) => o("mouseup", e),
48
+ "onUpdate:modelValue": (e) => o("update:modelValue", e)
20
49
  };
21
- return (t, U) => (n(), r(A, {
22
- "model-value": e(o).open || e(o).loading,
23
- "panel-classes": "bb-confirm",
24
- size: e(o).size,
25
- title: e(o).title,
26
- "onUpdate:modelValue": b
27
- }, h({
28
- default: i(() => [
29
- e(o).loading ? m(t.$slots, "spinner", { key: 1 }, () => [
30
- g("div", S, [
31
- C(B, { size: "60" })
32
- ])
33
- ]) : (n(), u("div", N, [
34
- e(o).text ? (n(), u("div", P, c(e(o).text), 1)) : d("", !0)
35
- ]))
50
+ return (e, D) => (m(), c(y, {
51
+ class: "bb-checkbox-group",
52
+ direction: e.direction,
53
+ errors: e.errors,
54
+ hasErrors: e.hasErrors,
55
+ hideLabel: e.hideLegend,
56
+ id: e.id,
57
+ inputPosition: e.inputPosition,
58
+ label: e.legend,
59
+ labelPosition: e.legendPosition,
60
+ labelTag: "legend",
61
+ name: e.name,
62
+ reverse: e.reverse,
63
+ tag: "fieldset"
64
+ }, {
65
+ label: i((n) => [
66
+ a(e.$slots, "legend", l(s(n)))
36
67
  ]),
37
- _: 2
38
- }, [
39
- x(["header", "title", "close", "description"], (l) => ({
40
- name: l,
41
- fn: i((k) => [
42
- m(t.$slots, l, V($(k)))
43
- ])
44
- })),
45
- !e(o).loading && e(o).actions ? {
46
- name: "footer",
47
- fn: i((l) => [
48
- m(t.$slots, "footer", z({
49
- loading: e(o).loading,
50
- actions: e(o).actions,
51
- yes: e(o).yes,
52
- no: e(o).no,
53
- yesAction: a.value,
54
- noAction: s.value
55
- }, l), () => [
56
- e(o).no ? (n(), r(v, {
57
- key: 0,
58
- onClick: s.value.handler,
59
- class: "bb-confirm__no"
60
- }, {
61
- default: i(() => [
62
- f(c(s.value.text), 1)
63
- ]),
64
- _: 1
65
- }, 8, ["onClick"])) : d("", !0),
66
- e(o).yes ? (n(), r(v, {
67
- key: 1,
68
- onClick: a.value.handler,
69
- class: "bb-confirm__yes"
70
- }, {
71
- default: i(() => [
72
- f(c(a.value.text), 1)
73
- ]),
74
- _: 1
75
- }, 8, ["onClick"])) : d("", !0)
76
- ])
77
- ]),
78
- key: "0"
79
- } : void 0
80
- ]), 1032, ["model-value", "size", "title"]));
68
+ input: i(({ id: n, name: t }) => [
69
+ b(f, h({
70
+ autofocus: e.autofocus,
71
+ color: e.color,
72
+ dependencies: e.dependencies,
73
+ depsDebounceTime: e.depsDebounceTime,
74
+ direction: e.inputDirection,
75
+ disabled: e.disabled,
76
+ enforceCoherence: e.enforceCoherence,
77
+ hasErrors: e.hasErrors,
78
+ hideLabel: e.hideLabel,
79
+ id: n,
80
+ items: e.items,
81
+ itemText: e.itemText,
82
+ itemValue: e.itemValue,
83
+ loadingText: e.loadingText,
84
+ modelValue: e.modelValue,
85
+ modelValueDebounceTime: e.modelValueDebounceTime,
86
+ name: t,
87
+ noDataText: e.noDataText,
88
+ readonly: e.readonly
89
+ }, d), g({ _: 2 }, [
90
+ T(e.$slots, (B, r) => ({
91
+ name: r,
92
+ fn: i((u) => [
93
+ a(e.$slots, r, l(s(u)))
94
+ ])
95
+ }))
96
+ ]), 1040, ["autofocus", "color", "dependencies", "depsDebounceTime", "direction", "disabled", "enforceCoherence", "hasErrors", "hideLabel", "id", "items", "itemText", "itemValue", "loadingText", "modelValue", "modelValueDebounceTime", "name", "noDataText", "readonly"])
97
+ ]),
98
+ _: 3
99
+ }, 8, ["direction", "errors", "hasErrors", "hideLabel", "id", "inputPosition", "label", "labelPosition", "name", "reverse"]));
81
100
  }
82
101
  });
83
102
  export {
84
- F as default
103
+ w as default
85
104
  };
86
105
  //# sourceMappingURL=index44.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index44.js","sources":["../src/components/BbConfirm/BbConfirm.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode, createElementVNode as _createElementVNode, mergeProps as _mergeProps, createTextVNode as _createTextVNode, withCtx as _withCtx, createBlock as _createBlock, renderList as _renderList, createSlots as _createSlots } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n class: \"bb-confirm__content\"\n}\nconst _hoisted_2 = {\n key: 0,\n class: \"bb-confirm__text\"\n}\nconst _hoisted_3 = { class: \"bb-confirm__spinner\" }\n\nimport { actions, state } from \"@/composables/useConfirm\";\nimport { computed } from \"vue\";\nimport BaseButton from \"../BaseButton/BaseButton.vue\";\nimport BaseDialog from \"../BaseDialog/BaseDialog.vue\";\nimport BbSpinner from \"../BbSpinner/BbSpinner.vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbConfirm',\n setup(__props) {\n\nconst noAction = computed(() => actions.value[0]);\nconst yesAction = computed(() => actions.value[1]);\nconst onModelValueUpdate = (value: boolean) => {\n if (value) yesAction.value.handler();\n else noAction.value.handler();\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseDialog, {\n \"model-value\": _unref(state).open || _unref(state).loading,\n \"panel-classes\": 'bb-confirm',\n size: _unref(state).size,\n title: _unref(state).title,\n \"onUpdate:modelValue\": onModelValueUpdate\n }, _createSlots({\n default: _withCtx(() => [\n (!_unref(state).loading)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_unref(state).text)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, _toDisplayString(_unref(state).text), 1))\n : _createCommentVNode(\"\", true)\n ]))\n : _renderSlot(_ctx.$slots, \"spinner\", { key: 1 }, () => [\n _createElementVNode(\"div\", _hoisted_3, [\n _createVNode(BbSpinner, { size: \"60\" })\n ])\n ])\n ]),\n _: 2\n }, [\n _renderList(['header', 'title', 'close', 'description'], (name) => {\n return {\n name: name,\n fn: _withCtx((data) => [\n _renderSlot(_ctx.$slots, name, _normalizeProps(_guardReactiveProps(data)))\n ])\n }\n }),\n (!_unref(state).loading && _unref(state).actions)\n ? {\n name: \"footer\",\n fn: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"footer\", _mergeProps({\n loading: _unref(state).loading,\n actions: _unref(state).actions,\n yes: _unref(state).yes,\n no: _unref(state).no,\n yesAction: yesAction.value,\n noAction: noAction.value\n }, data), () => [\n (_unref(state).no)\n ? (_openBlock(), _createBlock(BaseButton, {\n key: 0,\n onClick: noAction.value.handler,\n class: \"bb-confirm__no\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(noAction.value.text), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true),\n (_unref(state).yes)\n ? (_openBlock(), _createBlock(BaseButton, {\n key: 1,\n onClick: yesAction.value.handler,\n class: \"bb-confirm__yes\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(yesAction.value.text), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n key: \"0\"\n }\n : undefined\n ]), 1032, [\"model-value\", \"size\", \"title\"]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_sfc_main","_defineComponent","__props","noAction","computed","actions","yesAction","onModelValueUpdate","value","_ctx","_cache","_openBlock","_createBlock","BaseDialog","_unref","state","_createSlots","_withCtx","_renderSlot","_createElementVNode","_createVNode","BbSpinner","_createElementBlock","_toDisplayString","_createCommentVNode","_renderList","name","data","_normalizeProps","_guardReactiveProps","_mergeProps","BaseButton","_createTextVNode"],"mappings":";;;;;;;;AAGA,MAAMA,IAAa;AAAA,EACjB,KAAK;AAAA,EACL,OAAO;AACT,GACMC,IAAa;AAAA,EACjB,KAAK;AAAA,EACL,OAAO;AACT,GACMC,IAAa,EAAE,OAAO,yBASAC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,MAAMC,GAAS;AAEjB,UAAMC,IAAWC,EAAS,MAAMC,EAAQ,MAAM,CAAC,CAAC,GAC1CC,IAAYF,EAAS,MAAMC,EAAQ,MAAM,CAAC,CAAC,GAC3CE,IAAqB,CAACC,MAAmB;AACzC,MAAAA,IAAOF,EAAU,MAAM,YACtBH,EAAS,MAAM;IAAQ;AAGvB,WAAA,CAACM,GAAUC,OACRC,EAAA,GAAcC,EAAaC,GAAY;AAAA,MAC7C,eAAeC,EAAOC,CAAK,EAAE,QAAQD,EAAOC,CAAK,EAAE;AAAA,MACnD,iBAAiB;AAAA,MACjB,MAAMD,EAAOC,CAAK,E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AAAA,YACbb,EAAOC,CAAK,EAAE,MACVJ,EAAW,GAAGC,EAAamB,GAAY;AAAA,cACtC,KAAK;AAAA,cACL,SAAS5B,EAAS,MAAM;AAAA,cACxB,OAAO;AAAA,YAAA,GACN;AAAA,cACD,SAASc,EAAS,MAAM;AAAA,gBACtBe,EAAiBT,EAAiBpB,EAAS,MAAM,IAAI,GAAG,CAAC;AAAA,cAAA,CAC1D;AAAA,cACD,GAAG;AAAA,YAAA,GACF,GAAG,CAAC,SAAS,CAAC,KACjBqB,EAAoB,IAAI,EAAI;AAAA,YAC/BV,EAAOC,CAAK,EAAE,OACVJ,EAAW,GAAGC,EAAamB,GAAY;AAAA,cACtC,KAAK;AAAA,cACL,SAASzB,EAAU,MAAM;AAAA,cACzB,OAAO;AAAA,YAAA,GACN;AAAA,cACD,SAASW,EAAS,MAAM;AAAA,gBACtBe,EAAiBT,EAAiBjB,EAAU,MAAM,IAAI,GAAG,CAAC;AAAA,cAAA,CAC3D;AAAA,cACD,GAAG;AAAA,YAAA,GACF,GAAG,CAAC,SAAS,CAAC,KACjBkB,EAAoB,IAAI,EAAI;AAAA,UAAA,CACjC;AAAA,QAAA,CACF;AAAA,QACD,KAAK;AAAA,MAEP,IAAA;AAAA,IAAA,CACL,GAAG,MAAM,CAAC,eAAe,QAAQ,OAAO,CAAC;AAAA,EAE5C;AAEA,CAAC;"}
1
+ {"version":3,"file":"index44.js","sources":["../src/components/BbCheckboxGroup/BbCheckboxGroup.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, mergeProps as _mergeProps, withCtx as _withCtx, renderList as _renderList, createSlots as _createSlots, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport BaseCheckboxGroup from \"../BaseCheckboxGroup/BaseCheckboxGroup.vue\";\nimport BaseInputContainer from \"../BaseInputContainer/BaseInputContainer.vue\";\nimport { BaseCheckboxGroupEvents } from \"../BaseCheckboxGroup/BaseCheckboxGroup.vue\"\nexport type BbCheckboxGroupEvents = BaseCheckboxGroupEvents;\nexport interface BbCheckboxGroupProps {\n autofocus?: boolean;\n color?: string;\n dependencies?: any[];\n depsDebounceTime?: number;\n direction?: \"horizontal\" | \"vertical\" | \"auto\";\n inputDirection?: \"horizontal\" | \"vertical\";\n disabled?: boolean;\n enforceCoherence?: boolean;\n errors?: string | string[];\n hasErrors?: boolean;\n hideLegend?: boolean;\n hideLabel?: boolean;\n id?: string;\n inputPosition?: \"left\" | \"center\" | \"right\";\n items: | any[] | ((prefill: boolean, modelValue: any) => Promise<any[]>) | ((prefill: boolean, modelValue: any) => any[]);\n itemText?: string | ((item: any) => string);\n itemValue?: string | ((item: any) => any);\n legend: string;\n legendPosition?: \"left\" | \"center\" | \"right\";\n loadingText?: string;\n modelValue?: any;\n modelValueDebounceTime?: number;\n name?: string;\n noDataText?: string;\n readonly?: boolean;\n reverse?: boolean;\n}\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbCheckboxGroup',\n props: {\n autofocus: { type: Boolean },\n color: {},\n dependencies: {},\n depsDebounceTime: {},\n direction: {},\n inputDirection: {},\n disabled: { type: Boolean },\n enforceCoherence: { type: Boolean },\n errors: {},\n hasErrors: { type: Boolean },\n hideLegend: { type: Boolean },\n hideLabel: { type: Boolean },\n id: {},\n inputPosition: {},\n items: { type: [Array, Function] },\n itemText: { type: [String, Function] },\n itemValue: { type: [String, Function] },\n legend: {},\n legendPosition: {},\n loadingText: {},\n modelValue: {},\n modelValueDebounceTime: {},\n name: {},\n noDataText: {},\n readonly: { type: Boolean },\n reverse: { type: Boolean }\n },\n emits: [\"blur\", \"change\", \"click\", \"focus\", \"inactive\", \"input\", \"keydown\", \"mousedown\", \"mouseup\", \"update:modelValue\"],\n setup(__props: any, { emit }) {\n\n\n\n\n\nconst eventListeners = {\n onBlur: (event: FocusEvent) => emit(\"blur\", event),\n onChange: (event: Event) => emit(\"change\", event),\n onClick: (event: MouseEvent) => emit(\"click\", event),\n onFocus: (event: FocusEvent) => emit(\"focus\", event),\n onInactive: () => emit(\"inactive\"),\n onInput: (event: Event) => emit(\"input\", event),\n onKeydown: (event: KeyboardEvent) => emit(\"keydown\", event),\n onMousedown: (event: MouseEvent) => emit(\"mousedown\", event),\n onMouseup: (event: MouseEvent) => emit(\"mouseup\", event),\n \"onUpdate:modelValue\": (event: any) => emit(\"update:modelValue\", event),\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseInputContainer, {\n class: \"bb-checkbox-group\",\n direction: _ctx.direction,\n errors: _ctx.errors,\n hasErrors: _ctx.hasErrors,\n hideLabel: _ctx.hideLegend,\n id: _ctx.id,\n inputPosition: _ctx.inputPosition,\n label: _ctx.legend,\n labelPosition: _ctx.legendPosition,\n labelTag: 'legend',\n name: _ctx.name,\n reverse: _ctx.reverse,\n tag: 'fieldset'\n }, {\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"legend\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n input: _withCtx(({ id, name }) => [\n _createVNode(BaseCheckboxGroup, _mergeProps({\n autofocus: _ctx.autofocus,\n color: _ctx.color,\n dependencies: _ctx.dependencies,\n depsDebounceTime: _ctx.depsDebounceTime,\n direction: _ctx.inputDirection,\n disabled: _ctx.disabled,\n enforceCoherence: _ctx.enforceCoherence,\n hasErrors: _ctx.hasErrors,\n hideLabel: _ctx.hideLabel,\n id: id,\n items: _ctx.items,\n itemText: _ctx.itemText,\n itemValue: _ctx.itemValue,\n loadingText: _ctx.loadingText,\n modelValue: _ctx.modelValue,\n modelValueDebounceTime: _ctx.modelValueDebounceTime,\n name: name,\n noDataText: _ctx.noDataText,\n readonly: _ctx.readonly\n }, eventListeners), _createSlots({ _: 2 }, [\n _renderList(_ctx.$slots, (_, name) => {\n return {\n name: name,\n fn: _withCtx((data) => [\n _renderSlot(_ctx.$slots, name, _normalizeProps(_guardReactiveProps(data)))\n ])\n }\n })\n ]), 1040, [\"autofocus\", \"color\", \"dependencies\", \"depsDebounceTime\", \"direction\", \"disabled\", \"enforceCoherence\", \"hasErrors\", \"hideLabel\", \"id\", \"items\", \"itemText\", \"itemValue\", \"loadingText\", \"modelValue\", \"modelValueDebounceTime\", \"name\", \"noDataText\", \"readonly\"])\n ]),\n _: 3\n }, 8, [\"direction\", \"errors\", \"hasErrors\", \"hideLabel\", \"id\", \"inputPosition\", \"label\", \"labelPosition\", \"name\", \"reverse\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","emit","eventListeners","event","_ctx","_cache","_openBlock","_createBlock","BaseInputContainer","_withCtx","data","_renderSlot","_normalizeProps","_guardReactiveProps","id","name","_createVNode","BaseCheckboxGroup","_mergeProps","_createSlots","_renderList","_"],"mappings":";;;;;AAqCA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,OAAO,CAAC;AAAA,IACR,cAAc,CAAC;AAAA,IACf,kBAAkB,CAAC;AAAA,IACnB,WAAW,CAAC;AAAA,IACZ,gBAAgB,CAAC;AAAA,IACjB,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,kBAAkB,EAAE,MAAM,QAAQ;AAAA,IAClC,QAAQ,CAAC;AAAA,IACT,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,YAAY,EAAE,MAAM,QAAQ;AAAA,IAC5B,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,IAAI,CAAC;AAAA,IACL,eAAe,CAAC;AAAA,IAChB,OAAO,EAAE,MAAM,CAAC,OAAO,QAAQ,EAAE;AAAA,IACjC,UAAU,EAAE,MAAM,CAAC,QAAQ,QAAQ,EAAE;AAAA,IACrC,WAAW,EAAE,MAAM,CAAC,QAAQ,QAAQ,EAAE;AAAA,IACtC,QAAQ,CAAC;AAAA,IACT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F,GAAA,GAAG,CAAC,aAAa,UAAU,aAAa,aAAa,MAAM,iBAAiB,SAAS,iBAAiB,QAAQ,SAAS,CAAC;AAAA,EAE7H;AAEA,CAAC;"}
package/dist/index46.js CHANGED
@@ -1,88 +1,86 @@
1
- import { defineComponent as m, openBlock as b, createBlock as f, withCtx as a, renderSlot as i, normalizeProps as n, guardReactiveProps as s, createVNode as h, mergeProps as y, createSlots as c, renderList as P } from "vue";
2
- import V from "./index14.js";
3
- import "./index15.js";
4
- import B from "./index10.js";
5
- import "./index11.js";
6
- const O = /* @__PURE__ */ m({
7
- __name: "BbDatePickerInput",
8
- props: {
9
- autocomplete: {},
10
- autofocus: { type: Boolean },
11
- direction: {},
12
- disabled: { type: Boolean },
13
- errors: {},
14
- firstDayOfWeek: {},
15
- hasErrors: { type: Boolean },
16
- hideLabel: { type: Boolean },
17
- id: {},
18
- inputPosition: {},
19
- label: {},
20
- labelPosition: {},
21
- labelTag: {},
22
- modelValue: {},
23
- name: {},
24
- placeholder: {},
25
- range: { type: Boolean },
26
- readonly: { type: Boolean },
27
- reverse: { type: Boolean },
28
- tag: {},
29
- width: {}
30
- },
31
- emits: ["update:modelValue", "inactive"],
32
- setup(v, { emit: r }) {
33
- const t = {
34
- onInactive: () => r("inactive"),
35
- "onUpdate:modelValue": (e) => r("update:modelValue", e)
1
+ import { defineComponent as y, computed as _, openBlock as n, createBlock as r, unref as e, createSlots as h, withCtx as i, createElementBlock as u, toDisplayString as c, createCommentVNode as d, renderSlot as m, createElementVNode as g, createVNode as C, renderList as x, normalizeProps as V, guardReactiveProps as $, mergeProps as z, createTextVNode as f } from "vue";
2
+ import { actions as p, state as o } from "./index184.js";
3
+ import v from "./index2.js";
4
+ import "./index3.js";
5
+ import A from "./index12.js";
6
+ import "./index13.js";
7
+ import B from "./index100.js";
8
+ import "./index148.js";
9
+ const N = {
10
+ key: 0,
11
+ class: "bb-confirm__content"
12
+ }, P = {
13
+ key: 0,
14
+ class: "bb-confirm__text"
15
+ }, S = { class: "bb-confirm__spinner" }, F = /* @__PURE__ */ y({
16
+ __name: "BbConfirm",
17
+ setup(E) {
18
+ const s = _(() => p.value[0]), a = _(() => p.value[1]), b = (t) => {
19
+ t ? a.value.handler() : s.value.handler();
36
20
  };
37
- return (e, g) => (b(), f(V, {
38
- class: "bb-date-picker-input",
39
- direction: e.direction,
40
- errors: e.errors,
41
- hasErrors: e.hasErrors,
42
- hideLabel: e.hideLabel,
43
- id: e.id,
44
- inputPosition: e.inputPosition,
45
- label: e.label,
46
- labelPosition: e.labelPosition,
47
- modelValue: e.modelValue,
48
- name: e.name,
49
- reverse: e.reverse
50
- }, {
51
- label: a((o) => [
52
- i(e.$slots, "label", n(s(o)))
21
+ return (t, U) => (n(), r(A, {
22
+ "model-value": e(o).open || e(o).loading,
23
+ "panel-classes": "bb-confirm",
24
+ size: e(o).size,
25
+ title: e(o).title,
26
+ "onUpdate:modelValue": b
27
+ }, h({
28
+ default: i(() => [
29
+ e(o).loading ? m(t.$slots, "spinner", { key: 1 }, () => [
30
+ g("div", S, [
31
+ C(B, { size: "60" })
32
+ ])
33
+ ]) : (n(), u("div", N, [
34
+ e(o).text ? (n(), u("div", P, c(e(o).text), 1)) : d("", !0)
35
+ ]))
53
36
  ]),
54
- input: a(({
55
- id: o,
56
- name: d,
57
- hasErrors: p
58
- }) => [
59
- h(B, y({
60
- autocomplete: e.autocomplete,
61
- autofocus: e.autofocus,
62
- disabled: e.disabled,
63
- firstDayOfWeek: e.firstDayOfWeek,
64
- hasErrors: p,
65
- id: o,
66
- modelValue: e.modelValue,
67
- name: d,
68
- placeholder: e.placeholder,
69
- range: e.range,
70
- readonly: e.readonly,
71
- width: e.width
72
- }, t), c({ _: 2 }, [
73
- P(e.$slots, (k, l) => ({
74
- name: l,
75
- fn: a((u) => [
76
- i(e.$slots, l, n(s(u)))
77
- ])
78
- }))
79
- ]), 1040, ["autocomplete", "autofocus", "disabled", "firstDayOfWeek", "hasErrors", "id", "modelValue", "name", "placeholder", "range", "readonly", "width"])
80
- ]),
81
- _: 3
82
- }, 8, ["direction", "errors", "hasErrors", "hideLabel", "id", "inputPosition", "label", "labelPosition", "modelValue", "name", "reverse"]));
37
+ _: 2
38
+ }, [
39
+ x(["header", "title", "close", "description"], (l) => ({
40
+ name: l,
41
+ fn: i((k) => [
42
+ m(t.$slots, l, V($(k)))
43
+ ])
44
+ })),
45
+ !e(o).loading && e(o).actions ? {
46
+ name: "footer",
47
+ fn: i((l) => [
48
+ m(t.$slots, "footer", z({
49
+ loading: e(o).loading,
50
+ actions: e(o).actions,
51
+ yes: e(o).yes,
52
+ no: e(o).no,
53
+ yesAction: a.value,
54
+ noAction: s.value
55
+ }, l), () => [
56
+ e(o).no ? (n(), r(v, {
57
+ key: 0,
58
+ onClick: s.value.handler,
59
+ class: "bb-confirm__no"
60
+ }, {
61
+ default: i(() => [
62
+ f(c(s.value.text), 1)
63
+ ]),
64
+ _: 1
65
+ }, 8, ["onClick"])) : d("", !0),
66
+ e(o).yes ? (n(), r(v, {
67
+ key: 1,
68
+ onClick: a.value.handler,
69
+ class: "bb-confirm__yes"
70
+ }, {
71
+ default: i(() => [
72
+ f(c(a.value.text), 1)
73
+ ]),
74
+ _: 1
75
+ }, 8, ["onClick"])) : d("", !0)
76
+ ])
77
+ ]),
78
+ key: "0"
79
+ } : void 0
80
+ ]), 1032, ["model-value", "size", "title"]));
83
81
  }
84
82
  });
85
83
  export {
86
- O as default
84
+ F as default
87
85
  };
88
86
  //# sourceMappingURL=index46.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index46.js","sources":["../src/components/BbDatePickerInput/BbDatePickerInput.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, mergeProps as _mergeProps, withCtx as _withCtx, renderList as _renderList, createSlots as _createSlots, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport BaseInputContainer from \"../BaseInputContainer/BaseInputContainer.vue\";\nimport BaseDatePickerInput from \"../BaseDatePickerInput/BaseDatePickerInput.vue\";\nimport type { BaseDatePickerInputEvents, BaseDatePickerInputProps } from \"../BaseDatePickerInput/BaseDatePickerInput.vue\";\n\nexport interface BbDatePickerInputProps {\n autocomplete?: string;\n autofocus?: boolean;\n direction?: \"horizontal\" | \"vertical\" | \"auto\" | string;\n disabled?: boolean;\n errors?: string | string[];\n firstDayOfWeek?: number;\n hasErrors?: boolean;\n hideLabel?: boolean;\n id?: string;\n inputPosition?: \"left\" | \"center\" | \"right\";\n label: string;\n labelPosition?: \"left\" | \"center\" | \"right\";\n labelTag?: string;\n modelValue: string | null | string[];\n name?: string;\n placeholder?: string;\n range?: boolean;\n readonly?: boolean;\n reverse?: boolean;\n tag?: string;\n width?: string | number, \n}\n\nexport type BbDatePickerInputEvents = BaseDatePickerInputEvents\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbDatePickerInput',\n props: {\n autocomplete: {},\n autofocus: { type: Boolean },\n direction: {},\n disabled: { type: Boolean },\n errors: {},\n firstDayOfWeek: {},\n hasErrors: { type: Boolean },\n hideLabel: { type: Boolean },\n id: {},\n inputPosition: {},\n label: {},\n labelPosition: {},\n labelTag: {},\n modelValue: {},\n name: {},\n placeholder: {},\n range: { type: Boolean },\n readonly: { type: Boolean },\n reverse: { type: Boolean },\n tag: {},\n width: {}\n },\n emits: [\"update:modelValue\", \"inactive\"],\n setup(__props: any, { emit }) {\n\n\n\n\n\n/**\n * These events are just propagated\n */\nconst eventListeners = {\n \"onInactive\": () => emit(\"inactive\"),\n \"onUpdate:modelValue\": (value: BaseDatePickerInputProps['modelValue']) => emit(\"update:modelValue\", value),\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseInputContainer, {\n class: \"bb-date-picker-input\",\n direction: _ctx.direction,\n errors: _ctx.errors,\n hasErrors: _ctx.hasErrors,\n hideLabel: _ctx.hideLabel,\n id: _ctx.id,\n inputPosition: _ctx.inputPosition,\n label: _ctx.label,\n labelPosition: _ctx.labelPosition,\n modelValue: _ctx.modelValue,\n name: _ctx.name,\n reverse: _ctx.reverse\n }, {\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"label\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n input: _withCtx(({\n id,\n name,\n hasErrors,\n }) => [\n _createVNode(BaseDatePickerInput, _mergeProps({\n autocomplete: _ctx.autocomplete,\n autofocus: _ctx.autofocus,\n disabled: _ctx.disabled,\n firstDayOfWeek: _ctx.firstDayOfWeek,\n hasErrors: hasErrors,\n id: id,\n modelValue: _ctx.modelValue,\n name: name,\n placeholder: _ctx.placeholder,\n range: _ctx.range,\n readonly: _ctx.readonly,\n width: _ctx.width\n }, eventListeners), _createSlots({ _: 2 }, [\n _renderList(_ctx.$slots, (_, name) => {\n return {\n name: name,\n fn: _withCtx((data) => [\n _renderSlot(_ctx.$slots, name, _normalizeProps(_guardReactiveProps(data)))\n ])\n }\n })\n ]), 1040, [\"autocomplete\", \"autofocus\", \"disabled\", \"firstDayOfWeek\", \"hasErrors\", \"id\", \"modelValue\", \"name\", \"placeholder\", \"range\", \"readonly\", \"width\"])\n ]),\n _: 3\n }, 8, [\"direction\", \"errors\", \"hasErrors\", \"hideLabel\", \"id\", \"inputPosition\", \"label\", \"labelPosition\", \"modelValue\", \"name\", \"reverse\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","emit","eventListeners","value","_ctx","_cache","_openBlock","_createBlock","BaseInputContainer","_withCtx","data","_renderSlot","_normalizeProps","_guardReactiveProps","id","name","hasErrors","_createVNode","BaseDatePickerInput","_mergeProps","_createSlots","_renderList","_"],"mappings":";;;;;AAkCA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,cAAc,CAAC;AAAA,IACf,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,WA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,CAC7E;AAAA,MACD,OAAOD,EAAS,CAAC;AAAA,QACb,IAAAK;AAAA,QACA,MAAAC;AAAA,QACA,WAAAC;AAAA,MAAA,MACI;AAAA,QACNC,EAAaC,GAAqBC,EAAY;AAAA,UAC5C,cAAcf,EAAK;AAAA,UACnB,WAAWA,EAAK;AAAA,UAChB,UAAUA,EAAK;AAAA,UACf,gBAAgBA,EAAK;AAAA,UACrB,WAAAY;AAAA,UACA,IAAAF;AAAA,UACA,YAAYV,EAAK;AAAA,UACjB,MAAAW;AAAA,UACA,aAAaX,EAAK;AAAA,UAClB,OAAOA,EAAK;AAAA,UACZ,UAAUA,EAAK;AAAA,UACf,OAAOA,EAAK;AAAA,WACXF,CAAc,GAAGkB,EAAa,EAAE,GAAG,KAAK;AAAA,UACzCC,EAAYjB,EAAK,QAAQ,CAACkB,GAAGP,OACpB;AAAA,YACL,MAAMA;AAAAA,YACN,IAAIN,EAAS,CAACC,MAAS;AAAA,cACrBC,EAAYP,EAAK,QAAQW,GAAMH,EAAgBC,EAAoBH,CAAI,CAAC,CAAC;AAAA,YAAA,CAC1E;AAAA,UAAA,EAEJ;AAAA,QAAA,CACF,GAAG,MAAM,CAAC,gBAAgB,aAAa,YAAY,kBAAkB,aAAa,MAAM,cAAc,QAAQ,eAAe,SAAS,YAAY,OAAO,CAAC;AAAA,MAAA,CAC5J;AAAA,MACD,GAAG;AAAA,IACF,GAAA,GAAG,CAAC,aAAa,UAAU,aAAa,aAAa,MAAM,iBAAiB,SAAS,iBAAiB,cAAc,QAAQ,SAAS,CAAC;AAAA,EAE3I;AAEA,CAAC;"}
1
+ {"version":3,"file":"index46.js","sources":["../src/components/BbConfirm/BbConfirm.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode, createElementVNode as _createElementVNode, mergeProps as _mergeProps, createTextVNode as _createTextVNode, withCtx as _withCtx, createBlock as _createBlock, renderList as _renderList, createSlots as _createSlots } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n class: \"bb-confirm__content\"\n}\nconst _hoisted_2 = {\n key: 0,\n class: \"bb-confirm__text\"\n}\nconst _hoisted_3 = { class: \"bb-confirm__spinner\" }\n\nimport { actions, state } from \"@/composables/useConfirm\";\nimport { computed } from \"vue\";\nimport BaseButton from \"../BaseButton/BaseButton.vue\";\nimport BaseDialog from \"../BaseDialog/BaseDialog.vue\";\nimport BbSpinner from \"../BbSpinner/BbSpinner.vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbConfirm',\n setup(__props) {\n\nconst noAction = computed(() => actions.value[0]);\nconst yesAction = computed(() => actions.value[1]);\nconst onModelValueUpdate = (value: boolean) => {\n if (value) yesAction.value.handler();\n else noAction.value.handler();\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseDialog, {\n \"model-value\": _unref(state).open || _unref(state).loading,\n \"panel-classes\": 'bb-confirm',\n size: _unref(state).size,\n title: _unref(state).title,\n \"onUpdate:modelValue\": onModelValueUpdate\n }, _createSlots({\n default: _withCtx(() => [\n (!_unref(state).loading)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_unref(state).text)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, _toDisplayString(_unref(state).text), 1))\n : _createCommentVNode(\"\", true)\n ]))\n : _renderSlot(_ctx.$slots, \"spinner\", { key: 1 }, () => [\n _createElementVNode(\"div\", _hoisted_3, [\n _createVNode(BbSpinner, { size: \"60\" })\n ])\n ])\n ]),\n _: 2\n }, [\n _renderList(['header', 'title', 'close', 'description'], (name) => {\n return {\n name: name,\n fn: _withCtx((data) => [\n _renderSlot(_ctx.$slots, name, _normalizeProps(_guardReactiveProps(data)))\n ])\n }\n }),\n (!_unref(state).loading && _unref(state).actions)\n ? {\n name: \"footer\",\n fn: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"footer\", _mergeProps({\n loading: _unref(state).loading,\n actions: _unref(state).actions,\n yes: _unref(state).yes,\n no: _unref(state).no,\n yesAction: yesAction.value,\n noAction: noAction.value\n }, data), () => [\n (_unref(state).no)\n ? (_openBlock(), _createBlock(BaseButton, {\n key: 0,\n onClick: noAction.value.handler,\n class: \"bb-confirm__no\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(noAction.value.text), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true),\n (_unref(state).yes)\n ? (_openBlock(), _createBlock(BaseButton, {\n key: 1,\n onClick: yesAction.value.handler,\n class: \"bb-confirm__yes\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(yesAction.value.text), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n key: \"0\"\n }\n : undefined\n ]), 1032, [\"model-value\", \"size\", \"title\"]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_sfc_main","_defineComponent","__props","noAction","computed","actions","yesAction","onModelValueUpdate","value","_ctx","_cache","_openBlock","_createBlock","BaseDialog","_unref","state","_createSlots","_withCtx","_renderSlot","_createElementVNode","_createVNode","BbSpinner","_createElementBlock","_toDisplayString","_createCommentVNode","_renderList","name","data","_normalizeProps","_guardReactiveProps","_mergeProps","BaseButton","_createTextVNode"],"mappings":";;;;;;;;AAGA,MAAMA,IAAa;AAAA,EACjB,KAAK;AAAA,EACL,OAAO;AACT,GACMC,IAAa;AAAA,EACjB,KAAK;AAAA,EACL,OAAO;AACT,GACMC,IAAa,EAAE,OAAO,yBASAC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,MAAMC,GAAS;AAEjB,UAAMC,IAAWC,EAAS,MAAMC,EAAQ,MAAM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ponent as p, computed as i, openBlock as d, createBlock as m, mergeProps as u, createSlots as f, renderList as B, withCtx as C, renderSlot as y, normalizeProps as $, guardReactiveProps as b } from "vue";
2
- import g from "./index12.js";
3
- import "./index13.js";
4
- const v = /* @__PURE__ */ p({
5
- __name: "BbDialog",
1
+ import { defineComponent as m, openBlock as b, createBlock as f, withCtx as a, renderSlot as i, normalizeProps as n, guardReactiveProps as s, createVNode as h, mergeProps as y, createSlots as c, renderList as P } from "vue";
2
+ import V from "./index14.js";
3
+ import "./index15.js";
4
+ import B from "./index10.js";
5
+ import "./index11.js";
6
+ const O = /* @__PURE__ */ m({
7
+ __name: "BbDatePickerInput",
6
8
  props: {
7
- closeLabel: {},
8
- color: {},
9
- compact: { type: Boolean },
10
- description: {},
9
+ autocomplete: {},
10
+ autofocus: { type: Boolean },
11
+ direction: {},
11
12
  disabled: { type: Boolean },
12
- eager: { type: Boolean },
13
- fullscreen: { type: Boolean },
14
- modelValue: { type: [Boolean, null] },
15
- panelClasses: {},
16
- overlayClasses: {},
17
- persistent: { type: Boolean },
18
- showClose: { type: Boolean, default: !0 },
19
- size: {},
20
- title: {},
21
- transition: {},
22
- transitionDuration: {}
13
+ errors: {},
14
+ firstDayOfWeek: {},
15
+ hasErrors: { type: Boolean },
16
+ hideLabel: { type: Boolean },
17
+ id: {},
18
+ inputPosition: {},
19
+ label: {},
20
+ labelPosition: {},
21
+ labelTag: {},
22
+ modelValue: {},
23
+ name: {},
24
+ placeholder: {},
25
+ range: { type: Boolean },
26
+ readonly: { type: Boolean },
27
+ reverse: { type: Boolean },
28
+ tag: {},
29
+ width: {}
23
30
  },
24
- emits: ["shown", "hidden", "update:modelValue"],
25
- setup(t) {
26
- const l = t, a = i(() => {
27
- let e = ["bb-dialog"];
28
- return l.panelClasses && (e = e.concat(l.panelClasses)), e;
29
- });
30
- return (e, o) => (d(), m(g, u(e.$props, {
31
- panelClasses: a.value,
32
- onShown: o[0] || (o[0] = (...s) => e.$emit("shown", ...s)),
33
- onHidden: o[1] || (o[1] = (...s) => e.$emit("hidden", ...s)),
34
- "onUpdate:modelValue": o[2] || (o[2] = (...s) => e.$emit("update:modelValue", ...s))
35
- }), f({ _: 2 }, [
36
- B(e.$slots, (s, n) => ({
37
- name: n,
38
- fn: C((r) => [
39
- y(e.$slots, n, $(b(r)))
40
- ])
41
- }))
42
- ]), 1040, ["panelClasses"]));
31
+ emits: ["update:modelValue", "inactive"],
32
+ setup(v, { emit: r }) {
33
+ const t = {
34
+ onInactive: () => r("inactive"),
35
+ "onUpdate:modelValue": (e) => r("update:modelValue", e)
36
+ };
37
+ return (e, g) => (b(), f(V, {
38
+ class: "bb-date-picker-input",
39
+ direction: e.direction,
40
+ errors: e.errors,
41
+ hasErrors: e.hasErrors,
42
+ hideLabel: e.hideLabel,
43
+ id: e.id,
44
+ inputPosition: e.inputPosition,
45
+ label: e.label,
46
+ labelPosition: e.labelPosition,
47
+ modelValue: e.modelValue,
48
+ name: e.name,
49
+ reverse: e.reverse
50
+ }, {
51
+ label: a((o) => [
52
+ i(e.$slots, "label", n(s(o)))
53
+ ]),
54
+ input: a(({
55
+ id: o,
56
+ name: d,
57
+ hasErrors: p
58
+ }) => [
59
+ h(B, y({
60
+ autocomplete: e.autocomplete,
61
+ autofocus: e.autofocus,
62
+ disabled: e.disabled,
63
+ firstDayOfWeek: e.firstDayOfWeek,
64
+ hasErrors: p,
65
+ id: o,
66
+ modelValue: e.modelValue,
67
+ name: d,
68
+ placeholder: e.placeholder,
69
+ range: e.range,
70
+ readonly: e.readonly,
71
+ width: e.width
72
+ }, t), c({ _: 2 }, [
73
+ P(e.$slots, (k, l) => ({
74
+ name: l,
75
+ fn: a((u) => [
76
+ i(e.$slots, l, n(s(u)))
77
+ ])
78
+ }))
79
+ ]), 1040, ["autocomplete", "autofocus", "disabled", "firstDayOfWeek", "hasErrors", "id", "modelValue", "name", "placeholder", "range", "readonly", "width"])
80
+ ]),
81
+ _: 3
82
+ }, 8, ["direction", "errors", "hasErrors", "hideLabel", "id", "inputPosition", "label", "labelPosition", "modelValue", "name", "reverse"]));
43
83
  }
44
84
  });
45
85
  export {
46
- v as default
86
+ O as default
47
87
  };
48
88
  //# sourceMappingURL=index48.js.map