@civicactions/cmsds-open-data-components 3.8.1-alpha.1 → 3.8.1-alpha.2

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/main.js CHANGED
@@ -6220,7 +6220,11 @@ var $669d2782ec2e2250$export$2e2bcd8739ae039 = $669d2782ec2e2250$var$SpecsAndLim
6220
6220
  function $8b67b7ee3fcfb629$export$2e2bcd8739ae039({ id: id, rootUrl: rootUrl, customColumns: customColumns, query: query, distributionIndex: distributionIndex = 0, defaultPageSize: defaultPageSize = 25, disableTableControls: disableTableControls = false }) {
6221
6221
  // TODO parse from stored filter
6222
6222
  const options = {
6223
- conditions: query ? JSON.parse(query.replaceAll('\"column\"', '\"property\"')) : []
6223
+ conditions: query ? JSON.parse(query).map(({ column: column, operator: operator, ...rest })=>({
6224
+ property: column,
6225
+ operator: operator === 'is' ? '=' : operator === 'is not' ? '<>' : operator === 'or' ? 'in' : operator,
6226
+ ...rest
6227
+ })) : []
6224
6228
  };
6225
6229
  const { dataset: dataset, isPending: isPending } = (0, $b4aa9c66f2e86959$export$2e2bcd8739ae039)(id, rootUrl);
6226
6230
  let distribution = {};