u2ui 1.4.5 → 1.4.6

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.
@@ -2,7 +2,8 @@
2
2
  let resentConfirmed = false;
3
3
 
4
4
  // submit
5
- // todo: test if it works inside shadow dom
5
+ // idea: test if it works inside shadow dom
6
+ // idea: Alt+click to skip confirmation? but how in the submit path?
6
7
 
7
8
  document.addEventListener('submit', e=>{
8
9
  if (resentConfirmed) return; // dont check again
@@ -1,6 +1,7 @@
1
1
  .u2-unstyle.u2-unstyle.u2-unstyle {
2
2
  background-color:unset;
3
3
  color: unset;
4
+ text-align: unset;
4
5
  margin: unset;
5
6
  padding: unset;
6
7
  display: inline;
package/el/toc/toc.js CHANGED
@@ -1,5 +1,7 @@
1
1
  import '../../js/navigator/url-change-event.js';
2
2
 
3
+ // possible todo: taking headingoffset into account https://w3c.github.io/hackathon-tpac-2024/submissions/bkardell.html
4
+
3
5
  export default class U2Toc extends HTMLElement {
4
6
  constructor() {
5
7
  super();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "u2ui",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "description": "HTML Advanced: More Capabilities, Same Feel, Same Simplicity",
5
5
  "keywords": ["web-components","pattern-library","component-library","ui-toolkit","design-system"],
6
6
  "author": "Tobias Buschor",
package/u2/auto.js CHANGED
@@ -7,16 +7,11 @@ let rootUrl = root.toString();
7
7
 
8
8
  if (root.host === 'localhost') debug = true;
9
9
 
10
- //let min = '.min';
11
-
12
- // get faster cdn updates? https://purge.jsdelivr.net/gh/nuxodin/cleanup.js@latest/
13
-
14
10
  if (debug) { // top level await safari >= 15.1
15
- //min = '';
16
11
  await Promise.all([
17
- //import('https://cdn.jsdelivr.net/gh/nuxodin/lazyfill/mod.min.js'),
18
- //import('https://cdn.jsdelivr.net/gh/nuxodin/lazyfill/htmlfills.min.js'),
19
- //import('https://cdn.jsdelivr.net/gh/nuxodin/cleanup.js/mod.min.js'),
12
+ //import('https://cdn.jsdelivr.net/gh/nuxodin/lazyfill/mod.js'),
13
+ //import('https://cdn.jsdelivr.net/gh/nuxodin/lazyfill/htmlfills.js'),
14
+ //import('https://cdn.jsdelivr.net/gh/nuxodin/cleanup.js/mod.js'),
20
15
  ]);
21
16
  }
22
17