aptechka 0.7.10 → 0.8.0
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.
- package/lib/Animation-CwgyQH5y.js +110 -0
- package/lib/Animation-DBfrekcV.cjs +1 -0
- package/lib/{Composed-Dx2hs-va.cjs → Composed-CIXY_HwN.cjs} +1 -1
- package/lib/{Composed-DmLYTh1b.js → Composed-CgnR5oah.js} +1 -1
- package/lib/Damped-DmcKRSST.cjs +1 -0
- package/lib/Damped-vepIw9Ku.js +57 -0
- package/lib/{Derived-DlCvc0xQ.js → Derived-B4CxuebG.js} +1 -1
- package/lib/{Derived-a6MDQEPY.cjs → Derived-Xb4EzLLO.cjs} +1 -1
- package/lib/{SourceManager-kxr5eUyL.cjs → SourceManager-Ce49-NQe.cjs} +1 -1
- package/lib/{SourceManager-Bz329f90.js → SourceManager-U3KHUnNl.js} +1 -1
- package/lib/Store-CIs_NjhF.cjs +1 -0
- package/lib/Store-Dqcu1DnE.js +152 -0
- package/lib/{Tweened-B_mclQ61.cjs → Tweened-5Bj7ht3x.cjs} +1 -1
- package/lib/{Tweened-NE8M9onF.js → Tweened-DPi9pZ8Q.js} +1 -1
- package/lib/{Viewport-D9IL7kUQ.js → Viewport-4ZTWxLo_.js} +1 -1
- package/lib/{Viewport-CJeKnL5V.cjs → Viewport-CIBlSU2t.cjs} +1 -1
- package/lib/animation/Animation.d.ts +3 -18
- package/lib/animation/Damped.d.ts +2 -18
- package/lib/animation/Tweened.d.ts +2 -2
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.d.ts +2 -2
- package/lib/animation/index.js +3 -3
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.d.ts +3 -3
- package/lib/attribute/index.js +1 -1
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.d.ts +1 -0
- package/lib/canvas/index.js +63 -54
- package/lib/checkbox/index.cjs +1 -1
- package/lib/checkbox/index.js +3 -3
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +1 -1
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +2 -2
- package/lib/{createStylesheet-p23sZ7Ey.cjs → createStylesheet-BX1RVTfW.cjs} +1 -1
- package/lib/{createStylesheet-CR_yi5tp.js → createStylesheet-CgWN4UhW.js} +1 -1
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.d.ts +3 -3
- package/lib/css-property/index.js +1 -1
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +1 -1
- package/lib/device/Viewport.d.ts +1 -1
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/element-constructor/ElementConstructor.d.ts +1 -1
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +113 -114
- package/lib/en3/helpers/index.cjs +1 -1
- package/lib/en3/helpers/index.js +2 -2
- package/lib/en3/misc/En3SourceManager.d.ts +2 -2
- package/lib/en3/misc/index.cjs +1 -1
- package/lib/en3/misc/index.js +2 -2
- package/lib/en3/objects/fluid/En3Fluid.d.ts +5 -5
- package/lib/en3/objects/fluid/Simulation.d.ts +10 -10
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +1 -1
- package/lib/{index-CoOTQk9H.js → index-C2xWAQFq.js} +3 -3
- package/lib/{index-DVUk3T-y.cjs → index-DfSyc2GT.cjs} +1 -1
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +1 -1
- package/lib/layout-box/index.d.ts +2 -2
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +1 -1
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +7 -7
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +140 -133
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +2 -2
- package/lib/popover/PopoverElement.d.ts +1 -1
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +2 -2
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +73 -76
- package/lib/scroll/ScrollElement.d.ts +1 -1
- package/lib/scroll/ScrollSegmentElement.d.ts +6 -6
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +7 -7
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.js +1 -1
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +1 -1
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +2 -2
- package/lib/store/Derived.d.ts +1 -1
- package/lib/store/Resource.d.ts +1 -4
- package/lib/store/Store.d.ts +10 -10
- package/lib/store/StoreRegistry.d.ts +1 -1
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.d.ts +1 -3
- package/lib/store/index.js +38 -68
- package/lib/tags-C-6uXIAT.js +848 -0
- package/lib/tags-yvEoM921.cjs +1 -0
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +2 -2
- package/lib/tweaker/TweakerFieldElement.d.ts +3 -3
- package/lib/tweaker/TweakerFolderElement.d.ts +2 -2
- package/lib/tweaker/TweakerStoreManagerElement.d.ts +1 -1
- package/lib/tweaker/index.cjs +1 -1
- package/lib/tweaker/index.js +56 -56
- package/lib/tweaker/tweakerManagerConstructors.d.ts +1 -1
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +1 -1
- package/package.json +1 -65
- package/lib/Animation-6Na1MCtM.cjs +0 -1
- package/lib/Animation-CELiTw3n.js +0 -132
- package/lib/Damped-Mx_FNNVz.js +0 -63
- package/lib/Damped-loFiBsBy.cjs +0 -1
- package/lib/ElementConstructor-CAZ2ra8m.cjs +0 -1
- package/lib/ElementConstructor-OYlPJf2L.js +0 -366
- package/lib/Resource-D3TQormz.cjs +0 -1
- package/lib/Resource-DIcoALGo.js +0 -64
- package/lib/Store-6s0YXK4o.cjs +0 -1
- package/lib/Store-BI2xxXOA.js +0 -156
- package/lib/_createStore-Cf1MyeHa.cjs +0 -1
- package/lib/_createStore-Ck9bHolX.js +0 -12
- package/lib/globals-DMjysUXI.js +0 -8
- package/lib/globals-bYKki-b9.cjs +0 -1
- package/lib/instantiate-Cx-JmH6m.cjs +0 -1
- package/lib/instantiate-D87JFF1W.js +0 -125
- package/lib/jsx/ComponentElement.d.ts +0 -18
- package/lib/jsx/globals.d.ts +0 -13
- package/lib/jsx/h.d.ts +0 -7
- package/lib/jsx/hooks/basic/_createStore.d.ts +0 -4
- package/lib/jsx/hooks/basic/attachInternals.d.ts +0 -1
- package/lib/jsx/hooks/basic/attachShadow.d.ts +0 -1
- package/lib/jsx/hooks/basic/attachStylesheet.d.ts +0 -3
- package/lib/jsx/hooks/basic/createContext.d.ts +0 -2
- package/lib/jsx/hooks/basic/onConnect.d.ts +0 -3
- package/lib/jsx/hooks/basic/onDisconnect.d.ts +0 -3
- package/lib/jsx/hooks/onAnimationFrame.cjs +0 -1
- package/lib/jsx/hooks/onAnimationFrame.d.ts +0 -6
- package/lib/jsx/hooks/onAnimationFrame.js +0 -22
- package/lib/jsx/hooks/onElementResize.cjs +0 -1
- package/lib/jsx/hooks/onElementResize.d.ts +0 -5
- package/lib/jsx/hooks/onElementResize.js +0 -11
- package/lib/jsx/hooks/onIntersection.cjs +0 -1
- package/lib/jsx/hooks/onIntersection.d.ts +0 -5
- package/lib/jsx/hooks/onIntersection.js +0 -11
- package/lib/jsx/hooks/onWindowResize.cjs +0 -1
- package/lib/jsx/hooks/onWindowResize.d.ts +0 -3
- package/lib/jsx/hooks/onWindowResize.js +0 -8
- package/lib/jsx/hooks/store/createArrayStore.d.ts +0 -3
- package/lib/jsx/hooks/store/createComposed.d.ts +0 -3
- package/lib/jsx/hooks/store/createDerived.d.ts +0 -3
- package/lib/jsx/hooks/store/createDerivedArray.d.ts +0 -3
- package/lib/jsx/hooks/store/createDerivedComponent.d.ts +0 -3
- package/lib/jsx/hooks/store/createDerivedComponents.d.ts +0 -3
- package/lib/jsx/hooks/store/createResource.d.ts +0 -3
- package/lib/jsx/hooks/store/createStore.d.ts +0 -3
- package/lib/jsx/hooks/store/index.cjs +0 -1
- package/lib/jsx/hooks/store/index.d.ts +0 -7
- package/lib/jsx/hooks/store/index.js +0 -49
- package/lib/jsx/hooks/watchAttribute.cjs +0 -1
- package/lib/jsx/hooks/watchAttribute.d.ts +0 -6
- package/lib/jsx/hooks/watchAttribute.js +0 -17
- package/lib/jsx/hooks/watchCSSProperty.cjs +0 -1
- package/lib/jsx/hooks/watchCSSProperty.d.ts +0 -7
- package/lib/jsx/hooks/watchCSSProperty.js +0 -17
- package/lib/jsx/index.cjs +0 -1
- package/lib/jsx/index.d.ts +0 -13
- package/lib/jsx/index.js +0 -91
- package/lib/jsx/instantiate.d.ts +0 -5
- package/lib/jsx/register.d.ts +0 -1
- package/lib/jsx/render.d.ts +0 -6
- package/lib/jsx/type.d.ts +0 -188
- package/lib/onConnect-DGP866cj.cjs +0 -1
- package/lib/onConnect-y5DrxJ9P.js +0 -7
- package/lib/store/ArrayStore.d.ts +0 -21
- package/lib/store/DerivedArray.d.ts +0 -8
- package/lib/tags-BqJKcIve.js +0 -485
- package/lib/tags-ld5jemJw.cjs +0 -1
package/lib/source/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var y=(i,r,t)=>{if(!r.has(i))throw TypeError("Cannot "+t)};var e=(i,r,t)=>(y(i,r,"read from private field"),t?t.call(i):r.get(i)),a=(i,r,t)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,t)},u=(i,r,t,o)=>(y(i,r,"write to private field"),o?o.call(i,t):r.set(i,t),t);var p=(i,r,t)=>(y(i,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("../SourceManager-
|
|
1
|
+
"use strict";var y=(i,r,t)=>{if(!r.has(i))throw TypeError("Cannot "+t)};var e=(i,r,t)=>(y(i,r,"read from private field"),t?t.call(i):r.get(i)),a=(i,r,t)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,t)},u=(i,r,t,o)=>(y(i,r,"write to private field"),o?o.call(i,t):r.set(i,t),t);var p=(i,r,t)=>(y(i,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("../SourceManager-Ce49-NQe.cjs"),M=require("../custom-element/index.cjs"),w=require("../loading/index.cjs"),q=require("../class-linked-status/index.cjs"),x=require("../browser-CpzFX2xg.cjs"),A=require("../string-DhgS_iFl.cjs");let T=0;var h,s,c,f,l,d,n,m,g,v,E,b,C;class z extends M.CustomElement{constructor(){super();a(this,g);a(this,h,null);a(this,s,null);a(this,c,!1);a(this,f,!1);a(this,l,!1);a(this,d,"");a(this,n,new q.ClassLinkedStatus(this,{loading:!1,loaded:!1,error:!1}));a(this,m,null);a(this,E,t=>{const o=t[0];e(this,l)&&(!e(this,f)||this.hasAttribute("reload-source"))&&o.isIntersecting&&(e(this,h).current&&e(this,h).current!==e(this,h).previous&&p(this,g,v).call(this,e(this,h).current),u(this,f,!0)),o.isIntersecting?this.dispatchEvent(new CustomEvent("sourceCapture")):(this.hasAttribute("reload-source")&&p(this,g,v).call(this,void 0),this.dispatchEvent(new CustomEvent("sourceRelease")))});a(this,b,()=>{e(this,n).set("loaded",!0),e(this,n).set("error",!1),e(this,n).set("loading",!1),!e(this,l)&&!e(this,c)&&w.loading.setLoaded(e(this,d),1),u(this,c,!0)});a(this,C,t=>{e(this,n).set("loaded",!1),e(this,n).set("error",!0),e(this,n).set("loading",!1),!e(this,l)&&!e(this,c)&&w.loading.setError(e(this,d),t),u(this,c,!0)});x.isBrowser&&(u(this,d,`source-consumer-${++T}`),u(this,m,new IntersectionObserver(e(this,E))))}get consumerElement(){return e(this,s)}get sourceManager(){return e(this,h)}get status(){return e(this,n)}get isLazy(){return e(this,l)}connectedCallback(){const t=this.getAttribute("srcset");t&&(u(this,s,this.createConsumer()),e(this,s).style.cssText=`
|
|
2
2
|
display: block;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100%;
|
package/lib/source/index.js
CHANGED
|
@@ -8,8 +8,8 @@ var t = (i, r, s) => (L(i, r, "read from private field"), s ? s.call(i) : r.get(
|
|
|
8
8
|
r instanceof WeakSet ? r.add(i) : r.set(i, s);
|
|
9
9
|
}, u = (i, r, s, n) => (L(i, r, "write to private field"), n ? n.call(i, s) : r.set(i, s), s);
|
|
10
10
|
var v = (i, r, s) => (L(i, r, "access private method"), s);
|
|
11
|
-
import { S as y } from "../SourceManager-
|
|
12
|
-
import { a as j, b as q } from "../SourceManager-
|
|
11
|
+
import { S as y } from "../SourceManager-U3KHUnNl.js";
|
|
12
|
+
import { a as j, b as q } from "../SourceManager-U3KHUnNl.js";
|
|
13
13
|
import { CustomElement as A } from "../custom-element/index.js";
|
|
14
14
|
import { loading as k } from "../loading/index.js";
|
|
15
15
|
import { ClassLinkedStatus as x } from "../class-linked-status/index.js";
|
package/lib/store/Derived.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ import { Store, StoreOptions } from './Store';
|
|
|
3
3
|
export type DerivedCallback<StoreType, DerivedType> = (value: StoreType) => DerivedType;
|
|
4
4
|
export declare class Derived<DerivedType, StoreType> extends Store<DerivedType> {
|
|
5
5
|
#private;
|
|
6
|
-
constructor(store: Store<StoreType, any
|
|
6
|
+
constructor(store: Store<StoreType, any>, callback: DerivedCallback<StoreType, DerivedType>, parameters?: StoreOptions<DerivedType>);
|
|
7
7
|
close(): void;
|
|
8
8
|
}
|
package/lib/store/Resource.d.ts
CHANGED
|
@@ -7,9 +7,6 @@ export interface ResourceOptions<StoreType> extends StoreOptions<StoreType> {
|
|
|
7
7
|
export declare class Resource<StoreType> extends Store<StoreType> {
|
|
8
8
|
#private;
|
|
9
9
|
constructor(defaultValue: StoreType, fetcher: ResourceFetcher<StoreType>, options?: ResourceOptions<StoreType>);
|
|
10
|
-
get isPending(): Store<boolean, keyof import('./Store').StoreManagers
|
|
11
|
-
/**
|
|
12
|
-
* Calls fetcher again and sets isPending to true.
|
|
13
|
-
*/
|
|
10
|
+
get isPending(): Store<boolean, keyof import('./Store').StoreManagers>;
|
|
14
11
|
refetch(): void;
|
|
15
12
|
}
|
package/lib/store/Store.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface StoreState<StoreType> {
|
|
2
2
|
current: StoreType;
|
|
3
|
-
previous: StoreType
|
|
3
|
+
previous: StoreType;
|
|
4
|
+
initial: StoreType;
|
|
4
5
|
}
|
|
5
|
-
export type StoreCallback<
|
|
6
|
+
export type StoreCallback<StoreType> = (state: StoreState<StoreType>) => void;
|
|
6
7
|
export type StoreEqualityCheckCallback<StoreType> = (currentValue: StoreType, newValue: StoreType) => boolean;
|
|
7
8
|
export interface StoreManager {
|
|
8
9
|
type: string;
|
|
@@ -56,21 +57,20 @@ export interface StoreOptions<StoreType, StoreManager extends StoreManagerType =
|
|
|
56
57
|
notifyAndClose?: boolean;
|
|
57
58
|
invisible?: boolean;
|
|
58
59
|
}
|
|
59
|
-
export declare class Store<StoreType = unknown, StoreManager extends StoreManagerType = StoreManagerType
|
|
60
|
+
export declare class Store<StoreType = unknown, StoreManager extends StoreManagerType = StoreManagerType> {
|
|
60
61
|
#private;
|
|
61
62
|
constructor(value: StoreType, options?: StoreOptions<StoreType, StoreManager>);
|
|
62
63
|
get passport(): StorePassport<StoreManager> | undefined;
|
|
63
64
|
get initial(): StoreType;
|
|
64
|
-
get previous(): StoreType
|
|
65
|
+
get previous(): StoreType;
|
|
65
66
|
get current(): StoreType;
|
|
66
67
|
set current(value: StoreType);
|
|
67
|
-
get subscribers(): Set<StoreCallback<
|
|
68
|
-
get entry(): Entry;
|
|
68
|
+
get subscribers(): Set<StoreCallback<StoreType>>;
|
|
69
69
|
addMiddleware(middleware: StoreMiddleware<StoreType>): void;
|
|
70
70
|
removeMiddleware(middleware: StoreMiddleware<StoreType>): void;
|
|
71
|
-
subscribe(callback: StoreCallback<
|
|
72
|
-
unsubscribe(callback: StoreCallback<
|
|
71
|
+
subscribe(callback: StoreCallback<StoreType>): () => void;
|
|
72
|
+
unsubscribe(callback: StoreCallback<StoreType>): void;
|
|
73
73
|
reset(): void;
|
|
74
74
|
close(): void;
|
|
75
75
|
}
|
|
76
|
-
export declare const activeStores: Store<Store<any, any
|
|
76
|
+
export declare const activeStores: Store<Store<any, any>[], keyof StoreManagers>;
|
|
@@ -16,7 +16,7 @@ declare class StoreRegistry {
|
|
|
16
16
|
saveState(): void;
|
|
17
17
|
loadState(state?: string | StoreRegistryState | null): void;
|
|
18
18
|
resetState(): void;
|
|
19
|
-
updateStore(store: Store<any, any
|
|
19
|
+
updateStore(store: Store<any, any>): Store<any, any>;
|
|
20
20
|
getState(): StoreRegistryState;
|
|
21
21
|
}
|
|
22
22
|
export declare const storeRegistry: StoreRegistry;
|
package/lib/store/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";var a=(e,r,t)=>{if(!r.has(e))throw TypeError("Cannot "+t)};var s=(e,r,t)=>(a(e,r,"read from private field"),t?t.call(e):r.get(e)),d=(e,r,t)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,t)},f=(e,r,t,c)=>(a(e,r,"write to private field"),c?c.call(e,t):r.set(e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../Store-CIs_NjhF.cjs"),S=require("../Derived-Xb4EzLLO.cjs"),l=require("../Composed-CIXY_HwN.cjs");var n,i,o;class g extends h.Store{constructor(t,c,u){super(t,u);d(this,n,void 0);d(this,i,void 0);d(this,o,0);f(this,i,new h.Store(!1)),f(this,n,c),u!=null&&u.manualControl||this.refetch()}get isPending(){return s(this,i)}refetch(){s(this,i).current=!0,f(this,o,s(this,o)+1);const t=s(this,o);s(this,n).call(this).then(c=>{t===s(this,o)&&(s(this,i).current=!1,this.current=c)})}}n=new WeakMap,i=new WeakMap,o=new WeakMap;exports.Store=h.Store;exports.activeStores=h.activeStores;exports.storeRegistry=h.storeRegistry;exports.Derived=S.Derived;exports.Composed=l.Composed;exports.Resource=g;
|
package/lib/store/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { Store, activeStores, type StoreEntry, type StoreCallback, type StorePassport, type StoreMiddleware, type StoreOptions, type StoreEqualityCheckCallback, type StoreManager, type StoreStringManager, type StoreNumberManager, type StoreColorManager, type StoreBooleanManager, type StoreLinkManager, type StoreSelectManager, type StoreManagers, type StoreManagerType, } from './Store';
|
|
1
|
+
export { Store, activeStores, type StoreCallback, type StorePassport, type StoreMiddleware, type StoreOptions, type StoreEqualityCheckCallback, type StoreManager, type StoreStringManager, type StoreNumberManager, type StoreColorManager, type StoreBooleanManager, type StoreLinkManager, type StoreSelectManager, type StoreManagers, type StoreManagerType, } from './Store';
|
|
3
2
|
export { Derived, type DerivedCallback } from './Derived';
|
|
4
|
-
export { DerivedArray, type DerivedArrayCallback } from './DerivedArray';
|
|
5
3
|
export { Resource, type ResourceFetcher } from './Resource';
|
|
6
4
|
export { Composed, type ComposedCallback } from './Composed';
|
|
7
5
|
export { storeRegistry, type StoreRegistryState, type StoreRegistryStateStore, } from './StoreRegistry';
|
package/lib/store/index.js
CHANGED
|
@@ -1,72 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
return this.current.includes(...r);
|
|
33
|
-
}
|
|
34
|
-
some(...r) {
|
|
35
|
-
return this.current.some(...r);
|
|
36
|
-
}
|
|
37
|
-
remove(r) {
|
|
38
|
-
this.current = this.current.filter((t) => t !== r);
|
|
39
|
-
}
|
|
40
|
-
slice(...r) {
|
|
41
|
-
this.current = this.current.slice(...r);
|
|
42
|
-
}
|
|
43
|
-
splice(...r) {
|
|
44
|
-
const t = [...this.current];
|
|
45
|
-
t.splice(...r), this.current = t;
|
|
46
|
-
}
|
|
47
|
-
pop() {
|
|
48
|
-
const r = this.current[this.current.length - 1];
|
|
49
|
-
return r && this.slice(0, -1), r;
|
|
50
|
-
}
|
|
51
|
-
shift() {
|
|
52
|
-
const r = this.current[0];
|
|
53
|
-
return r && this.slice(1), r;
|
|
54
|
-
}
|
|
55
|
-
unshift(...r) {
|
|
56
|
-
this.current = [...r, ...this.current];
|
|
57
|
-
}
|
|
58
|
-
sort(...r) {
|
|
59
|
-
const t = [...this.current].sort(...r);
|
|
60
|
-
this.current = t;
|
|
1
|
+
var u = (e, r, t) => {
|
|
2
|
+
if (!r.has(e))
|
|
3
|
+
throw TypeError("Cannot " + t);
|
|
4
|
+
};
|
|
5
|
+
var s = (e, r, t) => (u(e, r, "read from private field"), t ? t.call(e) : r.get(e)), n = (e, r, t) => {
|
|
6
|
+
if (r.has(e))
|
|
7
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
+
r instanceof WeakSet ? r.add(e) : r.set(e, t);
|
|
9
|
+
}, o = (e, r, t, i) => (u(e, r, "write to private field"), i ? i.call(e, t) : r.set(e, t), t);
|
|
10
|
+
import { S as d } from "../Store-Dqcu1DnE.js";
|
|
11
|
+
import { a as S, s as p } from "../Store-Dqcu1DnE.js";
|
|
12
|
+
import { D } from "../Derived-B4CxuebG.js";
|
|
13
|
+
import { C as P } from "../Composed-CgnR5oah.js";
|
|
14
|
+
var f, h, c;
|
|
15
|
+
class l extends d {
|
|
16
|
+
constructor(t, i, a) {
|
|
17
|
+
super(t, a);
|
|
18
|
+
n(this, f, void 0);
|
|
19
|
+
n(this, h, void 0);
|
|
20
|
+
n(this, c, 0);
|
|
21
|
+
o(this, h, new d(!1)), o(this, f, i), a != null && a.manualControl || this.refetch();
|
|
22
|
+
}
|
|
23
|
+
get isPending() {
|
|
24
|
+
return s(this, h);
|
|
25
|
+
}
|
|
26
|
+
refetch() {
|
|
27
|
+
s(this, h).current = !0, o(this, c, s(this, c) + 1);
|
|
28
|
+
const t = s(this, c);
|
|
29
|
+
s(this, f).call(this).then((i) => {
|
|
30
|
+
t === s(this, c) && (s(this, h).current = !1, this.current = i);
|
|
31
|
+
});
|
|
61
32
|
}
|
|
62
33
|
}
|
|
34
|
+
f = new WeakMap(), h = new WeakMap(), c = new WeakMap();
|
|
63
35
|
export {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
l as
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
h as activeStores,
|
|
71
|
-
o as storeRegistry
|
|
36
|
+
P as Composed,
|
|
37
|
+
D as Derived,
|
|
38
|
+
l as Resource,
|
|
39
|
+
d as Store,
|
|
40
|
+
S as activeStores,
|
|
41
|
+
p as storeRegistry
|
|
72
42
|
};
|