@coolon/angular-ui-powerups 13.7.2 → 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.
@@ -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, Trace, ComputedListModel, Deferred } 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, 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) {
@@ -2576,6 +2576,7 @@ class ColumnModel extends GarbageCollector {
2576
2576
  assert$1.notNil(formatter);
2577
2577
  // console.log({col: this.columnId, formatter});
2578
2578
  this.textSearchDelegate.setDelegate(formatter, mapper);
2579
+ return this;
2579
2580
  }
2580
2581
  configureHeaderRenderer(config) {
2581
2582
  this._columnHeaderPortalRef = config;
@@ -4031,6 +4032,7 @@ class TableComponent extends AbstractTableComponent {
4031
4032
  console.log($event);
4032
4033
  this._footerContentAdded = true;
4033
4034
  }
4035
+ //@Trace()
4034
4036
  updatePageSize(count) {
4035
4037
  this.tableModel.updatePageSize(count);
4036
4038
  }
@@ -4043,12 +4045,6 @@ __decorate([
4043
4045
  TrackExternal(),
4044
4046
  __metadata("design:type", TableModel)
4045
4047
  ], TableComponent.prototype, "tableModel", void 0);
4046
- __decorate([
4047
- Trace(),
4048
- __metadata("design:type", Function),
4049
- __metadata("design:paramtypes", [Number]),
4050
- __metadata("design:returntype", void 0)
4051
- ], TableComponent.prototype, "updatePageSize", null);
4052
4048
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.4", ngImport: i0, type: TableComponent, decorators: [{
4053
4049
  type: Component,
4054
4050
  args: [{ selector: 'aup-table', providers: [
@@ -4056,7 +4052,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.4", ngImpor
4056
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"] }]
4057
4053
  }], propDecorators: { tableModel: [{
4058
4054
  type: Input
4059
- }], updatePageSize: [] } });
4055
+ }] } });
4060
4056
 
4061
4057
  const SVG_HEIGHT = 60;
4062
4058
  class TreeInheritanceIconComponent {