taon 18.0.17 → 18.0.19
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.
- package/README.md +6 -3
- package/assets/shared/shared_folder_info.txt +1 -1
- package/browser/esm2022/lib/base-classes/base-injector.mjs +8 -1
- package/browser/esm2022/lib/base-classes/base-subscriber-for-entity.mjs +39 -20
- package/browser/esm2022/lib/base-classes/base.mjs +1 -3
- package/browser/esm2022/lib/create-context.mjs +24 -3
- package/browser/esm2022/lib/decorators/classes/subscriber-decorator.mjs +3 -29
- package/browser/esm2022/lib/decorators/http/http-decorators.mjs +3 -1
- package/browser/esm2022/lib/endpoint-context.mjs +36 -136
- package/browser/esm2022/lib/entity-process.mjs +3 -3
- package/browser/esm2022/lib/helpers/class-helpers.mjs +2 -2
- package/browser/esm2022/lib/index.mjs +2 -14
- package/browser/esm2022/lib/inject.mjs +4 -38
- package/browser/esm2022/lib/models.mjs +1 -1
- package/browser/esm2022/lib/realtime/realtime-client.mjs +32 -20
- package/browser/esm2022/lib/realtime/realtime-core.mjs +15 -7
- package/browser/esm2022/lib/realtime/realtime-server.mjs +34 -16
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc.mjs +198 -29
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock.mjs +206 -10
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-socket-io.mjs +3 -7
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy.mjs +6 -2
- package/browser/esm2022/lib/realtime/realtime-subs-manager.mjs +10 -8
- package/browser/esm2022/lib/realtime/realtime.models.mjs +1 -1
- package/browser/esm2022/lib/symbols.mjs +45 -38
- package/browser/esm2022/lib/ui/directives/index.mjs +6 -0
- package/browser/esm2022/lib/ui/directives/safe.pipe.mjs +43 -0
- package/browser/esm2022/lib/ui/directives/taon-inject-html.directive.mjs +24 -0
- package/browser/esm2022/lib/ui/directives/taon-long-press.directive.mjs +120 -0
- package/browser/esm2022/lib/ui/index.mjs +12 -0
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.mjs +5 -0
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.component.mjs +115 -0
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.module.mjs +50 -0
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.mjs +5 -0
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.component.mjs +61 -0
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.module.mjs +21 -0
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/index.mjs +6 -0
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.mjs +14 -3
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.module.mjs +54 -0
- package/browser/esm2022/lib/ui/taon-full-material.module.mjs +179 -0
- package/browser/esm2022/lib/ui/taon-github-fork-me-corner/index.mjs +5 -0
- package/browser/esm2022/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.component.mjs +18 -0
- package/browser/esm2022/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.module.mjs +21 -0
- package/browser/esm2022/lib/ui/taon-notifications/index.mjs +7 -0
- package/browser/esm2022/lib/ui/taon-notifications/taon-notifications.component.mjs +25 -0
- package/browser/esm2022/lib/ui/taon-notifications/taon-notifications.models.mjs +5 -0
- package/browser/esm2022/lib/ui/taon-notifications/taon-notifications.module.mjs +21 -0
- package/browser/esm2022/lib/ui/taon-notifications/taon-notifications.service.mjs +48 -0
- package/browser/esm2022/lib/ui/taon-progress-bar/index.mjs +5 -0
- package/browser/esm2022/lib/ui/taon-progress-bar/taon-progress-bar.component.mjs +98 -0
- package/browser/esm2022/lib/ui/taon-progress-bar/taon-progress-bar.module.mjs +22 -0
- package/browser/esm2022/lib/ui/taon-session-passcode/index.mjs +4 -0
- package/browser/esm2022/lib/ui/taon-session-passcode/taon-session-passcode.component.mjs +120 -0
- package/browser/esm2022/lib/ui/taon-table/index.mjs +5 -0
- package/browser/esm2022/lib/ui/taon-table/taon-table.component.mjs +161 -0
- package/browser/esm2022/lib/ui/taon-table/taon-table.module.mjs +57 -0
- package/browser/fesm2022/taon.mjs +2004 -636
- package/browser/fesm2022/taon.mjs.map +1 -1
- package/browser/lib/base-classes/base-context.d.ts +8 -1
- package/browser/lib/base-classes/base-injector.d.ts +5 -0
- package/browser/lib/base-classes/base.d.ts +8 -3
- package/browser/lib/create-context.d.ts +17 -1
- package/browser/lib/decorators/classes/subscriber-decorator.d.ts +2 -2
- package/browser/lib/decorators/http/http-decorators.d.ts +2 -0
- package/browser/lib/endpoint-context.d.ts +3 -2
- package/browser/lib/helpers/class-helpers.d.ts +1 -1
- package/browser/lib/index.d.ts +25 -16
- package/browser/lib/inject.d.ts +1 -8
- package/browser/lib/models.d.ts +17 -9
- package/browser/lib/realtime/realtime-client.d.ts +8 -2
- package/browser/lib/realtime/realtime-core.d.ts +6 -6
- package/browser/lib/realtime/realtime-server.d.ts +9 -4
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-ipc.d.ts +71 -12
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock.d.ts +4 -4
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-socket-io.d.ts +2 -3
- package/browser/lib/realtime/realtime-strategy/realtime-strategy.d.ts +4 -5
- package/browser/lib/realtime/realtime.models.d.ts +1 -0
- package/browser/lib/symbols.d.ts +30 -36
- package/browser/lib/ui/directives/index.d.ts +4 -0
- package/browser/lib/ui/directives/safe.pipe.d.ts +11 -0
- package/browser/lib/ui/directives/taon-inject-html.directive.d.ts +10 -0
- package/browser/lib/ui/directives/taon-long-press.directive.d.ts +26 -0
- package/browser/lib/ui/index.d.ts +10 -0
- package/browser/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.d.ts +3 -0
- package/browser/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.component.d.ts +33 -0
- package/browser/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.module.d.ts +16 -0
- package/browser/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.d.ts +3 -0
- package/browser/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.component.d.ts +17 -0
- package/browser/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.module.d.ts +10 -0
- package/browser/lib/ui/taon-admin-mode-configuration/index.d.ts +4 -0
- package/browser/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.module.d.ts +17 -0
- package/browser/lib/ui/taon-full-material.module.d.ts +47 -0
- package/browser/lib/ui/taon-github-fork-me-corner/index.d.ts +3 -0
- package/browser/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.component.d.ts +7 -0
- package/browser/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.module.d.ts +9 -0
- package/browser/lib/ui/taon-notifications/index.d.ts +5 -0
- package/browser/lib/ui/taon-notifications/taon-notifications.component.d.ts +13 -0
- package/browser/lib/ui/taon-notifications/taon-notifications.models.d.ts +7 -0
- package/browser/lib/ui/taon-notifications/taon-notifications.module.d.ts +8 -0
- package/browser/lib/ui/taon-notifications/taon-notifications.service.d.ts +15 -0
- package/browser/lib/ui/taon-progress-bar/index.d.ts +3 -0
- package/browser/lib/ui/taon-progress-bar/taon-progress-bar.component.d.ts +19 -0
- package/browser/lib/ui/taon-progress-bar/taon-progress-bar.module.d.ts +10 -0
- package/browser/lib/ui/taon-session-passcode/index.d.ts +2 -0
- package/browser/lib/ui/taon-session-passcode/taon-session-passcode.component.d.ts +39 -0
- package/browser/lib/ui/taon-table/index.d.ts +3 -0
- package/browser/lib/ui/taon-table/taon-table.component.d.ts +37 -0
- package/browser/lib/ui/taon-table/taon-table.module.d.ts +17 -0
- package/client/esm2022/lib/base-classes/base-injector.mjs +8 -1
- package/client/esm2022/lib/base-classes/base-subscriber-for-entity.mjs +39 -20
- package/client/esm2022/lib/base-classes/base.mjs +1 -3
- package/client/esm2022/lib/create-context.mjs +24 -3
- package/client/esm2022/lib/decorators/classes/subscriber-decorator.mjs +3 -29
- package/client/esm2022/lib/decorators/http/http-decorators.mjs +3 -1
- package/client/esm2022/lib/endpoint-context.mjs +36 -136
- package/client/esm2022/lib/entity-process.mjs +3 -3
- package/client/esm2022/lib/helpers/class-helpers.mjs +2 -2
- package/client/esm2022/lib/index.mjs +2 -14
- package/client/esm2022/lib/inject.mjs +4 -38
- package/client/esm2022/lib/models.mjs +1 -1
- package/client/esm2022/lib/realtime/realtime-client.mjs +32 -20
- package/client/esm2022/lib/realtime/realtime-core.mjs +15 -7
- package/client/esm2022/lib/realtime/realtime-server.mjs +34 -16
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc.mjs +198 -29
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock.mjs +206 -10
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-socket-io.mjs +3 -7
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy.mjs +6 -2
- package/client/esm2022/lib/realtime/realtime-subs-manager.mjs +10 -8
- package/client/esm2022/lib/realtime/realtime.models.mjs +1 -1
- package/client/esm2022/lib/symbols.mjs +45 -38
- package/client/esm2022/lib/ui/directives/index.mjs +6 -0
- package/client/esm2022/lib/ui/directives/safe.pipe.mjs +43 -0
- package/client/esm2022/lib/ui/directives/taon-inject-html.directive.mjs +24 -0
- package/client/esm2022/lib/ui/directives/taon-long-press.directive.mjs +120 -0
- package/client/esm2022/lib/ui/index.mjs +12 -0
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.mjs +5 -0
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.component.mjs +115 -0
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.module.mjs +50 -0
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.mjs +5 -0
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.component.mjs +61 -0
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.module.mjs +21 -0
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/index.mjs +6 -0
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.mjs +14 -3
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.module.mjs +54 -0
- package/client/esm2022/lib/ui/taon-full-material.module.mjs +179 -0
- package/client/esm2022/lib/ui/taon-github-fork-me-corner/index.mjs +5 -0
- package/client/esm2022/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.component.mjs +18 -0
- package/client/esm2022/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.module.mjs +21 -0
- package/client/esm2022/lib/ui/taon-notifications/index.mjs +7 -0
- package/client/esm2022/lib/ui/taon-notifications/taon-notifications.component.mjs +25 -0
- package/client/esm2022/lib/ui/taon-notifications/taon-notifications.models.mjs +5 -0
- package/client/esm2022/lib/ui/taon-notifications/taon-notifications.module.mjs +21 -0
- package/client/esm2022/lib/ui/taon-notifications/taon-notifications.service.mjs +48 -0
- package/client/esm2022/lib/ui/taon-progress-bar/index.mjs +5 -0
- package/client/esm2022/lib/ui/taon-progress-bar/taon-progress-bar.component.mjs +98 -0
- package/client/esm2022/lib/ui/taon-progress-bar/taon-progress-bar.module.mjs +22 -0
- package/client/esm2022/lib/ui/taon-session-passcode/index.mjs +4 -0
- package/client/esm2022/lib/ui/taon-session-passcode/taon-session-passcode.component.mjs +120 -0
- package/client/esm2022/lib/ui/taon-table/index.mjs +5 -0
- package/client/esm2022/lib/ui/taon-table/taon-table.component.mjs +161 -0
- package/client/esm2022/lib/ui/taon-table/taon-table.module.mjs +57 -0
- package/client/fesm2022/taon.mjs +2004 -636
- package/client/fesm2022/taon.mjs.map +1 -1
- package/client/lib/base-classes/base-context.d.ts +8 -1
- package/client/lib/base-classes/base-injector.d.ts +5 -0
- package/client/lib/base-classes/base.d.ts +8 -3
- package/client/lib/create-context.d.ts +17 -1
- package/client/lib/decorators/classes/subscriber-decorator.d.ts +2 -2
- package/client/lib/decorators/http/http-decorators.d.ts +2 -0
- package/client/lib/endpoint-context.d.ts +3 -2
- package/client/lib/helpers/class-helpers.d.ts +1 -1
- package/client/lib/index.d.ts +25 -16
- package/client/lib/inject.d.ts +1 -8
- package/client/lib/models.d.ts +17 -9
- package/client/lib/realtime/realtime-client.d.ts +8 -2
- package/client/lib/realtime/realtime-core.d.ts +6 -6
- package/client/lib/realtime/realtime-server.d.ts +9 -4
- package/client/lib/realtime/realtime-strategy/realtime-strategy-ipc.d.ts +71 -12
- package/client/lib/realtime/realtime-strategy/realtime-strategy-mock.d.ts +4 -4
- package/client/lib/realtime/realtime-strategy/realtime-strategy-socket-io.d.ts +2 -3
- package/client/lib/realtime/realtime-strategy/realtime-strategy.d.ts +4 -5
- package/client/lib/realtime/realtime.models.d.ts +1 -0
- package/client/lib/symbols.d.ts +30 -36
- package/client/lib/ui/directives/index.d.ts +4 -0
- package/client/lib/ui/directives/safe.pipe.d.ts +11 -0
- package/client/lib/ui/directives/taon-inject-html.directive.d.ts +10 -0
- package/client/lib/ui/directives/taon-long-press.directive.d.ts +26 -0
- package/client/lib/ui/index.d.ts +10 -0
- package/client/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.d.ts +3 -0
- package/client/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.component.d.ts +33 -0
- package/client/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.module.d.ts +16 -0
- package/client/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.d.ts +3 -0
- package/client/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.component.d.ts +17 -0
- package/client/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.module.d.ts +10 -0
- package/client/lib/ui/taon-admin-mode-configuration/index.d.ts +4 -0
- package/client/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.module.d.ts +17 -0
- package/client/lib/ui/taon-full-material.module.d.ts +47 -0
- package/client/lib/ui/taon-github-fork-me-corner/index.d.ts +3 -0
- package/client/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.component.d.ts +7 -0
- package/client/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.module.d.ts +9 -0
- package/client/lib/ui/taon-notifications/index.d.ts +5 -0
- package/client/lib/ui/taon-notifications/taon-notifications.component.d.ts +13 -0
- package/client/lib/ui/taon-notifications/taon-notifications.models.d.ts +7 -0
- package/client/lib/ui/taon-notifications/taon-notifications.module.d.ts +8 -0
- package/client/lib/ui/taon-notifications/taon-notifications.service.d.ts +15 -0
- package/client/lib/ui/taon-progress-bar/index.d.ts +3 -0
- package/client/lib/ui/taon-progress-bar/taon-progress-bar.component.d.ts +19 -0
- package/client/lib/ui/taon-progress-bar/taon-progress-bar.module.d.ts +10 -0
- package/client/lib/ui/taon-session-passcode/index.d.ts +2 -0
- package/client/lib/ui/taon-session-passcode/taon-session-passcode.component.d.ts +39 -0
- package/client/lib/ui/taon-table/index.d.ts +3 -0
- package/client/lib/ui/taon-table/taon-table.component.d.ts +37 -0
- package/client/lib/ui/taon-table/taon-table.module.d.ts +17 -0
- package/lib/base-classes/base-context.d.ts +8 -1
- package/lib/base-classes/base-injector.d.ts +5 -0
- package/lib/base-classes/base-injector.js +11 -0
- package/lib/base-classes/base-injector.js.map +1 -1
- package/lib/base-classes/base-subscriber-for-entity.js +38 -19
- package/lib/base-classes/base-subscriber-for-entity.js.map +1 -1
- package/lib/base-classes/base.d.ts +8 -3
- package/lib/base-classes/base.js +0 -2
- package/lib/base-classes/base.js.map +1 -1
- package/lib/create-context.d.ts +17 -1
- package/lib/create-context.js +21 -10
- package/lib/create-context.js.map +1 -1
- package/lib/decorators/classes/subscriber-decorator.d.ts +1 -1
- package/lib/decorators/classes/subscriber-decorator.js +7 -58
- package/lib/decorators/classes/subscriber-decorator.js.map +1 -1
- package/lib/decorators/http/http-decorators.d.ts +3 -1
- package/lib/decorators/http/http-decorators.js +2 -0
- package/lib/decorators/http/http-decorators.js.map +1 -1
- package/lib/endpoint-context.d.ts +3 -2
- package/lib/endpoint-context.js +169 -106
- package/lib/endpoint-context.js.map +1 -1
- package/lib/entity-process.js +2 -2
- package/lib/entity-process.js.map +1 -1
- package/lib/formly/formly-repeat-component.js +1 -1
- package/lib/formly/formly-repeat-component.js.map +1 -1
- package/lib/helpers/class-helpers.d.ts +1 -1
- package/lib/helpers/class-helpers.js +2 -2
- package/lib/helpers/class-helpers.js.map +1 -1
- package/lib/index.d.ts +25 -16
- package/lib/index.js +1 -17
- package/lib/index.js.map +1 -1
- package/lib/inject.d.ts +3 -7
- package/lib/inject.js +57 -42
- package/lib/inject.js.map +1 -1
- package/lib/models.d.ts +17 -9
- package/lib/models.js.map +1 -1
- package/lib/realtime/realtime-client.d.ts +8 -2
- package/lib/realtime/realtime-client.js +36 -21
- package/lib/realtime/realtime-client.js.map +1 -1
- package/lib/realtime/realtime-core.d.ts +6 -6
- package/lib/realtime/realtime-core.js +17 -6
- package/lib/realtime/realtime-core.js.map +1 -1
- package/lib/realtime/realtime-server.d.ts +9 -4
- package/lib/realtime/realtime-server.js +98 -76
- package/lib/realtime/realtime-server.js.map +1 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc.d.ts +71 -11
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc.js +301 -40
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc.js.map +1 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-mock.d.ts +4 -4
- package/lib/realtime/realtime-strategy/realtime-strategy-mock.js +358 -14
- package/lib/realtime/realtime-strategy/realtime-strategy-mock.js.map +1 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-socket-io.d.ts +3 -3
- package/lib/realtime/realtime-strategy/realtime-strategy-socket-io.js +10 -14
- package/lib/realtime/realtime-strategy/realtime-strategy-socket-io.js.map +1 -1
- package/lib/realtime/realtime-strategy/realtime-strategy.d.ts +4 -5
- package/lib/realtime/realtime-strategy/realtime-strategy.js +9 -2
- package/lib/realtime/realtime-strategy/realtime-strategy.js.map +1 -1
- package/lib/realtime/realtime-subs-manager.js +10 -8
- package/lib/realtime/realtime-subs-manager.js.map +1 -1
- package/lib/realtime/realtime.models.d.ts +1 -0
- package/lib/symbols.d.ts +30 -36
- package/lib/symbols.js +63 -39
- package/lib/symbols.js.map +1 -1
- package/lib/ui/directives/index.d.ts +3 -4
- package/lib/ui/directives/index.js +2 -2
- package/lib/ui/index.d.ts +9 -0
- package/lib/ui/index.js +5 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.js +2 -2
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.component.d.ts +3 -5
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.js +2 -2
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/taon-db-admin.component.d.ts +2 -3
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.js +2 -2
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.component.d.ts +1 -2
- package/lib/ui/taon-admin-mode-configuration/index.d.ts +0 -1
- package/lib/ui/taon-admin-mode-configuration/index.js +2 -2
- package/lib/ui/taon-github-fork-me-corner/index.js +2 -2
- package/lib/ui/taon-github-fork-me-ribbon/index.js +2 -2
- package/lib/ui/taon-notifications/taon-notifications.models.js +2 -2
- package/lib/ui/taon-progress-bar/index.js +2 -2
- package/lib/ui/taon-progress-bar/taon-progress-bar.component.d.ts +1 -0
- package/lib/ui/taon-session-passcode/index.js +2 -2
- package/lib/ui/taon-table/index.d.ts +2 -0
- package/lib/ui/taon-table/index.js +5 -0
- package/lib/ui/taon-table/index.js.map +1 -0
- package/lib/ui/taon-table/taon-table.component.d.ts +33 -0
- package/lib/ui/taon-table/taon-table.module.d.ts +2 -0
- package/package.json +10 -8
- package/tmp-environment.json +34 -30
- package/websql/esm2022/lib/base-classes/base-injector.mjs +8 -1
- package/websql/esm2022/lib/base-classes/base-subscriber-for-entity.mjs +39 -20
- package/websql/esm2022/lib/base-classes/base.mjs +1 -3
- package/websql/esm2022/lib/create-context.mjs +24 -3
- package/websql/esm2022/lib/decorators/classes/subscriber-decorator.mjs +3 -29
- package/websql/esm2022/lib/decorators/http/http-decorators.mjs +3 -1
- package/websql/esm2022/lib/endpoint-context.mjs +48 -24
- package/websql/esm2022/lib/entity-process.mjs +3 -3
- package/websql/esm2022/lib/helpers/class-helpers.mjs +2 -2
- package/websql/esm2022/lib/index.mjs +2 -14
- package/websql/esm2022/lib/inject.mjs +4 -38
- package/websql/esm2022/lib/models.mjs +1 -1
- package/websql/esm2022/lib/realtime/realtime-client.mjs +32 -20
- package/websql/esm2022/lib/realtime/realtime-core.mjs +15 -7
- package/websql/esm2022/lib/realtime/realtime-server.mjs +90 -72
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc.mjs +200 -30
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock.mjs +206 -10
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-socket-io.mjs +3 -7
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy.mjs +6 -2
- package/websql/esm2022/lib/realtime/realtime-subs-manager.mjs +10 -8
- package/websql/esm2022/lib/realtime/realtime.models.mjs +1 -1
- package/websql/esm2022/lib/symbols.mjs +45 -38
- package/websql/esm2022/lib/ui/directives/index.mjs +6 -0
- package/websql/esm2022/lib/ui/directives/safe.pipe.mjs +43 -0
- package/websql/esm2022/lib/ui/directives/taon-inject-html.directive.mjs +24 -0
- package/websql/esm2022/lib/ui/directives/taon-long-press.directive.mjs +120 -0
- package/websql/esm2022/lib/ui/index.mjs +12 -0
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.mjs +5 -0
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.component.mjs +115 -0
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.module.mjs +50 -0
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.mjs +5 -0
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.component.mjs +61 -0
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.module.mjs +21 -0
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/index.mjs +6 -0
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.mjs +14 -3
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.module.mjs +54 -0
- package/websql/esm2022/lib/ui/taon-full-material.module.mjs +179 -0
- package/websql/esm2022/lib/ui/taon-github-fork-me-corner/index.mjs +5 -0
- package/websql/esm2022/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.component.mjs +18 -0
- package/websql/esm2022/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.module.mjs +21 -0
- package/websql/esm2022/lib/ui/taon-notifications/index.mjs +7 -0
- package/websql/esm2022/lib/ui/taon-notifications/taon-notifications.component.mjs +25 -0
- package/websql/esm2022/lib/ui/taon-notifications/taon-notifications.models.mjs +5 -0
- package/websql/esm2022/lib/ui/taon-notifications/taon-notifications.module.mjs +21 -0
- package/websql/esm2022/lib/ui/taon-notifications/taon-notifications.service.mjs +48 -0
- package/websql/esm2022/lib/ui/taon-progress-bar/index.mjs +5 -0
- package/websql/esm2022/lib/ui/taon-progress-bar/taon-progress-bar.component.mjs +50 -0
- package/websql/esm2022/lib/ui/taon-progress-bar/taon-progress-bar.module.mjs +22 -0
- package/websql/esm2022/lib/ui/taon-session-passcode/index.mjs +4 -0
- package/websql/esm2022/lib/ui/taon-session-passcode/taon-session-passcode.component.mjs +120 -0
- package/websql/esm2022/lib/ui/taon-table/index.mjs +5 -0
- package/websql/esm2022/lib/ui/taon-table/taon-table.component.mjs +161 -0
- package/websql/esm2022/lib/ui/taon-table/taon-table.module.mjs +57 -0
- package/websql/fesm2022/taon.mjs +2140 -836
- package/websql/fesm2022/taon.mjs.map +1 -1
- package/websql/lib/base-classes/base-context.d.ts +8 -1
- package/websql/lib/base-classes/base-injector.d.ts +5 -0
- package/websql/lib/base-classes/base.d.ts +8 -3
- package/websql/lib/create-context.d.ts +17 -1
- package/websql/lib/decorators/classes/subscriber-decorator.d.ts +2 -2
- package/websql/lib/decorators/http/http-decorators.d.ts +2 -0
- package/websql/lib/endpoint-context.d.ts +3 -2
- package/websql/lib/helpers/class-helpers.d.ts +1 -1
- package/websql/lib/index.d.ts +25 -16
- package/websql/lib/inject.d.ts +1 -8
- package/websql/lib/models.d.ts +17 -9
- package/websql/lib/realtime/realtime-client.d.ts +8 -2
- package/websql/lib/realtime/realtime-core.d.ts +6 -6
- package/websql/lib/realtime/realtime-server.d.ts +9 -4
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-ipc.d.ts +71 -12
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock.d.ts +4 -4
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-socket-io.d.ts +2 -3
- package/websql/lib/realtime/realtime-strategy/realtime-strategy.d.ts +4 -5
- package/websql/lib/realtime/realtime.models.d.ts +1 -0
- package/websql/lib/symbols.d.ts +30 -36
- package/websql/lib/ui/directives/index.d.ts +4 -0
- package/websql/lib/ui/directives/safe.pipe.d.ts +11 -0
- package/websql/lib/ui/directives/taon-inject-html.directive.d.ts +10 -0
- package/websql/lib/ui/directives/taon-long-press.directive.d.ts +26 -0
- package/websql/lib/ui/index.d.ts +10 -0
- package/websql/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.d.ts +3 -0
- package/websql/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.component.d.ts +33 -0
- package/websql/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.module.d.ts +16 -0
- package/websql/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.d.ts +3 -0
- package/websql/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.component.d.ts +17 -0
- package/websql/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.module.d.ts +10 -0
- package/websql/lib/ui/taon-admin-mode-configuration/index.d.ts +4 -0
- package/websql/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.module.d.ts +17 -0
- package/websql/lib/ui/taon-full-material.module.d.ts +47 -0
- package/websql/lib/ui/taon-github-fork-me-corner/index.d.ts +3 -0
- package/websql/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.component.d.ts +7 -0
- package/websql/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.module.d.ts +9 -0
- package/websql/lib/ui/taon-notifications/index.d.ts +5 -0
- package/websql/lib/ui/taon-notifications/taon-notifications.component.d.ts +13 -0
- package/websql/lib/ui/taon-notifications/taon-notifications.models.d.ts +7 -0
- package/websql/lib/ui/taon-notifications/taon-notifications.module.d.ts +8 -0
- package/websql/lib/ui/taon-notifications/taon-notifications.service.d.ts +15 -0
- package/websql/lib/ui/taon-progress-bar/index.d.ts +3 -0
- package/websql/lib/ui/taon-progress-bar/taon-progress-bar.component.d.ts +19 -0
- package/websql/lib/ui/taon-progress-bar/taon-progress-bar.module.d.ts +10 -0
- package/websql/lib/ui/taon-session-passcode/index.d.ts +2 -0
- package/websql/lib/ui/taon-session-passcode/taon-session-passcode.component.d.ts +39 -0
- package/websql/lib/ui/taon-table/index.d.ts +3 -0
- package/websql/lib/ui/taon-table/taon-table.component.d.ts +37 -0
- package/websql/lib/ui/taon-table/taon-table.module.d.ts +17 -0
- package/browser/esm2022/lib/base-classes/base-subscriber.mjs +0 -27
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.mjs +0 -98
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.mjs +0 -45
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.mjs +0 -40
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.mjs +0 -25
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.mjs +0 -4
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.mjs +0 -5
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.mjs +0 -50
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.mjs +0 -48
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.mjs +0 -35
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.mjs +0 -43
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.mjs +0 -4
- package/browser/lib/base-classes/base-subscriber.d.ts +0 -5
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.d.ts +0 -22
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.d.ts +0 -17
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.d.ts +0 -11
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.d.ts +0 -11
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.d.ts +0 -14
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.d.ts +0 -3
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.d.ts +0 -17
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.d.ts +0 -18
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.d.ts +0 -12
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.d.ts +0 -14
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.d.ts +0 -12
- package/client/esm2022/lib/base-classes/base-subscriber.mjs +0 -27
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.mjs +0 -98
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.mjs +0 -45
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.mjs +0 -40
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.mjs +0 -25
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.mjs +0 -4
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.mjs +0 -5
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.mjs +0 -50
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.mjs +0 -48
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.mjs +0 -35
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.mjs +0 -43
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.mjs +0 -4
- package/client/lib/base-classes/base-subscriber.d.ts +0 -5
- package/client/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.d.ts +0 -22
- package/client/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.d.ts +0 -17
- package/client/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.d.ts +0 -11
- package/client/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.d.ts +0 -11
- package/client/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.d.ts +0 -14
- package/client/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.d.ts +0 -3
- package/client/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.d.ts +0 -17
- package/client/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.d.ts +0 -18
- package/client/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.d.ts +0 -12
- package/client/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.d.ts +0 -14
- package/client/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.d.ts +0 -12
- package/lib/base-classes/base-subscriber.d.ts +0 -4
- package/lib/base-classes/base-subscriber.js +0 -25
- package/lib/base-classes/base-subscriber.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/index.d.ts +0 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/index.js +0 -5
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.d.ts +0 -22
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.js +0 -139
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.d.ts +0 -16
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.js +0 -68
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.d.ts +0 -10
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.js +0 -56
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.d.ts +0 -10
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.js +0 -50
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.d.ts +0 -13
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.js +0 -3
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.d.ts +0 -2
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.js +0 -6
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.d.ts +0 -16
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.js +0 -54
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.d.ts +0 -17
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.js +0 -52
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.d.ts +0 -11
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.js +0 -39
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.d.ts +0 -13
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.js +0 -46
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.d.ts +0 -11
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.js +0 -3
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.js.map +0 -1
- package/websql/esm2022/lib/base-classes/base-subscriber.mjs +0 -27
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.mjs +0 -98
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.mjs +0 -45
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.mjs +0 -40
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.mjs +0 -25
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.mjs +0 -4
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.mjs +0 -5
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.mjs +0 -50
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.mjs +0 -48
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.mjs +0 -35
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.mjs +0 -43
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.mjs +0 -4
- package/websql/lib/base-classes/base-subscriber.d.ts +0 -5
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.d.ts +0 -22
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.d.ts +0 -17
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.d.ts +0 -11
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.d.ts +0 -11
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.d.ts +0 -14
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.d.ts +0 -3
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.d.ts +0 -17
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.d.ts +0 -18
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.d.ts +0 -12
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.d.ts +0 -14
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.d.ts +0 -12
- /package/lib/ui/directives/{firedev-inject-html.directive.d.ts → taon-inject-html.directive.d.ts} +0 -0
- /package/lib/ui/directives/{firedev-long-press.directive.d.ts → taon-long-press.directive.d.ts} +0 -0
- /package/lib/{realtime/realtime-strategy/realtime-strategy-ipc-models → ui}/index.js.map +0 -0
- /package/lib/ui/{toan-full-material.module.d.ts → taon-full-material.module.d.ts} +0 -0
package/lib/inject.js
CHANGED
|
@@ -2,10 +2,8 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
/* */
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
6
|
-
var tslib_1 = require("tslib");
|
|
5
|
+
exports.inject = void 0;
|
|
7
6
|
var symbols_1 = require("./symbols");
|
|
8
|
-
var rxjs_1 = require("rxjs");
|
|
9
7
|
var inject = function (entity) {
|
|
10
8
|
return new Proxy({}, {
|
|
11
9
|
get: function (_, propName) {
|
|
@@ -42,43 +40,60 @@ var inject = function (entity) {
|
|
|
42
40
|
});
|
|
43
41
|
};
|
|
44
42
|
exports.inject = inject;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
43
|
+
// export const injectController = inject;
|
|
44
|
+
// export type SubscriptionEvent<T> = {
|
|
45
|
+
// name: keyof T;
|
|
46
|
+
// data: any;
|
|
47
|
+
// };
|
|
48
|
+
/**
|
|
49
|
+
* TODO
|
|
50
|
+
*/
|
|
51
|
+
// export const injectEntityEvents = <T>(
|
|
52
|
+
// subscriberClassResolveFn: () => new (...args: any[]) => T,
|
|
53
|
+
// eventName?: keyof Omit<EntitySubscriberInterface,'listenTo'> ,
|
|
54
|
+
// ): Observable<SubscriptionEvent<T>> => {
|
|
55
|
+
// const eventsSrc = new Subject<SubscriptionEvent<T>>();
|
|
56
|
+
// const obs = eventsSrc.asObservable();
|
|
57
|
+
// let isFirstSubscription = true;
|
|
58
|
+
// const proxyObservable = new Proxy(obs, {
|
|
59
|
+
// get(target, prop, receiver) {
|
|
60
|
+
// if (prop === 'subscribe') {
|
|
61
|
+
// return (...args: any[]) => {
|
|
62
|
+
// // @LAST
|
|
63
|
+
// if (isFirstSubscription) {
|
|
64
|
+
// isFirstSubscription = false;
|
|
65
|
+
// const subscriberClassFN: typeof BaseClass =
|
|
66
|
+
// subscriberClassResolveFn() as any;
|
|
67
|
+
// const ctx = subscriberClassFN[
|
|
68
|
+
// Symbols.ctxInClassOrClassObj
|
|
69
|
+
// ] as EndpointContext;
|
|
70
|
+
// if (!ctx) {
|
|
71
|
+
// throw new Error(
|
|
72
|
+
// `You are trying to inject class without context. Use context like this:
|
|
73
|
+
// class MyClassSubscriber extends BaseSubscriber {
|
|
74
|
+
// ${eventName as any}() {
|
|
75
|
+
// \/\/ your code here
|
|
76
|
+
// }
|
|
77
|
+
// }
|
|
78
|
+
// Taon.injectSubscriberEvents( MyContext.getInstance(()=> MyClassSubscriber), '${eventName as any}' )
|
|
79
|
+
// `,
|
|
80
|
+
// );
|
|
81
|
+
// }
|
|
82
|
+
// const subscriberInstance = ctx.getInstanceBy(subscriberClassFN);
|
|
83
|
+
// // subscriberInstance TODO @LAST subscriber event from instance
|
|
84
|
+
// // const entity = subscriberClassFN.prototype.listenTo();
|
|
85
|
+
// console.log('First subscription, you can access arguments here:', {
|
|
86
|
+
// subscriberClassFN,
|
|
87
|
+
// eventName,
|
|
88
|
+
// });
|
|
89
|
+
// // @LAST
|
|
90
|
+
// }
|
|
91
|
+
// return target.subscribe(...args);
|
|
92
|
+
// };
|
|
93
|
+
// }
|
|
94
|
+
// return Reflect.get(target, prop, receiver);
|
|
95
|
+
// },
|
|
96
|
+
// });
|
|
97
|
+
// return proxyObservable as Observable<SubscriptionEvent<T>>;
|
|
98
|
+
// };
|
|
84
99
|
//# sourceMappingURL=inject.js.map
|
package/lib/inject.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inject.js","sourceRoot":"","sources":[""],"names":[],"mappings":";AAAA,KAAK;AACL,KAAK
|
|
1
|
+
{"version":3,"file":"inject.js","sourceRoot":"","sources":[""],"names":[],"mappings":";AAAA,KAAK;AACL,KAAK;;;AAEL,qCAAoC;AAI7B,IAAM,MAAM,GAAG,UAAI,MAAuC;IAC/D,OAAO,IAAI,KAAK,CACd,EAAE,EACF;QACE,GAAG,EAAE,UAAC,CAAC,EAAE,QAAQ;YACf,IAAI,QAAQ,KAAK,gBAAgB,EAAE,CAAC;gBAClC,OAAO,cAAM,OAAA,KAAK,EAAL,CAAK,CAAC;YACrB,CAAC;YAED,IAAM,IAAI,GAAG,MAAM,EAAE,CAAC;YACtB,IAAM,gBAAgB,GAAG,IAAI,CAC3B,iBAAO,CAAC,oBAAoB,CACV,CAAC;YACrB,IAAM,aAAa,GAAG,gBAAgB,CAAC;YACvC,IAAI,aAAa,EAAE,CAAC;gBAClB,IAAI,UAAQ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C1B,iCAAiC;AACjC,0FAA0F;AAE1F,iEAAiE;AACjE,4CAA4C;AAC5C,0CAA0C;AAC1C,sBAAsB;AACtB,kBAAkB;AAElB,oHAAoH;AAGpH,mBAAmB;AACnB,mBAAmB;AACnB,gBAAgB;AAChB,+EAA+E;AAC/E,8EAA8E;AAC9E,wEAAwE;AACxE,kFAAkF;AAClF,mCAAmC;AACnC,2BAA2B;AAC3B,kBAAkB;AAClB,uBAAuB;AACvB,cAAc;AACd,8CAA8C;AAC9C,aAAa;AACb,UAAU;AACV,oDAAoD;AACpD,SAAS;AACT,QAAQ;AAER,gEAAgE;AAChE,KAAK"}
|
package/lib/models.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { RequestHandler } from 'express';
|
|
|
3
3
|
import { Response as ExpressResponse, Request as ExpressRequest } from 'express';
|
|
4
4
|
import { Models as ModelsNg2Rest } from 'ng2-rest/src';
|
|
5
5
|
export declare namespace Models {
|
|
6
|
-
type FrameworkMode = 'backend-frontend(tcp+udp)' | 'remote-backend(tcp+udp)' | 'backend-frontend(ipc-electron)' | 'backend-frontend(websql)';
|
|
6
|
+
type FrameworkMode = 'backend-frontend(tcp+udp)' | 'remote-backend(tcp+udp)' | 'backend-frontend(ipc-electron)' | 'backend-frontend(websql-electron)' | 'backend-frontend(websql)';
|
|
7
7
|
enum ClassType {
|
|
8
8
|
ENTITY = "ENTITY",
|
|
9
9
|
CONTROLLER = "CONTROLLER",
|
|
@@ -47,20 +47,28 @@ export declare namespace Models {
|
|
|
47
47
|
resave?: boolean;
|
|
48
48
|
};
|
|
49
49
|
type ContectionOptionsLogs = {
|
|
50
|
-
http
|
|
51
|
-
realtime
|
|
52
|
-
framework
|
|
53
|
-
db
|
|
50
|
+
http?: boolean;
|
|
51
|
+
realtime?: boolean;
|
|
52
|
+
framework?: boolean;
|
|
53
|
+
db?: boolean;
|
|
54
54
|
};
|
|
55
55
|
interface ContextOptions<CONTEXTS, CONTROLLERS, ENTITIES, REPOSITORIES, PROVIDERS, SUBSCRIBERS> {
|
|
56
56
|
contextName: string;
|
|
57
|
+
/**
|
|
58
|
+
* host/port for initing backend server
|
|
59
|
+
*/
|
|
57
60
|
host?: string;
|
|
58
61
|
/**
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
* frontend host only needed when we are
|
|
63
|
+
* using withCredentials for axios
|
|
64
|
+
* and session cookie
|
|
65
|
+
* or realtime communication
|
|
66
|
+
*/
|
|
63
67
|
frontendHost?: string;
|
|
68
|
+
/**
|
|
69
|
+
* backend way of communication
|
|
70
|
+
* between taon backends/processes
|
|
71
|
+
*/
|
|
64
72
|
remoteHost?: string;
|
|
65
73
|
useIpcWhenElectron?: boolean;
|
|
66
74
|
contexts?: CONTEXTS;
|
package/lib/models.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;;AAMA,qCAAmD;AACnD,yDAAuD;AAIvD,IAAiB,MAAM,
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;;AAMA,qCAAmD;AACnD,yDAAuD;AAIvD,IAAiB,MAAM,CA6RtB;AA7RD,WAAiB,MAAM;;IAQrB,8BAA8B;IAC9B,IAAY,SAMX;IAND,WAAY,SAAS;QACnB,8BAAiB,CAAA;QACjB,sCAAyB,CAAA;QACzB,sCAAyB,CAAA;QACzB,kCAAqB,CAAA;QACrB,sCAAyB,CAAA;IAC3B,CAAC,EANW,SAAS,GAAT,gBAAS,KAAT,gBAAS,QAMpB;IAEY,mBAAY,IAAG;QAC1B,GAAC,SAAS,CAAC,MAAM,IAAG,UAAU;QAC9B,GAAC,SAAS,CAAC,UAAU,IAAG,aAAa;QACrC,GAAC,SAAS,CAAC,UAAU,IAAG,cAAc;QACtC,GAAC,SAAS,CAAC,QAAQ,IAAG,WAAW;QACjC,GAAC,SAAS,CAAC,UAAU,IAAG,aAAa;UAGtC,CAA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c,GAA5B,UAA6B,MAAiB;gBAC5C,OAAO,MAAM,CAAC,MAAM,CAClB,iBAAU,4BAAY,CAAC,OAAO,CAAC,MAAM,CAAC,eAAY,CACnD,CAAC;YACJ,CAAC;YAEa,aAAM,GAApB,UACE,OAAe,EACf,IAAkC;gBAAlC,qBAAA,EAAA,UAAkC;gBAElC,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YACtC,CAAC;YACH,aAAC;QAAD,CAAC,AA7BD,IA6BC;QA7BY,WAAM,SA6BlB,CAAA;QAOD,YAAY;IACd,CAAC,EArFgB,IAAI,GAAJ,WAAI,KAAJ,WAAI,QAqFpB;IACD,YAAY;AACd,CAAC,EA7RgB,MAAM,sBAAN,MAAM,QA6RtB"}
|
|
@@ -4,7 +4,7 @@ import { RealtimeModels } from './realtime.models';
|
|
|
4
4
|
import type { BaseEntity } from '../base-classes/base-entity';
|
|
5
5
|
export declare class RealtimeClient {
|
|
6
6
|
private core;
|
|
7
|
-
private
|
|
7
|
+
private subsManagers;
|
|
8
8
|
constructor(core: RealtimeCore);
|
|
9
9
|
private init;
|
|
10
10
|
/**
|
|
@@ -27,5 +27,11 @@ export declare class RealtimeClient {
|
|
|
27
27
|
*/
|
|
28
28
|
listenChangesEntityObj<T extends BaseEntity>(entity: T, options?: RealtimeModels.ChangeOption): Observable<unknown>;
|
|
29
29
|
listenChangesCustomEvent(customEvent: string): Observable<unknown>;
|
|
30
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Trigger custom event on backend
|
|
32
|
+
* @param customEvent global event name
|
|
33
|
+
* @param dataToPush
|
|
34
|
+
*/
|
|
35
|
+
triggerCustomEvent(customEvent: string, dataToPush?: any): void;
|
|
36
|
+
private getUniqueIdentifierForConnection;
|
|
31
37
|
}
|
|
@@ -11,7 +11,7 @@ var realtime_subs_manager_1 = require("./realtime-subs-manager");
|
|
|
11
11
|
var RealtimeClient = /** @class */ (function () {
|
|
12
12
|
function RealtimeClient(core) {
|
|
13
13
|
this.core = core;
|
|
14
|
-
this.
|
|
14
|
+
this.subsManagers = {};
|
|
15
15
|
this.core = core;
|
|
16
16
|
if (!core.ctx.disabledRealtime) {
|
|
17
17
|
/* */
|
|
@@ -26,34 +26,39 @@ var RealtimeClient = /** @class */ (function () {
|
|
|
26
26
|
global: this.core.pathFor(),
|
|
27
27
|
realtime: this.core.pathFor(symbols_1.Symbols.REALTIME.NAMESPACE(this.core.ctx.contextName)),
|
|
28
28
|
};
|
|
29
|
+
// console.log('[browser] nspPath', nspPath);
|
|
29
30
|
this.core.ctx.logRealtime &&
|
|
30
31
|
console.info('[CLIENT] NAMESPACE GLOBAL ', nspPath.global.href + " host: ".concat(this.core.ctx.host));
|
|
31
32
|
this.core.ctx.logRealtime &&
|
|
32
33
|
console.info('[CLIENT] NAMESPACE REALTIME', nspPath.realtime.href + " host: ".concat(this.core.ctx.host));
|
|
33
34
|
//#endregion
|
|
34
35
|
//#region prepare globa FE socket
|
|
35
|
-
this.core.
|
|
36
|
+
this.core.conectSocketFE = this.core.strategy.ioClient(nspPath.global.origin, {
|
|
36
37
|
path: nspPath.global.pathname,
|
|
37
38
|
});
|
|
38
|
-
if (this.core.
|
|
39
|
-
this.core.
|
|
39
|
+
if (this.core.conectSocketFE.on) {
|
|
40
|
+
this.core.conectSocketFE.on('connect', function () {
|
|
40
41
|
// console.info(
|
|
41
|
-
// `[CLIENT]
|
|
42
|
+
// `[CLIENT] connected to GLOBAL namespace ${global.nsp} of host: ${context.host}`,
|
|
42
43
|
// );
|
|
43
|
-
|
|
44
|
+
_this.core.ctx.logRealtime &&
|
|
45
|
+
console.info("[CLIENT] connected to GLOBAL namespace ".concat(nspPath.global.pathname) +
|
|
46
|
+
" of host: ".concat(_this.core.ctx.host));
|
|
44
47
|
});
|
|
45
48
|
}
|
|
46
49
|
//#endregion
|
|
47
50
|
//#region prepare realtime FE socket
|
|
48
|
-
this.core.
|
|
51
|
+
this.core.socketFE = this.core.strategy.ioClient(nspPath.realtime.origin, {
|
|
49
52
|
path: nspPath.realtime.pathname,
|
|
50
53
|
});
|
|
51
|
-
if (this.core.
|
|
52
|
-
this.core.
|
|
54
|
+
if (this.core.socketFE.on) {
|
|
55
|
+
this.core.socketFE.on('connect', function () {
|
|
53
56
|
// console.info(
|
|
54
|
-
// `[CLIENT]
|
|
57
|
+
// `[CLIENT] connected to REALTIME namespace ${realtime.nsp} host: ${context.host}`,
|
|
55
58
|
// );
|
|
56
|
-
|
|
59
|
+
_this.core.ctx.logRealtime &&
|
|
60
|
+
console.info("[CLIENT] connected to REALTIME namespace ".concat(nspPath.realtime.pathname) +
|
|
61
|
+
" host: ".concat(_this.core.ctx.host));
|
|
57
62
|
});
|
|
58
63
|
}
|
|
59
64
|
//#endregion
|
|
@@ -89,12 +94,12 @@ var RealtimeClient = /** @class */ (function () {
|
|
|
89
94
|
}
|
|
90
95
|
var roomName;
|
|
91
96
|
if (customEvent) {
|
|
92
|
-
roomName = symbols_1.Symbols.REALTIME.
|
|
97
|
+
roomName = symbols_1.Symbols.REALTIME.ROOM_NAME_CUSTOM(_this.core.ctx.contextName, customEvent);
|
|
93
98
|
}
|
|
94
99
|
else {
|
|
95
100
|
roomName = tnp_core_1._.isString(property)
|
|
96
|
-
? symbols_1.Symbols.REALTIME.
|
|
97
|
-
: symbols_1.Symbols.REALTIME.
|
|
101
|
+
? symbols_1.Symbols.REALTIME.ROOM_NAME_UPDATE_ENTITY_PROPERTY(_this.core.ctx.contextName, className, property, idOrUniqValue)
|
|
102
|
+
: symbols_1.Symbols.REALTIME.ROOM_NAME_UPDATE_ENTITY(_this.core.ctx.contextName, className, idOrUniqValue);
|
|
98
103
|
}
|
|
99
104
|
var roomSubOptions = {
|
|
100
105
|
core: _this.core,
|
|
@@ -103,13 +108,13 @@ var RealtimeClient = /** @class */ (function () {
|
|
|
103
108
|
customEvent: customEvent,
|
|
104
109
|
};
|
|
105
110
|
//#endregion
|
|
106
|
-
var subManagerId = _this.
|
|
107
|
-
if (!_this.
|
|
108
|
-
_this.
|
|
111
|
+
var subManagerId = _this.getUniqueIdentifierForConnection(roomSubOptions);
|
|
112
|
+
if (!_this.subsManagers[subManagerId]) {
|
|
113
|
+
_this.subsManagers[subManagerId] = new realtime_subs_manager_1.RealtimeSubsManager(roomSubOptions);
|
|
109
114
|
}
|
|
110
|
-
var inst = _this.
|
|
115
|
+
var inst = _this.subsManagers[subManagerId];
|
|
111
116
|
inst.add(observer);
|
|
112
|
-
inst.startListenIfNotStarted(_this.core.
|
|
117
|
+
inst.startListenIfNotStarted(_this.core.socketFE);
|
|
113
118
|
return function () {
|
|
114
119
|
inst.remove(observer);
|
|
115
120
|
};
|
|
@@ -136,7 +141,7 @@ var RealtimeClient = /** @class */ (function () {
|
|
|
136
141
|
*/
|
|
137
142
|
RealtimeClient.prototype.listenChangesEntityObj = function (entity, options) {
|
|
138
143
|
var classFn = class_helpers_1.ClassHelpers.getClassFnFromObject(entity);
|
|
139
|
-
var uniqueKey = class_helpers_1.ClassHelpers.
|
|
144
|
+
var uniqueKey = class_helpers_1.ClassHelpers.getUniqueKey(classFn);
|
|
140
145
|
return this.listenChangesEntity(classFn, entity[uniqueKey], options);
|
|
141
146
|
};
|
|
142
147
|
//#endregion
|
|
@@ -147,8 +152,18 @@ var RealtimeClient = /** @class */ (function () {
|
|
|
147
152
|
});
|
|
148
153
|
};
|
|
149
154
|
//#endregion
|
|
155
|
+
//#region methods & getters / trigger custom event\
|
|
156
|
+
/**
|
|
157
|
+
* Trigger custom event on backend
|
|
158
|
+
* @param customEvent global event name
|
|
159
|
+
* @param dataToPush
|
|
160
|
+
*/
|
|
161
|
+
RealtimeClient.prototype.triggerCustomEvent = function (customEvent, dataToPush) {
|
|
162
|
+
this.core.socketFE.emit(customEvent, dataToPush);
|
|
163
|
+
};
|
|
164
|
+
//#endregion
|
|
150
165
|
//#region methods & getters / get room id from
|
|
151
|
-
RealtimeClient.prototype.
|
|
166
|
+
RealtimeClient.prototype.getUniqueIdentifierForConnection = function (options) {
|
|
152
167
|
var url = new URL(options.core.ctx.host);
|
|
153
168
|
return "".concat(this.core.ctx.contextName, ":").concat(url.origin, "|").concat(options.roomName, "|").concat(options.property, "|").concat(options.customEvent);
|
|
154
169
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"realtime-client.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,iBAAiB;AACjB,qCAA6B;AAE7B,sCAAqC;AACrC,6BAAkC;AAClC,0DAAwD;AACxD,iEAA8D;AAI9D,YAAY;AAEZ;IAEE,wBAAoB,IAAkB;QAAlB,SAAI,GAAJ,IAAI,CAAc;QAD9B,iBAAY,GAA4C,EAAE,CAAC;QAEjE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAC;YACrC,KAAK;YACL,KAAK;QAED,CAAC;IACH,CAAC;IAED,kCAAkC;IAC1B,6BAAI,GAAZ;QAAA,
|
|
1
|
+
{"version":3,"file":"realtime-client.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,iBAAiB;AACjB,qCAA6B;AAE7B,sCAAqC;AACrC,6BAAkC;AAClC,0DAAwD;AACxD,iEAA8D;AAI9D,YAAY;AAEZ;IAEE,wBAAoB,IAAkB;QAAlB,SAAI,GAAJ,IAAI,CAAc;QAD9B,iBAAY,GAA4C,EAAE,CAAC;QAEjE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAC;YACrC,KAAK;YACL,KAAK;QAED,CAAC;IACH,CAAC;IAED,kCAAkC;IAC1B,6BAAI,GAAZ;QAAA,iBAiEC;QAhEC,iCAAiC;QACjC,IAAM,OAAO,GAAG;YACd,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YAC3B,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO,CAC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,8CAA8C;IACtC,yDAAgC,GAAxC,UAAyC,OAAsC;QAC7E,IAAM,GAAG,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC3C,OAAO,UAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,cAAI,GAAG,CAAC,MAAM,cAAI,OAAO,CAAC,QAAQ,cAAI,OAAO,CAAC,QAAQ,cAAI,OAAO,CAAC,WAAW,CAAE,CAAC;IACrH,CAAC;IAEH,qBAAC;AAAD,CAAC,AAxOD,IAwOC;AAxOY,wCAAc"}
|
|
@@ -19,21 +19,21 @@ export declare class RealtimeCore {
|
|
|
19
19
|
readonly server: RealtimeServer;
|
|
20
20
|
readonly strategy: RealtimeStrategy;
|
|
21
21
|
/**
|
|
22
|
-
* global FE socket
|
|
22
|
+
* global FE socket - only for established connection
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
conectSocketFE: SocketClient<DefaultEventsMap, DefaultEventsMap>;
|
|
25
25
|
/**
|
|
26
26
|
* socket for namespaces and rooms
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
socketFE: SocketClient<DefaultEventsMap, DefaultEventsMap>;
|
|
29
29
|
/**
|
|
30
|
-
* global BE socket
|
|
30
|
+
* global BE socket - only for established connection
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
connectSocketBE: Server<DefaultEventsMap, DefaultEventsMap, DefaultEventsMap, any>;
|
|
33
33
|
/**
|
|
34
34
|
* socket for namespaces and rooms
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
socketBE: Server<DefaultEventsMap, DefaultEventsMap, DefaultEventsMap, any>;
|
|
37
37
|
constructor(ctx: EndpointContext);
|
|
38
38
|
private resolveStrategy;
|
|
39
39
|
pathFor(namespace?: string): URL;
|
|
@@ -28,16 +28,27 @@ var RealtimeCore = /** @class */ (function () {
|
|
|
28
28
|
'OPTIONS',
|
|
29
29
|
'HEAD',
|
|
30
30
|
];
|
|
31
|
+
this.ctx = ctx;
|
|
31
32
|
this.strategy = this.resolveStrategy();
|
|
32
|
-
ctx.
|
|
33
|
+
this.ctx.logRealtime &&
|
|
33
34
|
console.log("[taon] realtime strategy: ".concat(this.strategy));
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
if (tnp_core_1.Helpers.isWebSQL) {
|
|
36
|
+
this.server = new realtime_server_1.RealtimeServer(this);
|
|
37
|
+
// console.log('DONE INITING SERVER');
|
|
38
|
+
this.client = new realtime_client_1.RealtimeClient(this);
|
|
39
|
+
// console.log('DONE INITING CLIENT');
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
this.client = new realtime_client_1.RealtimeClient(this);
|
|
43
|
+
this.server = new realtime_server_1.RealtimeServer(this);
|
|
44
|
+
}
|
|
36
45
|
}
|
|
37
46
|
//#endregion
|
|
38
47
|
//#region methods & getters / resovle staraegy
|
|
39
48
|
RealtimeCore.prototype.resolveStrategy = function () {
|
|
40
|
-
if (this.ctx.mode === 'backend-frontend(websql)'
|
|
49
|
+
if (this.ctx.mode === 'backend-frontend(websql)' ||
|
|
50
|
+
this.ctx.mode === 'backend-frontend(websql-electron)') {
|
|
51
|
+
// debugger
|
|
41
52
|
return new realtime_strategy_1.RealtimeStrategyMock(this.ctx);
|
|
42
53
|
}
|
|
43
54
|
if (this.ctx.mode === 'backend-frontend(ipc-electron)') {
|
|
@@ -58,11 +69,11 @@ var RealtimeCore = /** @class */ (function () {
|
|
|
58
69
|
var nsp = namespace ? namespace : '';
|
|
59
70
|
nsp = nsp === '/' ? '' : nsp;
|
|
60
71
|
var pathname = uri.pathname !== '/' ? uri.pathname : '';
|
|
61
|
-
var prefix = "taonContext
|
|
72
|
+
var prefix = "taonContext";
|
|
62
73
|
if (tnp_core_1.Helpers.isElectron) {
|
|
63
74
|
prefix = "";
|
|
64
75
|
}
|
|
65
|
-
var href = "".concat(uri.origin).concat(pathname, "/").concat(prefix).concat(nsp);
|
|
76
|
+
var href = "".concat(uri.origin).concat(pathname, "/").concat(prefix).concat(prefix && nsp ? '-' + nsp : nsp);
|
|
66
77
|
// console.log(`HREF: ${href}, nsp: ${nsp}`)
|
|
67
78
|
return new URL(href);
|
|
68
79
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"realtime-core.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAGA,qDAAmD;AACnD,qDAAmD;AAEnD,yDAI6B;AAG7B,qCAAmC;AACnC,YAAY;AAEZ;;;;;;GAMG;AACH;
|
|
1
|
+
{"version":3,"file":"realtime-core.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAGA,qDAAmD;AACnD,qDAAmD;AAEnD,yDAI6B;AAG7B,qCAAmC;AACnC,YAAY;AAEZ;;;;;;GAMG;AACH;IAyCE,YAAY;IAEZ,qBAAqB;IACrB,sBAAmB,GAAoB;QAApB,QAAG,GAAH,GAAG,CAAiB;QA3CvC,gBAAgB;QACP,mBAAc,GAAG;YACxB,KAAK;YACL,MAAM;YACN,KAAK;YACL,QAAQ;YACR,OAAO;YACP,SAAS;YACT,MAAM;SACP,CAAC;QAmCA,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;QAEvC,IAAI,CAAC,GAAG,CAAC,WAAW;YAClB,OAAO,CAAC,GAAG,CAAC,oCAA6B,IAAI,CAAC,QAAQ,CAAE,CAAC,CAAC;QAC5D,IAAI,kBAAO,CAAC,QAAQ,EAAE,CAAC;YACrB,IAAI,CAAC,MAAM,GAAG,IAAI,gCAAc,CAAC,IAAI,CAAC,CAAC;YACvC,sCAAsC;YACtC,IAAI,CAAC,MAAM,GAAG,IAAI,gCAAc,CAAC,IAAI,CAAC,CAAC;YACvC,sCAAsC;QACxC,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,MAAM,GAAG,IAAI,gCAAc,CAAC,IAAI,CAAC,CAAC;YACvC,IAAI,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AI,MAAM,SAAG,MAAM,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,CAAE,CAAC;QACpF,4CAA4C;QAC5C,OAAO,IAAI,GAAG,CAAC,IAAI,CAAQ,CAAC;IAC9B,CAAC;IAEH,mBAAC;AAAD,CAAC,AApGD,IAoGC;AApGY,oCAAY"}
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { RealtimeCore } from './realtime-core';
|
|
2
2
|
import type { BaseEntity } from '../base-classes/base-entity';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
3
4
|
export declare class RealtimeServer {
|
|
4
5
|
private core;
|
|
5
|
-
private jobs;
|
|
6
6
|
constructor(core: RealtimeCore);
|
|
7
7
|
private init;
|
|
8
8
|
private triggerChanges;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
triggerEntityChanges(entityObjOrClass: Function, idToTrigger?: number | string): void;
|
|
10
|
+
triggerEntityPropertyChanges<ENTITY extends BaseEntity>(entityObjOrClass: new (...args: any[]) => ENTITY, property: keyof ENTITY | (keyof ENTITY)[], idToTrigger?: number | string): void;
|
|
11
|
+
triggerEntityTableChanges(entityClassOrInstance: Function | object): void;
|
|
11
12
|
triggerCustomEvent(customEvent: string, dataToPush: any): void;
|
|
12
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Listen to custom events from users
|
|
15
|
+
* @param customEvent global event name
|
|
16
|
+
*/
|
|
17
|
+
listenChangesCustomEvent(customEvent: string): Observable<any>;
|
|
13
18
|
}
|