@_unit/unit 1.0.26 → 1.0.27

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 (89) hide show
  1. package/build/web.js +10 -10
  2. package/lib/client/PositionObserver.d.ts +3 -3
  3. package/lib/client/PositionObserver.js +4 -25
  4. package/lib/client/PositionObserver.js.map +1 -1
  5. package/lib/client/component.d.ts +0 -3
  6. package/lib/client/component.js +2 -40
  7. package/lib/client/component.js.map +1 -1
  8. package/lib/client/makeEventListener.d.ts +1 -1
  9. package/lib/client/makeEventListener.js +0 -6
  10. package/lib/client/makeEventListener.js.map +1 -1
  11. package/lib/client/noop/MutationObserver.d.ts +2 -2
  12. package/lib/client/noop/MutationObserver.js.map +1 -1
  13. package/lib/client/noop/ResizeObserver.d.ts +2 -2
  14. package/lib/client/noop/ResizeObserver.js.map +1 -1
  15. package/lib/system/_classes.d.ts +0 -10
  16. package/lib/system/_classes.js +0 -10
  17. package/lib/system/_classes.js.map +1 -1
  18. package/lib/system/_components.d.ts +0 -2
  19. package/lib/system/_components.js +86 -88
  20. package/lib/system/_components.js.map +1 -1
  21. package/lib/system/_ids.d.ts +0 -6
  22. package/lib/system/_ids.js +8 -14
  23. package/lib/system/_ids.js.map +1 -1
  24. package/lib/system/_specs.js +1 -1
  25. package/lib/system/_specs.js.map +1 -1
  26. package/lib/system/platform/component/Button/index.d.ts +0 -1
  27. package/lib/system/platform/component/Button/index.js +1 -1
  28. package/lib/system/platform/component/Button/index.js.map +1 -1
  29. package/lib/system/platform/component/Render/Component.js +1 -1
  30. package/lib/system/platform/component/Render/Component.js.map +1 -1
  31. package/lib/system/platform/component/Render/index.d.ts +3 -3
  32. package/lib/system/platform/component/Render/index.js +1 -1
  33. package/lib/system/platform/component/Render/index.js.map +1 -1
  34. package/lib/types/global/IPositionObserver.d.ts +4 -4
  35. package/package.json +1 -1
  36. package/public/_worker.js +5 -5
  37. package/public/_worker.js.map +4 -4
  38. package/public/build.json +1 -1
  39. package/public/index.js +10 -10
  40. package/public/index.js.map +4 -4
  41. package/src/client/PositionObserver.ts +12 -46
  42. package/src/client/component.ts +2 -48
  43. package/src/client/makeEventListener.ts +0 -9
  44. package/src/client/noop/MutationObserver.ts +2 -2
  45. package/src/client/noop/ResizeObserver.ts +2 -2
  46. package/src/system/_classes.ts +0 -10
  47. package/src/system/_components.ts +0 -2
  48. package/src/system/_ids.ts +0 -6
  49. package/src/system/_specs.ts +1 -1
  50. package/src/system/platform/component/Button/index.ts +1 -2
  51. package/src/system/platform/component/Button/spec.json +0 -7
  52. package/src/system/platform/component/Render/Component.ts +1 -1
  53. package/src/system/platform/component/Render/index.ts +4 -4
  54. package/src/system/platform/component/Render/spec.json +3 -3
  55. package/src/types/global/IPositionObserver.ts +4 -4
  56. package/lib/client/event/toggle.d.ts +0 -5
  57. package/lib/client/event/toggle.js +0 -27
  58. package/lib/client/event/toggle.js.map +0 -1
  59. package/lib/system/platform/api/observer/PositionObserver/index.d.ts +0 -20
  60. package/lib/system/platform/api/observer/PositionObserver/index.js +0 -65
  61. package/lib/system/platform/api/observer/PositionObserver/index.js.map +0 -1
  62. package/lib/system/platform/api/popover/HidePopover/index.d.ts +0 -15
  63. package/lib/system/platform/api/popover/HidePopover/index.js +0 -38
  64. package/lib/system/platform/api/popover/HidePopover/index.js.map +0 -1
  65. package/lib/system/platform/api/popover/ShowPopover/index.d.ts +0 -15
  66. package/lib/system/platform/api/popover/ShowPopover/index.js +0 -38
  67. package/lib/system/platform/api/popover/ShowPopover/index.js.map +0 -1
  68. package/lib/system/platform/api/popover/TogglePopover/index.d.ts +0 -15
  69. package/lib/system/platform/api/popover/TogglePopover/index.js +0 -38
  70. package/lib/system/platform/api/popover/TogglePopover/index.js.map +0 -1
  71. package/lib/system/platform/component/Follow/Component.d.ts +0 -51
  72. package/lib/system/platform/component/Follow/Component.js +0 -293
  73. package/lib/system/platform/component/Follow/Component.js.map +0 -1
  74. package/lib/system/platform/component/Follow/index.d.ts +0 -10
  75. package/lib/system/platform/component/Follow/index.js +0 -11
  76. package/lib/system/platform/component/Follow/index.js.map +0 -1
  77. package/src/client/event/toggle.ts +0 -37
  78. package/src/system/platform/api/observer/PositionObserver/index.ts +0 -95
  79. package/src/system/platform/api/observer/PositionObserver/spec.json +0 -30
  80. package/src/system/platform/api/popover/HidePopover/index.ts +0 -41
  81. package/src/system/platform/api/popover/HidePopover/spec.json +0 -23
  82. package/src/system/platform/api/popover/ShowPopover/index.ts +0 -41
  83. package/src/system/platform/api/popover/ShowPopover/spec.json +0 -23
  84. package/src/system/platform/api/popover/TogglePopover/index.ts +0 -41
  85. package/src/system/platform/api/popover/TogglePopover/spec.json +0 -23
  86. package/src/system/platform/component/Follow/Component.ts +0 -499
  87. package/src/system/platform/component/Follow/index.ts +0 -21
  88. package/src/system/platform/component/Follow/spec.json +0 -25
  89. package/src/system/platform/core/api/event/OnToggle/spec.json +0 -49
@@ -1,293 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DEFAULT_STYLE = void 0;
4
- const componentClassFromSpecId_1 = require("../../../../client/componentClassFromSpecId");
5
- const component_1 = require("../../../../client/component_");
6
- const createParent_1 = require("../../../../client/createParent");
7
- const element_1 = require("../../../../client/element");
8
- const parentElement_1 = require("../../../../client/platform/web/parentElement");
9
- const array_1 = require("../../../../util/array");
10
- exports.DEFAULT_STYLE = {};
11
- class Follow extends element_1.Element {
12
- constructor(props, $system) {
13
- super(props, $system);
14
- this._Container = (0, createParent_1.parentClass)();
15
- this._child_container = [];
16
- this._parent_container = [];
17
- this._parent_child_container = [];
18
- this._rewrap = () => {
19
- for (let at = 0; at < this._child_container.length; at++) {
20
- this.rewrapChild(at);
21
- }
22
- for (let at = 0; at < this._parent_container.length; at++) {
23
- this.rewrapParentRoot(at);
24
- }
25
- for (let at = 0; at < this._parent_child_container.length; at++) {
26
- this.rewrapParentChild(at);
27
- }
28
- };
29
- this._connected_container = (at, method) => {
30
- const container = new this._Container({}, this.$system);
31
- const _ = (0, component_1.getComponentInterface)(container);
32
- const containerUnit = this.$unit[`${method}`]({ at, _ });
33
- container.connect(containerUnit);
34
- return container;
35
- };
36
- const $element = (0, parentElement_1.default)($system);
37
- $element.className = 'wrap';
38
- this.$element = $element;
39
- this.$slot = {
40
- default: this,
41
- };
42
- }
43
- rewrapParentChild(at) {
44
- const _at = at;
45
- const container = this._parent_child_container[at];
46
- container.disconnect();
47
- const child = this.$parentRoot[at];
48
- const childSlot = this.$parentRootSlotName[at];
49
- const new_container = this._connected_parent_root_container(at);
50
- this._parent_child_container[at] = new_container;
51
- super.domRemoveParentChildAt(container, childSlot, at, _at);
52
- super.memRemoveParentChildAt(container, childSlot, at, _at);
53
- container.removeChild(child);
54
- new_container.appendChild(child);
55
- super.domAppendParentChildAt(new_container, childSlot, at, _at);
56
- super.memAppendParentChild(new_container, childSlot, at, _at);
57
- }
58
- rewrapParentRoot(at) {
59
- const container = this._parent_container[at];
60
- container.disconnect();
61
- const child = this.$parentRoot[at];
62
- const childSlot = this.$parentRootSlotName[at];
63
- const new_container = this._connected_parent_root_container(at);
64
- this._parent_container[at] = new_container;
65
- if (this.$mountParentRoot.includes(child)) {
66
- super.domRemoveParentRootAt(container, childSlot, at, at);
67
- super.postRemoveParentRootAt(container, childSlot, at, at);
68
- container.removeChild(child);
69
- new_container.appendChild(child);
70
- super.domAppendParentRoot(new_container, childSlot, at);
71
- super.postAppendParentRoot(new_container, childSlot, at);
72
- }
73
- }
74
- rewrapChild(at) {
75
- const container = this._child_container[at];
76
- container.disconnect();
77
- const child = this.$children[at];
78
- const childSlot = this.$childSlotName[at];
79
- super.domRemoveChild(container, childSlot, at);
80
- super.postRemoveChild(container, at);
81
- container.removeChild(child);
82
- const new_container = this._connected_child_container(at);
83
- new_container.appendChild(child);
84
- this._child_container[at] = new_container;
85
- super.domAppendChild(new_container, childSlot, at);
86
- super.postAppendChild(new_container, childSlot, at);
87
- }
88
- _connected_child_container(at) {
89
- return this._connected_container(at, '$refChildContainer');
90
- }
91
- _connected_parent_root_container(at) {
92
- return this._connected_container(at, '$refParentRootContainer');
93
- }
94
- _connected_parent_child_container(at) {
95
- return this._connected_container(at, '$refParentChildContainer');
96
- }
97
- memAppendChild(child, slotName, at) {
98
- const container = this._connected_child_container(at);
99
- this._child_container.push(container);
100
- container.memAppendChild(child, 'default', at);
101
- super.memAppendChild(child, slotName, at);
102
- }
103
- memAppendParentChild(component, slotName, at, _at) {
104
- // console.log(
105
- // 'Wrap',
106
- // 'memAppendParentChild',
107
- // component.constructor.name,
108
- // component.$globalId,
109
- // slotName,
110
- // at,
111
- // _at
112
- // )
113
- const container = this._connected_parent_child_container(at);
114
- (0, array_1.push)(this._parent_child_container, container);
115
- container.memAppendChild(component, 'default', at);
116
- super.memAppendParentChild(component, slotName, at, _at);
117
- }
118
- domAppendParentChildAt(component, slotName, _at) {
119
- // console.log(
120
- // 'Wrap',
121
- // 'domAppendParentChildAt',
122
- // component.constructor.name,
123
- // component.$globalId,
124
- // slotName,
125
- // at,
126
- // _at
127
- // )
128
- const container = this._parent_child_container[_at];
129
- container.domAppendChild(component, 'default', _at);
130
- super.domAppendParentChildAt(container, slotName, _at, _at);
131
- }
132
- memInsertParentChildAt(component, slotName, _at) {
133
- // console.log(
134
- // 'Wrap',
135
- // 'memInsertParentChildAt',
136
- // component.constructor.name,
137
- // component.$globalId,
138
- // slotName,
139
- // _at
140
- // )
141
- const container = this._connected_parent_child_container(_at);
142
- (0, array_1.insert)(this._parent_child_container, container, _at);
143
- container.memAppendChild(component, 'default', _at);
144
- super.memInsertParentChildAt(component, slotName, _at);
145
- }
146
- domInsertParentChildAt(component, slotName, _at) {
147
- // console.log(
148
- // 'Wrap',
149
- // 'domInsertParentChildAt',
150
- // component.constructor.name,
151
- // component.$globalId,
152
- // slotName,
153
- // at,
154
- // _at
155
- // )
156
- const container = this._parent_child_container[_at];
157
- container.domInsertParentChildAt(component, 'default', _at);
158
- super.domInsertParentChildAt(container, slotName, _at);
159
- }
160
- memRemoveParentChildAt(component, slotName, at, _at) {
161
- // console.log(
162
- // 'Wrap',
163
- // 'memRemoveParentChildAt',
164
- // component.constructor.name,
165
- // component.$globalId,
166
- // at,
167
- // _at
168
- // )
169
- this._parent_child_container.splice(_at, 1);
170
- super.memRemoveParentChildAt(component, slotName, at, _at);
171
- }
172
- domRemoveParentChildAt(component, slotName, at, _at) {
173
- // console.log(
174
- // 'Wrap',
175
- // 'domRemoveParentChildAt',
176
- // component.constructor.name,
177
- // component.$globalId,
178
- // at,
179
- // _at
180
- // )
181
- const container = this._parent_child_container[_at];
182
- container.domRemoveChild(component, 'default', at);
183
- super.domRemoveParentChildAt(container, slotName, at, _at);
184
- }
185
- domAppendChild(child, slotName, at) {
186
- const container = this._child_container[at];
187
- container.domAppendChild(child, 'default', at);
188
- super.domAppendChild(container, slotName, at);
189
- }
190
- postAppendChild(child, slotName, at) {
191
- const container = this._child_container[at];
192
- child.$parent = this;
193
- container.mount(this.$context);
194
- }
195
- postAppendParentChild(child, slotName, at) {
196
- const container = this._parent_child_container[at];
197
- container.mount(this.$context);
198
- }
199
- domRemoveChild(child, slotName, at) {
200
- const container = this._child_container[at];
201
- container.domRemoveChild(child, 'default', at);
202
- super.domRemoveChild(container, slotName, at);
203
- }
204
- postRemoveChild(child, at) {
205
- const container = this._child_container[at];
206
- container.unmount();
207
- super.postRemoveChild(child, at);
208
- }
209
- insertParentRoot(component, at, slotName) {
210
- // console.log('Graph', 'insertParentRoot', component, at, slotName)
211
- const container = this._connected_parent_root_container(at);
212
- (0, array_1.insert)(this._parent_container, container, at);
213
- super.insertParentRoot(component, at, slotName);
214
- }
215
- unshiftParentRoot(component, slotName) {
216
- // console.log('Graph', 'unshiftParentRoot', component)
217
- const container = this._connected_parent_root_container(0);
218
- (0, array_1.unshift)(this._parent_container, container);
219
- super.unshiftParentRoot(component, slotName);
220
- }
221
- pullParentRoot(component) {
222
- // console.log('Graph', 'pullParentRoot', component)
223
- const at = this.$parentRoot.indexOf(component);
224
- (0, array_1.removeAt)(this._parent_container, at);
225
- super.pullParentRoot(component);
226
- }
227
- memAppendParentRoot(component, slotName, at) {
228
- const container = this._connected_parent_root_container(at);
229
- this._parent_container.push(container);
230
- container.memAppendChild(component, 'default', at);
231
- super.memAppendParentRoot(component, slotName, at);
232
- }
233
- domAppendParentRoot(component, slotName, at) {
234
- // console.log('Graph', 'domAppendParentRoot', component, slotName, at)
235
- const container = this._parent_container[at];
236
- container.appendChild(component);
237
- super.domAppendParentRoot(container, slotName, at);
238
- }
239
- postAppendParentRoot(component, slotName, at) {
240
- // console.log('Graph', 'postAppendParentRoot', component, slotName, at)
241
- const container = this._parent_container[at];
242
- super.postAppendParentRoot(container, slotName, at);
243
- }
244
- domRemoveParentRootAt(component, slotName, at, _at) {
245
- // console.log('Wrap', 'domRemoveParentRootAt', component, at)
246
- const container = this._parent_container[_at];
247
- container.domRemoveChild(component, 'default', at);
248
- super.domRemoveParentRootAt(container, slotName, at, _at);
249
- }
250
- postRemoveParentRootAt(component, slotName, at, _at) {
251
- // console.log('Wrap', 'postRemoveParentRootAt', component, at)
252
- super.postRemoveParentRootAt(component, slotName, at, _at);
253
- }
254
- domInsertParentRootAt(component, at, slotName) {
255
- const container = this._parent_container[at];
256
- container.domAppendChild(component, 'default', at);
257
- super.domInsertParentRootAt(container, at, slotName);
258
- }
259
- postInsertParentRootAt(component, at, slotName) {
260
- const container = this._parent_container[at];
261
- super.postInsertParentRootAt(container, at, slotName);
262
- }
263
- onPropChanged(name, current) {
264
- if (name === 'component') {
265
- let componentClass;
266
- if (current) {
267
- const Class = current;
268
- const { __bundle } = Class;
269
- const { id, input } = __bundle.unit;
270
- componentClass = (0, componentClassFromSpecId_1.componentClassFromSpecId)(this.$system.components, this.$system.specs, this.$system.classes, id, input);
271
- }
272
- else {
273
- componentClass = (0, createParent_1.parentClass)();
274
- }
275
- this._Container = componentClass;
276
- this._rewrap();
277
- }
278
- }
279
- getContainer() {
280
- return this._Container;
281
- }
282
- getChildContainer(at) {
283
- return this._child_container[at];
284
- }
285
- getParentChildContainer(at) {
286
- return this._parent_child_container[at];
287
- }
288
- getParentRootContainer(at) {
289
- return this._parent_container[at];
290
- }
291
- }
292
- exports.default = Follow;
293
- //# sourceMappingURL=Component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Component.js","sourceRoot":"src/","sources":["system/platform/component/Follow/Component.ts"],"names":[],"mappings":";;;AACA,0FAAsF;AACtF,6DAAqE;AACrE,kEAA6D;AAC7D,wDAAoD;AACpD,iFAAyE;AAIzE,kDAAwE;AAM3D,QAAA,aAAa,GAAG,EAAE,CAAA;AAE/B,MAAqB,MAAO,SAAQ,iBAAqC;IAOvE,YAAY,KAAS,EAAE,OAAe;QACpC,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;QAPf,eAAU,GAAmB,IAAA,0BAAW,GAAE,CAAA;QAE1C,qBAAgB,GAAgB,EAAE,CAAA;QAClC,sBAAiB,GAAgB,EAAE,CAAA;QACnC,4BAAuB,GAAgB,EAAE,CAAA;QAgBzC,YAAO,GAAG,GAAS,EAAE;YAC3B,KAAK,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC;gBACzD,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAA;YACtB,CAAC;YAED,KAAK,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,iBAAiB,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC;gBAC1D,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAA;YAC3B,CAAC;YAED,KAAK,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,uBAAuB,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC;gBAChE,IAAI,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAA;YAC5B,CAAC;QACH,CAAC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AA;IACxB,CAAC;IAEM,iBAAiB,CAAC,EAAU;QACjC,OAAO,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAA;IAClC,CAAC;IAEM,uBAAuB,CAAC,EAAU;QACvC,OAAO,IAAI,CAAC,uBAAuB,CAAC,EAAE,CAAC,CAAA;IACzC,CAAC;IAEM,sBAAsB,CAAC,EAAU;QACtC,OAAO,IAAI,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAA;IACnC,CAAC;CACF;AAjeD,yBAieC"}
@@ -1,10 +0,0 @@
1
- import { Element_ } from '../../../../Class/Element';
2
- import { System } from '../../../../system';
3
- import { UnitBundle } from '../../../../types/UnitBundle';
4
- export type I = {
5
- component: UnitBundle;
6
- };
7
- export type O = {};
8
- export default class Follow extends Element_<I, O> {
9
- constructor(system: System);
10
- }
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const Element_1 = require("../../../../Class/Element");
4
- const _ids_1 = require("../../../_ids");
5
- class Follow extends Element_1.Element_ {
6
- constructor(system) {
7
- super({ i: ['component'], o: ['parent'] }, { output: { parent: { ref: true } } }, system, _ids_1.ID_WRAP);
8
- }
9
- }
10
- exports.default = Follow;
11
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"src/","sources":["system/platform/component/Follow/index.ts"],"names":[],"mappings":";;AAAA,uDAAoD;AAGpD,wCAAuC;AAQvC,MAAqB,MAAO,SAAQ,kBAAc;IAChD,YAAY,MAAc;QACxB,KAAK,CACH,EAAE,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,EACnC,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,EACrC,MAAM,EACN,cAAO,CACR,CAAA;IACH,CAAC;CACF;AATD,yBASC"}
@@ -1,37 +0,0 @@
1
- import { Listenable } from '../Listenable'
2
- import { Listener } from '../Listener'
3
- import { Component } from '../component'
4
-
5
- export type IOToggleEvent = boolean
6
-
7
- export function makeToggleListener(
8
- listener: (data: IOToggleEvent, _event: ToggleEvent) => void
9
- ): Listener {
10
- return (component) => {
11
- return listenToggle(component, (event, _event) => {
12
- listener(event, _event)
13
- })
14
- }
15
- }
16
-
17
- export function listenToggle(
18
- component: Listenable,
19
- onWheel: (event: IOToggleEvent, _event: ToggleEvent) => void
20
- ): () => void {
21
- const { $element } = component as Component<HTMLElement>
22
-
23
- const toggleListener = (_event: ToggleEvent) => {
24
- const { oldState, newState } = _event
25
-
26
- if (newState !== oldState) {
27
- const shown = newState === 'open' ? true : false
28
-
29
- onWheel(shown, _event)
30
- }
31
- }
32
-
33
- $element.addEventListener('toggle', toggleListener, { passive: false })
34
- return () => {
35
- $element.removeEventListener('toggle', toggleListener)
36
- }
37
- }
@@ -1,95 +0,0 @@
1
- import { Semifunctional } from '../../../../../Class/Semifunctional'
2
- import { PositionObserver } from '../../../../../client/PositionObserver'
3
- import { Component } from '../../../../../client/component'
4
- import { System } from '../../../../../system'
5
- import { Unlisten } from '../../../../../types/Unlisten'
6
- import { PositionObserverCallback } from '../../../../../types/global/IPositionObserver'
7
- import { Component_ } from '../../../../../types/interface/Component'
8
- import { ID_POSITION_OBSERVER } from '../../../../_ids'
9
- import { firstGlobalComponentPromise } from '../../../../globalComponent'
10
-
11
- export type I = {
12
- component: Component_
13
- }
14
-
15
- export type O = {
16
- entry: { x: number; y: number }
17
- }
18
-
19
- export default class PositionObserver_ extends Semifunctional<I, O> {
20
- private _observer: PositionObserver
21
-
22
- constructor(system: System) {
23
- super(
24
- {
25
- fi: ['component', 'opt'],
26
- fo: [],
27
- i: ['done'],
28
- o: ['entry'],
29
- },
30
- {
31
- input: {
32
- component: {
33
- ref: true,
34
- },
35
- },
36
- },
37
- system,
38
- ID_POSITION_OBSERVER
39
- )
40
- }
41
-
42
- private _unlisten: Unlisten
43
-
44
- async f({ component }: I) {
45
- const {
46
- api: {
47
- document: { PositionObserver },
48
- },
49
- } = this.__system
50
-
51
- const globalId = component.getGlobalId()
52
-
53
- const component_ = (await firstGlobalComponentPromise(
54
- this.__system,
55
- globalId
56
- )) as Component<HTMLElement>
57
-
58
- if (!this._observer) {
59
- const observer_callback: PositionObserverCallback = (x, y) => {
60
- this._output.entry.push({ x, y })
61
- }
62
-
63
- const observer = new PositionObserver(this.__system, observer_callback)
64
-
65
- this._observer = observer
66
- }
67
-
68
- const leaf = component_.getFirstRootLeaf() as Component<HTMLElement>
69
-
70
- const { $element } = leaf
71
-
72
- this._observer.observe($element)
73
- }
74
-
75
- d() {
76
- // TODO
77
- }
78
-
79
- public onIterDataInputData(name: string, data: any): void {
80
- // if (name === 'done') {
81
- if (this._observer) {
82
- this._observer.disconnect()
83
- }
84
-
85
- if (this._unlisten) {
86
- this._unlisten()
87
- this._unlisten = undefined
88
- }
89
-
90
- this._done()
91
-
92
- this.pullInput('done')
93
- // }
94
- }
95
- }
@@ -1,30 +0,0 @@
1
- {
2
- "name": "position observer",
3
- "inputs": {
4
- "component": {
5
- "type": "`C`",
6
- "ref": true
7
- },
8
- "opt": {
9
- "type": "{}"
10
- },
11
- "done": {
12
- "type": "any"
13
- }
14
- },
15
- "outputs": {
16
- "entry": {
17
- "type": "{x:number,y:number}"
18
- }
19
- },
20
- "metadata": {
21
- "icon": "map",
22
- "description": "watch the size of a component",
23
- "complexity": 3,
24
- "tags": ["platform", "api", "observer"]
25
- },
26
- "id": "b27ee28f-54fb-4737-91f5-04b52b7cf92d",
27
- "base": true,
28
- "type": "`U`",
29
- "system": true
30
- }
@@ -1,41 +0,0 @@
1
- import { Element_ } from '../../../../../Class/Element'
2
- import { Functional } from '../../../../../Class/Functional'
3
- import { Done } from '../../../../../Class/Functional/Done'
4
- import { System } from '../../../../../system'
5
- import { ID_HIDE_POPOVER } from '../../../../_ids'
6
-
7
- interface I<T> {
8
- component: Element_
9
- any: any
10
- }
11
-
12
- interface O<T> {}
13
-
14
- export default class HidePopover<T> extends Functional<I<T>, O<T>> {
15
- constructor(system: System) {
16
- super(
17
- {
18
- i: ['component', 'any'],
19
- o: [],
20
- },
21
- {
22
- input: {
23
- component: {
24
- ref: true,
25
- },
26
- },
27
- },
28
- system,
29
- ID_HIDE_POPOVER
30
- )
31
- }
32
-
33
- async f({ component }: I<T>, done: Done<O<T>>) {
34
- component.emit('call', {
35
- method: 'hidePopover',
36
- data: [],
37
- })
38
-
39
- done()
40
- }
41
- }
@@ -1,23 +0,0 @@
1
- {
2
- "name": "hide popover",
3
- "inputs": {
4
- "component": {
5
- "type": "`C`",
6
- "ref": true
7
- },
8
- "any": {
9
- "type": "any"
10
- }
11
- },
12
- "outputs": {},
13
- "metadata": {
14
- "icon": "send",
15
- "description": "show popover",
16
- "complexity": 3,
17
- "tags": ["platform", "api", "popover"]
18
- },
19
- "base": true,
20
- "id": "c6f309c8-9ca7-459c-9dd5-c9c9f92fbe8f",
21
- "type": "`U`",
22
- "system": true
23
- }
@@ -1,41 +0,0 @@
1
- import { Element_ } from '../../../../../Class/Element'
2
- import { Functional } from '../../../../../Class/Functional'
3
- import { Done } from '../../../../../Class/Functional/Done'
4
- import { System } from '../../../../../system'
5
- import { ID_SHOW_POPOVER } from '../../../../_ids'
6
-
7
- interface I<T> {
8
- component: Element_
9
- any: any
10
- }
11
-
12
- interface O<T> {}
13
-
14
- export default class ShowPopover<T> extends Functional<I<T>, O<T>> {
15
- constructor(system: System) {
16
- super(
17
- {
18
- i: ['component', 'any'],
19
- o: [],
20
- },
21
- {
22
- input: {
23
- component: {
24
- ref: true,
25
- },
26
- },
27
- },
28
- system,
29
- ID_SHOW_POPOVER
30
- )
31
- }
32
-
33
- async f({ component }: I<T>, done: Done<O<T>>) {
34
- component.emit('call', {
35
- method: 'showPopover',
36
- data: [],
37
- })
38
-
39
- done()
40
- }
41
- }
@@ -1,23 +0,0 @@
1
- {
2
- "name": "show popover",
3
- "inputs": {
4
- "component": {
5
- "type": "`C`",
6
- "ref": true
7
- },
8
- "any": {
9
- "type": "any"
10
- }
11
- },
12
- "outputs": {},
13
- "metadata": {
14
- "icon": "send",
15
- "description": "show popover",
16
- "complexity": 3,
17
- "tags": ["platform", "api", "popover"]
18
- },
19
- "base": true,
20
- "id": "eed20c86-41fe-46d4-87ba-ad2e6fb1bd4a",
21
- "type": "`U`",
22
- "system": true
23
- }
@@ -1,41 +0,0 @@
1
- import { Element_ } from '../../../../../Class/Element'
2
- import { Functional } from '../../../../../Class/Functional'
3
- import { Done } from '../../../../../Class/Functional/Done'
4
- import { System } from '../../../../../system'
5
- import { ID_TOGGLE_POPOVER } from '../../../../_ids'
6
-
7
- interface I<T> {
8
- component: Element_
9
- any: any
10
- }
11
-
12
- interface O<T> {}
13
-
14
- export default class TogglePopover<T> extends Functional<I<T>, O<T>> {
15
- constructor(system: System) {
16
- super(
17
- {
18
- i: ['component', 'any'],
19
- o: [],
20
- },
21
- {
22
- input: {
23
- component: {
24
- ref: true,
25
- },
26
- },
27
- },
28
- system,
29
- ID_TOGGLE_POPOVER
30
- )
31
- }
32
-
33
- async f({ component }: I<T>, done: Done<O<T>>) {
34
- component.emit('call', {
35
- method: 'togglePopover',
36
- data: [],
37
- })
38
-
39
- done()
40
- }
41
- }