@mythpe/quasar-ui-qui 0.2.39 → 0.2.40
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 +1 -1
- package/src/components/form/MCheckbox.vue +5 -4
- package/src/components/form/MOptions.vue +5 -5
- package/src/components/form/MRadio.vue +4 -1
- package/src/components/form/MSignaturePad.vue +64 -57
- package/src/components/form/MToggle.vue +7 -7
- package/src/style/m-input.sass +1 -1
- package/src/style/main.sass +1 -18
package/package.json
CHANGED
|
@@ -59,12 +59,12 @@ const props = withDefaults(defineProps<P>(), {
|
|
|
59
59
|
val: undefined,
|
|
60
60
|
required: undefined,
|
|
61
61
|
rules: undefined,
|
|
62
|
-
trueValue:
|
|
63
|
-
falseValue:
|
|
62
|
+
trueValue: !0,
|
|
63
|
+
falseValue: !1,
|
|
64
64
|
checkedIcon: undefined,
|
|
65
65
|
rowProps: undefined,
|
|
66
66
|
colProps: undefined,
|
|
67
|
-
viewMode:
|
|
67
|
+
viewMode: !1,
|
|
68
68
|
fieldOptions: undefined,
|
|
69
69
|
autocomplete: undefined,
|
|
70
70
|
disable: undefined
|
|
@@ -125,6 +125,7 @@ defineOptions({
|
|
|
125
125
|
<MCol v-bind="colProps">
|
|
126
126
|
<q-field
|
|
127
127
|
v-bind="{
|
|
128
|
+
...theme,
|
|
128
129
|
error: !!errorMessage,
|
|
129
130
|
errorMessage,
|
|
130
131
|
hint: hint ? __(hint) : undefined,
|
|
@@ -159,7 +160,7 @@ defineOptions({
|
|
|
159
160
|
<MRow class="items-center">
|
|
160
161
|
<div
|
|
161
162
|
v-if="!!getLabel"
|
|
162
|
-
:class="errorMessage ? undefined : 'text-
|
|
163
|
+
:class="errorMessage ? undefined : 'text-body'"
|
|
163
164
|
>
|
|
164
165
|
{{ getLabel }}
|
|
165
166
|
</div>
|
|
@@ -65,7 +65,7 @@ const props = withDefaults(defineProps<P>(), {
|
|
|
65
65
|
viewMode: () => !1,
|
|
66
66
|
viewModeValue: undefined,
|
|
67
67
|
topLabel: undefined,
|
|
68
|
-
color:
|
|
68
|
+
color: undefined,
|
|
69
69
|
type: 'radio',
|
|
70
70
|
keepColor: undefined,
|
|
71
71
|
guest: !1,
|
|
@@ -164,8 +164,8 @@ defineOptions({
|
|
|
164
164
|
<div class="flex-break" />
|
|
165
165
|
<q-spinner-dots
|
|
166
166
|
class="q-mt-lg q-ml-lg"
|
|
167
|
-
color="
|
|
168
|
-
size="
|
|
167
|
+
color="brand"
|
|
168
|
+
size="25px"
|
|
169
169
|
/>
|
|
170
170
|
</template>
|
|
171
171
|
</template>
|
|
@@ -197,7 +197,6 @@ defineOptions({
|
|
|
197
197
|
:is="viewMode ? QField : QOptionGroup"
|
|
198
198
|
ref="input"
|
|
199
199
|
:class="{'m--options': !0, 'm--options__full_width': fullWidth, 'm--options__fit_width': fitWidth }"
|
|
200
|
-
:color="!!errorMessage ? 'negative' : getProp('color')"
|
|
201
200
|
:error="viewMode ? !!errorMessage : undefined"
|
|
202
201
|
:error-message="viewMode ? errorMessage : undefined"
|
|
203
202
|
:hint="viewMode ? ( hint ? __(hint) : undefined ) : undefined"
|
|
@@ -210,7 +209,8 @@ defineOptions({
|
|
|
210
209
|
...$attrs,
|
|
211
210
|
...theme,
|
|
212
211
|
...( viewMode ? { ...pluginProps.field } : pluginProps.options as any ),
|
|
213
|
-
stackLabel: !0
|
|
212
|
+
stackLabel: !0,
|
|
213
|
+
color:!!errorMessage ? 'negative' : getProp('color')
|
|
214
214
|
}"
|
|
215
215
|
v-on="listeners"
|
|
216
216
|
>
|
|
@@ -33,6 +33,7 @@ type P = {
|
|
|
33
33
|
required?: Props['required'];
|
|
34
34
|
rules?: Props['rules'];
|
|
35
35
|
dense?: Props['dense'];
|
|
36
|
+
color?: Props['color'];
|
|
36
37
|
checkedIcon?: Props['checkedIcon'];
|
|
37
38
|
rowProps?: Props['rowProps'];
|
|
38
39
|
colProps?: Props['colProps'];
|
|
@@ -58,6 +59,7 @@ const props = withDefaults(defineProps<P>(), {
|
|
|
58
59
|
required: undefined,
|
|
59
60
|
rules: undefined,
|
|
60
61
|
dense: undefined,
|
|
62
|
+
color: undefined,
|
|
61
63
|
checkedIcon: undefined,
|
|
62
64
|
rowProps: undefined,
|
|
63
65
|
colProps: undefined,
|
|
@@ -143,6 +145,7 @@ defineOptions({
|
|
|
143
145
|
...$attrs,
|
|
144
146
|
disable: viewMode ? !0 : disable,
|
|
145
147
|
checkedIcon: getProp('checkedIcon'),
|
|
148
|
+
color: !!errorMessage ? 'negative' : getProp('color'),
|
|
146
149
|
label: undefined
|
|
147
150
|
}"
|
|
148
151
|
v-on="listeners"
|
|
@@ -151,7 +154,7 @@ defineOptions({
|
|
|
151
154
|
<MRow class="items-center">
|
|
152
155
|
<div
|
|
153
156
|
v-if="!!getLabel"
|
|
154
|
-
class="text-
|
|
157
|
+
class="text-body"
|
|
155
158
|
>
|
|
156
159
|
{{ getLabel }}
|
|
157
160
|
</div>
|
|
@@ -162,39 +162,36 @@ watch(url, (url) => {
|
|
|
162
162
|
name="top-input"
|
|
163
163
|
v-bind="scopes"
|
|
164
164
|
/>
|
|
165
|
-
<
|
|
165
|
+
<div class="row justify-between items-center q-mb-sm">
|
|
166
166
|
<div
|
|
167
|
-
|
|
168
|
-
|
|
167
|
+
:class="{
|
|
168
|
+
'text-center': center,
|
|
169
|
+
'q-mb-xs text-weight-bold' : !0,
|
|
170
|
+
'text-body1': !large,
|
|
171
|
+
'text-h6': large,
|
|
172
|
+
'text-negative': !!errorMessage,
|
|
173
|
+
'text-positive': !errorMessage && confirmed
|
|
174
|
+
}"
|
|
175
|
+
v-bind="labelProps"
|
|
169
176
|
>
|
|
170
|
-
<
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
<span
|
|
183
|
-
v-if="label && required && !confirmed"
|
|
184
|
-
class="text-negative print-hide"
|
|
185
|
-
> *</span>
|
|
186
|
-
<q-icon
|
|
187
|
-
v-if="confirmed"
|
|
188
|
-
color="positive"
|
|
189
|
-
name="verified"
|
|
190
|
-
right
|
|
191
|
-
size="20px"
|
|
192
|
-
/>
|
|
193
|
-
</div>
|
|
177
|
+
<span v-if="!!label">{{ __(label) }}</span>
|
|
178
|
+
<span
|
|
179
|
+
v-if="label && required && !confirmed"
|
|
180
|
+
class="text-negative print-hide"
|
|
181
|
+
> *</span>
|
|
182
|
+
<q-icon
|
|
183
|
+
v-if="confirmed"
|
|
184
|
+
color="positive"
|
|
185
|
+
name="verified"
|
|
186
|
+
right
|
|
187
|
+
size="20px"
|
|
188
|
+
/>
|
|
194
189
|
</div>
|
|
190
|
+
</div>
|
|
191
|
+
|
|
192
|
+
<MTransition in="fadeIn">
|
|
195
193
|
<div
|
|
196
194
|
v-if="!!errorMessage"
|
|
197
|
-
key="signature-errors"
|
|
198
195
|
class="text-negative text-caption q-mb-sm"
|
|
199
196
|
>
|
|
200
197
|
<q-icon
|
|
@@ -203,11 +200,13 @@ watch(url, (url) => {
|
|
|
203
200
|
/>
|
|
204
201
|
{{ errorMessage }}
|
|
205
202
|
</div>
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
203
|
+
</MTransition>
|
|
204
|
+
<div
|
|
205
|
+
key="signature-pad"
|
|
206
|
+
:class="{ 'bg-negative': !!errorMessage, }"
|
|
207
|
+
class="print-shadow-none bordered"
|
|
208
|
+
>
|
|
209
|
+
<MTransition in="fadeIn">
|
|
211
210
|
<div>
|
|
212
211
|
<slot
|
|
213
212
|
name="pad"
|
|
@@ -242,46 +241,54 @@ watch(url, (url) => {
|
|
|
242
241
|
v-bind="scopes"
|
|
243
242
|
/>
|
|
244
243
|
</div>
|
|
245
|
-
</
|
|
244
|
+
</MTransition>
|
|
245
|
+
</div>
|
|
246
|
+
|
|
247
|
+
<MTransition in="fadeIn">
|
|
246
248
|
<div
|
|
247
249
|
v-show="!disabled && !noBtn"
|
|
248
250
|
key="signature-buttons"
|
|
249
251
|
class="q-mt-sm print-hide"
|
|
250
252
|
>
|
|
251
|
-
<
|
|
252
|
-
<
|
|
253
|
-
:label="__('labels.confirm_signature')"
|
|
254
|
-
class="full-width q-mb-sm"
|
|
255
|
-
color="positive"
|
|
256
|
-
@click="save('image/jpeg')"
|
|
257
|
-
/>
|
|
258
|
-
<MRow class="justify-between">
|
|
253
|
+
<MTransitionGroup in="fadeIn">
|
|
254
|
+
<template v-if="!confirmed">
|
|
259
255
|
<MBtn
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
256
|
+
key="confirm_signature"
|
|
257
|
+
:label="__('labels.confirm_signature')"
|
|
258
|
+
class="full-width q-mb-sm"
|
|
259
|
+
color="positive"
|
|
260
|
+
text-color="white"
|
|
261
|
+
@click="save('image/jpeg')"
|
|
263
262
|
/>
|
|
264
|
-
<
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
263
|
+
<MRow
|
|
264
|
+
key="control_signature"
|
|
265
|
+
class="justify-between"
|
|
266
|
+
>
|
|
267
|
+
<MBtn
|
|
268
|
+
:label="__('labels.undo')"
|
|
269
|
+
icon="ion-ios-undo"
|
|
270
|
+
@click="undo"
|
|
271
|
+
/>
|
|
272
|
+
<q-space />
|
|
273
|
+
<MBtn
|
|
274
|
+
:label="__('labels.clear_signature')"
|
|
275
|
+
icon="ion-ios-repeat"
|
|
276
|
+
@click="clear"
|
|
277
|
+
/>
|
|
278
|
+
</MRow>
|
|
279
|
+
</template>
|
|
280
|
+
</MTransitionGroup>
|
|
281
|
+
<MTransition in="fadeIn">
|
|
274
282
|
<MBtn
|
|
275
283
|
v-if="confirmed"
|
|
276
284
|
:label="__('labels.clear_signature')"
|
|
277
285
|
class="full-width"
|
|
278
|
-
color="negative"
|
|
279
286
|
icon="ion-ios-refresh"
|
|
280
287
|
@click="clear"
|
|
281
288
|
/>
|
|
282
289
|
</MTransition>
|
|
283
290
|
</div>
|
|
284
|
-
</
|
|
291
|
+
</MTransition>
|
|
285
292
|
<slot
|
|
286
293
|
:confirmed="confirmed"
|
|
287
294
|
name="bottom-input"
|
|
@@ -68,13 +68,13 @@ const props = withDefaults(defineProps<P>(), {
|
|
|
68
68
|
trueValue: !0,
|
|
69
69
|
falseValue: !1,
|
|
70
70
|
indeterminateValue: null,
|
|
71
|
-
color:
|
|
72
|
-
checkedIcon:
|
|
73
|
-
uncheckedIcon:
|
|
74
|
-
indeterminateIcon:
|
|
75
|
-
activeLabel:
|
|
76
|
-
inactiveLabel:
|
|
77
|
-
status:
|
|
71
|
+
color: undefined,
|
|
72
|
+
checkedIcon: 'ion-checkmark',
|
|
73
|
+
uncheckedIcon: 'ion-close',
|
|
74
|
+
indeterminateIcon: 'ion-ios-code-working',
|
|
75
|
+
activeLabel: 'yes',
|
|
76
|
+
inactiveLabel: 'no',
|
|
77
|
+
status: !1,
|
|
78
78
|
rules: undefined,
|
|
79
79
|
dense: undefined,
|
|
80
80
|
keepColor: undefined,
|
package/src/style/m-input.sass
CHANGED
package/src/style/main.sass
CHANGED
|
@@ -28,23 +28,6 @@ $m--row-margin-top: 1rem !default
|
|
|
28
28
|
.rtl
|
|
29
29
|
direction: rtl #{"/* rtl:ignore */"}
|
|
30
30
|
|
|
31
|
-
// Colors.
|
|
32
|
-
$text-light-color: #111111 !default
|
|
33
|
-
$text-dark-color: #ffffff !default
|
|
34
|
-
|
|
35
|
-
.body--light
|
|
36
|
-
color: $text-light-color
|
|
37
|
-
|
|
38
|
-
.text-color
|
|
39
|
-
color: $text-light-color
|
|
40
|
-
|
|
41
|
-
.body--dark
|
|
42
|
-
color: $text-dark-color
|
|
43
|
-
|
|
44
|
-
.text-color
|
|
45
|
-
color: $text-dark-color
|
|
46
|
-
|
|
47
|
-
|
|
48
31
|
$text-decorations: ('none': none, 'overline': overline, 'underline': underline, 'line-through': line-through)
|
|
49
32
|
@each $name, $value in $text-decorations
|
|
50
33
|
.text-decoration-#{$name}
|
|
@@ -69,7 +52,7 @@ $maxes: ('width', 'height') !default
|
|
|
69
52
|
.max-#{$max}
|
|
70
53
|
max-#{$max}: 100% !important
|
|
71
54
|
|
|
72
|
-
$m--bordered-color: var(--q-
|
|
55
|
+
$m--bordered-color: var(--q-body) !default
|
|
73
56
|
$alignsX: ('top', 'bottom') !default
|
|
74
57
|
$alignsY: ('left', 'right') !default
|
|
75
58
|
$radius-class-name: 'border-rounded' !default
|