mount-observer 0.0.111 → 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 -115
- 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 -18
- 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 -190
- 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,57 +0,0 @@
|
|
|
1
|
-
import {BEAllProps, EventListenerOrFn, IEnhancement} from '../trans-render/be/types';
|
|
2
|
-
import {StringWithAutocompleteOptions} from '../trans-render/types';
|
|
3
|
-
import { Specifier } from '../trans-render/dss/types';
|
|
4
|
-
import {AbsorbingObject} from '../trans-render/asmr/types';
|
|
5
|
-
import {Handlers} from '../be-hive/types';
|
|
6
|
-
|
|
7
|
-
export interface EndUserProps extends IEnhancement<HTMLElement>{
|
|
8
|
-
forAttr?: string,
|
|
9
|
-
handler: string
|
|
10
|
-
eventArg: string,
|
|
11
|
-
js: string,
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface AllProps extends EndUserProps{
|
|
15
|
-
//calculator: {new: () => EventListenerObject},
|
|
16
|
-
// value: any;
|
|
17
|
-
// isParsed: boolean;
|
|
18
|
-
// attrExpr?: string | null;
|
|
19
|
-
//publishEventType: 'input' | 'change' | 'load',
|
|
20
|
-
handlerObj?: EventListenerOrFn,
|
|
21
|
-
defaultEventType: StringWithAutocompleteOptions<
|
|
22
|
-
| 'input'
|
|
23
|
-
| 'change'
|
|
24
|
-
>,
|
|
25
|
-
forArgs: string[],
|
|
26
|
-
remoteSpecifiers: Array<Specifier>,
|
|
27
|
-
isAttached?: boolean,
|
|
28
|
-
isOutputEl?: boolean,
|
|
29
|
-
enhElLocalName: string,
|
|
30
|
-
enhKey: string,
|
|
31
|
-
categorized?: boolean,
|
|
32
|
-
remSpecifierLen?: number,
|
|
33
|
-
propToAO: {[key: string] : AbsorbingObject},
|
|
34
|
-
checkedRegistry: boolean,
|
|
35
|
-
notYetParsedJS: boolean,
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export type AP = AllProps;
|
|
39
|
-
|
|
40
|
-
export type PAP = Partial<AP>;
|
|
41
|
-
|
|
42
|
-
export type ProPAP = Promise<PAP>;
|
|
43
|
-
|
|
44
|
-
export type BAP = AP & BEAllProps & Handlers;
|
|
45
|
-
|
|
46
|
-
export interface Actions{
|
|
47
|
-
categorizeEl(self: BAP): PAP;
|
|
48
|
-
getEvtHandler(self: BAP): PAP;
|
|
49
|
-
parseForAttr(self: BAP): PAP;
|
|
50
|
-
getDefltEvtType(self: BAP): PAP;
|
|
51
|
-
// findScriptEl(self: BAP): PAP;
|
|
52
|
-
// importSymbols(self: BAP): ProPAP;
|
|
53
|
-
genRemoteSpecifiers(self: BAP): PAP;
|
|
54
|
-
seek(self: BAP): ProPAP;
|
|
55
|
-
hydrate(self: BAP): ProPAP;
|
|
56
|
-
parseJS(self: BAP): ProPAP;
|
|
57
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { IEnhancement, BEAllProps } from '../trans-render/be/types';
|
|
2
|
-
|
|
3
|
-
export interface EndUserProps extends IEnhancement{
|
|
4
|
-
triggerInsertPosition: InsertPosition;
|
|
5
|
-
cloneInsertPosition?: InsertPosition;
|
|
6
|
-
buttonContent: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface AllProps extends EndUserProps{
|
|
10
|
-
byob?: boolean,
|
|
11
|
-
trigger?: WeakRef<HTMLButtonElement>
|
|
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
|
-
|
|
24
|
-
export interface Actions{
|
|
25
|
-
addCloneBtn(self: BAP): ProPAP;
|
|
26
|
-
setBtnContent(self: BAP): void;
|
|
27
|
-
beCloned(self: BAP): void;
|
|
28
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import {BEAllProps, IEnhancement} from '../trans-render/be/types';
|
|
2
|
-
import { RoundaboutReady } from '../trans-render/froop/types';
|
|
3
|
-
|
|
4
|
-
export interface EndUserProps extends IEnhancement{
|
|
5
|
-
to: string;
|
|
6
|
-
nudges: boolean;
|
|
7
|
-
on: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface AllProps extends EndUserProps {
|
|
11
|
-
//isParsed?: boolean;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export type AP = AllProps;
|
|
15
|
-
|
|
16
|
-
export type PAP = Partial<AP>;
|
|
17
|
-
|
|
18
|
-
export type ProPAP = Promise<PAP>;
|
|
19
|
-
|
|
20
|
-
export type BAP = AllProps & BEAllProps & RoundaboutReady;
|
|
21
|
-
|
|
22
|
-
export interface Actions{
|
|
23
|
-
hydrate(self: BAP): ProPAP;
|
|
24
|
-
// findTarget(self: this): Promise<void>;
|
|
25
|
-
// handleCommit(self: this, e: KeyboardEvent): Promise<void>;
|
|
26
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import {IEnhancement, BEAllProps, EMC} from '../trans-render/be/types';
|
|
2
|
-
|
|
3
|
-
export interface EndUserProps extends IEnhancement{
|
|
4
|
-
level:
|
|
5
|
-
| 'log'
|
|
6
|
-
| 'warn'
|
|
7
|
-
| 'error',
|
|
8
|
-
ignore: string[]
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface AllProps extends EndUserProps{}
|
|
12
|
-
|
|
13
|
-
export type AP = AllProps;
|
|
14
|
-
|
|
15
|
-
export type PAP = Partial<AP>;
|
|
16
|
-
|
|
17
|
-
export type ProPAP = Promise<PAP>;
|
|
18
|
-
|
|
19
|
-
export type BAP = AP & BEAllProps;
|
|
20
|
-
|
|
21
|
-
export interface Actions {
|
|
22
|
-
hydrate(self: BAP): PAP;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export type dispatch = (event: Event) => boolean ;
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import {BEAllProps, IEnhancement} from '../trans-render/be/types';
|
|
2
|
-
import { Specifier } from "../trans-render/dss/types";
|
|
3
|
-
import { RoundaboutReady } from '../trans-render/froop/types';
|
|
4
|
-
|
|
5
|
-
export interface EndUserPropsBasic extends IEnhancement{
|
|
6
|
-
/**
|
|
7
|
-
* How much to increment on each event
|
|
8
|
-
*/
|
|
9
|
-
step: number;
|
|
10
|
-
/**
|
|
11
|
-
* Don't allow count to exceed this number
|
|
12
|
-
*/
|
|
13
|
-
ltOrEq?: number;
|
|
14
|
-
/** Don't allow count to reach this number. */
|
|
15
|
-
lt?: number;
|
|
16
|
-
/**
|
|
17
|
-
* Starting value of count, including after looping
|
|
18
|
-
*/
|
|
19
|
-
min?: number;
|
|
20
|
-
/**
|
|
21
|
-
* Make count loop back to min value after hitting the ceiling set by ltOrEq or lt
|
|
22
|
-
*/
|
|
23
|
-
loop?: boolean;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Slowly "awakens" a disabled element. If the disabled attribute is not set to a number, or is set to "1", removes the disabled attribute. If it is a larger number, decrements the number by 1.
|
|
27
|
-
*/
|
|
28
|
-
nudges?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Event name to trigger count increment
|
|
31
|
-
*/
|
|
32
|
-
incOn: string;
|
|
33
|
-
/**
|
|
34
|
-
* Property to subscribe to trigger count increment
|
|
35
|
-
* [TODO]
|
|
36
|
-
*/
|
|
37
|
-
incOnSet?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Disable on max
|
|
40
|
-
*/
|
|
41
|
-
disableOnMax?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* set lt = 1
|
|
44
|
-
* and min = 0
|
|
45
|
-
* and step = 1
|
|
46
|
-
* and disableOnMax = true
|
|
47
|
-
*/
|
|
48
|
-
once?: boolean
|
|
49
|
-
}
|
|
50
|
-
export interface EndUserProps extends EndUserPropsBasic, IEnhancement {
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export interface AllProps extends EndUserProps{
|
|
55
|
-
count: number;
|
|
56
|
-
value: number;
|
|
57
|
-
parsedStatements?: Array<SharingParameters>;
|
|
58
|
-
//checked: boolean;
|
|
59
|
-
isMaxedOut?: boolean;
|
|
60
|
-
//isParsed?: boolean;
|
|
61
|
-
//transformer?: ITransformer<EndUserPropsBasic, Actions, {}>
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export interface SharingParameters{
|
|
65
|
-
localProp: string,
|
|
66
|
-
remoteSpecifiers: Array<Specifier>
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
export type AP = AllProps;
|
|
71
|
-
|
|
72
|
-
export type PAP = Partial<AP>;
|
|
73
|
-
|
|
74
|
-
export type ProPAP = Promise<PAP>
|
|
75
|
-
|
|
76
|
-
export type BAP = AllProps & BEAllProps & RoundaboutReady;
|
|
77
|
-
|
|
78
|
-
export interface Actions{
|
|
79
|
-
hydrate(self: BAP): ProPAP;
|
|
80
|
-
onCount(self: BAP): PAP;
|
|
81
|
-
//shareValue(self: BAP): ProPAP;
|
|
82
|
-
onOnce(self: BAP): PAP
|
|
83
|
-
// inc(self: this): PAP;
|
|
84
|
-
// disableInc(self: this): POA;
|
|
85
|
-
// check(self: this, allGood: PAP): PAP;
|
|
86
|
-
// hydrateTransform(self: this): ProPAP;
|
|
87
|
-
}
|
|
88
|
-
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { IEnhancement, BEAllProps } from '../trans-render/be/types';
|
|
2
|
-
|
|
3
|
-
export interface EndUserProps extends IEnhancement{
|
|
4
|
-
triggerInsertPosition: InsertPosition;
|
|
5
|
-
buttonContent: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface AllProps extends EndUserProps{
|
|
9
|
-
byob?: boolean,
|
|
10
|
-
trigger: WeakRef<HTMLButtonElement>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type AP = AllProps;
|
|
14
|
-
|
|
15
|
-
export type PAP = Partial<AP>;
|
|
16
|
-
|
|
17
|
-
export type ProPAP = Promise<PAP>;
|
|
18
|
-
|
|
19
|
-
export type BAP = AP & BEAllProps;
|
|
20
|
-
|
|
21
|
-
export interface Actions{
|
|
22
|
-
|
|
23
|
-
addDeleteBtn(self: BAP): ProPAP ;
|
|
24
|
-
setBtnContent(self: BAP): void;
|
|
25
|
-
beDeleted(self: BAP): void;
|
|
26
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import {IEnhancement, BEAllProps} from '../trans-render/be/types';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
*
|
|
5
|
-
*/
|
|
6
|
-
export interface DirectoryPickerOptions {
|
|
7
|
-
/**
|
|
8
|
-
* By specifying an ID, the browser can remember different directories for different IDs. If the same ID is used for another picker, the picker opens in the same directory.
|
|
9
|
-
*/
|
|
10
|
-
id?: string;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* A string that defaults to "read" for read-only access or "readwrite" for read and write access to the directory.
|
|
14
|
-
*/
|
|
15
|
-
mode?: 'read' | 'readwrite';
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* A FileSystemHandle or a well known directory ("desktop", "documents", "downloads", "music", "pictures", or "videos") to open the dialog in.
|
|
19
|
-
*
|
|
20
|
-
*/
|
|
21
|
-
startIn?: 'documents' | 'downloads' | 'music' | 'pictures' | 'videos' | 'home' | 'desktop' | File;
|
|
22
|
-
}
|
|
23
|
-
export interface EndUserProps extends IEnhancement{
|
|
24
|
-
options: DirectoryPickerOptions;
|
|
25
|
-
noNudge: boolean;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface AllProps extends EndUserProps{
|
|
29
|
-
directoryHandle?: FileSystemDirectoryHandle;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export type AP = AllProps;
|
|
33
|
-
|
|
34
|
-
export type PAP = Partial<AP>;
|
|
35
|
-
|
|
36
|
-
export type ProPAP = Promise<PAP>;
|
|
37
|
-
|
|
38
|
-
export type BAP = AP & BEAllProps;
|
|
39
|
-
|
|
40
|
-
export interface Actions{
|
|
41
|
-
hydrate(self: BAP): ProPAP;
|
|
42
|
-
}
|
|
43
|
-
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import {IEnhancement, BEAllProps, EMC} from '../trans-render/be/types';
|
|
2
|
-
|
|
3
|
-
export interface EndUserProps extends IEnhancement{
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface AllProps extends EndUserProps{
|
|
8
|
-
crudeDispatchRules: Array<CrudeDispatchRule>,
|
|
9
|
-
dispatchRules: Array<DispatchRule>
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export type DispatchStatement = string;
|
|
13
|
-
|
|
14
|
-
export interface CrudeDispatchRule{
|
|
15
|
-
dispatchOn?: string,
|
|
16
|
-
dispatchOnPropChange?: string,
|
|
17
|
-
qualifiers: string,
|
|
18
|
-
dispatch: string,
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface DispatchRule extends CrudeDispatchRule{
|
|
22
|
-
|
|
23
|
-
bubbles?: boolean,
|
|
24
|
-
cancelable?: boolean,
|
|
25
|
-
composed?: boolean,
|
|
26
|
-
replace?: boolean,
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export type AP = AllProps;
|
|
30
|
-
|
|
31
|
-
export type PAP = Partial<AP>;
|
|
32
|
-
|
|
33
|
-
export type ProPAP = Promise<PAP>;
|
|
34
|
-
|
|
35
|
-
export type BAP = AP & BEAllProps;
|
|
36
|
-
|
|
37
|
-
export interface Actions{
|
|
38
|
-
//onCamelized(self: this): ProPAP;
|
|
39
|
-
finishParsing(self: BAP): PAP;
|
|
40
|
-
hydrate(self: BAP): ProPAP;
|
|
41
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import {IEnhancement, BEAllProps} from '../trans-render/be/types';
|
|
2
|
-
import {AbsorbingObject, SharingObject} from '../trans-render/asmr/types';
|
|
3
|
-
import { Specifier } from "../trans-render/dss/types";
|
|
4
|
-
|
|
5
|
-
export interface EndUserProps extends IEnhancement{
|
|
6
|
-
/**
|
|
7
|
-
* abbrev for pass server-rendered value
|
|
8
|
-
* This will pass the initial value from the enhanced element if applicable
|
|
9
|
-
*/
|
|
10
|
-
passSRV: boolean
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface AP extends EndUserProps {
|
|
14
|
-
//parsedStatements?: Array<ElevatingParameters>,
|
|
15
|
-
bindings: Array<Binding>,
|
|
16
|
-
rawStatements?: Array<string>,
|
|
17
|
-
bindingRules: Array<BindingRule>,
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export type AllProps = AP;
|
|
21
|
-
|
|
22
|
-
export type BAP = AP & BEAllProps;
|
|
23
|
-
|
|
24
|
-
export type PAP = Partial<AP>
|
|
25
|
-
|
|
26
|
-
export type ProPAP = Promise<PAP>
|
|
27
|
-
|
|
28
|
-
export interface Actions{
|
|
29
|
-
noAttrs(self: BAP): ProPAP;
|
|
30
|
-
hydrate(self: BAP): ProPAP;
|
|
31
|
-
getBindings(self: BAP): ProPAP;
|
|
32
|
-
onRawStatements(self: BAP): void;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// export interface ElevatingParameters {
|
|
36
|
-
// localPropToElevate?: string,
|
|
37
|
-
// remoteSpecifiers: Array<Specifier>,
|
|
38
|
-
// localEventType?: string,
|
|
39
|
-
// }
|
|
40
|
-
|
|
41
|
-
export interface BindingRule {
|
|
42
|
-
|
|
43
|
-
localPropToElevate?: string,
|
|
44
|
-
localEventType?: string,
|
|
45
|
-
dependencyPart?: string,
|
|
46
|
-
remoteSpecifier?: Specifier,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface Binding {
|
|
52
|
-
remoteShareObj: SharingObject,
|
|
53
|
-
localAbsObj: AbsorbingObject,
|
|
54
|
-
}
|
|
55
|
-
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Actions, Compacts, Handlers, Infractions, Positractions, Hitches } from '../trans-render/froop/types';
|
|
2
|
-
export {IEnhancement, BEAllProps} from '../trans-render/be/types';
|
|
3
|
-
|
|
4
|
-
export type Enhancement = string; //camelCase;
|
|
5
|
-
export type EnhKey = string; //lisp case;
|
|
6
|
-
export type FQN = string;
|
|
7
|
-
|
|
8
|
-
export interface PropInfo{
|
|
9
|
-
dry?: boolean;
|
|
10
|
-
ro?: boolean;
|
|
11
|
-
def?: any;
|
|
12
|
-
propName?: string,
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export type PropLookup = {[key: string]: PropInfo}
|
|
16
|
-
|
|
17
|
-
export interface BEConfig<TProps = any, TActions = TProps, ETProps = TProps>{
|
|
18
|
-
propDefaults?: Partial<{[key in keyof TProps]: TProps[key]}>;
|
|
19
|
-
propInfo?: Partial<{[key in keyof TProps]: PropInfo}>;
|
|
20
|
-
actions?: Actions<TProps, TActions>;
|
|
21
|
-
/**
|
|
22
|
-
* inferred actions
|
|
23
|
-
*/
|
|
24
|
-
infractions?: Infractions<TProps>,
|
|
25
|
-
compacts?: Compacts<TProps, TProps & TActions>;
|
|
26
|
-
hitch?: Hitches<TProps, TActions>
|
|
27
|
-
handlers?: Handlers<ETProps, TActions>;
|
|
28
|
-
positractions?: Positractions<TProps, TActions>;
|
|
29
|
-
watchedBranches?: Set<number>;
|
|
30
|
-
isSleepless?: boolean;
|
|
31
|
-
}
|
|
32
|
-
|
|
@@ -1,31 +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
|
-
|
|
7
|
-
export interface AllProps extends EndUserProps{
|
|
8
|
-
parsedStatements: Array<EnhancingParameters>,
|
|
9
|
-
rawStatements?: Array<string>
|
|
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
|
-
hydrate(self: BAP): ProPAP;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface EnhancingParameters{
|
|
25
|
-
remoteSpecifierString: string;
|
|
26
|
-
remoteSpecifier: Specifier;
|
|
27
|
-
enhancementBase: string;
|
|
28
|
-
localSpecifierString: string;
|
|
29
|
-
localSpecifier: Specifier;
|
|
30
|
-
remotePropertyPath: string;
|
|
31
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import {IEnhancement, BEAllProps, EMC} from '../trans-render/be/types';
|
|
2
|
-
|
|
3
|
-
export interface EndUserProps extends IEnhancement{
|
|
4
|
-
whenDefined: string[];
|
|
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
|
-
//onWhenDefined(self: BAP): void;
|
|
20
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import {IEnhancement, BEAllProps} from '../trans-render/be/types';
|
|
2
|
-
|
|
3
|
-
// export interface EventHandlingScriptElement extends HTMLScriptElement{
|
|
4
|
-
// on: {[key: string]: (e: Event) => void}
|
|
5
|
-
// e: (e: Event) => void;
|
|
6
|
-
// }
|
|
7
|
-
|
|
8
|
-
export interface EndUserProps extends IEnhancement<HTMLScriptElement>{
|
|
9
|
-
nudges: string,
|
|
10
|
-
on: string,
|
|
11
|
-
onNudges: string,
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface AllProps extends EndUserProps{}
|
|
15
|
-
|
|
16
|
-
export type AP = AllProps;
|
|
17
|
-
|
|
18
|
-
export type PAP = Partial<AP>;
|
|
19
|
-
|
|
20
|
-
export type ProPAP = Promise<PAP>;
|
|
21
|
-
|
|
22
|
-
export type BAP = AP & BEAllProps;
|
|
23
|
-
|
|
24
|
-
export interface Actions{
|
|
25
|
-
calcDefaults(self: BAP): ProPAP,
|
|
26
|
-
hydrate(self: BAP): ProPAP,
|
|
27
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import {IEnhancement, BEAllProps} from '../trans-render/be/types';
|
|
2
|
-
|
|
3
|
-
export interface EndUserProps<Exports=any> extends IEnhancement<HTMLScriptElement>{
|
|
4
|
-
// //guid?: string;
|
|
5
|
-
// //shareByID?: boolean;
|
|
6
|
-
// enabled?: boolean;
|
|
7
|
-
// beOosoom?: string;
|
|
8
|
-
preferAttrForBareImports?: boolean;
|
|
9
|
-
attached: boolean;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface AllProps<Exports=any> extends EndUserProps<Exports>{
|
|
13
|
-
exports?: Exports;
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export type PAP = Partial<AllProps>;
|
|
18
|
-
|
|
19
|
-
export type ProPAP = Promise<PAP>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export interface Actions{
|
|
23
|
-
hydrate(ap: AllProps): Promise<PAP>;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import {IEnhancement, BEAllProps, EMC} from '../trans-render/be/types';
|
|
2
|
-
|
|
3
|
-
export interface EndUserProps extends IEnhancement{
|
|
4
|
-
pre?: string,
|
|
5
|
-
post?: string,
|
|
6
|
-
on?: string,
|
|
7
|
-
eventName?: string,
|
|
8
|
-
eventCount?: number,
|
|
9
|
-
debounceDuration?: number,
|
|
10
|
-
options?: FetchOptions,
|
|
11
|
-
urlProp: string,
|
|
12
|
-
baseLink?: string,
|
|
13
|
-
}
|
|
14
|
-
export interface AllProps extends EndUserProps {
|
|
15
|
-
value: any;
|
|
16
|
-
interpolating: boolean;
|
|
17
|
-
full: boolean;
|
|
18
|
-
url: string;
|
|
19
|
-
urlEcho: string;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface FetchOptions {
|
|
23
|
-
|
|
24
|
-
init?: RequestInit,
|
|
25
|
-
authorization?:{
|
|
26
|
-
winObj?: 'sessionStorage' | 'localStorage',
|
|
27
|
-
key?: string
|
|
28
|
-
val?: string,
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
//headers?: {[key: string]: string},
|
|
32
|
-
//headerFormSelector?: string,
|
|
33
|
-
//headerFormSubmitOn?: string | string[],
|
|
34
|
-
//valObservePairs: ValObservePairs;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// export interface ValObservePairs{
|
|
38
|
-
// authorization?: IObserve,
|
|
39
|
-
// authorizationVal?: string,
|
|
40
|
-
// body?: IObserve,
|
|
41
|
-
// bodyVal?: any,
|
|
42
|
-
// cache?: IObserve<'default' | 'no-store' | 'reload' | 'no-cache' | 'force-cache' | 'only-if-cached'>,
|
|
43
|
-
// cacheVal?: 'default' | 'no-store' | 'reload' | 'no-cache' | 'force-cache' | 'only-if-cached',
|
|
44
|
-
// contentType?: IObserve,
|
|
45
|
-
// contentTypeVal?: string,
|
|
46
|
-
// credentials?: IObserve<'omit' | 'same-origin' | 'include'>,
|
|
47
|
-
// credentialsVal?: 'omit' | 'same-origin' | 'include',
|
|
48
|
-
// method?: IObserve<'GET' | 'POST' | 'PUT' | 'DELETE'>,
|
|
49
|
-
// methodVal?: 'GET' | 'POST' | 'PUT' | 'DELETE',
|
|
50
|
-
// mode?: IObserve<'cors' | 'no-cors' | 'same-origin' | 'navigate'>,
|
|
51
|
-
// modeVal?: 'cors' | 'no-cors' | 'same-origin' | 'navigate',
|
|
52
|
-
// redirect?: IObserve<'follow' | 'error' | 'manual'>,
|
|
53
|
-
// redirectVal?: 'follow' | 'error' | 'manual',
|
|
54
|
-
// referrerPolicy?: IObserve<'no-referrer' | 'no-referrer-when-downgrade' | 'same-origin' | 'origin' | 'strict-origin' | 'origin-when-cross-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url'>,
|
|
55
|
-
// referrerPolicyVal?: 'no-referrer' | 'no-referrer-when-downgrade' | 'same-origin' | 'origin' | 'strict-origin' | 'origin-when-cross-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url',
|
|
56
|
-
// }
|
|
57
|
-
|
|
58
|
-
export interface AllProps extends EndUserProps {}
|
|
59
|
-
|
|
60
|
-
export type AP = AllProps;
|
|
61
|
-
|
|
62
|
-
export type PAP = Partial<AP>;
|
|
63
|
-
|
|
64
|
-
export type ProPAP = Promise<PAP>;
|
|
65
|
-
|
|
66
|
-
export type BAP = AP & BEAllProps;
|
|
67
|
-
|
|
68
|
-
export interface Actions{
|
|
69
|
-
setUp(self: BAP): PAP;
|
|
70
|
-
interpolateIfValid(self: BAP): PAP | void;
|
|
71
|
-
setFullUrlIfValid(self: BAP): PAP | void;
|
|
72
|
-
fetchWhenSettled(self: BAP): Promise<PAP | void>;
|
|
73
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import {IEnhancement, BEAllProps} from '../trans-render/be/types';
|
|
2
|
-
import {StringWithAutocompleteOptions} from '../trans-render/types';
|
|
3
|
-
|
|
4
|
-
export interface EndUserProps extends IEnhancement{
|
|
5
|
-
duration: number,
|
|
6
|
-
attr: StringWithAutocompleteOptions<
|
|
7
|
-
|'value'
|
|
8
|
-
|'textContent'
|
|
9
|
-
|'innerHTML'
|
|
10
|
-
|'shadowRoot'
|
|
11
|
-
>,
|
|
12
|
-
css: string,
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface AllProps extends EndUserProps{}
|
|
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;
|
|
24
|
-
|
|
25
|
-
export interface Actions{
|
|
26
|
-
hydrate(self: BAP): ProPAP;
|
|
27
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import {BEAllProps, IEnhancement} from '../trans-render/be/types';
|
|
2
|
-
|
|
3
|
-
export interface EndUserProps extends IEnhancement<HTMLFormElement> {
|
|
4
|
-
triggerInsertPosition: InsertPosition;
|
|
5
|
-
buttonContent: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface AllProps extends EndUserProps{
|
|
9
|
-
byob?: boolean;
|
|
10
|
-
trigger: WeakRef<HTMLButtonElement>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type AP = AllProps;
|
|
14
|
-
|
|
15
|
-
export type PAP = Partial<AP>;
|
|
16
|
-
|
|
17
|
-
export type BAP = AP & BEAllProps
|
|
18
|
-
|
|
19
|
-
export type ProPAP = Promise<PAP>;
|
|
20
|
-
|
|
21
|
-
export interface Actions{
|
|
22
|
-
addFormalizeBtn(self: BAP): ProPAP;
|
|
23
|
-
setBtnContent(self: BAP): void;
|
|
24
|
-
openDialog(self: BAP): Promise<void>
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface IFormDialog{
|
|
28
|
-
openDialog();
|
|
29
|
-
}
|