@wikicasa-dev/components 2.6.13 → 2.6.14-alpha.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 (215) hide show
  1. package/dist/UIKit/AccessibleSelect.js +5 -5
  2. package/dist/UIKit/AccessibleSelect.vue.js +217 -205
  3. package/dist/UIKit/Accordion/AccordionContentPrimitive.js +5 -4
  4. package/dist/UIKit/Accordion/AccordionContentPrimitive.vue.js +19 -21
  5. package/dist/UIKit/Accordion/AccordionHeaderPrimitive.js +5 -4
  6. package/dist/UIKit/Accordion/AccordionHeaderPrimitive.vue.js +18 -20
  7. package/dist/UIKit/Accordion/AccordionItemPrimitive.js +5 -4
  8. package/dist/UIKit/Accordion/AccordionItemPrimitive.vue.js +21 -23
  9. package/dist/UIKit/Accordion/AccordionTriggerPrimitive.js +5 -4
  10. package/dist/UIKit/Accordion/AccordionTriggerPrimitive.vue.js +19 -21
  11. package/dist/UIKit/Accordion/BaseAccordion.js +5 -4
  12. package/dist/UIKit/Accordion/BaseAccordion.vue.js +38 -36
  13. package/dist/UIKit/Accordion/BaseAccordionItem.js +5 -5
  14. package/dist/UIKit/Accordion/BaseAccordionItem.vue.js +64 -81
  15. package/dist/UIKit/Autocomplete/ClearableAutocomplete.js +5 -5
  16. package/dist/UIKit/Autocomplete/ClearableAutocomplete.vue.js +232 -226
  17. package/dist/UIKit/BaseAlert.js +5 -5
  18. package/dist/UIKit/BaseAlert.vue.js +14 -18
  19. package/dist/UIKit/BaseAutocomplete.js +5 -5
  20. package/dist/UIKit/BaseAutocomplete.vue.js +197 -194
  21. package/dist/UIKit/BaseBadge.js +5 -5
  22. package/dist/UIKit/BaseBadge.vue.js +17 -17
  23. package/dist/UIKit/BaseBreadcrumb.js +5 -4
  24. package/dist/UIKit/BaseBreadcrumb.vue.js +39 -56
  25. package/dist/UIKit/BaseButton.js +5 -4
  26. package/dist/UIKit/BaseButton.vue.js +93 -87
  27. package/dist/UIKit/BaseComplexToggle.js +5 -6
  28. package/dist/UIKit/BaseComplexToggle.vue.js +87 -105
  29. package/dist/UIKit/BaseDropDown.js +5 -5
  30. package/dist/UIKit/BaseDropDown.vue.js +171 -152
  31. package/dist/UIKit/BaseFloatingLabel.js +6 -7
  32. package/dist/UIKit/BaseFloatingLabel.vue.js +43 -39
  33. package/dist/UIKit/BaseInput.js +6 -7
  34. package/dist/UIKit/BaseInput.vue.js +191 -210
  35. package/dist/UIKit/BaseModal.js +5 -5
  36. package/dist/UIKit/BaseModal.vue.js +160 -169
  37. package/dist/UIKit/BasePagination.js +5 -4
  38. package/dist/UIKit/BasePagination.vue.js +192 -229
  39. package/dist/UIKit/BaseSelect/SelectItem.js +5 -4
  40. package/dist/UIKit/BaseSelect/SelectItem.vue.js +34 -41
  41. package/dist/UIKit/BaseSlider.js +6 -7
  42. package/dist/UIKit/BaseSlider.vue.js +153 -203
  43. package/dist/UIKit/BaseSnackbar.js +5 -5
  44. package/dist/UIKit/BaseSnackbar.vue.js +144 -146
  45. package/dist/UIKit/BaseTextarea.js +5 -6
  46. package/dist/UIKit/BaseTextarea.vue.js +118 -126
  47. package/dist/UIKit/BaseToggle.js +5 -4
  48. package/dist/UIKit/BaseToggle.vue.js +37 -38
  49. package/dist/UIKit/BaseTooltip.js +6 -7
  50. package/dist/UIKit/BaseTooltip.vue.js +31 -40
  51. package/dist/UIKit/BaseUploadFile.js +5 -4
  52. package/dist/UIKit/BaseUploadFile.vue.js +63 -70
  53. package/dist/UIKit/Card/BaseCard.js +5 -5
  54. package/dist/UIKit/Card/BaseCard.vue.js +23 -36
  55. package/dist/UIKit/Card/CardDescriptionPrimitive.js +9 -11
  56. package/dist/UIKit/Card/CardImagePrimitive.js +5 -4
  57. package/dist/UIKit/Card/CardImagePrimitive.vue.js +11 -15
  58. package/dist/UIKit/Card/CardRootPrimitive.js +5 -5
  59. package/dist/UIKit/Card/CardRootPrimitive.vue.js +22 -26
  60. package/dist/UIKit/Card/type.js +4 -4
  61. package/dist/UIKit/Checkbox/CheckboxBtn.js +5 -5
  62. package/dist/UIKit/Checkbox/CheckboxBtn.vue.js +76 -81
  63. package/dist/UIKit/Checkbox/CheckboxGroup.js +5 -4
  64. package/dist/UIKit/Checkbox/CheckboxGroup.vue.js +137 -116
  65. package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.js +5 -4
  66. package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.vue.js +71 -77
  67. package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.js +5 -4
  68. package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.vue.js +32 -34
  69. package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.js +5 -4
  70. package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.vue.js +32 -34
  71. package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.js +5 -4
  72. package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.vue.js +15 -15
  73. package/dist/UIKit/ProgressBar/ProgressRootPrimitive.js +5 -4
  74. package/dist/UIKit/ProgressBar/ProgressRootPrimitive.vue.js +29 -31
  75. package/dist/UIKit/Radio/RadioButton.js +5 -4
  76. package/dist/UIKit/Radio/RadioButton.vue.js +51 -59
  77. package/dist/UIKit/Radio/RadioGroup.js +5 -4
  78. package/dist/UIKit/Radio/RadioGroup.vue.js +67 -63
  79. package/dist/UIKit/Radio/v2/RadioButtonGroup.js +5 -4
  80. package/dist/UIKit/Radio/v2/RadioButtonGroup.vue.js +38 -47
  81. package/dist/UIKit/Radio/v2/RadioButtonItem.js +5 -5
  82. package/dist/UIKit/Radio/v2/RadioButtonItem.vue.js +42 -44
  83. package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.js +5 -4
  84. package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.vue.js +28 -30
  85. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +6 -7
  86. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +19 -19
  87. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +5 -4
  88. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +41 -30
  89. package/dist/UIKit/Slider/SimpleSlider.js +6 -7
  90. package/dist/UIKit/Slider/SimpleSlider.vue.js +74 -81
  91. package/dist/UIKit/StaticSpinner.js +6 -7
  92. package/dist/UIKit/StaticSpinner.vue.js +24 -26
  93. package/dist/UIKit/Tab/BaseTab.js +5 -4
  94. package/dist/UIKit/Tab/BaseTab.vue.js +14 -14
  95. package/dist/UIKit/Tab/BaseTabList.js +5 -4
  96. package/dist/UIKit/Tab/BaseTabList.vue.js +45 -44
  97. package/dist/UIKit/Tab/BaseTabPanel.js +5 -4
  98. package/dist/UIKit/Tab/BaseTabPanel.vue.js +27 -24
  99. package/dist/UIKit/Tab/BaseTabView.js +5 -4
  100. package/dist/UIKit/Tab/BaseTabView.vue.js +107 -105
  101. package/dist/UIKit/Tab/v2/BaseTabs.js +5 -5
  102. package/dist/UIKit/Tab/v2/BaseTabs.vue.js +34 -38
  103. package/dist/UIKit/Tab/v2/BaseTabsContent.js +5 -4
  104. package/dist/UIKit/Tab/v2/BaseTabsContent.vue.js +21 -23
  105. package/dist/UIKit/Tab/v2/BaseTabsIndicator.js +5 -5
  106. package/dist/UIKit/Tab/v2/BaseTabsIndicator.vue.js +24 -33
  107. package/dist/UIKit/Tab/v2/BaseTabsList.js +5 -4
  108. package/dist/UIKit/Tab/v2/BaseTabsList.vue.js +20 -22
  109. package/dist/UIKit/Tab/v2/BaseTabsTrigger.js +5 -4
  110. package/dist/UIKit/Tab/v2/BaseTabsTrigger.vue.js +21 -30
  111. package/dist/UIKit/types.js +0 -1
  112. package/dist/_virtual/_plugin-vue_export-helper.js +7 -8
  113. package/dist/assets/AccessibleSelect.css +1 -1
  114. package/dist/assets/BaseAccordionItem.css +1 -1
  115. package/dist/assets/BaseAutocomplete.css +1 -1
  116. package/dist/assets/BaseBadge.css +1 -1
  117. package/dist/assets/BaseComplexToggle2.css +1 -1
  118. package/dist/assets/BaseDropDown.css +1 -1
  119. package/dist/assets/BaseFloatingLabel2.css +1 -1
  120. package/dist/assets/BaseInput2.css +1 -1
  121. package/dist/assets/BaseShimmerLoader.css +1 -1
  122. package/dist/assets/BaseSlider2.css +1 -1
  123. package/dist/assets/BaseSnackbar.css +1 -1
  124. package/dist/assets/BaseTabs.css +1 -1
  125. package/dist/assets/BaseTextarea2.css +1 -1
  126. package/dist/assets/BaseTooltip2.css +1 -1
  127. package/dist/assets/CheckboxBtn.css +1 -1
  128. package/dist/assets/ClearableAutocomplete.css +1 -1
  129. package/dist/assets/RadioButtonItem.css +1 -1
  130. package/dist/assets/StaticSpinner.css +1 -1
  131. package/dist/assets/SwiperCarousel.css +1 -1
  132. package/dist/assets/baseAlert.css +1 -1
  133. package/dist/assets/baseCard.css +1 -1
  134. package/dist/assets/baseComplexToggle.css +1 -1
  135. package/dist/assets/baseFloatingLabel.css +1 -1
  136. package/dist/assets/baseInput.css +1 -1
  137. package/dist/assets/baseModal.css +1 -1
  138. package/dist/assets/baseSlider.css +1 -1
  139. package/dist/assets/baseSpinner.css +1 -1
  140. package/dist/assets/baseTextarea.css +1 -1
  141. package/dist/assets/baseTooltip.css +1 -1
  142. package/dist/assets/swiper-free-mode.css +1 -1
  143. package/dist/assets/swiper-navigation.css +1 -1
  144. package/dist/assets/swiper-pagination.css +1 -1
  145. package/dist/assets/swiper-swiper.css +1 -1
  146. package/dist/assets/swiper-thumbs.css +1 -0
  147. package/dist/assets/swiper-zoom.css +1 -1
  148. package/dist/assets/swiperPaginationBullet.css +1 -1
  149. package/dist/assets/tailwind.css +1 -1
  150. package/dist/chart/DoughnutChart.js +5 -4
  151. package/dist/chart/DoughnutChart.vue.js +25 -25
  152. package/dist/chart/LineChart.js +5 -4
  153. package/dist/chart/LineChart.vue.js +27 -29
  154. package/dist/components/IntersectionObserver/IntersectionObservable.js +5 -4
  155. package/dist/components/IntersectionObserver/IntersectionObservable.vue.js +24 -23
  156. package/dist/components/IntersectionObserver/IntersectionObserver.js +5 -4
  157. package/dist/components/IntersectionObserver/IntersectionObserver.vue.js +55 -49
  158. package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.js +5 -4
  159. package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.vue.js +43 -38
  160. package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.js +5 -4
  161. package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.vue.js +27 -30
  162. package/dist/components/IntersectionObserver/v2/types.js +4 -6
  163. package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.js +5 -4
  164. package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.vue.js +30 -38
  165. package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.js +5 -4
  166. package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.vue.js +28 -32
  167. package/dist/components/carousel/Primitive/SwiperPrimitive.js +5 -4
  168. package/dist/components/carousel/Primitive/SwiperPrimitive.vue.js +16 -20
  169. package/dist/components/carousel/Primitive/SwiperRootPrimitive.js +5 -10
  170. package/dist/components/carousel/Primitive/SwiperRootPrimitive.vue.js +82 -112
  171. package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.js +5 -5
  172. package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.vue.js +44 -39
  173. package/dist/components/carousel/SwiperCarousel.js +6 -7
  174. package/dist/components/carousel/SwiperCarousel.vue.js +195 -229
  175. package/dist/components/carousel/SwiperSlide.js +9 -13
  176. package/dist/composables/mock.js +50 -48
  177. package/dist/composables/useFloatingLabel.js +32 -32
  178. package/dist/composables/useValidator.js +5 -7
  179. package/dist/index.js +67 -150
  180. package/dist/lazyModules/ChartJs/Chart.js +2 -4
  181. package/dist/lazyModules/ChartJs/DoughnutChart/core.js +5 -6
  182. package/dist/lazyModules/ChartJs/LineChart/cartesian.js +5 -6
  183. package/dist/lazyModules/ChartJs/LineChart/core.js +5 -6
  184. package/dist/lazyModules/ChartJs/Plugins/Legend.js +4 -2
  185. package/dist/lazyModules/ChartJs/Plugins/TimeScale.js +4 -2
  186. package/dist/lazyModules/ChartJs/Plugins/Title.js +4 -2
  187. package/dist/lazyModules/ChartJs/Plugins/Tooltip.js +4 -2
  188. package/dist/lazyModules/Swiper/Autoplay/factory.js +6 -8
  189. package/dist/lazyModules/Swiper/Autoplay/index.js +3 -6
  190. package/dist/lazyModules/Swiper/Controller/factory.js +6 -6
  191. package/dist/lazyModules/Swiper/Controller/index.js +3 -6
  192. package/dist/lazyModules/Swiper/FreeMode/factory.js +6 -8
  193. package/dist/lazyModules/Swiper/FreeMode/index.js +3 -6
  194. package/dist/lazyModules/Swiper/Keyboard/factory.js +6 -8
  195. package/dist/lazyModules/Swiper/Keyboard/index.js +3 -6
  196. package/dist/lazyModules/Swiper/Navigation/factory.js +6 -8
  197. package/dist/lazyModules/Swiper/Navigation/index.js +3 -6
  198. package/dist/lazyModules/Swiper/Pagination/factory.js +6 -6
  199. package/dist/lazyModules/Swiper/Pagination/index.js +3 -6
  200. package/dist/lazyModules/Swiper/Thumbs/factory.js +6 -6
  201. package/dist/lazyModules/Swiper/Thumbs/index.js +3 -6
  202. package/dist/lazyModules/Swiper/Zoom/factory.js +6 -8
  203. package/dist/lazyModules/Swiper/Zoom/index.js +3 -6
  204. package/dist/lazyModules/Swiper/factory.js +9 -12
  205. package/dist/lazyModules/Swiper/index.js +2 -4
  206. package/dist/lazyModules/Swiper/swiper-css.d.js +0 -1
  207. package/dist/lazyModules/Swiper/types.js +0 -1
  208. package/dist/lazyModules/VueChartJs/Doughnut/factory.js +8 -11
  209. package/dist/lazyModules/VueChartJs/Doughnut/index.js +2 -5
  210. package/dist/lazyModules/VueChartJs/Line/factory.js +8 -13
  211. package/dist/lazyModules/VueChartJs/Line/index.js +2 -5
  212. package/dist/types/index.js +0 -1
  213. package/dist/types.js +0 -1
  214. package/dist/utils.js +4 -5
  215. package/package.json +8 -8
@@ -1,205 +1,155 @@
1
- import { defineComponent as R, useModel as w, ref as p, useTemplateRef as D, useAttrs as _, onMounted as j, openBlock as q, createElementBlock as G, createElementVNode as x, withModifiers as T, createVNode as k, mergeModels as H } from "vue";
2
- import C from "./BaseInput.js";
3
- const J = { class: "range_container" }, K = { class: "sliders_control" }, O = ["value", "min", "max", "step"], Q = ["value", "min", "max", "step"], W = { class: "form_control row" }, X = { class: "pb-15 pb-sm-0 col-sm-6 col-xl-4" }, Y = { class: "col-sm-6 col-xl-4" }, ae = /* @__PURE__ */ R({
4
- __name: "BaseSlider",
5
- props: /* @__PURE__ */ H({
6
- type: { default: "linear" },
7
- min: { default: 0 },
8
- max: { default: 100 }
9
- }, {
10
- minValue: { default: 0 },
11
- minValueModifiers: {},
12
- maxValue: { default: 0 },
13
- maxValueModifiers: {}
14
- }),
15
- emits: ["update:minValue", "update:maxValue"],
16
- setup(m) {
17
- function B(e, l) {
18
- const a = parseInt(e.value, 10), t = parseInt(l.value, 10);
19
- return [a, t];
20
- }
21
- const E = (e) => e.minPos + (Math.log(e.value) - e.minlval) / e.scale, L = (e) => Math.exp(
22
- (e.position - e.minPos) * e.scale + e.minlval
23
- );
24
- function V(e, l, a, t, v) {
25
- const s = l.max - l.min, f = e - l.min, $ = l.value - l.min;
26
- v.style.background = `linear-gradient(
1
+ import e from "./BaseInput.js";
2
+ import { createElementBlock as t, createElementVNode as n, createVNode as r, defineComponent as i, mergeModels as a, onMounted as o, openBlock as s, ref as c, useAttrs as l, useModel as u, useTemplateRef as d, withModifiers as f } from "vue";
3
+ import '../assets/BaseSlider2.css';//#region lib/UIKit/BaseSlider.vue?vue&type=script&setup=true&lang.ts
4
+ var p = { class: "range_container" }, m = { class: "sliders_control" }, h = [
5
+ "value",
6
+ "min",
7
+ "max",
8
+ "step"
9
+ ], g = [
10
+ "value",
11
+ "min",
12
+ "max",
13
+ "step"
14
+ ], _ = { class: "form_control row" }, v = { class: "pb-15 pb-sm-0 col-sm-6 col-xl-4" }, y = { class: "col-sm-6 col-xl-4" }, b = /* @__PURE__ */ function(e) {
15
+ return e.range = "#2B5DFF", e.slider = "#B4C2F0", e;
16
+ }(b || {}), x = /*@__PURE__*/ i({
17
+ __name: "BaseSlider",
18
+ props: /*@__PURE__*/ a({
19
+ type: { default: "linear" },
20
+ min: { default: 0 },
21
+ max: { default: 100 }
22
+ }, {
23
+ minValue: { default: 0 },
24
+ minValueModifiers: {},
25
+ maxValue: { default: 0 },
26
+ maxValueModifiers: {}
27
+ }),
28
+ emits: ["update:minValue", "update:maxValue"],
29
+ setup(i) {
30
+ function a(e, t) {
31
+ return [parseInt(e.value, 10), parseInt(t.value, 10)];
32
+ }
33
+ let x = (e) => e.minPos + (Math.log(e.value) - e.minlval) / e.scale, S = (e) => Math.exp((e.position - e.minPos) * e.scale + e.minlval);
34
+ function C(e, t, n, r, i) {
35
+ let a = t.max - t.min, o = e - t.min, s = t.value - t.min;
36
+ i.style.background = `linear-gradient(
27
37
  to right,
28
- ${a} 0%,
29
- ${a} ${f / s * 100}%,
30
- ${t} ${f / s * 100}%,
31
- ${t} ${$ / s * 100}%,
32
- ${a} ${$ / s * 100}%,
33
- ${a} 100%)`;
34
- }
35
- function h(e, l) {
36
- e <= 0 ? l.style.zIndex = "2" : l.style.zIndex = "0";
37
- }
38
- const r = w(m, "minValue"), o = w(m, "maxValue"), n = p(0), u = p(100), c = p(10), d = p(40), F = p(0), M = p(0), y = p(0), g = D("fromSlider"), i = D("toSlider"), P = (e, l) => {
39
- if (!g.value || !i.value) return;
40
- l || (l = "0");
41
- const a = parseInt(l, 10);
42
- if (e == "min-input") {
43
- if (a >= o.value) return;
44
- r.value = a, z(i.value, a, o.value);
45
- return;
46
- }
47
- a < r.value || (o.value = a, A(i.value, i.value, r.value, a));
48
- }, I = (e) => {
49
- if (m.type === "logarithmic")
50
- return e = e || 1, parseInt(
51
- E({
52
- value: e,
53
- minPos: n.value,
54
- minlval: F.value,
55
- scale: y.value
56
- }).toFixed(0),
57
- 10
58
- );
59
- if (m.type === "linear")
60
- return e;
61
- throw new Error("The slider type has not been implemented");
62
- }, S = (e) => {
63
- if (m.type === "logarithmic")
64
- return e = e || 1, parseInt(
65
- L({
66
- position: e,
67
- scale: y.value,
68
- minlval: F.value,
69
- minPos: n.value
70
- }).toFixed(0),
71
- 10
72
- );
73
- if (m.type === "linear")
74
- return e;
75
- throw new Error("The slider type has not been implemented");
76
- }, z = (e, l, a) => {
77
- const t = I(l), v = I(a);
78
- V(
79
- t,
80
- {
81
- min: n.value,
82
- max: u.value,
83
- value: v
84
- },
85
- "#B4C2F0",
86
- "#2B5DFF",
87
- e
88
- );
89
- const s = t, f = o.value;
90
- s > f ? c.value = f : c.value = s;
91
- }, A = (e, l, a, t) => {
92
- const v = I(a), s = I(t);
93
- V(
94
- v,
95
- {
96
- min: n.value,
97
- max: u.value,
98
- value: s
99
- },
100
- "#B4C2F0",
101
- "#2B5DFF",
102
- l
103
- );
104
- const f = r.value, $ = s;
105
- h(o.value, e), f <= $ ? d.value = $ : d.value = f;
106
- }, N = (e, l) => {
107
- if (!l.value) return;
108
- const [a, t] = B(e, l), v = S(a);
109
- V(
110
- a,
111
- {
112
- min: n.value,
113
- max: u.value,
114
- value: t
115
- },
116
- "#B4C2F0",
117
- "#2B5DFF",
118
- l
119
- ), a > t ? (e.value = `${t}`, c.value = t, r.value = t) : (c.value = a, r.value = v);
120
- }, U = (e, l) => {
121
- if (!l.value) return;
122
- const [a, t] = B(e, l), v = S(t);
123
- V(
124
- c.value,
125
- {
126
- min: n.value,
127
- max: u.value,
128
- value: t
129
- },
130
- "#B4C2F0",
131
- "#2B5DFF",
132
- l
133
- ), h(parseInt(l.value, 10), l), a <= t ? (d.value = t, o.value = v) : (l.value = `${a}`, d.value = a, o.value = a);
134
- }, b = _();
135
- return n.value = parseInt(`${m.min || 0}`, 10), u.value = parseInt(`${m.max || 100}`, 10), c.value = n.value, d.value = u.value, r.value = parseInt(`${b.minValue || n.value}`, 10), o.value = parseInt(`${b.maxValue || u.value}`, 10), F.value = Math.log(r.value || 1), M.value = Math.log(o.value), y.value = (M.value - F.value) / (u.value - n.value), j(() => {
136
- !g.value || !i.value || (V(
137
- c.value,
138
- {
139
- min: n.value,
140
- max: u.value,
141
- value: d.value
142
- },
143
- "#B4C2F0",
144
- "#2B5DFF",
145
- i.value
146
- ), h(d.value, i.value));
147
- }), (e, l) => (q(), G("div", J, [
148
- x("div", K, [
149
- x("input", {
150
- ref_key: "fromSlider",
151
- ref: g,
152
- class: "fromSlider",
153
- type: "range",
154
- value: c.value,
155
- min: n.value,
156
- max: u.value,
157
- step: e.$attrs.step,
158
- onInput: l[0] || (l[0] = T((a) => N(
159
- g.value,
160
- i.value
161
- ), ["stop"]))
162
- }, null, 40, O),
163
- x("input", {
164
- ref_key: "toSlider",
165
- ref: i,
166
- class: "toSlider",
167
- type: "range",
168
- value: d.value,
169
- min: n.value,
170
- max: u.value,
171
- step: e.$attrs.step,
172
- onInput: l[1] || (l[1] = T((a) => U(
173
- g.value,
174
- i.value
175
- ), ["stop"]))
176
- }, null, 40, Q)
177
- ]),
178
- x("div", W, [
179
- x("div", X, [
180
- k(C, {
181
- "label-text": "Min",
182
- type: "text",
183
- pattern: "[0-9]*",
184
- inputmode: "numeric",
185
- "model-value": r.value,
186
- "onUpdate:modelValue": l[2] || (l[2] = (a) => P("min-input", `${a || ""}`))
187
- }, null, 8, ["model-value"])
188
- ]),
189
- x("div", Y, [
190
- k(C, {
191
- "label-text": "Max",
192
- type: "text",
193
- pattern: "[0-9]*",
194
- inputmode: "numeric",
195
- "model-value": o.value,
196
- "onUpdate:modelValue": l[3] || (l[3] = (a) => P("max-input", `${a || ""}`))
197
- }, null, 8, ["model-value"])
198
- ])
199
- ])
200
- ]));
201
- }
38
+ ${n} 0%,
39
+ ${n} ${o / a * 100}%,
40
+ ${r} ${o / a * 100}%,
41
+ ${r} ${s / a * 100}%,
42
+ ${n} ${s / a * 100}%,
43
+ ${n} 100%)`;
44
+ }
45
+ function w(e, t) {
46
+ e <= 0 ? t.style.zIndex = "2" : t.style.zIndex = "0";
47
+ }
48
+ let T = u(i, "minValue"), E = u(i, "maxValue"), D = c(0), O = c(100), k = c(10), A = c(40), j = c(0), M = c(0), N = c(0), P = d("fromSlider"), F = d("toSlider"), I = (e, t) => {
49
+ if (!P.value || !F.value) return;
50
+ t ||= "0";
51
+ let n = parseInt(t, 10);
52
+ if (e == "min-input") {
53
+ if (n >= E.value) return;
54
+ T.value = n, z(F.value, n, E.value);
55
+ return;
56
+ }
57
+ n < T.value || (E.value = n, B(F.value, F.value, T.value, n));
58
+ }, L = (e) => {
59
+ if (i.type === "logarithmic") return e ||= 1, parseInt(x({
60
+ value: e,
61
+ minPos: D.value,
62
+ minlval: j.value,
63
+ scale: N.value
64
+ }).toFixed(0), 10);
65
+ if (i.type === "linear") return e;
66
+ throw Error("The slider type has not been implemented");
67
+ }, R = (e) => {
68
+ if (i.type === "logarithmic") return e ||= 1, parseInt(S({
69
+ position: e,
70
+ scale: N.value,
71
+ minlval: j.value,
72
+ minPos: D.value
73
+ }).toFixed(0), 10);
74
+ if (i.type === "linear") return e;
75
+ throw Error("The slider type has not been implemented");
76
+ }, z = (e, t, n) => {
77
+ let r = L(t), i = L(n);
78
+ C(r, {
79
+ min: D.value,
80
+ max: O.value,
81
+ value: i
82
+ }, b.slider, b.range, e);
83
+ let a = r, o = E.value;
84
+ a > o ? k.value = o : k.value = a;
85
+ }, B = (e, t, n, r) => {
86
+ let i = L(n), a = L(r);
87
+ C(i, {
88
+ min: D.value,
89
+ max: O.value,
90
+ value: a
91
+ }, b.slider, b.range, t);
92
+ let o = T.value, s = a;
93
+ w(E.value, e), o <= s ? A.value = s : A.value = o;
94
+ }, V = (e, t) => {
95
+ if (!t.value) return;
96
+ let [n, r] = a(e, t), i = R(n);
97
+ C(n, {
98
+ min: D.value,
99
+ max: O.value,
100
+ value: r
101
+ }, b.slider, b.range, t), n > r ? (e.value = `${r}`, k.value = r, T.value = r) : (k.value = n, T.value = i);
102
+ }, H = (e, t) => {
103
+ if (!t.value) return;
104
+ let [n, r] = a(e, t), i = R(r);
105
+ C(k.value, {
106
+ min: D.value,
107
+ max: O.value,
108
+ value: r
109
+ }, b.slider, b.range, t), w(parseInt(t.value, 10), t), n <= r ? (A.value = r, E.value = i) : (t.value = `${n}`, A.value = n, E.value = n);
110
+ }, U = l();
111
+ return D.value = parseInt(`${i.min || 0}`, 10), O.value = parseInt(`${i.max || 100}`, 10), k.value = D.value, A.value = O.value, T.value = parseInt(`${U.minValue || D.value}`, 10), E.value = parseInt(`${U.maxValue || O.value}`, 10), j.value = Math.log(T.value || 1), M.value = Math.log(E.value), N.value = (M.value - j.value) / (O.value - D.value), o(() => {
112
+ !P.value || !F.value || (C(k.value, {
113
+ min: D.value,
114
+ max: O.value,
115
+ value: A.value
116
+ }, b.slider, b.range, F.value), w(A.value, F.value));
117
+ }), (i, a) => (s(), t("div", p, [n("div", m, [n("input", {
118
+ ref_key: "fromSlider",
119
+ ref: P,
120
+ class: "fromSlider",
121
+ type: "range",
122
+ value: k.value,
123
+ min: D.value,
124
+ max: O.value,
125
+ step: i.$attrs.step,
126
+ onInput: a[0] ||= f((e) => V(P.value, F.value), ["stop"])
127
+ }, null, 40, h), n("input", {
128
+ ref_key: "toSlider",
129
+ ref: F,
130
+ class: "toSlider",
131
+ type: "range",
132
+ value: A.value,
133
+ min: D.value,
134
+ max: O.value,
135
+ step: i.$attrs.step,
136
+ onInput: a[1] ||= f((e) => H(P.value, F.value), ["stop"])
137
+ }, null, 40, g)]), n("div", _, [n("div", v, [r(e, {
138
+ "label-text": "Min",
139
+ type: "text",
140
+ pattern: "[0-9]*",
141
+ inputmode: "numeric",
142
+ "model-value": T.value,
143
+ "onUpdate:modelValue": a[2] ||= (e) => I("min-input", `${e || ""}`)
144
+ }, null, 8, ["model-value"])]), n("div", y, [r(e, {
145
+ "label-text": "Max",
146
+ type: "text",
147
+ pattern: "[0-9]*",
148
+ inputmode: "numeric",
149
+ "model-value": E.value,
150
+ "onUpdate:modelValue": a[3] ||= (e) => I("max-input", `${e || ""}`)
151
+ }, null, 8, ["model-value"])])])]));
152
+ }
202
153
  });
203
- export {
204
- ae as default
205
- };
154
+ //#endregion
155
+ export { x as default };
@@ -1,5 +1,5 @@
1
- import o from "./BaseSnackbar.vue.js";
2
- import '../assets/BaseSnackbar.css';/* empty css */
3
- export {
4
- o as default
5
- };
1
+ import e from "./BaseSnackbar.vue.js";
2
+ //#region lib/UIKit/BaseSnackbar.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };