@nethserver/ns8-ui-lib 1.12.1 → 1.12.3

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@nethserver/ns8-ui-lib",
3
- "version": "1.12.1",
3
+ "version": "1.12.3",
4
4
  "description": "Vue.js library for NethServer 8 UI",
5
5
  "keywords": [
6
6
  "nethserver",
@@ -53,7 +53,7 @@
53
53
  "mark.js": "^8.11.1",
54
54
  "minimist": "^1.2.5",
55
55
  "rollup": "^2.53.2",
56
- "rollup-plugin-terser": "^7.0.2",
56
+ "@rollup/plugin-terser": "^0.4.0",
57
57
  "rollup-plugin-vue": "^5.1.9",
58
58
  "vue": "^2.6.12",
59
59
  "vue-template-compiler": "^2.6.12"
@@ -46,25 +46,25 @@
46
46
  :timeLimit="timer"
47
47
  :size="16"
48
48
  :strokeWidth="20"
49
- color="white"
49
+ :color="lowContrast ? undefined : 'white'"
50
50
  />
51
51
  </p>
52
52
  </div>
53
53
  </div>
54
- <button
54
+ <NsButton
55
55
  v-if="actionLabel"
56
56
  @click="$emit('action')"
57
+ :loading="loadingAction"
58
+ kind="ghost"
59
+ size="sm"
60
+ type="button"
57
61
  :class="[
58
62
  `${carbonPrefix}--inline-notification__action-button`,
59
- `${carbonPrefix}--btn`,
60
- `${carbonPrefix}--btn--sm`,
61
- `${carbonPrefix}--btn--ghost`,
62
63
  'action-button'
63
64
  ]"
64
- type="button"
65
65
  >
66
66
  {{ actionLabel }}
67
- </button>
67
+ </NsButton>
68
68
  <button
69
69
  v-if="showCloseButton"
70
70
  type="button"
@@ -81,11 +81,12 @@
81
81
  <script>
82
82
  import { CvInlineNotification } from "@carbon/vue";
83
83
  import NsCircleTimer from "./NsCircleTimer.vue";
84
+ import NsButton from "./NsButton.vue";
84
85
 
85
86
  export default {
86
87
  name: "NsInlineNotification",
87
88
  extends: CvInlineNotification,
88
- components: { NsCircleTimer },
89
+ components: { NsCircleTimer, NsButton },
89
90
  props: {
90
91
  showCloseButton: {
91
92
  type: Boolean,
@@ -107,6 +108,10 @@ export default {
107
108
  type: Boolean,
108
109
  default: false
109
110
  },
111
+ loadingAction: {
112
+ type: Boolean,
113
+ default: false
114
+ },
110
115
  timer: {
111
116
  type: Number
112
117
  }