inertia-bootstrap-forms 1.0.41 → 1.0.43
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/inertia-bootstrap-forms.es.js +5366 -1763
- package/dist/inertia-bootstrap-forms.umd.js +5 -1
- package/dist/style.css +1 -1
- package/index.d.ts +39 -0
- package/package.json +5 -4
- package/src/FormContainer.vue +141 -139
- package/src/RangeSliderInput.vue +203 -0
- package/src/index.js +2 -0
package/index.d.ts
CHANGED
|
@@ -158,6 +158,44 @@ export const SubmitButton: DefineComponent<{}, {}, any>;
|
|
|
158
158
|
export const TelInput: DefineComponent<{}, {}, any>;
|
|
159
159
|
export const TextAreaInput: DefineComponent<{}, {}, any>;
|
|
160
160
|
export const TextInput: DefineComponent<{}, {}, any>;
|
|
161
|
+
export const RangeSliderInput: DefineComponent<{
|
|
162
|
+
name: {
|
|
163
|
+
type: String,
|
|
164
|
+
default: null,
|
|
165
|
+
},
|
|
166
|
+
modelValue: {
|
|
167
|
+
type: Number,
|
|
168
|
+
default: 0
|
|
169
|
+
},
|
|
170
|
+
value: {
|
|
171
|
+
type: Number,
|
|
172
|
+
default: 0
|
|
173
|
+
},
|
|
174
|
+
min: {
|
|
175
|
+
type: Number,
|
|
176
|
+
default: 1
|
|
177
|
+
},
|
|
178
|
+
max: {
|
|
179
|
+
type: Number,
|
|
180
|
+
default: 100
|
|
181
|
+
},
|
|
182
|
+
step: {
|
|
183
|
+
type: Number,
|
|
184
|
+
default: 1
|
|
185
|
+
},
|
|
186
|
+
readonly: {
|
|
187
|
+
type: Boolean,
|
|
188
|
+
default: false
|
|
189
|
+
},
|
|
190
|
+
range: {
|
|
191
|
+
type: Boolean,
|
|
192
|
+
default: false
|
|
193
|
+
},
|
|
194
|
+
options: {
|
|
195
|
+
type: Object,
|
|
196
|
+
default: {}
|
|
197
|
+
}
|
|
198
|
+
}, {}, any>;
|
|
161
199
|
|
|
162
200
|
// Export پیشفرض
|
|
163
201
|
declare const Vue3FormComponents: {
|
|
@@ -189,6 +227,7 @@ declare const Vue3FormComponents: {
|
|
|
189
227
|
TextAreaInput: typeof TextAreaInput;
|
|
190
228
|
TextInput: typeof TextInput;
|
|
191
229
|
Quantity: typeof QuantityInput;
|
|
230
|
+
RangeSliderInput: typeof RangeSliderInput;
|
|
192
231
|
};
|
|
193
232
|
|
|
194
233
|
export default Vue3FormComponents;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inertia-bootstrap-forms",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.43",
|
|
4
4
|
"description": "Create bootstrap forms with inertia and twitter bootstrap",
|
|
5
5
|
"main": "dist/inertia-bootstrap-forms.cjs.js",
|
|
6
6
|
"module": "dist/inertia-bootstrap-forms.es.js",
|
|
@@ -40,9 +40,10 @@
|
|
|
40
40
|
"@vitejs/plugin-vue": "^5.2.4",
|
|
41
41
|
"@vue-leaflet/vue-leaflet": "^0.10.1",
|
|
42
42
|
"choices.js": "^11.1.0",
|
|
43
|
+
"svelte-range-slider-pips": "^4.1.0",
|
|
43
44
|
"vue-tel-input": "^9.3.0",
|
|
44
|
-
"vue3-
|
|
45
|
-
"vue3-
|
|
45
|
+
"vue3-bootstrap-components": "1.0.42",
|
|
46
|
+
"vue3-persian-datetime-picker": "^1.2.2"
|
|
46
47
|
},
|
|
47
48
|
"peerDependencies": {
|
|
48
49
|
"@inertiajs/vue3": ">2.0",
|
|
@@ -50,8 +51,8 @@
|
|
|
50
51
|
"vue": "^3.0"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
|
-
"sass-embedded": "^1.89.2",
|
|
54
54
|
"dropzone": "^6.0.0-beta.2",
|
|
55
|
+
"sass-embedded": "^1.89.2",
|
|
55
56
|
"vite": "^5"
|
|
56
57
|
},
|
|
57
58
|
"bugs": {
|
package/src/FormContainer.vue
CHANGED
|
@@ -4,162 +4,164 @@ import {computed, defineComponent, reactive, toRef} from "vue";
|
|
|
4
4
|
import {Alert} from "vue3-bootstrap-components";
|
|
5
5
|
|
|
6
6
|
export default defineComponent({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
method: {
|
|
16
|
-
default: 'post'
|
|
17
|
-
},
|
|
18
|
-
only: {
|
|
19
|
-
type: Array,
|
|
20
|
-
default: [],
|
|
21
|
-
required: false,
|
|
22
|
-
},
|
|
23
|
-
modelValue: {
|
|
24
|
-
type: Object,
|
|
25
|
-
default: {},
|
|
26
|
-
required: false,
|
|
27
|
-
},
|
|
28
|
-
submitHandler: {
|
|
29
|
-
type: Function,
|
|
30
|
-
default: null,
|
|
31
|
-
required: false,
|
|
32
|
-
},
|
|
7
|
+
components: {Alert},
|
|
8
|
+
emits: ['submit', 'reset', 'onStart', 'onFinish', 'onSuccess', 'onError', 'change'],
|
|
9
|
+
props: {
|
|
10
|
+
url: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: '',
|
|
13
|
+
required: false,
|
|
33
14
|
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
15
|
+
method: {
|
|
16
|
+
default: 'post'
|
|
17
|
+
},
|
|
18
|
+
only: {
|
|
19
|
+
type: Array,
|
|
20
|
+
default: [],
|
|
21
|
+
required: false,
|
|
22
|
+
},
|
|
23
|
+
modelValue: {
|
|
24
|
+
type: Object,
|
|
25
|
+
default: {},
|
|
26
|
+
required: false,
|
|
27
|
+
},
|
|
28
|
+
submitHandler: {
|
|
29
|
+
type: Function,
|
|
30
|
+
default: null,
|
|
31
|
+
required: false,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
setup(props) {
|
|
35
|
+
const formEl = toRef('formEl');
|
|
36
|
+
const formData = reactive(props.modelValue);
|
|
37
|
+
const form = useForm({
|
|
38
|
+
hasMessage: false,
|
|
39
|
+
successMessage: null,
|
|
40
|
+
...formData
|
|
41
|
+
});
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
form.getID = function (el) {
|
|
44
|
+
if (typeof el === String) {
|
|
45
|
+
return (formEl.value?.id ? formEl.value?.id + '-' : '') + '-' + el;
|
|
46
|
+
}
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
return (formEl.value?.id ? formEl.value?.id + '-' : '') + ((el.group ? el.group?.name + '-' + el.group?.groupID + '-' : '')) + el.name + (el.value ? '-' + el.value : '');
|
|
49
|
+
};
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
51
|
+
return {form, formData, formEl};
|
|
52
|
+
},
|
|
53
|
+
provide() {
|
|
54
|
+
return {
|
|
55
|
+
form: computed(() => this.form)
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
watch: {
|
|
59
|
+
form: {
|
|
60
|
+
handler: function (newVal) {
|
|
61
|
+
const {
|
|
62
|
+
isDirty,
|
|
63
|
+
errors,
|
|
64
|
+
hasErrors,
|
|
65
|
+
hasMessage,
|
|
66
|
+
successMessage,
|
|
67
|
+
processing,
|
|
68
|
+
progress,
|
|
69
|
+
wasSuccessful,
|
|
70
|
+
recentlySuccessful,
|
|
71
|
+
__rememberable,
|
|
72
|
+
...cleanedData
|
|
73
|
+
} = newVal;
|
|
74
74
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
75
|
+
this.$emit('change', cleanedData);
|
|
76
|
+
this.$emit('update:modelValue', cleanedData)
|
|
77
|
+
},
|
|
78
|
+
deep: true,
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
methods: {
|
|
82
|
+
reset() {
|
|
83
|
+
this.form.reset();
|
|
80
84
|
},
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
this.form.reset();
|
|
84
|
-
},
|
|
85
|
-
async submit(event) {
|
|
86
|
-
const formValues = this.modelValue;
|
|
87
|
-
|
|
88
|
-
if (this.submitHandler) {
|
|
89
|
-
await this.submitHandler(event);
|
|
90
|
-
} else {
|
|
91
|
-
this.$emit('submit', event);
|
|
92
|
-
await this.form.transform(function (formDataValues) {
|
|
85
|
+
async submit(event) {
|
|
86
|
+
const formValues = this.modelValue;
|
|
93
87
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
88
|
+
if (this.submitHandler) {
|
|
89
|
+
await this.submitHandler(event);
|
|
90
|
+
} else {
|
|
91
|
+
this.$emit('submit', event);
|
|
92
|
+
await this.form.transform(function (formDataValues) {
|
|
93
|
+
delete formDataValues.hasMessage;
|
|
94
|
+
delete formDataValues.successMessage;
|
|
98
95
|
|
|
99
|
-
|
|
100
|
-
|
|
96
|
+
let data = JSON.stringify({
|
|
97
|
+
...formValues,
|
|
98
|
+
...formDataValues,
|
|
99
|
+
});
|
|
101
100
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
101
|
+
const persianDigits = [/۰/g, /۱/g, /۲/g, /۳/g, /۴/g, /۵/g, /۶/g, /۷/g, /۸/g, /۹/g];
|
|
102
|
+
const arabicDigits = [/٠/g, /١/g, /٢/g, /٣/g, /٤/g, /٥/g, /٦/g, /٧/g, /٨/g, /٩/g];
|
|
105
103
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
onStart: () => {
|
|
110
|
-
if(this.form.hasMessage){
|
|
111
|
-
this.form.hasMessage = false;
|
|
112
|
-
}
|
|
113
|
-
if(this.form.successMessage){
|
|
114
|
-
this.form.hasMessage = null;
|
|
115
|
-
}
|
|
104
|
+
for (let i = 0; i < 10; i++) {
|
|
105
|
+
data = data.replace(persianDigits[i], i).replace(arabicDigits[i], i);
|
|
106
|
+
}
|
|
116
107
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
this.reset();
|
|
108
|
+
return JSON.parse(data.toLocaleString('en-US'));
|
|
109
|
+
}).submit(this.method.toString(), this.url, {
|
|
110
|
+
only: this.only,
|
|
111
|
+
onStart: () => {
|
|
112
|
+
if (this.form.hasMessage) {
|
|
113
|
+
this.form.hasMessage = false;
|
|
114
|
+
}
|
|
115
|
+
if (this.form.successMessage) {
|
|
116
|
+
this.form.hasMessage = null;
|
|
117
|
+
}
|
|
128
118
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
119
|
+
this.$emit('onStart');
|
|
120
|
+
this.form.clearErrors();
|
|
121
|
+
},
|
|
122
|
+
onFinish: (data) => {
|
|
123
|
+
this.$emit('onFinish', data);
|
|
124
|
+
},
|
|
125
|
+
onError: (errors) => {
|
|
126
|
+
this.$emit('onError', errors);
|
|
127
|
+
},
|
|
128
|
+
onSuccess: (data) => {
|
|
129
|
+
this.reset();
|
|
133
130
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
131
|
+
if (data?.props?.message) {
|
|
132
|
+
this.form.hasMessage = true;
|
|
133
|
+
this.form.successMessage = data?.props?.message;
|
|
137
134
|
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
135
|
+
|
|
136
|
+
this.$emit('onSuccess', data);
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
expose: ['submit', 'reset'],
|
|
141
143
|
})
|
|
142
144
|
|
|
143
145
|
</script>
|
|
144
146
|
|
|
145
147
|
<template>
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
148
|
+
<form ref="formEl"
|
|
149
|
+
:action="url"
|
|
150
|
+
:method="method"
|
|
151
|
+
@submit.prevent="submit"
|
|
152
|
+
@reset="$emit('reset')"
|
|
153
|
+
:class="{'form-processing loading': form.processing,}"
|
|
154
|
+
:novalidate="!!Object.values(form.errors).length">
|
|
155
|
+
<slot name="errors" v-if="form.hasErrors" :form="form">
|
|
156
|
+
<Alert type="danger">
|
|
157
|
+
<ul class="list-unstyled p-0 m-0 fanum">
|
|
158
|
+
<li v-for="error in form.errors">{{ error }}</li>
|
|
159
|
+
</ul>
|
|
160
|
+
</Alert>
|
|
161
|
+
</slot>
|
|
162
|
+
<slot name="message" v-if="form.hasMessage" :form="form">
|
|
163
|
+
<Alert type="success" v-html="form.successMessage" v-if="form.successMessage"></Alert>
|
|
164
|
+
</slot>
|
|
165
|
+
<slot :form="form" :submit="submit"/>
|
|
166
|
+
</form>
|
|
165
167
|
</template>
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import {computed, defineComponent, inject} from 'vue';
|
|
3
|
+
import RangeSlider from 'svelte-range-slider-pips';
|
|
4
|
+
|
|
5
|
+
export default defineComponent({
|
|
6
|
+
emits: ['update:modelValue', 'change'],
|
|
7
|
+
props: {
|
|
8
|
+
name: {
|
|
9
|
+
type: String,
|
|
10
|
+
default: null,
|
|
11
|
+
},
|
|
12
|
+
modelValue: {
|
|
13
|
+
type: Number,
|
|
14
|
+
default: 0
|
|
15
|
+
},
|
|
16
|
+
value: {
|
|
17
|
+
type: Number,
|
|
18
|
+
default: 0
|
|
19
|
+
},
|
|
20
|
+
min: {
|
|
21
|
+
type: Number,
|
|
22
|
+
default: 1
|
|
23
|
+
},
|
|
24
|
+
max: {
|
|
25
|
+
type: Number,
|
|
26
|
+
default: 100
|
|
27
|
+
},
|
|
28
|
+
step: {
|
|
29
|
+
type: Number,
|
|
30
|
+
default: 1
|
|
31
|
+
},
|
|
32
|
+
readonly: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: false
|
|
35
|
+
},
|
|
36
|
+
range: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: false
|
|
39
|
+
},
|
|
40
|
+
options: {
|
|
41
|
+
type: Object,
|
|
42
|
+
default: {}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
setup(props) {
|
|
46
|
+
let form = inject('form', {
|
|
47
|
+
errors: {},
|
|
48
|
+
getID(name) {
|
|
49
|
+
return name;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
let group = inject('group', {});
|
|
53
|
+
|
|
54
|
+
const modelValue = computed({
|
|
55
|
+
get() {
|
|
56
|
+
return (group.value && form.value[group.value.name]) ? group.value?.getData(props.name) : form.value[props.name];
|
|
57
|
+
},
|
|
58
|
+
set(value) {
|
|
59
|
+
if (group?.value?.name) {
|
|
60
|
+
group.value.setData(props.name, value);
|
|
61
|
+
} else {
|
|
62
|
+
form.value[props.name] = value;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
return {modelValue, form, group};
|
|
68
|
+
},
|
|
69
|
+
methods: {},
|
|
70
|
+
mounted() {
|
|
71
|
+
let _this=this;
|
|
72
|
+
this.rangeSliderEn = new RangeSlider({
|
|
73
|
+
target: this.$refs.input,
|
|
74
|
+
props: {
|
|
75
|
+
values: this.modelValue,
|
|
76
|
+
pips: true,
|
|
77
|
+
spring: true,
|
|
78
|
+
rangeFloat: true,
|
|
79
|
+
range: true,
|
|
80
|
+
formatter: (v) => Intl.NumberFormat().format(v),
|
|
81
|
+
rangeFormatter: (x, y) => Intl.NumberFormat().format(x) + ' - ' + Intl.NumberFormat().format(y),
|
|
82
|
+
first: 'label',
|
|
83
|
+
last: 'label',
|
|
84
|
+
...this.options,
|
|
85
|
+
min: this.min || null,
|
|
86
|
+
max: this.max || null,
|
|
87
|
+
|
|
88
|
+
}
|
|
89
|
+
}).$on('change', function (e) {
|
|
90
|
+
_this.$emit('change', e);
|
|
91
|
+
|
|
92
|
+
const value = _this.range ? e.detail?.values : e.detail?.value;
|
|
93
|
+
_this.modelValue = value;
|
|
94
|
+
_this.$emit('update:modelValue', value);
|
|
95
|
+
});
|
|
96
|
+
},
|
|
97
|
+
data() {
|
|
98
|
+
return {
|
|
99
|
+
rangeSliderEn: null
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
})
|
|
103
|
+
</script>
|
|
104
|
+
<template>
|
|
105
|
+
<div class="range-input" ref="input" dir="ltr">
|
|
106
|
+
</div>
|
|
107
|
+
</template>
|
|
108
|
+
|
|
109
|
+
<style>
|
|
110
|
+
/* purgecss start ignore */
|
|
111
|
+
.range-slider {
|
|
112
|
+
direction: ltr;
|
|
113
|
+
touch-action: none;
|
|
114
|
+
-webkit-tap-highlight-color: transparent;
|
|
115
|
+
-webkit-user-select: none;
|
|
116
|
+
user-select: none;
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
display: block;
|
|
119
|
+
position: relative;
|
|
120
|
+
width: 100%;
|
|
121
|
+
height: 8px;
|
|
122
|
+
background: #ddd;
|
|
123
|
+
border-radius: 4px
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.range-slider[data-vertical] {
|
|
127
|
+
height: 100%;
|
|
128
|
+
width: 8px
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.range-slider[data-disabled] {
|
|
132
|
+
opacity: .5;
|
|
133
|
+
cursor: not-allowed
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.range-slider .range-slider__thumb {
|
|
137
|
+
position: absolute;
|
|
138
|
+
z-index: 3;
|
|
139
|
+
top: 50%;
|
|
140
|
+
width: 24px;
|
|
141
|
+
height: 24px;
|
|
142
|
+
transform: translate(-50%, -50%);
|
|
143
|
+
border-radius: 50%;
|
|
144
|
+
background: #2196f3
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.range-slider .range-slider__thumb:focus-visible {
|
|
148
|
+
outline: 0;
|
|
149
|
+
box-shadow: 0 0 0 6px rgba(33, 150, 243, .5)
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.range-slider[data-vertical] .range-slider__thumb {
|
|
153
|
+
left: 50%
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.range-slider .range-slider__thumb[data-disabled] {
|
|
157
|
+
z-index: 2
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.range-slider .range-slider__range {
|
|
161
|
+
position: absolute;
|
|
162
|
+
z-index: 1;
|
|
163
|
+
transform: translate(0, -50%);
|
|
164
|
+
top: 50%;
|
|
165
|
+
width: 100%;
|
|
166
|
+
height: 100%;
|
|
167
|
+
background: #51adf6
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.range-slider[data-vertical] .range-slider__range {
|
|
171
|
+
left: 50%;
|
|
172
|
+
transform: translate(-50%, 0)
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.range-slider input[type=range] {
|
|
176
|
+
-webkit-appearance: none;
|
|
177
|
+
pointer-events: none;
|
|
178
|
+
position: absolute;
|
|
179
|
+
z-index: 2;
|
|
180
|
+
top: 0;
|
|
181
|
+
left: 0;
|
|
182
|
+
width: 0;
|
|
183
|
+
height: 0;
|
|
184
|
+
background-color: transparent
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.range-slider input[type=range]::-webkit-slider-thumb {
|
|
188
|
+
-webkit-appearance: none;
|
|
189
|
+
appearance: none
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.range-slider input[type=range]::-moz-range-thumb {
|
|
193
|
+
width: 0;
|
|
194
|
+
height: 0;
|
|
195
|
+
border: 0
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.range-slider input[type=range]:focus {
|
|
199
|
+
outline: 0
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/* purgecss end ignore */
|
|
203
|
+
</style>
|
package/src/index.js
CHANGED
|
@@ -24,6 +24,7 @@ import TextAreaInput from "./TextAreaInput.vue";
|
|
|
24
24
|
import TextInput from "./TextInput.vue";
|
|
25
25
|
import DropzoneInput from "./DropzoneInput.vue";
|
|
26
26
|
import SimpleUploader from "./SimpleUploader.vue";
|
|
27
|
+
import RangeSliderInput from "./RangeSliderInput.vue";
|
|
27
28
|
|
|
28
29
|
export {
|
|
29
30
|
AmountInput,
|
|
@@ -37,6 +38,7 @@ export {
|
|
|
37
38
|
EditorInput,
|
|
38
39
|
DropzoneInput,
|
|
39
40
|
SimpleUploader,
|
|
41
|
+
RangeSliderInput,
|
|
40
42
|
GroupControl,
|
|
41
43
|
FormContainer,
|
|
42
44
|
LocationInput,
|