@civicactions/cmsds-open-data-components 3.1.4 → 3.1.5

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
@@ -2806,7 +2806,7 @@ const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions, resource
2806
2806
  }),
2807
2807
  dist.data.description && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2808
2808
  className: "ds-u-measure--wide ds-u-margin-bottom--7",
2809
- children: /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
2809
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
2810
2810
  className: "dc-c-metadata-description ds-u-margin--0",
2811
2811
  dangerouslySetInnerHTML: {
2812
2812
  __html: (0, $hgUW1$dompurify).sanitize(dist.data.description)
@@ -3318,7 +3318,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, additionalPar
3318
3318
  className: "ds-l-md-col--9",
3319
3319
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3320
3320
  className: "ds-u-measure--wide ds-u-margin-bottom--7",
3321
- children: /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
3321
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3322
3322
  className: "dc-c-metadata-description ds-u-margin--0",
3323
3323
  dangerouslySetInnerHTML: {
3324
3324
  __html: (0, $hgUW1$dompurify).sanitize(dataset.description)
@@ -5261,7 +5261,6 @@ var $ec3e23baa005dc03$export$2e2bcd8739ae039 = $ec3e23baa005dc03$var$Breadcrumb;
5261
5261
 
5262
5262
 
5263
5263
 
5264
-
5265
5264
 
5266
5265
 
5267
5266
  function $374c4669b044ddf8$var$getStartDate(condition, schema, id) {
@@ -5527,7 +5526,28 @@ var $3b6ca952e79f0695$export$2e2bcd8739ae039 = $3b6ca952e79f0695$var$QueryBuilde
5527
5526
 
5528
5527
 
5529
5528
 
5530
- const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset, distIndex: distIndex, location: location, apiDocPage: apiDocPage, additionalParams: additionalParams, customColumns: customColumns, columnSettings: columnSettings, columnWidths: columnWidths, customTitle: customTitle, rootUrl: rootUrl })=>{
5529
+
5530
+
5531
+ const $de780c924c98fa31$var$FilteredResourceDescription = ({ distribution: distribution, dataset: dataset })=>{
5532
+ if (!distribution && !dataset) return null;
5533
+ let description = "";
5534
+ if (distribution.data && distribution.data.description) description = distribution.data.description;
5535
+ else if (dataset.description) description = dataset.description;
5536
+ return /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5537
+ className: "ds-u-measure--wide ds-u-margin-bottom--7",
5538
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5539
+ className: "ds-u-margin-top--0 dc-c-metadata-description",
5540
+ dangerouslySetInnerHTML: {
5541
+ __html: (0, $hgUW1$dompurify).sanitize(description)
5542
+ }
5543
+ })
5544
+ });
5545
+ };
5546
+ var $de780c924c98fa31$export$2e2bcd8739ae039 = $de780c924c98fa31$var$FilteredResourceDescription;
5547
+
5548
+
5549
+
5550
+ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset, distIndex: distIndex, location: location, additionalParams: additionalParams, customColumns: customColumns, columnSettings: columnSettings, columnWidths: columnWidths, customTitle: customTitle, rootUrl: rootUrl })=>{
5531
5551
  const navigate = (0, $hgUW1$useNavigate)();
5532
5552
  const [tablePadding, setTablePadding] = (0, $hgUW1$react).useState("ds-u-padding-y--1");
5533
5553
  let apiDocs = (0, $hgUW1$useRef)();
@@ -5593,14 +5613,9 @@ const $dd6eb2b30d7ad75d$var$FilteredResourceBody = ({ id: id, dataset: dataset,
5593
5613
  }),
5594
5614
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5595
5615
  className: "ds-l-md-col--9",
5596
- children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
5597
- className: "ds-u-measure--wide ds-u-margin-bottom--7",
5598
- children: /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
5599
- className: "ds-u-margin-top--0 dc-c-metadata-description",
5600
- dangerouslySetInnerHTML: {
5601
- __html: (0, $hgUW1$dompurify).sanitize(distribution.data.description)
5602
- }
5603
- })
5616
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $de780c924c98fa31$export$2e2bcd8739ae039), {
5617
+ distribution: distribution,
5618
+ dataset: dataset
5604
5619
  })
5605
5620
  }),
5606
5621
  resource.columns && Object.keys(resource.schema).length && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $3b6ca952e79f0695$export$2e2bcd8739ae039), {
@@ -5666,6 +5681,7 @@ var $dd6eb2b30d7ad75d$export$2e2bcd8739ae039 = $dd6eb2b30d7ad75d$var$FilteredRes
5666
5681
 
5667
5682
 
5668
5683
 
5684
+
5669
5685
  const $f61ecf9f84951a61$var$FilteredResource = ({ id: id, dist_id: dist_id, location: location, apiDocPage: apiDocPage, additionalParams: additionalParams, customColumns: customColumns, setDatasetTitle: setDatasetTitle, columnSettings: columnSettings, columnWidths: columnWidths, customTitle: customTitle, rootUrl: rootUrl })=>{
5670
5686
  const [ready, setReady] = (0, $hgUW1$useState)(false);
5671
5687
  const [error, setError] = (0, $hgUW1$useState)(false);
@@ -5734,7 +5750,7 @@ const $f61ecf9f84951a61$var$FilteredResource = ({ id: id, dist_id: dist_id, loca
5734
5750
  })
5735
5751
  });
5736
5752
  };
5737
- var $f61ecf9f84951a61$export$2e2bcd8739ae039 = $f61ecf9f84951a61$var$FilteredResource;
5753
+ var $f61ecf9f84951a61$export$2e2bcd8739ae039 = (0, $61ff88fb3f6ee2c8$export$2e2bcd8739ae039)($f61ecf9f84951a61$var$FilteredResource);
5738
5754
 
5739
5755
 
5740
5756