@economic/taco 2.54.0 → 2.55.0-settings.1

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 (60) hide show
  1. package/dist/components/Provider/Provider.d.ts +7 -6
  2. package/dist/components/Provider/TacoContext.d.ts +7 -0
  3. package/dist/components/Provider/useTacoSettings.d.ts +8 -0
  4. package/dist/components/Report/Report.d.ts +1 -1
  5. package/dist/esm/packages/taco/src/components/Provider/Provider.js +14 -7
  6. package/dist/esm/packages/taco/src/components/Provider/Provider.js.map +1 -1
  7. package/dist/esm/packages/taco/src/components/Provider/TacoContext.js +6 -0
  8. package/dist/esm/packages/taco/src/components/Provider/TacoContext.js.map +1 -0
  9. package/dist/esm/packages/taco/src/components/Provider/useTacoSettings.js +39 -0
  10. package/dist/esm/packages/taco/src/components/Provider/useTacoSettings.js.map +1 -0
  11. package/dist/esm/packages/taco/src/components/Report/Report.js +8 -0
  12. package/dist/esm/packages/taco/src/components/Report/Report.js.map +1 -1
  13. package/dist/esm/packages/taco/src/components/Table3/Table3.js +8 -0
  14. package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
  15. package/dist/esm/packages/taco/src/hooks/useTaco.js +9 -0
  16. package/dist/esm/packages/taco/src/hooks/useTaco.js.map +1 -0
  17. package/dist/esm/packages/taco/src/index.js +1 -1
  18. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.js +6 -4
  19. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/Toolbar.js.map +1 -1
  20. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js +9 -5
  21. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js.map +1 -1
  22. package/dist/esm/packages/taco/src/primitives/Table/Core/useTable.js.map +1 -1
  23. package/dist/esm/packages/taco/src/primitives/Table/types.js.map +1 -1
  24. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTablePrinting.js +18 -21
  25. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTablePrinting.js.map +1 -1
  26. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js +2 -2
  27. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActive.js.map +1 -1
  28. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSettingsListener.js +57 -9
  29. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/listeners/useTableSettingsListener.js.map +1 -1
  30. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js +7 -5
  31. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js.map +1 -1
  32. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableSettingsPreloader.js +44 -0
  33. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableSettingsPreloader.js.map +1 -0
  34. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/settings.js +3 -1
  35. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/settings.js.map +1 -1
  36. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js +5 -2
  37. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js.map +1 -1
  38. package/dist/hooks/useTaco.d.ts +1 -0
  39. package/dist/primitives/Table/Core/features/useTableRenderer.d.ts +2 -2
  40. package/dist/primitives/Table/Core/useTable.d.ts +4 -4
  41. package/dist/primitives/Table/types.d.ts +16 -6
  42. package/dist/primitives/Table/useTableManager/features/useTablePrinting.d.ts +2 -8
  43. package/dist/primitives/Table/useTableManager/features/useTableRowActive.d.ts +2 -2
  44. package/dist/primitives/Table/useTableManager/listeners/useTableSettingsListener.d.ts +2 -2
  45. package/dist/primitives/Table/useTableManager/useTableSettingsPreloader.d.ts +3 -0
  46. package/dist/primitives/Table/useTableManager/util/settings.d.ts +2 -0
  47. package/dist/taco.cjs.development.js +195 -153
  48. package/dist/taco.cjs.development.js.map +1 -1
  49. package/dist/taco.cjs.production.min.js +1 -1
  50. package/dist/taco.cjs.production.min.js.map +1 -1
  51. package/package.json +2 -2
  52. package/dist/esm/packages/taco/src/hooks/useLocalStorage.js +0 -44
  53. package/dist/esm/packages/taco/src/hooks/useLocalStorage.js.map +0 -1
  54. package/dist/esm/packages/taco/src/hooks/useTacoSettings.js +0 -9
  55. package/dist/esm/packages/taco/src/hooks/useTacoSettings.js.map +0 -1
  56. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableSettings.js +0 -69
  57. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableSettings.js.map +0 -1
  58. package/dist/hooks/useLocalStorage.d.ts +0 -2
  59. package/dist/hooks/useTacoSettings.d.ts +0 -1
  60. package/dist/primitives/Table/useTableManager/features/useTableSettings.d.ts +0 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@economic/taco",
3
- "version": "2.54.0",
3
+ "version": "2.55.0-settings.1",
4
4
  "description": "E-conomic's Design System",
5
5
  "author": "Matt Daly <matthew.daly@visma.com>",
6
6
  "homepage": "https://github.com/e-conomic/taco#readme",
@@ -129,5 +129,5 @@
129
129
  "not ie < 11"
130
130
  ]
131
131
  },
132
- "gitHead": "aa449c344372bd0fea356ebca8b99ffb734d23bd"
132
+ "gitHead": "39d45011b52a720cd2b6c3ca769bcea92a09d47e"
133
133
  }
@@ -1,44 +0,0 @@
1
- import React__default from 'react';
2
-
3
- const useLocalStorage = (key, initialValue) => {
4
- const [state, setState] = React__default.useState(() => {
5
- if (!key) {
6
- return initialValue;
7
- }
8
- try {
9
- const localStorageValue = localStorage.getItem(key);
10
- if (typeof localStorageValue !== 'string') {
11
- localStorage.setItem(key, JSON.stringify(initialValue));
12
- return initialValue;
13
- } else {
14
- return JSON.parse(localStorageValue || 'null');
15
- }
16
- } catch {
17
- // If user is in private mode or has storage restriction
18
- // localStorage can throw. JSON.parse and JSON.stringify
19
- // can throw, too.
20
- return initialValue;
21
- }
22
- });
23
- React__default.useEffect(() => {
24
- if (!key) {
25
- return;
26
- }
27
- try {
28
- const serializedState = JSON.stringify(state);
29
- localStorage.setItem(key, serializedState);
30
- } catch {
31
- // If user is in private mode or has storage restriction
32
- // localStorage can throw. Also JSON.stringify can throw.
33
- }
34
- }, [key, state]);
35
- const clear = () => {
36
- if (key) {
37
- localStorage.removeItem(key);
38
- }
39
- };
40
- return [state, setState, clear];
41
- };
42
-
43
- export { useLocalStorage };
44
- //# sourceMappingURL=useLocalStorage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useLocalStorage.js","sources":["../../../../../../src/hooks/useLocalStorage.ts"],"sourcesContent":["import React from 'react';\n\nexport const useLocalStorage = <TType>(\n key?: string,\n initialValue?: TType\n): [TType, React.Dispatch<React.SetStateAction<TType>>, () => void] => {\n const [state, setState] = React.useState<TType>(() => {\n if (!key) {\n return initialValue;\n }\n\n try {\n const localStorageValue = localStorage.getItem(key);\n\n if (typeof localStorageValue !== 'string') {\n localStorage.setItem(key, JSON.stringify(initialValue));\n return initialValue;\n } else {\n return JSON.parse(localStorageValue || 'null');\n }\n } catch {\n // If user is in private mode or has storage restriction\n // localStorage can throw. JSON.parse and JSON.stringify\n // can throw, too.\n return initialValue;\n }\n });\n\n React.useEffect(() => {\n if (!key) {\n return;\n }\n\n try {\n const serializedState = JSON.stringify(state);\n localStorage.setItem(key, serializedState);\n } catch {\n // If user is in private mode or has storage restriction\n // localStorage can throw. Also JSON.stringify can throw.\n }\n }, [key, state]);\n\n const clear = () => {\n if (key) {\n localStorage.removeItem(key);\n }\n };\n\n return [state, setState, clear];\n};\n"],"names":["useLocalStorage","key","initialValue","state","setState","React","useState","localStorageValue","localStorage","getItem","setItem","JSON","stringify","parse","useEffect","serializedState","clear","removeItem"],"mappings":";;MAEaA,eAAe,GAAGA,CAC3BC,GAAY,EACZC,YAAoB;EAEpB,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAGC,cAAK,CAACC,QAAQ,CAAQ;IAC5C,IAAI,CAACL,GAAG,EAAE;MACN,OAAOC,YAAY;;IAGvB,IAAI;MACA,MAAMK,iBAAiB,GAAGC,YAAY,CAACC,OAAO,CAACR,GAAG,CAAC;MAEnD,IAAI,OAAOM,iBAAiB,KAAK,QAAQ,EAAE;QACvCC,YAAY,CAACE,OAAO,CAACT,GAAG,EAAEU,IAAI,CAACC,SAAS,CAACV,YAAY,CAAC,CAAC;QACvD,OAAOA,YAAY;OACtB,MAAM;QACH,OAAOS,IAAI,CAACE,KAAK,CAACN,iBAAiB,IAAI,MAAM,CAAC;;KAErD,CAAC,MAAM;;;;MAIJ,OAAOL,YAAY;;GAE1B,CAAC;EAEFG,cAAK,CAACS,SAAS,CAAC;IACZ,IAAI,CAACb,GAAG,EAAE;MACN;;IAGJ,IAAI;MACA,MAAMc,eAAe,GAAGJ,IAAI,CAACC,SAAS,CAACT,KAAK,CAAC;MAC7CK,YAAY,CAACE,OAAO,CAACT,GAAG,EAAEc,eAAe,CAAC;KAC7C,CAAC,MAAM;;;;GAIX,EAAE,CAACd,GAAG,EAAEE,KAAK,CAAC,CAAC;EAEhB,MAAMa,KAAK,GAAGA;IACV,IAAIf,GAAG,EAAE;MACLO,YAAY,CAACS,UAAU,CAAChB,GAAG,CAAC;;GAEnC;EAED,OAAO,CAACE,KAAK,EAAEC,QAAQ,EAAEY,KAAK,CAAC;AACnC;;;;"}
@@ -1,9 +0,0 @@
1
- import React__default from 'react';
2
- import { TacoContext } from '../components/Provider/Provider.js';
3
-
4
- function useTacoSettings() {
5
- return React__default.useContext(TacoContext);
6
- }
7
-
8
- export { useTacoSettings };
9
- //# sourceMappingURL=useTacoSettings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useTacoSettings.js","sources":["../../../../../../src/hooks/useTacoSettings.ts"],"sourcesContent":["import React from 'react';\nimport { TacoContext } from '../components/Provider/Provider';\n\nexport function useTacoSettings() {\n return React.useContext(TacoContext);\n}\n"],"names":["useTacoSettings","React","useContext","TacoContext"],"mappings":";;;SAGgBA,eAAeA;EAC3B,OAAOC,cAAK,CAACC,UAAU,CAACC,WAAW,CAAC;AACxC;;;;"}
@@ -1,69 +0,0 @@
1
- import React__default from 'react';
2
- import { useTacoSettings } from '../../../../hooks/useTacoSettings.js';
3
- import { useLocalStorage } from '../../../../hooks/useLocalStorage.js';
4
-
5
- const DEFAULT_ENABLED_OPTIONS = {
6
- columnOrder: true,
7
- columnPinning: true,
8
- columnSizing: true,
9
- columnVisibility: true,
10
- excludeUnmatchedRecordsInSearch: true,
11
- fontSize: true,
12
- grouping: true,
13
- rowHeight: true,
14
- sorting: true
15
- };
16
- function useUniqueTableId(tableId) {
17
- const tacoSettings = useTacoSettings();
18
- return `taco.${tacoSettings.uniqueUserIdentifier}.table.${tableId}.settings`;
19
- }
20
- function useEnabledSettings(isEnabled) {
21
- return React__default.useMemo(() => {
22
- if (isEnabled === false) {
23
- return [Object.keys(DEFAULT_ENABLED_OPTIONS).reduce((o, key) => ({
24
- ...o,
25
- [key]: false
26
- }), {}), false];
27
- } else if (isEnabled === true) {
28
- return [DEFAULT_ENABLED_OPTIONS, true];
29
- }
30
- const options = {
31
- ...DEFAULT_ENABLED_OPTIONS,
32
- ...isEnabled
33
- };
34
- return [options, Object.values(options).some(o => o === true)];
35
- }, [isEnabled]);
36
- }
37
- function useTableSettings(isEnabled = false, id, defaultSettings = {}, onChangeSettings) {
38
- const uniqueId = useUniqueTableId(id);
39
- const [enabledSettings, hasSomeEnabledSettings] = useEnabledSettings(isEnabled);
40
- const [persistedSettings, _setPersistedSettings] = useLocalStorage(hasSomeEnabledSettings ? uniqueId : undefined, removeDisabledSettings(defaultSettings, enabledSettings));
41
- const setPersistedSettings = React__default.useCallback(value => {
42
- if (!hasSomeEnabledSettings) {
43
- return;
44
- }
45
- const sanitizedSettings = removeDisabledSettings(value, enabledSettings);
46
- _setPersistedSettings(sanitizedSettings);
47
- if (typeof onChangeSettings === 'function') {
48
- onChangeSettings(sanitizedSettings);
49
- }
50
- }, [hasSomeEnabledSettings, onChangeSettings, JSON.stringify(enabledSettings)]);
51
- if (!hasSomeEnabledSettings) {
52
- return [defaultSettings, () => undefined];
53
- }
54
- return [persistedSettings, setPersistedSettings];
55
- }
56
- function removeDisabledSettings(settings, enabledSettings) {
57
- const sanitizedSettings = {
58
- ...settings
59
- };
60
- Object.keys(enabledSettings).forEach(setting => {
61
- if (!enabledSettings[setting]) {
62
- delete sanitizedSettings[setting];
63
- }
64
- });
65
- return sanitizedSettings;
66
- }
67
-
68
- export { useTableSettings, useUniqueTableId };
69
- //# sourceMappingURL=useTableSettings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useTableSettings.js","sources":["../../../../../../../../../src/primitives/Table/useTableManager/features/useTableSettings.ts"],"sourcesContent":["import React from 'react';\nimport { useLocalStorage } from '../../../../hooks/useLocalStorage';\nimport { useTacoSettings } from '../../../../hooks/useTacoSettings';\nimport { TableEnableSettingsOptions, TableSettings, TableSettingsHandler } from '../../types';\n\nconst DEFAULT_ENABLED_OPTIONS = {\n columnOrder: true,\n columnPinning: true,\n columnSizing: true,\n columnVisibility: true,\n excludeUnmatchedRecordsInSearch: true,\n fontSize: true,\n grouping: true,\n rowHeight: true,\n sorting: true,\n};\n\nexport function useUniqueTableId(tableId: string) {\n const tacoSettings = useTacoSettings();\n return `taco.${tacoSettings.uniqueUserIdentifier}.table.${tableId}.settings`;\n}\n\nfunction useEnabledSettings(isEnabled: boolean | Partial<TableEnableSettingsOptions>): [TableEnableSettingsOptions, boolean] {\n return React.useMemo(() => {\n if (isEnabled === false) {\n return [\n Object.keys(DEFAULT_ENABLED_OPTIONS).reduce(\n (o, key) => ({ ...o, [key]: false }),\n {}\n ) as TableEnableSettingsOptions,\n false,\n ];\n } else if (isEnabled === true) {\n return [DEFAULT_ENABLED_OPTIONS, true];\n }\n\n const options = { ...DEFAULT_ENABLED_OPTIONS, ...isEnabled };\n return [options, Object.values(options).some(o => o === true)];\n }, [isEnabled]);\n}\n\nexport function useTableSettings(\n isEnabled: boolean | Partial<TableEnableSettingsOptions> = false,\n id: string,\n defaultSettings: TableSettings | undefined = {},\n onChangeSettings: TableSettingsHandler | undefined\n): [TableSettings, TableSettingsHandler] {\n const uniqueId = useUniqueTableId(id);\n const [enabledSettings, hasSomeEnabledSettings] = useEnabledSettings(isEnabled);\n\n const [persistedSettings, _setPersistedSettings] = useLocalStorage<TableSettings>(\n hasSomeEnabledSettings ? uniqueId : undefined,\n removeDisabledSettings(defaultSettings, enabledSettings)\n );\n\n const setPersistedSettings = React.useCallback(\n (value: TableSettings) => {\n if (!hasSomeEnabledSettings) {\n return;\n }\n\n const sanitizedSettings = removeDisabledSettings(value, enabledSettings);\n _setPersistedSettings(sanitizedSettings);\n\n if (typeof onChangeSettings === 'function') {\n onChangeSettings(sanitizedSettings);\n }\n },\n [hasSomeEnabledSettings, onChangeSettings, JSON.stringify(enabledSettings)]\n );\n\n if (!hasSomeEnabledSettings) {\n return [defaultSettings, () => undefined];\n }\n\n return [persistedSettings, setPersistedSettings];\n}\n\nfunction removeDisabledSettings(settings: TableSettings, enabledSettings: TableEnableSettingsOptions) {\n const sanitizedSettings: TableSettings = { ...settings };\n\n Object.keys(enabledSettings).forEach(setting => {\n if (!enabledSettings[setting as keyof TableEnableSettingsOptions]) {\n delete sanitizedSettings[setting as keyof TableSettings];\n }\n });\n\n return sanitizedSettings;\n}\n"],"names":["DEFAULT_ENABLED_OPTIONS","columnOrder","columnPinning","columnSizing","columnVisibility","excludeUnmatchedRecordsInSearch","fontSize","grouping","rowHeight","sorting","useUniqueTableId","tableId","tacoSettings","useTacoSettings","uniqueUserIdentifier","useEnabledSettings","isEnabled","React","useMemo","Object","keys","reduce","o","key","options","values","some","useTableSettings","id","defaultSettings","onChangeSettings","uniqueId","enabledSettings","hasSomeEnabledSettings","persistedSettings","_setPersistedSettings","useLocalStorage","undefined","removeDisabledSettings","setPersistedSettings","useCallback","value","sanitizedSettings","JSON","stringify","settings","forEach","setting"],"mappings":";;;;AAKA,MAAMA,uBAAuB,GAAG;EAC5BC,WAAW,EAAE,IAAI;EACjBC,aAAa,EAAE,IAAI;EACnBC,YAAY,EAAE,IAAI;EAClBC,gBAAgB,EAAE,IAAI;EACtBC,+BAA+B,EAAE,IAAI;EACrCC,QAAQ,EAAE,IAAI;EACdC,QAAQ,EAAE,IAAI;EACdC,SAAS,EAAE,IAAI;EACfC,OAAO,EAAE;CACZ;SAEeC,gBAAgBA,CAACC,OAAe;EAC5C,MAAMC,YAAY,GAAGC,eAAe,EAAE;EACtC,OAAO,QAAQD,YAAY,CAACE,oBAAoB,UAAUH,OAAO,WAAW;AAChF;AAEA,SAASI,kBAAkBA,CAACC,SAAwD;EAChF,OAAOC,cAAK,CAACC,OAAO,CAAC;IACjB,IAAIF,SAAS,KAAK,KAAK,EAAE;MACrB,OAAO,CACHG,MAAM,CAACC,IAAI,CAACpB,uBAAuB,CAAC,CAACqB,MAAM,CACvC,CAACC,CAAC,EAAEC,GAAG,MAAM;QAAE,GAAGD,CAAC;QAAE,CAACC,GAAG,GAAG;OAAO,CAAC,EACpC,EAAE,CACyB,EAC/B,KAAK,CACR;KACJ,MAAM,IAAIP,SAAS,KAAK,IAAI,EAAE;MAC3B,OAAO,CAAChB,uBAAuB,EAAE,IAAI,CAAC;;IAG1C,MAAMwB,OAAO,GAAG;MAAE,GAAGxB,uBAAuB;MAAE,GAAGgB;KAAW;IAC5D,OAAO,CAACQ,OAAO,EAAEL,MAAM,CAACM,MAAM,CAACD,OAAO,CAAC,CAACE,IAAI,CAACJ,CAAC,IAAIA,CAAC,KAAK,IAAI,CAAC,CAAC;GACjE,EAAE,CAACN,SAAS,CAAC,CAAC;AACnB;SAEgBW,gBAAgBA,CAC5BX,YAA2D,KAAK,EAChEY,EAAU,EACVC,kBAA6C,EAAE,EAC/CC,gBAAkD;EAElD,MAAMC,QAAQ,GAAGrB,gBAAgB,CAACkB,EAAE,CAAC;EACrC,MAAM,CAACI,eAAe,EAAEC,sBAAsB,CAAC,GAAGlB,kBAAkB,CAACC,SAAS,CAAC;EAE/E,MAAM,CAACkB,iBAAiB,EAAEC,qBAAqB,CAAC,GAAGC,eAAe,CAC9DH,sBAAsB,GAAGF,QAAQ,GAAGM,SAAS,EAC7CC,sBAAsB,CAACT,eAAe,EAAEG,eAAe,CAAC,CAC3D;EAED,MAAMO,oBAAoB,GAAGtB,cAAK,CAACuB,WAAW,CACzCC,KAAoB;IACjB,IAAI,CAACR,sBAAsB,EAAE;MACzB;;IAGJ,MAAMS,iBAAiB,GAAGJ,sBAAsB,CAACG,KAAK,EAAET,eAAe,CAAC;IACxEG,qBAAqB,CAACO,iBAAiB,CAAC;IAExC,IAAI,OAAOZ,gBAAgB,KAAK,UAAU,EAAE;MACxCA,gBAAgB,CAACY,iBAAiB,CAAC;;GAE1C,EACD,CAACT,sBAAsB,EAAEH,gBAAgB,EAAEa,IAAI,CAACC,SAAS,CAACZ,eAAe,CAAC,CAAC,CAC9E;EAED,IAAI,CAACC,sBAAsB,EAAE;IACzB,OAAO,CAACJ,eAAe,EAAE,MAAMQ,SAAS,CAAC;;EAG7C,OAAO,CAACH,iBAAiB,EAAEK,oBAAoB,CAAC;AACpD;AAEA,SAASD,sBAAsBA,CAACO,QAAuB,EAAEb,eAA2C;EAChG,MAAMU,iBAAiB,GAAkB;IAAE,GAAGG;GAAU;EAExD1B,MAAM,CAACC,IAAI,CAACY,eAAe,CAAC,CAACc,OAAO,CAACC,OAAO;IACxC,IAAI,CAACf,eAAe,CAACe,OAA2C,CAAC,EAAE;MAC/D,OAAOL,iBAAiB,CAACK,OAA8B,CAAC;;GAE/D,CAAC;EAEF,OAAOL,iBAAiB;AAC5B;;;;"}
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const useLocalStorage: <TType>(key?: string | undefined, initialValue?: TType | undefined) => [TType, React.Dispatch<React.SetStateAction<TType>>, () => void];
@@ -1 +0,0 @@
1
- export declare function useTacoSettings(): import("../components/Provider/Provider").TacoSettings;
@@ -1,3 +0,0 @@
1
- import { TableEnableSettingsOptions, TableSettings, TableSettingsHandler } from '../../types';
2
- export declare function useUniqueTableId(tableId: string): string;
3
- export declare function useTableSettings(isEnabled: boolean | Partial<TableEnableSettingsOptions> | undefined, id: string, defaultSettings: TableSettings | undefined, onChangeSettings: TableSettingsHandler | undefined): [TableSettings, TableSettingsHandler];