inertia-bootstrap-forms 1.0.43 → 1.0.44

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inertia-bootstrap-forms",
3
- "version": "1.0.43",
3
+ "version": "1.0.44",
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",
@@ -70,7 +70,7 @@ export default defineComponent({
70
70
  mounted() {
71
71
  let _this=this;
72
72
  this.rangeSliderEn = new RangeSlider({
73
- target: this.$refs.input,
73
+ target: this.$refs.rangeSliderEl,
74
74
  props: {
75
75
  values: this.modelValue,
76
76
  pips: true,
@@ -102,102 +102,7 @@ export default defineComponent({
102
102
  })
103
103
  </script>
104
104
  <template>
105
- <div class="range-input" ref="input" dir="ltr">
105
+ <div class="range-input" ref="rangeSliderEl" dir="ltr">
106
+ <input v-model="modelValue" type="hidden">
106
107
  </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>
108
+ </template>