@nonoun/native-ui 0.2.9 → 0.3.0

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 (41) 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 +1999 -1999
  4. package/dist/kernel.js +175 -174
  5. package/dist/native-ui.js +4 -49
  6. package/dist/register-all.js +4 -4
  7. package/dist/traits.js +3 -5
  8. package/dist/ui-icon.js +56 -0
  9. package/package.json +6 -9
  10. package/dist/dialog-controller.js +0 -391
  11. package/dist/inspector/build-inspector.d.ts +0 -8
  12. package/dist/inspector/build-inspector.d.ts.map +0 -1
  13. package/dist/inspector/ds-color-swatch-element.d.ts +0 -15
  14. package/dist/inspector/ds-color-swatch-element.d.ts.map +0 -1
  15. package/dist/inspector/ds-color-swatch.d.ts +0 -3
  16. package/dist/inspector/ds-color-swatch.d.ts.map +0 -1
  17. package/dist/inspector/ds-colors-element.d.ts +0 -14
  18. package/dist/inspector/ds-colors-element.d.ts.map +0 -1
  19. package/dist/inspector/ds-colors.d.ts +0 -4
  20. package/dist/inspector/ds-colors.d.ts.map +0 -1
  21. package/dist/inspector/ds-inspector-element.d.ts +0 -15
  22. package/dist/inspector/ds-inspector-element.d.ts.map +0 -1
  23. package/dist/inspector/ds-inspector.d.ts +0 -3
  24. package/dist/inspector/ds-inspector.d.ts.map +0 -1
  25. package/dist/inspector/ds-themes-element.d.ts +0 -13
  26. package/dist/inspector/ds-themes-element.d.ts.map +0 -1
  27. package/dist/inspector/ds-themes.d.ts +0 -4
  28. package/dist/inspector/ds-themes.d.ts.map +0 -1
  29. package/dist/inspector/ds-variable-element.d.ts +0 -19
  30. package/dist/inspector/ds-variable-element.d.ts.map +0 -1
  31. package/dist/inspector/ds-variable.d.ts +0 -4
  32. package/dist/inspector/ds-variable.d.ts.map +0 -1
  33. package/dist/inspector/index.d.ts +0 -10
  34. package/dist/inspector/index.d.ts.map +0 -1
  35. package/dist/inspector.css +0 -231
  36. package/dist/inspector.d.ts +0 -11
  37. package/dist/inspector.d.ts.map +0 -1
  38. package/dist/inspector.js +0 -610
  39. package/dist/list-navigate-controller.js +0 -457
  40. package/dist/ui-icon-element.js +0 -986
  41. 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 };