You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: module/dist/ai-ui.min.cjs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,4 +12,4 @@ Element contains: ${q(l)}
12
12
${B}`)),h.next().then(F).catch(ae)}},ae=U=>{U&&(v.warn("Dynamic attribute termination",U,b,q(s),B,q(l)),l.appendChild(g({error:U})))},W=y.valueOf();W!==void0&&W!==y&&!G(W)?F({done:!1,value:W}):h.next().then(F).catch(ae),x.onRemoval([l],b,()=>{h.return?.(),h=null})}functionP(y,b){if(yinstanceofNode)v.info(`Having DOM Nodes as properties of other DOM Nodes is a bad idea as it makes the DOM tree into a cyclic graph. You should reference nodes by ID or via a collection such as .childNodes. Propety: '${b}' value: ${q(y)} destination: ${linstanceofNode?q(l):l}`),T(b,y);elseif(!(bins)||s[b]===y||Array.isArray(s[b])&&s[b].length!==y.length)if(y.constructor===Object||y.constructor===Array){leth=newy.constructor;f(h,y),T(b,h)}elseT(b,y);elseObject.getOwnPropertyDescriptor(s,b)?.set?T(b,y):f(s[b],y)}})(l,p)}functionw(l){for(letp=l.constructor;p;p=p.super)if(p===this)return!0;return!1}functionE(l){letp=typeofl!="function"?y=>Object.assign({},l,y):l,f=Date.now().toString(36)+(mt++).toString(36)+Math.random().toString(36).slice(2),s=p({[ue]:f});s.styles&&document.getElementById(we)?.appendChild(r.createTextNode(s.styles+`
13
13
`));letu=Object.assign((y,...b)=>{leth=ge(y),S=[],B={[se]:(h?S:y[se])??S},C=h?this(B,y,...b):this(B,...b);C.constructor=u;letF=p({[ue]:f});if(B[se].push(F),O){letW=(U,M)=>{for(letK=U;K;K=K.super)if(K.definition?.declare&&MinK.definition.declare)return!0;return!1};if(F.declare){letU=Object.keys(F.declare).filter(M=>MinC||W(this,M));U.length&&v.log(`Declared keys '${U}' in ${u.name} already exist in base '${this.valueOf()}'`)}if(F.override){letU=Object.keys(F.override).filter(M=>!(MinC)&&!(a&&Mina)&&!W(this,M));U.length&&v.log(`Overridden keys '${U}' in ${u.name} do not exist in base '${this.valueOf()}'`)}}k(C,F.declare,!0),k(C,F.override);letae=newSet;if(F.iterable&&Object.keys(F.iterable).forEach(W=>{WinC?(v.log(`Ignoring attempt to re-define iterable property "${W}" as it could already have consumers`),ae.add(W)):ve(C,W,F.iterable[W])}),B[se]===S){h||L(C,y);for(letMofS){letK=M?.constructed?.call(C);ge(K)&&C.append(...A(K))}letW={},U=!1;for(letMofS)if(M.iterable)for(letKofObject.keys(M.iterable)){letDe=!h&&Kiny;if(ae.has(K)&&De||!(De&&(!V(y[K])||!G(y[K])))){letke=C[K]?.valueOf();ke!==void0&&(W[K]=ke,U=!0)}}U&&Object.assign(C,W)}returnC},{super:this,definition:Object.assign(s,{[ue]:f}),extended:E,valueOf:()=>{lety=[...Object.keys(s.declare||{}),...Object.keys(s.iterable||{})];return`${u.name}: {${y.join(", ")}}
`)[2]??"":"";if(Object.defineProperty(u,"name",{value:"<ai-"+z.replace(/\s+/g,"-")+P+">"}),O){lety=Object.keys(s).filter(b=>!["styles","ids","constructed","declare","override","iterable"].includes(b));y.length&&v.log(`${u.name} defines extraneous keys '${y}', which are unknown`)}returnu}letD={createElement:(l,p,...f)=>linstanceofNode?l:typeofl=="string"&&linD?D[l](p,f):l===D.createElement?[...A(...f)]:typeofl=="function"?l(p,f):g({error:newError("Illegal type in createElement:"+l)})};functionZ(l){if(D[l])returnD[l];letp=(s,...I)=>{if(ge(s)&&(I.unshift(s),s={}),!ge(s)){if(s.debugger){debugger;deletes.debugger}letu=i?r.createElementNS(i,l.toLowerCase()):r.createElement(l);returnu.constructor=p,k(u,m),L(u,s),u.append(...A(...I)),u}},f=Object.assign(p,{super:()=>{thrownewError("Can't invoke native elemenet constructors directly. Use document.createElement().")},extended:E,valueOf(){return`TagCreator: <${i||""}${i?"::":""}${l}>`}});returnObject.defineProperty(p,Symbol.hasInstance,{value:w,writable:!0,configurable:!0}),Object.defineProperty(p,"name",{value:"<"+l+">"}),D[l]=f}returno.forEach(Z),D};functionht(e){lett=newWeakSet,n=newWeakMap;functioni(o){for(letdofo)if(!d.isConnected){t.add(d),i(d.childNodes);leta=n.get(d);if(a){n.delete(d);for(let[r,c]ofa?.entries())try{c.call(d)}catch{v.info("Ignored exception handling node removal",r,c,q(d))}}}}returnnewMutationObserver(o=>{o.forEach(function(d){d.type==="childList"&&d.removedNodes.length&&i(d.removedNodes)})}).observe(e,{subtree:!0,childList:!0}),{has(o){returnt.has(o)},add(o){returnt.add(o)},getRemovalHandler(o,d){returnn.get(o)?.get(d)},onRemoval(o,d,a){a?o.forEach(r=>{letc=n.get(r)??newMap;n.set(r,c),c.set(d,a)}):o.forEach(r=>{letc=n.get(r);c&&(c.delete(d),c.size||n.delete(r))})}}}
15
+
`)[2]??"":"";if(Object.defineProperty(u,"name",{value:"<ai-"+z.replace(/\s+/g,"-")+P+">"}),O){lety=Object.keys(s).filter(b=>!["styles","ids","constructed","declare","override","iterable"].includes(b));y.length&&v.log(`${u.name} defines extraneous keys '${y}', which are unknown`)}returnu}letD={createElement:(l,p,...f)=>linstanceofNode?l:typeofl=="string"&&linD?D[l](p,f):l===D.createElement?[...A(...f)]:typeofl=="function"?l(p,f):g({error:newError("Illegal type in createElement:"+l)})};functionZ(l){if(D[l])returnD[l];letp=(s,...I)=>{if(ge(s)&&(I.unshift(s),s={}),!ge(s)){if(s.debugger){debugger;deletes.debugger}letu=i?r.createElementNS(i,l.toLowerCase()):r.createElement(l);returnu.constructor=p,k(u,m),L(u,s),u.append(...A(...I)),u}},f=Object.assign(p,{super:()=>{thrownewError("Can't invoke native elemenet constructors directly. Use document.createElement().")},extended:E,valueOf(){return`TagCreator: <${i||""}${i?"::":""}${l}>`}});returnObject.defineProperty(p,Symbol.hasInstance,{value:w,writable:!0,configurable:!0}),Object.defineProperty(p,"name",{value:"<"+l+">"}),D[l]=f}returno.forEach(Z),D};functionht(e){lett=newWeakSet,n=newWeakMap;functioni(o){for(letdofo)if(!d.isConnected){t.add(d),i(d.childNodes);leta=n.get(d);if(a){n.delete(d);for(let[r,c]ofa?.entries())try{c.call(d)}catch{v.info("Ignored exception handling node removal",r,c,q(d))}}}}returnnewMutationObserver(o=>{o.forEach(function(d){d.type==="childList"&&d.removedNodes.length&&i(d.removedNodes)})}).observe(e,{subtree:!0,childList:!0}),{has(o){returnt.has(o)?o.isConnected?(t.delete(o),!1):!0:!1},add(o){returnt.add(o)},getRemovalHandler(o,d){returnn.get(o)?.get(d)},onRemoval(o,d,a){a?o.forEach(r=>{letc=n.get(r)??newMap;n.set(r,c),c.set(d,a)}):o.forEach(r=>{letc=n.get(r);c&&(c.delete(d),c.size||n.delete(r))})}}}
Copy file name to clipboardExpand all lines: module/dist/ai-ui.min.mjs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,4 +12,4 @@ Element contains: ${q(i)}
12
12
${B}`)),h.next().then(F).catch(ae)}},ae=U=>{U&&(v.warn("Dynamic attribute termination",U,b,q(s),B,q(i)),i.appendChild(g({error:U})))},W=y.valueOf();W!==void0&&W!==y&&!G(W)?F({done:!1,value:W}):h.next().then(F).catch(ae),x.onRemoval([i],b,()=>{h.return?.(),h=null})}functionP(y,b){if(yinstanceofNode)v.info(`Having DOM Nodes as properties of other DOM Nodes is a bad idea as it makes the DOM tree into a cyclic graph. You should reference nodes by ID or via a collection such as .childNodes. Propety: '${b}' value: ${q(y)} destination: ${iinstanceofNode?q(i):i}`),T(b,y);elseif(!(bins)||s[b]===y||Array.isArray(s[b])&&s[b].length!==y.length)if(y.constructor===Object||y.constructor===Array){leth=newy.constructor;f(h,y),T(b,h)}elseT(b,y);elseObject.getOwnPropertyDescriptor(s,b)?.set?T(b,y):f(s[b],y)}})(i,p)}functionw(i){for(letp=i.constructor;p;p=p.super)if(p===this)return!0;return!1}functionE(i){letp=typeofi!="function"?y=>Object.assign({},i,y):i,f=Date.now().toString(36)+(dt++).toString(36)+Math.random().toString(36).slice(2),s=p({[pe]:f});s.styles&&document.getElementById(Ae)?.appendChild(r.createTextNode(s.styles+`
13
13
`));letu=Object.assign((y,...b)=>{leth=me(y),S=[],B={[se]:(h?S:y[se])??S},C=h?this(B,y,...b):this(B,...b);C.constructor=u;letF=p({[pe]:f});if(B[se].push(F),O){letW=(U,M)=>{for(letK=U;K;K=K.super)if(K.definition?.declare&&MinK.definition.declare)return!0;return!1};if(F.declare){letU=Object.keys(F.declare).filter(M=>MinC||W(this,M));U.length&&v.log(`Declared keys '${U}' in ${u.name} already exist in base '${this.valueOf()}'`)}if(F.override){letU=Object.keys(F.override).filter(M=>!(MinC)&&!(a&&Mina)&&!W(this,M));U.length&&v.log(`Overridden keys '${U}' in ${u.name} do not exist in base '${this.valueOf()}'`)}}k(C,F.declare,!0),k(C,F.override);letae=newSet;if(F.iterable&&Object.keys(F.iterable).forEach(W=>{WinC?(v.log(`Ignoring attempt to re-define iterable property "${W}" as it could already have consumers`),ae.add(W)):Te(C,W,F.iterable[W])}),B[se]===S){h||L(C,y);for(letMofS){letK=M?.constructed?.call(C);me(K)&&C.append(...A(K))}letW={},U=!1;for(letMofS)if(M.iterable)for(letKofObject.keys(M.iterable)){letCe=!h&&Kiny;if(ae.has(K)&&Ce||!(Ce&&(!V(y[K])||!G(y[K])))){letOe=C[K]?.valueOf();Oe!==void0&&(W[K]=Oe,U=!0)}}U&&Object.assign(C,W)}returnC},{super:this,definition:Object.assign(s,{[pe]:f}),extended:E,valueOf:()=>{lety=[...Object.keys(s.declare||{}),...Object.keys(s.iterable||{})];return`${u.name}: {${y.join(", ")}}
`)[2]??"":"";if(Object.defineProperty(u,"name",{value:"<ai-"+z.replace(/\s+/g,"-")+P+">"}),O){lety=Object.keys(s).filter(b=>!["styles","ids","constructed","declare","override","iterable"].includes(b));y.length&&v.log(`${u.name} defines extraneous keys '${y}', which are unknown`)}returnu}letD={createElement:(i,p,...f)=>iinstanceofNode?i:typeofi=="string"&&iinD?D[i](p,f):i===D.createElement?[...A(...f)]:typeofi=="function"?i(p,f):g({error:newError("Illegal type in createElement:"+i)})};functionZ(i){if(D[i])returnD[i];letp=(s,...I)=>{if(me(s)&&(I.unshift(s),s={}),!me(s)){if(s.debugger){debugger;deletes.debugger}letu=l?r.createElementNS(l,i.toLowerCase()):r.createElement(i);returnu.constructor=p,k(u,m),L(u,s),u.append(...A(...I)),u}},f=Object.assign(p,{super:()=>{thrownewError("Can't invoke native elemenet constructors directly. Use document.createElement().")},extended:E,valueOf(){return`TagCreator: <${l||""}${l?"::":""}${i}>`}});returnObject.defineProperty(p,Symbol.hasInstance,{value:w,writable:!0,configurable:!0}),Object.defineProperty(p,"name",{value:"<"+i+">"}),D[i]=f}returno.forEach(Z),D};functionyt(e){lett=newWeakSet,n=newWeakMap;functionl(o){for(letdofo)if(!d.isConnected){t.add(d),l(d.childNodes);leta=n.get(d);if(a){n.delete(d);for(let[r,c]ofa?.entries())try{c.call(d)}catch{v.info("Ignored exception handling node removal",r,c,q(d))}}}}returnnewMutationObserver(o=>{o.forEach(function(d){d.type==="childList"&&d.removedNodes.length&&l(d.removedNodes)})}).observe(e,{subtree:!0,childList:!0}),{has(o){returnt.has(o)},add(o){returnt.add(o)},getRemovalHandler(o,d){returnn.get(o)?.get(d)},onRemoval(o,d,a){a?o.forEach(r=>{letc=n.get(r)??newMap;n.set(r,c),c.set(d,a)}):o.forEach(r=>{letc=n.get(r);c&&(c.delete(d),c.size||n.delete(r))})}}}export{BeasIterators,HeasReady,peasUniqueID,ftastag,Seaswhen};
15
+
`)[2]??"":"";if(Object.defineProperty(u,"name",{value:"<ai-"+z.replace(/\s+/g,"-")+P+">"}),O){lety=Object.keys(s).filter(b=>!["styles","ids","constructed","declare","override","iterable"].includes(b));y.length&&v.log(`${u.name} defines extraneous keys '${y}', which are unknown`)}returnu}letD={createElement:(i,p,...f)=>iinstanceofNode?i:typeofi=="string"&&iinD?D[i](p,f):i===D.createElement?[...A(...f)]:typeofi=="function"?i(p,f):g({error:newError("Illegal type in createElement:"+i)})};functionZ(i){if(D[i])returnD[i];letp=(s,...I)=>{if(me(s)&&(I.unshift(s),s={}),!me(s)){if(s.debugger){debugger;deletes.debugger}letu=l?r.createElementNS(l,i.toLowerCase()):r.createElement(i);returnu.constructor=p,k(u,m),L(u,s),u.append(...A(...I)),u}},f=Object.assign(p,{super:()=>{thrownewError("Can't invoke native elemenet constructors directly. Use document.createElement().")},extended:E,valueOf(){return`TagCreator: <${l||""}${l?"::":""}${i}>`}});returnObject.defineProperty(p,Symbol.hasInstance,{value:w,writable:!0,configurable:!0}),Object.defineProperty(p,"name",{value:"<"+i+">"}),D[i]=f}returno.forEach(Z),D};functionyt(e){lett=newWeakSet,n=newWeakMap;functionl(o){for(letdofo)if(!d.isConnected){t.add(d),l(d.childNodes);leta=n.get(d);if(a){n.delete(d);for(let[r,c]ofa?.entries())try{c.call(d)}catch{v.info("Ignored exception handling node removal",r,c,q(d))}}}}returnnewMutationObserver(o=>{o.forEach(function(d){d.type==="childList"&&d.removedNodes.length&&l(d.removedNodes)})}).observe(e,{subtree:!0,childList:!0}),{has(o){returnt.has(o)?o.isConnected?(t.delete(o),!1):!0:!1},add(o){returnt.add(o)},getRemovalHandler(o,d){returnn.get(o)?.get(d)},onRemoval(o,d,a){a?o.forEach(r=>{letc=n.get(r)??newMap;n.set(r,c),c.set(d,a)}):o.forEach(r=>{letc=n.get(r);c&&(c.delete(d),c.size||n.delete(r))})}}}export{BeasIterators,HeasReady,peasUniqueID,ftastag,Seaswhen};
0 commit comments