taon 18.0.18 → 18.0.20
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/assets/shared/shared_folder_info.txt +1 -1
- package/browser/esm2022/lib/base-classes/base-abstract-entity.mjs +1 -1
- package/browser/esm2022/lib/base-classes/base-crud-controller.mjs +1 -1
- package/browser/esm2022/lib/base-classes/base-injector.mjs +8 -1
- package/browser/esm2022/lib/base-classes/base.mjs +3 -3
- package/browser/esm2022/lib/create-context.mjs +10 -7
- package/browser/esm2022/lib/decorators/http/http-decorators.mjs +3 -1
- package/browser/esm2022/lib/decorators/http/http-methods-decorators.mjs +1 -1
- package/browser/esm2022/lib/endpoint-context.mjs +49 -11
- package/browser/esm2022/lib/entity-process.mjs +1 -10
- package/browser/esm2022/lib/get-response-value.mjs +1 -15
- package/browser/esm2022/lib/index.mjs +2 -1
- package/browser/esm2022/lib/models.mjs +1 -1
- 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 +1463 -94
- package/browser/fesm2022/taon.mjs.map +1 -1
- package/browser/lib/base-classes/base-abstract-entity.d.ts +2 -1
- package/browser/lib/base-classes/base-context.d.ts +4 -1
- package/browser/lib/base-classes/base-crud-controller.d.ts +1 -1
- package/browser/lib/base-classes/base-injector.d.ts +5 -0
- package/browser/lib/base-classes/base.d.ts +7 -3
- package/browser/lib/create-context.d.ts +7 -4
- package/browser/lib/decorators/http/http-decorators.d.ts +2 -0
- package/browser/lib/decorators/http/http-methods-decorators.d.ts +9 -0
- package/browser/lib/endpoint-context.d.ts +3 -2
- package/browser/lib/index.d.ts +13 -3
- package/browser/lib/models.d.ts +2 -4
- 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-abstract-entity.mjs +1 -1
- package/client/esm2022/lib/base-classes/base-crud-controller.mjs +1 -1
- package/client/esm2022/lib/base-classes/base-injector.mjs +8 -1
- package/client/esm2022/lib/base-classes/base.mjs +3 -3
- package/client/esm2022/lib/create-context.mjs +10 -7
- package/client/esm2022/lib/decorators/http/http-decorators.mjs +3 -1
- package/client/esm2022/lib/decorators/http/http-methods-decorators.mjs +1 -1
- package/client/esm2022/lib/endpoint-context.mjs +49 -11
- package/client/esm2022/lib/entity-process.mjs +1 -10
- package/client/esm2022/lib/get-response-value.mjs +1 -15
- package/client/esm2022/lib/index.mjs +2 -1
- package/client/esm2022/lib/models.mjs +1 -1
- 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 +1463 -94
- package/client/fesm2022/taon.mjs.map +1 -1
- package/client/lib/base-classes/base-abstract-entity.d.ts +2 -1
- package/client/lib/base-classes/base-context.d.ts +4 -1
- package/client/lib/base-classes/base-crud-controller.d.ts +1 -1
- package/client/lib/base-classes/base-injector.d.ts +5 -0
- package/client/lib/base-classes/base.d.ts +7 -3
- package/client/lib/create-context.d.ts +7 -4
- package/client/lib/decorators/http/http-decorators.d.ts +2 -0
- package/client/lib/decorators/http/http-methods-decorators.d.ts +9 -0
- package/client/lib/endpoint-context.d.ts +3 -2
- package/client/lib/index.d.ts +13 -3
- package/client/lib/models.d.ts +2 -4
- 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-abstract-entity.d.ts +1 -0
- package/lib/base-classes/base-context.d.ts +4 -1
- package/lib/base-classes/base-crud-controller.d.ts +1 -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.d.ts +7 -3
- package/lib/base-classes/base.js +2 -2
- package/lib/base-classes/base.js.map +1 -1
- package/lib/create-context.d.ts +7 -4
- package/lib/create-context.js +19 -6
- package/lib/create-context.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/decorators/http/http-methods-decorators.d.ts +9 -0
- package/lib/decorators/http/http-methods-decorators.js.map +1 -1
- package/lib/endpoint-context.d.ts +3 -2
- package/lib/endpoint-context.js +165 -126
- package/lib/endpoint-context.js.map +1 -1
- package/lib/entity-process.js +0 -9
- package/lib/entity-process.js.map +1 -1
- package/lib/get-response-value.js +14 -37
- package/lib/get-response-value.js.map +1 -1
- package/lib/index.d.ts +13 -3
- package/lib/models.d.ts +2 -5
- package/lib/models.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/index.js.map +1 -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 +7 -7
- package/tmp-environment.json +37 -31
- package/websql/esm2022/lib/base-classes/base-abstract-entity.mjs +1 -1
- package/websql/esm2022/lib/base-classes/base-crud-controller.mjs +1 -1
- package/websql/esm2022/lib/base-classes/base-injector.mjs +8 -1
- package/websql/esm2022/lib/base-classes/base.mjs +3 -3
- package/websql/esm2022/lib/create-context.mjs +10 -7
- package/websql/esm2022/lib/decorators/http/http-decorators.mjs +3 -1
- package/websql/esm2022/lib/decorators/http/http-methods-decorators.mjs +1 -1
- package/websql/esm2022/lib/endpoint-context.mjs +49 -11
- package/websql/esm2022/lib/entity-process.mjs +1 -10
- package/websql/esm2022/lib/get-response-value.mjs +4 -24
- package/websql/esm2022/lib/index.mjs +2 -1
- package/websql/esm2022/lib/models.mjs +1 -1
- 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 +1435 -120
- package/websql/fesm2022/taon.mjs.map +1 -1
- package/websql/lib/base-classes/base-abstract-entity.d.ts +2 -1
- package/websql/lib/base-classes/base-context.d.ts +4 -1
- package/websql/lib/base-classes/base-crud-controller.d.ts +1 -1
- package/websql/lib/base-classes/base-injector.d.ts +5 -0
- package/websql/lib/base-classes/base.d.ts +7 -3
- package/websql/lib/create-context.d.ts +7 -4
- package/websql/lib/decorators/http/http-decorators.d.ts +2 -0
- package/websql/lib/decorators/http/http-methods-decorators.d.ts +9 -0
- package/websql/lib/endpoint-context.d.ts +3 -2
- package/websql/lib/index.d.ts +13 -3
- package/websql/lib/models.d.ts +2 -5
- 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/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/ui/{toan-full-material.module.d.ts → taon-full-material.module.d.ts} +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { ChangeDetectorRef, DestroyRef, ElementRef, OnInit } from '@angular/core';
|
|
3
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
4
|
+
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export interface TaonSessionPasscodeModel {
|
|
7
|
+
passcode: string;
|
|
8
|
+
}
|
|
9
|
+
export type TaonSessionPasscodeForm = {
|
|
10
|
+
[prop in keyof TaonSessionPasscodeModel]: FormControl<TaonSessionPasscodeModel[prop]>;
|
|
11
|
+
};
|
|
12
|
+
export declare class TaonSessionPasscodeComponent implements OnInit {
|
|
13
|
+
private element;
|
|
14
|
+
private domSanitizer;
|
|
15
|
+
private cdr;
|
|
16
|
+
destroyRef: DestroyRef;
|
|
17
|
+
passcode: string;
|
|
18
|
+
message: string;
|
|
19
|
+
safeMessage: SafeHtml;
|
|
20
|
+
private lastPasscode;
|
|
21
|
+
display: string;
|
|
22
|
+
form: FormGroup<TaonSessionPasscodeForm>;
|
|
23
|
+
constructor(element: ElementRef<HTMLElement>, domSanitizer: DomSanitizer, cdr: ChangeDetectorRef);
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
submit({ passcode }: Partial<TaonSessionPasscodeModel>): void;
|
|
26
|
+
private isPasscodeOK;
|
|
27
|
+
ngAfterViewInit(): void;
|
|
28
|
+
focus(): void;
|
|
29
|
+
hide(): void;
|
|
30
|
+
show(): void;
|
|
31
|
+
clear(): void;
|
|
32
|
+
onKeyup(event: KeyboardEvent & {
|
|
33
|
+
target: {
|
|
34
|
+
value: string;
|
|
35
|
+
};
|
|
36
|
+
}): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TaonSessionPasscodeComponent, [{ self: true; }, null, null]>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TaonSessionPasscodeComponent, "taon-session-passcode", never, { "passcode": { "alias": "passcode"; "required": false; }; "message": { "alias": "message"; "required": false; }; }, {}, never, never, true, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { TemplateRef, EventEmitter, ElementRef } from '@angular/core';
|
|
3
|
+
import { Taon } from '../../../lib';
|
|
4
|
+
import { PageEvent } from '@angular/material/paginator';
|
|
5
|
+
import { MtxGridColumn } from '@ng-matero/extensions/grid';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class TaonTableComponent {
|
|
8
|
+
pageNumber: number;
|
|
9
|
+
pageSize: number;
|
|
10
|
+
allowedColumns: string[];
|
|
11
|
+
entity: typeof Taon.Base.Entity | string;
|
|
12
|
+
expansionTemplate: TemplateRef<any>;
|
|
13
|
+
rows: {
|
|
14
|
+
id: number;
|
|
15
|
+
name: string;
|
|
16
|
+
}[];
|
|
17
|
+
columns: MtxGridColumn[];
|
|
18
|
+
pageSizeOptions: number[];
|
|
19
|
+
expansionChange: EventEmitter<any>;
|
|
20
|
+
addingItem: EventEmitter<void>;
|
|
21
|
+
search?: ElementRef<HTMLElement>;
|
|
22
|
+
private searchInputChange$;
|
|
23
|
+
expandable: boolean;
|
|
24
|
+
showPaginator: boolean;
|
|
25
|
+
isLoading: boolean;
|
|
26
|
+
totalElements: number;
|
|
27
|
+
private sub;
|
|
28
|
+
constructor();
|
|
29
|
+
ngOnInit(): Promise<void>;
|
|
30
|
+
ngOnDestroy(): void;
|
|
31
|
+
getNextPage(e: PageEvent): Promise<void>;
|
|
32
|
+
retriveData(): Promise<void>;
|
|
33
|
+
expansionRow(e: any): void;
|
|
34
|
+
onTableContextMenu(e: any): void;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TaonTableComponent, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TaonTableComponent, "taon-table", never, { "pageNumber": { "alias": "pageNumber"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "allowedColumns": { "alias": "allowedColumns"; "required": false; }; "entity": { "alias": "entity"; "required": false; }; "expansionTemplate": { "alias": "expansionTemplate"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; }, { "expansionChange": "expansionChange"; "addingItem": "addingItem"; }, never, never, false, never>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./taon-table.component";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
import * as i3 from "@angular/material/select";
|
|
6
|
+
import * as i4 from "@ng-matero/extensions/grid";
|
|
7
|
+
import * as i5 from "@angular/material/form-field";
|
|
8
|
+
import * as i6 from "@angular/material/input";
|
|
9
|
+
import * as i7 from "static-columns/browser";
|
|
10
|
+
import * as i8 from "@angular/material/icon";
|
|
11
|
+
import * as i9 from "@angular/material/button";
|
|
12
|
+
import * as i10 from "@angular/forms";
|
|
13
|
+
export declare class TaonTableModule {
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TaonTableModule, never>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TaonTableModule, [typeof i1.TaonTableComponent], [typeof i2.CommonModule, typeof i3.MatSelectModule, typeof i4.MtxGridModule, typeof i5.MatFormFieldModule, typeof i6.MatInputModule, typeof i7.StaticColumnsModule, typeof i8.MatIconModule, typeof i9.MatButtonModule, typeof i10.FormsModule, typeof i10.ReactiveFormsModule], [typeof i1.TaonTableComponent]>;
|
|
16
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TaonTableModule>;
|
|
17
|
+
}
|
|
@@ -11,7 +11,10 @@ declare const BaseContext: {
|
|
|
11
11
|
readonly __refSync: import("../endpoint-context").EndpointContext;
|
|
12
12
|
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
13
13
|
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
14
|
-
initialize: (
|
|
14
|
+
initialize: (overrideOptions?: {
|
|
15
|
+
overrideHost?: string;
|
|
16
|
+
overrideRemoteHost?: string;
|
|
17
|
+
}) => Promise<import("../endpoint-context").EndpointContext>;
|
|
15
18
|
readonly realtime: {
|
|
16
19
|
readonly client: import("../realtime/realtime-client").RealtimeClient;
|
|
17
20
|
readonly server: import("../realtime/realtime-server").RealtimeServer;
|
|
@@ -5,7 +5,7 @@ import { Models } from '../models';
|
|
|
5
5
|
* Please override property entityClassFn with entity class.
|
|
6
6
|
*/
|
|
7
7
|
export declare abstract class BaseCrudController<Entity> extends BaseController {
|
|
8
|
-
protected db
|
|
8
|
+
protected db: BaseRepository<Entity>;
|
|
9
9
|
/**
|
|
10
10
|
* Please provide entity as class propery entityClassFn:
|
|
11
11
|
* @returns class function
|
|
@@ -16,9 +16,14 @@ export declare class BaseInjector<CloneT extends BaseClass = any> {
|
|
|
16
16
|
*/
|
|
17
17
|
_(): Promise<void>;
|
|
18
18
|
/**
|
|
19
|
+
* @deprecated use ctx instead
|
|
19
20
|
* Current endpoint context
|
|
20
21
|
*/
|
|
21
22
|
get __endpoint_context__(): EndpointContext;
|
|
23
|
+
/**
|
|
24
|
+
* get current endpoint context
|
|
25
|
+
*/
|
|
26
|
+
get ctx(): EndpointContext;
|
|
22
27
|
/**
|
|
23
28
|
* inject crud repo for entity
|
|
24
29
|
*/
|
|
@@ -64,6 +64,7 @@ var BaseInjector = /** @class */ (function () {
|
|
|
64
64
|
//#endregion
|
|
65
65
|
//#region context
|
|
66
66
|
/**
|
|
67
|
+
* @deprecated use ctx instead
|
|
67
68
|
* Current endpoint context
|
|
68
69
|
*/
|
|
69
70
|
get: function () {
|
|
@@ -72,6 +73,16 @@ var BaseInjector = /** @class */ (function () {
|
|
|
72
73
|
enumerable: false,
|
|
73
74
|
configurable: true
|
|
74
75
|
});
|
|
76
|
+
Object.defineProperty(BaseInjector.prototype, "ctx", {
|
|
77
|
+
/**
|
|
78
|
+
* get current endpoint context
|
|
79
|
+
*/
|
|
80
|
+
get: function () {
|
|
81
|
+
return this.__endpoint_context__;
|
|
82
|
+
},
|
|
83
|
+
enumerable: false,
|
|
84
|
+
configurable: true
|
|
85
|
+
});
|
|
75
86
|
//#endregion
|
|
76
87
|
//#region inject
|
|
77
88
|
//#region inject / repo for entity
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-injector.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;;AAAA,iBAAiB;AACjB,qCAAsC;AAEtC,sCAAqC;AACrC,0DAAwD;AAGxD,YAAY;AAEZ;IAAA;
|
|
1
|
+
{"version":3,"file":"base-injector.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;;AAAA,iBAAiB;AACjB,qCAAsC;AAEtC,sCAAqC;AACrC,0DAAwD;AAGxD,YAAY;AAEZ;IAAA;QA4HE,YAAY;QAEZ;;WAEG;QACO,6BAAwB,GAAG,EAA2B,CAAC;QAiIjE,YAAY;IACd,CAAC;IAzPC,mCAAmC;IACnC;;;OAGG;IACG,wBAAC,GAAP;;;;;;;wBACQ,WAAW,GAAG,IA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AAC,CAAC;QACxD,IAAM,MAAM,GAAG,YAAC,CAAC,KAAK,CAAC,IAAI,OAAO,EAAE,EAAE,YAAC,CAAC,KAAK,CAAC,YAAC,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;QAC5E,wBAAwB;QACxB,OAAO,MAAM,CAAC;IAChB,CAAC;IAEH,mBAAC;AAAD,CAAC,AAnQD,IAmQC;AAnQY,oCAAY"}
|
|
@@ -4,15 +4,16 @@ import * as entity from './base-entity';
|
|
|
4
4
|
import * as abstractEntity from './base-abstract-entity';
|
|
5
5
|
import * as repository from './base-repository';
|
|
6
6
|
import * as provider from './base-provider';
|
|
7
|
-
import * as
|
|
7
|
+
import * as baseClass from './base-class';
|
|
8
8
|
import * as baseSubscriberEntity from './base-subscriber-for-entity';
|
|
9
9
|
export declare namespace Base {
|
|
10
10
|
export import Controller = controller.BaseController;
|
|
11
11
|
export import CrudController = crudController.BaseCrudController;
|
|
12
12
|
export import Entity = entity.BaseEntity;
|
|
13
13
|
export import AbstractEntity = abstractEntity.BaseAbstractEntity;
|
|
14
|
+
export import AbstractEntityOmitKeys = abstractEntity.AbstractEntityOmitKeys;
|
|
14
15
|
export import Provider = provider.BaseProvider;
|
|
15
|
-
export import Class =
|
|
16
|
+
export import Class = baseClass.BaseClass;
|
|
16
17
|
export import Repository = repository.BaseRepository;
|
|
17
18
|
export import SubscriberForEntity = baseSubscriberEntity.BaseSubscriberForEntity;
|
|
18
19
|
const Context: {
|
|
@@ -28,7 +29,10 @@ export declare namespace Base {
|
|
|
28
29
|
readonly __refSync: import("../endpoint-context").EndpointContext;
|
|
29
30
|
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
30
31
|
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
31
|
-
initialize: (
|
|
32
|
+
initialize: (overrideOptions?: {
|
|
33
|
+
overrideHost?: string;
|
|
34
|
+
overrideRemoteHost?: string;
|
|
35
|
+
}) => Promise<import("../endpoint-context").EndpointContext>;
|
|
32
36
|
readonly realtime: {
|
|
33
37
|
readonly client: import("../realtime/realtime-client").RealtimeClient;
|
|
34
38
|
readonly server: import("../realtime/realtime-server").RealtimeServer;
|
package/lib/base-classes/base.js
CHANGED
|
@@ -7,7 +7,7 @@ var entity = require("./base-entity");
|
|
|
7
7
|
var abstractEntity = require("./base-abstract-entity");
|
|
8
8
|
var repository = require("./base-repository");
|
|
9
9
|
var provider = require("./base-provider");
|
|
10
|
-
var
|
|
10
|
+
var baseClass = require("./base-class");
|
|
11
11
|
var baseContext = require("./base-context");
|
|
12
12
|
var baseSubscriberEntity = require("./base-subscriber-for-entity");
|
|
13
13
|
var Base;
|
|
@@ -17,7 +17,7 @@ var Base;
|
|
|
17
17
|
Base.Entity = entity.BaseEntity;
|
|
18
18
|
Base.AbstractEntity = abstractEntity.BaseAbstractEntity;
|
|
19
19
|
Base.Provider = provider.BaseProvider;
|
|
20
|
-
Base.Class =
|
|
20
|
+
Base.Class = baseClass.BaseClass;
|
|
21
21
|
Base.Repository = repository.BaseRepository;
|
|
22
22
|
Base.SubscriberForEntity = baseSubscriberEntity.BaseSubscriberForEntity;
|
|
23
23
|
Base.Context = baseContext.BaseContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,8CAAgD;AAChD,uDAAyD;AACzD,sCAAwC;AACxC,uDAAyD;AACzD,8CAAgD;AAChD,0CAA4C;AAC5C,wCAA0C;AAC1C,4CAA8C;AAC9C,mEAAqE;AACrE,IAAiB,IAAI,
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,8CAAgD;AAChD,uDAAyD;AACzD,sCAAwC;AACxC,uDAAyD;AACzD,8CAAgD;AAChD,0CAA4C;AAC5C,wCAA0C;AAC1C,4CAA8C;AAC9C,mEAAqE;AACrE,IAAiB,IAAI,CAWpB;AAXD,WAAiB,IAAI;IACL,eAAU,GAAG,UAAU,CAAC,cAAc,CAAC;IACvC,mBAAc,GAAG,cAAc,CAAC,kBAAkB,CAAC;IACnD,WAAM,GAAG,MAAM,CAAC,UAAU,CAAC;IAC3B,mBAAc,GAAG,cAAc,CAAC,kBAAkB,CAAC;IAEnD,aAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC;IACjC,UAAK,GAAG,SAAS,CAAC,SAAS,CAAC;IAC5B,eAAU,GAAG,UAAU,CAAC,cAAc,CAAC;IACvC,wBAAmB,GAAG,oBAAoB,CAAC,uBAAuB,CAAC;IACpE,YAAO,GAAG,WAAW,CAAC,WAAW,CAAC;AACjD,CAAC,EAXgB,IAAI,oBAAJ,IAAI,QAWpB"}
|
package/lib/create-context.d.ts
CHANGED
|
@@ -15,9 +15,9 @@ export declare const createContext: <CTX extends Record<string, object>, CTRL ex
|
|
|
15
15
|
*/
|
|
16
16
|
__ref(): Promise<EndpointContext>;
|
|
17
17
|
/**
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
* only for internal use
|
|
19
|
+
* @deprecated
|
|
20
|
+
*/
|
|
21
21
|
readonly __refSync: EndpointContext;
|
|
22
22
|
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
23
23
|
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
@@ -25,7 +25,10 @@ export declare const createContext: <CTX extends Record<string, object>, CTRL ex
|
|
|
25
25
|
* - create controller instances for context
|
|
26
26
|
* - init database (if enable) + migation scripts
|
|
27
27
|
*/
|
|
28
|
-
initialize: (
|
|
28
|
+
initialize: (overrideOptions?: {
|
|
29
|
+
overrideHost?: string;
|
|
30
|
+
overrideRemoteHost?: string;
|
|
31
|
+
}) => Promise<EndpointContext>;
|
|
29
32
|
/**
|
|
30
33
|
* realtime communication with server
|
|
31
34
|
* Udp socket.io (or ipc) based.
|
package/lib/create-context.js
CHANGED
|
@@ -80,9 +80,9 @@ var createContext = function (configFn) {
|
|
|
80
80
|
});
|
|
81
81
|
},
|
|
82
82
|
/**
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
* only for internal use
|
|
84
|
+
* @deprecated
|
|
85
|
+
*/
|
|
86
86
|
get __refSync() {
|
|
87
87
|
return endpointContextRef;
|
|
88
88
|
},
|
|
@@ -112,7 +112,7 @@ var createContext = function (configFn) {
|
|
|
112
112
|
* - create controller instances for context
|
|
113
113
|
* - init database (if enable) + migation scripts
|
|
114
114
|
*/
|
|
115
|
-
initialize: function () { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
115
|
+
initialize: function (overrideOptions) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
116
116
|
return tslib_1.__generator(this, function (_a) {
|
|
117
117
|
switch (_a.label) {
|
|
118
118
|
case 0: return [4 /*yield*/, new Promise(function (resolve, reject) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
@@ -121,7 +121,7 @@ var createContext = function (configFn) {
|
|
|
121
121
|
var keepWebsqlDbDataAfterReload;
|
|
122
122
|
return tslib_1.__generator(this, function (_a) {
|
|
123
123
|
switch (_a.label) {
|
|
124
|
-
case 0: return [4 /*yield*/, endpointContextRef.init()];
|
|
124
|
+
case 0: return [4 /*yield*/, endpointContextRef.init(tslib_1.__assign({}, overrideOptions))];
|
|
125
125
|
case 1:
|
|
126
126
|
_a.sent();
|
|
127
127
|
if (config.abstract) {
|
|
@@ -159,6 +159,19 @@ var createContext = function (configFn) {
|
|
|
159
159
|
_a.sent();
|
|
160
160
|
_a.label = 8;
|
|
161
161
|
case 8:
|
|
162
|
+
///#region TODO this may be usefull but for now
|
|
163
|
+
// 2 separate contexts are fine
|
|
164
|
+
// const shouldStartRemoteHost = endpointContextRef.mode !== 'remote-backend(tcp+udp)';
|
|
165
|
+
// if(shouldStartRemoteHost) {
|
|
166
|
+
// const endpointContextRemoteHostRef = new EndpointContext(config, configFn);
|
|
167
|
+
// await endpointContextRemoteHostRef.init({
|
|
168
|
+
// overrideRemoteHost: endpointContextRef.host,
|
|
169
|
+
// overrideHost: null,
|
|
170
|
+
// });
|
|
171
|
+
// endpointContextRemoteHostRef.initMetadata();
|
|
172
|
+
// endpointContextRef.__contextForControllerInstanceAccess = endpointContextRemoteHostRef;
|
|
173
|
+
// }
|
|
174
|
+
//#endregion
|
|
162
175
|
resolve(endpointContextRef);
|
|
163
176
|
return [2 /*return*/];
|
|
164
177
|
}
|
|
@@ -183,7 +196,7 @@ var createContext = function (configFn) {
|
|
|
183
196
|
},
|
|
184
197
|
get server() {
|
|
185
198
|
return endpointContextRef.realtimeServer;
|
|
186
|
-
}
|
|
199
|
+
},
|
|
187
200
|
};
|
|
188
201
|
},
|
|
189
202
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-context.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;;AAAA,iBAAiB;AACjB,qCAAmC;AACnC,uDAAqD;AAGrD,6BAA4B;AAC5B,KAAK;AACL,KAAK;AAGL,uCAAuC;AACvC,qCAAqC;AACrC,YAAY;AAEL,IAAM,aAAa,GAAG,UAU3B,QAEyE;IAEzE,IAAI,MAAM,GAAG,QAAQ,CAAC,SAAG,CAAC,CAAC;IAE3B,IAAM,kBAAkB,GAAG,IAAI,kCAAe,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAEjE,IAAM,GAAG,GAAG;QACV,eAAe;QACf,KAAK,EAAE;YACL,qBAAqB;YACrB,mBAAmB;YACnB,4BAA4B;YAC5B,KAAK;YACL,4CAA4C;YAC5C,mDAAmD;YACnD,2CAA2C;YAC3C,2CAA2C;YAC3C,oEAAoE;YACpE,0DAA0D;YAC1D,4CAA4C;YAC5C,+CAA+C;YAC/C,8BAA8B;YAC9B,QAAQ;YACR,MAAM;YACN,qEAAqE;YACrE,KAAK;YACL,YAAY;YACZ,IAAI,WAAW;gBACb,OAAO,MAAM,CAAC,WAAW,CAAC;YAC5B,CAAC;YACD,IAAI,YAAY;gBACd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F;gDAC5F,IAAI;gDACJ,YAAY;gDAEZ,OAAO,CAAC,kBAAkB,CAAC,CAAC;;;;qCAC7B,CAAC,CAAC;;;6BACJ,CAAC,EAAA;4BAtDF,sBAAO,SAsDL,EAAC;;;aACJ;QACD,YAAY;QACZ;;;WAGG;QACH,IAAI,QAAQ;YACV,OAAO;gBACL,IAAI,MAAM;oBACR,OAAO,kBAAkB,CAAC,cAAc,CAAC;gBAC3C,CAAC;gBACD,IAAI,MAAM;oBACR,OAAO,kBAAkB,CAAC,cAAc,CAAC;gBAC3C,CAAC;aACF,CAAC;QACJ,CAAC;KACF,CAAC;IACF,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAzLW,QAAA,aAAa,iBAyLxB;AACF,YAAY"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as methods from './http-methods-decorators';
|
|
2
2
|
import * as params from './http-params-decorators';
|
|
3
|
+
import { Models } from 'ng2-rest/src';
|
|
3
4
|
export declare namespace Http {
|
|
4
5
|
export import GET = methods.GET;
|
|
5
6
|
export import POST = methods.POST;
|
|
@@ -7,6 +8,7 @@ export declare namespace Http {
|
|
|
7
8
|
export import DELETE = methods.DELETE;
|
|
8
9
|
export import PATCH = methods.PATCH;
|
|
9
10
|
export import HEAD = methods.HEAD;
|
|
11
|
+
export import Response = Models.HttpResponse;
|
|
10
12
|
namespace Param {
|
|
11
13
|
export import Query = params.Query;
|
|
12
14
|
export import Path = params.Path;
|
|
@@ -14,4 +16,4 @@ export declare namespace Http {
|
|
|
14
16
|
export import Cookie = params.Cookie;
|
|
15
17
|
export import Header = params.Header;
|
|
16
18
|
}
|
|
17
|
-
}
|
|
19
|
+
}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Http = void 0;
|
|
4
4
|
var methods = require("./http-methods-decorators");
|
|
5
5
|
var params = require("./http-params-decorators");
|
|
6
|
+
var ng2_rest_1 = require("ng2-rest");
|
|
6
7
|
var Http;
|
|
7
8
|
(function (Http) {
|
|
8
9
|
Http.GET = methods.GET;
|
|
@@ -11,6 +12,7 @@ var Http;
|
|
|
11
12
|
Http.DELETE = methods.DELETE;
|
|
12
13
|
Http.PATCH = methods.PATCH;
|
|
13
14
|
Http.HEAD = methods.HEAD;
|
|
15
|
+
Http.Response = ng2_rest_1.Models.HttpResponse;
|
|
14
16
|
var Param;
|
|
15
17
|
(function (Param) {
|
|
16
18
|
Param.Query = params.Query;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-decorators.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,mDAAqD;AACrD,iDAAmD;
|
|
1
|
+
{"version":3,"file":"http-decorators.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,mDAAqD;AACrD,iDAAmD;AACnD,qCAAkC;AAElC,IAAiB,IAAI,CAepB;AAfD,WAAiB,IAAI;IACL,QAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAClB,SAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IACpB,QAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAClB,WAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IACxB,UAAK,GAAG,OAAO,CAAC,KAAK,CAAC;IACtB,SAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IACpB,aAAQ,GAAG,iBAAM,CAAC,YAAY,CAAC;IAC7C,IAAiB,KAAK,CAMrB;IAND,WAAiB,KAAK;QACN,WAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QACrB,UAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACnB,UAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACnB,YAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QACvB,YAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IACvC,CAAC,EANgB,KAAK,GAAL,UAAK,KAAL,UAAK,QAMrB;AACH,CAAC,EAfgB,IAAI,oBAAJ,IAAI,QAepB"}
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { CoreModels } from 'tnp-core/src';
|
|
2
2
|
import { Models as ModelsNg2Rest } from 'ng2-rest/src';
|
|
3
3
|
export interface TaonHttpDecoratorOptions {
|
|
4
|
+
/**
|
|
5
|
+
* ! BE CAREFULL
|
|
6
|
+
* This method is only for very special cases
|
|
7
|
+
* Path for the method is automatically generated
|
|
8
|
+
*/
|
|
4
9
|
path?: string;
|
|
10
|
+
/**
|
|
11
|
+
* ! BE CAREFULL
|
|
12
|
+
* If true, the path will be global
|
|
13
|
+
*/
|
|
5
14
|
pathIsGlobal?: boolean;
|
|
6
15
|
overrideContentType?: CoreModels.ContentType;
|
|
7
16
|
overridResponseType?: ModelsNg2Rest.ResponseTypeAxios;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-methods-decorators.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"http-methods-decorators.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;AA0FA,kBAmBC;AAED,oBAmBC;AAED,oBAmBC;AAED,kBAmBC;AAED,sBAmBC;AAED,wBAmBC;AAtND,qCAAyC;AACzC,uCAAsC;AACtC,yCAAwC;AAExC,IAAM,OAAO,GAAG,UACd,MAAmC,EACnC,IAAY,EACZ,MAAgB,EAChB,WAAmB,EACnB,UAA8B,EAC9B,aAAgD,EAChD,YAAqB;IAErB,IAAI,OAAiC,CAAC;IACtC,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;QACtC,OAAO,GAAG,aAAa,CAAC;QACxB,aAAa,GAAG,OAAO,CAAC,IAAW,CAAC;QACpC,YAAY,GAAG,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;QACtC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IACtB,CAAC;SAAM,CAAC;QACN,OAAO,GAAG,EAAE,aAAa,eAAA,EAAE,YAAY,cAAA,EAAS,CAAC;IACnD,CAAC;IAEO,IAAA,mBAAmB,GAA0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UAA8B;QAE9B,OAAO,CACL,KAAK,EACL,aAAuB,EACvB,MAAM,EACN,WAAW,EACX,UAAU,EACV,aAAa,EACb,YAAY,CACb,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAED,SAAgB,KAAK,CACnB,aAAiD,EACjD,YAAoB;IAApB,6BAAA,EAAA,oBAAoB;IAEpB,OAAO,UACL,MAAW,EACX,WAAmB,EACnB,UAA8B;QAE9B,OAAO,CACL,OAAO,EACP,aAAuB,EACvB,MAAM,EACN,WAAW,EACX,UAAU,EACV,aAAa,EACb,YAAY,CACb,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAED,SAAgB,MAAM,CACpB,aAAiD,EACjD,YAAoB;IAApB,6BAAA,EAAA,oBAAoB;IAEpB,OAAO,UACL,MAAW,EACX,WAAmB,EACnB,UAA8B;QAE9B,OAAO,CACL,QAAQ,EACR,aAAuB,EACvB,MAAM,EACN,WAAW,EACX,UAAU,EACV,aAAa,EACb,YAAY,CACb,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -10,7 +10,6 @@ export declare class EndpointContext {
|
|
|
10
10
|
private configFn;
|
|
11
11
|
private static ngZone;
|
|
12
12
|
static initNgZone(ngZone: NgZone): void;
|
|
13
|
-
static findForTraget(classFnOrObject: any): EndpointContext;
|
|
14
13
|
disabledRealtime: boolean;
|
|
15
14
|
/**
|
|
16
15
|
* check whether context is inited
|
|
@@ -53,6 +52,8 @@ export declare class EndpointContext {
|
|
|
53
52
|
constructor(originalConfig: Models.ContextOptions<any, any, any, any, any, any>, configFn: (env: any) => Models.ContextOptions<any, any, any, any, any, any>);
|
|
54
53
|
init(options?: {
|
|
55
54
|
initFromRecrusiveContextResovle?: boolean;
|
|
55
|
+
overrideHost?: string | null;
|
|
56
|
+
overrideRemoteHost?: string | null;
|
|
56
57
|
}): Promise<void>;
|
|
57
58
|
private getAutoGeneratedConfig;
|
|
58
59
|
get ngZone(): any;
|
|
@@ -108,7 +109,7 @@ export declare class EndpointContext {
|
|
|
108
109
|
initMetadata(): void;
|
|
109
110
|
writeActiveRoutes(): void;
|
|
110
111
|
get middlewares(): Models.MiddlewareType[];
|
|
111
|
-
private
|
|
112
|
+
private initMiddlewares;
|
|
112
113
|
private initServer;
|
|
113
114
|
/**
|
|
114
115
|
* client can be browser or nodejs (when remote host)
|