@coolon/angular-ui-powerups 13.7.6 → 13.7.7
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/esm2020/lib/components/tables/table/table.component.mjs +4 -9
- package/esm2020/lib/directives/highlight.pipe.mjs +3 -2
- package/fesm2015/coolon-angular-ui-powerups.mjs +5 -10
- package/fesm2015/coolon-angular-ui-powerups.mjs.map +1 -1
- package/fesm2020/coolon-angular-ui-powerups.mjs +5 -10
- package/fesm2020/coolon-angular-ui-powerups.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -39,9 +39,10 @@ import { MatTableModule } from '@angular/material/table';
|
|
|
39
39
|
import * as i6 from '@angular/material/tooltip';
|
|
40
40
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
41
41
|
import * as i1$6 from '@coolon/pectin';
|
|
42
|
-
import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, TrackExternal, ValueModel, StoreInValueModel, Command, MutableListModel, StoreInListModel, Disposable, DelegatingListModel, MutableValueModel, FocusManager, EventListenerList, Form, Guard, Binding, DebugContext, ListModel, Functions, MultipleSelectionModel, AbstractComputedListModel, DelegatingSelectionModel, DirtyTrackingForm, PagedListModel, PageController,
|
|
42
|
+
import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, TrackExternal, ValueModel, StoreInValueModel, Command, MutableListModel, StoreInListModel, Disposable, DelegatingListModel, MutableValueModel, FocusManager, EventListenerList, Form, Guard, Binding, DebugContext, ListModel, Functions, MultipleSelectionModel, AbstractComputedListModel, DelegatingSelectionModel, DirtyTrackingForm, PagedListModel, PageController, ComputedListModel, Trace, Deferred } from '@coolon/pectin';
|
|
43
43
|
import { __decorate, __param, __metadata } from 'tslib';
|
|
44
44
|
import * as i1$2 from '@angular/platform-browser';
|
|
45
|
+
import escapeStringRegexp from 'escape-string-regexp';
|
|
45
46
|
import { isEmpty, isString, isFunction, isNil, isInteger, isEqual, first, uniq, isObject, isNumber, isNaN as isNaN$1 } from 'lodash';
|
|
46
47
|
import { marked } from 'marked';
|
|
47
48
|
import { Memoize } from '@typescript-plus/fast-memoize-decorator';
|
|
@@ -49,7 +50,6 @@ import { Enum } from 'typescript-string-enums';
|
|
|
49
50
|
import { lang as lang$1, assert as assert$1, Stringy, Klass, Opts } from '@coolon/typescript-utilities';
|
|
50
51
|
import * as i3 from '@angular/material/core';
|
|
51
52
|
import produce from 'immer';
|
|
52
|
-
import escapeStringRegexp from 'escape-string-regexp';
|
|
53
53
|
import { isFunction as isFunction$1, isEmpty as isEmpty$1, isNil as isNil$1, findLast } from 'lodash-es';
|
|
54
54
|
import ResizeObserver from 'resize-observer-polyfill';
|
|
55
55
|
import * as i6$1 from '@angular/cdk/a11y';
|
|
@@ -387,7 +387,7 @@ class HighlightPipe extends GarbageCollector {
|
|
|
387
387
|
return value;
|
|
388
388
|
}
|
|
389
389
|
// Match in a case insensitive manner
|
|
390
|
-
const re = new RegExp(searchText, 'gi');
|
|
390
|
+
const re = new RegExp(escapeStringRegexp(searchText), 'gi');
|
|
391
391
|
const match = value.match(re);
|
|
392
392
|
// If there's no match, just return the original value.
|
|
393
393
|
if (!match) {
|
|
@@ -4032,6 +4032,7 @@ class TableComponent extends AbstractTableComponent {
|
|
|
4032
4032
|
console.log($event);
|
|
4033
4033
|
this._footerContentAdded = true;
|
|
4034
4034
|
}
|
|
4035
|
+
//@Trace()
|
|
4035
4036
|
updatePageSize(count) {
|
|
4036
4037
|
this.tableModel.updatePageSize(count);
|
|
4037
4038
|
}
|
|
@@ -4044,12 +4045,6 @@ __decorate([
|
|
|
4044
4045
|
TrackExternal(),
|
|
4045
4046
|
__metadata("design:type", TableModel)
|
|
4046
4047
|
], TableComponent.prototype, "tableModel", void 0);
|
|
4047
|
-
__decorate([
|
|
4048
|
-
Trace(),
|
|
4049
|
-
__metadata("design:type", Function),
|
|
4050
|
-
__metadata("design:paramtypes", [Number]),
|
|
4051
|
-
__metadata("design:returntype", void 0)
|
|
4052
|
-
], TableComponent.prototype, "updatePageSize", null);
|
|
4053
4048
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.4", ngImport: i0, type: TableComponent, decorators: [{
|
|
4054
4049
|
type: Component,
|
|
4055
4050
|
args: [{ selector: 'aup-table', providers: [
|
|
@@ -4057,7 +4052,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.4", ngImpor
|
|
|
4057
4052
|
], template: "<aup-table-body [tableModel]=\"tableModel\"\n [showHeader$]=\"showHeader$\"\n [enableScrolling]=\"enableScrolling\"\n (visibleRowCount)=\"updatePageSize($event)\"\n></aup-table-body>\n<section class=\"table-footer\">\n <div class=\"footer-content\"><ng-content select=\"[footer]\"></ng-content></div>\n <aup-paginator *ngIf=\"tableModel.pageController\" [pageController]=\"tableModel.pageController\"></aup-paginator>\n</section>\n", styles: [":host{display:flex;flex-direction:column;align-items:stretch}aup-table-body{flex:1}.table-footer{display:flex;flex-direction:row;align-items:center}.table-footer .footer-content{flex:1}\n"] }]
|
|
4058
4053
|
}], propDecorators: { tableModel: [{
|
|
4059
4054
|
type: Input
|
|
4060
|
-
}]
|
|
4055
|
+
}] } });
|
|
4061
4056
|
|
|
4062
4057
|
const SVG_HEIGHT = 60;
|
|
4063
4058
|
class TreeInheritanceIconComponent {
|