@genesislcap/grid-tabulator 14.262.1 → 14.262.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/dist/custom-elements.json +2613 -117
- package/dist/dts/cell/cell.d.ts +50 -0
- package/dist/dts/cell/cell.d.ts.map +1 -0
- package/dist/dts/cell/index.d.ts +1 -1
- package/dist/dts/cell/index.d.ts.map +1 -1
- package/dist/dts/cell-editors/date.editor.d.ts +75 -0
- package/dist/dts/cell-editors/date.editor.d.ts.map +1 -0
- package/dist/dts/cell-editors/index.d.ts +6 -0
- package/dist/dts/cell-editors/index.d.ts.map +1 -0
- package/dist/dts/cell-editors/multiselect.editor.d.ts +79 -0
- package/dist/dts/cell-editors/multiselect.editor.d.ts.map +1 -0
- package/dist/dts/cell-editors/number.editor.d.ts +76 -0
- package/dist/dts/cell-editors/number.editor.d.ts.map +1 -0
- package/dist/dts/cell-editors/select.editor.d.ts +83 -0
- package/dist/dts/cell-editors/select.editor.d.ts.map +1 -0
- package/dist/dts/cell-editors/string.editor.d.ts +67 -0
- package/dist/dts/cell-editors/string.editor.d.ts.map +1 -0
- package/dist/dts/cell-formatters/action.formatter.d.ts +45 -0
- package/dist/dts/cell-formatters/action.formatter.d.ts.map +1 -0
- package/dist/dts/cell-formatters/actions-menu.formatter.d.ts +57 -0
- package/dist/dts/cell-formatters/actions-menu.formatter.d.ts.map +1 -0
- package/dist/dts/cell-formatters/boolean.formatter.d.ts +27 -0
- package/dist/dts/cell-formatters/boolean.formatter.d.ts.map +1 -0
- package/dist/dts/cell-formatters/constants.d.ts +31 -0
- package/dist/dts/cell-formatters/constants.d.ts.map +1 -0
- package/dist/dts/cell-formatters/editable.formatter.d.ts +40 -0
- package/dist/dts/cell-formatters/editable.formatter.d.ts.map +1 -0
- package/dist/dts/cell-formatters/index.d.ts +27 -0
- package/dist/dts/cell-formatters/index.d.ts.map +1 -0
- package/dist/dts/cell-formatters/select.formatter.d.ts +43 -0
- package/dist/dts/cell-formatters/select.formatter.d.ts.map +1 -0
- package/dist/dts/cell-formatters/text.formatter.d.ts +36 -0
- package/dist/dts/cell-formatters/text.formatter.d.ts.map +1 -0
- package/dist/dts/column/column.d.ts +340 -0
- package/dist/dts/column/column.d.ts.map +1 -0
- package/dist/dts/column/index.d.ts +1 -1
- package/dist/dts/column/index.d.ts.map +1 -1
- package/dist/dts/datasource/client-side.datasource.d.ts +42 -16
- package/dist/dts/datasource/client-side.datasource.d.ts.map +1 -1
- package/dist/dts/grid-tabulator.components.d.ts +52 -4
- package/dist/dts/grid-tabulator.components.d.ts.map +1 -1
- package/dist/dts/grid-tabulator.d.ts +119 -11
- package/dist/dts/grid-tabulator.d.ts.map +1 -1
- package/dist/dts/grid-tabulator.definitions.d.ts +35 -0
- package/dist/dts/grid-tabulator.definitions.d.ts.map +1 -1
- package/dist/dts/grid-tabulator.styles.d.ts.map +1 -1
- package/dist/dts/grid-tabulator.types.d.ts +13 -1
- package/dist/dts/grid-tabulator.types.d.ts.map +1 -1
- package/dist/dts/index.d.ts +3 -1
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/types.d.ts +27 -0
- package/dist/dts/types.d.ts.map +1 -0
- package/dist/dts/utils/index.d.ts +1 -0
- package/dist/dts/utils/index.d.ts.map +1 -1
- package/dist/dts/utils/string-utils.d.ts +17 -0
- package/dist/dts/utils/string-utils.d.ts.map +1 -0
- package/dist/esm/cell/cell.js +66 -0
- package/dist/esm/cell/index.js +1 -1
- package/dist/esm/cell-editors/date.editor.js +92 -0
- package/dist/esm/cell-editors/index.js +5 -0
- package/dist/esm/cell-editors/multiselect.editor.js +105 -0
- package/dist/esm/cell-editors/number.editor.js +84 -0
- package/dist/esm/cell-editors/select.editor.js +91 -0
- package/dist/esm/cell-editors/string.editor.js +82 -0
- package/dist/esm/cell-formatters/action.formatter.js +73 -0
- package/dist/esm/cell-formatters/actions-menu.formatter.js +68 -0
- package/dist/esm/cell-formatters/boolean.formatter.js +25 -0
- package/dist/esm/cell-formatters/constants.js +31 -0
- package/dist/esm/cell-formatters/editable.formatter.js +21 -0
- package/dist/esm/cell-formatters/index.js +26 -0
- package/dist/esm/cell-formatters/select.formatter.js +32 -0
- package/dist/esm/cell-formatters/text.formatter.js +30 -0
- package/dist/esm/column/column.js +51 -0
- package/dist/esm/column/index.js +1 -1
- package/dist/esm/datasource/client-side.datasource.js +219 -91
- package/dist/esm/grid-tabulator.components.js +24 -11
- package/dist/esm/grid-tabulator.definitions.js +30 -0
- package/dist/esm/grid-tabulator.js +392 -27
- package/dist/esm/grid-tabulator.styles.js +15 -0
- package/dist/esm/grid-tabulator.types.js +13 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/types.js +1 -0
- package/dist/esm/utils/index.js +1 -0
- package/dist/esm/utils/string-utils.js +32 -0
- package/dist/grid-tabulator.api.json +1703 -466
- package/dist/grid-tabulator.d.ts +1237 -124
- package/docs/api/grid-tabulator.actionformatter.md +27 -0
- package/docs/api/grid-tabulator.actionsmenuformatter.md +27 -0
- package/docs/api/grid-tabulator.booleanformatter.md +27 -0
- package/docs/api/grid-tabulator.cellrendererfunc.md +15 -0
- package/docs/api/grid-tabulator.cellrendererparams.cell.md +13 -0
- package/docs/api/grid-tabulator.cellrendererparams.data.md +13 -0
- package/docs/api/grid-tabulator.cellrendererparams.formatterparams.md +13 -0
- package/docs/api/grid-tabulator.cellrendererparams.md +23 -0
- package/docs/api/grid-tabulator.cellrendererparams.value.md +13 -0
- package/docs/api/grid-tabulator.editableformatter.md +27 -0
- package/docs/api/grid-tabulator.foundationgridtabulatorcomponents.md +50 -4
- package/docs/api/grid-tabulator.gridtabulatorcell.connectedcallback.md +15 -0
- package/docs/api/grid-tabulator.gridtabulatorcell.destroy.md +15 -0
- package/docs/api/grid-tabulator.gridtabulatorcell.getelement.md +15 -0
- package/docs/api/grid-tabulator.gridtabulatorcell.init.md +22 -0
- package/docs/api/grid-tabulator.gridtabulatorcell.md +38 -0
- package/docs/api/grid-tabulator.gridtabulatorcell.refresh.md +22 -0
- package/docs/api/grid-tabulator.gridtabulatorcell.renderer.md +11 -0
- package/docs/api/grid-tabulator.gridtabulatorcell.rendererparams.md +11 -0
- package/docs/api/grid-tabulator.gridtabulatorcell.slottedrenderer.md +11 -0
- package/docs/api/grid-tabulator.gridtabulatorcell.slottedrendererchanged.md +15 -0
- package/docs/api/grid-tabulator.gridtabulatorcelleditortypes.md +24 -0
- package/docs/api/grid-tabulator.gridtabulatorcellrenderertypes.md +1 -0
- package/docs/api/grid-tabulator.gridtabulatorcolumn.deepclone.md +15 -0
- package/docs/api/grid-tabulator.gridtabulatorcolumn.definition.md +11 -0
- package/docs/api/grid-tabulator.gridtabulatorcolumn.md +33 -0
- package/docs/api/grid-tabulator.gridtabulatorcolumn.slottedcell.md +11 -0
- package/docs/api/grid-tabulator.gridtabulatorcolumn.slottedcellchanged.md +15 -0
- package/docs/api/grid-tabulator.md +11 -5
- package/docs/api/grid-tabulator.selectformatter.md +27 -0
- package/docs/api/grid-tabulator.textformatter.md +27 -0
- package/docs/api-report.md +328 -36
- package/package.json +16 -15
- package/dist/dts/cell-renderers/action.renderer.d.ts +0 -80
- package/dist/dts/cell-renderers/action.renderer.d.ts.map +0 -1
- package/dist/dts/cell-renderers/index.d.ts +0 -2
- package/dist/dts/cell-renderers/index.d.ts.map +0 -1
- package/dist/esm/cell-renderers/action.renderer.js +0 -107
- package/dist/esm/cell-renderers/index.js +0 -1
- package/docs/api/grid-tabulator.actionheightmultiplier.md +0 -18
- package/docs/api/grid-tabulator.actionrenderer.clickhandler.md +0 -15
- package/docs/api/grid-tabulator.actionrenderer.datatestid.md +0 -11
- package/docs/api/grid-tabulator.actionrenderer.init.md +0 -22
- package/docs/api/grid-tabulator.actionrenderer.md +0 -30
- package/docs/api/grid-tabulator.actionrenderer.params.md +0 -11
- package/docs/api/grid-tabulator.actionrenderer.pendingaction.md +0 -11
- package/docs/api/grid-tabulator.actionrendererparams.md +0 -26
- package/docs/api/grid-tabulator.foundationgridtabulatoractionrenderer.md +0 -26
- package/docs/api/grid-tabulator.tabulatoractionrendererstyles.md +0 -13
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/grid-tabulator",
|
|
3
3
|
"description": "Genesis Foundation Grid Tabulator",
|
|
4
|
-
"version": "14.262.
|
|
4
|
+
"version": "14.262.2",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -39,31 +39,32 @@
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@genesislcap/foundation-testing": "14.262.
|
|
43
|
-
"@genesislcap/genx": "14.262.
|
|
44
|
-
"@genesislcap/rollup-builder": "14.262.
|
|
45
|
-
"@genesislcap/ts-builder": "14.262.
|
|
46
|
-
"@genesislcap/uvu-playwright-builder": "14.262.
|
|
47
|
-
"@genesislcap/vite-builder": "14.262.
|
|
48
|
-
"@genesislcap/webpack-builder": "14.262.
|
|
49
|
-
"@types/tabulator-tables": "6.2.
|
|
42
|
+
"@genesislcap/foundation-testing": "14.262.2",
|
|
43
|
+
"@genesislcap/genx": "14.262.2",
|
|
44
|
+
"@genesislcap/rollup-builder": "14.262.2",
|
|
45
|
+
"@genesislcap/ts-builder": "14.262.2",
|
|
46
|
+
"@genesislcap/uvu-playwright-builder": "14.262.2",
|
|
47
|
+
"@genesislcap/vite-builder": "14.262.2",
|
|
48
|
+
"@genesislcap/webpack-builder": "14.262.2",
|
|
49
|
+
"@types/tabulator-tables": "6.2.6",
|
|
50
50
|
"rimraf": "^5.0.0"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@genesislcap/foundation-comms": "14.262.
|
|
54
|
-
"@genesislcap/foundation-logger": "14.262.
|
|
55
|
-
"@genesislcap/foundation-ui": "14.262.
|
|
56
|
-
"@genesislcap/foundation-utils": "14.262.
|
|
53
|
+
"@genesislcap/foundation-comms": "14.262.2",
|
|
54
|
+
"@genesislcap/foundation-logger": "14.262.2",
|
|
55
|
+
"@genesislcap/foundation-ui": "14.262.2",
|
|
56
|
+
"@genesislcap/foundation-utils": "14.262.2",
|
|
57
57
|
"@microsoft/fast-colors": "5.3.1",
|
|
58
58
|
"@microsoft/fast-components": "2.30.6",
|
|
59
59
|
"@microsoft/fast-element": "1.14.0",
|
|
60
60
|
"@microsoft/fast-foundation": "2.49.6",
|
|
61
61
|
"@microsoft/fast-web-utilities": "5.4.1",
|
|
62
|
+
"change-case": "^4.1.2",
|
|
62
63
|
"rxjs": "^7.5.4",
|
|
63
64
|
"tslib": "^2.3.1"
|
|
64
65
|
},
|
|
65
66
|
"peerDependencies": {
|
|
66
|
-
"tabulator-tables": "6.3.
|
|
67
|
+
"tabulator-tables": "6.3.1"
|
|
67
68
|
},
|
|
68
69
|
"repository": {
|
|
69
70
|
"type": "git",
|
|
@@ -74,5 +75,5 @@
|
|
|
74
75
|
"access": "public"
|
|
75
76
|
},
|
|
76
77
|
"customElements": "dist/custom-elements.json",
|
|
77
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "d4c7eaf9af2757646daf831ea8f2ce0c075832c0"
|
|
78
79
|
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
-
/**
|
|
3
|
-
* Parameters for the `grid-tabulator` action renderer.
|
|
4
|
-
* @remarks For single action button scenarios.
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
export type ActionRendererParams = {
|
|
8
|
-
/**
|
|
9
|
-
* Callback function triggered when the action button is clicked.
|
|
10
|
-
* @param rowData - The data associated with the row.
|
|
11
|
-
*/
|
|
12
|
-
actionClick?: (rowData: any) => void;
|
|
13
|
-
/**
|
|
14
|
-
* The name or label of the action button.
|
|
15
|
-
*/
|
|
16
|
-
actionName?: string;
|
|
17
|
-
/**
|
|
18
|
-
* The appearance style of the action button.
|
|
19
|
-
* @remarks This is a {@link @microsoft/fast-foundation#Button.appearance | Button appearance} value. Defaults to `neutral`. May have other values depending on the design system.
|
|
20
|
-
*/
|
|
21
|
-
appearance?: string;
|
|
22
|
-
/**
|
|
23
|
-
* The data-test-id attribute value to be used for E2E testing.
|
|
24
|
-
*/
|
|
25
|
-
dataTestId?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Function to determine whether the action button should be disabled for a specific row.
|
|
28
|
-
* @param rowData - The data associated with the row.
|
|
29
|
-
* @returns A boolean indicating whether the button should be disabled.
|
|
30
|
-
*/
|
|
31
|
-
isDisabled?: (rowData: any) => boolean;
|
|
32
|
-
/**
|
|
33
|
-
* A unique field name used to identify the action button used for E2E testing, so that the data-testid attribute value can be unique.
|
|
34
|
-
*/
|
|
35
|
-
uniqueFieldName?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Used to render some arbitrary content inside the action renderer button.
|
|
38
|
-
*/
|
|
39
|
-
contentTemplate?: string;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* The Tabulator Action Renderer element.
|
|
43
|
-
* @public
|
|
44
|
-
* @tagname %%prefix%%-grid-tabulator-action-renderer
|
|
45
|
-
*/
|
|
46
|
-
export declare class ActionRenderer extends FoundationElement {
|
|
47
|
-
params: ActionRendererParams;
|
|
48
|
-
pendingAction: boolean;
|
|
49
|
-
init(params: ActionRendererParams): void;
|
|
50
|
-
clickHandler(): Promise<void>;
|
|
51
|
-
get dataTestId(): any;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* The base height multiplier for the action renderer.
|
|
55
|
-
* @remarks Results in `--action-height-multiplier`. This is a DesignToken {@link https://www.fast.design/docs/design-systems/design-tokens/#what-is-a-design-token} value. Defaults to `0.6px`. May have other values depending on the design system or can be set to a different value.
|
|
56
|
-
* @public
|
|
57
|
-
*/
|
|
58
|
-
export declare const actionHeightMultiplier: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
59
|
-
/**
|
|
60
|
-
* The Tabulator Action Renderer Styles.
|
|
61
|
-
* @public
|
|
62
|
-
*/
|
|
63
|
-
export declare const tabulatorActionRendererStyles: import("@microsoft/fast-element").ElementStyles;
|
|
64
|
-
/**
|
|
65
|
-
* A function that returns a Foundation Action Renderer for configuring the component with a DesignSystem.
|
|
66
|
-
*
|
|
67
|
-
* @public
|
|
68
|
-
* @remarks
|
|
69
|
-
* HTML Element: \<foundation-grid-tabulator-action-renderer\>
|
|
70
|
-
*/
|
|
71
|
-
export declare const foundationGridTabulatorActionRenderer: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
72
|
-
baseName: string;
|
|
73
|
-
styles: import("@microsoft/fast-element").ElementStyles;
|
|
74
|
-
template: import("@microsoft/fast-element").ViewTemplate<ActionRenderer, any>;
|
|
75
|
-
}>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
|
|
76
|
-
baseName: string;
|
|
77
|
-
styles: import("@microsoft/fast-element").ElementStyles;
|
|
78
|
-
template: import("@microsoft/fast-element").ViewTemplate<ActionRenderer, any>;
|
|
79
|
-
}, typeof ActionRenderer>;
|
|
80
|
-
//# sourceMappingURL=action.renderer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action.renderer.d.ts","sourceRoot":"","sources":["../../../src/cell-renderers/action.renderer.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG5E;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;IAErC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC;IAEvC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF;;;;GAIG;AACH,qBAAa,cAAe,SAAQ,iBAAiB;IAE5C,MAAM,EAAE,oBAAoB,CAAC;IAG7B,aAAa,EAAE,OAAO,CAAC;IAEvB,IAAI,CAAC,MAAM,EAAE,oBAAoB;IAkC3B,YAAY;IAMzB,IAAI,UAAU,QAMb;CACF;AAID;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,6DAElC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,6BAA6B,iDAezC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,qCAAqC;;;;;;;;yBAehD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cell-renderers/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import { css, html, observable } from '@microsoft/fast-element';
|
|
3
|
-
import { DesignToken, FoundationElement } from '@microsoft/fast-foundation';
|
|
4
|
-
/**
|
|
5
|
-
* The Tabulator Action Renderer element.
|
|
6
|
-
* @public
|
|
7
|
-
* @tagname %%prefix%%-grid-tabulator-action-renderer
|
|
8
|
-
*/
|
|
9
|
-
export class ActionRenderer extends FoundationElement {
|
|
10
|
-
init(params) {
|
|
11
|
-
if (!params)
|
|
12
|
-
return;
|
|
13
|
-
this.params = params;
|
|
14
|
-
// params.eGridCell.addEventListener('keydown', (event: KeyboardEvent) => {
|
|
15
|
-
// if (event.key === KeyCode.ENTER) {
|
|
16
|
-
// this.clickHandler();
|
|
17
|
-
// }
|
|
18
|
-
// });
|
|
19
|
-
}
|
|
20
|
-
// TODO: implement alternatives from Tabulator
|
|
21
|
-
// public getGui(): HTMLElement {
|
|
22
|
-
// return this;
|
|
23
|
-
// }
|
|
24
|
-
// public refresh(params: ICellRendererParams) {
|
|
25
|
-
// this.params = params;
|
|
26
|
-
// return true;
|
|
27
|
-
// }
|
|
28
|
-
// public isDisabled(data): boolean {
|
|
29
|
-
// if (typeof this.params?.isDisabled === 'function') {
|
|
30
|
-
// try {
|
|
31
|
-
// return this.params.isDisabled(data);
|
|
32
|
-
// } catch (error) {
|
|
33
|
-
// logger.error('Error executing grid action cell renderer isDisabled callback:', error);
|
|
34
|
-
// }
|
|
35
|
-
// }
|
|
36
|
-
// return false;
|
|
37
|
-
// }
|
|
38
|
-
clickHandler() {
|
|
39
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
this.pendingAction = true;
|
|
41
|
-
// await this.params.actionClick(this.params.data);
|
|
42
|
-
this.pendingAction = false;
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
get dataTestId() {
|
|
46
|
-
// if (this.params.dataTestId) {
|
|
47
|
-
// return this.params.dataTestId + (this.params.data[this.params.uniqueFieldName] ?? '');
|
|
48
|
-
// }
|
|
49
|
-
return undefined;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
__decorate([
|
|
53
|
-
observable
|
|
54
|
-
], ActionRenderer.prototype, "params", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
observable
|
|
57
|
-
], ActionRenderer.prototype, "pendingAction", void 0);
|
|
58
|
-
const { create } = DesignToken;
|
|
59
|
-
/**
|
|
60
|
-
* The base height multiplier for the action renderer.
|
|
61
|
-
* @remarks Results in `--action-height-multiplier`. This is a DesignToken {@link https://www.fast.design/docs/design-systems/design-tokens/#what-is-a-design-token} value. Defaults to `0.6px`. May have other values depending on the design system or can be set to a different value.
|
|
62
|
-
* @public
|
|
63
|
-
*/
|
|
64
|
-
export const actionHeightMultiplier = create('action-height-multiplier').withDefault('0.6px');
|
|
65
|
-
/**
|
|
66
|
-
* The Tabulator Action Renderer Styles.
|
|
67
|
-
* @public
|
|
68
|
-
*/
|
|
69
|
-
export const tabulatorActionRendererStyles = css `
|
|
70
|
-
.action-container {
|
|
71
|
-
align-items: center;
|
|
72
|
-
display: flex;
|
|
73
|
-
height: 100%;
|
|
74
|
-
justify-content: center;
|
|
75
|
-
}
|
|
76
|
-
.action-renderer {
|
|
77
|
-
align-self: center;
|
|
78
|
-
display: flex;
|
|
79
|
-
height: calc(
|
|
80
|
-
(var(--base-height-multiplier) + var(--density)) * var(--design-unit) *
|
|
81
|
-
var(--action-height-multiplier)
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
`;
|
|
85
|
-
/**
|
|
86
|
-
* A function that returns a Foundation Action Renderer for configuring the component with a DesignSystem.
|
|
87
|
-
*
|
|
88
|
-
* @public
|
|
89
|
-
* @remarks
|
|
90
|
-
* HTML Element: \<foundation-grid-tabulator-action-renderer\>
|
|
91
|
-
*/
|
|
92
|
-
export const foundationGridTabulatorActionRenderer = ActionRenderer.compose({
|
|
93
|
-
baseName: 'grid-tabulator-action-renderer',
|
|
94
|
-
styles: css `
|
|
95
|
-
${tabulatorActionRendererStyles}
|
|
96
|
-
`,
|
|
97
|
-
template: html `
|
|
98
|
-
<div class="action-container" part="action-container">
|
|
99
|
-
<foundation-button
|
|
100
|
-
class="action-renderer"
|
|
101
|
-
part="action-renderer"
|
|
102
|
-
data-test-id="${(x) => x.dataTestId}"
|
|
103
|
-
?disabled=${(x) => x.pendingAction}
|
|
104
|
-
appearance="${(x) => x.params.appearance}"
|
|
105
|
-
@click=${(x) => x.clickHandler()}">${(x) => x.params.actionName}</foundation-button>
|
|
106
|
-
</div>`,
|
|
107
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './action.renderer';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/grid-tabulator](./grid-tabulator.md) > [actionHeightMultiplier](./grid-tabulator.actionheightmultiplier.md)
|
|
4
|
-
|
|
5
|
-
## actionHeightMultiplier variable
|
|
6
|
-
|
|
7
|
-
The base height multiplier for the action renderer.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
actionHeightMultiplier: import("@microsoft/fast-foundation").CSSDesignToken<string>
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Remarks
|
|
16
|
-
|
|
17
|
-
Results in `--action-height-multiplier`<!-- -->. This is a DesignToken [https://www.fast.design/docs/design-systems/design-tokens/\#what-is-a-design-token](https://www.fast.design/docs/design-systems/design-tokens/#what-is-a-design-token) value. Defaults to `0.6px`<!-- -->. May have other values depending on the design system or can be set to a different value.
|
|
18
|
-
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/grid-tabulator](./grid-tabulator.md) > [ActionRenderer](./grid-tabulator.actionrenderer.md) > [clickHandler](./grid-tabulator.actionrenderer.clickhandler.md)
|
|
4
|
-
|
|
5
|
-
## ActionRenderer.clickHandler() method
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
clickHandler(): Promise<void>;
|
|
11
|
-
```
|
|
12
|
-
**Returns:**
|
|
13
|
-
|
|
14
|
-
Promise<void>
|
|
15
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/grid-tabulator](./grid-tabulator.md) > [ActionRenderer](./grid-tabulator.actionrenderer.md) > [dataTestId](./grid-tabulator.actionrenderer.datatestid.md)
|
|
4
|
-
|
|
5
|
-
## ActionRenderer.dataTestId property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
get dataTestId(): any;
|
|
11
|
-
```
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/grid-tabulator](./grid-tabulator.md) > [ActionRenderer](./grid-tabulator.actionrenderer.md) > [init](./grid-tabulator.actionrenderer.init.md)
|
|
4
|
-
|
|
5
|
-
## ActionRenderer.init() method
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
init(params: ActionRendererParams): void;
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Parameters
|
|
14
|
-
|
|
15
|
-
| Parameter | Type | Description |
|
|
16
|
-
| --- | --- | --- |
|
|
17
|
-
| params | [ActionRendererParams](./grid-tabulator.actionrendererparams.md) | |
|
|
18
|
-
|
|
19
|
-
**Returns:**
|
|
20
|
-
|
|
21
|
-
void
|
|
22
|
-
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/grid-tabulator](./grid-tabulator.md) > [ActionRenderer](./grid-tabulator.actionrenderer.md)
|
|
4
|
-
|
|
5
|
-
## ActionRenderer class
|
|
6
|
-
|
|
7
|
-
The Tabulator Action Renderer element.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare class ActionRenderer extends FoundationElement
|
|
13
|
-
```
|
|
14
|
-
**Extends:** FoundationElement
|
|
15
|
-
|
|
16
|
-
## Properties
|
|
17
|
-
|
|
18
|
-
| Property | Modifiers | Type | Description |
|
|
19
|
-
| --- | --- | --- | --- |
|
|
20
|
-
| [dataTestId](./grid-tabulator.actionrenderer.datatestid.md) | <code>readonly</code> | any | |
|
|
21
|
-
| [params](./grid-tabulator.actionrenderer.params.md) | | [ActionRendererParams](./grid-tabulator.actionrendererparams.md) | |
|
|
22
|
-
| [pendingAction](./grid-tabulator.actionrenderer.pendingaction.md) | | boolean | |
|
|
23
|
-
|
|
24
|
-
## Methods
|
|
25
|
-
|
|
26
|
-
| Method | Modifiers | Description |
|
|
27
|
-
| --- | --- | --- |
|
|
28
|
-
| [clickHandler()](./grid-tabulator.actionrenderer.clickhandler.md) | | |
|
|
29
|
-
| [init(params)](./grid-tabulator.actionrenderer.init.md) | | |
|
|
30
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/grid-tabulator](./grid-tabulator.md) > [ActionRenderer](./grid-tabulator.actionrenderer.md) > [params](./grid-tabulator.actionrenderer.params.md)
|
|
4
|
-
|
|
5
|
-
## ActionRenderer.params property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
params: ActionRendererParams;
|
|
11
|
-
```
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/grid-tabulator](./grid-tabulator.md) > [ActionRenderer](./grid-tabulator.actionrenderer.md) > [pendingAction](./grid-tabulator.actionrenderer.pendingaction.md)
|
|
4
|
-
|
|
5
|
-
## ActionRenderer.pendingAction property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
pendingAction: boolean;
|
|
11
|
-
```
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/grid-tabulator](./grid-tabulator.md) > [ActionRendererParams](./grid-tabulator.actionrendererparams.md)
|
|
4
|
-
|
|
5
|
-
## ActionRendererParams type
|
|
6
|
-
|
|
7
|
-
Parameters for the `grid-tabulator` action renderer.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export type ActionRendererParams = {
|
|
13
|
-
actionClick?: (rowData: any) => void;
|
|
14
|
-
actionName?: string;
|
|
15
|
-
appearance?: string;
|
|
16
|
-
dataTestId?: string;
|
|
17
|
-
isDisabled?: (rowData: any) => boolean;
|
|
18
|
-
uniqueFieldName?: string;
|
|
19
|
-
contentTemplate?: string;
|
|
20
|
-
};
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Remarks
|
|
24
|
-
|
|
25
|
-
For single action button scenarios.
|
|
26
|
-
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/grid-tabulator](./grid-tabulator.md) > [foundationGridTabulatorActionRenderer](./grid-tabulator.foundationgridtabulatoractionrenderer.md)
|
|
4
|
-
|
|
5
|
-
## foundationGridTabulatorActionRenderer variable
|
|
6
|
-
|
|
7
|
-
A function that returns a Foundation Action Renderer for configuring the component with a DesignSystem.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
foundationGridTabulatorActionRenderer: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
13
|
-
baseName: string;
|
|
14
|
-
styles: import("@microsoft/fast-element").ElementStyles;
|
|
15
|
-
template: import("@microsoft/fast-element").ViewTemplate<ActionRenderer, any>;
|
|
16
|
-
}>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
|
|
17
|
-
baseName: string;
|
|
18
|
-
styles: import("@microsoft/fast-element").ElementStyles;
|
|
19
|
-
template: import("@microsoft/fast-element").ViewTemplate<ActionRenderer, any>;
|
|
20
|
-
}, typeof ActionRenderer>
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Remarks
|
|
24
|
-
|
|
25
|
-
HTML Element: <<!-- -->foundation-grid-tabulator-action-renderer<!-- -->>
|
|
26
|
-
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/grid-tabulator](./grid-tabulator.md) > [tabulatorActionRendererStyles](./grid-tabulator.tabulatoractionrendererstyles.md)
|
|
4
|
-
|
|
5
|
-
## tabulatorActionRendererStyles variable
|
|
6
|
-
|
|
7
|
-
The Tabulator Action Renderer Styles.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
tabulatorActionRendererStyles: import("@microsoft/fast-element").ElementStyles
|
|
13
|
-
```
|