@coolon/angular-ui-powerups 16.1.0-aplpha.50 → 16.1.0-aplpha.52
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/esm2022/lib/components/commands/command-face.mjs +1 -1
- package/esm2022/lib/components/loadable-component.mjs +4 -2
- package/esm2022/lib/components/tables/abstract-table-model.mjs +3 -3
- package/esm2022/lib/components/tables/filter/text-search-predicate.mjs +16 -2
- package/esm2022/lib/components/tables/renderer/table-more-menu/table-more-menu.component.mjs +7 -2
- package/esm2022/lib/services/markdown/pill-plugin.mjs +2 -2
- package/fesm2022/coolon-angular-ui-powerups.mjs +29 -6
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/components/loadable-component.d.ts +3 -0
- package/lib/components/tables/abstract-table-model.d.ts +1 -1
- package/lib/components/tables/filter/text-search-predicate.d.ts +9 -0
- package/lib/components/tables/renderer/table-more-menu/table-more-menu.component.d.ts +2 -1
- package/package.json +2 -2
|
@@ -9,6 +9,9 @@ export declare class LoadableComponent extends DisposableComponent {
|
|
|
9
9
|
protected injectLoadable<T extends Loadable>(token: ProviderToken<T>, options?: {
|
|
10
10
|
wait: boolean;
|
|
11
11
|
}): T;
|
|
12
|
+
registerLoadable<T extends Loadable>(loadable: T, options?: {
|
|
13
|
+
wait: boolean;
|
|
14
|
+
}): T;
|
|
12
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<LoadableComponent, never>;
|
|
13
16
|
static ɵdir: i0.ɵɵDirectiveDeclaration<LoadableComponent, never, never, {}, {}, never, never, false, never>;
|
|
14
17
|
}
|
|
@@ -78,7 +78,7 @@ export declare abstract class AbstractTableModel<Row> extends GarbageCollector {
|
|
|
78
78
|
addCustomColumn<V>(columnId: string, dataAccessor: (row: Row) => V): CustomValueColumnModel<Row, V>;
|
|
79
79
|
addComponentColumn<C extends CellRenderer<Partial<Row>>>(columnId: string, component: ComponentType<C>, onInit?: OnComponentInit<C>): CustomValueColumnModel<Row, Row>;
|
|
80
80
|
addComponentColumn<C extends CellRenderer<Partial<Row>>>(columnId: string, component: ComponentType<C>, options?: CellRendererOptions<Row, C>): CustomValueColumnModel<Row, Row>;
|
|
81
|
-
addMoreMenu(componentClass: Constructable<
|
|
81
|
+
addMoreMenu<C extends TableMoreMenuPopupComponent<Row>>(componentClass: Constructable<C>, initialiseCallback?: (component: C) => void): CustomValueColumnModel<Row, Row>;
|
|
82
82
|
addTemplateColumn<V>(columnId: string): CustomTemplateColumnModel<Row>;
|
|
83
83
|
addRowClass(className: string, predicate: (row: Row) => boolean): void;
|
|
84
84
|
getRowClasses(row: Row): string[];
|
|
@@ -1 +1,10 @@
|
|
|
1
|
+
import { AbstractConstructable } from "@coolon/restilence-plugin";
|
|
1
2
|
export type TextSearchPredicate<Row> = (row: Row, regex: RegExp) => boolean;
|
|
3
|
+
export declare class TextSearchContext<Row> {
|
|
4
|
+
readonly row: Row;
|
|
5
|
+
readonly searchText: string;
|
|
6
|
+
readonly searchRegex: RegExp;
|
|
7
|
+
constructor(row: Row, searchText: string, searchRegex: RegExp);
|
|
8
|
+
getOrCreate<T>(type: AbstractConstructable<T>, create: () => T): void;
|
|
9
|
+
matchesText(text: string): boolean;
|
|
10
|
+
}
|
|
@@ -13,8 +13,9 @@ export declare class TableMoreMenuComponent<T> extends DisposableComponent imple
|
|
|
13
13
|
private readonly popupType$;
|
|
14
14
|
popupComponentPortal$: ValueModelChain<ComponentPortal<TableMoreMenuPopupComponent<T>>>;
|
|
15
15
|
private readonly _visible$;
|
|
16
|
+
private initialiseCallback?;
|
|
16
17
|
constructor();
|
|
17
|
-
configurePopupComponentType(popupComponentType: Constructable<TableMoreMenuPopupComponent<T
|
|
18
|
+
configurePopupComponentType(popupComponentType: Constructable<TableMoreMenuPopupComponent<T>>, configureCallback?: (component: TableMoreMenuPopupComponent<T>) => void): void;
|
|
18
19
|
preventDefault($event: MouseEvent): void;
|
|
19
20
|
initialise($event: CdkPortalOutletAttachedRef): void;
|
|
20
21
|
get visible$(): import("@coolon/pectin").ValueModel<boolean>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coolon/angular-ui-powerups",
|
|
3
|
-
"version": "16.1.0-aplpha.
|
|
3
|
+
"version": "16.1.0-aplpha.52",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/animations": "^16.2.9",
|
|
6
6
|
"@angular/common": "^16.2.9",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"@angular/platform-browser-dynamic": "^16.2.9",
|
|
13
13
|
"@angular/material-moment-adapter": "^16.2.10",
|
|
14
14
|
"@angular/router": "^16.2.9",
|
|
15
|
-
"@coolon/pectin": "^5.0.0-alpha.
|
|
15
|
+
"@coolon/pectin": "^5.0.0-alpha.16",
|
|
16
16
|
"@typescript-plus/fast-memoize-decorator": "^0.2.1",
|
|
17
17
|
"lodash-es": "^4.17.21",
|
|
18
18
|
"marked": "4.0.10",
|