aptechka 0.1.14 → 0.1.15

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 (53) hide show
  1. package/lib/Damped-Fy7tHx4d.js +33 -0
  2. package/lib/Damped-mdFs8WSd.cjs +1 -0
  3. package/lib/{WheelControls-CX9WUbBC.js → WheelControls-BN4XGOpG.js} +29 -34
  4. package/lib/WheelControls-Dc1xcVG6.cjs +1 -0
  5. package/lib/animation/index.cjs +1 -1
  6. package/lib/animation/index.js +21 -24
  7. package/lib/component/Component.d.ts +7 -3
  8. package/lib/component/hooks/custom-element.d.ts +2 -0
  9. package/lib/component/index.cjs +1 -1
  10. package/lib/component/index.d.ts +2 -1
  11. package/lib/component/index.js +174 -139
  12. package/lib/controls/index.cjs +1 -1
  13. package/lib/controls/index.js +20 -23
  14. package/lib/en3/{test → core}/En3Raycaster.d.ts +1 -1
  15. package/lib/en3/core/en3.d.ts +2 -0
  16. package/lib/en3/index.cjs +7 -7
  17. package/lib/en3/index.d.ts +1 -1
  18. package/lib/en3/index.js +540 -523
  19. package/lib/index-B-ZmkQyB.cjs +9 -0
  20. package/lib/{index-BWTXnG5n.js → index-Dizn7btU.js} +96 -96
  21. package/lib/layout-box/index.cjs +1 -1
  22. package/lib/layout-box/index.d.ts +15 -0
  23. package/lib/layout-box/index.js +102 -93
  24. package/lib/morph/index.cjs +1 -1
  25. package/lib/morph/index.js +71 -75
  26. package/lib/object-BZELAoVj.cjs +1 -0
  27. package/lib/object-R34VLqhp.js +85 -0
  28. package/lib/order/index.cjs +1 -1
  29. package/lib/order/index.d.ts +1 -0
  30. package/lib/order/index.js +1 -1
  31. package/lib/popover/index.cjs +1 -1
  32. package/lib/popover/index.js +50 -50
  33. package/lib/resized/index.d.ts +11 -0
  34. package/lib/router/index.cjs +1 -1
  35. package/lib/router/index.js +101 -105
  36. package/lib/scroll/index.cjs +1 -1
  37. package/lib/scroll/index.js +2 -2
  38. package/lib/select/index.cjs +1 -1
  39. package/lib/select/index.js +1 -1
  40. package/lib/studio/index.cjs +1 -1
  41. package/lib/studio/index.js +1 -1
  42. package/lib/utils/index.cjs +1 -1
  43. package/lib/utils/index.d.ts +1 -1
  44. package/lib/utils/index.js +15 -14
  45. package/lib/utils/object.d.ts +1 -0
  46. package/package.json +1 -1
  47. package/lib/Damped-BwpMU9Gi.cjs +0 -1
  48. package/lib/Damped-urvryQLo.js +0 -36
  49. package/lib/WheelControls-CfDeGCOU.cjs +0 -1
  50. package/lib/component/hooks/shadow.d.ts +0 -1
  51. package/lib/index-3G1lTMEf.cjs +0 -9
  52. package/lib/object-C1ph624j.cjs +0 -1
  53. package/lib/object-DIPjdukP.js +0 -73
@@ -8,9 +8,9 @@ import { d as ee, t as te } from "../function-C10DGppn.js";
8
8
  import { g as se, a as ne, b as oe } from "../layout-HoBT_Da2.js";
9
9
  import { e as re, f as ue, c as le, d as ce, l as de, m as me, r as pe, b as fe, a as xe, s as he } from "../math-BOBiC4TN.js";
10
10
  import { p as be, r as ye } from "../number-Bo5RdrA1.js";
11
- import { c as Ce, d as Oe, i as Ee, b as Se, a as Ie, m as Re, o as Qe, p as ve } from "../object-DIPjdukP.js";
12
- import { c as Te, a as Pe, g as Ae, k as ke, s as Be, t as Me, u as Ne } from "../string-3lAkpJJP.js";
13
- import { g as ze, a as Ue } from "../style-j2TwriJ_.js";
11
+ import { c as Ce, d as Oe, i as Ee, b as Se, a as Ie, m as Re, e as Qe, o as ve, p as De } from "../object-R34VLqhp.js";
12
+ import { c as Pe, a as Ae, g as ke, k as Be, s as Me, t as Ne, u as je } from "../string-3lAkpJJP.js";
13
+ import { g as Ue, a as Ve } from "../style-j2TwriJ_.js";
14
14
  function c(t, e, ...a) {
15
15
  return [...t.slice(0, e), ...a, ...t.slice(e)];
16
16
  }
@@ -80,8 +80,8 @@ function C(t) {
80
80
  export {
81
81
  re as calculateDistance,
82
82
  ue as calculateDistanceWithRadius,
83
- Te as camelToKebab,
84
- Pe as capitalize,
83
+ Pe as camelToKebab,
84
+ Ae as capitalize,
85
85
  le as clamp,
86
86
  Ce as cloneDeep,
87
87
  Oe as compareObjects,
@@ -112,13 +112,13 @@ export {
112
112
  D as findParentElement,
113
113
  T as findScrollParentElement,
114
114
  m as fixPosition,
115
- Ae as generateId,
115
+ ke as generateId,
116
116
  se as getCumulativeOffsetLeft,
117
117
  ne as getCumulativeOffsetTop,
118
118
  oe as getCumulativePosition,
119
119
  P as getElement,
120
- ze as getElementTransitionDurationMS,
121
- Ue as getElementTransitionDurationS,
120
+ Ue as getElementTransitionDurationMS,
121
+ Ve as getElementTransitionDurationS,
122
122
  b as getPointerPosition,
123
123
  y as getRootVariables,
124
124
  c as insert,
@@ -126,26 +126,27 @@ export {
126
126
  Ee as isESClass,
127
127
  Se as isNullish,
128
128
  Ie as isObject,
129
- ke as kebabToCamel,
129
+ Be as kebabToCamel,
130
130
  de as lerp,
131
131
  X as linear,
132
132
  me as mapRange,
133
133
  d as measureText,
134
134
  Re as mergeDeep,
135
+ Qe as mixin,
135
136
  g as normalize,
136
- Qe as omit,
137
+ ve as omit,
137
138
  S as parseAttribute,
138
139
  I as parseAttributeValue,
139
- ve as pick,
140
+ De as pick,
140
141
  be as preciseNumber,
141
142
  pe as round,
142
143
  ye as roundNumberTo,
143
144
  h as screenToCartesian,
144
145
  fe as smootherstep,
145
146
  xe as smoothstep,
146
- Be as snakeToDotted,
147
+ Me as snakeToDotted,
147
148
  he as step,
148
149
  te as throttle,
149
- Me as toPascalCase,
150
- Ne as uncapitalize
150
+ Ne as toPascalCase,
151
+ je as uncapitalize
151
152
  };
@@ -6,3 +6,4 @@ export declare function compareObjects(obj1: any, obj2: any): boolean;
6
6
  export declare function pick<T extends object, R extends keyof T>(object: T, keys: Array<R>): Pick<T, R>;
7
7
  export declare function omit<T extends object, R extends keyof T>(object: T, keys: Array<R>): Omit<T, R>;
8
8
  export declare function isESClass(fn: Function): boolean;
9
+ export declare function mixin(baseClass: any, ...mixins: any[]): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"
@@ -1 +0,0 @@
1
- "use strict";var d=Object.defineProperty,g=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var n=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var i=(r,t,e)=>t in r?d(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,h=(r,t)=>{for(var e in t||(t={}))A.call(t,e)&&i(r,e,t[e]);if(n)for(var e of n(t))f.call(t,e)&&i(r,e,t[e]);return r},s=(r,t)=>g(r,l(t));var u=(r,t,e)=>(i(r,typeof t!="symbol"?t+"":t,e),e);const F=require("./math-GDWEqu7y.cjs"),c=require("./number-yVpzMdbQ.cjs"),b=require("./Animated-Bf-gPIQM.cjs");class q extends b.Animated{constructor(e){var a,m;super(s(h({},e),{min:(a=e==null?void 0:e.min)!=null?a:-1/0,max:(m=e==null?void 0:e.max)!=null?m:1/0}));u(this,"damping");this.damping=(e==null?void 0:e.damping)||0}update(){this.damping?this.listenAnimationFrame():(this.current=this.target,this.unlistenAnimationFrame())}handleAnimationFrame(e){c.preciseNumber(this.current,4)===c.preciseNumber(this.target,4)&&(this.unlistenAnimationFrame(),this.current=this.target),this.current=F.damp(this.current,this.target,this.damping,e.elapsed)}}exports.Damped=q;
@@ -1,36 +0,0 @@
1
- var c = Object.defineProperty, g = Object.defineProperties;
2
- var f = Object.getOwnPropertyDescriptors;
3
- var n = Object.getOwnPropertySymbols;
4
- var l = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
5
- var r = (a, t, e) => t in a ? c(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e, h = (a, t) => {
6
- for (var e in t || (t = {}))
7
- l.call(t, e) && r(a, e, t[e]);
8
- if (n)
9
- for (var e of n(t))
10
- A.call(t, e) && r(a, e, t[e]);
11
- return a;
12
- }, s = (a, t) => g(a, f(t));
13
- var d = (a, t, e) => (r(a, typeof t != "symbol" ? t + "" : t, e), e);
14
- import { d as x } from "./math-BOBiC4TN.js";
15
- import { p as u } from "./number-Bo5RdrA1.js";
16
- import { A as F } from "./Animated-Br_4OSth.js";
17
- class p extends F {
18
- constructor(e) {
19
- var i, m;
20
- super(s(h({}, e), {
21
- min: (i = e == null ? void 0 : e.min) != null ? i : -1 / 0,
22
- max: (m = e == null ? void 0 : e.max) != null ? m : 1 / 0
23
- }));
24
- d(this, "damping");
25
- this.damping = (e == null ? void 0 : e.damping) || 0;
26
- }
27
- update() {
28
- this.damping ? this.listenAnimationFrame() : (this.current = this.target, this.unlistenAnimationFrame());
29
- }
30
- handleAnimationFrame(e) {
31
- u(this.current, 4) === u(this.target, 4) && (this.unlistenAnimationFrame(), this.current = this.target), this.current = x(this.current, this.target, this.damping, e.elapsed);
32
- }
33
- }
34
- export {
35
- p as D
36
- };
@@ -1 +0,0 @@
1
- "use strict";var x=Object.defineProperty;var v=(t,s,e)=>s in t?x(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e;var g=(t,s,e)=>(v(t,typeof s!="symbol"?s+"":s,e),e),m=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var i=(t,s,e)=>(m(t,s,"read from private field"),e?e.call(t):s.get(t)),a=(t,s,e)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,e)},h=(t,s,e,n)=>(m(t,s,"write to private field"),n?n.call(t,e):s.set(t,e),e);const r=require("./browser-CpzFX2xg.cjs"),b=require("./dom-qY2LdCVL.cjs"),M=require("./notifier/index.cjs");var u;class E{constructor(){a(this,u,new M.Notifier)}get changeEvent(){return i(this,u)}}u=new WeakMap;var d,o;class L extends E{constructor(e){super();a(this,d,null);a(this,o,e=>{const n=e.shiftKey?-1:1;e.code==="Space"?this.changeEvent.notify(n*500):e.code==="ArrowLeft"?this.changeEvent.notify(-1*100):e.code==="ArrowRight"?this.changeEvent.notify(1*100):e.code==="ArrowUp"?this.changeEvent.notify(-1*100):e.code==="ArrowDown"?this.changeEvent.notify(1*100):e.code==="PageUp"?this.changeEvent.notify(-1*1e3):e.code==="PageDown"?this.changeEvent.notify(1*1e3):e.code==="Home"?this.changeEvent.notify("min"):e.code==="End"&&this.changeEvent.notify("max")});r.isBrowser&&h(this,d,e!=null&&e.element&&b.getElement(e.element)||window)}connect(){r.isBrowser&&i(this,d).addEventListener("keydown",i(this,o))}disconnect(){r.isBrowser&&i(this,d).removeEventListener("keydown",i(this,o))}}d=new WeakMap,o=new WeakMap;var l,c,f,w;class B extends E{constructor(e){super();g(this,"axis");g(this,"speed");g(this,"debounce");a(this,l,null);a(this,c,void 0);a(this,f,void 0);a(this,w,e=>{let n=0;if(!(this.axis==="x"&&Math.abs(e.deltaY)>Math.abs(e.deltaX)||this.axis==="y"&&Math.abs(e.deltaX)>Math.abs(e.deltaY)))if(n=(this.axis==="max"?Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY:this.axis==="x"?e.deltaX:e.deltaY)*this.speed,e.stopPropagation(),e.preventDefault(),this.debounce){const y=Date.now();if(y-i(this,f)>40&&(n=100*Math.sign(n)),h(this,f,y),Math.abs(n)<100||i(this,c))return;this.changeEvent.notify(n),h(this,c,setTimeout(()=>{h(this,c,void 0)},80))}else this.changeEvent.notify(n)});this.axis=(e==null?void 0:e.axis)||"y",this.speed=(e==null?void 0:e.speed)||1,this.debounce=(e==null?void 0:e.debounce)||!1,h(this,f,Date.now()),r.isBrowser&&h(this,l,e!=null&&e.element&&b.getElement(e.element)||window)}connect(){r.isBrowser&&i(this,l).addEventListener("wheel",i(this,w),{passive:!1})}disconnect(){r.isBrowser&&i(this,l).removeEventListener("wheel",i(this,w))}}l=new WeakMap,c=new WeakMap,f=new WeakMap,w=new WeakMap;exports.Controls=E;exports.KeyboardControls=L;exports.WheelControls=B;
@@ -1 +0,0 @@
1
- export declare function attachShadow(options?: Omit<ShadowRootInit, 'mode'>): void;
@@ -1,9 +0,0 @@
1
- "use strict";var I=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)};var z=(t,e,s)=>(I(t,e,"read from private field"),s?s.call(t):e.get(t)),A=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},H=(t,e,s,i)=>(I(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s);const E=require("./custom-element/index.cjs");require("./Store-D0_rDIsE.cjs");const M=require("./browser-CpzFX2xg.cjs"),Y=require("./events-Crwi8fz6.cjs"),Z=require("./style-At6aDoqG.cjs"),a=require("./tags-75InVOh4.cjs"),P=require("./createStylesheet-DTOK6fTn.cjs"),_=require("./theme/index.cjs");var F=Object.defineProperty,J=Object.getOwnPropertyDescriptor,Q=(t,e,s)=>e in t?F(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,V=(t,e,s,i)=>{for(var n=i>1?void 0:i?J(e,s):e,l=t.length-1,h;l>=0;l--)(h=t[l])&&(n=(i?h(e,s,n):h(n))||n);return i&&n&&F(e,s,n),n},X=(t,e,s)=>(Q(t,typeof e!="symbol"?e+"":e,s),s),q=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},r=(t,e,s)=>(q(t,e,"read from private field"),s?s.call(t):e.get(t)),c=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},d=(t,e,s,i)=>(q(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),B=(t,e,s)=>(q(t,e,"access private method"),s),S,y,o,v,u,f,b,C,L;const j=P.createStylesheet({":host":{position:"relative"},".head":{width:"100%",cursor:"default",background:"none",border:"none",color:"inherit",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",textAlign:"start",padding:"0",margin:"0"},".body":{boxSizing:"border-box",position:"var(--position, unset)",top:"100%",left:"0",width:"100%",overflow:"hidden",transitionDuration:`var(--duration, ${_.aptechkaTheme.durationShort.var})`,transitionProperty:"height",cursor:"default"},".body-inner":{display:"grid",gap:"var(--gap, 0px)",width:"100%",paddingTop:"var(--gap, 0px)"}});exports.SelectElement=class extends E.CustomElement{constructor(){super(),c(this,C),c(this,S,null),c(this,y,""),c(this,o,null),c(this,v,!1),c(this,u,void 0),c(this,f,null),c(this,b,()=>{Y.dispatchSizeChangeEvent(this)}),M.isBrowser&&(this.openShadow(j),d(this,S,this.attachInternals()),d(this,f,new ResizeObserver(r(this,b))),a.element(this,{children:[a.button({class:"head",children:a.slot({name:"head"}),onClick:()=>{this.opened?this.close():this.open()}}),a.div({class:"body",style:{height:"0px"},children:a.div({class:"body-inner",children:a.slot()}),ref:e=>{d(this,o,e)}})]}))}get value(){return r(this,y)}set value(e){d(this,y,e),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}get internals(){return r(this,S)}get opened(){return r(this,v)}open(){clearTimeout(r(this,u)),d(this,v,!0),r(this,o).style.display="grid",this.classList.add("triggered"),setTimeout(()=>{this.classList.add("opened"),r(this,o).style.height=r(this,o).scrollHeight+"px",B(this,C,L).call(this)},0)}close(){d(this,v,!1),r(this,o).style.height="0px",this.classList.remove("opened"),B(this,C,L).call(this),d(this,u,setTimeout(()=>{this.classList.remove("triggered"),r(this,o).style.display="none"},Z.getElementTransitionDurationMS(r(this,o))))}connectedCallback(){r(this,f).observe(r(this,o))}disconnectedCallback(){clearTimeout(r(this,u)),r(this,f).disconnect()}};S=new WeakMap;y=new WeakMap;o=new WeakMap;v=new WeakMap;u=new WeakMap;f=new WeakMap;b=new WeakMap;C=new WeakSet;L=function(){this.dispatchEvent(new CustomEvent("selectToggle",{bubbles:!0,composed:!0,detail:{opened:r(this,v)}}))};X(exports.SelectElement,"formAssociated",!0);exports.SelectElement=V([E.define("e-select")],exports.SelectElement);var w;class D extends E.CustomElement{constructor(){super(...arguments);A(this,w,null)}get selectElement(){return z(this,w)}connectedCallback(){var i,n;const s=(n=(i=this.assignedSlot)==null?void 0:i.getRootNode())==null?void 0:n.host;s?H(this,w,s):console.log(this,"e-select not found")}}w=new WeakMap;var ee=Object.defineProperty,te=Object.getOwnPropertyDescriptor,se=(t,e,s,i)=>{for(var n=i>1?void 0:i?te(e,s):e,l=t.length-1,h;l>=0;l--)(h=t[l])&&(n=(i?h(e,s,n):h(n))||n);return i&&n&&ee(e,s,n),n},N=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},O=(t,e,s)=>(N(t,e,"read from private field"),s?s.call(t):e.get(t)),G=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},R=(t,e,s)=>(N(t,e,"access private method"),s),m,T,W;const ie=P.createStylesheet({":host":{width:"100%",height:_.aptechkaTheme.heightInput.var,display:"inline-flex",alignItems:"center"}});exports.SelectOptionElement=class extends D{constructor(){super(),G(this,T),G(this,m,()=>{this.selectElement.value===this.value?this.style.display="none":this.style.display=""}),M.isBrowser&&(this.openShadow(ie),a.element(this,{tabIndex:"0",onClick:()=>{R(this,T,W).call(this)},onKeydown:e=>{e.code==="Space"&&R(this,T,W).call(this)},children:[a.slot()]}))}get value(){return(this.hasAttribute("value")?this.getAttribute("value"):this.innerText)||""}connectedCallback(){super.connectedCallback(),this.hasAttribute("default")&&(this.selectElement.value||(this.selectElement.value=this.value)),this.selectElement.addEventListener("change",O(this,m)),setTimeout(()=>{O(this,m).call(this)})}disconnectedCallback(){this.selectElement.removeEventListener("change",O(this,m))}};m=new WeakMap;T=new WeakSet;W=function(){this.selectElement.value=this.value,this.selectElement.close()};exports.SelectOptionElement=se([E.define("e-select-option")],exports.SelectOptionElement);const U=`<svg
2
- xmlns="http://www.w3.org/2000/svg"
3
- width="32"
4
- height="32"
5
- viewBox="0 0 24 24"
6
- >
7
- <path d="m12.37 15.835l6.43-6.63C19.201 8.79 18.958 8 18.43 8H5.57c-.528 0-.771.79-.37 1.205l6.43 6.63c.213.22.527.22.74 0Z" />
8
- </svg>
9
- `;var ne=Object.defineProperty,re=Object.getOwnPropertyDescriptor,ae=(t,e,s,i)=>{for(var n=i>1?void 0:i?re(e,s):e,l=t.length-1,h;l>=0;l--)(h=t[l])&&(n=(i?h(e,s,n):h(n))||n);return i&&n&&ne(e,s,n),n},K=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},p=(t,e,s)=>(K(t,e,"read from private field"),s?s.call(t):e.get(t)),$=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},le=(t,e,s,i)=>(K(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),k,g,x;const he=P.createStylesheet({":host":{width:"100%",height:_.aptechkaTheme.heightInput.var,display:"inline-flex",alignItems:"center",justifyContent:"space-between"},".default-arrow":{flexShrink:"0",width:"var(--arrow-size, 1em)",height:"var(--arrow-size, 1em)",fill:`var(--arrow-color, ${_.aptechkaTheme.colorDark.var})`,transitionProperty:"transform",transitionDuration:`var(--duration, ${_.aptechkaTheme.durationShort.var})`},":host(.opened) .default-arrow":{transform:"scaleY(-1)"}});exports.SelectHeadElement=class extends D{constructor(){super(),$(this,k,null),$(this,g,()=>{const s=this.selectElement.shadowRoot.querySelector(".body slot").assignedElements().find(i=>i.value===this.selectElement.value);s&&(p(this,k).innerHTML=s.innerHTML)}),$(this,x,()=>{this.classList.toggle("opened",this.selectElement.opened)}),M.isBrowser&&(this.openShadow(he),a.element(this,{children:[a.slot(),a.slot({name:"arrow",children:a.element(U,{class:"default-arrow"})})]}),this.slot="head")}connectedCallback(){super.connectedCallback(),le(this,k,this.querySelector("[data-value-holder]")||this),this.selectElement.addEventListener("change",p(this,g)),p(this,g).call(this),this.selectElement.addEventListener("selectToggle",p(this,x))}disconnectedCallback(){this.selectElement.removeEventListener("change",p(this,g)),this.selectElement.removeEventListener("selectToggle",p(this,x))}};k=new WeakMap;g=new WeakMap;x=new WeakMap;exports.SelectHeadElement=ae([E.define("e-select-head")],exports.SelectHeadElement);exports.SelectUserElement=D;exports.arrowIcon=U;
@@ -1 +0,0 @@
1
- "use strict";function s(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function f(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Node)return e;const t=Array.isArray(e)?[]:{};for(const n in e)e.hasOwnProperty(n)&&(t[n]=f(e[n]));return t}function c(e,t,n=s){for(const r in t)n(t[r])?(e[r]||Object.assign(e,{[r]:{}}),c(e[r],t[r],n)):Object.assign(e,{[r]:t[r]});return e}function u(e){return e===null||typeof e=="undefined"}function i(e,t){if(typeof e!=typeof t)return!1;if([e,t].some(n=>u(n)))return e===t;if(Array.isArray(e)){const n=e.length>t.length?e:t,r=e.length>t.length?t:e;return n.every((l,y)=>i(l,r[y]))}if(typeof e!="object"||e instanceof Node||typeof e=="object"&&e.constructor.toString().startsWith("class"))return e===t;for(const n in e){if(!t.hasOwnProperty(n))return!1;if(typeof e[n]=="object"&&typeof t[n]=="object"){if(!i(e[n],t[n]))return!1}else if(e[n]!==t[n])return!1}return!0}function p(e,t){const n={};for(const r in e)t.includes(r)&&(n[r]=e[r]);return n}function a(e,t){const n={};for(const r in e)t.includes(r)||(n[r]=e[r]);return n}function o(e){var t;return typeof e=="function"&&((t=Object.getOwnPropertyDescriptor(e,"prototype"))==null?void 0:t.writable)===!1}exports.cloneDeep=f;exports.compareObjects=i;exports.isESClass=o;exports.isNullish=u;exports.isObject=s;exports.mergeDeep=c;exports.omit=a;exports.pick=p;
@@ -1,73 +0,0 @@
1
- function c(e) {
2
- return typeof e == "object" && e !== null && !Array.isArray(e);
3
- }
4
- function u(e) {
5
- if (e === null || typeof e != "object")
6
- return e;
7
- if (e instanceof Date)
8
- return new Date(e.getTime());
9
- if (e instanceof Node)
10
- return e;
11
- const n = Array.isArray(e) ? [] : {};
12
- for (const t in e)
13
- e.hasOwnProperty(t) && (n[t] = u(e[t]));
14
- return n;
15
- }
16
- function a(e, n, t = c) {
17
- for (const r in n)
18
- t(n[r]) ? (e[r] || Object.assign(e, { [r]: {} }), a(e[r], n[r], t)) : Object.assign(e, { [r]: n[r] });
19
- return e;
20
- }
21
- function y(e) {
22
- return e === null || typeof e == "undefined";
23
- }
24
- function i(e, n) {
25
- if (typeof e != typeof n)
26
- return !1;
27
- if ([e, n].some((t) => y(t)))
28
- return e === n;
29
- if (Array.isArray(e)) {
30
- const t = e.length > n.length ? e : n, r = e.length > n.length ? n : e;
31
- return t.every(
32
- (s, f) => i(s, r[f])
33
- );
34
- }
35
- if (typeof e != "object" || e instanceof Node || typeof e == "object" && e.constructor.toString().startsWith("class"))
36
- return e === n;
37
- for (const t in e) {
38
- if (!n.hasOwnProperty(t))
39
- return !1;
40
- if (typeof e[t] == "object" && typeof n[t] == "object") {
41
- if (!i(e[t], n[t]))
42
- return !1;
43
- } else if (e[t] !== n[t])
44
- return !1;
45
- }
46
- return !0;
47
- }
48
- function l(e, n) {
49
- const t = {};
50
- for (const r in e)
51
- n.includes(r) && (t[r] = e[r]);
52
- return t;
53
- }
54
- function p(e, n) {
55
- const t = {};
56
- for (const r in e)
57
- n.includes(r) || (t[r] = e[r]);
58
- return t;
59
- }
60
- function o(e) {
61
- var n;
62
- return typeof e == "function" && ((n = Object.getOwnPropertyDescriptor(e, "prototype")) == null ? void 0 : n.writable) === !1;
63
- }
64
- export {
65
- c as a,
66
- y as b,
67
- u as c,
68
- i as d,
69
- o as i,
70
- a as m,
71
- p as o,
72
- l as p
73
- };