@genesislcap/foundation-ui 14.336.0 → 14.336.2-alpha-7eb86ca.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.
- package/dist/custom-elements.json +847 -214
- package/dist/dts/base-components.d.ts +11 -0
- package/dist/dts/base-components.d.ts.map +1 -1
- package/dist/dts/index.d.ts +1 -0
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/section-navigator/index.d.ts +4 -0
- package/dist/dts/section-navigator/index.d.ts.map +1 -0
- package/dist/dts/section-navigator/section-navigator.d.ts +120 -0
- package/dist/dts/section-navigator/section-navigator.d.ts.map +1 -0
- package/dist/dts/section-navigator/section-navigator.styles.d.ts +3 -0
- package/dist/dts/section-navigator/section-navigator.styles.d.ts.map +1 -0
- package/dist/dts/section-navigator/section-navigator.template.d.ts +4 -0
- package/dist/dts/section-navigator/section-navigator.template.d.ts.map +1 -0
- package/dist/esm/base-components.js +2 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/section-navigator/index.js +3 -0
- package/dist/esm/section-navigator/section-navigator.js +289 -0
- package/dist/esm/section-navigator/section-navigator.styles.js +179 -0
- package/dist/esm/section-navigator/section-navigator.template.js +37 -0
- package/package.json +18 -18
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { css } from '@microsoft/fast-element';
|
|
2
|
+
export const foundationSectionNavigatorStyles = css `
|
|
3
|
+
:host {
|
|
4
|
+
display: block;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
min-height: 400px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.section-navigator-container {
|
|
11
|
+
display: flex;
|
|
12
|
+
height: 100%;
|
|
13
|
+
max-height: 100%;
|
|
14
|
+
width: 100%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.section-navigation {
|
|
18
|
+
background-color: var(--neutral-layer-2);
|
|
19
|
+
border-right: 1px solid var(--neutral-stroke-divider);
|
|
20
|
+
overflow-y: auto;
|
|
21
|
+
height: 100%;
|
|
22
|
+
min-width: 20%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.section-link {
|
|
26
|
+
position: relative;
|
|
27
|
+
display: block;
|
|
28
|
+
width: 100%;
|
|
29
|
+
color: var(--neutral-foreground-rest);
|
|
30
|
+
text-decoration: none;
|
|
31
|
+
border: none;
|
|
32
|
+
background: none;
|
|
33
|
+
text-align: left;
|
|
34
|
+
transition: all 0.2s ease;
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
font-family: inherit;
|
|
37
|
+
font-size: inherit;
|
|
38
|
+
margin: 0;
|
|
39
|
+
line-height: 0;
|
|
40
|
+
border-radius: 0;
|
|
41
|
+
vertical-align: top;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.section-link.active:hover {
|
|
45
|
+
color: var(--neutral-foreground-rest);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.section-link:hover {
|
|
49
|
+
color: var(--accent-foreground-rest);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.section-link::part(control) {
|
|
53
|
+
vertical-align: top;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.section-link::before {
|
|
57
|
+
content: '';
|
|
58
|
+
position: absolute;
|
|
59
|
+
top: 0;
|
|
60
|
+
left: 0;
|
|
61
|
+
width: 2px;
|
|
62
|
+
height: 100%;
|
|
63
|
+
background-color: transparent;
|
|
64
|
+
transition: background-color 0.2s ease;
|
|
65
|
+
z-index: 1;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.section-link:hover::before {
|
|
69
|
+
background-color: var(--neutral-layer-hover);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.section-link.active::before {
|
|
73
|
+
background-color: var(--accent-fill-rest);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.section-link::part(content) {
|
|
77
|
+
padding: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.section-content-wrapper {
|
|
81
|
+
flex: 1;
|
|
82
|
+
height: 100%;
|
|
83
|
+
overflow: hidden;
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.section-content {
|
|
89
|
+
flex: 1;
|
|
90
|
+
overflow-y: auto;
|
|
91
|
+
overflow-x: hidden;
|
|
92
|
+
padding: calc(var(--design-unit) * 4px);
|
|
93
|
+
background-color: var(--neutral-layer-1);
|
|
94
|
+
min-height: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.section-content::-webkit-scrollbar {
|
|
98
|
+
width: var(--scrollbar-width);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.section-content::-webkit-scrollbar-track {
|
|
102
|
+
background: var(--neutral-layer-4);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.section-content::-webkit-scrollbar-thumb {
|
|
106
|
+
width: var(--scrollbar-thumb-width); /* 8px */
|
|
107
|
+
border-radius: 10px;
|
|
108
|
+
box-shadow: inset 0 0 6px rgba(0 0 0 / 30%);
|
|
109
|
+
background-color: var(--neutral-layer-2);
|
|
110
|
+
border: 3px solid var(--neutral-layer-4);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.content-section {
|
|
114
|
+
background-color: var(--neutral-layer-1);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.state-icon {
|
|
118
|
+
margin-left: calc(var(--design-unit) * 1px);
|
|
119
|
+
width: 12px;
|
|
120
|
+
height: 12px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.state-icon[data-state='active'] {
|
|
124
|
+
color: var(--accent-fill-rest);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.state-icon[data-state='inactive'] {
|
|
128
|
+
color: var(--neutral-foreground-rest);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.state-icon[data-state='pending'] {
|
|
132
|
+
color: var(--warning-fill-rest);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.state-icon[data-state='disabled'] {
|
|
136
|
+
color: var(--neutral-foreground-disabled);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.state-icon[data-state='error'] {
|
|
140
|
+
color: var(--error-fill-rest);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.state-icon[data-state='completed'] {
|
|
144
|
+
color: var(--success-fill-rest);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* Section button state colors */
|
|
148
|
+
.section-link.state-active {
|
|
149
|
+
color: var(--accent-foreground-rest);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.section-link.state-inactive {
|
|
153
|
+
color: var(--neutral-foreground-hint);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.section-link.state-pending {
|
|
157
|
+
color: var(--warning-color);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.section-link.state-disabled {
|
|
161
|
+
color: var(--neutral-foreground-disabled);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.section-link.state-error {
|
|
165
|
+
color: var(--error-color);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.section-link.state-completed {
|
|
169
|
+
color: var(--success-color);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.section-link.state-multiple {
|
|
173
|
+
color: var(--accent-foreground-rest);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.section-link.state-none {
|
|
177
|
+
color: var(--neutral-foreground-rest);
|
|
178
|
+
}
|
|
179
|
+
`;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { html, ref, repeat } from '@microsoft/fast-element';
|
|
2
|
+
export const foundationSectionNavigatorTemplate = html `
|
|
3
|
+
<template>
|
|
4
|
+
<div class="section-navigator-container" part="container" ${ref('sectionNavigatorContainer')}>
|
|
5
|
+
<nav class="section-navigation" part="navigation">
|
|
6
|
+
${repeat((x) => x.sectionItems, html `
|
|
7
|
+
<foundation-button
|
|
8
|
+
class="section-link ${(x, c) => c.parent.activeSection === x.name ? 'active' : ''} ${(x, c) => c.parent.getSectionStateClass(x)}"
|
|
9
|
+
part="section-link ${(x, c) => c.parent.getSectionStateClass(x)}"
|
|
10
|
+
@click="${(x, c) => c.parent.handleSectionClick(x.name)}"
|
|
11
|
+
>
|
|
12
|
+
${(x) => x.label}
|
|
13
|
+
${repeat((x, c) => x.states, html `
|
|
14
|
+
<foundation-icon
|
|
15
|
+
class="state-icon"
|
|
16
|
+
part="state-icon"
|
|
17
|
+
title="${(stateName, ctx) => ctx.parentContext.parent.getStateTooltip(stateName)}"
|
|
18
|
+
data-state="${(stateName) => stateName}"
|
|
19
|
+
name="${(stateName, ctx) => ctx.parentContext.parent.getStateIcon(stateName).name}"
|
|
20
|
+
variant="${(stateName, ctx) => ctx.parentContext.parent.getStateIcon(stateName).variant}"
|
|
21
|
+
></foundation-icon>
|
|
22
|
+
`)}
|
|
23
|
+
</foundation-button>
|
|
24
|
+
`)}
|
|
25
|
+
</nav>
|
|
26
|
+
<div class="section-content-wrapper" part="content-wrapper">
|
|
27
|
+
<section class="section-content" part="content" ${ref('sectionContent')}>
|
|
28
|
+
${repeat((x) => x.sectionItems, html `
|
|
29
|
+
<div class="content-section" part="content-section" data-section="${(x) => x.name}">
|
|
30
|
+
<slot name="${(x) => x.name}"></slot>
|
|
31
|
+
</div>
|
|
32
|
+
`)}
|
|
33
|
+
</section>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
`;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-ui",
|
|
3
3
|
"description": "Genesis Foundation UI",
|
|
4
|
-
"version": "14.336.0",
|
|
4
|
+
"version": "14.336.2-alpha-7eb86ca.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -83,13 +83,13 @@
|
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@genesislcap/foundation-testing": "14.336.0",
|
|
87
|
-
"@genesislcap/genx": "14.336.0",
|
|
88
|
-
"@genesislcap/rollup-builder": "14.336.0",
|
|
89
|
-
"@genesislcap/ts-builder": "14.336.0",
|
|
90
|
-
"@genesislcap/uvu-playwright-builder": "14.336.0",
|
|
91
|
-
"@genesislcap/vite-builder": "14.336.0",
|
|
92
|
-
"@genesislcap/webpack-builder": "14.336.0",
|
|
86
|
+
"@genesislcap/foundation-testing": "14.336.2-alpha-7eb86ca.0",
|
|
87
|
+
"@genesislcap/genx": "14.336.2-alpha-7eb86ca.0",
|
|
88
|
+
"@genesislcap/rollup-builder": "14.336.2-alpha-7eb86ca.0",
|
|
89
|
+
"@genesislcap/ts-builder": "14.336.2-alpha-7eb86ca.0",
|
|
90
|
+
"@genesislcap/uvu-playwright-builder": "14.336.2-alpha-7eb86ca.0",
|
|
91
|
+
"@genesislcap/vite-builder": "14.336.2-alpha-7eb86ca.0",
|
|
92
|
+
"@genesislcap/webpack-builder": "14.336.2-alpha-7eb86ca.0",
|
|
93
93
|
"copyfiles": "^2.4.1"
|
|
94
94
|
},
|
|
95
95
|
"dependencies": {
|
|
@@ -98,15 +98,15 @@
|
|
|
98
98
|
"@fortawesome/free-regular-svg-icons": "^6.2.1",
|
|
99
99
|
"@fortawesome/free-solid-svg-icons": "^6.2.1",
|
|
100
100
|
"@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
|
|
101
|
-
"@genesislcap/expression-builder": "14.336.0",
|
|
102
|
-
"@genesislcap/foundation-comms": "14.336.0",
|
|
103
|
-
"@genesislcap/foundation-criteria": "14.336.0",
|
|
104
|
-
"@genesislcap/foundation-errors": "14.336.0",
|
|
105
|
-
"@genesislcap/foundation-events": "14.336.0",
|
|
106
|
-
"@genesislcap/foundation-logger": "14.336.0",
|
|
107
|
-
"@genesislcap/foundation-notifications": "14.336.0",
|
|
108
|
-
"@genesislcap/foundation-user": "14.336.0",
|
|
109
|
-
"@genesislcap/foundation-utils": "14.336.0",
|
|
101
|
+
"@genesislcap/expression-builder": "14.336.2-alpha-7eb86ca.0",
|
|
102
|
+
"@genesislcap/foundation-comms": "14.336.2-alpha-7eb86ca.0",
|
|
103
|
+
"@genesislcap/foundation-criteria": "14.336.2-alpha-7eb86ca.0",
|
|
104
|
+
"@genesislcap/foundation-errors": "14.336.2-alpha-7eb86ca.0",
|
|
105
|
+
"@genesislcap/foundation-events": "14.336.2-alpha-7eb86ca.0",
|
|
106
|
+
"@genesislcap/foundation-logger": "14.336.2-alpha-7eb86ca.0",
|
|
107
|
+
"@genesislcap/foundation-notifications": "14.336.2-alpha-7eb86ca.0",
|
|
108
|
+
"@genesislcap/foundation-user": "14.336.2-alpha-7eb86ca.0",
|
|
109
|
+
"@genesislcap/foundation-utils": "14.336.2-alpha-7eb86ca.0",
|
|
110
110
|
"@microsoft/fast-colors": "5.3.1",
|
|
111
111
|
"@microsoft/fast-components": "2.30.6",
|
|
112
112
|
"@microsoft/fast-element": "1.14.0",
|
|
@@ -128,5 +128,5 @@
|
|
|
128
128
|
"access": "public"
|
|
129
129
|
},
|
|
130
130
|
"customElements": "dist/custom-elements.json",
|
|
131
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "330b6db51b43de4804c89dbc19dadb96fc4bdbd7"
|
|
132
132
|
}
|