@epa-wg/custom-element-dist 0.0.33 → 0.0.35
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/.claude/settings.local.json +18 -0
- package/.gitattributes +4 -0
- package/.github/workflows/deploy.yml +59 -0
- package/.idea/copilot.data.migration.agent.xml +6 -0
- package/.idea/copilot.data.migration.ask.xml +6 -0
- package/.idea/copilot.data.migration.ask2agent.xml +6 -0
- package/.idea/copilot.data.migration.edit.xml +6 -0
- package/.idea/custom-element-dist.iml +2 -0
- package/.storybook/main.ts +20 -17
- package/.storybook/preview.ts +23 -23
- package/.yarn/install-state.gz +0 -0
- package/.yarnrc.yml +1 -0
- package/README.md +6 -4
- package/coverage/block-navigation.js +1 -1
- package/coverage/coverage-final.json +4 -3
- package/coverage/index.html +34 -19
- package/coverage/sorter.js +21 -7
- package/coverage/src/custom-element/coverage.svg +1 -1
- package/coverage/src/custom-element/custom-element.js/coverage.svg +1 -1
- package/coverage/src/custom-element/custom-element.js.html +448 -391
- package/coverage/src/custom-element/http-request.js/coverage.svg +1 -1
- package/coverage/src/custom-element/http-request.js.html +38 -17
- package/coverage/src/custom-element/index.html +26 -26
- package/coverage/src/custom-element/local-storage.js.html +1 -1
- package/coverage/src/custom-element/location-element.js.html +1 -1
- package/coverage/src/custom-element/module-url.js.html +1 -1
- package/coverage/src/index.html +1 -1
- package/coverage/src/material/theme/colors.js/coverage.svg +10 -0
- package/coverage/src/material/theme/colors.js.html +217 -0
- package/coverage/src/material/theme/coverage.svg +10 -0
- package/coverage/src/material/theme/index.html +116 -0
- package/coverage/src/mocks/handlers.ts.html +1 -1
- package/coverage/src/mocks/index.html +1 -1
- package/coverage/src/stories/frame.canvas.ts.html +1 -1
- package/coverage/src/stories/http-request.stories.ts.html +1 -1
- package/coverage/src/stories/index.html +1 -1
- package/coverage/src/stories/testStoryBook.ts.html +12 -12
- package/coverage/src/sum.ts.html +1 -1
- package/dist/custom-element-Bssk9jRy.cjs +97 -0
- package/dist/{custom-element-WnOqmEOe.js → custom-element-BzDjIYMe.js} +193 -183
- package/dist/custom-element-bundle.cjs +1 -1
- package/dist/custom-element-bundle.js +3 -3
- package/dist/demo/a.html +10 -3
- package/dist/demo/a.svg +26 -26
- package/dist/demo/html-template.html +4 -3
- package/dist/demo/s.xml +1 -75
- package/dist/demo/s.xslt +351 -72
- package/dist/demo/s1.xml +3706 -0
- package/dist/http-request-DSaowcG1.cjs +1 -0
- package/dist/{http-request-BOvP4KTl.js → http-request-DTCzZ1gc.js} +15 -9
- package/dist/mockServiceWorker.js +105 -63
- package/package.json +5 -4
- package/public/demo/a.html +10 -3
- package/public/demo/a.svg +26 -26
- package/public/demo/html-template.html +4 -3
- package/public/demo/s.xml +1 -75
- package/public/demo/s.xslt +351 -72
- package/public/demo/s1.xml +3706 -0
- package/public/mockServiceWorker.js +105 -63
- package/src/custom-element/custom-element.js +28 -9
- package/src/custom-element/demo/a.html +10 -3
- package/src/custom-element/demo/a.svg +26 -26
- package/src/custom-element/demo/html-template.html +4 -3
- package/src/custom-element/demo/s.xml +1 -75
- package/src/custom-element/demo/s.xslt +351 -72
- package/src/custom-element/demo/s1.xml +3706 -0
- package/src/custom-element/http-request.js +7 -0
- package/src/custom-element/ide/customData-dce.json +123 -0
- package/src/custom-element/ide/web-types-dce.json +128 -1
- package/src/custom-element/ide/web-types-xsl.json +1 -1
- package/src/material/angular.css +987 -987
- package/src/material/components/action.html +262 -0
- package/src/material/components/autocomplete.html +167 -239
- package/src/material/components/badge.html +238 -239
- package/src/material/components/dropdown.html +0 -1
- package/src/material/components/icon-link.html +160 -161
- package/src/material/components/icon.html +251 -252
- package/src/material/components/input.html +569 -570
- package/src/material/components/menu.html +235 -236
- package/src/material/components.html +157 -158
- package/src/material/demo.css +36 -36
- package/src/material/index.html +109 -110
- package/src/material/material.css +356 -356
- package/src/material/theme/Base-Principles.md +339 -0
- package/src/material/theme/README.md +298 -18
- package/src/material/theme/UI Domain Model in web applications.svg +1 -0
- package/src/material/theme/User Semantic Theme tokens.svg +1 -0
- package/src/material/theme/action-pending-poc.html +62 -0
- package/src/material/theme/actions-color.html +141 -0
- package/src/material/theme/colors-light.html +631 -0
- package/src/material/theme/colors-native.html +51 -0
- package/src/material/theme/colors-poc.html +66 -0
- package/src/material/theme/colors.html +297 -0
- package/src/material/theme/colors.js +44 -0
- package/src/material/theme/consumer-theme.css +745 -0
- package/src/material/theme/semantic.css +132 -132
- package/src/material/theme/style-bug.html +123 -0
- package/src/material/theme/theme-data.css +43 -0
- package/src/material/theme/theme-data.xhtml +2926 -0
- package/src/material/theme/todo.md +274 -0
- package/src/material/theme/tokens/action-colors.png +0 -0
- package/src/material/theme/tokens/cem-article-illustration-4x1-letterbox-2000x500.png +0 -0
- package/src/material/theme/tokens/cem-breakpoints.md +519 -0
- package/src/material/theme/tokens/cem-colors.md +715 -0
- package/src/material/theme/tokens/cem-consumerflow-typography-matrix.svg +198 -0
- package/src/material/theme/tokens/cem-coupling.md +372 -0
- package/src/material/theme/tokens/cem-data-vs-reading-numerals.svg +164 -0
- package/src/material/theme/tokens/cem-dimension.md +625 -0
- package/src/material/theme/tokens/cem-layering.md +562 -0
- package/src/material/theme/tokens/cem-m3-parity.md +343 -0
- package/src/material/theme/tokens/cem-responsive.md +238 -0
- package/src/material/theme/tokens/cem-shape.md +691 -0
- package/src/material/theme/tokens/cem-stroke-density-illustration-4to1-v3.svg +102 -0
- package/src/material/theme/tokens/cem-stroke.md +480 -0
- package/src/material/theme/tokens/cem-timing.md +198 -0
- package/src/material/theme/tokens/cem-typography-model-stack.svg +64 -0
- package/src/material/theme/tokens/cem-voice-fonts-typography.md +718 -0
- package/src/material/theme/tokens/cem-voice-ladder.svg +91 -0
- package/src/material/theme/tokens/chips.png +0 -0
- package/src/material/theme/tokens/columns-page.png +0 -0
- package/src/material/theme/tokens/initials.png +0 -0
- package/src/material/theme/tokens/nav-buttons.png +0 -0
- package/src/material/theme/tokens/script.png +0 -0
- package/src/material/theme/tokens/sufler.png +0 -0
- package/src/material/theme/tokens/typography-icons.png +0 -0
- package/src/mocks/versions.mock.ts +1 -1
- package/src/stories/__screenshots__/dom-merge.test.stories.ts/dom-merge-dom-merge-OrderPreservingOn2ndTransform-1.png +0 -0
- package/src/stories/__screenshots__/xslt-conditionals.test.stories.ts/xslt-conditionals-xslt-conditionals-MultipleIfOrderingWorkaround-1.png +0 -0
- package/src/stories/dom-merge.test.stories.ts +25 -1
- package/src/stories/xslt-conditionals.test.stories.ts +492 -0
- package/src/stories/xslt-for-each.test.stories.ts +336 -0
- package/src/stories/xslt-if.test.stories.ts +89 -0
- package/storybook-static/assets/{Color-F6OSRLHC-Cbp293x2.js → Color-F6OSRLHC-DeDlDLjU.js} +1 -1
- package/storybook-static/assets/{Configure-BrFr4SLE.js → Configure-CH_tIP5N.js} +1 -1
- package/storybook-static/assets/{DocsRenderer-CFRXHY34-DhHzJiIO.js → DocsRenderer-CFRXHY34-Bc9EPsUI.js} +2 -2
- package/storybook-static/assets/{attributes.test.stories-Gg9LQTEK.js → attributes.test.stories-BtamFQkF.js} +1 -1
- package/storybook-static/assets/{css.test.stories-B_3ltOrx.js → css.test.stories-BfNxLgwr.js} +1 -1
- package/storybook-static/assets/{custom-element-CPnvJnn8.js → custom-element-CnmjNo0g.js} +6 -6
- package/storybook-static/assets/{dom-merge.test.stories-nQxcgLoM.js → dom-merge.test.stories-DxnitrLK.js} +47 -6
- package/storybook-static/assets/entry-preview-BNCt9WBs.js +26 -0
- package/storybook-static/assets/{entry-preview-docs-Dwczwtsc.js → entry-preview-docs-CbF8-81D.js} +2 -2
- package/storybook-static/assets/{external-template.test.stories-DZ-rjnfd.js → external-template.test.stories-BTsww7B0.js} +1 -1
- package/storybook-static/assets/{form.test.stories-DQhPYtMj.js → form.test.stories-DNJFtPJb.js} +1 -1
- package/storybook-static/assets/{frame.canvas-ClTqYyMN.js → frame.canvas-E5n9h6j1.js} +1 -1
- package/storybook-static/assets/{handlers-CLkps6Nz.js → handlers-Dvg8CAeR.js} +1 -1
- package/storybook-static/assets/http-request-BWeEEBkP.js +1 -0
- package/storybook-static/assets/{http-request.stories-jo0f73nw.js → http-request.stories-DgrBNle8.js} +1 -1
- package/storybook-static/assets/{iframe-CZwRpnn9.js → iframe-DiVWehoI.js} +11 -11
- package/storybook-static/assets/{index-Dr4PwNfd.js → index-CGuyH0k-.js} +87 -87
- package/storybook-static/assets/{index-CJQtnF9V.js → index-CdEbhcV9.js} +1 -1
- package/storybook-static/assets/index-DO1nmyvI.js +11 -0
- package/storybook-static/assets/{index-B68YUdzy.js → index-w6iX3YlR.js} +3 -3
- package/storybook-static/assets/{local-storage.test.stories-uA5EKRPf.js → local-storage.test.stories-Hwq80yUr.js} +1 -1
- package/storybook-static/assets/{location-element.test.stories-Cu-6Elcg.js → location-element.test.stories-mEhZzm7x.js} +1 -1
- package/storybook-static/assets/{module-url.test.stories-CD_wusXQ.js → module-url.test.stories-Bj46iT0V.js} +1 -1
- package/storybook-static/assets/{preview-CuCH40jj.js → preview-BjbXcJci.js} +2 -2
- package/storybook-static/assets/{preview-BFlNN3Wj.js → preview-Bn8igYMp.js} +1 -1
- package/storybook-static/assets/{preview-Cm4PPhHS.js → preview-CfuT8gak.js} +1 -1
- package/storybook-static/assets/{set-url.test.stories-CY7B9BVZ.js → set-url.test.stories-hzxLcqmm.js} +1 -1
- package/storybook-static/assets/{slice-events.test.stories-BVnPXm6e.js → slice-events.test.stories-DVyXFRU1.js} +1 -1
- package/storybook-static/assets/{slots.test.stories-Dxsa9KdA.js → slots.test.stories-CS544nS4.js} +1 -1
- package/storybook-static/assets/{version-select.test.stories-Buga1PAa.js → version-select.test.stories-D36nfYBq.js} +1 -1
- package/storybook-static/assets/xslt-conditionals.test.stories-BS1PTIHe.js +633 -0
- package/storybook-static/assets/xslt-for-each.test.stories-CtPS20RK.js +329 -0
- package/storybook-static/assets/xslt-if.test.stories-DcHrAMSY.js +71 -0
- package/storybook-static/demo/a.html +10 -3
- package/storybook-static/demo/a.svg +26 -26
- package/storybook-static/demo/html-template.html +4 -3
- package/storybook-static/demo/s.xml +1 -75
- package/storybook-static/demo/s.xslt +351 -72
- package/storybook-static/demo/s1.xml +3706 -0
- package/storybook-static/iframe.html +2 -2
- package/storybook-static/index.json +1 -1
- package/storybook-static/mockServiceWorker.js +105 -63
- package/storybook-static/project.json +1 -1
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +69 -66
- package/storybook-static/sb-addons/essentials-docs-3/manager-bundle.js +62 -59
- package/dist/custom-element-6slVaFEs.cjs +0 -97
- package/dist/http-request-DPrY7mGh.cjs +0 -1
- package/storybook-static/assets/attributes.test.stories-CzWkKw0e.js +0 -1
- package/storybook-static/assets/entry-preview-DHVXbf3x.js +0 -26
- package/storybook-static/assets/external-template.test.stories-BivZqBTp.js +0 -1
- package/storybook-static/assets/http-request-DNq59pnj.js +0 -1
- package/storybook-static/assets/index-BwkS7JH_.js +0 -8
- package/storybook-static/assets/module-url.test.stories-CTjUAk3J.js +0 -1
|
@@ -1,132 +1,132 @@
|
|
|
1
|
-
/* cem - custom-element material
|
|
2
|
-
SEMANTIC THEME basic definitions
|
|
3
|
-
based on https://blog.firsov.net/search/label/Semantic%20Theme
|
|
4
|
-
*/
|
|
5
|
-
:root{
|
|
6
|
-
|
|
7
|
-
/*#region SPACING DIMENSIONS */
|
|
8
|
-
--cem-dim-xx-small : 0.25rem;
|
|
9
|
-
--cem-dim-x-small : 0.5rem;
|
|
10
|
-
--cem-dim-small : 0.75rem;
|
|
11
|
-
--cem-dim-medium : 1rem;
|
|
12
|
-
--cem-dim-large : 1.5rem;
|
|
13
|
-
--cem-dim-x-large : 2rem;
|
|
14
|
-
--cem-dim-xx-large : 4rem;
|
|
15
|
-
--cem-dim-xxx-large : 8rem;
|
|
16
|
-
/*#endregion */
|
|
17
|
-
|
|
18
|
-
/*#region OUTLINE THIKNESS */
|
|
19
|
-
--cem-thick-none: 0;
|
|
20
|
-
--cem-thick-xx-light: 0.5px;
|
|
21
|
-
--cem-thick-x-light : 1px;
|
|
22
|
-
--cem-thick-light : 2px;
|
|
23
|
-
--cem-thick-normal : 4px;
|
|
24
|
-
--cem-thick-bold : 0.5rem;
|
|
25
|
-
--cem-thick-x-bold : 1rem;
|
|
26
|
-
--cem-thick-xx-bold : 4rem;
|
|
27
|
-
/*#endregion */
|
|
28
|
-
|
|
29
|
-
/*#region TEXT TRACKING/SPACING */
|
|
30
|
-
--cem-tracking-negative : -0.25em;
|
|
31
|
-
--cem-tracking-stick : 0;
|
|
32
|
-
--cem-tracking-tight : 0.5px;
|
|
33
|
-
--cem-tracking-normal : auto;
|
|
34
|
-
--cem-tracking-loose : 0.25em;
|
|
35
|
-
--cem-tracking-sparse : 0.5em;
|
|
36
|
-
--cem-tracking-spread : 1em;
|
|
37
|
-
/*#endregion */
|
|
38
|
-
|
|
39
|
-
/*#region branded colors */
|
|
40
|
-
|
|
41
|
-
/*#endregion */
|
|
42
|
-
|
|
43
|
-
/*#region action */
|
|
44
|
-
--cem-drop-transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
45
|
-
|
|
46
|
-
/*#endregion */
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
/*#region semantic colors */
|
|
52
|
-
:root, .cem-theme-default, .cem-theme-azure{
|
|
53
|
-
|
|
54
|
-
--cem-icon-size: 2rem;
|
|
55
|
-
--cem-icon-size-small: 1rem;
|
|
56
|
-
--cem-icon-size-large: 3rem;
|
|
57
|
-
|
|
58
|
-
--cem-sys-body-small-size: .75rem;
|
|
59
|
-
--cem-form-field-subscript-text-size: var(--cem-sys-body-small-size);
|
|
60
|
-
|
|
61
|
-
--primary-background-color: var(--ng-azure-90);
|
|
62
|
-
--secondary-background-color: var(--ng-azure-80);
|
|
63
|
-
--alert-color: var(--ng-error-40);
|
|
64
|
-
--text-color: var(--ng-azure-10);
|
|
65
|
-
|
|
66
|
-
--cem-action-primary-color: var(--text-color);
|
|
67
|
-
--cem-action-primary-background: transparent;
|
|
68
|
-
--cem-action-primary-background-hover: var(--ng-azure-80,lightgrey);
|
|
69
|
-
--cem-action-primary-background-focus: var(--ng-azure-70,silver);
|
|
70
|
-
--cem-action-primary-background-active: var(--ng-azure-60,grey);
|
|
71
|
-
|
|
72
|
-
--cem-action-secondary-color: var(--text-color);
|
|
73
|
-
--cem-action-secondary-background: var(--ng-azure-secondary-90);
|
|
74
|
-
--cem-action-secondary-background-hover: var(--ng-azure-secondary-80,lightgrey);
|
|
75
|
-
--cem-action-secondary-background-focus: var(--ng-azure-secondary-70,silver);
|
|
76
|
-
--cem-action-secondary-background-active: var(--ng-azure-secondary-60,grey);
|
|
77
|
-
|
|
78
|
-
--cem-action-box-shadow: var(--ng-action-elevation-shadow, 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12));
|
|
79
|
-
--cem-action-box-shadow-hover: var(--ng-action-box-shadow-hover);
|
|
80
|
-
--cem-action-transition: var(--ng-action-transition);
|
|
81
|
-
|
|
82
|
-
--cem-app-surface-variant: var(--ng-azure-variant-90);
|
|
83
|
-
--cem-app-on-surface: var(--ng-azure-variant-70);
|
|
84
|
-
--cem-app-primary: var(--ng-azure-variant-60);
|
|
85
|
-
--cem-on-surface-variant: var(--cem-action-secondary-color);
|
|
86
|
-
|
|
87
|
-
--cem-filled-text-field-container-color: var(--ng-azure-variant-90);
|
|
88
|
-
--cem-filled-text-field-container-color-hover: var(--ng-azure-variant-80);
|
|
89
|
-
--cem-filled-text-field-label-text-color: var(--ng-azure-variant-30);
|
|
90
|
-
--cem-filled-text-field-input-text-color: var(--ng-azure-variant-0);
|
|
91
|
-
--cem-filled-text-field-caret-color: var(--ng-azure-variant-10);
|
|
92
|
-
--cem-outline-color-focus: var(--ng-azure-40);
|
|
93
|
-
--cem-focus-outline-height: 3px;
|
|
94
|
-
--cem-input-outline-color: black;
|
|
95
|
-
--cem-input-outline: inset 0 -1px 0 var(--cem-input-outline-color,black);
|
|
96
|
-
|
|
97
|
-
--cem-list-background-color: var(--ng-azure-neutral-94);
|
|
98
|
-
--cem-list-background-color-hover: var(--ng-azure-variant-90);
|
|
99
|
-
--cem-list-background-color-focus: var(--ng-azure-variant-80);
|
|
100
|
-
|
|
101
|
-
--cem-menu-item-color: black;
|
|
102
|
-
--cem-menu-item-color-disabled: var(--ng-azure-neutral-50);
|
|
103
|
-
--cem-menu-item-background: var(--ng-azure-neutral-94);
|
|
104
|
-
--cem-menu-item-hover-background: var(--ng-azure-neutral-80);
|
|
105
|
-
--cem-menu-item-hover-color: black;
|
|
106
|
-
--cem-menu-item-padding: 0.5rem;
|
|
107
|
-
--cem-menu-item-font-weight: bold;
|
|
108
|
-
|
|
109
|
-
--cem-badge-color-primary: var(--ng-azure-50);
|
|
110
|
-
--cem-badge-color-secondary: var(--ng-magenta-50);
|
|
111
|
-
--cem-badge-color-success: var(--ng-cyan-60);
|
|
112
|
-
--cem-badge-color-alert: var(--ng-error-50);
|
|
113
|
-
--cem-badge-color: var(--cem-badge-color-primary);
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.cem-theme-teal{
|
|
118
|
-
|
|
119
|
-
--primary-color: var(--ng-teal-primary);
|
|
120
|
-
--secondary-color: var(--ng-teal-hover);
|
|
121
|
-
--alert-color: var(--ng-magenta-80);
|
|
122
|
-
--text-color: var(--ng-azure-40);
|
|
123
|
-
|
|
124
|
-
--cem-action-primary-color: var(--primary-color);
|
|
125
|
-
|
|
126
|
-
--cem-action-primary-background: transparent;
|
|
127
|
-
--cem-action-primary-background-hover: var(--ng-teal-hover,lightgrey);
|
|
128
|
-
--cem-action-primary-background-focus: var(--ng-teal-focus,silver);
|
|
129
|
-
--cem-action-primary-background-active: var(--ng-teal-active,grey);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/*#endregion */
|
|
1
|
+
/* cem - custom-element material
|
|
2
|
+
SEMANTIC THEME basic definitions
|
|
3
|
+
based on https://blog.firsov.net/search/label/Semantic%20Theme
|
|
4
|
+
*/
|
|
5
|
+
:root{
|
|
6
|
+
|
|
7
|
+
/*#region SPACING DIMENSIONS */
|
|
8
|
+
--cem-dim-xx-small : 0.25rem;
|
|
9
|
+
--cem-dim-x-small : 0.5rem;
|
|
10
|
+
--cem-dim-small : 0.75rem;
|
|
11
|
+
--cem-dim-medium : 1rem;
|
|
12
|
+
--cem-dim-large : 1.5rem;
|
|
13
|
+
--cem-dim-x-large : 2rem;
|
|
14
|
+
--cem-dim-xx-large : 4rem;
|
|
15
|
+
--cem-dim-xxx-large : 8rem;
|
|
16
|
+
/*#endregion */
|
|
17
|
+
|
|
18
|
+
/*#region OUTLINE THIKNESS */
|
|
19
|
+
--cem-thick-none: 0;
|
|
20
|
+
--cem-thick-xx-light: 0.5px;
|
|
21
|
+
--cem-thick-x-light : 1px;
|
|
22
|
+
--cem-thick-light : 2px;
|
|
23
|
+
--cem-thick-normal : 4px;
|
|
24
|
+
--cem-thick-bold : 0.5rem;
|
|
25
|
+
--cem-thick-x-bold : 1rem;
|
|
26
|
+
--cem-thick-xx-bold : 4rem;
|
|
27
|
+
/*#endregion */
|
|
28
|
+
|
|
29
|
+
/*#region TEXT TRACKING/SPACING */
|
|
30
|
+
--cem-tracking-negative : -0.25em;
|
|
31
|
+
--cem-tracking-stick : 0;
|
|
32
|
+
--cem-tracking-tight : 0.5px;
|
|
33
|
+
--cem-tracking-normal : auto;
|
|
34
|
+
--cem-tracking-loose : 0.25em;
|
|
35
|
+
--cem-tracking-sparse : 0.5em;
|
|
36
|
+
--cem-tracking-spread : 1em;
|
|
37
|
+
/*#endregion */
|
|
38
|
+
|
|
39
|
+
/*#region branded colors */
|
|
40
|
+
|
|
41
|
+
/*#endregion */
|
|
42
|
+
|
|
43
|
+
/*#region action */
|
|
44
|
+
--cem-drop-transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
45
|
+
|
|
46
|
+
/*#endregion */
|
|
47
|
+
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
/*#region semantic colors */
|
|
52
|
+
:root, .cem-theme-default, .cem-theme-azure{
|
|
53
|
+
|
|
54
|
+
--cem-icon-size: 2rem;
|
|
55
|
+
--cem-icon-size-small: 1rem;
|
|
56
|
+
--cem-icon-size-large: 3rem;
|
|
57
|
+
|
|
58
|
+
--cem-sys-body-small-size: .75rem;
|
|
59
|
+
--cem-form-field-subscript-text-size: var(--cem-sys-body-small-size);
|
|
60
|
+
|
|
61
|
+
--primary-background-color: var(--ng-azure-90);
|
|
62
|
+
--secondary-background-color: var(--ng-azure-80);
|
|
63
|
+
--alert-color: var(--ng-error-40);
|
|
64
|
+
--text-color: var(--ng-azure-10);
|
|
65
|
+
|
|
66
|
+
--cem-action-primary-color: var(--text-color);
|
|
67
|
+
--cem-action-primary-background: transparent;
|
|
68
|
+
--cem-action-primary-background-hover: var(--ng-azure-80,lightgrey);
|
|
69
|
+
--cem-action-primary-background-focus: var(--ng-azure-70,silver);
|
|
70
|
+
--cem-action-primary-background-active: var(--ng-azure-60,grey);
|
|
71
|
+
|
|
72
|
+
--cem-action-secondary-color: var(--text-color);
|
|
73
|
+
--cem-action-secondary-background: var(--ng-azure-secondary-90);
|
|
74
|
+
--cem-action-secondary-background-hover: var(--ng-azure-secondary-80,lightgrey);
|
|
75
|
+
--cem-action-secondary-background-focus: var(--ng-azure-secondary-70,silver);
|
|
76
|
+
--cem-action-secondary-background-active: var(--ng-azure-secondary-60,grey);
|
|
77
|
+
|
|
78
|
+
--cem-action-box-shadow: var(--ng-action-elevation-shadow, 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12));
|
|
79
|
+
--cem-action-box-shadow-hover: var(--ng-action-box-shadow-hover);
|
|
80
|
+
--cem-action-transition: var(--ng-action-transition);
|
|
81
|
+
|
|
82
|
+
--cem-app-surface-variant: var(--ng-azure-variant-90);
|
|
83
|
+
--cem-app-on-surface: var(--ng-azure-variant-70);
|
|
84
|
+
--cem-app-primary: var(--ng-azure-variant-60);
|
|
85
|
+
--cem-on-surface-variant: var(--cem-action-secondary-color);
|
|
86
|
+
|
|
87
|
+
--cem-filled-text-field-container-color: var(--ng-azure-variant-90);
|
|
88
|
+
--cem-filled-text-field-container-color-hover: var(--ng-azure-variant-80);
|
|
89
|
+
--cem-filled-text-field-label-text-color: var(--ng-azure-variant-30);
|
|
90
|
+
--cem-filled-text-field-input-text-color: var(--ng-azure-variant-0);
|
|
91
|
+
--cem-filled-text-field-caret-color: var(--ng-azure-variant-10);
|
|
92
|
+
--cem-outline-color-focus: var(--ng-azure-40);
|
|
93
|
+
--cem-focus-outline-height: 3px;
|
|
94
|
+
--cem-input-outline-color: black;
|
|
95
|
+
--cem-input-outline: inset 0 -1px 0 var(--cem-input-outline-color,black);
|
|
96
|
+
|
|
97
|
+
--cem-list-background-color: var(--ng-azure-neutral-94);
|
|
98
|
+
--cem-list-background-color-hover: var(--ng-azure-variant-90);
|
|
99
|
+
--cem-list-background-color-focus: var(--ng-azure-variant-80);
|
|
100
|
+
|
|
101
|
+
--cem-menu-item-color: black;
|
|
102
|
+
--cem-menu-item-color-disabled: var(--ng-azure-neutral-50);
|
|
103
|
+
--cem-menu-item-background: var(--ng-azure-neutral-94);
|
|
104
|
+
--cem-menu-item-hover-background: var(--ng-azure-neutral-80);
|
|
105
|
+
--cem-menu-item-hover-color: black;
|
|
106
|
+
--cem-menu-item-padding: 0.5rem;
|
|
107
|
+
--cem-menu-item-font-weight: bold;
|
|
108
|
+
|
|
109
|
+
--cem-badge-color-primary: var(--ng-azure-50);
|
|
110
|
+
--cem-badge-color-secondary: var(--ng-magenta-50);
|
|
111
|
+
--cem-badge-color-success: var(--ng-cyan-60);
|
|
112
|
+
--cem-badge-color-alert: var(--ng-error-50);
|
|
113
|
+
--cem-badge-color: var(--cem-badge-color-primary);
|
|
114
|
+
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.cem-theme-teal{
|
|
118
|
+
|
|
119
|
+
--primary-color: var(--ng-teal-primary);
|
|
120
|
+
--secondary-color: var(--ng-teal-hover);
|
|
121
|
+
--alert-color: var(--ng-magenta-80);
|
|
122
|
+
--text-color: var(--ng-azure-40);
|
|
123
|
+
|
|
124
|
+
--cem-action-primary-color: var(--primary-color);
|
|
125
|
+
|
|
126
|
+
--cem-action-primary-background: transparent;
|
|
127
|
+
--cem-action-primary-background-hover: var(--ng-teal-hover,lightgrey);
|
|
128
|
+
--cem-action-primary-background-focus: var(--ng-teal-focus,silver);
|
|
129
|
+
--cem-action-primary-background-active: var(--ng-teal-active,grey);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/*#endregion */
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en"
|
|
3
|
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
4
|
+
xmlns:xhtml="http://www.w3.org/1999/xhtml"
|
|
5
|
+
xmlns:exslt="http://exslt.org/common"
|
|
6
|
+
>
|
|
7
|
+
<head>
|
|
8
|
+
<meta charset="UTF-8">
|
|
9
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
|
|
10
|
+
<title>Components - custom-element - Material Design</title>
|
|
11
|
+
<link href="../../custom-element/demo/wc-square.svg" rel="icon"/>
|
|
12
|
+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"/>
|
|
13
|
+
<link crossorigin="anonymous" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css"
|
|
14
|
+
integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" rel="stylesheet"/>
|
|
15
|
+
|
|
16
|
+
<script type="importmap">
|
|
17
|
+
{
|
|
18
|
+
"imports": {
|
|
19
|
+
"@epa-wg/": "../../"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
</script>
|
|
23
|
+
<script src="../../custom-element/module-url.js" type="module"></script>
|
|
24
|
+
<script src="../../custom-element/custom-element.js" type="module"></script>
|
|
25
|
+
<style>
|
|
26
|
+
@import "../angular.css";
|
|
27
|
+
@import "../material.css";
|
|
28
|
+
@import "../theme/semantic.css";
|
|
29
|
+
@import "../theme/consumer-theme.css";
|
|
30
|
+
@import "../demo.css";
|
|
31
|
+
main{
|
|
32
|
+
display: flex; flex-wrap: wrap;
|
|
33
|
+
gap: 3rem;
|
|
34
|
+
padding: 5rem;
|
|
35
|
+
&>p{ min-width: 90%; }
|
|
36
|
+
html-demo-element
|
|
37
|
+
{ overflow: visible;
|
|
38
|
+
[slot="legend"]{ border-radius: 1rem 1rem 0 0; }
|
|
39
|
+
[slot="description"]{ padding: 0 1rem 1rem 1rem; dd{ padding: 0 !important;margin: 0; }}
|
|
40
|
+
[slot="description"] dd{ padding: 0; }
|
|
41
|
+
}
|
|
42
|
+
var{ color: darkgreen; font-weight: bold; }
|
|
43
|
+
}
|
|
44
|
+
cem-icon{ margin: 1rem; }
|
|
45
|
+
</style>
|
|
46
|
+
<script type="module" src="./colors.js"></script>
|
|
47
|
+
</head>
|
|
48
|
+
<!--
|
|
49
|
+
ToDO
|
|
50
|
+
* docs w/ how to use
|
|
51
|
+
-->
|
|
52
|
+
<body>
|
|
53
|
+
|
|
54
|
+
<main>
|
|
55
|
+
|
|
56
|
+
<section>
|
|
57
|
+
<custom-element>
|
|
58
|
+
<template>
|
|
59
|
+
<style>
|
|
60
|
+
header{ display: flex; gap: 2rem; align-items: center; label{ display: flex;}}
|
|
61
|
+
</style>
|
|
62
|
+
<variable name="cem-emotions">
|
|
63
|
+
<option value="comfort" warmth="cool" sample="white" system="Canvas" text="CanvasText" >light scene color, the scene is full of object Purity, innocence, cleanliness, peace, coldness or emptiness </option>
|
|
64
|
+
<option value="calm" warmth="cool" sample="black" system="CanvasText" text="Canvas" >dark scene color, few objects around Mystery, elegance, power, evil, mourning, formality, security </option>
|
|
65
|
+
<option value="trust" warmth="cool" sample="blue" system="Highlight" text="HighlightText" >primary action background, text color for `focus-invert` </option>
|
|
66
|
+
<option value="danger" warmth="warm" sample="red" system="red" text="CanvasText" >Passion, excitement, love, anger, energy, danger </option>
|
|
67
|
+
<option value="creativity" warmth="cool" sample="cyan" system="ButtonFace" text="ButtonText" >Luxury, creativity, royalty, mystery, but also grief or melancholy </option>
|
|
68
|
+
<option value="enthusiasm" warmth="warm" sample="orange" system="Mark" text="MarkText" >Warmth, enthusiasm, happiness, optimism, energy </option>
|
|
69
|
+
<option value="conservative" warmth="neutral" sample="brown" system="GrayText" text="CanvasText" >Natural, earthy, conservative, but also bland or boring </option>
|
|
70
|
+
</variable>
|
|
71
|
+
<variable name="cem-media" select="//*[starts-with(./*/@dce-object-name, '--cem-palette-')]"></variable>
|
|
72
|
+
|
|
73
|
+
//*[starts-with(./*/@dce-object-name, '--cem-palette-')] {//*[starts-with(./*/@dce-object-name, '--cem-palette-')]} <br/>
|
|
74
|
+
count (//*[starts-with(./*/@dce-object-name, '--cem-palette-')]) { count (//*[starts-with(./*/@dce-object-name, '--cem-palette-')]) } <br/>
|
|
75
|
+
count (//*[@dce-object-name]) { count (//*[@dce-object-name]) } <br/>
|
|
76
|
+
(//*[@dce-object-name]) { (//*[@dce-object-name])/@dce-object-name } <br/>
|
|
77
|
+
<cem-css-rules slice="rules"></cem-css-rules>
|
|
78
|
+
|
|
79
|
+
<h1>Base cem-palette tokens </h1>
|
|
80
|
+
<xhtml:table>
|
|
81
|
+
<xhtml:thead>
|
|
82
|
+
<xhtml:tr>
|
|
83
|
+
<xhtml:th > </xhtml:th>
|
|
84
|
+
<for-each select="exsl:node-set($cem-emotions)/*">
|
|
85
|
+
<xhtml:th style="min-width:6rem">{@value}</xhtml:th>
|
|
86
|
+
</for-each>
|
|
87
|
+
</xhtml:tr>
|
|
88
|
+
</xhtml:thead>
|
|
89
|
+
<xhtml:tbody>
|
|
90
|
+
<for-each select="$cem-media">
|
|
91
|
+
<xhtml:tr>
|
|
92
|
+
<variable name="media" select="."></variable>
|
|
93
|
+
<xhtml:td>{@dce-object-name}</xhtml:td>
|
|
94
|
+
<for-each select="exsl:node-set($cem-emotions)/*">
|
|
95
|
+
<variable name="css-background-name" select=" concat('--cem-palette-', @value) "></variable>
|
|
96
|
+
<variable name="css-text-name" select=" concat(concat('--cem-palette-', @value), '-text') "></variable>
|
|
97
|
+
<xhtml:td style="
|
|
98
|
+
background-color: { $media/*[@dce-object-name = $css-background-name ]};
|
|
99
|
+
color: { $media/*[@dce-object-name = $css-text-name ]};
|
|
100
|
+
font-size:x-small;
|
|
101
|
+
padding:0.5em"
|
|
102
|
+
title="
|
|
103
|
+
{$css-background-name}: {$media/*[@dce-object-name = $css-background-name ]}
|
|
104
|
+
{$css-text-name}: { $media/*[@dce-object-name = $css-text-name ]}
|
|
105
|
+
{@value} : {.}"
|
|
106
|
+
>{$media/*[@dce-object-name = $css-background-name ]}
|
|
107
|
+
<br/>
|
|
108
|
+
{ $media/*[@dce-object-name = $css-text-name ]}
|
|
109
|
+
</xhtml:td>
|
|
110
|
+
</for-each>
|
|
111
|
+
</xhtml:tr>
|
|
112
|
+
</for-each>
|
|
113
|
+
</xhtml:tbody>
|
|
114
|
+
</xhtml:table>
|
|
115
|
+
{count($cem-media)}
|
|
116
|
+
</template>
|
|
117
|
+
</custom-element>
|
|
118
|
+
|
|
119
|
+
</section>
|
|
120
|
+
|
|
121
|
+
</main>
|
|
122
|
+
</body>
|
|
123
|
+
</html>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
|
|
2
|
+
datalist {
|
|
3
|
+
display: block;
|
|
4
|
+
|
|
5
|
+
option::before {
|
|
6
|
+
content: attr(value) " ";
|
|
7
|
+
font-weight: bold;
|
|
8
|
+
font-family: monospace;
|
|
9
|
+
color: var(--cem-palette-creativity-x)
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.with-color {
|
|
14
|
+
option {
|
|
15
|
+
color: var(--cem-palette-comfort-text);
|
|
16
|
+
&::before {
|
|
17
|
+
color: var(--cem-palette-comfort-text);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:nth-child(3), &:last-of-type {
|
|
21
|
+
color: var(--cem-palette-comfort-text-x);
|
|
22
|
+
&::before {
|
|
23
|
+
color: var(--cem-palette-comfort-text-x);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
figcaption {
|
|
30
|
+
font-weight: bolder;
|
|
31
|
+
background-color: var(--cem-palette-creativity);
|
|
32
|
+
color: var(--cem-palette-creativity-text);
|
|
33
|
+
padding: 1rem;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
code {
|
|
37
|
+
font-family: monospace;
|
|
38
|
+
color: var(--cem-palette-creativity-text);
|
|
39
|
+
background-color: var(--cem-palette-creativity);
|
|
40
|
+
padding: 0 0.5rem;
|
|
41
|
+
font-weight: bold;
|
|
42
|
+
}
|
|
43
|
+
th,td{ padding: 0 0.5rem; }
|