mount-observer 0.0.112 → 0.1.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/Events.js +28 -26
- package/Events.ts +34 -30
- package/MountObserver.js +235 -520
- package/MountObserver.ts +281 -542
- package/README.md +149 -56
- package/attrCoordinates.js +93 -0
- package/attrCoordinates.ts +122 -0
- package/constants.js +6 -0
- package/constants.ts +7 -0
- package/index.js +3 -0
- package/index.ts +19 -0
- package/loadImports.js +47 -0
- package/loadImports.ts +56 -0
- package/package.json +8 -119
- package/playwright.config.ts +0 -1
- package/types.d.ts +86 -0
- package/whereAttr.js +174 -0
- package/whereAttr.ts +221 -0
- package/LICENSE +0 -21
- package/Newish.js +0 -145
- package/Newish.ts +0 -169
- package/ObsAttr.js +0 -18
- package/ObsAttr.ts +0 -18
- package/RootMutObs.js +0 -49
- package/RootMutObs.ts +0 -58
- package/Synthesizer.js +0 -125
- package/Synthesizer.ts +0 -130
- package/bindish.js +0 -15
- package/bindish.ts +0 -22
- package/compose.js +0 -148
- package/compose.ts +0 -164
- package/doCleanup.js +0 -31
- package/doCleanup.ts +0 -34
- package/getWhereAttrSelector.js +0 -83
- package/getWhereAttrSelector.ts +0 -92
- package/preloadContent.js +0 -44
- package/preloadContent.ts +0 -47
- package/readAttrs.ts +0 -60
- package/refid/README.md +0 -259
- package/refid/arr.js +0 -4
- package/refid/arr.ts +0 -4
- package/refid/camelToKebab.js +0 -4
- package/refid/camelToKebab.ts +0 -4
- package/refid/genIds.js +0 -190
- package/refid/genIds.ts +0 -177
- package/refid/getAdjRefs.js +0 -38
- package/refid/getAdjRefs.ts +0 -38
- package/refid/getContext.js +0 -13
- package/refid/getContext.ts +0 -14
- package/refid/getCount.js +0 -8
- package/refid/getCount.ts +0 -8
- package/refid/getIsh.js +0 -35
- package/refid/getIsh.ts +0 -37
- package/refid/hostish.js +0 -18
- package/refid/hostish.ts +0 -20
- package/refid/ism.js +0 -78
- package/refid/ism.ts +0 -81
- package/refid/itemprops.js +0 -60
- package/refid/itemprops.ts +0 -67
- package/refid/joinMatching.js +0 -56
- package/refid/joinMatching.ts +0 -54
- package/refid/nudge.js +0 -23
- package/refid/nudge.ts +0 -23
- package/refid/regIsh.js +0 -27
- package/refid/regIsh.ts +0 -31
- package/refid/secretKeys.js +0 -5
- package/refid/secretKeys.ts +0 -5
- package/refid/splitRefs.js +0 -6
- package/refid/splitRefs.ts +0 -6
- package/refid/stdVal.js +0 -15
- package/refid/stdVal.ts +0 -15
- package/refid/via.js +0 -114
- package/refid/via.ts +0 -113
- package/slotkin/affine.js +0 -39
- package/slotkin/affine.ts +0 -46
- package/slotkin/beKindred.js +0 -45
- package/slotkin/beKindred.ts +0 -55
- package/slotkin/getBreadth.js +0 -19
- package/slotkin/getBreadth.ts +0 -21
- package/slotkin/getFrag.js +0 -22
- package/slotkin/getFrag.ts +0 -21
- package/slotkin/toQuery.js +0 -12
- package/slotkin/toQuery.ts +0 -13
- package/slotkin/wrap.js +0 -13
- package/slotkin/wrap.ts +0 -18
- package/ts-refs/LICENSE +0 -21
- package/ts-refs/README.md +0 -18
- package/ts-refs/be-a-beacon/types.d.ts +0 -22
- package/ts-refs/be-alit/types.d.ts +0 -1
- package/ts-refs/be-based/types.d.ts +0 -32
- package/ts-refs/be-bound/types.d.ts +0 -65
- package/ts-refs/be-buttoned-up/types.d.ts +0 -21
- package/ts-refs/be-calculating/types.d.ts +0 -57
- package/ts-refs/be-clonable/types.d.ts +0 -28
- package/ts-refs/be-committed/types.d.ts +0 -26
- package/ts-refs/be-consoling/types.d.ts +0 -25
- package/ts-refs/be-counted/types.d.ts +0 -88
- package/ts-refs/be-delible/types.d.ts +0 -26
- package/ts-refs/be-directive/types.d.ts +0 -43
- package/ts-refs/be-dispatching/types.d.ts +0 -41
- package/ts-refs/be-elevating/types.d.ts +0 -55
- package/ts-refs/be-enhanced/types.d.ts +0 -32
- package/ts-refs/be-enhancing/types.d.ts +0 -31
- package/ts-refs/be-evanescent/types.d.ts +0 -20
- package/ts-refs/be-eventing/types.d.ts +0 -27
- package/ts-refs/be-exportable/types.d.ts +0 -26
- package/ts-refs/be-fetching/types.d.ts +0 -73
- package/ts-refs/be-flashy/types.d.ts +0 -27
- package/ts-refs/be-formalizing/types.d.ts +0 -29
- package/ts-refs/be-formidable/types.d.ts +0 -64
- package/ts-refs/be-giddy/types.d.ts +0 -26
- package/ts-refs/be-gingerly/types.d.ts +0 -19
- package/ts-refs/be-gone/types.d.ts +0 -24
- package/ts-refs/be-hashing-out/types.d.ts +0 -22
- package/ts-refs/be-hive/types.d.ts +0 -18
- package/ts-refs/be-imbued/types.d.ts +0 -30
- package/ts-refs/be-included/types.d.ts +0 -20
- package/ts-refs/be-inclusive/types.d.ts +0 -30
- package/ts-refs/be-intersectional/types.d.ts +0 -37
- package/ts-refs/be-intl/types.d.ts +0 -28
- package/ts-refs/be-invoking/types.d.ts +0 -28
- package/ts-refs/be-joining/types.d.ts +0 -26
- package/ts-refs/be-kvetching/types.d.ts +0 -24
- package/ts-refs/be-lazy/types.d.ts +0 -29
- package/ts-refs/be-literate/types.d.ts +0 -29
- package/ts-refs/be-mediating/types.d.ts +0 -34
- package/ts-refs/be-methodical/types.d.ts +0 -20
- package/ts-refs/be-modding/types.d.ts +0 -18
- package/ts-refs/be-observant/types.d.ts +0 -27
- package/ts-refs/be-observing/types.d.ts +0 -84
- package/ts-refs/be-parsed/types.d.ts +0 -19
- package/ts-refs/be-parsing/types.d.ts +0 -37
- package/ts-refs/be-persistent/types.d.ts +0 -66
- package/ts-refs/be-propagating/types.d.ts +0 -26
- package/ts-refs/be-reformable/types.d.ts +0 -48
- package/ts-refs/be-render-neutral/types.d.ts +0 -31
- package/ts-refs/be-scoped/types.d.ts +0 -24
- package/ts-refs/be-sharing/types.d.ts +0 -17
- package/ts-refs/be-switched/types.d.ts +0 -155
- package/ts-refs/be-typed/types.d.ts +0 -36
- package/ts-refs/be-value-added/types.d.ts +0 -34
- package/ts-refs/be-valued/types.d.ts +0 -22
- package/ts-refs/be-written/types.d.ts +0 -59
- package/ts-refs/css-charts/types.d.ts +0 -38
- package/ts-refs/css-echarts/types.d.ts +0 -13
- package/ts-refs/data-props/types.d.ts +0 -27
- package/ts-refs/do-inc/types.d.ts +0 -28
- package/ts-refs/do-invoke/types.d.ts +0 -28
- package/ts-refs/do-toggle/types.d.ts +0 -27
- package/ts-refs/em-bower/types.d.ts +0 -24
- package/ts-refs/fetch-for/types.d.ts +0 -37
- package/ts-refs/folder-picker/types.d.ts +0 -43
- package/ts-refs/for-fetch/doc.d.ts +0 -98
- package/ts-refs/for-fetch/types.d.ts +0 -83
- package/ts-refs/mount-observer/types.d.ts +0 -248
- package/ts-refs/mt-si/types.d.ts +0 -21
- package/ts-refs/per-each/types.d.ts +0 -51
- package/ts-refs/soak-up/types.d.ts +0 -36
- package/ts-refs/trans-render/XV/types.d.ts +0 -69
- package/ts-refs/trans-render/asmr/types.d.ts +0 -138
- package/ts-refs/trans-render/be/types.d.ts +0 -198
- package/ts-refs/trans-render/dss/types.d.ts +0 -57
- package/ts-refs/trans-render/froop/types.d.ts +0 -416
- package/ts-refs/trans-render/funions/types.d.ts +0 -12
- package/ts-refs/trans-render/lib/mixins/types.d.ts +0 -42
- package/ts-refs/trans-render/lib/prs/types.d.ts +0 -40
- package/ts-refs/trans-render/lib/types.d.ts +0 -489
- package/ts-refs/trans-render/types.d.ts +0 -583
- package/ts-refs/wc-info/SimpleWCInfo.d.ts +0 -15
- package/ts-refs/when-resolved/types.d.ts +0 -30
- package/ts-refs/xp-as/types.d.ts +0 -20
- package/ts-refs/xtal-element/types.d.ts +0 -43
- package/ts-refs/xtal-frappe-chart/types.d.ts +0 -193
- package/upShadowSearch.js +0 -25
- package/upShadowSearch.ts +0 -23
- package/waitForEvent.js +0 -12
- package/waitForEvent.ts +0 -13
- package/waitForIsh.js +0 -21
- package/waitForIsh.ts +0 -20
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import {IEnhancement, BEAllProps, EMC} from '../trans-render/be/types';
|
|
2
|
-
|
|
3
|
-
export interface EndUserProps extends IEnhancement{
|
|
4
|
-
nudges: boolean
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface AllProps extends EndUserProps{
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type AP = AllProps;
|
|
11
|
-
|
|
12
|
-
export type PAP = Partial<AP>;
|
|
13
|
-
|
|
14
|
-
export type ProPAP = Promise<PAP>;
|
|
15
|
-
|
|
16
|
-
export type BAP = AP & BEAllProps;
|
|
17
|
-
|
|
18
|
-
export interface Actions{
|
|
19
|
-
//do(self: BAP): Promise<void>;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface AttrInfo {
|
|
23
|
-
instanceOf:
|
|
24
|
-
| String
|
|
25
|
-
| 'String'
|
|
26
|
-
| Object
|
|
27
|
-
| 'Object'
|
|
28
|
-
| Number
|
|
29
|
-
| 'Number'
|
|
30
|
-
| Boolean
|
|
31
|
-
| 'Boolean'
|
|
32
|
-
mapsTo: string
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export type RHS = string | AttrInfo;
|
|
36
|
-
|
|
37
|
-
export type ItemPropMap = {[key: string]: RHS}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import {IEnhancement, BEAllProps} from '../trans-render/be/types';
|
|
2
|
-
import { USL } from '../trans-render/XV/types';
|
|
3
|
-
|
|
4
|
-
export interface EndUserProps extends IEnhancement {
|
|
5
|
-
//params?: PersistenceParams | Array<PersistenceParams>;
|
|
6
|
-
rules: Array<PersistenceRule>
|
|
7
|
-
}
|
|
8
|
-
export interface AllProps extends EndUserProps{
|
|
9
|
-
noAttrs: boolean,
|
|
10
|
-
//isParsed?: boolean,
|
|
11
|
-
//persistenceParams?: Array<PersistenceParams>
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export type AP = AllProps;
|
|
16
|
-
|
|
17
|
-
export type PAP = Partial<AP>;
|
|
18
|
-
|
|
19
|
-
export type ProPAP = Promise<PAP>;
|
|
20
|
-
|
|
21
|
-
export type BAP = AP & BEAllProps;
|
|
22
|
-
|
|
23
|
-
export interface Actions{
|
|
24
|
-
|
|
25
|
-
hydrate(self: BAP): ProPAP;
|
|
26
|
-
noAttrs(self: BAP): ProPAP;
|
|
27
|
-
// parameterize(self: this): ProPAP
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface PersistenceRule {
|
|
31
|
-
localProp?: string,
|
|
32
|
-
localEvent?: string,
|
|
33
|
-
usl?: USL,
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// export interface PersistenceParams<TObjectToPersist = any, TEventMap = any>{
|
|
37
|
-
// what?: {[key in keyof TObjectToPersist]: boolean | string | WhatToPersistCriteria},
|
|
38
|
-
// where: PersistenceStorage,
|
|
39
|
-
// when?: {[key in keyof TEventMap]: boolean | EventCriteria},
|
|
40
|
-
// nudge?: boolean,
|
|
41
|
-
// persistOnUnload?: boolean,
|
|
42
|
-
// restoreIf: RestoreCriteria,
|
|
43
|
-
// eventToFire?: {
|
|
44
|
-
// type: string,
|
|
45
|
-
// bubbles: boolean,
|
|
46
|
-
// cancelable: boolean,
|
|
47
|
-
// composed: boolean,
|
|
48
|
-
// }
|
|
49
|
-
// }
|
|
50
|
-
|
|
51
|
-
// export interface PersistenceStorage{
|
|
52
|
-
// sessionStorage?: boolean,
|
|
53
|
-
// idb?: boolean,
|
|
54
|
-
// autoGenId?: boolean,
|
|
55
|
-
// hash?: boolean,
|
|
56
|
-
// }
|
|
57
|
-
|
|
58
|
-
// export interface EventCriteria{}
|
|
59
|
-
|
|
60
|
-
// export interface RestoreCriteria{
|
|
61
|
-
// always?: boolean,
|
|
62
|
-
// }
|
|
63
|
-
|
|
64
|
-
// export interface WhatToPersistCriteria {
|
|
65
|
-
// //beBeatified: boolean
|
|
66
|
-
// }
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import {IEnhancement} from '../trans-render/be/types';
|
|
2
|
-
|
|
3
|
-
export interface EndUserProps extends IEnhancement{
|
|
4
|
-
propagate?: string[],
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface AllProps extends EndUserProps{
|
|
8
|
-
propagators: Map<string, EventTarget>;
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export type AP = AllProps;
|
|
13
|
-
export type PAP = Partial<AP>;
|
|
14
|
-
export type ProPAP = Promise<PAP>;
|
|
15
|
-
|
|
16
|
-
export interface ISignal extends EventTarget{
|
|
17
|
-
value: any;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export interface Actions{
|
|
22
|
-
hydrate(self: this): ProPAP;
|
|
23
|
-
setKeyVal(key: string, val: any, tsKey?: string): Promise<EventTarget>;
|
|
24
|
-
getPropagator(key: string): Promise<EventTarget>;
|
|
25
|
-
getGate(prop: string, key?: string): Promise<ISignal>
|
|
26
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import {BEAllProps, IEnhancement} from '../trans-render/be/types';
|
|
2
|
-
import {Specifier, DSS} from '../trans-render/dss/types';
|
|
3
|
-
|
|
4
|
-
export interface EndUserProps extends IEnhancement<HTMLFormElement>{
|
|
5
|
-
baseLink: string,
|
|
6
|
-
baseURL: string,
|
|
7
|
-
path: string,
|
|
8
|
-
headers: HeadersInit | undefined,
|
|
9
|
-
updateOn: 'input' | 'change' | 'submit',
|
|
10
|
-
submitOptions:{
|
|
11
|
-
onlyAfter: Specifier,
|
|
12
|
-
nudges: boolean,
|
|
13
|
-
disableIfNotAllConditionsAreMet: boolean
|
|
14
|
-
},
|
|
15
|
-
headerFields: Array<DSS>
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
type BeforeToken = string;
|
|
19
|
-
type TokenKey = string | undefined
|
|
20
|
-
|
|
21
|
-
export interface IURLBuilder{
|
|
22
|
-
readonly tokens: Array<[BeforeToken, TokenKey]>
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface AllProps extends EndUserProps{
|
|
26
|
-
updateCnt: number,
|
|
27
|
-
readonly urlBuilder: IURLBuilder,
|
|
28
|
-
readonly resolvedBaseURL: true,
|
|
29
|
-
readonly fetchOptions: RequestInit,
|
|
30
|
-
readonly isFetchReady: boolean,
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export type AP = AllProps;
|
|
34
|
-
|
|
35
|
-
export type PAP = Partial<AP>;
|
|
36
|
-
|
|
37
|
-
export type ProPAP = Promise<PAP>;
|
|
38
|
-
|
|
39
|
-
export type BAP = AP & BEAllProps;
|
|
40
|
-
|
|
41
|
-
export interface Actions {
|
|
42
|
-
resolveBaseLink(self: BAP): PAP;
|
|
43
|
-
specifyDefaultBaseURL(self: BAP): PAP;
|
|
44
|
-
hydrate(self: BAP): ProPAP;
|
|
45
|
-
updateAction(self: BAP): ProPAP;
|
|
46
|
-
parsePath(self: BAP): ProPAP;
|
|
47
|
-
suggestFetch(self: BAP): PAP;
|
|
48
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import {BEAllProps, IEnhancement} from '../trans-render/be/types';
|
|
2
|
-
import {AbsorbingObject} from '../trans-render/asmr/types';
|
|
3
|
-
|
|
4
|
-
export interface RenderingHTMLScriptElement extends HTMLScriptElement{
|
|
5
|
-
renderer: (vm: any, html: any) => any,
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface EndUserProps extends IEnhancement<RenderingHTMLScriptElement>{
|
|
9
|
-
vm: any,
|
|
10
|
-
with: Array<string>,
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type Renderer = (vm: any, html: any) => any;
|
|
14
|
-
|
|
15
|
-
export interface AP extends EndUserProps{
|
|
16
|
-
renderer: Renderer,
|
|
17
|
-
absorbingObject: AbsorbingObject
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export type PAP = Partial<AP>;
|
|
21
|
-
|
|
22
|
-
export type BAP = AP & BEAllProps;
|
|
23
|
-
|
|
24
|
-
export type ProPAP = Promise<PAP>;
|
|
25
|
-
|
|
26
|
-
export interface Actions {
|
|
27
|
-
getRenderer(self: BAP): BAP;
|
|
28
|
-
doRender(self: BAP): void;
|
|
29
|
-
observe(self: BAP): ProPAP;
|
|
30
|
-
absorb(self: BAP, e?: Event): ProPAP;
|
|
31
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import {IEnhancement, BEAllProps, EMC} from '../trans-render/be/types';
|
|
2
|
-
|
|
3
|
-
export interface EndUserProps extends IEnhancement{
|
|
4
|
-
names: string;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface AllProps extends EndUserProps{
|
|
8
|
-
parsedNames: string[];
|
|
9
|
-
emc: EMC<any, AllProps>;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export type AP = AllProps;
|
|
13
|
-
|
|
14
|
-
export type PAP = Partial<AP>;
|
|
15
|
-
|
|
16
|
-
export type ProPAP = Promise<PAP>;
|
|
17
|
-
|
|
18
|
-
export type BAP = AP & BEAllProps;
|
|
19
|
-
|
|
20
|
-
export interface Actions{
|
|
21
|
-
parse(self: BAP): ProPAP;
|
|
22
|
-
hydrate(self: BAP): ProPAP;
|
|
23
|
-
retire(self: BAP): void;
|
|
24
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BEAllProps, IEnhancement } from './ts-refs/be-enhanced/types';
|
|
2
|
-
|
|
3
|
-
export interface EndUserProps extends IEnhancement {
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface AllProps extends EndUserProps {}
|
|
8
|
-
|
|
9
|
-
export type AP = AllProps;
|
|
10
|
-
|
|
11
|
-
export type PAP = Partial<AP>;
|
|
12
|
-
|
|
13
|
-
export type ProPAP = Promise<PAP>;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export interface Actions{
|
|
17
|
-
}
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
//import { ActionOnEventConfigs } from "trans-render/froop/types";
|
|
2
|
-
import {BEAllProps, EMC, IEnhancement} from '../trans-render/be/types';
|
|
3
|
-
//import {BVAAllProps} from 'be-value-added/types';
|
|
4
|
-
//import {AP as BPAP, ISignal, Actions as BPActions} from 'be-propagating/types';
|
|
5
|
-
//import {ElTypes, SignalRefType} from 'be-linked/types';
|
|
6
|
-
//import { Propagator } from "../trans-render/froop/PropSvc";
|
|
7
|
-
import {Specifier} from '../trans-render/dss/types';
|
|
8
|
-
|
|
9
|
-
export interface Element{
|
|
10
|
-
hostish(): Promise<any>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface EndUserProps extends IEnhancement<HTMLTemplateElement>{
|
|
14
|
-
lhs?: any,
|
|
15
|
-
rhs?: any,
|
|
16
|
-
ifMediaMatches?: string,
|
|
17
|
-
checkIfNonEmptyArray?: boolean;
|
|
18
|
-
op?: '===';
|
|
19
|
-
/**
|
|
20
|
-
* If lhs and/or rhs is boolean, just check that truthiness matches.
|
|
21
|
-
*/
|
|
22
|
-
beBoolish: boolean;
|
|
23
|
-
displayDelay?: number;
|
|
24
|
-
hiddenStyle?: string;
|
|
25
|
-
toggleInert?: boolean;
|
|
26
|
-
deferRendering?: boolean;
|
|
27
|
-
/** delete content when condition evaluates to false */
|
|
28
|
-
minMem?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Works with beOosoom decorator, so becomes inert when out of view
|
|
31
|
-
*/
|
|
32
|
-
beOosoom?: string;
|
|
33
|
-
js?: string;
|
|
34
|
-
transitional: boolean;
|
|
35
|
-
idRefAttr: string;
|
|
36
|
-
/**
|
|
37
|
-
* Use comments rather a DOM element to wrap multiple elements
|
|
38
|
-
*/
|
|
39
|
-
//cmtWrap?: boolean;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface AllProps extends EndUserProps{
|
|
43
|
-
val: boolean,
|
|
44
|
-
singleValSwitchesSatisfied?: boolean,
|
|
45
|
-
singleValSwitchNoGo?: boolean,
|
|
46
|
-
twoValSwitchesSatisfied?: boolean,
|
|
47
|
-
twoValSwitchNoGo?: boolean,
|
|
48
|
-
switchesSatisfied?: boolean,
|
|
49
|
-
echoVal: boolean,
|
|
50
|
-
singleValSwitches: Array<OneValueSwitch>,
|
|
51
|
-
twoValueSwitches: Array<TwoValueSwitch>,
|
|
52
|
-
offBinarySwitches?: Array<OneValueSwitch>,
|
|
53
|
-
nValueSwitches?: Array<NValueScriptSwitch>
|
|
54
|
-
rawStatements?: Array<string>,
|
|
55
|
-
notProcessedJS?: boolean,
|
|
56
|
-
emc: EMC<any, AllProps>,
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export type SwitchStatement = string;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
export interface OneValueSwitch{
|
|
64
|
-
ifPart: string,
|
|
65
|
-
specifier: Specifier,
|
|
66
|
-
req?: boolean,
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export type Op = 'equals' | 'eq' | 'lt' | 'gt';
|
|
70
|
-
|
|
71
|
-
export interface TwoPartOpStatement{
|
|
72
|
-
lhsPart: string,
|
|
73
|
-
op: Op,
|
|
74
|
-
rhsPart: string,
|
|
75
|
-
within: string,
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export interface TwoValueSwitch{
|
|
79
|
-
lhsSpecifier: Specifier,
|
|
80
|
-
rhsSpecifier: Specifier,
|
|
81
|
-
req?: boolean,
|
|
82
|
-
op?: Op,
|
|
83
|
-
lhs?: ISide,
|
|
84
|
-
rhs?: ISide,
|
|
85
|
-
onOrOff:
|
|
86
|
-
| 'on'
|
|
87
|
-
| 'On'
|
|
88
|
-
| 'off'
|
|
89
|
-
| 'Off',
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export interface Dependency extends Specifier{}
|
|
94
|
-
|
|
95
|
-
export interface CanBeSwitchedOn {
|
|
96
|
-
switchedOn?: boolean,
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export interface NValueScriptSwitch extends CanBeSwitchedOn {
|
|
100
|
-
dependsOn?: string,
|
|
101
|
-
dependencies: Array<Dependency>,
|
|
102
|
-
registeredHandler?: string,
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export type AP = AllProps;
|
|
106
|
-
|
|
107
|
-
export type PAP = Partial<AP>;
|
|
108
|
-
|
|
109
|
-
export type ProPAP = Promise<PAP>;
|
|
110
|
-
|
|
111
|
-
export type BAP = AP & BEAllProps;
|
|
112
|
-
|
|
113
|
-
export interface Actions{
|
|
114
|
-
calcSwitchesSatisfied(self: BAP): PAP;
|
|
115
|
-
calcVal(self: BAP): PAP;
|
|
116
|
-
onTrue(self: BAP): Promise<void>;
|
|
117
|
-
onFalse(self: BAP): Promise<void>;
|
|
118
|
-
// addMediaListener(self: this): POA;
|
|
119
|
-
// chkMedia(self: this, e: MediaQueryListEvent): PAP;
|
|
120
|
-
|
|
121
|
-
// doOnBinarySwitches(self: this): Promise<void>;
|
|
122
|
-
onSingleValSwitches(self: BAP): Promise<void>;
|
|
123
|
-
onTwoValSwitches(self: BAP): Promise<void>;
|
|
124
|
-
onNValSwitches(self: BAP): Promise<void>;
|
|
125
|
-
onRawStatements(self: BAP): void;
|
|
126
|
-
processJS(self: BAP): ProPAP;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
// https://github.com/webcomponents-cg/community-protocols/issues/12#issuecomment-872415080
|
|
132
|
-
//export type loadEventName = 'load';
|
|
133
|
-
export type inputEventName = 'input';
|
|
134
|
-
//export type changeEventName = 'change';
|
|
135
|
-
|
|
136
|
-
export interface ISide {
|
|
137
|
-
val: any
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export interface Elevate {
|
|
141
|
-
val: any,
|
|
142
|
-
to: string
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
export interface EventForNValueSwitch {
|
|
146
|
-
ctx: NValueScriptSwitch,
|
|
147
|
-
factors: {[key: string] : any},
|
|
148
|
-
switchOn?: boolean,
|
|
149
|
-
elevate?: Elevate
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
// export interface SignalAndEvent {
|
|
153
|
-
// signal?: WeakRef<SignalRefType>,
|
|
154
|
-
// eventSuggestion?: string
|
|
155
|
-
// }
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import {BEAllProps, IEnhancement} from '../trans-render/be/types';
|
|
2
|
-
|
|
3
|
-
export interface EndUserProps extends IEnhancement<HTMLLabelElement> {
|
|
4
|
-
triggerInsertPosition: InsertPosition;
|
|
5
|
-
labelTextContainer: string;
|
|
6
|
-
buttonContent: string;
|
|
7
|
-
nudge?: boolean;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface AllProps extends EndUserProps{
|
|
11
|
-
byob?: boolean;
|
|
12
|
-
trigger: WeakRef<HTMLButtonElement>
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export type AP = AllProps;
|
|
16
|
-
|
|
17
|
-
export type PAP = Partial<AP>;
|
|
18
|
-
|
|
19
|
-
export type BAP = AP & BEAllProps
|
|
20
|
-
|
|
21
|
-
export type ProPAP = Promise<PAP>;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export interface Actions{
|
|
26
|
-
addTypeBtn(self: BAP): ProPAP;
|
|
27
|
-
setBtnContent(self: BAP): void;
|
|
28
|
-
openDialog(self: BAP): Promise<void>
|
|
29
|
-
// beTyped(self: this): void;
|
|
30
|
-
// finale(): void;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface ITyper{
|
|
34
|
-
showDialog(): void;
|
|
35
|
-
dispose(): void;
|
|
36
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ActionOnEventConfigs } from "trans-render/froop/types";
|
|
2
|
-
import {JSONValue} from 'trans-render/lib/types';
|
|
3
|
-
import {IEnhancement, BEAllProps} from 'trans-render/be/types';
|
|
4
|
-
|
|
5
|
-
//export type TMicroElement = HTMLLinkElement | HTMLMetaElement | HTMLDataElement | HTMLTimeElement;
|
|
6
|
-
|
|
7
|
-
export interface BVAEndUserProps extends IEnhancement{
|
|
8
|
-
beVigilant?: boolean;
|
|
9
|
-
value?: string | boolean | number | Date | JSONValue;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface BVAAllProps extends BVAEndUserProps{
|
|
13
|
-
attached?: boolean;
|
|
14
|
-
mutOptions?: MutationObserverInit;
|
|
15
|
-
valueFromTextContent?: boolean;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// export interface Output{
|
|
19
|
-
// attr: string,
|
|
20
|
-
// val: string,
|
|
21
|
-
// }
|
|
22
|
-
|
|
23
|
-
export type BVAP = Partial<BVAAllProps>
|
|
24
|
-
|
|
25
|
-
export interface BVAActions{
|
|
26
|
-
hydrate(self: BVAAllProps): BVAP;
|
|
27
|
-
parseAttr(self: BVAAllProps): BVAP;
|
|
28
|
-
onValChange(self: this): void;
|
|
29
|
-
obs(self: this): void;
|
|
30
|
-
obsTC(self: this): BVAP;
|
|
31
|
-
obsAttr(self: this): BVAP;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export type PropTypes = 'href' | 'content' | 'value' | 'dateTime' | 'textContent'
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import {IEnhancement, BEAllProps, EMC} from '../trans-render/be/types';
|
|
2
|
-
|
|
3
|
-
export interface EndUserProps extends IEnhancement{
|
|
4
|
-
on: string[],
|
|
5
|
-
props: string[],
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface AllProps extends EndUserProps {}
|
|
9
|
-
|
|
10
|
-
export type AP = AllProps;
|
|
11
|
-
|
|
12
|
-
export type PAP = Partial<AP>;
|
|
13
|
-
|
|
14
|
-
export type ProPAP = Promise<PAP>;
|
|
15
|
-
|
|
16
|
-
export type BAP = AP & BEAllProps;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export interface Actions{
|
|
20
|
-
hydrate(self: BAP): void;
|
|
21
|
-
//finale(proxy: Proxy, target: Element, beDecorProps: BeDecoratedProps): void;
|
|
22
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import {IEnhancement, BEAllProps} from '../trans-render/be/types';
|
|
2
|
-
import {EndUserProps as BeBasedEndUserProps} from '../be-based/types';
|
|
3
|
-
import {Inserts} from '../../node_modules/stream-orator/types';
|
|
4
|
-
|
|
5
|
-
export interface EndUserProps extends IEnhancement{
|
|
6
|
-
from?: string,
|
|
7
|
-
to: string,
|
|
8
|
-
shadowRootMode?: 'open' | 'closed',
|
|
9
|
-
encoding: 'UTF-8' | 'UTF-16'
|
|
10
|
-
reqInit: RequestInit,
|
|
11
|
-
wrapper: string,
|
|
12
|
-
beBased: boolean | BeBasedEndUserProps,
|
|
13
|
-
beOosoom: string,
|
|
14
|
-
defer: boolean,
|
|
15
|
-
inProgressCss: string,
|
|
16
|
-
inserts:Inserts,
|
|
17
|
-
between: [lhs: string, rhs: string],
|
|
18
|
-
once: boolean,
|
|
19
|
-
onNavigate: OnNavigationProps
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
//https://www.npmjs.com/package/urlpattern-polyfill
|
|
23
|
-
interface URLPatternInit {
|
|
24
|
-
baseURL?: string;
|
|
25
|
-
username?: string;
|
|
26
|
-
password?: string;
|
|
27
|
-
protocol?: string;
|
|
28
|
-
hostname?: string;
|
|
29
|
-
port?: string;
|
|
30
|
-
pathname?: string;
|
|
31
|
-
search?: string;
|
|
32
|
-
hash?: string;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface OnNavigationProps {
|
|
36
|
-
whereSrcElementMatches: string,
|
|
37
|
-
whereDestMatchesURLPattern: URLPatternInit,
|
|
38
|
-
map: {[key: string]: string},
|
|
39
|
-
minMem: boolean,
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface AllProps extends EndUserProps{
|
|
43
|
-
to: string,
|
|
44
|
-
from: string,
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface AllProps extends EndUserProps {}
|
|
48
|
-
|
|
49
|
-
export type AP = AllProps;
|
|
50
|
-
|
|
51
|
-
export type PAP = Partial<AP>;
|
|
52
|
-
|
|
53
|
-
export type ProPAP = Promise<PAP>;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
export interface Actions{
|
|
57
|
-
hydrate(self: AP & BEAllProps): ProPAP;
|
|
58
|
-
write(self: AP & BEAllProps): ProPAP;
|
|
59
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { ITransformer } from "../trans-render/types";
|
|
2
|
-
|
|
3
|
-
export interface EndUserProps {
|
|
4
|
-
chartType: 'area' | 'bar' | 'column' | 'line' | 'pie',
|
|
5
|
-
showLabels: boolean,
|
|
6
|
-
showPrimaryAxis: boolean,
|
|
7
|
-
showDataAxes: boolean,
|
|
8
|
-
hideData: boolean,
|
|
9
|
-
show2SecondaryAxes: boolean,
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface AllProps extends EndUserProps{
|
|
13
|
-
$slot: HTMLSlotElement,
|
|
14
|
-
slotChangeCount: number,
|
|
15
|
-
data: Array<DataItem>,
|
|
16
|
-
isArea: boolean,
|
|
17
|
-
isBar: boolean,
|
|
18
|
-
isColumn: boolean,
|
|
19
|
-
isLine: boolean,
|
|
20
|
-
isPie: boolean,
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface DataItem {
|
|
24
|
-
key: string,
|
|
25
|
-
value: number,
|
|
26
|
-
scaledVal: number,
|
|
27
|
-
start: number,
|
|
28
|
-
end: number,
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export type PAP = Partial<AllProps>;
|
|
32
|
-
|
|
33
|
-
export type ProPAP = Promise<PAP>;
|
|
34
|
-
|
|
35
|
-
export interface Actions {
|
|
36
|
-
extractData(self: AllProps): ProPAP;
|
|
37
|
-
classify(self: AllProps): PAP;
|
|
38
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import {AllProps as BaseAllProps, EndUserProps as BaseEndUserProps, Actions as BaseActions} from '../css-charts/types';
|
|
2
|
-
import {EChartsOption} from 'echarts';
|
|
3
|
-
export interface EndUserProps extends BaseEndUserProps {
|
|
4
|
-
options: EChartsOption;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface AllProps extends EndUserProps, BaseAllProps {
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface Actions extends BaseActions {
|
|
11
|
-
hydrateECharts(self: AllProps): Promise<void>;
|
|
12
|
-
}
|
|
13
|
-
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import {BEAllProps, IEnhancement} from '../trans-render/be/types';
|
|
2
|
-
import { Specifier } from "../trans-render/dss/types";
|
|
3
|
-
|
|
4
|
-
export interface EndUserProps extends IEnhancement<HTMLElement>{
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface AllProps extends EndUserProps{
|
|
9
|
-
parsedStatements: Array<DataPropParameters>,
|
|
10
|
-
rawStatements?: Array<string>,
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface DataPropParameters{
|
|
14
|
-
remoteSpecifiers: Array<Specifier>,
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export type AP = AllProps;
|
|
18
|
-
|
|
19
|
-
export type PAP = Partial<AP>;
|
|
20
|
-
|
|
21
|
-
export type ProPAP = Promise<PAP>;
|
|
22
|
-
|
|
23
|
-
export type BAP = AP & BEAllProps<HTMLElement>;
|
|
24
|
-
|
|
25
|
-
export interface Actions{
|
|
26
|
-
hydrate(self: BAP) : ProPAP;
|
|
27
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import {IEnhancement, BEAllProps} from '../trans-render/be/types';
|
|
2
|
-
import { Specifier } from '../trans-render/dss/types';
|
|
3
|
-
|
|
4
|
-
export interface EndUserProps extends IEnhancement{}
|
|
5
|
-
|
|
6
|
-
export interface AP extends EndUserProps{
|
|
7
|
-
parsedStatements: Array<IncParameters>,
|
|
8
|
-
rawStatements: Array<string>,
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export type AllProps = AP;
|
|
12
|
-
|
|
13
|
-
export type PAP = Partial<AP>;
|
|
14
|
-
|
|
15
|
-
export type ProPAP = Promise<PAP>
|
|
16
|
-
|
|
17
|
-
export type BAP = AP & BEAllProps;
|
|
18
|
-
|
|
19
|
-
export interface Actions{
|
|
20
|
-
hydrate(self: BAP & BEAllProps): ProPAP;
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface IncParameters {
|
|
25
|
-
targetSpecifier: Specifier,
|
|
26
|
-
sourceSpecifier: Specifier,
|
|
27
|
-
localEventType?: string,
|
|
28
|
-
}
|