@mythpe/quasar-ui-qui 0.4.93 → 0.4.95

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.93",
3
+ "version": "0.4.95",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -340,13 +340,19 @@ defineOptions({
340
340
  />
341
341
  </template>
342
342
  <template v-else-if="!search?.length && useInput">
343
- {{ __('myth.select.typeToSearch') }}
343
+ <slot name="type-to-search">
344
+ {{ __('myth.select.typeToSearch') }}
345
+ </slot>
344
346
  </template>
345
347
  <template v-else-if="search?.length > 0">
346
- {{ __('myth.select.noResult') }}
348
+ <slot name="no-result">
349
+ {{ __('myth.select.noResult') }}
350
+ </slot>
347
351
  </template>
348
352
  <template v-else>
349
- {{ __('myth.select.noData') }}
353
+ <slot name="no-data">
354
+ {{ __('myth.select.noData') }}
355
+ </slot>
350
356
  </template>
351
357
  </q-item-section>
352
358
  </q-item>
@@ -363,18 +369,23 @@ defineOptions({
363
369
  </template>
364
370
  <template
365
371
  v-if="multiple"
366
- #before-options
372
+ #before-options="boProps"
367
373
  >
368
- <MContainer>
369
- <MRow class="full-width">
370
- <MBtn
371
- :class="{'full-width': $q.screen.lt.sm}"
372
- :label="__('labels.done')"
373
- :size="$q.screen.xs ? 'lg' : undefined"
374
- @click="onDoneOptions()"
375
- />
376
- </MRow>
377
- </MContainer>
374
+ <slot
375
+ name="before-options"
376
+ v-bind="boProps"
377
+ >
378
+ <MContainer>
379
+ <MRow class="full-width">
380
+ <MBtn
381
+ :class="{'full-width': $q.screen.lt.sm}"
382
+ :label="__('labels.done')"
383
+ :size="$q.screen.xs ? 'lg' : undefined"
384
+ @click="onDoneOptions()"
385
+ />
386
+ </MRow>
387
+ </MContainer>
388
+ </slot>
378
389
  </template>
379
390
  <template
380
391
  v-for="(_,slot) in $slots as Readonly<QSelectSlots>"
@@ -180,4 +180,16 @@ export interface MSelectSlots extends QSelectSlots, QFieldSlots, BaseInputsSlots
180
180
  */
181
181
  itemProps: any;
182
182
  }) => VNode[];
183
+ /**
184
+ * Default slot inside QSelectMenu; Suggestion: <div></div>
185
+ */
186
+ 'type-to-search': () => VNode[];
187
+ /**
188
+ * Default slot inside QSelectMenu; Suggestion: <div></div>
189
+ */
190
+ 'no-result': () => VNode[];
191
+ /**
192
+ * Default slot inside QSelectMenu; Suggestion: <div></div>
193
+ */
194
+ 'no-data': () => VNode[];
183
195
  }