@trackunit/shared-utils 1.15.13-alpha-2ff0206584d.0 → 1.15.14

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/index.cjs.js CHANGED
@@ -169,6 +169,15 @@ const size = {
169
169
  LARGE: "large",
170
170
  };
171
171
 
172
+ /**
173
+ * Sentinel key in a persisted `columnVisibility` map marking it as "visible-only": any column
174
+ * absent from the map is treated as hidden, rather than falling back to its `hiddenByDefault`.
175
+ *
176
+ * Single source of truth for that format, shared by the persistence writer (`useCompactTableUrl`)
177
+ * and the readers (`useTable`, asset-table-internal) so the literal can't drift between them.
178
+ */
179
+ const VISIBLE_ONLY_COLUMN_VISIBILITY_KEY = "__trackunitVisibleOnlyColumnVisibility";
180
+
172
181
  const HoursAndMinutesFormat = {
173
182
  HOURS_MIN_SEC_LONG: "HOURS_MIN_SEC_LONG", // h [h] mm [min] ss [sec]
174
183
  HOURS_MIN_SEC: "HOURS_MIN_SEC", // h[h] m[m] s[s]
@@ -1553,6 +1562,7 @@ exports.DateTimeFormat = DateTimeFormat;
1553
1562
  exports.HoursAndMinutesFormat = HoursAndMinutesFormat;
1554
1563
  exports.UnitsOfMeasurementSI = UnitsOfMeasurementSI;
1555
1564
  exports.UnitsOfMeasurementUSCustomary = UnitsOfMeasurementUSCustomary;
1565
+ exports.VISIBLE_ONLY_COLUMN_VISIBILITY_KEY = VISIBLE_ONLY_COLUMN_VISIBILITY_KEY;
1556
1566
  exports.align = align;
1557
1567
  exports.alphabeticallySort = alphabeticallySort;
1558
1568
  exports.arrayLengthCompare = arrayLengthCompare;
package/index.esm.js CHANGED
@@ -167,6 +167,15 @@ const size = {
167
167
  LARGE: "large",
168
168
  };
169
169
 
170
+ /**
171
+ * Sentinel key in a persisted `columnVisibility` map marking it as "visible-only": any column
172
+ * absent from the map is treated as hidden, rather than falling back to its `hiddenByDefault`.
173
+ *
174
+ * Single source of truth for that format, shared by the persistence writer (`useCompactTableUrl`)
175
+ * and the readers (`useTable`, asset-table-internal) so the literal can't drift between them.
176
+ */
177
+ const VISIBLE_ONLY_COLUMN_VISIBILITY_KEY = "__trackunitVisibleOnlyColumnVisibility";
178
+
170
179
  const HoursAndMinutesFormat = {
171
180
  HOURS_MIN_SEC_LONG: "HOURS_MIN_SEC_LONG", // h [h] mm [min] ss [sec]
172
181
  HOURS_MIN_SEC: "HOURS_MIN_SEC", // h[h] m[m] s[s]
@@ -1547,4 +1556,4 @@ const formatUsCustomaryDistance = (value) => {
1547
1556
  }
1548
1557
  };
1549
1558
 
1550
- export { DateTimeFormat, HoursAndMinutesFormat, UnitsOfMeasurementSI, UnitsOfMeasurementUSCustomary, align, alphabeticallySort, arrayLengthCompare, arrayNotEmpty, booleanCompare, calculateImageScaleRatio, capitalize, colorsFromStyleDeclaration, convertBlobToBase64, convertMetersToKilometers, convertMetersToYards, convertYardsToMeters, convertYardsToMiles, dateCompare, deleteUndefinedKeys, difference, doNothing, enumFromValue, enumFromValueTypesafe, enumOrUndefinedFromValue, exhaustiveCheck, fetchImageAsBase64, filterByMultiple, formatAddress, formatCoordinates, formatSiDistance, formatUsCustomaryDistance, fuzzySearch, getAllColors, getDifferenceBetweenDates, getEndOfDay, getFirstLevelObjectPropertyDifferences, getISOStringFromDate, getLoremIpsum, getMimeTypeFromDataURL, getResizedDimensions, getStartOfDay, groupBy, groupTinyDataToOthers, hourIntervals, intersection, isArrayEqual, isSorted, isUUID, isValidImage, loadSVGDimensions, nonNullable, numberCompare, numberCompareUnknownAfterHighest, objNotEmpty, objectEntries, objectFromEntries, objectKeys, objectValues, parseTailwindArbitraryValue, pick, preload, removeLeftPadding, removeProperties, removeProperty, replaceNullableNumbersWithZero, resizeBlob, resizeImage, rgb2hex, size, stringCompare, stringCompareFromKey, stringNaturalCompare, stripHiddenCharacters, svgToPNG, titleCase, toID, toIDs, toPNG, toUUID, trimIds, trimPath, truthy, unionArraysByKey, uuidv3, uuidv4, uuidv5 };
1559
+ export { DateTimeFormat, HoursAndMinutesFormat, UnitsOfMeasurementSI, UnitsOfMeasurementUSCustomary, VISIBLE_ONLY_COLUMN_VISIBILITY_KEY, align, alphabeticallySort, arrayLengthCompare, arrayNotEmpty, booleanCompare, calculateImageScaleRatio, capitalize, colorsFromStyleDeclaration, convertBlobToBase64, convertMetersToKilometers, convertMetersToYards, convertYardsToMeters, convertYardsToMiles, dateCompare, deleteUndefinedKeys, difference, doNothing, enumFromValue, enumFromValueTypesafe, enumOrUndefinedFromValue, exhaustiveCheck, fetchImageAsBase64, filterByMultiple, formatAddress, formatCoordinates, formatSiDistance, formatUsCustomaryDistance, fuzzySearch, getAllColors, getDifferenceBetweenDates, getEndOfDay, getFirstLevelObjectPropertyDifferences, getISOStringFromDate, getLoremIpsum, getMimeTypeFromDataURL, getResizedDimensions, getStartOfDay, groupBy, groupTinyDataToOthers, hourIntervals, intersection, isArrayEqual, isSorted, isUUID, isValidImage, loadSVGDimensions, nonNullable, numberCompare, numberCompareUnknownAfterHighest, objNotEmpty, objectEntries, objectFromEntries, objectKeys, objectValues, parseTailwindArbitraryValue, pick, preload, removeLeftPadding, removeProperties, removeProperty, replaceNullableNumbersWithZero, resizeBlob, resizeImage, rgb2hex, size, stringCompare, stringCompareFromKey, stringNaturalCompare, stripHiddenCharacters, svgToPNG, titleCase, toID, toIDs, toPNG, toUUID, trimIds, trimPath, truthy, unionArraysByKey, uuidv3, uuidv4, uuidv5 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/shared-utils",
3
- "version": "1.15.13-alpha-2ff0206584d.0",
3
+ "version": "1.15.14",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "engines": {
6
6
  "node": ">=24.x"
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Sentinel key in a persisted `columnVisibility` map marking it as "visible-only": any column
3
+ * absent from the map is treated as hidden, rather than falling back to its `hiddenByDefault`.
4
+ *
5
+ * Single source of truth for that format, shared by the persistence writer (`useCompactTableUrl`)
6
+ * and the readers (`useTable`, asset-table-internal) so the literal can't drift between them.
7
+ */
8
+ export declare const VISIBLE_ONLY_COLUMN_VISIBILITY_KEY = "__trackunitVisibleOnlyColumnVisibility";
package/src/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export * from "./arrayUtils";
3
3
  export * from "./constants/align";
4
4
  export * from "./constants/hourIntervals";
5
5
  export * from "./constants/size";
6
+ export * from "./constants/tableColumnVisibility";
6
7
  export * from "./DateTimeFormat";
7
8
  export * from "./DateUtils";
8
9
  export * from "./deepPartial";