@mythpe/quasar-ui-qui 0.2.38 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mythpe/quasar-ui-qui",
3
- "version": "0.2.38",
3
+ "version": "0.2.40",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -331,14 +331,12 @@ defineOptions({
331
331
  </MTransition>
332
332
  <MBtn
333
333
  v-if="!loading"
334
- :color="undefined"
335
334
  :disable="!isLoaded && !!url"
336
335
  :icon="`ion-${hasSrc ? (required ? 'cloud-upload' : 'ios-trash') : 'cloud-upload'}`"
337
336
  :label="'labels.' + ( clearable ? ( hasSrc ? 'remove' : btnLabel ) : ( required ? ( hasSrc ? 'change' : btnLabel ) : (
338
337
  hasSrc ? 'remove' : btnLabel
339
338
  ) ) )"
340
339
  :loading="loadingSrc"
341
- outline
342
340
  @click="onClick"
343
341
  />
344
342
  </div>
@@ -355,10 +353,8 @@ defineOptions({
355
353
  class="q-mt-lg"
356
354
  >
357
355
  <MBtn
358
- :color="undefined"
359
356
  icon="ion-cloud-download"
360
357
  label="labels.download"
361
- outline
362
358
  @click="openWindow(url)"
363
359
  />
364
360
  </div>
@@ -59,12 +59,12 @@ const props = withDefaults(defineProps<P>(), {
59
59
  val: undefined,
60
60
  required: undefined,
61
61
  rules: undefined,
62
- trueValue: () => !0,
63
- falseValue: () => !1,
62
+ trueValue: !0,
63
+ falseValue: !1,
64
64
  checkedIcon: undefined,
65
65
  rowProps: undefined,
66
66
  colProps: undefined,
67
- viewMode: () => !1,
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-color'"
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: () => 'primary',
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="primary"
168
- size="22px"
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-color"
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
- <MTransitionGroup>
165
+ <div class="row justify-between items-center q-mb-sm">
166
166
  <div
167
- key="top"
168
- class="row justify-between items-center q-mb-sm"
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
- <div
171
- :class="{
172
- 'text-center': center,
173
- 'q-mb-xs text-weight-bold' : !0,
174
- 'text-body1': !large,
175
- 'text-h6': large,
176
- 'text-negative': !!errorMessage,
177
- 'text-positive': !errorMessage && confirmed
178
- }"
179
- v-bind="labelProps"
180
- >
181
- <span v-if="!!label">{{ __(label) }}</span>
182
- <span
183
- v-if="label && required && !confirmed"
184
- class="text-negative print-hide"
185
- >&nbsp;*</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
+ >&nbsp;*</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
- <div
207
- key="signature-pad"
208
- :class="{ 'bg-negativ e': !!errorMessage, }"
209
- class="print-shadow-none bordered"
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
- </div>
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
- <template v-if="!confirmed">
252
- <MBtn
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
- :label="__('labels.undo')"
261
- icon="ion-ios-undo"
262
- @click="undo"
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
- <q-space />
265
- <MBtn
266
- :label="__('labels.clear_signature')"
267
- color="negative"
268
- icon="ion-ios-repeat"
269
- @click="clear"
270
- />
271
- </MRow>
272
- </template>
273
- <MTransition>
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
- </MTransitionGroup>
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: () => 'primary',
72
- checkedIcon: () => 'ion-checkmark',
73
- uncheckedIcon: () => 'ion-close',
74
- indeterminateIcon: () => 'ion-ios-code-working',
75
- activeLabel: () => 'yes',
76
- inactiveLabel: () => 'no',
77
- status: () => !1,
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,
@@ -24,7 +24,7 @@ $radius-value: $generic-border-radius !default
24
24
 
25
25
  .m--input
26
26
  &__color-preview
27
- border: 1px solid var(--q-primary)
27
+ border: 1px solid var(--q-brand)
28
28
  border-radius: $radius-value
29
29
 
30
30
  &__top-label,
@@ -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-primary) !default
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