@nethserver/ns8-ui-lib 0.1.21 → 0.1.23
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 +732 -542
- package/dist/ns8-ui-lib.min.js +1 -1
- package/dist/ns8-ui-lib.ssr.js +772 -594
- package/package.json +1 -1
- package/src/lib-components/NsBackupCard.vue +4 -0
- package/src/lib-components/NsBackupCardDetails.vue +4 -0
- package/src/lib-components/NsButton.vue +4 -0
- package/src/lib-components/NsByteSlider.vue +4 -0
- package/src/lib-components/NsCheckbox.vue +4 -0
- package/src/lib-components/NsCircleTimer.vue +4 -0
- package/src/lib-components/NsCodeSnippet.vue +4 -0
- package/src/lib-components/NsComboBox.vue +4 -0
- package/src/lib-components/NsDangerDeleteModal.vue +9 -1
- package/src/lib-components/NsDataTable.vue +4 -0
- package/src/lib-components/NsDropdownAction.vue +4 -0
- package/src/lib-components/NsEmptyState.vue +4 -0
- package/src/lib-components/NsIconMenu.vue +4 -0
- package/src/lib-components/NsInfoCard.vue +37 -13
- package/src/lib-components/NsInlineNotification.vue +5 -0
- package/src/lib-components/NsLottieAnimation.vue +4 -0
- package/src/lib-components/NsMenuDivider.vue +4 -0
- package/src/lib-components/NsMenuItem.vue +4 -0
- package/src/lib-components/NsMeterChart.vue +4 -0
- package/src/lib-components/NsModal.vue +4 -0
- package/src/lib-components/NsMultiSelect.vue +4 -0
- package/src/lib-components/NsPagination.vue +4 -0
- package/src/lib-components/NsPasswordInput.vue +4 -0
- package/src/lib-components/NsPictogram.vue +4 -0
- package/src/lib-components/NsProgressBar.vue +4 -0
- package/src/lib-components/NsSlider.vue +4 -0
- package/src/lib-components/NsStatusCard.vue +4 -0
- package/src/lib-components/NsSvg.vue +4 -0
- package/src/lib-components/NsSystemLogsCard.vue +4 -0
- package/src/lib-components/NsSystemdServiceCard.vue +4 -0
- package/src/lib-components/NsTabs.vue +4 -0
- package/src/lib-components/NsTag.vue +4 -0
- package/src/lib-components/NsTextInput.vue +4 -0
- package/src/lib-components/NsTile.vue +4 -0
- package/src/lib-components/NsTimePicker.vue +4 -0
- package/src/lib-components/NsToastNotification.vue +4 -0
- package/src/lib-components/NsToggle.vue +4 -0
- package/src/lib-components/NsWizard.vue +4 -0
- package/src/lib-components/pictograms/BulldozerPictogram.vue +4 -0
- package/src/lib-components/pictograms/ExclamationMarkPictogram.vue +4 -0
- package/src/lib-components/pictograms/FaceSatisfiedPictogram.vue +15 -0
- package/src/lib-components/pictograms/FolderPictogram.vue +13 -0
- package/src/lib-components/pictograms/GearPictogram.vue +4 -0
- package/src/lib-components/pictograms/GroupPictogram.vue +4 -0
- package/src/lib-components/pictograms/HardDrivePictogram.vue +4 -0
- package/src/lib-components/pictograms/LovePictogram.vue +4 -0
- package/src/lib-components/pictograms/UserPictogram.vue +4 -0
- package/src/lib-components/pictograms/UserProfilePictogram.vue +4 -0
- package/src/lib-components/pictograms/WarningPictogram.vue +4 -0
package/package.json
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Copyright (C) 2023 Nethesis S.r.l.
|
|
3
|
+
SPDX-License-Identifier: GPL-3.0-or-later
|
|
4
|
+
-->
|
|
1
5
|
<template>
|
|
2
6
|
<NsModal
|
|
3
7
|
kind="danger"
|
|
@@ -5,7 +9,7 @@
|
|
|
5
9
|
:visible="isShown"
|
|
6
10
|
@modal-hidden="onModalHidden"
|
|
7
11
|
@primary-click="confirmDelete"
|
|
8
|
-
:primary-button-disabled="name !== userInput"
|
|
12
|
+
:primary-button-disabled="name !== userInput || loading"
|
|
9
13
|
>
|
|
10
14
|
<template slot="title">{{ title }}</template>
|
|
11
15
|
<template slot="content">
|
|
@@ -93,6 +97,10 @@ export default {
|
|
|
93
97
|
type: String,
|
|
94
98
|
default: "",
|
|
95
99
|
},
|
|
100
|
+
loading: {
|
|
101
|
+
type: Boolean,
|
|
102
|
+
default: false,
|
|
103
|
+
},
|
|
96
104
|
},
|
|
97
105
|
data() {
|
|
98
106
|
return {
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Copyright (C) 2023 Nethesis S.r.l.
|
|
3
|
+
SPDX-License-Identifier: GPL-3.0-or-later
|
|
4
|
+
-->
|
|
1
5
|
<template>
|
|
2
6
|
<cv-tile kind="standard" :light="light" class="info-card ns-card">
|
|
3
7
|
<!-- overflow menu -->
|
|
@@ -18,24 +22,26 @@
|
|
|
18
22
|
<cv-skeleton-text
|
|
19
23
|
:paragraph="true"
|
|
20
24
|
:line-count="3"
|
|
25
|
+
heading
|
|
21
26
|
class="skeleton"
|
|
22
27
|
></cv-skeleton-text>
|
|
23
28
|
</div>
|
|
24
29
|
<template v-else>
|
|
25
30
|
<div v-if="title" class="row">
|
|
26
|
-
|
|
27
|
-
<cv-tooltip
|
|
31
|
+
<h3 class="title">{{ title }}</h3>
|
|
32
|
+
<cv-interactive-tooltip
|
|
28
33
|
v-if="titleTooltip"
|
|
29
|
-
alignment="
|
|
30
|
-
direction="
|
|
31
|
-
|
|
34
|
+
:alignment="titleTooltipAlignment"
|
|
35
|
+
:direction="titleTooltipDirection"
|
|
36
|
+
class="info title-tooltip"
|
|
32
37
|
>
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
</
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
<template slot="trigger">
|
|
39
|
+
<Information16 />
|
|
40
|
+
</template>
|
|
41
|
+
<template slot="content">
|
|
42
|
+
<div v-html="titleTooltip"></div>
|
|
43
|
+
</template>
|
|
44
|
+
</cv-interactive-tooltip>
|
|
39
45
|
</div>
|
|
40
46
|
<div v-if="description" class="row">
|
|
41
47
|
<div class="description">{{ description }}</div>
|
|
@@ -51,10 +57,11 @@
|
|
|
51
57
|
<script>
|
|
52
58
|
import NsSvg from "./NsSvg.vue";
|
|
53
59
|
import NsInlineNotification from "./NsInlineNotification.vue";
|
|
60
|
+
import Information16 from "@carbon/icons-vue/es/information/16";
|
|
54
61
|
|
|
55
62
|
export default {
|
|
56
63
|
name: "NsInfoCard",
|
|
57
|
-
components: { NsSvg, NsInlineNotification },
|
|
64
|
+
components: { NsSvg, NsInlineNotification, Information16 },
|
|
58
65
|
props: {
|
|
59
66
|
title: {
|
|
60
67
|
type: String,
|
|
@@ -68,6 +75,18 @@ export default {
|
|
|
68
75
|
type: String,
|
|
69
76
|
required: false,
|
|
70
77
|
},
|
|
78
|
+
titleTooltipAlignment: {
|
|
79
|
+
type: String,
|
|
80
|
+
required: false,
|
|
81
|
+
default: "center",
|
|
82
|
+
validator: (val) => ["start", "center", "end"].includes(val),
|
|
83
|
+
},
|
|
84
|
+
titleTooltipDirection: {
|
|
85
|
+
type: String,
|
|
86
|
+
required: false,
|
|
87
|
+
default: "bottom",
|
|
88
|
+
validator: (val) => ["top", "right", "bottom", "left"].includes(val),
|
|
89
|
+
},
|
|
71
90
|
icon: {
|
|
72
91
|
type: [String, Object],
|
|
73
92
|
default: undefined,
|
|
@@ -127,6 +146,11 @@ export default {
|
|
|
127
146
|
white-space: nowrap;
|
|
128
147
|
}
|
|
129
148
|
|
|
149
|
+
.title-tooltip {
|
|
150
|
+
position: relative;
|
|
151
|
+
top: -2px;
|
|
152
|
+
}
|
|
153
|
+
|
|
130
154
|
.description {
|
|
131
155
|
margin-left: 0.25rem;
|
|
132
156
|
margin-right: 0.25rem;
|
|
@@ -135,4 +159,4 @@ export default {
|
|
|
135
159
|
.slot {
|
|
136
160
|
margin-top: 0.5rem;
|
|
137
161
|
}
|
|
138
|
-
</style>
|
|
162
|
+
</style>
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Copyright (C) 2023 Nethesis S.r.l.
|
|
3
|
+
SPDX-License-Identifier: GPL-3.0-or-later
|
|
4
|
+
-->
|
|
1
5
|
<template>
|
|
2
6
|
<div
|
|
3
7
|
data-notification
|
|
@@ -20,6 +24,7 @@
|
|
|
20
24
|
/>
|
|
21
25
|
<div :class="`${carbonPrefix}--inline-notification__text-wrapper`">
|
|
22
26
|
<p
|
|
27
|
+
v-if="title"
|
|
23
28
|
:class="`${carbonPrefix}--inline-notification__title title`"
|
|
24
29
|
v-html="title"
|
|
25
30
|
></p>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Copyright (C) 2023 Nethesis S.r.l.
|
|
3
|
+
SPDX-License-Identifier: GPL-3.0-or-later
|
|
4
|
+
-->
|
|
5
|
+
<template>
|
|
6
|
+
<path
|
|
7
|
+
id="face--satisfied_1_"
|
|
8
|
+
d="M10.75,13c0,0.414-0.336,0.75-0.75,0.75S9.25,13.414,9.25,13s0.336-0.75,0.75-0.75
|
|
9
|
+
S10.75,12.586,10.75,13z M22,12.25c-0.414,0-0.75,0.336-0.75,0.75s0.336,0.75,0.75,0.75s0.75-0.336,0.75-0.75S22.414,12.25,22,12.25
|
|
10
|
+
z M16,31.36C7.53,31.36,0.64,24.47,0.64,16S7.53,0.64,16,0.64S31.36,7.53,31.36,16S24.47,31.36,16,31.36z M16,1.36
|
|
11
|
+
C7.927,1.36,1.36,7.927,1.36,16c0,8.072,6.567,14.64,14.64,14.64c8.072,0,14.64-6.567,14.64-14.64S24.072,1.36,16,1.36z M16,23.36
|
|
12
|
+
c-4.145,0-6.213-3.031-6.299-3.161L10.3,19.8c0.019,0.028,1.952,2.84,5.701,2.84s5.682-2.812,5.701-2.84l0.599,0.399
|
|
13
|
+
C22.214,20.329,20.145,23.36,16,23.36z"
|
|
14
|
+
/>
|
|
15
|
+
</template>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Copyright (C) 2023 Nethesis S.r.l.
|
|
3
|
+
SPDX-License-Identifier: GPL-3.0-or-later
|
|
4
|
+
-->
|
|
5
|
+
<template>
|
|
6
|
+
<path
|
|
7
|
+
id="folder"
|
|
8
|
+
d="M30,27.36H2c-0.75,0-1.36-0.61-1.36-1.36V4c0-0.75,0.61-1.36,1.36-1.36h8.5c0.425,0,0.833,0.203,1.088,0.543
|
|
9
|
+
l1.416,2.223C13.108,5.544,13.299,5.64,13.5,5.64H30c0.75,0,1.36,0.61,1.36,1.36v19C31.36,26.75,30.75,27.36,30,27.36z M2,3.36
|
|
10
|
+
C1.647,3.36,1.36,3.647,1.36,4v22c0,0.353,0.287,0.64,0.64,0.64h28c0.353,0,0.64-0.287,0.64-0.64V7c0-0.353-0.287-0.64-0.64-0.64
|
|
11
|
+
H13.5c-0.426,0-0.833-0.203-1.088-0.544l-1.416-2.223C10.892,3.456,10.7,3.36,10.5,3.36H2z"
|
|
12
|
+
/>
|
|
13
|
+
</template>
|