@mythpe/quasar-ui-qui 0.1.37 → 0.1.39

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.1.37",
3
+ "version": "0.1.39",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -76,7 +76,7 @@ const props = withDefaults(defineProps<P>(), {
76
76
  defineModel<Props['modelValue']>({ required: !1, default: undefined })
77
77
  const { __, props: pluginOptions } = useMyth()
78
78
  const helper = useBindInput<P>(() => props, 'file', () => ({ choose: !0 }))
79
- const { hasTopLabel, getLabel, getPlaceholder, accepts, inputRules } = helper
79
+ const { hasTopLabel, getLabel, getPlaceholder, accepts, inputRules, theme } = helper
80
80
  const inputScope = useField<Props['modelValue']>(() => props.name, inputRules, {
81
81
  syncVModel: !0,
82
82
  label: getLabel,
@@ -165,6 +165,7 @@ defineOptions({
165
165
  :model-value="value"
166
166
  v-bind="{
167
167
  ...$attrs,
168
+ ...theme,
168
169
  ...pluginOptions.file as any,
169
170
  ...( viewMode ? { stackLabel: !0 } : {} )
170
171
  }"
@@ -43,6 +43,7 @@ type P = {
43
43
  useInput?: Props['useInput'];
44
44
  mapOptions?: Props['mapOptions'];
45
45
  loading?: Props['loading'];
46
+ noLoading?: boolean;
46
47
  multiple?: Props['multiple'];
47
48
  options?: Props['options'];
48
49
  optionLabel?: Props['optionLabel'];
@@ -58,6 +59,7 @@ type P = {
58
59
  fieldOptions?: Props['fieldOptions'];
59
60
  clearable?: Props['clearable'];
60
61
  useChoice?: Props['useChoice'];
62
+ autoPrefix?: boolean;
61
63
  }
62
64
 
63
65
  const props = withDefaults(defineProps<P>(), {
@@ -86,6 +88,7 @@ const props = withDefaults(defineProps<P>(), {
86
88
  useInput: () => !0,
87
89
  mapOptions: () => !0,
88
90
  loading: undefined,
91
+ noLoading: !1,
89
92
  multiple: undefined,
90
93
  options: () => ([]),
91
94
  optionLabel: () => 'label',
@@ -100,7 +103,8 @@ const props = withDefaults(defineProps<P>(), {
100
103
  onFilter: undefined,
101
104
  fieldOptions: undefined,
102
105
  clearable: undefined,
103
- useChoice: undefined
106
+ useChoice: undefined,
107
+ autoPrefix: !0
104
108
  })
105
109
  defineModel<Props['modelValue']>({ required: !1, default: undefined })
106
110
 
@@ -215,6 +219,7 @@ defineOptions({
215
219
  <component
216
220
  :is="viewMode ? QField : QSelect"
217
221
  ref="input"
222
+ popup-content-class="m--select__popup-content"
218
223
  v-bind="{
219
224
  behavior: $q.platform.is.ios === !0 ? 'dialog' : behavior,
220
225
  ...theme,
@@ -292,7 +297,7 @@ defineOptions({
292
297
  </slot>
293
298
  </template>
294
299
  <template
295
- v-if="loading"
300
+ v-if="loading && !noLoading"
296
301
  #selected
297
302
  >
298
303
  <q-skeleton width="60%" />
@@ -303,9 +308,9 @@ defineOptions({
303
308
  >
304
309
  <MContainer>
305
310
  <MRow class="items-center">
306
- <MBtn
311
+ <q-btn
307
312
  :label="__('labels.done')"
308
- flat
313
+ color="primary"
309
314
  @click="onDoneOptions()"
310
315
  />
311
316
  </MRow>
@@ -28,7 +28,7 @@ defineOptions({
28
28
  <template>
29
29
  <div
30
30
  v-if="text || tooltip"
31
- class="row"
31
+ class="m--help-row row"
32
32
  >
33
33
  <div class="col-auto">
34
34
  <q-icon
@@ -169,3 +169,13 @@ $control-max-width: 200px !default
169
169
  .screen--sm
170
170
  .m--dt-btn-tooltip
171
171
  display: none
172
+
173
+ $m-help-row-margin-top: 4px !default
174
+
175
+ .m--help-row
176
+ margin-top: $m-help-row-margin-top
177
+
178
+ $m--select__popup-content: 300px !default
179
+
180
+ .m--select__popup-content
181
+ max-height: $m--select__popup-content