@epa-wg/custom-element-dist 0.0.27 → 0.0.29
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/.storybook/main.ts +2 -2
- package/README.md +4 -4
- package/coverage/coverage-final.json +21 -22
- package/coverage/index.html +19 -34
- 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 +491 -368
- package/coverage/src/custom-element/http-request.js.html +12 -12
- package/coverage/src/custom-element/index.html +19 -19
- package/coverage/src/custom-element/local-storage.js.html +52 -52
- package/coverage/src/custom-element/location-element.js.html +4 -4
- package/coverage/src/custom-element/module-url.js.html +1 -1
- package/coverage/src/index.html +1 -1
- package/coverage/src/mocks/handlers.ts.html +1 -1
- package/coverage/src/mocks/index.html +1 -1
- package/coverage/src/stories/attributes.test.stories.ts.html +11 -2
- package/coverage/src/stories/css.test.stories.ts.html +8 -2
- package/coverage/src/stories/dom-merge.test.stories.ts.html +3 -3
- package/coverage/src/stories/external-template.test.stories.ts.html +8 -2
- package/coverage/src/stories/form.test.stories.ts.html +8 -2
- package/coverage/src/stories/http-request.stories.ts.html +1 -1
- package/coverage/src/stories/index.html +1 -1
- package/coverage/src/stories/local-storage.test.stories.ts.html +24 -18
- package/coverage/src/stories/location-element.test.stories.ts.html +8 -2
- package/coverage/src/stories/module-url.test.stories.ts.html +8 -2
- package/coverage/src/stories/set-url.test.stories.ts.html +8 -2
- package/coverage/src/stories/slice-events.test.stories.ts.html +8 -2
- package/coverage/src/stories/slots.test.stories.ts.html +8 -2
- package/coverage/src/stories/testStoryBook.ts.html +12 -12
- package/coverage/src/stories/version-select.test.stories.ts.html +8 -2
- package/coverage/src/sum.ts.html +1 -1
- package/dist/custom-element-BOIPgtxz.js +565 -0
- package/dist/custom-element-CUsSENWc.cjs +97 -0
- package/dist/custom-element-bundle.cjs +1 -1
- package/dist/custom-element-bundle.js +22 -21
- package/dist/demo/a.svg +26 -26
- package/dist/demo/demo.css +0 -3
- package/dist/demo/s.xml +18 -3
- package/dist/demo/s.xslt +37 -54
- package/dist/demo/ss.html +24 -57
- package/package.json +13 -13
- package/public/demo/a.svg +26 -26
- package/public/demo/demo.css +0 -3
- package/public/demo/s.xml +18 -3
- package/public/demo/s.xslt +37 -54
- package/public/demo/ss.html +24 -57
- package/src/custom-element/custom-element.js +61 -20
- package/src/custom-element/demo/a.svg +26 -26
- package/src/custom-element/demo/demo.css +0 -3
- package/src/custom-element/demo/s.xml +18 -3
- package/src/custom-element/demo/s.xslt +37 -54
- package/src/custom-element/demo/ss.html +24 -57
- package/src/custom-element/ide/web-types-dce.json +1 -1
- package/src/custom-element/ide/web-types-xsl.json +1 -1
- package/src/dce-social-preview.png +0 -0
- package/src/material/angular.css +987 -0
- package/src/material/components/autocomplete.html +241 -0
- package/src/material/components/dropdown.html +115 -0
- package/src/material/components/icon-link.html +161 -0
- package/src/material/components/menu.html +235 -0
- package/src/material/components.html +121 -0
- package/src/material/demo.css +31 -0
- package/src/material/index.html +111 -0
- package/src/material/material.css +357 -0
- package/src/material/theme/README.md +18 -0
- package/src/material/theme/semantic.css +112 -0
- package/src/mocks/versions.mock.ts +8 -8
- package/src/stories/attributes.test.stories.ts +3 -0
- package/src/stories/css.test.stories.ts +2 -0
- package/src/stories/dom-merge.test.stories.ts +2 -2
- package/src/stories/external-template.test.stories.ts +2 -0
- package/src/stories/form.test.stories.ts +2 -0
- package/src/stories/local-storage.test.stories.ts +2 -0
- package/src/stories/location-element.test.stories.ts +2 -0
- package/src/stories/module-url.test.stories.ts +2 -0
- package/src/stories/set-url.test.stories.ts +2 -0
- package/src/stories/slice-events.test.stories.ts +2 -0
- package/src/stories/slots.test.stories.ts +2 -0
- package/src/stories/version-select.test.stories.ts +2 -0
- package/storybook-static/assets/Color-ERTF36HU-CQkSD2nd.js +1 -0
- package/storybook-static/assets/Configure-DOhzHFEs.js +165 -0
- package/storybook-static/assets/DocsRenderer-CFRXHY34-BSJkbsd6.js +2 -0
- package/storybook-static/assets/{attributes.test.stories-Bt5V18qO.js → attributes.test.stories-BJBuuXgZ.js} +4 -4
- package/storybook-static/assets/{css.test.stories-CGYy2daE.js → css.test.stories-pgbBc17d.js} +1 -1
- package/storybook-static/assets/custom-element-BDGsYgbP.js +97 -0
- package/storybook-static/assets/{dom-merge.test.stories-XlsZ0UvX.js → dom-merge.test.stories-CXcYP_-J.js} +5 -5
- package/storybook-static/assets/entry-preview-C313OLrj.js +26 -0
- package/storybook-static/assets/{entry-preview-docs-BMKNVQXA.js → entry-preview-docs-B7ORr9w5.js} +2 -2
- package/storybook-static/assets/{external-template.test.stories-Bt_Pflu8.js → external-template.test.stories-CpJ68Ghy.js} +13 -13
- package/storybook-static/assets/{form.test.stories-B0NoI8wm.js → form.test.stories-D35lyqd8.js} +2 -2
- package/storybook-static/assets/{handlers-B5969HUu.js → handlers-CW9pDZnt.js} +6 -6
- package/storybook-static/assets/{http-request.stories-B2skuTFV.js → http-request.stories-CBbknCOO.js} +6 -6
- package/storybook-static/assets/iframe-DOi4N7qI.js +2 -0
- package/storybook-static/assets/{index-C7lvoJNv.js → index-B3QjF0Ed.js} +1 -1
- package/storybook-static/assets/index-BSz1w4Gl.js +234 -0
- package/storybook-static/assets/index-BdcJ-iJ7.js +8 -0
- package/storybook-static/assets/index-CaL3Qp7t.js +634 -0
- package/storybook-static/assets/index-DgFM0Ce3.js +1 -0
- package/storybook-static/assets/index-YxUFxnQR.js +1 -0
- package/storybook-static/assets/{local-storage.test.stories-DfY6feqG.js → local-storage.test.stories-BY-PWhuk.js} +5 -5
- package/storybook-static/assets/{location-element.test.stories-944AotIJ.js → location-element.test.stories-3auBYEaU.js} +3 -3
- package/storybook-static/assets/{module-url.test.stories-DSKcwApl.js → module-url.test.stories-B7L9cL60.js} +6 -6
- package/storybook-static/assets/{preview-0Jj89qip.js → preview-BRPR-UXC.js} +1 -1
- package/storybook-static/assets/{preview-DB9FwMii.js → preview-BWzBA1C2.js} +1 -1
- package/storybook-static/assets/preview-BhhEZcNS.js +1 -0
- package/storybook-static/assets/{preview-CadgX-4y.js → preview-C992A1Y-.js} +2 -2
- package/storybook-static/assets/preview-CcS4DQh8.js +1 -0
- package/storybook-static/assets/{preview-AJR7rVPD.js → preview-CfWMRsRq.js} +1 -1
- package/storybook-static/assets/{preview-FpHGYA1q.js → preview-DHPc-V4N.js} +1 -1
- package/storybook-static/assets/preview-DYzi3Z2p.js +1 -0
- package/storybook-static/assets/{preview-4Up_z4Em.js → preview-caVMbCIR.js} +2 -2
- package/storybook-static/assets/preview-ncvtW_hb.js +34 -0
- package/storybook-static/assets/{set-url.test.stories-DjLHKkEh.js → set-url.test.stories-CuSuDLIx.js} +3 -3
- package/storybook-static/assets/{slice-events.test.stories-8I_BrHd6.js → slice-events.test.stories-BkRKsKem.js} +4 -4
- package/storybook-static/assets/{slots.test.stories-CvZz4jyP.js → slots.test.stories-BJCUWFkE.js} +8 -8
- package/storybook-static/assets/{version-select.test.stories-DSxmJylI.js → version-select.test.stories-B3ybJn_Z.js} +2 -2
- package/storybook-static/demo/a.svg +26 -26
- package/storybook-static/demo/demo.css +0 -3
- package/storybook-static/demo/s.xml +18 -3
- package/storybook-static/demo/s.xslt +37 -54
- package/storybook-static/demo/ss.html +24 -57
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/index.html +3 -7
- package/storybook-static/project.json +1 -1
- package/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js +9 -9
- package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js +76 -94
- package/storybook-static/sb-addons/essentials-measure-7/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/essentials-outline-8/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/essentials-toolbars-6/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/interactions-9/manager-bundle.js +211 -0
- package/storybook-static/sb-addons/interactions-9/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-manager/globals-module-info.js +11 -0
- package/storybook-static/sb-manager/globals-runtime.js +27803 -26928
- package/storybook-static/sb-manager/runtime.js +10341 -10136
- package/storybook-static/sb-preview/runtime.js +3841 -3828
- package/.idea/custom-element-dist.iml +0 -9
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/coverage/src/custom-element/demo/coverage.svg +0 -10
- package/coverage/src/custom-element/demo/index.html +0 -116
- package/coverage/src/custom-element/demo/z.js/coverage.svg +0 -10
- package/coverage/src/custom-element/demo/z.js.html +0 -112
- package/dist/custom-element-BMMsP1Dy.js +0 -533
- package/dist/custom-element-CPSk7s0j.cjs +0 -87
- package/dist/demo/s1.xslt +0 -60
- package/dist/demo/z.html +0 -33
- package/dist/demo/z.js +0 -9
- package/dist/demo/z.xml +0 -60
- package/dist/demo/z1.html +0 -34
- package/public/demo/s1.xslt +0 -60
- package/public/demo/z.html +0 -33
- package/public/demo/z.js +0 -9
- package/public/demo/z.xml +0 -60
- package/public/demo/z1.html +0 -34
- package/src/custom-element/demo/s1.xslt +0 -60
- package/src/custom-element/demo/z.html +0 -33
- package/src/custom-element/demo/z.js +0 -9
- package/src/custom-element/demo/z.xml +0 -60
- package/src/custom-element/demo/z1.html +0 -34
- package/storybook-static/assets/Color-KGDBMAHA-CJo5gHY3.js +0 -1
- package/storybook-static/assets/Configure-DdXbGKhY.js +0 -173
- package/storybook-static/assets/DocsRenderer-PKQXORMH-DLnpL5hE.js +0 -2
- package/storybook-static/assets/custom-element-D8hcDZHh.js +0 -265
- package/storybook-static/assets/entry-preview-BKQ8UCxI.js +0 -8
- package/storybook-static/assets/iframe-Dfrt81rk.js +0 -2
- package/storybook-static/assets/index-Ay195x2L.js +0 -605
- package/storybook-static/assets/index-C3ChPTMh.js +0 -1
- package/storybook-static/assets/index-C8k3Z-3Y.js +0 -28
- package/storybook-static/assets/index-DGdNYaqV.js +0 -8
- package/storybook-static/assets/index-Gpdhz4ab.js +0 -1
- package/storybook-static/assets/lit-element-DzhCn-8W.js +0 -19
- package/storybook-static/assets/preview-BJPLiuSt.js +0 -1
- package/storybook-static/assets/preview-BMWqy4Bi.js +0 -1
- package/storybook-static/assets/preview-BnWGZYux.js +0 -1
- package/storybook-static/assets/preview-Djh1_Tal.js +0 -20
- package/storybook-static/demo/s1.xslt +0 -60
- package/storybook-static/demo/z.html +0 -33
- package/storybook-static/demo/z.js +0 -9
- package/storybook-static/demo/z.xml +0 -60
- package/storybook-static/demo/z1.html +0 -34
- package/storybook-static/sb-addons/chromatic-com-storybook-9/manager-bundle.js +0 -336
- package/storybook-static/sb-addons/chromatic-com-storybook-9/manager-bundle.js.LEGAL.txt +0 -77
- package/storybook-static/sb-addons/interactions-10/manager-bundle.js +0 -234
- /package/{storybook-static/sb-addons/interactions-10/manager-bundle.js.LEGAL.txt → src/material/guide/getting-started/index.html} +0 -0
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
|
|
6
|
+
<title>Components - custom-element - Material Design</title>
|
|
7
|
+
<link href="../../custom-element/demo/wc-square.svg" rel="icon"/>
|
|
8
|
+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"/>
|
|
9
|
+
<link crossorigin="anonymous" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css"
|
|
10
|
+
integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" rel="stylesheet"/>
|
|
11
|
+
|
|
12
|
+
<script type="importmap">
|
|
13
|
+
{
|
|
14
|
+
"imports": {
|
|
15
|
+
"@epa-wg/": "../../"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
</script>
|
|
19
|
+
<script src="../../custom-element/module-url.js" type="module"></script>
|
|
20
|
+
<script src="../../custom-element/custom-element.js" type="module"></script>
|
|
21
|
+
<style>
|
|
22
|
+
@import "../angular.css";
|
|
23
|
+
@import "../material.css";
|
|
24
|
+
@import "../theme/semantic.css";
|
|
25
|
+
@import "../demo.css";
|
|
26
|
+
main{
|
|
27
|
+
display: flex; flex-wrap: wrap;
|
|
28
|
+
gap: 3rem;
|
|
29
|
+
padding: 5rem;
|
|
30
|
+
&>p{ min-width: 90%; }
|
|
31
|
+
html-demo-element
|
|
32
|
+
{ overflow: visible;
|
|
33
|
+
[slot="legend"]{ border-radius: 1rem 1rem 0 0; }
|
|
34
|
+
[slot="description"]{ padding: 0 1rem 1rem 1rem; dd{ padding: 0 !important;margin: 0; }}
|
|
35
|
+
[slot="description"] dd{ padding: 0; }
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
</style>
|
|
39
|
+
</head>
|
|
40
|
+
|
|
41
|
+
<body>
|
|
42
|
+
<custom-element hidden src="./icon-link.html#cem-icon-link" tag="cem-icon-link"></custom-element>
|
|
43
|
+
|
|
44
|
+
<header class="cem-theme-teal">
|
|
45
|
+
<custom-element src="../index.html#nav-head" ></custom-element>
|
|
46
|
+
</header>
|
|
47
|
+
<main>
|
|
48
|
+
<p><code>cem-menu</code> is responsive menu component from <custom-element> Material suite based on the
|
|
49
|
+
<a href="https://material.io/components" >Material Design specification</a>.
|
|
50
|
+
</p>
|
|
51
|
+
<p>
|
|
52
|
+
<code>direction</code> attribute defines css <code>row</code> or <code>column</code> flex-direction.
|
|
53
|
+
</p>
|
|
54
|
+
<custom-element tag="cem-menu" hidden>
|
|
55
|
+
<template id="cem-menu">
|
|
56
|
+
<attribute name="direction"></attribute>
|
|
57
|
+
<attribute name="justify"></attribute>
|
|
58
|
+
<style>
|
|
59
|
+
dce-root
|
|
60
|
+
{
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: row;
|
|
63
|
+
flex-wrap: wrap;
|
|
64
|
+
&[direction="column"]{ flex-direction: column; }
|
|
65
|
+
&[direction="row" ]{ flex-direction: row; }
|
|
66
|
+
&[justify="end" ]{ justify-content: flex-end; }
|
|
67
|
+
&[justify="start"]{ justify-content: flex-start;}
|
|
68
|
+
|
|
69
|
+
&>*
|
|
70
|
+
{ display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
padding: var(--cem-menu-item-padding);
|
|
73
|
+
background-color: var( --cem-menu-item-background );
|
|
74
|
+
color: var( --cem-menu-item-color );
|
|
75
|
+
text-decoration: none;
|
|
76
|
+
font-weight: var(--cem-menu-item-font-weight);
|
|
77
|
+
&:focus{ z-index: 1; }
|
|
78
|
+
&[disabled],&[disabled]:visited{ color:var(--cem-menu-item-color-disabled); pointer-events: none;}
|
|
79
|
+
&:visited{ color:var(--cem-menu-item-color); }
|
|
80
|
+
&:hover
|
|
81
|
+
{
|
|
82
|
+
color: var(--cem-menu-item-hover-color);
|
|
83
|
+
background-color: var(--cem-menu-item-hover-background);
|
|
84
|
+
}
|
|
85
|
+
&:empty{ display: none;}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
</style>
|
|
90
|
+
<slot name=""></slot>
|
|
91
|
+
</template>
|
|
92
|
+
</custom-element>
|
|
93
|
+
|
|
94
|
+
<html-demo-element legend="Default" description="horizontal menu with padding on elements">
|
|
95
|
+
<template>
|
|
96
|
+
<cem-menu>
|
|
97
|
+
<a href="#">link 1</a>
|
|
98
|
+
<a disabled>link 2</a>
|
|
99
|
+
<a href="#">link 3</a>
|
|
100
|
+
</cem-menu>
|
|
101
|
+
</template>
|
|
102
|
+
</html-demo-element>
|
|
103
|
+
|
|
104
|
+
<html-demo-element legend="Vertical" description="vertical menu">
|
|
105
|
+
<template>
|
|
106
|
+
<cem-menu direction="column">
|
|
107
|
+
<a href="#">link 1</a>
|
|
108
|
+
<a href="#">link 2</a>
|
|
109
|
+
<a href="#">link 3</a>
|
|
110
|
+
</cem-menu>
|
|
111
|
+
</template>
|
|
112
|
+
</html-demo-element>
|
|
113
|
+
|
|
114
|
+
<html-demo-element legend="Horizontal" description="horizontal menu">
|
|
115
|
+
<template>
|
|
116
|
+
<cem-menu direction="row">
|
|
117
|
+
<a href="#">link 1</a>
|
|
118
|
+
<a href="#">link 2</a>
|
|
119
|
+
<a href="#">link 3</a>
|
|
120
|
+
</cem-menu>
|
|
121
|
+
</template>
|
|
122
|
+
</html-demo-element>
|
|
123
|
+
|
|
124
|
+
<html-demo-element legend="custom styling for all menus in scope" description="supported via overriding css properties">
|
|
125
|
+
<template>
|
|
126
|
+
<custom-element>
|
|
127
|
+
<template>
|
|
128
|
+
<style>
|
|
129
|
+
a{
|
|
130
|
+
--cem-menu-item-color: yellow;
|
|
131
|
+
--cem-menu-item-background: lightblue;
|
|
132
|
+
--cem-menu-item-hover-background: blue;
|
|
133
|
+
--cem-menu-item-hover-color: red;
|
|
134
|
+
&:visited{ color:var(--cem-menu-item-color); }
|
|
135
|
+
&:hover{ color:var(--cem-menu-item-hover-color); }
|
|
136
|
+
}
|
|
137
|
+
</style>
|
|
138
|
+
<cem-menu direction="row">
|
|
139
|
+
<a href="#">link 1</a>
|
|
140
|
+
<a href="#">link 2</a>
|
|
141
|
+
<a href="#">link 3</a>
|
|
142
|
+
</cem-menu>
|
|
143
|
+
<cem-menu direction="row">
|
|
144
|
+
<a href="#">link A</a>
|
|
145
|
+
<a href="#">link B</a>
|
|
146
|
+
</cem-menu>
|
|
147
|
+
</template>
|
|
148
|
+
</custom-element>
|
|
149
|
+
</template>
|
|
150
|
+
</html-demo-element>
|
|
151
|
+
|
|
152
|
+
<html-demo-element legend="inline custom styling " description="supported via overriding css properties">
|
|
153
|
+
<template>
|
|
154
|
+
<cem-menu direction="row">
|
|
155
|
+
<template>
|
|
156
|
+
<style>
|
|
157
|
+
a
|
|
158
|
+
{ --cem-menu-item-color:blue;
|
|
159
|
+
--cem-menu-item-background: salmon;
|
|
160
|
+
--cem-menu-item-hover-background: blue;
|
|
161
|
+
--cem-menu-item-hover-color: yellow;
|
|
162
|
+
}
|
|
163
|
+
</style>
|
|
164
|
+
<a href="#">link 1</a>
|
|
165
|
+
<a href="#">link 2</a>
|
|
166
|
+
<a href="#">link 3</a>
|
|
167
|
+
</template>
|
|
168
|
+
</cem-menu>
|
|
169
|
+
</template>
|
|
170
|
+
</html-demo-element>
|
|
171
|
+
|
|
172
|
+
<html-demo-element legend="wrap menu" description="second line is left aligned by default">
|
|
173
|
+
<template>
|
|
174
|
+
|
|
175
|
+
<custom-element>
|
|
176
|
+
<template>
|
|
177
|
+
<style>
|
|
178
|
+
cem-menu
|
|
179
|
+
{ display: block;
|
|
180
|
+
width: 8rem;
|
|
181
|
+
border: dashed 1px coral;
|
|
182
|
+
}
|
|
183
|
+
</style>
|
|
184
|
+
<cem-menu>
|
|
185
|
+
<template>
|
|
186
|
+
<a href="#">link 1</a>
|
|
187
|
+
<a href="#">link 2</a>
|
|
188
|
+
<a href="#">link 3</a>
|
|
189
|
+
</template>
|
|
190
|
+
</cem-menu>
|
|
191
|
+
</template>
|
|
192
|
+
</custom-element>
|
|
193
|
+
|
|
194
|
+
</template>
|
|
195
|
+
</html-demo-element>
|
|
196
|
+
|
|
197
|
+
<html-demo-element legend="wrap menu right" description="second line right aligned">
|
|
198
|
+
<template>
|
|
199
|
+
|
|
200
|
+
<custom-element>
|
|
201
|
+
<template>
|
|
202
|
+
<style>
|
|
203
|
+
cem-menu
|
|
204
|
+
{ display: block;
|
|
205
|
+
width: 8rem;
|
|
206
|
+
border: dashed 1px coral;
|
|
207
|
+
}
|
|
208
|
+
</style>
|
|
209
|
+
<cem-menu justify="end">
|
|
210
|
+
<template>
|
|
211
|
+
<a href="#">link 1</a>
|
|
212
|
+
<a href="#">link 2</a>
|
|
213
|
+
<a href="#">link 3</a>
|
|
214
|
+
</template>
|
|
215
|
+
</cem-menu>
|
|
216
|
+
</template>
|
|
217
|
+
</custom-element>
|
|
218
|
+
|
|
219
|
+
</template>
|
|
220
|
+
</html-demo-element>
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
</main>
|
|
227
|
+
<footer>
|
|
228
|
+
<hr/>
|
|
229
|
+
Powered by Syngrafact Corp. ©2024.<br/>
|
|
230
|
+
<a href="../../LICENSE"> Code and documentation licensed under an Apache License 2.0 </a>
|
|
231
|
+
</footer>
|
|
232
|
+
<script type="module" src="https://unpkg.com/html-demo-element@1.0.8/html-demo-element.js"></script>
|
|
233
|
+
|
|
234
|
+
</body>
|
|
235
|
+
</html>
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
|
|
6
|
+
<title>Components - custom-element - Material Design</title>
|
|
7
|
+
<link href="../custom-element/demo/wc-square.svg" rel="icon"/>
|
|
8
|
+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"/>
|
|
9
|
+
<link crossorigin="anonymous" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css"
|
|
10
|
+
integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" rel="stylesheet"/>
|
|
11
|
+
|
|
12
|
+
<script type="importmap">
|
|
13
|
+
{
|
|
14
|
+
"imports": {
|
|
15
|
+
"@epa-wg/": "../"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
</script>
|
|
19
|
+
<script src="../custom-element/module-url.js" type="module"></script>
|
|
20
|
+
<script src="../custom-element/custom-element.js" type="module"></script>
|
|
21
|
+
<style>
|
|
22
|
+
@import "./angular.css";
|
|
23
|
+
@import "./material.css";
|
|
24
|
+
@import "./theme/semantic.css";
|
|
25
|
+
@import "./demo.css";
|
|
26
|
+
main{
|
|
27
|
+
display: flex; flex-wrap: wrap;
|
|
28
|
+
gap: 3rem;
|
|
29
|
+
padding: 5rem;
|
|
30
|
+
&>*{ flex: 1 1 12rem;}
|
|
31
|
+
&>p{ min-width: 90%; }
|
|
32
|
+
}
|
|
33
|
+
</style>
|
|
34
|
+
</head>
|
|
35
|
+
|
|
36
|
+
<body>
|
|
37
|
+
<custom-element tag="cem-icon-link" hidden src="./components/icon-link.html#cem-icon-link" ></custom-element>
|
|
38
|
+
<custom-element tag="cem-icon-link" hidden src="./components/icon-link.html#cem-icon-link" ></custom-element>
|
|
39
|
+
<custom-element tag="cem-menu" hidden src="./components/menu.html#cem-menu"></custom-element>
|
|
40
|
+
|
|
41
|
+
<header class="cem-theme-teal">
|
|
42
|
+
<custom-element src="./index.html#nav-head" ></custom-element>
|
|
43
|
+
</header>
|
|
44
|
+
<main>
|
|
45
|
+
<p><custom-element> Material offers a wide variety of UI components based on the
|
|
46
|
+
<a href="https://material.io/components" >Material Design specification</a>.
|
|
47
|
+
</p>
|
|
48
|
+
<custom-element tag="demo-list-card" hidden>
|
|
49
|
+
<template>
|
|
50
|
+
<attribute name="head"></attribute>
|
|
51
|
+
<attribute name="description"></attribute>
|
|
52
|
+
<style>
|
|
53
|
+
&>dce-root
|
|
54
|
+
{ display: inline-flex; flex-direction: column;
|
|
55
|
+
transition: background .3s ease;
|
|
56
|
+
border: 1px solid #c4c6d0;
|
|
57
|
+
border-radius: 12px;
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
&>*{padding: 1rem;}
|
|
60
|
+
&>a
|
|
61
|
+
{ color: var(--cem-action-secondary-color, black);
|
|
62
|
+
background-color:var(--cem-action-secondary-background, silver);
|
|
63
|
+
transition: background .3s ease;
|
|
64
|
+
transform: translateZ(0);
|
|
65
|
+
&:hover { background-color: var(--cem-action-secondary-background-hover); }
|
|
66
|
+
&:focus { background-color: var(--cem-action-secondary-background-focus); }
|
|
67
|
+
&:focus:active,
|
|
68
|
+
&:active{ background-color: var(--cem-action-secondary-background-active); }
|
|
69
|
+
|
|
70
|
+
&, &:visited { text-decoration: none; }
|
|
71
|
+
h3{ text-transform: capitalize; }
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
</style>
|
|
75
|
+
<slot></slot>
|
|
76
|
+
<a href="./components/{$head}.html">
|
|
77
|
+
<h3>{$head}</h3>
|
|
78
|
+
{$description}
|
|
79
|
+
</a>
|
|
80
|
+
</template>
|
|
81
|
+
</custom-element>
|
|
82
|
+
|
|
83
|
+
<demo-list-card head="icon-link" description="Vertical or horizontal List of actions: links or buttons">
|
|
84
|
+
<cem-icon-link icon="format_color_fill"
|
|
85
|
+
title="Select a theme for the documentation"> Theme</cem-icon-link>
|
|
86
|
+
|
|
87
|
+
</demo-list-card>
|
|
88
|
+
|
|
89
|
+
<demo-list-card head="menu" description="Vertical or horizontal List of actions: links or buttons">
|
|
90
|
+
<cem-menu direction="row">
|
|
91
|
+
<a href="#">🏠link</a>
|
|
92
|
+
<a disabled>text</a>
|
|
93
|
+
<a href="#">link</a>
|
|
94
|
+
</cem-menu>
|
|
95
|
+
</demo-list-card>
|
|
96
|
+
|
|
97
|
+
<demo-list-card head="autocomplete" description="Suggests relevant options as the user types.">
|
|
98
|
+
<cem-autocomplete placeholder="Greetings" >
|
|
99
|
+
<p>hello</p>
|
|
100
|
+
<p>hi</p>
|
|
101
|
+
</cem-autocomplete>
|
|
102
|
+
</demo-list-card>
|
|
103
|
+
<demo-list-card head="dropdown" description="dropdown overlay which hangs above the background html">
|
|
104
|
+
<cem-dropdown>
|
|
105
|
+
cem-dropdown
|
|
106
|
+
</cem-dropdown>
|
|
107
|
+
</demo-list-card>
|
|
108
|
+
<demo-list-card head="badge" description="A small value indicator that can be overlaid on another object.">
|
|
109
|
+
<cem-badge placeholder="Greetings" >
|
|
110
|
+
<p>hello</p>
|
|
111
|
+
<p>hi</p>
|
|
112
|
+
</cem-badge>
|
|
113
|
+
</demo-list-card>
|
|
114
|
+
</main>
|
|
115
|
+
<footer>
|
|
116
|
+
<hr/>
|
|
117
|
+
Powered by Syngrafact Corp. ©2024.<br/>
|
|
118
|
+
<a href="../../LICENSE"> Code and documentation licensed under an Apache License 2.0 </a>
|
|
119
|
+
</footer>
|
|
120
|
+
</body>
|
|
121
|
+
</html>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
body {
|
|
2
|
+
margin: 0;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
header {
|
|
6
|
+
text-align: center;
|
|
7
|
+
|
|
8
|
+
--mdc-text-button-label-text-color: #005cbb;
|
|
9
|
+
--mat-sidenav-content-background-color: var(--mat-indigo-50, #d7e3ff);
|
|
10
|
+
color: var(--text-color, var(--mat-app-on-background));
|
|
11
|
+
background-color: var(--primary-color, var(--mat-app-background));
|
|
12
|
+
--cem-action-box-shadow:none;
|
|
13
|
+
--cem-action-box-shadow-hover:none;
|
|
14
|
+
|
|
15
|
+
&{ padding: var(--cem-dim-x-small,0.5rem) var(--cem-dim-small,1rem) }
|
|
16
|
+
h1,p{position: relative; z-index: 2;}
|
|
17
|
+
.logo-large{ position: absolute;
|
|
18
|
+
right: var(--cem-dim-x-large);
|
|
19
|
+
height: var(--cem-dim-xxx-large);
|
|
20
|
+
z-index: 1;
|
|
21
|
+
opacity: 0.5;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
footer{ text-align: center;
|
|
25
|
+
a
|
|
26
|
+
{ color: var(--text-color, black);
|
|
27
|
+
text-decoration: none;
|
|
28
|
+
&:hover,&:focus{text-decoration: underline;}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
code{ font-size: 125%; font-weight: bold; }
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
|
|
6
|
+
<title>custom-element - Material Design</title>
|
|
7
|
+
<link href="demo/wc-square.svg" rel="icon"/>
|
|
8
|
+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"/>
|
|
9
|
+
<link crossorigin="anonymous" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css"
|
|
10
|
+
integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" rel="stylesheet"/>
|
|
11
|
+
|
|
12
|
+
<script type="importmap">
|
|
13
|
+
{
|
|
14
|
+
"imports": {
|
|
15
|
+
"@epa-wg/": "../"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
</script>
|
|
19
|
+
<script src="../custom-element/module-url.js" type="module"></script>
|
|
20
|
+
<script src="../custom-element/custom-element.js" type="module"></script>
|
|
21
|
+
<style>
|
|
22
|
+
@import "./angular.css";
|
|
23
|
+
@import "./material.css";
|
|
24
|
+
@import "./theme/semantic.css";
|
|
25
|
+
@import "./demo.css";
|
|
26
|
+
</style>
|
|
27
|
+
</head>
|
|
28
|
+
|
|
29
|
+
<body>
|
|
30
|
+
|
|
31
|
+
<template id="nav-head">
|
|
32
|
+
<style>
|
|
33
|
+
nav {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-wrap: wrap;
|
|
36
|
+
justify-content: flex-end;
|
|
37
|
+
|
|
38
|
+
spacer {
|
|
39
|
+
flex: 10 10;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
padding: 0 var(--mat-blue-50, 8px);
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
--mdc-text-button-label-text-tracking: .006rem;
|
|
46
|
+
--mdc-text-button-label-text-weight: bold;
|
|
47
|
+
|
|
48
|
+
font-size: var(--mdc-text-button-label-text-size, var(--mat-app-label-large-size));
|
|
49
|
+
letter-spacing: var(--mdc-text-button-label-text-tracking, var(--mat-app-label-large-tracking));
|
|
50
|
+
/* text-transform: var(--mdc-text-button-label-text-transform); */
|
|
51
|
+
font-weight: var(--mdc-text-button-label-text-weight, var(--mat-app-label-large-weight));
|
|
52
|
+
|
|
53
|
+
icon-link:first-child {
|
|
54
|
+
align-self: flex-start;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
section:has(*) {
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
margin: var(--cem-dim-xxx-large, 4rem);
|
|
62
|
+
|
|
63
|
+
h1 {
|
|
64
|
+
font-size: var(--cem-dim-x-large, 3.5rem);
|
|
65
|
+
text-shadow: var(--primary-color, silver) 0 0 var(--cem-dim-medium);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
</style>
|
|
70
|
+
<nav>
|
|
71
|
+
<module-url slice="cem-url" src="@epa-wg/material"></module-url>
|
|
72
|
+
<module-url slice="logo-url" src="@epa-wg/custom-element/demo/wc-square.svg"></module-url>
|
|
73
|
+
<cem-icon-link href="{//cem-url}/" icon="{//logo-url}"> custom-element</cem-icon-link>
|
|
74
|
+
<spacer></spacer>
|
|
75
|
+
<cem-icon-link href="{//cem-url}/components.html" kind="normal" title="Select a theme for the documentation"> Components
|
|
76
|
+
</cem-icon-link>
|
|
77
|
+
|
|
78
|
+
<spacer></spacer>
|
|
79
|
+
<cem-icon-link icon="format_color_fill" title="Select a theme for the documentation"> Theme</cem-icon-link>
|
|
80
|
+
<cem-icon-link href="https://github.com/EPA-WG/custom-element-dist/tree/main/src/material"
|
|
81
|
+
icon="fab fa-github" title="GitHub reposotory"> GitHub
|
|
82
|
+
</cem-icon-link>
|
|
83
|
+
</nav>
|
|
84
|
+
<section>
|
|
85
|
+
<slot></slot>
|
|
86
|
+
</section>
|
|
87
|
+
</template>
|
|
88
|
+
<custom-element hidden src="./components/icon-link.html#cem-icon-link" tag="cem-icon-link"></custom-element>
|
|
89
|
+
|
|
90
|
+
<header class="cem-theme-teal">
|
|
91
|
+
<custom-element src="#nav-head">
|
|
92
|
+
<template>
|
|
93
|
+
<img alt="custom-element logo" class="logo-large" src="../custom-element/demo/wc-square.svg"/>
|
|
94
|
+
<h1> <code><custom-element></code> Material </h1>
|
|
95
|
+
<p> Material Design components for <a href="https://github.com/EPA-WG/custom-element"><code>custom-element</code></a> </p>
|
|
96
|
+
<cem-icon-link class="cem-theme-default" href="./components.html" title="Select a theme for the documentation">Get
|
|
97
|
+
started
|
|
98
|
+
</cem-icon-link>
|
|
99
|
+
</template>
|
|
100
|
+
</custom-element>
|
|
101
|
+
</header>
|
|
102
|
+
<main>
|
|
103
|
+
|
|
104
|
+
</main>
|
|
105
|
+
<footer>
|
|
106
|
+
<hr/>
|
|
107
|
+
<p>Powered by Syngrafact Corp. ©2024.</p>
|
|
108
|
+
<a href="../../LICENSE"> Code and documentation licensed under an Apache License 2.0 </a>
|
|
109
|
+
</footer>
|
|
110
|
+
</body>
|
|
111
|
+
</html>
|