@coolon/angular-ui-powerups 13.7.6 → 13.7.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/esm2020/lib/components/tables/table/table.component.mjs +4 -9
- package/esm2020/lib/directives/highlight.pipe.mjs +3 -2
- package/esm2020/lib/place/place-router.mjs +5 -16
- package/fesm2015/coolon-angular-ui-powerups.mjs +8 -23
- package/fesm2015/coolon-angular-ui-powerups.mjs.map +1 -1
- package/fesm2020/coolon-angular-ui-powerups.mjs +8 -23
- 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 {
|
|
@@ -7007,6 +7002,7 @@ class PlaceRouter extends GarbageCollector {
|
|
|
7007
7002
|
}
|
|
7008
7003
|
next.notifyActive();
|
|
7009
7004
|
}
|
|
7005
|
+
// @Trace()
|
|
7010
7006
|
routingSessionFinished(visits) {
|
|
7011
7007
|
if (visits && visits.length > 0) {
|
|
7012
7008
|
assert.isTruthy(this.navigationInProgress$.value);
|
|
@@ -7032,6 +7028,7 @@ class PlaceRouter extends GarbageCollector {
|
|
|
7032
7028
|
* to be able to capture the back button on the first page. If we don't then the back click will exit
|
|
7033
7029
|
* the app directly and we don't get to ask.
|
|
7034
7030
|
*/
|
|
7031
|
+
// @Trace()
|
|
7035
7032
|
syncInteractionContextIdsWithRouter(onSyncComplete = () => { }) {
|
|
7036
7033
|
if (this.navigationSession) {
|
|
7037
7034
|
// console.log(`Navigation active -> ${this.navigationSession.toString()}, sync delayed until finished.`);
|
|
@@ -7068,24 +7065,12 @@ class PlaceRouter extends GarbageCollector {
|
|
|
7068
7065
|
}
|
|
7069
7066
|
PlaceRouter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.4", ngImport: i0, type: PlaceRouter, deps: [{ token: i1$b.Router }, { token: i4.Location }, { token: InteractionService }, { token: UrlService }, { token: PlaceHistory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7070
7067
|
PlaceRouter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.4", ngImport: i0, type: PlaceRouter, providedIn: "root" });
|
|
7071
|
-
__decorate([
|
|
7072
|
-
Trace(),
|
|
7073
|
-
__metadata("design:type", Function),
|
|
7074
|
-
__metadata("design:paramtypes", [Array]),
|
|
7075
|
-
__metadata("design:returntype", void 0)
|
|
7076
|
-
], PlaceRouter.prototype, "routingSessionFinished", null);
|
|
7077
|
-
__decorate([
|
|
7078
|
-
Trace(),
|
|
7079
|
-
__metadata("design:type", Function),
|
|
7080
|
-
__metadata("design:paramtypes", [Function]),
|
|
7081
|
-
__metadata("design:returntype", Promise)
|
|
7082
|
-
], PlaceRouter.prototype, "syncInteractionContextIdsWithRouter", null);
|
|
7083
7068
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.4", ngImport: i0, type: PlaceRouter, decorators: [{
|
|
7084
7069
|
type: Injectable,
|
|
7085
7070
|
args: [{
|
|
7086
7071
|
providedIn: "root"
|
|
7087
7072
|
}]
|
|
7088
|
-
}], ctorParameters: function () { return [{ type: i1$b.Router }, { type: i4.Location }, { type: InteractionService }, { type: UrlService }, { type: PlaceHistory }]; }
|
|
7073
|
+
}], ctorParameters: function () { return [{ type: i1$b.Router }, { type: i4.Location }, { type: InteractionService }, { type: UrlService }, { type: PlaceHistory }]; } });
|
|
7089
7074
|
(function (PlaceRouter) {
|
|
7090
7075
|
class State {
|
|
7091
7076
|
constructor(activeVisits) {
|