@atscript/ui-table 0.1.135 → 0.1.137
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/index.cjs +26 -5
- package/dist/index.d.cts +17 -1
- package/dist/index.d.mts +17 -1
- package/dist/index.mjs +26 -6
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1220,9 +1220,29 @@ function resolveAspectGate(value) {
|
|
|
1220
1220
|
if (value.length === 0) return "none";
|
|
1221
1221
|
return new Set(value);
|
|
1222
1222
|
}
|
|
1223
|
-
|
|
1223
|
+
/**
|
|
1224
|
+
* Does a URL under `gate` own `path`? The single place the tri-state is decided,
|
|
1225
|
+
* and the companion to {@link resolveAspectGate}.
|
|
1226
|
+
*
|
|
1227
|
+
* "Owns" means the URL is authoritative for that field: it serializes the field
|
|
1228
|
+
* on write, and on read its silence about the field is meaningful. An `"all"`
|
|
1229
|
+
* gate owns every path, an allowlist owns exactly its members (the rest are
|
|
1230
|
+
* private and never round-trip), `"none"` owns nothing.
|
|
1231
|
+
*
|
|
1232
|
+
* Both directions need it. The encoder writes only owned fields; a history
|
|
1233
|
+
* restore must clear the owned ones before overlaying the URL, or a filter the
|
|
1234
|
+
* user removed survives the Back that should have removed it.
|
|
1235
|
+
*
|
|
1236
|
+
* @since 0.1.137
|
|
1237
|
+
*/
|
|
1238
|
+
function gateOwns(gate, path) {
|
|
1239
|
+
if (gate === "all") return true;
|
|
1240
|
+
if (gate === "none") return false;
|
|
1241
|
+
return gate.has(path);
|
|
1242
|
+
}
|
|
1243
|
+
function pickFilterPaths(filters, gate) {
|
|
1224
1244
|
const out = {};
|
|
1225
|
-
for (const path in filters) if (
|
|
1245
|
+
for (const path in filters) if (gateOwns(gate, path)) out[path] = filters[path];
|
|
1226
1246
|
return out;
|
|
1227
1247
|
}
|
|
1228
1248
|
/**
|
|
@@ -1239,10 +1259,10 @@ function stateToUrlQueryString(state, defaults) {
|
|
|
1239
1259
|
const sortersGate = resolveAspectGate(defaults.sync?.sorters);
|
|
1240
1260
|
const searchOff = defaults.sync?.search === false;
|
|
1241
1261
|
const paginationOff = defaults.sync?.pagination === false;
|
|
1242
|
-
const filters = filtersGate === "
|
|
1262
|
+
const filters = filtersGate === "all" ? state.filters : pickFilterPaths(state.filters, filtersGate);
|
|
1243
1263
|
const query = buildTableQuery({
|
|
1244
1264
|
visibleColumnPaths: [],
|
|
1245
|
-
sorters: sortersGate === "
|
|
1265
|
+
sorters: sortersGate === "all" ? state.sorters : state.sorters.filter((s) => gateOwns(sortersGate, s.field)),
|
|
1246
1266
|
filters,
|
|
1247
1267
|
search: searchOff ? void 0 : state.searchTerm || void 0
|
|
1248
1268
|
});
|
|
@@ -1331,7 +1351,7 @@ function urlQueryStringToState(urlString, opts = {}) {
|
|
|
1331
1351
|
const $sort = parsed.controls?.$sort;
|
|
1332
1352
|
if ($sort && typeof $sort === "object") for (const field in $sort) {
|
|
1333
1353
|
if (knownSet && !knownSet.has(field)) continue;
|
|
1334
|
-
if (sortersGate
|
|
1354
|
+
if (!gateOwns(sortersGate, field)) continue;
|
|
1335
1355
|
const dir = $sort[field];
|
|
1336
1356
|
if (dir === 1) sorters.push({
|
|
1337
1357
|
field,
|
|
@@ -1938,6 +1958,7 @@ exports.filterTokenLabel = filterTokenLabel;
|
|
|
1938
1958
|
exports.filtersToUniqueryFilter = filtersToUniqueryFilter;
|
|
1939
1959
|
exports.formatFilterCondition = formatFilterCondition;
|
|
1940
1960
|
exports.fromWireSnapshot = fromWireSnapshot;
|
|
1961
|
+
exports.gateOwns = gateOwns;
|
|
1941
1962
|
exports.hasSecondValue = hasSecondValue;
|
|
1942
1963
|
exports.isAuthError = isAuthError;
|
|
1943
1964
|
exports.isDirtyAgainst = isDirtyAgainst;
|
package/dist/index.d.cts
CHANGED
|
@@ -739,6 +739,22 @@ interface UrlQueryDefaults {
|
|
|
739
739
|
*/
|
|
740
740
|
type AspectGate = "all" | "none" | Set<string>;
|
|
741
741
|
declare function resolveAspectGate(value: boolean | string[] | undefined): AspectGate;
|
|
742
|
+
/**
|
|
743
|
+
* Does a URL under `gate` own `path`? The single place the tri-state is decided,
|
|
744
|
+
* and the companion to {@link resolveAspectGate}.
|
|
745
|
+
*
|
|
746
|
+
* "Owns" means the URL is authoritative for that field: it serializes the field
|
|
747
|
+
* on write, and on read its silence about the field is meaningful. An `"all"`
|
|
748
|
+
* gate owns every path, an allowlist owns exactly its members (the rest are
|
|
749
|
+
* private and never round-trip), `"none"` owns nothing.
|
|
750
|
+
*
|
|
751
|
+
* Both directions need it. The encoder writes only owned fields; a history
|
|
752
|
+
* restore must clear the owned ones before overlaying the URL, or a filter the
|
|
753
|
+
* user removed survives the Back that should have removed it.
|
|
754
|
+
*
|
|
755
|
+
* @since 0.1.137
|
|
756
|
+
*/
|
|
757
|
+
declare function gateOwns(gate: AspectGate, path: string): boolean;
|
|
742
758
|
/**
|
|
743
759
|
* Serialize the table state subset into a URL query string.
|
|
744
760
|
*
|
|
@@ -1290,4 +1306,4 @@ declare function cellAsString(v: unknown): string;
|
|
|
1290
1306
|
*/
|
|
1291
1307
|
declare function sortRowsLocally<T extends Record<string, unknown>>(rows: T[], sorters: readonly SortControl[], getValue?: (row: T, field: string) => unknown): T[];
|
|
1292
1308
|
//#endregion
|
|
1293
|
-
export { APP_CONF_PREFIX, type AppConfData, AppPrefsClient, type AppPrefsClientConfig, type AppPrefsLoadResult, type AsPresetEntryData, type AsPresetEntryRow, type AsPresetsErrorCode, type AspectGate, type AspectMask, type BuildTableQueryOptions, type ColumnFilterType, type ColumnReorderPosition, type ColumnWidthEntry, type ColumnWidthsMap, type ConfigTab, type CsvOptions, DEFAULT_EXPORT_PAGE_SIZE, DEFAULT_ROW_HEIGHT_PX, DRAFT_PERSISTED_ASPECTS, type DateShortcut, type DisplayColumnDef, type DraftPersistedAspect, ExportAbortError, type ExportPage, type ExportPageFetcher, type ExportScalar, type FetchPlan, type FetchPlanMode, type FieldFilters, type FilterCondition, type FilterConditionType, MAX_DEFAULT_COLUMN_WIDTH_PX, type MergeResult, NULL_OPS, PRESET_ASPECTS, type PageAlignedBlock, type PlanFetchArgs, type PresetAspect, type PresetCapabilities, type PresetColumnWidthEntry, type PresetData, type PresetDraft, type PresetFilterOpEntry, type PresetLimitReachedBody, type PresetSnapshot, type PresetSnapshotWire, type PresetSorterEntry, PresetsClient, type PresetsClientConfig, PresetsHttpError, type PresetsListResult, type PresetsSaveAsOptions, type PresetsSaveResult, type QueryOptions, RESERVED_ID_PREFIXES, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, type SelectionMode, type SystemPreset, type SystemPresetInput, type TableStateData, type TableStateMethods, USER_CONF_PREFIX, type UrlQueryDefaults, type UrlQueryParseOptions, type UrlQueryStateLike, type UrlQueryStateSnapshot, type UrlQuerySync, type UserConfData, appConfId, arraysEqual, blockStartFor, buildTableQuery, cellAsString, clampTopIndex, collectExportRows, columnFilterType, computeDefaultColumnWidth, conditionLabel, conditionsForType, csvCell, dateShortcuts, debounce, defaultCondition, derivePresetAspects, deserializeDraft, draftMatchesPreset, escapeRegex, filledFilterCount, filterTokenLabel, filtersToUniqueryFilter, formatFilterCondition, fromWireSnapshot, hasSecondValue, isAuthError, isDirtyAgainst, isEmptyDraft, isFilled, isSimpleEq, isSystemPresetId, isUnavailableError, mergeDisplayColumns, mergeFilters, mergeSorters, normaliseSystemPresetId, pageAlignedBlocksFor, parseFilterInput, planFetch, reconcileColumnWidthDefaults, reorderColumnNames, resolveAspectGate, resolveExportValue, resolveSystemPresets, rowsToPks, sameColumnSet, serializeDraft, setsEqual, sortRowsLocally, sortersEqual, stableStringify, stateToUrlQueryString, toCsv, toWireSnapshot, togglePk, trimSelection, unescapeRegex, uniqueryFilterToFieldFilters, urlQueryConsumesKey, urlQueryStringToState, userConfId, walkBackwardAbsorb, walkForwardAbsorb, withStableOrder };
|
|
1309
|
+
export { APP_CONF_PREFIX, type AppConfData, AppPrefsClient, type AppPrefsClientConfig, type AppPrefsLoadResult, type AsPresetEntryData, type AsPresetEntryRow, type AsPresetsErrorCode, type AspectGate, type AspectMask, type BuildTableQueryOptions, type ColumnFilterType, type ColumnReorderPosition, type ColumnWidthEntry, type ColumnWidthsMap, type ConfigTab, type CsvOptions, DEFAULT_EXPORT_PAGE_SIZE, DEFAULT_ROW_HEIGHT_PX, DRAFT_PERSISTED_ASPECTS, type DateShortcut, type DisplayColumnDef, type DraftPersistedAspect, ExportAbortError, type ExportPage, type ExportPageFetcher, type ExportScalar, type FetchPlan, type FetchPlanMode, type FieldFilters, type FilterCondition, type FilterConditionType, MAX_DEFAULT_COLUMN_WIDTH_PX, type MergeResult, NULL_OPS, PRESET_ASPECTS, type PageAlignedBlock, type PlanFetchArgs, type PresetAspect, type PresetCapabilities, type PresetColumnWidthEntry, type PresetData, type PresetDraft, type PresetFilterOpEntry, type PresetLimitReachedBody, type PresetSnapshot, type PresetSnapshotWire, type PresetSorterEntry, PresetsClient, type PresetsClientConfig, PresetsHttpError, type PresetsListResult, type PresetsSaveAsOptions, type PresetsSaveResult, type QueryOptions, RESERVED_ID_PREFIXES, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, type SelectionMode, type SystemPreset, type SystemPresetInput, type TableStateData, type TableStateMethods, USER_CONF_PREFIX, type UrlQueryDefaults, type UrlQueryParseOptions, type UrlQueryStateLike, type UrlQueryStateSnapshot, type UrlQuerySync, type UserConfData, appConfId, arraysEqual, blockStartFor, buildTableQuery, cellAsString, clampTopIndex, collectExportRows, columnFilterType, computeDefaultColumnWidth, conditionLabel, conditionsForType, csvCell, dateShortcuts, debounce, defaultCondition, derivePresetAspects, deserializeDraft, draftMatchesPreset, escapeRegex, filledFilterCount, filterTokenLabel, filtersToUniqueryFilter, formatFilterCondition, fromWireSnapshot, gateOwns, hasSecondValue, isAuthError, isDirtyAgainst, isEmptyDraft, isFilled, isSimpleEq, isSystemPresetId, isUnavailableError, mergeDisplayColumns, mergeFilters, mergeSorters, normaliseSystemPresetId, pageAlignedBlocksFor, parseFilterInput, planFetch, reconcileColumnWidthDefaults, reorderColumnNames, resolveAspectGate, resolveExportValue, resolveSystemPresets, rowsToPks, sameColumnSet, serializeDraft, setsEqual, sortRowsLocally, sortersEqual, stableStringify, stateToUrlQueryString, toCsv, toWireSnapshot, togglePk, trimSelection, unescapeRegex, uniqueryFilterToFieldFilters, urlQueryConsumesKey, urlQueryStringToState, userConfId, walkBackwardAbsorb, walkForwardAbsorb, withStableOrder };
|
package/dist/index.d.mts
CHANGED
|
@@ -739,6 +739,22 @@ interface UrlQueryDefaults {
|
|
|
739
739
|
*/
|
|
740
740
|
type AspectGate = "all" | "none" | Set<string>;
|
|
741
741
|
declare function resolveAspectGate(value: boolean | string[] | undefined): AspectGate;
|
|
742
|
+
/**
|
|
743
|
+
* Does a URL under `gate` own `path`? The single place the tri-state is decided,
|
|
744
|
+
* and the companion to {@link resolveAspectGate}.
|
|
745
|
+
*
|
|
746
|
+
* "Owns" means the URL is authoritative for that field: it serializes the field
|
|
747
|
+
* on write, and on read its silence about the field is meaningful. An `"all"`
|
|
748
|
+
* gate owns every path, an allowlist owns exactly its members (the rest are
|
|
749
|
+
* private and never round-trip), `"none"` owns nothing.
|
|
750
|
+
*
|
|
751
|
+
* Both directions need it. The encoder writes only owned fields; a history
|
|
752
|
+
* restore must clear the owned ones before overlaying the URL, or a filter the
|
|
753
|
+
* user removed survives the Back that should have removed it.
|
|
754
|
+
*
|
|
755
|
+
* @since 0.1.137
|
|
756
|
+
*/
|
|
757
|
+
declare function gateOwns(gate: AspectGate, path: string): boolean;
|
|
742
758
|
/**
|
|
743
759
|
* Serialize the table state subset into a URL query string.
|
|
744
760
|
*
|
|
@@ -1290,4 +1306,4 @@ declare function cellAsString(v: unknown): string;
|
|
|
1290
1306
|
*/
|
|
1291
1307
|
declare function sortRowsLocally<T extends Record<string, unknown>>(rows: T[], sorters: readonly SortControl[], getValue?: (row: T, field: string) => unknown): T[];
|
|
1292
1308
|
//#endregion
|
|
1293
|
-
export { APP_CONF_PREFIX, type AppConfData, AppPrefsClient, type AppPrefsClientConfig, type AppPrefsLoadResult, type AsPresetEntryData, type AsPresetEntryRow, type AsPresetsErrorCode, type AspectGate, type AspectMask, type BuildTableQueryOptions, type ColumnFilterType, type ColumnReorderPosition, type ColumnWidthEntry, type ColumnWidthsMap, type ConfigTab, type CsvOptions, DEFAULT_EXPORT_PAGE_SIZE, DEFAULT_ROW_HEIGHT_PX, DRAFT_PERSISTED_ASPECTS, type DateShortcut, type DisplayColumnDef, type DraftPersistedAspect, ExportAbortError, type ExportPage, type ExportPageFetcher, type ExportScalar, type FetchPlan, type FetchPlanMode, type FieldFilters, type FilterCondition, type FilterConditionType, MAX_DEFAULT_COLUMN_WIDTH_PX, type MergeResult, NULL_OPS, PRESET_ASPECTS, type PageAlignedBlock, type PlanFetchArgs, type PresetAspect, type PresetCapabilities, type PresetColumnWidthEntry, type PresetData, type PresetDraft, type PresetFilterOpEntry, type PresetLimitReachedBody, type PresetSnapshot, type PresetSnapshotWire, type PresetSorterEntry, PresetsClient, type PresetsClientConfig, PresetsHttpError, type PresetsListResult, type PresetsSaveAsOptions, type PresetsSaveResult, type QueryOptions, RESERVED_ID_PREFIXES, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, type SelectionMode, type SystemPreset, type SystemPresetInput, type TableStateData, type TableStateMethods, USER_CONF_PREFIX, type UrlQueryDefaults, type UrlQueryParseOptions, type UrlQueryStateLike, type UrlQueryStateSnapshot, type UrlQuerySync, type UserConfData, appConfId, arraysEqual, blockStartFor, buildTableQuery, cellAsString, clampTopIndex, collectExportRows, columnFilterType, computeDefaultColumnWidth, conditionLabel, conditionsForType, csvCell, dateShortcuts, debounce, defaultCondition, derivePresetAspects, deserializeDraft, draftMatchesPreset, escapeRegex, filledFilterCount, filterTokenLabel, filtersToUniqueryFilter, formatFilterCondition, fromWireSnapshot, hasSecondValue, isAuthError, isDirtyAgainst, isEmptyDraft, isFilled, isSimpleEq, isSystemPresetId, isUnavailableError, mergeDisplayColumns, mergeFilters, mergeSorters, normaliseSystemPresetId, pageAlignedBlocksFor, parseFilterInput, planFetch, reconcileColumnWidthDefaults, reorderColumnNames, resolveAspectGate, resolveExportValue, resolveSystemPresets, rowsToPks, sameColumnSet, serializeDraft, setsEqual, sortRowsLocally, sortersEqual, stableStringify, stateToUrlQueryString, toCsv, toWireSnapshot, togglePk, trimSelection, unescapeRegex, uniqueryFilterToFieldFilters, urlQueryConsumesKey, urlQueryStringToState, userConfId, walkBackwardAbsorb, walkForwardAbsorb, withStableOrder };
|
|
1309
|
+
export { APP_CONF_PREFIX, type AppConfData, AppPrefsClient, type AppPrefsClientConfig, type AppPrefsLoadResult, type AsPresetEntryData, type AsPresetEntryRow, type AsPresetsErrorCode, type AspectGate, type AspectMask, type BuildTableQueryOptions, type ColumnFilterType, type ColumnReorderPosition, type ColumnWidthEntry, type ColumnWidthsMap, type ConfigTab, type CsvOptions, DEFAULT_EXPORT_PAGE_SIZE, DEFAULT_ROW_HEIGHT_PX, DRAFT_PERSISTED_ASPECTS, type DateShortcut, type DisplayColumnDef, type DraftPersistedAspect, ExportAbortError, type ExportPage, type ExportPageFetcher, type ExportScalar, type FetchPlan, type FetchPlanMode, type FieldFilters, type FilterCondition, type FilterConditionType, MAX_DEFAULT_COLUMN_WIDTH_PX, type MergeResult, NULL_OPS, PRESET_ASPECTS, type PageAlignedBlock, type PlanFetchArgs, type PresetAspect, type PresetCapabilities, type PresetColumnWidthEntry, type PresetData, type PresetDraft, type PresetFilterOpEntry, type PresetLimitReachedBody, type PresetSnapshot, type PresetSnapshotWire, type PresetSorterEntry, PresetsClient, type PresetsClientConfig, PresetsHttpError, type PresetsListResult, type PresetsSaveAsOptions, type PresetsSaveResult, type QueryOptions, RESERVED_ID_PREFIXES, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, type SelectionMode, type SystemPreset, type SystemPresetInput, type TableStateData, type TableStateMethods, USER_CONF_PREFIX, type UrlQueryDefaults, type UrlQueryParseOptions, type UrlQueryStateLike, type UrlQueryStateSnapshot, type UrlQuerySync, type UserConfData, appConfId, arraysEqual, blockStartFor, buildTableQuery, cellAsString, clampTopIndex, collectExportRows, columnFilterType, computeDefaultColumnWidth, conditionLabel, conditionsForType, csvCell, dateShortcuts, debounce, defaultCondition, derivePresetAspects, deserializeDraft, draftMatchesPreset, escapeRegex, filledFilterCount, filterTokenLabel, filtersToUniqueryFilter, formatFilterCondition, fromWireSnapshot, gateOwns, hasSecondValue, isAuthError, isDirtyAgainst, isEmptyDraft, isFilled, isSimpleEq, isSystemPresetId, isUnavailableError, mergeDisplayColumns, mergeFilters, mergeSorters, normaliseSystemPresetId, pageAlignedBlocksFor, parseFilterInput, planFetch, reconcileColumnWidthDefaults, reorderColumnNames, resolveAspectGate, resolveExportValue, resolveSystemPresets, rowsToPks, sameColumnSet, serializeDraft, setsEqual, sortRowsLocally, sortersEqual, stableStringify, stateToUrlQueryString, toCsv, toWireSnapshot, togglePk, trimSelection, unescapeRegex, uniqueryFilterToFieldFilters, urlQueryConsumesKey, urlQueryStringToState, userConfId, walkBackwardAbsorb, walkForwardAbsorb, withStableOrder };
|
package/dist/index.mjs
CHANGED
|
@@ -1219,9 +1219,29 @@ function resolveAspectGate(value) {
|
|
|
1219
1219
|
if (value.length === 0) return "none";
|
|
1220
1220
|
return new Set(value);
|
|
1221
1221
|
}
|
|
1222
|
-
|
|
1222
|
+
/**
|
|
1223
|
+
* Does a URL under `gate` own `path`? The single place the tri-state is decided,
|
|
1224
|
+
* and the companion to {@link resolveAspectGate}.
|
|
1225
|
+
*
|
|
1226
|
+
* "Owns" means the URL is authoritative for that field: it serializes the field
|
|
1227
|
+
* on write, and on read its silence about the field is meaningful. An `"all"`
|
|
1228
|
+
* gate owns every path, an allowlist owns exactly its members (the rest are
|
|
1229
|
+
* private and never round-trip), `"none"` owns nothing.
|
|
1230
|
+
*
|
|
1231
|
+
* Both directions need it. The encoder writes only owned fields; a history
|
|
1232
|
+
* restore must clear the owned ones before overlaying the URL, or a filter the
|
|
1233
|
+
* user removed survives the Back that should have removed it.
|
|
1234
|
+
*
|
|
1235
|
+
* @since 0.1.137
|
|
1236
|
+
*/
|
|
1237
|
+
function gateOwns(gate, path) {
|
|
1238
|
+
if (gate === "all") return true;
|
|
1239
|
+
if (gate === "none") return false;
|
|
1240
|
+
return gate.has(path);
|
|
1241
|
+
}
|
|
1242
|
+
function pickFilterPaths(filters, gate) {
|
|
1223
1243
|
const out = {};
|
|
1224
|
-
for (const path in filters) if (
|
|
1244
|
+
for (const path in filters) if (gateOwns(gate, path)) out[path] = filters[path];
|
|
1225
1245
|
return out;
|
|
1226
1246
|
}
|
|
1227
1247
|
/**
|
|
@@ -1238,10 +1258,10 @@ function stateToUrlQueryString(state, defaults) {
|
|
|
1238
1258
|
const sortersGate = resolveAspectGate(defaults.sync?.sorters);
|
|
1239
1259
|
const searchOff = defaults.sync?.search === false;
|
|
1240
1260
|
const paginationOff = defaults.sync?.pagination === false;
|
|
1241
|
-
const filters = filtersGate === "
|
|
1261
|
+
const filters = filtersGate === "all" ? state.filters : pickFilterPaths(state.filters, filtersGate);
|
|
1242
1262
|
const query = buildTableQuery({
|
|
1243
1263
|
visibleColumnPaths: [],
|
|
1244
|
-
sorters: sortersGate === "
|
|
1264
|
+
sorters: sortersGate === "all" ? state.sorters : state.sorters.filter((s) => gateOwns(sortersGate, s.field)),
|
|
1245
1265
|
filters,
|
|
1246
1266
|
search: searchOff ? void 0 : state.searchTerm || void 0
|
|
1247
1267
|
});
|
|
@@ -1330,7 +1350,7 @@ function urlQueryStringToState(urlString, opts = {}) {
|
|
|
1330
1350
|
const $sort = parsed.controls?.$sort;
|
|
1331
1351
|
if ($sort && typeof $sort === "object") for (const field in $sort) {
|
|
1332
1352
|
if (knownSet && !knownSet.has(field)) continue;
|
|
1333
|
-
if (sortersGate
|
|
1353
|
+
if (!gateOwns(sortersGate, field)) continue;
|
|
1334
1354
|
const dir = $sort[field];
|
|
1335
1355
|
if (dir === 1) sorters.push({
|
|
1336
1356
|
field,
|
|
@@ -1898,4 +1918,4 @@ function sortRowsLocally(rows, sorters, getValue = (row, field) => row[field]) {
|
|
|
1898
1918
|
});
|
|
1899
1919
|
}
|
|
1900
1920
|
//#endregion
|
|
1901
|
-
export { APP_CONF_PREFIX, AppPrefsClient, DEFAULT_EXPORT_PAGE_SIZE, DEFAULT_ROW_HEIGHT_PX, DRAFT_PERSISTED_ASPECTS, ExportAbortError, MAX_DEFAULT_COLUMN_WIDTH_PX, NULL_OPS, PRESET_ASPECTS, PresetsClient, PresetsHttpError, RESERVED_ID_PREFIXES, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, USER_CONF_PREFIX, appConfId, arraysEqual, blockStartFor, buildTableQuery, cellAsString, clampTopIndex, collectExportRows, columnFilterType, computeDefaultColumnWidth, conditionLabel, conditionsForType, csvCell, dateShortcuts, debounce, defaultCondition, derivePresetAspects, deserializeDraft, draftMatchesPreset, escapeRegex, filledFilterCount, filterTokenLabel, filtersToUniqueryFilter, formatFilterCondition, fromWireSnapshot, hasSecondValue, isAuthError, isDirtyAgainst, isEmptyDraft, isFilled, isSimpleEq, isSystemPresetId, isUnavailableError, mergeDisplayColumns, mergeFilters, mergeSorters, normaliseSystemPresetId, pageAlignedBlocksFor, parseFilterInput, planFetch, reconcileColumnWidthDefaults, reorderColumnNames, resolveAspectGate, resolveExportValue, resolveSystemPresets, rowsToPks, sameColumnSet, serializeDraft, setsEqual, sortRowsLocally, sortersEqual, stableStringify, stateToUrlQueryString, toCsv, toWireSnapshot, togglePk, trimSelection, unescapeRegex, uniqueryFilterToFieldFilters, urlQueryConsumesKey, urlQueryStringToState, userConfId, walkBackwardAbsorb, walkForwardAbsorb, withStableOrder };
|
|
1921
|
+
export { APP_CONF_PREFIX, AppPrefsClient, DEFAULT_EXPORT_PAGE_SIZE, DEFAULT_ROW_HEIGHT_PX, DRAFT_PERSISTED_ASPECTS, ExportAbortError, MAX_DEFAULT_COLUMN_WIDTH_PX, NULL_OPS, PRESET_ASPECTS, PresetsClient, PresetsHttpError, RESERVED_ID_PREFIXES, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, USER_CONF_PREFIX, appConfId, arraysEqual, blockStartFor, buildTableQuery, cellAsString, clampTopIndex, collectExportRows, columnFilterType, computeDefaultColumnWidth, conditionLabel, conditionsForType, csvCell, dateShortcuts, debounce, defaultCondition, derivePresetAspects, deserializeDraft, draftMatchesPreset, escapeRegex, filledFilterCount, filterTokenLabel, filtersToUniqueryFilter, formatFilterCondition, fromWireSnapshot, gateOwns, hasSecondValue, isAuthError, isDirtyAgainst, isEmptyDraft, isFilled, isSimpleEq, isSystemPresetId, isUnavailableError, mergeDisplayColumns, mergeFilters, mergeSorters, normaliseSystemPresetId, pageAlignedBlocksFor, parseFilterInput, planFetch, reconcileColumnWidthDefaults, reorderColumnNames, resolveAspectGate, resolveExportValue, resolveSystemPresets, rowsToPks, sameColumnSet, serializeDraft, setsEqual, sortRowsLocally, sortersEqual, stableStringify, stateToUrlQueryString, toCsv, toWireSnapshot, togglePk, trimSelection, unescapeRegex, uniqueryFilterToFieldFilters, urlQueryConsumesKey, urlQueryStringToState, userConfId, walkBackwardAbsorb, walkForwardAbsorb, withStableOrder };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atscript/ui-table",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.137",
|
|
4
4
|
"description": "Framework-agnostic filter model, filter-to-Uniquery conversion, and preset serialization for atscript tables",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"atscript",
|
|
@@ -42,16 +42,16 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@atscript/ui": "0.1.
|
|
45
|
+
"@atscript/ui": "0.1.137"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@atscript/db-client": "^0.1.
|
|
48
|
+
"@atscript/db-client": "^0.1.131",
|
|
49
49
|
"@uniqu/core": "^0.1.8",
|
|
50
50
|
"@uniqu/url": "^0.1.8",
|
|
51
51
|
"vitest": "npm:@voidzero-dev/vite-plus-test@0.1.14"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@atscript/db-client": "^0.1.
|
|
54
|
+
"@atscript/db-client": "^0.1.131",
|
|
55
55
|
"@uniqu/core": "^0.1.8",
|
|
56
56
|
"@uniqu/url": "^0.1.8"
|
|
57
57
|
},
|