@nixweb/nixloc-ui 0.0.175 → 0.0.176
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,10 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<b-form-checkbox
|
|
4
|
-
v-model="valueLocal"
|
|
5
|
-
:value="true"
|
|
6
|
-
:unchecked-value="false"
|
|
7
|
-
>
|
|
3
|
+
<b-form-checkbox v-model="valueLocal" :value="true" :unchecked-value="false">
|
|
8
4
|
{{ title }}
|
|
9
5
|
<Tip :field="field" :formName="formName" />
|
|
10
6
|
</b-form-checkbox>
|
|
@@ -22,6 +18,7 @@ export default {
|
|
|
22
18
|
props: {
|
|
23
19
|
title: String,
|
|
24
20
|
formName: String,
|
|
21
|
+
fieldTarget: String,
|
|
25
22
|
field: String,
|
|
26
23
|
value: Boolean,
|
|
27
24
|
changed: Function,
|
|
@@ -37,6 +34,7 @@ export default {
|
|
|
37
34
|
},
|
|
38
35
|
methods: {
|
|
39
36
|
...mapMutations("validation", ["updateFormDirty"]),
|
|
37
|
+
...mapMutations("generic", ["addFilter"]),
|
|
40
38
|
},
|
|
41
39
|
mounted() {
|
|
42
40
|
this.valueLocal = this.value;
|
|
@@ -49,6 +47,12 @@ export default {
|
|
|
49
47
|
this.$emit("input", this.valueLocal);
|
|
50
48
|
if (this.markFormDirty) this.updateFormDirty(true);
|
|
51
49
|
if (this.changed) this.changed();
|
|
50
|
+
|
|
51
|
+
if (this.fieldTarget) {
|
|
52
|
+
let obj = { fieldTarget: this.fieldTarget, value: this.valueLocal ? "yes" : "no" };
|
|
53
|
+
this.addFilter(obj);
|
|
54
|
+
}
|
|
55
|
+
|
|
52
56
|
},
|
|
53
57
|
},
|
|
54
58
|
};
|
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
</label>
|
|
8
8
|
<div class="inner-addon right-addon">
|
|
9
9
|
<i v-if="notifications.length > 0 && formDirty" class="required glyphicon fas fa-exclamation-triangle"></i>
|
|
10
|
-
<date-picker lang="pt-br" :range="range" @confirm="executeConfirm" @change="executeConfirm"
|
|
11
|
-
:confirm="confirm" :confirm-text="confirmText" :format="format" value-type="format"
|
|
10
|
+
<date-picker lang="pt-br" :disabled="disabled" :range="range" @confirm="executeConfirm" @change="executeConfirm"
|
|
11
|
+
@clear="close" :confirm="confirm" :confirm-text="confirmText" :format="format" value-type="format"
|
|
12
|
+
:time-picker-options="{
|
|
12
13
|
start: '07:00',
|
|
13
14
|
step: '00:30',
|
|
14
15
|
end: '23:30',
|
|
@@ -42,6 +43,7 @@ export default {
|
|
|
42
43
|
"placeholder",
|
|
43
44
|
"formName",
|
|
44
45
|
"required",
|
|
46
|
+
"disabled",
|
|
45
47
|
"format",
|
|
46
48
|
"type",
|
|
47
49
|
"value",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="div-tag">
|
|
3
|
-
<div class="tag">
|
|
3
|
+
<div class="tag" :class="{ 'tag-disabled': disabled }">
|
|
4
4
|
<span @click="execute()">{{ title }} <span v-if="value">:</span> {{ value }}</span>
|
|
5
|
-
<i v-if="showButtonClose" @click="remove()" class="icon-tag fas fa-times-circle"></i>
|
|
5
|
+
<i v-if="showButtonClose && !disabled" @click="remove()" class="icon-tag fas fa-times-circle"></i>
|
|
6
6
|
</div>
|
|
7
7
|
</div>
|
|
8
8
|
</template>
|
|
@@ -15,6 +15,7 @@ export default {
|
|
|
15
15
|
props: {
|
|
16
16
|
_key: String,
|
|
17
17
|
title: String,
|
|
18
|
+
disabled: Boolean,
|
|
18
19
|
value: String,
|
|
19
20
|
eventName: String,
|
|
20
21
|
eventData: Object,
|
|
@@ -69,4 +70,8 @@ export default {
|
|
|
69
70
|
padding-left: 5px;
|
|
70
71
|
font-size: 20px;
|
|
71
72
|
}
|
|
73
|
+
|
|
74
|
+
.tag-disabled {
|
|
75
|
+
opacity: 0.5;
|
|
76
|
+
}
|
|
72
77
|
</style>
|
|
@@ -147,6 +147,7 @@ export default {
|
|
|
147
147
|
methods: {
|
|
148
148
|
...mapActions("generic", ["getApi", "orderAllApi", "deleteAllApi"]),
|
|
149
149
|
...mapMutations("generic", [
|
|
150
|
+
"addEvent",
|
|
150
151
|
"addLoading",
|
|
151
152
|
"removeLoading",
|
|
152
153
|
"addSelected",
|
|
@@ -154,6 +155,7 @@ export default {
|
|
|
154
155
|
"updateSearch",
|
|
155
156
|
"addTag",
|
|
156
157
|
"removeTag",
|
|
158
|
+
"cleanTags",
|
|
157
159
|
"openModal",
|
|
158
160
|
"hideModal"
|
|
159
161
|
]),
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<slot name="content-between-search-table"></slot>
|
|
13
13
|
<div class="div-tag">
|
|
14
14
|
<div class="side-by-side" v-for="tag in tags">
|
|
15
|
-
<Tag :_key="tag.key" :title="tag.tag" />
|
|
15
|
+
<Tag :_key="tag.key" :disabled="propsParam.showAll" :title="tag.tag" />
|
|
16
16
|
</div>
|
|
17
17
|
</div>
|
|
18
18
|
<Molded>
|