@wikicasa-dev/components 2.0.17 → 2.0.19
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/BaseSlider.js +173 -222
- package/dist/UIKit/BaseSlider.vue.d.ts +17 -166
- package/dist/assets/BaseSlider.css +1 -1
- package/package.json +1 -1
package/dist/BaseSlider.js
CHANGED
|
@@ -1,257 +1,208 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { _ as
|
|
4
|
-
import './assets/BaseSlider.css';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
function u(t, i) {
|
|
23
|
-
t <= 0 ? i.style.zIndex = "2" : i.style.zIndex = "0";
|
|
24
|
-
}
|
|
25
|
-
const I = c({
|
|
26
|
-
name: "BaseSlider",
|
|
27
|
-
components: { BaseInput: f },
|
|
28
|
-
props: {
|
|
29
|
-
type: {
|
|
30
|
-
type: String,
|
|
31
|
-
default: "linear"
|
|
1
|
+
import { defineComponent as R, mergeModels as j, useModel as D, ref as p, useTemplateRef as T, useAttrs as q, onMounted as G, openBlock as H, createElementBlock as J, createElementVNode as x, withModifiers as _, unref as h, createVNode as k } from "vue";
|
|
2
|
+
import C from "./BaseInput.js";
|
|
3
|
+
import { _ as K } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
4
|
+
import './assets/BaseSlider.css';const O = { class: "range_container" }, Q = { class: "sliders_control" }, W = ["value", "min", "max", "step"], X = ["value", "min", "max", "step"], Y = { class: "form_control row" }, Z = { class: "pb-15 pb-sm-0 col-sm-6 col-xl-4" }, ee = { class: "col-sm-6 col-xl-4" }, le = /* @__PURE__ */ R({
|
|
5
|
+
__name: "BaseSlider",
|
|
6
|
+
props: /* @__PURE__ */ j({
|
|
7
|
+
type: { default: "linear" },
|
|
8
|
+
min: { default: 0 },
|
|
9
|
+
max: { default: 100 }
|
|
10
|
+
}, {
|
|
11
|
+
minValue: { default: 0 },
|
|
12
|
+
minValueModifiers: {},
|
|
13
|
+
maxValue: { default: 0 },
|
|
14
|
+
maxValueModifiers: {}
|
|
15
|
+
}),
|
|
16
|
+
emits: ["update:minValue", "update:maxValue"],
|
|
17
|
+
setup(m) {
|
|
18
|
+
function M(e, l) {
|
|
19
|
+
const a = parseInt(e.value, 10), t = parseInt(l.value, 10);
|
|
20
|
+
return [a, t];
|
|
32
21
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
scale: 0
|
|
47
|
-
};
|
|
48
|
-
},
|
|
49
|
-
computed: {
|
|
50
|
-
fromSlider() {
|
|
51
|
-
return this.$refs.fromSlider;
|
|
52
|
-
},
|
|
53
|
-
toSlider() {
|
|
54
|
-
return this.$refs.toSlider;
|
|
55
|
-
},
|
|
56
|
-
fromInput() {
|
|
57
|
-
return this.$refs.fromInput;
|
|
58
|
-
},
|
|
59
|
-
toInput() {
|
|
60
|
-
return this.$refs.toInput;
|
|
22
|
+
const E = (e) => e.minPos + (Math.log(e.value) - e.minlval) / e.scale, L = (e) => Math.exp(
|
|
23
|
+
(e.position - e.minPos) * e.scale + e.minlval
|
|
24
|
+
);
|
|
25
|
+
function V(e, l, a, t, v) {
|
|
26
|
+
const i = l.max - l.min, f = e - l.min, $ = l.value - l.min;
|
|
27
|
+
v.style.background = `linear-gradient(
|
|
28
|
+
to right,
|
|
29
|
+
${a} 0%,
|
|
30
|
+
${a} ${f / i * 100}%,
|
|
31
|
+
${t} ${f / i * 100}%,
|
|
32
|
+
${t} ${$ / i * 100}%,
|
|
33
|
+
${a} ${$ / i * 100}%,
|
|
34
|
+
${a} 100%)`;
|
|
61
35
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
minValue(t) {
|
|
65
|
-
this.$emit("minChanged", t);
|
|
66
|
-
},
|
|
67
|
-
maxValue(t) {
|
|
68
|
-
this.$emit("maxChanged", t);
|
|
36
|
+
function y(e, l) {
|
|
37
|
+
e <= 0 ? l.style.zIndex = "2" : l.style.zIndex = "0";
|
|
69
38
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
10
|
|
78
|
-
), this.minlval = Math.log(this.minValue || 1), this.maxlval = Math.log(this.maxValue), this.scale = (this.maxlval - this.minlval) / (this.rightSliderLimit - this.leftSliderLimit);
|
|
79
|
-
},
|
|
80
|
-
mounted() {
|
|
81
|
-
!this.fromSlider || !this.toSlider || (m(
|
|
82
|
-
this.sliderMinValue,
|
|
83
|
-
{
|
|
84
|
-
min: this.leftSliderLimit,
|
|
85
|
-
max: this.rightSliderLimit,
|
|
86
|
-
value: this.sliderMaxValue
|
|
87
|
-
},
|
|
88
|
-
"#B4C2F0",
|
|
89
|
-
"#2B5DFF",
|
|
90
|
-
this.toSlider
|
|
91
|
-
), u(this.sliderMaxValue, this.toSlider));
|
|
92
|
-
},
|
|
93
|
-
methods: {
|
|
94
|
-
handleInputChange(t, i) {
|
|
95
|
-
if (!this.fromSlider || !this.toSlider) return;
|
|
96
|
-
i || (i = "0");
|
|
97
|
-
const e = parseInt(i, 10);
|
|
98
|
-
if (t == "min-input") {
|
|
99
|
-
if (e >= this.maxValue) return;
|
|
100
|
-
this.minValue = e, this.controlFromInput(this.toSlider);
|
|
39
|
+
const r = D(m, "minValue"), o = D(m, "maxValue"), n = p(0), u = p(100), c = p(10), d = p(40), F = p(0), P = p(0), B = p(0), g = T("fromSlider"), s = T("toSlider"), S = (e, l) => {
|
|
40
|
+
if (!g.value || !s.value) return;
|
|
41
|
+
l || (l = "0");
|
|
42
|
+
const a = parseInt(l, 10);
|
|
43
|
+
if (e == "min-input") {
|
|
44
|
+
if (a >= o.value) return;
|
|
45
|
+
r.value = a, z(s.value, a, o.value);
|
|
101
46
|
return;
|
|
102
47
|
}
|
|
103
|
-
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
scale: this.scale
|
|
48
|
+
a < r.value || (o.value = a, A(s.value, s.value, r.value, a));
|
|
49
|
+
}, I = (e) => {
|
|
50
|
+
if (m.type === "logarithmic")
|
|
51
|
+
return e = e || 1, parseInt(
|
|
52
|
+
E({
|
|
53
|
+
value: e,
|
|
54
|
+
minPos: n.value,
|
|
55
|
+
minlval: F.value,
|
|
56
|
+
scale: B.value
|
|
113
57
|
}).toFixed(0),
|
|
114
58
|
10
|
|
115
59
|
);
|
|
116
|
-
if (
|
|
117
|
-
return
|
|
60
|
+
if (m.type === "linear")
|
|
61
|
+
return e;
|
|
118
62
|
throw new Error("The slider type has not been implemented");
|
|
119
|
-
},
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
minPos: this.leftSliderLimit
|
|
63
|
+
}, b = (e) => {
|
|
64
|
+
if (m.type === "logarithmic")
|
|
65
|
+
return e = e || 1, parseInt(
|
|
66
|
+
L({
|
|
67
|
+
position: e,
|
|
68
|
+
scale: B.value,
|
|
69
|
+
minlval: F.value,
|
|
70
|
+
minPos: n.value
|
|
128
71
|
}).toFixed(0),
|
|
129
72
|
10
|
|
130
73
|
);
|
|
131
|
-
if (
|
|
132
|
-
return
|
|
74
|
+
if (m.type === "linear")
|
|
75
|
+
return e;
|
|
133
76
|
throw new Error("The slider type has not been implemented");
|
|
134
|
-
},
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
i,
|
|
77
|
+
}, z = (e, l, a) => {
|
|
78
|
+
const t = I(l), v = I(a);
|
|
79
|
+
V(
|
|
80
|
+
t,
|
|
139
81
|
{
|
|
140
|
-
min:
|
|
141
|
-
max:
|
|
142
|
-
value:
|
|
82
|
+
min: n.value,
|
|
83
|
+
max: u.value,
|
|
84
|
+
value: v
|
|
143
85
|
},
|
|
144
86
|
"#B4C2F0",
|
|
145
87
|
"#2B5DFF",
|
|
146
|
-
|
|
88
|
+
e
|
|
147
89
|
);
|
|
148
|
-
const
|
|
149
|
-
|
|
150
|
-
},
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
e,
|
|
90
|
+
const i = t, f = o.value;
|
|
91
|
+
i > f ? c.value = f : c.value = i;
|
|
92
|
+
}, A = (e, l, a, t) => {
|
|
93
|
+
const v = I(a), i = I(t);
|
|
94
|
+
V(
|
|
95
|
+
v,
|
|
155
96
|
{
|
|
156
|
-
min:
|
|
157
|
-
max:
|
|
158
|
-
value:
|
|
97
|
+
min: n.value,
|
|
98
|
+
max: u.value,
|
|
99
|
+
value: i
|
|
159
100
|
},
|
|
160
101
|
"#B4C2F0",
|
|
161
102
|
"#2B5DFF",
|
|
162
|
-
|
|
103
|
+
l
|
|
163
104
|
);
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
},
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
e,
|
|
105
|
+
const f = r.value, $ = i;
|
|
106
|
+
y(o.value, e), f <= $ ? d.value = $ : d.value = f;
|
|
107
|
+
}, N = (e, l) => {
|
|
108
|
+
if (!l.value) return;
|
|
109
|
+
const [a, t] = M(e, l), v = b(a);
|
|
110
|
+
V(
|
|
111
|
+
a,
|
|
172
112
|
{
|
|
173
|
-
min:
|
|
174
|
-
max:
|
|
175
|
-
value:
|
|
113
|
+
min: n.value,
|
|
114
|
+
max: u.value,
|
|
115
|
+
value: t
|
|
176
116
|
},
|
|
177
117
|
"#B4C2F0",
|
|
178
118
|
"#2B5DFF",
|
|
179
|
-
|
|
180
|
-
),
|
|
181
|
-
},
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
this.sliderMinValue,
|
|
119
|
+
l
|
|
120
|
+
), a > t ? (e.value = `${t}`, c.value = t, r.value = t) : (c.value = a, r.value = v);
|
|
121
|
+
}, U = (e, l) => {
|
|
122
|
+
if (!l.value) return;
|
|
123
|
+
const [a, t] = M(e, l), v = b(t);
|
|
124
|
+
V(
|
|
125
|
+
c.value,
|
|
187
126
|
{
|
|
188
|
-
min:
|
|
189
|
-
max:
|
|
190
|
-
value:
|
|
127
|
+
min: n.value,
|
|
128
|
+
max: u.value,
|
|
129
|
+
value: t
|
|
191
130
|
},
|
|
192
131
|
"#B4C2F0",
|
|
193
132
|
"#2B5DFF",
|
|
194
|
-
|
|
195
|
-
),
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
133
|
+
l
|
|
134
|
+
), y(parseInt(l.value, 10), l), a <= t ? (d.value = t, o.value = v) : (l.value = `${a}`, d.value = a, o.value = a);
|
|
135
|
+
}, w = q();
|
|
136
|
+
return (() => {
|
|
137
|
+
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(`${w.minValue || n.value}`, 10), o.value = parseInt(`${w.maxValue || u.value}`, 10), F.value = Math.log(r.value || 1), P.value = Math.log(o.value), B.value = (P.value - F.value) / (u.value - n.value);
|
|
138
|
+
})(), G(() => {
|
|
139
|
+
!g.value || !s.value || (V(
|
|
140
|
+
c.value,
|
|
141
|
+
{
|
|
142
|
+
min: n.value,
|
|
143
|
+
max: u.value,
|
|
144
|
+
value: d.value
|
|
145
|
+
},
|
|
146
|
+
"#B4C2F0",
|
|
147
|
+
"#2B5DFF",
|
|
148
|
+
s.value
|
|
149
|
+
), y(d.value, s.value));
|
|
150
|
+
}), (e, l) => (H(), J("div", O, [
|
|
151
|
+
x("div", Q, [
|
|
152
|
+
x("input", {
|
|
153
|
+
ref_key: "fromSlider",
|
|
154
|
+
ref: g,
|
|
155
|
+
class: "fromSlider",
|
|
156
|
+
type: "range",
|
|
157
|
+
value: c.value,
|
|
158
|
+
min: n.value,
|
|
159
|
+
max: u.value,
|
|
160
|
+
step: e.$attrs.step,
|
|
161
|
+
onInput: l[0] || (l[0] = _((a) => N(
|
|
162
|
+
h(g),
|
|
163
|
+
h(s)
|
|
164
|
+
), ["stop"]))
|
|
165
|
+
}, null, 40, W),
|
|
166
|
+
x("input", {
|
|
167
|
+
ref_key: "toSlider",
|
|
168
|
+
ref: s,
|
|
169
|
+
class: "toSlider",
|
|
170
|
+
type: "range",
|
|
171
|
+
value: d.value,
|
|
172
|
+
min: n.value,
|
|
173
|
+
max: u.value,
|
|
174
|
+
step: e.$attrs.step,
|
|
175
|
+
onInput: l[1] || (l[1] = _((a) => U(
|
|
176
|
+
h(g),
|
|
177
|
+
h(s)
|
|
178
|
+
), ["stop"]))
|
|
179
|
+
}, null, 40, X)
|
|
240
180
|
]),
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
181
|
+
x("div", Y, [
|
|
182
|
+
x("div", Z, [
|
|
183
|
+
k(C, {
|
|
184
|
+
"label-text": "Min",
|
|
185
|
+
type: "text",
|
|
186
|
+
pattern: "[0-9]*",
|
|
187
|
+
inputmode: "numeric",
|
|
188
|
+
"model-value": r.value,
|
|
189
|
+
"onUpdate:modelValue": l[2] || (l[2] = (a) => S("min-input", `${a || ""}`))
|
|
190
|
+
}, null, 8, ["model-value"])
|
|
191
|
+
]),
|
|
192
|
+
x("div", ee, [
|
|
193
|
+
k(C, {
|
|
194
|
+
"label-text": "Max",
|
|
195
|
+
type: "text",
|
|
196
|
+
pattern: "[0-9]*",
|
|
197
|
+
inputmode: "numeric",
|
|
198
|
+
"model-value": o.value,
|
|
199
|
+
"onUpdate:modelValue": l[3] || (l[3] = (a) => S("max-input", `${a || ""}`))
|
|
200
|
+
}, null, 8, ["model-value"])
|
|
201
|
+
])
|
|
250
202
|
])
|
|
251
|
-
])
|
|
252
|
-
|
|
253
|
-
}
|
|
254
|
-
const _ = /* @__PURE__ */ x(I, [["render", b], ["__scopeId", "data-v-c87c86da"]]);
|
|
203
|
+
]));
|
|
204
|
+
}
|
|
205
|
+
}), oe = /* @__PURE__ */ K(le, [["__scopeId", "data-v-581ec7f4"]]);
|
|
255
206
|
export {
|
|
256
|
-
|
|
207
|
+
oe as default
|
|
257
208
|
};
|
|
@@ -1,167 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}, {
|
|
19
|
-
fromSlider(): Nullable<HTMLInputElement>;
|
|
20
|
-
toSlider(): Nullable<HTMLInputElement>;
|
|
21
|
-
fromInput(): Nullable<HTMLInputElement>;
|
|
22
|
-
toInput(): Nullable<HTMLInputElement>;
|
|
23
|
-
}, {
|
|
24
|
-
handleInputChange(from: Inputs, value: string): void;
|
|
25
|
-
getCurrentPosition(value: number): number;
|
|
26
|
-
getCurrentValue(position: number): number;
|
|
27
|
-
controlFromInput(controlSlider: HTMLInputElement): void;
|
|
28
|
-
controlToInput(toSlider: HTMLInputElement, controlSlider: HTMLInputElement): void;
|
|
29
|
-
controlFromSlider(fromSlider: HTMLInputElement, toSlider: HTMLInputElement): void;
|
|
30
|
-
controlToSlider(fromSlider: HTMLInputElement, toSlider: HTMLInputElement): void;
|
|
31
|
-
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("minChanged" | "maxChanged")[], "minChanged" | "maxChanged", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
32
|
-
type: {
|
|
33
|
-
type: () => "linear" | "logarithmic";
|
|
34
|
-
default: string;
|
|
35
|
-
};
|
|
36
|
-
}>> & Readonly<{
|
|
37
|
-
onMinChanged?: ((...args: any[]) => any) | undefined;
|
|
38
|
-
onMaxChanged?: ((...args: any[]) => any) | undefined;
|
|
39
|
-
}>, {
|
|
40
|
-
type: "linear" | "logarithmic";
|
|
41
|
-
}, {}, {
|
|
42
|
-
BaseInput: {
|
|
43
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
44
|
-
modelValue?: string | number | undefined;
|
|
45
|
-
} & {
|
|
46
|
-
inputClass?: import('./types').ClassType | import('./types').ClassType[];
|
|
47
|
-
labelText?: string;
|
|
48
|
-
feedback?: import('./types').FeedbackLabels;
|
|
49
|
-
isValid?: Nullable<boolean>;
|
|
50
|
-
keepFloatingLabel?: boolean;
|
|
51
|
-
formatter?: Nullable<Partial<{
|
|
52
|
-
formatFn: (n: number | string) => string;
|
|
53
|
-
unFormatFn: (v: string) => string | number | null;
|
|
54
|
-
}>>;
|
|
55
|
-
labelClasses?: import('./types').ClassTypeProp;
|
|
56
|
-
fieldsetClasses?: import('./types').ClassTypeProp;
|
|
57
|
-
labelTextClasses?: import('./types').ClassTypeProp;
|
|
58
|
-
withLeftIcon?: boolean;
|
|
59
|
-
withRightIcon?: boolean;
|
|
60
|
-
dataCy?: string;
|
|
61
|
-
}> & Readonly<{
|
|
62
|
-
onClick?: ((args_0: MouseEvent) => any) | undefined;
|
|
63
|
-
"onUpdate:modelValue"?: ((modelValue: string | number | undefined) => any) | undefined;
|
|
64
|
-
onFocusin?: (() => any) | undefined;
|
|
65
|
-
onFocusout?: (() => any) | undefined;
|
|
66
|
-
onKeydown?: ((args_0: KeyboardEvent) => any) | undefined;
|
|
67
|
-
onKeyup?: ((args_0: KeyboardEvent) => any) | undefined;
|
|
68
|
-
onKeydownEnterPressed?: (() => any) | undefined;
|
|
69
|
-
}>, {
|
|
70
|
-
select: () => void;
|
|
71
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
72
|
-
click: (args_0: MouseEvent) => any;
|
|
73
|
-
"update:modelValue": (modelValue: string | number | undefined) => any;
|
|
74
|
-
focusin: () => any;
|
|
75
|
-
focusout: () => any;
|
|
76
|
-
keydown: (args_0: KeyboardEvent) => any;
|
|
77
|
-
keyup: (args_0: KeyboardEvent) => any;
|
|
78
|
-
keydownEnterPressed: () => any;
|
|
79
|
-
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
80
|
-
P: {};
|
|
81
|
-
B: {};
|
|
82
|
-
D: {};
|
|
83
|
-
C: {};
|
|
84
|
-
M: {};
|
|
85
|
-
Defaults: {};
|
|
86
|
-
}, Readonly<{
|
|
87
|
-
modelValue?: string | number | undefined;
|
|
88
|
-
} & {
|
|
89
|
-
inputClass?: import('./types').ClassType | import('./types').ClassType[];
|
|
90
|
-
labelText?: string;
|
|
91
|
-
feedback?: import('./types').FeedbackLabels;
|
|
92
|
-
isValid?: Nullable<boolean>;
|
|
93
|
-
keepFloatingLabel?: boolean;
|
|
94
|
-
formatter?: Nullable<Partial<{
|
|
95
|
-
formatFn: (n: number | string) => string;
|
|
96
|
-
unFormatFn: (v: string) => string | number | null;
|
|
97
|
-
}>>;
|
|
98
|
-
labelClasses?: import('./types').ClassTypeProp;
|
|
99
|
-
fieldsetClasses?: import('./types').ClassTypeProp;
|
|
100
|
-
labelTextClasses?: import('./types').ClassTypeProp;
|
|
101
|
-
withLeftIcon?: boolean;
|
|
102
|
-
withRightIcon?: boolean;
|
|
103
|
-
dataCy?: string;
|
|
104
|
-
}> & Readonly<{
|
|
105
|
-
onClick?: ((args_0: MouseEvent) => any) | undefined;
|
|
106
|
-
"onUpdate:modelValue"?: ((modelValue: string | number | undefined) => any) | undefined;
|
|
107
|
-
onFocusin?: (() => any) | undefined;
|
|
108
|
-
onFocusout?: (() => any) | undefined;
|
|
109
|
-
onKeydown?: ((args_0: KeyboardEvent) => any) | undefined;
|
|
110
|
-
onKeyup?: ((args_0: KeyboardEvent) => any) | undefined;
|
|
111
|
-
onKeydownEnterPressed?: (() => any) | undefined;
|
|
112
|
-
}>, {
|
|
113
|
-
select: () => void;
|
|
114
|
-
}, {}, {}, {}, {}>;
|
|
115
|
-
__isFragment?: never;
|
|
116
|
-
__isTeleport?: never;
|
|
117
|
-
__isSuspense?: never;
|
|
118
|
-
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
119
|
-
modelValue?: string | number | undefined;
|
|
120
|
-
} & {
|
|
121
|
-
inputClass?: import('./types').ClassType | import('./types').ClassType[];
|
|
122
|
-
labelText?: string;
|
|
123
|
-
feedback?: import('./types').FeedbackLabels;
|
|
124
|
-
isValid?: Nullable<boolean>;
|
|
125
|
-
keepFloatingLabel?: boolean;
|
|
126
|
-
formatter?: Nullable<Partial<{
|
|
127
|
-
formatFn: (n: number | string) => string;
|
|
128
|
-
unFormatFn: (v: string) => string | number | null;
|
|
129
|
-
}>>;
|
|
130
|
-
labelClasses?: import('./types').ClassTypeProp;
|
|
131
|
-
fieldsetClasses?: import('./types').ClassTypeProp;
|
|
132
|
-
labelTextClasses?: import('./types').ClassTypeProp;
|
|
133
|
-
withLeftIcon?: boolean;
|
|
134
|
-
withRightIcon?: boolean;
|
|
135
|
-
dataCy?: string;
|
|
136
|
-
}> & Readonly<{
|
|
137
|
-
onClick?: ((args_0: MouseEvent) => any) | undefined;
|
|
138
|
-
"onUpdate:modelValue"?: ((modelValue: string | number | undefined) => any) | undefined;
|
|
139
|
-
onFocusin?: (() => any) | undefined;
|
|
140
|
-
onFocusout?: (() => any) | undefined;
|
|
141
|
-
onKeydown?: ((args_0: KeyboardEvent) => any) | undefined;
|
|
142
|
-
onKeyup?: ((args_0: KeyboardEvent) => any) | undefined;
|
|
143
|
-
onKeydownEnterPressed?: (() => any) | undefined;
|
|
144
|
-
}>, {
|
|
145
|
-
select: () => void;
|
|
146
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
147
|
-
click: (args_0: MouseEvent) => any;
|
|
148
|
-
"update:modelValue": (modelValue: string | number | undefined) => any;
|
|
149
|
-
focusin: () => any;
|
|
150
|
-
focusout: () => any;
|
|
151
|
-
keydown: (args_0: KeyboardEvent) => any;
|
|
152
|
-
keyup: (args_0: KeyboardEvent) => any;
|
|
153
|
-
keydownEnterPressed: () => any;
|
|
154
|
-
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
155
|
-
$slots: {
|
|
156
|
-
leftIcon?(_: {}): any;
|
|
157
|
-
righticon?(_: {
|
|
158
|
-
handleClean: () => void;
|
|
159
|
-
handleShowPasswd: () => void;
|
|
160
|
-
curType: import('@wikicasa-dev/types').InputTypeHTMLAttribute;
|
|
161
|
-
}): any;
|
|
162
|
-
feedback?(_: {}): any;
|
|
163
|
-
"under-label"?(_: {}): any;
|
|
164
|
-
};
|
|
165
|
-
});
|
|
166
|
-
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
1
|
+
import { Optional } from '@wikicasa-dev/types';
|
|
2
|
+
declare let __VLS_typeProps: {
|
|
3
|
+
type?: "linear" | "logarithmic";
|
|
4
|
+
min?: number;
|
|
5
|
+
max?: number;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_PublicProps = {
|
|
8
|
+
"minValue"?: Optional<number>;
|
|
9
|
+
"maxValue"?: Optional<number>;
|
|
10
|
+
} & typeof __VLS_typeProps;
|
|
11
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"update:minValue": (minValue: Optional<number>) => any;
|
|
13
|
+
"update:maxValue": (maxValue: Optional<number>) => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
15
|
+
"onUpdate:minValue"?: ((minValue: Optional<number>) => any) | undefined;
|
|
16
|
+
"onUpdate:maxValue"?: ((maxValue: Optional<number>) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
167
18
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-
|
|
1
|
+
[data-v-581ec7f4] .form-control{max-width:none!important}.range_container[data-v-581ec7f4]{padding-top:15px}.sliders_control[data-v-581ec7f4]{position:relative;min-height:30px}.form_control[data-v-581ec7f4]{position:relative;display:flex;justify-content:space-between;font-size:24px;color:#635a5a}input[type=range][data-v-581ec7f4]{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:3px;width:100%;position:absolute;background-color:#b4c2f0;pointer-events:none}input[type=range][data-v-581ec7f4]::-webkit-slider-thumb:hover{background:#f7f7f7}input[type=range][data-v-581ec7f4]::-webkit-slider-thumb:active{box-shadow:inset 0 0 3px #387bbe,0 0 9px #387bbe;-webkit-box-shadow:inset 0 0 3px #387bbe,0 0 9px #387bbe}input[type=range][data-v-581ec7f4]::-moz-range-thumb{-moz-appearance:none;appearance:none;pointer-events:all;width:24px;height:24px;background-color:#fff;border-radius:50%;box-shadow:0 0 0 1px #c6c6c6;cursor:pointer}input[type=range][data-v-581ec7f4]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;pointer-events:all;width:24px;height:24px;background-color:#fff;border:2px solid #2B5DFF;border-radius:50%;cursor:pointer}input[type=number][data-v-581ec7f4]{color:#8a8383;width:50px;height:30px;font-size:20px;border:none}input[type=number][data-v-581ec7f4]::-webkit-inner-spin-button,input[type=number][data-v-581ec7f4]::-webkit-outer-spin-button{opacity:1}.fromSlider[data-v-581ec7f4]{height:0!important;z-index:1}.toSlider[data-v-581ec7f4]{height:3px!important}
|