nve-designsystem 0.1.50 → 0.1.51
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/components/nve-icon/nve-icon.component.d.ts +1 -0
- package/components/nve-icon/nve-icon.component.js +20 -17
- package/components/nve-icon/nve-icon.styles.js +15 -4
- package/components/nve-stepper/nve-step/nve-step.component.d.ts +37 -0
- package/components/nve-stepper/nve-step/nve-step.component.js +101 -0
- package/components/nve-stepper/nve-step/nve-step.styles.d.ts +2 -0
- package/components/nve-stepper/nve-step/nve-step.styles.js +65 -0
- package/components/nve-stepper/nve-stepper.component.d.ts +28 -0
- package/components/nve-stepper/nve-stepper.component.js +96 -0
- package/components/nve-stepper/nve-stepper.styles.d.ts +2 -0
- package/components/nve-stepper/nve-stepper.styles.js +76 -0
- package/nve-designsystem.d.ts +2 -0
- package/nve-designsystem.js +48 -42
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ import { LitElement } from 'lit';
|
|
|
6
6
|
*/
|
|
7
7
|
export default class NveIcon extends LitElement {
|
|
8
8
|
static styles: import("lit").CSSResult[];
|
|
9
|
+
library: 'Outlined' | 'Sharp';
|
|
9
10
|
/** Navnet på ikonet i Material Symbols-biblioteket */
|
|
10
11
|
name: string;
|
|
11
12
|
protected firstUpdated(): void;
|
|
@@ -1,28 +1,31 @@
|
|
|
1
|
-
import { s as
|
|
2
|
-
import { n as
|
|
1
|
+
import { s as f, x as m } from "../../chunks/lit-element.js";
|
|
2
|
+
import { n as i, t as y } from "../../chunks/property.js";
|
|
3
3
|
import u from "./nve-icon.styles.js";
|
|
4
|
-
var
|
|
5
|
-
for (var
|
|
6
|
-
(p =
|
|
7
|
-
return
|
|
4
|
+
var c = Object.defineProperty, v = Object.getOwnPropertyDescriptor, a = (l, t, n, s) => {
|
|
5
|
+
for (var r = s > 1 ? void 0 : s ? v(t, n) : t, o = l.length - 1, p; o >= 0; o--)
|
|
6
|
+
(p = l[o]) && (r = (s ? p(t, n, r) : p(r)) || r);
|
|
7
|
+
return s && r && c(t, n, r), r;
|
|
8
8
|
};
|
|
9
|
-
let
|
|
9
|
+
let e = class extends f {
|
|
10
10
|
constructor() {
|
|
11
|
-
super(...arguments), this.name = "";
|
|
11
|
+
super(...arguments), this.library = "Outlined", this.name = "";
|
|
12
12
|
}
|
|
13
13
|
firstUpdated() {
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return
|
|
16
|
+
return m`<span style="font-family:Material Symbols ${this.library}">${this.name}</span>`;
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
],
|
|
23
|
-
|
|
24
|
-
i(
|
|
25
|
-
],
|
|
19
|
+
e.styles = [u];
|
|
20
|
+
a([
|
|
21
|
+
i({ type: String })
|
|
22
|
+
], e.prototype, "library", 2);
|
|
23
|
+
a([
|
|
24
|
+
i({ reflect: !0 })
|
|
25
|
+
], e.prototype, "name", 2);
|
|
26
|
+
e = a([
|
|
27
|
+
y("nve-icon")
|
|
28
|
+
], e);
|
|
26
29
|
export {
|
|
27
|
-
|
|
30
|
+
e as default
|
|
28
31
|
};
|
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
import { i as e } from "../../chunks/lit-element.js";
|
|
2
2
|
const o = e`
|
|
3
|
-
|
|
4
|
-
/* Apply Material Icons font-family to the Shadow DOM */
|
|
5
|
-
font-family: 'Material Symbols Outlined';
|
|
6
|
-
}
|
|
3
|
+
|
|
7
4
|
/* Brukes i dropdown. Eneste måten å override shadow dom for å rotere expand_more ikonet når menyen åpner */
|
|
8
5
|
:host([name='expand_more']) {
|
|
9
6
|
transform: var(--icon-rotation, none);
|
|
10
7
|
transition: transform 0.3s ease;
|
|
11
8
|
}
|
|
12
9
|
|
|
10
|
+
/* prevent icon beeing highlighted */
|
|
11
|
+
:host {
|
|
12
|
+
-webkit-touch-callout: none; /* iOS Safari */
|
|
13
|
+
-webkit-user-select: none; /* Safari */
|
|
14
|
+
-khtml-user-select: none; /* Konqueror HTML */
|
|
15
|
+
-moz-user-select: none; /* Old versions of Firefox */
|
|
16
|
+
-ms-user-select: none; /* Internet Explorer/Edge */
|
|
17
|
+
user-select: none; /* Non-prefixed version, currently
|
|
18
|
+
supported by Chrome, Edge, Opera and Firefox */
|
|
19
|
+
}
|
|
20
|
+
:host {
|
|
21
|
+
display: flex;
|
|
22
|
+
}
|
|
23
|
+
|
|
13
24
|
/* we need it to center the icon */
|
|
14
25
|
:is(span) {
|
|
15
26
|
display: inline-flex;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
export declare enum StepState {
|
|
3
|
+
NotStarted = 0,
|
|
4
|
+
Started = 1,
|
|
5
|
+
Done = 2,
|
|
6
|
+
Error = 3
|
|
7
|
+
}
|
|
8
|
+
export interface StepProps {
|
|
9
|
+
icons: string[];
|
|
10
|
+
title: string;
|
|
11
|
+
description: string;
|
|
12
|
+
state: StepState;
|
|
13
|
+
isSelected: boolean;
|
|
14
|
+
readyForEntrance: boolean;
|
|
15
|
+
}
|
|
16
|
+
export default class NveStep extends LitElement {
|
|
17
|
+
icons: string[];
|
|
18
|
+
title: string;
|
|
19
|
+
spaceBetweenSteps: number;
|
|
20
|
+
iconLibrary: 'Outlined' | 'Sharp';
|
|
21
|
+
index: number;
|
|
22
|
+
description: string;
|
|
23
|
+
state: StepState;
|
|
24
|
+
stepperIndex: number;
|
|
25
|
+
isSelected: boolean;
|
|
26
|
+
isLast: boolean;
|
|
27
|
+
entraceAllowed: boolean;
|
|
28
|
+
static styles: import("lit").CSSResult[];
|
|
29
|
+
iconForState(state: StepState): string;
|
|
30
|
+
onClick(): void;
|
|
31
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
32
|
+
}
|
|
33
|
+
declare global {
|
|
34
|
+
interface HTMLElementTagNameMap {
|
|
35
|
+
"nve-step": NveStep;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { s as d, x as l } from "../../../chunks/lit-element.js";
|
|
2
|
+
import { n as i, t as h } from "../../../chunks/property.js";
|
|
3
|
+
import y from "./nve-step.styles.js";
|
|
4
|
+
var v = Object.defineProperty, u = Object.getOwnPropertyDescriptor, r = (e, s, p, n) => {
|
|
5
|
+
for (var o = n > 1 ? void 0 : n ? u(s, p) : s, a = e.length - 1, c; a >= 0; a--)
|
|
6
|
+
(c = e[a]) && (o = (n ? c(s, p, o) : c(o)) || o);
|
|
7
|
+
return n && o && v(s, p, o), o;
|
|
8
|
+
}, f = /* @__PURE__ */ ((e) => (e[e.NotStarted = 0] = "NotStarted", e[e.Started = 1] = "Started", e[e.Done = 2] = "Done", e[e.Error = 3] = "Error", e))(f || {});
|
|
9
|
+
let t = class extends d {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments), this.icons = [], this.title = "", this.spaceBetweenSteps = 200, this.iconLibrary = "Outlined", this.index = 0, this.description = "", this.state = 0, this.stepperIndex = 0, this.isSelected = !1, this.isLast = !1, this.entraceAllowed = !1;
|
|
12
|
+
}
|
|
13
|
+
iconForState(e) {
|
|
14
|
+
let s = "";
|
|
15
|
+
switch (e) {
|
|
16
|
+
case 0:
|
|
17
|
+
s = `counter_${this.index + 1}`;
|
|
18
|
+
break;
|
|
19
|
+
case 1:
|
|
20
|
+
this.isSelected ? s = `counter_${this.index + 1}` : s = "error";
|
|
21
|
+
break;
|
|
22
|
+
case 2:
|
|
23
|
+
s = "check_circle";
|
|
24
|
+
break;
|
|
25
|
+
case 3:
|
|
26
|
+
s = "error";
|
|
27
|
+
break;
|
|
28
|
+
default:
|
|
29
|
+
s = `help_${this.iconLibrary}`;
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
return s;
|
|
33
|
+
}
|
|
34
|
+
onClick() {
|
|
35
|
+
this.dispatchEvent(
|
|
36
|
+
new CustomEvent("clicked", { detail: { index: this.index } })
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
render() {
|
|
40
|
+
return l`
|
|
41
|
+
<div class="step">
|
|
42
|
+
<div class="step-figure">
|
|
43
|
+
<span
|
|
44
|
+
@click="${this.onClick}"
|
|
45
|
+
class="${this.isSelected ? "selected" : ""} ${this.state == 3 ? "hasError" : ""} ${this.state > 0 ? "" : "notStarted"}"
|
|
46
|
+
>
|
|
47
|
+
<nve-icon library=${this.iconLibrary} slot="suffix" name="${this.iconForState(this.state)}"></nve-icon>
|
|
48
|
+
</span>
|
|
49
|
+
|
|
50
|
+
${this.isLast ? "" : l`<div
|
|
51
|
+
style="width:${this.spaceBetweenSteps}px"
|
|
52
|
+
class="divider-horizontal ${this.index < this.stepperIndex ? "selectedInterval" : ""} ${this.state > 0 ? "" : "notStarted"}"
|
|
53
|
+
></div>`}
|
|
54
|
+
</div>
|
|
55
|
+
<div class="step-title">${this.title}</div>
|
|
56
|
+
<div class="step-description">${this.description}</div>
|
|
57
|
+
</div>
|
|
58
|
+
`;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
t.styles = [y];
|
|
62
|
+
r([
|
|
63
|
+
i({ type: Array })
|
|
64
|
+
], t.prototype, "icons", 2);
|
|
65
|
+
r([
|
|
66
|
+
i({ reflect: !0 })
|
|
67
|
+
], t.prototype, "title", 2);
|
|
68
|
+
r([
|
|
69
|
+
i({ type: Number })
|
|
70
|
+
], t.prototype, "spaceBetweenSteps", 2);
|
|
71
|
+
r([
|
|
72
|
+
i({ type: String })
|
|
73
|
+
], t.prototype, "iconLibrary", 2);
|
|
74
|
+
r([
|
|
75
|
+
i({ type: Number })
|
|
76
|
+
], t.prototype, "index", 2);
|
|
77
|
+
r([
|
|
78
|
+
i({ type: String })
|
|
79
|
+
], t.prototype, "description", 2);
|
|
80
|
+
r([
|
|
81
|
+
i({ type: Number })
|
|
82
|
+
], t.prototype, "state", 2);
|
|
83
|
+
r([
|
|
84
|
+
i({ type: Number })
|
|
85
|
+
], t.prototype, "stepperIndex", 2);
|
|
86
|
+
r([
|
|
87
|
+
i({ type: Boolean, reflect: !0 })
|
|
88
|
+
], t.prototype, "isSelected", 2);
|
|
89
|
+
r([
|
|
90
|
+
i({ type: Boolean })
|
|
91
|
+
], t.prototype, "isLast", 2);
|
|
92
|
+
r([
|
|
93
|
+
i({ type: Boolean })
|
|
94
|
+
], t.prototype, "entraceAllowed", 2);
|
|
95
|
+
t = r([
|
|
96
|
+
h("nve-step")
|
|
97
|
+
], t);
|
|
98
|
+
export {
|
|
99
|
+
f as StepState,
|
|
100
|
+
t as default
|
|
101
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { i as t } from "../../../chunks/lit-element.js";
|
|
2
|
+
const o = t`
|
|
3
|
+
.step-figure {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.divider-horizontal {
|
|
11
|
+
height: 2px;
|
|
12
|
+
background-color: black;
|
|
13
|
+
flex-grow: 1;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.step-title{
|
|
17
|
+
font-size: 16px;
|
|
18
|
+
font-weight:bold;
|
|
19
|
+
padding-top:4px
|
|
20
|
+
}
|
|
21
|
+
.step-description{
|
|
22
|
+
font-size: 14px;
|
|
23
|
+
font-weight:bold;
|
|
24
|
+
padding-top:4px
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.selectedInterval {
|
|
28
|
+
height: 4px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.selected {
|
|
32
|
+
font-variation-settings: "FILL" 1, "wght" 300, "GRAD" 1, "opsz" 48 !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.hasError {
|
|
36
|
+
color: red;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.notStarted {
|
|
40
|
+
color: rgb(184, 184, 184);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.evaluated {
|
|
44
|
+
background-color: rgb(184, 184, 184);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
span {
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
font-size:2rem;
|
|
50
|
+
display:flex;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.material-symbols-sharp {
|
|
54
|
+
font-size: 2rem;
|
|
55
|
+
font-variation-settings:
|
|
56
|
+
'FILL' 0,
|
|
57
|
+
'wght' 300,
|
|
58
|
+
'GRAD' 0,
|
|
59
|
+
'opsz' 24
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
`;
|
|
63
|
+
export {
|
|
64
|
+
o as default
|
|
65
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { StepProps } from './nve-step/nve-step.component';
|
|
3
|
+
export default class NveStepper extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult[];
|
|
5
|
+
orientation: 'horizontal' | 'vertical';
|
|
6
|
+
selectedStep: number;
|
|
7
|
+
spaceBetweenSteps: number;
|
|
8
|
+
iconLibrary: 'Outlined' | 'Sharp';
|
|
9
|
+
steps: StepProps[];
|
|
10
|
+
stepWidth: number;
|
|
11
|
+
firstUpdated(): void;
|
|
12
|
+
nextStep(): void;
|
|
13
|
+
prevStep(): void;
|
|
14
|
+
selectStep(event: any): void;
|
|
15
|
+
setStep(index: number): void;
|
|
16
|
+
getExtremes(): "start" | "end" | undefined;
|
|
17
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
18
|
+
}
|
|
19
|
+
declare global {
|
|
20
|
+
interface HTMLElementTagNameMap {
|
|
21
|
+
'my-nve': NveStepper;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export interface StepperProps {
|
|
25
|
+
selectedStep: number;
|
|
26
|
+
steps: StepProps[];
|
|
27
|
+
spaceBetweenSteps: number;
|
|
28
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { s as d, x as l } from "../../chunks/lit-element.js";
|
|
2
|
+
import { n as p, t as S } from "../../chunks/property.js";
|
|
3
|
+
import { StepState as h } from "./nve-step/nve-step.component.js";
|
|
4
|
+
import f from "./nve-stepper.styles.js";
|
|
5
|
+
import "./nve-step/nve-step.styles.js";
|
|
6
|
+
var v = Object.defineProperty, y = Object.getOwnPropertyDescriptor, r = (e, t, o, n) => {
|
|
7
|
+
for (var i = n > 1 ? void 0 : n ? y(t, o) : t, a = e.length - 1, c; a >= 0; a--)
|
|
8
|
+
(c = e[a]) && (i = (n ? c(t, o, i) : c(i)) || i);
|
|
9
|
+
return n && i && v(t, o, i), i;
|
|
10
|
+
};
|
|
11
|
+
let s = class extends d {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments), this.orientation = "horizontal", this.spaceBetweenSteps = 200, this.iconLibrary = "Outlined", this.steps = new Array(), this.stepWidth = 100;
|
|
14
|
+
}
|
|
15
|
+
firstUpdated() {
|
|
16
|
+
this.setStep(this.selectedStep);
|
|
17
|
+
}
|
|
18
|
+
nextStep() {
|
|
19
|
+
this.selectedStep < this.steps.length - 1 && this.setStep(this.selectedStep + 1);
|
|
20
|
+
}
|
|
21
|
+
prevStep() {
|
|
22
|
+
this.selectedStep > 0 && this.setStep(this.selectedStep - 1);
|
|
23
|
+
}
|
|
24
|
+
selectStep(e) {
|
|
25
|
+
e.detail.index > 0 && this.steps[e.detail.index - 1].state == h.NotStarted || this.setStep(e.detail.index);
|
|
26
|
+
}
|
|
27
|
+
setStep(e) {
|
|
28
|
+
if (this.steps[e].readyForEntrance) {
|
|
29
|
+
this.selectedStep = e;
|
|
30
|
+
for (let t = 0; t < this.steps.length; t++)
|
|
31
|
+
this.steps[t].isSelected = t === e, t <= e && this.steps[t].state < h.Done && (this.steps[t].state = h.Started), this.steps = [...this.steps];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
getExtremes() {
|
|
35
|
+
if (this.selectedStep === 0)
|
|
36
|
+
return "start";
|
|
37
|
+
if (this.selectedStep === this.steps.length - 1)
|
|
38
|
+
return "end";
|
|
39
|
+
}
|
|
40
|
+
render() {
|
|
41
|
+
return l`
|
|
42
|
+
<div class="stepper ${this.orientation}">
|
|
43
|
+
<nve-button .disabled=${this.getExtremes() === "start"} size="medium" variant="primary" @click=${this.prevStep}
|
|
44
|
+
><nve-icon slot="prefix" name="navigate_before" library="${this.iconLibrary}"></nve-icon>Forrige</nve-button
|
|
45
|
+
>
|
|
46
|
+
<div class="flex-container">
|
|
47
|
+
${this.steps.map(
|
|
48
|
+
(e, t) => l`
|
|
49
|
+
<nve-step
|
|
50
|
+
@clicked=${this.selectStep}
|
|
51
|
+
.iconLibrary=${this.iconLibrary}
|
|
52
|
+
.icons=${e.icons}
|
|
53
|
+
.title=${e.title}
|
|
54
|
+
.description=${e.description}
|
|
55
|
+
.state=${e.state}
|
|
56
|
+
.stepperIndex=${this.selectedStep}
|
|
57
|
+
.isSelected=${e.isSelected}
|
|
58
|
+
.isLast=${t === this.steps.length - 1}
|
|
59
|
+
.index=${t}
|
|
60
|
+
.spaceBetweenSteps=${this.spaceBetweenSteps}
|
|
61
|
+
.readyForEntrance=${e.readyForEntrance}
|
|
62
|
+
.direction=${this.orientation}
|
|
63
|
+
>
|
|
64
|
+
</nve-step>
|
|
65
|
+
`
|
|
66
|
+
)}
|
|
67
|
+
</div>
|
|
68
|
+
<nve-button .disabled=${this.getExtremes() === "end"} size="medium" variant="primary" @click=${this.nextStep}>
|
|
69
|
+
<nve-icon slot="suffix" name="navigate_next" library="${this.iconLibrary}"></nve-icon>Neste</nve-button
|
|
70
|
+
>
|
|
71
|
+
</div>
|
|
72
|
+
`;
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
s.styles = [f];
|
|
76
|
+
r([
|
|
77
|
+
p()
|
|
78
|
+
], s.prototype, "orientation", 2);
|
|
79
|
+
r([
|
|
80
|
+
p({ type: Number })
|
|
81
|
+
], s.prototype, "selectedStep", 2);
|
|
82
|
+
r([
|
|
83
|
+
p({ type: Number })
|
|
84
|
+
], s.prototype, "spaceBetweenSteps", 2);
|
|
85
|
+
r([
|
|
86
|
+
p({ type: String })
|
|
87
|
+
], s.prototype, "iconLibrary", 2);
|
|
88
|
+
r([
|
|
89
|
+
p({ type: Array })
|
|
90
|
+
], s.prototype, "steps", 2);
|
|
91
|
+
s = r([
|
|
92
|
+
S("nve-stepper")
|
|
93
|
+
], s);
|
|
94
|
+
export {
|
|
95
|
+
s as default
|
|
96
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { i as e } from "../../chunks/lit-element.js";
|
|
2
|
+
const t = e`
|
|
3
|
+
.stepper {
|
|
4
|
+
display: flex;
|
|
5
|
+
position: relative;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
a {
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
user-select: none;
|
|
14
|
+
}
|
|
15
|
+
.step {
|
|
16
|
+
height: 200px;
|
|
17
|
+
}
|
|
18
|
+
button {
|
|
19
|
+
z-index: 2;
|
|
20
|
+
user-select: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.scroll-menu {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
overflow-x: hidden;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.flex-container {
|
|
30
|
+
display: flex;
|
|
31
|
+
padding: 20px 60px 20px 60px;
|
|
32
|
+
position: relative;
|
|
33
|
+
}
|
|
34
|
+
.hidden {
|
|
35
|
+
visibility: hidden;
|
|
36
|
+
pointer-events: none;
|
|
37
|
+
}
|
|
38
|
+
:host {
|
|
39
|
+
-webkit-touch-callout: none; /* iOS Safari */
|
|
40
|
+
-webkit-user-select: none; /* Safari */
|
|
41
|
+
-khtml-user-select: none; /* Konqueror HTML */
|
|
42
|
+
-moz-user-select: none; /* Old versions of Firefox */
|
|
43
|
+
-ms-user-select: none; /* Internet Explorer/Edge */
|
|
44
|
+
user-select: none; /* Non-prefixed version, currently
|
|
45
|
+
supported by Chrome, Edge, Opera and Firefox */
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.scroll-button.prev {
|
|
49
|
+
background: linear-gradient(
|
|
50
|
+
to right,
|
|
51
|
+
#ffffff,
|
|
52
|
+
#ffffff 60%,
|
|
53
|
+
transparent 100%
|
|
54
|
+
);
|
|
55
|
+
padding: 20px 80px 20px 20px;
|
|
56
|
+
margin: 0 60px;
|
|
57
|
+
position: absolute;
|
|
58
|
+
z-index: 1;
|
|
59
|
+
left: 0;
|
|
60
|
+
}
|
|
61
|
+
.scroll-button.next {
|
|
62
|
+
background: linear-gradient(
|
|
63
|
+
to left,
|
|
64
|
+
#ffffff,
|
|
65
|
+
#ffffff 60%,
|
|
66
|
+
transparent 100%
|
|
67
|
+
);
|
|
68
|
+
padding: 20px 80px 20px 80px;
|
|
69
|
+
position: absolute;
|
|
70
|
+
z-index: 1;
|
|
71
|
+
right: 0;
|
|
72
|
+
}
|
|
73
|
+
`;
|
|
74
|
+
export {
|
|
75
|
+
t as default
|
|
76
|
+
};
|
package/nve-designsystem.d.ts
CHANGED
|
@@ -20,3 +20,5 @@ export { default as NveSpinner } from './components/nve-spinner/nve-spinner.comp
|
|
|
20
20
|
export { default as NveTooltip } from './components/nve-tooltip/nve-tooltip.component';
|
|
21
21
|
export { default as NveSelect } from './components/nve-select/nve-select.component';
|
|
22
22
|
export { default as NveOption } from './components/nve-option/nve-option.component';
|
|
23
|
+
export { default as NveStepper } from './components/nve-stepper/nve-stepper.component';
|
|
24
|
+
export { default as NveStep } from './components/nve-stepper/nve-step/nve-step.component';
|
package/nve-designsystem.js
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
1
|
+
import { default as Q } from "./components/nve-alert/nve-alert.component.js";
|
|
2
|
+
import { default as V } from "./components/nve-badge/nve-badge.component.js";
|
|
3
|
+
import { default as X } from "./components/nve-button/nve-button.component.js";
|
|
4
|
+
import { default as Z } from "./components/nve-checkbox/nve-checkbox.component.js";
|
|
5
|
+
import { default as $ } from "./components/nve-checkbox-group/nve-checkbox-group.component.js";
|
|
6
|
+
import { default as to } from "./components/nve-dialog/nve-dialog.component.js";
|
|
7
|
+
import { default as eo } from "./components/nve-divider/nve-divider.component.js";
|
|
8
|
+
import { default as mo } from "./components/nve-dropdown/nve-dropdown.component.js";
|
|
9
|
+
import { default as io } from "./components/nve-icon/nve-icon.component.js";
|
|
10
|
+
import { default as uo } from "./components/nve-input/nve-input.component.js";
|
|
11
|
+
import { default as xo } from "./components/nve-label/nve-label.component.js";
|
|
12
|
+
import { default as so } from "./components/nve-menu/nve-menu.component.js";
|
|
13
|
+
import { default as no } from "./components/nve-menu-item/nve-menu-item.component.js";
|
|
14
|
+
import { default as So } from "./components/nve-popup/nve-popup.component.js";
|
|
15
|
+
import { default as Bo } from "./components/nve-radio/nve-radio.component.js";
|
|
16
|
+
import { default as Io } from "./components/nve-radio-button/nve-radio-button.component.js";
|
|
17
|
+
import { default as go } from "./components/nve-radio-group/nve-radio-group.component.js";
|
|
18
|
+
import { default as ko } from "./components/nve-spinner/nve-spinner.component.js";
|
|
19
|
+
import { default as Go } from "./components/nve-tooltip/nve-tooltip.component.js";
|
|
20
|
+
import { default as wo } from "./components/nve-select/nve-select.component.js";
|
|
21
|
+
import { default as Lo } from "./components/nve-option/nve-option.component.js";
|
|
22
|
+
import { default as Po } from "./components/nve-stepper/nve-stepper.component.js";
|
|
23
|
+
import { default as jo } from "./components/nve-stepper/nve-step/nve-step.component.js";
|
|
22
24
|
import "./chunks/chunk.7O2CYFQX.js";
|
|
23
25
|
import "./chunks/chunk.JS655M6J.js";
|
|
24
26
|
import "./chunks/lit-element.js";
|
|
@@ -60,26 +62,30 @@ import "./components/nve-radio/nve-radio.styles.js";
|
|
|
60
62
|
import "./components/nve-radio-group/nve-radio-group.styles.js";
|
|
61
63
|
import "./components/nve-select/nve-select.styles.js";
|
|
62
64
|
import "./components/nve-option/nve-option.styles.js";
|
|
65
|
+
import "./components/nve-stepper/nve-stepper.styles.js";
|
|
66
|
+
import "./components/nve-stepper/nve-step/nve-step.styles.js";
|
|
63
67
|
export {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
68
|
+
Q as NveAlert,
|
|
69
|
+
V as NveBadge,
|
|
70
|
+
X as NveButton,
|
|
71
|
+
Z as NveCheckbox,
|
|
72
|
+
$ as NveCheckboxGroup,
|
|
73
|
+
to as NveDialog,
|
|
74
|
+
eo as NveDivider,
|
|
75
|
+
mo as NveDropdown,
|
|
76
|
+
io as NveIcon,
|
|
77
|
+
uo as NveInput,
|
|
78
|
+
xo as NveLabel,
|
|
79
|
+
so as NveMenu,
|
|
80
|
+
no as NveMenuItem,
|
|
81
|
+
Lo as NveOption,
|
|
82
|
+
So as NvePopup,
|
|
83
|
+
Bo as NveRadio,
|
|
84
|
+
Io as NveRadioButton,
|
|
85
|
+
go as NveRadioGroup,
|
|
86
|
+
wo as NveSelect,
|
|
87
|
+
ko as NveSpinner,
|
|
88
|
+
jo as NveStep,
|
|
89
|
+
Po as NveStepper,
|
|
90
|
+
Go as NveTooltip
|
|
85
91
|
};
|