@trudb/tru-common-lib 0.1.239 → 0.1.244
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/card-column/classes/tru-card-column-config.mjs +1 -1
- package/esm2022/lib/components/card-column/classes/tru-card-column-data.mjs +1 -1
- package/esm2022/lib/components/card-column/classes/tru-card-column-search-results-config-base.mjs +3 -0
- package/esm2022/lib/components/card-column/tru-card-column.mjs +8 -9
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/trudb-tru-common-lib.mjs +11 -9
- package/fesm2022/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/components/card-column/classes/tru-card-column-config.d.ts +4 -3
- package/lib/components/card-column/classes/tru-card-column-data.d.ts +0 -2
- package/lib/components/card-column/classes/tru-card-column-search-results-config-base.d.ts +7 -0
- package/lib/components/card-column/tru-card-column.d.ts +3 -3
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -2,14 +2,14 @@ import { TruReportConfig } from "../../../classes/tru-report-config";
|
|
|
2
2
|
import { TruEntityBase } from "../../../base-classes/tru-entity-base";
|
|
3
3
|
import { TruCardColumnData } from "./tru-card-column-data";
|
|
4
4
|
import { EntityQuery } from "breeze-client";
|
|
5
|
+
import { TruCardColumnSearchResultsConfigBase } from "./tru-card-column-search-results-config-base";
|
|
5
6
|
export interface ITruCardColumnConfig {
|
|
6
7
|
parentTableName: string;
|
|
8
|
+
childPluralName: string;
|
|
7
9
|
key: string;
|
|
8
10
|
parentQuery: any;
|
|
9
11
|
lockProperty: string;
|
|
10
|
-
entityPluralName: string;
|
|
11
12
|
entityName: string;
|
|
12
|
-
columnSort: any;
|
|
13
13
|
color: string;
|
|
14
14
|
unassignedVisible: any;
|
|
15
15
|
unassignedName: string;
|
|
@@ -20,8 +20,9 @@ export interface ITruCardColumnConfig {
|
|
|
20
20
|
inactiveVisible: boolean;
|
|
21
21
|
inactiveDraggable: boolean;
|
|
22
22
|
inactiveDroppable: boolean;
|
|
23
|
-
resultConfig:
|
|
23
|
+
resultConfig: TruCardColumnSearchResultsConfigBase;
|
|
24
24
|
reportConfig: TruReportConfig;
|
|
25
|
+
columnSort?: (columns: Array<any>) => any;
|
|
25
26
|
cardSort?: (cards: Array<any>) => any;
|
|
26
27
|
data?: (entity: TruEntityBase) => TruCardColumnData;
|
|
27
28
|
query?: (breezeQuery: EntityQuery, propertyName: string) => any;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EntityQuery } from "breeze-client";
|
|
2
|
+
import { TruCardColumnData } from "./tru-card-column-data";
|
|
3
|
+
export declare abstract class TruCardColumnSearchResultsConfigBase {
|
|
4
|
+
abstract rowDataEnhancer: () => TruCardColumnData;
|
|
5
|
+
abstract cardSort: (cards: Array<any>) => any;
|
|
6
|
+
abstract query?: (breezeQuery: EntityQuery, propertyName: string) => any;
|
|
7
|
+
}
|
|
@@ -8,12 +8,10 @@ export declare class TruCardColumn {
|
|
|
8
8
|
config: ITruCardColumnConfig;
|
|
9
9
|
portal: HTMLDivElement;
|
|
10
10
|
private parentTableName;
|
|
11
|
+
private childPluralName;
|
|
11
12
|
private key;
|
|
12
13
|
private parentQuery;
|
|
13
14
|
private lockProperty;
|
|
14
|
-
private entityPluralName;
|
|
15
|
-
private entityName;
|
|
16
|
-
private columnSort;
|
|
17
15
|
private color;
|
|
18
16
|
private unassignedVisible;
|
|
19
17
|
private unassignedName;
|
|
@@ -24,6 +22,8 @@ export declare class TruCardColumn {
|
|
|
24
22
|
private inactiveVisible;
|
|
25
23
|
private inactiveDraggable;
|
|
26
24
|
private inactiveDroppable;
|
|
25
|
+
private columnSort;
|
|
26
|
+
private cardSort;
|
|
27
27
|
private relatedParentName;
|
|
28
28
|
private relatedChildName;
|
|
29
29
|
private insertBefore;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export * from './lib/classes/tru-report-config';
|
|
|
45
45
|
export * from './lib/classes/tru-validator-factory';
|
|
46
46
|
export * from './lib/components/card-column/classes/tru-card-column-config';
|
|
47
47
|
export * from './lib/components/card-column/classes/tru-card-column-data';
|
|
48
|
+
export * from './lib/components/card-column/classes/tru-card-column-search-results-config-base';
|
|
48
49
|
export * from './lib/components/card-column/tru-card-column';
|
|
49
50
|
export * from './lib/components/card-column/tru-card-column-module';
|
|
50
51
|
export * from './lib/components/confirm-dialog/tru-confirm-dialog';
|