@digitalculture/ochre-sdk 0.12.10 → 0.12.11
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/index.d.mts +6 -2
- package/dist/index.mjs +14 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -662,11 +662,15 @@ type WebElementComponent = {
|
|
|
662
662
|
variant: "full" | "highlights";
|
|
663
663
|
itemVariant: "detailed" | "card" | "tile";
|
|
664
664
|
paginationVariant: "default" | "numeric";
|
|
665
|
-
|
|
665
|
+
layout: "image-top" | "image-bottom" | "image-start" | "image-end";
|
|
666
666
|
isSortDisplayed: boolean;
|
|
667
667
|
isFilterDisplayed: boolean;
|
|
668
668
|
filterSort: "default" | "alphabetical";
|
|
669
|
-
|
|
669
|
+
search: {
|
|
670
|
+
isInputDisplayed: boolean;
|
|
671
|
+
isResultsBarDisplayed: boolean;
|
|
672
|
+
isMapDisplayed: boolean;
|
|
673
|
+
};
|
|
670
674
|
options: {
|
|
671
675
|
attributeFilters: {
|
|
672
676
|
bibliographies: boolean;
|
package/dist/index.mjs
CHANGED
|
@@ -1801,9 +1801,15 @@ function parseWebElementProperties(componentProperty, elementResource) {
|
|
|
1801
1801
|
itemVariant ??= "detailed";
|
|
1802
1802
|
let paginationVariant = getPropertyValueByLabel(componentProperty.properties, "pagination-variant");
|
|
1803
1803
|
paginationVariant ??= "default";
|
|
1804
|
-
let
|
|
1805
|
-
const
|
|
1806
|
-
if (
|
|
1804
|
+
let isInputDisplayed = false;
|
|
1805
|
+
const isInputDisplayedProperty = getPropertyValueByLabel(componentProperty.properties, "input-displayed");
|
|
1806
|
+
if (isInputDisplayedProperty !== null) isInputDisplayed = isInputDisplayedProperty === true;
|
|
1807
|
+
let isResultsBarDisplayed = false;
|
|
1808
|
+
const isResultsBarDisplayedProperty = getPropertyValueByLabel(componentProperty.properties, "results-bar-displayed");
|
|
1809
|
+
if (isResultsBarDisplayedProperty !== null) isResultsBarDisplayed = isResultsBarDisplayedProperty === true;
|
|
1810
|
+
let isMapDisplayed = false;
|
|
1811
|
+
const isMapDisplayedProperty = getPropertyValueByLabel(componentProperty.properties, "map-displayed");
|
|
1812
|
+
if (isMapDisplayedProperty !== null) isMapDisplayed = isMapDisplayedProperty === true;
|
|
1807
1813
|
let isSortDisplayed = false;
|
|
1808
1814
|
const isSortDisplayedProperty = getPropertyValueByLabel(componentProperty.properties, "sort-displayed");
|
|
1809
1815
|
if (isSortDisplayedProperty !== null) isSortDisplayed = isSortDisplayedProperty === true;
|
|
@@ -1859,7 +1865,11 @@ function parseWebElementProperties(componentProperty, elementResource) {
|
|
|
1859
1865
|
properties.variant = variant;
|
|
1860
1866
|
properties.itemVariant = itemVariant;
|
|
1861
1867
|
properties.paginationVariant = paginationVariant;
|
|
1862
|
-
properties.
|
|
1868
|
+
properties.search = {
|
|
1869
|
+
isInputDisplayed,
|
|
1870
|
+
isResultsBarDisplayed,
|
|
1871
|
+
isMapDisplayed
|
|
1872
|
+
};
|
|
1863
1873
|
properties.isSortDisplayed = isSortDisplayed;
|
|
1864
1874
|
properties.isFilterDisplayed = isFilterDisplayed;
|
|
1865
1875
|
properties.filterSort = filterSort;
|
package/package.json
CHANGED