@gen-epix/ui-client-common 4.7.0 → 4.9.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/_chunks/CrudPage.js +236 -235
- package/dist/_chunks/CrudPage.js.map +1 -1
- package/dist/_chunks/GeoFilter.js +2 -1
- package/dist/_chunks/GeoFilter.js.map +1 -1
- package/dist/_chunks/QueryClientProvider.js +1 -1
- package/dist/_chunks/QueryClientProvider.js.map +1 -1
- package/dist/_chunks/QueryClientService.js +39 -35
- package/dist/_chunks/QueryClientService.js.map +1 -1
- package/dist/_chunks/Table.js +1048 -714
- package/dist/_chunks/Table.js.map +1 -1
- package/dist/_chunks/TableUtil.js +5187 -230
- package/dist/_chunks/TableUtil.js.map +1 -1
- package/dist/_chunks/TextFilter.js +51 -38
- package/dist/_chunks/TextFilter.js.map +1 -1
- package/dist/_chunks/UserInvitationsAdminPage.js +3 -3
- package/dist/_chunks/UserInvitationsAdminPage.js.map +1 -1
- package/dist/_chunks/{_cacheHas.js → _arrayIncludesWith.js} +17 -17
- package/dist/_chunks/_arrayIncludesWith.js.map +1 -0
- package/dist/_chunks/{isArrayLike.js → _arrayMap.js} +94 -94
- package/dist/_chunks/_arrayMap.js.map +1 -0
- package/dist/_chunks/_baseGet.js +61 -61
- package/dist/_chunks/_baseGet.js.map +1 -1
- package/dist/_chunks/_baseIteratee.js +28 -28
- package/dist/_chunks/_baseIteratee.js.map +1 -1
- package/dist/_chunks/_setToString.js +7 -7
- package/dist/_chunks/_setToString.js.map +1 -1
- package/dist/_chunks/middleware.js +1 -1
- package/dist/_chunks/middleware.js.map +1 -1
- package/dist/_chunks/omit.js +74 -58
- package/dist/_chunks/omit.js.map +1 -1
- package/dist/_chunks/query.js +271 -269
- package/dist/_chunks/query.js.map +1 -1
- package/dist/_chunks/react.js +1 -1
- package/dist/_chunks/react.js.map +1 -1
- package/dist/_chunks/tableStore.js +291 -246
- package/dist/_chunks/tableStore.js.map +1 -1
- package/dist/_chunks/uniq.js +2 -2
- package/dist/_chunks/uniq.js.map +1 -1
- package/dist/_chunks/useMutation.js +17 -17
- package/dist/_chunks/useMutation.js.map +1 -1
- package/dist/_chunks/useQueryMemo.js +103 -103
- package/dist/_chunks/useQueryMemo.js.map +1 -1
- package/dist/_chunks/vanilla.js +1 -1
- package/dist/_chunks/vanilla.js.map +1 -1
- package/dist/_chunks/yup.js +2 -2
- package/dist/_chunks/yup.js.map +1 -1
- package/dist/classes/abstracts/FilterAbstract/FilterAbstract.d.ts +11 -0
- package/dist/classes/abstracts/FilterAbstract/index.js +48 -3
- package/dist/classes/abstracts/FilterAbstract/index.js.map +1 -1
- package/dist/classes/filters/BooleanFilter.d.ts +1 -0
- package/dist/classes/filters/DateFilter.d.ts +1 -1
- package/dist/classes/filters/GeoFilter.d.ts +1 -0
- package/dist/classes/filters/MultiSelectFilter.d.ts +9 -6
- package/dist/classes/filters/NumberRangeFilter.d.ts +1 -0
- package/dist/classes/filters/TextFilter.d.ts +1 -0
- package/dist/classes/services/EmotionCacheService/index.js +3 -1
- package/dist/classes/services/EmotionCacheService/index.js.map +1 -1
- package/dist/components/app/App/index.js +4 -3
- package/dist/components/app/App/index.js.map +1 -1
- package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js +1 -1
- package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js.map +1 -1
- package/dist/components/ui/ApplicationBar/index.js +2 -0
- package/dist/components/ui/ApplicationBar/index.js.map +1 -1
- package/dist/components/ui/GenericErrorMessage/index.js +1 -0
- package/dist/components/ui/GenericErrorMessage/index.js.map +1 -1
- package/dist/components/ui/OrganizationSwitcherDialog/index.js +1 -1
- package/dist/components/ui/OrganizationSwitcherDialog/index.js.map +1 -1
- package/dist/components/ui/Table/TableDownloadSidebarItem.d.ts +10 -0
- package/dist/components/ui/Table/TableSidebarMenu.d.ts +2 -1
- package/dist/components/ui/Table/index.d.ts +1 -0
- package/dist/components/ui/Table/index.js +1 -1
- package/dist/components/ui/Table/useTableColumnsMenu.d.ts +6 -0
- package/dist/dataHooks/useSitesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useSitesQuery/index.js +18 -0
- package/dist/dataHooks/useSitesQuery/index.js.map +1 -0
- package/dist/dataHooks/useSitesQuery/useSitesQuery.d.ts +5 -0
- package/dist/locale/en.json +16 -0
- package/dist/locale/nl.json +16 -0
- package/dist/models/table.models.d.ts +2 -1
- package/dist/models/table.models.js.map +1 -1
- package/dist/pages/CrudPage/CrudPage.d.ts +1 -1
- package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js +12 -11
- package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js.map +1 -1
- package/dist/pages/OutagesAdminPage/index.js +55 -55
- package/dist/pages/OutagesAdminPage/index.js.map +1 -1
- package/dist/pages/UsersAdminPage/index.js +90 -90
- package/dist/pages/UsersAdminPage/index.js.map +1 -1
- package/dist/stores/tableStore/tableStore.d.ts +3 -1
- package/dist/theme/demoTheme/index.js +1 -1
- package/dist/theme/demoTheme/index.js.map +1 -1
- package/dist/utils/TableUtil/TableUtil.d.ts +13 -1
- package/package.json +38 -34
- package/dist/_chunks/_baseFlatten.js +0 -26
- package/dist/_chunks/_baseFlatten.js.map +0 -1
- package/dist/_chunks/_cacheHas.js.map +0 -1
- package/dist/_chunks/isArrayLike.js.map +0 -1
- package/dist/_chunks/useColumnsMenu.js +0 -159
- package/dist/_chunks/useColumnsMenu.js.map +0 -1
- package/dist/hooks/useColumnsMenu/index.d.ts +0 -1
- package/dist/hooks/useColumnsMenu/index.js +0 -1
- package/dist/hooks/useColumnsMenu/useColumnsMenu.d.ts +0 -6
- package/dist/test/lib/index.d.ts +0 -1
- package/dist/test/lib/render.d.ts +0 -2
|
@@ -47,7 +47,7 @@ export declare class TableUtil {
|
|
|
47
47
|
id?: keyof TData;
|
|
48
48
|
maxNumOptionsExpanded?: number;
|
|
49
49
|
name: string;
|
|
50
|
-
options: OptionBase<string>[];
|
|
50
|
+
options: OptionBase<number | string>[];
|
|
51
51
|
shouldFilterOptions?: boolean;
|
|
52
52
|
}): TableColumnOptions<TData, TDataContext, TColumnContext>;
|
|
53
53
|
static createReadableIndexColumn<TData, TDataContext = null, TColumnContext = null>(kwArgs?: {
|
|
@@ -68,6 +68,8 @@ export declare class TableUtil {
|
|
|
68
68
|
id?: keyof TData;
|
|
69
69
|
name: string;
|
|
70
70
|
}): TableColumnText<TData, TDataContext, TColumnContext>;
|
|
71
|
+
static downloadAsCSV<TRowData, TDataContext = null>(sortedData: TRowData[], visibleColumnIds: string[], columns: TableColumn<TRowData, TDataContext>[], fileName: string, dataContext?: TDataContext): void;
|
|
72
|
+
static downloadAsExcel<TRowData, TDataContext = null>(sortedData: TRowData[], visibleColumnIds: string[], columns: TableColumn<TRowData, TDataContext>[], fileName: string, dataContext?: TDataContext): Promise<void>;
|
|
71
73
|
static getColumnIdsWithData<TRowData, TDataContext = null>(params: {
|
|
72
74
|
dataContext: TDataContext;
|
|
73
75
|
hasCellData: HasCellDataFn<TRowData, TDataContext>;
|
|
@@ -84,7 +86,17 @@ export declare class TableUtil {
|
|
|
84
86
|
static getTableTextCellValue<TRowData, TDataContext = null>({ column, dataContext, row, rowIndex }: GetTableCellValueProps<TRowData, TableColumnText<TRowData, TDataContext>, TDataContext>): string;
|
|
85
87
|
static handleMoveColumn<TRowData, TDataContext = null>(columnDimensions: TableColumnDimension[], tableColumnVisualSettings: TableColumnVisualSettings[], // Will be mutated
|
|
86
88
|
tableColumns: TableColumn<TRowData, TDataContext>[], elementTableColumn: TableColumn<TRowData, TDataContext>, direction: -1 | 1): boolean;
|
|
89
|
+
static parseDateValue(value: number | string): Date;
|
|
90
|
+
/**
|
|
91
|
+
* Makes the settings match the table columns: drops unknown and duplicate IDs, makes frozen columns visible and adds missing columns.
|
|
92
|
+
* Returns the same array instance when nothing needs to change, and the input unchanged when no columns are known yet.
|
|
93
|
+
*/
|
|
94
|
+
static reconcileColumnVisualSettings<TData, TDataContext = null>(tableColumns: TableColumn<TData, TDataContext>[], columnVisualSettings: TableColumnVisualSettings[]): TableColumnVisualSettings[];
|
|
95
|
+
static removeDuplicateColumnVisualSettings(columnVisualSettings: TableColumnVisualSettings[]): TableColumnVisualSettings[];
|
|
87
96
|
static updateColumnSizesInVisualSettings<TRowData, TDataContext = null>(container: HTMLDivElement, scrollbarSize: number, sortedData: TRowData[], tableColumns: TableColumn<TRowData, TDataContext>[], allColumnVisualSettings: TableColumnVisualSettings[]): Map<string, TableColumnVisualSettings>;
|
|
97
|
+
private static getExportColumns;
|
|
98
|
+
private static getExportData;
|
|
88
99
|
private static handleMoveColumnAcrossDimensions;
|
|
89
100
|
private static swapTwoTableColumns;
|
|
101
|
+
private static toExportValue;
|
|
90
102
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gen-epix/ui-client-common",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.9.0",
|
|
4
4
|
"homepage": "https://github.com/RIVM-bioinformatics/gen-epix",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -246,6 +246,10 @@
|
|
|
246
246
|
"types": "./dist/dataHooks/useOrganizationsQuery/index.d.ts",
|
|
247
247
|
"import": "./dist/dataHooks/useOrganizationsQuery/index.js"
|
|
248
248
|
},
|
|
249
|
+
"./dataHooks/useSitesQuery": {
|
|
250
|
+
"types": "./dist/dataHooks/useSitesQuery/index.d.ts",
|
|
251
|
+
"import": "./dist/dataHooks/useSitesQuery/index.js"
|
|
252
|
+
},
|
|
249
253
|
"./dataHooks/useUsersQuery": {
|
|
250
254
|
"types": "./dist/dataHooks/useUsersQuery/index.d.ts",
|
|
251
255
|
"import": "./dist/dataHooks/useUsersQuery/index.js"
|
|
@@ -254,10 +258,6 @@
|
|
|
254
258
|
"types": "./dist/hoc/withPermissions/index.d.ts",
|
|
255
259
|
"import": "./dist/hoc/withPermissions/index.js"
|
|
256
260
|
},
|
|
257
|
-
"./hooks/useColumnsMenu": {
|
|
258
|
-
"types": "./dist/hooks/useColumnsMenu/index.d.ts",
|
|
259
|
-
"import": "./dist/hooks/useColumnsMenu/index.js"
|
|
260
|
-
},
|
|
261
261
|
"./hooks/useConfig": {
|
|
262
262
|
"types": "./dist/hooks/useConfig/index.d.ts",
|
|
263
263
|
"import": "./dist/hooks/useConfig/index.js"
|
|
@@ -482,10 +482,11 @@
|
|
|
482
482
|
"last 2 Chrome versions"
|
|
483
483
|
],
|
|
484
484
|
"dependencies": {
|
|
485
|
-
"@hookform/resolvers": "7.0.
|
|
486
|
-
"@tanstack/react-query": "5.
|
|
485
|
+
"@hookform/resolvers": "7.0.9",
|
|
486
|
+
"@tanstack/react-query": "5.108.4",
|
|
487
487
|
"classnames": "2.5.1",
|
|
488
488
|
"clsx": "2.1.1",
|
|
489
|
+
"csv": "6.6.4",
|
|
489
490
|
"date-fns": "4.4.0",
|
|
490
491
|
"immer": "11.2.10",
|
|
491
492
|
"lodash": "4.18.1",
|
|
@@ -493,48 +494,51 @@
|
|
|
493
494
|
"reflect-metadata": "0.2.2",
|
|
494
495
|
"use-debounce": "10.1.1",
|
|
495
496
|
"uuid": "14.0.3",
|
|
497
|
+
"write-excel-file": "4.1.1",
|
|
496
498
|
"zustand": "5.1.0"
|
|
497
499
|
},
|
|
498
500
|
"devDependencies": {
|
|
501
|
+
"@gen-epix/api-casedb": "^4.8.0",
|
|
499
502
|
"@dnd-kit/core": "6.3.1",
|
|
500
503
|
"@dnd-kit/sortable": "10.0.0",
|
|
501
504
|
"@dnd-kit/utilities": "3.2.2",
|
|
502
505
|
"@emotion/cache": "11.14.0",
|
|
503
506
|
"@emotion/react": "11.14.0",
|
|
504
507
|
"@emotion/styled": "11.14.1",
|
|
505
|
-
"@gen-epix/api-commondb": "^4.
|
|
508
|
+
"@gen-epix/api-commondb": "^4.8.0",
|
|
509
|
+
"@mswjs/interceptors": "0.45.12",
|
|
506
510
|
"@gen-epix/eslint-config": "0.10.0",
|
|
507
511
|
"@gen-epix/translation-util": "0.7.0",
|
|
508
|
-
"@gen-epix/ui-core": "^3.
|
|
509
|
-
"@gen-epix/ui-core-components": "^4.
|
|
510
|
-
"@gen-epix/ui-core-form": "^4.
|
|
512
|
+
"@gen-epix/ui-core": "^3.13.0",
|
|
513
|
+
"@gen-epix/ui-core-components": "^4.9.0",
|
|
514
|
+
"@gen-epix/ui-core-form": "^4.8.0",
|
|
511
515
|
"@microsoft/api-extractor": "7.60.1",
|
|
512
|
-
"@mui/icons-material": "9.
|
|
513
|
-
"@mui/material": "9.
|
|
514
|
-
"@mui/styled-engine": "9.
|
|
515
|
-
"@mui/system": "9.
|
|
516
|
-
"@mui/utils": "9.
|
|
516
|
+
"@mui/icons-material": "9.6.0",
|
|
517
|
+
"@mui/material": "9.6.0",
|
|
518
|
+
"@mui/styled-engine": "9.6.0",
|
|
519
|
+
"@mui/system": "9.6.0",
|
|
520
|
+
"@mui/utils": "9.6.0",
|
|
517
521
|
"@testing-library/react": "^16.3.3",
|
|
518
522
|
"@types/lodash": "4.17.27",
|
|
519
|
-
"@types/node": "26.6.
|
|
520
|
-
"@types/react": "19.3.
|
|
523
|
+
"@types/node": "26.6.9",
|
|
524
|
+
"@types/react": "19.3.1",
|
|
521
525
|
"@vitejs/plugin-react": "6.3.0",
|
|
522
|
-
"@vitest/browser-playwright": "5.1.
|
|
523
|
-
"@vitest/coverage-v8": "5.1.
|
|
526
|
+
"@vitest/browser-playwright": "5.1.1",
|
|
527
|
+
"@vitest/coverage-v8": "5.1.1",
|
|
524
528
|
"axios": "1.21.1",
|
|
525
|
-
"eslint": "10.
|
|
526
|
-
"i18next": "27.
|
|
527
|
-
"jsdom": "31.0.
|
|
528
|
-
"playwright": "1.65.
|
|
529
|
+
"eslint": "10.15.0",
|
|
530
|
+
"i18next": "27.2.9",
|
|
531
|
+
"jsdom": "31.0.1",
|
|
532
|
+
"playwright": "1.65.1",
|
|
529
533
|
"react": "19.3.1",
|
|
530
534
|
"react-dom": "19.3.1",
|
|
531
535
|
"react-error-boundary": "6.1.6",
|
|
532
536
|
"react-hook-form": "7.92.0",
|
|
533
|
-
"react-i18next": "18.0.
|
|
537
|
+
"react-i18next": "18.0.3",
|
|
534
538
|
"react-oidc-context": "3.3.1",
|
|
535
|
-
"react-router": "8.5.
|
|
536
|
-
"react-router-dom": "7.18.
|
|
537
|
-
"react-virtuoso": "4.18.
|
|
539
|
+
"react-router": "8.5.3",
|
|
540
|
+
"react-router-dom": "7.18.7",
|
|
541
|
+
"react-virtuoso": "4.18.24",
|
|
538
542
|
"tsyringe": "4.10.0",
|
|
539
543
|
"typescript": "6.0.3",
|
|
540
544
|
"vite": "8.3.8",
|
|
@@ -542,7 +546,7 @@
|
|
|
542
546
|
"vite-plugin-lib-inject-css": "2.2.2",
|
|
543
547
|
"vite-plugin-static-copy": "4.1.1",
|
|
544
548
|
"vite-plugin-svgr": "5.2.0",
|
|
545
|
-
"vitest": "5.1.
|
|
549
|
+
"vitest": "5.1.1",
|
|
546
550
|
"vitest-browser-react": "2.3.0",
|
|
547
551
|
"yup": "1.7.1"
|
|
548
552
|
},
|
|
@@ -553,10 +557,10 @@
|
|
|
553
557
|
"@emotion/cache": "*",
|
|
554
558
|
"@emotion/react": "*",
|
|
555
559
|
"@emotion/styled": "*",
|
|
556
|
-
"@gen-epix/api-commondb": "^4.
|
|
557
|
-
"@gen-epix/ui-core": "^3.
|
|
558
|
-
"@gen-epix/ui-core-components": "^4.
|
|
559
|
-
"@gen-epix/ui-core-form": "^4.
|
|
560
|
+
"@gen-epix/api-commondb": "^4.8.0",
|
|
561
|
+
"@gen-epix/ui-core": "^3.13.0",
|
|
562
|
+
"@gen-epix/ui-core-components": "^4.9.0",
|
|
563
|
+
"@gen-epix/ui-core-form": "^4.8.0",
|
|
560
564
|
"@mui/icons-material": "*",
|
|
561
565
|
"@mui/material": "*",
|
|
562
566
|
"@mui/styled-engine": "*",
|
|
@@ -593,6 +597,6 @@
|
|
|
593
597
|
"test-missing-translations": "translation-util ./ --dry-run --fail-on-missing --fail-on-stale",
|
|
594
598
|
"test-run": "vitest run --passWithNoTests --coverage",
|
|
595
599
|
"update-exports": "node scripts/update-exports.js",
|
|
596
|
-
"validate": "pnpm run
|
|
600
|
+
"validate": "pnpm run test-missing-translations && pnpm run check-types && pnpm run lint && pnpm run test-run"
|
|
597
601
|
}
|
|
598
602
|
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime.js";
|
|
2
|
-
import { S as t, x as n } from "./_baseGet.js";
|
|
3
|
-
import { i as r } from "./isObject.js";
|
|
4
|
-
import { r as i } from "./isArrayLike.js";
|
|
5
|
-
// ../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_isFlattenable.js
|
|
6
|
-
var a = /* @__PURE__ */ e(((e, t) => {
|
|
7
|
-
var a = r(), o = n(), s = i(), c = a ? a.isConcatSpreadable : void 0;
|
|
8
|
-
function l(e) {
|
|
9
|
-
return s(e) || o(e) || !!(c && e && e[c]);
|
|
10
|
-
}
|
|
11
|
-
t.exports = l;
|
|
12
|
-
})), o = /* @__PURE__ */ e(((e, n) => {
|
|
13
|
-
var r = t(), i = a();
|
|
14
|
-
function o(e, t, n, a, s) {
|
|
15
|
-
var c = -1, l = e.length;
|
|
16
|
-
for (n ||= i, s ||= []; ++c < l;) {
|
|
17
|
-
var u = e[c];
|
|
18
|
-
t > 0 && n(u) ? t > 1 ? o(u, t - 1, n, a, s) : r(s, u) : a || (s[s.length] = u);
|
|
19
|
-
}
|
|
20
|
-
return s;
|
|
21
|
-
}
|
|
22
|
-
n.exports = o;
|
|
23
|
-
}));
|
|
24
|
-
export { o as t };
|
|
25
|
-
|
|
26
|
-
//# sourceMappingURL=_baseFlatten.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_baseFlatten.js","names":["__commonJSMin","require__arrayPush","require_isArguments","require__Symbol","require_isArray","require__isFlattenable","Symbol","isArguments","isArray","spreadableSymbol","isFlattenable","value","require__baseFlatten","arrayPush","baseFlatten","index","length","array","predicate","result","depth","isStrict"],"sources":["../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_isFlattenable.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseFlatten.js"],"sourcesContent":["var Symbol = require('./_Symbol'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray');\n\n/** Built-in value references. */\nvar spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\nmodule.exports = isFlattenable;\n","var arrayPush = require('./_arrayPush'),\n isFlattenable = require('./_isFlattenable');\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseFlatten;\n"],"ignoreList":[0,1],"mappings":";;;;;;CAAA,IAAIM,IAAAH,EAAA,GACAI,IAAAL,EAAA,GACAM,IAAAJ,EAAA,GAGAK,IAAmBH,IAASA,EAAO,qBAAqB,KAAA;CAS5D,SAASI,EAAc,GAAO;EAC5B,OAAOF,EAAQG,CAAK,KAAKJ,EAAYI,CAAK,KACxC,CAAC,EAAEF,KAAoBE,KAASA,EAAMF;CAC1C;CAEA,EAAO,UAAUC;;CCnBjB,IAAIG,IAAAZ,EAAA,GACAS,IAAAL,EAAA;CAaJ,SAASS,EAAY,GAAO,GAAO,GAAW,GAAU,GAAQ;EAC9D,IAAIC,IAAQ,IACRC,IAASC,EAAM;EAKnB,KAHA,AAAcC,MAAYR,GAC1B,AAAWS,MAAS,CAAC,GAEd,EAAEJ,IAAQC,IAAQ;GACvB,IAAIL,IAAQM,EAAMF;GAClB,AAAIK,IAAQ,KAAKF,EAAUP,CAAK,IAC1BS,IAAQ,IAEVN,EAAYH,GAAOS,IAAQ,GAAGF,GAAWG,GAAUF,CAAM,IAEzDN,EAAUM,GAAQR,CAAK,IAEfU,MACV,EAAOF,EAAO,UAAUR;EAE5B;EACA,OAAOQ;CACT;CAEA,EAAO,UAAUL"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_cacheHas.js","names":["__commonJSMin","require__MapCache","require__setCacheAdd","setCacheAdd","value","require__setCacheHas","setCacheHas","require__SetCache","MapCache","SetCache","index","length","values","require__baseFindIndex","baseFindIndex","array","fromIndex","fromRight","predicate","require__baseIsNaN","baseIsNaN","require__strictIndexOf","strictIndexOf","require__baseIndexOf","baseIndexOf","require__arrayIncludes","arrayIncludes","require__arrayIncludesWith","arrayIncludesWith","comparator","require__cacheHas","cacheHas","cache","key"],"sources":["../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_setCacheAdd.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_setCacheHas.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_SetCache.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseFindIndex.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseIsNaN.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_strictIndexOf.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseIndexOf.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_arrayIncludes.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_arrayIncludesWith.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_cacheHas.js"],"sourcesContent":["/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\nmodule.exports = setCacheAdd;\n","/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {boolean} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\nmodule.exports = setCacheHas;\n","var MapCache = require('./_MapCache'),\n setCacheAdd = require('./_setCacheAdd'),\n setCacheHas = require('./_setCacheHas');\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nmodule.exports = SetCache;\n","/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = baseFindIndex;\n","/**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\nfunction baseIsNaN(value) {\n return value !== value;\n}\n\nmodule.exports = baseIsNaN;\n","/**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = strictIndexOf;\n","var baseFindIndex = require('./_baseFindIndex'),\n baseIsNaN = require('./_baseIsNaN'),\n strictIndexOf = require('./_strictIndexOf');\n\n/**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n}\n\nmodule.exports = baseIndexOf;\n","var baseIndexOf = require('./_baseIndexOf');\n\n/**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n}\n\nmodule.exports = arrayIncludes;\n","/**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arrayIncludesWith;\n","/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\nmodule.exports = cacheHas;\n"],"ignoreList":[0,1,2,3,4,5,6,7,8,9],"mappings":";;;;CAaA,SAASG,EAAY,GAAO;EAE1B,OADA,KAAK,SAAS,IAAIC,GAAO,2BAAc,GAChC;CACT;CAEA,EAAO,UAAUD;;CCTjB,SAASG,EAAY,GAAO;EAC1B,OAAO,KAAK,SAAS,IAAIF,CAAK;CAChC;CAEA,EAAO,UAAUE;;CCbjB,IAAIE,IAAAP,EAAA,GACAE,IAAAD,EAAA,GACAI,IAAAD,EAAA;CAUJ,SAASI,EAAS,GAAQ;EACxB,IAAIC,IAAQ,IACRC,IAASC,KAAU,OAAO,IAAIA,EAAO;EAGzC,KADA,KAAK,WAAW,IAAIJ,EAAO,GACpB,EAAEE,IAAQC,IACf,KAAK,IAAIC,EAAOF,EAAM;CAE1B;CAMA,AAHA,EAAS,UAAU,MAAM,EAAS,UAAU,OAAOP,GACnD,EAAS,UAAU,MAAMG,GAEzB,EAAO,UAAUG;;CCfjB,SAASK,EAAc,GAAO,GAAW,GAAW,GAAW;EAI7D,KAHA,IAAIH,IAASI,EAAM,QACfL,IAAQM,KAAaC,IAAY,IAAI,KAEjCA,IAAY,MAAU,EAAEP,IAAQC,IACtC,IAAIO,EAAUH,EAAML,IAAQA,GAAOK,CAAK,GACtC,OAAOL;EAGX,OAAO;CACT;CAEA,EAAO,UAAUI;;CChBjB,SAASM,EAAU,GAAO;EACxB,OAAOhB,MAAUA;CACnB;CAEA,EAAO,UAAUgB;;CCDjB,SAASE,EAAc,GAAO,GAAO,GAAW;EAI9C,KAHA,IAAIZ,IAAQM,IAAY,GACpBL,IAASI,EAAM,QAEZ,EAAEL,IAAQC,IACf,IAAII,EAAML,OAAWN,GACnB,OAAOM;EAGX,OAAO;CACT;CAEA,EAAO,UAAUY;;CCtBjB,IAAIR,IAAAD,EAAA,GACAO,IAAAD,EAAA,GACAG,IAAAD,EAAA;CAWJ,SAASG,EAAY,GAAO,GAAO,GAAW;EAC5C,OAAOpB,MAAUA,IACbkB,EAAcP,GAAOX,GAAOY,CAAS,IACrCF,EAAcC,GAAOK,GAAWJ,CAAS;CAC/C;CAEA,EAAO,UAAUQ;;CCnBjB,IAAIA,IAAAD,EAAA;CAWJ,SAASG,EAAc,GAAO,GAAO;EAEnC,OAAO,CAAC,EADKX,KAAS,QAAWA,EAAM,WACpBS,EAAYT,GAAOX,GAAO,CAAC,IAAI;CACpD;CAEA,EAAO,UAAUsB;;CCPjB,SAASE,EAAkB,GAAO,GAAO,GAAY;EAInD,KAHA,IAAIlB,IAAQ,IACRC,IAASI,KAAS,OAAO,IAAIA,EAAM,QAEhC,EAAEL,IAAQC,IACf,IAAIkB,EAAWzB,GAAOW,EAAML,EAAM,GAChC,OAAO;EAGX,OAAO;CACT;CAEA,EAAO,UAAUkB;;CCbjB,SAASG,EAAS,GAAO,GAAK;EAC5B,OAAOC,EAAM,IAAIC,CAAG;CACtB;CAEA,EAAO,UAAUF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isArrayLike.js","names":["__commonJSMin","require__root","require__baseGetTag","require_isObject","require_identity","identity","value","require_isFunction","baseGetTag","isObject","asyncTag","funcTag","genTag","proxyTag","isFunction","tag","require__coreJsData","require__isMasked","coreJsData","maskSrcKey","uid","isMasked","func","require__toSource","funcToString","toSource","require__baseIsNative","reRegExpChar","reIsHostCtor","funcProto","objectProto","hasOwnProperty","reIsNative","baseIsNative","require__getValue","getValue","object","key","require__getNative","getNative","require__nativeCreate","require__hashClear","nativeCreate","hashClear","require__hashDelete","hashDelete","result","require__hashGet","HASH_UNDEFINED","hashGet","data","require__hashHas","hashHas","require__hashSet","hashSet","require__Hash","Hash","index","length","entries","entry","\"delete\"","require__listCacheClear","listCacheClear","require_eq","eq","other","require__assocIndexOf","assocIndexOf","array","require__listCacheDelete","splice","listCacheDelete","require__listCacheGet","listCacheGet","require__listCacheHas","listCacheHas","require__listCacheSet","listCacheSet","require__ListCache","ListCache","require__Map","require__mapCacheClear","Map","mapCacheClear","\"hash\"","\"map\"","\"string\"","require__isKeyable","isKeyable","type","require__getMapData","getMapData","map","require__mapCacheDelete","mapCacheDelete","require__mapCacheGet","mapCacheGet","require__mapCacheHas","mapCacheHas","require__mapCacheSet","mapCacheSet","size","require__MapCache","MapCache","require__arrayMap","arrayMap","iteratee","require__baseUnary","baseUnary","require_isArray","require_isLength","isLength","require_isArrayLike","isArrayLike"],"sources":["../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/identity.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isFunction.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_coreJsData.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_isMasked.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_toSource.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseIsNative.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getValue.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getNative.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_nativeCreate.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_hashClear.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_hashDelete.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_hashGet.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_hashHas.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_hashSet.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Hash.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_listCacheClear.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/eq.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_assocIndexOf.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_listCacheDelete.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_listCacheGet.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_listCacheHas.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_listCacheSet.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_ListCache.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Map.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_mapCacheClear.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_isKeyable.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getMapData.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_mapCacheDelete.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_mapCacheGet.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_mapCacheHas.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_mapCacheSet.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_MapCache.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_arrayMap.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseUnary.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isArray.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isLength.js","../../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isArrayLike.js"],"sourcesContent":["/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n","var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n","var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n","var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n","var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n","var getNative = require('./_getNative');\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n","var nativeCreate = require('./_nativeCreate');\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nmodule.exports = hashClear;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;\n","var hashClear = require('./_hashClear'),\n hashDelete = require('./_hashDelete'),\n hashGet = require('./_hashGet'),\n hashHas = require('./_hashHas'),\n hashSet = require('./_hashSet');\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nmodule.exports = Hash;\n","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n","var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nmodule.exports = listCacheSet;\n","var listCacheClear = require('./_listCacheClear'),\n listCacheDelete = require('./_listCacheDelete'),\n listCacheGet = require('./_listCacheGet'),\n listCacheHas = require('./_listCacheHas'),\n listCacheSet = require('./_listCacheSet');\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nmodule.exports = Map;\n","var Hash = require('./_Hash'),\n ListCache = require('./_ListCache'),\n Map = require('./_Map');\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nmodule.exports = mapCacheClear;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nmodule.exports = isKeyable;\n","var isKeyable = require('./_isKeyable');\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nmodule.exports = getMapData;\n","var getMapData = require('./_getMapData');\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = mapCacheDelete;\n","var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n","var getMapData = require('./_getMapData');\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;\n","var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nmodule.exports = mapCacheSet;\n","var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n","var isFunction = require('./isFunction'),\n isLength = require('./isLength');\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n"],"ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"mappings":";;;;CAgBA,SAASK,EAAS,GAAO;EACvB,OAAOC;CACT;CAEA,EAAO,UAAUD;;CCpBjB,IAAIG,IAAAN,EAAA,GACAO,IAAAN,EAAA,GAGAO,IAAW,0BACXC,IAAU,qBACVC,IAAS,8BACTC,IAAW;CAmBf,SAASC,EAAW,GAAO;EACzB,IAAI,CAACL,EAASH,CAAK,GACjB,OAAO;EAIT,IAAIS,IAAMP,EAAWF,CAAK;EAC1B,OAAOS,KAAOJ,KAAWI,KAAOH,KAAUG,KAAOL,KAAYK,KAAOF;CACtE;CAEA,EAAO,UAAUC;;CC/BjB,EAAO,UAFHb,EAAA,CAAA,CAAkB;;CCHtB,IAAIiB,IAAAF,EAAA,GAGAG,IAAc,WAAW;EAC3B,IAAIC,IAAM,SAAS,KAAKF,KAAcA,EAAW,QAAQA,EAAW,KAAK,YAAY,EAAE;EACvF,OAAOE,IAAO,mBAAmBA,IAAO;CAC1C,EAAE;CASF,SAASC,EAAS,GAAM;EACtB,OAAO,CAAC,CAACF,KAAeA,KAAcG;CACxC;CAEA,EAAO,UAAUD;;CCfjB,IAAIG,IAHY,SAAS,UAGI;CAS7B,SAASC,EAAS,GAAM;EACtB,IAAIH,KAAQ,MAAM;GAChB,IAAI;IACF,OAAOE,EAAa,KAAKF,CAAI;GAC/B,QAAY,CAAC;GACb,IAAI;IACF,OAAQA,IAAO;GACjB,QAAY,CAAC;EACf;EACA,OAAO;CACT;CAEA,EAAO,UAAUG;;CCzBjB,IAAIX,IAAAP,EAAA,GACAc,IAAAJ,EAAA,GACAR,IAAAN,EAAA,GACAsB,IAAAF,EAAA,GAMAI,IAAe,uBAGfC,IAAe,+BAGfC,IAAY,SAAS,WACrB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UAAU4D;;CCbjB,SAASG,EAAU,GAAM;EACvB,OAAO,SAAS,GAAO;GACrB,OAAOvF,EAAKhB,CAAK;EACnB;CACF;CAEA,EAAO,UAAUuG;;CCYjB,EAAO,UAFO,MAAM;;CCMpB,SAASG,EAAS,GAAO;EACvB,OAAO,OAAO1G,KAAS,YACrBA,IAAQ,MAAMA,IAAQ,KAAK,KAAKA,KAAS;CAC7C;CAEA,EAAO,UAAU0G;;CClCjB,IAAIlG,IAAAP,EAAA,GACAyG,IAAAD,EAAA;CA2BJ,SAASG,EAAY,GAAO;EAC1B,OAAO5G,KAAS,QAAQ0G,EAAS1G,EAAM,MAAM,KAAK,CAACQ,EAAWR,CAAK;CACrE;CAEA,EAAO,UAAU4G"}
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { l as e, t } from "./tableStore.js";
|
|
2
|
-
import { t as n } from "./react.js";
|
|
3
|
-
import { t as r } from "./TableUtil.js";
|
|
4
|
-
import i, { useCallback as a, useMemo as o } from "react";
|
|
5
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
6
|
-
import { useTranslation as c } from "react-i18next";
|
|
7
|
-
import l from "@mui/icons-material/IndeterminateCheckBox";
|
|
8
|
-
import u from "@mui/icons-material/CheckBoxOutlined";
|
|
9
|
-
import d from "@mui/icons-material/CheckBoxOutlineBlankOutlined";
|
|
10
|
-
import f from "@mui/icons-material/ToggleOffOutlined";
|
|
11
|
-
import p from "@mui/icons-material/ToggleOnOutlined";
|
|
12
|
-
import m from "@mui/icons-material/EditOutlined";
|
|
13
|
-
// ../../node_modules/.pnpm/zustand@5.1.0_@types+react@19.3.0_immer@11.2.10_react@19.3.1_use-sync-external-store@1.7.0_react@19.3.1_/node_modules/zustand/esm/vanilla/shallow.mjs
|
|
14
|
-
var h = (e) => Symbol.iterator in e, g = (e) => "entries" in e, _ = (e, t) => {
|
|
15
|
-
let n = e instanceof Map ? e : new Map(e.entries()), r = t instanceof Map ? t : new Map(t.entries());
|
|
16
|
-
if (n.size !== r.size) return !1;
|
|
17
|
-
for (let [e, t] of n) if (!r.has(e) || !Object.is(t, r.get(e))) return !1;
|
|
18
|
-
return !0;
|
|
19
|
-
}, v = (e, t) => {
|
|
20
|
-
let n = e[Symbol.iterator](), r = t[Symbol.iterator](), i = n.next(), a = r.next();
|
|
21
|
-
for (; !i.done && !a.done;) {
|
|
22
|
-
if (!Object.is(i.value, a.value)) return !1;
|
|
23
|
-
i = n.next(), a = r.next();
|
|
24
|
-
}
|
|
25
|
-
return !!i.done && !!a.done;
|
|
26
|
-
};
|
|
27
|
-
function y(e, t) {
|
|
28
|
-
return Object.is(e, t) ? !0 : typeof e != "object" || !e || typeof t != "object" || !t || Object.getPrototypeOf(e) !== Object.getPrototypeOf(t) ? !1 : h(e) && h(t) ? g(e) && g(t) ? _(e, t) : v(e, t) : _({ entries: () => Object.entries(e) }, { entries: () => Object.entries(t) });
|
|
29
|
-
}
|
|
30
|
-
// ../../node_modules/.pnpm/zustand@5.1.0_@types+react@19.3.0_immer@11.2.10_react@19.3.1_use-sync-external-store@1.7.0_react@19.3.1_/node_modules/zustand/esm/react/shallow.mjs
|
|
31
|
-
function b(e) {
|
|
32
|
-
let t = i.useRef(void 0);
|
|
33
|
-
return (n) => {
|
|
34
|
-
let r = e(n);
|
|
35
|
-
return y(t.current, r) ? t.current : t.current = r;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
// src/hooks/useColumnsMenu/useColumnsMenu.tsx
|
|
39
|
-
var x = ({ hasCellData: i }) => {
|
|
40
|
-
let h = t(), g = n(h, b((e) => e.emitEvent)), _ = n(h, b((e) => e.columns)), v = n(h, b((e) => e.dataContext)), y = n(h, b((e) => e.getCurrentColumnVisualSettings().filter((e) => e.isVisible).map((e) => e.id))), x = n(h, b((e) => e.columnDimensions)), S = n(h, b((e) => e.isCondensed)), C = n(h, b((e) => e.sortedData)), { t: w } = c(), T = o(() => _.some((e) => e.cellColorGetter), [_]), E = a(() => {
|
|
41
|
-
g("openColumnsEditorDialog", i);
|
|
42
|
-
}, [g, i]), D = a((t) => {
|
|
43
|
-
let n = e(y, (e) => e.includes(t) ? e.filter((e) => e !== t) : (e.push(t), e));
|
|
44
|
-
g("columnVisibilityChange", n);
|
|
45
|
-
}, [g, y]), O = a((t) => {
|
|
46
|
-
let n = t.every((e) => y.includes(e)), r = e(y, (e) => n ? e.filter((e) => !t.includes(e)) : (t.forEach((t) => {
|
|
47
|
-
e.includes(t) || e.push(t);
|
|
48
|
-
}), e));
|
|
49
|
-
g("columnVisibilityChange", r);
|
|
50
|
-
}, [g, y]), k = a(() => {
|
|
51
|
-
g("columnVisibilityChange", r.getColumnIdsWithData({
|
|
52
|
-
dataContext: v,
|
|
53
|
-
hasCellData: i,
|
|
54
|
-
sortedData: C,
|
|
55
|
-
tableColumns: _,
|
|
56
|
-
visibleColumnIds: y
|
|
57
|
-
}));
|
|
58
|
-
}, [
|
|
59
|
-
g,
|
|
60
|
-
i,
|
|
61
|
-
C,
|
|
62
|
-
_,
|
|
63
|
-
y,
|
|
64
|
-
v
|
|
65
|
-
]), A = a(() => {
|
|
66
|
-
g("condensedChange", !S);
|
|
67
|
-
}, [g, S]);
|
|
68
|
-
return o(() => {
|
|
69
|
-
let e = [
|
|
70
|
-
T ? {
|
|
71
|
-
autoCloseDisabled: !0,
|
|
72
|
-
callback: () => A(),
|
|
73
|
-
checked: S ? "true" : "false",
|
|
74
|
-
divider: !0,
|
|
75
|
-
label: w`Condensed`,
|
|
76
|
-
rightIcon: s(S ? p : f, {})
|
|
77
|
-
} : void 0,
|
|
78
|
-
{
|
|
79
|
-
callback: () => E(),
|
|
80
|
-
divider: !0,
|
|
81
|
-
label: w`Column editor`,
|
|
82
|
-
leftIcon: /* @__PURE__ */ s(m, { sx: { fontSize: "1.5rem" } })
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
autoCloseDisabled: !0,
|
|
86
|
-
callback: () => g("reset"),
|
|
87
|
-
label: w`Reset`
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
autoCloseDisabled: !0,
|
|
91
|
-
callback: () => {
|
|
92
|
-
g("columnVisibilityChange", [..._.map((e) => e.id)]);
|
|
93
|
-
},
|
|
94
|
-
label: w`Show all`
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
autoCloseDisabled: !0,
|
|
98
|
-
callback: () => {
|
|
99
|
-
g("columnVisibilityChange", [..._.filter((e) => e.frozen).map((e) => e.id)]);
|
|
100
|
-
},
|
|
101
|
-
label: w`Hide all`
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
autoCloseDisabled: !0,
|
|
105
|
-
callback: () => k(),
|
|
106
|
-
divider: !0,
|
|
107
|
-
label: w`Hide columns without data`
|
|
108
|
-
}
|
|
109
|
-
].filter((e) => e);
|
|
110
|
-
return x ? x.forEach((t) => {
|
|
111
|
-
let n = t.columnIds.every((e) => y.includes(e)), r = t.columnIds.some((e) => y.includes(e));
|
|
112
|
-
e.push({
|
|
113
|
-
autoCloseDisabled: !0,
|
|
114
|
-
callback: () => O(t.columnIds),
|
|
115
|
-
checked: n ? "true" : r ? "mixed" : "false",
|
|
116
|
-
items: t.columnIds.map((e) => {
|
|
117
|
-
let t = y.includes(e);
|
|
118
|
-
return {
|
|
119
|
-
autoCloseDisabled: !0,
|
|
120
|
-
callback: () => D(e),
|
|
121
|
-
checked: t ? "true" : "false",
|
|
122
|
-
label: _.find((t) => t.id === e)?.headerName ?? "",
|
|
123
|
-
rightIcon: s(t ? u : d, {})
|
|
124
|
-
};
|
|
125
|
-
}),
|
|
126
|
-
label: t.label,
|
|
127
|
-
rightIcon: s(n ? u : r ? l : d, {})
|
|
128
|
-
});
|
|
129
|
-
}) : _.filter((e) => !e.frozen).forEach((t) => {
|
|
130
|
-
let n = y.includes(t.id);
|
|
131
|
-
e.push({
|
|
132
|
-
autoCloseDisabled: !0,
|
|
133
|
-
callback: () => D(t.id),
|
|
134
|
-
checked: n ? "true" : "false",
|
|
135
|
-
label: t.headerName,
|
|
136
|
-
rightIcon: s(n ? u : d, {})
|
|
137
|
-
});
|
|
138
|
-
}), {
|
|
139
|
-
items: e,
|
|
140
|
-
label: w`Columns`
|
|
141
|
-
};
|
|
142
|
-
}, [
|
|
143
|
-
S,
|
|
144
|
-
T,
|
|
145
|
-
w,
|
|
146
|
-
x,
|
|
147
|
-
A,
|
|
148
|
-
E,
|
|
149
|
-
g,
|
|
150
|
-
_,
|
|
151
|
-
k,
|
|
152
|
-
y,
|
|
153
|
-
O,
|
|
154
|
-
D
|
|
155
|
-
]);
|
|
156
|
-
};
|
|
157
|
-
export { b as n, x as t };
|
|
158
|
-
|
|
159
|
-
//# sourceMappingURL=useColumnsMenu.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useColumnsMenu.js","names":["produce","useStore","TableUtil","React","IndeterminateCheckBoxIcon","CheckBoxOutlinedIcon","CheckBoxOutlineBlankOutlinedIcon","ToggleOffOutlinedIcon","ToggleOnOutlinedIcon","EditOutlinedIcon","isIterable","obj","hasIterableEntries","value","compareEntries","mapA","valueA","mapB","valueB","key","compareIterables","iteratorA","iteratorB","nextA","nextB","shallow","useShallow","prev","next","selector","state","useColumnsMenu","tableStore","useTableStoreContext","emitTableEvent","tableColumns","dataContext","visibleColumnIds","c","columnDimensions","isCondensed","sortedData","useTranslation","isCondensingSupported","useMemo","onColumnsEditorMenuItemClick","useCallback","hasCellData","toggleItem","newVisibleColumnIds","draft","columnId","toggleDimension","areAllVisible","dimensionColumnIds","onHideColumnsWithoutDataClick","onIsCondensedMenuItemClick","items","jsx","x","columnDimension","areSomeVisible","checked","column","t"],"sources":["../../../../node_modules/.pnpm/zustand@5.1.0_@types+react@19.3.0_immer@11.2.10_react@19.3.1_use-sync-external-store@1.7.0_react@19.3.1_/node_modules/zustand/esm/vanilla/shallow.mjs","../../../../node_modules/.pnpm/zustand@5.1.0_@types+react@19.3.0_immer@11.2.10_react@19.3.1_use-sync-external-store@1.7.0_react@19.3.1_/node_modules/zustand/esm/react/shallow.mjs","../../src/hooks/useColumnsMenu/useColumnsMenu.tsx"],"sourcesContent":["const isIterable = (obj) => Symbol.iterator in obj;\nconst hasIterableEntries = (value) => (\n // HACK: avoid checking entries type\n \"entries\" in value\n);\nconst compareEntries = (valueA, valueB) => {\n const mapA = valueA instanceof Map ? valueA : new Map(valueA.entries());\n const mapB = valueB instanceof Map ? valueB : new Map(valueB.entries());\n if (mapA.size !== mapB.size) {\n return false;\n }\n for (const [key, value] of mapA) {\n if (!mapB.has(key) || !Object.is(value, mapB.get(key))) {\n return false;\n }\n }\n return true;\n};\nconst compareIterables = (valueA, valueB) => {\n const iteratorA = valueA[Symbol.iterator]();\n const iteratorB = valueB[Symbol.iterator]();\n let nextA = iteratorA.next();\n let nextB = iteratorB.next();\n while (!nextA.done && !nextB.done) {\n if (!Object.is(nextA.value, nextB.value)) {\n return false;\n }\n nextA = iteratorA.next();\n nextB = iteratorB.next();\n }\n return !!nextA.done && !!nextB.done;\n};\nfunction shallow(valueA, valueB) {\n if (Object.is(valueA, valueB)) {\n return true;\n }\n if (typeof valueA !== \"object\" || valueA === null || typeof valueB !== \"object\" || valueB === null) {\n return false;\n }\n if (Object.getPrototypeOf(valueA) !== Object.getPrototypeOf(valueB)) {\n return false;\n }\n if (isIterable(valueA) && isIterable(valueB)) {\n if (hasIterableEntries(valueA) && hasIterableEntries(valueB)) {\n return compareEntries(valueA, valueB);\n }\n return compareIterables(valueA, valueB);\n }\n return compareEntries(\n { entries: () => Object.entries(valueA) },\n { entries: () => Object.entries(valueB) }\n );\n}\n\nexport { shallow };\n","import React from 'react';\nimport { shallow } from 'zustand/vanilla/shallow';\n\nfunction useShallow(selector) {\n const prev = React.useRef(void 0);\n return (state) => {\n const next = selector(state);\n return shallow(prev.current, next) ? prev.current : prev.current = next;\n };\n}\n\nexport { useShallow };\n","import { produce } from 'immer';\nimport { useStore } from 'zustand';\nimport { useShallow } from 'zustand/shallow';\nimport CheckBoxOutlinedIcon from '@mui/icons-material/CheckBoxOutlined';\nimport CheckBoxOutlineBlankOutlinedIcon from '@mui/icons-material/CheckBoxOutlineBlankOutlined';\nimport ToggleOffOutlinedIcon from '@mui/icons-material/ToggleOffOutlined';\nimport ToggleOnOutlinedIcon from '@mui/icons-material/ToggleOnOutlined';\nimport IndeterminateCheckBoxIcon from '@mui/icons-material/IndeterminateCheckBox';\nimport EditOutlinedIcon from '@mui/icons-material/EditOutlined';\nimport {\n useCallback,\n useMemo,\n} from 'react';\nimport { useTranslation } from 'react-i18next';\nimport type { MenuItemData } from '@gen-epix/ui-core-components/models/nested-menu.models';\n\nimport type { HasCellDataFn } from '../../models/table.models';\nimport { useTableStoreContext } from '../../stores/tableStore';\nimport { TableUtil } from '../../utils/TableUtil';\n\n\nexport type UseColumnsMenuProps<TRowData, TDataContext = null> = {\n readonly hasCellData?: HasCellDataFn<TRowData, TDataContext>;\n};\n\nexport const useColumnsMenu = <TRowData, TDataContext = null>({ hasCellData }: UseColumnsMenuProps<TRowData, TDataContext>): MenuItemData => {\n const tableStore = useTableStoreContext<TRowData, TDataContext>();\n const emitTableEvent = useStore(tableStore, useShallow((state) => state.emitEvent));\n const tableColumns = useStore(tableStore, useShallow((state) => state.columns));\n const dataContext = useStore(tableStore, useShallow((state) => state.dataContext));\n const visibleColumnIds = useStore(tableStore, useShallow((state) => state.getCurrentColumnVisualSettings().filter(c => c.isVisible).map(c => c.id)));\n const columnDimensions = useStore(tableStore, useShallow((state) => state.columnDimensions));\n const isCondensed = useStore(tableStore, useShallow((state) => state.isCondensed));\n const sortedData = useStore(tableStore, useShallow((state) => state.sortedData));\n const { t } = useTranslation();\n\n const isCondensingSupported = useMemo(() => {\n return tableColumns.some(c => c.cellColorGetter);\n }, [tableColumns]);\n\n const onColumnsEditorMenuItemClick = useCallback(() => {\n emitTableEvent('openColumnsEditorDialog', hasCellData);\n }, [emitTableEvent, hasCellData]);\n\n const toggleItem = useCallback((columnId: string): void => {\n const newVisibleColumnIds = produce(visibleColumnIds, (draft) => {\n if (draft.includes(columnId)) {\n return draft.filter(c => c !== columnId);\n }\n draft.push(columnId);\n return draft;\n });\n emitTableEvent('columnVisibilityChange', newVisibleColumnIds);\n }, [emitTableEvent, visibleColumnIds]);\n\n const toggleDimension = useCallback((dimensionColumnIds: string[]): void => {\n const areAllVisible = dimensionColumnIds.every(columnId => visibleColumnIds.includes(columnId));\n const newVisibleColumnIds = produce(visibleColumnIds, (draft) => {\n if (areAllVisible) {\n return draft.filter(c => !dimensionColumnIds.includes(c));\n }\n dimensionColumnIds.forEach((columnId) => {\n if (!draft.includes(columnId)) {\n draft.push(columnId);\n }\n });\n return draft;\n });\n emitTableEvent('columnVisibilityChange', newVisibleColumnIds);\n }, [emitTableEvent, visibleColumnIds]);\n\n const onHideColumnsWithoutDataClick = useCallback(() => {\n emitTableEvent('columnVisibilityChange', TableUtil.getColumnIdsWithData<TRowData, TDataContext>({\n dataContext,\n hasCellData,\n sortedData,\n tableColumns,\n visibleColumnIds,\n }));\n\n }, [emitTableEvent, hasCellData, sortedData, tableColumns, visibleColumnIds, dataContext]);\n\n const onIsCondensedMenuItemClick = useCallback(() => {\n emitTableEvent('condensedChange', !isCondensed);\n }, [emitTableEvent, isCondensed]);\n\n const menuItemData: MenuItemData = useMemo(() => {\n const items: MenuItemData[] = [\n isCondensingSupported ? {\n autoCloseDisabled: true,\n callback: () => onIsCondensedMenuItemClick(),\n checked: isCondensed ? 'true' : 'false',\n divider: true,\n label: t`Condensed`,\n rightIcon: isCondensed ? <ToggleOnOutlinedIcon /> : <ToggleOffOutlinedIcon />,\n } : undefined,\n {\n callback: () => onColumnsEditorMenuItemClick(),\n divider: true,\n label: t`Column editor`,\n leftIcon: <EditOutlinedIcon sx={{ fontSize: '1.5rem' }} />,\n },\n {\n autoCloseDisabled: true,\n callback: () => emitTableEvent('reset'),\n label: t`Reset`,\n },\n {\n autoCloseDisabled: true,\n callback: () => {\n emitTableEvent('columnVisibilityChange', [...tableColumns.map(c => c.id)]);\n },\n label: t`Show all`,\n },\n {\n autoCloseDisabled: true,\n callback: () => {\n emitTableEvent('columnVisibilityChange', [...tableColumns.filter(c => c.frozen).map(c => c.id)]);\n },\n label: t`Hide all`,\n },\n {\n autoCloseDisabled: true,\n callback: () => onHideColumnsWithoutDataClick(),\n divider: true,\n label: t`Hide columns without data`,\n },\n ].filter(x => x) as MenuItemData[];\n\n if (columnDimensions) {\n columnDimensions.forEach((columnDimension) => {\n const areAllVisible = columnDimension.columnIds.every(columnId => visibleColumnIds.includes(columnId));\n const areSomeVisible = columnDimension.columnIds.some(columnId => visibleColumnIds.includes(columnId));\n items.push({\n autoCloseDisabled: true,\n callback: () => toggleDimension(columnDimension.columnIds),\n // eslint-disable-next-line no-nested-ternary\n checked: areAllVisible ? 'true' : areSomeVisible ? 'mixed' : 'false',\n items: columnDimension.columnIds.map((columnId) => {\n const checked = visibleColumnIds.includes(columnId);\n return {\n autoCloseDisabled: true,\n callback: () => toggleItem(columnId),\n checked: checked ? 'true' : 'false',\n label: tableColumns.find(c => c.id === columnId)?.headerName ?? '',\n rightIcon: checked ? <CheckBoxOutlinedIcon /> : <CheckBoxOutlineBlankOutlinedIcon />,\n };\n }),\n label: columnDimension.label,\n // eslint-disable-next-line no-nested-ternary\n rightIcon: areAllVisible ? <CheckBoxOutlinedIcon /> : areSomeVisible ? <IndeterminateCheckBoxIcon /> : <CheckBoxOutlineBlankOutlinedIcon />,\n });\n });\n } else {\n tableColumns.filter(c => !c.frozen).forEach((column) => {\n const checked = visibleColumnIds.includes(column.id);\n items.push({\n autoCloseDisabled: true,\n callback: () => toggleItem(column.id),\n checked: checked ? 'true' : 'false',\n label: column.headerName,\n rightIcon: checked ? <CheckBoxOutlinedIcon /> : <CheckBoxOutlineBlankOutlinedIcon />,\n });\n });\n }\n\n return {\n items,\n label: t`Columns`,\n };\n }, [isCondensed, isCondensingSupported, t, columnDimensions, onIsCondensedMenuItemClick, onColumnsEditorMenuItemClick, emitTableEvent, tableColumns, onHideColumnsWithoutD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AAC,CAAC,SAAS,MAAW;GACtD,IAAMwB,IAAUzB,EAAiB,SAAS0B,EAAO,EAAE;GACnD,EAAM,KAAK;IACT,mBAAmB;IACnB,gBAAgBf,EAAWe,EAAO,EAAE;IACpC,SAASD,IAAU,SAAS;IAC5B,OAAOC,EAAO;IACd,WAAqBL,EAAVI,IAAWzD,IAA2BC,GAA5B,CAAuB,CAAuC;GACrF,CAAC;EACH,CAAC,GAGI;GACL;GACA,OAAO,CAAC;EACV;CACF,GAAG;EAACkC;EAAaG;EAAuBqB;EAAGzB;EAAkBiB;EAA4BX;EAA8BX;EAAgBC;EAAcoB;EAA+BlB;EAAkBe;EAAiBJ;CAAU,CAE1N;AACT"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './useColumnsMenu';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as useColumnsMenu } from "../../_chunks/useColumnsMenu.js";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { MenuItemData } from '@gen-epix/ui-core-components/models/nested-menu.models';
|
|
2
|
-
import { HasCellDataFn } from '../../models/table.models';
|
|
3
|
-
export type UseColumnsMenuProps<TRowData, TDataContext = null> = {
|
|
4
|
-
readonly hasCellData?: HasCellDataFn<TRowData, TDataContext>;
|
|
5
|
-
};
|
|
6
|
-
export declare const useColumnsMenu: <TRowData, TDataContext = null>({ hasCellData }: UseColumnsMenuProps<TRowData, TDataContext>) => MenuItemData;
|
package/dist/test/lib/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './render';
|