@nethserver/ns8-ui-lib 0.0.85 → 0.0.88
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/ns8-ui-lib.esm.js +560 -550
- package/dist/ns8-ui-lib.min.js +1 -1
- package/dist/ns8-ui-lib.ssr.js +474 -466
- package/package.json +1 -1
- package/src/lib-components/NsDangerDeleteModal.vue +4 -3
- package/src/lib-components/NsPasswordInput.vue +2 -2
- package/src/lib-components/NsTextInput.vue +12 -1
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<NsModal
|
|
3
3
|
kind="danger"
|
|
4
4
|
size="default"
|
|
5
5
|
:visible="isShown"
|
|
@@ -34,17 +34,18 @@
|
|
|
34
34
|
</template>
|
|
35
35
|
<template slot="secondary-button">{{ cancelLabel }}</template>
|
|
36
36
|
<template slot="primary-button">{{ deleteLabel }}</template>
|
|
37
|
-
</
|
|
37
|
+
</NsModal>
|
|
38
38
|
</template>
|
|
39
39
|
|
|
40
40
|
<script>
|
|
41
41
|
import UtilService from "../lib-mixins/util.js";
|
|
42
42
|
import NsInlineNotification from "./NsInlineNotification.vue";
|
|
43
|
+
import NsModal from "./NsModal.vue";
|
|
43
44
|
|
|
44
45
|
export default {
|
|
45
46
|
name: "NsDangerDeleteModal",
|
|
46
47
|
//component added for storybook to work
|
|
47
|
-
components: { NsInlineNotification },
|
|
48
|
+
components: { NsInlineNotification, NsModal },
|
|
48
49
|
mixins: [UtilService],
|
|
49
50
|
props: {
|
|
50
51
|
isShown: {
|
|
@@ -109,12 +109,12 @@
|
|
|
109
109
|
</template>
|
|
110
110
|
|
|
111
111
|
<script>
|
|
112
|
-
import
|
|
112
|
+
import NsTextInput from "./NsTextInput";
|
|
113
113
|
import UtilService from "../lib-mixins/util.js";
|
|
114
114
|
|
|
115
115
|
export default {
|
|
116
116
|
name: "NsPasswordInput",
|
|
117
|
-
components:
|
|
117
|
+
components: { NsTextInput },
|
|
118
118
|
mixins: [UtilService],
|
|
119
119
|
props: {
|
|
120
120
|
value: String,
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
[`${carbonPrefix}--text-input__field-wrapper--warning`]:
|
|
51
51
|
!isInvalid && isWarn,
|
|
52
52
|
},
|
|
53
|
+
{ 'align-items-center': prefix },
|
|
53
54
|
]"
|
|
54
55
|
:data-invalid="isInvalid"
|
|
55
56
|
>
|
|
@@ -61,7 +62,7 @@
|
|
|
61
62
|
v-if="isWarn"
|
|
62
63
|
:class="`${carbonPrefix}--text-input__invalid-icon ${carbonPrefix}--text-input__invalid-icon--warning`"
|
|
63
64
|
/>
|
|
64
|
-
|
|
65
|
+
<span v-if="prefix" class="prefix">{{ prefix }}</span>
|
|
65
66
|
<input
|
|
66
67
|
:id="uid"
|
|
67
68
|
:class="[
|
|
@@ -154,6 +155,7 @@ export default {
|
|
|
154
155
|
default: "bottom",
|
|
155
156
|
validator: (val) => ["top", "left", "bottom", "right".includes(val)],
|
|
156
157
|
},
|
|
158
|
+
prefix: String,
|
|
157
159
|
},
|
|
158
160
|
computed: {
|
|
159
161
|
hasTooltipSlot() {
|
|
@@ -168,6 +170,15 @@ export default {
|
|
|
168
170
|
display: inline-block;
|
|
169
171
|
position: absolute;
|
|
170
172
|
}
|
|
173
|
+
|
|
174
|
+
.prefix {
|
|
175
|
+
font-weight: bold;
|
|
176
|
+
margin-right: 0.5rem;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.align-items-center {
|
|
180
|
+
align-items: center;
|
|
181
|
+
}
|
|
171
182
|
</style>
|
|
172
183
|
|
|
173
184
|
<style lang="scss">
|