@trudb/tru-common-lib 0.1.435 → 0.1.438
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/base-views/search/tru-search-view-base.mjs +8 -4
- package/esm2022/lib/components/data-grid/tru-data-grid.mjs +6 -6
- package/esm2022/lib/components/desktop/services/tru-desktop-manager.mjs +6 -1
- package/esm2022/lib/components/desktop/services/tru-window-event-handler.mjs +4 -1
- package/fesm2022/trudb-tru-common-lib.mjs +126 -114
- package/fesm2022/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/base-views/search/tru-search-view-base.d.ts +1 -1
- package/lib/components/data-grid/tru-data-grid.d.ts +8 -8
- package/lib/components/desktop/services/tru-desktop-manager.d.ts +2 -0
- package/lib/components/desktop/services/tru-window-event-handler.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2061,6 +2061,9 @@ class TruWindowEventHandler {
|
|
|
2061
2061
|
open(windowEvent) {
|
|
2062
2062
|
this.open$.next(windowEvent);
|
|
2063
2063
|
}
|
|
2064
|
+
openCustom(windowEvent) {
|
|
2065
|
+
this.open$.next(windowEvent);
|
|
2066
|
+
}
|
|
2064
2067
|
onAddView() {
|
|
2065
2068
|
return this.addView$;
|
|
2066
2069
|
}
|
|
@@ -2382,6 +2385,11 @@ class TruDesktopManager {
|
|
|
2382
2385
|
addWindowForQueryResult = (tableName, tablePluralName, tablePluralLabel, componentName, entities = [], openAsDetaiView = false, showNavigation = true, showIfExists) => {
|
|
2383
2386
|
this.windowEventHandler.open(this.getWindowEvent(tableName, tablePluralName, tablePluralLabel, componentName, entities, openAsDetaiView));
|
|
2384
2387
|
};
|
|
2388
|
+
addCustomWindow = (componentName, data = null) => {
|
|
2389
|
+
this.windowEventHandler.open(this.getWindowEvent('', '', '', componentName, undefined, false));
|
|
2390
|
+
};
|
|
2391
|
+
addCustomView = (componentName) => {
|
|
2392
|
+
};
|
|
2385
2393
|
windowTitlesByBaseText = {};
|
|
2386
2394
|
/**
|
|
2387
2395
|
* Returns a unique string for the base name of a window. At first, returns the input.
|
|
@@ -2454,9 +2462,13 @@ class TruSearchViewBase {
|
|
|
2454
2462
|
this.desktopManager = desktopManager;
|
|
2455
2463
|
this.windowEventHandler = windowEventHandler;
|
|
2456
2464
|
}
|
|
2457
|
-
setWindowTitle() {
|
|
2458
|
-
if (!this.windowTitle)
|
|
2459
|
-
|
|
2465
|
+
setWindowTitle(title = undefined) {
|
|
2466
|
+
if (!this.windowTitle) {
|
|
2467
|
+
if (title)
|
|
2468
|
+
this.windowTitle = this.desktopManager.getUniqueTitle(title);
|
|
2469
|
+
else
|
|
2470
|
+
this.windowTitle = this.desktopManager.getUniqueTitle(this.tablePluralLabel);
|
|
2471
|
+
}
|
|
2460
2472
|
this.windowEventHandler.setWindowTitle(this.windowTitle.text);
|
|
2461
2473
|
}
|
|
2462
2474
|
releaseWindowTitle() {
|
|
@@ -5525,66 +5537,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImpor
|
|
|
5525
5537
|
}]
|
|
5526
5538
|
}] });
|
|
5527
5539
|
|
|
5528
|
-
class TruDataGridLoadingOverlay {
|
|
5529
|
-
params;
|
|
5530
|
-
agInit(params) {
|
|
5531
|
-
this.params = params;
|
|
5532
|
-
}
|
|
5533
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: TruDataGridLoadingOverlay, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5534
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: TruDataGridLoadingOverlay, isStandalone: true, selector: "tru-data-grid-loading-overlay", ngImport: i0, template: `
|
|
5535
|
-
<div class="ag-overlay-loading-center" style="height:50px;width:275px;">
|
|
5536
|
-
<div style="display:inline-block;margin-right:15px;vertical-align:middle;line-height:38px;">
|
|
5537
|
-
<mat-spinner [diameter]="30"></mat-spinner>
|
|
5538
|
-
</div>
|
|
5539
|
-
<div style="display:inline-block;vertical-align:middle;">
|
|
5540
|
-
<span style="font-size:12px;font-weight:bold;vertical-align:middle;line-height:38px;">{{ params.loadingMessage }}</span>
|
|
5541
|
-
</div>
|
|
5542
|
-
</div>
|
|
5543
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: MaterialModule }, { kind: "component", type: i1$5.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }] });
|
|
5544
|
-
}
|
|
5545
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: TruDataGridLoadingOverlay, decorators: [{
|
|
5546
|
-
type: Component,
|
|
5547
|
-
args: [{
|
|
5548
|
-
standalone: true,
|
|
5549
|
-
selector: 'tru-data-grid-loading-overlay',
|
|
5550
|
-
imports: [MaterialModule],
|
|
5551
|
-
template: `
|
|
5552
|
-
<div class="ag-overlay-loading-center" style="height:50px;width:275px;">
|
|
5553
|
-
<div style="display:inline-block;margin-right:15px;vertical-align:middle;line-height:38px;">
|
|
5554
|
-
<mat-spinner [diameter]="30"></mat-spinner>
|
|
5555
|
-
</div>
|
|
5556
|
-
<div style="display:inline-block;vertical-align:middle;">
|
|
5557
|
-
<span style="font-size:12px;font-weight:bold;vertical-align:middle;line-height:38px;">{{ params.loadingMessage }}</span>
|
|
5558
|
-
</div>
|
|
5559
|
-
</div>
|
|
5560
|
-
`
|
|
5561
|
-
}]
|
|
5562
|
-
}] });
|
|
5563
|
-
|
|
5564
|
-
class TruDataGridNoRowsOverlay {
|
|
5565
|
-
params;
|
|
5566
|
-
agInit(params) {
|
|
5567
|
-
this.params = params;
|
|
5568
|
-
}
|
|
5569
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: TruDataGridNoRowsOverlay, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5570
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: TruDataGridNoRowsOverlay, isStandalone: true, selector: "tru-data-grid-no-rows-overlay", ngImport: i0, template: `
|
|
5571
|
-
<div class="ag-overlay-loading-center" style="height:50px;width:275px;">
|
|
5572
|
-
<span style="font-size:12px;font-weight:bold;line-height:38px;">{{ params.noRowsMessageFunc() }}</span>
|
|
5573
|
-
</div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: MaterialModule }] });
|
|
5574
|
-
}
|
|
5575
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: TruDataGridNoRowsOverlay, decorators: [{
|
|
5576
|
-
type: Component,
|
|
5577
|
-
args: [{
|
|
5578
|
-
standalone: true,
|
|
5579
|
-
selector: 'tru-data-grid-no-rows-overlay',
|
|
5580
|
-
imports: [MaterialModule],
|
|
5581
|
-
template: `
|
|
5582
|
-
<div class="ag-overlay-loading-center" style="height:50px;width:275px;">
|
|
5583
|
-
<span style="font-size:12px;font-weight:bold;line-height:38px;">{{ params.noRowsMessageFunc() }}</span>
|
|
5584
|
-
</div>`
|
|
5585
|
-
}]
|
|
5586
|
-
}] });
|
|
5587
|
-
|
|
5588
5540
|
var TruValidationDialogContext;
|
|
5589
5541
|
(function (TruValidationDialogContext) {
|
|
5590
5542
|
TruValidationDialogContext[TruValidationDialogContext["Control"] = 0] = "Control";
|
|
@@ -5592,57 +5544,6 @@ var TruValidationDialogContext;
|
|
|
5592
5544
|
TruValidationDialogContext[TruValidationDialogContext["Card"] = 2] = "Card";
|
|
5593
5545
|
})(TruValidationDialogContext || (TruValidationDialogContext = {}));
|
|
5594
5546
|
|
|
5595
|
-
class TruValidationDialogConfig {
|
|
5596
|
-
_entity;
|
|
5597
|
-
_propertyConfig;
|
|
5598
|
-
_context;
|
|
5599
|
-
_isSubProperty;
|
|
5600
|
-
_ignore;
|
|
5601
|
-
_propertyName = '';
|
|
5602
|
-
_errorMsg = '';
|
|
5603
|
-
_mergeData = null;
|
|
5604
|
-
get entity() {
|
|
5605
|
-
return this._entity;
|
|
5606
|
-
}
|
|
5607
|
-
get propertyConfig() {
|
|
5608
|
-
return this._propertyConfig;
|
|
5609
|
-
}
|
|
5610
|
-
get context() {
|
|
5611
|
-
return this._context;
|
|
5612
|
-
}
|
|
5613
|
-
get isSubProperty() {
|
|
5614
|
-
return this._isSubProperty;
|
|
5615
|
-
}
|
|
5616
|
-
get ignore() {
|
|
5617
|
-
return this._ignore;
|
|
5618
|
-
}
|
|
5619
|
-
get propertyName() {
|
|
5620
|
-
return this._propertyName;
|
|
5621
|
-
}
|
|
5622
|
-
set propertyName(value) {
|
|
5623
|
-
this._propertyName = value;
|
|
5624
|
-
}
|
|
5625
|
-
get errorMsg() {
|
|
5626
|
-
return this._errorMsg;
|
|
5627
|
-
}
|
|
5628
|
-
set errorMsg(value) {
|
|
5629
|
-
this._errorMsg = value;
|
|
5630
|
-
}
|
|
5631
|
-
get mergeData() {
|
|
5632
|
-
return this._mergeData;
|
|
5633
|
-
}
|
|
5634
|
-
set mergeData(value) {
|
|
5635
|
-
this._mergeData = value;
|
|
5636
|
-
}
|
|
5637
|
-
constructor(entity, propertyConfig, context = TruValidationDialogContext.Control, isSubProperty = false, ignore = false) {
|
|
5638
|
-
this._entity = entity;
|
|
5639
|
-
this._propertyConfig = propertyConfig;
|
|
5640
|
-
this._context = context;
|
|
5641
|
-
this._isSubProperty = isSubProperty;
|
|
5642
|
-
this._ignore = ignore;
|
|
5643
|
-
}
|
|
5644
|
-
}
|
|
5645
|
-
|
|
5646
5547
|
class TruValidationDialog {
|
|
5647
5548
|
renderer;
|
|
5648
5549
|
elementRef;
|
|
@@ -5745,6 +5646,117 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImpor
|
|
|
5745
5646
|
type: Output
|
|
5746
5647
|
}] } });
|
|
5747
5648
|
|
|
5649
|
+
class TruValidationDialogConfig {
|
|
5650
|
+
_entity;
|
|
5651
|
+
_propertyConfig;
|
|
5652
|
+
_context;
|
|
5653
|
+
_isSubProperty;
|
|
5654
|
+
_ignore;
|
|
5655
|
+
_propertyName = '';
|
|
5656
|
+
_errorMsg = '';
|
|
5657
|
+
_mergeData = null;
|
|
5658
|
+
get entity() {
|
|
5659
|
+
return this._entity;
|
|
5660
|
+
}
|
|
5661
|
+
get propertyConfig() {
|
|
5662
|
+
return this._propertyConfig;
|
|
5663
|
+
}
|
|
5664
|
+
get context() {
|
|
5665
|
+
return this._context;
|
|
5666
|
+
}
|
|
5667
|
+
get isSubProperty() {
|
|
5668
|
+
return this._isSubProperty;
|
|
5669
|
+
}
|
|
5670
|
+
get ignore() {
|
|
5671
|
+
return this._ignore;
|
|
5672
|
+
}
|
|
5673
|
+
get propertyName() {
|
|
5674
|
+
return this._propertyName;
|
|
5675
|
+
}
|
|
5676
|
+
set propertyName(value) {
|
|
5677
|
+
this._propertyName = value;
|
|
5678
|
+
}
|
|
5679
|
+
get errorMsg() {
|
|
5680
|
+
return this._errorMsg;
|
|
5681
|
+
}
|
|
5682
|
+
set errorMsg(value) {
|
|
5683
|
+
this._errorMsg = value;
|
|
5684
|
+
}
|
|
5685
|
+
get mergeData() {
|
|
5686
|
+
return this._mergeData;
|
|
5687
|
+
}
|
|
5688
|
+
set mergeData(value) {
|
|
5689
|
+
this._mergeData = value;
|
|
5690
|
+
}
|
|
5691
|
+
constructor(entity, propertyConfig, context = TruValidationDialogContext.Control, isSubProperty = false, ignore = false) {
|
|
5692
|
+
this._entity = entity;
|
|
5693
|
+
this._propertyConfig = propertyConfig;
|
|
5694
|
+
this._context = context;
|
|
5695
|
+
this._isSubProperty = isSubProperty;
|
|
5696
|
+
this._ignore = ignore;
|
|
5697
|
+
}
|
|
5698
|
+
}
|
|
5699
|
+
|
|
5700
|
+
class TruDataGridLoadingOverlay {
|
|
5701
|
+
params;
|
|
5702
|
+
agInit(params) {
|
|
5703
|
+
this.params = params;
|
|
5704
|
+
}
|
|
5705
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: TruDataGridLoadingOverlay, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5706
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: TruDataGridLoadingOverlay, isStandalone: true, selector: "tru-data-grid-loading-overlay", ngImport: i0, template: `
|
|
5707
|
+
<div class="ag-overlay-loading-center" style="height:50px;width:275px;">
|
|
5708
|
+
<div style="display:inline-block;margin-right:15px;vertical-align:middle;line-height:38px;">
|
|
5709
|
+
<mat-spinner [diameter]="30"></mat-spinner>
|
|
5710
|
+
</div>
|
|
5711
|
+
<div style="display:inline-block;vertical-align:middle;">
|
|
5712
|
+
<span style="font-size:12px;font-weight:bold;vertical-align:middle;line-height:38px;">{{ params.loadingMessage }}</span>
|
|
5713
|
+
</div>
|
|
5714
|
+
</div>
|
|
5715
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: MaterialModule }, { kind: "component", type: i1$5.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }] });
|
|
5716
|
+
}
|
|
5717
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: TruDataGridLoadingOverlay, decorators: [{
|
|
5718
|
+
type: Component,
|
|
5719
|
+
args: [{
|
|
5720
|
+
standalone: true,
|
|
5721
|
+
selector: 'tru-data-grid-loading-overlay',
|
|
5722
|
+
imports: [MaterialModule],
|
|
5723
|
+
template: `
|
|
5724
|
+
<div class="ag-overlay-loading-center" style="height:50px;width:275px;">
|
|
5725
|
+
<div style="display:inline-block;margin-right:15px;vertical-align:middle;line-height:38px;">
|
|
5726
|
+
<mat-spinner [diameter]="30"></mat-spinner>
|
|
5727
|
+
</div>
|
|
5728
|
+
<div style="display:inline-block;vertical-align:middle;">
|
|
5729
|
+
<span style="font-size:12px;font-weight:bold;vertical-align:middle;line-height:38px;">{{ params.loadingMessage }}</span>
|
|
5730
|
+
</div>
|
|
5731
|
+
</div>
|
|
5732
|
+
`
|
|
5733
|
+
}]
|
|
5734
|
+
}] });
|
|
5735
|
+
|
|
5736
|
+
class TruDataGridNoRowsOverlay {
|
|
5737
|
+
params;
|
|
5738
|
+
agInit(params) {
|
|
5739
|
+
this.params = params;
|
|
5740
|
+
}
|
|
5741
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: TruDataGridNoRowsOverlay, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5742
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: TruDataGridNoRowsOverlay, isStandalone: true, selector: "tru-data-grid-no-rows-overlay", ngImport: i0, template: `
|
|
5743
|
+
<div class="ag-overlay-loading-center" style="height:50px;width:275px;">
|
|
5744
|
+
<span style="font-size:12px;font-weight:bold;line-height:38px;">{{ params.noRowsMessageFunc() }}</span>
|
|
5745
|
+
</div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: MaterialModule }] });
|
|
5746
|
+
}
|
|
5747
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: TruDataGridNoRowsOverlay, decorators: [{
|
|
5748
|
+
type: Component,
|
|
5749
|
+
args: [{
|
|
5750
|
+
standalone: true,
|
|
5751
|
+
selector: 'tru-data-grid-no-rows-overlay',
|
|
5752
|
+
imports: [MaterialModule],
|
|
5753
|
+
template: `
|
|
5754
|
+
<div class="ag-overlay-loading-center" style="height:50px;width:275px;">
|
|
5755
|
+
<span style="font-size:12px;font-weight:bold;line-height:38px;">{{ params.noRowsMessageFunc() }}</span>
|
|
5756
|
+
</div>`
|
|
5757
|
+
}]
|
|
5758
|
+
}] });
|
|
5759
|
+
|
|
5748
5760
|
class TruMergeData {
|
|
5749
5761
|
_value;
|
|
5750
5762
|
_modifiedBy;
|