@_unit/unit 1.0.25 → 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 (108) hide show
  1. package/build/web.js +10 -10
  2. package/lib/API.d.ts +3 -1
  3. package/lib/client/PositionObserver.d.ts +3 -3
  4. package/lib/client/PositionObserver.js +4 -25
  5. package/lib/client/PositionObserver.js.map +1 -1
  6. package/lib/client/component.d.ts +0 -3
  7. package/lib/client/component.js +2 -40
  8. package/lib/client/component.js.map +1 -1
  9. package/lib/client/makeEventListener.d.ts +1 -1
  10. package/lib/client/makeEventListener.js +0 -6
  11. package/lib/client/makeEventListener.js.map +1 -1
  12. package/lib/client/noop/MutationObserver.d.ts +2 -2
  13. package/lib/client/noop/MutationObserver.js.map +1 -1
  14. package/lib/client/noop/ResizeObserver.d.ts +2 -2
  15. package/lib/client/noop/ResizeObserver.js.map +1 -1
  16. package/lib/client/platform/web/api/document.js +0 -16
  17. package/lib/client/platform/web/api/document.js.map +1 -1
  18. package/lib/client/platform/web/api/theme.d.ts +3 -0
  19. package/lib/{system/platform/api/popover/HidePopover/index.js → client/platform/web/api/theme.js} +13 -25
  20. package/lib/client/platform/web/api/theme.js.map +1 -0
  21. package/lib/client/platform/web/boot.js +4 -0
  22. package/lib/client/platform/web/boot.js.map +1 -1
  23. package/lib/host/none.js +5 -3
  24. package/lib/host/none.js.map +1 -1
  25. package/lib/system/_classes.d.ts +0 -10
  26. package/lib/system/_classes.js +0 -10
  27. package/lib/system/_classes.js.map +1 -1
  28. package/lib/system/_components.d.ts +0 -2
  29. package/lib/system/_components.js +86 -88
  30. package/lib/system/_components.js.map +1 -1
  31. package/lib/system/_ids.d.ts +0 -6
  32. package/lib/system/_ids.js +8 -14
  33. package/lib/system/_ids.js.map +1 -1
  34. package/lib/system/_specs.js +1 -1
  35. package/lib/system/_specs.js.map +1 -1
  36. package/lib/system/platform/component/Button/index.d.ts +0 -1
  37. package/lib/system/platform/component/Button/index.js +1 -1
  38. package/lib/system/platform/component/Button/index.js.map +1 -1
  39. package/lib/system/platform/component/Render/Component.js +1 -1
  40. package/lib/system/platform/component/Render/Component.js.map +1 -1
  41. package/lib/system/platform/component/Render/index.d.ts +3 -3
  42. package/lib/system/platform/component/Render/index.js +1 -1
  43. package/lib/system/platform/component/Render/index.js.map +1 -1
  44. package/lib/system/platform/component/app/GUI/Component.js +1 -1
  45. package/lib/system/platform/component/app/GUI/Component.js.map +1 -1
  46. package/lib/system/platform/method/value/Write/index.js.map +1 -1
  47. package/lib/types/global/IPositionObserver.d.ts +4 -4
  48. package/package.json +1 -1
  49. package/public/_worker.js +5 -5
  50. package/public/_worker.js.map +4 -4
  51. package/public/build.json +1 -1
  52. package/public/index.js +10 -10
  53. package/public/index.js.map +4 -4
  54. package/src/API.ts +3 -1
  55. package/src/client/PositionObserver.ts +12 -46
  56. package/src/client/component.ts +2 -48
  57. package/src/client/makeEventListener.ts +0 -9
  58. package/src/client/noop/MutationObserver.ts +2 -2
  59. package/src/client/noop/ResizeObserver.ts +2 -2
  60. package/src/client/platform/web/api/document.ts +0 -6
  61. package/src/client/platform/web/api/theme.ts +19 -0
  62. package/src/client/platform/web/boot.ts +5 -0
  63. package/src/host/none.ts +5 -3
  64. package/src/system/_classes.ts +0 -10
  65. package/src/system/_components.ts +0 -2
  66. package/src/system/_ids.ts +0 -6
  67. package/src/system/_specs.ts +1 -1
  68. package/src/system/platform/component/Button/index.ts +1 -2
  69. package/src/system/platform/component/Button/spec.json +0 -7
  70. package/src/system/platform/component/Render/Component.ts +1 -1
  71. package/src/system/platform/component/Render/index.ts +4 -4
  72. package/src/system/platform/component/Render/spec.json +3 -3
  73. package/src/system/platform/component/app/GUI/Component.ts +1 -1
  74. package/src/system/platform/method/value/Write/index.ts +0 -1
  75. package/src/types/global/IPositionObserver.ts +4 -4
  76. package/lib/client/event/toggle.d.ts +0 -5
  77. package/lib/client/event/toggle.js +0 -27
  78. package/lib/client/event/toggle.js.map +0 -1
  79. package/lib/system/platform/api/observer/PositionObserver/index.d.ts +0 -20
  80. package/lib/system/platform/api/observer/PositionObserver/index.js +0 -65
  81. package/lib/system/platform/api/observer/PositionObserver/index.js.map +0 -1
  82. package/lib/system/platform/api/popover/HidePopover/index.d.ts +0 -15
  83. package/lib/system/platform/api/popover/HidePopover/index.js.map +0 -1
  84. package/lib/system/platform/api/popover/ShowPopover/index.d.ts +0 -15
  85. package/lib/system/platform/api/popover/ShowPopover/index.js +0 -38
  86. package/lib/system/platform/api/popover/ShowPopover/index.js.map +0 -1
  87. package/lib/system/platform/api/popover/TogglePopover/index.d.ts +0 -15
  88. package/lib/system/platform/api/popover/TogglePopover/index.js +0 -38
  89. package/lib/system/platform/api/popover/TogglePopover/index.js.map +0 -1
  90. package/lib/system/platform/component/Follow/Component.d.ts +0 -51
  91. package/lib/system/platform/component/Follow/Component.js +0 -293
  92. package/lib/system/platform/component/Follow/Component.js.map +0 -1
  93. package/lib/system/platform/component/Follow/index.d.ts +0 -10
  94. package/lib/system/platform/component/Follow/index.js +0 -11
  95. package/lib/system/platform/component/Follow/index.js.map +0 -1
  96. package/src/client/event/toggle.ts +0 -37
  97. package/src/system/platform/api/observer/PositionObserver/index.ts +0 -95
  98. package/src/system/platform/api/observer/PositionObserver/spec.json +0 -30
  99. package/src/system/platform/api/popover/HidePopover/index.ts +0 -41
  100. package/src/system/platform/api/popover/HidePopover/spec.json +0 -23
  101. package/src/system/platform/api/popover/ShowPopover/index.ts +0 -41
  102. package/src/system/platform/api/popover/ShowPopover/spec.json +0 -23
  103. package/src/system/platform/api/popover/TogglePopover/index.ts +0 -41
  104. package/src/system/platform/api/popover/TogglePopover/spec.json +0 -23
  105. package/src/system/platform/component/Follow/Component.ts +0 -499
  106. package/src/system/platform/component/Follow/index.ts +0 -21
  107. package/src/system/platform/component/Follow/spec.json +0 -25
  108. package/src/system/platform/core/api/event/OnToggle/spec.json +0 -49
@@ -4,7 +4,6 @@ import { ID_BUTTON } from '../../../_ids'
4
4
 
5
5
  export interface I {
6
6
  style: object
7
- attr: object
8
7
  }
9
8
 
10
9
  export interface O {}
@@ -13,7 +12,7 @@ export default class Button extends Element_<I, O> {
13
12
  constructor(system: System) {
14
13
  super(
15
14
  {
16
- i: ['style', 'attr'],
15
+ i: ['style'],
17
16
  o: [],
18
17
  },
19
18
  {},
@@ -8,13 +8,6 @@
8
8
  "metadata": {
9
9
  "examples": ["{}"]
10
10
  }
11
- },
12
- "attr": {
13
- "type": "object",
14
- "optional": true,
15
- "metadata": {
16
- "examples": ["{}"]
17
- }
18
11
  }
19
12
  },
20
13
  "outputs": {},
@@ -80,7 +80,7 @@ export default class Render extends Element<HTMLDivElement, Props> {
80
80
 
81
81
  this._prop_handler = {
82
82
  ...htmlPropHandler(this, this.$element, DEFAULT_STYLE),
83
- unit: (component: $Component) => {
83
+ component: (component: $Component) => {
84
84
  if (this._unlisten) {
85
85
  this._unlisten()
86
86
 
@@ -1,11 +1,11 @@
1
- import { $ } from '../../../../Class/$'
2
1
  import { Element_ } from '../../../../Class/Element'
3
2
  import { System } from '../../../../system'
4
- import { $U } from '../../../../types/interface/async/$U'
3
+ import { Component_ } from '../../../../types/interface/Component'
5
4
  import { ID_RENDER } from '../../../_ids'
6
5
 
7
6
  export interface I {
8
- unit: $U & $
7
+ component: Component_
8
+ className: string
9
9
  style: object
10
10
  }
11
11
 
@@ -15,7 +15,7 @@ export default class Render extends Element_<I, O> {
15
15
  constructor(system: System) {
16
16
  super(
17
17
  {
18
- i: ['style', 'unit'],
18
+ i: ['style', 'component'],
19
19
  o: [],
20
20
  },
21
21
  {
@@ -9,15 +9,15 @@
9
9
  "examples": ["{}"]
10
10
  }
11
11
  },
12
- "unit": {
13
- "type": "`U`",
12
+ "component": {
13
+ "type": "`C`",
14
14
  "ref": true
15
15
  }
16
16
  },
17
17
  "outputs": {},
18
18
  "metadata": {
19
19
  "icon": "square",
20
- "description": "render a unit",
20
+ "description": "render a component",
21
21
  "complexity": 43,
22
22
  "tags": ["platform", "component"]
23
23
  },
@@ -652,7 +652,7 @@ export default class GUI extends Element<HTMLDivElement, Props> {
652
652
  // console.log('GUI', '_on_context_theme_changed')
653
653
  const {
654
654
  api: {
655
- document: { setTheme },
655
+ theme: { setTheme },
656
656
  },
657
657
  } = this.$system
658
658
 
@@ -35,7 +35,6 @@ export default class Write<T> extends Functional<I<T>, O<T>> {
35
35
  async f({ value, data }: I<T>, done: Done<O<T>>) {
36
36
  try {
37
37
  await value.write(data)
38
-
39
38
  done({ data })
40
39
  } catch (err) {
41
40
  done(undefined, err.message)
@@ -2,15 +2,15 @@ import { IOElement } from '../../client/IOElement'
2
2
  import { PositionObserver } from '../../client/PositionObserver'
3
3
 
4
4
  export interface IPositionObserverCostructor {
5
- new (system: any, callback: PositionObserverCallback): PositionObserver
5
+ new (system: any, callback: IPositionCallback): PositionObserver
6
6
  }
7
7
 
8
8
  export interface IPositionObserver {
9
- observe(element: IOElement): PositionObserverEntry
9
+ observe(element: IOElement): IPositionEntry
10
10
  disconnect(): void
11
11
  }
12
12
 
13
- export interface PositionObserverCallback {
13
+ export interface IPositionCallback {
14
14
  (
15
15
  x: number,
16
16
  y: number,
@@ -26,7 +26,7 @@ export interface PositionObserverCallback {
26
26
  ): void
27
27
  }
28
28
 
29
- export interface PositionObserverEntry {
29
+ export interface IPositionEntry {
30
30
  x: number
31
31
  y: number
32
32
  sx: number
@@ -1,5 +0,0 @@
1
- import { Listenable } from '../Listenable';
2
- import { Listener } from '../Listener';
3
- export type IOToggleEvent = boolean;
4
- export declare function makeToggleListener(listener: (data: IOToggleEvent, _event: ToggleEvent) => void): Listener;
5
- export declare function listenToggle(component: Listenable, onWheel: (event: IOToggleEvent, _event: ToggleEvent) => void): () => void;
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.listenToggle = exports.makeToggleListener = void 0;
4
- function makeToggleListener(listener) {
5
- return (component) => {
6
- return listenToggle(component, (event, _event) => {
7
- listener(event, _event);
8
- });
9
- };
10
- }
11
- exports.makeToggleListener = makeToggleListener;
12
- function listenToggle(component, onWheel) {
13
- const { $element } = component;
14
- const toggleListener = (_event) => {
15
- const { oldState, newState } = _event;
16
- if (newState !== oldState) {
17
- const shown = newState === 'open' ? true : false;
18
- onWheel(shown, _event);
19
- }
20
- };
21
- $element.addEventListener('toggle', toggleListener, { passive: false });
22
- return () => {
23
- $element.removeEventListener('toggle', toggleListener);
24
- };
25
- }
26
- exports.listenToggle = listenToggle;
27
- //# sourceMappingURL=toggle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toggle.js","sourceRoot":"src/","sources":["client/event/toggle.ts"],"names":[],"mappings":";;;AAMA,SAAgB,kBAAkB,CAChC,QAA4D;IAE5D,OAAO,CAAC,SAAS,EAAE,EAAE;QACnB,OAAO,YAAY,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YAC/C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;QACzB,CAAC,CAAC,CAAA;IACJ,CAAC,CAAA;AACH,CAAC;AARD,gDAQC;AAED,SAAgB,YAAY,CAC1B,SAAqB,EACrB,OAA4D;IAE5D,MAAM,EAAE,QAAQ,EAAE,GAAG,SAAmC,CAAA;IAExD,MAAM,cAAc,GAAG,CAAC,MAAmB,EAAE,EAAE;QAC7C,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAA;QAErC,IAAI,QAAQ,KAAK,QAAQ,EAAE,CAAC;YAC1B,MAAM,KAAK,GAAG,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAA;YAEhD,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;QACxB,CAAC;IACH,CAAC,CAAA;IAED,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,EAAE,cAAc,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAA;IACvE,OAAO,GAAG,EAAE;QACV,QAAQ,CAAC,mBAAmB,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAA;IACxD,CAAC,CAAA;AACH,CAAC;AApBD,oCAoBC"}
@@ -1,20 +0,0 @@
1
- import { Semifunctional } from '../../../../../Class/Semifunctional';
2
- import { System } from '../../../../../system';
3
- import { Component_ } from '../../../../../types/interface/Component';
4
- export type I = {
5
- component: Component_;
6
- };
7
- export type O = {
8
- entry: {
9
- x: number;
10
- y: number;
11
- };
12
- };
13
- export default class PositionObserver_ extends Semifunctional<I, O> {
14
- private _observer;
15
- constructor(system: System);
16
- private _unlisten;
17
- f({ component }: I): Promise<void>;
18
- d(): void;
19
- onIterDataInputData(name: string, data: any): void;
20
- }
@@ -1,65 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const Semifunctional_1 = require("../../../../../Class/Semifunctional");
13
- const _ids_1 = require("../../../../_ids");
14
- const globalComponent_1 = require("../../../../globalComponent");
15
- class PositionObserver_ extends Semifunctional_1.Semifunctional {
16
- constructor(system) {
17
- super({
18
- fi: ['component', 'opt'],
19
- fo: [],
20
- i: ['done'],
21
- o: ['entry'],
22
- }, {
23
- input: {
24
- component: {
25
- ref: true,
26
- },
27
- },
28
- }, system, _ids_1.ID_POSITION_OBSERVER);
29
- }
30
- f({ component }) {
31
- return __awaiter(this, void 0, void 0, function* () {
32
- const { api: { document: { PositionObserver }, }, } = this.__system;
33
- const globalId = component.getGlobalId();
34
- const component_ = (yield (0, globalComponent_1.firstGlobalComponentPromise)(this.__system, globalId));
35
- if (!this._observer) {
36
- const observer_callback = (x, y) => {
37
- this._output.entry.push({ x, y });
38
- };
39
- const observer = new PositionObserver(this.__system, observer_callback);
40
- this._observer = observer;
41
- }
42
- const leaf = component_.getFirstRootLeaf();
43
- const { $element } = leaf;
44
- this._observer.observe($element);
45
- });
46
- }
47
- d() {
48
- // TODO
49
- }
50
- onIterDataInputData(name, data) {
51
- // if (name === 'done') {
52
- if (this._observer) {
53
- this._observer.disconnect();
54
- }
55
- if (this._unlisten) {
56
- this._unlisten();
57
- this._unlisten = undefined;
58
- }
59
- this._done();
60
- this.pullInput('done');
61
- // }
62
- }
63
- }
64
- exports.default = PositionObserver_;
65
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"src/","sources":["system/platform/api/observer/PositionObserver/index.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,wEAAoE;AAOpE,2CAAuD;AACvD,iEAAyE;AAUzE,MAAqB,iBAAkB,SAAQ,+BAAoB;IAGjE,YAAY,MAAc;QACxB,KAAK,CACH;YACE,EAAE,EAAE,CAAC,WAAW,EAAE,KAAK,CAAC;YACxB,EAAE,EAAE,EAAE;YACN,CAAC,EAAE,CAAC,MAAM,CAAC;YACX,CAAC,EAAE,CAAC,OAAO,CAAC;SACb,EACD;YACE,KAAK,EAAE;gBACL,SAAS,EAAE;oBACT,GAAG,EAAE,IAAI;iBACV;aACF;SACF,EACD,MAAM,EACN,2BAAoB,CACrB,CAAA;IACH,CAAC;IAIK,CAAC,CAAC,EAAE,SAAS,EAAK;;YACtB,MAAM,EACJ,GAAG,EAAE,EACH,QAAQ,EAAE,EAAE,gBAAgB,EAAE,GAC/B,GACF,GAAG,IAAI,CAAC,QAAQ,CAAA;YAEjB,MAAM,QAAQ,GAAG,SAAS,CAAC,WAAW,EAAE,CAAA;YAExC,MAAM,UAAU,GAAG,CAAC,MAAM,IAAA,6CAA2B,EACnD,IAAI,CAAC,QAAQ,EACb,QAAQ,CACT,CAA2B,CAAA;YAE5B,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;gBACpB,MAAM,iBAAiB,GAA6B,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;oBAC3D,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAA;gBACnC,CAAC,CAAA;gBAED,MAAM,QAAQ,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAA;gBAEvE,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAA;YAC3B,CAAC;YAED,MAAM,IAAI,GAAG,UAAU,CAAC,gBAAgB,EAA4B,CAAA;YAEpE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAA;YAEzB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;QAClC,CAAC;KAAA;IAED,CAAC;QACC,OAAO;IACT,CAAC;IAEM,mBAAmB,CAAC,IAAY,EAAE,IAAS;QAChD,yBAAyB;QACzB,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YACnB,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,CAAA;QAC7B,CAAC;QAED,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YACnB,IAAI,CAAC,SAAS,EAAE,CAAA;YAChB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;QAC5B,CAAC;QAED,IAAI,CAAC,KAAK,EAAE,CAAA;QAEZ,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;QACtB,IAAI;IACN,CAAC;CACF;AA5ED,oCA4EC"}
@@ -1,15 +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
- interface I<T> {
6
- component: Element_;
7
- any: any;
8
- }
9
- interface O<T> {
10
- }
11
- export default class HidePopover<T> extends Functional<I<T>, O<T>> {
12
- constructor(system: System);
13
- f({ component }: I<T>, done: Done<O<T>>): Promise<void>;
14
- }
15
- export {};
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"src/","sources":["system/platform/api/popover/HidePopover/index.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,gEAA4D;AAG5D,2CAAkD;AASlD,MAAqB,WAAe,SAAQ,uBAAsB;IAChE,YAAY,MAAc;QACxB,KAAK,CACH;YACE,CAAC,EAAE,CAAC,WAAW,EAAE,KAAK,CAAC;YACvB,CAAC,EAAE,EAAE;SACN,EACD;YACE,KAAK,EAAE;gBACL,SAAS,EAAE;oBACT,GAAG,EAAE,IAAI;iBACV;aACF;SACF,EACD,MAAM,EACN,sBAAe,CAChB,CAAA;IACH,CAAC;IAEK,CAAC,CAAC,EAAE,SAAS,EAAQ,EAAE,IAAgB;;YAC3C,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE;gBACrB,MAAM,EAAE,aAAa;gBACrB,IAAI,EAAE,EAAE;aACT,CAAC,CAAA;YAEF,IAAI,EAAE,CAAA;QACR,CAAC;KAAA;CACF;AA3BD,8BA2BC"}
@@ -1,15 +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
- interface I<T> {
6
- component: Element_;
7
- any: any;
8
- }
9
- interface O<T> {
10
- }
11
- export default class ShowPopover<T> extends Functional<I<T>, O<T>> {
12
- constructor(system: System);
13
- f({ component }: I<T>, done: Done<O<T>>): Promise<void>;
14
- }
15
- export {};
@@ -1,38 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const Functional_1 = require("../../../../../Class/Functional");
13
- const _ids_1 = require("../../../../_ids");
14
- class ShowPopover extends Functional_1.Functional {
15
- constructor(system) {
16
- super({
17
- i: ['component', 'any'],
18
- o: [],
19
- }, {
20
- input: {
21
- component: {
22
- ref: true,
23
- },
24
- },
25
- }, system, _ids_1.ID_SHOW_POPOVER);
26
- }
27
- f({ component }, done) {
28
- return __awaiter(this, void 0, void 0, function* () {
29
- component.emit('call', {
30
- method: 'showPopover',
31
- data: [],
32
- });
33
- done();
34
- });
35
- }
36
- }
37
- exports.default = ShowPopover;
38
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"src/","sources":["system/platform/api/popover/ShowPopover/index.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,gEAA4D;AAG5D,2CAAkD;AASlD,MAAqB,WAAe,SAAQ,uBAAsB;IAChE,YAAY,MAAc;QACxB,KAAK,CACH;YACE,CAAC,EAAE,CAAC,WAAW,EAAE,KAAK,CAAC;YACvB,CAAC,EAAE,EAAE;SACN,EACD;YACE,KAAK,EAAE;gBACL,SAAS,EAAE;oBACT,GAAG,EAAE,IAAI;iBACV;aACF;SACF,EACD,MAAM,EACN,sBAAe,CAChB,CAAA;IACH,CAAC;IAEK,CAAC,CAAC,EAAE,SAAS,EAAQ,EAAE,IAAgB;;YAC3C,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE;gBACrB,MAAM,EAAE,aAAa;gBACrB,IAAI,EAAE,EAAE;aACT,CAAC,CAAA;YAEF,IAAI,EAAE,CAAA;QACR,CAAC;KAAA;CACF;AA3BD,8BA2BC"}
@@ -1,15 +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
- interface I<T> {
6
- component: Element_;
7
- any: any;
8
- }
9
- interface O<T> {
10
- }
11
- export default class TogglePopover<T> extends Functional<I<T>, O<T>> {
12
- constructor(system: System);
13
- f({ component }: I<T>, done: Done<O<T>>): Promise<void>;
14
- }
15
- export {};
@@ -1,38 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const Functional_1 = require("../../../../../Class/Functional");
13
- const _ids_1 = require("../../../../_ids");
14
- class TogglePopover extends Functional_1.Functional {
15
- constructor(system) {
16
- super({
17
- i: ['component', 'any'],
18
- o: [],
19
- }, {
20
- input: {
21
- component: {
22
- ref: true,
23
- },
24
- },
25
- }, system, _ids_1.ID_TOGGLE_POPOVER);
26
- }
27
- f({ component }, done) {
28
- return __awaiter(this, void 0, void 0, function* () {
29
- component.emit('call', {
30
- method: 'togglePopover',
31
- data: [],
32
- });
33
- done();
34
- });
35
- }
36
- }
37
- exports.default = TogglePopover;
38
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"src/","sources":["system/platform/api/popover/TogglePopover/index.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,gEAA4D;AAG5D,2CAAoD;AASpD,MAAqB,aAAiB,SAAQ,uBAAsB;IAClE,YAAY,MAAc;QACxB,KAAK,CACH;YACE,CAAC,EAAE,CAAC,WAAW,EAAE,KAAK,CAAC;YACvB,CAAC,EAAE,EAAE;SACN,EACD;YACE,KAAK,EAAE;gBACL,SAAS,EAAE;oBACT,GAAG,EAAE,IAAI;iBACV;aACF;SACF,EACD,MAAM,EACN,wBAAiB,CAClB,CAAA;IACH,CAAC;IAEK,CAAC,CAAC,EAAE,SAAS,EAAQ,EAAE,IAAgB;;YAC3C,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE;gBACrB,MAAM,EAAE,eAAe;gBACvB,IAAI,EAAE,EAAE;aACT,CAAC,CAAA;YAEF,IAAI,EAAE,CAAA;QACR,CAAC;KAAA;CACF;AA3BD,gCA2BC"}
@@ -1,51 +0,0 @@
1
- import { Component } from '../../../../client/component';
2
- import { Element } from '../../../../client/element';
3
- import { ComponentClass, System } from '../../../../system';
4
- import { UnitBundleSpec } from '../../../../types/UnitBundleSpec';
5
- import { $Wrap } from '../../../../types/interface/async/$Wrap';
6
- export interface Props {
7
- component?: UnitBundleSpec;
8
- }
9
- export declare const DEFAULT_STYLE: {};
10
- export default class Follow extends Element<HTMLDivElement, Props, $Wrap> {
11
- private _Container;
12
- private _child_container;
13
- private _parent_container;
14
- private _parent_child_container;
15
- constructor(props: {}, $system: System);
16
- private _rewrap;
17
- private rewrapParentChild;
18
- private rewrapParentRoot;
19
- private rewrapChild;
20
- private _connected_container;
21
- private _connected_child_container;
22
- private _connected_parent_root_container;
23
- private _connected_parent_child_container;
24
- memAppendChild(child: Component, slotName: string, at: number): void;
25
- memAppendParentChild(component: Component, slotName: string, at: number, _at: number): void;
26
- domAppendParentChildAt(component: Component, slotName: string, _at: number): void;
27
- memInsertParentChildAt(component: Component, slotName: string, _at: number): void;
28
- domInsertParentChildAt(component: Component, slotName: string, _at: number): void;
29
- memRemoveParentChildAt(component: Component, slotName: string, at: number, _at: number): void;
30
- domRemoveParentChildAt(component: Component, slotName: string, at: number, _at: number): void;
31
- domAppendChild(child: Component, slotName: string, at: number): void;
32
- postAppendChild(child: Component, slotName: string, at: number): void;
33
- postAppendParentChild(child: Component, slotName: string, at: number): void;
34
- domRemoveChild(child: Component, slotName: string, at: number): void;
35
- postRemoveChild(child: Component, at: number): void;
36
- insertParentRoot(component: Component, at: number, slotName: string): void;
37
- unshiftParentRoot(component: Component, slotName: string): void;
38
- pullParentRoot(component: Component): void;
39
- memAppendParentRoot(component: Component, slotName: string, at: number): void;
40
- domAppendParentRoot(component: Component, slotName: string, at: number): void;
41
- postAppendParentRoot(component: Component, slotName: string, at: number): void;
42
- domRemoveParentRootAt(component: Component, slotName: string, at: number, _at: number): void;
43
- postRemoveParentRootAt(component: Component, slotName: string, at: number, _at: number): void;
44
- domInsertParentRootAt(component: Component, at: number, slotName: string): void;
45
- postInsertParentRootAt(component: Component, at: number, slotName: string): void;
46
- onPropChanged(name: string, current: any): void;
47
- getContainer(): ComponentClass;
48
- getChildContainer(at: number): Component;
49
- getParentChildContainer(at: number): Component;
50
- getParentRootContainer(at: number): Component;
51
- }