nve-designsystem 4.3.0 → 4.5.0

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.
Files changed (82) hide show
  1. package/chunks/chunk.2PCBEMQZ.js +4 -4
  2. package/chunks/chunk.36O46B5H.js +2 -2
  3. package/chunks/chunk.4TUIT776.js +1 -1
  4. package/chunks/chunk.5JY5FUCG.js +325 -344
  5. package/chunks/chunk.5P45LHIX.js +2 -2
  6. package/chunks/chunk.6CTB5ZDJ.js +16 -4
  7. package/chunks/chunk.B4BZKR24.js +2 -2
  8. package/chunks/chunk.D5YQDJ7X.js +3 -3
  9. package/chunks/chunk.EA437WHD.js +1 -1
  10. package/chunks/chunk.GI7VDIWX.js +1 -1
  11. package/chunks/chunk.GMYPQTFK.js +1 -1
  12. package/chunks/chunk.HVTXQL7M.js +3 -3
  13. package/chunks/chunk.IKV4VH3T.js +3 -3
  14. package/chunks/chunk.IVVHNXMC.js +2 -2
  15. package/chunks/chunk.JHOXTQXA.js +3 -3
  16. package/chunks/chunk.JXOKFADN.js +3 -3
  17. package/chunks/chunk.K7JGTRV7.js +1 -1
  18. package/chunks/chunk.KPLQLAWP.js +3 -3
  19. package/chunks/chunk.LD4M4QGE.js +1 -1
  20. package/chunks/chunk.MSKEYBDI.js +3 -3
  21. package/chunks/chunk.NYIIDP5N.js +1 -1
  22. package/chunks/chunk.RWUUFNUL.js +2 -2
  23. package/chunks/chunk.SAPQLUO4.js +4 -4
  24. package/chunks/chunk.SI4ACBFK.js +1 -1
  25. package/chunks/chunk.TP2GB2HO.js +4 -4
  26. package/chunks/chunk.UDWRA64J.js +3 -3
  27. package/chunks/chunk.URTPIBTY.js +3 -3
  28. package/chunks/chunk.VESXC477.js +1 -1
  29. package/chunks/chunk.XA43ZQPC.js +3 -3
  30. package/chunks/chunk.XQ2OKYYA.js +3 -3
  31. package/chunks/chunk.XZNBUGX7.js +1 -1
  32. package/chunks/chunk.YHLNUJ7P.js +2 -2
  33. package/chunks/chunk.ZH2AND3P.js +8 -8
  34. package/chunks/chunk.ZL53POKZ.js +2 -2
  35. package/chunks/class-map.js +3 -3
  36. package/chunks/decorate.js +11 -11
  37. package/chunks/directive-helpers.js +3 -3
  38. package/chunks/if-defined.js +1 -1
  39. package/chunks/lit.js +88 -86
  40. package/chunks/live.js +8 -8
  41. package/chunks/nve-alert.component.js +9 -9
  42. package/chunks/nve-carousel-item.component.js +1 -1
  43. package/chunks/nve-checkbox-group.component.js +7 -7
  44. package/chunks/nve-label.component.js +1 -1
  45. package/chunks/nve-warning-level.component.js +4 -4
  46. package/chunks/ref.js +4 -4
  47. package/chunks/shoelace.js +771 -771
  48. package/chunks/static-html.js +4 -4
  49. package/chunks/unsafe-html.js +1 -1
  50. package/components/nve-accordion/nve-accordion.component.js +1 -1
  51. package/components/nve-aspect-rose/nve-aspect-rose.component.d.ts +40 -0
  52. package/components/nve-aspect-rose/nve-aspect-rose.component.js +90 -0
  53. package/components/nve-aspect-rose/nve-aspect-rose.styles.d.ts +2 -0
  54. package/components/nve-aspect-rose/nve-aspect-rose.styles.js +27 -0
  55. package/components/nve-badge/nve-badge.component.js +1 -1
  56. package/components/nve-carousel-thumbnail/nve-carousel-thumbnail.component.js +1 -1
  57. package/components/nve-combobox/nve-combobox.component.js +1 -1
  58. package/components/nve-darkmode-switch/nve-darkmode-switch.component.js +3 -2
  59. package/components/nve-icon/nve-icon.component.js +1 -1
  60. package/components/nve-link-card/nve-link-card.component.js +6 -6
  61. package/components/nve-message-card/nve-message-card.component.js +1 -1
  62. package/components/nve-navigation-card/nve-navigation-card.component.js +8 -8
  63. package/components/nve-paragraph/nve-paragraph.component.js +1 -1
  64. package/components/nve-stepper/nve-step/nve-step.component.js +21 -21
  65. package/components/nve-stepper/nve-stepper-mobile.component.js +1 -1
  66. package/components/nve-stepper/nve-stepper.component.js +1 -1
  67. package/components/nve-switch/nve-switch.component.js +1 -1
  68. package/components/nve-tab/nve-tab.component.js +1 -1
  69. package/components/nve-tab-group/nve-tab-group.component.js +6 -6
  70. package/components/nve-tab-panel/nve-tab-panel.component.js +1 -1
  71. package/components/nve-tag/nve-tag.component.js +6 -6
  72. package/components/nve-textarea/nve-textarea.component.js +12 -12
  73. package/css/nve.css +54 -45
  74. package/css/nve_dark.css +16 -7
  75. package/css/rme.css +54 -45
  76. package/css/rme_dark.css +16 -7
  77. package/css/varsom.css +54 -45
  78. package/css/varsom_dark.css +16 -7
  79. package/custom-elements.json +97 -1
  80. package/nve-designsystem.d.ts +2 -1
  81. package/nve-designsystem.js +43 -42
  82. package/package.json +5 -5
@@ -441,6 +441,102 @@
441
441
  }
442
442
  ]
443
443
  },
444
+ {
445
+ "kind": "javascript-module",
446
+ "path": "components/nve-aspect-rose/nve-aspect-rose.js",
447
+ "declarations": [
448
+ {
449
+ "kind": "class",
450
+ "description": "Viser utsatte himmelretninger som en kompassrose. Rosen er delt opp i 8 sektorer. Utsatte sektorer vises i rødt. Er laget for å vise hvilke himmelretninger et skredproblem gjelder for, men kan selvfølgelig også brukes til andre ting.",
451
+ "name": "NveAspectRose",
452
+ "members": [
453
+ {
454
+ "kind": "field",
455
+ "name": "testId",
456
+ "type": {
457
+ "text": "string | undefined"
458
+ },
459
+ "default": "undefined"
460
+ },
461
+ {
462
+ "kind": "field",
463
+ "name": "value",
464
+ "type": {
465
+ "text": "string"
466
+ },
467
+ "default": "'00000000'",
468
+ "description": "8-tegns binærtekst som representerer utsatte sektorer. Starter med nordlig sektor og går deretter med klokka. Eksempel: \"00111110\""
469
+ },
470
+ {
471
+ "kind": "field",
472
+ "name": "lang",
473
+ "type": {
474
+ "text": "string"
475
+ },
476
+ "default": "'no'",
477
+ "description": "Språk for himmelretningene. Blir satt til engelsk om lang starter på 'en'. Standard er norsk."
478
+ },
479
+ {
480
+ "kind": "field",
481
+ "name": "label",
482
+ "type": {
483
+ "text": "string | undefined"
484
+ },
485
+ "default": "undefined",
486
+ "description": "Tilgjengelig tittel. Vises som aria-label på SVG-elementet og som <title> i SVG. Standardverdi avhenger av språket: 'Utsatte sektorer' for norsk, 'Affected aspects' for engelsk. Du kan overstyre denne teksten."
487
+ }
488
+ ],
489
+ "attributes": [
490
+ {
491
+ "name": "testId",
492
+ "type": {
493
+ "text": "string | undefined"
494
+ }
495
+ },
496
+ {
497
+ "name": "value",
498
+ "type": {
499
+ "text": "string"
500
+ },
501
+ "description": "8-tegns binærtekst som representerer utsatte sektorer. Starter med nordlig sektor og går deretter med klokka. Eksempel: \"00111110\""
502
+ },
503
+ {
504
+ "name": "lang",
505
+ "type": {
506
+ "text": "string"
507
+ },
508
+ "description": "Språk for himmelretningene. Blir satt til engelsk om lang starter på 'en'. Standard er norsk."
509
+ },
510
+ {
511
+ "name": "label",
512
+ "type": {
513
+ "text": "string | undefined"
514
+ },
515
+ "description": "Tilgjengelig tittel. Vises som aria-label på SVG-elementet og som <title> i SVG. Standardverdi avhenger av språket: 'Utsatte sektorer' for norsk, 'Affected aspects' for engelsk. Du kan overstyre denne teksten."
516
+ }
517
+ ],
518
+ "superclass": {
519
+ "name": "LitElement",
520
+ "package": "lit"
521
+ },
522
+ "tagNameWithoutPrefix": "aspect-rose",
523
+ "tagName": "nve-aspect-rose",
524
+ "customElement": true,
525
+ "jsDoc": "/**\n * Viser utsatte himmelretninger som en kompassrose.\n * Rosen er delt opp i 8 sektorer. Utsatte sektorer vises i rødt.\n * Er laget for å vise hvilke himmelretninger et skredproblem gjelder for, men kan selvfølgelig også brukes til andre ting.\n * @cssproperty --aspect-rose-size - Høyde og bredde på komponenten. 90px er standard.\n * @cssproperty --aspect-rose-outline-color - Farge på sirkelens omriss. Standard er #c6c6c5.\n * @cssproperty --aspect-rose-affected-color - Farge på utsatte sektorer. Standard er #d21523.\n * @cssproperty --aspect-rose-unaffected-color - Farge på ikke-utsatte sektorer. Standard er #e3e3e3.\n */",
526
+ "modulePath": "src/components/nve-aspect-rose/nve-aspect-rose.component.ts"
527
+ }
528
+ ],
529
+ "exports": [
530
+ {
531
+ "kind": "js",
532
+ "name": "default",
533
+ "declaration": {
534
+ "name": "NveAspectRose",
535
+ "module": "components/nve-aspect-rose/nve-aspect-rose.js"
536
+ }
537
+ }
538
+ ]
539
+ },
444
540
  {
445
541
  "kind": "javascript-module",
446
542
  "path": "components/nve-badge/nve-badge.js",
@@ -2316,7 +2412,7 @@
2316
2412
  "tagNameWithoutPrefix": "icon",
2317
2413
  "tagName": "nve-icon",
2318
2414
  "customElement": true,
2319
- "jsDoc": "/**\n * Et ikon.\n * Vi bruker ikoner fra Material Symbols, men det er også mulig å bruke ikoner fra eget repo. \n * Vi anbefaler å bruke Material-ikonene.\n * Strektykkelsen skal være 400, uavhengig av ikonets størrelse, og kun stilene Sharp og Outlined skal brukes.\n * Fill-stilen bør unngås, da den fyller hele ikonet med farge i stedet for å bruke kun konturer\n * @see https://fonts.google.com/icons\n * @csspart icon - Selve ikon span-element.\n * @cssproperty --icon-size - Størrelse på ikonet. 16px er standard.\n */",
2415
+ "jsDoc": "/**\n * Et ikon.\n * Vi bruker ikoner fra Material Symbols, men det er også mulig å bruke ikoner fra eget repo.\n * Vi anbefaler å bruke Material-ikonene.\n * Strektykkelsen skal være 400, uavhengig av ikonets størrelse, og kun stilene Sharp og Outlined skal brukes.\n * Fill-stilen bør unngås, da den fyller hele ikonet med farge i stedet for å bruke kun konturer\n * @see https://fonts.google.com/icons\n * @csspart icon - Selve ikon span-element.\n * @cssproperty --icon-size - Størrelse på ikonet. 16px er standard.\n */",
2320
2416
  "modulePath": "src/components/nve-icon/nve-icon.component.ts"
2321
2417
  }
2322
2418
  ],
@@ -1,8 +1,9 @@
1
1
  /** Alle komponenter som er tilgjengelige, i alfabetisk rekkefølge. */
2
- /** Denne filen blir genererert av npm run add-component */
2
+ /** Denne filen blir genererert av pnpm run add-component */
3
3
  export { default as NveAccordion } from './components/nve-accordion/nve-accordion.component';
4
4
  export { default as NveAccordionItem } from './components/nve-accordion-item/nve-accordion-item.component';
5
5
  export { default as NveAlert } from './components/nve-alert/nve-alert.component';
6
+ export { default as NveAspectRose } from './components/nve-aspect-rose/nve-aspect-rose.component';
6
7
  export { default as NveBadge } from './components/nve-badge/nve-badge.component';
7
8
  export { default as NveButton } from './components/nve-button/nve-button.component';
8
9
  export { default as NveCarousel } from './components/nve-carousel/nve-carousel.component';
@@ -2,45 +2,46 @@ import e from "./components/nve-accordion/nve-accordion.component.js";
2
2
  import t from "./components/nve-accordion-item/nve-accordion-item.component.js";
3
3
  import { t as n } from "./chunks/nve-alert.component.js";
4
4
  import r from "./components/nve-icon/nve-icon.component.js";
5
- import i from "./components/nve-badge/nve-badge.component.js";
6
- import a from "./components/nve-button/nve-button.component.js";
7
- import { t as o } from "./chunks/nve-carousel.component.js";
8
- import { t as s } from "./chunks/nve-carousel-item.component.js";
9
- import c from "./components/nve-carousel-thumbnail/nve-carousel-thumbnail.component.js";
10
- import { t as l } from "./chunks/nve-checkbox.component.js";
11
- import { t as u } from "./chunks/nve-label.component.js";
12
- import { t as d } from "./chunks/nve-tooltip.component.js";
13
- import { t as f } from "./chunks/nve-checkbox-group.component.js";
14
- import { t as p } from "./chunks/nve-popup.component.js";
15
- import { t as m } from "./chunks/nve-input.component.js";
16
- import { t as h } from "./chunks/nve-menu.component.js";
17
- import { t as g } from "./chunks/nve-option.component.js";
18
- import _ from "./components/nve-combobox/nve-combobox.component.js";
19
- import v from "./components/nve-darkmode-switch/nve-darkmode-switch.component.js";
20
- import { t as y } from "./chunks/nve-dialog.component.js";
21
- import { t as b } from "./chunks/nve-divider.component.js";
22
- import { t as x } from "./chunks/nve-drawer.component.js";
23
- import { t as S } from "./chunks/nve-dropdown.component.js";
24
- import C from "./components/nve-heading/nve-heading.component.js";
25
- import w from "./components/nve-link-card/nve-link-card.component.js";
26
- import { t as T } from "./chunks/nve-menu-item.component.js";
27
- import E from "./components/nve-message-card/nve-message-card.component.js";
28
- import D from "./components/nve-navigation-card/nve-navigation-card.component.js";
29
- import O from "./components/nve-paragraph/nve-paragraph.component.js";
30
- import { t as k } from "./chunks/nve-radio.component.js";
31
- import { t as A } from "./chunks/nve-radio-button.component.js";
32
- import { t as j } from "./chunks/nve-radio-group.component.js";
33
- import M from "./components/nve-relative-time/nve-relative-time.component.js";
34
- import { t as N } from "./chunks/nve-select.component.js";
35
- import { t as P } from "./chunks/nve-skeleton.component.js";
36
- import { t as F } from "./chunks/nve-spinner.component.js";
37
- import I from "./components/nve-stepper/nve-step/nve-step.component.js";
38
- import L from "./components/nve-stepper/nve-stepper.component.js";
39
- import R from "./components/nve-switch/nve-switch.component.js";
40
- import z from "./components/nve-tab/nve-tab.component.js";
41
- import B from "./components/nve-tab-group/nve-tab-group.component.js";
42
- import V from "./components/nve-tab-panel/nve-tab-panel.component.js";
43
- import H from "./components/nve-tag/nve-tag.component.js";
44
- import U from "./components/nve-textarea/nve-textarea.component.js";
45
- import { t as W } from "./chunks/nve-warning-level.component.js";
46
- export { e as NveAccordion, t as NveAccordionItem, n as NveAlert, i as NveBadge, a as NveButton, o as NveCarousel, s as NveCarouselItem, c as NveCarouselThumbnail, l as NveCheckbox, f as NveCheckboxGroup, _ as NveCombobox, v as NveDarkmodeSwitch, y as NveDialog, b as NveDivider, x as NveDrawer, S as NveDropdown, C as NveHeading, r as NveIcon, m as NveInput, u as NveLabel, w as NveLinkCard, h as NveMenu, T as NveMenuItem, E as NveMessageCard, D as NveNavigationCard, g as NveOption, O as NveParagraph, p as NvePopup, k as NveRadio, A as NveRadioButton, j as NveRadioGroup, M as NveRelativeTime, N as NveSelect, P as NveSkeleton, F as NveSpinner, I as NveStep, L as NveStepper, R as NveSwitch, z as NveTab, B as NveTabGroup, V as NveTabPanel, H as NveTag, U as NveTextarea, d as NveTooltip, W as NveWarningLevel };
5
+ import i from "./components/nve-aspect-rose/nve-aspect-rose.component.js";
6
+ import a from "./components/nve-badge/nve-badge.component.js";
7
+ import o from "./components/nve-button/nve-button.component.js";
8
+ import { t as s } from "./chunks/nve-carousel.component.js";
9
+ import { t as c } from "./chunks/nve-carousel-item.component.js";
10
+ import l from "./components/nve-carousel-thumbnail/nve-carousel-thumbnail.component.js";
11
+ import { t as u } from "./chunks/nve-checkbox.component.js";
12
+ import { t as d } from "./chunks/nve-label.component.js";
13
+ import { t as f } from "./chunks/nve-tooltip.component.js";
14
+ import { t as p } from "./chunks/nve-checkbox-group.component.js";
15
+ import { t as m } from "./chunks/nve-popup.component.js";
16
+ import { t as h } from "./chunks/nve-input.component.js";
17
+ import { t as g } from "./chunks/nve-menu.component.js";
18
+ import { t as _ } from "./chunks/nve-option.component.js";
19
+ import v from "./components/nve-combobox/nve-combobox.component.js";
20
+ import y from "./components/nve-darkmode-switch/nve-darkmode-switch.component.js";
21
+ import { t as b } from "./chunks/nve-dialog.component.js";
22
+ import { t as x } from "./chunks/nve-divider.component.js";
23
+ import { t as S } from "./chunks/nve-drawer.component.js";
24
+ import { t as C } from "./chunks/nve-dropdown.component.js";
25
+ import w from "./components/nve-heading/nve-heading.component.js";
26
+ import T from "./components/nve-link-card/nve-link-card.component.js";
27
+ import { t as E } from "./chunks/nve-menu-item.component.js";
28
+ import D from "./components/nve-message-card/nve-message-card.component.js";
29
+ import O from "./components/nve-navigation-card/nve-navigation-card.component.js";
30
+ import k from "./components/nve-paragraph/nve-paragraph.component.js";
31
+ import { t as A } from "./chunks/nve-radio.component.js";
32
+ import { t as j } from "./chunks/nve-radio-button.component.js";
33
+ import { t as M } from "./chunks/nve-radio-group.component.js";
34
+ import N from "./components/nve-relative-time/nve-relative-time.component.js";
35
+ import { t as P } from "./chunks/nve-select.component.js";
36
+ import { t as F } from "./chunks/nve-skeleton.component.js";
37
+ import { t as I } from "./chunks/nve-spinner.component.js";
38
+ import L from "./components/nve-stepper/nve-step/nve-step.component.js";
39
+ import R from "./components/nve-stepper/nve-stepper.component.js";
40
+ import z from "./components/nve-switch/nve-switch.component.js";
41
+ import B from "./components/nve-tab/nve-tab.component.js";
42
+ import V from "./components/nve-tab-group/nve-tab-group.component.js";
43
+ import H from "./components/nve-tab-panel/nve-tab-panel.component.js";
44
+ import U from "./components/nve-tag/nve-tag.component.js";
45
+ import W from "./components/nve-textarea/nve-textarea.component.js";
46
+ import { t as G } from "./chunks/nve-warning-level.component.js";
47
+ export { e as NveAccordion, t as NveAccordionItem, n as NveAlert, i as NveAspectRose, a as NveBadge, o as NveButton, s as NveCarousel, c as NveCarouselItem, l as NveCarouselThumbnail, u as NveCheckbox, p as NveCheckboxGroup, v as NveCombobox, y as NveDarkmodeSwitch, b as NveDialog, x as NveDivider, S as NveDrawer, C as NveDropdown, w as NveHeading, r as NveIcon, h as NveInput, d as NveLabel, T as NveLinkCard, g as NveMenu, E as NveMenuItem, D as NveMessageCard, O as NveNavigationCard, _ as NveOption, k as NveParagraph, m as NvePopup, A as NveRadio, j as NveRadioButton, M as NveRadioGroup, N as NveRelativeTime, P as NveSelect, F as NveSkeleton, I as NveSpinner, L as NveStep, R as NveStepper, z as NveSwitch, B as NveTab, V as NveTabGroup, H as NveTabPanel, U as NveTag, W as NveTextarea, f as NveTooltip, G as NveWarningLevel };
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "license": "MIT",
13
13
  "homepage": "https://github.com/NVE/Designsystem/",
14
- "version": "4.3.0",
14
+ "version": "4.5.0",
15
15
  "customElements": "dist/custom-elements.json",
16
16
  "exports": {
17
17
  ".": {
@@ -28,15 +28,14 @@
28
28
  },
29
29
  "type": "module",
30
30
  "types": "nve-designsystem.d.ts",
31
- "scripts": {},
32
31
  "dependencies": {
33
32
  "@shoelace-style/shoelace": "^2.20.1",
34
33
  "fontfaceobserver": "^2.3.0",
35
- "lit": "^3.3.2"
34
+ "lit": "^3.3.3"
36
35
  },
37
36
  "devDependencies": {},
38
37
  "optionalDependencies": {
39
- "@rollup/rollup-linux-x64-gnu": "^4.60.3"
38
+ "@rollup/rollup-linux-x64-gnu": "^4.61.1"
40
39
  },
41
40
  "config": {
42
41
  "commitizen": {
@@ -53,5 +52,6 @@
53
52
  "typescript-eslint": "8.59.3"
54
53
  },
55
54
  "koa": "2.16.4"
56
- }
55
+ },
56
+ "scripts": {}
57
57
  }