mount-observer 0.0.112 → 0.1.1

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 (181) hide show
  1. package/Events.js +62 -26
  2. package/Events.ts +52 -30
  3. package/MountObserver.js +285 -514
  4. package/MountObserver.ts +362 -538
  5. package/README.md +149 -56
  6. package/SharedMutationObserver.js +70 -0
  7. package/SharedMutationObserver.ts +96 -0
  8. package/attrCoordinates.js +93 -0
  9. package/attrCoordinates.ts +122 -0
  10. package/index.js +3 -0
  11. package/index.ts +22 -0
  12. package/loadImports.js +47 -0
  13. package/loadImports.ts +56 -0
  14. package/mediaQuery.js +86 -0
  15. package/mediaQuery.ts +113 -0
  16. package/package.json +11 -119
  17. package/playwright.config.ts +0 -1
  18. package/types.d.ts +104 -0
  19. package/whereAttr.js +174 -0
  20. package/whereAttr.ts +221 -0
  21. package/LICENSE +0 -21
  22. package/Newish.js +0 -145
  23. package/Newish.ts +0 -169
  24. package/ObsAttr.js +0 -18
  25. package/ObsAttr.ts +0 -18
  26. package/RootMutObs.js +0 -49
  27. package/RootMutObs.ts +0 -58
  28. package/Synthesizer.js +0 -125
  29. package/Synthesizer.ts +0 -130
  30. package/bindish.js +0 -15
  31. package/bindish.ts +0 -22
  32. package/compose.js +0 -148
  33. package/compose.ts +0 -164
  34. package/doCleanup.js +0 -31
  35. package/doCleanup.ts +0 -34
  36. package/getWhereAttrSelector.js +0 -83
  37. package/getWhereAttrSelector.ts +0 -92
  38. package/preloadContent.js +0 -44
  39. package/preloadContent.ts +0 -47
  40. package/readAttrs.ts +0 -60
  41. package/refid/README.md +0 -259
  42. package/refid/arr.js +0 -4
  43. package/refid/arr.ts +0 -4
  44. package/refid/camelToKebab.js +0 -4
  45. package/refid/camelToKebab.ts +0 -4
  46. package/refid/genIds.js +0 -190
  47. package/refid/genIds.ts +0 -177
  48. package/refid/getAdjRefs.js +0 -38
  49. package/refid/getAdjRefs.ts +0 -38
  50. package/refid/getContext.js +0 -13
  51. package/refid/getContext.ts +0 -14
  52. package/refid/getCount.js +0 -8
  53. package/refid/getCount.ts +0 -8
  54. package/refid/getIsh.js +0 -35
  55. package/refid/getIsh.ts +0 -37
  56. package/refid/hostish.js +0 -18
  57. package/refid/hostish.ts +0 -20
  58. package/refid/ism.js +0 -78
  59. package/refid/ism.ts +0 -81
  60. package/refid/itemprops.js +0 -60
  61. package/refid/itemprops.ts +0 -67
  62. package/refid/joinMatching.js +0 -56
  63. package/refid/joinMatching.ts +0 -54
  64. package/refid/nudge.js +0 -23
  65. package/refid/nudge.ts +0 -23
  66. package/refid/regIsh.js +0 -27
  67. package/refid/regIsh.ts +0 -31
  68. package/refid/secretKeys.js +0 -5
  69. package/refid/secretKeys.ts +0 -5
  70. package/refid/splitRefs.js +0 -6
  71. package/refid/splitRefs.ts +0 -6
  72. package/refid/stdVal.js +0 -15
  73. package/refid/stdVal.ts +0 -15
  74. package/refid/via.js +0 -114
  75. package/refid/via.ts +0 -113
  76. package/slotkin/affine.js +0 -39
  77. package/slotkin/affine.ts +0 -46
  78. package/slotkin/beKindred.js +0 -45
  79. package/slotkin/beKindred.ts +0 -55
  80. package/slotkin/getBreadth.js +0 -19
  81. package/slotkin/getBreadth.ts +0 -21
  82. package/slotkin/getFrag.js +0 -22
  83. package/slotkin/getFrag.ts +0 -21
  84. package/slotkin/toQuery.js +0 -12
  85. package/slotkin/toQuery.ts +0 -13
  86. package/slotkin/wrap.js +0 -13
  87. package/slotkin/wrap.ts +0 -18
  88. package/ts-refs/LICENSE +0 -21
  89. package/ts-refs/README.md +0 -18
  90. package/ts-refs/be-a-beacon/types.d.ts +0 -22
  91. package/ts-refs/be-alit/types.d.ts +0 -1
  92. package/ts-refs/be-based/types.d.ts +0 -32
  93. package/ts-refs/be-bound/types.d.ts +0 -65
  94. package/ts-refs/be-buttoned-up/types.d.ts +0 -21
  95. package/ts-refs/be-calculating/types.d.ts +0 -57
  96. package/ts-refs/be-clonable/types.d.ts +0 -28
  97. package/ts-refs/be-committed/types.d.ts +0 -26
  98. package/ts-refs/be-consoling/types.d.ts +0 -25
  99. package/ts-refs/be-counted/types.d.ts +0 -88
  100. package/ts-refs/be-delible/types.d.ts +0 -26
  101. package/ts-refs/be-directive/types.d.ts +0 -43
  102. package/ts-refs/be-dispatching/types.d.ts +0 -41
  103. package/ts-refs/be-elevating/types.d.ts +0 -55
  104. package/ts-refs/be-enhanced/types.d.ts +0 -32
  105. package/ts-refs/be-enhancing/types.d.ts +0 -31
  106. package/ts-refs/be-evanescent/types.d.ts +0 -20
  107. package/ts-refs/be-eventing/types.d.ts +0 -27
  108. package/ts-refs/be-exportable/types.d.ts +0 -26
  109. package/ts-refs/be-fetching/types.d.ts +0 -73
  110. package/ts-refs/be-flashy/types.d.ts +0 -27
  111. package/ts-refs/be-formalizing/types.d.ts +0 -29
  112. package/ts-refs/be-formidable/types.d.ts +0 -64
  113. package/ts-refs/be-giddy/types.d.ts +0 -26
  114. package/ts-refs/be-gingerly/types.d.ts +0 -19
  115. package/ts-refs/be-gone/types.d.ts +0 -24
  116. package/ts-refs/be-hashing-out/types.d.ts +0 -22
  117. package/ts-refs/be-hive/types.d.ts +0 -18
  118. package/ts-refs/be-imbued/types.d.ts +0 -30
  119. package/ts-refs/be-included/types.d.ts +0 -20
  120. package/ts-refs/be-inclusive/types.d.ts +0 -30
  121. package/ts-refs/be-intersectional/types.d.ts +0 -37
  122. package/ts-refs/be-intl/types.d.ts +0 -28
  123. package/ts-refs/be-invoking/types.d.ts +0 -28
  124. package/ts-refs/be-joining/types.d.ts +0 -26
  125. package/ts-refs/be-kvetching/types.d.ts +0 -24
  126. package/ts-refs/be-lazy/types.d.ts +0 -29
  127. package/ts-refs/be-literate/types.d.ts +0 -29
  128. package/ts-refs/be-mediating/types.d.ts +0 -34
  129. package/ts-refs/be-methodical/types.d.ts +0 -20
  130. package/ts-refs/be-modding/types.d.ts +0 -18
  131. package/ts-refs/be-observant/types.d.ts +0 -27
  132. package/ts-refs/be-observing/types.d.ts +0 -84
  133. package/ts-refs/be-parsed/types.d.ts +0 -19
  134. package/ts-refs/be-parsing/types.d.ts +0 -37
  135. package/ts-refs/be-persistent/types.d.ts +0 -66
  136. package/ts-refs/be-propagating/types.d.ts +0 -26
  137. package/ts-refs/be-reformable/types.d.ts +0 -48
  138. package/ts-refs/be-render-neutral/types.d.ts +0 -31
  139. package/ts-refs/be-scoped/types.d.ts +0 -24
  140. package/ts-refs/be-sharing/types.d.ts +0 -17
  141. package/ts-refs/be-switched/types.d.ts +0 -155
  142. package/ts-refs/be-typed/types.d.ts +0 -36
  143. package/ts-refs/be-value-added/types.d.ts +0 -34
  144. package/ts-refs/be-valued/types.d.ts +0 -22
  145. package/ts-refs/be-written/types.d.ts +0 -59
  146. package/ts-refs/css-charts/types.d.ts +0 -38
  147. package/ts-refs/css-echarts/types.d.ts +0 -13
  148. package/ts-refs/data-props/types.d.ts +0 -27
  149. package/ts-refs/do-inc/types.d.ts +0 -28
  150. package/ts-refs/do-invoke/types.d.ts +0 -28
  151. package/ts-refs/do-toggle/types.d.ts +0 -27
  152. package/ts-refs/em-bower/types.d.ts +0 -24
  153. package/ts-refs/fetch-for/types.d.ts +0 -37
  154. package/ts-refs/folder-picker/types.d.ts +0 -43
  155. package/ts-refs/for-fetch/doc.d.ts +0 -98
  156. package/ts-refs/for-fetch/types.d.ts +0 -83
  157. package/ts-refs/mount-observer/types.d.ts +0 -248
  158. package/ts-refs/mt-si/types.d.ts +0 -21
  159. package/ts-refs/per-each/types.d.ts +0 -51
  160. package/ts-refs/soak-up/types.d.ts +0 -36
  161. package/ts-refs/trans-render/XV/types.d.ts +0 -69
  162. package/ts-refs/trans-render/asmr/types.d.ts +0 -138
  163. package/ts-refs/trans-render/be/types.d.ts +0 -198
  164. package/ts-refs/trans-render/dss/types.d.ts +0 -57
  165. package/ts-refs/trans-render/froop/types.d.ts +0 -416
  166. package/ts-refs/trans-render/funions/types.d.ts +0 -12
  167. package/ts-refs/trans-render/lib/mixins/types.d.ts +0 -42
  168. package/ts-refs/trans-render/lib/prs/types.d.ts +0 -40
  169. package/ts-refs/trans-render/lib/types.d.ts +0 -489
  170. package/ts-refs/trans-render/types.d.ts +0 -583
  171. package/ts-refs/wc-info/SimpleWCInfo.d.ts +0 -15
  172. package/ts-refs/when-resolved/types.d.ts +0 -30
  173. package/ts-refs/xp-as/types.d.ts +0 -20
  174. package/ts-refs/xtal-element/types.d.ts +0 -43
  175. package/ts-refs/xtal-frappe-chart/types.d.ts +0 -193
  176. package/upShadowSearch.js +0 -25
  177. package/upShadowSearch.ts +0 -23
  178. package/waitForEvent.js +0 -12
  179. package/waitForEvent.ts +0 -13
  180. package/waitForIsh.js +0 -21
  181. package/waitForIsh.ts +0 -20
@@ -1,30 +0,0 @@
1
- import {IEnhancement, BEAllProps} from '../trans-render/be/types';
2
- import {Specifier} from '../trans-render/dss/types';
3
-
4
- export interface EndUserProps<TProps, TMethods, TElement = {}> extends IEnhancement{
5
-
6
- }
7
-
8
- export interface AllProps<TProps, TMethods, TElement = {}> extends EndUserProps<TProps, TMethods, TElement>{
9
- includeRules: Array<IncludeRule>;
10
- nodesToInclude: Array<Element>;
11
- }
12
-
13
- export type AP = AllProps<any, any, any>;
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
- hydrate(self: BAP): Promise<PAP>;
24
- include(self: BAP): void;
25
- }
26
-
27
- export interface IncludeRule {
28
- remoteSpecifierString?: string,
29
- remoteSpecifier: Specifier,
30
- }
@@ -1,37 +0,0 @@
1
- import {IEnhancement, BEAllProps} from '../trans-render/be/types';
2
-
3
- export interface EndUserProps extends IEnhancement{
4
- options: IntersectionObserverInit;
5
- rootClosest?: string;
6
- observeClosest?: string;
7
- enterDelay?: number;
8
- exitDelay?: number;
9
- }
10
-
11
- export interface AP extends EndUserProps{
12
- isIntersecting: boolean;
13
- isIntersectingEcho: boolean;
14
- isNotIntersecting: boolean;
15
- isNotIntersectingEcho: boolean;
16
- }
17
- export type PAP = Partial<AP>;
18
- export type ProPAP = Promise<PAP>;
19
- export type BAP = AP & BEAllProps;
20
-
21
- export interface IntersectionalActions {
22
- onOptions(self: AP & BEAllProps): PAP;
23
- // onIntersectingChange(self: AP & BEAllProps): void;
24
- // onNonIntersectingEcho(self: AP & BEAllProps)
25
- }
26
-
27
- export interface Actions extends IntersectionalActions{
28
-
29
-
30
- onIntersecting(self: this): void;
31
-
32
- onNotIntersecting(self: this): void;
33
-
34
-
35
-
36
- //onNotIntersectingEcho(self: this): void;
37
- }
@@ -1,28 +0,0 @@
1
- import {BVAEndUserProps, BVAAllProps, BVAActions} from '../be-value-added/types';
2
- import {BEAllProps} from '../be-enhanced/types';
3
-
4
- export interface EndUserProps extends BVAEndUserProps{
5
- format?: Intl.NumberFormatOptions | Intl.DateTimeFormatOptions,
6
- locale?: string;
7
- observeAttr?: string;
8
- currency?: string;
9
- }
10
-
11
- export interface AllProps extends EndUserProps, BVAAllProps{
12
- attached?: boolean;
13
- intlDateFormat?: Intl.DateTimeFormat,
14
- intlNumberFormat: Intl.NumberFormat,
15
- }
16
-
17
- export type AP = AllProps;
18
-
19
- export type PAP = Partial<AP>;
20
-
21
- export type ProPAP = Promise<PAP>;
22
-
23
-
24
- export interface Actions extends BVAActions {
25
- formatNumber(self: AP & BEAllProps): void;
26
- formatDate(self: this): void;
27
- onFormattingChange(self: this): PAP;
28
- }
@@ -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
- }
7
-
8
- export interface AP extends EndUserProps{
9
- parsedStatements?: Array<InvokingParameters>,
10
- rawStatements?: Array<string>,
11
- }
12
-
13
- export type AllProps = AP;
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: this): ProPAP;
23
- }
24
-
25
- export interface InvokingParameters {
26
- remoteSpecifiers: Array<Specifier>,
27
- localEventType?: string,
28
- }
@@ -1,26 +0,0 @@
1
- import {IEnhancement, BEAllProps} from '../trans-render/be/types';
2
- import {AllProps as XPAsAllProps} from '../xp-as/types';
3
-
4
- export interface EndUserProps extends IEnhancement{
5
- xpAsAttr: string;
6
- }
7
-
8
- export interface AllProps extends EndUserProps{
9
- }
10
-
11
- export type AP = AllProps;
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): ProPAP;
21
- }
22
-
23
- export interface Factor{
24
- NameOfProp: string,
25
- xpAs: XPAsAllProps,
26
- }
@@ -1,24 +0,0 @@
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,29 +0,0 @@
1
- import {
2
- EndUserProps as BeIntersectiontalEndUserProps,
3
- AP as BeIntersectionalAllProps,
4
- BeIntersectionalActions,
5
- } from '../../node_modules/be-intersectional/types';
6
- import { BEAllProps } from '../be-enhanced/types';
7
-
8
-
9
- export interface EndUserProps extends BeIntersectiontalEndUserProps{
10
- //transform?: {[key: string]: MatchRHS};
11
- //host: any;
12
- //ctx: RenderContext;
13
- }
14
-
15
- export interface AllProps extends BeIntersectionalAllProps, 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
-
26
- export interface BeLazyActions extends BeIntersectionalActions{
27
- onIntersecting(self: AP & BEAllProps): void
28
- onOptions(self: AP & BEAllProps): PAP;
29
- }
@@ -1,29 +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<HTMLInputElement>{
5
- readVerb: 'readAsText' | 'readAsDataURL' | 'readAsArrayBuffer' | 'readAsBinaryString';
6
- writeTo: USL;
7
- }
8
-
9
- export type FileAndContents = [File, any];
10
-
11
- export interface AllProps extends EndUserProps{
12
- fileContents: Array<FileAndContents>;
13
- writtenTo: Array<USL>;
14
- }
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;
24
-
25
-
26
- export interface Actions {
27
- hydrate(self: BAP): ProPAP,
28
- storeFileContents(self: BAP): ProPAP,
29
- }
@@ -1,34 +0,0 @@
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
- }
@@ -1,20 +0,0 @@
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
-
@@ -1,18 +0,0 @@
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,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<ObservantParameters>,
10
- rawStatements?: Array<string>,
11
- }
12
-
13
- export interface ObservantParameters{
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,84 +0,0 @@
1
- import {BEAllProps, IEnhancement, IW} from '../trans-render/be/types';
2
- import { Specifier } from "../trans-render/dss/types";
3
- import {aggKeys, Handlers} from '../be-hive/types';
4
- import { StringWithAutocompleteOptions } from '../trans-render/types';
5
- import {AbsorbingObject} from '../trans-render/asmr/types';
6
- export interface EndUserProps extends IEnhancement{
7
-
8
- }
9
-
10
- export interface AllProps extends EndUserProps{
11
- parsedStatements: Array<ObservingParameters>,
12
- rawStatements?: Array<string>,
13
- didInferring?: boolean,
14
- ws?: Array<IW>,
15
- //enhancementInfo: EnhancementInfo,
16
- enhKey: string,
17
- }
18
-
19
-
20
-
21
-
22
- export type AP = AllProps;
23
-
24
- export type PAP = Partial<AP>;
25
-
26
- export type ProPAP = Promise<PAP>;
27
-
28
- export type BAP = AP & BEAllProps & Handlers;
29
-
30
- export interface Actions{
31
- noAttrs(self: BAP): ProPAP;
32
- infer(self: BAP) : ProPAP;
33
- seek(self: BAP): ProPAP;
34
- // hydrate(self: this): ProPAP;
35
- warn(...data: any[]): void;
36
- }
37
-
38
- export interface AndIfThen{
39
- ifCondition: string,
40
- passValue: string,
41
- }
42
-
43
- export interface ObservingParameters{
44
- localPropToSet?: string,
45
- remoteSpecifiers: Array<Specifier>,
46
- punt: boolean,
47
- mappings?: Array<AndIfThen>,
48
- aggKey: StringWithAutocompleteOptions<aggKeys>,
49
- interpolatingExpr: string,
50
- JSExpr: string,
51
- ONExpr: string,
52
- action:
53
- | 'set'
54
- | 'toggle'
55
- | 'increment'
56
- | 'decrement'
57
- | 'set-class'
58
- | 'set-part'
59
- //aggregateRemoteVals?: 'Union' | 'Conjunction' | 'ObjectAssign' | 'Sum' | 'Product' | 'ArrayPush'
60
- }
61
-
62
-
63
-
64
-
65
-
66
-
67
- // export interface ObserverOptions{
68
- // abortControllers: Array<AbortController>,
69
- // remoteEl?: Element,
70
- // }
71
-
72
- export type LoadEventName = 'load';
73
-
74
- export interface EventForObserver{
75
- factors: {[key: string | number] : any},
76
- setProps?: {[key: string]: any};
77
- enh: string,
78
- }
79
-
80
- // export interface ObserverEventModel{
81
- // factors: {[key: string] : any},
82
- // vals: any[],
83
-
84
- // }
@@ -1,19 +0,0 @@
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
- }
@@ -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
- }