@wikicasa-dev/components 2.0.17 → 2.0.18

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,209 @@
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 },
1
+ import { defineComponent as q, ref as v, useTemplateRef as w, watch as D, useAttrs as G, onMounted as H, openBlock as J, createElementBlock as K, createElementVNode as p, withModifiers as T, unref as F, createVNode as k } from "vue";
2
+ import E from "./BaseInput.js";
3
+ import { _ as O } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
4
+ import './assets/BaseSlider.css';const Q = { class: "range_container" }, W = { class: "sliders_control" }, X = ["value", "min", "max", "step"], Y = ["value", "min", "max", "step"], Z = { class: "form_control row" }, ee = { class: "pb-15 pb-sm-0 col-sm-6 col-xl-4" }, te = { class: "col-sm-6 col-xl-4" }, le = /* @__PURE__ */ q({
5
+ __name: "BaseSlider",
28
6
  props: {
29
- type: {
30
- type: String,
31
- default: "linear"
32
- }
7
+ type: { default: "linear" },
8
+ min: { default: 0 },
9
+ max: { default: 100 }
33
10
  },
34
11
  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;
12
+ setup(f, { emit: L }) {
13
+ function B(e, t) {
14
+ const l = parseInt(e.value, 10), a = parseInt(t.value, 10);
15
+ return [l, a];
61
16
  }
62
- },
63
- watch: {
64
- minValue(t) {
65
- this.$emit("minChanged", t);
66
- },
67
- maxValue(t) {
68
- this.$emit("maxChanged", t);
17
+ const z = (e) => e.minPos + (Math.log(e.value) - e.minlval) / e.scale, A = (e) => Math.exp(
18
+ (e.position - e.minPos) * e.scale + e.minlval
19
+ );
20
+ function x(e, t, l, a, i) {
21
+ const d = t.max - t.min, C = e - t.min, b = t.value - t.min;
22
+ i.style.background = `linear-gradient(
23
+ to right,
24
+ ${l} 0%,
25
+ ${l} ${C / d * 100}%,
26
+ ${a} ${C / d * 100}%,
27
+ ${a} ${b / d * 100}%,
28
+ ${l} ${b / d * 100}%,
29
+ ${l} 100%)`;
69
30
  }
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);
31
+ function I(e, t) {
32
+ e <= 0 ? t.style.zIndex = "2" : t.style.zIndex = "0";
33
+ }
34
+ const V = L, n = v(0), o = v(100), s = v(0), u = v(0), m = v(10), c = v(40), h = v(0), P = v(0), y = v(0), g = w("fromSlider"), r = w("toSlider"), M = (e, t) => {
35
+ if (!g.value || !r.value) return;
36
+ t || (t = "0");
37
+ const l = parseInt(t, 10);
38
+ if (e == "min-input") {
39
+ if (l >= u.value) return;
40
+ s.value = l, N(r.value);
101
41
  return;
102
42
  }
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
43
+ l < s.value || (u.value = l, U(r.value, r.value));
44
+ }, $ = (e) => {
45
+ if (f.type === "logarithmic")
46
+ return e = e || 1, parseInt(
47
+ z({
48
+ value: e,
49
+ minPos: n.value,
50
+ minlval: h.value,
51
+ scale: y.value
113
52
  }).toFixed(0),
114
53
  10
115
54
  );
116
- if (this.type === "linear")
117
- return t;
55
+ if (f.type === "linear")
56
+ return e;
118
57
  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
58
+ }, S = (e) => {
59
+ if (f.type === "logarithmic")
60
+ return e = e || 1, parseInt(
61
+ A({
62
+ position: e,
63
+ scale: y.value,
64
+ minlval: h.value,
65
+ minPos: n.value
128
66
  }).toFixed(0),
129
67
  10
130
68
  );
131
- if (this.type === "linear")
132
- return t;
69
+ if (f.type === "linear")
70
+ return e;
133
71
  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,
72
+ }, N = (e) => {
73
+ const t = $(s.value), l = $(u.value);
74
+ x(
75
+ t,
139
76
  {
140
- min: this.leftSliderLimit,
141
- max: this.rightSliderLimit,
142
- value: e
77
+ min: n.value,
78
+ max: o.value,
79
+ value: l
143
80
  },
144
81
  "#B4C2F0",
145
82
  "#2B5DFF",
146
- t
83
+ e
147
84
  );
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,
85
+ const a = t, i = u.value;
86
+ a > i ? m.value = i : m.value = a;
87
+ }, U = (e, t) => {
88
+ const l = $(s.value), a = $(u.value);
89
+ x(
90
+ l,
155
91
  {
156
- min: this.leftSliderLimit,
157
- max: this.rightSliderLimit,
158
- value: l
92
+ min: n.value,
93
+ max: o.value,
94
+ value: a
159
95
  },
160
96
  "#B4C2F0",
161
97
  "#2B5DFF",
162
- i
98
+ t
163
99
  );
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,
100
+ const i = s.value, d = a;
101
+ I(u.value, e), i <= d ? c.value = d : c.value = i;
102
+ }, R = (e, t) => {
103
+ if (!t.value) return;
104
+ const [l, a] = B(e, t), i = S(l);
105
+ x(
106
+ l,
172
107
  {
173
- min: this.leftSliderLimit,
174
- max: this.rightSliderLimit,
175
- value: l
108
+ min: n.value,
109
+ max: o.value,
110
+ value: a
176
111
  },
177
112
  "#B4C2F0",
178
113
  "#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,
114
+ t
115
+ ), l > a ? (e.value = `${a}`, m.value = a, s.value = a) : (m.value = l, s.value = i);
116
+ }, j = (e, t) => {
117
+ if (!t.value) return;
118
+ const [l, a] = B(e, t), i = S(a);
119
+ x(
120
+ m.value,
187
121
  {
188
- min: this.leftSliderLimit,
189
- max: this.rightSliderLimit,
190
- value: l
122
+ min: n.value,
123
+ max: o.value,
124
+ value: a
191
125
  },
192
126
  "#B4C2F0",
193
127
  "#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"])
128
+ t
129
+ ), I(parseInt(t.value, 10), t), l <= a ? (c.value = a, u.value = i) : (t.value = `${l}`, c.value = l, u.value = l);
130
+ };
131
+ D(s, (e) => {
132
+ V("minChanged", e);
133
+ }), D(u, (e) => {
134
+ V("maxChanged", e);
135
+ });
136
+ const _ = G();
137
+ return (() => {
138
+ n.value = parseInt(`${f.min || 0}`, 10), o.value = parseInt(`${f.max || 100}`, 10), m.value = n.value, c.value = o.value, s.value = parseInt(`${_.minValue || n.value}`, 10), u.value = parseInt(`${_.maxValue || o.value}`, 10), h.value = Math.log(s.value || 1), P.value = Math.log(u.value), y.value = (P.value - h.value) / (o.value - n.value);
139
+ })(), H(() => {
140
+ !g.value || !r.value || (x(
141
+ m.value,
142
+ {
143
+ min: n.value,
144
+ max: o.value,
145
+ value: c.value
146
+ },
147
+ "#B4C2F0",
148
+ "#2B5DFF",
149
+ r.value
150
+ ), I(c.value, r.value));
151
+ }), (e, t) => (J(), K("div", Q, [
152
+ p("div", W, [
153
+ p("input", {
154
+ ref_key: "fromSlider",
155
+ ref: g,
156
+ class: "fromSlider",
157
+ type: "range",
158
+ value: m.value,
159
+ min: n.value,
160
+ max: o.value,
161
+ step: e.$attrs.step,
162
+ onInput: t[0] || (t[0] = T((l) => R(
163
+ F(g),
164
+ F(r)
165
+ ), ["stop"]))
166
+ }, null, 40, X),
167
+ p("input", {
168
+ ref_key: "toSlider",
169
+ ref: r,
170
+ class: "toSlider",
171
+ type: "range",
172
+ value: c.value,
173
+ min: n.value,
174
+ max: o.value,
175
+ step: e.$attrs.step,
176
+ onInput: t[1] || (t[1] = T((l) => j(
177
+ F(g),
178
+ F(r)
179
+ ), ["stop"]))
180
+ }, null, 40, Y)
240
181
  ]),
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"])
182
+ p("div", Z, [
183
+ p("div", ee, [
184
+ k(E, {
185
+ "label-text": "Min",
186
+ type: "text",
187
+ pattern: "[0-9]*",
188
+ inputmode: "numeric",
189
+ "model-value": s.value,
190
+ "onUpdate:modelValue": t[2] || (t[2] = (l) => M("min-input", `${l || ""}`))
191
+ }, null, 8, ["model-value"])
192
+ ]),
193
+ p("div", te, [
194
+ k(E, {
195
+ "label-text": "Max",
196
+ type: "text",
197
+ pattern: "[0-9]*",
198
+ inputmode: "numeric",
199
+ "model-value": u.value,
200
+ "onUpdate:modelValue": t[3] || (t[3] = (l) => M("max-input", `${l || ""}`))
201
+ }, null, 8, ["model-value"])
202
+ ])
250
203
  ])
251
- ])
252
- ]);
253
- }
254
- const _ = /* @__PURE__ */ x(I, [["render", b], ["__scopeId", "data-v-c87c86da"]]);
204
+ ]));
205
+ }
206
+ }), se = /* @__PURE__ */ O(le, [["__scopeId", "data-v-888621e8"]]);
255
207
  export {
256
- _ as default
208
+ se as default
257
209
  };
@@ -1,167 +1,16 @@
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
+ declare const _default: import('vue').DefineComponent<{
2
+ type?: "linear" | "logarithmic";
3
+ min?: number;
4
+ max?: number;
5
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ minChanged: (args_0: number) => any;
7
+ maxChanged: (args_0: number) => any;
8
+ }, string, import('vue').PublicProps, Readonly<{
9
+ type?: "linear" | "logarithmic";
10
+ min?: number;
11
+ max?: number;
12
+ }> & Readonly<{
13
+ onMinChanged?: ((args_0: number) => any) | undefined;
14
+ onMaxChanged?: ((args_0: number) => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
167
16
  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-888621e8] .form-control{max-width:none!important}.range_container[data-v-888621e8]{padding-top:15px}.sliders_control[data-v-888621e8]{position:relative;min-height:30px}.form_control[data-v-888621e8]{position:relative;display:flex;justify-content:space-between;font-size:24px;color:#635a5a}input[type=range][data-v-888621e8]{-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-888621e8]::-webkit-slider-thumb:hover{background:#f7f7f7}input[type=range][data-v-888621e8]::-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-888621e8]::-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-888621e8]::-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-888621e8]{color:#8a8383;width:50px;height:30px;font-size:20px;border:none}input[type=number][data-v-888621e8]::-webkit-inner-spin-button,input[type=number][data-v-888621e8]::-webkit-outer-spin-button{opacity:1}.fromSlider[data-v-888621e8]{height:0!important;z-index:1}.toSlider[data-v-888621e8]{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.18",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",