@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.
- package/dist/UIKit/AccessibleSelect.js +5 -5
- package/dist/UIKit/AccessibleSelect.vue.js +217 -205
- package/dist/UIKit/Accordion/AccordionContentPrimitive.js +5 -4
- package/dist/UIKit/Accordion/AccordionContentPrimitive.vue.js +19 -21
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.js +5 -4
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.vue.js +18 -20
- package/dist/UIKit/Accordion/AccordionItemPrimitive.js +5 -4
- package/dist/UIKit/Accordion/AccordionItemPrimitive.vue.js +21 -23
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.js +5 -4
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.vue.js +19 -21
- package/dist/UIKit/Accordion/BaseAccordion.js +5 -4
- package/dist/UIKit/Accordion/BaseAccordion.vue.js +38 -36
- package/dist/UIKit/Accordion/BaseAccordionItem.js +5 -5
- package/dist/UIKit/Accordion/BaseAccordionItem.vue.js +64 -81
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.js +5 -5
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.vue.js +232 -226
- package/dist/UIKit/BaseAlert.js +5 -5
- package/dist/UIKit/BaseAlert.vue.js +14 -18
- package/dist/UIKit/BaseAutocomplete.js +5 -5
- package/dist/UIKit/BaseAutocomplete.vue.js +197 -194
- package/dist/UIKit/BaseBadge.js +5 -5
- package/dist/UIKit/BaseBadge.vue.js +17 -17
- package/dist/UIKit/BaseBreadcrumb.js +5 -4
- package/dist/UIKit/BaseBreadcrumb.vue.js +39 -56
- package/dist/UIKit/BaseButton.js +5 -4
- package/dist/UIKit/BaseButton.vue.js +93 -87
- package/dist/UIKit/BaseComplexToggle.js +5 -6
- package/dist/UIKit/BaseComplexToggle.vue.js +87 -105
- package/dist/UIKit/BaseDropDown.js +5 -5
- package/dist/UIKit/BaseDropDown.vue.js +171 -152
- package/dist/UIKit/BaseFloatingLabel.js +6 -7
- package/dist/UIKit/BaseFloatingLabel.vue.js +43 -39
- package/dist/UIKit/BaseInput.js +6 -7
- package/dist/UIKit/BaseInput.vue.js +191 -210
- package/dist/UIKit/BaseModal.js +5 -5
- package/dist/UIKit/BaseModal.vue.js +160 -169
- package/dist/UIKit/BasePagination.js +5 -4
- package/dist/UIKit/BasePagination.vue.js +192 -229
- package/dist/UIKit/BaseSelect/SelectItem.js +5 -4
- package/dist/UIKit/BaseSelect/SelectItem.vue.js +34 -41
- package/dist/UIKit/BaseSlider.js +6 -7
- package/dist/UIKit/BaseSlider.vue.js +153 -203
- package/dist/UIKit/BaseSnackbar.js +5 -5
- package/dist/UIKit/BaseSnackbar.vue.js +144 -146
- package/dist/UIKit/BaseTextarea.js +5 -6
- package/dist/UIKit/BaseTextarea.vue.js +118 -126
- package/dist/UIKit/BaseToggle.js +5 -4
- package/dist/UIKit/BaseToggle.vue.js +37 -38
- package/dist/UIKit/BaseTooltip.js +6 -7
- package/dist/UIKit/BaseTooltip.vue.js +31 -40
- package/dist/UIKit/BaseUploadFile.js +5 -4
- package/dist/UIKit/BaseUploadFile.vue.js +63 -70
- package/dist/UIKit/Card/BaseCard.js +5 -5
- package/dist/UIKit/Card/BaseCard.vue.js +23 -36
- package/dist/UIKit/Card/CardDescriptionPrimitive.js +9 -11
- package/dist/UIKit/Card/CardImagePrimitive.js +5 -4
- package/dist/UIKit/Card/CardImagePrimitive.vue.js +11 -15
- package/dist/UIKit/Card/CardRootPrimitive.js +5 -5
- package/dist/UIKit/Card/CardRootPrimitive.vue.js +22 -26
- package/dist/UIKit/Card/type.js +4 -4
- package/dist/UIKit/Checkbox/CheckboxBtn.js +5 -5
- package/dist/UIKit/Checkbox/CheckboxBtn.vue.js +76 -81
- package/dist/UIKit/Checkbox/CheckboxGroup.js +5 -4
- package/dist/UIKit/Checkbox/CheckboxGroup.vue.js +137 -116
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.js +5 -4
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.vue.js +71 -77
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.js +5 -4
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.vue.js +32 -34
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.js +5 -4
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.vue.js +32 -34
- package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.js +5 -4
- package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.vue.js +15 -15
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.js +5 -4
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.vue.js +29 -31
- package/dist/UIKit/Radio/RadioButton.js +5 -4
- package/dist/UIKit/Radio/RadioButton.vue.js +51 -59
- package/dist/UIKit/Radio/RadioGroup.js +5 -4
- package/dist/UIKit/Radio/RadioGroup.vue.js +67 -63
- package/dist/UIKit/Radio/v2/RadioButtonGroup.js +5 -4
- package/dist/UIKit/Radio/v2/RadioButtonGroup.vue.js +38 -47
- package/dist/UIKit/Radio/v2/RadioButtonItem.js +5 -5
- package/dist/UIKit/Radio/v2/RadioButtonItem.vue.js +42 -44
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.js +5 -4
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.vue.js +28 -30
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +6 -7
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +19 -19
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +5 -4
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +41 -30
- package/dist/UIKit/Slider/SimpleSlider.js +6 -7
- package/dist/UIKit/Slider/SimpleSlider.vue.js +74 -81
- package/dist/UIKit/StaticSpinner.js +6 -7
- package/dist/UIKit/StaticSpinner.vue.js +24 -26
- package/dist/UIKit/Tab/BaseTab.js +5 -4
- package/dist/UIKit/Tab/BaseTab.vue.js +14 -14
- package/dist/UIKit/Tab/BaseTabList.js +5 -4
- package/dist/UIKit/Tab/BaseTabList.vue.js +45 -44
- package/dist/UIKit/Tab/BaseTabPanel.js +5 -4
- package/dist/UIKit/Tab/BaseTabPanel.vue.js +27 -24
- package/dist/UIKit/Tab/BaseTabView.js +5 -4
- package/dist/UIKit/Tab/BaseTabView.vue.js +107 -105
- package/dist/UIKit/Tab/v2/BaseTabs.js +5 -5
- package/dist/UIKit/Tab/v2/BaseTabs.vue.js +34 -38
- package/dist/UIKit/Tab/v2/BaseTabsContent.js +5 -4
- package/dist/UIKit/Tab/v2/BaseTabsContent.vue.js +21 -23
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.js +5 -5
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.vue.js +24 -33
- package/dist/UIKit/Tab/v2/BaseTabsList.js +5 -4
- package/dist/UIKit/Tab/v2/BaseTabsList.vue.js +20 -22
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.js +5 -4
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.vue.js +21 -30
- package/dist/UIKit/types.js +0 -1
- package/dist/_virtual/_plugin-vue_export-helper.js +7 -8
- package/dist/assets/AccessibleSelect.css +1 -1
- package/dist/assets/BaseAccordionItem.css +1 -1
- package/dist/assets/BaseAutocomplete.css +1 -1
- package/dist/assets/BaseBadge.css +1 -1
- package/dist/assets/BaseComplexToggle2.css +1 -1
- package/dist/assets/BaseDropDown.css +1 -1
- package/dist/assets/BaseFloatingLabel2.css +1 -1
- package/dist/assets/BaseInput2.css +1 -1
- package/dist/assets/BaseShimmerLoader.css +1 -1
- package/dist/assets/BaseSlider2.css +1 -1
- package/dist/assets/BaseSnackbar.css +1 -1
- package/dist/assets/BaseTabs.css +1 -1
- package/dist/assets/BaseTextarea2.css +1 -1
- package/dist/assets/BaseTooltip2.css +1 -1
- package/dist/assets/CheckboxBtn.css +1 -1
- package/dist/assets/ClearableAutocomplete.css +1 -1
- package/dist/assets/RadioButtonItem.css +1 -1
- package/dist/assets/StaticSpinner.css +1 -1
- package/dist/assets/SwiperCarousel.css +1 -1
- package/dist/assets/baseAlert.css +1 -1
- package/dist/assets/baseCard.css +1 -1
- package/dist/assets/baseComplexToggle.css +1 -1
- package/dist/assets/baseFloatingLabel.css +1 -1
- package/dist/assets/baseInput.css +1 -1
- package/dist/assets/baseModal.css +1 -1
- package/dist/assets/baseSlider.css +1 -1
- package/dist/assets/baseSpinner.css +1 -1
- package/dist/assets/baseTextarea.css +1 -1
- package/dist/assets/baseTooltip.css +1 -1
- package/dist/assets/swiper-free-mode.css +1 -1
- package/dist/assets/swiper-navigation.css +1 -1
- package/dist/assets/swiper-pagination.css +1 -1
- package/dist/assets/swiper-swiper.css +1 -1
- package/dist/assets/swiper-thumbs.css +1 -0
- package/dist/assets/swiper-zoom.css +1 -1
- package/dist/assets/swiperPaginationBullet.css +1 -1
- package/dist/assets/tailwind.css +1 -1
- package/dist/chart/DoughnutChart.js +5 -4
- package/dist/chart/DoughnutChart.vue.js +25 -25
- package/dist/chart/LineChart.js +5 -4
- package/dist/chart/LineChart.vue.js +27 -29
- package/dist/components/IntersectionObserver/IntersectionObservable.js +5 -4
- package/dist/components/IntersectionObserver/IntersectionObservable.vue.js +24 -23
- package/dist/components/IntersectionObserver/IntersectionObserver.js +5 -4
- package/dist/components/IntersectionObserver/IntersectionObserver.vue.js +55 -49
- package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.js +5 -4
- package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.vue.js +43 -38
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.js +5 -4
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.vue.js +27 -30
- package/dist/components/IntersectionObserver/v2/types.js +4 -6
- package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.js +5 -4
- package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.vue.js +30 -38
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.js +5 -4
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.vue.js +28 -32
- package/dist/components/carousel/Primitive/SwiperPrimitive.js +5 -4
- package/dist/components/carousel/Primitive/SwiperPrimitive.vue.js +16 -20
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.js +5 -10
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.vue.js +82 -112
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.js +5 -5
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.vue.js +44 -39
- package/dist/components/carousel/SwiperCarousel.js +6 -7
- package/dist/components/carousel/SwiperCarousel.vue.js +195 -229
- package/dist/components/carousel/SwiperSlide.js +9 -13
- package/dist/composables/mock.js +50 -48
- package/dist/composables/useFloatingLabel.js +32 -32
- package/dist/composables/useValidator.js +5 -7
- package/dist/index.js +67 -150
- package/dist/lazyModules/ChartJs/Chart.js +2 -4
- package/dist/lazyModules/ChartJs/DoughnutChart/core.js +5 -6
- package/dist/lazyModules/ChartJs/LineChart/cartesian.js +5 -6
- package/dist/lazyModules/ChartJs/LineChart/core.js +5 -6
- package/dist/lazyModules/ChartJs/Plugins/Legend.js +4 -2
- package/dist/lazyModules/ChartJs/Plugins/TimeScale.js +4 -2
- package/dist/lazyModules/ChartJs/Plugins/Title.js +4 -2
- package/dist/lazyModules/ChartJs/Plugins/Tooltip.js +4 -2
- package/dist/lazyModules/Swiper/Autoplay/factory.js +6 -8
- package/dist/lazyModules/Swiper/Autoplay/index.js +3 -6
- package/dist/lazyModules/Swiper/Controller/factory.js +6 -6
- package/dist/lazyModules/Swiper/Controller/index.js +3 -6
- package/dist/lazyModules/Swiper/FreeMode/factory.js +6 -8
- package/dist/lazyModules/Swiper/FreeMode/index.js +3 -6
- package/dist/lazyModules/Swiper/Keyboard/factory.js +6 -8
- package/dist/lazyModules/Swiper/Keyboard/index.js +3 -6
- package/dist/lazyModules/Swiper/Navigation/factory.js +6 -8
- package/dist/lazyModules/Swiper/Navigation/index.js +3 -6
- package/dist/lazyModules/Swiper/Pagination/factory.js +6 -6
- package/dist/lazyModules/Swiper/Pagination/index.js +3 -6
- package/dist/lazyModules/Swiper/Thumbs/factory.js +6 -6
- package/dist/lazyModules/Swiper/Thumbs/index.js +3 -6
- package/dist/lazyModules/Swiper/Zoom/factory.js +6 -8
- package/dist/lazyModules/Swiper/Zoom/index.js +3 -6
- package/dist/lazyModules/Swiper/factory.js +9 -12
- package/dist/lazyModules/Swiper/index.js +2 -4
- package/dist/lazyModules/Swiper/swiper-css.d.js +0 -1
- package/dist/lazyModules/Swiper/types.js +0 -1
- package/dist/lazyModules/VueChartJs/Doughnut/factory.js +8 -11
- package/dist/lazyModules/VueChartJs/Doughnut/index.js +2 -5
- package/dist/lazyModules/VueChartJs/Line/factory.js +8 -13
- package/dist/lazyModules/VueChartJs/Line/index.js +2 -5
- package/dist/types/index.js +0 -1
- package/dist/types.js +0 -1
- package/dist/utils.js +4 -5
- package/package.json +8 -8
|
@@ -1,205 +1,155 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
${
|
|
29
|
-
${
|
|
30
|
-
${
|
|
31
|
-
${
|
|
32
|
-
${
|
|
33
|
-
${
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
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
|
-
|
|
204
|
-
|
|
205
|
-
};
|
|
154
|
+
//#endregion
|
|
155
|
+
export { x as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 };
|