@genesislcap/grid-pro 14.17.0 → 14.19.0
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 +520 -147
- package/dist/dts/cell/cell.d.ts +5 -0
- package/dist/dts/cell/cell.d.ts.map +1 -1
- package/dist/dts/cell/cell.template.d.ts +4 -0
- package/dist/dts/cell/cell.template.d.ts.map +1 -1
- package/dist/dts/cell-renderers/action.renderer.d.ts +39 -2
- package/dist/dts/cell-renderers/action.renderer.d.ts.map +1 -1
- package/dist/dts/cell-renderers/actions-menu.renderer.d.ts +38 -3
- package/dist/dts/cell-renderers/actions-menu.renderer.d.ts.map +1 -1
- package/dist/dts/cell-renderers/boolean.renderer.d.ts +13 -1
- package/dist/dts/cell-renderers/boolean.renderer.d.ts.map +1 -1
- package/dist/dts/cell-renderers/index.d.ts +1 -0
- package/dist/dts/cell-renderers/index.d.ts.map +1 -1
- package/dist/dts/cell-renderers/select.renderer.d.ts +19 -0
- package/dist/dts/cell-renderers/select.renderer.d.ts.map +1 -1
- package/dist/dts/cell-renderers/text-field.renderer.d.ts +57 -0
- package/dist/dts/cell-renderers/text-field.renderer.d.ts.map +1 -0
- package/dist/dts/cell-renderers/text.renderer.d.ts +17 -25
- package/dist/dts/cell-renderers/text.renderer.d.ts.map +1 -1
- package/dist/dts/column/column.d.ts +5 -0
- package/dist/dts/column/column.d.ts.map +1 -1
- package/dist/dts/column/column.template.d.ts +4 -0
- package/dist/dts/column/column.template.d.ts.map +1 -1
- package/dist/dts/external/ag-grid-css.d.ts +5 -0
- package/dist/dts/external/ag-grid-css.d.ts.map +1 -1
- package/dist/dts/external/ag-head-css.d.ts +5 -0
- package/dist/dts/external/ag-head-css.d.ts.map +1 -1
- package/dist/dts/external/ag-theme-alpine-no-font-css.d.ts +4 -0
- package/dist/dts/external/ag-theme-alpine-no-font-css.d.ts.map +1 -1
- package/dist/dts/external/ag-theme-balham-no-font-css.d.ts +4 -0
- package/dist/dts/external/ag-theme-balham-no-font-css.d.ts.map +1 -1
- package/dist/dts/external/ag-theme-material-no-font-css.d.ts +4 -0
- package/dist/dts/external/ag-theme-material-no-font-css.d.ts.map +1 -1
- package/dist/dts/external/fonts.d.ts +25 -0
- package/dist/dts/external/fonts.d.ts.map +1 -1
- package/dist/dts/external/index.d.ts +9 -0
- package/dist/dts/external/index.d.ts.map +1 -1
- package/dist/dts/grid-components.d.ts +16 -2
- package/dist/dts/grid-components.d.ts.map +1 -1
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +4 -1
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +1 -1
- package/dist/dts/grid-pro.definitions.d.ts +40 -0
- package/dist/dts/grid-pro.definitions.d.ts.map +1 -1
- package/dist/dts/grid-pro.styles.d.ts +5 -0
- package/dist/dts/grid-pro.styles.d.ts.map +1 -1
- package/dist/dts/grid-pro.template.d.ts +4 -0
- package/dist/dts/grid-pro.template.d.ts.map +1 -1
- package/dist/dts/grid-pro.types.d.ts +62 -0
- package/dist/dts/grid-pro.types.d.ts.map +1 -1
- package/dist/dts/index.d.ts +26 -4
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/style/colors.d.ts +10 -0
- package/dist/dts/style/colors.d.ts.map +1 -1
- package/dist/dts/style/tokens.d.ts +5 -0
- package/dist/dts/style/tokens.d.ts.map +1 -1
- package/dist/dts/tsdoc-metadata.json +11 -0
- package/dist/dts/utils/logger.d.ts +4 -0
- package/dist/dts/utils/logger.d.ts.map +1 -1
- package/dist/esm/cell/cell.js +5 -0
- package/dist/esm/cell/cell.template.js +4 -0
- package/dist/esm/cell-renderers/action.renderer.js +12 -2
- package/dist/esm/cell-renderers/actions-menu.renderer.js +38 -3
- package/dist/esm/cell-renderers/boolean.renderer.js +13 -1
- package/dist/esm/cell-renderers/index.js +1 -0
- package/dist/esm/cell-renderers/select.renderer.js +19 -0
- package/dist/esm/cell-renderers/text-field.renderer.js +94 -0
- package/dist/esm/cell-renderers/text.renderer.js +17 -66
- package/dist/esm/column/column.js +5 -0
- package/dist/esm/column/column.template.js +4 -0
- package/dist/esm/external/ag-grid-css.js +5 -0
- package/dist/esm/external/ag-head-css.js +5 -0
- package/dist/esm/external/ag-theme-alpine-no-font-css.js +4 -0
- package/dist/esm/external/ag-theme-balham-no-font-css.js +4 -0
- package/dist/esm/external/ag-theme-material-no-font-css.js +4 -0
- package/dist/esm/external/fonts.js +21 -0
- package/dist/esm/external/index.js +9 -0
- package/dist/esm/grid-components.js +7 -1
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +4 -1
- package/dist/esm/grid-pro.definitions.js +40 -0
- package/dist/esm/grid-pro.js +1 -1
- package/dist/esm/grid-pro.styles.js +5 -0
- package/dist/esm/grid-pro.template.js +4 -0
- package/dist/esm/grid-pro.types.js +58 -0
- package/dist/esm/index.js +26 -4
- package/dist/esm/style/colors.js +10 -0
- package/dist/esm/style/tokens.js +5 -0
- package/dist/esm/utils/logger.js +4 -0
- package/dist/grid-pro.api.json +8753 -0
- package/dist/grid-pro.d.ts +2067 -0
- package/docs/.gitattributes +2 -0
- package/docs/api/grid-pro.actionheightmultiplier.md +18 -0
- package/docs/api/grid-pro.actionrenderer.clickhandler.md +15 -0
- package/docs/api/grid-pro.actionrenderer.datatestid.md +11 -0
- package/docs/api/grid-pro.actionrenderer.getgui.md +15 -0
- package/docs/api/grid-pro.actionrenderer.init.md +22 -0
- package/docs/api/grid-pro.actionrenderer.isdisabled.md +22 -0
- package/docs/api/grid-pro.actionrenderer.md +35 -0
- package/docs/api/grid-pro.actionrenderer.params.md +11 -0
- package/docs/api/grid-pro.actionrenderer.pendingaction.md +11 -0
- package/docs/api/grid-pro.actionrenderer.refresh.md +22 -0
- package/docs/api/grid-pro.actionrendererparams.md +25 -0
- package/docs/api/grid-pro.actionsmenurenderer.getgui.md +15 -0
- package/docs/api/grid-pro.actionsmenurenderer.init.md +22 -0
- package/docs/api/grid-pro.actionsmenurenderer.md +35 -0
- package/docs/api/grid-pro.actionsmenurenderer.params.md +11 -0
- package/docs/api/grid-pro.actionsmenurenderer.refresh.md +22 -0
- package/docs/api/grid-pro.agactionrendererstyles.md +13 -0
- package/docs/api/grid-pro.agbooleanrendererstyles.md +13 -0
- package/docs/api/grid-pro.agexternalstockstyles.md +18 -0
- package/docs/api/grid-pro.aggridalpinefontface.md +13 -0
- package/docs/api/grid-pro.aggridbalhamfontface.md +13 -0
- package/docs/api/grid-pro.aggridcss.md +18 -0
- package/docs/api/grid-pro.aggridcssvars.md +63 -0
- package/docs/api/grid-pro.aggridmaterialfontface.md +13 -0
- package/docs/api/grid-pro.aggridtheme.md +24 -0
- package/docs/api/grid-pro.agheadcss.md +18 -0
- package/docs/api/grid-pro.agselectrendererstyles.md +13 -0
- package/docs/api/grid-pro.agtextfieldrenderer.destroy.md +15 -0
- package/docs/api/grid-pro.agtextfieldrenderer.getgui.md +15 -0
- package/docs/api/grid-pro.agtextfieldrenderer.init.md +22 -0
- package/docs/api/grid-pro.agtextfieldrenderer.md +35 -0
- package/docs/api/grid-pro.agtextfieldrenderer.params.md +11 -0
- package/docs/api/grid-pro.agtextfieldrenderer.refresh.md +22 -0
- package/docs/api/grid-pro.agtextfieldrenderer.textchanged.md +13 -0
- package/docs/api/grid-pro.agtextfieldrenderer.textfield.md +11 -0
- package/docs/api/grid-pro.agtextfieldrenderer.textvalue.md +11 -0
- package/docs/api/grid-pro.agtextrenderer.md +18 -0
- package/docs/api/grid-pro.agthemealpinenofontscss.md +13 -0
- package/docs/api/grid-pro.agthemebalhamnofontscss.md +13 -0
- package/docs/api/grid-pro.agthemefontfacemap.md +13 -0
- package/docs/api/grid-pro.agthemefontsid.md +22 -0
- package/docs/api/grid-pro.agthemematerialnofontscss.md +13 -0
- package/docs/api/grid-pro.agthemetokenmapclassname.md +22 -0
- package/docs/api/grid-pro.agthemetokenmapcss.md +36 -0
- package/docs/api/grid-pro.booleanrenderer.destroy.md +15 -0
- package/docs/api/grid-pro.booleanrenderer.getgui.md +15 -0
- package/docs/api/grid-pro.booleanrenderer.init.md +22 -0
- package/docs/api/grid-pro.booleanrenderer.md +32 -0
- package/docs/api/grid-pro.booleanrenderer.params.md +11 -0
- package/docs/api/grid-pro.booleanrenderer.refresh.md +22 -0
- package/docs/api/grid-pro.celltemplate.md +13 -0
- package/docs/api/grid-pro.columntemplate.md +13 -0
- package/docs/api/grid-pro.datetimevalueformatter.md +26 -0
- package/docs/api/grid-pro.datevalueformatter.md +26 -0
- package/docs/api/grid-pro.defaultaggridfontface.md +18 -0
- package/docs/api/grid-pro.defaultgridproconfig.md +13 -0
- package/docs/api/grid-pro.foundationagbooleanrenderer.md +26 -0
- package/docs/api/grid-pro.foundationagselectrenderer.md +26 -0
- package/docs/api/grid-pro.foundationagtextfieldrenderer.md +26 -0
- package/docs/api/grid-pro.foundationagtextrenderer.md +31 -0
- package/docs/api/grid-pro.foundationgridcomponents.md +83 -0
- package/docs/api/grid-pro.foundationgridpro.md +28 -0
- package/docs/api/grid-pro.foundationgridproactionrenderer.md +26 -0
- package/docs/api/grid-pro.foundationgridproactionsmenurenderer.md +24 -0
- package/docs/api/grid-pro.foundationgridproshadowoptions.md +11 -0
- package/docs/api/grid-pro.foundationgridprostyles.md +18 -0
- package/docs/api/grid-pro.getactionsmenudef.md +39 -0
- package/docs/api/grid-pro.getagbooleanrenderertemplate.md +13 -0
- package/docs/api/grid-pro.getselectrenderertemplate.md +13 -0
- package/docs/api/grid-pro.gettextfieldrenderertemplate.md +13 -0
- package/docs/api/grid-pro.gettextrenderertemplate.md +16 -0
- package/docs/api/grid-pro.gridcolumn.definition.md +11 -0
- package/docs/api/grid-pro.gridcolumn.md +32 -0
- package/docs/api/grid-pro.gridcolumn.slottedagcell.md +11 -0
- package/docs/api/grid-pro.gridcolumn.slottedagcellchanged.md +15 -0
- package/docs/api/grid-pro.gridcomponents.md +15 -0
- package/docs/api/grid-pro.gridpro._constructor_.md +13 -0
- package/docs/api/grid-pro.gridpro.agattributechangedcallback.md +24 -0
- package/docs/api/grid-pro.gridpro.agattributes.md +11 -0
- package/docs/api/grid-pro.gridpro.aggrid.md +11 -0
- package/docs/api/grid-pro.gridpro.aggridoptions.md +11 -0
- package/docs/api/grid-pro.gridpro.agpropertiesmap.md +11 -0
- package/docs/api/grid-pro.gridpro.applytemplatedefinitions.md +22 -0
- package/docs/api/grid-pro.gridpro.autocellrendererbytype.md +11 -0
- package/docs/api/grid-pro.gridpro.classnames.md +11 -0
- package/docs/api/grid-pro.gridpro.columnapi.md +11 -0
- package/docs/api/grid-pro.gridpro.columncomponentname.md +11 -0
- package/docs/api/grid-pro.gridpro.combineallgridcomponents.md +22 -0
- package/docs/api/grid-pro.gridpro.connectedcallback.md +15 -0
- package/docs/api/grid-pro.gridpro.disconnectedcallback.md +15 -0
- package/docs/api/grid-pro.gridpro.enablecellflashing.md +13 -0
- package/docs/api/grid-pro.gridpro.enabledrowflashing.md +11 -0
- package/docs/api/grid-pro.gridpro.eventsandcallbacks.md +11 -0
- package/docs/api/grid-pro.gridpro.globaleventlistener.md +23 -0
- package/docs/api/grid-pro.gridpro.gridapi.md +11 -0
- package/docs/api/grid-pro.gridpro.gridautosizingenabled.md +13 -0
- package/docs/api/grid-pro.gridpro.gridcomponents.md +13 -0
- package/docs/api/grid-pro.gridpro.gridfontface.md +11 -0
- package/docs/api/grid-pro.gridpro.gridoptions.md +11 -0
- package/docs/api/grid-pro.gridpro.gridslot.md +11 -0
- package/docs/api/grid-pro.gridpro.headerheight.md +11 -0
- package/docs/api/grid-pro.gridpro.initialised.md +11 -0
- package/docs/api/grid-pro.gridpro.md +61 -0
- package/docs/api/grid-pro.gridpro.observedattributes.md +11 -0
- package/docs/api/grid-pro.gridpro.onlytemplatecoldefs.md +11 -0
- package/docs/api/grid-pro.gridpro.persistcolumnstatekey.md +11 -0
- package/docs/api/grid-pro.gridpro.rowheight.md +11 -0
- package/docs/api/grid-pro.gridpro.statepersistanceenabled.md +15 -0
- package/docs/api/grid-pro.gridpro.theme.md +11 -0
- package/docs/api/grid-pro.gridpro.themechanged.md +23 -0
- package/docs/api/grid-pro.gridprocell.connectedcallback.md +15 -0
- package/docs/api/grid-pro.gridprocell.destroy.md +15 -0
- package/docs/api/grid-pro.gridprocell.getgui.md +15 -0
- package/docs/api/grid-pro.gridprocell.init.md +22 -0
- package/docs/api/grid-pro.gridprocell.md +40 -0
- package/docs/api/grid-pro.gridprocell.refresh.md +22 -0
- package/docs/api/grid-pro.gridprocell.renderer.md +11 -0
- package/docs/api/grid-pro.gridprocell.rendererparams.md +11 -0
- package/docs/api/grid-pro.gridprocell.slottedagrendererchanged.md +15 -0
- package/docs/api/grid-pro.gridprocell.slottedrenderer.md +11 -0
- package/docs/api/grid-pro.gridprocolumns.md +25 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.connect.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.connectedcallback.md +15 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.criteria.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.criteriachanged.md +23 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.datasource.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.deepclone.md +15 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.deferredgridoptions.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.deinit.md +16 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.disconnectedcallback.md +15 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.fields.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.init.md +15 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.issnapshot.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.maxrows.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.maxview.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.md +49 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.movingview.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.orderby.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.removefilter.md +22 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.request.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.reset.md +21 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.resourcename.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.resourcenamechanged.md +23 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.restart.md +15 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.restartonreconnection.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.reverse.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.rowid.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.setfilter.md +23 -0
- package/docs/api/grid-pro.gridprogenesisdatasourcenext.connect.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasourcenext.connectedcallback.md +15 -0
- package/docs/api/grid-pro.gridprogenesisdatasourcenext.criteria.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasourcenext.disconnectedcallback.md +15 -0
- package/docs/api/grid-pro.gridprogenesisdatasourcenext.fields.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasourcenext.init.md +15 -0
- package/docs/api/grid-pro.gridprogenesisdatasourcenext.issnapshot.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasourcenext.maxrows.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasourcenext.maxview.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasourcenext.md +40 -0
- package/docs/api/grid-pro.gridprogenesisdatasourcenext.orderby.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasourcenext.pagination.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasourcenext.params.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasourcenext.reset.md +15 -0
- package/docs/api/grid-pro.gridprogenesisdatasourcenext.resourcename.md +11 -0
- package/docs/api/grid-pro.gridprogenesisdatasourcenext.resourcenamechanged.md +23 -0
- package/docs/api/grid-pro.gridprogenesisdatasourcenext.restart.md +15 -0
- package/docs/api/grid-pro.gridprogenesisdatasourcenext.reverse.md +11 -0
- package/docs/api/grid-pro.gridprorenderertypes.md +24 -0
- package/docs/api/grid-pro.gridprotemplate.md +13 -0
- package/docs/api/grid-pro.logger.md +13 -0
- package/docs/api/grid-pro.md +93 -0
- package/docs/api/grid-pro.selectrenderer.destroy.md +15 -0
- package/docs/api/grid-pro.selectrenderer.getgui.md +15 -0
- package/docs/api/grid-pro.selectrenderer.init.md +22 -0
- package/docs/api/grid-pro.selectrenderer.md +34 -0
- package/docs/api/grid-pro.selectrenderer.params.md +11 -0
- package/docs/api/grid-pro.selectrenderer.refresh.md +22 -0
- package/docs/api/grid-pro.selectrenderer.selectionchanged.md +11 -0
- package/docs/api/grid-pro.selectrenderer.value.md +11 -0
- package/docs/api/grid-pro.streamdatasource._constructor_.md +20 -0
- package/docs/api/grid-pro.streamdatasource.connect.md +11 -0
- package/docs/api/grid-pro.streamdatasource.dataserverstream.md +11 -0
- package/docs/api/grid-pro.streamdatasource.getrows.md +22 -0
- package/docs/api/grid-pro.streamdatasource.md +34 -0
- package/docs/api/grid-pro.streamdatasource.resourceparams.md +11 -0
- package/docs/api/grid-pro.streamdatasource.streamsourceref.md +11 -0
- package/docs/api/grid-pro.streamdatasourceoptions.md +20 -0
- package/docs/api/grid-pro.textfieldrendererstyles.md +13 -0
- package/docs/api/grid-pro.textrendererstyles.md +16 -0
- package/docs/api/index.md +12 -0
- package/docs/api-report.md +806 -0
- package/package.json +11 -9
- package/tsdoc.json +4 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { sync } from '@genesislcap/foundation-utils';
|
|
3
|
+
import { css, html, observable, ref } from '@microsoft/fast-element';
|
|
4
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
5
|
+
import { setValueWithAccessor } from './utils';
|
|
6
|
+
/**
|
|
7
|
+
* The AG Text Field Renderer element.
|
|
8
|
+
* @public
|
|
9
|
+
* @tagname %%prefix%%-grid-text-field-renderer
|
|
10
|
+
|
|
11
|
+
*/
|
|
12
|
+
export class AgTextFieldRenderer extends FoundationElement {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
// Text field value
|
|
16
|
+
this.textValue = '';
|
|
17
|
+
/**
|
|
18
|
+
* On text change handler
|
|
19
|
+
* @param e - CustomEvent
|
|
20
|
+
*/
|
|
21
|
+
this.textChanged = (e) => {
|
|
22
|
+
this.textValue = e.target.value;
|
|
23
|
+
this.params.onChange(e.target.value, this.params);
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
init(params) {
|
|
27
|
+
var _a;
|
|
28
|
+
if (!params)
|
|
29
|
+
return;
|
|
30
|
+
this.params = params;
|
|
31
|
+
this.textValue =
|
|
32
|
+
this.textValue === ''
|
|
33
|
+
? setValueWithAccessor((_a = params === null || params === void 0 ? void 0 : params.node) === null || _a === void 0 ? void 0 : _a.data, params.accessor)
|
|
34
|
+
: this.textValue;
|
|
35
|
+
}
|
|
36
|
+
getGui() {
|
|
37
|
+
return this;
|
|
38
|
+
}
|
|
39
|
+
destroy() { }
|
|
40
|
+
refresh(params) {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
__decorate([
|
|
45
|
+
observable
|
|
46
|
+
], AgTextFieldRenderer.prototype, "textValue", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
observable
|
|
49
|
+
], AgTextFieldRenderer.prototype, "params", void 0);
|
|
50
|
+
/**
|
|
51
|
+
* The AG Text Field Renderer Styles.
|
|
52
|
+
* @public
|
|
53
|
+
*/
|
|
54
|
+
export const textFieldRendererStyles = css `
|
|
55
|
+
:host {
|
|
56
|
+
display: flex;
|
|
57
|
+
width: 100%;
|
|
58
|
+
height: 100%;
|
|
59
|
+
align-center: center;
|
|
60
|
+
}
|
|
61
|
+
.text-renderer {
|
|
62
|
+
width: 100%;
|
|
63
|
+
}
|
|
64
|
+
`;
|
|
65
|
+
/**
|
|
66
|
+
* Get a Design System prefixed Text Field template.
|
|
67
|
+
* @param designSystem - The design system prefix to use. Defaults to 'foundation'.
|
|
68
|
+
* @returns A Text Field component template prefixed with the correct design system.
|
|
69
|
+
* @public
|
|
70
|
+
*/
|
|
71
|
+
export const getTextFieldRendererTemplate = (designSystem = 'foundation') => {
|
|
72
|
+
const textComponent = `${designSystem}-text-field`;
|
|
73
|
+
return html `
|
|
74
|
+
<${textComponent}
|
|
75
|
+
${ref('textField')}
|
|
76
|
+
type="text"
|
|
77
|
+
class="text-renderer"
|
|
78
|
+
:value="${sync((x) => x.textValue)}"
|
|
79
|
+
@change="${(x, c) => x.textChanged(c.event)}"
|
|
80
|
+
></${textComponent}>
|
|
81
|
+
`;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* The Foundation Text Field Renderer registry.
|
|
85
|
+
*
|
|
86
|
+
* @public
|
|
87
|
+
* @remarks
|
|
88
|
+
* HTML Element: \<foundation-grid-pro-text-field-renderer\>
|
|
89
|
+
*/
|
|
90
|
+
export const foundationAgTextFieldRenderer = AgTextFieldRenderer.compose({
|
|
91
|
+
baseName: 'grid-pro-text-renderer',
|
|
92
|
+
styles: textFieldRendererStyles,
|
|
93
|
+
template: getTextFieldRendererTemplate(),
|
|
94
|
+
});
|
|
@@ -1,76 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { css, html, observable, ref } from '@microsoft/fast-element';
|
|
4
|
-
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
5
|
-
import { setValueWithAccessor } from './utils';
|
|
1
|
+
// TODO: DEPRECATED due the incorrect "text" name
|
|
2
|
+
import { AgTextFieldRenderer, getTextFieldRendererTemplate, textFieldRendererStyles, } from './text-field.renderer';
|
|
6
3
|
/**
|
|
4
|
+
* @public
|
|
5
|
+
* @deprecated - Use AgTextFieldRenderer instead
|
|
7
6
|
* @tagname %%prefix%%-grid-text-renderer
|
|
8
7
|
*/
|
|
9
|
-
export class AgTextRenderer extends
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments);
|
|
12
|
-
// Text field value
|
|
13
|
-
this.textValue = '';
|
|
14
|
-
/**
|
|
15
|
-
* On text change handler
|
|
16
|
-
* @param e CustomEvent
|
|
17
|
-
*/
|
|
18
|
-
this.textChanged = (e) => {
|
|
19
|
-
this.textValue = e.target.value;
|
|
20
|
-
this.params.onChange(e.target.value, this.params);
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
init(params) {
|
|
24
|
-
var _a;
|
|
25
|
-
if (!params)
|
|
26
|
-
return;
|
|
27
|
-
this.params = params;
|
|
28
|
-
this.textValue =
|
|
29
|
-
this.textValue === ''
|
|
30
|
-
? setValueWithAccessor((_a = params === null || params === void 0 ? void 0 : params.node) === null || _a === void 0 ? void 0 : _a.data, params.accessor)
|
|
31
|
-
: this.textValue;
|
|
32
|
-
}
|
|
33
|
-
getGui() {
|
|
34
|
-
return this;
|
|
35
|
-
}
|
|
36
|
-
destroy() { }
|
|
37
|
-
refresh(params) {
|
|
38
|
-
return true;
|
|
39
|
-
}
|
|
8
|
+
export class AgTextRenderer extends AgTextFieldRenderer {
|
|
40
9
|
}
|
|
41
|
-
__decorate([
|
|
42
|
-
observable
|
|
43
|
-
], AgTextRenderer.prototype, "textValue", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
observable
|
|
46
|
-
], AgTextRenderer.prototype, "params", void 0);
|
|
47
|
-
export const textRendererStyles = css `
|
|
48
|
-
:host {
|
|
49
|
-
display: flex;
|
|
50
|
-
width: 100%;
|
|
51
|
-
height: 100%;
|
|
52
|
-
align-center: center;
|
|
53
|
-
}
|
|
54
|
-
.text-renderer {
|
|
55
|
-
width: 100%;
|
|
56
|
-
}
|
|
57
|
-
`;
|
|
58
|
-
export const getTextRendererTemplate = (designSystem = 'foundation') => {
|
|
59
|
-
const textComponent = `${designSystem}-text-field`;
|
|
60
|
-
return html `
|
|
61
|
-
<${textComponent}
|
|
62
|
-
${ref('textField')}
|
|
63
|
-
type="text"
|
|
64
|
-
class="text-renderer"
|
|
65
|
-
:value="${sync((x) => x.textValue)}"
|
|
66
|
-
@change="${(x, c) => x.textChanged(c.event)}"
|
|
67
|
-
></${textComponent}>
|
|
68
|
-
`;
|
|
69
|
-
};
|
|
70
10
|
/**
|
|
71
|
-
*
|
|
11
|
+
* @public
|
|
12
|
+
* @deprecated - Use textFieldRendererStyles instead
|
|
13
|
+
*/
|
|
14
|
+
export const textRendererStyles = textFieldRendererStyles;
|
|
15
|
+
/**
|
|
16
|
+
* @public
|
|
17
|
+
* @deprecated - Use getTextFieldRendererTemplate instead
|
|
18
|
+
*/
|
|
19
|
+
export const getTextRendererTemplate = getTextFieldRendererTemplate;
|
|
20
|
+
/**
|
|
21
|
+
* The Foundation Text Renderer registry.
|
|
72
22
|
*
|
|
73
23
|
* @public
|
|
24
|
+
* @deprecated - Use foundationAgTextFieldRenderer instead
|
|
74
25
|
* @remarks
|
|
75
26
|
* HTML Element: \<foundation-grid-text-renderer\>
|
|
76
27
|
*/
|
|
@@ -2,6 +2,11 @@ import { __decorate } from "tslib";
|
|
|
2
2
|
import { customElement, observable } from '@microsoft/fast-element';
|
|
3
3
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
4
4
|
import { ColumnTemplate as template } from './column.template';
|
|
5
|
+
/**
|
|
6
|
+
* The Grid Pro Column element.
|
|
7
|
+
* @remarks Used insde the Grid Pro element, to specify the column definitions (ColDef) for a given column.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
5
10
|
let GridColumn = class GridColumn extends FoundationElement {
|
|
6
11
|
constructor() {
|
|
7
12
|
super(...arguments);
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
|
+
/**
|
|
3
|
+
* Custom Drag n Drop CSS for Grid Pro.
|
|
4
|
+
* @remarks helps with color and background issues when dragging a column.
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
2
7
|
export const agHeadCSS = css `
|
|
3
8
|
.ag-dnd-ghost {
|
|
4
9
|
background: var(--ag-header-background-color, var(--ag-background-color, #1f2126));
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { AgGridTheme } from '../grid-pro.types';
|
|
2
|
+
/**
|
|
3
|
+
* The AG Alpine font face used on ag-theme-alpine/ag-theme-alpine-dark Grid Pro themes.
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
2
6
|
export const agGridAlpineFontFace = `
|
|
3
7
|
@font-face {
|
|
4
8
|
font-family: "agGridAlpine";
|
|
@@ -7,6 +11,10 @@ export const agGridAlpineFontFace = `
|
|
|
7
11
|
font-style: normal;
|
|
8
12
|
}
|
|
9
13
|
`;
|
|
14
|
+
/**
|
|
15
|
+
* The AG Balham font face used on ag-theme-balham/ag-theme-balham-dark Grid Pro themes.
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
10
18
|
export const agGridBalhamFontFace = `
|
|
11
19
|
@font-face {
|
|
12
20
|
font-family: "agGridBalham";
|
|
@@ -15,6 +23,10 @@ export const agGridBalhamFontFace = `
|
|
|
15
23
|
font-style: normal;
|
|
16
24
|
}
|
|
17
25
|
`;
|
|
26
|
+
/**
|
|
27
|
+
* The AG Material font face used on ag-theme-material Grid Pro theme.
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
18
30
|
export const agGridMaterialFontFace = `
|
|
19
31
|
@font-face {
|
|
20
32
|
font-family: "agGridMaterial";
|
|
@@ -23,6 +35,10 @@ export const agGridMaterialFontFace = `
|
|
|
23
35
|
font-style: normal;
|
|
24
36
|
}
|
|
25
37
|
`;
|
|
38
|
+
/**
|
|
39
|
+
* Font Face map with all the font faces for each theme.
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
26
42
|
export const agThemeFontFaceMap = {
|
|
27
43
|
[AgGridTheme.alpine]: agGridAlpineFontFace,
|
|
28
44
|
[AgGridTheme.alpineDark]: agGridAlpineFontFace,
|
|
@@ -30,4 +46,9 @@ export const agThemeFontFaceMap = {
|
|
|
30
46
|
[AgGridTheme.balhamDark]: agGridBalhamFontFace,
|
|
31
47
|
[AgGridTheme.material]: agGridMaterialFontFace,
|
|
32
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* The default font face for Grid Pro (agGridAlpine).
|
|
51
|
+
* @remarks this will change to Roboto.
|
|
52
|
+
* @public
|
|
53
|
+
*/
|
|
33
54
|
export const defaultAgGridFontFace = agGridAlpineFontFace;
|
|
@@ -5,6 +5,11 @@ import { agThemeAlpineNofontsCSS } from './ag-theme-alpine-no-font-css';
|
|
|
5
5
|
import { agThemeBalhamNofontsCSS } from './ag-theme-balham-no-font-css';
|
|
6
6
|
import { agThemeMaterialNofontsCSS } from './ag-theme-material-no-font-css';
|
|
7
7
|
export * from './fonts';
|
|
8
|
+
/**
|
|
9
|
+
* All External AG Grid Stock in one CSS.
|
|
10
|
+
* @remarks This is a collection of multiple AG themes, only needed if the target element needs more than one stock theme.
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
8
13
|
export const agExternalStockStyles = css `
|
|
9
14
|
${agGridCSS}
|
|
10
15
|
${agHeadCSS}
|
|
@@ -12,4 +17,8 @@ export const agExternalStockStyles = css `
|
|
|
12
17
|
${agThemeBalhamNofontsCSS}
|
|
13
18
|
${agThemeMaterialNofontsCSS}
|
|
14
19
|
`;
|
|
20
|
+
/**
|
|
21
|
+
* All available External AG Grid Stock CSS.
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
15
24
|
export { agGridCSS, agHeadCSS, agThemeAlpineNofontsCSS, agThemeBalhamNofontsCSS, agThemeMaterialNofontsCSS, };
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import { foundationGridProActionRenderer, foundationGridProActionsMenuRenderer, foundationAgBooleanRenderer, foundationAgSelectRenderer, foundationAgTextRenderer, } from './cell-renderers';
|
|
1
|
+
import { foundationGridProActionRenderer, foundationGridProActionsMenuRenderer, foundationAgBooleanRenderer, foundationAgSelectRenderer, foundationAgTextRenderer, foundationAgTextFieldRenderer, } from './cell-renderers';
|
|
2
2
|
import { foundationGridPro } from './grid-pro';
|
|
3
|
+
/**
|
|
4
|
+
* The Grid Pro Components.
|
|
5
|
+
* @remarks Contains all available components, from Grid Pro itself to the cell renderers.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
3
8
|
export const foundationGridComponents = {
|
|
4
9
|
foundationGridProActionRenderer,
|
|
5
10
|
foundationGridProActionsMenuRenderer,
|
|
6
11
|
foundationAgBooleanRenderer,
|
|
7
12
|
foundationAgTextRenderer,
|
|
13
|
+
foundationAgTextFieldRenderer,
|
|
8
14
|
foundationAgSelectRenderer,
|
|
9
15
|
foundationGridPro,
|
|
10
16
|
register(container, ...rest) {
|
|
@@ -86,11 +86,14 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
86
86
|
}
|
|
87
87
|
logger.warn(`Application not connected, falling back to local columnDefs/rowData`);
|
|
88
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* @public
|
|
91
|
+
*/
|
|
89
92
|
deinit() {
|
|
90
93
|
this.reset();
|
|
91
94
|
}
|
|
92
95
|
/**
|
|
93
|
-
* Use {@link deinit} instead
|
|
96
|
+
* Use {@link @genesislcap/grid-pro#GridProGenesisDatasource#deinit} instead
|
|
94
97
|
* @deprecated
|
|
95
98
|
*/
|
|
96
99
|
reset() {
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { formatDateTimestamp, formatDateTimeTimestamp } from '@genesislcap/foundation-utils';
|
|
2
|
+
/**
|
|
3
|
+
* Returns a filter type based on the Grid Pro field/column type.
|
|
4
|
+
* @param type - The type of the field/column
|
|
5
|
+
* @returns The ag-grid filter type
|
|
6
|
+
* @remarks Currently only returns agTextColumnFilter
|
|
7
|
+
* @alpha
|
|
8
|
+
*/
|
|
2
9
|
export function getFilterByFieldType(type) {
|
|
3
10
|
switch (type) {
|
|
4
11
|
// case 'int':
|
|
@@ -14,6 +21,13 @@ export function getFilterByFieldType(type) {
|
|
|
14
21
|
return 'agTextColumnFilter';
|
|
15
22
|
}
|
|
16
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Return a column type base on each field's metadata from the selected resource.
|
|
26
|
+
* @param metadataType - The type of the field/column
|
|
27
|
+
* @returns the column type
|
|
28
|
+
* @remarks Currently only handles numeric columns
|
|
29
|
+
* @alpha
|
|
30
|
+
*/
|
|
17
31
|
export function getColumnType(metadataType) {
|
|
18
32
|
switch (metadataType === null || metadataType === void 0 ? void 0 : metadataType.toLowerCase()) {
|
|
19
33
|
case 'int':
|
|
@@ -24,6 +38,13 @@ export function getColumnType(metadataType) {
|
|
|
24
38
|
return 'numericColumn';
|
|
25
39
|
}
|
|
26
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Returns the filter params based on the Grid Pro field/column type.
|
|
43
|
+
* @param type - The type of the field/column
|
|
44
|
+
* @returns the filter params for the specified field type
|
|
45
|
+
* @remarks Currently only returns a default filter params object, for all field types
|
|
46
|
+
* @alpha
|
|
47
|
+
*/
|
|
27
48
|
export function getFilterParamsByFieldType(type) {
|
|
28
49
|
switch (type) {
|
|
29
50
|
// case FieldTypeEnum.DATE:
|
|
@@ -60,14 +81,33 @@ export function getFilterParamsByFieldType(type) {
|
|
|
60
81
|
}
|
|
61
82
|
}
|
|
62
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* Returns a formatted date value from the Grid Pro cell value.
|
|
86
|
+
* @param param - A ValueFormatterParams object.
|
|
87
|
+
* @returns A formatted date value.
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
63
90
|
export function dateValueFormatter({ value }) {
|
|
64
91
|
return formatDateTimestamp(value);
|
|
65
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* Returns a formatted date time value from the Grid Pro cell value.
|
|
95
|
+
* @param param - A ValueFormatterParams object.
|
|
96
|
+
* @returns A formatted date time value.
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
66
99
|
export function dateTimeValueFormatter({ value }) {
|
|
67
100
|
return formatDateTimeTimestamp(value);
|
|
68
101
|
}
|
|
69
102
|
// TODO: possible duplicate - need to evaluate the differences
|
|
70
103
|
const isoDateTimeSliceEnd = 19;
|
|
104
|
+
/**
|
|
105
|
+
* Returns a formatted date value from an epoch number.
|
|
106
|
+
* @param epoch - A number representing the number of milliseconds since the Unix epoch (1 January 1970 00:00:00 UTC).
|
|
107
|
+
* @returns A formatted date value.
|
|
108
|
+
* @alpha
|
|
109
|
+
* @deprecated No longer used in the Grid Pro package.
|
|
110
|
+
*/
|
|
71
111
|
export function formatDateExtra(epoch) {
|
|
72
112
|
return new Date(epoch)
|
|
73
113
|
.toISOString()
|
package/dist/esm/grid-pro.js
CHANGED
|
@@ -125,7 +125,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
125
125
|
}, DEBOUNCED_RESIZE_TIME);
|
|
126
126
|
}
|
|
127
127
|
/**
|
|
128
|
-
* If {@link gridAutosizingEnabled} is true, will remove the widths from the column states.
|
|
128
|
+
* If {@link @genesislcap/grid-pro#GridPro#gridAutosizingEnabled} is true, will remove the widths from the column states.
|
|
129
129
|
* @internal
|
|
130
130
|
*/
|
|
131
131
|
removeConfigWidthsToAutosize(colState) {
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
2
|
import { agExternalStockStyles } from './external';
|
|
3
|
+
/**
|
|
4
|
+
* The Grid Pro styles.
|
|
5
|
+
* @public
|
|
6
|
+
* @remarks this is the default CSS, bundles Alpine/Balham/Material AG themes.
|
|
7
|
+
*/
|
|
3
8
|
export const foundationGridProStyles = css `
|
|
4
9
|
${agExternalStockStyles}
|
|
5
10
|
:host {
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { CSSVarsTokenMapper } from '@genesislcap/foundation-ui';
|
|
2
2
|
import { css } from '@microsoft/fast-element';
|
|
3
|
+
/**
|
|
4
|
+
* All official AG CSS variables
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
3
7
|
export var AgGridCSSVars;
|
|
4
8
|
(function (AgGridCSSVars) {
|
|
5
9
|
AgGridCSSVars["foregroundColor"] = "--ag-foreground-color";
|
|
@@ -47,6 +51,10 @@ export var AgGridCSSVars;
|
|
|
47
51
|
AgGridCSSVars["inputFocusBoxShadow"] = "--ag-input-focus-box-shadow";
|
|
48
52
|
AgGridCSSVars["inputFocusBorderColor"] = "--ag-input-focus-border-color";
|
|
49
53
|
})(AgGridCSSVars || (AgGridCSSVars = {}));
|
|
54
|
+
/**
|
|
55
|
+
* The available Grid Pro themes.
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
50
58
|
export var AgGridTheme;
|
|
51
59
|
(function (AgGridTheme) {
|
|
52
60
|
AgGridTheme["alpine"] = "ag-theme-alpine";
|
|
@@ -55,13 +63,63 @@ export var AgGridTheme;
|
|
|
55
63
|
AgGridTheme["balhamDark"] = "ag-theme-balham-dark";
|
|
56
64
|
AgGridTheme["material"] = "ag-theme-material";
|
|
57
65
|
})(AgGridTheme || (AgGridTheme = {}));
|
|
66
|
+
/**
|
|
67
|
+
* Generates the class name for a given Grid Pro theme name.
|
|
68
|
+
* @param themeName - the Grid Pro theme name
|
|
69
|
+
* @returns the class name for the Grid Pro token map
|
|
70
|
+
* @public
|
|
71
|
+
* @example The result of this will be a class name that is applied to the grid part of GridPro template (actual content of the class comes from agThemeTokenMapCSS):
|
|
72
|
+
* ```html
|
|
73
|
+
* <span part="grid" class="ag-theme-genesis-rapid-dark">
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
58
76
|
export const agThemeTokenMapClassname = (themeName) => `${themeName}-token-map`;
|
|
77
|
+
/**
|
|
78
|
+
* Generates the id name for custom Grid Pro fonts.
|
|
79
|
+
* @param themeName - the Grid Pro theme name
|
|
80
|
+
* @returns the id name for the Grid Pro fonts
|
|
81
|
+
* @public
|
|
82
|
+
* @example The result of this is used in the id of style tag:
|
|
83
|
+
* ```html
|
|
84
|
+
* <style id="ag-theme-alpine-fonts"></style>
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
59
87
|
export const agThemeFontsId = (themeName) => `${themeName}-fonts`;
|
|
88
|
+
/**
|
|
89
|
+
* Generates the CSS for a given GridPro theme name and token map
|
|
90
|
+
* @param themeName - the GridPro theme name
|
|
91
|
+
* @param tokenMap - a map of CSS variables {@link @genesislcap/grid-pro#AgGridCSSVars} and custom token values
|
|
92
|
+
* @returns the CSS for the Grid Pro token map
|
|
93
|
+
* @public
|
|
94
|
+
* @example
|
|
95
|
+
* ```ts
|
|
96
|
+
* export const agThemeGenesisRapidTokens = {
|
|
97
|
+
* backgroundColor: create<Swatch>('rapid-ag-background-color').withDefault((elem: HTMLElement) =>
|
|
98
|
+
* baseLayerLuminance.getValueFor(elem) === StandardLuminance.LightMode
|
|
99
|
+
* ? lightColors.backgroundSwatch
|
|
100
|
+
* : darkColors.backgroundSwatch
|
|
101
|
+
* ),
|
|
102
|
+
* foregroundColor: create<Swatch>('rapid-ag-foreground-color').withDefault((elem: HTMLElement) =>
|
|
103
|
+
* baseLayerLuminance.getValueFor(elem) === StandardLuminance.LightMode
|
|
104
|
+
* ? lightColors.foregroundSwatch
|
|
105
|
+
* : darkColors.foregroundSwatch
|
|
106
|
+
* ),
|
|
107
|
+
* };
|
|
108
|
+
* export const agThemeGenesisRapidTokenMap: CSSVarTokenMap<AgGridCSSVars | string> = {
|
|
109
|
+
* [AgGridCSSVars.backgroundColor]: agThemeGenesisRapidTokens.backgroundColor,
|
|
110
|
+
* [AgGridCSSVars.foregroundColor]: agThemeGenesisRapidTokens.foregroundColor,
|
|
111
|
+
* };
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
60
114
|
export const agThemeTokenMapCSS = (themeName, tokenMap) => css `
|
|
61
115
|
.${agThemeTokenMapClassname(themeName)} {
|
|
62
116
|
${new CSSVarsTokenMapper(tokenMap)}
|
|
63
117
|
}
|
|
64
118
|
`;
|
|
119
|
+
/**
|
|
120
|
+
* The available Grid Pro Renderer Types
|
|
121
|
+
* @public
|
|
122
|
+
*/
|
|
65
123
|
export var GridProRendererTypes;
|
|
66
124
|
(function (GridProRendererTypes) {
|
|
67
125
|
GridProRendererTypes["action"] = "action";
|
package/dist/esm/index.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import * as AgcCore from '@ag-grid-community/core';
|
|
2
|
+
import * as AgcCsvExport from '@ag-grid-community/csv-export';
|
|
3
|
+
import * as AgeCore from '@ag-grid-enterprise/core';
|
|
4
|
+
import * as AgeExcelExport from '@ag-grid-enterprise/excel-export';
|
|
1
5
|
export * from './grid-pro.definitions';
|
|
2
6
|
export * from './grid-pro.styles';
|
|
3
7
|
export * from './grid-pro.template';
|
|
@@ -11,9 +15,27 @@ export * from './column';
|
|
|
11
15
|
export * from './grid-pro-genesis-datasource';
|
|
12
16
|
export * from './grid-components';
|
|
13
17
|
export * from './utils';
|
|
14
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Re-export of entire @ag-grid-community/core
|
|
20
|
+
*/
|
|
21
|
+
export { AgcCore };
|
|
22
|
+
/**
|
|
23
|
+
* Re-export of ClientSideRowModelModule from @ag-grid-community/client-side-row-model
|
|
24
|
+
*/
|
|
15
25
|
export { ClientSideRowModelModule as AgcCSRMModule } from '@ag-grid-community/client-side-row-model';
|
|
16
|
-
|
|
17
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Re-export of entire @ag-grid-community/csv-export
|
|
28
|
+
*/
|
|
29
|
+
export { AgcCsvExport };
|
|
30
|
+
/**
|
|
31
|
+
* Re-export of entire @ag-grid-enterprise/core
|
|
32
|
+
*/
|
|
33
|
+
export { AgeCore };
|
|
34
|
+
/**
|
|
35
|
+
* Re-export of ServerSideRowModelModule from @ag-grid-enterprise/server-side-row-model
|
|
36
|
+
*/
|
|
18
37
|
export { ServerSideRowModelModule as AgeSSRMModule } from '@ag-grid-enterprise/server-side-row-model';
|
|
19
|
-
|
|
38
|
+
/**
|
|
39
|
+
* Re-export of entire @ag-grid-enterprise/excel-export
|
|
40
|
+
*/
|
|
41
|
+
export { AgeExcelExport };
|
package/dist/esm/style/colors.js
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import { parseColorHexRGB } from '@microsoft/fast-colors';
|
|
2
2
|
import { SwatchRGB } from '@microsoft/fast-components';
|
|
3
|
+
/**
|
|
4
|
+
* The background color swatch.
|
|
5
|
+
* @deprecated - only used in the deprecated ag-theme-material theme
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
3
8
|
export const backgroundSwatch = SwatchRGB.from(parseColorHexRGB('#4c4c4c'));
|
|
9
|
+
/**
|
|
10
|
+
* The foreground color swatch.
|
|
11
|
+
* @deprecated - only used in the deprecated ag-theme-material theme
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
4
14
|
export const foregroundSwatch = SwatchRGB.from(parseColorHexRGB('#c01754'));
|
package/dist/esm/style/tokens.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { DesignToken } from '@microsoft/fast-foundation';
|
|
2
2
|
import { backgroundSwatch, foregroundSwatch } from './colors';
|
|
3
3
|
const { create } = DesignToken;
|
|
4
|
+
/**
|
|
5
|
+
* The design tokens for the ag-theme-material theme.
|
|
6
|
+
* @deprecated - use no usage in the codebase
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
4
9
|
export const agThemeMaterialCustomTokens = {
|
|
5
10
|
foregroundColor: create('fui-ag-foreground-color').withDefault(foregroundSwatch),
|
|
6
11
|
backgroundColor: create('fui-ag-background-color').withDefault(backgroundSwatch),
|