@theseam/ui-common 0.2.14 → 0.2.17
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/bundles/theseam-ui-common-datatable.umd.js +3 -8
- package/bundles/theseam-ui-common-datatable.umd.js.map +1 -1
- package/bundles/theseam-ui-common-table-cell-types.umd.js +89 -4
- package/bundles/theseam-ui-common-table-cell-types.umd.js.map +1 -1
- package/bundles/theseam-ui-common-testing.umd.js.map +1 -1
- package/bundles/theseam-ui-common-utils.umd.js.map +1 -1
- package/datatable/datatable-column-preferences/datatable-column-preferences.component.d.ts +0 -1
- package/datatable/theseam-ui-common-datatable.metadata.json +1 -1
- package/esm2015/datatable/datatable-column-preferences/datatable-column-preferences.component.js +4 -10
- package/esm2015/datatable/datatable-export-button/datatable-export-button.component.js +4 -2
- package/esm2015/datatable/models/columns-alteration.js +1 -1
- package/esm2015/datatable/models/columns-alterations/hide-column.columns-alteration.js +1 -1
- package/esm2015/datatable/models/columns-alterations/sort.columns-alteration.js +1 -1
- package/esm2015/datatable/models/columns-alterations/width.columns-alteration.js +1 -1
- package/esm2015/datatable/models/internal-column-props.js +1 -1
- package/esm2015/datatable/services/columns-alterations-manager.service.js +1 -1
- package/esm2015/datatable/utils/map-columns-alterations-states.js +1 -1
- package/esm2015/graphql/models/gql-datatable-accessor.js +1 -1
- package/esm2015/table-cell-types/table-cell-type-currency/table-cell-type-currency-config.js +1 -1
- package/esm2015/table-cell-types/table-cell-type-currency/table-cell-type-currency.component.js +17 -2
- package/esm2015/table-cell-types/table-cell-type-decimal/table-cell-type-decimal-config.js +1 -1
- package/esm2015/table-cell-types/table-cell-type-decimal/table-cell-type-decimal.component.js +16 -2
- package/esm2015/table-cell-types/table-cell-type-integer/table-cell-type-integer-config.js +1 -1
- package/esm2015/table-cell-types/table-cell-type-integer/table-cell-type-integer.component.js +16 -2
- package/esm2015/table-cell-types/table-cell-type-string/table-cell-type-string-config.js +1 -1
- package/esm2015/table-cell-types/table-cell-type-string/table-cell-type-string.component.js +32 -4
- package/esm2015/testing/current-tick-time.js +1 -1
- package/esm2015/utils/array-move.js +1 -1
- package/esm2015/utils/router/is-empty-url-route.js +1 -1
- package/fesm2015/theseam-ui-common-datatable.js +3 -8
- package/fesm2015/theseam-ui-common-datatable.js.map +1 -1
- package/fesm2015/theseam-ui-common-table-cell-types.js +74 -5
- package/fesm2015/theseam-ui-common-table-cell-types.js.map +1 -1
- package/fesm2015/theseam-ui-common-testing.js.map +1 -1
- package/fesm2015/theseam-ui-common-utils.js.map +1 -1
- package/package.json +1 -1
- package/table-cell-types/table-cell-type-currency/table-cell-type-currency-config.d.ts +5 -0
- package/table-cell-types/table-cell-type-decimal/table-cell-type-decimal-config.d.ts +5 -0
- package/table-cell-types/table-cell-type-integer/table-cell-type-integer-config.d.ts +5 -0
- package/table-cell-types/table-cell-type-string/table-cell-type-string-config.d.ts +8 -0
- package/table-cell-types/table-cell-type-string/table-cell-type-string.component.d.ts +9 -0
- package/table-cell-types/theseam-ui-common-table-cell-types.metadata.json +1 -1
|
@@ -2492,11 +2492,6 @@
|
|
|
2492
2492
|
this._datatable = _datatable;
|
|
2493
2493
|
this._columnsAlterationsManager = _columnsAlterationsManager;
|
|
2494
2494
|
this._filterControl = new forms.FormControl();
|
|
2495
|
-
this._alphabeticalColumnCompareFn = function (a, b) {
|
|
2496
|
-
var aProp = getColumnProp(a);
|
|
2497
|
-
var bProp = getColumnProp(b);
|
|
2498
|
-
return aProp === bProp ? 0 : aProp > bProp ? 1 : -1;
|
|
2499
|
-
};
|
|
2500
2495
|
this._columns$ = rxjs.combineLatest([
|
|
2501
2496
|
(_a = this._datatable.columns$) !== null && _a !== void 0 ? _a : rxjs.of([]),
|
|
2502
2497
|
utils.observeControlValue(this._filterControl)
|
|
@@ -2504,8 +2499,7 @@
|
|
|
2504
2499
|
var _c = __read(_b, 2), columns = _c[0], filter = _c[1];
|
|
2505
2500
|
var _filter = (filter || '').trim().toLowerCase();
|
|
2506
2501
|
return columns
|
|
2507
|
-
.filter(function (c) { return _this._canToggleColumn(c, _filter); })
|
|
2508
|
-
.sort(_this._alphabeticalColumnCompareFn);
|
|
2502
|
+
.filter(function (c) { return _this._canToggleColumn(c, _filter); });
|
|
2509
2503
|
}));
|
|
2510
2504
|
}
|
|
2511
2505
|
DatatableColumnPreferencesComponent.prototype._canToggleColumn = function (column, filter, omitInternalColumns) {
|
|
@@ -2627,7 +2621,8 @@
|
|
|
2627
2621
|
this._toastr.error(msg, 'Data Export');
|
|
2628
2622
|
}
|
|
2629
2623
|
var export$ = rxjs.combineLatest([
|
|
2630
|
-
this._datatable.rows$,
|
|
2624
|
+
this._datatable.rows$,
|
|
2625
|
+
this._datatable.columns$.pipe(operators.map(function (cols) { return cols.filter(function (c) { return !isInternalColumn(c); }); }))
|
|
2631
2626
|
]).pipe(operators.take(1), operators.map(function (_a) {
|
|
2632
2627
|
var _b = __read(_a, 2), rows = _b[0], columns = _b[1];
|
|
2633
2628
|
if (exporter.skipDataMapping) {
|