@mythpe/quasar-ui-qui 0.4.60 → 0.4.62

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.4.60",
3
+ "version": "0.4.62",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -1597,7 +1597,7 @@ defineExpose({
1597
1597
  v-model="formDialogModel"
1598
1598
  v-bind="pluginOptions.dt?.formDialogProps"
1599
1599
  >
1600
- <q-card class="q-dialog-plugin">
1600
+ <q-card class="q-dialog-plugin m-datatable__form-dialog">
1601
1601
  <MContainer
1602
1602
  dense
1603
1603
  fluid
@@ -1738,7 +1738,7 @@ defineExpose({
1738
1738
  v-bind="pluginOptions.dt?.showDialogProps"
1739
1739
  >
1740
1740
  <q-card
1741
- class="m-dialog-card q-dialog-plugin"
1741
+ class="m-dialog-card q-dialog-plugin m-datatable__show-dialog"
1742
1742
  flat
1743
1743
  >
1744
1744
  <MContainer
@@ -229,6 +229,7 @@ defineOptions({
229
229
  :md="md"
230
230
  :name="name"
231
231
  :sm="sm"
232
+ :xl="xl"
232
233
  :xs="xs"
233
234
  >
234
235
  <MColumn :class="contentClass">
@@ -103,6 +103,7 @@ defineOptions({
103
103
  :md="md"
104
104
  :name="name"
105
105
  :sm="sm"
106
+ :xl="xl"
106
107
  :xs="xs"
107
108
  >
108
109
  <slot
@@ -636,6 +636,7 @@ defineOptions({
636
636
  :md="md"
637
637
  :name="name"
638
638
  :sm="sm"
639
+ :xl="xl"
639
640
  :xs="xs"
640
641
  >
641
642
  <slot
@@ -192,6 +192,7 @@ defineOptions({
192
192
  :md="md"
193
193
  :name="name"
194
194
  :sm="sm"
195
+ :xl="xl"
195
196
  :xs="xs"
196
197
  >
197
198
  <slot
@@ -82,6 +82,7 @@ defineOptions({
82
82
  :md="md"
83
83
  :name="name"
84
84
  :sm="sm"
85
+ :xl="xl"
85
86
  :xs="xs"
86
87
  >
87
88
  <slot name="top-input" />
@@ -128,6 +128,7 @@ defineOptions({
128
128
  :md="md"
129
129
  :name="name"
130
130
  :sm="sm"
131
+ :xl="xl"
131
132
  :xs="xs"
132
133
  >
133
134
  <slot
@@ -77,6 +77,7 @@ defineOptions({
77
77
  :md="md"
78
78
  :name="name"
79
79
  :sm="sm"
80
+ :xl="xl"
80
81
  :xs="xs"
81
82
  >
82
83
  <MHiddenInput
@@ -136,6 +136,7 @@ defineOptions({
136
136
  :md="md"
137
137
  :name="name"
138
138
  :sm="sm"
139
+ :xl="xl"
139
140
  :xs="xs"
140
141
  >
141
142
  <slot
@@ -181,6 +181,7 @@ defineOptions({
181
181
  :md="md"
182
182
  :name="name"
183
183
  :sm="sm"
184
+ :xl="xl"
184
185
  :xs="xs"
185
186
  >
186
187
  <slot
@@ -9,7 +9,7 @@
9
9
  <script lang="ts" setup>
10
10
 
11
11
  import { useFieldValue } from 'vee-validate'
12
- import { computed, ref, useTemplateRef } from 'vue'
12
+ import { computed, nextTick, ref, useTemplateRef } from 'vue'
13
13
  import type { MInputSlots, MPhoneProps as Props } from '../../types'
14
14
  import { useMyth } from '../../composable'
15
15
  import MInput from './MInput.vue'
@@ -58,6 +58,7 @@ const select = () => {
58
58
  }
59
59
  const onSelectCountry = () => {
60
60
  focus()
61
+ nextTick(() => setTimeout(() => select(), 90))
61
62
  }
62
63
 
63
64
  const phoneRef = useTemplateRef<InstanceType<typeof MInput>>('phoneRef')
@@ -88,37 +89,36 @@ defineOptions({
88
89
 
89
90
  <template>
90
91
  <MCol
92
+ :auto="auto"
91
93
  :class="$attrs.class"
92
- v-bind="{
93
- auto: auto,
94
- col: col,
95
- xs: xs,
96
- sm: sm,
97
- md: md,
98
- lg: lg,
99
- xl: xl,
100
- }"
94
+ :col="col"
95
+ :lg="lg"
96
+ :md="md"
97
+ :name="name"
98
+ :sm="sm"
99
+ :xl="xl"
100
+ :xs="xs"
101
+ class="m-input__phone"
101
102
  >
102
- <MRow :col="noCountry ? undefined : !0">
103
+ <MRow :col="noCountry ? undefined : 'xs'">
103
104
  <MAxios
104
105
  v-model:items="countries"
105
106
  :autocomplete="false"
106
107
  :class="['self-start overflow-hidden',{hidden: readonly || !!noCountry,'order-last': $q.lang.rtl}]"
107
108
  :dense="dense"
108
109
  :name="countryName"
109
- :prepend-icon="noIcon ? undefined : (!isSmall ? 'ion-keypad' : undefined)"
110
110
  :required="readonly ? undefined : required"
111
- :search-length="searchLength??0"
112
- :style="`width: ${isSmall ? 150 : 200}px;max-height: 60px;`"
113
- :use-input="!0"
111
+ :search-length="searchLength ?? 0"
112
+ :style="`widthf: ${isSmall ? 150 : 200}px;max-height: 60px;`"
113
+ :use-input="!1"
114
114
  :view-mode="readonly"
115
- auto
115
+ col="4"
116
116
  hide-bottom-space
117
117
  hide-dropdown-icon
118
118
  hide-hint
119
119
  no-filter
120
120
  no-loading
121
- option-label="code_label"
121
+ option-label="code_key"
122
122
  popup-content-class="m-select__popup-phone"
123
123
  popup-no-route-dismiss
124
124
  service="country.codes"
@@ -133,6 +133,7 @@ defineOptions({
133
133
  :name="name"
134
134
  :prefix="noCountry ? (prefix ?? (!rtl ? (selectedCountryKey ?? prefix) : prefix)) : prefix"
135
135
  :suffix="noCountry ? (suffix ?? (rtl ? (selectedCountryKey ?? suffix) : suffix)) : suffix"
136
+ class="m-input__phone-input"
136
137
  prepend-icon="ion-ios-phone-portrait"
137
138
  stack-label
138
139
  type="text"
@@ -142,7 +143,7 @@ defineOptions({
142
143
  dense,
143
144
  viewModeValue: viewModeValue !== undefined ? viewModeValue : getPlaceholder,
144
145
  placeholder:getPlaceholder,
145
- col: noCountry ? 12 : !0,
146
+ col: noCountry ? 12 : 8,
146
147
  viewMode: (readonly || viewMode) ? !0 : !countryValue,
147
148
  readonly: undefined,
148
149
  }"
@@ -186,6 +186,7 @@ defineOptions({
186
186
  :md="md"
187
187
  :name="name"
188
188
  :sm="sm"
189
+ :xl="xl"
189
190
  :xs="xs"
190
191
  >
191
192
  <slot
@@ -100,6 +100,7 @@ defineOptions({
100
100
  :md="md"
101
101
  :name="name"
102
102
  :sm="sm"
103
+ :xl="xl"
103
104
  :xs="xs"
104
105
  >
105
106
  <slot
@@ -143,8 +144,8 @@ defineOptions({
143
144
  :model-value="value"
144
145
  :val="val"
145
146
  v-bind="{
146
- ...theme,
147
- ...pluginOptions.radio,
147
+ ...theme as any,
148
+ ...pluginOptions.radio as any,
148
149
  ...$attrs,
149
150
  disable: viewMode ? !0 : disable,
150
151
  checkedIcon: getProp('checkedIcon'),
@@ -226,6 +226,7 @@ defineOptions({
226
226
  :md="md"
227
227
  :name="name"
228
228
  :sm="sm"
229
+ :xl="xl"
229
230
  :xs="xs"
230
231
  >
231
232
  <slot
@@ -155,6 +155,7 @@ watch(url, (url) => {
155
155
  :md="md"
156
156
  :name="name"
157
157
  :sm="sm"
158
+ :xl="xl"
158
159
  :xs="xs"
159
160
  >
160
161
  <slot
@@ -142,6 +142,7 @@ defineOptions({
142
142
  sm,
143
143
  md,
144
144
  lg,
145
+ xl,
145
146
  viewMode: !0,
146
147
  }"
147
148
  />
@@ -325,6 +325,7 @@ defineOptions({
325
325
  :md="md"
326
326
  :name="name"
327
327
  :sm="sm"
328
+ :xl="xl"
328
329
  :xs="xs"
329
330
  >
330
331
  <MTransition>