@coolon/angular-ui-powerups 13.5.0 → 13.5.2
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/column/column-model.mjs +3 -3
- package/esm2020/lib/components/tables/search/column-text-search-formatter.mjs +3 -4
- package/esm2020/lib/interaction/activity.mjs +9 -2
- package/fesm2015/coolon-angular-ui-powerups.mjs +12 -6
- package/fesm2015/coolon-angular-ui-powerups.mjs.map +1 -1
- package/fesm2020/coolon-angular-ui-powerups.mjs +12 -6
- package/fesm2020/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/interaction/activity.d.ts +7 -0
- package/package.json +1 -1
|
@@ -2569,9 +2569,8 @@ class ColumnTextSearchFormatter {
|
|
|
2569
2569
|
ColumnTextSearchFormatter.Null = Null;
|
|
2570
2570
|
class DefaultValueFormatter extends ColumnTextSearchFormatter {
|
|
2571
2571
|
format(value) {
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
return s;
|
|
2572
|
+
// console.log("DefaultValueFormatter", { value, text: s })
|
|
2573
|
+
return value?.toString() ?? "";
|
|
2575
2574
|
}
|
|
2576
2575
|
}
|
|
2577
2576
|
ColumnTextSearchFormatter.DefaultValueFormatter = DefaultValueFormatter;
|
|
@@ -2598,7 +2597,7 @@ class ColumnTextSearchWrapper extends ColumnTextSearchFormatter.Delegate {
|
|
|
2598
2597
|
format(row) {
|
|
2599
2598
|
let value = this._map(row);
|
|
2600
2599
|
let result = this._delegate ? this._delegate.format(value) : "";
|
|
2601
|
-
console.log({
|
|
2600
|
+
// console.log({format: row, value, text:result})
|
|
2602
2601
|
return result;
|
|
2603
2602
|
}
|
|
2604
2603
|
setDelegate(formatter, mapper) {
|
|
@@ -2662,7 +2661,7 @@ class ColumnModel extends GarbageCollector {
|
|
|
2662
2661
|
}
|
|
2663
2662
|
configureColumnTextSearch(formatter, mapper) {
|
|
2664
2663
|
assert$1.notNil(formatter);
|
|
2665
|
-
console.log({
|
|
2664
|
+
// console.log({col: this.columnId, formatter});
|
|
2666
2665
|
this.textSearchDelegate.setDelegate(formatter, mapper);
|
|
2667
2666
|
}
|
|
2668
2667
|
configureHeaderRenderer(config) {
|
|
@@ -5104,9 +5103,16 @@ class Activity extends DisposableComponent {
|
|
|
5104
5103
|
onActivityReady(callback) {
|
|
5105
5104
|
return this.activityReadyListeners.add(callback);
|
|
5106
5105
|
}
|
|
5107
|
-
|
|
5106
|
+
autoFocus(focusable) {
|
|
5108
5107
|
return this.onActivityReady(() => focusable.requestFocus());
|
|
5109
5108
|
}
|
|
5109
|
+
/**
|
|
5110
|
+
* @deprecated use #autoFocus instead
|
|
5111
|
+
* @param focusable
|
|
5112
|
+
*/
|
|
5113
|
+
autoFocusOnActivityReady(focusable) {
|
|
5114
|
+
return this.autoFocus(focusable);
|
|
5115
|
+
}
|
|
5110
5116
|
get ready$() {
|
|
5111
5117
|
return this._ready$.readonly;
|
|
5112
5118
|
}
|