@mythpe/quasar-ui-qui 0.2.53 → 0.2.54

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.
Files changed (41) hide show
  1. package/package.json +1 -1
  2. package/src/components/datatable/MDatatable.vue +33 -33
  3. package/src/components/datatable/MDtBtn.vue +1 -1
  4. package/src/components/form/MAvatarViewer.vue +2 -2
  5. package/src/components/form/MCheckbox.vue +2 -2
  6. package/src/components/form/MCkeditor.vue +2 -2
  7. package/src/components/form/MColor.vue +1 -1
  8. package/src/components/form/MEditor.vue +2 -2
  9. package/src/components/form/MField.vue +2 -2
  10. package/src/components/form/MFile.vue +2 -2
  11. package/src/components/form/MForm.vue +2 -2
  12. package/src/components/form/MHidden.vue +1 -1
  13. package/src/components/form/MInput.vue +7 -7
  14. package/src/components/form/MInputLabel.vue +3 -3
  15. package/src/components/form/MOptions.vue +4 -4
  16. package/src/components/form/MPicker.vue +4 -4
  17. package/src/components/form/MRadio.vue +2 -2
  18. package/src/components/form/MSelect.vue +3 -3
  19. package/src/components/form/MSignaturePad.vue +1 -1
  20. package/src/components/form/MToggle.vue +2 -2
  21. package/src/components/form/MUploader.vue +1 -1
  22. package/src/components/form/__MCkeditor.vue +2 -2
  23. package/src/components/form/__MOptions.vue +4 -4
  24. package/src/components/grid/MBlock.vue +1 -1
  25. package/src/components/grid/MCol.vue +1 -1
  26. package/src/components/grid/MColumn.vue +1 -1
  27. package/src/components/grid/MContainer.vue +3 -3
  28. package/src/components/grid/MHelpRow.vue +1 -1
  29. package/src/components/grid/MRow.vue +1 -1
  30. package/src/components/modal/MModalMenu.vue +1 -1
  31. package/src/components/modal/MTooltip.vue +1 -1
  32. package/src/components/parials/MUploaderItem.vue +2 -2
  33. package/src/components/sar/MSarString.vue +1 -1
  34. package/src/composable/useMyth.ts +4 -4
  35. package/src/style/m-container.sass +4 -4
  36. package/src/style/m-dt.sass +23 -16
  37. package/src/style/m-help-row.sass +1 -1
  38. package/src/style/m-input.sass +8 -8
  39. package/src/style/m-picker.sass +2 -2
  40. package/src/style/m-select.sass +3 -3
  41. package/src/style/main.sass +6 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mythpe/quasar-ui-qui",
3
- "version": "0.2.53",
3
+ "version": "0.2.54",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -355,7 +355,7 @@ const onSuccess: SubmissionHandler = async (form) => {
355
355
  } catch (e: any) {
356
356
  const { _message, _errors } = e || {}
357
357
  dialogErrors.value = _errors || {}
358
- await scrollToElementFromErrors(_errors, undefined, '.m--datatable__dialog-form-container')
358
+ await scrollToElementFromErrors(_errors, undefined, '.m-datatable__dialog-form-container')
359
359
  _message && alertError(_message)
360
360
  if (_errors) {
361
361
  useFormContext.setErrors(_errors)
@@ -368,7 +368,7 @@ const onInvalidSubmit: InvalidSubmissionHandler = ({ errors }) => {
368
368
  const keys: (keyof typeof errors)[] = Object.keys(errors)
369
369
  if (keys[0]) {
370
370
  const message = errors[keys[0]] as string || __('messages.the_given_data_was_invalid')
371
- scrollToElementFromErrors({ [keys[0]]: [message] }, undefined, '.m--datatable__dialog-form-container')
371
+ scrollToElementFromErrors({ [keys[0]]: [message] }, undefined, '.m-datatable__dialog-form-container')
372
372
  }
373
373
  }
374
374
  const defaultSubmitItem = handleSubmit.withControlled(onSuccess, onInvalidSubmit)
@@ -435,10 +435,10 @@ defineExpose({
435
435
  <template>
436
436
  <div
437
437
  :class="{
438
- 'm--datatable-component': !0,
439
- 'm--datatable-component__fixed': fixed === undefined ? ( pluginOptions.datatable?.fixed === undefined ? undefined : pluginOptions.datatable?.fixed) : fixed,
440
- 'm--datatable-component__too_small': $q.screen.height < 900,
441
- 'm--datatable-component__fab': hasAddBtn && (addFabBtn === undefined ? !!pluginOptions.datatable?.addFabBtn : addFabBtn)
438
+ 'm-datatable-component': !0,
439
+ 'm-datatable-component__fixed': fixed === undefined ? ( pluginOptions.datatable?.fixed === undefined ? undefined : pluginOptions.datatable?.fixed) : fixed,
440
+ 'm-datatable-component__too_small': $q.screen.height < 900,
441
+ 'm-datatable-component__fab': hasAddBtn && (addFabBtn === undefined ? !!pluginOptions.datatable?.addFabBtn : addFabBtn)
442
442
  }"
443
443
  >
444
444
  <!-- Context Menu -->
@@ -484,7 +484,7 @@ defineExpose({
484
484
  v-model:fullscreen="fullscreen"
485
485
  v-model:pagination="pagination"
486
486
  v-model:selected="selected"
487
- :class="`m--datatable ` + ($q.screen.lt.md ? 'm--datatable-grid' : '')"
487
+ :class="`m-datatable ` + ($q.screen.lt.md ? 'm-datatable-grid' : '')"
488
488
  :columns="getHeaders"
489
489
  :filter="search"
490
490
  :grid="isGrid"
@@ -494,8 +494,8 @@ defineExpose({
494
494
  :rows-per-page-options="getRowsPerPageOptions"
495
495
  :selection="getShowSelection ? (multiSelection ? 'multiple' : 'single') : 'none'"
496
496
  :visible-columns="visibleHeaders"
497
- card-container-class="m--datatable-container"
498
- table-class="m--datatable-container"
497
+ card-container-class="m-datatable-container"
498
+ table-class="m-datatable-container"
499
499
  v-bind="{
500
500
  virtualScroll: !0,
501
501
  wrapCells:!0,
@@ -525,7 +525,7 @@ defineExpose({
525
525
  :class="iTempProps.selected ? ($q.dark.isActive ? 'bg-grey-9' : 'bg-grey-2') : ''"
526
526
  >
527
527
  <template v-if="getShowSelection || iTempProps.colsMap[controlKey ?? 'control'] !== undefined">
528
- <div class="m--datatable-card-control-header">
528
+ <div class="m-datatable-card-control-header">
529
529
  <MRow class="items-center justify-between">
530
530
  <div class="q-px-md">
531
531
  <q-checkbox
@@ -574,7 +574,7 @@ defineExpose({
574
574
  icon="ion-ios-eye"
575
575
  @click="openImageDialog(col.value)"
576
576
  >
577
- <q-tooltip class="m--dt-btn-tooltip">
577
+ <q-tooltip class="m-dt-btn-tooltip">
578
578
  {{ __('myth.titles.show') }}
579
579
  </q-tooltip>
580
580
  </q-btn>
@@ -590,7 +590,7 @@ defineExpose({
590
590
  no-spinner
591
591
  @click="openImageDialog(col.value)"
592
592
  >
593
- <q-tooltip class="m--dt-btn-tooltip">
593
+ <q-tooltip class="m-dt-btn-tooltip">
594
594
  {{ __('myth.titles.show') }}
595
595
  </q-tooltip>
596
596
  </q-img>
@@ -626,7 +626,7 @@ defineExpose({
626
626
  </div>
627
627
  <div
628
628
  :style="`width: 20px; height: 20px; background-color: ${col.value};`"
629
- class="m--input__color-preview cursor-pointer"
629
+ class="m-input__color-preview cursor-pointer"
630
630
  @click="copyText(col.value)"
631
631
  >
632
632
  <q-tooltip>{{ __('labels.copy') }}</q-tooltip>
@@ -643,7 +643,7 @@ defineExpose({
643
643
  </template>
644
644
  <template v-else-if="col.name === controlKey">
645
645
  <MRow
646
- class="m--dt-context_menu_items"
646
+ class="m-dt-context_menu_items"
647
647
  gutter
648
648
  space="xs"
649
649
  >
@@ -656,7 +656,7 @@ defineExpose({
656
656
  </MRow>
657
657
  </template>
658
658
  <template v-else>
659
- <div class="m--datatable-card-value">
659
+ <div class="m-datatable-card-value">
660
660
  <slot
661
661
  :name="`card-cell-${col.name}`"
662
662
  v-bind="iTempProps"
@@ -751,7 +751,7 @@ defineExpose({
751
751
  v-if="!search"
752
752
  name="ion-ios-search"
753
753
  >
754
- <q-tooltip class="m--dt-btn-tooltip">
754
+ <q-tooltip class="m-dt-btn-tooltip">
755
755
  {{ __('myth.datatable.searchInput') }}
756
756
  </q-tooltip>
757
757
  </q-icon>
@@ -761,7 +761,7 @@ defineExpose({
761
761
  name="ion-ios-close"
762
762
  @click="search = ''"
763
763
  >
764
- <q-tooltip class="m--dt-btn-tooltip">
764
+ <q-tooltip class="m-dt-btn-tooltip">
765
765
  {{ __('myth.datatable.searchInputClear') }}
766
766
  </q-tooltip>
767
767
  </q-icon>
@@ -845,7 +845,7 @@ defineExpose({
845
845
  v-bind="{...defaultTopBtnProps,...pluginOptions.dt?.buttons?.filter as any}"
846
846
  @click="exportData('pdf')"
847
847
  >
848
- <q-tooltip class="m--dt-btn-tooltip">
848
+ <q-tooltip class="m-dt-btn-tooltip">
849
849
  {{ __('myth.titles.exportPdf') }}
850
850
  </q-tooltip>
851
851
  </MDtBtn>
@@ -858,7 +858,7 @@ defineExpose({
858
858
  v-bind="{...defaultTopBtnProps,...pluginOptions.dt?.buttons?.filter as any}"
859
859
  @click="exportData('excel')"
860
860
  >
861
- <q-tooltip class="m--dt-btn-tooltip">
861
+ <q-tooltip class="m-dt-btn-tooltip">
862
862
  {{ __('myth.titles.exportExcel') }}
863
863
  </q-tooltip>
864
864
  </MDtBtn>
@@ -1155,7 +1155,7 @@ defineExpose({
1155
1155
  </q-btn-dropdown>
1156
1156
  <MRow
1157
1157
  v-else
1158
- class="m--dt-context_menu_items justify-end"
1158
+ class="m-dt-context_menu_items justify-end"
1159
1159
  gutter
1160
1160
  space="xs"
1161
1161
  >
@@ -1185,7 +1185,7 @@ defineExpose({
1185
1185
  icon="ion-ios-eye"
1186
1186
  @click="openImageDialog(colProps.row[c])"
1187
1187
  >
1188
- <q-tooltip class="m--dt-btn-tooltip">
1188
+ <q-tooltip class="m-dt-btn-tooltip">
1189
1189
  {{ __('myth.titles.show') }}
1190
1190
  </q-tooltip>
1191
1191
  </q-btn>
@@ -1201,7 +1201,7 @@ defineExpose({
1201
1201
  no-spinner
1202
1202
  @click="openImageDialog(colProps.row[c])"
1203
1203
  >
1204
- <q-tooltip class="m--dt-btn-tooltip">
1204
+ <q-tooltip class="m-dt-btn-tooltip">
1205
1205
  {{ __('myth.titles.show') }}
1206
1206
  </q-tooltip>
1207
1207
  </q-img>
@@ -1250,7 +1250,7 @@ defineExpose({
1250
1250
  </div>
1251
1251
  <div
1252
1252
  :style="`width: 20px; height: 20px; background-color: ${ccProps.row[cc]};`"
1253
- class="m--input__color-preview cursor-pointer"
1253
+ class="m-input__color-preview cursor-pointer"
1254
1254
  @click="copyText(ccProps.row[cc])"
1255
1255
  >
1256
1256
  <q-tooltip>{{ __('labels.copy') }}</q-tooltip>
@@ -1304,7 +1304,7 @@ defineExpose({
1304
1304
  v-model="showDialogModel"
1305
1305
  v-bind="pluginOptions.dt?.showDialogProps"
1306
1306
  >
1307
- <q-card class="m--dialog-card">
1307
+ <q-card class="m-dialog-card">
1308
1308
  <q-card-section ref="showTitleRef">
1309
1309
  <q-toolbar>
1310
1310
  <q-toolbar-title>
@@ -1314,7 +1314,7 @@ defineExpose({
1314
1314
  flat
1315
1315
  @click="closeShowDialog()"
1316
1316
  >
1317
- <q-tooltip class="m--dt-btn-tooltip">
1317
+ <q-tooltip class="m-dt-btn-tooltip">
1318
1318
  {{ __('myth.titles.back') }}
1319
1319
  </q-tooltip>
1320
1320
  </q-btn>
@@ -1325,7 +1325,7 @@ defineExpose({
1325
1325
  <q-separator />
1326
1326
  <q-card-section
1327
1327
  :style="`height: ${($q.screen.height || 100) - 3 - (($refs.showActionsRef as any)?.$el?.offsetHeight || 60) - (($refs.showTitleRef as any)?.$el?.offsetHeight || 80)}px`"
1328
- class="scroll m--datatable__dialog-show-container"
1328
+ class="scroll m-datatable__dialog-show-container"
1329
1329
  >
1330
1330
  <slot
1331
1331
  :dt="datatableItemsScope"
@@ -1355,12 +1355,12 @@ defineExpose({
1355
1355
  v-model="formDialogModel"
1356
1356
  v-bind="pluginOptions.dt?.formDialogProps"
1357
1357
  >
1358
- <div class="m--form__container full-height no-wrap">
1358
+ <div class="m-form__container full-height no-wrap">
1359
1359
  <form
1360
- class="m--form column full-height justify-between no-wrap"
1360
+ class="m-form column full-height justify-between no-wrap"
1361
1361
  @submit="defaultSubmitItem"
1362
1362
  >
1363
- <q-card class="m--dialog-card">
1363
+ <q-card class="m-dialog-card">
1364
1364
  <q-card-section ref="formTitle">
1365
1365
  <q-toolbar :class="{'q-pa-none': $q.screen.lt.md}">
1366
1366
  <slot
@@ -1388,7 +1388,7 @@ defineExpose({
1388
1388
  text-color="none"
1389
1389
  @click="closeFormDialog"
1390
1390
  >
1391
- <q-tooltip class="m--dt-btn-tooltip">
1391
+ <q-tooltip class="m-dt-btn-tooltip">
1392
1392
  {{ __('myth.titles.close') }}
1393
1393
  </q-tooltip>
1394
1394
  </MBtn>
@@ -1409,7 +1409,7 @@ defineExpose({
1409
1409
  <q-card-section
1410
1410
  ref="formDialogCartSection"
1411
1411
  :style="`height: ${($q.screen.height || 100) - 3 - (($refs.formActions as any)?.$el?.offsetHeight || 60) - (($refs.formTitle as any)?.$el?.offsetHeight || 80)}px`"
1412
- class="scroll m--datatable__dialog-form-container"
1412
+ class="scroll m-datatable__dialog-form-container"
1413
1413
  >
1414
1414
  <MContainer
1415
1415
  v-if="loading && !dialogItem"
@@ -1445,7 +1445,7 @@ defineExpose({
1445
1445
  <q-card-actions
1446
1446
  ref="formActions"
1447
1447
  align="between"
1448
- class="m--datatable-form-actions print-hide"
1448
+ class="m-datatable-form-actions print-hide"
1449
1449
  >
1450
1450
  <slot
1451
1451
  :dt="datatableItemsScope"
@@ -1541,7 +1541,7 @@ defineExpose({
1541
1541
  >
1542
1542
  <MTooltip
1543
1543
  anchor="top middle"
1544
- class="m--datatable-fab-tooltip"
1544
+ class="m-datatable-fab-tooltip"
1545
1545
  self="bottom start"
1546
1546
  >
1547
1547
  <span class="text-caption">{{ getFormTitle }}</span>
@@ -154,7 +154,7 @@ defineOptions({
154
154
  >
155
155
  <q-tooltip
156
156
  v-if="hasTooltip"
157
- class="m--dt-btn-tooltip"
157
+ class="m-dt-btn-tooltip"
158
158
  >
159
159
  {{ getTooltip }}
160
160
  </q-tooltip>
@@ -265,7 +265,7 @@ defineOptions({
265
265
  <div
266
266
  v-if="hint !== undefined && !loading"
267
267
  key="hint"
268
- class="m--input__hint"
268
+ class="m-input__hint"
269
269
  v-bind="hintProps"
270
270
  >
271
271
  <span>{{ hint ? __(hint) : hint }}</span>
@@ -362,7 +362,7 @@ defineOptions({
362
362
  <slot name="caption">
363
363
  <div
364
364
  v-if="!!caption"
365
- class="m--input__caption"
365
+ class="m-input__caption"
366
366
  v-bind="captionProps"
367
367
  >
368
368
  {{ __(caption) }}
@@ -97,7 +97,7 @@ defineOptions({
97
97
  <template>
98
98
  <MCol
99
99
  :auto="auto"
100
- :class="[$attrs.class,{'m--input__required':inputRules?.required!==undefined,'m--input__error':!!errorMessage,'m--input__view':viewMode}]"
100
+ :class="[$attrs.class,{'m-input__required':inputRules?.required!==undefined,'m-input__error':!!errorMessage,'m-input__view':viewMode}]"
101
101
  :col="col"
102
102
  :lg="lg"
103
103
  :md="md"
@@ -112,7 +112,7 @@ defineOptions({
112
112
  <slot name="caption">
113
113
  <div
114
114
  v-if="!!caption"
115
- class="m--input__caption text-caption"
115
+ class="m-input__caption text-caption"
116
116
  >
117
117
  {{ __(caption) }}
118
118
  </div>
@@ -630,7 +630,7 @@ defineOptions({
630
630
 
631
631
  <MCol
632
632
  :auto="auto"
633
- :class="[$attrs.class,{'m--input__required':inputRules?.required!==undefined,'m--input__error':!!errorMessage,'m--input__view':viewMode}]"
633
+ :class="[$attrs.class,{'m-input__required':inputRules?.required!==undefined,'m-input__error':!!errorMessage,'m-input__view':viewMode}]"
634
634
  :col="col"
635
635
  :lg="lg"
636
636
  :md="md"
@@ -657,7 +657,7 @@ defineOptions({
657
657
  <slot name="caption">
658
658
  <div
659
659
  v-if="!!caption"
660
- class="m--input__caption"
660
+ class="m-input__caption"
661
661
  >
662
662
  {{ __(caption) }}
663
663
  </div>
@@ -83,7 +83,7 @@ defineOptions({
83
83
  <template #prepend>
84
84
  <div
85
85
  :style="`width: 20px; height: 20px; background-color: ${value};`"
86
- class="m--input__color-preview"
86
+ class="m-input__color-preview"
87
87
  />
88
88
  </template>
89
89
  <template
@@ -186,7 +186,7 @@ defineOptions({
186
186
  <template>
187
187
  <MCol
188
188
  :auto="auto"
189
- :class="[$attrs.class,{'m--input__required':inputRules?.required!==undefined,'m--input__error':!!errorMessage,'m--input__view':viewMode}]"
189
+ :class="[$attrs.class,{'m-input__required':inputRules?.required!==undefined,'m-input__error':!!errorMessage,'m-input__view':viewMode}]"
190
190
  :col="col"
191
191
  :lg="lg"
192
192
  :md="md"
@@ -213,7 +213,7 @@ defineOptions({
213
213
  <slot name="caption">
214
214
  <div
215
215
  v-if="!!caption"
216
- class="m--input__caption"
216
+ class="m-input__caption"
217
217
  >
218
218
  {{ __(caption) }}
219
219
  </div>
@@ -76,7 +76,7 @@ defineOptions({
76
76
  <template>
77
77
  <MCol
78
78
  :auto="auto"
79
- :class="[$attrs.class,{'m--input__required':inputRules?.required!==undefined,'m--input__error':!!errorMessage,'m--input__view': !0}]"
79
+ :class="[$attrs.class,{'m-input__required':inputRules?.required!==undefined,'m-input__error':!!errorMessage,'m-input__view': !0}]"
80
80
  :col="col"
81
81
  :lg="lg"
82
82
  :md="md"
@@ -100,7 +100,7 @@ defineOptions({
100
100
  <slot name="caption">
101
101
  <div
102
102
  v-if="!!caption"
103
- class="m--input__caption"
103
+ class="m-input__caption"
104
104
  >
105
105
  {{ __(caption) }}
106
106
  </div>
@@ -122,7 +122,7 @@ defineOptions({
122
122
  <template>
123
123
  <MCol
124
124
  :auto="auto"
125
- :class="[$attrs.class,{'m--input__required':inputRules?.required!==undefined,'m--input__error':!!errorMessage,'m--input__view':viewMode}]"
125
+ :class="[$attrs.class,{'m-input__required':inputRules?.required!==undefined,'m-input__error':!!errorMessage,'m-input__view':viewMode}]"
126
126
  :col="col"
127
127
  :lg="lg"
128
128
  :md="md"
@@ -149,7 +149,7 @@ defineOptions({
149
149
  <slot name="caption">
150
150
  <div
151
151
  v-if="!!caption"
152
- class="m--input__caption"
152
+ class="m-input__caption"
153
153
  >
154
154
  {{ __(caption) }}
155
155
  </div>
@@ -75,11 +75,11 @@ watch(errorsComputed, v => v && setErrors(v), options)
75
75
 
76
76
  <template>
77
77
  <div
78
- class="m--form__container"
78
+ class="m-form__container"
79
79
  v-bind="$attrs"
80
80
  >
81
81
  <form
82
- :class="{'m--form': !0, 'm--container': padding}"
82
+ :class="{'m-form': !0, 'm-container': padding}"
83
83
  v-bind="formProps"
84
84
  @submit="defaultSubmit"
85
85
  >
@@ -71,7 +71,7 @@ defineOptions({
71
71
  <template>
72
72
  <MCol
73
73
  :auto="auto"
74
- :class="[$attrs.class,{'m--input__required':inputRules?.required!==undefined,'m--input__error':!!errorMessage,'m--input__view':viewMode}]"
74
+ :class="[$attrs.class,{'m-input__required':inputRules?.required!==undefined,'m-input__error':!!errorMessage,'m-input__view':viewMode}]"
75
75
  :col="col"
76
76
  :lg="lg"
77
77
  :md="md"
@@ -126,10 +126,10 @@ defineOptions({
126
126
  <MCol
127
127
  :auto="auto"
128
128
  :class="[$attrs.class,{
129
- 'm--input__required': inputRules?.required!==undefined,
130
- 'm--input__error': !!errorMessage,
131
- 'm--input__view': viewMode
132
- },'m--input__col']"
129
+ 'm-input__required': inputRules?.required!==undefined,
130
+ 'm-input__error': !!errorMessage,
131
+ 'm-input__view': viewMode
132
+ },'m-input__col']"
133
133
  :col="col"
134
134
  :lg="lg"
135
135
  :md="md"
@@ -159,7 +159,7 @@ defineOptions({
159
159
  <slot name="caption">
160
160
  <div
161
161
  v-if="!!caption"
162
- class="m--input__caption"
162
+ class="m-input__caption"
163
163
  >
164
164
  {{ __(caption) }}
165
165
  </div>
@@ -167,8 +167,8 @@ defineOptions({
167
167
  <component
168
168
  :is="viewMode ? QField : QInput"
169
169
  ref="input"
170
- :class="{'m--input__sar': sar}"
171
- class="m--input"
170
+ :class="{'m-input__sar': sar}"
171
+ class="m-input"
172
172
  v-bind="{
173
173
  ...$attrs,
174
174
  ...theme,
@@ -28,13 +28,13 @@ defineOptions({
28
28
  <template>
29
29
  <div
30
30
  :class="{
31
- 'row items-center m--input__top-label' : !0,
32
- 'm--input__top-label__invalid' : !field?.meta?.valid && field?.meta?.dirty
31
+ 'row items-center m-input__top-label' : !0,
32
+ 'm-input__top-label__invalid' : !field?.meta?.valid && field?.meta?.dirty
33
33
  }"
34
34
  v-bind="$attrs"
35
35
  >
36
36
  <slot name="before" />
37
- <div class="m--input__top-label__content">
37
+ <div class="m-input__top-label__content">
38
38
  {{ label !== undefined ? __(label) : field?.label }}
39
39
  </div>
40
40
  <slot />
@@ -136,7 +136,7 @@ defineOptions({
136
136
  <template>
137
137
  <MCol
138
138
  :auto="auto"
139
- :class="[$attrs.class,{'m--input__required':inputRules?.required!==undefined,'m--input__error':!!errorMessage,'m--input__view':viewMode}]"
139
+ :class="[$attrs.class,{'m-input__required':inputRules?.required!==undefined,'m-input__error':!!errorMessage,'m-input__view':viewMode}]"
140
140
  :col="col"
141
141
  :lg="lg"
142
142
  :md="md"
@@ -174,7 +174,7 @@ defineOptions({
174
174
  <slot name="caption">
175
175
  <div
176
176
  v-if="!!caption"
177
- class="m--input__caption"
177
+ class="m-input__caption"
178
178
  >
179
179
  {{ __(caption) }}
180
180
  </div>
@@ -196,7 +196,7 @@ defineOptions({
196
196
  <component
197
197
  :is="viewMode ? QField : QOptionGroup"
198
198
  ref="input"
199
- :class="{'m--options': !0, 'm--options__full_width': fullWidth, 'm--options__fit_width': fitWidth }"
199
+ :class="{'m-options': !0, 'm-options__full_width': fullWidth, 'm-options__fit_width': fitWidth }"
200
200
  :error="viewMode ? !!errorMessage : undefined"
201
201
  :error-message="viewMode ? errorMessage : undefined"
202
202
  :hint="viewMode ? ( hint ? __(hint) : undefined ) : undefined"
@@ -258,7 +258,7 @@ defineOptions({
258
258
  <style lang="sass">
259
259
  $c: calc(100% / 3)
260
260
 
261
- .m--options
261
+ .m-options
262
262
  .q-checkbox__inner,
263
263
  .q-radio__inner,
264
264
  .q-toggle__inner
@@ -176,7 +176,7 @@ defineOptions({
176
176
  <template>
177
177
  <MCol
178
178
  :auto="auto"
179
- :class="[$attrs.class,{'m--input__required':inputRules?.required!==undefined,'m--input__error':!!errorMessage,'m--input__view':viewMode,'m--picker':!0}]"
179
+ :class="[$attrs.class,{'m-input__required':inputRules?.required!==undefined,'m-input__error':!!errorMessage,'m-input__view':viewMode,'m-picker':!0}]"
180
180
  :col="col"
181
181
  :lg="lg"
182
182
  :md="md"
@@ -203,7 +203,7 @@ defineOptions({
203
203
  <slot name="caption">
204
204
  <div
205
205
  v-if="!!caption"
206
- class="m--input__caption"
206
+ class="m-input__caption"
207
207
  >
208
208
  {{ __(caption) }}
209
209
  </div>
@@ -278,7 +278,7 @@ defineOptions({
278
278
  <q-date
279
279
  v-if="isDate"
280
280
  ref="dateElm"
281
- class="m--date__picker"
281
+ class="m-date__picker"
282
282
  v-bind="{
283
283
  ...pluginOptions.date as any,
284
284
  ...$attrs,
@@ -308,7 +308,7 @@ defineOptions({
308
308
  <q-time
309
309
  v-else
310
310
  ref="timeElm"
311
- class="m--time__picker"
311
+ class="m-time__picker"
312
312
  v-bind="{
313
313
  ...pluginOptions.time,
314
314
  ...$attrs,
@@ -94,7 +94,7 @@ defineOptions({
94
94
  <template>
95
95
  <MCol
96
96
  :auto="auto"
97
- :class="[$attrs.class,{'m--input__required':inputRules?.required!==undefined,'m--input__error':!!errorMessage,'m--input__view':viewMode}]"
97
+ :class="[$attrs.class,{'m-input__required':inputRules?.required!==undefined,'m-input__error':!!errorMessage,'m-input__view':viewMode}]"
98
98
  :col="col"
99
99
  :lg="lg"
100
100
  :md="md"
@@ -109,7 +109,7 @@ defineOptions({
109
109
  <slot name="caption">
110
110
  <div
111
111
  v-if="!!caption"
112
- class="m--input__caption text-caption"
112
+ class="m-input__caption text-caption"
113
113
  >
114
114
  {{ __(caption) }}
115
115
  </div>
@@ -210,7 +210,7 @@ defineOptions({
210
210
  <template>
211
211
  <MCol
212
212
  :auto="auto"
213
- :class="[$attrs.class,{'m--input__required':inputRules?.required!==undefined,'m--input__is-top-label':hasTopLabel,'m--input__error':!!errorMessage,'m--input__view':viewMode}]"
213
+ :class="[$attrs.class,{'m-input__required':inputRules?.required!==undefined,'m-input__is-top-label':hasTopLabel,'m-input__error':!!errorMessage,'m-input__view':viewMode}]"
214
214
  :col="col"
215
215
  :lg="lg"
216
216
  :md="md"
@@ -237,7 +237,7 @@ defineOptions({
237
237
  <slot name="caption">
238
238
  <div
239
239
  v-if="!!caption"
240
- class="m--input__caption"
240
+ class="m-input__caption"
241
241
  >
242
242
  {{ __(caption) }}
243
243
  </div>
@@ -245,7 +245,7 @@ defineOptions({
245
245
  <component
246
246
  :is="viewMode ? QField : QSelect"
247
247
  ref="input"
248
- popup-content-class="m--select__popup-content"
248
+ popup-content-class="m-select__popup-content"
249
249
  v-bind="{
250
250
  behavior: $q.platform.is.ios === !0 ? 'dialog' : behavior,
251
251
  ...theme,
@@ -149,7 +149,7 @@ watch(url, (url) => {
149
149
  <template>
150
150
  <MCol
151
151
  :auto="auto"
152
- :class="[$attrs.class,{'m--input__required':inputRules?.required!==undefined,'m--input__is-top-label':hasTopLabel,'m--input__error':!!errorMessage,'m--input__view':viewMode}]"
152
+ :class="[$attrs.class,{'m-input__required':inputRules?.required!==undefined,'m-input__is-top-label':hasTopLabel,'m-input__error':!!errorMessage,'m-input__view':viewMode}]"
153
153
  :col="col"
154
154
  :lg="lg"
155
155
  :md="md"
@@ -123,7 +123,7 @@ defineOptions({
123
123
  <template>
124
124
  <MCol
125
125
  :auto="auto"
126
- :class="[$attrs.class,{'m--input__required':inputRules?.required!==undefined,'m--input__error':!!errorMessage,'m--input__view':viewMode}]"
126
+ :class="[$attrs.class,{'m-input__required':inputRules?.required!==undefined,'m-input__error':!!errorMessage,'m-input__view':viewMode}]"
127
127
  :col="col"
128
128
  :lg="lg"
129
129
  :md="md"
@@ -150,7 +150,7 @@ defineOptions({
150
150
  <slot name="caption">
151
151
  <div
152
152
  v-if="!!caption"
153
- class="m--input__caption text-caption"
153
+ class="m-input__caption text-caption"
154
154
  >
155
155
  {{ __(caption) }}
156
156
  </div>
@@ -416,7 +416,7 @@ defineOptions({
416
416
  <template #list="scope">
417
417
  <div
418
418
  v-if="!scope.files.length && !attachments?.length"
419
- key="m--uploader-no-data"
419
+ key="m-uploader-no-data"
420
420
  class="absolute-full"
421
421
  >
422
422
  <div class="full-width full-height overflow-hidden">
@@ -318,7 +318,7 @@ defineOptions({
318
318
  <template>
319
319
  <MCol
320
320
  :auto="auto"
321
- :class="[$attrs.class,{'m--input__required':inputRules?.required!==undefined,'m--input__error':!!errorMessage,'m--input__view':viewMode}]"
321
+ :class="[$attrs.class,{'m-input__required':inputRules?.required!==undefined,'m-input__error':!!errorMessage,'m-input__view':viewMode}]"
322
322
  :col="col"
323
323
  :lg="lg"
324
324
  :md="md"
@@ -345,7 +345,7 @@ defineOptions({
345
345
  <slot name="caption">
346
346
  <div
347
347
  v-if="!!caption"
348
- class="m--input__caption"
348
+ class="m-input__caption"
349
349
  >
350
350
  {{ __(caption) }}
351
351
  </div>
@@ -144,7 +144,7 @@ defineOptions({
144
144
  <template>
145
145
  <MCol
146
146
  :auto="auto"
147
- :class="[$attrs.class,{'m--input__required':inputRules?.required!==undefined,'m--input__error':!!errorMessage,'m--input__view':viewMode}]"
147
+ :class="[$attrs.class,{'m-input__required':inputRules?.required!==undefined,'m-input__error':!!errorMessage,'m-input__view':viewMode}]"
148
148
  :col="col"
149
149
  :lg="lg"
150
150
  :md="md"
@@ -182,7 +182,7 @@ defineOptions({
182
182
  <slot name="caption">
183
183
  <div
184
184
  v-if="!!caption"
185
- class="m--input__caption"
185
+ class="m-input__caption"
186
186
  >
187
187
  {{ __(caption) }}
188
188
  </div>
@@ -203,7 +203,7 @@ defineOptions({
203
203
  </MTransition>
204
204
  <q-option-group
205
205
  ref="input"
206
- :class="{'m--options': !0, 'm--options__full_width': fullWidth, 'm--options__fit_width': fitWidth }"
206
+ :class="{'m-options': !0, 'm-options__full_width': fullWidth, 'm-options__fit_width': fitWidth }"
207
207
  :color="!!errorMessage ? 'negative' : getProp('color')"
208
208
  :disable="disable"
209
209
  :keep-color="!!errorMessage ? !0 : getProp('keepColor')"
@@ -264,7 +264,7 @@ defineOptions({
264
264
  <style lang="sass">
265
265
  $c: calc(100% / 3)
266
266
 
267
- .m--options
267
+ .m-options
268
268
  .q-checkbox__inner,
269
269
  .q-radio__inner,
270
270
  .q-toggle__inner
@@ -57,7 +57,7 @@ defineOptions({
57
57
  <template>
58
58
  <div
59
59
  :class="{
60
- 'm---block' : !0,
60
+ 'm-block' : !0,
61
61
  [`q-pa-${getSize}`] : getSize && getSize !== 'none',
62
62
  'rounded-borders' : getRounded === !0,
63
63
  [`shadow-${getShadow||''}`] : getShadow && getShadow !== 'none'
@@ -16,7 +16,7 @@ import { useMyth } from '../../composable'
16
16
  const { uniq } = useMyth()
17
17
  const props = defineProps<Props>()
18
18
  const classes = computed(() => {
19
- const list: string[] = ['m--col']
19
+ const list: string[] = ['m-col']
20
20
  if (props.auto === !0) {
21
21
  list.push('col-auto')
22
22
  }
@@ -18,7 +18,7 @@ defineOptions({
18
18
 
19
19
  <template>
20
20
  <div
21
- class="m--column column"
21
+ class="m-column column"
22
22
  v-bind="$attrs"
23
23
  >
24
24
  <slot />
@@ -48,9 +48,9 @@ defineOptions({
48
48
  <template>
49
49
  <div
50
50
  :class="{
51
- 'm--container' : !0,
52
- 'm--container__fluid' : fluidProp === !0,
53
- 'm--container__dense' : dense === !0,
51
+ 'm-container' : !0,
52
+ 'm-container__fluid' : fluidProp === !0,
53
+ 'm-container__dense' : dense === !0,
54
54
  [`q-pa-${sizeProp||''}`]: sizeProp && sizeProp !== 'none'
55
55
  }"
56
56
  v-bind="$attrs"
@@ -28,7 +28,7 @@ defineOptions({
28
28
  <template>
29
29
  <div
30
30
  v-if="text || tooltip"
31
- class="m--help-row row"
31
+ class="m-help-row row"
32
32
  v-bind="$attrs"
33
33
  >
34
34
  <div class="col-auto">
@@ -46,7 +46,7 @@ defineOptions({
46
46
  <template>
47
47
  <div
48
48
  :class="{
49
- 'm--row row': !0,
49
+ 'm-row row': !0,
50
50
  [`q-gutter-${gutterSize}`]: gutter !== !1 && gutter !== undefined,
51
51
  [`q-col-gutter-${colSize}`]: col !== !1 && col !== undefined,
52
52
  }"
@@ -44,7 +44,7 @@ defineOptions({
44
44
  v-model="modelValue"
45
45
  :position="position"
46
46
  allow-focus-outside
47
- class="m--modal_menu"
47
+ class="m-modal_menu"
48
48
  maximized
49
49
  no-backdrop-dismiss
50
50
  no-shake
@@ -29,7 +29,7 @@ const { props: pluginOptions } = useMyth()
29
29
 
30
30
  <template>
31
31
  <q-tooltip
32
- class="m--dt-btn-tooltip"
32
+ class="m-dt-btn-tooltip"
33
33
  transition-hide="scale"
34
34
  transition-show="scale"
35
35
  v-bind="{...pluginOptions.tooltip,...$attrs}"
@@ -278,7 +278,7 @@ defineOptions({
278
278
  target="_blank"
279
279
  v-bind="pluginOptions.uploaderOptions?.downloadBtnProps"
280
280
  >
281
- <q-tooltip class="m--dt-btn-tooltip">
281
+ <q-tooltip class="m-dt-btn-tooltip">
282
282
  {{ __('myth.titles.download') }}
283
283
  </q-tooltip>
284
284
  </q-btn>
@@ -291,7 +291,7 @@ defineOptions({
291
291
  v-bind="pluginOptions.uploaderOptions?.removeBtnProps"
292
292
  @click="onClickDeleteAttachment()"
293
293
  >
294
- <q-tooltip class="m--dt-btn-tooltip">
294
+ <q-tooltip class="m-dt-btn-tooltip">
295
295
  {{ __(mediaProp.id ? 'myth.uploader.deleteMedia' : 'myth.uploader.removeMedia') }}
296
296
  </q-tooltip>
297
297
  </q-btn>
@@ -48,7 +48,7 @@ defineOptions({
48
48
 
49
49
  <template>
50
50
  <div
51
- class="m--sar-col"
51
+ class="m-sar-col"
52
52
  v-bind="$attrs"
53
53
  >
54
54
  <span>
@@ -189,7 +189,7 @@ export const useMyth = () => {
189
189
  if (controlStyle && !item.style) {
190
190
  item.style = controlStyle + (item.style ? ` ${item.style}` : '')
191
191
  }
192
- item.headerClasses = (item.headerClasses ? item.headerClasses : '') + ' m--control-header'
192
+ item.headerClasses = (item.headerClasses ? item.headerClasses : '') + ' m-control-header'
193
193
  item.headerClasses = item.headerClasses.trim()
194
194
  item.sortable = !1
195
195
  if (!item.align) {
@@ -198,9 +198,9 @@ export const useMyth = () => {
198
198
  // opts.classes = opts.classes || ''
199
199
  if (typeof opts.classes === 'function') {
200
200
  const callback = opts.classes
201
- opts.classes = (item) => (callback(item) || '') + ' m--control-cell'
201
+ opts.classes = (item) => (callback(item) || '') + ' m-control-cell'
202
202
  } else if (typeof opts.classes === 'string') {
203
- opts.classes += ' m--control-cell'
203
+ opts.classes += ' m-control-cell'
204
204
  opts.classes = opts.classes.trim()
205
205
  }
206
206
  }
@@ -247,7 +247,7 @@ export const useMyth = () => {
247
247
  const dialogProps = pluginOptions.value.confirmDialog || {} as any
248
248
  dialogProps.transitionShow = dialogProps.transitionShow || 'jump-down'
249
249
  dialogProps.transitionHide = dialogProps.transitionHide || 'jump-up'
250
- dialogProps.class = ('m--confirm ') + (dialogProps.class || '')
250
+ dialogProps.class = ('m-confirm ') + (dialogProps.class || '')
251
251
  return q.dialog({
252
252
  title,
253
253
  message,
@@ -1,12 +1,12 @@
1
1
 
2
- $m--container-padding: $space-base !default
3
- $m--container-fluid-width: 1440px !default
2
+ $m-container-padding: $space-base !default
3
+ $m-container-fluid-width: 1440px !default
4
4
 
5
- .m--container
5
+ .m-container
6
6
  &__dense
7
7
  padding: 0
8
8
 
9
9
  &__fluid
10
- max-width: $m--container-fluid-width
10
+ max-width: $m-container-fluid-width
11
11
  margin-left: auto
12
12
  margin-right: auto
@@ -1,26 +1,27 @@
1
- $control-max-width: 200px !default
2
- $fixed-dt-height: 80vh !default
1
+ $m-control-max-width: 200px !default
2
+ $m-dt-fixed-height: 80vh !default
3
+ $m-dt-desc-width: 150px !default
3
4
 
4
5
  .touch
5
- .m--datatable-fab-tooltip
6
+ .m-datatable-fab-tooltip
6
7
  display: none
7
8
 
8
9
  .body--light
9
- .m--datatable
10
+ .m-datatable
10
11
  .q-table__top,
11
12
  .q-table__bottom,
12
13
  thead tr:first-child th
13
14
  background: #fff
14
15
 
15
16
  .body--dark
16
- .m--datatable
17
+ .m-datatable
17
18
  .q-table__top,
18
19
  .q-table__bottom,
19
20
  thead tr:first-child th
20
21
  background: var(--q-dark-page)
21
22
 
22
- .m--datatable-component
23
- .m--datatable.m--datatable-grid
23
+ .m-datatable-component
24
+ .m-datatable.m-datatable-grid
24
25
  .q-table__top
25
26
  padding-left: 0
26
27
  padding-right: 0
@@ -36,14 +37,14 @@ $fixed-dt-height: 80vh !default
36
37
  thead tr:first-child th
37
38
  top: 0
38
39
 
39
- .m--datatable:not(.m--datatable-grid)
40
- max-height: $fixed-dt-height
40
+ .m-datatable:not(.m-datatable-grid)
41
+ max-height: $m-dt-fixed-height
41
42
 
42
- .m--datatable:not(.m--datatable-grid).q-table--dense
43
+ .m-datatable:not(.m-datatable-grid).q-table--dense
43
44
  &.q-table--loading thead tr:last-child th
44
45
  top: 26px
45
46
 
46
- .m--datatable:not(.m--datatable-grid):not(.q-table--dense)
47
+ .m-datatable:not(.m-datatable-grid):not(.q-table--dense)
47
48
  &.q-table--loading thead tr:last-child th
48
49
  top: 55px
49
50
 
@@ -67,7 +68,7 @@ $fixed-dt-height: 80vh !default
67
68
  min-width: 0
68
69
  max-width: 100%
69
70
 
70
- .m--dialog-card
71
+ .m-dialog-card
71
72
  .q-card__actions
72
73
  .q-btn
73
74
  padding: 4px 16px !important
@@ -77,9 +78,15 @@ $fixed-dt-height: 80vh !default
77
78
 
78
79
  .screen--xs,
79
80
  .screen--sm
80
- .m--dt-btn-tooltip
81
+ .m-dt-btn-tooltip
81
82
  display: none
82
83
 
83
- .m--control-cell,
84
- .m--control-header
85
- width: $control-max-width
84
+ .m-control-cell,
85
+ .m-control-header
86
+ width: $m-control-max-width
87
+
88
+ .m-dt__max_desc
89
+ max-width: $m-dt-desc-width
90
+ text-overflow: ellipsis
91
+ white-space: nowrap
92
+ overflow: hidden
@@ -1,4 +1,4 @@
1
1
  $m-help-row-margin-top: 4px !default
2
2
 
3
- .m--help-row
3
+ .m-help-row
4
4
  margin-top: $m-help-row-margin-top
@@ -1,28 +1,28 @@
1
- $m--input-helpers-margin: 5px !default
1
+ $m-input-helpers-margin: 5px !default
2
2
  $radius-value: $generic-border-radius !default
3
3
 
4
- [data-input-name].m--input__error
4
+ [data-input-name].m-input__error
5
5
  > .q-field
6
6
  &:not(.q-field--disabled)
7
7
  .q-field__label::after
8
8
  color: var(--q-negative)
9
9
 
10
- .m--input__top-label__content
10
+ .m-input__top-label__content
11
11
  color: var(--q-negative)
12
12
 
13
13
 
14
- [data-input-name].m--input__required
15
- &:not(.m--input__is-top-label)
14
+ [data-input-name].m-input__required
15
+ &:not(.m-input__is-top-label)
16
16
  > .q-field
17
17
  &:not(.q-field--disabled)
18
18
  .q-field__label::after
19
19
  content: ' *'
20
20
 
21
- .m--input__top-label__content::after
21
+ .m-input__top-label__content::after
22
22
  content: ' *'
23
23
  color: var(--q-negative)
24
24
 
25
- .m--input
25
+ .m-input
26
26
  &__color-preview
27
27
  border: 1px solid var(--q-brand)
28
28
  border-radius: $radius-value
@@ -30,7 +30,7 @@ $radius-value: $generic-border-radius !default
30
30
  &__top-label,
31
31
  &__hint,
32
32
  &__caption
33
- margin-bottom: $m--input-helpers-margin
33
+ margin-bottom: $m-input-helpers-margin
34
34
 
35
35
  //&__caption
36
36
  //font-size: 0.75rem
@@ -1,5 +1,5 @@
1
- .m--date__picker,
2
- .m--time__picker
1
+ .m-date__picker,
2
+ .m-time__picker
3
3
  .q-date__calendar-item
4
4
  > div
5
5
  text-overflow: ellipsis
@@ -1,4 +1,4 @@
1
- $m--select__popup-content: 300px !default
1
+ $m-select__popup-content: 300px !default
2
2
 
3
- .m--select__popup-content
4
- max-height: $m--select__popup-content
3
+ .m-select__popup-content
4
+ max-height: $m-select__popup-content
@@ -1,6 +1,6 @@
1
1
  @use 'sass:map'
2
2
 
3
- $m--row-margin-top: 1rem !default
3
+ $m-row-margin-top: 1rem !default
4
4
 
5
5
  // Flex.
6
6
  .flex-break
@@ -17,8 +17,8 @@ $m--row-margin-top: 1rem !default
17
17
  width: 0 !important
18
18
 
19
19
 
20
- .m--row + .m--row
21
- margin-top: $m--row-margin-top
20
+ .m-row + .m-row
21
+ margin-top: $m-row-margin-top
22
22
 
23
23
 
24
24
  // Directions.
@@ -52,14 +52,14 @@ $maxes: ('width', 'height') !default
52
52
  .max-#{$max}
53
53
  max-#{$max}: 100% !important
54
54
 
55
- $m--bordered-color: var(--q-body) !default
55
+ $m-bordered-color: var(--q-body) !default
56
56
  $alignsX: ('top', 'bottom') !default
57
57
  $alignsY: ('left', 'right') !default
58
58
  $radius-class-name: 'border-rounded' !default
59
59
  $radius-value: $generic-border-radius !default
60
60
  $bordered-class-name: 'bordered' !default
61
61
  $bordered-size: 1px !default
62
- $bordered-style: $bordered-size solid $m--bordered-color !default
62
+ $bordered-style: $bordered-size solid $m-bordered-color !default
63
63
 
64
64
 
65
65
  .#{$radius-class-name}
@@ -100,6 +100,6 @@ $bordered-style: $bordered-size solid $m--bordered-color !default
100
100
  pre
101
101
  max-width: 100%
102
102
 
103
- .m--confirm.actions-between
103
+ .m-confirm.actions-between
104
104
  .q-card__actions
105
105
  justify-content: space-between !important