@api-client/ui 0.6.9 → 0.6.11
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/build/src/md/button/internals/group.styles.d.ts.map +1 -1
- package/build/src/md/button/internals/group.styles.js +1 -0
- package/build/src/md/button/internals/group.styles.js.map +1 -1
- package/build/src/modeling/domain-template-browser.d.ts.map +1 -1
- package/build/src/modeling/domain-template-browser.js +2 -1
- package/build/src/modeling/domain-template-browser.js.map +1 -1
- package/build/src/modeling/internals/DomainTemplateBrowser.d.ts.map +1 -1
- package/build/src/modeling/internals/DomainTemplateBrowser.js +25 -1
- package/build/src/modeling/internals/DomainTemplateBrowser.js.map +1 -1
- package/build/src/modeling/internals/styles/DomainTemplateBrowser.styles.d.ts.map +1 -1
- package/build/src/modeling/internals/styles/DomainTemplateBrowser.styles.js +12 -0
- package/build/src/modeling/internals/styles/DomainTemplateBrowser.styles.js.map +1 -1
- package/build/src/styles/m3/tokens.js +33 -33
- package/build/src/styles/m3/tokens.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/md/button/internals/group.styles.ts +1 -0
- package/src/modeling/domain-template-browser.ts +2 -1
- package/src/modeling/internals/DomainTemplateBrowser.ts +26 -1
- package/src/modeling/internals/styles/DomainTemplateBrowser.styles.ts +12 -0
- package/src/styles/m3/tokens.ts +33 -33
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { customElement } from 'lit/decorators.js'
|
|
2
2
|
import Element from './internals/DomainTemplateBrowser.js'
|
|
3
3
|
import styles from './internals/styles/DomainTemplateBrowser.styles.js'
|
|
4
|
+
import typography from '../styles/m3/typography.module.js'
|
|
4
5
|
|
|
5
6
|
import '../md/button/ui-button.js'
|
|
6
7
|
import '../md/button/ui-button-group.js'
|
|
@@ -9,7 +10,7 @@ import '../md/text-field/ui-outlined-text-field.js'
|
|
|
9
10
|
|
|
10
11
|
@customElement('domain-template-browser')
|
|
11
12
|
export class DomainTemplateBrowserElement extends Element {
|
|
12
|
-
static override styles = [styles]
|
|
13
|
+
static override styles = [styles, typography]
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
declare global {
|
|
@@ -94,6 +94,27 @@ function searchTemplates(query: string): DomainTemplateMetadata[] {
|
|
|
94
94
|
)
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
function getVerticalName(id: string): string {
|
|
98
|
+
switch (id) {
|
|
99
|
+
case 'businessServices':
|
|
100
|
+
return 'Business Services'
|
|
101
|
+
case 'educationTraining':
|
|
102
|
+
return 'Education & Training'
|
|
103
|
+
case 'healthcareLifeSciences':
|
|
104
|
+
return 'Healthcare & Life Sciences'
|
|
105
|
+
case 'manufacturingLogistics':
|
|
106
|
+
return 'Manufacturing & Logistics'
|
|
107
|
+
case 'publicSector':
|
|
108
|
+
return 'Public Sector'
|
|
109
|
+
case 'realEstateConstruction':
|
|
110
|
+
return 'Real Estate & Construction'
|
|
111
|
+
case 'technologyMedia':
|
|
112
|
+
return 'Technology & Media'
|
|
113
|
+
default:
|
|
114
|
+
return id
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
97
118
|
/**
|
|
98
119
|
* A browser component for exploring and selecting domain templates.
|
|
99
120
|
* It provides the UI for searching, filtering, previewing, and selecting data domain templates.
|
|
@@ -266,7 +287,7 @@ export default class DomainTemplateBrowser extends LitElement {
|
|
|
266
287
|
?selected="${isSelected}"
|
|
267
288
|
@click="${this.handleFilterClick}"
|
|
268
289
|
>
|
|
269
|
-
${category}
|
|
290
|
+
${getVerticalName(category)}
|
|
270
291
|
</ui-button>`
|
|
271
292
|
})}
|
|
272
293
|
</ui-button-group>
|
|
@@ -287,6 +308,10 @@ export default class DomainTemplateBrowser extends LitElement {
|
|
|
287
308
|
|
|
288
309
|
return html`
|
|
289
310
|
<div class="template-card">
|
|
311
|
+
<div class="meta">
|
|
312
|
+
<span class="value body-small" title="Updated at">${new Date(template.updatedAt).toLocaleDateString()}</span>
|
|
313
|
+
<span class="value body-small" title="Version">v${template.version}</span>
|
|
314
|
+
</div>
|
|
290
315
|
<h3 class="template-title display-small">${templateName}</h3>
|
|
291
316
|
<p class="template-description body-medium">${templateDescription}</p>
|
|
292
317
|
|
|
@@ -71,6 +71,18 @@ export default css`
|
|
|
71
71
|
color: var(--md-sys-color-on-surface);
|
|
72
72
|
border: 1px solid var(--md-sys-color-outline-variant);
|
|
73
73
|
border-radius: var(--md-sys-shape-corner-medium);
|
|
74
|
+
|
|
75
|
+
.meta {
|
|
76
|
+
display: flex;
|
|
77
|
+
gap: 8px;
|
|
78
|
+
|
|
79
|
+
.value {
|
|
80
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
81
|
+
border: 1px var(--md-sys-color-outline-variant) solid;
|
|
82
|
+
border-radius: 8px;
|
|
83
|
+
padding: 0 4px;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
74
86
|
}
|
|
75
87
|
|
|
76
88
|
.template-description {
|
package/src/styles/m3/tokens.ts
CHANGED
|
@@ -15,10 +15,10 @@ export default css`
|
|
|
15
15
|
--md-sys-color-on-primary-light: rgb(255 255 255);
|
|
16
16
|
--md-sys-color-primary-container-light: rgb(158 239 254);
|
|
17
17
|
--md-sys-color-on-primary-container-light: rgb(0 79 88);
|
|
18
|
-
--md-sys-color-secondary-light: rgb(
|
|
18
|
+
--md-sys-color-secondary-light: rgb(74 98 103);
|
|
19
19
|
--md-sys-color-on-secondary-light: rgb(255 255 255);
|
|
20
|
-
--md-sys-color-secondary-container-light: rgb(
|
|
21
|
-
--md-sys-color-on-secondary-container-light: rgb(
|
|
20
|
+
--md-sys-color-secondary-container-light: rgb(205 231 236);
|
|
21
|
+
--md-sys-color-on-secondary-container-light: rgb(51 75 79);
|
|
22
22
|
--md-sys-color-tertiary-light: rgb(83 94 125);
|
|
23
23
|
--md-sys-color-on-tertiary-light: rgb(255 255 255);
|
|
24
24
|
--md-sys-color-tertiary-container-light: rgb(218 226 255);
|
|
@@ -44,10 +44,10 @@ export default css`
|
|
|
44
44
|
--md-sys-color-on-primary-fixed-light: rgb(0 31 36);
|
|
45
45
|
--md-sys-color-primary-fixed-dim-light: rgb(130 211 225);
|
|
46
46
|
--md-sys-color-on-primary-fixed-variant-light: rgb(0 79 88);
|
|
47
|
-
--md-sys-color-secondary-fixed-light: rgb(
|
|
48
|
-
--md-sys-color-on-secondary-fixed-light: rgb(
|
|
49
|
-
--md-sys-color-secondary-fixed-dim-light: rgb(
|
|
50
|
-
--md-sys-color-on-secondary-fixed-variant-light: rgb(
|
|
47
|
+
--md-sys-color-secondary-fixed-light: rgb(205 231 236);
|
|
48
|
+
--md-sys-color-on-secondary-fixed-light: rgb(5 31 35);
|
|
49
|
+
--md-sys-color-secondary-fixed-dim-light: rgb(177 203 208);
|
|
50
|
+
--md-sys-color-on-secondary-fixed-variant-light: rgb(51 75 79);
|
|
51
51
|
--md-sys-color-tertiary-fixed-light: rgb(218 226 255);
|
|
52
52
|
--md-sys-color-on-tertiary-fixed-light: rgb(15 26 55);
|
|
53
53
|
--md-sys-color-tertiary-fixed-dim-light: rgb(187 198 234);
|
|
@@ -73,9 +73,9 @@ export default css`
|
|
|
73
73
|
--md-sys-color-on-primary-light-hc: rgb(255 255 255);
|
|
74
74
|
--md-sys-color-primary-container-light-hc: rgb(0 81 91);
|
|
75
75
|
--md-sys-color-on-primary-container-light-hc: rgb(255 255 255);
|
|
76
|
-
--md-sys-color-secondary-light-hc: rgb(
|
|
76
|
+
--md-sys-color-secondary-light-hc: rgb(23 48 52);
|
|
77
77
|
--md-sys-color-on-secondary-light-hc: rgb(255 255 255);
|
|
78
|
-
--md-sys-color-secondary-container-light-hc: rgb(
|
|
78
|
+
--md-sys-color-secondary-container-light-hc: rgb(53 77 81);
|
|
79
79
|
--md-sys-color-on-secondary-container-light-hc: rgb(255 255 255);
|
|
80
80
|
--md-sys-color-tertiary-light-hc: rgb(32 43 72);
|
|
81
81
|
--md-sys-color-on-tertiary-light-hc: rgb(255 255 255);
|
|
@@ -102,9 +102,9 @@ export default css`
|
|
|
102
102
|
--md-sys-color-on-primary-fixed-light-hc: rgb(255 255 255);
|
|
103
103
|
--md-sys-color-primary-fixed-dim-light-hc: rgb(0 57 64);
|
|
104
104
|
--md-sys-color-on-primary-fixed-variant-light-hc: rgb(255 255 255);
|
|
105
|
-
--md-sys-color-secondary-fixed-light-hc: rgb(
|
|
105
|
+
--md-sys-color-secondary-fixed-light-hc: rgb(53 77 81);
|
|
106
106
|
--md-sys-color-on-secondary-fixed-light-hc: rgb(255 255 255);
|
|
107
|
-
--md-sys-color-secondary-fixed-dim-light-hc: rgb(
|
|
107
|
+
--md-sys-color-secondary-fixed-dim-light-hc: rgb(30 54 58);
|
|
108
108
|
--md-sys-color-on-secondary-fixed-variant-light-hc: rgb(255 255 255);
|
|
109
109
|
--md-sys-color-tertiary-fixed-light-hc: rgb(61 72 103);
|
|
110
110
|
--md-sys-color-on-tertiary-fixed-light-hc: rgb(255 255 255);
|
|
@@ -130,9 +130,9 @@ export default css`
|
|
|
130
130
|
--md-sys-color-on-primary-light-mc: rgb(255 255 255);
|
|
131
131
|
--md-sys-color-primary-container-light-mc: rgb(25 120 133);
|
|
132
132
|
--md-sys-color-on-primary-container-light-mc: rgb(255 255 255);
|
|
133
|
-
--md-sys-color-secondary-light-mc: rgb(
|
|
133
|
+
--md-sys-color-secondary-light-mc: rgb(34 58 62);
|
|
134
134
|
--md-sys-color-on-secondary-light-mc: rgb(255 255 255);
|
|
135
|
-
--md-sys-color-secondary-container-light-mc: rgb(
|
|
135
|
+
--md-sys-color-secondary-container-light-mc: rgb(89 113 118);
|
|
136
136
|
--md-sys-color-on-secondary-container-light-mc: rgb(255 255 255);
|
|
137
137
|
--md-sys-color-tertiary-light-mc: rgb(42 53 83);
|
|
138
138
|
--md-sys-color-on-tertiary-light-mc: rgb(255 255 255);
|
|
@@ -159,9 +159,9 @@ export default css`
|
|
|
159
159
|
--md-sys-color-on-primary-fixed-light-mc: rgb(255 255 255);
|
|
160
160
|
--md-sys-color-primary-fixed-dim-light-mc: rgb(0 94 105);
|
|
161
161
|
--md-sys-color-on-primary-fixed-variant-light-mc: rgb(255 255 255);
|
|
162
|
-
--md-sys-color-secondary-fixed-light-mc: rgb(
|
|
162
|
+
--md-sys-color-secondary-fixed-light-mc: rgb(89 113 118);
|
|
163
163
|
--md-sys-color-on-secondary-fixed-light-mc: rgb(255 255 255);
|
|
164
|
-
--md-sys-color-secondary-fixed-dim-light-mc: rgb(
|
|
164
|
+
--md-sys-color-secondary-fixed-dim-light-mc: rgb(65 89 93);
|
|
165
165
|
--md-sys-color-on-secondary-fixed-variant-light-mc: rgb(255 255 255);
|
|
166
166
|
--md-sys-color-tertiary-fixed-light-mc: rgb(97 108 141);
|
|
167
167
|
--md-sys-color-on-tertiary-fixed-light-mc: rgb(255 255 255);
|
|
@@ -189,10 +189,10 @@ export default css`
|
|
|
189
189
|
--md-sys-color-on-primary-dark: rgb(0 54 61);
|
|
190
190
|
--md-sys-color-primary-container-dark: rgb(0 79 88);
|
|
191
191
|
--md-sys-color-on-primary-container-dark: rgb(158 239 254);
|
|
192
|
-
--md-sys-color-secondary-dark: rgb(
|
|
193
|
-
--md-sys-color-on-secondary-dark: rgb(
|
|
194
|
-
--md-sys-color-secondary-container-dark: rgb(
|
|
195
|
-
--md-sys-color-on-secondary-container-dark: rgb(
|
|
192
|
+
--md-sys-color-secondary-dark: rgb(177 203 208);
|
|
193
|
+
--md-sys-color-on-secondary-dark: rgb(28 52 56);
|
|
194
|
+
--md-sys-color-secondary-container-dark: rgb(51 75 79);
|
|
195
|
+
--md-sys-color-on-secondary-container-dark: rgb(205 231 236);
|
|
196
196
|
--md-sys-color-tertiary-dark: rgb(187 198 234);
|
|
197
197
|
--md-sys-color-on-tertiary-dark: rgb(36 48 77);
|
|
198
198
|
--md-sys-color-tertiary-container-dark: rgb(59 70 101);
|
|
@@ -218,10 +218,10 @@ export default css`
|
|
|
218
218
|
--md-sys-color-on-primary-fixed-dark: rgb(0 31 36);
|
|
219
219
|
--md-sys-color-primary-fixed-dim-dark: rgb(130 211 225);
|
|
220
220
|
--md-sys-color-on-primary-fixed-variant-dark: rgb(0 79 88);
|
|
221
|
-
--md-sys-color-secondary-fixed-dark: rgb(
|
|
222
|
-
--md-sys-color-on-secondary-fixed-dark: rgb(
|
|
223
|
-
--md-sys-color-secondary-fixed-dim-dark: rgb(
|
|
224
|
-
--md-sys-color-on-secondary-fixed-variant-dark: rgb(
|
|
221
|
+
--md-sys-color-secondary-fixed-dark: rgb(205 231 236);
|
|
222
|
+
--md-sys-color-on-secondary-fixed-dark: rgb(5 31 35);
|
|
223
|
+
--md-sys-color-secondary-fixed-dim-dark: rgb(177 203 208);
|
|
224
|
+
--md-sys-color-on-secondary-fixed-variant-dark: rgb(51 75 79);
|
|
225
225
|
--md-sys-color-tertiary-fixed-dark: rgb(218 226 255);
|
|
226
226
|
--md-sys-color-on-tertiary-fixed-dark: rgb(15 26 55);
|
|
227
227
|
--md-sys-color-tertiary-fixed-dim-dark: rgb(187 198 234);
|
|
@@ -247,9 +247,9 @@ export default css`
|
|
|
247
247
|
--md-sys-color-on-primary-dark-hc: rgb(0 0 0);
|
|
248
248
|
--md-sys-color-primary-container-dark-hc: rgb(126 207 221);
|
|
249
249
|
--md-sys-color-on-primary-container-dark-hc: rgb(0 14 16);
|
|
250
|
-
--md-sys-color-secondary-dark-hc: rgb(
|
|
250
|
+
--md-sys-color-secondary-dark-hc: rgb(218 245 250);
|
|
251
251
|
--md-sys-color-on-secondary-dark-hc: rgb(0 0 0);
|
|
252
|
-
--md-sys-color-secondary-container-dark-hc: rgb(
|
|
252
|
+
--md-sys-color-secondary-container-dark-hc: rgb(173 199 204);
|
|
253
253
|
--md-sys-color-on-secondary-container-dark-hc: rgb(0 14 16);
|
|
254
254
|
--md-sys-color-tertiary-dark-hc: rgb(237 239 255);
|
|
255
255
|
--md-sys-color-on-tertiary-dark-hc: rgb(0 0 0);
|
|
@@ -276,9 +276,9 @@ export default css`
|
|
|
276
276
|
--md-sys-color-on-primary-fixed-dark-hc: rgb(0 0 0);
|
|
277
277
|
--md-sys-color-primary-fixed-dim-dark-hc: rgb(130 211 225);
|
|
278
278
|
--md-sys-color-on-primary-fixed-variant-dark-hc: rgb(0 20 23);
|
|
279
|
-
--md-sys-color-secondary-fixed-dark-hc: rgb(
|
|
279
|
+
--md-sys-color-secondary-fixed-dark-hc: rgb(205 231 236);
|
|
280
280
|
--md-sys-color-on-secondary-fixed-dark-hc: rgb(0 0 0);
|
|
281
|
-
--md-sys-color-secondary-fixed-dim-dark-hc: rgb(
|
|
281
|
+
--md-sys-color-secondary-fixed-dim-dark-hc: rgb(177 203 208);
|
|
282
282
|
--md-sys-color-on-secondary-fixed-variant-dark-hc: rgb(0 20 23);
|
|
283
283
|
--md-sys-color-tertiary-fixed-dark-hc: rgb(218 226 255);
|
|
284
284
|
--md-sys-color-on-tertiary-fixed-dark-hc: rgb(0 0 0);
|
|
@@ -305,9 +305,9 @@ export default css`
|
|
|
305
305
|
--md-sys-color-on-primary-dark-mc: rgb(0 42 48);
|
|
306
306
|
--md-sys-color-primary-container-dark-mc: rgb(73 156 169);
|
|
307
307
|
--md-sys-color-on-primary-container-dark-mc: rgb(0 0 0);
|
|
308
|
-
--md-sys-color-secondary-dark-mc: rgb(
|
|
309
|
-
--md-sys-color-on-secondary-dark-mc: rgb(
|
|
310
|
-
--md-sys-color-secondary-container-dark-mc: rgb(
|
|
308
|
+
--md-sys-color-secondary-dark-mc: rgb(199 225 230);
|
|
309
|
+
--md-sys-color-on-secondary-dark-mc: rgb(16 41 45);
|
|
310
|
+
--md-sys-color-secondary-container-dark-mc: rgb(124 149 154);
|
|
311
311
|
--md-sys-color-on-secondary-container-dark-mc: rgb(0 0 0);
|
|
312
312
|
--md-sys-color-tertiary-dark-mc: rgb(209 219 255);
|
|
313
313
|
--md-sys-color-on-tertiary-dark-mc: rgb(25 37 65);
|
|
@@ -334,10 +334,10 @@ export default css`
|
|
|
334
334
|
--md-sys-color-on-primary-fixed-dark-mc: rgb(0 20 23);
|
|
335
335
|
--md-sys-color-primary-fixed-dim-dark-mc: rgb(130 211 225);
|
|
336
336
|
--md-sys-color-on-primary-fixed-variant-dark-mc: rgb(0 60 68);
|
|
337
|
-
--md-sys-color-secondary-fixed-dark-mc: rgb(
|
|
337
|
+
--md-sys-color-secondary-fixed-dark-mc: rgb(205 231 236);
|
|
338
338
|
--md-sys-color-on-secondary-fixed-dark-mc: rgb(0 20 23);
|
|
339
|
-
--md-sys-color-secondary-fixed-dim-dark-mc: rgb(
|
|
340
|
-
--md-sys-color-on-secondary-fixed-variant-dark-mc: rgb(
|
|
339
|
+
--md-sys-color-secondary-fixed-dim-dark-mc: rgb(177 203 208);
|
|
340
|
+
--md-sys-color-on-secondary-fixed-variant-dark-mc: rgb(34 58 62);
|
|
341
341
|
--md-sys-color-tertiary-fixed-dark-mc: rgb(218 226 255);
|
|
342
342
|
--md-sys-color-on-tertiary-fixed-dark-mc: rgb(4 16 44);
|
|
343
343
|
--md-sys-color-tertiary-fixed-dim-dark-mc: rgb(187 198 234);
|