@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.
@@ -1,257 +1,208 @@
1
- import f from "./BaseInput.js";
2
- import { defineComponent as c, resolveComponent as S, openBlock as V, createElementBlock as g, createElementVNode as a, withModifiers as h, createVNode as d } from "vue";
3
- import { _ as x } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
4
- import './assets/BaseSlider.css';function p(t, i) {
5
- const e = parseInt(t.value, 10), l = parseInt(i.value, 10);
6
- return [e, l];
7
- }
8
- const v = (t) => t.minPos + (Math.log(t.value) - t.minlval) / t.scale, $ = (t) => Math.exp(
9
- (t.position - t.minPos) * t.scale + t.minlval
10
- );
11
- function m(t, i, e, l, s) {
12
- const r = i.max - i.min, o = t - i.min, n = i.value - i.min;
13
- s.style.background = `linear-gradient(
14
- to right,
15
- ${e} 0%,
16
- ${e} ${o / r * 100}%,
17
- ${l} ${o / r * 100}%,
18
- ${l} ${n / r * 100}%,
19
- ${e} ${n / r * 100}%,
20
- ${e} 100%)`;
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
- emits: ["minChanged", "maxChanged"],
35
- data() {
36
- return {
37
- leftSliderLimit: 0,
38
- rightSliderLimit: 100,
39
- minValue: 0,
40
- maxValue: 0,
41
- sliderMinValue: 10,
42
- sliderMaxValue: 40,
43
- /* Logaritmic values */
44
- minlval: 0,
45
- maxlval: 0,
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
- watch: {
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
- created() {
72
- this.leftSliderLimit = parseInt(`${this.$attrs.min || 0}`, 10), this.rightSliderLimit = parseInt(`${this.$attrs.max || 100}`, 10), this.sliderMinValue = this.leftSliderLimit, this.sliderMaxValue = this.rightSliderLimit, this.minValue = parseInt(
73
- `${this.$attrs.minValue || this.leftSliderLimit}`,
74
- 10
75
- ), this.maxValue = parseInt(
76
- `${this.$attrs.maxValue || this.rightSliderLimit}`,
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
- e < this.minValue || (this.maxValue = e, this.controlToInput(this.toSlider, this.toSlider));
104
- },
105
- getCurrentPosition(t) {
106
- if (this.type === "logarithmic")
107
- return t = t || 1, parseInt(
108
- v({
109
- value: t,
110
- minPos: this.leftSliderLimit,
111
- minlval: this.minlval,
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 (this.type === "linear")
117
- return t;
60
+ if (m.type === "linear")
61
+ return e;
118
62
  throw new Error("The slider type has not been implemented");
119
- },
120
- getCurrentValue(t) {
121
- if (this.type === "logarithmic")
122
- return t = t || 1, parseInt(
123
- $({
124
- position: t,
125
- scale: this.scale,
126
- minlval: this.minlval,
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 (this.type === "linear")
132
- return t;
74
+ if (m.type === "linear")
75
+ return e;
133
76
  throw new Error("The slider type has not been implemented");
134
- },
135
- controlFromInput(t) {
136
- const i = this.getCurrentPosition(this.minValue), e = this.getCurrentPosition(this.maxValue);
137
- m(
138
- i,
77
+ }, z = (e, l, a) => {
78
+ const t = I(l), v = I(a);
79
+ V(
80
+ t,
139
81
  {
140
- min: this.leftSliderLimit,
141
- max: this.rightSliderLimit,
142
- value: e
82
+ min: n.value,
83
+ max: u.value,
84
+ value: v
143
85
  },
144
86
  "#B4C2F0",
145
87
  "#2B5DFF",
146
- t
88
+ e
147
89
  );
148
- const l = i, s = this.maxValue;
149
- l > s ? this.sliderMinValue = s : this.sliderMinValue = l;
150
- },
151
- controlToInput(t, i) {
152
- const e = this.getCurrentPosition(this.minValue), l = this.getCurrentPosition(this.maxValue);
153
- m(
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: this.leftSliderLimit,
157
- max: this.rightSliderLimit,
158
- value: l
97
+ min: n.value,
98
+ max: u.value,
99
+ value: i
159
100
  },
160
101
  "#B4C2F0",
161
102
  "#2B5DFF",
162
- i
103
+ l
163
104
  );
164
- const s = this.minValue, r = l;
165
- u(this.maxValue, t), s <= r ? this.sliderMaxValue = r : this.sliderMaxValue = s;
166
- },
167
- controlFromSlider(t, i) {
168
- if (!this.toSlider) return;
169
- const [e, l] = p(t, i), s = this.getCurrentValue(e);
170
- m(
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: this.leftSliderLimit,
174
- max: this.rightSliderLimit,
175
- value: l
113
+ min: n.value,
114
+ max: u.value,
115
+ value: t
176
116
  },
177
117
  "#B4C2F0",
178
118
  "#2B5DFF",
179
- i
180
- ), e > l ? (t.value = `${l}`, this.sliderMinValue = l, this.minValue = l) : (this.sliderMinValue = e, this.minValue = s);
181
- },
182
- controlToSlider(t, i) {
183
- if (!this.toSlider) return;
184
- const [e, l] = p(t, i), s = this.getCurrentValue(l);
185
- m(
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: this.leftSliderLimit,
189
- max: this.rightSliderLimit,
190
- value: l
127
+ min: n.value,
128
+ max: u.value,
129
+ value: t
191
130
  },
192
131
  "#B4C2F0",
193
132
  "#2B5DFF",
194
- i
195
- ), u(parseInt(this.toSlider.value, 10), i), e <= l ? (this.sliderMaxValue = l, this.maxValue = s) : (i.value = `${e}`, this.sliderMaxValue = e, this.maxValue = e);
196
- }
197
- }
198
- }), L = { class: "range_container" }, M = { class: "sliders_control" }, F = ["value", "min", "max", "step"], C = ["value", "min", "max", "step"], P = { class: "form_control row" }, y = { class: "pb-15 pb-sm-0 col-sm-6 col-xl-4" }, B = { class: "col-sm-6 col-xl-4" };
199
- function b(t, i, e, l, s, r) {
200
- const o = S("base-input");
201
- return V(), g("div", L, [
202
- a("div", M, [
203
- a("input", {
204
- ref: "fromSlider",
205
- class: "fromSlider",
206
- type: "range",
207
- value: t.sliderMinValue,
208
- min: t.leftSliderLimit,
209
- max: t.rightSliderLimit,
210
- step: t.$attrs.step,
211
- onInput: i[0] || (i[0] = h((n) => t.controlFromSlider(
212
- t.fromSlider,
213
- t.toSlider
214
- ), ["stop"]))
215
- }, null, 40, F),
216
- a("input", {
217
- ref: "toSlider",
218
- class: "toSlider",
219
- type: "range",
220
- value: t.sliderMaxValue,
221
- min: t.leftSliderLimit,
222
- max: t.rightSliderLimit,
223
- step: t.$attrs.step,
224
- onInput: i[1] || (i[1] = h((n) => t.controlToSlider(
225
- t.fromSlider,
226
- t.toSlider
227
- ), ["stop"]))
228
- }, null, 40, C)
229
- ]),
230
- a("div", P, [
231
- a("div", y, [
232
- d(o, {
233
- "label-text": "Min",
234
- type: "text",
235
- pattern: "[0-9]*",
236
- inputmode: "numeric",
237
- "model-value": t.minValue,
238
- "onUpdate:modelValue": i[2] || (i[2] = (n) => t.handleInputChange("min-input", `${n || ""}`))
239
- }, null, 8, ["model-value"])
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
- a("div", B, [
242
- d(o, {
243
- "label-text": "Max",
244
- type: "text",
245
- pattern: "[0-9]*",
246
- inputmode: "numeric",
247
- "model-value": t.maxValue,
248
- "onUpdate:modelValue": i[3] || (i[3] = (n) => t.handleInputChange("max-input", `${n || ""}`))
249
- }, null, 8, ["model-value"])
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
- _ as default
207
+ oe as default
257
208
  };
@@ -1,167 +1,18 @@
1
- import { Nullable } from '@wikicasa-dev/types';
2
- type Inputs = "min-input" | "max-input";
3
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
- type: {
5
- type: () => "linear" | "logarithmic";
6
- default: string;
7
- };
8
- }>, {}, {
9
- leftSliderLimit: number;
10
- rightSliderLimit: number;
11
- minValue: number;
12
- maxValue: number;
13
- sliderMinValue: number;
14
- sliderMaxValue: number;
15
- minlval: number;
16
- maxlval: number;
17
- scale: number;
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-c87c86da] .form-control{max-width:none!important}.range_container[data-v-c87c86da]{padding-top:15px}.sliders_control[data-v-c87c86da]{position:relative;min-height:30px}.form_control[data-v-c87c86da]{position:relative;display:flex;justify-content:space-between;font-size:24px;color:#635a5a}input[type=range][data-v-c87c86da]{-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-c87c86da]::-webkit-slider-thumb:hover{background:#f7f7f7}input[type=range][data-v-c87c86da]::-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-c87c86da]::-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-c87c86da]::-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-c87c86da]{color:#8a8383;width:50px;height:30px;font-size:20px;border:none}input[type=number][data-v-c87c86da]::-webkit-inner-spin-button,input[type=number][data-v-c87c86da]::-webkit-outer-spin-button{opacity:1}.fromSlider[data-v-c87c86da]{height:0!important;z-index:1}.toSlider[data-v-c87c86da]{height:3px!important}
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}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.0.17",
3
+ "version": "2.0.19",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",