@nonoun/native-ui 0.2.9 → 0.2.10

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 (57) hide show
  1. package/dist/{ui-layout-inspector-element.js → components.js} +2279 -386
  2. package/dist/{register-all2.js → core.js} +78 -35
  3. package/dist/custom-elements.json +2502 -2502
  4. package/dist/inspector/build-inspector.d.ts +4 -4
  5. package/dist/inspector/build-inspector.d.ts.map +1 -1
  6. package/dist/inspector/index.d.ts +8 -8
  7. package/dist/inspector/index.d.ts.map +1 -1
  8. package/dist/inspector/{ds-color-swatch-element.d.ts → native-tokens-color-swatch-element.d.ts} +2 -2
  9. package/dist/inspector/native-tokens-color-swatch-element.d.ts.map +1 -0
  10. package/dist/inspector/native-tokens-color-swatch.d.ts +3 -0
  11. package/dist/inspector/native-tokens-color-swatch.d.ts.map +1 -0
  12. package/dist/inspector/{ds-colors-element.d.ts → native-tokens-colors-element.d.ts} +3 -3
  13. package/dist/inspector/native-tokens-colors-element.d.ts.map +1 -0
  14. package/dist/inspector/native-tokens-colors.d.ts +4 -0
  15. package/dist/inspector/native-tokens-colors.d.ts.map +1 -0
  16. package/dist/inspector/native-tokens-inspector-element.d.ts +15 -0
  17. package/dist/inspector/native-tokens-inspector-element.d.ts.map +1 -0
  18. package/dist/inspector/native-tokens-inspector.d.ts +3 -0
  19. package/dist/inspector/native-tokens-inspector.d.ts.map +1 -0
  20. package/dist/inspector/{ds-themes-element.d.ts → native-tokens-themes-element.d.ts} +3 -3
  21. package/dist/inspector/native-tokens-themes-element.d.ts.map +1 -0
  22. package/dist/inspector/native-tokens-themes.d.ts +4 -0
  23. package/dist/inspector/native-tokens-themes.d.ts.map +1 -0
  24. package/dist/inspector/{ds-variable-element.d.ts → native-tokens-variable-element.d.ts} +3 -3
  25. package/dist/inspector/native-tokens-variable-element.d.ts.map +1 -0
  26. package/dist/inspector/native-tokens-variable.d.ts +4 -0
  27. package/dist/inspector/native-tokens-variable.d.ts.map +1 -0
  28. package/dist/inspector.css +30 -30
  29. package/dist/inspector.d.ts +10 -9
  30. package/dist/inspector.d.ts.map +1 -1
  31. package/dist/inspector.js +102 -103
  32. package/dist/kernel.js +175 -174
  33. package/dist/native-ui.js +4 -49
  34. package/dist/register-all.js +4 -4
  35. package/dist/traits.js +3 -5
  36. package/dist/ui-icon.js +56 -0
  37. package/package.json +1 -1
  38. package/dist/dialog-controller.js +0 -391
  39. package/dist/inspector/ds-color-swatch-element.d.ts.map +0 -1
  40. package/dist/inspector/ds-color-swatch.d.ts +0 -3
  41. package/dist/inspector/ds-color-swatch.d.ts.map +0 -1
  42. package/dist/inspector/ds-colors-element.d.ts.map +0 -1
  43. package/dist/inspector/ds-colors.d.ts +0 -4
  44. package/dist/inspector/ds-colors.d.ts.map +0 -1
  45. package/dist/inspector/ds-inspector-element.d.ts +0 -15
  46. package/dist/inspector/ds-inspector-element.d.ts.map +0 -1
  47. package/dist/inspector/ds-inspector.d.ts +0 -3
  48. package/dist/inspector/ds-inspector.d.ts.map +0 -1
  49. package/dist/inspector/ds-themes-element.d.ts.map +0 -1
  50. package/dist/inspector/ds-themes.d.ts +0 -4
  51. package/dist/inspector/ds-themes.d.ts.map +0 -1
  52. package/dist/inspector/ds-variable-element.d.ts.map +0 -1
  53. package/dist/inspector/ds-variable.d.ts +0 -4
  54. package/dist/inspector/ds-variable.d.ts.map +0 -1
  55. package/dist/list-navigate-controller.js +0 -457
  56. package/dist/ui-icon-element.js +0 -986
  57. package/dist/uid.js +0 -147
package/dist/uid.js DELETED
@@ -1,147 +0,0 @@
1
- var e = null, t = 0, n = /* @__PURE__ */ new Set();
2
- const r = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new Set();
3
- function a() {
4
- return e;
5
- }
6
- function o(t) {
7
- e = t;
8
- }
9
- function s() {
10
- return t;
11
- }
12
- function c() {
13
- t++;
14
- }
15
- function l() {
16
- t--;
17
- }
18
- var u = class {
19
- _value;
20
- _subs = /* @__PURE__ */ new Set();
21
- constructor(e) {
22
- this._value = e;
23
- }
24
- }, d = class e {
25
- _subs = /* @__PURE__ */ new Set();
26
- _deps = /* @__PURE__ */ new Set();
27
- _fn;
28
- _value = void 0;
29
- _dirty = !0;
30
- constructor(e) {
31
- this._fn = e;
32
- }
33
- _notify() {
34
- if (!this._dirty) {
35
- this._dirty = !0;
36
- for (let r of [...this._subs]) r instanceof e ? r._notify() : t > 0 ? n.add(r) : g(r);
37
- }
38
- }
39
- }, f = class {
40
- _deps = /* @__PURE__ */ new Set();
41
- _fn;
42
- _disposed = !1;
43
- _running = !1;
44
- constructor(e) {
45
- this._fn = e;
46
- }
47
- };
48
- function p(t) {
49
- e !== null && (t._subs.add(e), e._deps.add(t));
50
- }
51
- function m(e) {
52
- for (let t of e._deps) t._subs.delete(e);
53
- e._deps.clear();
54
- }
55
- function h(e) {
56
- for (let r of [...e._subs]) r instanceof d ? r._notify() : t > 0 ? n.add(r) : g(r);
57
- }
58
- function g(t) {
59
- if (t._disposed || t._running) return;
60
- m(t);
61
- let n = e;
62
- e = t, t._running = !0;
63
- try {
64
- t._fn();
65
- } finally {
66
- e = n, t._running = !1;
67
- }
68
- }
69
- function _() {
70
- let e = 0;
71
- for (; n.size > 0;) {
72
- if (++e > 100) throw Error("Reactive flush limit exceeded (100 iterations). Possible infinite loop.");
73
- let t = [...n];
74
- n.clear();
75
- for (let e of t) g(e);
76
- }
77
- }
78
- var v = class {
79
- [Symbol.toStringTag] = "Signal";
80
- #e;
81
- constructor(e) {
82
- this.#e = e;
83
- }
84
- get value() {
85
- return p(this.#e), this.#e._value;
86
- }
87
- set value(e) {
88
- Object.is(this.#e._value, e) || (this.#e._value = e, h(this.#e));
89
- }
90
- peek() {
91
- return this.#e._value;
92
- }
93
- };
94
- function y(e) {
95
- let t = new u(e), n = new v(t);
96
- return r.set(n, t), n;
97
- }
98
- var b = class {
99
- [Symbol.toStringTag] = "Computed";
100
- #e;
101
- constructor(e) {
102
- this.#e = e;
103
- }
104
- get value() {
105
- return p(this.#e), this.#e._dirty && this.#t(), this.#e._value;
106
- }
107
- peek() {
108
- return this.#e._dirty && this.#t(), this.#e._value;
109
- }
110
- #t() {
111
- let e = this.#e;
112
- if (i.has(e)) throw Error("Circular computed dependency detected.");
113
- m(e), i.add(e);
114
- let t = a();
115
- o(e);
116
- try {
117
- e._value = e._fn();
118
- } finally {
119
- o(t), i.delete(e), e._dirty = !1;
120
- }
121
- }
122
- };
123
- function x(e) {
124
- let t = new d(e), n = new b(t);
125
- return r.set(n, t), n;
126
- }
127
- function S(e) {
128
- let t = new f(e);
129
- return g(t), () => {
130
- t._disposed || (t._disposed = !0, m(t));
131
- };
132
- }
133
- function C(e) {
134
- c();
135
- try {
136
- e();
137
- } finally {
138
- l(), s() === 0 && _();
139
- }
140
- }
141
- function w(e, t) {
142
- customElements.get(e) || customElements.define(e, t);
143
- }
144
- function T(e = "ui") {
145
- return `${e}-${crypto.randomUUID().slice(0, 8)}`;
146
- }
147
- export { x as a, a as c, S as i, r as l, w as n, y as o, C as r, u as s, T as t, o as u };