@mythpe/quasar-ui-qui 0.2.34 → 0.2.36
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
|
@@ -911,19 +911,17 @@ defineExpose({
|
|
|
911
911
|
<MRow class="justify-between">
|
|
912
912
|
<MBtn
|
|
913
913
|
v-close-popup
|
|
914
|
-
:label="__('myth.datatable.filter.
|
|
915
|
-
color="negative"
|
|
916
|
-
flat
|
|
914
|
+
:label="__('myth.datatable.filter.save')"
|
|
917
915
|
v-bind="pluginOptions.dt?.dialogButtonsProps as any"
|
|
918
|
-
@click="
|
|
916
|
+
@click="saveFilterDialog"
|
|
919
917
|
/>
|
|
920
918
|
<MBtn
|
|
921
919
|
v-close-popup
|
|
922
|
-
:label="__('myth.datatable.filter.
|
|
923
|
-
color="
|
|
924
|
-
|
|
920
|
+
:label="__('myth.datatable.filter.cancel')"
|
|
921
|
+
color="secondary"
|
|
922
|
+
text-color="white"
|
|
925
923
|
v-bind="pluginOptions.dt?.dialogButtonsProps as any"
|
|
926
|
-
@click="
|
|
924
|
+
@click="closeFilterDialog"
|
|
927
925
|
/>
|
|
928
926
|
</MRow>
|
|
929
927
|
</MCol>
|
|
@@ -1323,7 +1321,6 @@ defineExpose({
|
|
|
1323
1321
|
class="print-hide"
|
|
1324
1322
|
>
|
|
1325
1323
|
<MBtn
|
|
1326
|
-
color="secondary"
|
|
1327
1324
|
label="myth.titles.close"
|
|
1328
1325
|
v-bind="pluginOptions.dt?.dialogButtonsProps"
|
|
1329
1326
|
@click="closeShowDialog"
|
|
@@ -1364,17 +1361,16 @@ defineExpose({
|
|
|
1364
1361
|
<q-skeleton width="200px" />
|
|
1365
1362
|
</template>
|
|
1366
1363
|
<template v-else>
|
|
1367
|
-
<
|
|
1368
|
-
color="negative"
|
|
1369
|
-
fab-mini
|
|
1364
|
+
<MBtn
|
|
1370
1365
|
flat
|
|
1371
1366
|
icon="close"
|
|
1367
|
+
text-color="none"
|
|
1372
1368
|
@click="closeFormDialog"
|
|
1373
1369
|
>
|
|
1374
1370
|
<q-tooltip class="m--dt-btn-tooltip">
|
|
1375
1371
|
{{ __('myth.titles.close') }}
|
|
1376
1372
|
</q-tooltip>
|
|
1377
|
-
</
|
|
1373
|
+
</MBtn>
|
|
1378
1374
|
{{ getFormTitle }}
|
|
1379
1375
|
</template>
|
|
1380
1376
|
</q-toolbar-title>
|
|
@@ -1441,8 +1437,6 @@ defineExpose({
|
|
|
1441
1437
|
:class="{'full-width': $q.screen.lt.sm}"
|
|
1442
1438
|
:label="__(`myth.titles.${isUpdateMode ? 'save' : 'store'}`)"
|
|
1443
1439
|
:loading="loading"
|
|
1444
|
-
color="primary"
|
|
1445
|
-
no-caps
|
|
1446
1440
|
type="submit"
|
|
1447
1441
|
v-bind="pluginOptions.dt?.dialogButtonsProps"
|
|
1448
1442
|
/>
|
|
@@ -1452,7 +1446,7 @@ defineExpose({
|
|
|
1452
1446
|
:disable="loading"
|
|
1453
1447
|
color="secondary"
|
|
1454
1448
|
label="myth.titles.close"
|
|
1455
|
-
|
|
1449
|
+
text-color="white"
|
|
1456
1450
|
v-bind="pluginOptions.dt?.dialogButtonsProps"
|
|
1457
1451
|
@click="closeFormDialog"
|
|
1458
1452
|
/>
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
import type { MBtnProps } from '../../types'
|
|
14
14
|
import { computed } from 'vue'
|
|
15
15
|
import { useBindInput, useMyth } from '../../composable'
|
|
16
|
+
import { extend } from 'quasar'
|
|
16
17
|
|
|
17
18
|
type Props = {
|
|
18
19
|
label?: MBtnProps['label'];
|
|
@@ -44,7 +45,6 @@ const hasLabel = computed<boolean>(() => !!getLabel.value)
|
|
|
44
45
|
const loadingOptions = computed(() => theme.value.buttonLoading)
|
|
45
46
|
const loadingSize = computed<string | undefined>(() => loadingOptions.value ? loadingOptions.value.size : undefined)
|
|
46
47
|
const loadingColor = computed<string | undefined>(() => loadingOptions.value ? loadingOptions.value.color : undefined)
|
|
47
|
-
|
|
48
48
|
defineOptions({
|
|
49
49
|
name: 'MBtn',
|
|
50
50
|
inheritAttrs: !1
|
|
@@ -53,15 +53,19 @@ defineOptions({
|
|
|
53
53
|
|
|
54
54
|
<template>
|
|
55
55
|
<q-btn
|
|
56
|
-
v-bind="
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
56
|
+
v-bind="extend(
|
|
57
|
+
true,
|
|
58
|
+
{},
|
|
59
|
+
btnTheme,
|
|
60
|
+
pluginOptions.btn,
|
|
61
|
+
{ariaLabel: getAriaLabel},
|
|
62
|
+
$attrs,
|
|
63
|
+
{
|
|
64
|
+
loading,
|
|
65
|
+
label2: loading && getLabel && loadingOptions ? `${getLabel} ...` : getLabel,
|
|
66
|
+
label: getLabel,
|
|
67
|
+
}
|
|
68
|
+
)"
|
|
65
69
|
>
|
|
66
70
|
<template
|
|
67
71
|
v-if="!!$slots.loading"
|
|
@@ -164,6 +164,7 @@ defineOptions({
|
|
|
164
164
|
<q-field
|
|
165
165
|
:hide-bottom-space="hideBottomSpace"
|
|
166
166
|
v-bind="{
|
|
167
|
+
...theme,
|
|
167
168
|
error: !!errorMessage,
|
|
168
169
|
errorMessage,
|
|
169
170
|
hint: hint ? __(hint) : undefined,
|
|
@@ -183,8 +184,8 @@ defineOptions({
|
|
|
183
184
|
:model-value="value"
|
|
184
185
|
:true-value="trueValue"
|
|
185
186
|
v-bind="{
|
|
186
|
-
...pluginOptions.toggle,
|
|
187
187
|
...theme,
|
|
188
|
+
...pluginOptions.toggle,
|
|
188
189
|
...$attrs,
|
|
189
190
|
// dense: theme.dense !== undefined ? theme.dense : getProp('dense'),
|
|
190
191
|
dense: !0,
|
package/src/style/main.sass
CHANGED
|
@@ -69,13 +69,14 @@ $maxes: ('width', 'height') !default
|
|
|
69
69
|
.max-#{$max}
|
|
70
70
|
max-#{$max}: 100% !important
|
|
71
71
|
|
|
72
|
+
$m--bordered-color: var(--q-primary) !default
|
|
72
73
|
$alignsX: ('top', 'bottom') !default
|
|
73
74
|
$alignsY: ('left', 'right') !default
|
|
74
75
|
$radius-class-name: 'border-rounded' !default
|
|
75
76
|
$radius-value: $generic-border-radius !default
|
|
76
77
|
$bordered-class-name: 'bordered' !default
|
|
77
78
|
$bordered-size: 1px !default
|
|
78
|
-
$bordered-style: $bordered-size solid
|
|
79
|
+
$bordered-style: $bordered-size solid $m--bordered-color !default
|
|
79
80
|
|
|
80
81
|
|
|
81
82
|
.#{$radius-class-name}
|