@trackunit/filters-filter-bar 0.0.319 → 0.0.321

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
@@ -878,7 +878,7 @@ const hasValue = (value) => {
878
878
  if (value === undefined || value === null) {
879
879
  return false;
880
880
  }
881
- // eslint-disable-next-line local-rules/prefer-custom-object-keys
881
+ // eslint-disable-next-line no-autofix/local-rules/prefer-custom-object-keys
882
882
  if (typeof value === "object" && Object.keys(value).length === 0) {
883
883
  return false;
884
884
  }
@@ -899,7 +899,7 @@ const isNotRightType = (filterDefinition, foundFilter) => {
899
899
  */
900
900
  const isMinMaxFilterValue = (value) => {
901
901
  return value
902
- ? // eslint-disable-next-line local-rules/prefer-custom-object-keys
902
+ ? // eslint-disable-next-line no-autofix/local-rules/prefer-custom-object-keys
903
903
  typeof value === "object" && (Object.keys(value).includes("min") || Object.keys(value).includes("max"))
904
904
  : false;
905
905
  };
@@ -908,7 +908,7 @@ const isMinMaxFilterValue = (value) => {
908
908
  */
909
909
  const isDateRangeValue = (value) => {
910
910
  return value
911
- ? // eslint-disable-next-line local-rules/prefer-custom-object-keys
911
+ ? // eslint-disable-next-line no-autofix/local-rules/prefer-custom-object-keys
912
912
  typeof value === "object" && (Object.keys(value).includes("from") || Object.keys(value).includes("to"))
913
913
  : false;
914
914
  };
@@ -917,7 +917,7 @@ const isDateRangeValue = (value) => {
917
917
  */
918
918
  const isBoundingBox = (value) => {
919
919
  return value
920
- ? // eslint-disable-next-line local-rules/prefer-custom-object-keys
920
+ ? // eslint-disable-next-line no-autofix/local-rules/prefer-custom-object-keys
921
921
  typeof value === "object" && Object.keys(value).includes("nw") && Object.keys(value).includes("se")
922
922
  : false;
923
923
  };
@@ -937,7 +937,7 @@ const isStringArrayFilterValue = (value) => {
937
937
  *
938
938
  */
939
939
  const isBooleanValue = (value) => {
940
- // eslint-disable-next-line local-rules/prefer-custom-object-keys
940
+ // eslint-disable-next-line no-autofix/local-rules/prefer-custom-object-keys
941
941
  return value ? typeof value === "object" && Object.keys(value).includes("booleanValue") : false;
942
942
  };
943
943
  /**
@@ -946,7 +946,7 @@ const isBooleanValue = (value) => {
946
946
  const isValueNameFilterValue = (value) => {
947
947
  return (isArrayFilterValue(value) &&
948
948
  value.every(
949
- // eslint-disable-next-line local-rules/prefer-custom-object-keys
949
+ // eslint-disable-next-line no-autofix/local-rules/prefer-custom-object-keys
950
950
  item => typeof item === "object" && Object.keys(item).includes("name") && Object.keys(item).includes("value")));
951
951
  };
952
952
  /**
@@ -960,7 +960,7 @@ const isValueNameFilterValue = (value) => {
960
960
  const validateFilter = (filter, filterDefinitions) => {
961
961
  const stateKeys = [];
962
962
  let inBadState = false;
963
- // eslint-disable-next-line local-rules/prefer-custom-object-keys
963
+ // eslint-disable-next-line no-autofix/local-rules/prefer-custom-object-keys
964
964
  for (const key of Object.keys((filter === null || filter === void 0 ? void 0 : filter.values) || {})) {
965
965
  if (filterDefinitions.find(filterDefinition => filterDefinition.filterKey === key)) {
966
966
  stateKeys.push(key);
@@ -1024,7 +1024,7 @@ const useFilterBar = ({ name, onValuesChange, filterBarDefinition, initialState,
1024
1024
  if (initialFilterBarConfig === undefined || hasNonVisibleDefaultValues) {
1025
1025
  initialFilterBarConfig = createInitialState(name, sharedUtils.objectValues(filterBarDefinition), initialState || {}, setValue);
1026
1026
  }
1027
- // eslint-disable-next-line local-rules/prefer-custom-object-keys
1027
+ // eslint-disable-next-line no-autofix/local-rules/prefer-custom-object-keys
1028
1028
  Object.keys(initialFilterBarConfig.values).forEach(key => {
1029
1029
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1030
1030
  initialFilterBarConfig.setters[`set${capitalize(key)}`] = (callback) => setValue(key, callback);
package/index.esm.js CHANGED
@@ -870,7 +870,7 @@ const hasValue = (value) => {
870
870
  if (value === undefined || value === null) {
871
871
  return false;
872
872
  }
873
- // eslint-disable-next-line local-rules/prefer-custom-object-keys
873
+ // eslint-disable-next-line no-autofix/local-rules/prefer-custom-object-keys
874
874
  if (typeof value === "object" && Object.keys(value).length === 0) {
875
875
  return false;
876
876
  }
@@ -891,7 +891,7 @@ const isNotRightType = (filterDefinition, foundFilter) => {
891
891
  */
892
892
  const isMinMaxFilterValue = (value) => {
893
893
  return value
894
- ? // eslint-disable-next-line local-rules/prefer-custom-object-keys
894
+ ? // eslint-disable-next-line no-autofix/local-rules/prefer-custom-object-keys
895
895
  typeof value === "object" && (Object.keys(value).includes("min") || Object.keys(value).includes("max"))
896
896
  : false;
897
897
  };
@@ -900,7 +900,7 @@ const isMinMaxFilterValue = (value) => {
900
900
  */
901
901
  const isDateRangeValue = (value) => {
902
902
  return value
903
- ? // eslint-disable-next-line local-rules/prefer-custom-object-keys
903
+ ? // eslint-disable-next-line no-autofix/local-rules/prefer-custom-object-keys
904
904
  typeof value === "object" && (Object.keys(value).includes("from") || Object.keys(value).includes("to"))
905
905
  : false;
906
906
  };
@@ -909,7 +909,7 @@ const isDateRangeValue = (value) => {
909
909
  */
910
910
  const isBoundingBox = (value) => {
911
911
  return value
912
- ? // eslint-disable-next-line local-rules/prefer-custom-object-keys
912
+ ? // eslint-disable-next-line no-autofix/local-rules/prefer-custom-object-keys
913
913
  typeof value === "object" && Object.keys(value).includes("nw") && Object.keys(value).includes("se")
914
914
  : false;
915
915
  };
@@ -929,7 +929,7 @@ const isStringArrayFilterValue = (value) => {
929
929
  *
930
930
  */
931
931
  const isBooleanValue = (value) => {
932
- // eslint-disable-next-line local-rules/prefer-custom-object-keys
932
+ // eslint-disable-next-line no-autofix/local-rules/prefer-custom-object-keys
933
933
  return value ? typeof value === "object" && Object.keys(value).includes("booleanValue") : false;
934
934
  };
935
935
  /**
@@ -938,7 +938,7 @@ const isBooleanValue = (value) => {
938
938
  const isValueNameFilterValue = (value) => {
939
939
  return (isArrayFilterValue(value) &&
940
940
  value.every(
941
- // eslint-disable-next-line local-rules/prefer-custom-object-keys
941
+ // eslint-disable-next-line no-autofix/local-rules/prefer-custom-object-keys
942
942
  item => typeof item === "object" && Object.keys(item).includes("name") && Object.keys(item).includes("value")));
943
943
  };
944
944
  /**
@@ -952,7 +952,7 @@ const isValueNameFilterValue = (value) => {
952
952
  const validateFilter = (filter, filterDefinitions) => {
953
953
  const stateKeys = [];
954
954
  let inBadState = false;
955
- // eslint-disable-next-line local-rules/prefer-custom-object-keys
955
+ // eslint-disable-next-line no-autofix/local-rules/prefer-custom-object-keys
956
956
  for (const key of Object.keys((filter === null || filter === void 0 ? void 0 : filter.values) || {})) {
957
957
  if (filterDefinitions.find(filterDefinition => filterDefinition.filterKey === key)) {
958
958
  stateKeys.push(key);
@@ -1016,7 +1016,7 @@ const useFilterBar = ({ name, onValuesChange, filterBarDefinition, initialState,
1016
1016
  if (initialFilterBarConfig === undefined || hasNonVisibleDefaultValues) {
1017
1017
  initialFilterBarConfig = createInitialState(name, objectValues(filterBarDefinition), initialState || {}, setValue);
1018
1018
  }
1019
- // eslint-disable-next-line local-rules/prefer-custom-object-keys
1019
+ // eslint-disable-next-line no-autofix/local-rules/prefer-custom-object-keys
1020
1020
  Object.keys(initialFilterBarConfig.values).forEach(key => {
1021
1021
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1022
1022
  initialFilterBarConfig.setters[`set${capitalize(key)}`] = (callback) => setValue(key, callback);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/filters-filter-bar",
3
- "version": "0.0.319",
3
+ "version": "0.0.321",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {