mount-observer 0.0.39 → 0.0.41

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 (42) hide show
  1. package/MountObserver.js +50 -3
  2. package/MountObserver.ts +52 -7
  3. package/README.md +82 -13
  4. package/package.json +2 -2
  5. package/ts-refs/be-a-beacon/types.d.ts +3 -2
  6. package/ts-refs/be-alit/types.d.ts +1 -0
  7. package/ts-refs/be-based/types.d.ts +32 -0
  8. package/ts-refs/be-bound/types.d.ts +0 -3
  9. package/ts-refs/be-buttoned-up/types.d.ts +21 -0
  10. package/ts-refs/be-calculating/types.d.ts +4 -0
  11. package/ts-refs/be-clonable/types.d.ts +28 -0
  12. package/ts-refs/be-delible/types.d.ts +26 -0
  13. package/ts-refs/be-elevating/types.d.ts +55 -0
  14. package/ts-refs/be-eventing/types.d.ts +27 -0
  15. package/ts-refs/be-formalizing/types.d.ts +29 -0
  16. package/ts-refs/be-formidable/types.d.ts +64 -0
  17. package/ts-refs/be-kvetching/types.d.ts +24 -0
  18. package/ts-refs/be-literate/types.d.ts +10 -2
  19. package/ts-refs/be-mediating/types.d.ts +34 -0
  20. package/ts-refs/be-methodical/types.d.ts +20 -0
  21. package/ts-refs/be-modding/types.d.ts +18 -0
  22. package/ts-refs/{be-observant → be-observing}/types.d.ts +7 -4
  23. package/ts-refs/be-parsed/types.d.ts +19 -0
  24. package/ts-refs/be-persistent/types.d.ts +66 -0
  25. package/ts-refs/be-reformable/types.d.ts +48 -0
  26. package/ts-refs/be-render-neutral/types.d.ts +29 -0
  27. package/ts-refs/be-switched/types.d.ts +25 -19
  28. package/ts-refs/be-typed/types.d.ts +36 -0
  29. package/ts-refs/be-written/types.d.ts +37 -0
  30. package/ts-refs/for-fetch/types.d.ts +175 -0
  31. package/ts-refs/mount-observer/types.d.ts +6 -1
  32. package/ts-refs/trans-render/XV/types.d.ts +69 -0
  33. package/ts-refs/trans-render/asmr/types.d.ts +130 -0
  34. package/ts-refs/trans-render/be/types.d.ts +188 -0
  35. package/ts-refs/trans-render/dss/types.d.ts +159 -0
  36. package/ts-refs/trans-render/froop/types.d.ts +451 -0
  37. package/ts-refs/trans-render/funions/types.d.ts +12 -0
  38. package/ts-refs/trans-render/lib/mixins/types.d.ts +42 -0
  39. package/ts-refs/trans-render/lib/prs/types.d.ts +39 -0
  40. package/ts-refs/trans-render/lib/types.d.ts +489 -0
  41. package/ts-refs/trans-render/types.d.ts +14 -2
  42. package/ts-refs/xtal-element/types.d.ts +42 -0
@@ -0,0 +1,29 @@
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
+ }
@@ -0,0 +1,64 @@
1
+ import {BEAllProps, IEnhancement} from '../trans-render/be/types';
2
+
3
+ export interface EndUserProps extends IEnhancement<HTMLFormElement>{
4
+ invalidIf: Array<FormCriteria>,
5
+ checkValidityOn: string | Array<(string | CheckEventMonitor)>,
6
+ checkValidityOnInit: boolean;
7
+ }
8
+
9
+ export interface AllProps extends EndUserProps{
10
+ invalidClassesToApply: Array<string>,
11
+ invalidClassesToRemove: Array<string>,
12
+ isValid: boolean,
13
+ updateCnt: number,
14
+ }
15
+
16
+ export interface FormCriteria{
17
+ noneOf?: Array<(string | FieldOptions)>,
18
+ //instructions?: string,
19
+ invalidCssClass: string,
20
+ }
21
+
22
+ export interface FieldIdentifierOptions {
23
+ name?: string,
24
+ prop: string,
25
+ find?: string,
26
+
27
+ }
28
+
29
+ export interface FieldValidationOptions{
30
+ enabled?: boolean,
31
+ required?: boolean,
32
+ min?: number | Date | string,
33
+ max?: number | Date | string,
34
+ pattern?: string,
35
+ type?: string,
36
+ }
37
+
38
+ export interface FieldOptions extends FieldIdentifierOptions, FieldValidationOptions{}
39
+
40
+ export interface CheckEventMonitor{
41
+ type: string,
42
+ options: AddEventListenerOptions,
43
+ }
44
+
45
+ export type AP = AllProps;
46
+
47
+ export type PAP = Partial<AP>;
48
+
49
+ export type ProPAP = Promise<PAP>;
50
+
51
+ export type BAP = AP & BEAllProps;
52
+
53
+
54
+
55
+ export interface Actions{
56
+ hydrate(self: BAP): ProPAP,
57
+ markStatus(self: BAP): void,
58
+ checkValidity(self: BAP): void,
59
+ applyInvalidClsses(self: BAP): void,
60
+ removeInvalidClasses(self: BAP): void,
61
+ // onInvalidIf(self: this): Promise<void>;
62
+ // onCheckValidityOn(self: this): void;
63
+ // onCheckValidityOnInit(self: this): void;
64
+ }
@@ -0,0 +1,24 @@
1
+ import {BEAllProps, EventListenerOrFn, IEnhancement} from '../trans-render/be/types';
2
+
3
+ export interface EndUserProps extends IEnhancement<HTMLElement>{
4
+
5
+ }
6
+
7
+ export interface AllProps extends EndUserProps{
8
+ isParsed?: boolean,
9
+ }
10
+
11
+ export type WithStatement = string;
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
+
22
+ export interface Actions{
23
+ register(self: BAP): ProPAP;
24
+ }
@@ -1,11 +1,16 @@
1
1
  import {IEnhancement, BEAllProps} from '../trans-render/be/types';
2
+ import {USL} from '../trans-render/XV/types'
2
3
 
3
4
  export interface EndUserProps extends IEnhancement<HTMLInputElement>{
4
5
  readVerb: 'readAsText' | 'readAsDataURL' | 'readAsArrayBuffer' | 'readAsBinaryString';
6
+ writeTo: USL;
5
7
  }
6
8
 
9
+ export type FileAndContents = [File, any];
10
+
7
11
  export interface AllProps extends EndUserProps{
8
- fileContents: any[];
12
+ fileContents: Array<FileAndContents>;
13
+ writtenTo: Array<USL>;
9
14
  }
10
15
 
11
16
 
@@ -15,7 +20,10 @@ export type PAP = Partial<AP>;
15
20
 
16
21
  export type ProPAP = Promise<PAP>;
17
22
 
23
+ export type BAP = AP & BEAllProps;
24
+
18
25
 
19
26
  export interface Actions {
20
- hydrate(self: AP & BEAllProps): ProPAP
27
+ hydrate(self: BAP): ProPAP,
28
+ storeFileContents(self: BAP): ProPAP,
21
29
  }
@@ -0,0 +1,34 @@
1
+ import {IEnhancement, BEAllProps} from '../trans-render/be/types';
2
+ import {Specifier} from '../trans-render/dss/types';
3
+ import { CSSQuery } from '../trans-render/types';
4
+
5
+ export interface EndUserProps extends IEnhancement{
6
+ }
7
+
8
+ export interface AllProps extends EndUserProps{
9
+ parsedStatements: Array<MediatingParams>,
10
+ rawStatements?: Array<string>,
11
+ mediator?: (x: any) => any,
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 = AP & BEAllProps;
21
+
22
+ export interface Actions{
23
+ warn(...data: any[]): void;
24
+ parseJS(self: BAP): ProPAP;
25
+ hydrate(self: BAP): ProPAP;
26
+
27
+ }
28
+
29
+ export interface MediatingParams{
30
+ originPart: string,
31
+ targetPart: string,
32
+ originSpecifiers: Array<Specifier>,
33
+ targetCSS: CSSQuery,
34
+ }
@@ -0,0 +1,20 @@
1
+ import {IEnhancement, BEAllProps} from '../trans-render/be/types';
2
+
3
+ export interface EndUserProps extends IEnhancement{
4
+ ceName: string;
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
+ export type BAP = AP & BEAllProps;
16
+
17
+ export interface Actions{
18
+ hydrate(self: BAP): ProPAP;
19
+ }
20
+
@@ -0,0 +1,18 @@
1
+ import {IEnhancement, BEAllProps} from '../trans-render/be/types';
2
+
3
+ export interface EndUserProps extends IEnhancement{
4
+ jsExpr: string;
5
+ }
6
+ export interface AllProps extends EndUserProps{}
7
+
8
+ export type AP = AllProps;
9
+
10
+ export type PAP = Partial<AP>;
11
+
12
+ export type ProPAP = Promise<PAP>;
13
+
14
+ export type BAP = AP & BEAllProps;
15
+
16
+ export interface Actions{
17
+ processJS(self: BAP): ProPAP;
18
+ }
@@ -1,4 +1,4 @@
1
- import {BEAllProps, IEnhancement} from '../trans-render/be/types';
1
+ import {BEAllProps, EnhancementInfo, IEnhancement, IW} from '../trans-render/be/types';
2
2
  import { Specifier } from "../trans-render/dss/types";
3
3
  import {aggKeys, Handlers} from '../be-hive/types';
4
4
  import { StringWithAutocompleteOptions } from '../trans-render/types';
@@ -8,12 +8,12 @@ export interface EndUserProps extends IEnhancement{
8
8
  }
9
9
 
10
10
  export interface AllProps extends EndUserProps{
11
- //observedFactors?: Array<Specifier>,
12
11
  parsedStatements: Array<ObservingParameters>,
13
- //bindings?: Array<EndPoints>,
14
12
  rawStatements?: Array<string>,
15
13
  didInferring?: boolean,
16
-
14
+ ws?: Array<IW>,
15
+ //enhancementInfo: EnhancementInfo,
16
+ enhKey: string,
17
17
  }
18
18
 
19
19
 
@@ -43,8 +43,11 @@ export interface AndIfThen{
43
43
  export interface ObservingParameters{
44
44
  localPropToSet?: string,
45
45
  remoteSpecifiers: Array<Specifier>,
46
+ punt: boolean,
46
47
  mappings?: Array<AndIfThen>,
47
48
  aggKey: StringWithAutocompleteOptions<aggKeys>,
49
+ JSExpr: string,
50
+ ONExpr: string,
48
51
  //aggregateRemoteVals?: 'Union' | 'Conjunction' | 'ObjectAssign' | 'Sum' | 'Product' | 'ArrayPush'
49
52
  }
50
53
 
@@ -0,0 +1,19 @@
1
+ import {IEnhancement, BEAllProps} from '../trans-render/be/types';
2
+
3
+ export interface EndUserProps extends IEnhancement<HTMLScriptElement>{
4
+
5
+ }
6
+ export interface AllProps extends EndUserProps{
7
+ value: any,
8
+ }
9
+
10
+ export type AP = AllProps;
11
+
12
+ export type PAP = Partial<AP>;
13
+
14
+ export type ProPAP = Promise<PAP>;
15
+
16
+
17
+ export interface Actions{
18
+
19
+ }
@@ -0,0 +1,66 @@
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
+ // }
@@ -0,0 +1,48 @@
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
+ }
@@ -0,0 +1,29 @@
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 interface AP extends EndUserProps{
14
+ renderer: (vm: any, html: any) => any,
15
+ absorbingObject: AbsorbingObject
16
+ }
17
+
18
+ export type PAP = Partial<AP>;
19
+
20
+ export type BAP = AP & BEAllProps;
21
+
22
+ export type ProPAP = Promise<PAP>;
23
+
24
+ export interface Actions {
25
+ getRenderer(self: BAP): BAP;
26
+ doRender(self: BAP): void;
27
+ observe(self: BAP): ProPAP;
28
+ absorb(self: BAP, e?: Event): ProPAP;
29
+ }
@@ -25,10 +25,8 @@ export interface EndUserProps extends IEnhancement<HTMLTemplateElement>{
25
25
  * Works with beOosoom decorator, so becomes inert when out of view
26
26
  */
27
27
  beOosoom?: string;
28
- // On?: Array<SwitchStatement>;
29
- // on?: Array<SwitchStatement>;
30
- // Off?: Array<SwitchStatement>;
31
- // off?: Array<SwitchStatement>;
28
+ js?: string;
29
+ transitional: boolean;
32
30
  }
33
31
 
34
32
  export interface AllProps extends EndUserProps{
@@ -43,7 +41,8 @@ export interface AllProps extends EndUserProps{
43
41
  twoValueSwitches: Array<TwoValueSwitch>,
44
42
  offBinarySwitches?: Array<OneValueSwitch>,
45
43
  nValueSwitches?: Array<NValueScriptSwitch>
46
- rawStatements?: Array<string>
44
+ rawStatements?: Array<string>,
45
+ notProcessedJS?: boolean,
47
46
  }
48
47
 
49
48
  export type SwitchStatement = string;
@@ -71,9 +70,15 @@ export interface TwoValueSwitch{
71
70
  withinSpecifier?: Specifier,
72
71
  req?: boolean,
73
72
  op?: Op,
74
- negate?: boolean,
73
+ //negate?: boolean,
75
74
  lhs?: ISide,
76
75
  rhs?: ISide,
76
+ onOrOff:
77
+ | 'on'
78
+ | 'On'
79
+ | 'off'
80
+ | 'Off',
81
+
77
82
  }
78
83
 
79
84
  export interface Dependency extends Specifier{}
@@ -97,18 +102,19 @@ export type ProPAP = Promise<PAP>;
97
102
  export type BAP = AP & BEAllProps;
98
103
 
99
104
  export interface Actions{
100
- calcSwitchesSatisfied(self: this): PAP;
101
- calcVal(self: this): PAP;
102
- onTrue(self: this): Promise<void>;
103
- onFalse(self: this): Promise<void>;
105
+ calcSwitchesSatisfied(self: BAP): PAP;
106
+ calcVal(self: BAP): PAP;
107
+ onTrue(self: BAP): Promise<void>;
108
+ onFalse(self: BAP): Promise<void>;
104
109
  // addMediaListener(self: this): POA;
105
110
  // chkMedia(self: this, e: MediaQueryListEvent): PAP;
106
111
 
107
112
  // doOnBinarySwitches(self: this): Promise<void>;
108
- onSingleValSwitches(self: this): Promise<void>;
109
- onTwoValSwitches(self: this): Promise<void>;
110
- onNValSwitches(self: this): Promise<void>;
111
- onRawStatements(self: this): void;
113
+ onSingleValSwitches(self: BAP): Promise<void>;
114
+ onTwoValSwitches(self: BAP): Promise<void>;
115
+ onNValSwitches(self: BAP): Promise<void>;
116
+ onRawStatements(self: BAP): void;
117
+ processJS(self: BAP): ProPAP;
112
118
  }
113
119
 
114
120
 
@@ -129,12 +135,12 @@ export interface Elevate {
129
135
 
130
136
  export interface EventForNValueSwitch {
131
137
  ctx: NValueScriptSwitch,
132
- factors: {[key: string] : SignalRefType},
138
+ factors: {[key: string] : any},
133
139
  switchOn?: boolean,
134
140
  elevate?: Elevate
135
141
  }
136
142
 
137
- export interface SignalAndEvent {
138
- signal?: WeakRef<SignalRefType>,
139
- eventSuggestion?: string
140
- }
143
+ // export interface SignalAndEvent {
144
+ // signal?: WeakRef<SignalRefType>,
145
+ // eventSuggestion?: string
146
+ // }
@@ -0,0 +1,36 @@
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
+ }
@@ -0,0 +1,37 @@
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
+ }
20
+
21
+ export interface AllProps extends EndUserProps{
22
+ to: string,
23
+ from: string,
24
+ }
25
+
26
+ export interface AllProps extends EndUserProps {}
27
+
28
+ export type AP = AllProps;
29
+
30
+ export type PAP = Partial<AP>;
31
+
32
+ export type ProPAP = Promise<PAP>;
33
+
34
+
35
+ export interface Actions{
36
+ write(self: AP & BEAllProps): ProPAP;
37
+ }