aptechka 0.25.1 → 0.25.2

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 (104) hide show
  1. package/lib/need_redo_tweaker/index.cjs +4 -4
  2. package/lib/need_redo_tweaker/index.js +96 -80
  3. package/lib/{style-3MQV6Cnl.js → style-B2GS6rev.js} +19 -37
  4. package/lib/style-qftK_UJp.cjs +1 -0
  5. package/lib/utils/index.cjs +1 -1
  6. package/lib/utils/index.js +87 -85
  7. package/package.json +1 -1
  8. package/lib/animation/Animation.d.ts +0 -34
  9. package/lib/animation/Damped.d.ts +0 -18
  10. package/lib/animation/Tweened.d.ts +0 -14
  11. package/lib/animation/index.d.ts +0 -3
  12. package/lib/attribute/index.d.ts +0 -14
  13. package/lib/class-linked-status/index.d.ts +0 -11
  14. package/lib/connector/index.d.ts +0 -15
  15. package/lib/controls/AutoplayControls.d.ts +0 -16
  16. package/lib/controls/Controls.d.ts +0 -8
  17. package/lib/controls/DragControls.d.ts +0 -15
  18. package/lib/controls/KeyboardControls.d.ts +0 -13
  19. package/lib/controls/WheelControls.d.ts +0 -18
  20. package/lib/controls/index.d.ts +0 -5
  21. package/lib/css-property/index.d.ts +0 -16
  22. package/lib/css-unit-parser/index.d.ts +0 -6
  23. package/lib/css-value-parser/index.d.ts +0 -6
  24. package/lib/dev/index.d.ts +0 -1
  25. package/lib/device/Device.d.ts +0 -16
  26. package/lib/device/Viewport.d.ts +0 -28
  27. package/lib/device/index.d.ts +0 -2
  28. package/lib/element-resizer/index.d.ts +0 -9
  29. package/lib/intersector/index.d.ts +0 -9
  30. package/lib/ladder/index.d.ts +0 -23
  31. package/lib/layout-box/index.d.ts +0 -95
  32. package/lib/loading/index.d.ts +0 -38
  33. package/lib/media/index.d.ts +0 -11
  34. package/lib/need_redo_tweaker/CheckboxElement.d.ts +0 -14
  35. package/lib/need_redo_tweaker/TweakerBooleanManagerElement.d.ts +0 -10
  36. package/lib/need_redo_tweaker/TweakerColorManagerElement.d.ts +0 -10
  37. package/lib/need_redo_tweaker/TweakerElement.d.ts +0 -17
  38. package/lib/need_redo_tweaker/TweakerFieldElement.d.ts +0 -19
  39. package/lib/need_redo_tweaker/TweakerFolderElement.d.ts +0 -23
  40. package/lib/need_redo_tweaker/TweakerLinkManagerElement.d.ts +0 -10
  41. package/lib/need_redo_tweaker/TweakerNumberManagerElement.d.ts +0 -13
  42. package/lib/need_redo_tweaker/TweakerSelectManagerElement.d.ts +0 -10
  43. package/lib/need_redo_tweaker/TweakerStoreManagerElement.d.ts +0 -9
  44. package/lib/need_redo_tweaker/TweakerStringManagerElement.d.ts +0 -10
  45. package/lib/need_redo_tweaker/element-constructor/ElementConstructor.d.ts +0 -74
  46. package/lib/need_redo_tweaker/element-constructor/createStylesheet.d.ts +0 -2
  47. package/lib/need_redo_tweaker/element-constructor/createTheme.d.ts +0 -12
  48. package/lib/need_redo_tweaker/element-constructor/index.d.ts +0 -4
  49. package/lib/need_redo_tweaker/element-constructor/knownSvgTags.d.ts +0 -1
  50. package/lib/need_redo_tweaker/element-constructor/tags.d.ts +0 -118
  51. package/lib/need_redo_tweaker/index.d.ts +0 -1
  52. package/lib/need_redo_tweaker/select/SelectElement.d.ts +0 -24
  53. package/lib/need_redo_tweaker/select/SelectHeadElement.d.ts +0 -12
  54. package/lib/need_redo_tweaker/select/SelectOptionElement.d.ts +0 -13
  55. package/lib/need_redo_tweaker/select/SelectUserElement.d.ts +0 -6
  56. package/lib/need_redo_tweaker/select/index.d.ts +0 -4
  57. package/lib/need_redo_tweaker/theme/index.d.ts +0 -35
  58. package/lib/need_redo_tweaker/tweakerManagerConstructors.d.ts +0 -14
  59. package/lib/need_redo_tweaker/tweakerStorage.d.ts +0 -23
  60. package/lib/notifier/index.d.ts +0 -8
  61. package/lib/order/index.d.ts +0 -22
  62. package/lib/scroll-entries/index.d.ts +0 -20
  63. package/lib/source/SourceClass.d.ts +0 -11
  64. package/lib/source/SourceManager.d.ts +0 -13
  65. package/lib/source/SourceSet.d.ts +0 -8
  66. package/lib/source/index.d.ts +0 -3
  67. package/lib/store/Composed.d.ts +0 -7
  68. package/lib/store/Derived.d.ts +0 -7
  69. package/lib/store/DerivedArray.d.ts +0 -7
  70. package/lib/store/Resource.d.ts +0 -11
  71. package/lib/store/Store.d.ts +0 -35
  72. package/lib/store/StoreRegistry.d.ts +0 -22
  73. package/lib/store/index.d.ts +0 -6
  74. package/lib/style-BoXabX_p.cjs +0 -1
  75. package/lib/ticker/index.d.ts +0 -21
  76. package/lib/utils/array.d.ts +0 -2
  77. package/lib/utils/attributes.d.ts +0 -2
  78. package/lib/utils/browser.d.ts +0 -1
  79. package/lib/utils/bytes.d.ts +0 -1
  80. package/lib/utils/canvas.d.ts +0 -7
  81. package/lib/utils/collisions.d.ts +0 -3
  82. package/lib/utils/coordinates.d.ts +0 -13
  83. package/lib/utils/cssom.d.ts +0 -5
  84. package/lib/utils/decoding.d.ts +0 -2
  85. package/lib/utils/dom.d.ts +0 -5
  86. package/lib/utils/easings.d.ts +0 -17
  87. package/lib/utils/events.d.ts +0 -8
  88. package/lib/utils/file.d.ts +0 -1
  89. package/lib/utils/function.d.ts +0 -2
  90. package/lib/utils/gestures.d.ts +0 -1
  91. package/lib/utils/index.d.ts +0 -27
  92. package/lib/utils/jss.d.ts +0 -12
  93. package/lib/utils/layout.d.ts +0 -3
  94. package/lib/utils/math.d.ts +0 -11
  95. package/lib/utils/number.d.ts +0 -3
  96. package/lib/utils/object.d.ts +0 -9
  97. package/lib/utils/polyfills.d.ts +0 -1
  98. package/lib/utils/promises.d.ts +0 -1
  99. package/lib/utils/string.d.ts +0 -8
  100. package/lib/utils/style.d.ts +0 -2
  101. package/lib/utils/ts-shape.d.ts +0 -20
  102. package/lib/utils/ts-utility.d.ts +0 -26
  103. package/lib/utils/url.d.ts +0 -9
  104. package/lib/window-resizer/index.d.ts +0 -9
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../attributes-Bf2svn4j.cjs"),S=require("../browser-CpzFX2xg.cjs"),m=require("../dom-JBOkFLTh.cjs"),a=require("../easings-DsS5-Kqc.cjs"),r=require("../style-BoXabX_p.cjs"),C=require("../function-MthRj-GJ.cjs"),O=require("../gestures-DHLrn6Q8.cjs"),h=require("../string-DhgS_iFl.cjs"),f=require("../layout-8ryRAMGJ.cjs"),u=require("../polyfills-Caa6z-Ay.cjs");function b(t,e,...n){return[...t.slice(0,e),...n,...t.slice(e)]}function E(t,e){const n=t.length;e=e%n;const i=new Array(n);for(let s=0;s<n;s++){const o=(s+e)%n;i[o]=t[s]}return i}function w(t,e=2){if(!+t)return"0 Bytes";const n=1024,i=e<0?0:e,s=["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],o=Math.floor(Math.log(t)/Math.log(n));return`${parseFloat((t/Math.pow(n,o)).toFixed(i))} ${s[o]}`}function I(t,e){const n=t.measureText(e),i=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent,s=n.width;return{height:i,width:s}}function B(t){return Math.floor(t)+.5}function P(t,e,n,i,s,o){let l=t/e,p=n/i,c=0,d=0;return s=typeof s=="undefined"?.5:s,o=typeof o=="undefined"?.5:o,l>p?(c=i,d=i*l):(d=n,c=n/l),[(n-d)*s,(i-c)*o,d,c]}function T(t,e,n,i,s,o){let l=t/e,p=n/i,c=0,d=0;return s=typeof s=="undefined"?.5:s,o=typeof o=="undefined"?.5:o,l>p?(d=n,c=n/l):(c=i,d=i*l),[(n-d)*s,(i-c)*o,d,c]}function Q(t,e){return t.x<e.x+e.width&&t.x>e.x&&t.y<e.y+e.height&&t.y>e.y}function D(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)<e.radius}function R(t,e,n=!1){let i=t.x-e.width/2,s=e.height/2-t.y;return n&&(i=i/(e.width/2),s=s/(e.height/2)),{x:i,y:s}}function A(t,e){const n=t.x/e.width,i=t.y/e.height;return{x:n,y:i}}function v(t,e){return e=e||{x:0,y:0,width:document.documentElement.offsetWidth,height:innerHeight},{x:(t.x-e.x)/e.width*e.width,y:(t.y-e.y)/e.height*e.height}}function x(t,e){const n=t.styleMap.get(e);if(n){const i=n.toString();return i.startsWith("var")?x(t,i.slice(4,-1)):i}}function z(...t){const e={};return Array.from(document.styleSheets).forEach(n=>{Array.from(n.cssRules).forEach(i=>{i instanceof CSSStyleRule&&i.selectorText===":root"&&t.forEach(s=>{const o=x(i,s);o&&(e[s]=o)})})}),t.forEach(n=>{e[n]||console.warn(`variable named ${n} not found`)}),e}function q(t){const e=window.atob(t);return decodeURIComponent(window.escape(e))}function M(t){const e=window.unescape(encodeURIComponent(t));return window.btoa(e)}function g(t){let e="";for(const n in t){const i=t[n];typeof i=="object"?(e+=`${n} {`,e+=g(i),e+="}"):e+=`${h.camelToKebab(n)}: ${i};`}return e}function $(t){if(S.isBrowser){const e=new CSSStyleSheet;return e.replaceSync(g(t)),e}return null}function k(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}function N(t,e=""){e=e.endsWith("/")?e.slice(0,-1):e,t=t.replace(e,""),t.startsWith("/")&&(t=t.slice(1));const n=t.split("#"),i=n[0].split("?"),s=i[0].startsWith("/")?i[0]:"/"+i[0],o=e+s,l=i==null?void 0:i[1],p=n==null?void 0:n[1];return{leaf:s,pathname:o,parameters:l,hash:p}}function W(t="/"){return t.endsWith("/")||(t+="/"),t.startsWith("/")||(t+="/"),t}function j(t,e,n,i){const s=n||location.search,o=i?i.startsWith("#")?i:"#"+i:"",l=s?s.startsWith("?")?s:"?"+s:"",p=`${e}${o}${l}`;t==="push"?history.pushState(null,"",p):t==="replace"&&history.replaceState(null,"",p)}exports.parseAttribute=y.parseAttribute;exports.parseAttributeValue=y.parseAttributeValue;exports.isBrowser=S.isBrowser;exports.findParentElement=m.findParentElement;exports.findScrollParentElement=m.findScrollParentElement;exports.getAllParentElements=m.getAllParentElements;exports.getElement=m.getElement;exports.easeInCubic=a.easeInCubic;exports.easeInExpo=a.easeInExpo;exports.easeInOutCubic=a.easeInOutCubic;exports.easeInOutExpo=a.easeInOutExpo;exports.easeInOutQuad=a.easeInOutQuad;exports.easeInOutQuart=a.easeInOutQuart;exports.easeInOutQuint=a.easeInOutQuint;exports.easeInQuad=a.easeInQuad;exports.easeInQuart=a.easeInQuart;exports.easeInQuint=a.easeInQuint;exports.easeOutCubic=a.easeOutCubic;exports.easeOutExpo=a.easeOutExpo;exports.easeOutQuad=a.easeOutQuad;exports.easeOutQuart=a.easeOutQuart;exports.easeOutQuint=a.easeOutQuint;exports.linear=a.linear;exports.cloneDeep=r.cloneDeep;exports.compareObjects=r.compareObjects;exports.createJSONAndSave=r.createJSONAndSave;exports.dispatchBeforeSizeChangeEvent=r.dispatchBeforeSizeChangeEvent;exports.dispatchSizeChangeEvent=r.dispatchSizeChangeEvent;exports.getElementTransitionDurationMS=r.getElementTransitionDurationMS;exports.getElementTransitionDurationS=r.getElementTransitionDurationS;exports.isESClass=r.isESClass;exports.isNullish=r.isNullish;exports.isObject=r.isObject;exports.mergeDeep=r.mergeDeep;exports.mixin=r.mixin;exports.omit=r.omit;exports.pick=r.pick;exports.debounce=C.debounce;exports.throttle=C.throttle;exports.setupDrag=O.setupDrag;exports.camelToKebab=h.camelToKebab;exports.capitalize=h.capitalize;exports.generateId=h.generateId;exports.isUppercase=h.isUppercase;exports.kebabToCamel=h.kebabToCamel;exports.snakeToDotted=h.snakeToDotted;exports.toPascalCase=h.toPascalCase;exports.uncapitalize=h.uncapitalize;exports.getCumulativeOffsetLeft=f.getCumulativeOffsetLeft;exports.getCumulativeOffsetTop=f.getCumulativeOffsetTop;exports.getCumulativePosition=f.getCumulativePosition;exports.calculateDistance=u.calculateDistance;exports.calculateDistanceWithRadius=u.calculateDistanceWithRadius;exports.clamp=u.clamp;exports.damp=u.damp;exports.lerp=u.lerp;exports.mapRange=u.mapRange;exports.nullishCoalescing=u.nullishCoalescing;exports.preciseNumber=u.preciseNumber;exports.round=u.round;exports.roundNumberTo=u.roundNumberTo;exports.smootherstep=u.smootherstep;exports.smoothstep=u.smoothstep;exports.step=u.step;exports.toStep=u.toStep;exports.changeHistory=j;exports.contain=T;exports.cover=P;exports.createStylesheet=$;exports.decode=M;exports.dotCircleCollision=D;exports.dotRectCollision=Q;exports.encode=q;exports.fixPosition=B;exports.formatBytes=w;exports.getPointerPosition=v;exports.getRootVariables=z;exports.insert=b;exports.measureText=I;exports.normalize=A;exports.normalizeBase=W;exports.screenToCartesian=R;exports.shiftArray=E;exports.splitPath=N;exports.styleToString=g;exports.wait=k;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../attributes-Bf2svn4j.cjs"),S=require("../browser-CpzFX2xg.cjs"),m=require("../dom-JBOkFLTh.cjs"),a=require("../easings-DsS5-Kqc.cjs"),u=require("../style-qftK_UJp.cjs"),C=require("../function-MthRj-GJ.cjs"),w=require("../gestures-DHLrn6Q8.cjs"),p=require("../string-DhgS_iFl.cjs"),f=require("../layout-8ryRAMGJ.cjs"),r=require("../polyfills-Caa6z-Ay.cjs");function x(t,e,...n){return[...t.slice(0,e),...n,...t.slice(e)]}function O(t,e){const n=t.length;e=e%n;const s=new Array(n);for(let i=0;i<n;i++){const o=(i+e)%n;s[o]=t[i]}return s}function b(t,e=2){if(!+t)return"0 Bytes";const n=1024,s=e<0?0:e,i=["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],o=Math.floor(Math.log(t)/Math.log(n));return`${parseFloat((t/Math.pow(n,o)).toFixed(s))} ${i[o]}`}function I(t,e){const n=t.measureText(e),s=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent,i=n.width;return{height:s,width:i}}function P(t){return Math.floor(t)+.5}function B(t,e,n,s,i,o){let l=t/e,h=n/s,c=0,d=0;return i=typeof i=="undefined"?.5:i,o=typeof o=="undefined"?.5:o,l>h?(c=s,d=s*l):(d=n,c=n/l),[(n-d)*i,(s-c)*o,d,c]}function T(t,e,n,s,i,o){let l=t/e,h=n/s,c=0,d=0;return i=typeof i=="undefined"?.5:i,o=typeof o=="undefined"?.5:o,l>h?(d=n,c=n/l):(c=s,d=s*l),[(n-d)*i,(s-c)*o,d,c]}function Q(t,e){return t.x<e.x+e.width&&t.x>e.x&&t.y<e.y+e.height&&t.y>e.y}function D(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)<e.radius}function v(t,e,n=!1){let s=t.x-e.width/2,i=e.height/2-t.y;return n&&(s=s/(e.width/2),i=i/(e.height/2)),{x:s,y:i}}function R(t,e){const n=t.x/e.width,s=t.y/e.height;return{x:n,y:s}}function A(t,e){return e=e||{x:0,y:0,width:document.documentElement.offsetWidth,height:innerHeight},{x:(t.x-e.x)/e.width*e.width,y:(t.y-e.y)/e.height*e.height}}function E(t,e){const n=t.styleMap.get(e);if(n){const s=n.toString();return s.startsWith("var")?E(t,s.slice(4,-1)):s}}function q(...t){const e={};return Array.from(document.styleSheets).forEach(n=>{Array.from(n.cssRules).forEach(s=>{s instanceof CSSStyleRule&&s.selectorText===":root"&&t.forEach(i=>{const o=E(s,i);o&&(e[i]=o)})})}),t.forEach(n=>{e[n]||console.warn(`variable named ${n} not found`)}),e}function M(t){const e=window.atob(t);return decodeURIComponent(window.escape(e))}function $(t){const e=window.unescape(encodeURIComponent(t));return window.btoa(e)}function k(t,e,n){n!=null&&n.custom?t.dispatchEvent(new CustomEvent(e,n)):t.dispatchEvent(new Event(e,n))}function g(t){let e="";for(const n in t){const s=t[n];typeof s=="object"?(e+=`${n} {`,e+=g(s),e+="}"):e+=`${p.camelToKebab(n)}: ${s};`}return e}function z(t){if(S.isBrowser){const e=new CSSStyleSheet;return e.replaceSync(g(t)),e}return null}function N(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}function W(t,e=""){e=e.endsWith("/")?e.slice(0,-1):e,t=t.replace(e,""),t.startsWith("/")&&(t=t.slice(1));const n=t.split("#"),s=n[0].split("?"),i=s[0].startsWith("/")?s[0]:"/"+s[0],o=e+i,l=s==null?void 0:s[1],h=n==null?void 0:n[1];return{leaf:i,pathname:o,parameters:l,hash:h}}function j(t="/"){return t.endsWith("/")||(t+="/"),t.startsWith("/")||(t+="/"),t}function V(t,e,n,s){const i=n||location.search,o=s?s.startsWith("#")?s:"#"+s:"",l=i?i.startsWith("?")?i:"?"+i:"",h=`${e}${o}${l}`;t==="push"?history.pushState(null,"",h):t==="replace"&&history.replaceState(null,"",h)}exports.parseAttribute=y.parseAttribute;exports.parseAttributeValue=y.parseAttributeValue;exports.isBrowser=S.isBrowser;exports.findParentElement=m.findParentElement;exports.findScrollParentElement=m.findScrollParentElement;exports.getAllParentElements=m.getAllParentElements;exports.getElement=m.getElement;exports.easeInCubic=a.easeInCubic;exports.easeInExpo=a.easeInExpo;exports.easeInOutCubic=a.easeInOutCubic;exports.easeInOutExpo=a.easeInOutExpo;exports.easeInOutQuad=a.easeInOutQuad;exports.easeInOutQuart=a.easeInOutQuart;exports.easeInOutQuint=a.easeInOutQuint;exports.easeInQuad=a.easeInQuad;exports.easeInQuart=a.easeInQuart;exports.easeInQuint=a.easeInQuint;exports.easeOutCubic=a.easeOutCubic;exports.easeOutExpo=a.easeOutExpo;exports.easeOutQuad=a.easeOutQuad;exports.easeOutQuart=a.easeOutQuart;exports.easeOutQuint=a.easeOutQuint;exports.linear=a.linear;exports.cloneDeep=u.cloneDeep;exports.compareObjects=u.compareObjects;exports.createJSONAndSave=u.createJSONAndSave;exports.getElementTransitionDurationMS=u.getElementTransitionDurationMS;exports.getElementTransitionDurationS=u.getElementTransitionDurationS;exports.isESClass=u.isESClass;exports.isNullish=u.isNullish;exports.isObject=u.isObject;exports.mergeDeep=u.mergeDeep;exports.mixin=u.mixin;exports.omit=u.omit;exports.pick=u.pick;exports.debounce=C.debounce;exports.throttle=C.throttle;exports.setupDrag=w.setupDrag;exports.camelToKebab=p.camelToKebab;exports.capitalize=p.capitalize;exports.generateId=p.generateId;exports.isUppercase=p.isUppercase;exports.kebabToCamel=p.kebabToCamel;exports.snakeToDotted=p.snakeToDotted;exports.toPascalCase=p.toPascalCase;exports.uncapitalize=p.uncapitalize;exports.getCumulativeOffsetLeft=f.getCumulativeOffsetLeft;exports.getCumulativeOffsetTop=f.getCumulativeOffsetTop;exports.getCumulativePosition=f.getCumulativePosition;exports.calculateDistance=r.calculateDistance;exports.calculateDistanceWithRadius=r.calculateDistanceWithRadius;exports.clamp=r.clamp;exports.damp=r.damp;exports.lerp=r.lerp;exports.mapRange=r.mapRange;exports.nullishCoalescing=r.nullishCoalescing;exports.preciseNumber=r.preciseNumber;exports.round=r.round;exports.roundNumberTo=r.roundNumberTo;exports.smootherstep=r.smootherstep;exports.smoothstep=r.smoothstep;exports.step=r.step;exports.toStep=r.toStep;exports.changeHistory=V;exports.contain=T;exports.cover=B;exports.createStylesheet=z;exports.decode=$;exports.dispatchEvent=k;exports.dotCircleCollision=D;exports.dotRectCollision=Q;exports.encode=M;exports.fixPosition=P;exports.formatBytes=b;exports.getPointerPosition=A;exports.getRootVariables=q;exports.insert=x;exports.measureText=I;exports.normalize=R;exports.normalizeBase=j;exports.screenToCartesian=v;exports.shiftArray=O;exports.splitPath=W;exports.styleToString=g;exports.wait=N;
@@ -1,14 +1,14 @@
1
- import { a as W, p as j } from "../attributes-69we3byR.js";
1
+ import { a as z, p as N } from "../attributes-69we3byR.js";
2
2
  import { i as f } from "../browser-0zX67oeU.js";
3
- import { f as V, b as U, a as F, g as K } from "../dom-0S_WDL4g.js";
4
- import { c as G, n as J, f as Y, p as Z, b as X, i as _, m as H, e as L, g as tt, j as et, d as st, o as nt, a as at, h as ot, k as it, l as rt } from "../easings-BKi40vHz.js";
5
- import { b as lt, f as ct, c as ht, a as ft, d as pt, k as dt, j as mt, g as gt, e as yt, i as xt, m as St, h as wt, o as Ct, p as Bt } from "../style-3MQV6Cnl.js";
6
- import { d as Ot, t as bt } from "../function-C10DGppn.js";
7
- import { s as Pt } from "../gestures-D2Fdra_G.js";
3
+ import { f as U, b as F, a as K, g as q } from "../dom-0S_WDL4g.js";
4
+ import { c as J, n as Y, f as Z, p as X, b as _, i as H, m as L, e as tt, g as et, j as st, d as nt, o as at, a as ot, h as it, k as rt, l as ut } from "../easings-BKi40vHz.js";
5
+ import { a as ct, d as ht, c as ft, h as pt, g as dt, e as mt, b as gt, i as yt, m as xt, f as wt, o as St, p as Et } from "../style-B2GS6rev.js";
6
+ import { d as Bt, t as Ot } from "../function-C10DGppn.js";
7
+ import { s as It } from "../gestures-D2Fdra_G.js";
8
8
  import { c as p } from "../string-f0Dnk0L1.js";
9
- import { a as At, g as Dt, i as Mt, k as Qt, s as $t, t as kt, u as Tt } from "../string-f0Dnk0L1.js";
10
- import { g as zt, a as Wt, b as jt } from "../layout-HoBT_Da2.js";
11
- import { e as Vt, f as Ut, c as Ft, d as Kt, l as qt, m as Gt, n as Jt, p as Yt, r as Zt, g as Xt, b as _t, a as Ht, s as Lt, t as te } from "../polyfills-AItxku8u.js";
9
+ import { a as Rt, g as At, i as vt, k as Dt, s as Mt, t as Qt, u as $t } from "../string-f0Dnk0L1.js";
10
+ import { g as kt, a as Wt, b as jt } from "../layout-HoBT_Da2.js";
11
+ import { e as Nt, f as Vt, c as Ut, d as Ft, l as Kt, m as qt, n as Gt, p as Jt, r as Yt, g as Zt, b as Xt, a as _t, s as Ht, t as Lt } from "../polyfills-AItxku8u.js";
12
12
  function g(e, t, ...s) {
13
13
  return [...e.slice(0, t), ...s, ...e.slice(t)];
14
14
  }
@@ -37,17 +37,17 @@ function x(e, t = 2) {
37
37
  ], o = Math.floor(Math.log(e) / Math.log(s));
38
38
  return `${parseFloat((e / Math.pow(s, o)).toFixed(n))} ${a[o]}`;
39
39
  }
40
- function S(e, t) {
40
+ function w(e, t) {
41
41
  const s = e.measureText(t), n = s.actualBoundingBoxAscent + s.actualBoundingBoxDescent, a = s.width;
42
42
  return {
43
43
  height: n,
44
44
  width: a
45
45
  };
46
46
  }
47
- function w(e) {
47
+ function S(e) {
48
48
  return Math.floor(e) + 0.5;
49
49
  }
50
- function C(e, t, s, n, a, o) {
50
+ function E(e, t, s, n, a, o) {
51
51
  let i = e / t, l = s / n, r = 0, u = 0;
52
52
  return a = typeof a == "undefined" ? 0.5 : a, o = typeof o == "undefined" ? 0.5 : o, i > l ? (r = n, u = n * i) : (u = s, r = s / i), [
53
53
  (s - u) * a,
@@ -56,7 +56,7 @@ function C(e, t, s, n, a, o) {
56
56
  r
57
57
  ];
58
58
  }
59
- function B(e, t, s, n, a, o) {
59
+ function C(e, t, s, n, a, o) {
60
60
  let i = e / t, l = s / n, r = 0, u = 0;
61
61
  return a = typeof a == "undefined" ? 0.5 : a, o = typeof o == "undefined" ? 0.5 : o, i > l ? (u = s, r = s / i) : (r = n, u = n * i), [
62
62
  (s - u) * a,
@@ -65,7 +65,7 @@ function B(e, t, s, n, a, o) {
65
65
  r
66
66
  ];
67
67
  }
68
- function E(e, t) {
68
+ function B(e, t) {
69
69
  return e.x < t.x + t.width && e.x > t.x && e.y < t.y + t.height && e.y > t.y;
70
70
  }
71
71
  function O(e, t) {
@@ -114,10 +114,13 @@ function A(e) {
114
114
  const t = window.atob(e);
115
115
  return decodeURIComponent(window.escape(t));
116
116
  }
117
- function D(e) {
117
+ function v(e) {
118
118
  const t = window.unescape(encodeURIComponent(e));
119
119
  return window.btoa(t);
120
120
  }
121
+ function D(e, t, s) {
122
+ s != null && s.custom ? e.dispatchEvent(new CustomEvent(t, s)) : e.dispatchEvent(new Event(t, s));
123
+ }
121
124
  function h(e) {
122
125
  let t = "";
123
126
  for (const s in e) {
@@ -150,98 +153,97 @@ function $(e, t = "") {
150
153
  hash: l
151
154
  };
152
155
  }
153
- function k(e = "/") {
156
+ function T(e = "/") {
154
157
  return e.endsWith("/") || (e += "/"), e.startsWith("/") || (e += "/"), e;
155
158
  }
156
- function T(e, t, s, n) {
159
+ function k(e, t, s, n) {
157
160
  const a = s || location.search, o = n ? n.startsWith("#") ? n : "#" + n : "", i = a ? a.startsWith("?") ? a : "?" + a : "", l = `${t}${o}${i}`;
158
161
  e === "push" ? history.pushState(null, "", l) : e === "replace" && history.replaceState(null, "", l);
159
162
  }
160
163
  export {
161
- Vt as calculateDistance,
162
- Ut as calculateDistanceWithRadius,
164
+ Nt as calculateDistance,
165
+ Vt as calculateDistanceWithRadius,
163
166
  p as camelToKebab,
164
- At as capitalize,
165
- T as changeHistory,
166
- Ft as clamp,
167
- lt as cloneDeep,
168
- ct as compareObjects,
169
- B as contain,
170
- C as cover,
171
- ht as createJSONAndSave,
167
+ Rt as capitalize,
168
+ k as changeHistory,
169
+ Ut as clamp,
170
+ ct as cloneDeep,
171
+ ht as compareObjects,
172
+ C as contain,
173
+ E as cover,
174
+ ft as createJSONAndSave,
172
175
  M as createStylesheet,
173
- Kt as damp,
174
- Ot as debounce,
175
- D as decode,
176
- ft as dispatchBeforeSizeChangeEvent,
177
- pt as dispatchSizeChangeEvent,
176
+ Ft as damp,
177
+ Bt as debounce,
178
+ v as decode,
179
+ D as dispatchEvent,
178
180
  O as dotCircleCollision,
179
- E as dotRectCollision,
180
- G as easeInCubic,
181
- J as easeInExpo,
182
- Y as easeInOutCubic,
183
- Z as easeInOutExpo,
184
- X as easeInOutQuad,
185
- _ as easeInOutQuart,
186
- H as easeInOutQuint,
187
- L as easeInQuad,
188
- tt as easeInQuart,
189
- et as easeInQuint,
190
- st as easeOutCubic,
191
- nt as easeOutExpo,
192
- at as easeOutQuad,
193
- ot as easeOutQuart,
194
- it as easeOutQuint,
181
+ B as dotRectCollision,
182
+ J as easeInCubic,
183
+ Y as easeInExpo,
184
+ Z as easeInOutCubic,
185
+ X as easeInOutExpo,
186
+ _ as easeInOutQuad,
187
+ H as easeInOutQuart,
188
+ L as easeInOutQuint,
189
+ tt as easeInQuad,
190
+ et as easeInQuart,
191
+ st as easeInQuint,
192
+ nt as easeOutCubic,
193
+ at as easeOutExpo,
194
+ ot as easeOutQuad,
195
+ it as easeOutQuart,
196
+ rt as easeOutQuint,
195
197
  A as encode,
196
- V as findParentElement,
197
- U as findScrollParentElement,
198
- w as fixPosition,
198
+ U as findParentElement,
199
+ F as findScrollParentElement,
200
+ S as fixPosition,
199
201
  x as formatBytes,
200
- Dt as generateId,
201
- F as getAllParentElements,
202
- zt as getCumulativeOffsetLeft,
202
+ At as generateId,
203
+ K as getAllParentElements,
204
+ kt as getCumulativeOffsetLeft,
203
205
  Wt as getCumulativeOffsetTop,
204
206
  jt as getCumulativePosition,
205
- K as getElement,
206
- dt as getElementTransitionDurationMS,
207
- mt as getElementTransitionDurationS,
207
+ q as getElement,
208
+ pt as getElementTransitionDurationMS,
209
+ dt as getElementTransitionDurationS,
208
210
  P as getPointerPosition,
209
211
  R as getRootVariables,
210
212
  g as insert,
211
213
  f as isBrowser,
212
- gt as isESClass,
213
- yt as isNullish,
214
- xt as isObject,
215
- Mt as isUppercase,
216
- Qt as kebabToCamel,
217
- qt as lerp,
218
- rt as linear,
219
- Gt as mapRange,
220
- S as measureText,
221
- St as mergeDeep,
214
+ mt as isESClass,
215
+ gt as isNullish,
216
+ yt as isObject,
217
+ vt as isUppercase,
218
+ Dt as kebabToCamel,
219
+ Kt as lerp,
220
+ ut as linear,
221
+ qt as mapRange,
222
+ w as measureText,
223
+ xt as mergeDeep,
222
224
  wt as mixin,
223
225
  I as normalize,
224
- k as normalizeBase,
225
- Jt as nullishCoalescing,
226
- Ct as omit,
227
- W as parseAttribute,
228
- j as parseAttributeValue,
229
- Bt as pick,
230
- Yt as preciseNumber,
231
- Zt as round,
232
- Xt as roundNumberTo,
226
+ T as normalizeBase,
227
+ Gt as nullishCoalescing,
228
+ St as omit,
229
+ z as parseAttribute,
230
+ N as parseAttributeValue,
231
+ Et as pick,
232
+ Jt as preciseNumber,
233
+ Yt as round,
234
+ Zt as roundNumberTo,
233
235
  b as screenToCartesian,
234
- Pt as setupDrag,
236
+ It as setupDrag,
235
237
  y as shiftArray,
236
- _t as smootherstep,
237
- Ht as smoothstep,
238
- $t as snakeToDotted,
238
+ Xt as smootherstep,
239
+ _t as smoothstep,
240
+ Mt as snakeToDotted,
239
241
  $ as splitPath,
240
- Lt as step,
242
+ Ht as step,
241
243
  h as styleToString,
242
- bt as throttle,
243
- kt as toPascalCase,
244
- te as toStep,
245
- Tt as uncapitalize,
244
+ Ot as throttle,
245
+ Qt as toPascalCase,
246
+ Lt as toStep,
247
+ $t as uncapitalize,
246
248
  Q as wait
247
249
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.25.1",
3
+ "version": "0.25.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"
@@ -1,34 +0,0 @@
1
- import { Store, StoreOptions } from '../store';
2
- import { TickerAddOptions, TickerCallbackEntry } from '../ticker';
3
- export interface AnimationOptions extends TickerAddOptions {
4
- min?: number;
5
- max?: number;
6
- equalize?: boolean;
7
- restart?: boolean;
8
- }
9
- export type AnimationConstructorOptions<Options extends AnimationOptions> = StoreOptions<number> & Options;
10
- export declare abstract class Animation<Options extends AnimationOptions = AnimationOptions> extends Store<number> {
11
- #private;
12
- constructor(initial?: number, options?: StoreOptions<number>);
13
- get direction(): number;
14
- get target(): number;
15
- get min(): number;
16
- set min(value: number);
17
- get max(): number;
18
- set max(value: number);
19
- get from(): number;
20
- get isRunning(): Store<boolean>;
21
- get delta(): number;
22
- get deltaProgress(): number;
23
- get distance(): number;
24
- get distanceProgress(): number;
25
- set(value: number, options?: Options): void;
26
- shift(value: number, options?: Options): void;
27
- reset(): void;
28
- close(): void;
29
- listenAnimationFrame(): void;
30
- unlistenAnimationFrame(): void;
31
- updateOptions(options?: AnimationOptions): void;
32
- protected start(): void;
33
- protected abstract handleAnimationFrame(e: TickerCallbackEntry): void;
34
- }
@@ -1,18 +0,0 @@
1
- import { TickerCallbackEntry } from '../ticker';
2
- import { Animation, AnimationConstructorOptions, AnimationOptions } from './Animation';
3
- export interface DampedOptions extends AnimationOptions {
4
- stiffness?: number;
5
- damping?: number;
6
- mass?: number;
7
- }
8
- export declare class Damped extends Animation<DampedOptions> {
9
- #private;
10
- damping: number;
11
- stiffness: number;
12
- mass: number;
13
- constructor(initial?: number, options?: AnimationConstructorOptions<DampedOptions>);
14
- get velocity(): number;
15
- get speed(): number;
16
- updateOptions(options?: DampedOptions): void;
17
- protected handleAnimationFrame(e: TickerCallbackEntry): void;
18
- }
@@ -1,14 +0,0 @@
1
- import { TickerCallbackEntry } from '../ticker';
2
- import { EasingFunction } from '../utils';
3
- import { Animation, AnimationConstructorOptions, AnimationOptions } from './Animation';
4
- export interface TweenedOptions extends AnimationOptions {
5
- easing?: EasingFunction;
6
- duration?: number;
7
- }
8
- export declare class Tweened extends Animation<TweenedOptions> {
9
- #private;
10
- constructor(initial?: number, options?: AnimationConstructorOptions<TweenedOptions>);
11
- updateOptions(options?: TweenedOptions): void;
12
- protected handleAnimationFrame(e: TickerCallbackEntry): void;
13
- protected start(): void;
14
- }
@@ -1,3 +0,0 @@
1
- export { Animation, type AnimationOptions } from './Animation';
2
- export { Damped, type DampedOptions } from './Damped';
3
- export { Tweened, type TweenedOptions } from './Tweened';
@@ -1,14 +0,0 @@
1
- import { Store, StoreCallback, StoreOptions } from '../store';
2
- import { ElementOrSelector } from '../utils';
3
- export interface AttributeOptions<T> extends StoreOptions<T> {
4
- sync?: boolean;
5
- }
6
- export declare class Attribute<T extends string | number | boolean> extends Store<T> {
7
- #private;
8
- constructor(elementOrSelector: ElementOrSelector, name: string, defaultValue: T, options?: AttributeOptions<T>);
9
- subscribe(callback: StoreCallback<T>): () => void;
10
- unsubscribe(callback: StoreCallback<T>): void;
11
- observe(): void;
12
- unobserve(): void;
13
- close(): void;
14
- }
@@ -1,11 +0,0 @@
1
- import { Store } from '../store';
2
- export declare class ClassLinkedStatus<T extends {
3
- [key in string]: boolean;
4
- }> extends Store<T> {
5
- #private;
6
- constructor(element: HTMLElement, value: T);
7
- isTrue(key: keyof T): boolean;
8
- isFalse(key: keyof T): boolean;
9
- reset(): void;
10
- set(key: keyof T, value?: boolean): void;
11
- }
@@ -1,15 +0,0 @@
1
- export type ConnectorConnectCallback<T extends Node = Node> = (node: T) => void;
2
- export type ConnectorDisconnectCallback<T extends Node = Node> = (node: T, expired?: boolean) => void;
3
- export interface ConnectorOptions {
4
- connectCallback?: ConnectorConnectCallback;
5
- disconnectCallback?: ConnectorDisconnectCallback;
6
- maxWaitSec?: number;
7
- unsubscribeAfterDisconnect?: boolean;
8
- }
9
- export declare class Connector {
10
- #private;
11
- subscribe(node: Node, options: ConnectorOptions): () => void;
12
- unsubscribe(options: ConnectorOptions): void;
13
- destroy(): void;
14
- }
15
- export declare const connector: Connector;
@@ -1,16 +0,0 @@
1
- import { TickerAddOptions } from '../ticker';
2
- import { Controls } from './Controls';
3
- export interface AutoplayControlsOptions extends TickerAddOptions {
4
- speed?: number;
5
- interval?: boolean;
6
- }
7
- export declare class AutoplayControls extends Controls {
8
- #private;
9
- direction: number;
10
- constructor(options?: AutoplayControlsOptions);
11
- set interval(value: boolean);
12
- set speed(value: number);
13
- connect(): void;
14
- disconnect(): void;
15
- pauseAndContinue(duration: number): void;
16
- }
@@ -1,8 +0,0 @@
1
- import { Notifier } from '../notifier';
2
- export type ControlsCallback = (type: string, value: number) => void;
3
- export declare abstract class Controls {
4
- #private;
5
- get changeEvent(): Notifier<ControlsCallback>;
6
- abstract connect(): void;
7
- abstract disconnect(): void;
8
- }
@@ -1,15 +0,0 @@
1
- import { Axes2D } from '../utils';
2
- import { Controls } from './Controls';
3
- export interface DragControlsOptions {
4
- element?: HTMLElement;
5
- axis?: Axes2D;
6
- swipe?: boolean;
7
- }
8
- export declare class DragControls extends Controls {
9
- #private;
10
- axis: Axes2D;
11
- swipe: boolean;
12
- constructor(options?: DragControlsOptions);
13
- connect(): void;
14
- disconnect(): void;
15
- }
@@ -1,13 +0,0 @@
1
- import { Controls } from './Controls';
2
- export type KeyboardControlsDimension = 'height' | 'width';
3
- export interface KeyboardControlsOptions {
4
- element?: HTMLElement;
5
- dimension?: KeyboardControlsDimension;
6
- }
7
- export declare class KeyboardControls extends Controls {
8
- #private;
9
- constructor(options?: KeyboardControlsOptions);
10
- set dimension(value: KeyboardControlsDimension | undefined | null);
11
- connect(): void;
12
- disconnect(): void;
13
- }
@@ -1,18 +0,0 @@
1
- import { Axes2D } from '../utils';
2
- import { Controls } from './Controls';
3
- export type WheelControlsAxis = Axes2D | 'max';
4
- export interface WheelControlsOptions {
5
- axis?: WheelControlsAxis;
6
- speed?: number;
7
- debounce?: boolean;
8
- element?: HTMLElement;
9
- }
10
- export declare class WheelControls extends Controls {
11
- #private;
12
- axis: WheelControlsAxis;
13
- speed: number;
14
- debounce: boolean;
15
- constructor(options?: WheelControlsOptions);
16
- connect(): void;
17
- disconnect(): void;
18
- }
@@ -1,5 +0,0 @@
1
- export { Controls } from './Controls';
2
- export { KeyboardControls } from './KeyboardControls';
3
- export { AutoplayControls, type AutoplayControlsOptions, } from './AutoplayControls';
4
- export { WheelControls, type WheelControlsOptions } from './WheelControls';
5
- export { DragControls, type DragControlsOptions } from './DragControls';
@@ -1,16 +0,0 @@
1
- import { Store, StoreCallback, StoreOptions } from '../store';
2
- import { ElementOrSelector } from '../utils';
3
- export interface CSSPropertyOptions<StoreType extends number | boolean | string> extends StoreOptions<StoreType> {
4
- rawValueCheck?: boolean;
5
- }
6
- export declare class CSSProperty<StoreType extends number | boolean | string> extends Store<StoreType> {
7
- #private;
8
- constructor(elementOrSelector: ElementOrSelector<HTMLElement>, property: string, defaultValue: StoreType, options?: CSSPropertyOptions<StoreType>);
9
- get currentRawValue(): string;
10
- observe(): void;
11
- unobserve(): void;
12
- subscribe(callback: StoreCallback<StoreType>): () => void;
13
- unsubscribe(callback: StoreCallback<StoreType>): void;
14
- close(): void;
15
- check(): void;
16
- }
@@ -1,6 +0,0 @@
1
- declare class CSSUnitParser {
2
- #private;
3
- parse(value: string): number;
4
- }
5
- export declare const cssUnitParser: CSSUnitParser;
6
- export {};
@@ -1,6 +0,0 @@
1
- declare class CSSValueParser {
2
- static CSS_UNITS: Set<string>;
3
- parse(value: string, element?: HTMLElement): any;
4
- }
5
- export declare const cssValueParser: CSSValueParser;
6
- export {};
@@ -1 +0,0 @@
1
- export declare function devMode(): void;
@@ -1,16 +0,0 @@
1
- export type DeviceOS = 'macOS' | 'iOS' | 'Windows' | 'Android' | 'Linux' | 'unknown';
2
- declare class Device {
3
- #private;
4
- constructor();
5
- get OS(): string;
6
- get gpu(): string;
7
- get gpuTier(): number;
8
- get isMobile(): boolean;
9
- get isTouch(): boolean;
10
- get isWebgl(): boolean;
11
- get isWebp(): boolean;
12
- get isApple(): boolean;
13
- resize: () => void;
14
- }
15
- export declare const device: Device;
16
- export {};
@@ -1,28 +0,0 @@
1
- import { Store } from '../store';
2
- export declare enum ViewportBreakpoints {
3
- 'mobile' = "600px",
4
- 'tablet' = "1024px",
5
- 'notebook' = "1280px",
6
- 'desktop' = "1281px"
7
- }
8
- export declare enum ViewportMediaRules {
9
- '<=mobile' = "(max-width: 600px)",
10
- '>=mobile' = "(min-width: 601px)",
11
- '<=tablet' = "(max-width: 1024px)",
12
- '>=tablet' = "(min-width: 1025px)",
13
- '<=notebook' = "(max-width: 1280px)",
14
- '>=notebook' = "(min-width: 1281px)",
15
- '<=desktop' = "(max-width: 1280px)",
16
- '>=desktop' = "(min-width: 1281px)"
17
- }
18
- declare class Viewport {
19
- #private;
20
- constructor();
21
- get width(): number;
22
- get height(): number;
23
- get type(): Store<"mobile" | "tablet" | "notebook" | "desktop" | undefined>;
24
- get pixelRatio(): number;
25
- resize: () => void;
26
- }
27
- export declare const viewport: Viewport;
28
- export {};
@@ -1,2 +0,0 @@
1
- export { device, type DeviceOS } from './Device';
2
- export { viewport, ViewportBreakpoints, ViewportMediaRules } from './Viewport';
@@ -1,9 +0,0 @@
1
- import { ElementOrSelector } from '../utils';
2
- export type ElementResizerCallback = (entry: ResizeObserverEntry) => void;
3
- export declare class ElementResizer {
4
- #private;
5
- constructor();
6
- subscribe(elementOrSelector: ElementOrSelector, callback: ElementResizerCallback): () => void;
7
- unsubscribe(callback: ElementResizerCallback): void;
8
- }
9
- export declare const elementResizer: ElementResizer;
@@ -1,9 +0,0 @@
1
- import { ElementOrSelector } from '../utils';
2
- export type IntersectorCallback = (entry: IntersectionObserverEntry) => void;
3
- export declare class Intersector {
4
- #private;
5
- constructor();
6
- subscribe(elementOrSelector: ElementOrSelector, callback: IntersectorCallback): () => void;
7
- unsubscribe(callback: IntersectorCallback): void;
8
- }
9
- export declare const intersector: Intersector;
@@ -1,23 +0,0 @@
1
- import { Store } from '../store';
2
- export type LadderDefaultStepName = number | string;
3
- export type LadderOperation = '+' | '*' | '/' | '-';
4
- export type LadderStep<T> = [LadderOperation, T];
5
- export type LadderSteps<K, T> = Map<K, LadderStep<T>>;
6
- export type LadderDefaultValueType = {
7
- [key: string]: number;
8
- };
9
- export declare class Ladder<V extends LadderDefaultValueType = LadderDefaultValueType, K extends LadderDefaultStepName = LadderDefaultStepName> extends Store<V> {
10
- #private;
11
- constructor(base: V);
12
- get base(): V;
13
- get steps(): LadderSteps<K, V>;
14
- close(): void;
15
- bind(sub: V): void;
16
- unbind(sub: V): void;
17
- deleteStep(stepName: K): void;
18
- getStepValue(stepName: K): V;
19
- getExcludedStepsValue(...stepNames: Array<K>): V;
20
- getIncludedStepsValue(...stepNames: Array<K>): V;
21
- setStep(stepName: K, action: LadderOperation, value: Partial<V>): void;
22
- calculate(): void;
23
- }