@theseam/ui-common 1.0.0-beta.6 → 1.0.0-beta.8
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/breadcrumbs/index.d.ts +1 -2
- package/buttons/index.d.ts +20 -13
- package/datatable/index.d.ts +8 -8
- package/dynamic/index.d.ts +5 -5
- package/fesm2022/theseam-ui-common-asset-reader.mjs +28 -29
- package/fesm2022/theseam-ui-common-asset-reader.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-breadcrumbs.mjs +25 -31
- package/fesm2022/theseam-ui-common-breadcrumbs.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-buttons.mjs +108 -66
- package/fesm2022/theseam-ui-common-buttons.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-card.mjs +21 -21
- package/fesm2022/theseam-ui-common-card.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-carousel.mjs +28 -30
- package/fesm2022/theseam-ui-common-carousel.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-checkbox.mjs +27 -27
- package/fesm2022/theseam-ui-common-checkbox.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-confirm-dialog.mjs +23 -27
- package/fesm2022/theseam-ui-common-confirm-dialog.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-core.mjs +31 -11
- package/fesm2022/theseam-ui-common-core.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-data-exporter.mjs +18 -19
- package/fesm2022/theseam-ui-common-data-exporter.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-data-filters.mjs +80 -64
- package/fesm2022/theseam-ui-common-data-filters.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-datatable-alterations-display.mjs +51 -49
- package/fesm2022/theseam-ui-common-datatable-alterations-display.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-datatable-dynamic.mjs +145 -112
- package/fesm2022/theseam-ui-common-datatable-dynamic.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-datatable.mjs +592 -388
- package/fesm2022/theseam-ui-common-datatable.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-dynamic-component-loader.mjs +12 -14
- package/fesm2022/theseam-ui-common-dynamic-component-loader.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-dynamic.mjs +60 -48
- package/fesm2022/theseam-ui-common-dynamic.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-footer-bar.mjs +9 -15
- package/fesm2022/theseam-ui-common-footer-bar.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-form-field-error.mjs +60 -43
- package/fesm2022/theseam-ui-common-form-field-error.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-form-field.mjs +120 -74
- package/fesm2022/theseam-ui-common-form-field.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-framework.mjs +669 -543
- package/fesm2022/theseam-ui-common-framework.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-google-maps.mjs +206 -149
- package/fesm2022/theseam-ui-common-google-maps.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-graphql.mjs +252 -195
- package/fesm2022/theseam-ui-common-graphql.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-icon.mjs +125 -89
- package/fesm2022/theseam-ui-common-icon.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-layout.mjs +18 -26
- package/fesm2022/theseam-ui-common-layout.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-loading.mjs +19 -28
- package/fesm2022/theseam-ui-common-loading.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-menu.mjs +124 -95
- package/fesm2022/theseam-ui-common-menu.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-modal.mjs +177 -129
- package/fesm2022/theseam-ui-common-modal.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-models.mjs +3 -3
- package/fesm2022/theseam-ui-common-models.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-navigation-reload.mjs +13 -11
- package/fesm2022/theseam-ui-common-navigation-reload.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-popover.mjs +81 -88
- package/fesm2022/theseam-ui-common-popover.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-progress.mjs +15 -19
- package/fesm2022/theseam-ui-common-progress.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-rich-text.mjs +65 -52
- package/fesm2022/theseam-ui-common-rich-text.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-scrollbar.mjs +12 -9
- package/fesm2022/theseam-ui-common-scrollbar.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-services.mjs +41 -26
- package/fesm2022/theseam-ui-common-services.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-shared.mjs +123 -67
- package/fesm2022/theseam-ui-common-shared.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-storage.mjs +9 -6
- package/fesm2022/theseam-ui-common-storage.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-story-helpers.mjs +148 -86
- package/fesm2022/theseam-ui-common-story-helpers.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-tabbed.mjs +43 -39
- package/fesm2022/theseam-ui-common-tabbed.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-table-cell-type.mjs +34 -38
- package/fesm2022/theseam-ui-common-table-cell-type.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-table-cell-types.mjs +182 -144
- package/fesm2022/theseam-ui-common-table-cell-types.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-table.mjs +50 -39
- package/fesm2022/theseam-ui-common-table.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-tel-input.mjs +98 -63
- package/fesm2022/theseam-ui-common-tel-input.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-testing.mjs +13 -10
- package/fesm2022/theseam-ui-common-testing.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-tiled-select.mjs +54 -50
- package/fesm2022/theseam-ui-common-tiled-select.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-toggle-edit.mjs +41 -37
- package/fesm2022/theseam-ui-common-toggle-edit.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-toggle-group.mjs +30 -31
- package/fesm2022/theseam-ui-common-toggle-group.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-tooltip.mjs +225 -66
- package/fesm2022/theseam-ui-common-tooltip.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-unsaved-changes-dialog.mjs +14 -12
- package/fesm2022/theseam-ui-common-unsaved-changes-dialog.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-utils.mjs +113 -77
- package/fesm2022/theseam-ui-common-utils.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-validators.mjs +10 -9
- package/fesm2022/theseam-ui-common-validators.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-vertical-list-filter.mjs +39 -17
- package/fesm2022/theseam-ui-common-vertical-list-filter.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-viewers.mjs +79 -56
- package/fesm2022/theseam-ui-common-viewers.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-widget.mjs +288 -314
- package/fesm2022/theseam-ui-common-widget.mjs.map +1 -1
- package/framework/base-layout/base-layout.component.scss +9 -4
- package/framework/base-layout/styles/_variables.scss +4 -9
- package/framework/dashboard/dashboard-widgets/dashboard-widgets.component.scss +6 -4
- package/framework/index.d.ts +6 -6
- package/framework/nav/nav-item/nav-item.component.scss +7 -6
- package/framework/nav/styles/_themes/light/_variables.scss +21 -5
- package/framework/nav/styles/_themes/primary/_variables.scss +21 -5
- package/framework/side-nav/side-nav-item/side-nav-item.component.scss +5 -2
- package/framework/side-nav/styles/_themes/light/_variables.scss +5 -1
- package/framework/side-nav/styles/_themes/primary/_variables.scss +25 -5
- package/graphql/index.d.ts +5 -5
- package/modal/README.md +5 -5
- package/modal/index.d.ts +1 -1
- package/models/index.d.ts +1 -1
- package/package.json +41 -41
- package/popover/index.d.ts +0 -2
- package/progress/progress-circle/styles/_variables.scss +15 -3
- package/story-helpers/index.d.ts +11 -1
- package/styles/bootstrap/_bootstrap.scss +34 -34
- package/styles/bootstrap/_bs-styles.scss +4 -8
- package/styles/bootstrap/_bs-utilities.scss +4 -4
- package/styles/bootstrap/_bs-variables.scss +65 -70
- package/styles/common/_forms.scss +9 -10
- package/styles/common/_global.scss +0 -1
- package/styles/common/_hacks.scss +1 -1
- package/styles/common/_table.scss +0 -1
- package/styles/common/_text.scss +3 -1
- package/styles/theme.scss +1 -1
- package/styles/vendor/ng-select/_ng-select-bs4.scss +292 -294
- package/styles/vendor/ngx-datatable/_ngx-datatable.scss +63 -32
- package/styles/vendor/ngx-datatable/_themes/bootstrap/_variables.scss +37 -10
- package/styles/vendor/ngx-datatable/_themes/material/_variables.scss +3 -1
- package/styles/vendor/quill/_quill.scss +15 -9
- package/tel-input/README.md +27 -27
- package/utils/index.d.ts +3 -3
- package/viewers/index.d.ts +9 -2
- package/widget/_widget-theme.scss +1 -1
- package/widget/styles/_variables.scss +2 -2
- package/widget/widget/widget.component.scss +0 -2
- package/widget/widget-content-components/widget-tile/widget-tile.component.scss +1 -3
- package/widget/widget-footer/widget-footer.component.scss +0 -1
|
@@ -46,12 +46,11 @@ class TableCellTypeCurrencyComponent {
|
|
|
46
46
|
this.row = tableData && tableData.row;
|
|
47
47
|
this.rowIndex = tableData && tableData.rowIndex;
|
|
48
48
|
this.colData = tableData && tableData.colData;
|
|
49
|
-
this.textAlign =
|
|
49
|
+
this.textAlign =
|
|
50
|
+
this._parseConfigValue(tableData?.colData?.cellTypeConfig?.textAlign, tableData) || 'right';
|
|
50
51
|
// this.titleAttr = this._parseConfigValue(tableData?.colData?.cellTypeConfig?.titleAttr, tableData) || this.value
|
|
51
52
|
if (tableData) {
|
|
52
|
-
tableData.changed
|
|
53
|
-
.pipe(takeUntil(this._ngUnsubscribe))
|
|
54
|
-
.subscribe(v => {
|
|
53
|
+
tableData.changed.pipe(takeUntil(this._ngUnsubscribe)).subscribe((v) => {
|
|
55
54
|
if (Object.prototype.hasOwnProperty.call(v.changes, 'value')) {
|
|
56
55
|
this.value = this._formatCurrency(v.changes.value.currentValue, tableData);
|
|
57
56
|
this._cdf.markForCheck();
|
|
@@ -70,7 +69,8 @@ class TableCellTypeCurrencyComponent {
|
|
|
70
69
|
_formatCurrency(currentValue, tableData) {
|
|
71
70
|
const config = tableData?.colData?.cellTypeConfig;
|
|
72
71
|
const defaultToEmpty = notNullOrUndefined(config?.defaultToEmpty)
|
|
73
|
-
? this._parseConfigValue(coerceBooleanProperty(config?.defaultToEmpty), tableData)
|
|
72
|
+
? this._parseConfigValue(coerceBooleanProperty(config?.defaultToEmpty), tableData)
|
|
73
|
+
: true;
|
|
74
74
|
let _currentValue = currentValue;
|
|
75
75
|
const valueIsNumeric = isNumeric(_currentValue);
|
|
76
76
|
if (!valueIsNumeric) {
|
|
@@ -96,12 +96,12 @@ class TableCellTypeCurrencyComponent {
|
|
|
96
96
|
const contextFn = () => this._tableCellTypeHelpers.getValueContext(val, tableData);
|
|
97
97
|
return this._tableCellTypeHelpers.parseValueProp(val, contextFn);
|
|
98
98
|
}
|
|
99
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
100
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
99
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: TableCellTypeCurrencyComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.TableCellTypesHelpersService }, { token: TABLE_CELL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
100
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: TableCellTypeCurrencyComponent, isStandalone: false, selector: "seam-table-cell-type-currency", inputs: { value: "value" }, ngImport: i0, template: "<div [class]=\"'text-' + textAlign\">\n <seam-table-cell-type-selector\n type=\"string\"\n [value]=\"value\"\n [rowIndex]=\"rowIndex\"\n [row]=\"row\"\n [colData]=\"colData\"\n ></seam-table-cell-type-selector>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: i1.TableCellTypeSelectorComponent, selector: "seam-table-cell-type-selector", inputs: ["type", "value", "rowIndex", "row", "colData"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
101
101
|
}
|
|
102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: TableCellTypeCurrencyComponent, decorators: [{
|
|
103
103
|
type: Component,
|
|
104
|
-
args: [{ selector: 'seam-table-cell-type-currency', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div [class]=\"'text-' + textAlign\">\n <seam-table-cell-type-selector\n type=\"string\"\n [value]=\"value\"\n [rowIndex]=\"rowIndex\"\n [row]=\"row\"\n [colData]=\"colData\"></seam-table-cell-type-selector>\n</div>\n" }]
|
|
104
|
+
args: [{ selector: 'seam-table-cell-type-currency', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div [class]=\"'text-' + textAlign\">\n <seam-table-cell-type-selector\n type=\"string\"\n [value]=\"value\"\n [rowIndex]=\"rowIndex\"\n [row]=\"row\"\n [colData]=\"colData\"\n ></seam-table-cell-type-selector>\n</div>\n" }]
|
|
105
105
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1.TableCellTypesHelpersService }, { type: undefined, decorators: [{
|
|
106
106
|
type: Optional
|
|
107
107
|
}, {
|
|
@@ -120,18 +120,22 @@ class TableCellTypeDateComponent {
|
|
|
120
120
|
this._cdf = _cdf;
|
|
121
121
|
const _data = _tableData;
|
|
122
122
|
this.value = _data && _data.value;
|
|
123
|
-
this.format =
|
|
123
|
+
this.format =
|
|
124
|
+
_data &&
|
|
125
|
+
_data.colData &&
|
|
126
|
+
_data.colData.cellTypeConfig &&
|
|
127
|
+
_data.colData.cellTypeConfig.format;
|
|
124
128
|
if (_data) {
|
|
125
|
-
_data.changed
|
|
126
|
-
.pipe(takeUntil(this._ngUnsubscribe))
|
|
127
|
-
.subscribe(v => {
|
|
129
|
+
_data.changed.pipe(takeUntil(this._ngUnsubscribe)).subscribe((v) => {
|
|
128
130
|
if (Object.prototype.hasOwnProperty.call(v.changes, 'value')) {
|
|
129
131
|
this.value = v.changes.value.currentValue;
|
|
130
132
|
this._cdf.markForCheck();
|
|
131
133
|
}
|
|
132
134
|
if (Object.prototype.hasOwnProperty.call(v.changes, 'colData')) {
|
|
133
135
|
const colData = v.changes.colData.currentValue;
|
|
134
|
-
if (colData &&
|
|
136
|
+
if (colData &&
|
|
137
|
+
colData.cellTypeConfig &&
|
|
138
|
+
colData.cellTypeConfig.format !== this.format) {
|
|
135
139
|
this.format = colData.cellTypeConfig.format;
|
|
136
140
|
}
|
|
137
141
|
this._cdf.markForCheck();
|
|
@@ -143,12 +147,12 @@ class TableCellTypeDateComponent {
|
|
|
143
147
|
this._ngUnsubscribe.next(undefined);
|
|
144
148
|
this._ngUnsubscribe.complete();
|
|
145
149
|
}
|
|
146
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
147
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
150
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: TableCellTypeDateComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: TABLE_CELL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
151
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: TableCellTypeDateComponent, isStandalone: false, selector: "seam-table-cell-type-date", inputs: { value: "value", format: "format" }, ngImport: i0, template: "<div\n class=\"td-text-truncate\"\n [title]=\"value | date: format || 'yyyy-MM-dd h:mm aaa'\"\n>\n {{ value | date: format || 'yyyy-MM-dd h:mm aaa' }}\n</div>\n", styles: [""], dependencies: [{ kind: "pipe", type: i4.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
148
152
|
}
|
|
149
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: TableCellTypeDateComponent, decorators: [{
|
|
150
154
|
type: Component,
|
|
151
|
-
args: [{ selector: 'seam-table-cell-type-date', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div
|
|
155
|
+
args: [{ selector: 'seam-table-cell-type-date', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div\n class=\"td-text-truncate\"\n [title]=\"value | date: format || 'yyyy-MM-dd h:mm aaa'\"\n>\n {{ value | date: format || 'yyyy-MM-dd h:mm aaa' }}\n</div>\n" }]
|
|
152
156
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
153
157
|
type: Optional
|
|
154
158
|
}, {
|
|
@@ -177,11 +181,10 @@ class TableCellTypeDecimalComponent {
|
|
|
177
181
|
this.row = tableData && tableData.row;
|
|
178
182
|
this.rowIndex = tableData && tableData.rowIndex;
|
|
179
183
|
this.colData = tableData && tableData.colData;
|
|
180
|
-
this.textAlign =
|
|
184
|
+
this.textAlign =
|
|
185
|
+
this._parseConfigValue(tableData?.colData?.cellTypeConfig?.textAlign, tableData) || 'right';
|
|
181
186
|
if (tableData) {
|
|
182
|
-
tableData.changed
|
|
183
|
-
.pipe(takeUntil(this._ngUnsubscribe))
|
|
184
|
-
.subscribe(v => {
|
|
187
|
+
tableData.changed.pipe(takeUntil(this._ngUnsubscribe)).subscribe((v) => {
|
|
185
188
|
if (Object.prototype.hasOwnProperty.call(v.changes, 'value')) {
|
|
186
189
|
this.value = this._formatDecimal(v.changes.value.currentValue, tableData);
|
|
187
190
|
this._cdf.markForCheck();
|
|
@@ -200,9 +203,11 @@ class TableCellTypeDecimalComponent {
|
|
|
200
203
|
_formatDecimal(currentValue, tableData) {
|
|
201
204
|
const config = tableData?.colData?.cellTypeConfig;
|
|
202
205
|
const defaultToEmpty = notNullOrUndefined(config?.defaultToEmpty)
|
|
203
|
-
? this._parseConfigValue(coerceBooleanProperty(config?.defaultToEmpty), tableData)
|
|
206
|
+
? this._parseConfigValue(coerceBooleanProperty(config?.defaultToEmpty), tableData)
|
|
207
|
+
: true;
|
|
204
208
|
const formatDecimal = notNullOrUndefined(config?.formatNumber)
|
|
205
|
-
? this._parseConfigValue(coerceBooleanProperty(config?.formatNumber), tableData)
|
|
209
|
+
? this._parseConfigValue(coerceBooleanProperty(config?.formatNumber), tableData)
|
|
210
|
+
: true;
|
|
206
211
|
let _currentValue = currentValue;
|
|
207
212
|
const valueIsNumeric = isNumeric(_currentValue);
|
|
208
213
|
// unparseable values are OK to return as long as we're not trying to format them
|
|
@@ -221,18 +226,20 @@ class TableCellTypeDecimalComponent {
|
|
|
221
226
|
const minFractionDigits = this._parseConfigValue(config?.minFractionDigits, tableData) || 0;
|
|
222
227
|
const maxFractionDigits = this._parseConfigValue(config?.maxFractionDigits, tableData) || 3;
|
|
223
228
|
const format = `${minIntegerDigits}.${minFractionDigits}-${maxFractionDigits}`;
|
|
224
|
-
return formatDecimal
|
|
229
|
+
return formatDecimal
|
|
230
|
+
? formatNumber(_currentValue, locale, format)
|
|
231
|
+
: _currentValue;
|
|
225
232
|
}
|
|
226
233
|
_parseConfigValue(val, tableData) {
|
|
227
234
|
const contextFn = () => this._tableCellTypeHelpers.getValueContext(val, tableData);
|
|
228
235
|
return this._tableCellTypeHelpers.parseValueProp(val, contextFn);
|
|
229
236
|
}
|
|
230
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
231
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
237
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: TableCellTypeDecimalComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.TableCellTypesHelpersService }, { token: TABLE_CELL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
238
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: TableCellTypeDecimalComponent, isStandalone: false, selector: "seam-table-cell-type-decimal", inputs: { value: "value" }, ngImport: i0, template: "<div [class]=\"'text-' + textAlign\">\n <seam-table-cell-type-selector\n type=\"string\"\n [value]=\"value\"\n [rowIndex]=\"rowIndex\"\n [row]=\"row\"\n [colData]=\"colData\"\n ></seam-table-cell-type-selector>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: i1.TableCellTypeSelectorComponent, selector: "seam-table-cell-type-selector", inputs: ["type", "value", "rowIndex", "row", "colData"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
232
239
|
}
|
|
233
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: TableCellTypeDecimalComponent, decorators: [{
|
|
234
241
|
type: Component,
|
|
235
|
-
args: [{ selector: 'seam-table-cell-type-decimal', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div [class]=\"'text-' + textAlign\">\n <seam-table-cell-type-selector\n type=\"string\"\n [value]=\"value\"\n [rowIndex]=\"rowIndex\"\n [row]=\"row\"\n [colData]=\"colData\"></seam-table-cell-type-selector>\n</div>\n" }]
|
|
242
|
+
args: [{ selector: 'seam-table-cell-type-decimal', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div [class]=\"'text-' + textAlign\">\n <seam-table-cell-type-selector\n type=\"string\"\n [value]=\"value\"\n [rowIndex]=\"rowIndex\"\n [row]=\"row\"\n [colData]=\"colData\"\n ></seam-table-cell-type-selector>\n</div>\n" }]
|
|
236
243
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1.TableCellTypesHelpersService }, { type: undefined, decorators: [{
|
|
237
244
|
type: Optional
|
|
238
245
|
}, {
|
|
@@ -248,13 +255,17 @@ class TableCellTypeIconComponent {
|
|
|
248
255
|
_datatable;
|
|
249
256
|
_table;
|
|
250
257
|
_ngUnsubscribe = new Subject();
|
|
251
|
-
get value() {
|
|
258
|
+
get value() {
|
|
259
|
+
return this._value;
|
|
260
|
+
}
|
|
252
261
|
set value(value) {
|
|
253
262
|
this._value = value;
|
|
254
263
|
this._icon = value ? getKnownIcon(value) || value : value;
|
|
255
264
|
}
|
|
256
265
|
_value;
|
|
257
|
-
get config() {
|
|
266
|
+
get config() {
|
|
267
|
+
return this._config;
|
|
268
|
+
}
|
|
258
269
|
set config(value) {
|
|
259
270
|
this._config = value;
|
|
260
271
|
if (value) {
|
|
@@ -267,7 +278,8 @@ class TableCellTypeIconComponent {
|
|
|
267
278
|
this._tooltip = this._parseConfigValue(value.tooltip);
|
|
268
279
|
if (this._tooltip) {
|
|
269
280
|
this._tooltipClass = this._parseConfigValue(value.tooltipClass);
|
|
270
|
-
this._tooltipPlacement =
|
|
281
|
+
this._tooltipPlacement =
|
|
282
|
+
this._parseConfigValue(value.tooltipPlacement) || 'auto';
|
|
271
283
|
this._tooltipContainer = this._parseConfigValue(value.tooltipContainer);
|
|
272
284
|
this._tooltipDisabled = false;
|
|
273
285
|
}
|
|
@@ -322,9 +334,7 @@ class TableCellTypeIconComponent {
|
|
|
322
334
|
this.config = _data.colData.cellTypeConfig;
|
|
323
335
|
}
|
|
324
336
|
if (_data) {
|
|
325
|
-
_data.changed
|
|
326
|
-
.pipe(takeUntil(this._ngUnsubscribe))
|
|
327
|
-
.subscribe(v => {
|
|
337
|
+
_data.changed.pipe(takeUntil(this._ngUnsubscribe)).subscribe((v) => {
|
|
328
338
|
if (Object.prototype.hasOwnProperty.call(v.changes, 'value')) {
|
|
329
339
|
this.value = v.changes.value.currentValue;
|
|
330
340
|
this.config = this._config;
|
|
@@ -365,7 +375,9 @@ class TableCellTypeIconComponent {
|
|
|
365
375
|
if (link !== undefined && link !== null) {
|
|
366
376
|
newTplType = this._parseConfigValue(configAction.asset)
|
|
367
377
|
? 'link-encrypted'
|
|
368
|
-
: this._parseConfigValue(configAction.external)
|
|
378
|
+
: this._parseConfigValue(configAction.external)
|
|
379
|
+
? 'link-external'
|
|
380
|
+
: 'link';
|
|
369
381
|
download = !!this._parseConfigValue(configAction.download);
|
|
370
382
|
detectMimeContent = !!this._parseConfigValue(configAction.detectMimeContent);
|
|
371
383
|
target = this._parseConfigValue(configAction.target);
|
|
@@ -391,10 +403,11 @@ class TableCellTypeIconComponent {
|
|
|
391
403
|
_doButtonAction() {
|
|
392
404
|
if (this._buttonAction && this._buttonAction.type === 'modal') {
|
|
393
405
|
const contextFn = () => this._tableCellTypeHelpers.getValueContext(this.value, this._tableCellData);
|
|
394
|
-
this._tableCellTypeHelpers
|
|
395
|
-
.
|
|
406
|
+
this._tableCellTypeHelpers
|
|
407
|
+
.handleModalAction(this._buttonAction, contextFn)
|
|
408
|
+
.subscribe((r) => { },
|
|
396
409
|
// eslint-disable-next-line no-console
|
|
397
|
-
err => console.error(err), () => this._actionRefreshRequest());
|
|
410
|
+
(err) => console.error(err), () => this._actionRefreshRequest());
|
|
398
411
|
}
|
|
399
412
|
}
|
|
400
413
|
_actionRefreshRequest() {
|
|
@@ -405,12 +418,12 @@ class TableCellTypeIconComponent {
|
|
|
405
418
|
this._table.triggerActionRefreshRequest();
|
|
406
419
|
}
|
|
407
420
|
}
|
|
408
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
409
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
421
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: TableCellTypeIconComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.TableCellTypesHelpersService }, { token: i2.DatatableComponent, optional: true }, { token: i3.TableComponent, optional: true }, { token: TABLE_CELL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
422
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: TableCellTypeIconComponent, isStandalone: false, selector: "seam-table-cell-type-icon", inputs: { value: "value", config: "config" }, host: { properties: { "class.datatable-cell-type": "this._isDatatable" } }, ngImport: i0, template: "<ng-container *ngIf=\"_icon\">\n <div\n *ngIf=\"!_tplType || _tplType === 'default'\"\n class=\"d-flex align-items-center justify-center\"\n [class.datatable-icon-fix]=\"_isDatatable\"\n >\n <a\n class=\"d-block m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\"\n [attr.target]=\"_target\"\n [seamTooltip]=\"_tooltip ?? null\"\n [tooltipClass]=\"_tooltipClass\"\n [placement]=\"_tooltipPlacement\"\n [container]=\"_tooltipContainer\"\n [disableTooltip]=\"_tooltipDisabled\"\n >\n <seam-icon\n [icon]=\"_icon\"\n size=\"lg\"\n [iconType]=\"_iconType\"\n [iconClass]=\"_iconClass || ''\"\n ></seam-icon>\n <span *ngIf=\"_srOnly\" class=\"sr-only\">{{ _srOnly }}</span>\n </a>\n </div>\n\n <div\n *ngIf=\"_tplType === 'link'\"\n class=\"d-flex align-items-center justify-center\"\n [class.datatable-icon-fix]=\"_isDatatable\"\n >\n <a\n class=\"d-block m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n [routerLink]=\"_link\"\n [queryParams]=\"_queryParams\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\"\n [attr.target]=\"_target\"\n [seamTooltip]=\"_tooltip ?? null\"\n [tooltipClass]=\"_tooltipClass\"\n [placement]=\"_tooltipPlacement\"\n [container]=\"_tooltipContainer\"\n [disableTooltip]=\"_tooltipDisabled\"\n >\n <seam-icon\n *ngIf=\"_icon\"\n [icon]=\"_icon\"\n size=\"lg\"\n [iconType]=\"_iconType\"\n [iconClass]=\"_iconClass\"\n ></seam-icon>\n <span *ngIf=\"_srOnly\" class=\"sr-only\">{{ _srOnly }}</span>\n </a>\n </div>\n\n <div\n *ngIf=\"_tplType === 'link-external'\"\n class=\"d-flex align-items-center justify-center\"\n [class.datatable-icon-fix]=\"_isDatatable\"\n >\n <a\n class=\"d-block m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n [attr.href]=\"_link\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\"\n [attr.target]=\"_target\"\n [seamTooltip]=\"_tooltip ?? null\"\n [tooltipClass]=\"_tooltipClass\"\n [placement]=\"_tooltipPlacement\"\n [container]=\"_tooltipContainer\"\n [disableTooltip]=\"_tooltipDisabled\"\n >\n <seam-icon\n *ngIf=\"_icon\"\n [icon]=\"_icon\"\n size=\"lg\"\n [iconType]=\"_iconType\"\n [iconClass]=\"_iconClass\"\n ></seam-icon>\n <span *ngIf=\"_srOnly\" class=\"sr-only\">{{ _srOnly }}</span>\n </a>\n </div>\n\n <div\n *ngIf=\"_tplType === 'link-encrypted'\"\n class=\"d-flex align-items-center justify-center\"\n [class.datatable-icon-fix]=\"_isDatatable\"\n >\n <button\n class=\"btn btn-link p-0 m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n type=\"button\"\n [seamEncryptedAssetLink]=\"_link\"\n [seamDetectMimeFromContent]=\"_detectMimeContent\"\n [seamDownloadAsset]=\"_download\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\"\n [seamTooltip]=\"_tooltip ?? null\"\n [tooltipClass]=\"_tooltipClass\"\n [placement]=\"_tooltipPlacement\"\n [container]=\"_tooltipContainer\"\n [disableTooltip]=\"_tooltipDisabled\"\n >\n <seam-icon\n *ngIf=\"_icon\"\n iconType=\"styled-square\"\n [icon]=\"_icon\"\n size=\"lg\"\n [iconType]=\"_iconType\"\n [iconClass]=\"_iconClass\"\n ></seam-icon>\n <span *ngIf=\"_srOnly\" class=\"sr-only\">{{ _srOnly }}</span>\n </button>\n </div>\n\n <div\n *ngIf=\"_tplType === 'button'\"\n class=\"d-flex align-items-center justify-center\"\n [class.datatable-icon-fix]=\"_isDatatable\"\n (click)=\"_doButtonAction()\"\n >\n <button\n class=\"btn btn-link p-0 m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n type=\"button\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\"\n [seamTooltip]=\"_tooltip ?? null\"\n [tooltipClass]=\"_tooltipClass\"\n [placement]=\"_tooltipPlacement\"\n [container]=\"_tooltipContainer\"\n [disableTooltip]=\"_tooltipDisabled\"\n >\n <seam-icon\n *ngIf=\"_icon\"\n iconType=\"styled-square\"\n [icon]=\"_icon\"\n size=\"lg\"\n [iconType]=\"_iconType\"\n [iconClass]=\"_iconClass\"\n ></seam-icon>\n <span *ngIf=\"_srOnly\" class=\"sr-only\">{{ _srOnly }}</span>\n </button>\n </div>\n</ng-container>\n", styles: [":host.datatable-cell-type ::ng-deep .seam-icon--img{max-height:40px}:host.datatable-cell-type a{max-height:40px}:host.datatable-cell-type button{max-height:40px}:host:not(.datatable-cell-type) ::ng-deep .seam-icon--img{max-height:20px}:host:not(.datatable-cell-type) a{max-height:20px}:host:not(.datatable-cell-type) button{max-height:20px}.datatable-icon-fix{margin-top:calc(-1px - .75rem);height:50px}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i6.IconComponent, selector: "seam-icon", inputs: ["grayscaleOnDisable", "disabled", "iconClass", "icon", "size", "showDefaultOnError", "defaultIcon", "iconType"] }, { kind: "directive", type: i7.EncryptedAssetLinkDirective, selector: "[seamEncryptedAssetLink]", inputs: ["seamEncryptedAssetLink", "seamShowLoadingOverlay", "seamDetectMimeFromContent", "seamDownloadAsset"] }, { kind: "directive", type: i8.TheSeamTooltipDirective, selector: "[seamTooltip]", inputs: ["seamTooltip", "tooltipClass", "placement", "container", "disableTooltip", "showDelay", "hideDelay", "trigger"], exportAs: ["seamTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
410
423
|
}
|
|
411
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
424
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: TableCellTypeIconComponent, decorators: [{
|
|
412
425
|
type: Component,
|
|
413
|
-
args: [{ selector: 'seam-table-cell-type-icon', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<ng-container *ngIf=\"_icon\">\n <div
|
|
426
|
+
args: [{ selector: 'seam-table-cell-type-icon', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<ng-container *ngIf=\"_icon\">\n <div\n *ngIf=\"!_tplType || _tplType === 'default'\"\n class=\"d-flex align-items-center justify-center\"\n [class.datatable-icon-fix]=\"_isDatatable\"\n >\n <a\n class=\"d-block m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\"\n [attr.target]=\"_target\"\n [seamTooltip]=\"_tooltip ?? null\"\n [tooltipClass]=\"_tooltipClass\"\n [placement]=\"_tooltipPlacement\"\n [container]=\"_tooltipContainer\"\n [disableTooltip]=\"_tooltipDisabled\"\n >\n <seam-icon\n [icon]=\"_icon\"\n size=\"lg\"\n [iconType]=\"_iconType\"\n [iconClass]=\"_iconClass || ''\"\n ></seam-icon>\n <span *ngIf=\"_srOnly\" class=\"sr-only\">{{ _srOnly }}</span>\n </a>\n </div>\n\n <div\n *ngIf=\"_tplType === 'link'\"\n class=\"d-flex align-items-center justify-center\"\n [class.datatable-icon-fix]=\"_isDatatable\"\n >\n <a\n class=\"d-block m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n [routerLink]=\"_link\"\n [queryParams]=\"_queryParams\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\"\n [attr.target]=\"_target\"\n [seamTooltip]=\"_tooltip ?? null\"\n [tooltipClass]=\"_tooltipClass\"\n [placement]=\"_tooltipPlacement\"\n [container]=\"_tooltipContainer\"\n [disableTooltip]=\"_tooltipDisabled\"\n >\n <seam-icon\n *ngIf=\"_icon\"\n [icon]=\"_icon\"\n size=\"lg\"\n [iconType]=\"_iconType\"\n [iconClass]=\"_iconClass\"\n ></seam-icon>\n <span *ngIf=\"_srOnly\" class=\"sr-only\">{{ _srOnly }}</span>\n </a>\n </div>\n\n <div\n *ngIf=\"_tplType === 'link-external'\"\n class=\"d-flex align-items-center justify-center\"\n [class.datatable-icon-fix]=\"_isDatatable\"\n >\n <a\n class=\"d-block m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n [attr.href]=\"_link\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\"\n [attr.target]=\"_target\"\n [seamTooltip]=\"_tooltip ?? null\"\n [tooltipClass]=\"_tooltipClass\"\n [placement]=\"_tooltipPlacement\"\n [container]=\"_tooltipContainer\"\n [disableTooltip]=\"_tooltipDisabled\"\n >\n <seam-icon\n *ngIf=\"_icon\"\n [icon]=\"_icon\"\n size=\"lg\"\n [iconType]=\"_iconType\"\n [iconClass]=\"_iconClass\"\n ></seam-icon>\n <span *ngIf=\"_srOnly\" class=\"sr-only\">{{ _srOnly }}</span>\n </a>\n </div>\n\n <div\n *ngIf=\"_tplType === 'link-encrypted'\"\n class=\"d-flex align-items-center justify-center\"\n [class.datatable-icon-fix]=\"_isDatatable\"\n >\n <button\n class=\"btn btn-link p-0 m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n type=\"button\"\n [seamEncryptedAssetLink]=\"_link\"\n [seamDetectMimeFromContent]=\"_detectMimeContent\"\n [seamDownloadAsset]=\"_download\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\"\n [seamTooltip]=\"_tooltip ?? null\"\n [tooltipClass]=\"_tooltipClass\"\n [placement]=\"_tooltipPlacement\"\n [container]=\"_tooltipContainer\"\n [disableTooltip]=\"_tooltipDisabled\"\n >\n <seam-icon\n *ngIf=\"_icon\"\n iconType=\"styled-square\"\n [icon]=\"_icon\"\n size=\"lg\"\n [iconType]=\"_iconType\"\n [iconClass]=\"_iconClass\"\n ></seam-icon>\n <span *ngIf=\"_srOnly\" class=\"sr-only\">{{ _srOnly }}</span>\n </button>\n </div>\n\n <div\n *ngIf=\"_tplType === 'button'\"\n class=\"d-flex align-items-center justify-center\"\n [class.datatable-icon-fix]=\"_isDatatable\"\n (click)=\"_doButtonAction()\"\n >\n <button\n class=\"btn btn-link p-0 m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n type=\"button\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\"\n [seamTooltip]=\"_tooltip ?? null\"\n [tooltipClass]=\"_tooltipClass\"\n [placement]=\"_tooltipPlacement\"\n [container]=\"_tooltipContainer\"\n [disableTooltip]=\"_tooltipDisabled\"\n >\n <seam-icon\n *ngIf=\"_icon\"\n iconType=\"styled-square\"\n [icon]=\"_icon\"\n size=\"lg\"\n [iconType]=\"_iconType\"\n [iconClass]=\"_iconClass\"\n ></seam-icon>\n <span *ngIf=\"_srOnly\" class=\"sr-only\">{{ _srOnly }}</span>\n </button>\n </div>\n</ng-container>\n", styles: [":host.datatable-cell-type ::ng-deep .seam-icon--img{max-height:40px}:host.datatable-cell-type a{max-height:40px}:host.datatable-cell-type button{max-height:40px}:host:not(.datatable-cell-type) ::ng-deep .seam-icon--img{max-height:20px}:host:not(.datatable-cell-type) a{max-height:20px}:host:not(.datatable-cell-type) button{max-height:20px}.datatable-icon-fix{margin-top:calc(-1px - .75rem);height:50px}\n"] }]
|
|
414
427
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1.TableCellTypesHelpersService }, { type: i2.DatatableComponent, decorators: [{
|
|
415
428
|
type: Optional
|
|
416
429
|
}] }, { type: i3.TableComponent, decorators: [{
|
|
@@ -446,11 +459,10 @@ class TableCellTypeIntegerComponent {
|
|
|
446
459
|
this.row = tableData && tableData.row;
|
|
447
460
|
this.rowIndex = tableData && tableData.rowIndex;
|
|
448
461
|
this.colData = tableData && tableData.colData;
|
|
449
|
-
this.textAlign =
|
|
462
|
+
this.textAlign =
|
|
463
|
+
this._parseConfigValue(tableData?.colData?.cellTypeConfig?.textAlign, tableData) || 'right';
|
|
450
464
|
if (tableData) {
|
|
451
|
-
tableData.changed
|
|
452
|
-
.pipe(takeUntil(this._ngUnsubscribe))
|
|
453
|
-
.subscribe(v => {
|
|
465
|
+
tableData.changed.pipe(takeUntil(this._ngUnsubscribe)).subscribe((v) => {
|
|
454
466
|
if (Object.prototype.hasOwnProperty.call(v.changes, 'value')) {
|
|
455
467
|
this.value = this._formatInteger(v.changes.value.currentValue, tableData);
|
|
456
468
|
this._cdf.markForCheck();
|
|
@@ -469,9 +481,11 @@ class TableCellTypeIntegerComponent {
|
|
|
469
481
|
_formatInteger(currentValue, tableData) {
|
|
470
482
|
const config = tableData?.colData?.cellTypeConfig;
|
|
471
483
|
const defaultToEmpty = notNullOrUndefined(config?.defaultToEmpty)
|
|
472
|
-
? this._parseConfigValue(coerceBooleanProperty(config?.defaultToEmpty), tableData)
|
|
484
|
+
? this._parseConfigValue(coerceBooleanProperty(config?.defaultToEmpty), tableData)
|
|
485
|
+
: true;
|
|
473
486
|
const formatInteger = notNullOrUndefined(config?.formatNumber)
|
|
474
|
-
? this._parseConfigValue(coerceBooleanProperty(config?.formatNumber), tableData)
|
|
487
|
+
? this._parseConfigValue(coerceBooleanProperty(config?.formatNumber), tableData)
|
|
488
|
+
: true;
|
|
475
489
|
let _currentValue = currentValue;
|
|
476
490
|
const valueIsNumeric = isNumeric(_currentValue);
|
|
477
491
|
// unparseable values are OK to return as long as we're not trying to format them
|
|
@@ -488,18 +502,20 @@ class TableCellTypeIntegerComponent {
|
|
|
488
502
|
const locale = this._parseConfigValue(config?.locale, tableData) || 'en-US';
|
|
489
503
|
const minIntegerDigits = this._parseConfigValue(config?.minIntegerDigits, tableData) || 1;
|
|
490
504
|
const format = `${minIntegerDigits}.0-0`;
|
|
491
|
-
return formatInteger
|
|
505
|
+
return formatInteger
|
|
506
|
+
? formatNumber(_currentValue, locale, format)
|
|
507
|
+
: _currentValue;
|
|
492
508
|
}
|
|
493
509
|
_parseConfigValue(val, tableData) {
|
|
494
510
|
const contextFn = () => this._tableCellTypeHelpers.getValueContext(val, tableData);
|
|
495
511
|
return this._tableCellTypeHelpers.parseValueProp(val, contextFn);
|
|
496
512
|
}
|
|
497
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
498
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
513
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: TableCellTypeIntegerComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.TableCellTypesHelpersService }, { token: TABLE_CELL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
514
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: TableCellTypeIntegerComponent, isStandalone: false, selector: "seam-table-cell-type-integer", inputs: { value: "value" }, ngImport: i0, template: "<div [class]=\"'text-' + textAlign\">\n <seam-table-cell-type-selector\n type=\"string\"\n [value]=\"value\"\n [rowIndex]=\"rowIndex\"\n [row]=\"row\"\n [colData]=\"colData\"\n ></seam-table-cell-type-selector>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: i1.TableCellTypeSelectorComponent, selector: "seam-table-cell-type-selector", inputs: ["type", "value", "rowIndex", "row", "colData"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
499
515
|
}
|
|
500
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
516
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: TableCellTypeIntegerComponent, decorators: [{
|
|
501
517
|
type: Component,
|
|
502
|
-
args: [{ selector: 'seam-table-cell-type-integer', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div [class]=\"'text-' + textAlign\">\n <seam-table-cell-type-selector\n type=\"string\"\n [value]=\"value\"\n [rowIndex]=\"rowIndex\"\n [row]=\"row\"\n [colData]=\"colData\"></seam-table-cell-type-selector>\n</div>\n" }]
|
|
518
|
+
args: [{ selector: 'seam-table-cell-type-integer', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div [class]=\"'text-' + textAlign\">\n <seam-table-cell-type-selector\n type=\"string\"\n [value]=\"value\"\n [rowIndex]=\"rowIndex\"\n [row]=\"row\"\n [colData]=\"colData\"\n ></seam-table-cell-type-selector>\n</div>\n" }]
|
|
503
519
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1.TableCellTypesHelpersService }, { type: undefined, decorators: [{
|
|
504
520
|
type: Optional
|
|
505
521
|
}, {
|
|
@@ -516,26 +532,33 @@ class TableCellTypePhoneComponent {
|
|
|
516
532
|
/** @ignore */
|
|
517
533
|
_format = THESEAM_DEFAULT_PHONE_NUMBER_FORMAT;
|
|
518
534
|
value;
|
|
519
|
-
set format(value) {
|
|
520
|
-
|
|
535
|
+
set format(value) {
|
|
536
|
+
this._format = coercePhoneNumberFormat(value);
|
|
537
|
+
}
|
|
538
|
+
get format() {
|
|
539
|
+
return this._format;
|
|
540
|
+
}
|
|
521
541
|
constructor(_cdf, _tableData) {
|
|
522
542
|
this._cdf = _cdf;
|
|
523
543
|
const _data = _tableData;
|
|
524
544
|
this.value = _data && _data.value;
|
|
525
|
-
if (_data &&
|
|
526
|
-
|
|
545
|
+
if (_data &&
|
|
546
|
+
_data.colData &&
|
|
547
|
+
_data.colData.cellTypeConfig &&
|
|
548
|
+
hasProperty(_data.colData.cellTypeConfig, 'format')) {
|
|
549
|
+
this.format = _data.colData.cellTypeConfig
|
|
550
|
+
.format;
|
|
527
551
|
}
|
|
528
552
|
if (_data) {
|
|
529
|
-
_data.changed
|
|
530
|
-
.pipe(takeUntil(this._ngUnsubscribe))
|
|
531
|
-
.subscribe(v => {
|
|
553
|
+
_data.changed.pipe(takeUntil(this._ngUnsubscribe)).subscribe((v) => {
|
|
532
554
|
if (Object.prototype.hasOwnProperty.call(v.changes, 'value')) {
|
|
533
555
|
this.value = v.changes.value.currentValue;
|
|
534
556
|
this._cdf.markForCheck();
|
|
535
557
|
}
|
|
536
558
|
if (Object.prototype.hasOwnProperty.call(v.changes, 'colData')) {
|
|
537
559
|
const colData = v.changes.colData.currentValue;
|
|
538
|
-
if (colData &&
|
|
560
|
+
if (colData &&
|
|
561
|
+
hasProperty(colData, 'cellTypeConfig') &&
|
|
539
562
|
hasProperty(colData.cellTypeConfig, 'format') &&
|
|
540
563
|
colData.cellTypeConfig.format !== this.format) {
|
|
541
564
|
this.format = colData.cellTypeConfig.format;
|
|
@@ -552,12 +575,12 @@ class TableCellTypePhoneComponent {
|
|
|
552
575
|
this._ngUnsubscribe.next(undefined);
|
|
553
576
|
this._ngUnsubscribe.complete();
|
|
554
577
|
}
|
|
555
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
556
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
578
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: TableCellTypePhoneComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: TABLE_CELL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
579
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: TableCellTypePhoneComponent, isStandalone: false, selector: "seam-table-cell-type-phone", inputs: { value: "value", format: "format" }, ngImport: i0, template: "<ng-container *ngIf=\"value || '' | phoneNumber: _format as num\">\n <div class=\"td-text-truncate\" [title]=\"num\">\n {{ num }}\n </div>\n</ng-container>\n<!-- <div class=\"td-text-truncate\" [title]=\"value | phoneNumber: _format\">\n {{ value | date: format || 'yyyy-MM-dd h:mm aaa' }}\n</div> -->\n", styles: [""], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2$1.TheSeamPhoneNumberPipe, name: "phoneNumber" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
557
580
|
}
|
|
558
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
581
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: TableCellTypePhoneComponent, decorators: [{
|
|
559
582
|
type: Component,
|
|
560
|
-
args: [{ selector: 'seam-table-cell-type-phone', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<ng-container *ngIf=\"
|
|
583
|
+
args: [{ selector: 'seam-table-cell-type-phone', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<ng-container *ngIf=\"value || '' | phoneNumber: _format as num\">\n <div class=\"td-text-truncate\" [title]=\"num\">\n {{ num }}\n </div>\n</ng-container>\n<!-- <div class=\"td-text-truncate\" [title]=\"value | phoneNumber: _format\">\n {{ value | date: format || 'yyyy-MM-dd h:mm aaa' }}\n</div> -->\n" }]
|
|
561
584
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
562
585
|
type: Optional
|
|
563
586
|
}, {
|
|
@@ -589,9 +612,7 @@ class TableCellTypeProgressCircleIconComponent {
|
|
|
589
612
|
this.colData = tableData && tableData.colData;
|
|
590
613
|
this._setIcon(tableData);
|
|
591
614
|
if (tableData) {
|
|
592
|
-
tableData.changed
|
|
593
|
-
.pipe(takeUntil(this._ngUnsubscribe))
|
|
594
|
-
.subscribe(v => {
|
|
615
|
+
tableData.changed.pipe(takeUntil(this._ngUnsubscribe)).subscribe((v) => {
|
|
595
616
|
if (Object.prototype.hasOwnProperty.call(v.changes, 'value')) {
|
|
596
617
|
this.value = v.changes.value.currentValue;
|
|
597
618
|
this._setIcon(tableData);
|
|
@@ -631,12 +652,12 @@ class TableCellTypeProgressCircleIconComponent {
|
|
|
631
652
|
this._ngUnsubscribe.next(undefined);
|
|
632
653
|
this._ngUnsubscribe.complete();
|
|
633
654
|
}
|
|
634
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
635
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
655
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: TableCellTypeProgressCircleIconComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.TableCellTypesHelpersService }, { token: TABLE_CELL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
656
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: TableCellTypeProgressCircleIconComponent, isStandalone: false, selector: "seam-table-cell-type-progress-circle-icon", inputs: { value: "value" }, ngImport: i0, template: "<seam-table-cell-type-selector\n *ngIf=\"displayIcon; else progressCircle\"\n type=\"icon\"\n [value]=\"icon\"\n [rowIndex]=\"rowIndex\"\n [row]=\"row\"\n [colData]=\"colData\"\n></seam-table-cell-type-selector>\n<ng-template #progressCircle>\n <seam-table-cell-type-selector\n type=\"progress-circle\"\n [value]=\"value\"\n [rowIndex]=\"rowIndex\"\n [row]=\"row\"\n [colData]=\"colData\"\n ></seam-table-cell-type-selector>\n</ng-template>\n", styles: [""], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i1.TableCellTypeSelectorComponent, selector: "seam-table-cell-type-selector", inputs: ["type", "value", "rowIndex", "row", "colData"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
636
657
|
}
|
|
637
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
658
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: TableCellTypeProgressCircleIconComponent, decorators: [{
|
|
638
659
|
type: Component,
|
|
639
|
-
args: [{ selector: 'seam-table-cell-type-progress-circle-icon', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<seam-table-cell-type-selector\n *ngIf=\"displayIcon; else progressCircle\"\n type=\"icon\"\n [value]=\"icon\"\n [rowIndex]=\"rowIndex\"\n [row]=\"row\"\n [colData]=\"colData\"></seam-table-cell-type-selector>\n<ng-template #progressCircle>\n <seam-table-cell-type-selector\n type=\"progress-circle\"\n [value]=\"value\"\n [rowIndex]=\"rowIndex\"\n [row]=\"row\"\n [colData]=\"colData\"></seam-table-cell-type-selector>\n</ng-template>\n" }]
|
|
660
|
+
args: [{ selector: 'seam-table-cell-type-progress-circle-icon', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<seam-table-cell-type-selector\n *ngIf=\"displayIcon; else progressCircle\"\n type=\"icon\"\n [value]=\"icon\"\n [rowIndex]=\"rowIndex\"\n [row]=\"row\"\n [colData]=\"colData\"\n></seam-table-cell-type-selector>\n<ng-template #progressCircle>\n <seam-table-cell-type-selector\n type=\"progress-circle\"\n [value]=\"value\"\n [rowIndex]=\"rowIndex\"\n [row]=\"row\"\n [colData]=\"colData\"\n ></seam-table-cell-type-selector>\n</ng-template>\n" }]
|
|
640
661
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1.TableCellTypesHelpersService }, { type: undefined, decorators: [{
|
|
641
662
|
type: Optional
|
|
642
663
|
}, {
|
|
@@ -692,9 +713,7 @@ class TableCellTypeProgressCircleComponent {
|
|
|
692
713
|
this._setCellTypeConfigProps(this.colData.cellTypeConfig);
|
|
693
714
|
}
|
|
694
715
|
if (tableData) {
|
|
695
|
-
tableData.changed
|
|
696
|
-
.pipe(takeUntil(this._ngUnsubscribe))
|
|
697
|
-
.subscribe(v => {
|
|
716
|
+
tableData.changed.pipe(takeUntil(this._ngUnsubscribe)).subscribe((v) => {
|
|
698
717
|
if (Object.prototype.hasOwnProperty.call(v.changes, 'value')) {
|
|
699
718
|
this.value = coerceNumberProperty(v.changes.value.currentValue);
|
|
700
719
|
if (this._config) {
|
|
@@ -741,7 +760,9 @@ class TableCellTypeProgressCircleComponent {
|
|
|
741
760
|
if (link !== undefined && link !== null) {
|
|
742
761
|
newTplType = this._parseConfigValue(configAction.asset)
|
|
743
762
|
? 'link-encrypted'
|
|
744
|
-
: this._parseConfigValue(configAction.external)
|
|
763
|
+
: this._parseConfigValue(configAction.external)
|
|
764
|
+
? 'link-external'
|
|
765
|
+
: 'link';
|
|
745
766
|
download = !!this._parseConfigValue(configAction.download);
|
|
746
767
|
detectMimeContent = !!this._parseConfigValue(configAction.detectMimeContent);
|
|
747
768
|
target = this._parseConfigValue(configAction.target);
|
|
@@ -771,7 +792,8 @@ class TableCellTypeProgressCircleComponent {
|
|
|
771
792
|
this.tooltip = this._parseConfigValue(config.tooltip);
|
|
772
793
|
if (this.tooltip) {
|
|
773
794
|
this.tooltipClass = this._parseConfigValue(config.tooltipClass);
|
|
774
|
-
this.tooltipPlacement =
|
|
795
|
+
this.tooltipPlacement =
|
|
796
|
+
this._parseConfigValue(config.tooltipPlacement) || 'auto';
|
|
775
797
|
this.tooltipContainer = this._parseConfigValue(config.tooltipContainer);
|
|
776
798
|
this._tooltipDisabled = false;
|
|
777
799
|
}
|
|
@@ -784,10 +806,11 @@ class TableCellTypeProgressCircleComponent {
|
|
|
784
806
|
_doButtonAction() {
|
|
785
807
|
if (this._buttonAction && this._buttonAction.type === 'modal') {
|
|
786
808
|
const contextFn = () => this._tableCellTypeHelpers.getValueContext(this.value, this._tableCellData);
|
|
787
|
-
this._tableCellTypeHelpers
|
|
788
|
-
.
|
|
809
|
+
this._tableCellTypeHelpers
|
|
810
|
+
.handleModalAction(this._buttonAction, contextFn)
|
|
811
|
+
.subscribe((r) => { },
|
|
789
812
|
// eslint-disable-next-line no-console
|
|
790
|
-
err => console.error(err), () => this._actionRefreshRequest());
|
|
813
|
+
(err) => console.error(err), () => this._actionRefreshRequest());
|
|
791
814
|
}
|
|
792
815
|
}
|
|
793
816
|
_actionRefreshRequest() {
|
|
@@ -798,12 +821,12 @@ class TableCellTypeProgressCircleComponent {
|
|
|
798
821
|
this._table.triggerActionRefreshRequest();
|
|
799
822
|
}
|
|
800
823
|
}
|
|
801
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
802
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
824
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: TableCellTypeProgressCircleComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.TableCellTypesHelpersService }, { token: i2.DatatableComponent, optional: true }, { token: i3.TableComponent, optional: true }, { token: TABLE_CELL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
825
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: TableCellTypeProgressCircleComponent, isStandalone: false, selector: "seam-table-cell-type-progress-circle", inputs: { value: "value" }, host: { properties: { "class.datatable-cell-type": "this._isDatatable" } }, ngImport: i0, template: "<ng-container *ngIf=\"!_tplType || _tplType === 'default'\">\n <ng-template [ngTemplateOutlet]=\"progressCircleTpl\"></ng-template>\n</ng-container>\n\n<ng-container *ngIf=\"_tplType === 'link'\">\n <a\n class=\"d-block m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n [routerLink]=\"_link\"\n [queryParams]=\"_queryParams\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\"\n [attr.target]=\"_target\"\n >\n <ng-template [ngTemplateOutlet]=\"progressCircleTpl\"></ng-template>\n </a>\n</ng-container>\n\n<ng-container\n *ngIf=\"_tplType === 'link-external'\"\n class=\"d-flex align-items-center justify-center\"\n [class.datatable-icon-fix]=\"_isDatatable\"\n>\n <a\n class=\"d-block m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n [attr.href]=\"_link\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\"\n [attr.target]=\"_target\"\n >\n <ng-template [ngTemplateOutlet]=\"progressCircleTpl\"></ng-template>\n </a>\n</ng-container>\n\n<ng-container\n *ngIf=\"_tplType === 'link-encrypted'\"\n class=\"d-flex align-items-center justify-center\"\n [class.datatable-icon-fix]=\"_isDatatable\"\n>\n <button\n class=\"btn btn-link p-0 m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n type=\"button\"\n [seamEncryptedAssetLink]=\"_link\"\n [seamDetectMimeFromContent]=\"_detectMimeContent\"\n [seamDownloadAsset]=\"_download\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\"\n >\n <ng-template [ngTemplateOutlet]=\"progressCircleTpl\"></ng-template>\n </button>\n</ng-container>\n\n<ng-container\n *ngIf=\"_tplType === 'button'\"\n class=\"d-flex align-items-center justify-center\"\n [class.datatable-icon-fix]=\"_isDatatable\"\n (click)=\"_doButtonAction()\"\n>\n <button\n class=\"btn btn-link p-0 m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n type=\"button\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\"\n >\n <ng-template [ngTemplateOutlet]=\"progressCircleTpl\"></ng-template>\n </button>\n</ng-container>\n\n<ng-template #progressCircleTpl>\n <div class=\"progress-circle-wrapper\">\n <seam-progress-circle\n class=\"progress-circle\"\n [fillBackground]=\"fillBackground\"\n [showText]=\"showText\"\n [hiddenOnEmpty]=\"hiddenOnEmpty\"\n [percentage]=\"$any(value)\"\n [pending]=\"pending\"\n [seamTooltip]=\"tooltip ?? null\"\n [tooltipClass]=\"tooltipClass\"\n [placement]=\"tooltipPlacement\"\n [container]=\"tooltipContainer\"\n >\n </seam-progress-circle>\n <span *ngIf=\"_srOnly\" class=\"sr-only\">{{ _srOnly }}</span>\n </div>\n</ng-template>\n", styles: [":host.datatable-cell-type .progress-circle-wrapper{max-height:25px}:host.datatable-cell-type .progress-circle{position:relative;width:25px;height:25px;margin:0 auto}:host.datatable-cell-type .progress-circle ::ng-deep .seam-progress-circle{padding:0}:host:not(.datatable-cell-type) .progress-circle-wrapper{height:22px;max-height:22px}:host:not(.datatable-cell-type) .progress-circle{position:relative;width:25px;height:25px;margin:0 auto;margin-top:-.03rem}:host:not(.datatable-cell-type) .progress-circle ::ng-deep .seam-progress-circle{padding:0}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i5.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i6$1.ProgressCircleComponent, selector: "seam-progress-circle", inputs: ["fillBackground", "showText", "hiddenOnEmpty", "pending", "percentage"] }, { kind: "directive", type: i7.EncryptedAssetLinkDirective, selector: "[seamEncryptedAssetLink]", inputs: ["seamEncryptedAssetLink", "seamShowLoadingOverlay", "seamDetectMimeFromContent", "seamDownloadAsset"] }, { kind: "directive", type: i8.TheSeamTooltipDirective, selector: "[seamTooltip]", inputs: ["seamTooltip", "tooltipClass", "placement", "container", "disableTooltip", "showDelay", "hideDelay", "trigger"], exportAs: ["seamTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
803
826
|
}
|
|
804
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
827
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: TableCellTypeProgressCircleComponent, decorators: [{
|
|
805
828
|
type: Component,
|
|
806
|
-
args: [{ selector: 'seam-table-cell-type-progress-circle', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<ng-container *ngIf=\"!_tplType || _tplType === 'default'\">\n <ng-template [ngTemplateOutlet]=\"progressCircleTpl\"></ng-template>\n</ng-container>\n\n<ng-container *ngIf=\"_tplType === 'link'\">\n <a
|
|
829
|
+
args: [{ selector: 'seam-table-cell-type-progress-circle', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<ng-container *ngIf=\"!_tplType || _tplType === 'default'\">\n <ng-template [ngTemplateOutlet]=\"progressCircleTpl\"></ng-template>\n</ng-container>\n\n<ng-container *ngIf=\"_tplType === 'link'\">\n <a\n class=\"d-block m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n [routerLink]=\"_link\"\n [queryParams]=\"_queryParams\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\"\n [attr.target]=\"_target\"\n >\n <ng-template [ngTemplateOutlet]=\"progressCircleTpl\"></ng-template>\n </a>\n</ng-container>\n\n<ng-container\n *ngIf=\"_tplType === 'link-external'\"\n class=\"d-flex align-items-center justify-center\"\n [class.datatable-icon-fix]=\"_isDatatable\"\n>\n <a\n class=\"d-block m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n [attr.href]=\"_link\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\"\n [attr.target]=\"_target\"\n >\n <ng-template [ngTemplateOutlet]=\"progressCircleTpl\"></ng-template>\n </a>\n</ng-container>\n\n<ng-container\n *ngIf=\"_tplType === 'link-encrypted'\"\n class=\"d-flex align-items-center justify-center\"\n [class.datatable-icon-fix]=\"_isDatatable\"\n>\n <button\n class=\"btn btn-link p-0 m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n type=\"button\"\n [seamEncryptedAssetLink]=\"_link\"\n [seamDetectMimeFromContent]=\"_detectMimeContent\"\n [seamDownloadAsset]=\"_download\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\"\n >\n <ng-template [ngTemplateOutlet]=\"progressCircleTpl\"></ng-template>\n </button>\n</ng-container>\n\n<ng-container\n *ngIf=\"_tplType === 'button'\"\n class=\"d-flex align-items-center justify-center\"\n [class.datatable-icon-fix]=\"_isDatatable\"\n (click)=\"_doButtonAction()\"\n>\n <button\n class=\"btn btn-link p-0 m-auto{{ _linkClass ? ' ' + _linkClass : '' }}\"\n type=\"button\"\n [attr.title]=\"_tooltipDisabled ? _title : undefined\"\n >\n <ng-template [ngTemplateOutlet]=\"progressCircleTpl\"></ng-template>\n </button>\n</ng-container>\n\n<ng-template #progressCircleTpl>\n <div class=\"progress-circle-wrapper\">\n <seam-progress-circle\n class=\"progress-circle\"\n [fillBackground]=\"fillBackground\"\n [showText]=\"showText\"\n [hiddenOnEmpty]=\"hiddenOnEmpty\"\n [percentage]=\"$any(value)\"\n [pending]=\"pending\"\n [seamTooltip]=\"tooltip ?? null\"\n [tooltipClass]=\"tooltipClass\"\n [placement]=\"tooltipPlacement\"\n [container]=\"tooltipContainer\"\n >\n </seam-progress-circle>\n <span *ngIf=\"_srOnly\" class=\"sr-only\">{{ _srOnly }}</span>\n </div>\n</ng-template>\n", styles: [":host.datatable-cell-type .progress-circle-wrapper{max-height:25px}:host.datatable-cell-type .progress-circle{position:relative;width:25px;height:25px;margin:0 auto}:host.datatable-cell-type .progress-circle ::ng-deep .seam-progress-circle{padding:0}:host:not(.datatable-cell-type) .progress-circle-wrapper{height:22px;max-height:22px}:host:not(.datatable-cell-type) .progress-circle{position:relative;width:25px;height:25px;margin:0 auto;margin-top:-.03rem}:host:not(.datatable-cell-type) .progress-circle ::ng-deep .seam-progress-circle{padding:0}\n"] }]
|
|
807
830
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1.TableCellTypesHelpersService }, { type: i2.DatatableComponent, decorators: [{
|
|
808
831
|
type: Optional
|
|
809
832
|
}] }, { type: i3.TableComponent, decorators: [{
|
|
@@ -827,7 +850,9 @@ class TableCellTypeStringComponent {
|
|
|
827
850
|
_table;
|
|
828
851
|
_tableData;
|
|
829
852
|
_ngUnsubscribe = new Subject();
|
|
830
|
-
get value() {
|
|
853
|
+
get value() {
|
|
854
|
+
return this._value;
|
|
855
|
+
}
|
|
831
856
|
set value(val) {
|
|
832
857
|
this._value = val;
|
|
833
858
|
// TODO: This is temporary to test the feature and will be fixed when the
|
|
@@ -839,7 +864,9 @@ class TableCellTypeStringComponent {
|
|
|
839
864
|
}
|
|
840
865
|
}
|
|
841
866
|
_value;
|
|
842
|
-
get config() {
|
|
867
|
+
get config() {
|
|
868
|
+
return this._config;
|
|
869
|
+
}
|
|
843
870
|
set config(value) {
|
|
844
871
|
this._config = value;
|
|
845
872
|
if (value) {
|
|
@@ -860,15 +887,33 @@ class TableCellTypeStringComponent {
|
|
|
860
887
|
_colData;
|
|
861
888
|
_download;
|
|
862
889
|
_detectMimeContent;
|
|
863
|
-
set title(value) {
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
890
|
+
set title(value) {
|
|
891
|
+
this._title = value;
|
|
892
|
+
}
|
|
893
|
+
get title() {
|
|
894
|
+
return this._title;
|
|
895
|
+
}
|
|
896
|
+
get _titleAttr() {
|
|
897
|
+
return this.title || this.value;
|
|
898
|
+
}
|
|
899
|
+
set style(value) {
|
|
900
|
+
this._style = value;
|
|
901
|
+
}
|
|
902
|
+
get style() {
|
|
903
|
+
return this._style;
|
|
904
|
+
}
|
|
905
|
+
get _styleAttr() {
|
|
906
|
+
return this.style;
|
|
907
|
+
}
|
|
908
|
+
set classAttr(value) {
|
|
909
|
+
this._class = value;
|
|
910
|
+
}
|
|
911
|
+
get classAttr() {
|
|
912
|
+
return this._class;
|
|
913
|
+
}
|
|
914
|
+
get _classAttr() {
|
|
915
|
+
return this.classAttr;
|
|
916
|
+
}
|
|
872
917
|
canPopover = false;
|
|
873
918
|
constructor(_cdf, _tableCellTypeHelpers, _datatable, _table, _tableData) {
|
|
874
919
|
this._cdf = _cdf;
|
|
@@ -889,9 +934,7 @@ class TableCellTypeStringComponent {
|
|
|
889
934
|
ngOnInit() {
|
|
890
935
|
const _data = this._tableData;
|
|
891
936
|
if (_data) {
|
|
892
|
-
_data.changed
|
|
893
|
-
.pipe(takeUntil(this._ngUnsubscribe))
|
|
894
|
-
.subscribe(v => {
|
|
937
|
+
_data.changed.pipe(takeUntil(this._ngUnsubscribe)).subscribe((v) => {
|
|
895
938
|
if (Object.prototype.hasOwnProperty.call(v.changes, 'value')) {
|
|
896
939
|
this.value = v.changes.value.currentValue;
|
|
897
940
|
this._cdf.markForCheck();
|
|
@@ -932,7 +975,9 @@ class TableCellTypeStringComponent {
|
|
|
932
975
|
if (link !== undefined && link !== null) {
|
|
933
976
|
newTplType = this._parseConfigValue(configAction.asset)
|
|
934
977
|
? 'link-encrypted'
|
|
935
|
-
: this._parseConfigValue(configAction.external)
|
|
978
|
+
: this._parseConfigValue(configAction.external)
|
|
979
|
+
? 'link-external'
|
|
980
|
+
: 'link';
|
|
936
981
|
download = !!this._parseConfigValue(configAction.download);
|
|
937
982
|
detectMimeContent = !!this._parseConfigValue(configAction.detectMimeContent);
|
|
938
983
|
queryParams = this._parseConfigValue(configAction.queryParams);
|
|
@@ -974,10 +1019,11 @@ class TableCellTypeStringComponent {
|
|
|
974
1019
|
_doButtonAction() {
|
|
975
1020
|
if (this._buttonAction && this._buttonAction.type === 'modal') {
|
|
976
1021
|
const contextFn = () => this._tableCellTypeHelpers.getValueContext(this.value, this._tableCellData);
|
|
977
|
-
this._tableCellTypeHelpers
|
|
978
|
-
.
|
|
1022
|
+
this._tableCellTypeHelpers
|
|
1023
|
+
.handleModalAction(this._buttonAction, contextFn)
|
|
1024
|
+
.subscribe((r) => { },
|
|
979
1025
|
// eslint-disable-next-line no-console
|
|
980
|
-
err => console.error(err), () => this._actionRefreshRequest());
|
|
1026
|
+
(err) => console.error(err), () => this._actionRefreshRequest());
|
|
981
1027
|
}
|
|
982
1028
|
}
|
|
983
1029
|
_actionRefreshRequest() {
|
|
@@ -988,12 +1034,12 @@ class TableCellTypeStringComponent {
|
|
|
988
1034
|
this._table.triggerActionRefreshRequest();
|
|
989
1035
|
}
|
|
990
1036
|
}
|
|
991
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
992
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
1037
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: TableCellTypeStringComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.TableCellTypesHelpersService }, { token: i2.DatatableComponent, optional: true }, { token: i3.TableComponent, optional: true }, { token: TABLE_CELL_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1038
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.6", type: TableCellTypeStringComponent, isStandalone: false, selector: "seam-table-cell-type-string", inputs: { value: "value", config: "config", title: "title", style: "style", classAttr: "classAttr" }, host: { properties: { "attr.title": "this._titleAttr", "attr.style": "this._styleAttr", "class": "this._classAttr" } }, ngImport: i0, template: "<ng-template #popoverTpl>\n {{ value }}\n</ng-template>\n\n<ng-template #noPopover>\n <div class=\"text-truncate\">\n {{ value }}\n </div>\n</ng-template>\n\n<ng-container *ngIf=\"!_tplType || _tplType === 'default'\">\n <div *ngIf=\"canPopover; else noPopover\" [seamPopover]=\"popoverTpl\">\n <ng-template [ngTemplateOutlet]=\"noPopover\"></ng-template>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"_tplType === 'link'\">\n <a\n class=\"d-block text-body text-decoration-none\"\n [routerLink]=\"_link\"\n [queryParams]=\"_queryParams\"\n [attr.title]=\"_title\"\n >\n <ng-template [ngTemplateOutlet]=\"noPopover\"></ng-template>\n </a>\n</ng-container>\n\n<ng-container *ngIf=\"_tplType === 'link-external'\">\n <a\n class=\"d-block text-body text-decoration-none\"\n [attr.href]=\"_link\"\n [attr.title]=\"_title\"\n >\n <ng-template [ngTemplateOutlet]=\"noPopover\"></ng-template>\n </a>\n</ng-container>\n\n<ng-container *ngIf=\"_tplType === 'link-encrypted'\">\n <button\n class=\"btn btn-link p-0 d-block text-body text-decoration-none\"\n type=\"button\"\n [seamEncryptedAssetLink]=\"_link\"\n [seamDetectMimeFromContent]=\"_detectMimeContent\"\n [seamDownloadAsset]=\"_download\"\n [attr.title]=\"_title\"\n >\n <ng-template [ngTemplateOutlet]=\"noPopover\"></ng-template>\n </button>\n</ng-container>\n\n<ng-container *ngIf=\"_tplType === 'button'\">\n <button\n class=\"btn btn-link p-0 d-block text-body text-decoration-none\"\n type=\"button\"\n [attr.title]=\"_title\"\n (click)=\"_doButtonAction()\"\n >\n <ng-template [ngTemplateOutlet]=\"noPopover\"></ng-template>\n </button>\n</ng-container>\n", styles: [""], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i5.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i6$2.TheSeamPopoverDirective, selector: "[seamPopover]", inputs: ["seamPopover", "seamPopoverContext", "seamPopoverBaseWidth", "seamPopoverDisabled"], exportAs: ["seamPopover"] }, { kind: "directive", type: i7.EncryptedAssetLinkDirective, selector: "[seamEncryptedAssetLink]", inputs: ["seamEncryptedAssetLink", "seamShowLoadingOverlay", "seamDetectMimeFromContent", "seamDownloadAsset"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
993
1039
|
}
|
|
994
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1040
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: TableCellTypeStringComponent, decorators: [{
|
|
995
1041
|
type: Component,
|
|
996
|
-
args: [{ selector: 'seam-table-cell-type-string', host: {}, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<ng-template #popoverTpl>\n {{ value }}\n</ng-template>\n\n<ng-template #noPopover>\n <div class=\"text-truncate\">\n {{ value }}\n </div>\n</ng-template>\n\n<ng-container *ngIf=\"!_tplType || _tplType === 'default'\">\n <div *ngIf=\"canPopover; else noPopover\" [seamPopover]=\"popoverTpl\">\n <ng-template [ngTemplateOutlet]=\"noPopover\"></ng-template>\n </div>\n</ng-container>\n\n
|
|
1042
|
+
args: [{ selector: 'seam-table-cell-type-string', host: {}, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<ng-template #popoverTpl>\n {{ value }}\n</ng-template>\n\n<ng-template #noPopover>\n <div class=\"text-truncate\">\n {{ value }}\n </div>\n</ng-template>\n\n<ng-container *ngIf=\"!_tplType || _tplType === 'default'\">\n <div *ngIf=\"canPopover; else noPopover\" [seamPopover]=\"popoverTpl\">\n <ng-template [ngTemplateOutlet]=\"noPopover\"></ng-template>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"_tplType === 'link'\">\n <a\n class=\"d-block text-body text-decoration-none\"\n [routerLink]=\"_link\"\n [queryParams]=\"_queryParams\"\n [attr.title]=\"_title\"\n >\n <ng-template [ngTemplateOutlet]=\"noPopover\"></ng-template>\n </a>\n</ng-container>\n\n<ng-container *ngIf=\"_tplType === 'link-external'\">\n <a\n class=\"d-block text-body text-decoration-none\"\n [attr.href]=\"_link\"\n [attr.title]=\"_title\"\n >\n <ng-template [ngTemplateOutlet]=\"noPopover\"></ng-template>\n </a>\n</ng-container>\n\n<ng-container *ngIf=\"_tplType === 'link-encrypted'\">\n <button\n class=\"btn btn-link p-0 d-block text-body text-decoration-none\"\n type=\"button\"\n [seamEncryptedAssetLink]=\"_link\"\n [seamDetectMimeFromContent]=\"_detectMimeContent\"\n [seamDownloadAsset]=\"_download\"\n [attr.title]=\"_title\"\n >\n <ng-template [ngTemplateOutlet]=\"noPopover\"></ng-template>\n </button>\n</ng-container>\n\n<ng-container *ngIf=\"_tplType === 'button'\">\n <button\n class=\"btn btn-link p-0 d-block text-body text-decoration-none\"\n type=\"button\"\n [attr.title]=\"_title\"\n (click)=\"_doButtonAction()\"\n >\n <ng-template [ngTemplateOutlet]=\"noPopover\"></ng-template>\n </button>\n</ng-container>\n" }]
|
|
997
1043
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1.TableCellTypesHelpersService }, { type: i2.DatatableComponent, decorators: [{
|
|
998
1044
|
type: Optional
|
|
999
1045
|
}] }, { type: i3.TableComponent, decorators: [{
|
|
@@ -1028,81 +1074,81 @@ const TABLE_CELL_TYPE_MANIFEST_STRING = {
|
|
|
1028
1074
|
provide: TABLE_CELL_TYPE_MANIFEST,
|
|
1029
1075
|
useValue: {
|
|
1030
1076
|
name: 'string',
|
|
1031
|
-
component: TableCellTypeStringComponent
|
|
1077
|
+
component: TableCellTypeStringComponent,
|
|
1032
1078
|
},
|
|
1033
|
-
multi: true
|
|
1079
|
+
multi: true,
|
|
1034
1080
|
};
|
|
1035
1081
|
const TABLE_CELL_TYPE_MANIFEST_CURRENCY = {
|
|
1036
1082
|
provide: TABLE_CELL_TYPE_MANIFEST,
|
|
1037
1083
|
useValue: {
|
|
1038
1084
|
name: 'currency',
|
|
1039
|
-
component: TableCellTypeCurrencyComponent
|
|
1085
|
+
component: TableCellTypeCurrencyComponent,
|
|
1040
1086
|
},
|
|
1041
|
-
multi: true
|
|
1087
|
+
multi: true,
|
|
1042
1088
|
};
|
|
1043
1089
|
const TABLE_CELL_TYPE_MANIFEST_DECIMAL = {
|
|
1044
1090
|
provide: TABLE_CELL_TYPE_MANIFEST,
|
|
1045
1091
|
useValue: {
|
|
1046
1092
|
name: 'decimal',
|
|
1047
|
-
component: TableCellTypeDecimalComponent
|
|
1093
|
+
component: TableCellTypeDecimalComponent,
|
|
1048
1094
|
},
|
|
1049
|
-
multi: true
|
|
1095
|
+
multi: true,
|
|
1050
1096
|
};
|
|
1051
1097
|
const TABLE_CELL_TYPE_MANIFEST_INTEGER = {
|
|
1052
1098
|
provide: TABLE_CELL_TYPE_MANIFEST,
|
|
1053
1099
|
useValue: {
|
|
1054
1100
|
name: 'integer',
|
|
1055
|
-
component: TableCellTypeIntegerComponent
|
|
1101
|
+
component: TableCellTypeIntegerComponent,
|
|
1056
1102
|
},
|
|
1057
|
-
multi: true
|
|
1103
|
+
multi: true,
|
|
1058
1104
|
};
|
|
1059
1105
|
const TABLE_CELL_TYPE_MANIFEST_DATE = {
|
|
1060
1106
|
provide: TABLE_CELL_TYPE_MANIFEST,
|
|
1061
1107
|
useValue: {
|
|
1062
1108
|
name: 'date',
|
|
1063
|
-
component: TableCellTypeDateComponent
|
|
1109
|
+
component: TableCellTypeDateComponent,
|
|
1064
1110
|
},
|
|
1065
|
-
multi: true
|
|
1111
|
+
multi: true,
|
|
1066
1112
|
};
|
|
1067
1113
|
const TABLE_CELL_TYPE_MANIFEST_ICON = {
|
|
1068
1114
|
provide: TABLE_CELL_TYPE_MANIFEST,
|
|
1069
1115
|
useValue: {
|
|
1070
1116
|
name: 'icon',
|
|
1071
|
-
component: TableCellTypeIconComponent
|
|
1117
|
+
component: TableCellTypeIconComponent,
|
|
1072
1118
|
},
|
|
1073
|
-
multi: true
|
|
1119
|
+
multi: true,
|
|
1074
1120
|
};
|
|
1075
1121
|
const TABLE_CELL_TYPE_MANIFEST_IMAGE = {
|
|
1076
1122
|
provide: TABLE_CELL_TYPE_MANIFEST,
|
|
1077
1123
|
useValue: {
|
|
1078
1124
|
name: 'image',
|
|
1079
|
-
component: TableCellTypeIconComponent
|
|
1125
|
+
component: TableCellTypeIconComponent,
|
|
1080
1126
|
},
|
|
1081
|
-
multi: true
|
|
1127
|
+
multi: true,
|
|
1082
1128
|
};
|
|
1083
1129
|
const TABLE_CELL_TYPE_MANIFEST_PROGRESS_CIRCLE = {
|
|
1084
1130
|
provide: TABLE_CELL_TYPE_MANIFEST,
|
|
1085
1131
|
useValue: {
|
|
1086
1132
|
name: 'progress-circle',
|
|
1087
|
-
component: TableCellTypeProgressCircleComponent
|
|
1133
|
+
component: TableCellTypeProgressCircleComponent,
|
|
1088
1134
|
},
|
|
1089
|
-
multi: true
|
|
1135
|
+
multi: true,
|
|
1090
1136
|
};
|
|
1091
1137
|
const TABLE_CELL_TYPE_MANIFEST_PROGRESS_CIRCLE_ICON = {
|
|
1092
1138
|
provide: TABLE_CELL_TYPE_MANIFEST,
|
|
1093
1139
|
useValue: {
|
|
1094
1140
|
name: 'progress-circle-icon',
|
|
1095
|
-
component: TableCellTypeProgressCircleIconComponent
|
|
1141
|
+
component: TableCellTypeProgressCircleIconComponent,
|
|
1096
1142
|
},
|
|
1097
|
-
multi: true
|
|
1143
|
+
multi: true,
|
|
1098
1144
|
};
|
|
1099
1145
|
const TABLE_CELL_TYPE_MANIFEST_PHONE = {
|
|
1100
1146
|
provide: TABLE_CELL_TYPE_MANIFEST,
|
|
1101
1147
|
useValue: {
|
|
1102
1148
|
name: 'phone',
|
|
1103
|
-
component: TableCellTypePhoneComponent
|
|
1149
|
+
component: TableCellTypePhoneComponent,
|
|
1104
1150
|
},
|
|
1105
|
-
multi: true
|
|
1151
|
+
multi: true,
|
|
1106
1152
|
};
|
|
1107
1153
|
|
|
1108
1154
|
const cellTypeComponents = [
|
|
@@ -1114,7 +1160,7 @@ const cellTypeComponents = [
|
|
|
1114
1160
|
TableCellTypeIntegerComponent,
|
|
1115
1161
|
TableCellTypeProgressCircleComponent,
|
|
1116
1162
|
TableCellTypeProgressCircleIconComponent,
|
|
1117
|
-
TableCellTypePhoneComponent
|
|
1163
|
+
TableCellTypePhoneComponent,
|
|
1118
1164
|
];
|
|
1119
1165
|
const cellTypeProviders = [
|
|
1120
1166
|
TABLE_CELL_TYPE_MANIFEST_STRING,
|
|
@@ -1126,11 +1172,11 @@ const cellTypeProviders = [
|
|
|
1126
1172
|
TABLE_CELL_TYPE_MANIFEST_IMAGE,
|
|
1127
1173
|
TABLE_CELL_TYPE_MANIFEST_PROGRESS_CIRCLE,
|
|
1128
1174
|
TABLE_CELL_TYPE_MANIFEST_PROGRESS_CIRCLE_ICON,
|
|
1129
|
-
TABLE_CELL_TYPE_MANIFEST_PHONE
|
|
1175
|
+
TABLE_CELL_TYPE_MANIFEST_PHONE,
|
|
1130
1176
|
];
|
|
1131
1177
|
class TheSeamTableCellTypesModule {
|
|
1132
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1133
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
1178
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: TheSeamTableCellTypesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1179
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.6", ngImport: i0, type: TheSeamTableCellTypesModule, declarations: [TableCellTypeStringComponent,
|
|
1134
1180
|
TableCellTypeCurrencyComponent,
|
|
1135
1181
|
TableCellTypeDateComponent,
|
|
1136
1182
|
TableCellTypeDecimalComponent,
|
|
@@ -1157,9 +1203,7 @@ class TheSeamTableCellTypesModule {
|
|
|
1157
1203
|
TableCellTypeProgressCircleComponent,
|
|
1158
1204
|
TableCellTypeProgressCircleIconComponent,
|
|
1159
1205
|
TableCellTypePhoneComponent] });
|
|
1160
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
1161
|
-
...cellTypeProviders
|
|
1162
|
-
], imports: [CommonModule,
|
|
1206
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: TheSeamTableCellTypesModule, providers: [...cellTypeProviders], imports: [CommonModule,
|
|
1163
1207
|
RouterModule,
|
|
1164
1208
|
TheSeamSharedModule,
|
|
1165
1209
|
TheSeamIconModule,
|
|
@@ -1171,12 +1215,10 @@ class TheSeamTableCellTypesModule {
|
|
|
1171
1215
|
TheSeamTableCellTypeModule,
|
|
1172
1216
|
TheSeamTooltipModule] });
|
|
1173
1217
|
}
|
|
1174
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.6", ngImport: i0, type: TheSeamTableCellTypesModule, decorators: [{
|
|
1175
1219
|
type: NgModule,
|
|
1176
1220
|
args: [{
|
|
1177
|
-
declarations: [
|
|
1178
|
-
...cellTypeComponents
|
|
1179
|
-
],
|
|
1221
|
+
declarations: [...cellTypeComponents],
|
|
1180
1222
|
imports: [
|
|
1181
1223
|
CommonModule,
|
|
1182
1224
|
RouterModule,
|
|
@@ -1190,12 +1232,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImpor
|
|
|
1190
1232
|
TheSeamTableCellTypeModule,
|
|
1191
1233
|
TheSeamTooltipModule,
|
|
1192
1234
|
],
|
|
1193
|
-
providers: [
|
|
1194
|
-
|
|
1195
|
-
],
|
|
1196
|
-
exports: [
|
|
1197
|
-
...cellTypeComponents
|
|
1198
|
-
]
|
|
1235
|
+
providers: [...cellTypeProviders],
|
|
1236
|
+
exports: [...cellTypeComponents],
|
|
1199
1237
|
}]
|
|
1200
1238
|
}] });
|
|
1201
1239
|
|