@trudb/tru-common-lib 0.1.415 → 0.1.418
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/esm2022/lib/components/app-settings-dialog/windows/classes/tru-window-open-on-start-setting.mjs +3 -0
- package/esm2022/lib/components/app-settings-dialog/windows/on-starup/tru-app-window-open-on-startup-setting.mjs +35 -7
- package/fesm2022/trudb-tru-common-lib.mjs +33 -7
- package/fesm2022/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/components/app-settings-dialog/windows/classes/tru-window-open-on-start-setting.d.ts +6 -0
- package/lib/components/app-settings-dialog/windows/on-starup/tru-app-window-open-on-startup-setting.d.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export class TruWindowOpenOnStartSetting {
|
|
2
|
+
}
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJ1LXdpbmRvdy1vcGVuLW9uLXN0YXJ0LXNldHRpbmcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90cnUtY29tbW9uLWxpYi9zcmMvbGliL2NvbXBvbmVudHMvYXBwLXNldHRpbmdzLWRpYWxvZy93aW5kb3dzL2NsYXNzZXMvdHJ1LXdpbmRvdy1vcGVuLW9uLXN0YXJ0LXNldHRpbmcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFnQiwyQkFBMkI7Q0FLaEQiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgYWJzdHJhY3QgY2xhc3MgVHJ1V2luZG93T3Blbk9uU3RhcnRTZXR0aW5nIHtcclxuICBhYnN0cmFjdCBuYW1lOiBzdHJpbmc7XHJcbiAgYWJzdHJhY3QgbGFiZWw6IHN0cmluZztcclxuICBhYnN0cmFjdCBjaGVja2VkOiBib29sZWFuO1xyXG4gIGFic3RyYWN0IG1vZGlmaWVkOiBib29sZWFuO1xyXG59XHJcbiJdfQ==
|
|
@@ -1,15 +1,43 @@
|
|
|
1
1
|
import { Component } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
//import { TruWindowOpenOnStartSetting } from '../classes/tru-window-open-on-start-setting';
|
|
3
|
+
import * as i1 from "@angular/forms";
|
|
4
|
+
import * as i2 from "@angular/material/checkbox";
|
|
5
|
+
import * as i3 from "@angular/material/table";
|
|
7
6
|
export class TruAppWindowOpenOnStartupSetting {
|
|
7
|
+
settings = [];
|
|
8
|
+
displayedColumns = [];
|
|
9
|
+
//constructor(
|
|
10
|
+
// private userPreferenceManager: TruUserPreferenceManager,
|
|
11
|
+
// private modelTableLookup: TruModelTableLookup) {
|
|
12
|
+
// let tables = this.modelTableLookup.all;
|
|
13
|
+
// let openOnStartSettings: Array<TruWindowOpenOnStartSetting> = [];
|
|
14
|
+
// tables.forEach((table: TruTableConfigBase) => {
|
|
15
|
+
// let name = table.name?.toUpperCase() + '_OPEN_ON_START';
|
|
16
|
+
// let openOnStart = table.openOnStart;
|
|
17
|
+
// let userPreferenceOpenOnStart = this.userPreferenceManager.get(name);
|
|
18
|
+
// if (userPreferenceOpenOnStart)
|
|
19
|
+
// openOnStart = Boolean(userPreferenceOpenOnStart);
|
|
20
|
+
// openOnStartSettings.push({
|
|
21
|
+
// name: name,
|
|
22
|
+
// label: table.name as string,
|
|
23
|
+
// checked: openOnStart,
|
|
24
|
+
// modified: false
|
|
25
|
+
// } as TruWindowOpenOnStartSetting);
|
|
26
|
+
// });
|
|
27
|
+
// this.settings = openOnStartSettings;
|
|
28
|
+
//}
|
|
29
|
+
onRowClicked = (row) => {
|
|
30
|
+
row.checked = !row.checked;
|
|
31
|
+
row.modified = true;
|
|
32
|
+
};
|
|
33
|
+
ngOnInit() {
|
|
34
|
+
this.displayedColumns = ['label', 'checked'];
|
|
35
|
+
}
|
|
8
36
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: TruAppWindowOpenOnStartupSetting, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: TruAppWindowOpenOnStartupSetting, selector: "tru-app-window-open-on-startup-setting", ngImport: i0, template: "<p>Open Window(s) On Startup</p>\r\n
|
|
37
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: TruAppWindowOpenOnStartupSetting, selector: "tru-app-window-open-on-startup-setting", ngImport: i0, template: "<p>Open Window(s) On Startup</p>\r\n<table mat-table [dataSource]=\"settings\">\r\n <ng-container matColumnDef=\"label\">\r\n <th mat-header-cell *matHeaderCellDef> Name </th>\r\n <td mat-cell *matCellDef=\"let element\"> {{element.label}} </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"checked\">\r\n <th mat-header-cell *matHeaderCellDef></th>\r\n <td mat-cell *matCellDef=\"let element\" class=\"tru-app-window-open-on-startup-checkbox\">\r\n <mat-checkbox [(ngModel)]=\"element.checked\"></mat-checkbox>\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\" (click)=\"onRowClicked(row)\"></tr>\r\n</table>\r\n", styles: [".tru-app-window-open-on-startup-checkbox{text-align:center;justify-content:center}\n"], dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: i3.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i3.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i3.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i3.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i3.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i3.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }] });
|
|
10
38
|
}
|
|
11
39
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: TruAppWindowOpenOnStartupSetting, decorators: [{
|
|
12
40
|
type: Component,
|
|
13
|
-
args: [{ selector: 'tru-app-window-open-on-startup-setting', template: "<p>Open Window(s) On Startup</p>\r\n
|
|
41
|
+
args: [{ selector: 'tru-app-window-open-on-startup-setting', template: "<p>Open Window(s) On Startup</p>\r\n<table mat-table [dataSource]=\"settings\">\r\n <ng-container matColumnDef=\"label\">\r\n <th mat-header-cell *matHeaderCellDef> Name </th>\r\n <td mat-cell *matCellDef=\"let element\"> {{element.label}} </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"checked\">\r\n <th mat-header-cell *matHeaderCellDef></th>\r\n <td mat-cell *matCellDef=\"let element\" class=\"tru-app-window-open-on-startup-checkbox\">\r\n <mat-checkbox [(ngModel)]=\"element.checked\"></mat-checkbox>\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\" (click)=\"onRowClicked(row)\"></tr>\r\n</table>\r\n", styles: [".tru-app-window-open-on-startup-checkbox{text-align:center;justify-content:center}\n"] }]
|
|
14
42
|
}] });
|
|
15
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
43
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJ1LWFwcC13aW5kb3ctb3Blbi1vbi1zdGFydHVwLXNldHRpbmcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90cnUtY29tbW9uLWxpYi9zcmMvbGliL2NvbXBvbmVudHMvYXBwLXNldHRpbmdzLWRpYWxvZy93aW5kb3dzL29uLXN0YXJ1cC90cnUtYXBwLXdpbmRvdy1vcGVuLW9uLXN0YXJ0dXAtc2V0dGluZy50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3RydS1jb21tb24tbGliL3NyYy9saWIvY29tcG9uZW50cy9hcHAtc2V0dGluZ3MtZGlhbG9nL3dpbmRvd3Mvb24tc3RhcnVwL3RydS1hcHAtd2luZG93LW9wZW4tb24tc3RhcnR1cC1zZXR0aW5nLmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQzs7Ozs7QUFXbEQsTUFBTSxPQUFPLGdDQUFnQztJQUUzQyxRQUFRLEdBQXVDLEVBQUUsQ0FBQztJQUNsRCxnQkFBZ0IsR0FBYSxFQUFFLENBQUM7SUFFaEMsY0FBYztJQUNkLDREQUE0RDtJ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HJcbiJdfQ==
|
|
@@ -27,6 +27,8 @@ import * as i4$1 from '@angular/material/list';
|
|
|
27
27
|
import { MatListModule } from '@angular/material/list';
|
|
28
28
|
import * as i5 from '@angular/material/sidenav';
|
|
29
29
|
import { MatSidenavModule } from '@angular/material/sidenav';
|
|
30
|
+
import * as i3$1 from '@angular/material/table';
|
|
31
|
+
import { MatTableModule } from '@angular/material/table';
|
|
30
32
|
import * as i1$2 from 'ngx-toastr';
|
|
31
33
|
import moment from 'moment/moment';
|
|
32
34
|
import { A11yModule } from '@angular/cdk/a11y';
|
|
@@ -66,7 +68,6 @@ import { MatSliderModule } from '@angular/material/slider';
|
|
|
66
68
|
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
67
69
|
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
|
68
70
|
import { MatSortModule } from '@angular/material/sort';
|
|
69
|
-
import { MatTableModule } from '@angular/material/table';
|
|
70
71
|
import * as i2$2 from '@angular/material/tabs';
|
|
71
72
|
import { MatTabsModule, MatTab, MatTabGroup } from '@angular/material/tabs';
|
|
72
73
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
@@ -842,17 +843,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImpor
|
|
|
842
843
|
args: [MAT_DIALOG_DATA]
|
|
843
844
|
}] }] });
|
|
844
845
|
|
|
845
|
-
//import { TruTableConfigBase } from '../../../../base-classes/tru-table-config-base';
|
|
846
|
-
//import { TruModelTableLookup } from '../../../../services/tru-model-table-lookup';
|
|
847
|
-
//import { TruUserPreferenceManager } from '../../../../services/tru-user-preference-manager';
|
|
848
|
-
//import { TruWindowOpenOnStartSetting } from '../classes/tru-window-open-on-start-setting';
|
|
849
846
|
class TruAppWindowOpenOnStartupSetting {
|
|
847
|
+
settings = [];
|
|
848
|
+
displayedColumns = [];
|
|
849
|
+
//constructor(
|
|
850
|
+
// private userPreferenceManager: TruUserPreferenceManager,
|
|
851
|
+
// private modelTableLookup: TruModelTableLookup) {
|
|
852
|
+
// let tables = this.modelTableLookup.all;
|
|
853
|
+
// let openOnStartSettings: Array<TruWindowOpenOnStartSetting> = [];
|
|
854
|
+
// tables.forEach((table: TruTableConfigBase) => {
|
|
855
|
+
// let name = table.name?.toUpperCase() + '_OPEN_ON_START';
|
|
856
|
+
// let openOnStart = table.openOnStart;
|
|
857
|
+
// let userPreferenceOpenOnStart = this.userPreferenceManager.get(name);
|
|
858
|
+
// if (userPreferenceOpenOnStart)
|
|
859
|
+
// openOnStart = Boolean(userPreferenceOpenOnStart);
|
|
860
|
+
// openOnStartSettings.push({
|
|
861
|
+
// name: name,
|
|
862
|
+
// label: table.name as string,
|
|
863
|
+
// checked: openOnStart,
|
|
864
|
+
// modified: false
|
|
865
|
+
// } as TruWindowOpenOnStartSetting);
|
|
866
|
+
// });
|
|
867
|
+
// this.settings = openOnStartSettings;
|
|
868
|
+
//}
|
|
869
|
+
onRowClicked = (row) => {
|
|
870
|
+
row.checked = !row.checked;
|
|
871
|
+
row.modified = true;
|
|
872
|
+
};
|
|
873
|
+
ngOnInit() {
|
|
874
|
+
this.displayedColumns = ['label', 'checked'];
|
|
875
|
+
}
|
|
850
876
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: TruAppWindowOpenOnStartupSetting, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
851
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: TruAppWindowOpenOnStartupSetting, selector: "tru-app-window-open-on-startup-setting", ngImport: i0, template: "<p>Open Window(s) On Startup</p>\r\n
|
|
877
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: TruAppWindowOpenOnStartupSetting, selector: "tru-app-window-open-on-startup-setting", ngImport: i0, template: "<p>Open Window(s) On Startup</p>\r\n<table mat-table [dataSource]=\"settings\">\r\n <ng-container matColumnDef=\"label\">\r\n <th mat-header-cell *matHeaderCellDef> Name </th>\r\n <td mat-cell *matCellDef=\"let element\"> {{element.label}} </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"checked\">\r\n <th mat-header-cell *matHeaderCellDef></th>\r\n <td mat-cell *matCellDef=\"let element\" class=\"tru-app-window-open-on-startup-checkbox\">\r\n <mat-checkbox [(ngModel)]=\"element.checked\"></mat-checkbox>\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\" (click)=\"onRowClicked(row)\"></tr>\r\n</table>\r\n", styles: [".tru-app-window-open-on-startup-checkbox{text-align:center;justify-content:center}\n"], dependencies: [{ kind: "directive", type: i8.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i8.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i4.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: i3$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i3$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i3$1.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i3$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i3$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i3$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }] });
|
|
852
878
|
}
|
|
853
879
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: TruAppWindowOpenOnStartupSetting, decorators: [{
|
|
854
880
|
type: Component,
|
|
855
|
-
args: [{ selector: 'tru-app-window-open-on-startup-setting', template: "<p>Open Window(s) On Startup</p>\r\n
|
|
881
|
+
args: [{ selector: 'tru-app-window-open-on-startup-setting', template: "<p>Open Window(s) On Startup</p>\r\n<table mat-table [dataSource]=\"settings\">\r\n <ng-container matColumnDef=\"label\">\r\n <th mat-header-cell *matHeaderCellDef> Name </th>\r\n <td mat-cell *matCellDef=\"let element\"> {{element.label}} </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"checked\">\r\n <th mat-header-cell *matHeaderCellDef></th>\r\n <td mat-cell *matCellDef=\"let element\" class=\"tru-app-window-open-on-startup-checkbox\">\r\n <mat-checkbox [(ngModel)]=\"element.checked\"></mat-checkbox>\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\" (click)=\"onRowClicked(row)\"></tr>\r\n</table>\r\n", styles: [".tru-app-window-open-on-startup-checkbox{text-align:center;justify-content:center}\n"] }]
|
|
856
882
|
}] });
|
|
857
883
|
|
|
858
884
|
class TruAppWindowSettings {
|