@nethserver/ns8-ui-lib 0.0.32 → 0.0.36
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 +283 -86
- package/dist/ns8-ui-lib.min.js +1 -1
- package/dist/ns8-ui-lib.ssr.js +252 -90
- package/package.json +1 -1
- package/src/lib-components/NsCircleTimer.vue +109 -0
- package/src/lib-components/NsDangerDeleteModal.vue +2 -0
- package/src/lib-components/NsInfoCard.vue +9 -1
- package/src/lib-components/NsInlineNotification.vue +21 -1
package/dist/ns8-ui-lib.esm.js
CHANGED
|
@@ -53,12 +53,17 @@ import ZoomIn20 from '@carbon/icons-vue/es/zoom--in/20';
|
|
|
53
53
|
import Events32 from '@carbon/icons-vue/es/events/32';
|
|
54
54
|
import Link32 from '@carbon/icons-vue/es/link/32';
|
|
55
55
|
import WarningAlt32 from '@carbon/icons-vue/es/warning--alt/32';
|
|
56
|
+
import WarningAlt20 from '@carbon/icons-vue/es/warning--alt/20';
|
|
56
57
|
import Tools32 from '@carbon/icons-vue/es/tools/32';
|
|
57
58
|
import Network_220 from '@carbon/icons-vue/es/network--2/20';
|
|
58
59
|
import Network_232 from '@carbon/icons-vue/es/network--2/32';
|
|
60
|
+
import DataBase20 from '@carbon/icons-vue/es/data--base/20';
|
|
61
|
+
import DataBase32 from '@carbon/icons-vue/es/data--base/32';
|
|
62
|
+
import DataBackup20 from '@carbon/icons-vue/es/data-backup/20';
|
|
63
|
+
import DataBackup32 from '@carbon/icons-vue/es/data-backup/32';
|
|
59
64
|
|
|
60
65
|
//
|
|
61
|
-
var script$
|
|
66
|
+
var script$i = {
|
|
62
67
|
name: "NsButton",
|
|
63
68
|
extends: CvButton,
|
|
64
69
|
props: {
|
|
@@ -221,10 +226,10 @@ function addStyle(id, css) {
|
|
|
221
226
|
}
|
|
222
227
|
|
|
223
228
|
/* script */
|
|
224
|
-
const __vue_script__$
|
|
229
|
+
const __vue_script__$i = script$i;
|
|
225
230
|
/* template */
|
|
226
231
|
|
|
227
|
-
var __vue_render__$
|
|
232
|
+
var __vue_render__$n = function () {
|
|
228
233
|
var _vm = this;
|
|
229
234
|
|
|
230
235
|
var _h = _vm.$createElement;
|
|
@@ -247,10 +252,10 @@ var __vue_render__$m = function () {
|
|
|
247
252
|
}) : _vm._e()], 2);
|
|
248
253
|
};
|
|
249
254
|
|
|
250
|
-
var __vue_staticRenderFns__$
|
|
255
|
+
var __vue_staticRenderFns__$n = [];
|
|
251
256
|
/* style */
|
|
252
257
|
|
|
253
|
-
const __vue_inject_styles__$
|
|
258
|
+
const __vue_inject_styles__$o = function (inject) {
|
|
254
259
|
if (!inject) return;
|
|
255
260
|
inject("data-v-025b0f12_0", {
|
|
256
261
|
source: ".bx--btn .bx--btn__icon[data-v-025b0f12]{width:1.25rem;height:1.25rem}.bx--btn.bx--btn--sm .bx--btn__icon[data-v-025b0f12]{width:1rem;height:1rem}.loader[data-v-025b0f12]{right:1rem;border:3px solid transparent;border-radius:50%;border-top:3px solid currentColor;border-right:3px solid currentColor;border-bottom:3px solid currentColor;animation:spin-data-v-025b0f12 .5s linear infinite}.bx--btn--ghost .bx--btn__icon.loading[data-v-025b0f12]{position:static;margin-left:.5rem}.bx--btn--danger--ghost .bx--btn__icon.loading[data-v-025b0f12],.bx--btn--danger-ghost .bx--btn__icon.loading[data-v-025b0f12]{position:static;margin-left:.5rem}@keyframes spin-data-v-025b0f12{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}",
|
|
@@ -261,23 +266,23 @@ const __vue_inject_styles__$n = function (inject) {
|
|
|
261
266
|
/* scoped */
|
|
262
267
|
|
|
263
268
|
|
|
264
|
-
const __vue_scope_id__$
|
|
269
|
+
const __vue_scope_id__$o = "data-v-025b0f12";
|
|
265
270
|
/* module identifier */
|
|
266
271
|
|
|
267
|
-
const __vue_module_identifier__$
|
|
272
|
+
const __vue_module_identifier__$o = undefined;
|
|
268
273
|
/* functional template */
|
|
269
274
|
|
|
270
|
-
const __vue_is_functional_template__$
|
|
275
|
+
const __vue_is_functional_template__$o = false;
|
|
271
276
|
/* style inject SSR */
|
|
272
277
|
|
|
273
278
|
/* style inject shadow dom */
|
|
274
279
|
|
|
275
|
-
const __vue_component__$
|
|
276
|
-
render: __vue_render__$
|
|
277
|
-
staticRenderFns: __vue_staticRenderFns__$
|
|
278
|
-
}, __vue_inject_styles__$
|
|
280
|
+
const __vue_component__$F = /*#__PURE__*/normalizeComponent({
|
|
281
|
+
render: __vue_render__$n,
|
|
282
|
+
staticRenderFns: __vue_staticRenderFns__$n
|
|
283
|
+
}, __vue_inject_styles__$o, __vue_script__$i, __vue_scope_id__$o, __vue_is_functional_template__$o, __vue_module_identifier__$o, false, createInjector, undefined, undefined);
|
|
279
284
|
|
|
280
|
-
var __vue_component__$
|
|
285
|
+
var __vue_component__$G = __vue_component__$F;
|
|
281
286
|
|
|
282
287
|
//
|
|
283
288
|
//
|
|
@@ -295,7 +300,7 @@ var __vue_component__$F = __vue_component__$E;
|
|
|
295
300
|
//
|
|
296
301
|
//
|
|
297
302
|
//
|
|
298
|
-
var script$
|
|
303
|
+
var script$h = {
|
|
299
304
|
name: "NsPictogram",
|
|
300
305
|
props: {
|
|
301
306
|
title: {
|
|
@@ -318,10 +323,10 @@ var script$g = {
|
|
|
318
323
|
};
|
|
319
324
|
|
|
320
325
|
/* script */
|
|
321
|
-
const __vue_script__$
|
|
326
|
+
const __vue_script__$h = script$h;
|
|
322
327
|
/* template */
|
|
323
328
|
|
|
324
|
-
var __vue_render__$
|
|
329
|
+
var __vue_render__$m = function () {
|
|
325
330
|
var _vm = this;
|
|
326
331
|
|
|
327
332
|
var _h = _vm.$createElement;
|
|
@@ -349,34 +354,34 @@ var __vue_render__$l = function () {
|
|
|
349
354
|
}, [_vm._t("default")], 2)]);
|
|
350
355
|
};
|
|
351
356
|
|
|
352
|
-
var __vue_staticRenderFns__$
|
|
357
|
+
var __vue_staticRenderFns__$m = [];
|
|
353
358
|
/* style */
|
|
354
359
|
|
|
355
|
-
const __vue_inject_styles__$
|
|
360
|
+
const __vue_inject_styles__$n = undefined;
|
|
356
361
|
/* scoped */
|
|
357
362
|
|
|
358
|
-
const __vue_scope_id__$
|
|
363
|
+
const __vue_scope_id__$n = undefined;
|
|
359
364
|
/* module identifier */
|
|
360
365
|
|
|
361
|
-
const __vue_module_identifier__$
|
|
366
|
+
const __vue_module_identifier__$n = undefined;
|
|
362
367
|
/* functional template */
|
|
363
368
|
|
|
364
|
-
const __vue_is_functional_template__$
|
|
369
|
+
const __vue_is_functional_template__$n = false;
|
|
365
370
|
/* style inject */
|
|
366
371
|
|
|
367
372
|
/* style inject SSR */
|
|
368
373
|
|
|
369
374
|
/* style inject shadow dom */
|
|
370
375
|
|
|
371
|
-
const __vue_component__$
|
|
372
|
-
render: __vue_render__$
|
|
373
|
-
staticRenderFns: __vue_staticRenderFns__$
|
|
374
|
-
}, __vue_inject_styles__$
|
|
376
|
+
const __vue_component__$E = /*#__PURE__*/normalizeComponent({
|
|
377
|
+
render: __vue_render__$m,
|
|
378
|
+
staticRenderFns: __vue_staticRenderFns__$m
|
|
379
|
+
}, __vue_inject_styles__$n, __vue_script__$h, __vue_scope_id__$n, __vue_is_functional_template__$n, __vue_module_identifier__$n, false, undefined, undefined, undefined);
|
|
375
380
|
|
|
376
|
-
var NsPictogram = __vue_component__$
|
|
381
|
+
var NsPictogram = __vue_component__$E;
|
|
377
382
|
|
|
378
383
|
//
|
|
379
|
-
var script$
|
|
384
|
+
var script$g = {
|
|
380
385
|
name: "NsLottieAnimation",
|
|
381
386
|
components: {
|
|
382
387
|
LottieAnimation
|
|
@@ -432,10 +437,10 @@ var script$f = {
|
|
|
432
437
|
};
|
|
433
438
|
|
|
434
439
|
/* script */
|
|
435
|
-
const __vue_script__$
|
|
440
|
+
const __vue_script__$g = script$g;
|
|
436
441
|
/* template */
|
|
437
442
|
|
|
438
|
-
var __vue_render__$
|
|
443
|
+
var __vue_render__$l = function () {
|
|
439
444
|
var _vm = this;
|
|
440
445
|
|
|
441
446
|
var _h = _vm.$createElement;
|
|
@@ -462,36 +467,36 @@ var __vue_render__$k = function () {
|
|
|
462
467
|
})], 1);
|
|
463
468
|
};
|
|
464
469
|
|
|
465
|
-
var __vue_staticRenderFns__$
|
|
470
|
+
var __vue_staticRenderFns__$l = [];
|
|
466
471
|
/* style */
|
|
467
472
|
|
|
468
|
-
const __vue_inject_styles__$
|
|
473
|
+
const __vue_inject_styles__$m = undefined;
|
|
469
474
|
/* scoped */
|
|
470
475
|
|
|
471
|
-
const __vue_scope_id__$
|
|
476
|
+
const __vue_scope_id__$m = "data-v-14e97a70";
|
|
472
477
|
/* module identifier */
|
|
473
478
|
|
|
474
|
-
const __vue_module_identifier__$
|
|
479
|
+
const __vue_module_identifier__$m = undefined;
|
|
475
480
|
/* functional template */
|
|
476
481
|
|
|
477
|
-
const __vue_is_functional_template__$
|
|
482
|
+
const __vue_is_functional_template__$m = false;
|
|
478
483
|
/* style inject */
|
|
479
484
|
|
|
480
485
|
/* style inject SSR */
|
|
481
486
|
|
|
482
487
|
/* style inject shadow dom */
|
|
483
488
|
|
|
484
|
-
const __vue_component__$
|
|
485
|
-
render: __vue_render__$
|
|
486
|
-
staticRenderFns: __vue_staticRenderFns__$
|
|
487
|
-
}, __vue_inject_styles__$
|
|
489
|
+
const __vue_component__$D = /*#__PURE__*/normalizeComponent({
|
|
490
|
+
render: __vue_render__$l,
|
|
491
|
+
staticRenderFns: __vue_staticRenderFns__$l
|
|
492
|
+
}, __vue_inject_styles__$m, __vue_script__$g, __vue_scope_id__$m, __vue_is_functional_template__$m, __vue_module_identifier__$m, false, undefined, undefined, undefined);
|
|
488
493
|
|
|
489
|
-
var NsLottieAnimation = __vue_component__$
|
|
494
|
+
var NsLottieAnimation = __vue_component__$D;
|
|
490
495
|
|
|
491
496
|
/* script */
|
|
492
497
|
|
|
493
498
|
/* template */
|
|
494
|
-
var __vue_render__$
|
|
499
|
+
var __vue_render__$k = function () {
|
|
495
500
|
var _vm = this;
|
|
496
501
|
|
|
497
502
|
var _h = _vm.$createElement;
|
|
@@ -506,34 +511,34 @@ var __vue_render__$j = function () {
|
|
|
506
511
|
});
|
|
507
512
|
};
|
|
508
513
|
|
|
509
|
-
var __vue_staticRenderFns__$
|
|
514
|
+
var __vue_staticRenderFns__$k = [];
|
|
510
515
|
/* style */
|
|
511
516
|
|
|
512
|
-
const __vue_inject_styles__$
|
|
517
|
+
const __vue_inject_styles__$l = undefined;
|
|
513
518
|
/* scoped */
|
|
514
519
|
|
|
515
|
-
const __vue_scope_id__$
|
|
520
|
+
const __vue_scope_id__$l = undefined;
|
|
516
521
|
/* module identifier */
|
|
517
522
|
|
|
518
|
-
const __vue_module_identifier__$
|
|
523
|
+
const __vue_module_identifier__$l = undefined;
|
|
519
524
|
/* functional template */
|
|
520
525
|
|
|
521
|
-
const __vue_is_functional_template__$
|
|
526
|
+
const __vue_is_functional_template__$l = false;
|
|
522
527
|
/* style inject */
|
|
523
528
|
|
|
524
529
|
/* style inject SSR */
|
|
525
530
|
|
|
526
531
|
/* style inject shadow dom */
|
|
527
532
|
|
|
528
|
-
const __vue_component__$
|
|
529
|
-
render: __vue_render__$
|
|
530
|
-
staticRenderFns: __vue_staticRenderFns__$
|
|
531
|
-
}, __vue_inject_styles__$
|
|
533
|
+
const __vue_component__$C = /*#__PURE__*/normalizeComponent({
|
|
534
|
+
render: __vue_render__$k,
|
|
535
|
+
staticRenderFns: __vue_staticRenderFns__$k
|
|
536
|
+
}, __vue_inject_styles__$l, {}, __vue_scope_id__$l, __vue_is_functional_template__$l, __vue_module_identifier__$l, false, undefined, undefined, undefined);
|
|
532
537
|
|
|
533
|
-
var ExclamationMark = __vue_component__$
|
|
538
|
+
var ExclamationMark = __vue_component__$C;
|
|
534
539
|
|
|
535
540
|
//
|
|
536
|
-
var script$
|
|
541
|
+
var script$f = {
|
|
537
542
|
name: "NsEmptyState",
|
|
538
543
|
components: {
|
|
539
544
|
NsPictogram,
|
|
@@ -565,10 +570,10 @@ var script$e = {
|
|
|
565
570
|
};
|
|
566
571
|
|
|
567
572
|
/* script */
|
|
568
|
-
const __vue_script__$
|
|
573
|
+
const __vue_script__$f = script$f;
|
|
569
574
|
/* template */
|
|
570
575
|
|
|
571
|
-
var __vue_render__$
|
|
576
|
+
var __vue_render__$j = function () {
|
|
572
577
|
var _vm = this;
|
|
573
578
|
|
|
574
579
|
var _h = _vm.$createElement;
|
|
@@ -598,10 +603,10 @@ var __vue_render__$i = function () {
|
|
|
598
603
|
}, [_vm._t("description")], 2)] : _vm._e()], 2);
|
|
599
604
|
};
|
|
600
605
|
|
|
601
|
-
var __vue_staticRenderFns__$
|
|
606
|
+
var __vue_staticRenderFns__$j = [];
|
|
602
607
|
/* style */
|
|
603
608
|
|
|
604
|
-
const __vue_inject_styles__$
|
|
609
|
+
const __vue_inject_styles__$k = function (inject) {
|
|
605
610
|
if (!inject) return;
|
|
606
611
|
inject("data-v-d5a46c1c_0", {
|
|
607
612
|
source: ".empty-state[data-v-d5a46c1c]{text-align:center;padding:2rem}.empty-state .image[data-v-d5a46c1c]{margin-bottom:1rem}.empty-state .description[data-v-d5a46c1c]{margin-top:1rem}.animation[data-v-d5a46c1c]{display:inline-block;width:64px;height:64px}",
|
|
@@ -612,26 +617,26 @@ const __vue_inject_styles__$j = function (inject) {
|
|
|
612
617
|
/* scoped */
|
|
613
618
|
|
|
614
619
|
|
|
615
|
-
const __vue_scope_id__$
|
|
620
|
+
const __vue_scope_id__$k = "data-v-d5a46c1c";
|
|
616
621
|
/* module identifier */
|
|
617
622
|
|
|
618
|
-
const __vue_module_identifier__$
|
|
623
|
+
const __vue_module_identifier__$k = undefined;
|
|
619
624
|
/* functional template */
|
|
620
625
|
|
|
621
|
-
const __vue_is_functional_template__$
|
|
626
|
+
const __vue_is_functional_template__$k = false;
|
|
622
627
|
/* style inject SSR */
|
|
623
628
|
|
|
624
629
|
/* style inject shadow dom */
|
|
625
630
|
|
|
626
|
-
const __vue_component__$
|
|
627
|
-
render: __vue_render__$
|
|
628
|
-
staticRenderFns: __vue_staticRenderFns__$
|
|
629
|
-
}, __vue_inject_styles__$
|
|
631
|
+
const __vue_component__$A = /*#__PURE__*/normalizeComponent({
|
|
632
|
+
render: __vue_render__$j,
|
|
633
|
+
staticRenderFns: __vue_staticRenderFns__$j
|
|
634
|
+
}, __vue_inject_styles__$k, __vue_script__$f, __vue_scope_id__$k, __vue_is_functional_template__$k, __vue_module_identifier__$k, false, createInjector, undefined, undefined);
|
|
630
635
|
|
|
631
|
-
var __vue_component__$
|
|
636
|
+
var __vue_component__$B = __vue_component__$A;
|
|
632
637
|
|
|
633
638
|
//
|
|
634
|
-
var script$
|
|
639
|
+
var script$e = {
|
|
635
640
|
name: "NsCodeSnippet",
|
|
636
641
|
components: {
|
|
637
642
|
CvButton,
|
|
@@ -743,10 +748,10 @@ var script$d = {
|
|
|
743
748
|
};
|
|
744
749
|
|
|
745
750
|
/* script */
|
|
746
|
-
const __vue_script__$
|
|
751
|
+
const __vue_script__$e = script$e;
|
|
747
752
|
/* template */
|
|
748
753
|
|
|
749
|
-
var __vue_render__$
|
|
754
|
+
var __vue_render__$i = function () {
|
|
750
755
|
var _vm = this;
|
|
751
756
|
|
|
752
757
|
var _h = _vm.$createElement;
|
|
@@ -808,10 +813,10 @@ var __vue_render__$h = function () {
|
|
|
808
813
|
})], 1) : _vm._e()], 1);
|
|
809
814
|
};
|
|
810
815
|
|
|
811
|
-
var __vue_staticRenderFns__$
|
|
816
|
+
var __vue_staticRenderFns__$i = [];
|
|
812
817
|
/* style */
|
|
813
818
|
|
|
814
|
-
const __vue_inject_styles__$
|
|
819
|
+
const __vue_inject_styles__$j = function (inject) {
|
|
815
820
|
if (!inject) return;
|
|
816
821
|
inject("data-v-59cb538c_0", {
|
|
817
822
|
source: ".bx--snippet--multi .bx--snippet-container[data-v-59cb538c]{min-height:4.5rem;max-height:9.6rem;overflow-y:hidden}.bx--snippet--multi .bx--snippet-container.no-expand[data-v-59cb538c]{min-height:2.5rem}.bx--snippet--multi.bx--snippet--expand .bx--snippet-container[data-v-59cb538c]{max-height:100%}.bx--snippet--multi .bx--copy-btn[data-v-59cb538c]{position:absolute!important;top:.5rem;right:.5rem;z-index:11;width:3rem;height:2rem}.bx--snippet-btn--expand[data-v-59cb538c]{right:.5rem;bottom:.5rem}",
|
|
@@ -822,7 +827,167 @@ const __vue_inject_styles__$i = function (inject) {
|
|
|
822
827
|
/* scoped */
|
|
823
828
|
|
|
824
829
|
|
|
825
|
-
const __vue_scope_id__$
|
|
830
|
+
const __vue_scope_id__$j = "data-v-59cb538c";
|
|
831
|
+
/* module identifier */
|
|
832
|
+
|
|
833
|
+
const __vue_module_identifier__$j = undefined;
|
|
834
|
+
/* functional template */
|
|
835
|
+
|
|
836
|
+
const __vue_is_functional_template__$j = false;
|
|
837
|
+
/* style inject SSR */
|
|
838
|
+
|
|
839
|
+
/* style inject shadow dom */
|
|
840
|
+
|
|
841
|
+
const __vue_component__$y = /*#__PURE__*/normalizeComponent({
|
|
842
|
+
render: __vue_render__$i,
|
|
843
|
+
staticRenderFns: __vue_staticRenderFns__$i
|
|
844
|
+
}, __vue_inject_styles__$j, __vue_script__$e, __vue_scope_id__$j, __vue_is_functional_template__$j, __vue_module_identifier__$j, false, createInjector, undefined, undefined);
|
|
845
|
+
|
|
846
|
+
var __vue_component__$z = __vue_component__$y;
|
|
847
|
+
|
|
848
|
+
//
|
|
849
|
+
//
|
|
850
|
+
//
|
|
851
|
+
//
|
|
852
|
+
//
|
|
853
|
+
//
|
|
854
|
+
//
|
|
855
|
+
//
|
|
856
|
+
//
|
|
857
|
+
//
|
|
858
|
+
//
|
|
859
|
+
//
|
|
860
|
+
//
|
|
861
|
+
//
|
|
862
|
+
//
|
|
863
|
+
//
|
|
864
|
+
//
|
|
865
|
+
//
|
|
866
|
+
//
|
|
867
|
+
//
|
|
868
|
+
//
|
|
869
|
+
//
|
|
870
|
+
//
|
|
871
|
+
//
|
|
872
|
+
//
|
|
873
|
+
//
|
|
874
|
+
//
|
|
875
|
+
//
|
|
876
|
+
//
|
|
877
|
+
var script$d = {
|
|
878
|
+
name: "NsCircleTimer",
|
|
879
|
+
props: {
|
|
880
|
+
timeLimit: {
|
|
881
|
+
type: Number,
|
|
882
|
+
// milliseconds
|
|
883
|
+
required: true
|
|
884
|
+
},
|
|
885
|
+
size: {
|
|
886
|
+
type: Number,
|
|
887
|
+
default: 16
|
|
888
|
+
},
|
|
889
|
+
strokeWidth: {
|
|
890
|
+
type: Number,
|
|
891
|
+
default: 20
|
|
892
|
+
},
|
|
893
|
+
color: {
|
|
894
|
+
type: String,
|
|
895
|
+
default: "#00a2de"
|
|
896
|
+
}
|
|
897
|
+
},
|
|
898
|
+
|
|
899
|
+
data() {
|
|
900
|
+
return {
|
|
901
|
+
timerInterval: null,
|
|
902
|
+
timePassed: 0,
|
|
903
|
+
timeLeft: -1 // length = 2πr = 2 * π * 40 = 251
|
|
904
|
+
|
|
905
|
+
};
|
|
906
|
+
},
|
|
907
|
+
|
|
908
|
+
computed: {
|
|
909
|
+
circleDasharray() {
|
|
910
|
+
return `${(this.calculateTimeFraction() * 251).toFixed(0)} 251`;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
},
|
|
914
|
+
|
|
915
|
+
created() {
|
|
916
|
+
this.timeLimitSeconds = (this.timeLimit - 1000) / 1000;
|
|
917
|
+
this.timeLeft = this.timeLimitSeconds;
|
|
918
|
+
this.timerInterval = setInterval(() => {
|
|
919
|
+
this.timePassed += 1;
|
|
920
|
+
this.timeLeft = this.timeLimitSeconds - this.timePassed;
|
|
921
|
+
}, 1000);
|
|
922
|
+
},
|
|
923
|
+
|
|
924
|
+
beforeDestroy() {
|
|
925
|
+
clearInterval(this.timerInterval);
|
|
926
|
+
},
|
|
927
|
+
|
|
928
|
+
methods: {
|
|
929
|
+
calculateTimeFraction() {
|
|
930
|
+
return this.timeLeft / this.timeLimitSeconds;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
}
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
/* script */
|
|
937
|
+
const __vue_script__$d = script$d;
|
|
938
|
+
/* template */
|
|
939
|
+
|
|
940
|
+
var __vue_render__$h = function () {
|
|
941
|
+
var _vm = this;
|
|
942
|
+
|
|
943
|
+
var _h = _vm.$createElement;
|
|
944
|
+
|
|
945
|
+
var _c = _vm._self._c || _h;
|
|
946
|
+
|
|
947
|
+
return _c('div', {
|
|
948
|
+
staticClass: "base-timer",
|
|
949
|
+
style: {
|
|
950
|
+
height: _vm.size + 'px',
|
|
951
|
+
width: _vm.size + 'px'
|
|
952
|
+
}
|
|
953
|
+
}, [_c('svg', {
|
|
954
|
+
staticClass: "base-timer__svg",
|
|
955
|
+
attrs: {
|
|
956
|
+
"viewBox": "0 0 100 100",
|
|
957
|
+
"xmlns": "http://www.w3.org/2000/svg"
|
|
958
|
+
}
|
|
959
|
+
}, [_c('g', {
|
|
960
|
+
staticClass: "base-timer__circle"
|
|
961
|
+
}, [_c('path', {
|
|
962
|
+
staticClass: "base-timer__path-remaining green",
|
|
963
|
+
style: {
|
|
964
|
+
'stroke-width': _vm.strokeWidth + 'px',
|
|
965
|
+
'stroke-dasharray': _vm.circleDasharray,
|
|
966
|
+
color: _vm.color
|
|
967
|
+
},
|
|
968
|
+
attrs: {
|
|
969
|
+
"id": "base-timer-path-remaining",
|
|
970
|
+
"stroke-dasharray": "251",
|
|
971
|
+
"d": "\n M 50, 50\n m -40, 0\n a 40,40 0 1,0 80,0\n a 40,40 0 1,0 -80,0\n "
|
|
972
|
+
}
|
|
973
|
+
})])])]);
|
|
974
|
+
};
|
|
975
|
+
|
|
976
|
+
var __vue_staticRenderFns__$h = [];
|
|
977
|
+
/* style */
|
|
978
|
+
|
|
979
|
+
const __vue_inject_styles__$i = function (inject) {
|
|
980
|
+
if (!inject) return;
|
|
981
|
+
inject("data-v-45b59790_0", {
|
|
982
|
+
source: ".base-timer[data-v-45b59790]{position:relative}.base-timer__circle[data-v-45b59790]{fill:none;stroke:none}.base-timer__path-remaining[data-v-45b59790]{stroke:currentColor;transform:rotate(90deg);transform-origin:center;transition:1s linear all}.base-timer__svg[data-v-45b59790]{transform:scaleX(-1)}",
|
|
983
|
+
map: undefined,
|
|
984
|
+
media: undefined
|
|
985
|
+
});
|
|
986
|
+
};
|
|
987
|
+
/* scoped */
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
const __vue_scope_id__$i = "data-v-45b59790";
|
|
826
991
|
/* module identifier */
|
|
827
992
|
|
|
828
993
|
const __vue_module_identifier__$i = undefined;
|
|
@@ -838,12 +1003,15 @@ const __vue_component__$x = /*#__PURE__*/normalizeComponent({
|
|
|
838
1003
|
staticRenderFns: __vue_staticRenderFns__$h
|
|
839
1004
|
}, __vue_inject_styles__$i, __vue_script__$d, __vue_scope_id__$i, __vue_is_functional_template__$i, __vue_module_identifier__$i, false, createInjector, undefined, undefined);
|
|
840
1005
|
|
|
841
|
-
var
|
|
1006
|
+
var NsCircleTimer = __vue_component__$x;
|
|
842
1007
|
|
|
843
1008
|
//
|
|
844
1009
|
var script$c = {
|
|
845
1010
|
name: "NsInlineNotification",
|
|
846
1011
|
extends: CvInlineNotification,
|
|
1012
|
+
components: {
|
|
1013
|
+
NsCircleTimer
|
|
1014
|
+
},
|
|
847
1015
|
props: {
|
|
848
1016
|
showCloseButton: {
|
|
849
1017
|
type: Boolean,
|
|
@@ -867,6 +1035,9 @@ var script$c = {
|
|
|
867
1035
|
loading: {
|
|
868
1036
|
type: Boolean,
|
|
869
1037
|
default: false
|
|
1038
|
+
},
|
|
1039
|
+
timer: {
|
|
1040
|
+
type: Number
|
|
870
1041
|
}
|
|
871
1042
|
}
|
|
872
1043
|
};
|
|
@@ -905,14 +1076,21 @@ var __vue_render__$g = function () {
|
|
|
905
1076
|
}
|
|
906
1077
|
}), _vm._v(" "), _vm.description ? _c('p', {
|
|
907
1078
|
class: [_vm.carbonPrefix + "--inline-notification__subtitle", {
|
|
908
|
-
'mg-right': _vm.loading
|
|
1079
|
+
'mg-right': _vm.loading || _vm.timer
|
|
909
1080
|
}],
|
|
910
1081
|
domProps: {
|
|
911
1082
|
"innerHTML": _vm._s(_vm.description)
|
|
912
1083
|
}
|
|
913
1084
|
}) : _vm._e(), _vm._v(" "), _vm.loading ? _c('p', {
|
|
914
1085
|
staticClass: "loader"
|
|
915
|
-
}) : _vm._e()
|
|
1086
|
+
}) : _vm._e(), _vm._v(" "), _vm.timer ? _c('p', [_c('NsCircleTimer', {
|
|
1087
|
+
attrs: {
|
|
1088
|
+
"timeLimit": _vm.timer,
|
|
1089
|
+
"size": 16,
|
|
1090
|
+
"strokeWidth": 20,
|
|
1091
|
+
"color": "white"
|
|
1092
|
+
}
|
|
1093
|
+
})], 1) : _vm._e()])], 1), _vm._v(" "), _vm.actionLabel ? _c('button', {
|
|
916
1094
|
class: [_vm.carbonPrefix + "--inline-notification__action-button", _vm.carbonPrefix + "--btn", _vm.carbonPrefix + "--btn--sm", _vm.carbonPrefix + "--btn--ghost"],
|
|
917
1095
|
attrs: {
|
|
918
1096
|
"type": "button"
|
|
@@ -944,8 +1122,8 @@ var __vue_staticRenderFns__$g = [];
|
|
|
944
1122
|
|
|
945
1123
|
const __vue_inject_styles__$h = function (inject) {
|
|
946
1124
|
if (!inject) return;
|
|
947
|
-
inject("data-v-
|
|
948
|
-
source: ".title[data-v-
|
|
1125
|
+
inject("data-v-1e5d2ff7_0", {
|
|
1126
|
+
source: ".title[data-v-1e5d2ff7]{margin-right:.75rem;margin-bottom:.2rem;font-size:.875rem!important;font-weight:600!important}.mg-right[data-v-1e5d2ff7]{margin-right:.75rem}.details[data-v-1e5d2ff7]{flex-grow:0}.bx--inline-notification__close-button[data-v-1e5d2ff7]{position:absolute!important}.bx--inline-notification__text-wrapper p[data-v-1e5d2ff7]{padding-right:0!important}",
|
|
949
1127
|
map: undefined,
|
|
950
1128
|
media: undefined
|
|
951
1129
|
});
|
|
@@ -953,7 +1131,7 @@ const __vue_inject_styles__$h = function (inject) {
|
|
|
953
1131
|
/* scoped */
|
|
954
1132
|
|
|
955
1133
|
|
|
956
|
-
const __vue_scope_id__$h = "data-v-
|
|
1134
|
+
const __vue_scope_id__$h = "data-v-1e5d2ff7";
|
|
957
1135
|
/* module identifier */
|
|
958
1136
|
|
|
959
1137
|
const __vue_module_identifier__$h = undefined;
|
|
@@ -6090,6 +6268,10 @@ var script$7 = {
|
|
|
6090
6268
|
}
|
|
6091
6269
|
|
|
6092
6270
|
},
|
|
6271
|
+
showOverflowMenu: {
|
|
6272
|
+
type: Boolean,
|
|
6273
|
+
default: false
|
|
6274
|
+
},
|
|
6093
6275
|
light: Boolean
|
|
6094
6276
|
}
|
|
6095
6277
|
};
|
|
@@ -6111,7 +6293,7 @@ var __vue_render__$c = function () {
|
|
|
6111
6293
|
"kind": "standard",
|
|
6112
6294
|
"light": _vm.light
|
|
6113
6295
|
}
|
|
6114
|
-
}, [_vm.icon ? _c('div', {
|
|
6296
|
+
}, [_vm.showOverflowMenu ? _vm._t("menu") : _vm._e(), _vm._v(" "), _vm.icon ? _c('div', {
|
|
6115
6297
|
staticClass: "row"
|
|
6116
6298
|
}, [_c('NsSvg', {
|
|
6117
6299
|
attrs: {
|
|
@@ -6127,7 +6309,7 @@ var __vue_render__$c = function () {
|
|
|
6127
6309
|
staticClass: "description"
|
|
6128
6310
|
}, [_vm._v(_vm._s(_vm.description))])]) : _vm._e(), _vm._v(" "), _c('div', {
|
|
6129
6311
|
staticClass: "row slot"
|
|
6130
|
-
}, [_vm._t("
|
|
6312
|
+
}, [_vm._t("content")], 2)], 2);
|
|
6131
6313
|
};
|
|
6132
6314
|
|
|
6133
6315
|
var __vue_staticRenderFns__$c = [];
|
|
@@ -6135,8 +6317,8 @@ var __vue_staticRenderFns__$c = [];
|
|
|
6135
6317
|
|
|
6136
6318
|
const __vue_inject_styles__$c = function (inject) {
|
|
6137
6319
|
if (!inject) return;
|
|
6138
|
-
inject("data-v-
|
|
6139
|
-
source: ".info-card[data-v-
|
|
6320
|
+
inject("data-v-5f0f76db_0", {
|
|
6321
|
+
source: ".info-card[data-v-5f0f76db]{display:flex;flex-direction:column;justify-content:center;min-height:7rem;position:relative}.row[data-v-5f0f76db]{display:flex;align-items:center;justify-content:center;margin-bottom:.5rem}.title[data-v-5f0f76db]{margin-left:.25rem;margin-right:.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.description[data-v-5f0f76db]{margin-left:.25rem;margin-right:.25rem}.slot[data-v-5f0f76db]{margin-top:.5rem}",
|
|
6140
6322
|
map: undefined,
|
|
6141
6323
|
media: undefined
|
|
6142
6324
|
});
|
|
@@ -6144,7 +6326,7 @@ const __vue_inject_styles__$c = function (inject) {
|
|
|
6144
6326
|
/* scoped */
|
|
6145
6327
|
|
|
6146
6328
|
|
|
6147
|
-
const __vue_scope_id__$c = "data-v-
|
|
6329
|
+
const __vue_scope_id__$c = "data-v-5f0f76db";
|
|
6148
6330
|
/* module identifier */
|
|
6149
6331
|
|
|
6150
6332
|
const __vue_module_identifier__$c = undefined;
|
|
@@ -6461,6 +6643,14 @@ var __vue_component__$l = __vue_component__$k;
|
|
|
6461
6643
|
|
|
6462
6644
|
var UtilService = {
|
|
6463
6645
|
name: "UtilService",
|
|
6646
|
+
|
|
6647
|
+
data() {
|
|
6648
|
+
return {
|
|
6649
|
+
DELETE_DELAY: 7000 // you have 7 seconds to cancel object deletion
|
|
6650
|
+
|
|
6651
|
+
};
|
|
6652
|
+
},
|
|
6653
|
+
|
|
6464
6654
|
methods: {
|
|
6465
6655
|
getErrorMessage(error) {
|
|
6466
6656
|
if (error.message === "Network Error") {
|
|
@@ -7347,6 +7537,7 @@ var script = {
|
|
|
7347
7537
|
watch: {
|
|
7348
7538
|
isShown: function () {
|
|
7349
7539
|
if (this.isShown) {
|
|
7540
|
+
this.userInput = "";
|
|
7350
7541
|
setTimeout(() => {
|
|
7351
7542
|
this.focusElement("userInput");
|
|
7352
7543
|
}, 300);
|
|
@@ -7438,7 +7629,7 @@ var __vue_staticRenderFns__$5 = [];
|
|
|
7438
7629
|
const __vue_inject_styles__$5 = undefined;
|
|
7439
7630
|
/* scoped */
|
|
7440
7631
|
|
|
7441
|
-
const __vue_scope_id__$5 = "data-v-
|
|
7632
|
+
const __vue_scope_id__$5 = "data-v-220f51ae";
|
|
7442
7633
|
/* module identifier */
|
|
7443
7634
|
|
|
7444
7635
|
const __vue_module_identifier__$5 = undefined;
|
|
@@ -8057,9 +8248,14 @@ var icon = {
|
|
|
8057
8248
|
Link32,
|
|
8058
8249
|
// used for external domain providers
|
|
8059
8250
|
WarningAlt32,
|
|
8251
|
+
WarningAlt20,
|
|
8060
8252
|
Tools32,
|
|
8061
8253
|
Network_220,
|
|
8062
|
-
Network_232
|
|
8254
|
+
Network_232,
|
|
8255
|
+
DataBase20,
|
|
8256
|
+
DataBase32,
|
|
8257
|
+
DataBackup20,
|
|
8258
|
+
DataBackup32
|
|
8063
8259
|
};
|
|
8064
8260
|
}
|
|
8065
8261
|
|
|
@@ -15275,10 +15471,10 @@ var filters = {
|
|
|
15275
15471
|
|
|
15276
15472
|
var components = /*#__PURE__*/Object.freeze({
|
|
15277
15473
|
__proto__: null,
|
|
15278
|
-
NsButton: __vue_component__$
|
|
15279
|
-
NsEmptyState: __vue_component__$
|
|
15474
|
+
NsButton: __vue_component__$G,
|
|
15475
|
+
NsEmptyState: __vue_component__$B,
|
|
15280
15476
|
NsPictogram: NsPictogram,
|
|
15281
|
-
NsCodeSnippet: __vue_component__$
|
|
15477
|
+
NsCodeSnippet: __vue_component__$z,
|
|
15282
15478
|
NsInlineNotification: NsInlineNotification,
|
|
15283
15479
|
NsProgressBar: NsProgressBar,
|
|
15284
15480
|
NsSvg: NsSvg,
|
|
@@ -15293,6 +15489,7 @@ var components = /*#__PURE__*/Object.freeze({
|
|
|
15293
15489
|
NsPieChart: __vue_component__$d,
|
|
15294
15490
|
NsLottieAnimation: NsLottieAnimation,
|
|
15295
15491
|
NsDangerDeleteModal: __vue_component__$b,
|
|
15492
|
+
NsCircleTimer: NsCircleTimer,
|
|
15296
15493
|
ExclamationMark: ExclamationMark,
|
|
15297
15494
|
Gear: __vue_component__$9,
|
|
15298
15495
|
Love: __vue_component__$7,
|
|
@@ -15319,4 +15516,4 @@ const install = function installNs8UiLib(Vue) {
|
|
|
15319
15516
|
});
|
|
15320
15517
|
}; // Create module definition for Vue.use()
|
|
15321
15518
|
|
|
15322
|
-
export { __vue_component__$3 as Bulldozer, dataTable as DataTableService, DateTimeService, ExclamationMark, filters as Filters, __vue_component__$9 as Gear, __vue_component__$1 as Group, icon as IconService, lottie as LottieService, __vue_component__$7 as Love, __vue_component__$
|
|
15519
|
+
export { __vue_component__$3 as Bulldozer, dataTable as DataTableService, DateTimeService, ExclamationMark, filters as Filters, __vue_component__$9 as Gear, __vue_component__$1 as Group, icon as IconService, lottie as LottieService, __vue_component__$7 as Love, __vue_component__$G as NsButton, NsCircleTimer, __vue_component__$z as NsCodeSnippet, __vue_component__$b as NsDangerDeleteModal, __vue_component__$B as NsEmptyState, __vue_component__$h as NsIconMenu, __vue_component__$p as NsInfoCard, NsInlineNotification, NsLottieAnimation, __vue_component__$f as NsMeterChart, __vue_component__$j as NsPasswordInput, NsPictogram, __vue_component__$d as NsPieChart, NsProgressBar, __vue_component__$n as NsStatusCard, NsSvg, __vue_component__$l as NsSystemdServiceCard, __vue_component__$t as NsTile, __vue_component__$r as NsToastNotification, pageTitle as PageTitleService, queryParam as QueryParamService, StorageService, task as TaskService, UtilService, __vue_component__$5 as Warning, install as default };
|