@epa-wg/custom-element-dist 0.0.33 → 0.0.34

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.
Files changed (175) hide show
  1. package/.claude/settings.local.json +18 -0
  2. package/.github/workflows/deploy.yml +59 -0
  3. package/.idea/copilot.data.migration.agent.xml +6 -0
  4. package/.idea/copilot.data.migration.ask.xml +6 -0
  5. package/.idea/copilot.data.migration.edit.xml +6 -0
  6. package/.idea/custom-element-dist.iml +2 -0
  7. package/.storybook/main.ts +20 -17
  8. package/.storybook/preview.ts +23 -23
  9. package/README.md +6 -4
  10. package/coverage/block-navigation.js +1 -1
  11. package/coverage/coverage-final.json +4 -3
  12. package/coverage/index.html +34 -19
  13. package/coverage/sorter.js +21 -7
  14. package/coverage/src/custom-element/coverage.svg +1 -1
  15. package/coverage/src/custom-element/custom-element.js/coverage.svg +1 -1
  16. package/coverage/src/custom-element/custom-element.js.html +435 -378
  17. package/coverage/src/custom-element/http-request.js/coverage.svg +1 -1
  18. package/coverage/src/custom-element/http-request.js.html +38 -17
  19. package/coverage/src/custom-element/index.html +26 -26
  20. package/coverage/src/custom-element/local-storage.js.html +1 -1
  21. package/coverage/src/custom-element/location-element.js.html +1 -1
  22. package/coverage/src/custom-element/module-url.js.html +1 -1
  23. package/coverage/src/index.html +1 -1
  24. package/coverage/src/material/theme/colors.js/coverage.svg +10 -0
  25. package/coverage/src/material/theme/colors.js.html +217 -0
  26. package/coverage/src/material/theme/coverage.svg +10 -0
  27. package/coverage/src/material/theme/index.html +116 -0
  28. package/coverage/src/mocks/handlers.ts.html +1 -1
  29. package/coverage/src/mocks/index.html +1 -1
  30. package/coverage/src/stories/frame.canvas.ts.html +1 -1
  31. package/coverage/src/stories/http-request.stories.ts.html +1 -1
  32. package/coverage/src/stories/index.html +1 -1
  33. package/coverage/src/stories/testStoryBook.ts.html +12 -12
  34. package/coverage/src/sum.ts.html +1 -1
  35. package/dist/{custom-element-WnOqmEOe.js → custom-element-BoYMoUtP.js} +193 -183
  36. package/dist/custom-element-BqtjrCRF.cjs +97 -0
  37. package/dist/custom-element-bundle.cjs +1 -1
  38. package/dist/custom-element-bundle.js +3 -3
  39. package/dist/demo/a.html +10 -3
  40. package/dist/demo/a.svg +26 -26
  41. package/dist/demo/html-template.html +4 -3
  42. package/dist/demo/s.xml +3856 -67
  43. package/dist/demo/s.xslt +13 -72
  44. package/dist/demo/s1.xml +3706 -0
  45. package/dist/http-request-DSaowcG1.cjs +1 -0
  46. package/dist/{http-request-BOvP4KTl.js → http-request-DTCzZ1gc.js} +15 -9
  47. package/package.json +2 -2
  48. package/public/demo/a.html +10 -3
  49. package/public/demo/a.svg +26 -26
  50. package/public/demo/html-template.html +4 -3
  51. package/public/demo/s.xml +3856 -67
  52. package/public/demo/s.xslt +13 -72
  53. package/public/demo/s1.xml +3706 -0
  54. package/src/custom-element/custom-element.js +28 -9
  55. package/src/custom-element/demo/a.html +10 -3
  56. package/src/custom-element/demo/a.svg +26 -26
  57. package/src/custom-element/demo/html-template.html +4 -3
  58. package/src/custom-element/demo/s.xml +3856 -67
  59. package/src/custom-element/demo/s.xslt +13 -72
  60. package/src/custom-element/demo/s1.xml +3706 -0
  61. package/src/custom-element/http-request.js +7 -0
  62. package/src/custom-element/ide/web-types-dce.json +1 -1
  63. package/src/custom-element/ide/web-types-xsl.json +1 -1
  64. package/src/material/angular.css +987 -987
  65. package/src/material/components/action.html +262 -0
  66. package/src/material/components/autocomplete.html +167 -239
  67. package/src/material/components/badge.html +238 -239
  68. package/src/material/components/dropdown.html +0 -1
  69. package/src/material/components/icon-link.html +160 -161
  70. package/src/material/components/icon.html +251 -252
  71. package/src/material/components/input.html +569 -570
  72. package/src/material/components/menu.html +235 -236
  73. package/src/material/components.html +157 -158
  74. package/src/material/demo.css +36 -36
  75. package/src/material/index.html +109 -110
  76. package/src/material/material.css +356 -356
  77. package/src/material/theme/Base-Principles.md +339 -0
  78. package/src/material/theme/README.md +298 -18
  79. package/src/material/theme/UI Domain Model in web applications.svg +1 -0
  80. package/src/material/theme/User Semantic Theme tokens.svg +1 -0
  81. package/src/material/theme/action-pending-poc.html +62 -0
  82. package/src/material/theme/actions-color.html +141 -0
  83. package/src/material/theme/colors-light.html +631 -0
  84. package/src/material/theme/colors-native.html +51 -0
  85. package/src/material/theme/colors-poc.html +66 -0
  86. package/src/material/theme/colors.html +297 -0
  87. package/src/material/theme/colors.js +44 -0
  88. package/src/material/theme/consumer-theme.css +745 -0
  89. package/src/material/theme/semantic.css +132 -132
  90. package/src/material/theme/style-bug.html +123 -0
  91. package/src/material/theme/theme-data.css +43 -0
  92. package/src/material/theme/theme-data.xhtml +2926 -0
  93. package/src/material/theme/todo.md +274 -0
  94. package/src/material/theme/tokens/action-colors.png +0 -0
  95. package/src/material/theme/tokens/cem-article-illustration-4x1-letterbox-2000x500.png +0 -0
  96. package/src/material/theme/tokens/cem-breakpoints.md +519 -0
  97. package/src/material/theme/tokens/cem-colors.md +715 -0
  98. package/src/material/theme/tokens/cem-consumerflow-typography-matrix.svg +198 -0
  99. package/src/material/theme/tokens/cem-coupling.md +372 -0
  100. package/src/material/theme/tokens/cem-data-vs-reading-numerals.svg +164 -0
  101. package/src/material/theme/tokens/cem-dimension.md +625 -0
  102. package/src/material/theme/tokens/cem-layering.md +562 -0
  103. package/src/material/theme/tokens/cem-m3-parity.md +343 -0
  104. package/src/material/theme/tokens/cem-responsive.md +238 -0
  105. package/src/material/theme/tokens/cem-shape.md +691 -0
  106. package/src/material/theme/tokens/cem-stroke-density-illustration-4to1-v3.svg +102 -0
  107. package/src/material/theme/tokens/cem-stroke.md +480 -0
  108. package/src/material/theme/tokens/cem-timing.md +198 -0
  109. package/src/material/theme/tokens/cem-typography-model-stack.svg +64 -0
  110. package/src/material/theme/tokens/cem-voice-fonts-typography.md +718 -0
  111. package/src/material/theme/tokens/cem-voice-ladder.svg +91 -0
  112. package/src/material/theme/tokens/chips.png +0 -0
  113. package/src/material/theme/tokens/columns-page.png +0 -0
  114. package/src/material/theme/tokens/initials.png +0 -0
  115. package/src/material/theme/tokens/nav-buttons.png +0 -0
  116. package/src/material/theme/tokens/script.png +0 -0
  117. package/src/material/theme/tokens/sufler.png +0 -0
  118. package/src/material/theme/tokens/typography-icons.png +0 -0
  119. package/src/mocks/versions.mock.ts +1 -1
  120. package/src/stories/__screenshots__/dom-merge.test.stories.ts/dom-merge-dom-merge-OrderPreservingOn2ndTransform-1.png +0 -0
  121. package/src/stories/__screenshots__/xslt-conditionals.test.stories.ts/xslt-conditionals-xslt-conditionals-MultipleIfOrderingWorkaround-1.png +0 -0
  122. package/src/stories/dom-merge.test.stories.ts +25 -1
  123. package/src/stories/xslt-conditionals.test.stories.ts +492 -0
  124. package/src/stories/xslt-if.test.stories.ts +89 -0
  125. package/storybook-static/assets/{Color-F6OSRLHC-Cbp293x2.js → Color-F6OSRLHC-CzTOSlqB.js} +1 -1
  126. package/storybook-static/assets/{Configure-BrFr4SLE.js → Configure-7GqRsAoJ.js} +1 -1
  127. package/storybook-static/assets/{DocsRenderer-CFRXHY34-DhHzJiIO.js → DocsRenderer-CFRXHY34-Duc5rSIm.js} +2 -2
  128. package/storybook-static/assets/{attributes.test.stories-Gg9LQTEK.js → attributes.test.stories-DYuxF8h1.js} +1 -1
  129. package/storybook-static/assets/{css.test.stories-B_3ltOrx.js → css.test.stories-LOmvINyb.js} +1 -1
  130. package/storybook-static/assets/{custom-element-CPnvJnn8.js → custom-element-Bwx7otrT.js} +6 -6
  131. package/storybook-static/assets/{dom-merge.test.stories-nQxcgLoM.js → dom-merge.test.stories-CEKhWjaS.js} +47 -6
  132. package/storybook-static/assets/entry-preview-BNCt9WBs.js +26 -0
  133. package/storybook-static/assets/{entry-preview-docs-Dwczwtsc.js → entry-preview-docs-CbF8-81D.js} +2 -2
  134. package/storybook-static/assets/{external-template.test.stories-DZ-rjnfd.js → external-template.test.stories-jHu0wsJ-.js} +1 -1
  135. package/storybook-static/assets/{form.test.stories-DQhPYtMj.js → form.test.stories-CUyUnmwP.js} +1 -1
  136. package/storybook-static/assets/{frame.canvas-ClTqYyMN.js → frame.canvas-E5n9h6j1.js} +1 -1
  137. package/storybook-static/assets/{handlers-CLkps6Nz.js → handlers-F7GUfMqr.js} +1 -1
  138. package/storybook-static/assets/http-request-BWeEEBkP.js +1 -0
  139. package/storybook-static/assets/{http-request.stories-jo0f73nw.js → http-request.stories-wyX5-QOv.js} +1 -1
  140. package/storybook-static/assets/{iframe-CZwRpnn9.js → iframe-BS_DPWl0.js} +11 -11
  141. package/storybook-static/assets/{index-Dr4PwNfd.js → index-CGuyH0k-.js} +87 -87
  142. package/storybook-static/assets/{index-CJQtnF9V.js → index-DB7LLObI.js} +1 -1
  143. package/storybook-static/assets/index-DO1nmyvI.js +11 -0
  144. package/storybook-static/assets/{index-B68YUdzy.js → index-V1EGs-wm.js} +3 -3
  145. package/storybook-static/assets/{local-storage.test.stories-uA5EKRPf.js → local-storage.test.stories-BxOhsf1k.js} +1 -1
  146. package/storybook-static/assets/{location-element.test.stories-Cu-6Elcg.js → location-element.test.stories-DqhvvUoa.js} +1 -1
  147. package/storybook-static/assets/{module-url.test.stories-CD_wusXQ.js → module-url.test.stories-C1gG9G7Y.js} +1 -1
  148. package/storybook-static/assets/{preview-BFlNN3Wj.js → preview-Bn8igYMp.js} +1 -1
  149. package/storybook-static/assets/{preview-CuCH40jj.js → preview-Cwy1XFu2.js} +2 -2
  150. package/storybook-static/assets/{preview-Cm4PPhHS.js → preview-D6sehqkw.js} +1 -1
  151. package/storybook-static/assets/{set-url.test.stories-CY7B9BVZ.js → set-url.test.stories-BKQNdknJ.js} +1 -1
  152. package/storybook-static/assets/{slice-events.test.stories-BVnPXm6e.js → slice-events.test.stories-ChqULCeA.js} +1 -1
  153. package/storybook-static/assets/{slots.test.stories-Dxsa9KdA.js → slots.test.stories-BlyLoCRe.js} +1 -1
  154. package/storybook-static/assets/{version-select.test.stories-Buga1PAa.js → version-select.test.stories-CPGSh1tR.js} +1 -1
  155. package/storybook-static/assets/xslt-conditionals.test.stories-YC6QPqWZ.js +633 -0
  156. package/storybook-static/assets/xslt-if.test.stories-BRSWy2-x.js +71 -0
  157. package/storybook-static/demo/a.html +10 -3
  158. package/storybook-static/demo/a.svg +26 -26
  159. package/storybook-static/demo/html-template.html +4 -3
  160. package/storybook-static/demo/s.xml +3856 -67
  161. package/storybook-static/demo/s.xslt +13 -72
  162. package/storybook-static/demo/s1.xml +3706 -0
  163. package/storybook-static/iframe.html +2 -2
  164. package/storybook-static/index.json +1 -1
  165. package/storybook-static/project.json +1 -1
  166. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +69 -66
  167. package/storybook-static/sb-addons/essentials-docs-3/manager-bundle.js +62 -59
  168. package/dist/custom-element-6slVaFEs.cjs +0 -97
  169. package/dist/http-request-DPrY7mGh.cjs +0 -1
  170. package/storybook-static/assets/attributes.test.stories-CzWkKw0e.js +0 -1
  171. package/storybook-static/assets/entry-preview-DHVXbf3x.js +0 -26
  172. package/storybook-static/assets/external-template.test.stories-BivZqBTp.js +0 -1
  173. package/storybook-static/assets/http-request-DNq59pnj.js +0 -1
  174. package/storybook-static/assets/index-BwkS7JH_.js +0 -8
  175. package/storybook-static/assets/module-url.test.stories-CTjUAk3J.js +0 -1
@@ -0,0 +1,164 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="1200" height="840" viewBox="0 0 1200 840" role="img" aria-label="Data vs Reading: why tabular numerals matter for scanning and comparison">
3
+ <defs>
4
+ <style>
5
+ :root {
6
+ --cem-ink: #111;
7
+ --cem-surface: #fff;
8
+ --cem-outline: #c7c7c7;
9
+ --cem-muted: #666;
10
+ --cem-accent: #005a9c;
11
+ --cem-soft: #f6f7f9;
12
+ --cem-warn: #b00020;
13
+ }
14
+
15
+ .frame { fill: var(--cem-surface); stroke: var(--cem-outline); stroke-width: 2; rx: 18; }
16
+ .panel { fill: var(--cem-surface); stroke: var(--cem-outline); stroke-width: 2; rx: 18; }
17
+ .panel-accent { fill: var(--cem-surface); stroke: var(--cem-accent); stroke-width: 2.4; rx: 18; }
18
+ .soft { fill: var(--cem-soft); stroke: var(--cem-outline); stroke-width: 1.2; rx: 14; }
19
+
20
+ .title { font: 700 32px system-ui, -apple-system, "Segoe UI", Arial, sans-serif; fill: var(--cem-ink); }
21
+ .subtitle { font: 400 16px system-ui, -apple-system, "Segoe UI", Arial, sans-serif; fill: var(--cem-muted); }
22
+ .h { font: 650 20px system-ui, -apple-system, "Segoe UI", Arial, sans-serif; fill: var(--cem-ink); }
23
+ .t { font: 400 16px system-ui, -apple-system, "Segoe UI", Arial, sans-serif; fill: var(--cem-ink); }
24
+ .muted { font: 400 14px system-ui, -apple-system, "Segoe UI", Arial, sans-serif; fill: var(--cem-muted); }
25
+ .mono { font: 600 14px ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; fill: var(--cem-muted); }
26
+ .num-reading {
27
+ font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
28
+ font-size: 20px;
29
+ font-weight: 650;
30
+ fill: var(--cem-ink);
31
+
32
+ /* force proportional numerals */
33
+ font-variant-numeric: proportional-nums;
34
+ font-feature-settings: "pnum" 1, "tnum" 0;
35
+ }
36
+
37
+ .num-data {
38
+ font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas,
39
+ "Liberation Mono", "Courier New", monospace;
40
+ font-size: 20px;
41
+ font-weight: 650;
42
+ fill: var(--cem-ink);
43
+
44
+ /* force tabular numerals */
45
+ font-variant-numeric: tabular-nums lining-nums;
46
+ font-feature-settings: "tnum" 1, "lnum" 1;
47
+ }
48
+
49
+ .guide { stroke: var(--cem-warn); stroke-width: 2; stroke-dasharray: 6 6; }
50
+ .guide2 { stroke: var(--cem-accent); stroke-width: 2; stroke-dasharray: 6 6; }
51
+ .callout { font: 600 13px system-ui, -apple-system, "Segoe UI", Arial, sans-serif; fill: var(--cem-warn); }
52
+ .callout2 { font: 600 13px system-ui, -apple-system, "Segoe UI", Arial, sans-serif; fill: var(--cem-accent); }
53
+ </style>
54
+ </defs>
55
+
56
+ <!-- Outer frame -->
57
+ <rect x="30" y="30" width="1140" height="780" class="frame"/>
58
+
59
+ <!-- Title -->
60
+ <text x="70" y="92" class="title">Data vs Reading: why tabular numerals matter</text>
61
+ <text x="70" y="125" class="subtitle">Same content, different semantic intent. Data typography optimizes scanning and comparison using tabular numerals.</text>
62
+
63
+ <!-- Panels -->
64
+ <rect x="70" y="165" width="520" height="600" class="panel"/>
65
+ <rect x="610" y="165" width="520" height="600" class="panel-accent"/>
66
+
67
+ <!-- Panel headings -->
68
+ <text x="95" y="210" class="h">Reading (proportional numerals)</text>
69
+ <text x="95" y="236" class="mono">--cem-typography-reading-…</text>
70
+
71
+ <text x="635" y="210" class="h">Data (tabular numerals)</text>
72
+ <text x="635" y="236" class="mono">--cem-typography-data-font-variant-numeric: tabular-nums</text>
73
+
74
+ <!-- Table headers -->
75
+ <rect x="95" y="265" width="470" height="44" class="soft"/>
76
+ <text x="115" y="293" class="t">Metric</text>
77
+ <text x="360" y="293" class="t">Value</text>
78
+
79
+ <rect x="635" y="265" width="470" height="44" class="soft"/>
80
+ <text x="655" y="293" class="t">Metric</text>
81
+ <text x="900" y="293" class="t">Value</text>
82
+
83
+ <!-- Rows geometry -->
84
+ <!-- Each row: height 62, start y=320 -->
85
+ <!-- Draw value cell boxes with fixed width, left-aligned numbers -->
86
+ <!-- Left value box x=330 w=235; Right value box x=870 w=235 -->
87
+ <!-- Vertical guide at right edge to show ragged ends vs alignment -->
88
+ <!-- Row 1 -->
89
+ <rect x="95" y="320" width="470" height="62" class="soft"/>
90
+ <text x="115" y="357" class="t">Flow rate (L/s)</text>
91
+ <rect x="330" y="333" width="235" height="36" class="frame"/>
92
+ <text x="345" y="357" class="num-reading">111.11</text>
93
+
94
+ <rect x="635" y="320" width="470" height="62" class="soft"/>
95
+ <text x="655" y="357" class="t">Flow rate (L/s)</text>
96
+ <rect x="870" y="333" width="235" height="36" class="frame"/>
97
+ <text x="885" y="357" class="num-data">111.11</text>
98
+
99
+ <!-- Row 2 -->
100
+ <rect x="95" y="390" width="470" height="62" class="soft"/>
101
+ <text x="115" y="427" class="t">Flow rate (L/s)</text>
102
+ <rect x="330" y="403" width="235" height="36" class="frame"/>
103
+ <text x="345" y="427" class="num-reading">888.88</text>
104
+
105
+ <rect x="635" y="390" width="470" height="62" class="soft"/>
106
+ <text x="655" y="427" class="t">Flow rate (L/s)</text>
107
+ <rect x="870" y="403" width="235" height="36" class="frame"/>
108
+ <text x="885" y="427" class="num-data">888.88</text>
109
+
110
+ <!-- Row 3 -->
111
+ <rect x="95" y="460" width="470" height="62" class="soft"/>
112
+ <text x="115" y="497" class="t">Meter reading</text>
113
+ <rect x="330" y="473" width="235" height="36" class="frame"/>
114
+ <text x="345" y="497" class="num-reading">100000</text>
115
+
116
+ <rect x="635" y="460" width="470" height="62" class="soft"/>
117
+ <text x="655" y="497" class="t">Meter reading</text>
118
+ <rect x="870" y="473" width="235" height="36" class="frame"/>
119
+ <text x="885" y="497" class="num-data">100000</text>
120
+
121
+ <!-- Row 4 -->
122
+ <rect x="95" y="530" width="470" height="62" class="soft"/>
123
+ <text x="115" y="567" class="t">Meter reading</text>
124
+ <rect x="330" y="543" width="235" height="36" class="frame"/>
125
+ <text x="345" y="567" class="num-reading">888888</text>
126
+
127
+ <rect x="635" y="530" width="470" height="62" class="soft"/>
128
+ <text x="655" y="567" class="t">Meter reading</text>
129
+ <rect x="870" y="543" width="235" height="36" class="frame"/>
130
+ <text x="885" y="567" class="num-data">888888</text>
131
+
132
+ <!-- Row 5 -->
133
+ <rect x="95" y="600" width="470" height="62" class="soft"/>
134
+ <text x="115" y="637" class="t">Time (hh:mm:ss)</text>
135
+ <rect x="330" y="613" width="235" height="36" class="frame"/>
136
+ <text x="345" y="637" class="num-reading">11:11:11</text>
137
+
138
+ <rect x="635" y="600" width="470" height="62" class="soft"/>
139
+ <text x="655" y="637" class="t">Time (hh:mm:ss)</text>
140
+ <rect x="870" y="613" width="235" height="36" class="frame"/>
141
+ <text x="885" y="637" class="num-data">11:11:11</text>
142
+
143
+ <!-- Row 6 -->
144
+ <rect x="95" y="670" width="470" height="62" class="soft"/>
145
+ <text x="115" y="707" class="t">Time (hh:mm:ss)</text>
146
+ <rect x="330" y="683" width="235" height="36" class="frame"/>
147
+ <text x="345" y="707" class="num-reading">08:58:08</text>
148
+
149
+ <rect x="635" y="670" width="470" height="62" class="soft"/>
150
+ <text x="655" y="707" class="t">Time (hh:mm:ss)</text>
151
+ <rect x="870" y="683" width="235" height="36" class="frame"/>
152
+ <text x="885" y="707" class="num-data">08:58:08</text>
153
+ <!-- Left guide -->
154
+ <line x1="370" y1="340" x2="370" y2="720" class="guide"/>
155
+ <text x="330" y="746" class="callout">ragged digit edges → slower scanning</text>
156
+
157
+ <!-- Right guide -->
158
+ <line x1="920" y1="340" x2="920" y2="720" class="guide2"/>
159
+ <text x="840" y="746" class="callout2">consistent digit widths → faster comparison</text>
160
+
161
+
162
+ <!-- Bottom explanation -->
163
+ <text x="95" y="790" class="muted">Reading typography optimizes prose comfort. Data typography optimizes stable glyph widths (tabular numerals) for rapid comparison.</text>
164
+ </svg>