@mythpe/quasar-ui-qui 0.1.54 → 0.1.56

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.54",
3
+ "version": "0.1.56",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -656,10 +656,7 @@ defineExpose({
656
656
  :item="dialogItem"
657
657
  name="title"
658
658
  >
659
- <MCol
660
- v-if="!!getTableTitle"
661
- col="12"
662
- >
659
+ <MCol col="12">
663
660
  <div class="row justify-between q-col-gutter-md">
664
661
  <div
665
662
  v-if="!noBackBtn"
@@ -672,23 +669,24 @@ defineExpose({
672
669
  />
673
670
  </div>
674
671
  <div class="col">
675
- <div class="text-h5 bordered-bottom ellipsis">
672
+ <div
673
+ class="text-h5 bordered-bottom ellipsis"
674
+ v-if="!!getTableTitle"
675
+ >
676
676
  {{ getTableTitle }}
677
677
  </div>
678
678
  </div>
679
-
680
679
  <!-- Add Btn -->
681
- <template
680
+ <div
682
681
  v-if="hasAddBtn && (addTopBtn===undefined?(pluginOptions.datatable?.addTopBtn===undefined?!0:pluginOptions.datatable?.addTopBtn):addTopBtn)"
682
+ class="col-auto"
683
683
  >
684
- <div class="col-auto">
685
- <MBtn
686
- :label="getFormTitle"
687
- no-caps
688
- @click="openCreateDialog()"
689
- />
690
- </div>
691
- </template>
684
+ <MBtn
685
+ :label="getFormTitle"
686
+ no-caps
687
+ @click="openCreateDialog()"
688
+ />
689
+ </div>
692
690
  </div>
693
691
  </MCol>
694
692
  </slot>
@@ -13,6 +13,7 @@
13
13
 
14
14
  import { computed } from 'vue'
15
15
  import { useMyth } from '../../composable'
16
+ import type { NamedColor } from 'quasar'
16
17
 
17
18
  interface Props {
18
19
  show?: boolean | undefined;
@@ -20,7 +21,7 @@ interface Props {
20
21
  destroy?: boolean | undefined;
21
22
  clone?: boolean | undefined;
22
23
  tooltip?: string | null | undefined;
23
- color?: string | undefined;
24
+ color?: NamedColor | undefined;
24
25
  icon?: string | undefined;
25
26
  listItem?: boolean | undefined;
26
27
  label?: string | undefined;
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import type { AxiosResponse } from 'axios'
10
- import type { QAvatarProps, QAvatarSlots, QTableProps, QTableSlots } from 'quasar'
10
+ import type { NamedColor, QAvatarProps, QAvatarSlots, QTableProps, QTableSlots } from 'quasar'
11
11
  import type { ComputedRef, MaybeRef, Ref, UnwrapNestedRefs, UnwrapRef, VNode } from 'vue'
12
12
  import type { RouteLocationRaw } from 'vue-router'
13
13
  import type { GenericFormValues, MBtnProps, MBtnSlots, MFormSlots } from './components'
@@ -117,7 +117,7 @@ export interface MDtBtnProps extends MBtnProps {
117
117
  clone?: boolean;
118
118
  destroy?: boolean;
119
119
  tooltip?: string | undefined;
120
- color?: string;
120
+ color?: NamedColor | undefined;
121
121
  icon?: string;
122
122
  listItem?: boolean;
123
123
  fabMini?: boolean;
@@ -169,7 +169,7 @@ export type GenericMDtBtn<T extends E = E> = Record<string, any> & {
169
169
  multiClick?: (items: T[]) => void;
170
170
  showIf?: boolean | ((item: UnwrapRef<MDatatableDialogsOptions['item']>, index: UnwrapRef<MDatatableDialogsOptions['index']>) => boolean);
171
171
  order?: number;
172
- attr?: Partial<MDtBtnProps> & Partial<{ icon?: string; textColor?: string; color?: string; }>;
172
+ attr?: Partial<MDtBtnProps> & Partial<{ icon?: string; textColor?: NamedColor | undefined; color?: NamedColor | undefined; }>;
173
173
  }
174
174
 
175
175
  type MDatatableFormScope = Parameters<MFormSlots['default']>[0]
@@ -1,4 +1,4 @@
1
- import type { QBtnProps, QInputProps } from 'quasar'
1
+ import type { NamedColor, QBtnProps, QInputProps } from 'quasar'
2
2
 
3
3
  export type ThemeSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'none' | string;
4
4
  export type ThemeShadow = string | number | 'transition' | 'none';
@@ -51,7 +51,7 @@ export type Theme = {
51
51
 
52
52
  export type ButtonLoadingOptions = {
53
53
  type: 'audio' | 'ball' | 'bars' | 'box' | 'clock' | 'comment' | 'cube' | 'dots' | 'facebook' | 'gears' | 'grid' | 'hearts' | 'hourglass' | 'infinity' | 'ios' | 'orbit' | 'oval' | 'pie' | 'puff' | 'radio' | 'rings' | 'tail' | 'spinner';
54
- color?: string | undefined;
54
+ color?: NamedColor | undefined;
55
55
  size?: string | undefined;
56
56
  label?: boolean;
57
57
  }