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,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
- }
@@ -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
- invokeParamSets: Array<InvokingParameters>,
6
- }
7
-
8
- export interface AP extends EndUserProps{
9
-
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: BAP): ProPAP;
23
- }
24
-
25
- export interface InvokingParameters {
26
- remoteSpecifier: Specifier,
27
- localEventType?: string,
28
- }
@@ -1,27 +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<TogglingParameters>,
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 TogglingParameters {
25
- remoteSpecifier: Specifier,
26
- localEventType?: string,
27
- }
@@ -1,24 +0,0 @@
1
- import {IEnhancement, BEAllProps, EMC} from '../trans-render/be/types';
2
-
3
- export interface EndUserProps extends IEnhancement{
4
- path: string
5
- src: string
6
- }
7
-
8
- export interface AllProps extends EndUserProps{
9
- template: HTMLTemplateElement
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
- act(self: BAP): PAP
22
- fetchRemoteTemplate(self: BAP): ProPAP
23
- upShadowSearch(self: BAP): PAP
24
- }
@@ -1,37 +0,0 @@
1
- import {IEnhancement, BEAllProps, EMC} from '../trans-render/be/types';
2
- import { Specifier } from '../trans-render/dss/types';
3
-
4
- interface FetchReadyEvent {
5
- url: string
6
- options: RequestInit
7
- }
8
-
9
- export interface EndUserProps extends IEnhancement{
10
-
11
-
12
- }
13
-
14
- export interface AllProps extends EndUserProps{
15
- //evtCount: number,
16
- fetchReadyEvent: FetchReadyEvent
17
- rawStatements: Array<string>
18
- fetchForParams: Array<FetchForParameters>
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;
29
-
30
- export interface Actions{
31
- hydrate(self: BAP): PAP;
32
- doFetch(self: BAP): void;
33
- }
34
-
35
- export interface FetchForParameters {
36
- remoteSpecifier: Specifier
37
- }
@@ -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,98 +0,0 @@
1
-
2
- import {SimpleWCInfo} from '../wc-info/SimpleWCInfo';
3
-
4
- export interface EndUserProps {
5
-
6
- accept?: string,
7
- /**
8
- * Url to invoke
9
- * @readonly true
10
- */
11
- src?: string,
12
-
13
- ':src': string,
14
-
15
- /**
16
- * Specifier for list of form associated or contentEditable peer elements that
17
- * should partake in forming the URL.
18
- */
19
- for?: string,
20
-
21
- /**
22
- * Indicates whether to treat the response as HTML or JSON or Text
23
- */
24
- as?: 'html' | 'json' | 'text',
25
-
26
- /**
27
- * The http verb to be used for the request
28
- */
29
- method?:
30
- | 'GET'
31
- | 'HEAD'
32
- | 'POST'
33
- | 'PUT'
34
- | 'DELETE'
35
- | 'OPTIONS'
36
- | 'TRACE'
37
- | 'PATCH',
38
- /**
39
- * Either the JSON stringified or the parsed JSON object
40
- * If parsed, the web component will stringify it.
41
- */
42
- body?: any,
43
-
44
- /**
45
- * Request credentials
46
- */
47
- credentials?: RequestCredentials,
48
-
49
- /**
50
- * Directed Scoped Specifier to the
51
- * DOM element where the retrieved content should be applied.
52
- */
53
- target?: string,
54
- /**
55
- * If as=html, specify whether to (stream) the contents into an attached shadow DOM or not.
56
- */
57
- shadow?: ShadowRootMode,
58
-
59
- /**
60
- * Do not cache results even if the url has been invoked before.
61
- */
62
- noCache?: boolean,
63
-
64
- /**
65
- * Stream the contents into the target element
66
- */
67
- stream?: boolean,
68
-
69
- /**
70
- * Directed Scoped Specifier to a
71
- * (button) element, to delay submitting the fetch request until that button is clicked.
72
- */
73
- when?: string,
74
-
75
- /**
76
- * Directed Scoped Specifier to a form element
77
- * that we should use to form the url and body from.
78
- */
79
- form?: string,
80
- }
81
-
82
- /**
83
- * fetch-for web component
84
- */
85
- export abstract class ForFetchInfo implements SimpleWCInfo {
86
- src: './for-fetch.js';
87
- tagName: 'for-fetch';
88
- props: EndUserProps;
89
- name: 'for-fetch';
90
- homepage: 'https://github.com/bahrus/for-fetch';
91
- license: 'MIT';
92
- description: 'Base web component for fetch'
93
- cssParts: {
94
-
95
- }
96
- }
97
-
98
- export type Package = [ForFetchInfo];