@woodylab/payload 0.0.18 → 0.0.19
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/config/blocks/blockCarousel.d.ts +3 -0
- package/dist/config/blocks/blockDisclosureList.d.ts +3 -0
- package/dist/config/blocks/blockGrid.d.ts +3 -0
- package/dist/config/blocks/blockGridContent.d.ts +3 -0
- package/dist/config/blocks/blockImage.d.ts +3 -0
- package/dist/config/blocks/blockParallax.d.ts +3 -0
- package/dist/config/blocks/blockTabs.d.ts +3 -0
- package/dist/config/index.cjs.js +9 -2
- package/dist/config/index.cjs.js.map +1 -1
- package/dist/config/index.d.ts +7 -0
- package/dist/config/index.esm.js +2 -2
- package/dist/{fieldRoles-BH5WwJxZ.js → fieldRoles-ByWB8j1Q.js} +618 -276
- package/dist/fieldRoles-ByWB8j1Q.js.map +1 -0
- package/dist/{fieldRoles-BbW92YWL.js → fieldRoles-C_8MuKLB.js} +617 -277
- package/dist/fieldRoles-C_8MuKLB.js.map +1 -0
- package/dist/fields/index.cjs.js +3 -3
- package/dist/fields/index.esm.js +2 -2
- package/dist/{index-Cv4qCZhV.js → index-BPmTpfXE.js} +581 -3
- package/dist/index-BPmTpfXE.js.map +1 -0
- package/dist/index-DhejC-CC.js +146 -0
- package/dist/index-DhejC-CC.js.map +1 -0
- package/dist/{index-CAnpYmu4.js → index-Ds44OSfM.js} +587 -2
- package/dist/index-Ds44OSfM.js.map +1 -0
- package/dist/index-zJMnbEc6.js +135 -0
- package/dist/index-zJMnbEc6.js.map +1 -0
- package/dist/index.cjs.js +3 -3
- package/dist/index.esm.js +3 -3
- package/package.json +1 -1
- package/dist/fieldRoles-BH5WwJxZ.js.map +0 -1
- package/dist/fieldRoles-BbW92YWL.js.map +0 -1
- package/dist/index-CAnpYmu4.js.map +0 -1
- package/dist/index-Cv4qCZhV.js.map +0 -1
- package/dist/index-DeuyvLG-.js +0 -485
- package/dist/index-DeuyvLG-.js.map +0 -1
- package/dist/index-qjse1Cxj.js +0 -473
- package/dist/index-qjse1Cxj.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as fieldCheckbox, t as fieldText, b as fieldArray, u as fieldUpload, f as fieldSelect, d as fieldThemeColor, o as fieldRelationship, s as fieldSectionTabs, m as fieldNumber, p as fieldRichText, a as fieldAction, n as fieldPaddings, w as iconsList, v as fieldViewportHeights } from './fieldRoles-C_8MuKLB.js';
|
|
2
2
|
|
|
3
3
|
const GoogleFonts = [
|
|
4
4
|
"42dot Sans",
|
|
@@ -1594,15 +1594,593 @@ const collectionMenus = ({ relationToOptions }) => {
|
|
|
1594
1594
|
};
|
|
1595
1595
|
};
|
|
1596
1596
|
|
|
1597
|
+
const blockCarousel = {
|
|
1598
|
+
slug: 'carousels',
|
|
1599
|
+
labels: {
|
|
1600
|
+
singular: 'Carousel',
|
|
1601
|
+
plural: 'Carousels',
|
|
1602
|
+
},
|
|
1603
|
+
fields: [
|
|
1604
|
+
fieldSectionTabs({
|
|
1605
|
+
configFields: [
|
|
1606
|
+
{
|
|
1607
|
+
type: 'row',
|
|
1608
|
+
fields: [
|
|
1609
|
+
fieldCheckbox({ name: 'hasPagination', label: 'Paginazione', defaultValue: true, admin: {
|
|
1610
|
+
width: '20%'
|
|
1611
|
+
}, }),
|
|
1612
|
+
fieldCheckbox({ name: 'hasNavigation', label: 'Navigazione', defaultValue: true, admin: {
|
|
1613
|
+
width: '20%'
|
|
1614
|
+
} }),
|
|
1615
|
+
fieldCheckbox({ name: 'hasOverlay', label: 'Overlay sull\'immagine', defaultValue: true, admin: {
|
|
1616
|
+
width: '20%'
|
|
1617
|
+
} }),
|
|
1618
|
+
fieldCheckbox({ name: 'hasInfiniteLoop', label: 'Loop infinito', defaultValue: true, admin: {
|
|
1619
|
+
width: '20%'
|
|
1620
|
+
} }),
|
|
1621
|
+
fieldCheckbox({ name: 'hasAutoPlay', label: 'Auto play', defaultValue: true, admin: {
|
|
1622
|
+
width: '20%'
|
|
1623
|
+
} }),
|
|
1624
|
+
fieldCheckbox({ name: 'hasThumbnails', label: 'Mostra miniature', defaultValue: false, admin: {
|
|
1625
|
+
width: '20%'
|
|
1626
|
+
} }),
|
|
1627
|
+
fieldNumber({ name: 'slidePerView', label: 'numero slide', defaultValue: 1, admin: {
|
|
1628
|
+
width: '20%'
|
|
1629
|
+
} }),
|
|
1630
|
+
fieldSelect({
|
|
1631
|
+
name: 'transition',
|
|
1632
|
+
label: 'Tipo transizione',
|
|
1633
|
+
defaultValue: 'slide',
|
|
1634
|
+
admin: {
|
|
1635
|
+
width: '50%'
|
|
1636
|
+
},
|
|
1637
|
+
options: [
|
|
1638
|
+
{ label: 'Slide', value: 'slide' },
|
|
1639
|
+
{ label: 'Fade', value: 'fade' },
|
|
1640
|
+
{ label: 'Cube', value: 'cube' },
|
|
1641
|
+
{ label: 'Coverflow', value: 'coverflow' },
|
|
1642
|
+
{ label: 'Flip', value: 'flip' },
|
|
1643
|
+
],
|
|
1644
|
+
}),
|
|
1645
|
+
]
|
|
1646
|
+
},
|
|
1647
|
+
],
|
|
1648
|
+
contentFields: [
|
|
1649
|
+
fieldArray({
|
|
1650
|
+
name: 'slides',
|
|
1651
|
+
label: 'Slides',
|
|
1652
|
+
fields: [
|
|
1653
|
+
fieldUpload('media', { name: 'image', label: 'Immagine' }),
|
|
1654
|
+
fieldRichText({ name: 'body', label: 'Body' }),
|
|
1655
|
+
fieldAction()
|
|
1656
|
+
],
|
|
1657
|
+
}),
|
|
1658
|
+
]
|
|
1659
|
+
})
|
|
1660
|
+
],
|
|
1661
|
+
};
|
|
1662
|
+
|
|
1663
|
+
// config/blockCarousel.ts
|
|
1664
|
+
const blockDisclosureList = {
|
|
1665
|
+
slug: 'disclosureList',
|
|
1666
|
+
labels: {
|
|
1667
|
+
singular: 'Disclosure List',
|
|
1668
|
+
plural: 'Disclosure List',
|
|
1669
|
+
},
|
|
1670
|
+
fields: [
|
|
1671
|
+
fieldSectionTabs({
|
|
1672
|
+
configFields: [
|
|
1673
|
+
{
|
|
1674
|
+
type: 'row',
|
|
1675
|
+
fields: [
|
|
1676
|
+
fieldSelect({
|
|
1677
|
+
name: 'initialStatus',
|
|
1678
|
+
label: 'Stato iniziale',
|
|
1679
|
+
defaultValue: 'firstOpen',
|
|
1680
|
+
options: [
|
|
1681
|
+
{ label: 'First open', value: 'firstOpen' },
|
|
1682
|
+
{ label: 'All open', value: 'allOpen' },
|
|
1683
|
+
{ label: 'All close', value: 'allClose' },
|
|
1684
|
+
],
|
|
1685
|
+
admin: { width: '20%' }
|
|
1686
|
+
}),
|
|
1687
|
+
fieldSelect({
|
|
1688
|
+
name: 'disclosureType',
|
|
1689
|
+
label: 'Tipo disclosure',
|
|
1690
|
+
defaultValue: 'default',
|
|
1691
|
+
options: [
|
|
1692
|
+
{ label: 'default', value: 'default' },
|
|
1693
|
+
{ label: 'Itinerario', value: 'itinerary' },
|
|
1694
|
+
],
|
|
1695
|
+
admin: { width: '20%' }
|
|
1696
|
+
}),
|
|
1697
|
+
]
|
|
1698
|
+
},
|
|
1699
|
+
],
|
|
1700
|
+
contentFields: [
|
|
1701
|
+
fieldArray({
|
|
1702
|
+
name: 'Disclosure',
|
|
1703
|
+
label: 'Disclosure',
|
|
1704
|
+
fields: [
|
|
1705
|
+
fieldText({ name: 'title', label: 'Titolo', required: false }),
|
|
1706
|
+
fieldText({ name: 'text', label: 'Testo', admin: { description: 'Testo affianco al titolo nel bottone di apertura' }, required: false }),
|
|
1707
|
+
fieldRichText({ name: 'body', label: 'Body' }),
|
|
1708
|
+
],
|
|
1709
|
+
}),
|
|
1710
|
+
]
|
|
1711
|
+
})
|
|
1712
|
+
],
|
|
1713
|
+
};
|
|
1714
|
+
|
|
1715
|
+
const blockGridContent = {
|
|
1716
|
+
slug: 'gridContent',
|
|
1717
|
+
labels: {
|
|
1718
|
+
singular: 'Colonna',
|
|
1719
|
+
plural: 'Colonne',
|
|
1720
|
+
},
|
|
1721
|
+
fields: [
|
|
1722
|
+
{
|
|
1723
|
+
type: 'tabs',
|
|
1724
|
+
tabs: [
|
|
1725
|
+
{
|
|
1726
|
+
label: 'Configurazioni',
|
|
1727
|
+
fields: [
|
|
1728
|
+
{
|
|
1729
|
+
type: 'group',
|
|
1730
|
+
name: 'config',
|
|
1731
|
+
label: 'Configurazione contenuto',
|
|
1732
|
+
fields: [
|
|
1733
|
+
{
|
|
1734
|
+
type: 'row',
|
|
1735
|
+
fields: [
|
|
1736
|
+
fieldThemeColor({
|
|
1737
|
+
name: 'bgc',
|
|
1738
|
+
label: 'Colore sfondo colonna',
|
|
1739
|
+
required: false,
|
|
1740
|
+
admin: {
|
|
1741
|
+
width: '100%'
|
|
1742
|
+
}
|
|
1743
|
+
}),
|
|
1744
|
+
fieldSelect({
|
|
1745
|
+
name: 'borderRadius',
|
|
1746
|
+
label: 'Angoli arrotondati',
|
|
1747
|
+
defaultValue: 'rounded-none', // Default: nessun arrotondamento
|
|
1748
|
+
options: [
|
|
1749
|
+
{ label: 'Nessuno', value: 'rounded-none' },
|
|
1750
|
+
{ label: 'Piccolo', value: 'rounded-sm' },
|
|
1751
|
+
{ label: 'Medio', value: 'rounded-md' },
|
|
1752
|
+
{ label: 'Grande', value: 'rounded-lg' },
|
|
1753
|
+
{ label: 'Extra Grande', value: 'rounded-xl' },
|
|
1754
|
+
{ label: 'Massimo', value: 'rounded-full' },
|
|
1755
|
+
],
|
|
1756
|
+
admin: {
|
|
1757
|
+
width: '50%',
|
|
1758
|
+
description: 'Imposta lo stile degli angoli arrotondati del contenitore.',
|
|
1759
|
+
},
|
|
1760
|
+
}),
|
|
1761
|
+
fieldSelect({
|
|
1762
|
+
name: 'boxShadow',
|
|
1763
|
+
label: 'Ombra contenitore',
|
|
1764
|
+
defaultValue: 'shadow-none', // Default: nessuna ombra
|
|
1765
|
+
options: [
|
|
1766
|
+
{ label: 'Nessuna', value: 'shadow-none' },
|
|
1767
|
+
{ label: 'Piccola', value: 'shadow-sm' },
|
|
1768
|
+
{ label: 'Normale', value: 'shadow' },
|
|
1769
|
+
{ label: 'Media', value: 'shadow-md' },
|
|
1770
|
+
{ label: 'Grande', value: 'shadow-lg' },
|
|
1771
|
+
{ label: 'Extra Grande', value: 'shadow-xl' },
|
|
1772
|
+
{ label: 'Massima', value: 'shadow-2xl' },
|
|
1773
|
+
],
|
|
1774
|
+
admin: {
|
|
1775
|
+
width: '50%',
|
|
1776
|
+
description: 'Imposta lo stile dell\'ombra per il contenitore.',
|
|
1777
|
+
},
|
|
1778
|
+
}),
|
|
1779
|
+
fieldSelect({
|
|
1780
|
+
name: 'desktopWidth',
|
|
1781
|
+
label: 'Larghezza Desktop',
|
|
1782
|
+
defaultValue: '',
|
|
1783
|
+
options: [
|
|
1784
|
+
{ label: 'Default', value: '' },
|
|
1785
|
+
{ label: '1 colonna', value: 'lg:col-span-1' },
|
|
1786
|
+
{ label: '2 colonne', value: 'lg:col-span-2' },
|
|
1787
|
+
{ label: '3 colonne', value: 'lg:col-span-3' },
|
|
1788
|
+
{ label: '4 colonne', value: 'lg:col-span-4' },
|
|
1789
|
+
{ label: '6 colonne', value: 'lg:col-span-6' },
|
|
1790
|
+
{ label: '8 colonne', value: 'lg:col-span-8' },
|
|
1791
|
+
{ label: 'Intera larghezza', value: 'lg:col-span-full' },
|
|
1792
|
+
],
|
|
1793
|
+
admin: {
|
|
1794
|
+
width: '33%',
|
|
1795
|
+
description: '≥ 1024px (lg)'
|
|
1796
|
+
}
|
|
1797
|
+
}),
|
|
1798
|
+
fieldSelect({
|
|
1799
|
+
name: 'tabletWidth',
|
|
1800
|
+
label: 'Larghezza Tablet',
|
|
1801
|
+
defaultValue: '',
|
|
1802
|
+
options: [
|
|
1803
|
+
{ label: 'Default', value: '' },
|
|
1804
|
+
{ label: '1 colonna', value: 'md:col-span-1' },
|
|
1805
|
+
{ label: '2 colonne', value: 'md:col-span-2' },
|
|
1806
|
+
{ label: '3 colonne', value: 'md:col-span-3' },
|
|
1807
|
+
{ label: '4 colonne', value: 'md:col-span-4' },
|
|
1808
|
+
{ label: 'Intera larghezza', value: 'md:col-span-full' },
|
|
1809
|
+
],
|
|
1810
|
+
admin: {
|
|
1811
|
+
width: '33%',
|
|
1812
|
+
description: '≥ 768px (md)'
|
|
1813
|
+
}
|
|
1814
|
+
}),
|
|
1815
|
+
fieldSelect({
|
|
1816
|
+
name: 'mobileWidth',
|
|
1817
|
+
label: 'Larghezza Mobile',
|
|
1818
|
+
defaultValue: '',
|
|
1819
|
+
options: [
|
|
1820
|
+
{ label: 'Default', value: '' },
|
|
1821
|
+
{ label: '1 colonna', value: 'col-span-1' },
|
|
1822
|
+
{ label: 'Intera larghezza', value: 'col-span-full' },
|
|
1823
|
+
],
|
|
1824
|
+
admin: {
|
|
1825
|
+
width: '33%',
|
|
1826
|
+
description: '< 768px'
|
|
1827
|
+
}
|
|
1828
|
+
}),
|
|
1829
|
+
fieldSelect({
|
|
1830
|
+
name: 'verticalAlign',
|
|
1831
|
+
label: 'Allineamento verticale',
|
|
1832
|
+
defaultValue: '',
|
|
1833
|
+
options: [
|
|
1834
|
+
{ label: 'Default', value: '' },
|
|
1835
|
+
{ label: 'In alto (start)', value: 'items-start' },
|
|
1836
|
+
{ label: 'Al centro (center)', value: 'items-center' },
|
|
1837
|
+
{ label: 'In basso (end)', value: 'items-end' },
|
|
1838
|
+
{ label: 'Distribuito tra gli elementi (baseline)', value: 'items-baseline' },
|
|
1839
|
+
{ label: 'Inizio verticale con stretching (stretch)', value: 'items-stretch' },
|
|
1840
|
+
],
|
|
1841
|
+
admin: {
|
|
1842
|
+
width: '25%',
|
|
1843
|
+
}
|
|
1844
|
+
}),
|
|
1845
|
+
]
|
|
1846
|
+
},
|
|
1847
|
+
fieldPaddings()
|
|
1848
|
+
]
|
|
1849
|
+
}
|
|
1850
|
+
]
|
|
1851
|
+
},
|
|
1852
|
+
{
|
|
1853
|
+
label: 'Contenuto',
|
|
1854
|
+
fields: [
|
|
1855
|
+
{
|
|
1856
|
+
type: 'group',
|
|
1857
|
+
name: 'cntP',
|
|
1858
|
+
label: 'Contenuto',
|
|
1859
|
+
fields: [
|
|
1860
|
+
fieldUpload('media', {
|
|
1861
|
+
name: 'image',
|
|
1862
|
+
label: 'Immagine'
|
|
1863
|
+
}),
|
|
1864
|
+
{
|
|
1865
|
+
name: 'iconName',
|
|
1866
|
+
type: 'select',
|
|
1867
|
+
label: 'Icona',
|
|
1868
|
+
options: [
|
|
1869
|
+
...iconsList
|
|
1870
|
+
],
|
|
1871
|
+
admin: {
|
|
1872
|
+
width: '50%',
|
|
1873
|
+
},
|
|
1874
|
+
},
|
|
1875
|
+
fieldSelect({
|
|
1876
|
+
name: 'iconSize',
|
|
1877
|
+
label: 'Dimensione bottone',
|
|
1878
|
+
defaultValue: '24',
|
|
1879
|
+
admin: {
|
|
1880
|
+
width: '50%',
|
|
1881
|
+
},
|
|
1882
|
+
options: [
|
|
1883
|
+
{ label: 'Small', value: '16' },
|
|
1884
|
+
{ label: 'Default', value: '24' },
|
|
1885
|
+
{ label: 'Medium', value: '32' },
|
|
1886
|
+
{ label: 'Large', value: '48' },
|
|
1887
|
+
{ label: 'Extra Large', value: '64' },
|
|
1888
|
+
],
|
|
1889
|
+
}),
|
|
1890
|
+
fieldRichText({ name: 'body', label: 'Body' }),
|
|
1891
|
+
fieldAction()
|
|
1892
|
+
]
|
|
1893
|
+
}
|
|
1894
|
+
]
|
|
1895
|
+
}
|
|
1896
|
+
]
|
|
1897
|
+
},
|
|
1898
|
+
],
|
|
1899
|
+
};
|
|
1900
|
+
|
|
1901
|
+
const blockGrid = {
|
|
1902
|
+
slug: 'grid',
|
|
1903
|
+
labels: {
|
|
1904
|
+
singular: 'Griglia',
|
|
1905
|
+
plural: 'Griglie',
|
|
1906
|
+
},
|
|
1907
|
+
fields: [
|
|
1908
|
+
fieldSectionTabs({
|
|
1909
|
+
configFields: [
|
|
1910
|
+
{
|
|
1911
|
+
type: 'row',
|
|
1912
|
+
fields: [
|
|
1913
|
+
fieldNumber({
|
|
1914
|
+
name: 'desktopColumns',
|
|
1915
|
+
label: 'Colonne Desktop',
|
|
1916
|
+
defaultValue: 4,
|
|
1917
|
+
min: 1,
|
|
1918
|
+
max: 12,
|
|
1919
|
+
admin: {
|
|
1920
|
+
width: '33%',
|
|
1921
|
+
description: '≥ 1024px (lg)'
|
|
1922
|
+
}
|
|
1923
|
+
}),
|
|
1924
|
+
fieldNumber({
|
|
1925
|
+
name: 'tabletColumns',
|
|
1926
|
+
label: 'Colonne Tablet',
|
|
1927
|
+
defaultValue: 2,
|
|
1928
|
+
min: 1,
|
|
1929
|
+
max: 6,
|
|
1930
|
+
admin: {
|
|
1931
|
+
width: '33%',
|
|
1932
|
+
description: '≥ 768px (md)'
|
|
1933
|
+
}
|
|
1934
|
+
}),
|
|
1935
|
+
fieldNumber({
|
|
1936
|
+
name: 'mobileColumns',
|
|
1937
|
+
label: 'Colonne Mobile',
|
|
1938
|
+
defaultValue: 1,
|
|
1939
|
+
min: 1,
|
|
1940
|
+
max: 2,
|
|
1941
|
+
admin: {
|
|
1942
|
+
width: '33%',
|
|
1943
|
+
description: '< 768px'
|
|
1944
|
+
}
|
|
1945
|
+
}),
|
|
1946
|
+
]
|
|
1947
|
+
},
|
|
1948
|
+
{
|
|
1949
|
+
type: 'row',
|
|
1950
|
+
fields: [
|
|
1951
|
+
fieldSelect({
|
|
1952
|
+
name: 'gap',
|
|
1953
|
+
label: 'Spazio tra colonne',
|
|
1954
|
+
defaultValue: 'gap-6',
|
|
1955
|
+
options: [
|
|
1956
|
+
{ label: 'Nessuno', value: 'gap-0' },
|
|
1957
|
+
{ label: 'Minimo', value: 'gap-2' },
|
|
1958
|
+
{ label: 'Piccolo', value: 'gap-4' },
|
|
1959
|
+
{ label: 'Medio', value: 'gap-6' },
|
|
1960
|
+
{ label: 'Grande', value: 'gap-8' },
|
|
1961
|
+
{ label: 'Extra Large', value: 'gap-12' },
|
|
1962
|
+
],
|
|
1963
|
+
admin: {
|
|
1964
|
+
width: '50%'
|
|
1965
|
+
}
|
|
1966
|
+
}),
|
|
1967
|
+
fieldSelect({
|
|
1968
|
+
name: 'verticalGap',
|
|
1969
|
+
label: 'Spazio tra righe',
|
|
1970
|
+
defaultValue: 'gap-y-6',
|
|
1971
|
+
options: [
|
|
1972
|
+
{ label: 'Nessuno', value: 'gap-y-0' },
|
|
1973
|
+
{ label: 'Minimo', value: 'gap-y-2' },
|
|
1974
|
+
{ label: 'Piccolo', value: 'gap-y-4' },
|
|
1975
|
+
{ label: 'Medio', value: 'gap-y-6' },
|
|
1976
|
+
{ label: 'Grande', value: 'gap-y-8' },
|
|
1977
|
+
{ label: 'Extra Large', value: 'gap-y-12' },
|
|
1978
|
+
],
|
|
1979
|
+
admin: {
|
|
1980
|
+
width: '50%'
|
|
1981
|
+
}
|
|
1982
|
+
}),
|
|
1983
|
+
]
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
type: 'row',
|
|
1987
|
+
fields: [
|
|
1988
|
+
fieldCheckbox({
|
|
1989
|
+
name: 'equalHeight',
|
|
1990
|
+
label: 'Elementi di altezza uguale',
|
|
1991
|
+
defaultValue: false,
|
|
1992
|
+
admin: {
|
|
1993
|
+
width: '50%',
|
|
1994
|
+
description: 'Imposta tutti gli elementi della griglia alla stessa altezza'
|
|
1995
|
+
}
|
|
1996
|
+
}),
|
|
1997
|
+
fieldSelect({
|
|
1998
|
+
name: 'alignment',
|
|
1999
|
+
label: 'Allineamento elementi',
|
|
2000
|
+
defaultValue: 'start',
|
|
2001
|
+
options: [
|
|
2002
|
+
{ label: 'In alto', value: 'start' },
|
|
2003
|
+
{ label: 'Centrato', value: 'center' },
|
|
2004
|
+
{ label: 'In basso', value: 'end' },
|
|
2005
|
+
{ label: 'Allungato', value: 'stretch' },
|
|
2006
|
+
],
|
|
2007
|
+
admin: {
|
|
2008
|
+
width: '50%',
|
|
2009
|
+
description: 'Allineamento verticale degli elementi nella griglia'
|
|
2010
|
+
}
|
|
2011
|
+
}),
|
|
2012
|
+
]
|
|
2013
|
+
},
|
|
2014
|
+
],
|
|
2015
|
+
contentFields: [
|
|
2016
|
+
{
|
|
2017
|
+
type: 'group',
|
|
2018
|
+
name: 'img',
|
|
2019
|
+
label: 'Immagine',
|
|
2020
|
+
fields: [
|
|
2021
|
+
{
|
|
2022
|
+
type: 'row',
|
|
2023
|
+
fields: [
|
|
2024
|
+
fieldCheckbox({
|
|
2025
|
+
name: 'hasOverlay',
|
|
2026
|
+
label: 'Overlay',
|
|
2027
|
+
defaultValue: true,
|
|
2028
|
+
admin: {
|
|
2029
|
+
description: 'Aggiunge un overlay sull\'immagine',
|
|
2030
|
+
width: '25%'
|
|
2031
|
+
}
|
|
2032
|
+
}),
|
|
2033
|
+
fieldCheckbox({
|
|
2034
|
+
name: 'useAsBg',
|
|
2035
|
+
label: 'Usa come sfondo',
|
|
2036
|
+
defaultValue: true,
|
|
2037
|
+
admin: {
|
|
2038
|
+
description: 'Usa l\'immagine come sfondo del contenuto',
|
|
2039
|
+
width: '25%'
|
|
2040
|
+
}
|
|
2041
|
+
}),
|
|
2042
|
+
]
|
|
2043
|
+
}
|
|
2044
|
+
]
|
|
2045
|
+
},
|
|
2046
|
+
{
|
|
2047
|
+
name: 'cols',
|
|
2048
|
+
label: 'Colonne',
|
|
2049
|
+
type: 'blocks',
|
|
2050
|
+
blocks: [blockGridContent],
|
|
2051
|
+
}
|
|
2052
|
+
]
|
|
2053
|
+
})
|
|
2054
|
+
],
|
|
2055
|
+
};
|
|
2056
|
+
|
|
2057
|
+
// config/blockCarousel.ts
|
|
2058
|
+
const blockImage = {
|
|
2059
|
+
slug: 'image',
|
|
2060
|
+
labels: {
|
|
2061
|
+
singular: 'immagine',
|
|
2062
|
+
plural: 'immagini',
|
|
2063
|
+
},
|
|
2064
|
+
fields: [
|
|
2065
|
+
fieldSectionTabs({
|
|
2066
|
+
contentFields: [fieldUpload('media', { name: 'image', label: 'immagine', required: true })],
|
|
2067
|
+
}),
|
|
2068
|
+
],
|
|
2069
|
+
};
|
|
2070
|
+
|
|
2071
|
+
// config/blockCarousel.ts
|
|
2072
|
+
const blockParallax = {
|
|
2073
|
+
slug: 'parallax',
|
|
2074
|
+
labels: {
|
|
2075
|
+
singular: 'Parallax',
|
|
2076
|
+
plural: 'Parallaxes',
|
|
2077
|
+
},
|
|
2078
|
+
fields: [
|
|
2079
|
+
fieldUpload('media', {
|
|
2080
|
+
name: 'parallaxImage',
|
|
2081
|
+
required: true,
|
|
2082
|
+
label: 'Immagine di sfondo',
|
|
2083
|
+
}),
|
|
2084
|
+
fieldRichText({
|
|
2085
|
+
name: 'content',
|
|
2086
|
+
label: 'Contenuto',
|
|
2087
|
+
}),
|
|
2088
|
+
{
|
|
2089
|
+
type: 'row',
|
|
2090
|
+
fields: [
|
|
2091
|
+
fieldViewportHeights(),
|
|
2092
|
+
fieldCheckbox({
|
|
2093
|
+
name: 'hasOverlay',
|
|
2094
|
+
label: 'Overlay',
|
|
2095
|
+
defaultValue: true,
|
|
2096
|
+
admin: {
|
|
2097
|
+
description: "Abilità overlay sull'immagine",
|
|
2098
|
+
},
|
|
2099
|
+
}),
|
|
2100
|
+
],
|
|
2101
|
+
},
|
|
2102
|
+
{
|
|
2103
|
+
type: 'row',
|
|
2104
|
+
fields: [
|
|
2105
|
+
fieldNumber({
|
|
2106
|
+
name: 'parallaxStrength',
|
|
2107
|
+
label: 'Intensità parallax',
|
|
2108
|
+
defaultValue: 300,
|
|
2109
|
+
min: 0,
|
|
2110
|
+
max: 1000,
|
|
2111
|
+
admin: {
|
|
2112
|
+
width: '25%',
|
|
2113
|
+
},
|
|
2114
|
+
}),
|
|
2115
|
+
fieldNumber({
|
|
2116
|
+
name: 'parallaxBlur',
|
|
2117
|
+
label: 'Sfocatura (0 = nessuna)',
|
|
2118
|
+
defaultValue: 0,
|
|
2119
|
+
min: 0,
|
|
2120
|
+
max: 5,
|
|
2121
|
+
admin: {
|
|
2122
|
+
width: '25%',
|
|
2123
|
+
},
|
|
2124
|
+
}),
|
|
2125
|
+
fieldText({
|
|
2126
|
+
name: 'className',
|
|
2127
|
+
label: 'Classi CSS personalizzate',
|
|
2128
|
+
admin: {
|
|
2129
|
+
width: '25%',
|
|
2130
|
+
},
|
|
2131
|
+
}),
|
|
2132
|
+
fieldNumber({
|
|
2133
|
+
name: 'minHeight',
|
|
2134
|
+
label: 'Altezza minima (px)',
|
|
2135
|
+
defaultValue: 400,
|
|
2136
|
+
admin: {
|
|
2137
|
+
width: '25%',
|
|
2138
|
+
},
|
|
2139
|
+
}),
|
|
2140
|
+
],
|
|
2141
|
+
},
|
|
2142
|
+
],
|
|
2143
|
+
};
|
|
2144
|
+
|
|
2145
|
+
// config/blockCarousel.ts
|
|
2146
|
+
const blockTabs = {
|
|
2147
|
+
slug: 'tabs',
|
|
2148
|
+
labels: {
|
|
2149
|
+
singular: 'tabs',
|
|
2150
|
+
plural: 'tabs',
|
|
2151
|
+
},
|
|
2152
|
+
fields: [
|
|
2153
|
+
fieldSectionTabs({
|
|
2154
|
+
contentFields: [
|
|
2155
|
+
fieldArray({
|
|
2156
|
+
name: 'tab',
|
|
2157
|
+
label: 'tab',
|
|
2158
|
+
fields: [
|
|
2159
|
+
fieldText({ name: 'title', label: 'Titolo tab' }),
|
|
2160
|
+
fieldRichText({ name: 'body', label: 'Contenuto tab' }),
|
|
2161
|
+
],
|
|
2162
|
+
}),
|
|
2163
|
+
],
|
|
2164
|
+
}),
|
|
2165
|
+
],
|
|
2166
|
+
};
|
|
2167
|
+
|
|
1597
2168
|
// GLOBALS
|
|
1598
2169
|
|
|
1599
2170
|
var index = /*#__PURE__*/Object.freeze({
|
|
1600
2171
|
__proto__: null,
|
|
2172
|
+
blockCarousel: blockCarousel,
|
|
2173
|
+
blockDisclosureList: blockDisclosureList,
|
|
2174
|
+
blockGrid: blockGrid,
|
|
2175
|
+
blockGridContent: blockGridContent,
|
|
2176
|
+
blockImage: blockImage,
|
|
2177
|
+
blockParallax: blockParallax,
|
|
2178
|
+
blockTabs: blockTabs,
|
|
1601
2179
|
collectionMenus: collectionMenus,
|
|
1602
2180
|
configFooter: configFooter,
|
|
1603
2181
|
configHeader: configHeader,
|
|
1604
2182
|
configSettings: configSettings
|
|
1605
2183
|
});
|
|
1606
2184
|
|
|
1607
|
-
export { configHeader as a, configFooter as b, configSettings as c, collectionMenus as d, index as i };
|
|
1608
|
-
//# sourceMappingURL=index-
|
|
2185
|
+
export { configHeader as a, configFooter as b, configSettings as c, collectionMenus as d, blockCarousel as e, blockDisclosureList as f, blockGrid as g, blockGridContent as h, index as i, blockImage as j, blockParallax as k, blockTabs as l };
|
|
2186
|
+
//# sourceMappingURL=index-BPmTpfXE.js.map
|