@genesislcap/rapid-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 +782 -198
- package/dist/dts/cell-formatters/action.formatter.d.ts +12 -0
- package/dist/dts/cell-formatters/action.formatter.d.ts.map +1 -0
- package/dist/dts/cell-formatters/actions-menu.formatter.d.ts +12 -0
- package/dist/dts/cell-formatters/actions-menu.formatter.d.ts.map +1 -0
- package/dist/dts/cell-formatters/boolean.formatter.d.ts +12 -0
- package/dist/dts/cell-formatters/boolean.formatter.d.ts.map +1 -0
- package/dist/dts/cell-formatters/editable.formatter.d.ts +12 -0
- package/dist/dts/cell-formatters/editable.formatter.d.ts.map +1 -0
- package/dist/dts/cell-formatters/index.d.ts +25 -0
- package/dist/dts/cell-formatters/index.d.ts.map +1 -0
- package/dist/dts/cell-formatters/select.formatter.d.ts +12 -0
- package/dist/dts/cell-formatters/select.formatter.d.ts.map +1 -0
- package/dist/dts/cell-formatters/text.formatter.d.ts +12 -0
- package/dist/dts/cell-formatters/text.formatter.d.ts.map +1 -0
- package/dist/dts/grid-tabulator.d.ts +1 -2
- package/dist/dts/grid-tabulator.d.ts.map +1 -1
- package/dist/dts/index.d.ts +6 -5
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/utils/index.d.ts +2 -0
- package/dist/dts/utils/index.d.ts.map +1 -0
- package/dist/dts/utils/init-grid.d.ts +9 -0
- package/dist/dts/utils/init-grid.d.ts.map +1 -0
- package/dist/esm/cell-formatters/action.formatter.js +14 -0
- package/dist/esm/cell-formatters/actions-menu.formatter.js +14 -0
- package/dist/esm/cell-formatters/boolean.formatter.js +14 -0
- package/dist/esm/cell-formatters/editable.formatter.js +14 -0
- package/dist/esm/cell-formatters/index.js +27 -0
- package/dist/esm/cell-formatters/select.formatter.js +14 -0
- package/dist/esm/cell-formatters/text.formatter.js +14 -0
- package/dist/esm/grid-tabulator.js +7 -5
- package/dist/esm/index.js +6 -5
- package/dist/esm/utils/index.js +1 -0
- package/dist/esm/utils/init-grid.js +10 -0
- package/package.json +14 -14
- package/dist/dts/cell-renderers/action.renderer.d.ts +0 -23
- 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 -39
- package/dist/esm/cell-renderers/index.js +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ActionFormatterParams } from '@genesislcap/grid-tabulator';
|
|
2
|
+
/**
|
|
3
|
+
* Rapid-styled action formatter for Tabulator.
|
|
4
|
+
* This simply uses the base formatter with the 'rapid' prefix.
|
|
5
|
+
*
|
|
6
|
+
* @param cell - The cell component provided by Tabulator
|
|
7
|
+
* @param formatterParams - Action formatter parameters
|
|
8
|
+
* @returns HTML content for the action button with Rapid styling
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export declare function actionFormatter(cell: any, formatterParams?: ActionFormatterParams): string;
|
|
12
|
+
//# sourceMappingURL=action.formatter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.formatter.d.ts","sourceRoot":"","sources":["../../../src/cell-formatters/action.formatter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,qBAAqB,EACtB,MAAM,6BAA6B,CAAC;AAErC;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,EAAE,eAAe,GAAE,qBAA0B,GAAG,MAAM,CAM9F"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ActionsMenuFormatterParams } from '@genesislcap/grid-tabulator';
|
|
2
|
+
/**
|
|
3
|
+
* Rapid-styled actions menu formatter for Tabulator.
|
|
4
|
+
* This simply uses the base formatter with the 'rapid' prefix.
|
|
5
|
+
*
|
|
6
|
+
* @param cell - The cell component provided by Tabulator
|
|
7
|
+
* @param formatterParams - Actions menu formatter parameters
|
|
8
|
+
* @returns HTML content for the actions menu with Rapid styling
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export declare function actionsMenuFormatter(cell: any, formatterParams?: ActionsMenuFormatterParams): string;
|
|
12
|
+
//# sourceMappingURL=actions-menu.formatter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions-menu.formatter.d.ts","sourceRoot":"","sources":["../../../src/cell-formatters/actions-menu.formatter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,0BAA0B,EAC3B,MAAM,6BAA6B,CAAC;AAErC;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,GAAG,EACT,eAAe,GAAE,0BAA+B,GAC/C,MAAM,CAMR"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BooleanFormatterParams } from '@genesislcap/grid-tabulator';
|
|
2
|
+
/**
|
|
3
|
+
* Rapid-styled boolean formatter for Tabulator.
|
|
4
|
+
* This simply uses the base formatter with the 'rapid' prefix.
|
|
5
|
+
*
|
|
6
|
+
* @param cell - The cell component provided by Tabulator
|
|
7
|
+
* @param formatterParams - Boolean formatter parameters
|
|
8
|
+
* @returns HTML content for the boolean value with Rapid styling
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export declare function booleanFormatter(cell: any, formatterParams?: BooleanFormatterParams): string;
|
|
12
|
+
//# sourceMappingURL=boolean.formatter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boolean.formatter.d.ts","sourceRoot":"","sources":["../../../src/cell-formatters/boolean.formatter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,sBAAsB,EACvB,MAAM,6BAA6B,CAAC;AAErC;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,EAAE,eAAe,GAAE,sBAA2B,GAAG,MAAM,CAMhG"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EditableFormatterParams } from '@genesislcap/grid-tabulator';
|
|
2
|
+
/**
|
|
3
|
+
* Rapid-styled editable formatter for Tabulator.
|
|
4
|
+
* This simply uses the base formatter with the 'rapid' prefix.
|
|
5
|
+
*
|
|
6
|
+
* @param cell - The cell component provided by Tabulator
|
|
7
|
+
* @param formatterParams - Editable formatter parameters
|
|
8
|
+
* @returns HTML content for the editable value with Rapid styling
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export declare function editableFormatter(cell: any, formatterParams?: EditableFormatterParams): string;
|
|
12
|
+
//# sourceMappingURL=editable.formatter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editable.formatter.d.ts","sourceRoot":"","sources":["../../../src/cell-formatters/editable.formatter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,uBAAuB,EACxB,MAAM,6BAA6B,CAAC;AAErC;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,GAAG,EACT,eAAe,GAAE,uBAA4B,GAC5C,MAAM,CAMR"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cell formatters for the Rapid Grid Tabulator component.
|
|
3
|
+
* These formatters extend the ones from the core grid-tabulator package.
|
|
4
|
+
* @module cell-formatters
|
|
5
|
+
*/
|
|
6
|
+
import { ActionFormatterParams, ActionsMenuFormatterParams, BooleanFormatterParams, EditableFormatterParams, FormatterTypes, SelectFormatterParams, TextFormatterParams } from '@genesislcap/grid-tabulator';
|
|
7
|
+
import { actionFormatter as rapidActionFormatter } from './action.formatter';
|
|
8
|
+
import { actionsMenuFormatter as rapidActionsMenuFormatter } from './actions-menu.formatter';
|
|
9
|
+
import { booleanFormatter as rapidBooleanFormatter } from './boolean.formatter';
|
|
10
|
+
import { editableFormatter as rapidEditableFormatter } from './editable.formatter';
|
|
11
|
+
import { selectFormatter as rapidSelectFormatter } from './select.formatter';
|
|
12
|
+
import { textFormatter as rapidTextFormatter } from './text.formatter';
|
|
13
|
+
export { ActionFormatterParams, ActionsMenuFormatterParams, BooleanFormatterParams, EditableFormatterParams, FormatterTypes, SelectFormatterParams, TextFormatterParams, rapidActionFormatter, rapidActionsMenuFormatter, rapidBooleanFormatter, rapidEditableFormatter, rapidSelectFormatter, rapidTextFormatter, };
|
|
14
|
+
/**
|
|
15
|
+
* Rapid formatters for Tabulator grid
|
|
16
|
+
*/
|
|
17
|
+
export declare const rapidFormatters: {
|
|
18
|
+
action: typeof rapidActionFormatter;
|
|
19
|
+
actionsMenu: typeof rapidActionsMenuFormatter;
|
|
20
|
+
boolean: typeof rapidBooleanFormatter;
|
|
21
|
+
editable: typeof rapidEditableFormatter;
|
|
22
|
+
select: typeof rapidSelectFormatter;
|
|
23
|
+
text: typeof rapidTextFormatter;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cell-formatters/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAC1B,sBAAsB,EACtB,uBAAuB,EACvB,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAE,eAAe,IAAI,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,oBAAoB,IAAI,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAC7F,OAAO,EAAE,gBAAgB,IAAI,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAE,iBAAiB,IAAI,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO,EAAE,eAAe,IAAI,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,aAAa,IAAI,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAGvE,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAC1B,sBAAsB,EACtB,uBAAuB,EACvB,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,yBAAyB,EACzB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,GACnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;CAO3B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SelectFormatterParams } from '@genesislcap/grid-tabulator';
|
|
2
|
+
/**
|
|
3
|
+
* Rapid-styled select formatter for Tabulator.
|
|
4
|
+
* This simply uses the base formatter with the 'rapid' prefix.
|
|
5
|
+
*
|
|
6
|
+
* @param cell - The cell component provided by Tabulator
|
|
7
|
+
* @param formatterParams - Select formatter parameters
|
|
8
|
+
* @returns HTML content for the select value with Rapid styling
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export declare function selectFormatter(cell: any, formatterParams?: SelectFormatterParams): string;
|
|
12
|
+
//# sourceMappingURL=select.formatter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.formatter.d.ts","sourceRoot":"","sources":["../../../src/cell-formatters/select.formatter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,qBAAqB,EACtB,MAAM,6BAA6B,CAAC;AAErC;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,GAAG,EACT,eAAe,GAAE,qBAAuC,GACvD,MAAM,CAMR"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TextFormatterParams } from '@genesislcap/grid-tabulator';
|
|
2
|
+
/**
|
|
3
|
+
* Rapid-styled text formatter for Tabulator.
|
|
4
|
+
* This simply uses the base formatter with the 'rapid' prefix.
|
|
5
|
+
*
|
|
6
|
+
* @param cell - The cell component provided by Tabulator
|
|
7
|
+
* @param formatterParams - Text formatter parameters
|
|
8
|
+
* @returns HTML content for the text value with Rapid styling
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export declare function textFormatter(cell: any, formatterParams?: TextFormatterParams): string;
|
|
12
|
+
//# sourceMappingURL=text.formatter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.formatter.d.ts","sourceRoot":"","sources":["../../../src/cell-formatters/text.formatter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,mBAAmB,EACpB,MAAM,6BAA6B,CAAC;AAErC;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,EAAE,eAAe,GAAE,mBAAwB,GAAG,MAAM,CAM1F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-tabulator.d.ts","sourceRoot":"","sources":["../../src/grid-tabulator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,
|
|
1
|
+
{"version":3,"file":"grid-tabulator.d.ts","sourceRoot":"","sources":["../../src/grid-tabulator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAGb,OAAO,EACR,MAAM,6BAA6B,CAAC;AAWrC;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,aAAa;IACnD;;;OAGG;IACH,KAAK,SAAqB;IAC1B,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAK/C;;OAEG;IACH,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED;;;OAGG;IACH,IAAI,WAAW,CAAC,OAAO,EAAE,OAAO,EAoB/B;CACF;AAGD,eAAO,MAAM,+BAA+B,EAAE,cAA2C,CAAC;AAC1F,eAAO,MAAM,+BAA+B;;CAA6B,CAAC;AAE1E,eAAO,MAAM,kBAAkB;;;;;;;;;;6BAM7B,CAAC"}
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './grid-tabulator.styles';
|
|
3
|
-
export * from './grid-tabulator.template';
|
|
4
|
-
export * from './cell-renderers';
|
|
5
|
-
export * from './themes';
|
|
1
|
+
export * from './cell-formatters';
|
|
6
2
|
export * from './style';
|
|
3
|
+
export * from './themes';
|
|
4
|
+
export * from './utils';
|
|
7
5
|
export * from './grid-components';
|
|
6
|
+
export * from './grid-tabulator.styles';
|
|
7
|
+
export * from './grid-tabulator.template';
|
|
8
|
+
export * from './grid-tabulator';
|
|
8
9
|
export * from '@genesislcap/grid-tabulator';
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/dts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AAExB,cAAc,mBAAmB,CAAC;AAElC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AAEjC,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Options } from '@genesislcap/grid-tabulator';
|
|
2
|
+
/**
|
|
3
|
+
* Initialize a Rapid Grid Tabulator with Rapid-specific formatters
|
|
4
|
+
*
|
|
5
|
+
* @param options - The tabulator options
|
|
6
|
+
* @returns The options with Rapid formatters added
|
|
7
|
+
*/
|
|
8
|
+
export declare function initRapidGridTabulator(options?: Options): Options;
|
|
9
|
+
//# sourceMappingURL=init-grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init-grid.d.ts","sourceRoot":"","sources":["../../../src/utils/init-grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAGtD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,GAAE,OAAY,GAAG,OAAO,CAQrE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { actionFormatter as baseActionFormatter, } from '@genesislcap/grid-tabulator';
|
|
2
|
+
/**
|
|
3
|
+
* Rapid-styled action formatter for Tabulator.
|
|
4
|
+
* This simply uses the base formatter with the 'rapid' prefix.
|
|
5
|
+
*
|
|
6
|
+
* @param cell - The cell component provided by Tabulator
|
|
7
|
+
* @param formatterParams - Action formatter parameters
|
|
8
|
+
* @returns HTML content for the action button with Rapid styling
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export function actionFormatter(cell, formatterParams = {}) {
|
|
12
|
+
// Always use 'rapid' prefix for Rapid styling
|
|
13
|
+
return baseActionFormatter(cell, Object.assign(Object.assign({}, formatterParams), { prefix: 'rapid' }));
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { actionsMenuFormatter as baseActionsMenuFormatter, } from '@genesislcap/grid-tabulator';
|
|
2
|
+
/**
|
|
3
|
+
* Rapid-styled actions menu formatter for Tabulator.
|
|
4
|
+
* This simply uses the base formatter with the 'rapid' prefix.
|
|
5
|
+
*
|
|
6
|
+
* @param cell - The cell component provided by Tabulator
|
|
7
|
+
* @param formatterParams - Actions menu formatter parameters
|
|
8
|
+
* @returns HTML content for the actions menu with Rapid styling
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export function actionsMenuFormatter(cell, formatterParams = {}) {
|
|
12
|
+
// Always use 'rapid' prefix for Rapid styling
|
|
13
|
+
return baseActionsMenuFormatter(cell, Object.assign(Object.assign({}, formatterParams), { prefix: 'rapid' }));
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { booleanFormatter as baseBooleanFormatter, } from '@genesislcap/grid-tabulator';
|
|
2
|
+
/**
|
|
3
|
+
* Rapid-styled boolean formatter for Tabulator.
|
|
4
|
+
* This simply uses the base formatter with the 'rapid' prefix.
|
|
5
|
+
*
|
|
6
|
+
* @param cell - The cell component provided by Tabulator
|
|
7
|
+
* @param formatterParams - Boolean formatter parameters
|
|
8
|
+
* @returns HTML content for the boolean value with Rapid styling
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export function booleanFormatter(cell, formatterParams = {}) {
|
|
12
|
+
// Always use 'rapid' prefix for Rapid styling
|
|
13
|
+
return baseBooleanFormatter(cell, Object.assign(Object.assign({}, formatterParams), { prefix: 'rapid' }));
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { editableFormatter as baseEditableFormatter, } from '@genesislcap/grid-tabulator';
|
|
2
|
+
/**
|
|
3
|
+
* Rapid-styled editable formatter for Tabulator.
|
|
4
|
+
* This simply uses the base formatter with the 'rapid' prefix.
|
|
5
|
+
*
|
|
6
|
+
* @param cell - The cell component provided by Tabulator
|
|
7
|
+
* @param formatterParams - Editable formatter parameters
|
|
8
|
+
* @returns HTML content for the editable value with Rapid styling
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export function editableFormatter(cell, formatterParams = {}) {
|
|
12
|
+
// Always use 'rapid' prefix for Rapid styling
|
|
13
|
+
return baseEditableFormatter(cell, Object.assign(Object.assign({}, formatterParams), { prefix: 'rapid' }));
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cell formatters for the Rapid Grid Tabulator component.
|
|
3
|
+
* These formatters extend the ones from the core grid-tabulator package.
|
|
4
|
+
* @module cell-formatters
|
|
5
|
+
*/
|
|
6
|
+
// Import interfaces and types from the core grid-tabulator package
|
|
7
|
+
import { FormatterTypes, } from '@genesislcap/grid-tabulator';
|
|
8
|
+
// Import the Rapid-specific formatters
|
|
9
|
+
import { actionFormatter as rapidActionFormatter } from './action.formatter';
|
|
10
|
+
import { actionsMenuFormatter as rapidActionsMenuFormatter } from './actions-menu.formatter';
|
|
11
|
+
import { booleanFormatter as rapidBooleanFormatter } from './boolean.formatter';
|
|
12
|
+
import { editableFormatter as rapidEditableFormatter } from './editable.formatter';
|
|
13
|
+
import { selectFormatter as rapidSelectFormatter } from './select.formatter';
|
|
14
|
+
import { textFormatter as rapidTextFormatter } from './text.formatter';
|
|
15
|
+
// Re-export all the interfaces from foundation
|
|
16
|
+
export { FormatterTypes, rapidActionFormatter, rapidActionsMenuFormatter, rapidBooleanFormatter, rapidEditableFormatter, rapidSelectFormatter, rapidTextFormatter, };
|
|
17
|
+
/**
|
|
18
|
+
* Rapid formatters for Tabulator grid
|
|
19
|
+
*/
|
|
20
|
+
export const rapidFormatters = {
|
|
21
|
+
action: rapidActionFormatter,
|
|
22
|
+
actionsMenu: rapidActionsMenuFormatter,
|
|
23
|
+
boolean: rapidBooleanFormatter,
|
|
24
|
+
editable: rapidEditableFormatter,
|
|
25
|
+
select: rapidSelectFormatter,
|
|
26
|
+
text: rapidTextFormatter,
|
|
27
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { selectFormatter as baseSelectFormatter, } from '@genesislcap/grid-tabulator';
|
|
2
|
+
/**
|
|
3
|
+
* Rapid-styled select formatter for Tabulator.
|
|
4
|
+
* This simply uses the base formatter with the 'rapid' prefix.
|
|
5
|
+
*
|
|
6
|
+
* @param cell - The cell component provided by Tabulator
|
|
7
|
+
* @param formatterParams - Select formatter parameters
|
|
8
|
+
* @returns HTML content for the select value with Rapid styling
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export function selectFormatter(cell, formatterParams = { options: [] }) {
|
|
12
|
+
// Always use 'rapid' prefix for Rapid styling
|
|
13
|
+
return baseSelectFormatter(cell, Object.assign(Object.assign({}, formatterParams), { prefix: 'rapid' }));
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { textFormatter as baseTextFormatter, } from '@genesislcap/grid-tabulator';
|
|
2
|
+
/**
|
|
3
|
+
* Rapid-styled text formatter for Tabulator.
|
|
4
|
+
* This simply uses the base formatter with the 'rapid' prefix.
|
|
5
|
+
*
|
|
6
|
+
* @param cell - The cell component provided by Tabulator
|
|
7
|
+
* @param formatterParams - Text formatter parameters
|
|
8
|
+
* @returns HTML content for the text value with Rapid styling
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export function textFormatter(cell, formatterParams = {}) {
|
|
12
|
+
// Always use 'rapid' prefix for Rapid styling
|
|
13
|
+
return baseTextFormatter(cell, Object.assign(Object.assign({}, formatterParams), { prefix: 'rapid' }));
|
|
14
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { GridTabulator, defaultGridTabulatorConfig, gridTabulatorShadowOptions, } from '@genesislcap/grid-tabulator';
|
|
2
|
+
import { rapidFormatters } from './cell-formatters';
|
|
2
3
|
import { rapidGridTabulatorStyles as styles } from './grid-tabulator.styles';
|
|
3
4
|
import { rapidGridTabulatorTemplate as template } from './grid-tabulator.template';
|
|
4
5
|
import { themeGenesisRapidDarkName, themeGenesisRapidName } from './themes';
|
|
6
|
+
// Import formatters
|
|
5
7
|
const defaultRowHeaderHeight = 40;
|
|
6
8
|
const defaultRapidTheme = 'tabulator-theme-genesis-rapid-dark';
|
|
7
9
|
/**
|
|
@@ -32,12 +34,12 @@ export class RapidGridTabulator extends GridTabulator {
|
|
|
32
34
|
* @override
|
|
33
35
|
*/
|
|
34
36
|
set gridOptions(options) {
|
|
35
|
-
// options.components = {
|
|
36
|
-
// [GridTabulatorRendererTypes.action]: RapidAgActionRenderer,
|
|
37
|
-
// [GridTabulatorRendererTypes.actionsMenu]: RapidAgActionsMenuRenderer,
|
|
38
|
-
// [GridTabulatorRendererTypes.boolean]: RapidBooleanRenderer,
|
|
39
|
-
// };
|
|
40
37
|
var _a;
|
|
38
|
+
// Register formatters in Tabulator
|
|
39
|
+
// This extends the formatting methods for Tabulator cells
|
|
40
|
+
const formatters = options.formatters || {};
|
|
41
|
+
// Register Rapid formatters
|
|
42
|
+
options.formatters = Object.assign(Object.assign({}, rapidFormatters), formatters);
|
|
41
43
|
const isRapidTheme = this.theme === themeGenesisRapidName || this.theme === themeGenesisRapidDarkName;
|
|
42
44
|
if (isRapidTheme) {
|
|
43
45
|
// this.headerHeight = options.headerHeight ?? defaultRowHeaderHeight;
|
package/dist/esm/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './grid-tabulator.styles';
|
|
3
|
-
export * from './grid-tabulator.template';
|
|
4
|
-
export * from './cell-renderers';
|
|
5
|
-
export * from './themes';
|
|
1
|
+
export * from './cell-formatters';
|
|
6
2
|
export * from './style';
|
|
3
|
+
export * from './themes';
|
|
4
|
+
export * from './utils';
|
|
7
5
|
export * from './grid-components';
|
|
6
|
+
export * from './grid-tabulator.styles';
|
|
7
|
+
export * from './grid-tabulator.template';
|
|
8
|
+
export * from './grid-tabulator';
|
|
8
9
|
export * from '@genesislcap/grid-tabulator';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './init-grid';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { rapidFormatters } from '../cell-formatters';
|
|
2
|
+
/**
|
|
3
|
+
* Initialize a Rapid Grid Tabulator with Rapid-specific formatters
|
|
4
|
+
*
|
|
5
|
+
* @param options - The tabulator options
|
|
6
|
+
* @returns The options with Rapid formatters added
|
|
7
|
+
*/
|
|
8
|
+
export function initRapidGridTabulator(options = {}) {
|
|
9
|
+
return Object.assign(Object.assign({}, options), { formatters: Object.assign(Object.assign({}, options.formatters), rapidFormatters) });
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/rapid-grid-tabulator",
|
|
3
3
|
"description": "Genesis Rapid Grid Tabulator",
|
|
4
|
-
"version": "14.262.
|
|
4
|
+
"version": "14.262.2",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"license": "SEE LICENSE IN license.txt",
|
|
@@ -33,20 +33,20 @@
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@genesislcap/genx": "14.262.
|
|
37
|
-
"@genesislcap/rollup-builder": "14.262.
|
|
38
|
-
"@genesislcap/ts-builder": "14.262.
|
|
39
|
-
"@genesislcap/uvu-playwright-builder": "14.262.
|
|
40
|
-
"@genesislcap/vite-builder": "14.262.
|
|
41
|
-
"@genesislcap/webpack-builder": "14.262.
|
|
36
|
+
"@genesislcap/genx": "14.262.2",
|
|
37
|
+
"@genesislcap/rollup-builder": "14.262.2",
|
|
38
|
+
"@genesislcap/ts-builder": "14.262.2",
|
|
39
|
+
"@genesislcap/uvu-playwright-builder": "14.262.2",
|
|
40
|
+
"@genesislcap/vite-builder": "14.262.2",
|
|
41
|
+
"@genesislcap/webpack-builder": "14.262.2",
|
|
42
42
|
"rimraf": "^5.0.0"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@genesislcap/foundation-comms": "14.262.
|
|
46
|
-
"@genesislcap/foundation-ui": "14.262.
|
|
47
|
-
"@genesislcap/foundation-utils": "14.262.
|
|
48
|
-
"@genesislcap/grid-tabulator": "14.262.
|
|
49
|
-
"@genesislcap/rapid-design-system": "14.262.
|
|
45
|
+
"@genesislcap/foundation-comms": "14.262.2",
|
|
46
|
+
"@genesislcap/foundation-ui": "14.262.2",
|
|
47
|
+
"@genesislcap/foundation-utils": "14.262.2",
|
|
48
|
+
"@genesislcap/grid-tabulator": "14.262.2",
|
|
49
|
+
"@genesislcap/rapid-design-system": "14.262.2",
|
|
50
50
|
"@microsoft/fast-colors": "5.3.1",
|
|
51
51
|
"@microsoft/fast-components": "2.30.6",
|
|
52
52
|
"@microsoft/fast-element": "1.14.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"tslib": "^2.3.1"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"tabulator-tables": "6.3.
|
|
58
|
+
"tabulator-tables": "6.3.1"
|
|
59
59
|
},
|
|
60
60
|
"repository": {
|
|
61
61
|
"type": "git",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
68
|
"customElements": "dist/custom-elements.json",
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "d4c7eaf9af2757646daf831ea8f2ce0c075832c0"
|
|
70
70
|
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ActionRenderer } from '@genesislcap/grid-tabulator';
|
|
2
|
-
/**
|
|
3
|
-
* @tagname %%prefix%%-grid-tabulator-action-renderer
|
|
4
|
-
*/
|
|
5
|
-
export declare class RapidTabulatorActionRenderer extends ActionRenderer {
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* The Rapid Action Renderer
|
|
9
|
-
*
|
|
10
|
-
* @public
|
|
11
|
-
* @remarks
|
|
12
|
-
* HTML Element: \<rapid-grid-tabulator-action-renderer\>
|
|
13
|
-
*/
|
|
14
|
-
export declare const rapidTabulatorActionRenderer: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
15
|
-
baseName: string;
|
|
16
|
-
styles: import("@microsoft/fast-element").ElementStyles;
|
|
17
|
-
template: import("@microsoft/fast-element").ViewTemplate<RapidTabulatorActionRenderer, any>;
|
|
18
|
-
}>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
|
|
19
|
-
baseName: string;
|
|
20
|
-
styles: import("@microsoft/fast-element").ElementStyles;
|
|
21
|
-
template: import("@microsoft/fast-element").ViewTemplate<RapidTabulatorActionRenderer, any>;
|
|
22
|
-
}, typeof RapidTabulatorActionRenderer>;
|
|
23
|
-
//# 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":"AAAA,OAAO,EAAE,cAAc,EAAiC,MAAM,6BAA6B,CAAC;AAG5F;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,cAAc;CAAG;AAEnE;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;uCAyBvC,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,39 +0,0 @@
|
|
|
1
|
-
import { ActionRenderer, tabulatorActionRendererStyles } from '@genesislcap/grid-tabulator';
|
|
2
|
-
import { css, html } from '@microsoft/fast-element';
|
|
3
|
-
/**
|
|
4
|
-
* @tagname %%prefix%%-grid-tabulator-action-renderer
|
|
5
|
-
*/
|
|
6
|
-
export class RapidTabulatorActionRenderer extends ActionRenderer {
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* The Rapid Action Renderer
|
|
10
|
-
*
|
|
11
|
-
* @public
|
|
12
|
-
* @remarks
|
|
13
|
-
* HTML Element: \<rapid-grid-tabulator-action-renderer\>
|
|
14
|
-
*/
|
|
15
|
-
export const rapidTabulatorActionRenderer = RapidTabulatorActionRenderer.compose({
|
|
16
|
-
baseName: 'grid-tabulator-action-renderer',
|
|
17
|
-
styles: css `
|
|
18
|
-
${tabulatorActionRendererStyles}
|
|
19
|
-
`,
|
|
20
|
-
template: html `
|
|
21
|
-
<div class="action-container" part="action-container">
|
|
22
|
-
<rapid-button
|
|
23
|
-
class="action-renderer"
|
|
24
|
-
part="action-renderer"
|
|
25
|
-
aria-label=${(x) => x.params.actionName}
|
|
26
|
-
data-test-id="${(x) => x.dataTestId}"
|
|
27
|
-
?disabled=${(x) => x.pendingAction}
|
|
28
|
-
appearance="${(x) => x.params.appearance}"
|
|
29
|
-
@click=${(x) => x.clickHandler()}
|
|
30
|
-
>
|
|
31
|
-
${(x) => x.params.contentTemplate
|
|
32
|
-
? html `
|
|
33
|
-
${x.params.contentTemplate}
|
|
34
|
-
`
|
|
35
|
-
: x.params.actionName}
|
|
36
|
-
</rapid-button>
|
|
37
|
-
</div>
|
|
38
|
-
`,
|
|
39
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './action.renderer';
|