aptechka 0.53.1 → 0.53.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.
@@ -1 +1 @@
1
- "use strict";var S=Object.defineProperty,p=Object.defineProperties;var E=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var h=s=>{throw TypeError(s)};var o=(s,e,t)=>e in s?S(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,l=(s,e)=>{for(var t in e||(e={}))L.call(e,t)&&o(s,t,e[t]);if(c)for(var t of c(e))T.call(e,t)&&o(s,t,e[t]);return s},d=(s,e)=>p(s,E(e));var f=(s,e,t)=>e.has(s)||h("Cannot "+t);var a=(s,e,t)=>(f(s,e,"read from private field"),t?t.call(s):e.get(s)),b=(s,e,t)=>e.has(s)?h("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,t),u=(s,e,t,r)=>(f(s,e,"write to private field"),r?r.call(s,t):e.set(s,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../Store-GokLe_g-.cjs"),m=require("../string-DUXXtU8v.cjs");require("../index-Cqw2NKev.cjs");var i;class q extends g.Store{constructor(t,r){super(r);b(this,i);u(this,i,Array.isArray(t)?t:[t])}addElement(t){a(this,i).push(t)}removeElement(t){u(this,i,a(this,i).filter(r=>r!==t))}isTrue(t){return this.current[t]===!0}isFalse(t){return this.current[t]===!1}reset(){super.reset();for(const t in this.initial)this.set(t,this.initial[t])}set(t,r=!0){this.current=d(l({},this.current),{[t]:r}),r?a(this,i).forEach(n=>n.classList.add(m.camelToKebab(t))):a(this,i).forEach(n=>n.classList.remove(m.camelToKebab(t)))}}i=new WeakMap;exports.ClassLinkedStatus=q;
1
+ "use strict";var S=Object.defineProperty,p=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var h=s=>{throw TypeError(s)};var c=(s,e,t)=>e in s?S(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,l=(s,e)=>{for(var t in e||(e={}))E.call(e,t)&&c(s,t,e[t]);if(u)for(var t of u(e))L.call(e,t)&&c(s,t,e[t]);return s},d=(s,e)=>p(s,y(e));var f=(s,e,t)=>e.has(s)||h("Cannot "+t);var n=(s,e,t)=>(f(s,e,"read from private field"),t?t.call(s):e.get(s)),b=(s,e,t)=>e.has(s)?h("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,t),o=(s,e,t,i)=>(f(s,e,"write to private field"),i?i.call(s,t):e.set(s,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("../Store-GokLe_g-.cjs"),m=require("../string-DUXXtU8v.cjs");require("../index-Cqw2NKev.cjs");var r;class g extends T.Store{constructor(t,i){super(i);b(this,r);o(this,r,Array.isArray(t)?t:[t]);for(const a in this.initial)this.set(a,this.initial[a])}addElement(t){n(this,r).push(t)}removeElement(t){o(this,r,n(this,r).filter(i=>i!==t))}isTrue(t){return this.current[t]===!0}isFalse(t){return this.current[t]===!1}reset(){super.reset();for(const t in this.initial)this.set(t,this.initial[t])}set(t,i=!0){this.current=d(l({},this.current),{[t]:i}),i?n(this,r).forEach(a=>a.classList.add(m.camelToKebab(t))):n(this,r).forEach(a=>a.classList.remove(m.camelToKebab(t)))}}r=new WeakMap;exports.ClassLinkedStatus=g;
@@ -1,56 +1,58 @@
1
1
  var E = Object.defineProperty, L = Object.defineProperties;
2
2
  var S = Object.getOwnPropertyDescriptors;
3
- var c = Object.getOwnPropertySymbols;
3
+ var o = Object.getOwnPropertySymbols;
4
4
  var b = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
5
- var u = (t) => {
6
- throw TypeError(t);
5
+ var l = (s) => {
6
+ throw TypeError(s);
7
7
  };
8
- var n = (t, r, s) => r in t ? E(t, r, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[r] = s, l = (t, r) => {
9
- for (var s in r || (r = {}))
10
- b.call(r, s) && n(t, s, r[s]);
11
- if (c)
12
- for (var s of c(r))
13
- x.call(r, s) && n(t, s, r[s]);
14
- return t;
15
- }, m = (t, r) => L(t, S(r));
16
- var f = (t, r, s) => r.has(t) || u("Cannot " + s);
17
- var a = (t, r, s) => (f(t, r, "read from private field"), s ? s.call(t) : r.get(t)), p = (t, r, s) => r.has(t) ? u("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(t) : r.set(t, s), o = (t, r, s, e) => (f(t, r, "write to private field"), e ? e.call(t, s) : r.set(t, s), s);
18
- import { S as A } from "../Store-swP_0ymB.js";
8
+ var c = (s, i, t) => i in s ? E(s, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[i] = t, u = (s, i) => {
9
+ for (var t in i || (i = {}))
10
+ b.call(i, t) && c(s, t, i[t]);
11
+ if (o)
12
+ for (var t of o(i))
13
+ x.call(i, t) && c(s, t, i[t]);
14
+ return s;
15
+ }, f = (s, i) => L(s, S(i));
16
+ var m = (s, i, t) => i.has(s) || l("Cannot " + t);
17
+ var h = (s, i, t) => (m(s, i, "read from private field"), t ? t.call(s) : i.get(s)), p = (s, i, t) => i.has(s) ? l("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(s) : i.set(s, t), n = (s, i, t, r) => (m(s, i, "write to private field"), r ? r.call(s, t) : i.set(s, t), t);
18
+ import { S as y } from "../Store-swP_0ymB.js";
19
19
  import { c as d } from "../string-BlMQbe8b.js";
20
20
  import "../index-euf5anj6.js";
21
- var i;
22
- class F extends A {
23
- constructor(s, e) {
24
- super(e);
25
- p(this, i);
26
- o(this, i, Array.isArray(s) ? s : [s]);
21
+ var e;
22
+ class C extends y {
23
+ constructor(t, r) {
24
+ super(r);
25
+ p(this, e);
26
+ n(this, e, Array.isArray(t) ? t : [t]);
27
+ for (const a in this.initial)
28
+ this.set(a, this.initial[a]);
27
29
  }
28
- addElement(s) {
29
- a(this, i).push(s);
30
+ addElement(t) {
31
+ h(this, e).push(t);
30
32
  }
31
- removeElement(s) {
32
- o(this, i, a(this, i).filter((e) => e !== s));
33
+ removeElement(t) {
34
+ n(this, e, h(this, e).filter((r) => r !== t));
33
35
  }
34
- isTrue(s) {
35
- return this.current[s] === !0;
36
+ isTrue(t) {
37
+ return this.current[t] === !0;
36
38
  }
37
- isFalse(s) {
38
- return this.current[s] === !1;
39
+ isFalse(t) {
40
+ return this.current[t] === !1;
39
41
  }
40
42
  reset() {
41
43
  super.reset();
42
- for (const s in this.initial)
43
- this.set(s, this.initial[s]);
44
+ for (const t in this.initial)
45
+ this.set(t, this.initial[t]);
44
46
  }
45
- set(s, e = !0) {
46
- this.current = m(l({}, this.current), { [s]: e }), e ? a(this, i).forEach(
47
- (h) => h.classList.add(d(s))
48
- ) : a(this, i).forEach(
49
- (h) => h.classList.remove(d(s))
47
+ set(t, r = !0) {
48
+ this.current = f(u({}, this.current), { [t]: r }), r ? h(this, e).forEach(
49
+ (a) => a.classList.add(d(t))
50
+ ) : h(this, e).forEach(
51
+ (a) => a.classList.remove(d(t))
50
52
  );
51
53
  }
52
54
  }
53
- i = new WeakMap();
55
+ e = new WeakMap();
54
56
  export {
55
- F as ClassLinkedStatus
57
+ C as ClassLinkedStatus
56
58
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.53.1",
3
+ "version": "0.53.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"