schummar-table 0.50.3 → 0.50.4
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/{chunk-CTAAG5j7.js → chunk-Bp6m_JJh.js} +1 -1
- package/dist/{csvExporter-DRm4V8We.js → csvExporter-CqTylAk9.js} +2 -2
- package/dist/{csvExporter-DRm4V8We.js.map → csvExporter-CqTylAk9.js.map} +1 -1
- package/dist/csvExporter.d.cts +1 -1
- package/dist/csvExporter.d.ts +1 -1
- package/dist/csvExporter.js +1 -1
- package/dist/excelExporter.d.cts +1 -1
- package/dist/excelExporter.d.ts +1 -1
- package/dist/{exporter-BxgFAyWA.d.ts → exporter-ZZesPOOU.d.cts} +2 -2
- package/dist/{exporter-ztSF5GbY.d.cts → exporter-zK7PhTrL.d.ts} +2 -2
- package/dist/index.d.cts +21 -21
- package/dist/index.d.ts +21 -21
- package/dist/index.js +3 -3
- package/dist/mui4Theme.d.cts +2 -2
- package/dist/mui4Theme.d.ts +2 -2
- package/dist/mui4Theme.js +2 -2
- package/dist/mui5Theme.d.cts +2 -2
- package/dist/mui5Theme.d.ts +2 -2
- package/dist/mui5Theme.js +2 -2
- package/dist/{tableSettings-BRhj6F3f.js → tableSettings-ClxJL29H.js} +3 -3
- package/dist/{tableSettings-BRhj6F3f.js.map → tableSettings-ClxJL29H.js.map} +1 -1
- package/dist/{types-BAknIm9h.d.cts → types-B7cBxGpR.d.ts} +7 -5
- package/dist/{types-Bm2QIKdr.d.ts → types-DzMId5Jg.d.cts} +7 -5
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"csvExporter-
|
|
1
|
+
{"version":3,"file":"csvExporter-CqTylAk9.js","names":["options: CsvExporterOptions","stringValue: string"],"sources":["../src/exporters/csvExporter.ts"],"sourcesContent":["import { BlobExporter, StringExporter } from './exporter';\n\nexport interface CsvExporterOptions {\n sepPrefix?: boolean;\n separator?: string;\n quote?: string;\n eol?: string;\n}\n\nexport default class CsvExporter implements StringExporter, BlobExporter {\n readonly type = 'csv';\n readonly fileEnding = 'csv';\n\n constructor(public readonly options: CsvExporterOptions = {}) {}\n\n exportToString(\n columns: (string | number | Date)[],\n rows: (string | number | Date)[][],\n options = this.options,\n ): string {\n const { sepPrefix, separator = '\\t', quote = '\"', eol = '\\n' } = options;\n\n const cells = [columns, ...rows].map((line) =>\n line.map((value) => {\n let stringValue: string;\n if (typeof value === 'number') {\n stringValue = String(value);\n } else if (value instanceof Date) {\n stringValue = value.toISOString();\n } else {\n stringValue = value;\n }\n\n if (![separator, quote, eol].some((c) => stringValue.includes(c))) {\n return value;\n }\n\n const clean = stringValue.replace(new RegExp(quote, 'g'), `${quote}${quote}`);\n return `${quote}${clean}${quote}`;\n }),\n );\n\n return (\n (sepPrefix ? `SEP=${separator}\\n` : '') + cells.map((line) => line.join(separator)).join(eol)\n );\n }\n\n exportToBlob(columns: (string | number | Date)[], rows: (string | number | Date)[][]): Blob {\n const data = this.exportToString(columns, rows, {\n ...this.options,\n sepPrefix: this.options.sepPrefix ?? true,\n });\n return new Blob([data], { type: 'text/csv' });\n }\n}\n"],"mappings":";AASA,IAAqB,cAArB,MAAyE;CAIvE,YAAY,AAAgBA,UAA8B,EAAE,EAAE;EAAlC;cAHZ;oBACM;;CAItB,eACE,SACA,MACA,UAAU,KAAK,SACP;EACR,MAAM,EAAE,WAAW,YAAY,KAAM,QAAQ,MAAK,MAAM,SAAS;EAEjE,MAAM,QAAQ,CAAC,SAAS,GAAG,KAAK,CAAC,KAAK,SACpC,KAAK,KAAK,UAAU;GAClB,IAAIC;AACJ,OAAI,OAAO,UAAU,SACnB,eAAc,OAAO,MAAM;YAClB,iBAAiB,KAC1B,eAAc,MAAM,aAAa;OAEjC,eAAc;AAGhB,OAAI,CAAC;IAAC;IAAW;IAAO;IAAI,CAAC,MAAM,MAAM,YAAY,SAAS,EAAE,CAAC,CAC/D,QAAO;AAIT,UAAO,GAAG,QADI,YAAY,QAAQ,IAAI,OAAO,OAAO,IAAI,EAAE,GAAG,QAAQ,QAAQ,GACnD;IAC1B,CACH;AAED,UACG,YAAY,OAAO,UAAU,MAAM,MAAM,MAAM,KAAK,SAAS,KAAK,KAAK,UAAU,CAAC,CAAC,KAAK,IAAI;;CAIjG,aAAa,SAAqC,MAA0C;EAC1F,MAAM,OAAO,KAAK,eAAe,SAAS,MAAM;GAC9C,GAAG,KAAK;GACR,WAAW,KAAK,QAAQ,aAAa;GACtC,CAAC;AACF,SAAO,IAAI,KAAK,CAAC,KAAK,EAAE,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/csvExporter.d.cts
CHANGED
package/dist/csvExporter.d.ts
CHANGED
package/dist/csvExporter.js
CHANGED
package/dist/excelExporter.d.cts
CHANGED
package/dist/excelExporter.d.ts
CHANGED
|
@@ -20,5 +20,5 @@ interface ExportOptions {
|
|
|
20
20
|
all?: boolean;
|
|
21
21
|
}
|
|
22
22
|
//#endregion
|
|
23
|
-
export {
|
|
24
|
-
//# sourceMappingURL=exporter-
|
|
23
|
+
export { StringExporter as i, ExportOptions as n, ExporterEntry as r, BlobExporter as t };
|
|
24
|
+
//# sourceMappingURL=exporter-ZZesPOOU.d.cts.map
|
|
@@ -20,5 +20,5 @@ interface ExportOptions {
|
|
|
20
20
|
all?: boolean;
|
|
21
21
|
}
|
|
22
22
|
//#endregion
|
|
23
|
-
export {
|
|
24
|
-
//# sourceMappingURL=exporter-
|
|
23
|
+
export { StringExporter as i, ExportOptions as n, ExporterEntry as r, BlobExporter as t };
|
|
24
|
+
//# sourceMappingURL=exporter-zK7PhTrL.d.ts.map
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExporterEntry } from "./exporter-
|
|
2
|
-
import {
|
|
1
|
+
import { r as ExporterEntry } from "./exporter-ZZesPOOU.cjs";
|
|
2
|
+
import { a as Id, c as MemoizedTableTheme, d as SortDirection, f as TableItem, g as TableStateStorage, h as TableTheme, i as FunctionWithDeps, l as PartialTableTheme, m as TableRef, n as CommonFilterProps, o as InternalColumn, p as TableProps, r as FilterImplementation, s as InternalTableState, t as Column, u as Sort } from "./types-DzMId5Jg.cjs";
|
|
3
3
|
import * as _emotion_react_jsx_runtime1 from "@emotion/react/jsx-runtime";
|
|
4
4
|
import * as react0 from "react";
|
|
5
5
|
import { ComponentType, ForwardedRef, HTMLProps, ReactNode } from "react";
|
|
@@ -131,7 +131,7 @@ declare function DateFilter<TItem, TColumnValue>({
|
|
|
131
131
|
} & Pick<DatePickerProps, 'locale' | 'firstDayOfWeek' | 'defaultDateInView' | 'quickOptions' | 'minDate' | 'maxDate' | 'showCalendarWeek' | 'showTime'> & CommonFilterProps<TItem, TColumnValue, Date | DateRange | null, Date | DateRange | null>): JSX.Element;
|
|
132
132
|
//#endregion
|
|
133
133
|
//#region src/components/rangeFilter.d.ts
|
|
134
|
-
interface RangeFilterProps<T, V> extends CommonFilterProps<T, V, number | null, [number | null, number | null] | null> {
|
|
134
|
+
interface RangeFilterProps<T$1, V> extends CommonFilterProps<T$1, V, number | null, [number | null, number | null] | null> {
|
|
135
135
|
min?: number;
|
|
136
136
|
max?: number;
|
|
137
137
|
}
|
|
@@ -143,7 +143,7 @@ declare function RangeFilter<TItem, TColumnValue>({
|
|
|
143
143
|
}: RangeFilterProps<TItem, TColumnValue>): JSX.Element;
|
|
144
144
|
//#endregion
|
|
145
145
|
//#region src/components/virtualList.d.ts
|
|
146
|
-
interface VirtualListProps<T> extends Omit<HTMLProps<HTMLDivElement>, 'children'> {
|
|
146
|
+
interface VirtualListProps<T$1> extends Omit<HTMLProps<HTMLDivElement>, 'children'> {
|
|
147
147
|
virtual?: boolean | {
|
|
148
148
|
rowHeight?: number;
|
|
149
149
|
initalRowHeight?: number;
|
|
@@ -152,8 +152,8 @@ interface VirtualListProps<T> extends Omit<HTMLProps<HTMLDivElement>, 'children'
|
|
|
152
152
|
overscanBottom?: number;
|
|
153
153
|
overscanTop?: number;
|
|
154
154
|
};
|
|
155
|
-
items: T[];
|
|
156
|
-
children: (item: T, index: number) => ReactNode;
|
|
155
|
+
items: T$1[];
|
|
156
|
+
children: (item: T$1, index: number) => ReactNode;
|
|
157
157
|
}
|
|
158
158
|
//#endregion
|
|
159
159
|
//#region src/components/selectFilter.d.ts
|
|
@@ -184,10 +184,10 @@ declare function SelectFilter<TItem, TColumnValue, TFilterBy>({
|
|
|
184
184
|
} & CommonFilterProps<TItem, TColumnValue, TFilterBy, Set<TFilterBy>>): JSX.Element;
|
|
185
185
|
//#endregion
|
|
186
186
|
//#region src/components/table.d.ts
|
|
187
|
-
declare const Table: <T>(props: TableProps<T> & {
|
|
187
|
+
declare const Table: <T$1>(props: TableProps<T$1> & {
|
|
188
188
|
ref?: ForwardedRef<TableRef>;
|
|
189
189
|
}) => ReturnType<typeof _Table>;
|
|
190
|
-
declare function _Table<T>(props: TableProps<T>, ref: ForwardedRef<TableRef>): JSX.Element;
|
|
190
|
+
declare function _Table<T$1>(props: TableProps<T$1>, ref: ForwardedRef<TableRef>): JSX.Element;
|
|
191
191
|
//#endregion
|
|
192
192
|
//#region src/components/textFilter.d.ts
|
|
193
193
|
declare function TextFilter<TItem, TColumnValue>({
|
|
@@ -213,18 +213,18 @@ declare function useFilter<TItem, TColumnValue, TFilterBy, TFilterValue>(impl: F
|
|
|
213
213
|
};
|
|
214
214
|
//#endregion
|
|
215
215
|
//#region src/hooks/useTheme.d.ts
|
|
216
|
-
declare function useTheme<T, S>(selector: (theme: MemoizedTableTheme<T>) => S): S;
|
|
216
|
+
declare function useTheme<T$1, S>(selector: (theme: MemoizedTableTheme<T$1>) => S): S;
|
|
217
217
|
declare namespace helpers_d_exports {
|
|
218
218
|
export { asNumber, asNumberOrArray, asString, asStringOrArray, castArray, cx, defaultEquals, flatMap, getAncestors, getDescendants, identity, intersect, isTruthy, orderBy, subStringMatch, uniq };
|
|
219
219
|
}
|
|
220
|
-
declare const flatMap: <T, S>(array: Iterable<T>, flatMap: (t: T) => S[]) => S[];
|
|
221
|
-
declare const orderBy: <T>(array: T[], selectors?: ((t: T) => any)[], direction?: ("desc" | "asc")[], locale?: (string | undefined)[], options?: (Intl.CollatorOptions | undefined)[]) => T[];
|
|
222
|
-
declare const uniq: <T>(array: T[]) => T[];
|
|
223
|
-
declare const intersect: <T>(a: Iterable<T>, b: {
|
|
224
|
-
has(t: T): boolean;
|
|
225
|
-
}) => Set<T>;
|
|
226
|
-
declare const getAncestors: <T>(activeItemsById: Map<Id, TableItem<T>>, ...items: TableItem<T>[]) => Set<Id>;
|
|
227
|
-
declare const getDescendants: <T>(...items: TableItem<T>[]) => Set<Id>;
|
|
220
|
+
declare const flatMap: <T$1, S>(array: Iterable<T$1>, flatMap: (t: T$1) => S[]) => S[];
|
|
221
|
+
declare const orderBy: <T$1>(array: T$1[], selectors?: ((t: T$1) => any)[], direction?: ("desc" | "asc")[], locale?: (string | undefined)[], options?: (Intl.CollatorOptions | undefined)[]) => T$1[];
|
|
222
|
+
declare const uniq: <T$1>(array: T$1[]) => T$1[];
|
|
223
|
+
declare const intersect: <T$1>(a: Iterable<T$1>, b: {
|
|
224
|
+
has(t: T$1): boolean;
|
|
225
|
+
}) => Set<T$1>;
|
|
226
|
+
declare const getAncestors: <T$1>(activeItemsById: Map<Id, TableItem<T$1>>, ...items: TableItem<T$1>[]) => Set<Id>;
|
|
227
|
+
declare const getDescendants: <T$1>(...items: TableItem<T$1>[]) => Set<Id>;
|
|
228
228
|
declare const identity: (x: unknown) => any;
|
|
229
229
|
declare const asString: (x: unknown) => string;
|
|
230
230
|
declare const asStringOrArray: (x: unknown) => string | string[];
|
|
@@ -232,16 +232,16 @@ declare const asNumber: (x: unknown) => number | null;
|
|
|
232
232
|
declare const asNumberOrArray: (x: unknown) => number | null | (number | null)[];
|
|
233
233
|
declare const defaultEquals: (a: unknown, b: unknown) => boolean;
|
|
234
234
|
declare const subStringMatch: (a: string, b: string) => boolean;
|
|
235
|
-
declare const castArray: <T>(a: T | T[]) => T[];
|
|
235
|
+
declare const castArray: <T$1>(a: T$1 | T$1[]) => T$1[];
|
|
236
236
|
declare const cx: (...classNames: (string | false | undefined | null | Record<string, boolean>)[]) => string;
|
|
237
237
|
type Falsy = false | 0 | '' | null | undefined;
|
|
238
|
-
declare function isTruthy<T>(x: T): x is Exclude<T, Falsy>;
|
|
238
|
+
declare function isTruthy<T$1>(x: T$1): x is Exclude<T$1, Falsy>;
|
|
239
239
|
//#endregion
|
|
240
240
|
//#region src/misc/tableContext.d.ts
|
|
241
241
|
declare const TableContext: react0.Context<Store<InternalTableState<any>> | null>;
|
|
242
242
|
declare const TableResetContext: react0.Context<() => void>;
|
|
243
243
|
declare const ColumnContext: react0.Context<Id | null>;
|
|
244
|
-
declare function useTableContext<T>(): Store<InternalTableState<T>>;
|
|
244
|
+
declare function useTableContext<T$1>(): Store<InternalTableState<T$1>>;
|
|
245
245
|
declare function useColumnContext(): Id;
|
|
246
246
|
//#endregion
|
|
247
247
|
//#region src/misc/tableSettings.d.ts
|
|
@@ -266,7 +266,7 @@ declare const termMatch: (text: string, query: string) => boolean;
|
|
|
266
266
|
//#endregion
|
|
267
267
|
//#region src/theme/tableTheme.d.ts
|
|
268
268
|
declare function configureTableTheme(tableTheme: PartialTableTheme): void;
|
|
269
|
-
declare function mergeThemes<T>(...themes: PartialTableTheme<T>[]): PartialTableTheme<T>;
|
|
269
|
+
declare function mergeThemes<T$1>(...themes: PartialTableTheme<T$1>[]): PartialTableTheme<T$1>;
|
|
270
270
|
//#endregion
|
|
271
271
|
export { AutoFocusTextField, type Column, ColumnContext, CombinedFilter, type CombinedFilterProps, type CommonFilterProps, DateFilter, DatePicker, type DatePickerChangeSource, type DatePickerProps, DatePickerProvider, type DatePickerQuickOption, type DateRange, type FilterImplementation, type FunctionWithDeps, type Id, type InternalColumn, type PartialTableTheme, RangeFilter, SelectFilter, type Sort, type SortDirection, Table, TableContext, type TableProps, type TableRef, TableResetContext, TableSettingsContext, TableSettingsProvider, type TableStateStorage, TextFilter, commonQuickOptions, configureTableTheme, dateClamp, dateIntersect, endOfDay, getCalendarWeek, helpers_d_exports as helpers, lastDays, mergeThemes, startOfDay, termMatch, textMatch, thisMonth, thisWeek, thisYear, today, useColumnContext, useFilter, useTableContext, useTheme };
|
|
272
272
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExporterEntry } from "./exporter-
|
|
2
|
-
import {
|
|
1
|
+
import { r as ExporterEntry } from "./exporter-zK7PhTrL.js";
|
|
2
|
+
import { a as Id, c as MemoizedTableTheme, d as SortDirection, f as TableItem, g as TableStateStorage, h as TableTheme, i as FunctionWithDeps, l as PartialTableTheme, m as TableRef, n as CommonFilterProps, o as InternalColumn, p as TableProps, r as FilterImplementation, s as InternalTableState, t as Column, u as Sort } from "./types-B7cBxGpR.js";
|
|
3
3
|
import * as react0 from "react";
|
|
4
4
|
import { ComponentType, ForwardedRef, HTMLProps, ReactNode } from "react";
|
|
5
5
|
import * as _emotion_react_jsx_runtime1 from "@emotion/react/jsx-runtime";
|
|
@@ -129,7 +129,7 @@ declare function DateFilter<TItem, TColumnValue>({
|
|
|
129
129
|
} & Pick<DatePickerProps, 'locale' | 'firstDayOfWeek' | 'defaultDateInView' | 'quickOptions' | 'minDate' | 'maxDate' | 'showCalendarWeek' | 'showTime'> & CommonFilterProps<TItem, TColumnValue, Date | DateRange | null, Date | DateRange | null>): JSX.Element;
|
|
130
130
|
//#endregion
|
|
131
131
|
//#region src/components/rangeFilter.d.ts
|
|
132
|
-
interface RangeFilterProps<T, V> extends CommonFilterProps<T, V, number | null, [number | null, number | null] | null> {
|
|
132
|
+
interface RangeFilterProps<T$1, V> extends CommonFilterProps<T$1, V, number | null, [number | null, number | null] | null> {
|
|
133
133
|
min?: number;
|
|
134
134
|
max?: number;
|
|
135
135
|
}
|
|
@@ -141,7 +141,7 @@ declare function RangeFilter<TItem, TColumnValue>({
|
|
|
141
141
|
}: RangeFilterProps<TItem, TColumnValue>): JSX.Element;
|
|
142
142
|
//#endregion
|
|
143
143
|
//#region src/components/virtualList.d.ts
|
|
144
|
-
interface VirtualListProps<T> extends Omit<HTMLProps<HTMLDivElement>, 'children'> {
|
|
144
|
+
interface VirtualListProps<T$1> extends Omit<HTMLProps<HTMLDivElement>, 'children'> {
|
|
145
145
|
virtual?: boolean | {
|
|
146
146
|
rowHeight?: number;
|
|
147
147
|
initalRowHeight?: number;
|
|
@@ -150,8 +150,8 @@ interface VirtualListProps<T> extends Omit<HTMLProps<HTMLDivElement>, 'children'
|
|
|
150
150
|
overscanBottom?: number;
|
|
151
151
|
overscanTop?: number;
|
|
152
152
|
};
|
|
153
|
-
items: T[];
|
|
154
|
-
children: (item: T, index: number) => ReactNode;
|
|
153
|
+
items: T$1[];
|
|
154
|
+
children: (item: T$1, index: number) => ReactNode;
|
|
155
155
|
}
|
|
156
156
|
//#endregion
|
|
157
157
|
//#region src/components/selectFilter.d.ts
|
|
@@ -182,10 +182,10 @@ declare function SelectFilter<TItem, TColumnValue, TFilterBy>({
|
|
|
182
182
|
} & CommonFilterProps<TItem, TColumnValue, TFilterBy, Set<TFilterBy>>): JSX.Element;
|
|
183
183
|
//#endregion
|
|
184
184
|
//#region src/components/table.d.ts
|
|
185
|
-
declare const Table: <T>(props: TableProps<T> & {
|
|
185
|
+
declare const Table: <T$1>(props: TableProps<T$1> & {
|
|
186
186
|
ref?: ForwardedRef<TableRef>;
|
|
187
187
|
}) => ReturnType<typeof _Table>;
|
|
188
|
-
declare function _Table<T>(props: TableProps<T>, ref: ForwardedRef<TableRef>): JSX.Element;
|
|
188
|
+
declare function _Table<T$1>(props: TableProps<T$1>, ref: ForwardedRef<TableRef>): JSX.Element;
|
|
189
189
|
//#endregion
|
|
190
190
|
//#region src/components/textFilter.d.ts
|
|
191
191
|
declare function TextFilter<TItem, TColumnValue>({
|
|
@@ -211,18 +211,18 @@ declare function useFilter<TItem, TColumnValue, TFilterBy, TFilterValue>(impl: F
|
|
|
211
211
|
};
|
|
212
212
|
//#endregion
|
|
213
213
|
//#region src/hooks/useTheme.d.ts
|
|
214
|
-
declare function useTheme<T, S>(selector: (theme: MemoizedTableTheme<T>) => S): S;
|
|
214
|
+
declare function useTheme<T$1, S>(selector: (theme: MemoizedTableTheme<T$1>) => S): S;
|
|
215
215
|
declare namespace helpers_d_exports {
|
|
216
216
|
export { asNumber, asNumberOrArray, asString, asStringOrArray, castArray, cx, defaultEquals, flatMap, getAncestors, getDescendants, identity, intersect, isTruthy, orderBy, subStringMatch, uniq };
|
|
217
217
|
}
|
|
218
|
-
declare const flatMap: <T, S>(array: Iterable<T>, flatMap: (t: T) => S[]) => S[];
|
|
219
|
-
declare const orderBy: <T>(array: T[], selectors?: ((t: T) => any)[], direction?: ("desc" | "asc")[], locale?: (string | undefined)[], options?: (Intl.CollatorOptions | undefined)[]) => T[];
|
|
220
|
-
declare const uniq: <T>(array: T[]) => T[];
|
|
221
|
-
declare const intersect: <T>(a: Iterable<T>, b: {
|
|
222
|
-
has(t: T): boolean;
|
|
223
|
-
}) => Set<T>;
|
|
224
|
-
declare const getAncestors: <T>(activeItemsById: Map<Id, TableItem<T>>, ...items: TableItem<T>[]) => Set<Id>;
|
|
225
|
-
declare const getDescendants: <T>(...items: TableItem<T>[]) => Set<Id>;
|
|
218
|
+
declare const flatMap: <T$1, S>(array: Iterable<T$1>, flatMap: (t: T$1) => S[]) => S[];
|
|
219
|
+
declare const orderBy: <T$1>(array: T$1[], selectors?: ((t: T$1) => any)[], direction?: ("desc" | "asc")[], locale?: (string | undefined)[], options?: (Intl.CollatorOptions | undefined)[]) => T$1[];
|
|
220
|
+
declare const uniq: <T$1>(array: T$1[]) => T$1[];
|
|
221
|
+
declare const intersect: <T$1>(a: Iterable<T$1>, b: {
|
|
222
|
+
has(t: T$1): boolean;
|
|
223
|
+
}) => Set<T$1>;
|
|
224
|
+
declare const getAncestors: <T$1>(activeItemsById: Map<Id, TableItem<T$1>>, ...items: TableItem<T$1>[]) => Set<Id>;
|
|
225
|
+
declare const getDescendants: <T$1>(...items: TableItem<T$1>[]) => Set<Id>;
|
|
226
226
|
declare const identity: (x: unknown) => any;
|
|
227
227
|
declare const asString: (x: unknown) => string;
|
|
228
228
|
declare const asStringOrArray: (x: unknown) => string | string[];
|
|
@@ -230,16 +230,16 @@ declare const asNumber: (x: unknown) => number | null;
|
|
|
230
230
|
declare const asNumberOrArray: (x: unknown) => number | null | (number | null)[];
|
|
231
231
|
declare const defaultEquals: (a: unknown, b: unknown) => boolean;
|
|
232
232
|
declare const subStringMatch: (a: string, b: string) => boolean;
|
|
233
|
-
declare const castArray: <T>(a: T | T[]) => T[];
|
|
233
|
+
declare const castArray: <T$1>(a: T$1 | T$1[]) => T$1[];
|
|
234
234
|
declare const cx: (...classNames: (string | false | undefined | null | Record<string, boolean>)[]) => string;
|
|
235
235
|
type Falsy = false | 0 | '' | null | undefined;
|
|
236
|
-
declare function isTruthy<T>(x: T): x is Exclude<T, Falsy>;
|
|
236
|
+
declare function isTruthy<T$1>(x: T$1): x is Exclude<T$1, Falsy>;
|
|
237
237
|
//#endregion
|
|
238
238
|
//#region src/misc/tableContext.d.ts
|
|
239
239
|
declare const TableContext: react0.Context<Store<InternalTableState<any>> | null>;
|
|
240
240
|
declare const TableResetContext: react0.Context<() => void>;
|
|
241
241
|
declare const ColumnContext: react0.Context<Id | null>;
|
|
242
|
-
declare function useTableContext<T>(): Store<InternalTableState<T>>;
|
|
242
|
+
declare function useTableContext<T$1>(): Store<InternalTableState<T$1>>;
|
|
243
243
|
declare function useColumnContext(): Id;
|
|
244
244
|
//#endregion
|
|
245
245
|
//#region src/misc/tableSettings.d.ts
|
|
@@ -264,7 +264,7 @@ declare const termMatch: (text: string, query: string) => boolean;
|
|
|
264
264
|
//#endregion
|
|
265
265
|
//#region src/theme/tableTheme.d.ts
|
|
266
266
|
declare function configureTableTheme(tableTheme: PartialTableTheme): void;
|
|
267
|
-
declare function mergeThemes<T>(...themes: PartialTableTheme<T>[]): PartialTableTheme<T>;
|
|
267
|
+
declare function mergeThemes<T$1>(...themes: PartialTableTheme<T$1>[]): PartialTableTheme<T$1>;
|
|
268
268
|
//#endregion
|
|
269
269
|
export { AutoFocusTextField, type Column, ColumnContext, CombinedFilter, type CombinedFilterProps, type CommonFilterProps, DateFilter, DatePicker, type DatePickerChangeSource, type DatePickerProps, DatePickerProvider, type DatePickerQuickOption, type DateRange, type FilterImplementation, type FunctionWithDeps, type Id, type InternalColumn, type PartialTableTheme, RangeFilter, SelectFilter, type Sort, type SortDirection, Table, TableContext, type TableProps, type TableRef, TableResetContext, TableSettingsContext, TableSettingsProvider, type TableStateStorage, TextFilter, commonQuickOptions, configureTableTheme, dateClamp, dateIntersect, endOfDay, getCalendarWeek, helpers_d_exports as helpers, lastDays, mergeThemes, startOfDay, termMatch, textMatch, thisMonth, thisWeek, thisYear, today, useColumnContext, useFilter, useTableContext, useTheme };
|
|
270
270
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __export } from "./chunk-
|
|
2
|
-
import {
|
|
3
|
-
import "./csvExporter-
|
|
1
|
+
import { t as __export } from "./chunk-Bp6m_JJh.js";
|
|
2
|
+
import { a as mergeThemes, c as throttle, i as globalTableTheme, l as Store, n as TableSettingsProvider, o as Popover, r as configureTableTheme, s as defaultClasses, t as TableSettingsContext, u as StoreScope } from "./tableSettings-ClxJL29H.js";
|
|
3
|
+
import "./csvExporter-CqTylAk9.js";
|
|
4
4
|
import { Fragment, cloneElement, createContext, forwardRef, memo, useContext, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
5
5
|
import { castDraft } from "immer";
|
|
6
6
|
import { ClassNames, css } from "@emotion/react";
|
package/dist/mui4Theme.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./exporter-
|
|
2
|
-
import { PartialTableTheme } from "./types-
|
|
1
|
+
import "./exporter-ZZesPOOU.cjs";
|
|
2
|
+
import { l as PartialTableTheme } from "./types-DzMId5Jg.cjs";
|
|
3
3
|
import * as _emotion_react_jsx_runtime0 from "@emotion/react/jsx-runtime";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
|
package/dist/mui4Theme.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./exporter-
|
|
2
|
-
import { PartialTableTheme } from "./types-
|
|
1
|
+
import "./exporter-zK7PhTrL.js";
|
|
2
|
+
import { l as PartialTableTheme } from "./types-B7cBxGpR.js";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import * as _emotion_react_jsx_runtime0 from "@emotion/react/jsx-runtime";
|
|
5
5
|
|
package/dist/mui4Theme.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./csvExporter-
|
|
1
|
+
import { a as mergeThemes, n as TableSettingsProvider, o as Popover } from "./tableSettings-ClxJL29H.js";
|
|
2
|
+
import "./csvExporter-CqTylAk9.js";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
import { jsx } from "@emotion/react/jsx-runtime";
|
|
5
5
|
import { Badge, Button, Checkbox, CircularProgress, IconButton, TextField, useTheme } from "@material-ui/core";
|
package/dist/mui5Theme.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./exporter-
|
|
2
|
-
import { PartialTableTheme } from "./types-
|
|
1
|
+
import "./exporter-ZZesPOOU.cjs";
|
|
2
|
+
import { l as PartialTableTheme } from "./types-DzMId5Jg.cjs";
|
|
3
3
|
import * as _emotion_react_jsx_runtime0 from "@emotion/react/jsx-runtime";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
|
package/dist/mui5Theme.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./exporter-
|
|
2
|
-
import { PartialTableTheme } from "./types-
|
|
1
|
+
import "./exporter-zK7PhTrL.js";
|
|
2
|
+
import { l as PartialTableTheme } from "./types-B7cBxGpR.js";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import * as _emotion_react_jsx_runtime0 from "@emotion/react/jsx-runtime";
|
|
5
5
|
|
package/dist/mui5Theme.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./csvExporter-
|
|
1
|
+
import { a as mergeThemes, n as TableSettingsProvider, o as Popover } from "./tableSettings-ClxJL29H.js";
|
|
2
|
+
import "./csvExporter-CqTylAk9.js";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
import { jsx } from "@emotion/react/jsx-runtime";
|
|
5
5
|
import { Badge, Button, Checkbox, CircularProgress, IconButton, TextField, useTheme } from "@mui/material";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CsvExporter } from "./csvExporter-
|
|
1
|
+
import { t as CsvExporter } from "./csvExporter-CqTylAk9.js";
|
|
2
2
|
import React, { createContext, useCallback, useContext, useDebugValue, useEffect, useLayoutEffect, useMemo, useRef } from "react";
|
|
3
3
|
import { applyPatches, enableMapSet, enablePatches, freeze, produce } from "immer";
|
|
4
4
|
import { css } from "@emotion/react";
|
|
@@ -681,5 +681,5 @@ function TableSettingsProvider({ theme, exporters, additionalExporters, children
|
|
|
681
681
|
}
|
|
682
682
|
|
|
683
683
|
//#endregion
|
|
684
|
-
export {
|
|
685
|
-
//# sourceMappingURL=tableSettings-
|
|
684
|
+
export { mergeThemes as a, throttle as c, globalTableTheme as i, Store as l, TableSettingsProvider as n, Popover as o, configureTableTheme as r, defaultClasses as s, TableSettingsContext as t, StoreScope as u };
|
|
685
|
+
//# sourceMappingURL=tableSettings-ClxJL29H.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tableSettings-BRhj6F3f.js","names":["v","p","throttle","Store","throttle$1","e","lastArgs: Args | undefined","timeout: ReturnType<typeof setTimeout> | undefined","Popover: TableTheme['components']['Popover']"],"sources":["../node_modules/schummar-state/dist/es/store.js","../node_modules/schummar-state/dist/es/react.js","../src/misc/throttle.ts","../src/theme/defaultTheme/defaultClasses.ts","../src/theme/defaultTheme/popover.tsx","../src/theme/tableTheme.tsx","../src/misc/tableSettings.tsx"],"sourcesContent":["var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nvar __restKey = (key) => typeof key === \"symbol\" ? key : key + \"\";\nvar __objRest = (source, exclude) => {\n var target = {};\n for (var prop in source)\n if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)\n target[prop] = source[prop];\n if (source != null && __getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(source)) {\n if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))\n target[prop] = source[prop];\n }\n return target;\n};\nimport { freeze, enableMapSet, enablePatches, produce, applyPatches } from \"immer\";\nconst isAncestor = (ancestor, path) => {\n return ancestor.length <= path.length && ancestor.every((v, i) => v === \"*\" || path[i] === \"*\" || String(v) === String(path[i]));\n};\nconst get = (value, path) => {\n for (const part of path) {\n if (value instanceof Object && part in value)\n value = value[part];\n else {\n value = void 0;\n break;\n }\n }\n return value;\n};\nconst split = (value, path) => {\n const [first, ...rest] = path;\n if (first === void 0)\n return [value, []];\n if (rest.length === 0) {\n if (first === \"*\")\n return [{}, Object.entries(value).map(([k, v]) => ({ path: [k], value: v }))];\n if (!(first in value))\n return [value, []];\n const _a = value, { [first]: subValue } = _a, newValue2 = __objRest(_a, [__restKey(first)]);\n return [newValue2, [{ path: [first], value: subValue }]];\n }\n const newValue = __spreadValues({}, value);\n const subValues = new Array();\n for (const key of first === \"*\" ? Object.keys(value) : [first]) {\n if (!(newValue[key] instanceof Object))\n return [value, []];\n const result = split(newValue[key], rest);\n newValue[key] = result[0];\n subValues.push(...result[1].map((s) => ({ path: [key, ...s.path], value: s.value })));\n }\n return [newValue, subValues];\n};\nclass StorePersist {\n constructor(store, storage, options = {}) {\n this.store = store;\n this.storage = storage;\n this.options = options;\n this.replayPatches = new Array();\n this.isInitialized = false;\n this.whenInitialized = this.load();\n this.isStopped = false;\n this.saveQueue = new Array();\n this.isSaving = false;\n if (!options.paths) {\n this.paths = [{ path: [], throttleMs: options.throttleMs }];\n } else {\n this.paths = options.paths.map((p) => {\n var _a;\n return {\n path: (typeof p === \"object\" ? p.path : p).split(\".\"),\n throttleMs: (_a = typeof p === \"object\" ? p.throttleMs : void 0) != null ? _a : options.throttleMs\n };\n });\n }\n this.paths.sort((a, b) => b.path.length - a.path.length);\n this.watch();\n }\n async load() {\n var _a;\n try {\n const storage = this.storage;\n let keys;\n if (\"keys\" in storage) {\n keys = await storage.keys();\n } else {\n const length = storage.length instanceof Function ? await storage.length() : storage.length;\n keys = new Array();\n for (let i = 0; i < length; i++) {\n const key = await storage.key(i);\n if (key !== null)\n keys.push(key);\n }\n }\n keys.sort((a, b) => a.length - b.length);\n const patches = new Array();\n for (const key of keys) {\n const value = await storage.getItem(key);\n if (value) {\n patches.push({\n path: key.split(\".\"),\n op: \"replace\",\n value: value === \"undefined\" ? void 0 : JSON.parse(value),\n persist: this\n });\n }\n }\n if (this.isStopped) {\n return false;\n }\n if (patches.length > 0) {\n this.store.applyPatches(patches);\n }\n this.isInitialized = true;\n if (this.replayPatches.length > 0) {\n this.store.applyPatches(this.replayPatches);\n this.replayPatches = [];\n }\n return true;\n } catch (e) {\n ((_a = this.options.log) != null ? _a : console.error)(\"Failed to load storePersist:\", e);\n return false;\n }\n }\n watch() {\n this.sub = this.store.subscribePatches((patches) => {\n for (const patch of patches) {\n if (patch.persist === this) {\n continue;\n } else if (this.isInitialized === true) {\n this.addToSaveQueue(patch.path);\n } else {\n this.replayPatches.push(patch);\n }\n }\n });\n }\n addToSaveQueue(path) {\n var _a;\n const match = this.paths.find((p) => isAncestor(p.path, path));\n if (!match)\n return;\n path = path.slice(0, match.path.length);\n const t = Date.now() + ((_a = match.throttleMs) != null ? _a : 0);\n if (this.saveQueue.some((i) => i.t <= t && isAncestor(i.path, path)))\n return;\n this.saveQueue.push({ path, t });\n this.saveQueue.sort((a, b) => a.t - b.t);\n this.run();\n }\n async run() {\n if (this.saveTimeout)\n clearTimeout(this.saveTimeout);\n const next = this.saveQueue[0];\n if (!next)\n return;\n if (next.t > Date.now()) {\n this.saveTimeout = setTimeout(() => this.run(), next.t - Date.now());\n return;\n }\n try {\n this.isSaving = true;\n this.saveQueue.shift();\n await this.save(next.path);\n } finally {\n this.isSaving = false;\n this.run();\n }\n }\n async save(path) {\n var _a, _b;\n const { store, storage } = this;\n let value = get(store.getState(), path);\n const subPaths = this.paths.filter((p) => isAncestor(path, p.path) && p.path.length > path.length).map((p) => p.path.slice(path.length));\n const subValues = new Array();\n for (const subPath of subPaths) {\n const result2 = split(value, subPath);\n value = result2[0];\n subValues.push(...result2[1].map((s) => ({ path: [...path, ...s.path], value: s.value })));\n }\n const result = storage.setItem(path.join(\".\"), (_a = JSON.stringify(value)) != null ? _a : \"undefined\");\n if (result instanceof Promise)\n await result;\n for (const { path: path2, value: value2 } of subValues) {\n const result2 = storage.setItem(path2.join(\".\"), (_b = JSON.stringify(value2)) != null ? _b : \"undefined\");\n if (result2 instanceof Promise)\n await result2;\n }\n }\n stop() {\n var _a;\n this.isStopped = true;\n (_a = this.sub) == null ? void 0 : _a.call(this);\n }\n}\nfunction hash(arg) {\n return JSON.stringify({ arg }, (_key, value) => {\n if (value instanceof Object && !(value instanceof Array)) {\n const obj = {};\n for (const key of Object.keys(value).sort()) {\n obj[key] = value[key];\n }\n return obj;\n }\n return value;\n });\n}\nvar react = function equal(a, b) {\n if (a === b)\n return true;\n if (a && b && typeof a == \"object\" && typeof b == \"object\") {\n if (a.constructor !== b.constructor)\n return false;\n var length, i, keys;\n if (Array.isArray(a)) {\n length = a.length;\n if (length != b.length)\n return false;\n for (i = length; i-- !== 0; )\n if (!equal(a[i], b[i]))\n return false;\n return true;\n }\n if (a instanceof Map && b instanceof Map) {\n if (a.size !== b.size)\n return false;\n for (i of a.entries())\n if (!b.has(i[0]))\n return false;\n for (i of a.entries())\n if (!equal(i[1], b.get(i[0])))\n return false;\n return true;\n }\n if (a instanceof Set && b instanceof Set) {\n if (a.size !== b.size)\n return false;\n for (i of a.entries())\n if (!b.has(i[0]))\n return false;\n return true;\n }\n if (ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {\n length = a.length;\n if (length != b.length)\n return false;\n for (i = length; i-- !== 0; )\n if (a[i] !== b[i])\n return false;\n return true;\n }\n if (a.constructor === RegExp)\n return a.source === b.source && a.flags === b.flags;\n if (a.valueOf !== Object.prototype.valueOf)\n return a.valueOf() === b.valueOf();\n if (a.toString !== Object.prototype.toString)\n return a.toString() === b.toString();\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length)\n return false;\n for (i = length; i-- !== 0; )\n if (!Object.prototype.hasOwnProperty.call(b, keys[i]))\n return false;\n for (i = length; i-- !== 0; ) {\n var key = keys[i];\n if (key === \"_owner\" && a.$$typeof) {\n continue;\n }\n if (!equal(a[key], b[key]))\n return false;\n }\n return true;\n }\n return a !== a && b !== b;\n};\nfunction createSelector(stringSelector) {\n const parts = stringSelector.split(\".\");\n return (state) => parts.reduce((v, p) => v instanceof Object && p in v ? v[p] : void 0, state);\n}\nfunction setWithSelector(state, stringSelector, value) {\n const parts = stringSelector.split(\".\");\n const prefix = parts.slice(0, -1);\n const last = parts[parts.length - 1];\n for (const part of prefix) {\n if (state instanceof Object && part in state) {\n state = state[part];\n } else {\n throw Error(`Could not set ${stringSelector} because path ${stringSelector} doesn't exist`);\n }\n }\n if (state instanceof Object) {\n state[last] = value;\n } else {\n throw Error(`Could not set ${stringSelector} because path ${stringSelector} doesn't exist`);\n }\n}\nfunction throttle(fn, ms) {\n let last = 0;\n let lastArgs;\n let timeout;\n function run() {\n const args = lastArgs;\n last = Date.now();\n lastArgs = void 0;\n timeout = void 0;\n fn(...args);\n }\n return function(...args) {\n const now = Date.now();\n lastArgs = args;\n if (timeout)\n ;\n else if (now < last + ms) {\n timeout = setTimeout(run, last + ms - now);\n } else {\n run();\n }\n };\n}\nconst RESTART_UPDATE = Symbol(\"RESTART_UPDATE\");\nclass Store {\n constructor(state, { log = (...data) => console.error(...data) } = {}) {\n this.state = state;\n this.subscriptions = new Set();\n this.batchCounter = 0;\n this.reactions = new Set();\n this.patches = new Array();\n freeze(state, true);\n enableMapSet();\n enablePatches();\n this.options = {\n log\n };\n }\n getState() {\n return this.state;\n }\n update(update) {\n this.checkLock();\n this.state = produce(this.state, (draft) => update(draft, this.state), (patches) => this.patches.push(...patches));\n this.notify();\n }\n set(state) {\n this.checkLock();\n this.state = produce(this.state, () => state, (patches) => this.patches.push(...patches));\n this.notify();\n }\n applyPatches(patches) {\n this.checkLock();\n this.state = applyPatches(this.state, patches);\n this.patches.push(...patches);\n this.notify();\n }\n batchUpdates(fn) {\n try {\n this.batchCounter++;\n fn();\n } finally {\n this.batchCounter--;\n if (this.batchCounter === 0) {\n this.notify();\n }\n }\n }\n subscribe(...args) {\n let selector, listener, options;\n if (args[1] instanceof Function) {\n [selector, listener, options] = args;\n if (typeof selector === \"string\") {\n selector = createSelector(selector);\n }\n } else {\n [selector, listener, options] = [(x) => x, ...args];\n }\n const { runNow = true, throttle: throttle$1 = 0, compare = react } = options != null ? options : {};\n const throttledListener = throttle$1 ? throttle(listener, throttle$1) : listener;\n let value = selector(this.state);\n const internalListener = (state, _patches, init) => {\n try {\n const oldValue = value;\n value = selector(state);\n if (!init && compare(value, oldValue))\n return;\n (init ? listener : throttledListener)(value, oldValue, this.state);\n } catch (e) {\n this.options.log(\"Failed to execute listener:\", e);\n }\n };\n this.subscriptions.add(internalListener);\n if (runNow)\n internalListener(this.state, [], true);\n return () => {\n this.subscriptions.delete(internalListener);\n };\n }\n addReaction(...args) {\n let selector, reaction, options;\n if (args[1] instanceof Function) {\n [selector, reaction, options] = args;\n if (typeof selector === \"string\") {\n selector = createSelector(selector);\n }\n } else {\n [selector, reaction, options] = [(x) => x, ...args];\n }\n const { runNow = true, compare = react } = options != null ? options : {};\n let value = selector(this.state);\n const internalListener = (init) => {\n let hasChanged = false;\n try {\n this.lock = \"reaction\";\n const oldValue = value;\n value = selector(this.state);\n if (!init && compare(value, oldValue))\n return;\n this.state = produce(this.state, (draft) => reaction(value, draft, this.state, oldValue), (patches) => {\n hasChanged = true;\n this.patches.push(...patches);\n });\n } catch (e) {\n this.options.log(\"Failed to execute reaction:\", e);\n } finally {\n delete this.lock;\n }\n if (hasChanged && !init)\n throw RESTART_UPDATE;\n if (hasChanged && init)\n this.notify();\n };\n this.reactions.add(internalListener);\n if (runNow)\n internalListener(true);\n return () => {\n this.reactions.delete(internalListener);\n };\n }\n subscribePatches(listener) {\n const internalListener = (_state, patches) => {\n try {\n listener(patches);\n } catch (e) {\n this.options.log(\"Failed to execute patch listener:\", e);\n }\n };\n this.subscriptions.add(internalListener);\n return () => {\n this.subscriptions.delete(internalListener);\n };\n }\n checkLock() {\n if (this.lock === \"reaction\") {\n throw Error(\"You cannot call update from within a reaction. Use the passed draft instead.\");\n }\n }\n notify() {\n if (this.batchCounter > 0 || this.patches.length === 0)\n return;\n try {\n for (const reaction of this.reactions) {\n reaction();\n }\n } catch (e) {\n return this.notify();\n }\n const patches = this.patches;\n this.patches = [];\n this.batchUpdates(() => {\n for (const subscription of this.subscriptions) {\n subscription(this.state, patches);\n }\n });\n }\n}\nexport { Store as S, StorePersist as a, createSelector as c, hash as h, react as r, setWithSelector as s };\n//# sourceMappingURL=store.js.map\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a2, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a2, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a2, prop, b[prop]);\n }\n return a2;\n};\nimport { c as createSelector, r as react, s as setWithSelector, S as Store$1, h as hash } from \"./store.js\";\nexport { a as StorePersist } from \"./store.js\";\nimport React, { useCallback, useDebugValue, useMemo, createContext, useContext, useEffect } from \"react\";\nimport \"immer\";\nvar withSelector = { exports: {} };\nvar withSelector_production_min = {};\nvar shim = { exports: {} };\nvar useSyncExternalStoreShim_production_min = {};\n/** @license React vundefined\n * use-sync-external-store-shim.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nvar e = React;\nfunction h$1(a2, b) {\n return a2 === b && (a2 !== 0 || 1 / a2 === 1 / b) || a2 !== a2 && b !== b;\n}\nvar k = typeof Object.is === \"function\" ? Object.is : h$1, l = e.useState, m = e.useEffect, n$1 = e.useLayoutEffect, p$1 = e.useDebugValue;\nfunction q$1(a2, b) {\n var d = b(), f = l({ inst: { value: d, getSnapshot: b } }), c = f[0].inst, g = f[1];\n n$1(function() {\n c.value = d;\n c.getSnapshot = b;\n r$1(c) && g({ inst: c });\n }, [a2, d, b]);\n m(function() {\n r$1(c) && g({ inst: c });\n return a2(function() {\n r$1(c) && g({ inst: c });\n });\n }, [a2]);\n p$1(d);\n return d;\n}\nfunction r$1(a2) {\n var b = a2.getSnapshot;\n a2 = a2.value;\n try {\n var d = b();\n return !k(a2, d);\n } catch (f) {\n return true;\n }\n}\nfunction t$1(a2, b) {\n return b();\n}\nvar u$1 = typeof window === \"undefined\" || typeof window.document === \"undefined\" || typeof window.document.createElement === \"undefined\" ? t$1 : q$1;\nuseSyncExternalStoreShim_production_min.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : u$1;\n{\n shim.exports = useSyncExternalStoreShim_production_min;\n}\n/** @license React vundefined\n * use-sync-external-store-shim/with-selector.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nvar h = React, n = shim.exports;\nfunction p(a2, b) {\n return a2 === b && (a2 !== 0 || 1 / a2 === 1 / b) || a2 !== a2 && b !== b;\n}\nvar q = typeof Object.is === \"function\" ? Object.is : p, r = n.useSyncExternalStore, t = h.useRef, u = h.useEffect, v = h.useMemo, w = h.useDebugValue;\nwithSelector_production_min.useSyncExternalStoreWithSelector = function(a2, b, e2, l2, g) {\n var c = t(null);\n if (c.current === null) {\n var f = { hasValue: false, value: null };\n c.current = f;\n } else\n f = c.current;\n c = v(function() {\n function a3(a4) {\n if (!c2) {\n c2 = true;\n d2 = a4;\n a4 = l2(a4);\n if (g !== void 0 && f.hasValue) {\n var b2 = f.value;\n if (g(b2, a4))\n return k2 = b2;\n }\n return k2 = a4;\n }\n b2 = k2;\n if (q(d2, a4))\n return b2;\n var e3 = l2(a4);\n if (g !== void 0 && g(b2, e3))\n return b2;\n d2 = a4;\n return k2 = e3;\n }\n var c2 = false, d2, k2, m2 = e2 === void 0 ? null : e2;\n return [function() {\n return a3(b());\n }, m2 === null ? void 0 : function() {\n return a3(m2());\n }];\n }, [b, e2, l2, g]);\n var d = r(a2, c[0], c[1]);\n u(function() {\n f.hasValue = true;\n f.value = d;\n }, [d]);\n w(d);\n return d;\n};\n{\n withSelector.exports = withSelector_production_min;\n}\nfunction useStoreState(store, ...args) {\n var _a, _b, _c, _d;\n let selector, options;\n if (args[0] instanceof Function) {\n selector = args[0];\n options = (_a = args[1]) != null ? _a : {};\n } else if (typeof args[0] === \"string\") {\n selector = createSelector(args[0]);\n options = (_b = args[1]) != null ? _b : {};\n } else {\n selector = (x) => x;\n options = (_c = args[0]) != null ? _c : {};\n }\n const subscribe = useCallback((listener) => {\n return store.subscribe((x) => x, listener, {\n throttle: options.throttle,\n runNow: false,\n compare: (a2, b) => a2 === b\n });\n }, [store, options.throttle]);\n const getSnapshot = useCallback(() => store.getState(), [store]);\n const value = withSelector.exports.useSyncExternalStoreWithSelector(subscribe, getSnapshot, getSnapshot, selector, (_d = options.compare) != null ? _d : react);\n useDebugValue(value);\n return value;\n}\nfunction useStoreProp(store, selector) {\n const value = useStoreState(store, selector);\n const update = (value2) => store.update((state) => setWithSelector(state, selector, value2));\n return [value, update];\n}\nclass Store extends Store$1 {\n useState(...args) {\n return useStoreState(this, ...args);\n }\n useProp(selector) {\n return useStoreProp(this, selector);\n }\n}\nclass StoreScope {\n constructor(defaultValue) {\n this.defaultValue = defaultValue;\n this.Provider = ({ children, store }) => {\n const _store = useMemo(() => store != null ? store : new Store(this.defaultValue), [store]);\n return /* @__PURE__ */ React.createElement(this.context.Provider, {\n value: _store\n }, children);\n };\n this.withScope = (Component) => {\n return (args) => /* @__PURE__ */ React.createElement(this.Provider, null, /* @__PURE__ */ React.createElement(Component, __spreadValues({}, args)));\n };\n this.context = createContext(new Store(defaultValue));\n }\n useStore() {\n return useContext(this.context);\n }\n useState(...args) {\n const store = this.useStore();\n return useStoreState(store, ...args);\n }\n useProp(selector) {\n const store = this.useStore();\n return useStoreProp(store, selector);\n }\n}\nfunction useResource(resource, options) {\n const { compare, dormant, throttle, updateOnMount, watchOnly } = options != null ? options : {};\n useEffect(() => {\n if (updateOnMount && !dormant) {\n resource.invalidateCache();\n }\n }, []);\n const subscribe = useCallback((listener) => {\n if (dormant)\n return () => {\n };\n return resource.subscribe(listener, {\n watchOnly,\n throttle,\n runNow: false,\n compare\n });\n }, [resource.id, watchOnly, dormant, throttle]);\n const getSnapshot = useCallback(() => resource.getCache(), [resource.id]);\n let value = withSelector.exports.useSyncExternalStoreWithSelector(subscribe, getSnapshot, getSnapshot, (x) => x, react);\n if (dormant) {\n value = { state: \"empty\", isLoading: false };\n }\n useDebugValue(value);\n return value;\n}\nfunction useReadResource(resource, options) {\n const info = useResource(resource, options);\n if (info.state === \"error\") {\n throw info.error;\n }\n if (info.state === \"empty\") {\n throw resource.get();\n }\n useDebugValue(info.value);\n return info.value;\n}\nfunction combineResources(...resources) {\n return {\n id: hash(resources.map((resource) => resource.id)),\n invalidateCache() {\n for (const resource of resources) {\n resource.invalidateCache();\n }\n },\n subscribe(listener, options) {\n const handles = resources.map((resource) => resource.subscribe(listener, options));\n return () => {\n for (const handle of handles) {\n handle();\n }\n };\n },\n getCache() {\n var _a;\n const caches = resources.map((resource) => resource.getCache());\n const isStale = caches.some((cache) => cache.isStale);\n const isLoading = caches.some((cache) => cache.isLoading);\n if (caches.some((resource) => resource.state === \"error\")) {\n const error = (_a = caches.find((cache) => cache.error !== void 0)) == null ? void 0 : _a.error;\n return { state: \"error\", error, isStale, isLoading };\n }\n if (caches.every((resource) => resource.state === \"value\")) {\n const value = caches.map((cache) => cache.value);\n return { state: \"value\", value, isStale, isLoading };\n }\n return { state: \"empty\", isLoading };\n },\n get() {\n return Promise.all(resources.map((resource) => resource.get()));\n }\n };\n}\nexport { Store, StoreScope, combineResources, useReadResource, useResource, useStoreState };\n//# sourceMappingURL=react.js.map\n","export function throttle<Args extends any[]>(\n function_: (...args: Args) => void,\n ms: number,\n): { (...args: Args): void; flush(): void; cancel(): void } {\n let last = 0;\n let lastArgs: Args | undefined;\n let timeout: ReturnType<typeof setTimeout> | undefined;\n\n function run() {\n const args = lastArgs;\n\n last = Date.now();\n lastArgs = undefined;\n timeout = undefined;\n\n function_(...args!);\n }\n\n return Object.assign(\n function (...args: Args) {\n const now = Date.now();\n lastArgs = args;\n\n if (timeout) {\n // do nothing\n } else if (now < last + ms) {\n timeout = setTimeout(run, last + ms - now);\n } else {\n run();\n }\n },\n {\n flush() {\n if (lastArgs) {\n run();\n }\n },\n\n cancel() {\n if (timeout) {\n clearTimeout(timeout);\n }\n },\n },\n );\n}\n","import { css } from '@emotion/react';\n\nconst cell = css({\n padding: `calc(var(--spacing) * 0.1) calc(2 * var(--spacing))`,\n display: 'flex',\n alignItems: 'center',\n borderBottom: '1px solid var(--table-border-light-color)',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n\n '&:empty': {\n padding: 0,\n },\n});\n\nexport const defaultClasses = {\n table: css({\n position: 'relative',\n display: 'grid',\n color: 'var(--table-text-color)',\n }),\n\n cell,\n\n cellFill: css({\n borderBottom: '1px solid var(--table-border-light-color)',\n }),\n\n headerCell: css(cell, {\n borderBottom: '1px solid var(--table-border-color)',\n background: 'var(--table-background-color)',\n\n '&:not(:empty)': {\n padding: `var(--spacing) 0 var(--spacing) calc(2 * var(--spacing))`,\n },\n }),\n\n footerCell: css(cell, {\n padding: `var(--spacing) calc(2 * var(--spacing))`,\n borderTop: '1px solid var(--table-border-color)',\n borderBottom: 'none',\n background: 'var(--table-background-color)',\n }),\n\n firstCell: css({\n justifyContent: 'start',\n }),\n\n sticky: css({\n position: 'sticky',\n top: 0,\n zIndex: 2,\n }),\n\n stickyBottom: css({\n position: 'sticky',\n bottom: 0,\n zIndex: 2,\n }),\n\n headerFill: css({\n borderBottom: '1px solid var(--table-border-color)',\n background: 'var(--table-background-color)',\n }),\n\n footerFill: css({\n borderTop: '1px solid var(--table-border-color)',\n background: 'var(--table-background-color)',\n }),\n\n text: css({\n minWidth: 0,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n }),\n\n card: css({\n borderRadius: 4,\n boxShadow: '0px 3px 14px 2px rgb(0 0 0 / 12%)',\n background: 'var(--table-background-color)',\n }),\n\n clearFiltersButton: css({\n padding: `0 calc(2 * var(--spacing))`,\n fontWeight: 'bold',\n position: 'sticky',\n left: 0,\n maxWidth: 'fit-content',\n gridColumn: '2/-1',\n button: {\n color: 'var(--primaryMain) !important',\n border: 'solid 1px',\n borderColor: 'var(--primaryMain) !important',\n margin: 'var(--spacing)',\n },\n }),\n\n details: css(cell, {\n gridColumn: '1 / -1',\n whiteSpace: 'normal',\n }),\n};\n","import { useLayoutEffect, useRef } from 'react';\nimport { createPortal } from 'react-dom';\nimport { throttle } from '../../misc/throttle';\nimport type { TableTheme } from '../../types';\nimport { defaultClasses } from './defaultClasses';\n\nconst MAX_OFFSET = 20;\n\nexport const Popover: TableTheme['components']['Popover'] = ({\n anchorEl,\n open,\n hidden,\n onClose,\n children,\n className,\n backdropClassName,\n align,\n}) => {\n const probe = useRef<HTMLDivElement>(null);\n const backdrop = useRef<HTMLDivElement>(null);\n const popper = useRef<HTMLDivElement>(null);\n\n useLayoutEffect(() => {\n if (!open) {\n return;\n }\n\n function check() {\n const marginLeft = parseFloat(getComputedStyle(popper.current ?? document.body).marginLeft);\n const marginRight = parseFloat(getComputedStyle(popper.current ?? document.body).marginRight);\n const marginTop = parseFloat(getComputedStyle(popper.current ?? document.body).marginTop);\n const marginBottom = parseFloat(\n getComputedStyle(popper.current ?? document.body).marginBottom,\n );\n popper.current?.style.setProperty('--margin-x', `${marginLeft + marginRight}px`);\n popper.current?.style.setProperty('--margin-y', `${marginTop + marginBottom}px`);\n\n if (hidden) {\n popper.current?.style.setProperty('visibility', 'hidden');\n return;\n }\n\n const viewportWidth = window.visualViewport?.width ?? window.innerWidth;\n const viewportHeight = window.visualViewport?.height ?? window.innerHeight;\n const { width: popperWidth = 0, height: popperHeight = 0 } =\n popper.current?.getBoundingClientRect() ?? {};\n\n const next = {\n left: 0,\n top: 0,\n };\n\n if (anchorEl) {\n const bb = anchorEl.getBoundingClientRect();\n\n if (align === 'center') {\n next.left = bb.left + bb.width / 2 - popperWidth / 2;\n } else {\n next.left =\n bb.left -\n Math.min(popperWidth ? popperWidth / 2 : Number.POSITIVE_INFINITY, MAX_OFFSET);\n }\n\n next.top = bb.bottom;\n } else {\n next.left = (viewportWidth - popperWidth) / 2;\n next.top = (viewportHeight - popperHeight) / 2;\n }\n\n if (next.left > viewportWidth - popperWidth - marginLeft - marginRight) {\n next.left = viewportWidth - popperWidth - marginLeft - marginRight;\n }\n if (next.left < marginLeft) {\n next.left = marginLeft;\n }\n if (next.top > viewportHeight - popperHeight - marginTop - marginBottom) {\n next.top = viewportHeight - popperHeight - marginTop - marginBottom;\n }\n if (next.top < marginTop) {\n next.top = marginTop;\n }\n\n popper.current?.style.setProperty('left', `${next.left}px`);\n popper.current?.style.setProperty('top', `${next.top}px`);\n popper.current?.style.setProperty('visibility', 'visible');\n }\n const checkThrottled = throttle(check, 16);\n check();\n\n const handle = setInterval(checkThrottled, 1000);\n window.addEventListener('resize', checkThrottled);\n window.addEventListener('scroll', checkThrottled, true);\n\n return () => {\n clearInterval(handle);\n window.removeEventListener('resize', checkThrottled);\n window.removeEventListener('scroll', checkThrottled, true);\n };\n }, [anchorEl, open, hidden, align]);\n\n useLayoutEffect(() => {\n if (!open) return;\n\n const ancestors = [];\n for (let node = probe.current?.parentElement; node; node = node.parentElement) {\n ancestors.push(node);\n }\n\n for (const node of ancestors.reverse()) {\n const value = document.defaultView?.getComputedStyle(node).getPropertyValue('z-index');\n\n if (value && !Number.isNaN(Number(value))) {\n const newZIndex = Number(value) + 1;\n\n if (\n backdrop.current &&\n !(\n Number(\n document.defaultView?.getComputedStyle(backdrop.current).getPropertyValue('z-index'),\n ) > newZIndex\n )\n ) {\n backdrop.current?.style.setProperty('z-index', newZIndex.toString());\n }\n\n if (\n popper.current &&\n !(\n Number(\n document.defaultView?.getComputedStyle(popper.current).getPropertyValue('z-index'),\n ) >\n newZIndex + 1\n )\n ) {\n popper.current?.style.setProperty('z-index', (newZIndex + 1).toString());\n }\n return;\n }\n }\n }, [anchorEl, open]);\n\n if (!open) return null;\n\n return (\n <>\n <div\n ref={probe}\n css={{\n display: 'none',\n }}\n />\n\n {createPortal(\n <>\n <div\n ref={backdrop}\n className={backdropClassName}\n css={[\n {\n position: 'fixed',\n left: 0,\n right: 0,\n top: 0,\n bottom: 0,\n },\n hidden && { display: 'none' },\n ]}\n onClick={() => onClose()}\n />\n\n <div\n ref={popper}\n className={className}\n css={[\n defaultClasses.card,\n {\n position: 'fixed',\n width: 'max-content',\n maxWidth: [\n `calc(100vw - (100vw - 100%) - var(--margin-x))`,\n `calc(100dvw - (100dvw - 100%) - var(--margin-x))`,\n ],\n maxHeight: [\n `calc(100vh - (100vh - 100%) - var(--margin-x))`,\n `calc(100dvh - (100dvh - 100%) - var(--margin-x))`,\n ],\n margin: 10,\n zIndex: 1,\n overflowY: 'auto',\n color: 'var(--table-text-color)',\n visibility: 'hidden',\n },\n hidden && { display: 'none' },\n ]}\n >\n {children}\n </div>\n </>,\n document.body,\n )}\n </>\n );\n};\n","import { Store } from 'schummar-state/react';\nimport type { PartialTableTheme } from '../types';\n\nexport const globalTableTheme = new Store<PartialTableTheme>({});\n\nexport function configureTableTheme(tableTheme: PartialTableTheme) {\n globalTableTheme.set(tableTheme);\n}\n\nexport function mergeThemes<T>(...themes: PartialTableTheme<T>[]): PartialTableTheme<T> {\n return {\n text: Object.assign({}, ...themes.map((theme) => theme.text)),\n classes: Object.assign({}, ...themes.map((theme) => theme.classes)),\n styles: Object.assign({}, ...themes.map((theme) => theme.styles)),\n components: Object.assign({}, ...themes.map((theme) => theme.components)),\n icons: Object.assign({}, ...themes.map((theme) => theme.icons)),\n colors: {\n primary: Object.assign({}, ...themes.map((theme) => theme.colors?.primary)),\n secondary: Object.assign({}, ...themes.map((theme) => theme.colors?.secondary)),\n blocked: Object.assign({}, ...themes.map((theme) => theme.colors?.blocked)),\n background: themes\n .map((theme) => theme.colors?.background)\n .reverse()\n .find((x) => x !== undefined),\n text: themes\n .map((theme) => theme.colors?.text)\n .reverse()\n .find((x) => x !== undefined),\n border: themes\n .map((theme) => theme.colors?.border)\n .reverse()\n .find((x) => x !== undefined),\n borderLight: themes\n .map((theme) => theme.colors?.borderLight)\n .reverse()\n .find((x) => x !== undefined),\n },\n spacing: themes\n .map((theme) => theme.spacing)\n .reverse()\n .find((x) => x !== undefined),\n };\n}\n","import { ReactNode, createContext, useContext } from 'react';\nimport CsvExporter from '../exporters/csvExporter';\nimport { ExporterEntry } from '../exporters/exporter';\nimport { PartialTableTheme } from '../types';\n\nexport interface TableSettingsContextType {\n theme: PartialTableTheme;\n exporters: ExporterEntry[];\n}\n\nexport const TableSettingsContext = createContext<TableSettingsContextType>({\n theme: {},\n exporters: [\n { action: 'copy', exporter: new CsvExporter() },\n { action: 'download', exporter: new CsvExporter() },\n ],\n});\n\nexport function TableSettingsProvider({\n theme,\n exporters,\n additionalExporters,\n children,\n}: Partial<TableSettingsContextType> & {\n additionalExporters?: ExporterEntry[];\n children?: ReactNode;\n}) {\n const inherited = useContext(TableSettingsContext);\n theme ??= inherited.theme;\n exporters ??= inherited.exporters;\n\n if (additionalExporters) {\n exporters = [...exporters, ...additionalExporters];\n }\n\n return (\n <TableSettingsContext.Provider\n value={{\n theme,\n exporters,\n }}\n >\n {children}\n </TableSettingsContext.Provider>\n );\n}\n"],"x_google_ignoreList":[0,1],"mappings":";;;;;;;;AA6NA,IAAI,QAAQ,SAAS,MAAM,GAAG,GAAG;AAC/B,KAAI,MAAM,EACR,QAAO;AACT,KAAI,KAAK,KAAK,OAAO,KAAK,YAAY,OAAO,KAAK,UAAU;AAC1D,MAAI,EAAE,gBAAgB,EAAE,YACtB,QAAO;EACT,IAAI,QAAQ,GAAG;AACf,MAAI,MAAM,QAAQ,EAAE,EAAE;AACpB,YAAS,EAAE;AACX,OAAI,UAAU,EAAE,OACd,QAAO;AACT,QAAK,IAAI,QAAQ,QAAQ,GACvB,KAAI,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,CACpB,QAAO;AACX,UAAO;;AAET,MAAI,aAAa,OAAO,aAAa,KAAK;AACxC,OAAI,EAAE,SAAS,EAA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AM,MAAM,OAAU;GAC/B,QAAQ,OACL,KAAK,UAAU,MAAM,QAAQ,OAAO,CACpC,SAAS,CACT,MAAM,MAAM,MAAM,OAAU;GAC/B,aAAa,OACV,KAAK,UAAU,MAAM,QAAQ,YAAY,CACzC,SAAS,CACT,MAAM,MAAM,MAAM,OAAU;GAChC;EACD,SAAS,OACN,KAAK,UAAU,MAAM,QAAQ,CAC7B,SAAS,CACT,MAAM,MAAM,MAAM,OAAU;EAChC;;;;;AC/BH,MAAa,uBAAuB,cAAwC;CAC1E,OAAO,EAAE;CACT,WAAW,CACT;EAAE,QAAQ;EAAQ,UAAU,IAAI,aAAa;EAAE,EAC/C;EAAE,QAAQ;EAAY,UAAU,IAAI,aAAa;EAAE,CACpD;CACF,CAAC;AAEF,SAAgB,sBAAsB,EACpC,OACA,WACA,qBACA,YAIC;CACD,MAAM,YAAY,WAAW,qBAAqB;AAClD,WAAU,UAAU;AACpB,eAAc,UAAU;AAExB,KAAI,oBACF,aAAY,CAAC,GAAG,WAAW,GAAG,oBAAoB;AAGpD,QACE,oBAAC,qBAAqB;EACpB,OAAO;GACL;GACA;GACD;EAEA;GAC6B"}
|
|
1
|
+
{"version":3,"file":"tableSettings-ClxJL29H.js","names":["v","p","throttle","Store","throttle$1","e","lastArgs: Args | undefined","timeout: ReturnType<typeof setTimeout> | undefined","Popover: TableTheme['components']['Popover']"],"sources":["../node_modules/schummar-state/dist/es/store.js","../node_modules/schummar-state/dist/es/react.js","../src/misc/throttle.ts","../src/theme/defaultTheme/defaultClasses.ts","../src/theme/defaultTheme/popover.tsx","../src/theme/tableTheme.tsx","../src/misc/tableSettings.tsx"],"sourcesContent":["var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nvar __restKey = (key) => typeof key === \"symbol\" ? key : key + \"\";\nvar __objRest = (source, exclude) => {\n var target = {};\n for (var prop in source)\n if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)\n target[prop] = source[prop];\n if (source != null && __getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(source)) {\n if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))\n target[prop] = source[prop];\n }\n return target;\n};\nimport { freeze, enableMapSet, enablePatches, produce, applyPatches } from \"immer\";\nconst isAncestor = (ancestor, path) => {\n return ancestor.length <= path.length && ancestor.every((v, i) => v === \"*\" || path[i] === \"*\" || String(v) === String(path[i]));\n};\nconst get = (value, path) => {\n for (const part of path) {\n if (value instanceof Object && part in value)\n value = value[part];\n else {\n value = void 0;\n break;\n }\n }\n return value;\n};\nconst split = (value, path) => {\n const [first, ...rest] = path;\n if (first === void 0)\n return [value, []];\n if (rest.length === 0) {\n if (first === \"*\")\n return [{}, Object.entries(value).map(([k, v]) => ({ path: [k], value: v }))];\n if (!(first in value))\n return [value, []];\n const _a = value, { [first]: subValue } = _a, newValue2 = __objRest(_a, [__restKey(first)]);\n return [newValue2, [{ path: [first], value: subValue }]];\n }\n const newValue = __spreadValues({}, value);\n const subValues = new Array();\n for (const key of first === \"*\" ? Object.keys(value) : [first]) {\n if (!(newValue[key] instanceof Object))\n return [value, []];\n const result = split(newValue[key], rest);\n newValue[key] = result[0];\n subValues.push(...result[1].map((s) => ({ path: [key, ...s.path], value: s.value })));\n }\n return [newValue, subValues];\n};\nclass StorePersist {\n constructor(store, storage, options = {}) {\n this.store = store;\n this.storage = storage;\n this.options = options;\n this.replayPatches = new Array();\n this.isInitialized = false;\n this.whenInitialized = this.load();\n this.isStopped = false;\n this.saveQueue = new Array();\n this.isSaving = false;\n if (!options.paths) {\n this.paths = [{ path: [], throttleMs: options.throttleMs }];\n } else {\n this.paths = options.paths.map((p) => {\n var _a;\n return {\n path: (typeof p === \"object\" ? p.path : p).split(\".\"),\n throttleMs: (_a = typeof p === \"object\" ? p.throttleMs : void 0) != null ? _a : options.throttleMs\n };\n });\n }\n this.paths.sort((a, b) => b.path.length - a.path.length);\n this.watch();\n }\n async load() {\n var _a;\n try {\n const storage = this.storage;\n let keys;\n if (\"keys\" in storage) {\n keys = await storage.keys();\n } else {\n const length = storage.length instanceof Function ? await storage.length() : storage.length;\n keys = new Array();\n for (let i = 0; i < length; i++) {\n const key = await storage.key(i);\n if (key !== null)\n keys.push(key);\n }\n }\n keys.sort((a, b) => a.length - b.length);\n const patches = new Array();\n for (const key of keys) {\n const value = await storage.getItem(key);\n if (value) {\n patches.push({\n path: key.split(\".\"),\n op: \"replace\",\n value: value === \"undefined\" ? void 0 : JSON.parse(value),\n persist: this\n });\n }\n }\n if (this.isStopped) {\n return false;\n }\n if (patches.length > 0) {\n this.store.applyPatches(patches);\n }\n this.isInitialized = true;\n if (this.replayPatches.length > 0) {\n this.store.applyPatches(this.replayPatches);\n this.replayPatches = [];\n }\n return true;\n } catch (e) {\n ((_a = this.options.log) != null ? _a : console.error)(\"Failed to load storePersist:\", e);\n return false;\n }\n }\n watch() {\n this.sub = this.store.subscribePatches((patches) => {\n for (const patch of patches) {\n if (patch.persist === this) {\n continue;\n } else if (this.isInitialized === true) {\n this.addToSaveQueue(patch.path);\n } else {\n this.replayPatches.push(patch);\n }\n }\n });\n }\n addToSaveQueue(path) {\n var _a;\n const match = this.paths.find((p) => isAncestor(p.path, path));\n if (!match)\n return;\n path = path.slice(0, match.path.length);\n const t = Date.now() + ((_a = match.throttleMs) != null ? _a : 0);\n if (this.saveQueue.some((i) => i.t <= t && isAncestor(i.path, path)))\n return;\n this.saveQueue.push({ path, t });\n this.saveQueue.sort((a, b) => a.t - b.t);\n this.run();\n }\n async run() {\n if (this.saveTimeout)\n clearTimeout(this.saveTimeout);\n const next = this.saveQueue[0];\n if (!next)\n return;\n if (next.t > Date.now()) {\n this.saveTimeout = setTimeout(() => this.run(), next.t - Date.now());\n return;\n }\n try {\n this.isSaving = true;\n this.saveQueue.shift();\n await this.save(next.path);\n } finally {\n this.isSaving = false;\n this.run();\n }\n }\n async save(path) {\n var _a, _b;\n const { store, storage } = this;\n let value = get(store.getState(), path);\n const subPaths = this.paths.filter((p) => isAncestor(path, p.path) && p.path.length > path.length).map((p) => p.path.slice(path.length));\n const subValues = new Array();\n for (const subPath of subPaths) {\n const result2 = split(value, subPath);\n value = result2[0];\n subValues.push(...result2[1].map((s) => ({ path: [...path, ...s.path], value: s.value })));\n }\n const result = storage.setItem(path.join(\".\"), (_a = JSON.stringify(value)) != null ? _a : \"undefined\");\n if (result instanceof Promise)\n await result;\n for (const { path: path2, value: value2 } of subValues) {\n const result2 = storage.setItem(path2.join(\".\"), (_b = JSON.stringify(value2)) != null ? _b : \"undefined\");\n if (result2 instanceof Promise)\n await result2;\n }\n }\n stop() {\n var _a;\n this.isStopped = true;\n (_a = this.sub) == null ? void 0 : _a.call(this);\n }\n}\nfunction hash(arg) {\n return JSON.stringify({ arg }, (_key, value) => {\n if (value instanceof Object && !(value instanceof Array)) {\n const obj = {};\n for (const key of Object.keys(value).sort()) {\n obj[key] = value[key];\n }\n return obj;\n }\n return value;\n });\n}\nvar react = function equal(a, b) {\n if (a === b)\n return true;\n if (a && b && typeof a == \"object\" && typeof b == \"object\") {\n if (a.constructor !== b.constructor)\n return false;\n var length, i, keys;\n if (Array.isArray(a)) {\n length = a.length;\n if (length != b.length)\n return false;\n for (i = length; i-- !== 0; )\n if (!equal(a[i], b[i]))\n return false;\n return true;\n }\n if (a instanceof Map && b instanceof Map) {\n if (a.size !== b.size)\n return false;\n for (i of a.entries())\n if (!b.has(i[0]))\n return false;\n for (i of a.entries())\n if (!equal(i[1], b.get(i[0])))\n return false;\n return true;\n }\n if (a instanceof Set && b instanceof Set) {\n if (a.size !== b.size)\n return false;\n for (i of a.entries())\n if (!b.has(i[0]))\n return false;\n return true;\n }\n if (ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {\n length = a.length;\n if (length != b.length)\n return false;\n for (i = length; i-- !== 0; )\n if (a[i] !== b[i])\n return false;\n return true;\n }\n if (a.constructor === RegExp)\n return a.source === b.source && a.flags === b.flags;\n if (a.valueOf !== Object.prototype.valueOf)\n return a.valueOf() === b.valueOf();\n if (a.toString !== Object.prototype.toString)\n return a.toString() === b.toString();\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length)\n return false;\n for (i = length; i-- !== 0; )\n if (!Object.prototype.hasOwnProperty.call(b, keys[i]))\n return false;\n for (i = length; i-- !== 0; ) {\n var key = keys[i];\n if (key === \"_owner\" && a.$$typeof) {\n continue;\n }\n if (!equal(a[key], b[key]))\n return false;\n }\n return true;\n }\n return a !== a && b !== b;\n};\nfunction createSelector(stringSelector) {\n const parts = stringSelector.split(\".\");\n return (state) => parts.reduce((v, p) => v instanceof Object && p in v ? v[p] : void 0, state);\n}\nfunction setWithSelector(state, stringSelector, value) {\n const parts = stringSelector.split(\".\");\n const prefix = parts.slice(0, -1);\n const last = parts[parts.length - 1];\n for (const part of prefix) {\n if (state instanceof Object && part in state) {\n state = state[part];\n } else {\n throw Error(`Could not set ${stringSelector} because path ${stringSelector} doesn't exist`);\n }\n }\n if (state instanceof Object) {\n state[last] = value;\n } else {\n throw Error(`Could not set ${stringSelector} because path ${stringSelector} doesn't exist`);\n }\n}\nfunction throttle(fn, ms) {\n let last = 0;\n let lastArgs;\n let timeout;\n function run() {\n const args = lastArgs;\n last = Date.now();\n lastArgs = void 0;\n timeout = void 0;\n fn(...args);\n }\n return function(...args) {\n const now = Date.now();\n lastArgs = args;\n if (timeout)\n ;\n else if (now < last + ms) {\n timeout = setTimeout(run, last + ms - now);\n } else {\n run();\n }\n };\n}\nconst RESTART_UPDATE = Symbol(\"RESTART_UPDATE\");\nclass Store {\n constructor(state, { log = (...data) => console.error(...data) } = {}) {\n this.state = state;\n this.subscriptions = new Set();\n this.batchCounter = 0;\n this.reactions = new Set();\n this.patches = new Array();\n freeze(state, true);\n enableMapSet();\n enablePatches();\n this.options = {\n log\n };\n }\n getState() {\n return this.state;\n }\n update(update) {\n this.checkLock();\n this.state = produce(this.state, (draft) => update(draft, this.state), (patches) => this.patches.push(...patches));\n this.notify();\n }\n set(state) {\n this.checkLock();\n this.state = produce(this.state, () => state, (patches) => this.patches.push(...patches));\n this.notify();\n }\n applyPatches(patches) {\n this.checkLock();\n this.state = applyPatches(this.state, patches);\n this.patches.push(...patches);\n this.notify();\n }\n batchUpdates(fn) {\n try {\n this.batchCounter++;\n fn();\n } finally {\n this.batchCounter--;\n if (this.batchCounter === 0) {\n this.notify();\n }\n }\n }\n subscribe(...args) {\n let selector, listener, options;\n if (args[1] instanceof Function) {\n [selector, listener, options] = args;\n if (typeof selector === \"string\") {\n selector = createSelector(selector);\n }\n } else {\n [selector, listener, options] = [(x) => x, ...args];\n }\n const { runNow = true, throttle: throttle$1 = 0, compare = react } = options != null ? options : {};\n const throttledListener = throttle$1 ? throttle(listener, throttle$1) : listener;\n let value = selector(this.state);\n const internalListener = (state, _patches, init) => {\n try {\n const oldValue = value;\n value = selector(state);\n if (!init && compare(value, oldValue))\n return;\n (init ? listener : throttledListener)(value, oldValue, this.state);\n } catch (e) {\n this.options.log(\"Failed to execute listener:\", e);\n }\n };\n this.subscriptions.add(internalListener);\n if (runNow)\n internalListener(this.state, [], true);\n return () => {\n this.subscriptions.delete(internalListener);\n };\n }\n addReaction(...args) {\n let selector, reaction, options;\n if (args[1] instanceof Function) {\n [selector, reaction, options] = args;\n if (typeof selector === \"string\") {\n selector = createSelector(selector);\n }\n } else {\n [selector, reaction, options] = [(x) => x, ...args];\n }\n const { runNow = true, compare = react } = options != null ? options : {};\n let value = selector(this.state);\n const internalListener = (init) => {\n let hasChanged = false;\n try {\n this.lock = \"reaction\";\n const oldValue = value;\n value = selector(this.state);\n if (!init && compare(value, oldValue))\n return;\n this.state = produce(this.state, (draft) => reaction(value, draft, this.state, oldValue), (patches) => {\n hasChanged = true;\n this.patches.push(...patches);\n });\n } catch (e) {\n this.options.log(\"Failed to execute reaction:\", e);\n } finally {\n delete this.lock;\n }\n if (hasChanged && !init)\n throw RESTART_UPDATE;\n if (hasChanged && init)\n this.notify();\n };\n this.reactions.add(internalListener);\n if (runNow)\n internalListener(true);\n return () => {\n this.reactions.delete(internalListener);\n };\n }\n subscribePatches(listener) {\n const internalListener = (_state, patches) => {\n try {\n listener(patches);\n } catch (e) {\n this.options.log(\"Failed to execute patch listener:\", e);\n }\n };\n this.subscriptions.add(internalListener);\n return () => {\n this.subscriptions.delete(internalListener);\n };\n }\n checkLock() {\n if (this.lock === \"reaction\") {\n throw Error(\"You cannot call update from within a reaction. Use the passed draft instead.\");\n }\n }\n notify() {\n if (this.batchCounter > 0 || this.patches.length === 0)\n return;\n try {\n for (const reaction of this.reactions) {\n reaction();\n }\n } catch (e) {\n return this.notify();\n }\n const patches = this.patches;\n this.patches = [];\n this.batchUpdates(() => {\n for (const subscription of this.subscriptions) {\n subscription(this.state, patches);\n }\n });\n }\n}\nexport { Store as S, StorePersist as a, createSelector as c, hash as h, react as r, setWithSelector as s };\n//# sourceMappingURL=store.js.map\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a2, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a2, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a2, prop, b[prop]);\n }\n return a2;\n};\nimport { c as createSelector, r as react, s as setWithSelector, S as Store$1, h as hash } from \"./store.js\";\nexport { a as StorePersist } from \"./store.js\";\nimport React, { useCallback, useDebugValue, useMemo, createContext, useContext, useEffect } from \"react\";\nimport \"immer\";\nvar withSelector = { exports: {} };\nvar withSelector_production_min = {};\nvar shim = { exports: {} };\nvar useSyncExternalStoreShim_production_min = {};\n/** @license React vundefined\n * use-sync-external-store-shim.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nvar e = React;\nfunction h$1(a2, b) {\n return a2 === b && (a2 !== 0 || 1 / a2 === 1 / b) || a2 !== a2 && b !== b;\n}\nvar k = typeof Object.is === \"function\" ? Object.is : h$1, l = e.useState, m = e.useEffect, n$1 = e.useLayoutEffect, p$1 = e.useDebugValue;\nfunction q$1(a2, b) {\n var d = b(), f = l({ inst: { value: d, getSnapshot: b } }), c = f[0].inst, g = f[1];\n n$1(function() {\n c.value = d;\n c.getSnapshot = b;\n r$1(c) && g({ inst: c });\n }, [a2, d, b]);\n m(function() {\n r$1(c) && g({ inst: c });\n return a2(function() {\n r$1(c) && g({ inst: c });\n });\n }, [a2]);\n p$1(d);\n return d;\n}\nfunction r$1(a2) {\n var b = a2.getSnapshot;\n a2 = a2.value;\n try {\n var d = b();\n return !k(a2, d);\n } catch (f) {\n return true;\n }\n}\nfunction t$1(a2, b) {\n return b();\n}\nvar u$1 = typeof window === \"undefined\" || typeof window.document === \"undefined\" || typeof window.document.createElement === \"undefined\" ? t$1 : q$1;\nuseSyncExternalStoreShim_production_min.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : u$1;\n{\n shim.exports = useSyncExternalStoreShim_production_min;\n}\n/** @license React vundefined\n * use-sync-external-store-shim/with-selector.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nvar h = React, n = shim.exports;\nfunction p(a2, b) {\n return a2 === b && (a2 !== 0 || 1 / a2 === 1 / b) || a2 !== a2 && b !== b;\n}\nvar q = typeof Object.is === \"function\" ? Object.is : p, r = n.useSyncExternalStore, t = h.useRef, u = h.useEffect, v = h.useMemo, w = h.useDebugValue;\nwithSelector_production_min.useSyncExternalStoreWithSelector = function(a2, b, e2, l2, g) {\n var c = t(null);\n if (c.current === null) {\n var f = { hasValue: false, value: null };\n c.current = f;\n } else\n f = c.current;\n c = v(function() {\n function a3(a4) {\n if (!c2) {\n c2 = true;\n d2 = a4;\n a4 = l2(a4);\n if (g !== void 0 && f.hasValue) {\n var b2 = f.value;\n if (g(b2, a4))\n return k2 = b2;\n }\n return k2 = a4;\n }\n b2 = k2;\n if (q(d2, a4))\n return b2;\n var e3 = l2(a4);\n if (g !== void 0 && g(b2, e3))\n return b2;\n d2 = a4;\n return k2 = e3;\n }\n var c2 = false, d2, k2, m2 = e2 === void 0 ? null : e2;\n return [function() {\n return a3(b());\n }, m2 === null ? void 0 : function() {\n return a3(m2());\n }];\n }, [b, e2, l2, g]);\n var d = r(a2, c[0], c[1]);\n u(function() {\n f.hasValue = true;\n f.value = d;\n }, [d]);\n w(d);\n return d;\n};\n{\n withSelector.exports = withSelector_production_min;\n}\nfunction useStoreState(store, ...args) {\n var _a, _b, _c, _d;\n let selector, options;\n if (args[0] instanceof Function) {\n selector = args[0];\n options = (_a = args[1]) != null ? _a : {};\n } else if (typeof args[0] === \"string\") {\n selector = createSelector(args[0]);\n options = (_b = args[1]) != null ? _b : {};\n } else {\n selector = (x) => x;\n options = (_c = args[0]) != null ? _c : {};\n }\n const subscribe = useCallback((listener) => {\n return store.subscribe((x) => x, listener, {\n throttle: options.throttle,\n runNow: false,\n compare: (a2, b) => a2 === b\n });\n }, [store, options.throttle]);\n const getSnapshot = useCallback(() => store.getState(), [store]);\n const value = withSelector.exports.useSyncExternalStoreWithSelector(subscribe, getSnapshot, getSnapshot, selector, (_d = options.compare) != null ? _d : react);\n useDebugValue(value);\n return value;\n}\nfunction useStoreProp(store, selector) {\n const value = useStoreState(store, selector);\n const update = (value2) => store.update((state) => setWithSelector(state, selector, value2));\n return [value, update];\n}\nclass Store extends Store$1 {\n useState(...args) {\n return useStoreState(this, ...args);\n }\n useProp(selector) {\n return useStoreProp(this, selector);\n }\n}\nclass StoreScope {\n constructor(defaultValue) {\n this.defaultValue = defaultValue;\n this.Provider = ({ children, store }) => {\n const _store = useMemo(() => store != null ? store : new Store(this.defaultValue), [store]);\n return /* @__PURE__ */ React.createElement(this.context.Provider, {\n value: _store\n }, children);\n };\n this.withScope = (Component) => {\n return (args) => /* @__PURE__ */ React.createElement(this.Provider, null, /* @__PURE__ */ React.createElement(Component, __spreadValues({}, args)));\n };\n this.context = createContext(new Store(defaultValue));\n }\n useStore() {\n return useContext(this.context);\n }\n useState(...args) {\n const store = this.useStore();\n return useStoreState(store, ...args);\n }\n useProp(selector) {\n const store = this.useStore();\n return useStoreProp(store, selector);\n }\n}\nfunction useResource(resource, options) {\n const { compare, dormant, throttle, updateOnMount, watchOnly } = options != null ? options : {};\n useEffect(() => {\n if (updateOnMount && !dormant) {\n resource.invalidateCache();\n }\n }, []);\n const subscribe = useCallback((listener) => {\n if (dormant)\n return () => {\n };\n return resource.subscribe(listener, {\n watchOnly,\n throttle,\n runNow: false,\n compare\n });\n }, [resource.id, watchOnly, dormant, throttle]);\n const getSnapshot = useCallback(() => resource.getCache(), [resource.id]);\n let value = withSelector.exports.useSyncExternalStoreWithSelector(subscribe, getSnapshot, getSnapshot, (x) => x, react);\n if (dormant) {\n value = { state: \"empty\", isLoading: false };\n }\n useDebugValue(value);\n return value;\n}\nfunction useReadResource(resource, options) {\n const info = useResource(resource, options);\n if (info.state === \"error\") {\n throw info.error;\n }\n if (info.state === \"empty\") {\n throw resource.get();\n }\n useDebugValue(info.value);\n return info.value;\n}\nfunction combineResources(...resources) {\n return {\n id: hash(resources.map((resource) => resource.id)),\n invalidateCache() {\n for (const resource of resources) {\n resource.invalidateCache();\n }\n },\n subscribe(listener, options) {\n const handles = resources.map((resource) => resource.subscribe(listener, options));\n return () => {\n for (const handle of handles) {\n handle();\n }\n };\n },\n getCache() {\n var _a;\n const caches = resources.map((resource) => resource.getCache());\n const isStale = caches.some((cache) => cache.isStale);\n const isLoading = caches.some((cache) => cache.isLoading);\n if (caches.some((resource) => resource.state === \"error\")) {\n const error = (_a = caches.find((cache) => cache.error !== void 0)) == null ? void 0 : _a.error;\n return { state: \"error\", error, isStale, isLoading };\n }\n if (caches.every((resource) => resource.state === \"value\")) {\n const value = caches.map((cache) => cache.value);\n return { state: \"value\", value, isStale, isLoading };\n }\n return { state: \"empty\", isLoading };\n },\n get() {\n return Promise.all(resources.map((resource) => resource.get()));\n }\n };\n}\nexport { Store, StoreScope, combineResources, useReadResource, useResource, useStoreState };\n//# sourceMappingURL=react.js.map\n","export function throttle<Args extends any[]>(\n function_: (...args: Args) => void,\n ms: number,\n): { (...args: Args): void; flush(): void; cancel(): void } {\n let last = 0;\n let lastArgs: Args | undefined;\n let timeout: ReturnType<typeof setTimeout> | undefined;\n\n function run() {\n const args = lastArgs;\n\n last = Date.now();\n lastArgs = undefined;\n timeout = undefined;\n\n function_(...args!);\n }\n\n return Object.assign(\n function (...args: Args) {\n const now = Date.now();\n lastArgs = args;\n\n if (timeout) {\n // do nothing\n } else if (now < last + ms) {\n timeout = setTimeout(run, last + ms - now);\n } else {\n run();\n }\n },\n {\n flush() {\n if (lastArgs) {\n run();\n }\n },\n\n cancel() {\n if (timeout) {\n clearTimeout(timeout);\n }\n },\n },\n );\n}\n","import { css } from '@emotion/react';\n\nconst cell = css({\n padding: `calc(var(--spacing) * 0.1) calc(2 * var(--spacing))`,\n display: 'flex',\n alignItems: 'center',\n borderBottom: '1px solid var(--table-border-light-color)',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n\n '&:empty': {\n padding: 0,\n },\n});\n\nexport const defaultClasses = {\n table: css({\n position: 'relative',\n display: 'grid',\n color: 'var(--table-text-color)',\n }),\n\n cell,\n\n cellFill: css({\n borderBottom: '1px solid var(--table-border-light-color)',\n }),\n\n headerCell: css(cell, {\n borderBottom: '1px solid var(--table-border-color)',\n background: 'var(--table-background-color)',\n\n '&:not(:empty)': {\n padding: `var(--spacing) 0 var(--spacing) calc(2 * var(--spacing))`,\n },\n }),\n\n footerCell: css(cell, {\n padding: `var(--spacing) calc(2 * var(--spacing))`,\n borderTop: '1px solid var(--table-border-color)',\n borderBottom: 'none',\n background: 'var(--table-background-color)',\n }),\n\n firstCell: css({\n justifyContent: 'start',\n }),\n\n sticky: css({\n position: 'sticky',\n top: 0,\n zIndex: 2,\n }),\n\n stickyBottom: css({\n position: 'sticky',\n bottom: 0,\n zIndex: 2,\n }),\n\n headerFill: css({\n borderBottom: '1px solid var(--table-border-color)',\n background: 'var(--table-background-color)',\n }),\n\n footerFill: css({\n borderTop: '1px solid var(--table-border-color)',\n background: 'var(--table-background-color)',\n }),\n\n text: css({\n minWidth: 0,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n }),\n\n card: css({\n borderRadius: 4,\n boxShadow: '0px 3px 14px 2px rgb(0 0 0 / 12%)',\n background: 'var(--table-background-color)',\n }),\n\n clearFiltersButton: css({\n padding: `0 calc(2 * var(--spacing))`,\n fontWeight: 'bold',\n position: 'sticky',\n left: 0,\n maxWidth: 'fit-content',\n gridColumn: '2/-1',\n button: {\n color: 'var(--primaryMain) !important',\n border: 'solid 1px',\n borderColor: 'var(--primaryMain) !important',\n margin: 'var(--spacing)',\n },\n }),\n\n details: css(cell, {\n gridColumn: '1 / -1',\n whiteSpace: 'normal',\n }),\n};\n","import { useLayoutEffect, useRef } from 'react';\nimport { createPortal } from 'react-dom';\nimport { throttle } from '../../misc/throttle';\nimport type { TableTheme } from '../../types';\nimport { defaultClasses } from './defaultClasses';\n\nconst MAX_OFFSET = 20;\n\nexport const Popover: TableTheme['components']['Popover'] = ({\n anchorEl,\n open,\n hidden,\n onClose,\n children,\n className,\n backdropClassName,\n align,\n}) => {\n const probe = useRef<HTMLDivElement>(null);\n const backdrop = useRef<HTMLDivElement>(null);\n const popper = useRef<HTMLDivElement>(null);\n\n useLayoutEffect(() => {\n if (!open) {\n return;\n }\n\n function check() {\n const marginLeft = parseFloat(getComputedStyle(popper.current ?? document.body).marginLeft);\n const marginRight = parseFloat(getComputedStyle(popper.current ?? document.body).marginRight);\n const marginTop = parseFloat(getComputedStyle(popper.current ?? document.body).marginTop);\n const marginBottom = parseFloat(\n getComputedStyle(popper.current ?? document.body).marginBottom,\n );\n popper.current?.style.setProperty('--margin-x', `${marginLeft + marginRight}px`);\n popper.current?.style.setProperty('--margin-y', `${marginTop + marginBottom}px`);\n\n if (hidden) {\n popper.current?.style.setProperty('visibility', 'hidden');\n return;\n }\n\n const viewportWidth = window.visualViewport?.width ?? window.innerWidth;\n const viewportHeight = window.visualViewport?.height ?? window.innerHeight;\n const { width: popperWidth = 0, height: popperHeight = 0 } =\n popper.current?.getBoundingClientRect() ?? {};\n\n const next = {\n left: 0,\n top: 0,\n };\n\n if (anchorEl) {\n const bb = anchorEl.getBoundingClientRect();\n\n if (align === 'center') {\n next.left = bb.left + bb.width / 2 - popperWidth / 2;\n } else {\n next.left =\n bb.left -\n Math.min(popperWidth ? popperWidth / 2 : Number.POSITIVE_INFINITY, MAX_OFFSET);\n }\n\n next.top = bb.bottom;\n } else {\n next.left = (viewportWidth - popperWidth) / 2;\n next.top = (viewportHeight - popperHeight) / 2;\n }\n\n if (next.left > viewportWidth - popperWidth - marginLeft - marginRight) {\n next.left = viewportWidth - popperWidth - marginLeft - marginRight;\n }\n if (next.left < marginLeft) {\n next.left = marginLeft;\n }\n if (next.top > viewportHeight - popperHeight - marginTop - marginBottom) {\n next.top = viewportHeight - popperHeight - marginTop - marginBottom;\n }\n if (next.top < marginTop) {\n next.top = marginTop;\n }\n\n popper.current?.style.setProperty('left', `${next.left}px`);\n popper.current?.style.setProperty('top', `${next.top}px`);\n popper.current?.style.setProperty('visibility', 'visible');\n }\n const checkThrottled = throttle(check, 16);\n check();\n\n const handle = setInterval(checkThrottled, 1000);\n window.addEventListener('resize', checkThrottled);\n window.addEventListener('scroll', checkThrottled, true);\n\n return () => {\n clearInterval(handle);\n window.removeEventListener('resize', checkThrottled);\n window.removeEventListener('scroll', checkThrottled, true);\n };\n }, [anchorEl, open, hidden, align]);\n\n useLayoutEffect(() => {\n if (!open) return;\n\n const ancestors = [];\n for (let node = probe.current?.parentElement; node; node = node.parentElement) {\n ancestors.push(node);\n }\n\n for (const node of ancestors.reverse()) {\n const value = document.defaultView?.getComputedStyle(node).getPropertyValue('z-index');\n\n if (value && !Number.isNaN(Number(value))) {\n const newZIndex = Number(value) + 1;\n\n if (\n backdrop.current &&\n !(\n Number(\n document.defaultView?.getComputedStyle(backdrop.current).getPropertyValue('z-index'),\n ) > newZIndex\n )\n ) {\n backdrop.current?.style.setProperty('z-index', newZIndex.toString());\n }\n\n if (\n popper.current &&\n !(\n Number(\n document.defaultView?.getComputedStyle(popper.current).getPropertyValue('z-index'),\n ) >\n newZIndex + 1\n )\n ) {\n popper.current?.style.setProperty('z-index', (newZIndex + 1).toString());\n }\n return;\n }\n }\n }, [anchorEl, open]);\n\n if (!open) return null;\n\n return (\n <>\n <div\n ref={probe}\n css={{\n display: 'none',\n }}\n />\n\n {createPortal(\n <>\n <div\n ref={backdrop}\n className={backdropClassName}\n css={[\n {\n position: 'fixed',\n left: 0,\n right: 0,\n top: 0,\n bottom: 0,\n },\n hidden && { display: 'none' },\n ]}\n onClick={() => onClose()}\n />\n\n <div\n ref={popper}\n className={className}\n css={[\n defaultClasses.card,\n {\n position: 'fixed',\n width: 'max-content',\n maxWidth: [\n `calc(100vw - (100vw - 100%) - var(--margin-x))`,\n `calc(100dvw - (100dvw - 100%) - var(--margin-x))`,\n ],\n maxHeight: [\n `calc(100vh - (100vh - 100%) - var(--margin-x))`,\n `calc(100dvh - (100dvh - 100%) - var(--margin-x))`,\n ],\n margin: 10,\n zIndex: 1,\n overflowY: 'auto',\n color: 'var(--table-text-color)',\n visibility: 'hidden',\n },\n hidden && { display: 'none' },\n ]}\n >\n {children}\n </div>\n </>,\n document.body,\n )}\n </>\n );\n};\n","import { Store } from 'schummar-state/react';\nimport type { PartialTableTheme } from '../types';\n\nexport const globalTableTheme = new Store<PartialTableTheme>({});\n\nexport function configureTableTheme(tableTheme: PartialTableTheme) {\n globalTableTheme.set(tableTheme);\n}\n\nexport function mergeThemes<T>(...themes: PartialTableTheme<T>[]): PartialTableTheme<T> {\n return {\n text: Object.assign({}, ...themes.map((theme) => theme.text)),\n classes: Object.assign({}, ...themes.map((theme) => theme.classes)),\n styles: Object.assign({}, ...themes.map((theme) => theme.styles)),\n components: Object.assign({}, ...themes.map((theme) => theme.components)),\n icons: Object.assign({}, ...themes.map((theme) => theme.icons)),\n colors: {\n primary: Object.assign({}, ...themes.map((theme) => theme.colors?.primary)),\n secondary: Object.assign({}, ...themes.map((theme) => theme.colors?.secondary)),\n blocked: Object.assign({}, ...themes.map((theme) => theme.colors?.blocked)),\n background: themes\n .map((theme) => theme.colors?.background)\n .reverse()\n .find((x) => x !== undefined),\n text: themes\n .map((theme) => theme.colors?.text)\n .reverse()\n .find((x) => x !== undefined),\n border: themes\n .map((theme) => theme.colors?.border)\n .reverse()\n .find((x) => x !== undefined),\n borderLight: themes\n .map((theme) => theme.colors?.borderLight)\n .reverse()\n .find((x) => x !== undefined),\n },\n spacing: themes\n .map((theme) => theme.spacing)\n .reverse()\n .find((x) => x !== undefined),\n };\n}\n","import { ReactNode, createContext, useContext } from 'react';\nimport CsvExporter from '../exporters/csvExporter';\nimport { ExporterEntry } from '../exporters/exporter';\nimport { PartialTableTheme } from '../types';\n\nexport interface TableSettingsContextType {\n theme: PartialTableTheme;\n exporters: ExporterEntry[];\n}\n\nexport const TableSettingsContext = createContext<TableSettingsContextType>({\n theme: {},\n exporters: [\n { action: 'copy', exporter: new CsvExporter() },\n { action: 'download', exporter: new CsvExporter() },\n ],\n});\n\nexport function TableSettingsProvider({\n theme,\n exporters,\n additionalExporters,\n children,\n}: Partial<TableSettingsContextType> & {\n additionalExporters?: ExporterEntry[];\n children?: ReactNode;\n}) {\n const inherited = useContext(TableSettingsContext);\n theme ??= inherited.theme;\n exporters ??= inherited.exporters;\n\n if (additionalExporters) {\n exporters = [...exporters, ...additionalExporters];\n }\n\n return (\n <TableSettingsContext.Provider\n value={{\n theme,\n exporters,\n }}\n >\n {children}\n </TableSettingsContext.Provider>\n );\n}\n"],"x_google_ignoreList":[0,1],"mappings":";;;;;;;;AA6NA,IAAI,QAAQ,SAAS,MAAM,GAAG,GAAG;AAC/B,KAAI,MAAM,EACR,QAAO;AACT,KAAI,KAAK,KAAK,OAAO,KAAK,YAAY,OAAO,KAAK,UAAU;AAC1D,MAAI,EAAE,gBAAgB,EAAE,YACtB,QAAO;EACT,IAAI,QAAQ,GAAG;AACf,MAAI,MAAM,QAAQ,EAAE,EAAE;AACpB,YAAS,EAAE;AACX,OAAI,UAAU,EAAE,OACd,QAAO;AACT,QAAK,IAAI,QAAQ,QAAQ,GACvB,KAAI,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,CACpB,QAAO;AACX,UAAO;;AAET,MAAI,aAAa,OAAO,aAAa,KAAK;AACxC,OAAI,EAAE,SAAS,EAAE,KACf,QAAO;AACT,QAAK,KAAK,EAAE,SAAS,CACnB,KAAI,CAAC,EAAE,IAAI,EAAE,GAAG,CACd,QAAO;AACX,QAAK,KAAK,EAAE,SAAS,CACnB,KAAI,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,CAC3B,QAAO;AACX,UAAO;;AAET,MAAI,aAAa,OAAO,aAAa,KAAK;AACxC,OAAI,EAAE,SAAS,EAAE,KACf,QAAO;AACT,QAAK,KAAK,EAAE,SAAS,CACnB,KAAI,CAAC,EAAE,IAAI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,WAAW,CACT;EAAE,QAAQ;EAAQ,UAAU,IAAI,aAAa;EAAE,EAC/C;EAAE,QAAQ;EAAY,UAAU,IAAI,aAAa;EAAE,CACpD;CACF,CAAC;AAEF,SAAgB,sBAAsB,EACpC,OACA,WACA,qBACA,YAIC;CACD,MAAM,YAAY,WAAW,qBAAqB;AAClD,WAAU,UAAU;AACpB,eAAc,UAAU;AAExB,KAAI,oBACF,aAAY,CAAC,GAAG,WAAW,GAAG,oBAAoB;AAGpD,QACE,oBAAC,qBAAqB;EACpB,OAAO;GACL;GACA;GACD;EAEA;GAC6B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ExportOptions } from "./exporter-
|
|
1
|
+
import { n as ExportOptions } from "./exporter-zK7PhTrL.js";
|
|
2
2
|
import React, { CSSProperties, ComponentType, DependencyList, ReactNode, Ref } from "react";
|
|
3
|
-
import { Interpolation, Theme } from "@emotion/react";
|
|
3
|
+
import { CSSObject, ComponentSelector, Interpolation, Keyframes, SerializedStyles, Theme } from "@emotion/react";
|
|
4
4
|
import { Store } from "schummar-state/react";
|
|
5
5
|
|
|
6
6
|
//#region src/internalState/tableStateStorage.d.ts
|
|
@@ -27,7 +27,9 @@ type Id = string | number;
|
|
|
27
27
|
type KeyOfType<T, S> = { [K in keyof T]: T[K] extends S ? K : never }[keyof T];
|
|
28
28
|
type FunctionWithDeps<F extends (...args: any[]) => any> = F | [function: F, ...deps: DependencyList];
|
|
29
29
|
type MemoizedFunctions<T> = { [K in keyof T]: Exclude<T[K], [function: (...args: any[]) => any, ...deps: DependencyList]> };
|
|
30
|
-
type
|
|
30
|
+
type InterpolationPrimitive = null | undefined | boolean | number | string | ComponentSelector | Keyframes | SerializedStyles | CSSObject;
|
|
31
|
+
interface ArrayCSSInterpolation extends ReadonlyArray<CSSInterpolation> {}
|
|
32
|
+
type CSSInterpolation = InterpolationPrimitive | ArrayCSSInterpolation;
|
|
31
33
|
type Falsy = false | 0 | '' | null | undefined;
|
|
32
34
|
type DisplaySize = 'desktop' | 'mobile' | (string & {});
|
|
33
35
|
type DisplaySizes = Partial<Record<DisplaySize, number>>;
|
|
@@ -434,5 +436,5 @@ type FilterImplementation<TItem, TColumnValue, TFilterBy, TFilterValue> = Common
|
|
|
434
436
|
test: (filterValue: TFilterValue, value: TFilterBy) => boolean;
|
|
435
437
|
};
|
|
436
438
|
//#endregion
|
|
437
|
-
export {
|
|
438
|
-
//# sourceMappingURL=types-
|
|
439
|
+
export { Id as a, MemoizedTableTheme as c, SortDirection as d, TableItem as f, TableStateStorage as g, TableTheme as h, FunctionWithDeps as i, PartialTableTheme as l, TableRef as m, CommonFilterProps as n, InternalColumn as o, TableProps as p, FilterImplementation as r, InternalTableState as s, Column as t, Sort as u };
|
|
440
|
+
//# sourceMappingURL=types-B7cBxGpR.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ExportOptions } from "./exporter-
|
|
1
|
+
import { n as ExportOptions } from "./exporter-ZZesPOOU.cjs";
|
|
2
2
|
import React, { CSSProperties, ComponentType, DependencyList, ReactNode, Ref } from "react";
|
|
3
|
-
import { Interpolation, Theme } from "@emotion/react";
|
|
3
|
+
import { CSSObject, ComponentSelector, Interpolation, Keyframes, SerializedStyles, Theme } from "@emotion/react";
|
|
4
4
|
import { Store } from "schummar-state/react";
|
|
5
5
|
|
|
6
6
|
//#region src/internalState/tableStateStorage.d.ts
|
|
@@ -27,7 +27,9 @@ type Id = string | number;
|
|
|
27
27
|
type KeyOfType<T, S> = { [K in keyof T]: T[K] extends S ? K : never }[keyof T];
|
|
28
28
|
type FunctionWithDeps<F extends (...args: any[]) => any> = F | [function: F, ...deps: DependencyList];
|
|
29
29
|
type MemoizedFunctions<T> = { [K in keyof T]: Exclude<T[K], [function: (...args: any[]) => any, ...deps: DependencyList]> };
|
|
30
|
-
type
|
|
30
|
+
type InterpolationPrimitive = null | undefined | boolean | number | string | ComponentSelector | Keyframes | SerializedStyles | CSSObject;
|
|
31
|
+
interface ArrayCSSInterpolation extends ReadonlyArray<CSSInterpolation> {}
|
|
32
|
+
type CSSInterpolation = InterpolationPrimitive | ArrayCSSInterpolation;
|
|
31
33
|
type Falsy = false | 0 | '' | null | undefined;
|
|
32
34
|
type DisplaySize = 'desktop' | 'mobile' | (string & {});
|
|
33
35
|
type DisplaySizes = Partial<Record<DisplaySize, number>>;
|
|
@@ -434,5 +436,5 @@ type FilterImplementation<TItem, TColumnValue, TFilterBy, TFilterValue> = Common
|
|
|
434
436
|
test: (filterValue: TFilterValue, value: TFilterBy) => boolean;
|
|
435
437
|
};
|
|
436
438
|
//#endregion
|
|
437
|
-
export {
|
|
438
|
-
//# sourceMappingURL=types-
|
|
439
|
+
export { Id as a, MemoizedTableTheme as c, SortDirection as d, TableItem as f, TableStateStorage as g, TableTheme as h, FunctionWithDeps as i, PartialTableTheme as l, TableRef as m, CommonFilterProps as n, InternalColumn as o, TableProps as p, FilterImplementation as r, InternalTableState as s, Column as t, Sort as u };
|
|
440
|
+
//# sourceMappingURL=types-DzMId5Jg.d.cts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "schummar-table",
|
|
3
|
-
"version": "0.50.
|
|
3
|
+
"version": "0.50.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "schummar/schummar-table",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@swc/core": "^1.15.8",
|
|
84
84
|
"@types/react": "18.2.37",
|
|
85
85
|
"@types/react-dom": "18.2.15",
|
|
86
|
-
"esbuild": "0.
|
|
86
|
+
"esbuild": "^0.27.2",
|
|
87
87
|
"nx": "^22.3.3",
|
|
88
88
|
"oxlint": "^1.39.0",
|
|
89
89
|
"prettier": "3.1.0",
|