@fluixi/dom 1.0.0-alpha.83 → 1.0.0-alpha.84

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 (182) hide show
  1. package/dist/cdn/dom-client.cjs +1427 -1
  2. package/dist/cdn/dom-client.d.ts +2 -2
  3. package/dist/cdn/dom-client.global.js +2 -1
  4. package/dist/cdn/dom-client.js +3 -3
  5. package/dist/cdn/dom-client.mjs +1430 -1
  6. package/dist/cdn/dom.cjs +3127 -1
  7. package/dist/cdn/dom.d.ts +2 -2
  8. package/dist/cdn/dom.global.js +2 -1
  9. package/dist/cdn/dom.js +4 -4
  10. package/dist/cdn/dom.mjs +3133 -1
  11. package/dist/index.cjs +3155 -1
  12. package/dist/index.js +2 -2
  13. package/dist/index.mjs +3149 -1
  14. package/dist/lib/component/index.cjs +128 -1
  15. package/dist/lib/component/index.mjs +105 -1
  16. package/dist/lib/component/modifiers.cjs +126 -1
  17. package/dist/lib/component/modifiers.d.ts +12 -0
  18. package/dist/lib/component/modifiers.d.ts.map +1 -1
  19. package/dist/lib/component/modifiers.js +12 -84
  20. package/dist/lib/component/modifiers.mjs +105 -1
  21. package/dist/lib/dom/delegate.cjs +60 -1
  22. package/dist/lib/dom/delegate.js +1 -1
  23. package/dist/lib/dom/delegate.mjs +39 -1
  24. package/dist/lib/dom/dynamic-element.cjs +949 -1
  25. package/dist/lib/dom/dynamic-element.d.ts +3 -3
  26. package/dist/lib/dom/dynamic-element.js +2 -2
  27. package/dist/lib/dom/dynamic-element.mjs +928 -1
  28. package/dist/lib/dom/hydration-state.cjs +93 -1
  29. package/dist/lib/dom/hydration-state.d.ts +1 -1
  30. package/dist/lib/dom/hydration-state.js +1 -1
  31. package/dist/lib/dom/hydration-state.mjs +72 -1
  32. package/dist/lib/dom/hydration.cjs +685 -1
  33. package/dist/lib/dom/hydration.js +8 -8
  34. package/dist/lib/dom/hydration.mjs +664 -1
  35. package/dist/lib/dom/index.cjs +2040 -1
  36. package/dist/lib/dom/index.js +1 -1
  37. package/dist/lib/dom/index.mjs +2020 -1
  38. package/dist/lib/dom/integration.cjs +71 -1
  39. package/dist/lib/dom/integration.js +3 -3
  40. package/dist/lib/dom/integration.mjs +51 -1
  41. package/dist/lib/dom/island.cjs +790 -1
  42. package/dist/lib/dom/island.d.ts +1 -1
  43. package/dist/lib/dom/island.js +11 -11
  44. package/dist/lib/dom/island.mjs +769 -1
  45. package/dist/lib/dom/runtime.cjs +1432 -1
  46. package/dist/lib/dom/runtime.d.ts +60 -17
  47. package/dist/lib/dom/runtime.d.ts.map +1 -1
  48. package/dist/lib/dom/runtime.js +122 -79
  49. package/dist/lib/dom/runtime.mjs +1414 -1
  50. package/dist/lib/dom/server/fx-data.cjs +53 -1
  51. package/dist/lib/dom/server/fx-data.d.ts +5 -5
  52. package/dist/lib/dom/server/fx-data.js +6 -6
  53. package/dist/lib/dom/server/fx-data.mjs +32 -1
  54. package/dist/lib/dom/server/host.cjs +66 -1
  55. package/dist/lib/dom/server/host.d.ts +6 -0
  56. package/dist/lib/dom/server/host.d.ts.map +1 -1
  57. package/dist/lib/dom/server/host.js +7 -1
  58. package/dist/lib/dom/server/host.mjs +45 -1
  59. package/dist/lib/dom/server/index.cjs +759 -1
  60. package/dist/lib/dom/server/index.d.ts +1 -1
  61. package/dist/lib/dom/server/index.js +1 -1
  62. package/dist/lib/dom/server/index.mjs +743 -1
  63. package/dist/lib/dom/server/nodes.cjs +302 -1
  64. package/dist/lib/dom/server/nodes.d.ts +2 -2
  65. package/dist/lib/dom/server/nodes.d.ts.map +1 -1
  66. package/dist/lib/dom/server/nodes.js +4 -4
  67. package/dist/lib/dom/server/nodes.mjs +279 -1
  68. package/dist/lib/dom/server/parse-template.cjs +395 -1
  69. package/dist/lib/dom/server/parse-template.d.ts +1 -1
  70. package/dist/lib/dom/server/parse-template.js +4 -4
  71. package/dist/lib/dom/server/parse-template.mjs +372 -1
  72. package/dist/lib/dom/server/render.cjs +691 -1
  73. package/dist/lib/dom/server/render.d.ts +9 -1
  74. package/dist/lib/dom/server/render.d.ts.map +1 -1
  75. package/dist/lib/dom/server/render.js +23 -15
  76. package/dist/lib/dom/server/render.mjs +677 -1
  77. package/dist/lib/dom/server/request-context.cjs +110 -1
  78. package/dist/lib/dom/server/request-context.d.ts +29 -9
  79. package/dist/lib/dom/server/request-context.d.ts.map +1 -1
  80. package/dist/lib/dom/server/request-context.js +28 -8
  81. package/dist/lib/dom/server/request-context.mjs +89 -1
  82. package/dist/lib/dom/server/serialize.cjs +187 -1
  83. package/dist/lib/dom/server/serialize.js +3 -3
  84. package/dist/lib/dom/server/serialize.mjs +164 -1
  85. package/dist/lib/dom/server-renderer.cjs +760 -1
  86. package/dist/lib/dom/server-renderer.js +1 -1
  87. package/dist/lib/dom/server-renderer.mjs +745 -1
  88. package/dist/lib/dom/types.cjs +18 -1
  89. package/dist/lib/dom/utils.cjs +381 -1
  90. package/dist/lib/dom/utils.d.ts +1 -88
  91. package/dist/lib/dom/utils.d.ts.map +1 -1
  92. package/dist/lib/dom/utils.js +2 -99
  93. package/dist/lib/dom/utils.mjs +361 -1
  94. package/dist/lib/dom/versions.cjs +60 -1
  95. package/dist/lib/dom/versions.d.ts +3 -3
  96. package/dist/lib/dom/versions.d.ts.map +1 -1
  97. package/dist/lib/dom/versions.js +17 -5
  98. package/dist/lib/dom/versions.mjs +37 -1
  99. package/dist/lib/element/attributes.cjs +19 -1
  100. package/dist/lib/element/attributes.d.ts +7 -7
  101. package/dist/lib/element/attributes.js +1 -1
  102. package/dist/lib/element/attributes.mjs +1 -0
  103. package/dist/lib/element/index.cjs +19 -1
  104. package/dist/lib/element/index.mjs +1 -0
  105. package/dist/lib/element/types.cjs +18 -1
  106. package/dist/lib/element/types.d.ts +4 -5
  107. package/dist/lib/element/types.d.ts.map +1 -1
  108. package/dist/lib/element/types.js +0 -1
  109. package/dist/lib/flow/class-map.cjs +38 -1
  110. package/dist/lib/flow/class-map.d.ts +3 -3
  111. package/dist/lib/flow/class-map.js +2 -2
  112. package/dist/lib/flow/class-map.mjs +17 -1
  113. package/dist/lib/flow/client-only.cjs +57 -1
  114. package/dist/lib/flow/client-only.d.ts +4 -4
  115. package/dist/lib/flow/client-only.js +3 -3
  116. package/dist/lib/flow/client-only.mjs +36 -1
  117. package/dist/lib/flow/dynamic.cjs +53 -1
  118. package/dist/lib/flow/dynamic.d.ts +2 -2
  119. package/dist/lib/flow/dynamic.js +3 -3
  120. package/dist/lib/flow/dynamic.mjs +32 -1
  121. package/dist/lib/flow/error-boundary.cjs +43 -1
  122. package/dist/lib/flow/error-boundary.d.ts +2 -2
  123. package/dist/lib/flow/error-boundary.js +3 -3
  124. package/dist/lib/flow/error-boundary.mjs +22 -1
  125. package/dist/lib/flow/for.cjs +66 -1
  126. package/dist/lib/flow/for.d.ts +9 -9
  127. package/dist/lib/flow/for.d.ts.map +1 -1
  128. package/dist/lib/flow/for.js +2 -2
  129. package/dist/lib/flow/for.mjs +45 -1
  130. package/dist/lib/flow/index-flow.cjs +67 -1
  131. package/dist/lib/flow/index-flow.d.ts +5 -5
  132. package/dist/lib/flow/index-flow.js +4 -4
  133. package/dist/lib/flow/index-flow.mjs +46 -1
  134. package/dist/lib/flow/index.cjs +805 -1
  135. package/dist/lib/flow/index.mjs +792 -1
  136. package/dist/lib/flow/portal.cjs +538 -1
  137. package/dist/lib/flow/portal.mjs +519 -1
  138. package/dist/lib/flow/show.cjs +81 -1
  139. package/dist/lib/flow/show.d.ts +1 -1
  140. package/dist/lib/flow/show.d.ts.map +1 -1
  141. package/dist/lib/flow/show.js +4 -115
  142. package/dist/lib/flow/show.mjs +67 -1
  143. package/dist/lib/flow/style-map.cjs +43 -1
  144. package/dist/lib/flow/style-map.d.ts +3 -3
  145. package/dist/lib/flow/style-map.js +3 -3
  146. package/dist/lib/flow/style-map.mjs +22 -1
  147. package/dist/lib/flow/switch.cjs +91 -1
  148. package/dist/lib/flow/switch.d.ts +3 -3
  149. package/dist/lib/flow/switch.d.ts.map +1 -1
  150. package/dist/lib/flow/switch.js +6 -6
  151. package/dist/lib/flow/switch.mjs +70 -1
  152. package/dist/lib/flow/utils.cjs +44 -1
  153. package/dist/lib/flow/utils.d.ts +1 -1
  154. package/dist/lib/flow/utils.js +1 -1
  155. package/dist/lib/flow/utils.mjs +23 -1
  156. package/dist/lib/html.cjs +32 -1
  157. package/dist/lib/html.d.ts +6 -6
  158. package/dist/lib/html.js +5 -5
  159. package/dist/lib/html.mjs +11 -1
  160. package/dist/lib/index.cjs +3104 -1
  161. package/dist/lib/index.d.ts +0 -1
  162. package/dist/lib/index.d.ts.map +1 -1
  163. package/dist/lib/index.js +2 -3
  164. package/dist/lib/index.mjs +3097 -1
  165. package/dist/lib/shared/types.cjs +18 -1
  166. package/dist/lib/shared/types.d.ts +8 -8
  167. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  168. package/dist/version.generated.cjs +26 -1
  169. package/dist/version.generated.d.ts +1 -1
  170. package/dist/version.generated.js +2 -2
  171. package/dist/version.generated.mjs +5 -1
  172. package/package.json +7 -6
  173. package/dist/lib/jsx/control-flow/flow.cjs +0 -1
  174. package/dist/lib/jsx/control-flow/flow.d.ts +0 -2
  175. package/dist/lib/jsx/control-flow/flow.d.ts.map +0 -1
  176. package/dist/lib/jsx/control-flow/flow.js +0 -627
  177. package/dist/lib/jsx/control-flow/flow.mjs +0 -0
  178. package/dist/lib/jsx/control-flow/for-flow.cjs +0 -1
  179. package/dist/lib/jsx/control-flow/for-flow.d.ts +0 -2
  180. package/dist/lib/jsx/control-flow/for-flow.d.ts.map +0 -1
  181. package/dist/lib/jsx/control-flow/for-flow.js +0 -1
  182. package/dist/lib/jsx/control-flow/for-flow.mjs +0 -0
@@ -1 +1,18 @@
1
- "use strict";var r=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var u=(n,e,a,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of p(e))!i.call(n,o)&&o!==a&&r(n,o,{get:()=>e[o],enumerable:!(t=s(e,o))||t.enumerable});return n};var c=n=>u(r({},"__esModule",{value:!0}),n);var T={};module.exports=c(T);
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/lib/dom/types.ts
17
+ var types_exports = {};
18
+ module.exports = __toCommonJS(types_exports);
@@ -1 +1,381 @@
1
- "use strict";var l=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var E=Object.prototype.hasOwnProperty;var b=(e,t)=>{for(var n in t)l(e,n,{get:t[n],enumerable:!0})},x=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of g(t))!E.call(e,o)&&o!==n&&l(e,o,{get:()=>t[o],enumerable:!(r=m(t,o))||r.enumerable});return e};var h=e=>x(l({},"__esModule",{value:!0}),e);var te={};b(te,{JSX_PROPERTIES:()=>N,SVG_ELEMENTS:()=>A,SVG_NAMESPACE:()=>L,VOID_ELEMENTS:()=>S,addClass:()=>I,appendChildren:()=>q,applyElementProp:()=>C,closest:()=>O,createElement:()=>W,delegate:()=>B,getAttribute:()=>V,getGlobal:()=>ee,getLitEventName:()=>T,getOffset:()=>z,getStyle:()=>G,hasClass:()=>H,isCustomElement:()=>f,isDOMNode:()=>U,isEventHandler:()=>w,isJSXTemplate:()=>Q,isLitTemplateResult:()=>p,isReactElement:()=>Z,isTemplateFactory:()=>_,isVisible:()=>D,observeIntersection:()=>X,observeResize:()=>K,query:()=>a,queryAll:()=>M,registerGlobal:()=>k,removeAttribute:()=>j,removeChildren:()=>$,removeClass:()=>P,scrollIntoView:()=>F,setAttribute:()=>c,setStyles:()=>d,shouldSetAsProperty:()=>v,toAttributeName:()=>y,toggleClass:()=>R,waitForElement:()=>J});module.exports=h(te);function y(e){return e.startsWith("aria-")||e.startsWith("data-")?e:/[A-Z]/.test(e)?e.replace(/([A-Z])/g,"-$1").toLowerCase():e}function w(e){return e.startsWith("@")||e.startsWith("on")&&e.length>2}function T(e){return e.startsWith("@")?e.slice(1):e.startsWith("on")?e.slice(2).toLowerCase():e}function v(e,t){let n=new Set(["checked","value","selected","disabled","readonly","required","multiple","open","contenteditable","draggable","spellcheck"]),r={input:new Set(["value","checked","indeterminate"]),textarea:new Set(["value"]),select:new Set(["value"]),option:new Set(["selected","value"]),audio:new Set(["volume","currentTime","paused"]),video:new Set(["volume","currentTime","paused"]),img:new Set(["src","srcset"]),iframe:new Set(["src"]),a:new Set(["href"])};return n.has(t)||r[e]&&r[e].has(t)}var S=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),A=new Set(["svg","g","path","circle","rect","line","polyline","polygon","ellipse","text","tspan","use","defs","symbol","mask","clipPath","pattern","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","foreignObject"]),L="http://www.w3.org/2000/svg";function f(e){return e.localName.includes("-")}function C(e,t,n,r=!1){if(n==null){e.removeAttribute(t);return}if(f(e)){e[t]=n;return}c(e,t,n,r)}var N=new Set(["className","value","checked","selected","innerHTML","innerText","textContent","indeterminate","htmlFor"]);function a(e,t=document){return t.querySelector(e)}function M(e,t=document){return Array.from(t.querySelectorAll(e))}function O(e,t){return e.closest(t)}function I(e,...t){e.classList.add(...t)}function P(e,...t){e.classList.remove(...t)}function R(e,...t){t.forEach(n=>e.classList.toggle(n))}function H(e,t){return e.classList.contains(t)}function c(e,t,n,r=!1){if(n==null||n===!1){e.removeAttribute(t);return}if(n===!0){e.setAttribute(t,"");return}if(typeof n=="object"){e.setAttribute(t,JSON.stringify(n));return}e.setAttribute(t,String(n))}function V(e,t){return e.getAttribute(t)}function j(e,t){e.removeAttribute(t)}function d(e,t){Object.assign(e.style,t)}function G(e,t){return window.getComputedStyle(e).getPropertyValue(t)}function W(e,t={},...n){let r=document.createElement(e);return Object.entries(t).forEach(([o,i])=>{if(o==="class"||o==="className")r.className=i;else if(o==="style"&&typeof i=="object")d(r,i);else if(o.startsWith("on")&&typeof i=="function"){let s=o.slice(2).toLowerCase();r.addEventListener(s,i)}else c(r,o,i)}),n.forEach(o=>{typeof o=="string"?r.appendChild(document.createTextNode(o)):r.appendChild(o)}),r}function $(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function q(e,...t){t.forEach(n=>{typeof n=="string"?e.appendChild(document.createTextNode(n)):e.appendChild(n)})}function D(e){let t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}function F(e,t={behavior:"smooth",block:"nearest"}){e.scrollIntoView(t)}function z(e){let t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}}function B(e,t,n,r){let o=i=>{let s=i.target.closest(n);s&&e.contains(s)&&r(i,s)};return e.addEventListener(t,o),()=>{e.removeEventListener(t,o)}}function J(e,t=5e3){return new Promise((n,r)=>{let o=a(e);if(o){n(o);return}let i=new MutationObserver(()=>{let u=a(e);u&&(i.disconnect(),clearTimeout(s),n(u))});i.observe(document.body,{childList:!0,subtree:!0});let s=setTimeout(()=>{i.disconnect(),r(new Error(`Element ${e} not found within ${t}ms`))},t)})}function X(e,t,n={}){let r=new IntersectionObserver(o=>{o.forEach(i=>{t(i.isIntersecting)})},n);return r.observe(e),()=>{r.disconnect()}}function K(e,t){let n=new ResizeObserver(r=>{r.forEach(t)});return n.observe(e),()=>{n.disconnect()}}var Y=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function Z(e){return typeof e=="object"&&e!==null&&e.$$typeof===Y}function p(e){return e&&typeof e=="object"&&e.strings&&Array.isArray(e.strings)&&e.values&&Array.isArray(e.values)}function _(e){if(typeof e!="function")return!1;try{let t=e();return p(t)}catch{return!1}}function Q(e){return typeof e=="object"&&e!==null&&(e.$$typeof==="template"||typeof e.type=="function")}function U(e){return e instanceof Node}function k(e,t,n="Fluixi"){typeof globalThis<"u"&&(typeof globalThis[n]>"u"&&(globalThis[n]={}),typeof globalThis[n][e]>"u"&&(globalThis[n][e]=t))}function ee(e,t,n="Fluixi"){return typeof globalThis<"u"&&typeof globalThis[n]<"u"&&typeof globalThis[n][e]<"u"?globalThis[n][e]:t}
1
+ /*! @fluixi/dom v1.0.0-alpha.84 | (c) 2026 Ibrahima Touré and Fluixi contributors | MIT */
2
+ "use strict";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/lib/dom/utils.ts
22
+ var utils_exports = {};
23
+ __export(utils_exports, {
24
+ JSX_PROPERTIES: () => JSX_PROPERTIES,
25
+ SVG_ELEMENTS: () => SVG_ELEMENTS,
26
+ SVG_NAMESPACE: () => SVG_NAMESPACE,
27
+ VOID_ELEMENTS: () => VOID_ELEMENTS,
28
+ addClass: () => addClass,
29
+ appendChildren: () => appendChildren,
30
+ applyElementProp: () => applyElementProp,
31
+ closest: () => closest,
32
+ createElement: () => createElement,
33
+ delegate: () => delegate,
34
+ getAttribute: () => getAttribute,
35
+ getGlobal: () => getGlobal,
36
+ getLitEventName: () => getLitEventName,
37
+ getOffset: () => getOffset,
38
+ getStyle: () => getStyle,
39
+ hasClass: () => hasClass,
40
+ isCustomElement: () => isCustomElement,
41
+ isDOMNode: () => isDOMNode,
42
+ isEventHandler: () => isEventHandler,
43
+ isJSXTemplate: () => isJSXTemplate,
44
+ isLitTemplateResult: () => isLitTemplateResult,
45
+ isReactElement: () => isReactElement,
46
+ isTemplateFactory: () => isTemplateFactory,
47
+ isVisible: () => isVisible,
48
+ observeIntersection: () => observeIntersection,
49
+ observeResize: () => observeResize,
50
+ query: () => query,
51
+ queryAll: () => queryAll,
52
+ registerGlobal: () => registerGlobal,
53
+ removeAttribute: () => removeAttribute,
54
+ removeChildren: () => removeChildren,
55
+ removeClass: () => removeClass,
56
+ scrollIntoView: () => scrollIntoView,
57
+ setAttribute: () => setAttribute,
58
+ setStyles: () => setStyles,
59
+ shouldSetAsProperty: () => shouldSetAsProperty,
60
+ toAttributeName: () => toAttributeName,
61
+ toggleClass: () => toggleClass,
62
+ waitForElement: () => waitForElement
63
+ });
64
+ module.exports = __toCommonJS(utils_exports);
65
+ function toAttributeName(key) {
66
+ if (key.startsWith("aria-") || key.startsWith("data-")) {
67
+ return key;
68
+ }
69
+ if (/[A-Z]/.test(key)) {
70
+ return key.replace(/([A-Z])/g, "-$1").toLowerCase();
71
+ }
72
+ return key;
73
+ }
74
+ function isEventHandler(key) {
75
+ return key.startsWith("@") || key.startsWith("on") && key.length > 2;
76
+ }
77
+ function getLitEventName(key) {
78
+ if (key.startsWith("@")) {
79
+ return key.slice(1);
80
+ }
81
+ if (key.startsWith("on")) {
82
+ const eventName = key.slice(2);
83
+ return eventName.toLowerCase();
84
+ }
85
+ return key;
86
+ }
87
+ function shouldSetAsProperty(element, key) {
88
+ const propertyAttributes = /* @__PURE__ */ new Set([
89
+ "checked",
90
+ "value",
91
+ "selected",
92
+ "disabled",
93
+ "readonly",
94
+ "required",
95
+ "multiple",
96
+ "open",
97
+ "contenteditable",
98
+ "draggable",
99
+ "spellcheck"
100
+ ]);
101
+ const elementSpecificProps = {
102
+ input: /* @__PURE__ */ new Set(["value", "checked", "indeterminate"]),
103
+ textarea: /* @__PURE__ */ new Set(["value"]),
104
+ select: /* @__PURE__ */ new Set(["value"]),
105
+ option: /* @__PURE__ */ new Set(["selected", "value"]),
106
+ audio: /* @__PURE__ */ new Set(["volume", "currentTime", "paused"]),
107
+ video: /* @__PURE__ */ new Set(["volume", "currentTime", "paused"]),
108
+ img: /* @__PURE__ */ new Set(["src", "srcset"]),
109
+ iframe: /* @__PURE__ */ new Set(["src"]),
110
+ a: /* @__PURE__ */ new Set(["href"])
111
+ };
112
+ return propertyAttributes.has(key) || elementSpecificProps[element] && elementSpecificProps[element].has(key);
113
+ }
114
+ var VOID_ELEMENTS = /* @__PURE__ */ new Set([
115
+ "area",
116
+ "base",
117
+ "br",
118
+ "col",
119
+ "embed",
120
+ "hr",
121
+ "img",
122
+ "input",
123
+ "link",
124
+ "meta",
125
+ "param",
126
+ "source",
127
+ "track",
128
+ "wbr"
129
+ ]);
130
+ var SVG_ELEMENTS = /* @__PURE__ */ new Set([
131
+ "svg",
132
+ "g",
133
+ "path",
134
+ "circle",
135
+ "rect",
136
+ "line",
137
+ "polyline",
138
+ "polygon",
139
+ "ellipse",
140
+ "text",
141
+ "tspan",
142
+ "use",
143
+ "defs",
144
+ "symbol",
145
+ "mask",
146
+ "clipPath",
147
+ "pattern",
148
+ "linearGradient",
149
+ "radialGradient",
150
+ "stop",
151
+ "filter",
152
+ "feGaussianBlur",
153
+ "feOffset",
154
+ "feMerge",
155
+ "feMergeNode",
156
+ "foreignObject"
157
+ ]);
158
+ var SVG_NAMESPACE = "http://www.w3.org/2000/svg";
159
+ function isCustomElement(element) {
160
+ return element.localName.includes("-");
161
+ }
162
+ function applyElementProp(element, name, value, isSVG = false) {
163
+ if (value == null) {
164
+ element.removeAttribute(name);
165
+ return;
166
+ }
167
+ if (isCustomElement(element)) {
168
+ element[name] = value;
169
+ return;
170
+ }
171
+ setAttribute(element, name, value, isSVG);
172
+ }
173
+ var JSX_PROPERTIES = /* @__PURE__ */ new Set([
174
+ "className",
175
+ "value",
176
+ "checked",
177
+ "selected",
178
+ "innerHTML",
179
+ "innerText",
180
+ "textContent",
181
+ "indeterminate",
182
+ "htmlFor"
183
+ ]);
184
+ function query(selector, root = document) {
185
+ return root.querySelector(selector);
186
+ }
187
+ function queryAll(selector, root = document) {
188
+ return Array.from(root.querySelectorAll(selector));
189
+ }
190
+ function closest(element, selector) {
191
+ return element.closest(selector);
192
+ }
193
+ function addClass(element, ...classes) {
194
+ element.classList.add(...classes);
195
+ }
196
+ function removeClass(element, ...classes) {
197
+ element.classList.remove(...classes);
198
+ }
199
+ function toggleClass(element, ...classes) {
200
+ classes.forEach((cls) => element.classList.toggle(cls));
201
+ }
202
+ function hasClass(element, className) {
203
+ return element.classList.contains(className);
204
+ }
205
+ function setAttribute(element, name, value, isSVG = false) {
206
+ if (value == null || value === false) {
207
+ element.removeAttribute(name);
208
+ return;
209
+ }
210
+ if (value === true) {
211
+ element.setAttribute(name, "");
212
+ return;
213
+ }
214
+ if (typeof value === "object") {
215
+ element.setAttribute(name, JSON.stringify(value));
216
+ return;
217
+ }
218
+ element.setAttribute(name, String(value));
219
+ }
220
+ function getAttribute(element, name) {
221
+ return element.getAttribute(name);
222
+ }
223
+ function removeAttribute(element, name) {
224
+ element.removeAttribute(name);
225
+ }
226
+ function setStyles(element, styles) {
227
+ Object.assign(element.style, styles);
228
+ }
229
+ function getStyle(element, property) {
230
+ return window.getComputedStyle(element).getPropertyValue(property);
231
+ }
232
+ function createElement(tagName, attributes = {}, ...children) {
233
+ const element = document.createElement(tagName);
234
+ Object.entries(attributes).forEach(([key, value]) => {
235
+ if (key === "class" || key === "className") {
236
+ element.className = value;
237
+ } else if (key === "style" && typeof value === "object") {
238
+ setStyles(element, value);
239
+ } else if (key.startsWith("on") && typeof value === "function") {
240
+ const event = key.slice(2).toLowerCase();
241
+ element.addEventListener(event, value);
242
+ } else {
243
+ setAttribute(element, key, value);
244
+ }
245
+ });
246
+ children.forEach((child) => {
247
+ if (typeof child === "string") {
248
+ element.appendChild(document.createTextNode(child));
249
+ } else {
250
+ element.appendChild(child);
251
+ }
252
+ });
253
+ return element;
254
+ }
255
+ function removeChildren(element) {
256
+ while (element.firstChild) {
257
+ element.removeChild(element.firstChild);
258
+ }
259
+ }
260
+ function appendChildren(parent, ...children) {
261
+ children.forEach((child) => {
262
+ if (typeof child === "string") {
263
+ parent.appendChild(document.createTextNode(child));
264
+ } else {
265
+ parent.appendChild(child);
266
+ }
267
+ });
268
+ }
269
+ function isVisible(element) {
270
+ const rect = element.getBoundingClientRect();
271
+ return rect.top >= 0 && rect.left >= 0 && rect.bottom <= window.innerHeight && rect.right <= window.innerWidth;
272
+ }
273
+ function scrollIntoView(element, options = { behavior: "smooth", block: "nearest" }) {
274
+ element.scrollIntoView(options);
275
+ }
276
+ function getOffset(element) {
277
+ const rect = element.getBoundingClientRect();
278
+ return {
279
+ top: rect.top + window.pageYOffset,
280
+ left: rect.left + window.pageXOffset
281
+ };
282
+ }
283
+ function delegate(parent, eventName, selector, handler) {
284
+ const listener = (event) => {
285
+ const target = event.target.closest(selector);
286
+ if (target && parent.contains(target)) {
287
+ handler(event, target);
288
+ }
289
+ };
290
+ parent.addEventListener(eventName, listener);
291
+ return () => {
292
+ parent.removeEventListener(eventName, listener);
293
+ };
294
+ }
295
+ function waitForElement(selector, timeout = 5e3) {
296
+ return new Promise((resolve, reject) => {
297
+ const element = query(selector);
298
+ if (element) {
299
+ resolve(element);
300
+ return;
301
+ }
302
+ const observer = new MutationObserver(() => {
303
+ const element2 = query(selector);
304
+ if (element2) {
305
+ observer.disconnect();
306
+ clearTimeout(timeoutId);
307
+ resolve(element2);
308
+ }
309
+ });
310
+ observer.observe(document.body, {
311
+ childList: true,
312
+ subtree: true
313
+ });
314
+ const timeoutId = setTimeout(() => {
315
+ observer.disconnect();
316
+ reject(new Error(`Element ${selector} not found within ${timeout}ms`));
317
+ }, timeout);
318
+ });
319
+ }
320
+ function observeIntersection(element, callback, options = {}) {
321
+ const observer = new IntersectionObserver((entries) => {
322
+ entries.forEach((entry) => {
323
+ callback(entry.isIntersecting);
324
+ });
325
+ }, options);
326
+ observer.observe(element);
327
+ return () => {
328
+ observer.disconnect();
329
+ };
330
+ }
331
+ function observeResize(element, callback) {
332
+ const observer = new ResizeObserver((entries) => {
333
+ entries.forEach(callback);
334
+ });
335
+ observer.observe(element);
336
+ return () => {
337
+ observer.disconnect();
338
+ };
339
+ }
340
+ var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for ? /* @__PURE__ */ Symbol.for("react.element") : 60103;
341
+ function isReactElement(value) {
342
+ return typeof value === "object" && value !== null && value.$$typeof === REACT_ELEMENT_TYPE;
343
+ }
344
+ function isLitTemplateResult(value) {
345
+ return value && typeof value === "object" && value.strings && Array.isArray(value.strings) && value.values && Array.isArray(value.values);
346
+ }
347
+ function isTemplateFactory(value) {
348
+ if (typeof value !== "function") return false;
349
+ try {
350
+ const result = value();
351
+ return isLitTemplateResult(result);
352
+ } catch {
353
+ return false;
354
+ }
355
+ }
356
+ function isJSXTemplate(value) {
357
+ return typeof value === "object" && value !== null && (value.$$typeof === "template" || typeof value.type === "function");
358
+ }
359
+ function isDOMNode(value) {
360
+ return value instanceof Node;
361
+ }
362
+ function registerGlobal(key, value, _Key = "Fluixi") {
363
+ if (typeof globalThis !== "undefined") {
364
+ if (typeof globalThis[_Key] === "undefined") {
365
+ globalThis[_Key] = {};
366
+ }
367
+ if (typeof globalThis[_Key][key] === "undefined") {
368
+ globalThis[_Key][key] = value;
369
+ }
370
+ }
371
+ }
372
+ function getGlobal(key, value, _Key = "Fluixi") {
373
+ if (typeof globalThis !== "undefined") {
374
+ if (typeof globalThis[_Key] !== "undefined") {
375
+ if (typeof globalThis[_Key][key] !== "undefined") {
376
+ return globalThis[_Key][key];
377
+ }
378
+ }
379
+ }
380
+ return value;
381
+ }
@@ -1,5 +1,4 @@
1
1
  /**
2
- * @fileoverview DOM utilities for Fluixi
3
2
  * @module @fluixi/core/dom
4
3
  *
5
4
  * This module provides utilities for DOM manipulation and queries.
@@ -31,7 +30,7 @@ export declare const SVG_ELEMENTS: Set<string>;
31
30
  export declare const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
32
31
  /**
33
32
  * Returns true for custom elements (tag name contains a hyphen per the Web
34
- * Components spec e.g. `adf-accounts-selector`).
33
+ * Components spec: e.g. `adf-accounts-selector`).
35
34
  */
36
35
  export declare function isCustomElement(element: Element): boolean;
37
36
  /**
@@ -48,11 +47,6 @@ export declare const JSX_PROPERTIES: Set<string>;
48
47
  /**
49
48
  * Queries a single element with type safety
50
49
  *
51
- * @template T - Element type
52
- * @param {string} selector - CSS selector
53
- * @param {Element | Document} root - Root element (default: document)
54
- * @returns {T | null} Found element or null
55
- *
56
50
  * @example
57
51
  * ```typescript
58
52
  * import { query } from '@fluixi/core/dom';
@@ -65,11 +59,6 @@ export declare function query<T extends Element = Element>(selector: string, roo
65
59
  /**
66
60
  * Queries all matching elements with type safety
67
61
  *
68
- * @template T - Element type
69
- * @param {string} selector - CSS selector
70
- * @param {Element | Document} root - Root element (default: document)
71
- * @returns {T[]} Array of matching elements
72
- *
73
62
  * @example
74
63
  * ```typescript
75
64
  * import { queryAll } from '@fluixi/core/dom';
@@ -82,11 +71,6 @@ export declare function queryAll<T extends Element = Element>(selector: string,
82
71
  /**
83
72
  * Queries the closest matching ancestor element
84
73
  *
85
- * @template T - Element type
86
- * @param {Element} element - Starting element
87
- * @param {string} selector - CSS selector
88
- * @returns {T | null} Closest matching ancestor or null
89
- *
90
74
  * @example
91
75
  * ```typescript
92
76
  * import { closest } from '@fluixi/core/dom';
@@ -99,9 +83,6 @@ export declare function closest<T extends Element = Element>(element: Element, s
99
83
  /**
100
84
  * Adds one or more classes to an element
101
85
  *
102
- * @param {Element} element - Target element
103
- * @param {...string} classes - Classes to add
104
- *
105
86
  * @example
106
87
  * ```typescript
107
88
  * import { addClass } from '@fluixi/core/dom';
@@ -113,9 +94,6 @@ export declare function addClass(element: Element, ...classes: string[]): void;
113
94
  /**
114
95
  * Removes one or more classes from an element
115
96
  *
116
- * @param {Element} element - Target element
117
- * @param {...string} classes - Classes to remove
118
- *
119
97
  * @example
120
98
  * ```typescript
121
99
  * import { removeClass } from '@fluixi/core/dom';
@@ -127,9 +105,6 @@ export declare function removeClass(element: Element, ...classes: string[]): voi
127
105
  /**
128
106
  * Toggles one or more classes on an element
129
107
  *
130
- * @param {Element} element - Target element
131
- * @param {...string} classes - Classes to toggle
132
- *
133
108
  * @example
134
109
  * ```typescript
135
110
  * import { toggleClass } from '@fluixi/core/dom';
@@ -141,10 +116,6 @@ export declare function toggleClass(element: Element, ...classes: string[]): voi
141
116
  /**
142
117
  * Checks if element has a class
143
118
  *
144
- * @param {Element} element - Target element
145
- * @param {string} className - Class name to check
146
- * @returns {boolean} True if element has the class
147
- *
148
119
  * @example
149
120
  * ```typescript
150
121
  * import { hasClass } from '@fluixi/core/dom';
@@ -158,10 +129,6 @@ export declare function hasClass(element: Element, className: string): boolean;
158
129
  /**
159
130
  * Sets an attribute on an element
160
131
  *
161
- * @param {Element} element - Target element
162
- * @param {string} name - Attribute name
163
- * @param {string | number | boolean} value - Attribute value
164
- *
165
132
  * @example
166
133
  * ```typescript
167
134
  * import { setAttribute } from '@fluixi/core/dom';
@@ -174,10 +141,6 @@ export declare function setAttribute(element: Element, name: string, value: unkn
174
141
  /**
175
142
  * Gets an attribute from an element
176
143
  *
177
- * @param {Element} element - Target element
178
- * @param {string} name - Attribute name
179
- * @returns {string | null} Attribute value or null
180
- *
181
144
  * @example
182
145
  * ```typescript
183
146
  * import { getAttribute } from '@fluixi/core/dom';
@@ -189,9 +152,6 @@ export declare function getAttribute(element: Element, name: string): string | n
189
152
  /**
190
153
  * Removes an attribute from an element
191
154
  *
192
- * @param {Element} element - Target element
193
- * @param {string} name - Attribute name
194
- *
195
155
  * @example
196
156
  * ```typescript
197
157
  * import { removeAttribute } from '@fluixi/core/dom';
@@ -203,9 +163,6 @@ export declare function removeAttribute(element: Element, name: string): void;
203
163
  /**
204
164
  * Sets multiple styles on an element
205
165
  *
206
- * @param {HTMLElement} element - Target element
207
- * @param {Partial<CSSStyleDeclaration>} styles - Styles object
208
- *
209
166
  * @example
210
167
  * ```typescript
211
168
  * import { setStyles } from '@fluixi/core/dom';
@@ -221,10 +178,6 @@ export declare function setStyles(element: any, styles: Partial<CSSStyleDeclarat
221
178
  /**
222
179
  * Gets computed style of an element
223
180
  *
224
- * @param {Element} element - Target element
225
- * @param {string} property - CSS property name
226
- * @returns {string} Computed style value
227
- *
228
181
  * @example
229
182
  * ```typescript
230
183
  * import { getStyle } from '@fluixi/core/dom';
@@ -236,12 +189,6 @@ export declare function getStyle(element: Element, property: string): string;
236
189
  /**
237
190
  * Creates an element with attributes and children
238
191
  *
239
- * @template K - Element tag name
240
- * @param {K} tagName - HTML tag name
241
- * @param {Record<string, any>} attributes - Element attributes
242
- * @param {...(Node | string)} children - Child nodes or text
243
- * @returns {HTMLElementTagNameMap[K]} Created element
244
- *
245
192
  * @example
246
193
  * ```typescript
247
194
  * import { createElement } from '@fluixi/core/dom';
@@ -256,8 +203,6 @@ export declare function createElement<K extends keyof HTMLElementTagNameMap>(tag
256
203
  /**
257
204
  * Removes all children from an element
258
205
  *
259
- * @param {Element} element - Target element
260
- *
261
206
  * @example
262
207
  * ```typescript
263
208
  * import { removeChildren } from '@fluixi/core/dom';
@@ -269,9 +214,6 @@ export declare function removeChildren(element: Element): void;
269
214
  /**
270
215
  * Appends multiple children to an element
271
216
  *
272
- * @param {Element} parent - Parent element
273
- * @param {...(Node | string)} children - Children to append
274
- *
275
217
  * @example
276
218
  * ```typescript
277
219
  * import { appendChildren } from '@fluixi/core/dom';
@@ -287,9 +229,6 @@ export declare function appendChildren(parent: Element, ...children: (Node | str
287
229
  /**
288
230
  * Checks if element is visible in the viewport
289
231
  *
290
- * @param {Element} element - Target element
291
- * @returns {boolean} True if element is visible
292
- *
293
232
  * @example
294
233
  * ```typescript
295
234
  * import { isVisible } from '@fluixi/core/dom';
@@ -303,9 +242,6 @@ export declare function isVisible(element: Element): boolean;
303
242
  /**
304
243
  * Scrolls element into view smoothly
305
244
  *
306
- * @param {Element} element - Target element
307
- * @param {ScrollIntoViewOptions} options - Scroll options
308
- *
309
245
  * @example
310
246
  * ```typescript
311
247
  * import { scrollIntoView } from '@fluixi/core/dom';
@@ -317,9 +253,6 @@ export declare function scrollIntoView(element: Element, options?: ScrollIntoVie
317
253
  /**
318
254
  * Gets element's offset relative to document
319
255
  *
320
- * @param {Element} element - Target element
321
- * @returns {{ top: number; left: number }} Offset coordinates
322
- *
323
256
  * @example
324
257
  * ```typescript
325
258
  * import { getOffset } from '@fluixi/core/dom';
@@ -334,13 +267,6 @@ export declare function getOffset(element: Element): {
334
267
  /**
335
268
  * Delegates event handling to a parent element
336
269
  *
337
- * @template K - Event type
338
- * @param {Element} parent - Parent element
339
- * @param {K} eventName - Event name
340
- * @param {string} selector - Child selector
341
- * @param {(event: Event, target: Element) => void} handler - Event handler
342
- * @returns {() => void} Cleanup function
343
- *
344
270
  * @example
345
271
  * ```typescript
346
272
  * import { delegate } from '@fluixi/core/dom';
@@ -354,10 +280,6 @@ export declare function delegate<K extends keyof HTMLElementEventMap>(parent: El
354
280
  /**
355
281
  * Waits for an element to appear in the DOM
356
282
  *
357
- * @param {string} selector - CSS selector
358
- * @param {number} timeout - Timeout in milliseconds (default: 5000)
359
- * @returns {Promise<Element>} Promise that resolves with the element
360
- *
361
283
  * @example
362
284
  * ```typescript
363
285
  * import { waitForElement } from '@fluixi/core/dom';
@@ -369,11 +291,6 @@ export declare function waitForElement(selector: string, timeout?: number): Prom
369
291
  /**
370
292
  * Observes element intersection with viewport
371
293
  *
372
- * @param {Element} element - Target element
373
- * @param {(isIntersecting: boolean) => void} callback - Callback function
374
- * @param {IntersectionObserverInit} options - Observer options
375
- * @returns {() => void} Cleanup function
376
- *
377
294
  * @example
378
295
  * ```typescript
379
296
  * import { observeIntersection } from '@fluixi/core/dom';
@@ -387,10 +304,6 @@ export declare function observeIntersection(element: Element, callback: (isInter
387
304
  /**
388
305
  * Observes element size changes
389
306
  *
390
- * @param {Element} element - Target element
391
- * @param {(entry: ResizeObserverEntry) => void} callback - Callback function
392
- * @returns {() => void} Cleanup function
393
- *
394
307
  * @example
395
308
  * ```typescript
396
309
  * import { observeResize } from '@fluixi/core/dom';
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/lib/dom/utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAYnD;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEnD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CASnD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAiCzE;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,aAexB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,YAAY,aA2BvB,CAAC;AAGH,eAAO,MAAM,aAAa,+BAA+B,CAAC;AAE1D;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEzD;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,MA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