@civicactions/cmsds-open-data-components 3.0.0-alpha.4 → 3.0.0-alpha.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 +3 -7
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -531,11 +531,7 @@ async function $eff7d34c30f5a0fc$export$2d2256cb46e92ff7(rootUrl, options, addit
|
|
|
531
531
|
|
|
532
532
|
|
|
533
533
|
const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
|
|
534
|
-
const { rootUrl: rootUrl , surveyLink: surveyLink , additionalParams: additionalParams , enableSort: enableSort ,
|
|
535
|
-
const defaultSort = {
|
|
536
|
-
defaultSort: "modified",
|
|
537
|
-
defaultOrder: "desc"
|
|
538
|
-
};
|
|
534
|
+
const { rootUrl: rootUrl , surveyLink: surveyLink , additionalParams: additionalParams , enableSort: enableSort , defaultSort: defaultSort , pageTitle: pageTitle , filterTitle: filterTitle , showLargeFileWarning: showLargeFileWarning , introText: introText } = props;
|
|
539
535
|
const sortOptions = [
|
|
540
536
|
{
|
|
541
537
|
label: "Newest",
|
|
@@ -799,7 +795,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
|
|
|
799
795
|
]
|
|
800
796
|
})
|
|
801
797
|
}),
|
|
802
|
-
|
|
798
|
+
enableSort && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
803
799
|
className: "ds-l-col--12 ds-l-sm-col--6 ds-l-md-col--4 ds-u-sm-padding-right--0",
|
|
804
800
|
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dropdown), {
|
|
805
801
|
options: sortOptions,
|
|
@@ -863,7 +859,7 @@ $e873081a6e8f024e$var$DatasetSearch.defaultProps = {
|
|
|
863
859
|
fulltextPlaceholder: "Search datasets",
|
|
864
860
|
filterTitle: "Tags",
|
|
865
861
|
formClassName: "ds-u-display--flex ds-u-justify-content--between ds-u-margin-bottom--2",
|
|
866
|
-
|
|
862
|
+
enableSort: true,
|
|
867
863
|
sortOptions: [
|
|
868
864
|
{
|
|
869
865
|
label: "Newest",
|