@genesislcap/foundation-zero-grid-tabulator 14.262.1 → 14.263.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.
Files changed (41) hide show
  1. package/dist/custom-elements.json +782 -198
  2. package/dist/dts/cell-formatters/action.formatter.d.ts +12 -0
  3. package/dist/dts/cell-formatters/action.formatter.d.ts.map +1 -0
  4. package/dist/dts/cell-formatters/actions-menu.formatter.d.ts +12 -0
  5. package/dist/dts/cell-formatters/actions-menu.formatter.d.ts.map +1 -0
  6. package/dist/dts/cell-formatters/boolean.formatter.d.ts +12 -0
  7. package/dist/dts/cell-formatters/boolean.formatter.d.ts.map +1 -0
  8. package/dist/dts/cell-formatters/editable.formatter.d.ts +12 -0
  9. package/dist/dts/cell-formatters/editable.formatter.d.ts.map +1 -0
  10. package/dist/dts/cell-formatters/index.d.ts +25 -0
  11. package/dist/dts/cell-formatters/index.d.ts.map +1 -0
  12. package/dist/dts/cell-formatters/select.formatter.d.ts +12 -0
  13. package/dist/dts/cell-formatters/select.formatter.d.ts.map +1 -0
  14. package/dist/dts/cell-formatters/text.formatter.d.ts +12 -0
  15. package/dist/dts/cell-formatters/text.formatter.d.ts.map +1 -0
  16. package/dist/dts/grid-tabulator.d.ts +1 -2
  17. package/dist/dts/grid-tabulator.d.ts.map +1 -1
  18. package/dist/dts/index.d.ts +6 -5
  19. package/dist/dts/index.d.ts.map +1 -1
  20. package/dist/dts/utils/index.d.ts +2 -0
  21. package/dist/dts/utils/index.d.ts.map +1 -0
  22. package/dist/dts/utils/init-grid.d.ts +9 -0
  23. package/dist/dts/utils/init-grid.d.ts.map +1 -0
  24. package/dist/esm/cell-formatters/action.formatter.js +14 -0
  25. package/dist/esm/cell-formatters/actions-menu.formatter.js +14 -0
  26. package/dist/esm/cell-formatters/boolean.formatter.js +14 -0
  27. package/dist/esm/cell-formatters/editable.formatter.js +14 -0
  28. package/dist/esm/cell-formatters/index.js +27 -0
  29. package/dist/esm/cell-formatters/select.formatter.js +14 -0
  30. package/dist/esm/cell-formatters/text.formatter.js +14 -0
  31. package/dist/esm/grid-tabulator.js +6 -5
  32. package/dist/esm/index.js +6 -5
  33. package/dist/esm/utils/index.js +1 -0
  34. package/dist/esm/utils/init-grid.js +10 -0
  35. package/package.json +14 -14
  36. package/dist/dts/cell-renderers/action.renderer.d.ts +0 -23
  37. package/dist/dts/cell-renderers/action.renderer.d.ts.map +0 -1
  38. package/dist/dts/cell-renderers/index.d.ts +0 -2
  39. package/dist/dts/cell-renderers/index.d.ts.map +0 -1
  40. package/dist/esm/cell-renderers/action.renderer.js +0 -39
  41. package/dist/esm/cell-renderers/index.js +0 -1
@@ -0,0 +1,12 @@
1
+ import { ActionFormatterParams } from '@genesislcap/grid-tabulator';
2
+ /**
3
+ * Zero-styled action formatter for Tabulator.
4
+ * This simply uses the base formatter with the 'zero' 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 Zero 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
+ * Zero-styled actions menu formatter for Tabulator.
4
+ * This simply uses the base formatter with the 'zero' 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 Zero 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
+ * Zero-styled boolean formatter for Tabulator.
4
+ * This simply uses the base formatter with the 'zero' 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 Zero 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
+ * Zero-styled editable formatter for Tabulator.
4
+ * This simply uses the base formatter with the 'zero' 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 Zero 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 Zero 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 zeroActionFormatter } from './action.formatter';
8
+ import { actionsMenuFormatter as zeroActionsMenuFormatter } from './actions-menu.formatter';
9
+ import { booleanFormatter as zeroBooleanFormatter } from './boolean.formatter';
10
+ import { editableFormatter as zeroEditableFormatter } from './editable.formatter';
11
+ import { selectFormatter as zeroSelectFormatter } from './select.formatter';
12
+ import { textFormatter as zeroTextFormatter } from './text.formatter';
13
+ export { ActionFormatterParams, ActionsMenuFormatterParams, BooleanFormatterParams, EditableFormatterParams, FormatterTypes, SelectFormatterParams, TextFormatterParams, zeroActionFormatter, zeroActionsMenuFormatter, zeroBooleanFormatter, zeroEditableFormatter, zeroSelectFormatter, zeroTextFormatter, };
14
+ /**
15
+ * Zero formatters for Tabulator grid
16
+ */
17
+ export declare const zeroFormatters: {
18
+ action: typeof zeroActionFormatter;
19
+ actionsMenu: typeof zeroActionsMenuFormatter;
20
+ boolean: typeof zeroBooleanFormatter;
21
+ editable: typeof zeroEditableFormatter;
22
+ select: typeof zeroSelectFormatter;
23
+ text: typeof zeroTextFormatter;
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,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,oBAAoB,IAAI,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAC5F,OAAO,EAAE,gBAAgB,IAAI,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClF,OAAO,EAAE,eAAe,IAAI,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAGtE,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAC1B,sBAAsB,EACtB,uBAAuB,EACvB,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,iBAAiB,GAClB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;CAO1B,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { SelectFormatterParams } from '@genesislcap/grid-tabulator';
2
+ /**
3
+ * Zero-styled select formatter for Tabulator.
4
+ * This simply uses the base formatter with the 'zero' 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 Zero 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
+ * Zero-styled text formatter for Tabulator.
4
+ * This simply uses the base formatter with the 'zero' 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 Zero 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,5 +1,4 @@
1
- import { GridTabulator } from '@genesislcap/grid-tabulator';
2
- import { Options } from 'tabulator-tables';
1
+ import { GridTabulator, Options } from '@genesislcap/grid-tabulator';
3
2
  /**
4
3
  * @tagname %%prefix%%-grid-tabulator
5
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"grid-tabulator.d.ts","sourceRoot":"","sources":["../../src/grid-tabulator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAGd,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAQ3C;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,aAAa;IAClD;;;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,EAgB/B;CACF;AAGD,eAAO,MAAM,8BAA8B,EAAE,cAA2C,CAAC;AACzF,eAAO,MAAM,8BAA8B;;CAA6B,CAAC;AAEzE,eAAO,MAAM,iBAAiB;;;;;;;;;;4BAM5B,CAAC"}
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;AASrC;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,aAAa;IAClD;;;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,8BAA8B,EAAE,cAA2C,CAAC;AACzF,eAAO,MAAM,8BAA8B;;CAA6B,CAAC;AAEzE,eAAO,MAAM,iBAAiB;;;;;;;;;;4BAM5B,CAAC"}
@@ -1,9 +1,10 @@
1
- export * from './grid-tabulator';
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
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AAExB,cAAc,mBAAmB,CAAC;AAElC,cAAc,6BAA6B,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,2 @@
1
+ export * from './init-grid';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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 Zero Grid Tabulator with Zero-specific formatters
4
+ *
5
+ * @param options - The tabulator options
6
+ * @returns The options with Zero formatters added
7
+ */
8
+ export declare function initZeroGridTabulator(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,qBAAqB,CAAC,OAAO,GAAE,OAAY,GAAG,OAAO,CAQpE"}
@@ -0,0 +1,14 @@
1
+ import { actionFormatter as baseActionFormatter, } from '@genesislcap/grid-tabulator';
2
+ /**
3
+ * Zero-styled action formatter for Tabulator.
4
+ * This simply uses the base formatter with the 'zero' 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 Zero styling
9
+ * @public
10
+ */
11
+ export function actionFormatter(cell, formatterParams = {}) {
12
+ // Always use 'zero' prefix for Zero styling
13
+ return baseActionFormatter(cell, Object.assign(Object.assign({}, formatterParams), { prefix: 'zero' }));
14
+ }
@@ -0,0 +1,14 @@
1
+ import { actionsMenuFormatter as baseActionsMenuFormatter, } from '@genesislcap/grid-tabulator';
2
+ /**
3
+ * Zero-styled actions menu formatter for Tabulator.
4
+ * This simply uses the base formatter with the 'zero' 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 Zero styling
9
+ * @public
10
+ */
11
+ export function actionsMenuFormatter(cell, formatterParams = {}) {
12
+ // Always use 'zero' prefix for Zero styling
13
+ return baseActionsMenuFormatter(cell, Object.assign(Object.assign({}, formatterParams), { prefix: 'zero' }));
14
+ }
@@ -0,0 +1,14 @@
1
+ import { booleanFormatter as baseBooleanFormatter, } from '@genesislcap/grid-tabulator';
2
+ /**
3
+ * Zero-styled boolean formatter for Tabulator.
4
+ * This simply uses the base formatter with the 'zero' 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 Zero styling
9
+ * @public
10
+ */
11
+ export function booleanFormatter(cell, formatterParams = {}) {
12
+ // Always use 'zero' prefix for Zero styling
13
+ return baseBooleanFormatter(cell, Object.assign(Object.assign({}, formatterParams), { prefix: 'zero' }));
14
+ }
@@ -0,0 +1,14 @@
1
+ import { editableFormatter as baseEditableFormatter, } from '@genesislcap/grid-tabulator';
2
+ /**
3
+ * Zero-styled editable formatter for Tabulator.
4
+ * This simply uses the base formatter with the 'zero' 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 Zero styling
9
+ * @public
10
+ */
11
+ export function editableFormatter(cell, formatterParams = {}) {
12
+ // Always use 'zero' prefix for Zero styling
13
+ return baseEditableFormatter(cell, Object.assign(Object.assign({}, formatterParams), { prefix: 'zero' }));
14
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Cell formatters for the Zero 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 Zero-specific formatters
9
+ import { actionFormatter as zeroActionFormatter } from './action.formatter';
10
+ import { actionsMenuFormatter as zeroActionsMenuFormatter } from './actions-menu.formatter';
11
+ import { booleanFormatter as zeroBooleanFormatter } from './boolean.formatter';
12
+ import { editableFormatter as zeroEditableFormatter } from './editable.formatter';
13
+ import { selectFormatter as zeroSelectFormatter } from './select.formatter';
14
+ import { textFormatter as zeroTextFormatter } from './text.formatter';
15
+ // Re-export all the interfaces from foundation
16
+ export { FormatterTypes, zeroActionFormatter, zeroActionsMenuFormatter, zeroBooleanFormatter, zeroEditableFormatter, zeroSelectFormatter, zeroTextFormatter, };
17
+ /**
18
+ * Zero formatters for Tabulator grid
19
+ */
20
+ export const zeroFormatters = {
21
+ action: zeroActionFormatter,
22
+ actionsMenu: zeroActionsMenuFormatter,
23
+ boolean: zeroBooleanFormatter,
24
+ editable: zeroEditableFormatter,
25
+ select: zeroSelectFormatter,
26
+ text: zeroTextFormatter,
27
+ };
@@ -0,0 +1,14 @@
1
+ import { selectFormatter as baseSelectFormatter, } from '@genesislcap/grid-tabulator';
2
+ /**
3
+ * Zero-styled select formatter for Tabulator.
4
+ * This simply uses the base formatter with the 'zero' 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 Zero styling
9
+ * @public
10
+ */
11
+ export function selectFormatter(cell, formatterParams = { options: [] }) {
12
+ // Always use 'zero' prefix for Zero styling
13
+ return baseSelectFormatter(cell, Object.assign(Object.assign({}, formatterParams), { prefix: 'zero' }));
14
+ }
@@ -0,0 +1,14 @@
1
+ import { textFormatter as baseTextFormatter, } from '@genesislcap/grid-tabulator';
2
+ /**
3
+ * Zero-styled text formatter for Tabulator.
4
+ * This simply uses the base formatter with the 'zero' 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 Zero styling
9
+ * @public
10
+ */
11
+ export function textFormatter(cell, formatterParams = {}) {
12
+ // Always use 'zero' prefix for Zero styling
13
+ return baseTextFormatter(cell, Object.assign(Object.assign({}, formatterParams), { prefix: 'zero' }));
14
+ }
@@ -1,4 +1,5 @@
1
1
  import { GridTabulator, defaultGridTabulatorConfig, gridTabulatorShadowOptions, } from '@genesislcap/grid-tabulator';
2
+ import { zeroFormatters } from './cell-formatters';
2
3
  import { zeroGridTabulatorStyles as styles } from './grid-tabulator.styles';
3
4
  import { zeroGridTabulatorTemplate as template } from './grid-tabulator.template';
4
5
  import { themeGenesisRapidDarkName, themeGenesisRapidName } from './themes';
@@ -32,12 +33,12 @@ export class ZeroGridTabulator extends GridTabulator {
32
33
  * @override
33
34
  */
34
35
  set gridOptions(options) {
35
- // options.components = {
36
- // [GridTabulatorRendererTypes.action]: ZeroAgActionRenderer,
37
- // [GridTabulatorRendererTypes.actionsMenu]: ZeroAgActionsMenuRenderer,
38
- // [GridTabulatorRendererTypes.boolean]: ZeroBooleanRenderer,
39
- // };
40
36
  var _a;
37
+ // Register formatters in Tabulator
38
+ // This extends the formatting methods for Tabulator cells
39
+ const formatters = options.formatters || {};
40
+ // Register Zero formatters
41
+ options.formatters = Object.assign(Object.assign({}, zeroFormatters), formatters);
41
42
  const isRapidTheme = this.theme === themeGenesisRapidName || this.theme === themeGenesisRapidDarkName;
42
43
  if (isRapidTheme) {
43
44
  // this.headerHeight = options.headerHeight ?? defaultRowHeaderHeight;
package/dist/esm/index.js CHANGED
@@ -1,8 +1,9 @@
1
- export * from './grid-tabulator';
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 { zeroFormatters } from '../cell-formatters';
2
+ /**
3
+ * Initialize a Zero Grid Tabulator with Zero-specific formatters
4
+ *
5
+ * @param options - The tabulator options
6
+ * @returns The options with Zero formatters added
7
+ */
8
+ export function initZeroGridTabulator(options = {}) {
9
+ return Object.assign(Object.assign({}, options), { formatters: Object.assign(Object.assign({}, options.formatters), zeroFormatters) });
10
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-zero-grid-tabulator",
3
3
  "description": "Genesis Foundation Zero Grid Tabulator",
4
- "version": "14.262.1",
4
+ "version": "14.263.0",
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.1",
37
- "@genesislcap/rollup-builder": "14.262.1",
38
- "@genesislcap/ts-builder": "14.262.1",
39
- "@genesislcap/uvu-playwright-builder": "14.262.1",
40
- "@genesislcap/vite-builder": "14.262.1",
41
- "@genesislcap/webpack-builder": "14.262.1",
36
+ "@genesislcap/genx": "14.263.0",
37
+ "@genesislcap/rollup-builder": "14.263.0",
38
+ "@genesislcap/ts-builder": "14.263.0",
39
+ "@genesislcap/uvu-playwright-builder": "14.263.0",
40
+ "@genesislcap/vite-builder": "14.263.0",
41
+ "@genesislcap/webpack-builder": "14.263.0",
42
42
  "rimraf": "^5.0.0"
43
43
  },
44
44
  "dependencies": {
45
- "@genesislcap/foundation-comms": "14.262.1",
46
- "@genesislcap/foundation-ui": "14.262.1",
47
- "@genesislcap/foundation-utils": "14.262.1",
48
- "@genesislcap/foundation-zero": "14.262.1",
49
- "@genesislcap/grid-tabulator": "14.262.1",
45
+ "@genesislcap/foundation-comms": "14.263.0",
46
+ "@genesislcap/foundation-ui": "14.263.0",
47
+ "@genesislcap/foundation-utils": "14.263.0",
48
+ "@genesislcap/foundation-zero": "14.263.0",
49
+ "@genesislcap/grid-tabulator": "14.263.0",
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.0"
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": "cb79ea22c0027e331354fceac7ff86fa587d65dc"
69
+ "gitHead": "c1e36a1300a4d8e160aeb00831d0f940b0bde437"
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 ZeroTabulatorActionRenderer extends ActionRenderer {
6
- }
7
- /**
8
- * The Zero Action Renderer
9
- *
10
- * @public
11
- * @remarks
12
- * HTML Element: \<zero-grid-tabulator-action-renderer\>
13
- */
14
- export declare const zeroTabulatorActionRenderer: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
15
- baseName: string;
16
- styles: import("@microsoft/fast-element").ElementStyles;
17
- template: import("@microsoft/fast-element").ViewTemplate<ZeroTabulatorActionRenderer, any>;
18
- }>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
19
- baseName: string;
20
- styles: import("@microsoft/fast-element").ElementStyles;
21
- template: import("@microsoft/fast-element").ViewTemplate<ZeroTabulatorActionRenderer, any>;
22
- }, typeof ZeroTabulatorActionRenderer>;
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,2BAA4B,SAAQ,cAAc;CAAG;AAElE;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;sCAyBtC,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './action.renderer';
2
- //# sourceMappingURL=index.d.ts.map
@@ -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 ZeroTabulatorActionRenderer extends ActionRenderer {
7
- }
8
- /**
9
- * The Zero Action Renderer
10
- *
11
- * @public
12
- * @remarks
13
- * HTML Element: \<zero-grid-tabulator-action-renderer\>
14
- */
15
- export const zeroTabulatorActionRenderer = ZeroTabulatorActionRenderer.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
- <zero-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
- </zero-button>
37
- </div>
38
- `,
39
- });
@@ -1 +0,0 @@
1
- export * from './action.renderer';