@tots/table 16.0.20 → 20.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +139 -13
- package/fesm2022/tots-table.mjs +116 -106
- package/fesm2022/tots-table.mjs.map +1 -1
- package/index.d.ts +384 -5
- package/package.json +5 -7
- package/esm2022/lib/column-factories/tots-balance-column.mjs +0 -12
- package/esm2022/lib/column-factories/tots-balance-icon-column.mjs +0 -15
- package/esm2022/lib/column-factories/tots-boolean-column.mjs +0 -8
- package/esm2022/lib/column-factories/tots-checkbox-column.mjs +0 -13
- package/esm2022/lib/column-factories/tots-currency-column.mjs +0 -8
- package/esm2022/lib/column-factories/tots-icon-button-column.mjs +0 -15
- package/esm2022/lib/column-factories/tots-link-column.mjs +0 -12
- package/esm2022/lib/column-factories/tots-more-menu-column.mjs +0 -12
- package/esm2022/lib/column-factories/tots-number-column.mjs +0 -12
- package/esm2022/lib/column-factories/tots-option-column.mjs +0 -13
- package/esm2022/lib/column-factories/tots-status-column.mjs +0 -13
- package/esm2022/lib/column-factories/tots-status-icon-column.mjs +0 -13
- package/esm2022/lib/column-factories/tots-string-column.mjs +0 -11
- package/esm2022/lib/column-factories/tots-two-string-column.mjs +0 -11
- package/esm2022/lib/column-factories/tots-user-column.mjs +0 -16
- package/esm2022/lib/columns/balance-currency-column/balance-currency-column.component.mjs +0 -23
- package/esm2022/lib/columns/balance-currency-icon-column/balance-currency-icon-column.component.mjs +0 -23
- package/esm2022/lib/columns/base-print-column/base-print-column.component.mjs +0 -29
- package/esm2022/lib/columns/boolean-column/boolean-column.component.mjs +0 -13
- package/esm2022/lib/columns/checkbox-column/checkbox-column.component.mjs +0 -20
- package/esm2022/lib/columns/currency-column/currency-column.component.mjs +0 -13
- package/esm2022/lib/columns/icon-button-column/icon-button-column.component.mjs +0 -28
- package/esm2022/lib/columns/link-column/link-column.component.mjs +0 -18
- package/esm2022/lib/columns/more-menu-column/more-menu-column.component.mjs +0 -21
- package/esm2022/lib/columns/number-column/number-column.component.mjs +0 -13
- package/esm2022/lib/columns/option-column/option-column.component.mjs +0 -22
- package/esm2022/lib/columns/status-column/status-column.component.mjs +0 -32
- package/esm2022/lib/columns/status-icon-column/status-icon-column.component.mjs +0 -24
- package/esm2022/lib/columns/string-column/string-column.component.mjs +0 -24
- package/esm2022/lib/columns/tots-base-column.component.mjs +0 -26
- package/esm2022/lib/columns/two-string-column/two-string-column.component.mjs +0 -16
- package/esm2022/lib/columns/user-column/user-column.component.mjs +0 -67
- package/esm2022/lib/components/loading-animation-renderer/loading-animation-renderer.component.mjs +0 -42
- package/esm2022/lib/components/tots-table/tots-table.component.mjs +0 -108
- package/esm2022/lib/components/tots-table-api/tots-table-api.component.mjs +0 -67
- package/esm2022/lib/entities/tots-action-table.mjs +0 -6
- package/esm2022/lib/entities/tots-column-option.mjs +0 -7
- package/esm2022/lib/entities/tots-column.mjs +0 -12
- package/esm2022/lib/entities/tots-more-menu-item.mjs +0 -9
- package/esm2022/lib/entities/tots-status-column-option.mjs +0 -9
- package/esm2022/lib/entities/tots-status-icon-column-option.mjs +0 -8
- package/esm2022/lib/entities/tots-table-api-config.mjs +0 -10
- package/esm2022/lib/entities/tots-table-config.mjs +0 -8
- package/esm2022/lib/entities/tots-table-default-config.mjs +0 -11
- package/esm2022/lib/helpers/tots-table-helper.mjs +0 -25
- package/esm2022/lib/table.module.mjs +0 -142
- package/esm2022/public-api.mjs +0 -66
- package/esm2022/tots-table.mjs +0 -5
- package/lib/column-factories/tots-balance-column.d.ts +0 -4
- package/lib/column-factories/tots-balance-icon-column.d.ts +0 -4
- package/lib/column-factories/tots-boolean-column.d.ts +0 -4
- package/lib/column-factories/tots-checkbox-column.d.ts +0 -5
- package/lib/column-factories/tots-currency-column.d.ts +0 -4
- package/lib/column-factories/tots-icon-button-column.d.ts +0 -5
- package/lib/column-factories/tots-link-column.d.ts +0 -4
- package/lib/column-factories/tots-more-menu-column.d.ts +0 -5
- package/lib/column-factories/tots-number-column.d.ts +0 -4
- package/lib/column-factories/tots-option-column.d.ts +0 -5
- package/lib/column-factories/tots-status-column.d.ts +0 -5
- package/lib/column-factories/tots-status-icon-column.d.ts +0 -5
- package/lib/column-factories/tots-string-column.d.ts +0 -4
- package/lib/column-factories/tots-two-string-column.d.ts +0 -4
- package/lib/column-factories/tots-user-column.d.ts +0 -4
- package/lib/columns/balance-currency-column/balance-currency-column.component.d.ts +0 -9
- package/lib/columns/balance-currency-icon-column/balance-currency-icon-column.component.d.ts +0 -9
- package/lib/columns/base-print-column/base-print-column.component.d.ts +0 -16
- package/lib/columns/boolean-column/boolean-column.component.d.ts +0 -6
- package/lib/columns/checkbox-column/checkbox-column.component.d.ts +0 -8
- package/lib/columns/currency-column/currency-column.component.d.ts +0 -6
- package/lib/columns/icon-button-column/icon-button-column.component.d.ts +0 -10
- package/lib/columns/link-column/link-column.component.d.ts +0 -10
- package/lib/columns/more-menu-column/more-menu-column.component.d.ts +0 -7
- package/lib/columns/number-column/number-column.component.d.ts +0 -6
- package/lib/columns/option-column/option-column.component.d.ts +0 -7
- package/lib/columns/status-column/status-column.component.d.ts +0 -8
- package/lib/columns/status-icon-column/status-icon-column.component.d.ts +0 -7
- package/lib/columns/string-column/string-column.component.d.ts +0 -8
- package/lib/columns/tots-base-column.component.d.ts +0 -13
- package/lib/columns/two-string-column/two-string-column.component.d.ts +0 -7
- package/lib/columns/user-column/user-column.component.d.ts +0 -15
- package/lib/components/loading-animation-renderer/loading-animation-renderer.component.d.ts +0 -15
- package/lib/components/tots-table/tots-table.component.d.ts +0 -44
- package/lib/components/tots-table-api/tots-table-api.component.d.ts +0 -25
- package/lib/entities/tots-action-table.d.ts +0 -4
- package/lib/entities/tots-column-option.d.ts +0 -5
- package/lib/entities/tots-column.d.ts +0 -12
- package/lib/entities/tots-more-menu-item.d.ts +0 -7
- package/lib/entities/tots-status-column-option.d.ts +0 -6
- package/lib/entities/tots-status-icon-column-option.d.ts +0 -5
- package/lib/entities/tots-table-api-config.d.ts +0 -9
- package/lib/entities/tots-table-config.d.ts +0 -9
- package/lib/entities/tots-table-default-config.d.ts +0 -36
- package/lib/helpers/tots-table-helper.d.ts +0 -9
- package/lib/table.module.d.ts +0 -34
- package/public-api.d.ts +0 -62
package/fesm2022/tots-table.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Injectable,
|
|
2
|
+
import { InjectionToken, Injectable, Input, Component, ViewContainerRef, ViewChild, Inject, EventEmitter, Output, NgModule } from '@angular/core';
|
|
3
3
|
import { TotsQuery } from '@tots/core';
|
|
4
4
|
import * as i1 from '@angular/common';
|
|
5
5
|
import { CommonModule } from '@angular/common';
|
|
6
|
-
import * as i2 from '@angular/material/
|
|
7
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
8
|
-
import * as i1$1 from '@angular/material/checkbox';
|
|
6
|
+
import * as i2 from '@angular/material/checkbox';
|
|
9
7
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
10
|
-
import * as i2$1 from '@angular/material/
|
|
8
|
+
import * as i2$1 from '@angular/material/icon';
|
|
9
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
10
|
+
import * as i3 from '@angular/material/button';
|
|
11
11
|
import { MatButtonModule } from '@angular/material/button';
|
|
12
|
-
import * as
|
|
12
|
+
import * as i3$1 from '@angular/material/menu';
|
|
13
13
|
import { MatMenuModule } from '@angular/material/menu';
|
|
14
14
|
import { Subject, tap } from 'rxjs';
|
|
15
|
-
import * as i3 from '@angular/material/table';
|
|
15
|
+
import * as i3$2 from '@angular/material/table';
|
|
16
16
|
import { MatTableModule } from '@angular/material/table';
|
|
17
|
-
import * as i4
|
|
17
|
+
import * as i4 from '@angular/material/paginator';
|
|
18
18
|
import { MatPaginatorModule, MAT_PAGINATOR_DEFAULT_OPTIONS } from '@angular/material/paginator';
|
|
19
19
|
import * as i5 from '@angular/material/progress-bar';
|
|
20
20
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
@@ -42,10 +42,10 @@ class TotsTableConfig {
|
|
|
42
42
|
|
|
43
43
|
const TOTS_TABLE_DEFAULT_CONFIG = new InjectionToken('tots_table_default_config');
|
|
44
44
|
class TotsTableDefaultConfig {
|
|
45
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
46
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
45
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: TotsTableDefaultConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
46
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: TotsTableDefaultConfig }); }
|
|
47
47
|
}
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: TotsTableDefaultConfig, decorators: [{
|
|
49
49
|
type: Injectable
|
|
50
50
|
}] });
|
|
51
51
|
|
|
@@ -124,10 +124,10 @@ class TotsBaseColumnComponent {
|
|
|
124
124
|
getItemValue() {
|
|
125
125
|
return TotsTableHelper.getItemValueByKey(this.item, this.column.field_key);
|
|
126
126
|
}
|
|
127
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
128
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
127
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: TotsBaseColumnComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
128
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: TotsBaseColumnComponent, isStandalone: true, selector: "tots-base-column", inputs: { column: "column", item: "item", onAction: "onAction", index: "index" }, ngImport: i0, template: '', isInline: true }); }
|
|
129
129
|
}
|
|
130
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: TotsBaseColumnComponent, decorators: [{
|
|
131
131
|
type: Component,
|
|
132
132
|
args: [{
|
|
133
133
|
selector: 'tots-base-column',
|
|
@@ -153,12 +153,12 @@ class BalanceCurrencyColumnComponent extends TotsBaseColumnComponent {
|
|
|
153
153
|
getCredit() {
|
|
154
154
|
return TotsTableHelper.getItemValueByKey(this.item, this.column.extra.field_key_credit);
|
|
155
155
|
}
|
|
156
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
157
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
156
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: BalanceCurrencyColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
157
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: BalanceCurrencyColumnComponent, isStandalone: false, selector: "tots-balance-currency-column", usesInheritance: true, ngImport: i0, template: "<span [ngClass]=\"{\n\t'tots-balance-column-positive': getBalance() > 0,\n\t'tots-balance-column-negative': getBalance() < 0\n}\">\n\t{{ getBalance() | currency }}\n</span>", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i1.CurrencyPipe, name: "currency" }] }); }
|
|
158
158
|
}
|
|
159
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
159
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: BalanceCurrencyColumnComponent, decorators: [{
|
|
160
160
|
type: Component,
|
|
161
|
-
args: [{ selector: 'tots-balance-currency-column', template: "<span [ngClass]=\"{'tots-balance-column-positive': getBalance() > 0
|
|
161
|
+
args: [{ selector: 'tots-balance-currency-column', standalone: false, template: "<span [ngClass]=\"{\n\t'tots-balance-column-positive': getBalance() > 0,\n\t'tots-balance-column-negative': getBalance() < 0\n}\">\n\t{{ getBalance() | currency }}\n</span>" }]
|
|
162
162
|
}] });
|
|
163
163
|
|
|
164
164
|
class BalanceCurrencyIconColumnComponent extends BalanceCurrencyColumnComponent {
|
|
@@ -171,21 +171,21 @@ class BalanceCurrencyIconColumnComponent extends BalanceCurrencyColumnComponent
|
|
|
171
171
|
getIconNeutral() {
|
|
172
172
|
return this.column.extra.icon_neutral;
|
|
173
173
|
}
|
|
174
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
175
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
174
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: BalanceCurrencyIconColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
175
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.10", type: BalanceCurrencyIconColumnComponent, isStandalone: false, selector: "tots-balance-currency-icon-column", usesInheritance: true, ngImport: i0, template: "<span [ngClass]=\"{\n\t'tots-balance-column-positive': getBalance() > 0,\n\t'tots-balance-column-negative': getBalance() < 0\n}\">\n\t@if (getBalance() > 0) {\n\t\t{{ getIconPositive() }}\n\t} @else if (getBalance() < 0) {\n\t\t{{ getIconNegative() }}\n\t} @else {\n\t\t{{ getIconNeutral() }}\n\t}\n</span>", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
176
176
|
}
|
|
177
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
177
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: BalanceCurrencyIconColumnComponent, decorators: [{
|
|
178
178
|
type: Component,
|
|
179
|
-
args: [{ selector: 'tots-balance-currency-icon-column', template: "<span [ngClass]=\"{'tots-balance-column-positive': getBalance() > 0
|
|
179
|
+
args: [{ selector: 'tots-balance-currency-icon-column', standalone: false, template: "<span [ngClass]=\"{\n\t'tots-balance-column-positive': getBalance() > 0,\n\t'tots-balance-column-negative': getBalance() < 0\n}\">\n\t@if (getBalance() > 0) {\n\t\t{{ getIconPositive() }}\n\t} @else if (getBalance() < 0) {\n\t\t{{ getIconNegative() }}\n\t} @else {\n\t\t{{ getIconNeutral() }}\n\t}\n</span>" }]
|
|
180
180
|
}] });
|
|
181
181
|
|
|
182
182
|
class BooleanColumnComponent extends TotsBaseColumnComponent {
|
|
183
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
184
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
183
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: BooleanColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
184
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.10", type: BooleanColumnComponent, isStandalone: false, selector: "tots-boolean-column", usesInheritance: true, ngImport: i0, template: "@if (getItemValue() == true||getItemValue() == 1) {\n\tYES\n} @else {\n\tNO\n}", styles: [""] }); }
|
|
185
185
|
}
|
|
186
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
186
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: BooleanColumnComponent, decorators: [{
|
|
187
187
|
type: Component,
|
|
188
|
-
args: [{ selector: 'tots-boolean-column', template: "
|
|
188
|
+
args: [{ selector: 'tots-boolean-column', standalone: false, template: "@if (getItemValue() == true||getItemValue() == 1) {\n\tYES\n} @else {\n\tNO\n}" }]
|
|
189
189
|
}] });
|
|
190
190
|
|
|
191
191
|
class CheckboxColumnComponent extends TotsBaseColumnComponent {
|
|
@@ -196,21 +196,27 @@ class CheckboxColumnComponent extends TotsBaseColumnComponent {
|
|
|
196
196
|
}
|
|
197
197
|
this.onAction.next({ key: key, item: this.item });
|
|
198
198
|
}
|
|
199
|
-
|
|
200
|
-
|
|
199
|
+
get cssClass() {
|
|
200
|
+
return this.column.extra?.class || "";
|
|
201
|
+
}
|
|
202
|
+
get color() {
|
|
203
|
+
return this.column.extra?.color || "";
|
|
204
|
+
}
|
|
205
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: CheckboxColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
206
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: CheckboxColumnComponent, isStandalone: false, selector: "tots-checkbox-column", usesInheritance: true, ngImport: i0, template: "<div class=\"tots-checkbox-column\">\n\t<mat-checkbox\n\t\t[ngClass]=\"[cssClass, color]\"\n\t\t(change)=\"onChange($event)\"\n\t\t(click)=\"$event.stopPropagation()\"\n\t></mat-checkbox>\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }] }); }
|
|
201
207
|
}
|
|
202
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
208
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: CheckboxColumnComponent, decorators: [{
|
|
203
209
|
type: Component,
|
|
204
|
-
args: [{ selector: 'tots-checkbox-column', template: "<div class=\"tots-checkbox-column\">\n
|
|
210
|
+
args: [{ selector: 'tots-checkbox-column', standalone: false, template: "<div class=\"tots-checkbox-column\">\n\t<mat-checkbox\n\t\t[ngClass]=\"[cssClass, color]\"\n\t\t(change)=\"onChange($event)\"\n\t\t(click)=\"$event.stopPropagation()\"\n\t></mat-checkbox>\n</div>" }]
|
|
205
211
|
}] });
|
|
206
212
|
|
|
207
213
|
class CurrencyColumnComponent extends TotsBaseColumnComponent {
|
|
208
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
209
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
214
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: CurrencyColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
215
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: CurrencyColumnComponent, isStandalone: false, selector: "tots-currency-column", usesInheritance: true, ngImport: i0, template: "<span [ngClass]=\"{\n\t'tots-currency-column-positive': getItemValue() > 0,\n\t'tots-currency-column-negative': getItemValue() < 0\n}\">\n\t{{ getItemValue() | currency }}\n</span>", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i1.CurrencyPipe, name: "currency" }] }); }
|
|
210
216
|
}
|
|
211
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
217
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: CurrencyColumnComponent, decorators: [{
|
|
212
218
|
type: Component,
|
|
213
|
-
args: [{ selector: 'tots-currency-column', template: "<span [ngClass]=\"{'tots-currency-column-positive': getItemValue() > 0
|
|
219
|
+
args: [{ selector: 'tots-currency-column', standalone: false, template: "<span [ngClass]=\"{\n\t'tots-currency-column-positive': getItemValue() > 0,\n\t'tots-currency-column-negative': getItemValue() < 0\n}\">\n\t{{ getItemValue() | currency }}\n</span>" }]
|
|
214
220
|
}] });
|
|
215
221
|
|
|
216
222
|
class IconButtonColumnComponent extends TotsBaseColumnComponent {
|
|
@@ -222,18 +228,18 @@ class IconButtonColumnComponent extends TotsBaseColumnComponent {
|
|
|
222
228
|
getIconName() {
|
|
223
229
|
return this.column.extra.icon;
|
|
224
230
|
}
|
|
225
|
-
|
|
226
|
-
return this.column.extra.matColor;
|
|
231
|
+
get buttonColor() {
|
|
232
|
+
return this.column.extra.matColor || "";
|
|
227
233
|
}
|
|
228
|
-
|
|
229
|
-
return this.column.extra.class;
|
|
234
|
+
get cssClass() {
|
|
235
|
+
return this.column.extra.class || "";
|
|
230
236
|
}
|
|
231
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
232
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
237
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IconButtonColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
238
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: IconButtonColumnComponent, isStandalone: false, selector: "tots-icon-button-column", usesInheritance: true, ngImport: i0, template: "<button mat-icon-button [ngClass]=\"[buttonColor, cssClass]\" (click)=\"clickButton($event)\">\n\t<mat-icon>{{getIconName()}}</mat-icon>\n</button>", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }] }); }
|
|
233
239
|
}
|
|
234
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: IconButtonColumnComponent, decorators: [{
|
|
235
241
|
type: Component,
|
|
236
|
-
args: [{ selector: 'tots-icon-button-column', template: "<button mat-icon-button [
|
|
242
|
+
args: [{ selector: 'tots-icon-button-column', standalone: false, template: "<button mat-icon-button [ngClass]=\"[buttonColor, cssClass]\" (click)=\"clickButton($event)\">\n\t<mat-icon>{{getIconName()}}</mat-icon>\n</button>" }]
|
|
237
243
|
}] });
|
|
238
244
|
|
|
239
245
|
class LinkColumnComponent extends TotsBaseColumnComponent {
|
|
@@ -241,12 +247,12 @@ class LinkColumnComponent extends TotsBaseColumnComponent {
|
|
|
241
247
|
this.linkCaption = this.column.extra?.caption || "Open in new tab";
|
|
242
248
|
this.target = this.column.extra?.target || "_blank";
|
|
243
249
|
}
|
|
244
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
245
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
250
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: LinkColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
251
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.10", type: LinkColumnComponent, isStandalone: false, selector: "tots-link-column", usesInheritance: true, ngImport: i0, template: "<div>\n\t@if (getItemValue()) {\n\t\t<a [href]=\"getItemValue()\" [target]=\"target\">\n\t\t\t{{ linkCaption }}\n\t\t\t@if (target == '_blank') {\n\t\t\t\t<mat-icon>open_in_new</mat-icon>\n\t\t\t}\n\t\t</a>\n\t}\n</div>", styles: ["a{display:flex;gap:6px;align-items:center;text-decoration:none}a mat-icon{font-size:14px;line-height:14px;width:14px;height:14px}\n"], dependencies: [{ kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] }); }
|
|
246
252
|
}
|
|
247
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: LinkColumnComponent, decorators: [{
|
|
248
254
|
type: Component,
|
|
249
|
-
args: [{ selector: 'tots-link-column', template: "<div>\n
|
|
255
|
+
args: [{ selector: 'tots-link-column', standalone: false, template: "<div>\n\t@if (getItemValue()) {\n\t\t<a [href]=\"getItemValue()\" [target]=\"target\">\n\t\t\t{{ linkCaption }}\n\t\t\t@if (target == '_blank') {\n\t\t\t\t<mat-icon>open_in_new</mat-icon>\n\t\t\t}\n\t\t</a>\n\t}\n</div>", styles: ["a{display:flex;gap:6px;align-items:center;text-decoration:none}a mat-icon{font-size:14px;line-height:14px;width:14px;height:14px}\n"] }]
|
|
250
256
|
}] });
|
|
251
257
|
|
|
252
258
|
class MoreMenuColumnComponent extends TotsBaseColumnComponent {
|
|
@@ -255,21 +261,21 @@ class MoreMenuColumnComponent extends TotsBaseColumnComponent {
|
|
|
255
261
|
$event.preventDefault();
|
|
256
262
|
return false;
|
|
257
263
|
}
|
|
258
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
259
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
264
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: MoreMenuColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
265
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.10", type: MoreMenuColumnComponent, isStandalone: false, selector: "tots-more-menu-column", usesInheritance: true, ngImport: i0, template: "<button mat-icon-button [matMenuTriggerFor]=\"actions\" (click)=\"$event.stopPropagation()\">\n\t<mat-icon>more_vert</mat-icon>\n</button>\n\n<mat-menu #actions=\"matMenu\">\n\t@for (button of column.extra?.actions; track $index) {\n\t\t<button mat-menu-item (click)=\"clickButton(button, $event)\" class=\"{{button.class}}\">\n\t\t\t@if (button.icon) {\n\t\t\t\t<mat-icon>\n\t\t\t\t\t{{ button.icon }}\n\t\t\t\t</mat-icon>\n\t\t\t}\n\t\t\t{{ button.title }}\n\t\t</button>\n\t}\n</mat-menu>", styles: [""], dependencies: [{ kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i3$1.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i3$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i3$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }] }); }
|
|
260
266
|
}
|
|
261
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
267
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: MoreMenuColumnComponent, decorators: [{
|
|
262
268
|
type: Component,
|
|
263
|
-
args: [{ selector: 'tots-more-menu-column', template: "<button mat-icon-button [matMenuTriggerFor]=\"actions\" (click)=\"$event.stopPropagation()\"
|
|
269
|
+
args: [{ selector: 'tots-more-menu-column', standalone: false, template: "<button mat-icon-button [matMenuTriggerFor]=\"actions\" (click)=\"$event.stopPropagation()\">\n\t<mat-icon>more_vert</mat-icon>\n</button>\n\n<mat-menu #actions=\"matMenu\">\n\t@for (button of column.extra?.actions; track $index) {\n\t\t<button mat-menu-item (click)=\"clickButton(button, $event)\" class=\"{{button.class}}\">\n\t\t\t@if (button.icon) {\n\t\t\t\t<mat-icon>\n\t\t\t\t\t{{ button.icon }}\n\t\t\t\t</mat-icon>\n\t\t\t}\n\t\t\t{{ button.title }}\n\t\t</button>\n\t}\n</mat-menu>" }]
|
|
264
270
|
}] });
|
|
265
271
|
|
|
266
272
|
class NumberColumnComponent extends TotsBaseColumnComponent {
|
|
267
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
268
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
273
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NumberColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
274
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.10", type: NumberColumnComponent, isStandalone: false, selector: "tots-number-column", usesInheritance: true, ngImport: i0, template: "<span [ngClass]=\"{\n\t'tots-number-column-positive': getItemValue() > 0,\n\t'tots-number-column-negative': getItemValue() < 0\n}\">\n\t@if (column.extra?.prepend) {\n\t\t<span class=\"tots-number-column-prepend\">\n\t\t\t{{ column.extra?.prepend }}\n\t\t</span>\n\t}\n\n\t{{ getItemValue() | number:\"1.0-2\" }}\n\n\t@if (column.extra?.append) {\n\t\t<span class=\"tots-number-column-append\">\n\t\t\t{{ column.extra?.append }}\n\t\t</span>\n\t}\n</span>", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i1.DecimalPipe, name: "number" }] }); }
|
|
269
275
|
}
|
|
270
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NumberColumnComponent, decorators: [{
|
|
271
277
|
type: Component,
|
|
272
|
-
args: [{ selector: 'tots-number-column', template: "<span [ngClass]=\"{\n
|
|
278
|
+
args: [{ selector: 'tots-number-column', standalone: false, template: "<span [ngClass]=\"{\n\t'tots-number-column-positive': getItemValue() > 0,\n\t'tots-number-column-negative': getItemValue() < 0\n}\">\n\t@if (column.extra?.prepend) {\n\t\t<span class=\"tots-number-column-prepend\">\n\t\t\t{{ column.extra?.prepend }}\n\t\t</span>\n\t}\n\n\t{{ getItemValue() | number:\"1.0-2\" }}\n\n\t@if (column.extra?.append) {\n\t\t<span class=\"tots-number-column-append\">\n\t\t\t{{ column.extra?.append }}\n\t\t</span>\n\t}\n</span>" }]
|
|
273
279
|
}] });
|
|
274
280
|
|
|
275
281
|
class OptionColumnComponent extends TotsBaseColumnComponent {
|
|
@@ -282,12 +288,12 @@ class OptionColumnComponent extends TotsBaseColumnComponent {
|
|
|
282
288
|
}
|
|
283
289
|
return '';
|
|
284
290
|
}
|
|
285
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
286
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
291
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: OptionColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
292
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: OptionColumnComponent, isStandalone: false, selector: "tots-option-column", usesInheritance: true, ngImport: i0, template: "{{getItemValue()}}", styles: [""] }); }
|
|
287
293
|
}
|
|
288
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
294
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: OptionColumnComponent, decorators: [{
|
|
289
295
|
type: Component,
|
|
290
|
-
args: [{ selector: 'tots-option-column', template: "{{getItemValue()}}" }]
|
|
296
|
+
args: [{ selector: 'tots-option-column', standalone: false, template: "{{getItemValue()}}" }]
|
|
291
297
|
}] });
|
|
292
298
|
|
|
293
299
|
class StatusColumnComponent extends OptionColumnComponent {
|
|
@@ -309,12 +315,12 @@ class StatusColumnComponent extends OptionColumnComponent {
|
|
|
309
315
|
}
|
|
310
316
|
return '';
|
|
311
317
|
}
|
|
312
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
313
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
318
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: StatusColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
319
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: StatusColumnComponent, isStandalone: false, selector: "tots-status-column", usesInheritance: true, ngImport: i0, template: "<span class=\"tots-status-column\" [ngStyle]=\"{\n\t'background-color': getBackgroundColor(),\n\t'color': getFontColor()\n}\">\n\t{{ getItemValue() }}\n</span>", styles: [".tots-status-column{display:inline-block;padding:3px 10px;background-color:#e7e7e7;color:#08081699;font-size:x-small;font-weight:700;text-transform:uppercase}\n"], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
314
320
|
}
|
|
315
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
321
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: StatusColumnComponent, decorators: [{
|
|
316
322
|
type: Component,
|
|
317
|
-
args: [{ selector: 'tots-status-column', template: "<span class=\"tots-status-column\" [ngStyle]=\"{'background-color': getBackgroundColor()
|
|
323
|
+
args: [{ selector: 'tots-status-column', standalone: false, template: "<span class=\"tots-status-column\" [ngStyle]=\"{\n\t'background-color': getBackgroundColor(),\n\t'color': getFontColor()\n}\">\n\t{{ getItemValue() }}\n</span>", styles: [".tots-status-column{display:inline-block;padding:3px 10px;background-color:#e7e7e7;color:#08081699;font-size:x-small;font-weight:700;text-transform:uppercase}\n"] }]
|
|
318
324
|
}] });
|
|
319
325
|
|
|
320
326
|
class StatusIconColumnComponent extends OptionColumnComponent {
|
|
@@ -327,12 +333,12 @@ class StatusIconColumnComponent extends OptionColumnComponent {
|
|
|
327
333
|
}
|
|
328
334
|
return '';
|
|
329
335
|
}
|
|
330
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
331
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
336
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: StatusIconColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
337
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: StatusIconColumnComponent, isStandalone: false, selector: "tots-status-icon-column", usesInheritance: true, ngImport: i0, template: "<span class=\"tots-status-icon-column\" [ngStyle]=\"{'color': getFontColor()}\">\n\t<mat-icon>\n\t\t{{ getItemValue() }}\n\t</mat-icon>\n</span>", styles: [""], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] }); }
|
|
332
338
|
}
|
|
333
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
339
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: StatusIconColumnComponent, decorators: [{
|
|
334
340
|
type: Component,
|
|
335
|
-
args: [{ selector: 'tots-status-icon-column', template: "<span class=\"tots-status-icon-column\" [ngStyle]=\"{'color': getFontColor()}\"
|
|
341
|
+
args: [{ selector: 'tots-status-icon-column', standalone: false, template: "<span class=\"tots-status-icon-column\" [ngStyle]=\"{'color': getFontColor()}\">\n\t<mat-icon>\n\t\t{{ getItemValue() }}\n\t</mat-icon>\n</span>" }]
|
|
336
342
|
}] });
|
|
337
343
|
|
|
338
344
|
class StringColumnComponent extends TotsBaseColumnComponent {
|
|
@@ -346,24 +352,27 @@ class StringColumnComponent extends TotsBaseColumnComponent {
|
|
|
346
352
|
get prepend() {
|
|
347
353
|
return this.column.extra?.prepend;
|
|
348
354
|
}
|
|
349
|
-
|
|
350
|
-
|
|
355
|
+
get append() {
|
|
356
|
+
return this.column.extra?.append;
|
|
357
|
+
}
|
|
358
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: StringColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
359
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.10", type: StringColumnComponent, isStandalone: false, selector: "tots-string-column", usesInheritance: true, ngImport: i0, template: "@if (prepend) {\n\t<span class=\"prefix\"> {{ prepend }} </span>\n}\n\n{{ getItemValue() }}\n\n@if (append) {\n\t<span class=\"prefix\"> {{ append }} </span>\n}", styles: [""] }); }
|
|
351
360
|
}
|
|
352
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
361
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: StringColumnComponent, decorators: [{
|
|
353
362
|
type: Component,
|
|
354
|
-
args: [{ selector: 'tots-string-column', template: "<span class=\"prefix\"
|
|
363
|
+
args: [{ selector: 'tots-string-column', standalone: false, template: "@if (prepend) {\n\t<span class=\"prefix\"> {{ prepend }} </span>\n}\n\n{{ getItemValue() }}\n\n@if (append) {\n\t<span class=\"prefix\"> {{ append }} </span>\n}" }]
|
|
355
364
|
}] });
|
|
356
365
|
|
|
357
366
|
class TwoStringColumnComponent extends TotsBaseColumnComponent {
|
|
358
367
|
getSubtitleValue() {
|
|
359
368
|
return TotsTableHelper.getItemValueByKey(this.item, this.column.extra.field_subtitle_key);
|
|
360
369
|
}
|
|
361
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
362
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
370
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: TwoStringColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
371
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: TwoStringColumnComponent, isStandalone: false, selector: "tots-two-string-column", usesInheritance: true, ngImport: i0, template: "<div class=\"first-line\">\n\t<strong>\n\t\t{{ getItemValue() }}\n\t</strong>\n</div>\n\n<div class=\"second-line\">\n\t{{ getSubtitleValue() }}\n</div>", styles: [""] }); }
|
|
363
372
|
}
|
|
364
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
373
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: TwoStringColumnComponent, decorators: [{
|
|
365
374
|
type: Component,
|
|
366
|
-
args: [{ selector: 'tots-two-string-column', template: "<div class=\"first-line\"
|
|
375
|
+
args: [{ selector: 'tots-two-string-column', standalone: false, template: "<div class=\"first-line\">\n\t<strong>\n\t\t{{ getItemValue() }}\n\t</strong>\n</div>\n\n<div class=\"second-line\">\n\t{{ getSubtitleValue() }}\n</div>" }]
|
|
367
376
|
}] });
|
|
368
377
|
|
|
369
378
|
class UserColumnComponent extends TotsBaseColumnComponent {
|
|
@@ -419,12 +428,12 @@ class UserColumnComponent extends TotsBaseColumnComponent {
|
|
|
419
428
|
}
|
|
420
429
|
return 'click-column';
|
|
421
430
|
}
|
|
422
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
423
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
431
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: UserColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
432
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.10", type: UserColumnComponent, isStandalone: false, selector: "tots-user-column", usesInheritance: true, ngImport: i0, template: "<div class=\"user-avatar-component\" [ngClass]=\"{'box-clickable': isClickable()}\" (click)=\"onClick($event);\">\n\t@if (getPhoto()) {\n\t\t<div class=\"avatar\">\n\t\t\t<img mat-card-avatar [src]=\"getPhoto()\" alt=\"{{ getFullname() }}\" class=\"cover-image\" onerror=\"this.src='/assets/img/user-avatar-empty.svg';\">\n\t\t</div>\n\t}\n\n\t<div class=\"texts\">\n\t\t<div class=\"user\"> {{ getFullname() }} </div>\n\n\t\t@if (getSubtitle()) {\n\t\t\t<div class=\"body-2\"> {{ getSubtitle() }} </div>\n\t\t}\n\t</div>\n\n\t@if (column.extra?.field_is_online && isOnline()) {\n\t\t<div class=\"check\">\n\t\t\t<mat-icon>check</mat-icon>\n\t\t</div>\n\t}\n</div>\n", styles: [".user-avatar-component{display:flex;align-items:center;position:relative}.user-avatar-component .avatar{width:40px;min-width:40px;height:40px;min-height:40px;border-radius:40px;overflow:hidden;margin-right:16px}.user-avatar-component .avatar img{width:40px;min-width:40px;height:40px;min-height:40px}.user-avatar-component .texts .user{font-size:1.1em}.user-avatar-component .texts .body-2{color:#636363;font-size:.9em}.user-avatar-component .check{position:absolute;border:2px solid white;border-radius:200px;top:0;left:0;color:#24b524;background-color:#d7ffa3;width:1em;height:1em;display:flex;align-items:center;justify-content:center}.user-avatar-component .check mat-icon{line-height:1em;font-size:1em;width:1em;height:1em}.box-clickable{cursor:pointer}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] }); }
|
|
424
433
|
}
|
|
425
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
434
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: UserColumnComponent, decorators: [{
|
|
426
435
|
type: Component,
|
|
427
|
-
args: [{ selector: 'tots-user-column', template: "<div class=\"user-avatar-component\" [ngClass]=\"{'box-clickable': isClickable()}\" (click)=\"onClick($event);\">\n
|
|
436
|
+
args: [{ selector: 'tots-user-column', standalone: false, template: "<div class=\"user-avatar-component\" [ngClass]=\"{'box-clickable': isClickable()}\" (click)=\"onClick($event);\">\n\t@if (getPhoto()) {\n\t\t<div class=\"avatar\">\n\t\t\t<img mat-card-avatar [src]=\"getPhoto()\" alt=\"{{ getFullname() }}\" class=\"cover-image\" onerror=\"this.src='/assets/img/user-avatar-empty.svg';\">\n\t\t</div>\n\t}\n\n\t<div class=\"texts\">\n\t\t<div class=\"user\"> {{ getFullname() }} </div>\n\n\t\t@if (getSubtitle()) {\n\t\t\t<div class=\"body-2\"> {{ getSubtitle() }} </div>\n\t\t}\n\t</div>\n\n\t@if (column.extra?.field_is_online && isOnline()) {\n\t\t<div class=\"check\">\n\t\t\t<mat-icon>check</mat-icon>\n\t\t</div>\n\t}\n</div>\n", styles: [".user-avatar-component{display:flex;align-items:center;position:relative}.user-avatar-component .avatar{width:40px;min-width:40px;height:40px;min-height:40px;border-radius:40px;overflow:hidden;margin-right:16px}.user-avatar-component .avatar img{width:40px;min-width:40px;height:40px;min-height:40px}.user-avatar-component .texts .user{font-size:1.1em}.user-avatar-component .texts .body-2{color:#636363;font-size:.9em}.user-avatar-component .check{position:absolute;border:2px solid white;border-radius:200px;top:0;left:0;color:#24b524;background-color:#d7ffa3;width:1em;height:1em;display:flex;align-items:center;justify-content:center}.user-avatar-component .check mat-icon{line-height:1em;font-size:1em;width:1em;height:1em}.box-clickable{cursor:pointer}\n"] }]
|
|
428
437
|
}] });
|
|
429
438
|
|
|
430
439
|
class TotsBalanceColumn extends TotsColumn {
|
|
@@ -550,10 +559,11 @@ class TotsStatusIconColumn extends TotsColumn {
|
|
|
550
559
|
}
|
|
551
560
|
|
|
552
561
|
class TotsStringColumn extends TotsColumn {
|
|
553
|
-
constructor(id, fieldKey, title, hasOrder, order, prepend) {
|
|
562
|
+
constructor(id, fieldKey, title, hasOrder, order, prepend, append) {
|
|
554
563
|
super(id, StringColumnComponent, fieldKey, title, hasOrder, order);
|
|
555
564
|
this.extra = {
|
|
556
|
-
prepend: prepend
|
|
565
|
+
prepend: prepend,
|
|
566
|
+
append: append
|
|
557
567
|
};
|
|
558
568
|
}
|
|
559
569
|
}
|
|
@@ -592,13 +602,13 @@ class BasePrintColumnComponent {
|
|
|
592
602
|
view.instance.onAction = this.onAction;
|
|
593
603
|
view.instance.index = this.index;
|
|
594
604
|
}
|
|
595
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
596
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
605
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: BasePrintColumnComponent, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
606
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: BasePrintColumnComponent, isStandalone: false, selector: "tots-base-print-column", inputs: { column: "column", item: "item", onAction: "onAction", index: "index" }, ngImport: i0, template: "<div #contentColumn></div>", styles: [""] }); }
|
|
597
607
|
}
|
|
598
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
608
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: BasePrintColumnComponent, decorators: [{
|
|
599
609
|
type: Component,
|
|
600
|
-
args: [{ selector: 'tots-base-print-column', template: "<div #contentColumn></div>" }]
|
|
601
|
-
}], ctorParameters:
|
|
610
|
+
args: [{ selector: 'tots-base-print-column', standalone: false, template: "<div #contentColumn></div>" }]
|
|
611
|
+
}], ctorParameters: () => [{ type: i0.ViewContainerRef }], propDecorators: { column: [{
|
|
602
612
|
type: Input
|
|
603
613
|
}], item: [{
|
|
604
614
|
type: Input
|
|
@@ -631,16 +641,16 @@ class LoadingAnimationRendererComponent {
|
|
|
631
641
|
this.loadingComponent.instance.color = this.totsTableDefaultConfig.matColor;
|
|
632
642
|
}
|
|
633
643
|
}
|
|
634
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
635
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
644
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: LoadingAnimationRendererComponent, deps: [{ token: TOTS_TABLE_DEFAULT_CONFIG }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
645
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: LoadingAnimationRendererComponent, isStandalone: false, selector: "tots-loading-animation-renderer", viewQueries: [{ propertyName: "loadingComponentContainer", first: true, predicate: ["loadingComponentContainer"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: "<ng-container #loadingComponentContainer></ng-container>", styles: [""] }); }
|
|
636
646
|
}
|
|
637
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
647
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: LoadingAnimationRendererComponent, decorators: [{
|
|
638
648
|
type: Component,
|
|
639
|
-
args: [{ selector: 'tots-loading-animation-renderer', template: "<ng-container #loadingComponentContainer></ng-container>" }]
|
|
640
|
-
}], ctorParameters:
|
|
649
|
+
args: [{ selector: 'tots-loading-animation-renderer', standalone: false, template: "<ng-container #loadingComponentContainer></ng-container>" }]
|
|
650
|
+
}], ctorParameters: () => [{ type: TotsTableDefaultConfig, decorators: [{
|
|
641
651
|
type: Inject,
|
|
642
652
|
args: [TOTS_TABLE_DEFAULT_CONFIG]
|
|
643
|
-
}] }, { type: i0.ViewContainerRef }]
|
|
653
|
+
}] }, { type: i0.ViewContainerRef }], propDecorators: { loadingComponentContainer: [{
|
|
644
654
|
type: ViewChild,
|
|
645
655
|
args: ['loadingComponentContainer', { read: ViewContainerRef }]
|
|
646
656
|
}] } });
|
|
@@ -660,7 +670,7 @@ class TotsTableComponent {
|
|
|
660
670
|
this.isLoading = true;
|
|
661
671
|
this.firstLoad = true;
|
|
662
672
|
this.messageNotFound = this.totsTableDefaultConfig.messageNotFound ? this.totsTableDefaultConfig.messageNotFound : "No results found, please try with other search terms";
|
|
663
|
-
this.matColor = this.totsTableDefaultConfig.matColor
|
|
673
|
+
this.matColor = this.totsTableDefaultConfig.matColor || "primary";
|
|
664
674
|
this.upperPaginator = this.totsTableDefaultConfig.upperPaginator != undefined ? this.totsTableDefaultConfig.upperPaginator : false;
|
|
665
675
|
this.lowerPaginator = this.totsTableDefaultConfig.lowerPaginator != undefined ? this.totsTableDefaultConfig.lowerPaginator : true;
|
|
666
676
|
this.upperProgressBar = this.totsTableDefaultConfig.upperProgressBar != undefined ? this.totsTableDefaultConfig.upperProgressBar : false;
|
|
@@ -717,16 +727,16 @@ class TotsTableComponent {
|
|
|
717
727
|
detectChanges() {
|
|
718
728
|
this.changeDectetor.detectChanges();
|
|
719
729
|
}
|
|
720
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
721
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
730
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: TotsTableComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: TOTS_TABLE_DEFAULT_CONFIG }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
731
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.10", type: TotsTableComponent, isStandalone: false, selector: "tots-table", inputs: { config: "config", pageIndex: "pageIndex", pageSize: "pageSize", hasPagination: "hasPagination", messageNotFound: "messageNotFound" }, outputs: { onAction: "onAction" }, ngImport: i0, template: "<div class=\"tots-table-container {{config.classes}}\">\n\n\t<!-- #region Lower paginator -->\n\t@if (upperPaginator && dataItems && dataItems.data.length > 0 && hasPagination) {\n\t\t<mat-paginator\n\t\t\t[pageIndex]=\"pageIndex-1\"\n\t\t\t[length]=\"dataItems!.total\"\n\t\t\t[pageSize]=\"pageSize\"\n\t\t\t(page)=\"onPageChange($event)\"\n\t\t></mat-paginator>\n\t}\n\t<!-- #endregion -->\n\n\t<!-- #region Lower progress bar -->\n\t@if (upperProgressBar && !firstLoad) {\n\t\t<div class=\"tots-table-bar-loading upper\">\n\t\t\t@if (isLoading) {\n\t\t\t\t<mat-progress-bar [mode]=\"'indeterminate'\" [class]=\"matColor\"></mat-progress-bar>\n\t\t\t}\n\t\t</div>\n\t}\n\t<!-- #endregion -->\n\n\t<!-- #region Table -->\n\t<table mat-table [dataSource]=\"dataItems != undefined ? dataItems!.data : []\">\n\n\t\t@for (column of config.columns; track $index) {\n\t\t\t<ng-container [matColumnDef]=\"column.key\" [stickyEnd]=\"column.extra?.stickyEnd ?? false\">\n\n\t\t\t\t<th mat-header-cell *matHeaderCellDef [ngClass]=\"{'tots-tr-has-order': column.hasOrder}\" (click)=\"onClickOrder(column)\">\n\t\t\t\t\t{{ column.title }}\n\t\t\t\t\t<mat-icon [ngClass]=\"{'sort_active': column.order == 'asc'}\">arrow_drop_up</mat-icon>\n\t\t\t\t\t<mat-icon [ngClass]=\"{'sort_active': column.order == 'desc'}\">arrow_drop_down</mat-icon>\n\t\t\t\t</th>\n\n\t\t\t\t<td mat-cell *matCellDef=\"let item; let index = index;\" [ngStyle]=\"{'width': column.extra?.width ? column.extra.width : 'auto'}\"><tots-base-print-column [column]=\"column\" [item]=\"item\" [index]=\"index\" [onAction]=\"privateActions\"></tots-base-print-column></td>\n\t\t\t</ng-container>\n\t\t}\n\n\t\t<tr mat-header-row *matHeaderRowDef=\"displayColumns\"></tr>\n\t\t<tr mat-row *matRowDef=\"let row; columns: displayColumns;\" (click)=\"onClickRow(row)\" [class]=\"row.classCustom\" [ngClass]=\"{'tots-cell-selected': row.isSelected}\"></tr>\n\n\t\t<!-- Row shown when there is no matching data. -->\n\t\t@if (!isLoading) {\n\t\t\t<tr class=\"tots-table-not-data\" *matNoDataRow>\n\t\t\t\t<td class=\"mat-cell\" [colSpan]=\"config.columns.length\">\n\t\t\t\t\t{{ messageNotFound }}\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t}\n\t</table>\n\t<!-- #endregion -->\n\n\t<!-- #region First loading animation -->\n\t@if (isLoading && firstLoad) {\n\t\t<div class=\"tots-table-loading\">\n\t\t\t<tots-loading-animation-renderer></tots-loading-animation-renderer>\n\t\t</div>\n\t}\n\t<!-- #endregion -->\n\n\t<!-- #region Lower progress bar -->\n\t@if (lowerProgressBar && !firstLoad) {\n\t\t<div class=\"tots-table-bar-loading lower\">\n\t\t\t@if (isLoading) {\n\t\t\t\t<mat-progress-bar [mode]=\"'indeterminate'\" [class]=\"matColor\"></mat-progress-bar>\n\t\t\t}\n\t\t</div>\n\t}\n\t<!-- #endregion -->\n\n\t<!-- #region Lower paginator -->\n\t@if (lowerPaginator && dataItems && dataItems.data.length > 0 && hasPagination) {\n\t\t<mat-paginator [pageIndex]=\"pageIndex-1\" [length]=\"dataItems!.total\" [pageSize]=\"pageSize\" (page)=\"onPageChange($event)\"></mat-paginator>\n\t}\n\t<!-- #endregion -->\n</div>", styles: [".tots-table-container .mat-mdc-header-cell{position:relative}.tots-table-container .mat-mdc-header-cell mat-icon{display:none}.tots-table-container .tots-tr-has-order{cursor:pointer}.tots-table-container .tots-tr-has-order:hover mat-icon{opacity:.5}.tots-table-container .tots-tr-has-order mat-icon{display:inline;opacity:.3;position:absolute}.tots-table-container .tots-tr-has-order mat-icon:nth-of-type(1){top:12px}.tots-table-container .tots-tr-has-order mat-icon:nth-of-type(2){top:20px}.tots-table-container .tots-tr-has-order .sort_active{opacity:1!important}.tots-table-container .tots-table-loading{display:flex;justify-content:center;text-align:center}.tots-table-container .tots-table-bar-loading{height:4px}.tots-table-container .tots-table-not-data{font-size:large;text-align:center}.tots-table-container .tots-table-not-data td{padding:24px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3$2.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3$2.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i3$2.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3$2.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i3$2.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i3$2.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3$2.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i3$2.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i3$2.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3$2.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "directive", type: i3$2.MatNoDataRow, selector: "ng-template[matNoDataRow]" }, { kind: "component", type: i4.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "component", type: i5.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: BasePrintColumnComponent, selector: "tots-base-print-column", inputs: ["column", "item", "onAction", "index"] }, { kind: "component", type: LoadingAnimationRendererComponent, selector: "tots-loading-animation-renderer" }] }); }
|
|
722
732
|
}
|
|
723
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
733
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: TotsTableComponent, decorators: [{
|
|
724
734
|
type: Component,
|
|
725
|
-
args: [{ selector: 'tots-table', template: "<div class=\"tots-table-container {{config.classes}}\">\n\n
|
|
726
|
-
}], ctorParameters:
|
|
735
|
+
args: [{ selector: 'tots-table', standalone: false, template: "<div class=\"tots-table-container {{config.classes}}\">\n\n\t<!-- #region Lower paginator -->\n\t@if (upperPaginator && dataItems && dataItems.data.length > 0 && hasPagination) {\n\t\t<mat-paginator\n\t\t\t[pageIndex]=\"pageIndex-1\"\n\t\t\t[length]=\"dataItems!.total\"\n\t\t\t[pageSize]=\"pageSize\"\n\t\t\t(page)=\"onPageChange($event)\"\n\t\t></mat-paginator>\n\t}\n\t<!-- #endregion -->\n\n\t<!-- #region Lower progress bar -->\n\t@if (upperProgressBar && !firstLoad) {\n\t\t<div class=\"tots-table-bar-loading upper\">\n\t\t\t@if (isLoading) {\n\t\t\t\t<mat-progress-bar [mode]=\"'indeterminate'\" [class]=\"matColor\"></mat-progress-bar>\n\t\t\t}\n\t\t</div>\n\t}\n\t<!-- #endregion -->\n\n\t<!-- #region Table -->\n\t<table mat-table [dataSource]=\"dataItems != undefined ? dataItems!.data : []\">\n\n\t\t@for (column of config.columns; track $index) {\n\t\t\t<ng-container [matColumnDef]=\"column.key\" [stickyEnd]=\"column.extra?.stickyEnd ?? false\">\n\n\t\t\t\t<th mat-header-cell *matHeaderCellDef [ngClass]=\"{'tots-tr-has-order': column.hasOrder}\" (click)=\"onClickOrder(column)\">\n\t\t\t\t\t{{ column.title }}\n\t\t\t\t\t<mat-icon [ngClass]=\"{'sort_active': column.order == 'asc'}\">arrow_drop_up</mat-icon>\n\t\t\t\t\t<mat-icon [ngClass]=\"{'sort_active': column.order == 'desc'}\">arrow_drop_down</mat-icon>\n\t\t\t\t</th>\n\n\t\t\t\t<td mat-cell *matCellDef=\"let item; let index = index;\" [ngStyle]=\"{'width': column.extra?.width ? column.extra.width : 'auto'}\"><tots-base-print-column [column]=\"column\" [item]=\"item\" [index]=\"index\" [onAction]=\"privateActions\"></tots-base-print-column></td>\n\t\t\t</ng-container>\n\t\t}\n\n\t\t<tr mat-header-row *matHeaderRowDef=\"displayColumns\"></tr>\n\t\t<tr mat-row *matRowDef=\"let row; columns: displayColumns;\" (click)=\"onClickRow(row)\" [class]=\"row.classCustom\" [ngClass]=\"{'tots-cell-selected': row.isSelected}\"></tr>\n\n\t\t<!-- Row shown when there is no matching data. -->\n\t\t@if (!isLoading) {\n\t\t\t<tr class=\"tots-table-not-data\" *matNoDataRow>\n\t\t\t\t<td class=\"mat-cell\" [colSpan]=\"config.columns.length\">\n\t\t\t\t\t{{ messageNotFound }}\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t}\n\t</table>\n\t<!-- #endregion -->\n\n\t<!-- #region First loading animation -->\n\t@if (isLoading && firstLoad) {\n\t\t<div class=\"tots-table-loading\">\n\t\t\t<tots-loading-animation-renderer></tots-loading-animation-renderer>\n\t\t</div>\n\t}\n\t<!-- #endregion -->\n\n\t<!-- #region Lower progress bar -->\n\t@if (lowerProgressBar && !firstLoad) {\n\t\t<div class=\"tots-table-bar-loading lower\">\n\t\t\t@if (isLoading) {\n\t\t\t\t<mat-progress-bar [mode]=\"'indeterminate'\" [class]=\"matColor\"></mat-progress-bar>\n\t\t\t}\n\t\t</div>\n\t}\n\t<!-- #endregion -->\n\n\t<!-- #region Lower paginator -->\n\t@if (lowerPaginator && dataItems && dataItems.data.length > 0 && hasPagination) {\n\t\t<mat-paginator [pageIndex]=\"pageIndex-1\" [length]=\"dataItems!.total\" [pageSize]=\"pageSize\" (page)=\"onPageChange($event)\"></mat-paginator>\n\t}\n\t<!-- #endregion -->\n</div>", styles: [".tots-table-container .mat-mdc-header-cell{position:relative}.tots-table-container .mat-mdc-header-cell mat-icon{display:none}.tots-table-container .tots-tr-has-order{cursor:pointer}.tots-table-container .tots-tr-has-order:hover mat-icon{opacity:.5}.tots-table-container .tots-tr-has-order mat-icon{display:inline;opacity:.3;position:absolute}.tots-table-container .tots-tr-has-order mat-icon:nth-of-type(1){top:12px}.tots-table-container .tots-tr-has-order mat-icon:nth-of-type(2){top:20px}.tots-table-container .tots-tr-has-order .sort_active{opacity:1!important}.tots-table-container .tots-table-loading{display:flex;justify-content:center;text-align:center}.tots-table-container .tots-table-bar-loading{height:4px}.tots-table-container .tots-table-not-data{font-size:large;text-align:center}.tots-table-container .tots-table-not-data td{padding:24px}\n"] }]
|
|
736
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: TotsTableDefaultConfig, decorators: [{
|
|
727
737
|
type: Inject,
|
|
728
738
|
args: [TOTS_TABLE_DEFAULT_CONFIG]
|
|
729
|
-
}] }]
|
|
739
|
+
}] }], propDecorators: { config: [{
|
|
730
740
|
type: Input
|
|
731
741
|
}], pageIndex: [{
|
|
732
742
|
type: Input
|
|
@@ -783,12 +793,12 @@ class TotsTableApiComponent {
|
|
|
783
793
|
setObs(obs) {
|
|
784
794
|
this.configTable.obs = obs;
|
|
785
795
|
}
|
|
786
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
787
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
796
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: TotsTableApiComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
797
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: TotsTableApiComponent, isStandalone: false, selector: "tots-table-api", inputs: { config: "config", hasPagination: "hasPagination", isPaginationStartIndexInZero: "isPaginationStartIndexInZero" }, outputs: { onAction: "onAction" }, viewQueries: [{ propertyName: "tableComp", first: true, predicate: ["tableComp"], descendants: true }], ngImport: i0, template: "<tots-table #tableComp [config]=\"configTable\" [pageIndex]=\"config.query.page\" [pageSize]=\"config.query.per_page\" (onAction)=\"onTableAction($event)\" [hasPagination]=\"hasPagination\"></tots-table>\n", styles: [""], dependencies: [{ kind: "component", type: TotsTableComponent, selector: "tots-table", inputs: ["config", "pageIndex", "pageSize", "hasPagination", "messageNotFound"], outputs: ["onAction"] }] }); }
|
|
788
798
|
}
|
|
789
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
799
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: TotsTableApiComponent, decorators: [{
|
|
790
800
|
type: Component,
|
|
791
|
-
args: [{ selector: 'tots-table-api', template: "<tots-table #tableComp [config]=\"configTable\" [pageIndex]=\"config.query.page\" [pageSize]=\"config.query.per_page\" (onAction)=\"onTableAction($event)\" [hasPagination]=\"hasPagination\"></tots-table>\n" }]
|
|
801
|
+
args: [{ selector: 'tots-table-api', standalone: false, template: "<tots-table #tableComp [config]=\"configTable\" [pageIndex]=\"config.query.page\" [pageSize]=\"config.query.per_page\" (onAction)=\"onTableAction($event)\" [hasPagination]=\"hasPagination\"></tots-table>\n" }]
|
|
792
802
|
}], propDecorators: { tableComp: [{
|
|
793
803
|
type: ViewChild,
|
|
794
804
|
args: ['tableComp']
|
|
@@ -803,8 +813,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
|
|
|
803
813
|
}] } });
|
|
804
814
|
|
|
805
815
|
class TotsTableModule {
|
|
806
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
807
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
816
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: TotsTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
817
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.10", ngImport: i0, type: TotsTableModule, declarations: [TotsTableComponent,
|
|
808
818
|
BasePrintColumnComponent,
|
|
809
819
|
StringColumnComponent,
|
|
810
820
|
TotsTableApiComponent,
|
|
@@ -833,7 +843,7 @@ class TotsTableModule {
|
|
|
833
843
|
MatProgressSpinnerModule,
|
|
834
844
|
MatProgressBarModule], exports: [TotsTableComponent,
|
|
835
845
|
TotsTableApiComponent] }); }
|
|
836
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
846
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: TotsTableModule, providers: [
|
|
837
847
|
{
|
|
838
848
|
provide: MAT_PAGINATOR_DEFAULT_OPTIONS,
|
|
839
849
|
useValue: {
|
|
@@ -855,7 +865,7 @@ class TotsTableModule {
|
|
|
855
865
|
MatProgressSpinnerModule,
|
|
856
866
|
MatProgressBarModule] }); }
|
|
857
867
|
}
|
|
858
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
868
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: TotsTableModule, decorators: [{
|
|
859
869
|
type: NgModule,
|
|
860
870
|
args: [{
|
|
861
871
|
declarations: [
|