quasar-ui-danx 0.4.19 → 0.4.20
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/dist/danx.es.js +753 -722
- package/dist/danx.es.js.map +1 -1
- package/dist/danx.umd.js +5 -5
- package/dist/danx.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/ActionTable/Form/Fields/TextField.vue +6 -2
- package/src/helpers/FlashMessages.ts +15 -1
- package/src/types/config.d.ts +1 -0
package/package.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<template>
|
2
|
-
<div>
|
2
|
+
<div class="dx-text-field">
|
3
3
|
<FieldLabel
|
4
4
|
v-if="!prependLabel"
|
5
5
|
:label="label"
|
@@ -33,7 +33,7 @@
|
|
33
33
|
@update:model-value="$emit('update:model-value', $event)"
|
34
34
|
>
|
35
35
|
<template
|
36
|
-
v-if="prependLabel"
|
36
|
+
v-if="prependLabel || $slots.prepend"
|
37
37
|
#prepend
|
38
38
|
>
|
39
39
|
<FieldLabel
|
@@ -43,6 +43,10 @@
|
|
43
43
|
:required-label="requiredLabel"
|
44
44
|
:class="labelClass"
|
45
45
|
/>
|
46
|
+
<slot name="prepend" />
|
47
|
+
</template>
|
48
|
+
<template #append>
|
49
|
+
<slot name="append" />
|
46
50
|
</template>
|
47
51
|
</QInput>
|
48
52
|
<MaxLengthCounter
|
@@ -10,6 +10,10 @@ export class FlashMessages {
|
|
10
10
|
type: String,
|
11
11
|
default: ""
|
12
12
|
},
|
13
|
+
infoMsg: {
|
14
|
+
type: String,
|
15
|
+
default: ""
|
16
|
+
},
|
13
17
|
errorMsg: {
|
14
18
|
type: String,
|
15
19
|
default: ""
|
@@ -20,11 +24,12 @@ export class FlashMessages {
|
|
20
24
|
}
|
21
25
|
};
|
22
26
|
|
23
|
-
static enable(msgProps: { successMsg?: string, errorMsg?: string, warningMsg?: string }) {
|
27
|
+
static enable(msgProps: { successMsg?: string, infoMsg?: string, errorMsg?: string, warningMsg?: string }) {
|
24
28
|
FlashMessages.success(msgProps.successMsg);
|
25
29
|
FlashMessages.error(msgProps.errorMsg);
|
26
30
|
FlashMessages.warning(msgProps.warningMsg);
|
27
31
|
watch(() => msgProps.successMsg, msg => FlashMessages.success(msg));
|
32
|
+
watch(() => msgProps.infoMsg, msg => FlashMessages.info(msg));
|
28
33
|
watch(() => msgProps.errorMsg, msg => FlashMessages.error(msg));
|
29
34
|
watch(() => msgProps.warningMsg, msg => FlashMessages.warning(msg));
|
30
35
|
}
|
@@ -61,6 +66,15 @@ export class FlashMessages {
|
|
61
66
|
});
|
62
67
|
}
|
63
68
|
|
69
|
+
static info(message?: string, options: QNotifyCreateOptions = {}) {
|
70
|
+
FlashMessages.send(message, {
|
71
|
+
classes: "bg-sky-300 !text-sky-900",
|
72
|
+
icon: "info",
|
73
|
+
...options,
|
74
|
+
...danxOptions.value.flashMessages?.info
|
75
|
+
});
|
76
|
+
}
|
77
|
+
|
64
78
|
static error(message?: string, options: QNotifyCreateOptions = {}) {
|
65
79
|
FlashMessages.send(message, {
|
66
80
|
classes: "bg-red-300 !text-red-900",
|
package/src/types/config.d.ts
CHANGED