taon 19.0.49 → 19.0.50
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/browser/fesm2022/taon.mjs +60 -9
- package/browser/fesm2022/taon.mjs.map +1 -1
- package/browser/lib/endpoint-context.d.ts +6 -0
- package/browser/lib/models.d.ts +19 -0
- package/browser/package.json +1 -1
- package/lib/base-classes/base-subscriber.d.ts +4 -0
- package/lib/base-classes/base-subscriber.js +25 -0
- package/lib/base-classes/base-subscriber.js.map +1 -0
- package/lib/build-info._auto-generated_.d.ts +16 -1
- package/lib/build-info._auto-generated_.js +16 -1
- package/lib/build-info._auto-generated_.js.map +1 -1
- package/lib/create-context.js +15 -0
- package/lib/create-context.js.map +1 -1
- package/lib/endpoint-context.d.ts +6 -0
- package/lib/endpoint-context.js +36 -6
- package/lib/endpoint-context.js.map +1 -1
- package/lib/env.js +5 -1
- package/lib/env.js.map +1 -1
- package/lib/models.d.ts +19 -0
- package/lib/models.js +3 -0
- package/lib/models.js.map +1 -1
- package/lib/realtime/realtime-client.js +9 -0
- package/lib/realtime/realtime-client.js.map +1 -1
- package/lib/realtime/realtime-server.js +1 -4
- package/lib/realtime/realtime-server.js.map +1 -1
- package/lib/realtime/realtime-strategy/realtime-abstract-mock.d.ts +10 -0
- package/lib/realtime/realtime-strategy/realtime-abstract-mock.js +214 -0
- package/lib/realtime/realtime-strategy/realtime-abstract-mock.js.map +1 -0
- 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 +5 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/index.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.d.ts +22 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.js +139 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.d.ts +16 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.js +68 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.d.ts +10 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.js +56 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.d.ts +10 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.js +50 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.d.ts +13 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.js +3 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.d.ts +2 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.js +6 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.d.ts +16 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.js +54 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.d.ts +17 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.js +52 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.d.ts +11 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.js +39 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.d.ts +13 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.js +46 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.d.ts +11 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.js +3 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.js.map +1 -0
- package/lib/storage.d.ts +1 -1
- package/lib/storage.js +5 -1
- package/lib/storage.js.map +1 -1
- package/lib/ui/directives/firedev-inject-html.directive.d.ts +6 -0
- package/lib/ui/directives/firedev-long-press.directive.d.ts +22 -0
- package/lib/ui/directives/index.d.ts +3 -0
- package/lib/ui/directives/index.js +5 -0
- package/lib/ui/directives/index.js.map +1 -0
- package/lib/ui/directives/safe.pipe.d.ts +7 -0
- package/lib/ui/directives/taon-inject-html.directive.d.ts +6 -0
- package/lib/ui/directives/taon-long-press.directive.d.ts +22 -0
- package/lib/ui/directives/view-mode.d.ts +5 -0
- package/lib/ui/directives/view-mode.js +10 -0
- package/lib/ui/directives/view-mode.js.map +1 -0
- package/lib/ui/index.js +2 -2
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.d.ts +2 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.js +5 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.js.map +1 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.component.d.ts +29 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.module.d.ts +2 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.d.ts +1 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.js +5 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.js.map +1 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/taon-db-admin.component.d.ts +8 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.d.ts +2 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.js +5 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.js.map +1 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.component.d.ts +13 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.module.d.ts +2 -0
- package/lib/ui/taon-admin-mode-configuration/index.js +2 -2
- package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.d.ts +5 -0
- package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.js +3 -0
- package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.js.map +1 -0
- package/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.d.ts +14 -0
- package/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +43 -0
- package/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.module.d.ts +2 -0
- package/lib/ui/taon-admin-mode-configuration/taon-admin.models.d.ts +5 -0
- package/lib/ui/taon-admin-mode-configuration/taon-admin.models.js +3 -0
- package/lib/ui/taon-admin-mode-configuration/taon-admin.models.js.map +1 -0
- package/lib/ui/taon-full-material.module.d.ts +5 -0
- package/lib/ui/taon-github-fork-me-corner/index.d.ts +2 -0
- package/lib/ui/taon-github-fork-me-corner/index.js +5 -0
- package/lib/ui/taon-github-fork-me-corner/index.js.map +1 -0
- package/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.component.d.ts +3 -0
- package/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.module.d.ts +2 -0
- package/lib/ui/taon-github-fork-me-ribbon/index.d.ts +2 -0
- package/lib/ui/taon-github-fork-me-ribbon/index.js +5 -0
- package/lib/ui/taon-github-fork-me-ribbon/index.js.map +1 -0
- package/lib/ui/taon-github-fork-me-ribbon/taon-github-fork-me-ribbon.component.d.ts +3 -0
- package/lib/ui/taon-github-fork-me-ribbon/taon-github-fork-me-ribbon.module.d.ts +2 -0
- package/lib/ui/taon-notifications/index.d.ts +4 -0
- package/lib/ui/taon-notifications/index.js +24 -0
- package/lib/ui/taon-notifications/index.js.map +1 -0
- package/lib/ui/taon-notifications/taon-notifications.component.d.ts +9 -0
- package/lib/ui/taon-notifications/taon-notifications.models.d.ts +6 -0
- package/lib/ui/taon-notifications/taon-notifications.models.js +5 -0
- package/lib/ui/taon-notifications/taon-notifications.models.js.map +1 -0
- package/lib/ui/taon-notifications/taon-notifications.module.d.ts +2 -0
- package/lib/ui/taon-notifications/taon-notifications.service.d.ts +11 -0
- package/lib/ui/taon-progress-bar/index.d.ts +2 -0
- package/lib/ui/taon-progress-bar/index.js +5 -0
- package/lib/ui/taon-progress-bar/index.js.map +1 -0
- package/lib/ui/taon-progress-bar/taon-progress-bar.component.d.ts +13 -0
- package/lib/ui/taon-progress-bar/taon-progress-bar.module.d.ts +2 -0
- package/lib/ui/taon-session-passcode/index.d.ts +1 -0
- package/lib/ui/taon-session-passcode/index.js +5 -0
- package/lib/ui/taon-session-passcode/index.js.map +1 -0
- package/lib/ui/taon-session-passcode/taon-session-passcode.component.d.ts +35 -0
- 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 +34 -0
- package/lib/ui/taon-table/taon-table.module.d.ts +2 -0
- package/lib/ui/taon.models.d.ts +11 -0
- package/lib/ui/taon.models.js +3 -0
- package/lib/ui/taon.models.js.map +1 -0
- package/lib/ui/toan-full-material.module.d.ts +2 -0
- package/package.json +1 -1
- package/tmp-environment.json +43 -0
- package/websql/fesm2022/taon.mjs +63 -9
- package/websql/fesm2022/taon.mjs.map +1 -1
- package/websql/lib/endpoint-context.d.ts +6 -0
- package/websql/lib/models.d.ts +19 -0
- package/websql/package.json +1 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { CdkDragEnd, Point } from '@angular/cdk/drag-drop';
|
|
2
|
+
import { ChangeDetectorRef, EventEmitter, OnInit, AfterViewInit, OnDestroy } from '@angular/core';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { BreakpointsService } from 'static-columns';
|
|
5
|
+
import { TaonAdminService } from './taon-admin.service';
|
|
6
|
+
export declare class TaonAdminModeConfigurationComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
7
|
+
private breakpointsService;
|
|
8
|
+
$destroy: Subject<unknown>;
|
|
9
|
+
readonly cdr: ChangeDetectorRef;
|
|
10
|
+
readonly taonAdminService: TaonAdminService;
|
|
11
|
+
readonly isDesktop: boolean;
|
|
12
|
+
isWebSQLMode: boolean;
|
|
13
|
+
hideTaonToolsInProduction: boolean;
|
|
14
|
+
isIframe: boolean;
|
|
15
|
+
height: number;
|
|
16
|
+
openedOnce: boolean;
|
|
17
|
+
reloading: boolean;
|
|
18
|
+
showPasscode: boolean;
|
|
19
|
+
passcode: string;
|
|
20
|
+
message: string;
|
|
21
|
+
dragPositionX: number;
|
|
22
|
+
dragPositionY: number;
|
|
23
|
+
dragPositionZero: Point;
|
|
24
|
+
dragPosition: Point;
|
|
25
|
+
selectedIndex: number;
|
|
26
|
+
tabGroup: any;
|
|
27
|
+
wasOpenDraggablePopup: boolean;
|
|
28
|
+
taonAdminModeConfigurationDataChanged: EventEmitter<any>;
|
|
29
|
+
taonAdminModeConfigurationData: any;
|
|
30
|
+
get opened(): boolean;
|
|
31
|
+
set opened(v: boolean);
|
|
32
|
+
constructor(breakpointsService: BreakpointsService);
|
|
33
|
+
ngOnInit(): Promise<void>;
|
|
34
|
+
ngAfterViewInit(): void;
|
|
35
|
+
ngOnDestroy(): void;
|
|
36
|
+
onResize(event: Event): void;
|
|
37
|
+
reloadTabs(): Promise<void>;
|
|
38
|
+
toogle(): Promise<void>;
|
|
39
|
+
toogleFullScreen(): Promise<void>;
|
|
40
|
+
resetDrag(): void;
|
|
41
|
+
moved(c: CdkDragEnd): void;
|
|
42
|
+
scrollTabs(event: any): void;
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taon-admin.models.js","sourceRoot":"","sources":[""],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;AAAA,gDAAwC;AAAxC,SAAgB,kBAAkB,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;AAAA,gDAAwC;AAAxC,SAAgB,kBAAkB,KAAK,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* */
|
|
3
|
+
/* */
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
__exportStar(require("./taon-notifications.models"), exports);
|
|
20
|
+
/* */
|
|
21
|
+
/* */
|
|
22
|
+
/* */
|
|
23
|
+
/* */
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":";AAAA,KAAK;AACL,KAAK;;;;;;;;;;;;;;;;AAEL,8DAA4C;AAC5C,KAAK;AACL,KAAK;AAEL,KAAK;AACL,KAAK"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { Subscription } from 'rxjs';
|
|
3
|
+
import { TaonNotificationsService } from './taon-notifications.service';
|
|
4
|
+
export declare class TaonNotificationsComponent implements OnInit {
|
|
5
|
+
private notification;
|
|
6
|
+
constructor(notification: TaonNotificationsService);
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
init(subscribtionsArray: Subscription[], template: TemplateRef<any>, callback: (dataToTempalte: any) => any): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taon-notifications.models.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;AAAA,gDAAwC;AAAxC,SAAgB,kBAAkB,KAAK,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HotToastService } from '@ngneat/hot-toast';
|
|
2
|
+
import { TaonNotificationOptions } from './taon-notifications.models';
|
|
3
|
+
export declare class TaonNotificationsService {
|
|
4
|
+
private toast;
|
|
5
|
+
constructor(toast: HotToastService);
|
|
6
|
+
private options;
|
|
7
|
+
success(options: TaonNotificationOptions | string): import("@ngneat/hot-toast").CreateHotToastRef<unknown>;
|
|
8
|
+
error(options: TaonNotificationOptions | string): import("@ngneat/hot-toast").CreateHotToastRef<unknown>;
|
|
9
|
+
warn(options: TaonNotificationOptions | string): import("@ngneat/hot-toast").CreateHotToastRef<unknown>;
|
|
10
|
+
info(options: TaonNotificationOptions | string): import("@ngneat/hot-toast").CreateHotToastRef<unknown>;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;AAAA,gDAAwC;AAAxC,SAAgB,kBAAkB,KAAK,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Subscription } from 'rxjs';
|
|
3
|
+
export declare class TaonProgressBarComponent implements OnInit {
|
|
4
|
+
labProgress: any;
|
|
5
|
+
isDesktop: boolean;
|
|
6
|
+
admin: any;
|
|
7
|
+
handlers: Subscription[];
|
|
8
|
+
constructor();
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
ngOnDestroy(): void;
|
|
11
|
+
ngAfterViewInit(): void;
|
|
12
|
+
loadProgressBar(config: any, instance?: import("axios").AxiosStatic): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './taon-session-passcode.component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;AAAA,gDAAwC;AAAxC,SAAgB,kBAAkB,KAAK,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ChangeDetectorRef, DestroyRef, ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
4
|
+
export interface TaonSessionPasscodeModel {
|
|
5
|
+
passcode: string;
|
|
6
|
+
}
|
|
7
|
+
export type TaonSessionPasscodeForm = {
|
|
8
|
+
[prop in keyof TaonSessionPasscodeModel]: FormControl<TaonSessionPasscodeModel[prop]>;
|
|
9
|
+
};
|
|
10
|
+
export declare class TaonSessionPasscodeComponent implements OnInit {
|
|
11
|
+
private element;
|
|
12
|
+
private domSanitizer;
|
|
13
|
+
private cdr;
|
|
14
|
+
destroyRef: DestroyRef;
|
|
15
|
+
passcode: string;
|
|
16
|
+
message: string;
|
|
17
|
+
safeMessage: SafeHtml;
|
|
18
|
+
private lastPasscode;
|
|
19
|
+
display: string;
|
|
20
|
+
form: FormGroup<TaonSessionPasscodeForm>;
|
|
21
|
+
constructor(element: ElementRef<HTMLElement>, domSanitizer: DomSanitizer, cdr: ChangeDetectorRef);
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
submit({ passcode }: Partial<TaonSessionPasscodeModel>): void;
|
|
24
|
+
private isPasscodeOK;
|
|
25
|
+
ngAfterViewInit(): void;
|
|
26
|
+
focus(): void;
|
|
27
|
+
hide(): void;
|
|
28
|
+
show(): void;
|
|
29
|
+
clear(): void;
|
|
30
|
+
onKeyup(event: KeyboardEvent & {
|
|
31
|
+
target: {
|
|
32
|
+
value: string;
|
|
33
|
+
};
|
|
34
|
+
}): void;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;AAAA,gDAAwC;AAAxC,SAAgB,kBAAkB,KAAK,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { OnInit, TemplateRef, EventEmitter, ElementRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { PageEvent } from '@angular/material/paginator';
|
|
3
|
+
import { MtxGridColumn } from '@ng-matero/extensions/grid';
|
|
4
|
+
import { Taon } from 'taon';
|
|
5
|
+
export declare class TaonTableComponent implements OnDestroy, OnInit {
|
|
6
|
+
pageNumber: number;
|
|
7
|
+
pageSize: number;
|
|
8
|
+
allowedColumns: string[];
|
|
9
|
+
expansionTemplate: TemplateRef<any>;
|
|
10
|
+
rows: {
|
|
11
|
+
id: number;
|
|
12
|
+
name: string;
|
|
13
|
+
}[];
|
|
14
|
+
entityCrudController: Taon.Base.CrudController<any>;
|
|
15
|
+
columns: MtxGridColumn[];
|
|
16
|
+
pageSizeOptions: number[];
|
|
17
|
+
hideSearch: boolean;
|
|
18
|
+
expansionChange: EventEmitter<any>;
|
|
19
|
+
addingItem: EventEmitter<void>;
|
|
20
|
+
search?: ElementRef<HTMLElement>;
|
|
21
|
+
private searchInputChange$;
|
|
22
|
+
expandable: boolean;
|
|
23
|
+
showPaginator: boolean;
|
|
24
|
+
isLoading: boolean;
|
|
25
|
+
totalElements: number;
|
|
26
|
+
private sub;
|
|
27
|
+
get entity(): typeof Taon.Base.Entity;
|
|
28
|
+
ngOnInit(): Promise<void>;
|
|
29
|
+
ngOnDestroy(): void;
|
|
30
|
+
getNextPage(e: PageEvent): Promise<void>;
|
|
31
|
+
getData(): Promise<void>;
|
|
32
|
+
expansionRow(e: any): void;
|
|
33
|
+
onTableContextMenu(e: any): void;
|
|
34
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CoreModels } from 'tnp-core';
|
|
2
|
+
export type TaonDisplayMode = 'view' | 'edit';
|
|
3
|
+
export interface TaonUploadedFile {
|
|
4
|
+
data: Buffer;
|
|
5
|
+
encoding: string;
|
|
6
|
+
md5: string;
|
|
7
|
+
mimetype: CoreModels.ContentType;
|
|
8
|
+
mv: (path: any, callback: any) => any;
|
|
9
|
+
name: string;
|
|
10
|
+
truncated: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taon.models.js","sourceRoot":"","sources":[""],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"website": {
|
|
3
|
+
"domain": "taon.example.domain.com",
|
|
4
|
+
"title": "Taon"
|
|
5
|
+
},
|
|
6
|
+
"paths": {},
|
|
7
|
+
"config": {},
|
|
8
|
+
"container": {
|
|
9
|
+
"only": []
|
|
10
|
+
},
|
|
11
|
+
"ports": {
|
|
12
|
+
"ngNormalAppPort": 4257,
|
|
13
|
+
"ngWebsqlAppPort": 4258,
|
|
14
|
+
"nodeBeAppPort": 4126
|
|
15
|
+
},
|
|
16
|
+
"init": {},
|
|
17
|
+
"build": {
|
|
18
|
+
"pwa": {},
|
|
19
|
+
"watch": false
|
|
20
|
+
},
|
|
21
|
+
"loading": {
|
|
22
|
+
"preAngularBootstrap": {},
|
|
23
|
+
"afterAngularBootstrap": {}
|
|
24
|
+
},
|
|
25
|
+
"release": {
|
|
26
|
+
"cli": {},
|
|
27
|
+
"lib": {},
|
|
28
|
+
"autoReleaseUsingConfig": true,
|
|
29
|
+
"releaseVersionBumpType": "patch",
|
|
30
|
+
"releaseType": "manual",
|
|
31
|
+
"targetArtifact": "npm-lib-and-cli-tool",
|
|
32
|
+
"envName": "__",
|
|
33
|
+
"resolvedNewVersion": "19.0.26"
|
|
34
|
+
},
|
|
35
|
+
"copyToManager": {},
|
|
36
|
+
"buildInfo": {
|
|
37
|
+
"date": "2025-05-28T01:40:17.000Z",
|
|
38
|
+
"hash": "ceb8c86eeb220da0e263e7c8b56fca12548920f3"
|
|
39
|
+
},
|
|
40
|
+
"currentProjectName": "taon",
|
|
41
|
+
"currentProjectType": "isomorphic-lib",
|
|
42
|
+
"pathsTsconfig": "\"paths\": {\"@lib\":[\"./src/lib\"],\"@lib/*\":[\"./src/lib/*\"],\"taon/src\":[\"./src/lib\"],\"taon/src/*\":[\"./src/lib/*\"]},"
|
|
43
|
+
}
|
package/websql/fesm2022/taon.mjs
CHANGED
|
@@ -1519,6 +1519,15 @@ class RealtimeClient {
|
|
|
1519
1519
|
realtime: this.core.pathFor(Symbols.REALTIME.NAMESPACE(this.core.ctx.contextName)),
|
|
1520
1520
|
};
|
|
1521
1521
|
// console.log('[browser] nspPath', nspPath);
|
|
1522
|
+
if (this.core.ctx.config.frontendHost &&
|
|
1523
|
+
this.core.ctx.config.frontendHost !== '') {
|
|
1524
|
+
console.log(`[${this.core.ctx.contextName}] USING FRONTEND HOST ${this.core.ctx.config.frontendHost}`);
|
|
1525
|
+
nspPath.global = new URL(`${this.core.ctx.frontendHostUri.origin}${nspPath.global.pathname}`);
|
|
1526
|
+
nspPath.realtime = new URL(`${this.core.ctx.frontendHostUri.origin}${nspPath.realtime.pathname}`);
|
|
1527
|
+
}
|
|
1528
|
+
else {
|
|
1529
|
+
console.log(`[${this.core.ctx.contextName}] NOT USING FRONTEND HOST`);
|
|
1530
|
+
}
|
|
1522
1531
|
this.core.ctx.logRealtime &&
|
|
1523
1532
|
console.info('[CLIENT] NAMESPACE GLOBAL ', nspPath.global.href + ` host: ${this.core.ctx.host}`);
|
|
1524
1533
|
this.core.ctx.logRealtime &&
|
|
@@ -1699,9 +1708,8 @@ class RealtimeServer {
|
|
|
1699
1708
|
const nspPathRealtime = this.core.pathFor(Symbols.REALTIME.NAMESPACE(this.core.ctx.contextName));
|
|
1700
1709
|
//#endregion
|
|
1701
1710
|
// console.log('[backend] nspPath', nspPath);
|
|
1702
|
-
const fronendURL = new URL(this.core.ctx.config.frontendHost.replace(/\/$/, ''));
|
|
1703
1711
|
const cors = {
|
|
1704
|
-
origin:
|
|
1712
|
+
origin: this.core.ctx.frontendHostUri.origin, // only origin needs to be set - pathname not needed
|
|
1705
1713
|
methods: this.core.allHttpMethods,
|
|
1706
1714
|
};
|
|
1707
1715
|
// console.log('frontendHost', this.core.ctx.config.frontendHost);
|
|
@@ -2645,9 +2653,6 @@ class EndpointContext {
|
|
|
2645
2653
|
}
|
|
2646
2654
|
return this.config?.logs === true;
|
|
2647
2655
|
}
|
|
2648
|
-
//#endregion
|
|
2649
|
-
//#endregion
|
|
2650
|
-
//#region constructor
|
|
2651
2656
|
constructor(originalConfig, configFn) {
|
|
2652
2657
|
this.originalConfig = originalConfig;
|
|
2653
2658
|
this.configFn = configFn;
|
|
@@ -2722,6 +2727,13 @@ class EndpointContext {
|
|
|
2722
2727
|
//#region fields / entities triggers
|
|
2723
2728
|
this.entitiesTriggers = {};
|
|
2724
2729
|
//#endregion
|
|
2730
|
+
//#endregion
|
|
2731
|
+
//#region constructor
|
|
2732
|
+
/**
|
|
2733
|
+
* Inside docker there is not need for https secure server
|
|
2734
|
+
*/
|
|
2735
|
+
this.isRunningInsideDocker = false;
|
|
2736
|
+
//#endregion
|
|
2725
2737
|
//#region methods & getters / clone class
|
|
2726
2738
|
this.cloneClassWithNewMetadata = ({ BaseClass, className, config, ctx, classType, }) => {
|
|
2727
2739
|
// Return a new class that extends the base class
|
|
@@ -2817,6 +2829,7 @@ class EndpointContext {
|
|
|
2817
2829
|
}
|
|
2818
2830
|
return classes;
|
|
2819
2831
|
};
|
|
2832
|
+
this.isRunningInsideDocker = UtilsOs.isRunningInDocker();
|
|
2820
2833
|
}
|
|
2821
2834
|
//#endregion
|
|
2822
2835
|
//#region methods & getters / init
|
|
@@ -3039,6 +3052,14 @@ class EndpointContext {
|
|
|
3039
3052
|
/* */
|
|
3040
3053
|
/* */
|
|
3041
3054
|
/* */
|
|
3055
|
+
/* */
|
|
3056
|
+
/* */
|
|
3057
|
+
/* */
|
|
3058
|
+
/* */
|
|
3059
|
+
/* */
|
|
3060
|
+
/* */
|
|
3061
|
+
/* */
|
|
3062
|
+
/* */
|
|
3042
3063
|
}
|
|
3043
3064
|
//#endregion
|
|
3044
3065
|
//#region prepare realtime
|
|
@@ -3082,12 +3103,12 @@ class EndpointContext {
|
|
|
3082
3103
|
console.log(`
|
|
3083
3104
|
|
|
3084
3105
|
|
|
3085
|
-
IS RUNNING IN DOCKER: ${
|
|
3106
|
+
IS RUNNING IN DOCKER: ${this.isRunningInsideDocker}
|
|
3086
3107
|
|
|
3087
3108
|
`);
|
|
3088
3109
|
//#region @websqlFunc
|
|
3089
3110
|
let databaseConfig = Models.DatabaseConfig.from({});
|
|
3090
|
-
if (
|
|
3111
|
+
if (this.isRunningInsideDocker) {
|
|
3091
3112
|
if (this.USE_MARIADB_MYSQL_IN_DOCKER) {
|
|
3092
3113
|
// Helpers.info('Running in docker, using in mysql database');
|
|
3093
3114
|
// // TODO auto resolve database config in docker
|
|
@@ -3556,6 +3577,13 @@ class EndpointContext {
|
|
|
3556
3577
|
}
|
|
3557
3578
|
//#endregion
|
|
3558
3579
|
//#region methods & getters / uri
|
|
3580
|
+
get frontendHostUri() {
|
|
3581
|
+
const url = this.config?.frontendHost?.startsWith('http')
|
|
3582
|
+
? this.config.frontendHost
|
|
3583
|
+
: `${globalThis?.location?.protocol || 'http:'}//${this.config?.frontendHost}`;
|
|
3584
|
+
const uri = new URL(url.replace(/\/$/, ''));
|
|
3585
|
+
return uri;
|
|
3586
|
+
}
|
|
3559
3587
|
get uri() {
|
|
3560
3588
|
const url = this.host
|
|
3561
3589
|
? new URL(this.host)
|
|
@@ -3566,6 +3594,9 @@ class EndpointContext {
|
|
|
3566
3594
|
}
|
|
3567
3595
|
//#endregion
|
|
3568
3596
|
get uriPort() {
|
|
3597
|
+
if (!this.uri?.origin?.includes('localhost')) {
|
|
3598
|
+
return this.config?.hostPortNumber?.toString();
|
|
3599
|
+
}
|
|
3569
3600
|
return this.uri?.port;
|
|
3570
3601
|
}
|
|
3571
3602
|
get uriProtocol() {
|
|
@@ -3622,6 +3653,9 @@ class EndpointContext {
|
|
|
3622
3653
|
return this.config.contextName;
|
|
3623
3654
|
}
|
|
3624
3655
|
//#endregion
|
|
3656
|
+
get activeContext() {
|
|
3657
|
+
return this.config.activeContext || null;
|
|
3658
|
+
}
|
|
3625
3659
|
get appId() {
|
|
3626
3660
|
return this.config.appId;
|
|
3627
3661
|
}
|
|
@@ -3728,7 +3762,7 @@ class EndpointContext {
|
|
|
3728
3762
|
}
|
|
3729
3763
|
else {
|
|
3730
3764
|
if (this.USE_MARIADB_MYSQL_IN_DOCKER) {
|
|
3731
|
-
autoSave = !
|
|
3765
|
+
autoSave = !this.isRunningInsideDocker; // in docker I am using mysql or posgress
|
|
3732
3766
|
}
|
|
3733
3767
|
else {
|
|
3734
3768
|
autoSave = true; // on docker with sqljs I need to save db
|
|
@@ -3866,8 +3900,13 @@ class EndpointContext {
|
|
|
3866
3900
|
const methodConfig = classConfig.methods[methodName];
|
|
3867
3901
|
// debugger
|
|
3868
3902
|
const type = methodConfig.type;
|
|
3903
|
+
// this is quick fix - in docker global path should not be used
|
|
3904
|
+
const globalPathPart = this.isRunningInsideDocker ||
|
|
3905
|
+
!this.frontendHostUri?.origin?.includes('localhost') // fe with domain -> is in docker
|
|
3906
|
+
? `${this.uriPathnameOrNothingIfRoot.replace(/\/$/, '')}/${apiPrefix}/${this.contextName}`.replace(/\/\//, '/')
|
|
3907
|
+
: '';
|
|
3869
3908
|
const expressPath = methodConfig.global
|
|
3870
|
-
?
|
|
3909
|
+
? `${globalPathPart}/${methodConfig.path?.replace(/\/$/, '')}`.replace(/\/\//, '/')
|
|
3871
3910
|
: TaonHelpers.getExpressPath(classConfig, methodConfig);
|
|
3872
3911
|
// console.log({ expressPath });
|
|
3873
3912
|
if (Helpers.isNode || Helpers.isWebSQL) {
|
|
@@ -4684,6 +4723,11 @@ const createContextTemplate = (configFn) => {
|
|
|
4684
4723
|
*/
|
|
4685
4724
|
const createContext = (configFn) => {
|
|
4686
4725
|
let config = configFn({});
|
|
4726
|
+
// console.log(
|
|
4727
|
+
// `
|
|
4728
|
+
// [Taon] Creating context ${config.contextName}...`,
|
|
4729
|
+
// {config},
|
|
4730
|
+
// );
|
|
4687
4731
|
const endpointContextRef = new EndpointContext(config, configFn);
|
|
4688
4732
|
const res = {
|
|
4689
4733
|
//#region types
|
|
@@ -4784,6 +4828,16 @@ const createContext = (configFn) => {
|
|
|
4784
4828
|
return await new Promise(async (resolve, reject) => {
|
|
4785
4829
|
//#region init in set timeout
|
|
4786
4830
|
setTimeout(async () => {
|
|
4831
|
+
if (UtilsOs.isRunningInDocker()) {
|
|
4832
|
+
const activeContext = config?.activeContext || null;
|
|
4833
|
+
if (_.isString(activeContext) &&
|
|
4834
|
+
activeContext !== '' &&
|
|
4835
|
+
activeContext !== config?.contextName) {
|
|
4836
|
+
console.warn(`[taon] Context ${endpointContextRef.contextName} is not active context, skipping initialization.`);
|
|
4837
|
+
resolve(endpointContextRef);
|
|
4838
|
+
return;
|
|
4839
|
+
}
|
|
4840
|
+
}
|
|
4787
4841
|
await endpointContextRef.init({
|
|
4788
4842
|
...overrideOptions,
|
|
4789
4843
|
});
|