namirasoft-site-react 1.4.515 → 1.4.516
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.
|
@@ -4,5 +4,5 @@ export declare abstract class BaseColumnFormatter {
|
|
|
4
4
|
width: string;
|
|
5
5
|
onclick_overrided: boolean;
|
|
6
6
|
abstract format(value: any, column: TableColumnInfo, row: TableRowInfo<any>, printable: boolean): any;
|
|
7
|
-
static getColumn(column: BaseMetaColumn, formatter: BaseColumnFormatter): TableColumnInfo;
|
|
7
|
+
static getColumn(column: BaseMetaColumn, formatter: BaseColumnFormatter, group?: string): TableColumnInfo;
|
|
8
8
|
}
|
|
@@ -3,8 +3,9 @@ export class BaseColumnFormatter {
|
|
|
3
3
|
this.width = "100px";
|
|
4
4
|
this.onclick_overrided = false;
|
|
5
5
|
}
|
|
6
|
-
static getColumn(column, formatter) {
|
|
7
|
-
return Object.assign(Object.assign({ index: 0 }, column), { formatter
|
|
6
|
+
static getColumn(column, formatter, group) {
|
|
7
|
+
return Object.assign(Object.assign({ index: 0 }, column), { formatter,
|
|
8
|
+
group });
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
11
|
//# sourceMappingURL=BaseColumnFormatter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseColumnFormatter.js","sourceRoot":"","sources":["../../src/formatter/BaseColumnFormatter.ts"],"names":[],"mappings":"AAGA,MAAM,OAAgB,mBAAmB;IAAzC;QAEW,UAAK,GAAW,OAAO,CAAC;QACxB,sBAAiB,GAAY,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseColumnFormatter.js","sourceRoot":"","sources":["../../src/formatter/BaseColumnFormatter.ts"],"names":[],"mappings":"AAGA,MAAM,OAAgB,mBAAmB;IAAzC;QAEW,UAAK,GAAW,OAAO,CAAC;QACxB,sBAAiB,GAAY,KAAK,CAAC;IAW9C,CAAC;IATG,MAAM,CAAC,SAAS,CAAC,MAAsB,EAAE,SAA8B,EAAE,KAAc;QAEnF,qCACI,KAAK,EAAE,CAAC,IACL,MAAM,KACT,SAAS;YACT,KAAK,IACP;IACN,CAAC;CACJ"}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"framework": "npm",
|
|
9
9
|
"application": "package",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "1.4.
|
|
11
|
+
"version": "1.4.516",
|
|
12
12
|
"author": "Amir Abolhasani",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/main.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"copyfiles": "^2.4.1",
|
|
37
37
|
"link-react": "^3.0.0",
|
|
38
38
|
"namirasoft-api-link": "^1.4.20",
|
|
39
|
-
"namirasoft-api-product": "^1.4.
|
|
39
|
+
"namirasoft-api-product": "^1.4.50",
|
|
40
40
|
"namirasoft-core": "^1.4.111",
|
|
41
41
|
"namirasoft-schema": "^1.4.27",
|
|
42
42
|
"namirasoft-site": "^1.4.44",
|
|
@@ -6,12 +6,13 @@ export abstract class BaseColumnFormatter
|
|
|
6
6
|
public width: string = "100px";
|
|
7
7
|
public onclick_overrided: boolean = false;
|
|
8
8
|
abstract format(value: any, column: TableColumnInfo, row: TableRowInfo<any>, printable: boolean): any;
|
|
9
|
-
static getColumn(column: BaseMetaColumn, formatter: BaseColumnFormatter): TableColumnInfo
|
|
9
|
+
static getColumn(column: BaseMetaColumn, formatter: BaseColumnFormatter, group?: string): TableColumnInfo
|
|
10
10
|
{
|
|
11
11
|
return {
|
|
12
12
|
index: 0,
|
|
13
13
|
...column,
|
|
14
|
-
formatter
|
|
14
|
+
formatter,
|
|
15
|
+
group
|
|
15
16
|
};
|
|
16
17
|
}
|
|
17
18
|
}
|