@eldrajs/ui 0.2.3 → 0.2.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/CHANGELOG.md +3 -0
- package/LICENSE-tabler-icons +21 -0
- package/README.md +132 -0
- package/dist/{VariantPicker-CqDAtSju.js → VariantPicker-C56GlM1e.js} +47 -20
- package/dist/componentNames.d.ts +1 -1
- package/dist/components/icon/Icon.vue.d.ts +2 -2
- package/dist/components/icon/sizes.d.ts +9 -0
- package/dist/components/site-form/SiteForm.vue.d.ts +43 -0
- package/dist/components/site-form/localize.d.ts +9 -0
- package/dist/components/site-form/turnstile.d.ts +22 -0
- package/dist/components/site-form/types.d.ts +91 -0
- package/dist/components/site-form/useSiteForm.d.ts +35 -0
- package/dist/components/site-form/validate.d.ts +8 -0
- package/dist/components/tabler-icon/TablerIcon.vue.d.ts +10 -0
- package/dist/components/tabler-icon/bucket.d.ts +3 -0
- package/dist/components/tabler-icon/registry.d.ts +7 -0
- package/dist/components/tabler-icon/tablerIconData.d.ts +2 -0
- package/dist/components/tabler-icon/tablerIconName.d.ts +2 -0
- package/dist/components/tabler-icon/types.d.ts +15 -0
- package/dist/components.css +21 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1111 -186
- package/dist/messages/en-US.d.ts +26 -0
- package/dist/messages/is-IS.js +23 -1
- package/dist/resolver.js +2 -0
- package/dist/style.css +21 -0
- package/dist/tabler-icons/000.js +17 -0
- package/dist/tabler-icons/001.js +14 -0
- package/dist/tabler-icons/002.js +18 -0
- package/dist/tabler-icons/003.js +16 -0
- package/dist/tabler-icons/004.js +18 -0
- package/dist/tabler-icons/005.js +19 -0
- package/dist/tabler-icons/006.js +9 -0
- package/dist/tabler-icons/007.js +15 -0
- package/dist/tabler-icons/008.js +20 -0
- package/dist/tabler-icons/009.js +21 -0
- package/dist/tabler-icons/010.js +14 -0
- package/dist/tabler-icons/011.js +16 -0
- package/dist/tabler-icons/012.js +16 -0
- package/dist/tabler-icons/013.js +10 -0
- package/dist/tabler-icons/014.js +15 -0
- package/dist/tabler-icons/015.js +17 -0
- package/dist/tabler-icons/016.js +24 -0
- package/dist/tabler-icons/017.js +20 -0
- package/dist/tabler-icons/018.js +12 -0
- package/dist/tabler-icons/019.js +17 -0
- package/dist/tabler-icons/020.js +15 -0
- package/dist/tabler-icons/021.js +11 -0
- package/dist/tabler-icons/022.js +13 -0
- package/dist/tabler-icons/023.js +15 -0
- package/dist/tabler-icons/024.js +20 -0
- package/dist/tabler-icons/025.js +13 -0
- package/dist/tabler-icons/026.js +18 -0
- package/dist/tabler-icons/027.js +21 -0
- package/dist/tabler-icons/028.js +16 -0
- package/dist/tabler-icons/029.js +16 -0
- package/dist/tabler-icons/030.js +25 -0
- package/dist/tabler-icons/031.js +26 -0
- package/dist/tabler-icons/032.js +13 -0
- package/dist/tabler-icons/033.js +19 -0
- package/dist/tabler-icons/034.js +17 -0
- package/dist/tabler-icons/035.js +15 -0
- package/dist/tabler-icons/036.js +17 -0
- package/dist/tabler-icons/037.js +17 -0
- package/dist/tabler-icons/038.js +23 -0
- package/dist/tabler-icons/039.js +16 -0
- package/dist/tabler-icons/040.js +15 -0
- package/dist/tabler-icons/041.js +14 -0
- package/dist/tabler-icons/042.js +19 -0
- package/dist/tabler-icons/043.js +18 -0
- package/dist/tabler-icons/044.js +10 -0
- package/dist/tabler-icons/045.js +19 -0
- package/dist/tabler-icons/046.js +15 -0
- package/dist/tabler-icons/047.js +23 -0
- package/dist/tabler-icons/048.js +26 -0
- package/dist/tabler-icons/049.js +16 -0
- package/dist/tabler-icons/050.js +11 -0
- package/dist/tabler-icons/051.js +12 -0
- package/dist/tabler-icons/052.js +15 -0
- package/dist/tabler-icons/053.js +17 -0
- package/dist/tabler-icons/054.js +13 -0
- package/dist/tabler-icons/055.js +20 -0
- package/dist/tabler-icons/056.js +19 -0
- package/dist/tabler-icons/057.js +16 -0
- package/dist/tabler-icons/058.js +20 -0
- package/dist/tabler-icons/059.js +19 -0
- package/dist/tabler-icons/060.js +16 -0
- package/dist/tabler-icons/061.js +17 -0
- package/dist/tabler-icons/062.js +9 -0
- package/dist/tabler-icons/063.js +19 -0
- package/dist/tabler-icons/064.js +18 -0
- package/dist/tabler-icons/065.js +17 -0
- package/dist/tabler-icons/066.js +15 -0
- package/dist/tabler-icons/067.js +17 -0
- package/dist/tabler-icons/068.js +18 -0
- package/dist/tabler-icons/069.js +12 -0
- package/dist/tabler-icons/070.js +15 -0
- package/dist/tabler-icons/071.js +15 -0
- package/dist/tabler-icons/072.js +15 -0
- package/dist/tabler-icons/073.js +15 -0
- package/dist/tabler-icons/074.js +17 -0
- package/dist/tabler-icons/075.js +22 -0
- package/dist/tabler-icons/076.js +14 -0
- package/dist/tabler-icons/077.js +13 -0
- package/dist/tabler-icons/078.js +12 -0
- package/dist/tabler-icons/079.js +12 -0
- package/dist/tabler-icons/080.js +14 -0
- package/dist/tabler-icons/081.js +16 -0
- package/dist/tabler-icons/082.js +18 -0
- package/dist/tabler-icons/083.js +16 -0
- package/dist/tabler-icons/084.js +17 -0
- package/dist/tabler-icons/085.js +20 -0
- package/dist/tabler-icons/086.js +23 -0
- package/dist/tabler-icons/087.js +13 -0
- package/dist/tabler-icons/088.js +16 -0
- package/dist/tabler-icons/089.js +21 -0
- package/dist/tabler-icons/090.js +18 -0
- package/dist/tabler-icons/091.js +19 -0
- package/dist/tabler-icons/092.js +13 -0
- package/dist/tabler-icons/093.js +11 -0
- package/dist/tabler-icons/094.js +24 -0
- package/dist/tabler-icons/095.js +12 -0
- package/dist/tabler-icons/096.js +18 -0
- package/dist/tabler-icons/097.js +21 -0
- package/dist/tabler-icons/098.js +15 -0
- package/dist/tabler-icons/099.js +17 -0
- package/dist/tabler-icons/100.js +11 -0
- package/dist/tabler-icons/101.js +15 -0
- package/dist/tabler-icons/102.js +14 -0
- package/dist/tabler-icons/103.js +9 -0
- package/dist/tabler-icons/104.js +18 -0
- package/dist/tabler-icons/105.js +17 -0
- package/dist/tabler-icons/106.js +16 -0
- package/dist/tabler-icons/107.js +16 -0
- package/dist/tabler-icons/108.js +16 -0
- package/dist/tabler-icons/109.js +19 -0
- package/dist/tabler-icons/110.js +12 -0
- package/dist/tabler-icons/111.js +13 -0
- package/dist/tabler-icons/112.js +19 -0
- package/dist/tabler-icons/113.js +21 -0
- package/dist/tabler-icons/114.js +17 -0
- package/dist/tabler-icons/115.js +17 -0
- package/dist/tabler-icons/116.js +19 -0
- package/dist/tabler-icons/117.js +29 -0
- package/dist/tabler-icons/118.js +12 -0
- package/dist/tabler-icons/119.js +17 -0
- package/dist/tabler-icons/120.js +14 -0
- package/dist/tabler-icons/121.js +21 -0
- package/dist/tabler-icons/122.js +12 -0
- package/dist/tabler-icons/123.js +14 -0
- package/dist/tabler-icons/124.js +15 -0
- package/dist/tabler-icons/125.js +14 -0
- package/dist/tabler-icons/126.js +18 -0
- package/dist/tabler-icons/127.js +16 -0
- package/dist/tabler-icons/128.js +20 -0
- package/dist/tabler-icons/129.js +15 -0
- package/dist/tabler-icons/130.js +18 -0
- package/dist/tabler-icons/131.js +16 -0
- package/dist/tabler-icons/132.js +20 -0
- package/dist/tabler-icons/133.js +18 -0
- package/dist/tabler-icons/134.js +16 -0
- package/dist/tabler-icons/135.js +16 -0
- package/dist/tabler-icons/136.js +21 -0
- package/dist/tabler-icons/137.js +16 -0
- package/dist/tabler-icons/138.js +12 -0
- package/dist/tabler-icons/139.js +27 -0
- package/dist/tabler-icons/140.js +14 -0
- package/dist/tabler-icons/141.js +16 -0
- package/dist/tabler-icons/142.js +17 -0
- package/dist/tabler-icons/143.js +12 -0
- package/dist/tabler-icons/144.js +15 -0
- package/dist/tabler-icons/145.js +11 -0
- package/dist/tabler-icons/146.js +18 -0
- package/dist/tabler-icons/147.js +13 -0
- package/dist/tabler-icons/148.js +13 -0
- package/dist/tabler-icons/149.js +19 -0
- package/dist/tabler-icons/150.js +20 -0
- package/dist/tabler-icons/151.js +16 -0
- package/dist/tabler-icons/152.js +16 -0
- package/dist/tabler-icons/153.js +18 -0
- package/dist/tabler-icons/154.js +16 -0
- package/dist/tabler-icons/155.js +15 -0
- package/dist/tabler-icons/156.js +12 -0
- package/dist/tabler-icons/157.js +16 -0
- package/dist/tabler-icons/158.js +18 -0
- package/dist/tabler-icons/159.js +19 -0
- package/dist/tabler-icons/160.js +20 -0
- package/dist/tabler-icons/161.js +14 -0
- package/dist/tabler-icons/162.js +18 -0
- package/dist/tabler-icons/163.js +12 -0
- package/dist/tabler-icons/164.js +19 -0
- package/dist/tabler-icons/165.js +19 -0
- package/dist/tabler-icons/166.js +18 -0
- package/dist/tabler-icons/167.js +14 -0
- package/dist/tabler-icons/168.js +15 -0
- package/dist/tabler-icons/169.js +14 -0
- package/dist/tabler-icons/170.js +13 -0
- package/dist/tabler-icons/171.js +13 -0
- package/dist/tabler-icons/172.js +13 -0
- package/dist/tabler-icons/173.js +19 -0
- package/dist/tabler-icons/174.js +11 -0
- package/dist/tabler-icons/175.js +14 -0
- package/dist/tabler-icons/176.js +20 -0
- package/dist/tabler-icons/177.js +17 -0
- package/dist/tabler-icons/178.js +17 -0
- package/dist/tabler-icons/179.js +16 -0
- package/dist/tabler-icons/180.js +20 -0
- package/dist/tabler-icons/181.js +18 -0
- package/dist/tabler-icons/182.js +15 -0
- package/dist/tabler-icons/183.js +15 -0
- package/dist/tabler-icons/184.js +21 -0
- package/dist/tabler-icons/185.js +19 -0
- package/dist/tabler-icons/186.js +10 -0
- package/dist/tabler-icons/187.js +16 -0
- package/dist/tabler-icons/188.js +15 -0
- package/dist/tabler-icons/189.js +14 -0
- package/dist/tabler-icons/190.js +15 -0
- package/dist/tabler-icons/191.js +17 -0
- package/dist/tabler-icons/192.js +14 -0
- package/dist/tabler-icons/193.js +16 -0
- package/dist/tabler-icons/194.js +17 -0
- package/dist/tabler-icons/195.js +17 -0
- package/dist/tabler-icons/196.js +11 -0
- package/dist/tabler-icons/197.js +13 -0
- package/dist/tabler-icons/198.js +13 -0
- package/dist/tabler-icons/199.js +15 -0
- package/dist/tabler-icons/200.js +16 -0
- package/dist/tabler-icons/201.js +13 -0
- package/dist/tabler-icons/202.js +19 -0
- package/dist/tabler-icons/203.js +15 -0
- package/dist/tabler-icons/204.js +16 -0
- package/dist/tabler-icons/205.js +16 -0
- package/dist/tabler-icons/206.js +14 -0
- package/dist/tabler-icons/207.js +14 -0
- package/dist/tabler-icons/208.js +18 -0
- package/dist/tabler-icons/209.js +23 -0
- package/dist/tabler-icons/210.js +16 -0
- package/dist/tabler-icons/211.js +17 -0
- package/dist/tabler-icons/212.js +16 -0
- package/dist/tabler-icons/213.js +16 -0
- package/dist/tabler-icons/214.js +18 -0
- package/dist/tabler-icons/215.js +12 -0
- package/dist/tabler-icons/216.js +13 -0
- package/dist/tabler-icons/217.js +14 -0
- package/dist/tabler-icons/218.js +18 -0
- package/dist/tabler-icons/219.js +22 -0
- package/dist/tabler-icons/220.js +15 -0
- package/dist/tabler-icons/221.js +15 -0
- package/dist/tabler-icons/222.js +21 -0
- package/dist/tabler-icons/223.js +17 -0
- package/dist/tabler-icons/224.js +23 -0
- package/dist/tabler-icons/225.js +20 -0
- package/dist/tabler-icons/226.js +18 -0
- package/dist/tabler-icons/227.js +13 -0
- package/dist/tabler-icons/228.js +18 -0
- package/dist/tabler-icons/229.js +14 -0
- package/dist/tabler-icons/230.js +14 -0
- package/dist/tabler-icons/231.js +17 -0
- package/dist/tabler-icons/232.js +24 -0
- package/dist/tabler-icons/233.js +13 -0
- package/dist/tabler-icons/234.js +21 -0
- package/dist/tabler-icons/235.js +13 -0
- package/dist/tabler-icons/236.js +16 -0
- package/dist/tabler-icons/237.js +15 -0
- package/dist/tabler-icons/238.js +16 -0
- package/dist/tabler-icons/239.js +13 -0
- package/dist/tabler-icons/240.js +19 -0
- package/dist/tabler-icons/241.js +9 -0
- package/dist/tabler-icons/242.js +14 -0
- package/dist/tabler-icons/243.js +14 -0
- package/dist/tabler-icons/244.js +18 -0
- package/dist/tabler-icons/245.js +18 -0
- package/dist/tabler-icons/246.js +19 -0
- package/dist/tabler-icons/247.js +14 -0
- package/dist/tabler-icons/248.js +14 -0
- package/dist/tabler-icons/249.js +13 -0
- package/dist/tabler-icons/250.js +12 -0
- package/dist/tabler-icons/251.js +16 -0
- package/dist/tabler-icons/252.js +15 -0
- package/dist/tabler-icons/253.js +16 -0
- package/dist/tabler-icons/254.js +15 -0
- package/dist/tabler-icons/255.js +11 -0
- package/dist/tabler-icons/256.js +11 -0
- package/dist/tabler-icons/257.js +10 -0
- package/dist/tabler-icons/258.js +17 -0
- package/dist/tabler-icons/259.js +15 -0
- package/dist/tabler-icons/260.js +17 -0
- package/dist/tabler-icons/261.js +19 -0
- package/dist/tabler-icons/262.js +15 -0
- package/dist/tabler-icons/263.js +16 -0
- package/dist/tabler-icons/264.js +13 -0
- package/dist/tabler-icons/265.js +21 -0
- package/dist/tabler-icons/266.js +24 -0
- package/dist/tabler-icons/267.js +19 -0
- package/dist/tabler-icons/268.js +12 -0
- package/dist/tabler-icons/269.js +21 -0
- package/dist/tabler-icons/270.js +15 -0
- package/dist/tabler-icons/271.js +12 -0
- package/dist/tabler-icons/272.js +12 -0
- package/dist/tabler-icons/273.js +16 -0
- package/dist/tabler-icons/274.js +14 -0
- package/dist/tabler-icons/275.js +12 -0
- package/dist/tabler-icons/276.js +18 -0
- package/dist/tabler-icons/277.js +16 -0
- package/dist/tabler-icons/278.js +15 -0
- package/dist/tabler-icons/279.js +16 -0
- package/dist/tabler-icons/280.js +19 -0
- package/dist/tabler-icons/281.js +18 -0
- package/dist/tabler-icons/282.js +20 -0
- package/dist/tabler-icons/283.js +15 -0
- package/dist/tabler-icons/284.js +18 -0
- package/dist/tabler-icons/285.js +16 -0
- package/dist/tabler-icons/286.js +15 -0
- package/dist/tabler-icons/287.js +15 -0
- package/dist/tabler-icons/288.js +18 -0
- package/dist/tabler-icons/289.js +13 -0
- package/dist/tabler-icons/290.js +15 -0
- package/dist/tabler-icons/291.js +21 -0
- package/dist/tabler-icons/292.js +23 -0
- package/dist/tabler-icons/293.js +22 -0
- package/dist/tabler-icons/294.js +18 -0
- package/dist/tabler-icons/295.js +12 -0
- package/dist/tabler-icons/296.js +18 -0
- package/dist/tabler-icons/297.js +11 -0
- package/dist/tabler-icons/298.js +16 -0
- package/dist/tabler-icons/299.js +19 -0
- package/dist/tabler-icons/300.js +20 -0
- package/dist/tabler-icons/301.js +12 -0
- package/dist/tabler-icons/302.js +14 -0
- package/dist/tabler-icons/303.js +23 -0
- package/dist/tabler-icons/304.js +12 -0
- package/dist/tabler-icons/305.js +16 -0
- package/dist/tabler-icons/306.js +18 -0
- package/dist/tabler-icons/307.js +15 -0
- package/dist/tabler-icons/308.js +18 -0
- package/dist/tabler-icons/309.js +19 -0
- package/dist/tabler-icons/310.js +13 -0
- package/dist/tabler-icons/311.js +13 -0
- package/dist/tabler-icons/312.js +15 -0
- package/dist/tabler-icons/313.js +15 -0
- package/dist/tabler-icons/314.js +18 -0
- package/dist/tabler-icons/315.js +11 -0
- package/dist/tabler-icons/316.js +16 -0
- package/dist/tabler-icons/317.js +16 -0
- package/dist/tabler-icons/318.js +12 -0
- package/dist/tabler-icons/319.js +16 -0
- package/dist/tabler-icons/320.js +20 -0
- package/dist/tabler-icons/321.js +11 -0
- package/dist/tabler-icons/322.js +19 -0
- package/dist/tabler-icons/323.js +14 -0
- package/dist/tabler-icons/324.js +17 -0
- package/dist/tabler-icons/325.js +15 -0
- package/dist/tabler-icons/326.js +20 -0
- package/dist/tabler-icons/327.js +15 -0
- package/dist/tabler-icons/328.js +14 -0
- package/dist/tabler-icons/329.js +20 -0
- package/dist/tabler-icons/330.js +16 -0
- package/dist/tabler-icons/331.js +15 -0
- package/dist/tabler-icons/332.js +15 -0
- package/dist/tabler-icons/333.js +19 -0
- package/dist/tabler-icons/334.js +15 -0
- package/dist/tabler-icons/335.js +19 -0
- package/dist/tabler-icons/336.js +12 -0
- package/dist/tabler-icons/337.js +18 -0
- package/dist/tabler-icons/338.js +11 -0
- package/dist/tabler-icons/339.js +15 -0
- package/dist/tabler-icons/340.js +19 -0
- package/dist/tabler-icons/341.js +19 -0
- package/dist/tabler-icons/342.js +14 -0
- package/dist/tabler-icons/343.js +16 -0
- package/dist/tabler-icons/344.js +15 -0
- package/dist/tabler-icons/345.js +14 -0
- package/dist/tabler-icons/346.js +13 -0
- package/dist/tabler-icons/347.js +13 -0
- package/dist/tabler-icons/348.js +18 -0
- package/dist/tabler-icons/349.js +12 -0
- package/dist/tabler-icons/350.js +15 -0
- package/dist/tabler-icons/351.js +17 -0
- package/dist/tabler-icons/352.js +16 -0
- package/dist/tabler-icons/353.js +18 -0
- package/dist/tabler-icons/354.js +17 -0
- package/dist/tabler-icons/355.js +14 -0
- package/dist/tabler-icons/356.js +16 -0
- package/dist/tabler-icons/357.js +19 -0
- package/dist/tabler-icons/358.js +22 -0
- package/dist/tabler-icons/359.js +15 -0
- package/dist/tabler-icons/360.js +19 -0
- package/dist/tabler-icons/361.js +20 -0
- package/dist/tabler-icons/362.js +12 -0
- package/dist/tabler-icons/363.js +21 -0
- package/dist/tabler-icons/364.js +21 -0
- package/dist/tabler-icons/365.js +15 -0
- package/dist/tabler-icons/366.js +10 -0
- package/dist/tabler-icons/367.js +22 -0
- package/dist/tabler-icons/368.js +21 -0
- package/dist/tabler-icons/369.js +17 -0
- package/dist/tabler-icons/370.js +15 -0
- package/dist/tabler-icons/371.js +16 -0
- package/dist/tabler-icons/372.js +12 -0
- package/dist/tabler-icons/373.js +13 -0
- package/dist/tabler-icons/374.js +18 -0
- package/dist/tabler-icons/375.js +17 -0
- package/dist/tabler-icons/376.js +15 -0
- package/dist/tabler-icons/377.js +17 -0
- package/dist/tabler-icons/378.js +17 -0
- package/dist/tabler-icons/379.js +11 -0
- package/dist/tabler-icons/380.js +15 -0
- package/dist/tabler-icons/381.js +14 -0
- package/dist/tabler-icons/382.js +12 -0
- package/dist/tabler-icons/383.js +20 -0
- package/dist/tabler-icons/384.js +11 -0
- package/dist/tabler-icons/385.js +22 -0
- package/dist/tabler-icons/386.js +30 -0
- package/dist/tabler-icons/387.js +13 -0
- package/dist/tabler-icons/388.js +14 -0
- package/dist/tabler-icons/389.js +19 -0
- package/dist/tabler-icons/390.js +15 -0
- package/dist/tabler-icons/391.js +16 -0
- package/dist/tabler-icons/392.js +19 -0
- package/dist/tabler-icons/393.js +17 -0
- package/dist/tabler-icons/394.js +12 -0
- package/dist/tabler-icons/395.js +12 -0
- package/dist/tabler-icons/396.js +16 -0
- package/dist/tabler-icons/397.js +11 -0
- package/dist/tabler-icons/398.js +18 -0
- package/dist/tabler-icons/399.js +13 -0
- package/dist/tabler-icons/400.js +13 -0
- package/dist/tabler-icons/401.js +18 -0
- package/dist/tabler-icons/402.js +16 -0
- package/dist/tabler-icons/403.js +21 -0
- package/dist/tabler-icons/404.js +17 -0
- package/dist/tabler-icons/405.js +11 -0
- package/dist/tabler-icons/406.js +20 -0
- package/dist/tabler-icons/407.js +15 -0
- package/dist/tabler-icons/408.js +17 -0
- package/dist/tabler-icons/409.js +13 -0
- package/dist/tabler-icons/410.js +19 -0
- package/dist/tabler-icons/411.js +23 -0
- package/dist/tabler-icons/412.js +19 -0
- package/dist/tabler-icons/413.js +15 -0
- package/dist/tabler-icons/414.js +16 -0
- package/dist/tabler-icons/415.js +17 -0
- package/dist/tabler-icons/416.js +17 -0
- package/dist/tabler-icons/417.js +17 -0
- package/dist/tabler-icons/418.js +10 -0
- package/dist/tabler-icons/419.js +24 -0
- package/dist/tabler-icons/420.js +17 -0
- package/dist/tabler-icons/421.js +18 -0
- package/dist/tabler-icons/422.js +12 -0
- package/dist/tabler-icons/423.js +16 -0
- package/dist/tabler-icons/424.js +15 -0
- package/dist/tabler-icons/425.js +24 -0
- package/dist/tabler-icons/426.js +17 -0
- package/dist/tabler-icons/427.js +14 -0
- package/dist/tabler-icons/428.js +26 -0
- package/dist/tabler-icons/429.js +14 -0
- package/dist/tabler-icons/430.js +15 -0
- package/dist/tabler-icons/431.js +13 -0
- package/dist/tabler-icons/432.js +20 -0
- package/dist/tabler-icons/433.js +15 -0
- package/dist/tabler-icons/434.js +17 -0
- package/dist/tabler-icons/435.js +17 -0
- package/dist/tabler-icons/436.js +16 -0
- package/dist/tabler-icons/437.js +16 -0
- package/dist/tabler-icons/438.js +10 -0
- package/dist/tabler-icons/439.js +12 -0
- package/dist/tabler-icons/440.js +14 -0
- package/dist/tabler-icons/441.js +19 -0
- package/dist/tabler-icons/442.js +15 -0
- package/dist/tabler-icons/443.js +18 -0
- package/dist/tabler-icons/444.js +17 -0
- package/dist/tabler-icons/445.js +18 -0
- package/dist/tabler-icons/446.js +16 -0
- package/dist/tabler-icons/447.js +17 -0
- package/dist/tabler-icons/448.js +12 -0
- package/dist/tabler-icons/449.js +17 -0
- package/dist/tabler-icons/450.js +18 -0
- package/dist/tabler-icons/451.js +15 -0
- package/dist/tabler-icons/452.js +16 -0
- package/dist/tabler-icons/453.js +16 -0
- package/dist/tabler-icons/454.js +15 -0
- package/dist/tabler-icons/455.js +17 -0
- package/dist/tabler-icons/456.js +12 -0
- package/dist/tabler-icons/457.js +19 -0
- package/dist/tabler-icons/458.js +14 -0
- package/dist/tabler-icons/459.js +24 -0
- package/dist/tabler-icons/460.js +14 -0
- package/dist/tabler-icons/461.js +19 -0
- package/dist/tabler-icons/462.js +16 -0
- package/dist/tabler-icons/463.js +9 -0
- package/dist/tabler-icons/464.js +19 -0
- package/dist/tabler-icons/465.js +16 -0
- package/dist/tabler-icons/466.js +13 -0
- package/dist/tabler-icons/467.js +19 -0
- package/dist/tabler-icons/468.js +21 -0
- package/dist/tabler-icons/469.js +15 -0
- package/dist/tabler-icons/470.js +10 -0
- package/dist/tabler-icons/471.js +16 -0
- package/dist/tabler-icons/472.js +16 -0
- package/dist/tabler-icons/473.js +20 -0
- package/dist/tabler-icons/474.js +17 -0
- package/dist/tabler-icons/475.js +18 -0
- package/dist/tabler-icons/476.js +17 -0
- package/dist/tabler-icons/477.js +16 -0
- package/dist/tabler-icons/478.js +13 -0
- package/dist/tabler-icons/479.js +21 -0
- package/dist/tabler-icons/480.js +25 -0
- package/dist/tabler-icons/481.js +22 -0
- package/dist/tabler-icons/482.js +17 -0
- package/dist/tabler-icons/483.js +18 -0
- package/dist/tabler-icons/484.js +15 -0
- package/dist/tabler-icons/485.js +15 -0
- package/dist/tabler-icons/486.js +23 -0
- package/dist/tabler-icons/487.js +16 -0
- package/dist/tabler-icons/488.js +18 -0
- package/dist/tabler-icons/489.js +13 -0
- package/dist/tabler-icons/490.js +18 -0
- package/dist/tabler-icons/491.js +17 -0
- package/dist/tabler-icons/492.js +8 -0
- package/dist/tabler-icons/493.js +16 -0
- package/dist/tabler-icons/494.js +16 -0
- package/dist/tabler-icons/495.js +22 -0
- package/dist/tabler-icons/496.js +15 -0
- package/dist/tabler-icons/497.js +14 -0
- package/dist/tabler-icons/498.js +18 -0
- package/dist/tabler-icons/499.js +15 -0
- package/dist/tabler-icons/500.js +15 -0
- package/dist/tabler-icons/501.js +13 -0
- package/dist/tabler-icons/502.js +15 -0
- package/dist/tabler-icons/503.js +17 -0
- package/dist/tabler-icons/504.js +14 -0
- package/dist/tabler-icons/505.js +13 -0
- package/dist/tabler-icons/506.js +19 -0
- package/dist/tabler-icons/507.js +21 -0
- package/dist/tabler-icons/508.js +10 -0
- package/dist/tabler-icons/509.js +18 -0
- package/dist/tabler-icons/510.js +21 -0
- package/dist/tabler-icons/511.js +15 -0
- package/dist/tablerIconData-CQubY1fX.js +533 -0
- package/dist/vee-validate.js +1 -1
- package/package.json +6 -3
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as useEldraUiLocale, A as FIELD_BASE, B as formatCurrency, C as filterNumericBeforeInput, D as stripMask, E as defaultCharacterMeaning, F as FIELD_SIZE, G as useSlotPresence, H as formatUnit, I as createNumberFormat, J as DEFAULT_UI_LOCALE, K as useHeadingTag, L as currencyFractionDigits, M as FIELD_DISABLED, N as FIELD_LIVE, O as CurrencyInput_default, P as FIELD_SEARCH_APPEARANCE, Q as useEldraUiCurrency, R as currencySymbol, S as VisuallyHidden_default, T as applyMask, U as localeSeparators, V as formatNumber, W as parseLocaleNumber, X as provideEldraUiCurrency, Y as LOCALE_KEY, Z as provideEldraUiLocale, _ as normalizeText, _t as
|
|
2
|
-
import { Comment, Fragment, Teleport, Text, Transition, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, inject, isRef, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, onUnmounted, onUpdated, openBlock, provide, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRef, toValue, unref, useAttrs, useId, useSlots, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
1
|
+
import { $ as useEldraUiLocale, A as FIELD_BASE, B as formatCurrency, C as filterNumericBeforeInput, Ct as partClass, D as stripMask, E as defaultCharacterMeaning, F as FIELD_SIZE, G as useSlotPresence, H as formatUnit, I as createNumberFormat, J as DEFAULT_UI_LOCALE, K as useHeadingTag, L as currencyFractionDigits, M as FIELD_DISABLED, N as FIELD_LIVE, O as CurrencyInput_default, P as FIELD_SEARCH_APPEARANCE, Q as useEldraUiCurrency, R as currencySymbol, S as VisuallyHidden_default, St as cx, T as applyMask, U as localeSeparators, V as formatNumber, W as parseLocaleNumber, X as provideEldraUiCurrency, Y as LOCALE_KEY, Z as provideEldraUiLocale, _ as normalizeText, _t as useMessages, a as claimShortcut, at as FieldError_default, b as focusInvalid, bt as joinIds, c as SearchResultsPanel_default, ct as Button_default, d as MultiSelect_default, dt as ICON_SIZE_CLASS, et as TAG_FILL, f as usePopover, ft as ICON_STROKE_WIDTH$4, g as matchRange, gt as provideEldraUiMessages, h as useFloating, ht as MESSAGES_KEY, i as SearchBar_default, it as CheckboxGroup_default, j as FIELD_CLEAR_BUTTON, k as UnitInput_default, l as RadioGroup_default, lt as Spinner_default, m as useTeleportTarget, mt as FORM_SUBMITTING_KEY, n as Textarea_default, nt as TAG_SHAPE, o as ownsShortcut, ot as Checkbox_default, p as useOverlay, pt as FORM_LAYOUT_KEY, q as CURRENCY_KEY, r as Select_default, rt as tagPadding, s as releaseShortcut, st as FIELD_KEY, t as VariantPicker_default, tt as TAG_REMOVE_BUTTON, u as QuantityStepper_default, ut as Icon_default, v as useListbox, vt as enUS, w as Input_default, x as Switch_default, xt as useUiId, y as FormLayout_default, yt as useControllableModel, z as defaultUnitFormat } from "./VariantPicker-C56GlM1e.js";
|
|
2
|
+
import { Comment, Fragment, Teleport, Text, Transition, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, inject, isRef, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, onServerPrefetch, onUnmounted, onUpdated, openBlock, provide, reactive, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRef, toValue, unref, useAttrs, useId, useSlots, useTemplateRef, vModelText, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
3
3
|
import { dateTimeFormat } from "@eldrajs/sdk/format/date";
|
|
4
4
|
//#region src/components/accordion/context.ts
|
|
5
5
|
/** The key an `Accordion` provides its `AccordionContext` on. */
|
|
@@ -239,10 +239,10 @@ function createPanelHeightAnimator(panel) {
|
|
|
239
239
|
}
|
|
240
240
|
//#endregion
|
|
241
241
|
//#region src/components/accordion/AccordionItem.vue?vue&type=script&setup=true&lang.ts
|
|
242
|
-
var _hoisted_1$
|
|
243
|
-
var _hoisted_2$
|
|
244
|
-
var _hoisted_3$
|
|
245
|
-
var _hoisted_4$
|
|
242
|
+
var _hoisted_1$40 = ["href"];
|
|
243
|
+
var _hoisted_2$26 = { class: "min-w-0 flex-1" };
|
|
244
|
+
var _hoisted_3$17 = ["name", "open"];
|
|
245
|
+
var _hoisted_4$12 = { class: "min-w-0 flex-1" };
|
|
246
246
|
var TRIGGER_BASE$1 = "group flex w-full items-center justify-between gap-4 min-h-14 py-4 rounded-sm text-start cursor-pointer eldra-focus";
|
|
247
247
|
//#endregion
|
|
248
248
|
//#region src/components/accordion/AccordionItem.vue
|
|
@@ -449,7 +449,7 @@ var AccordionItem_default = /* @__PURE__ */ defineComponent({
|
|
|
449
449
|
"data-part": "root",
|
|
450
450
|
class: normalizeClass(rootClass.value),
|
|
451
451
|
href: __props.href
|
|
452
|
-
}, [createElementVNode("span", _hoisted_2$
|
|
452
|
+
}, [createElementVNode("span", _hoisted_2$26, [(openBlock(), createBlock(resolveDynamicComponent(titleTag.value), {
|
|
453
453
|
"data-part": "title",
|
|
454
454
|
class: normalizeClass(titleClass.value)
|
|
455
455
|
}, {
|
|
@@ -459,7 +459,7 @@ var AccordionItem_default = /* @__PURE__ */ defineComponent({
|
|
|
459
459
|
key: 0,
|
|
460
460
|
"data-part": "help",
|
|
461
461
|
class: normalizeClass(helpClass.value)
|
|
462
|
-
}, toDisplayString(__props.help), 3)) : createCommentVNode("", true)])], 10, _hoisted_1$
|
|
462
|
+
}, toDisplayString(__props.help), 3)) : createCommentVNode("", true)])], 10, _hoisted_1$40)) : (openBlock(), createElementBlock("details", {
|
|
463
463
|
key: 1,
|
|
464
464
|
ref_key: "detailsRef",
|
|
465
465
|
ref: detailsRef,
|
|
@@ -473,7 +473,7 @@ var AccordionItem_default = /* @__PURE__ */ defineComponent({
|
|
|
473
473
|
"data-part": "summary",
|
|
474
474
|
class: normalizeClass(summaryClass.value),
|
|
475
475
|
onClick: onSummaryClick
|
|
476
|
-
}, [createElementVNode("span", _hoisted_4$
|
|
476
|
+
}, [createElementVNode("span", _hoisted_4$12, [(openBlock(), createBlock(resolveDynamicComponent(titleTag.value), {
|
|
477
477
|
"data-part": "title",
|
|
478
478
|
class: normalizeClass(titleClass.value)
|
|
479
479
|
}, {
|
|
@@ -499,7 +499,7 @@ var AccordionItem_default = /* @__PURE__ */ defineComponent({
|
|
|
499
499
|
ref: panelRef,
|
|
500
500
|
"data-part": "panel",
|
|
501
501
|
class: normalizeClass(panelClass.value)
|
|
502
|
-
}, [renderSlot(_ctx.$slots, "default")], 2)], 42, _hoisted_3$
|
|
502
|
+
}, [renderSlot(_ctx.$slots, "default")], 2)], 42, _hoisted_3$17));
|
|
503
503
|
};
|
|
504
504
|
}
|
|
505
505
|
});
|
|
@@ -527,7 +527,7 @@ function initialsFromName(name) {
|
|
|
527
527
|
}
|
|
528
528
|
//#endregion
|
|
529
529
|
//#region src/components/avatar/Avatar.vue?vue&type=script&setup=true&lang.ts
|
|
530
|
-
var _hoisted_1$
|
|
530
|
+
var _hoisted_1$39 = ["src"];
|
|
531
531
|
//#endregion
|
|
532
532
|
//#region src/components/avatar/Avatar.vue
|
|
533
533
|
var Avatar_default = /* @__PURE__ */ defineComponent({
|
|
@@ -627,7 +627,7 @@ var Avatar_default = /* @__PURE__ */ defineComponent({
|
|
|
627
627
|
alt: "",
|
|
628
628
|
"aria-hidden": "true",
|
|
629
629
|
onError: onImageError
|
|
630
|
-
}, null, 42, _hoisted_1$
|
|
630
|
+
}, null, 42, _hoisted_1$39)) : showInitials.value ? (openBlock(), createElementBlock("span", {
|
|
631
631
|
key: 1,
|
|
632
632
|
"data-part": "initials",
|
|
633
633
|
class: normalizeClass(initialsClass.value),
|
|
@@ -654,8 +654,8 @@ var Avatar_default = /* @__PURE__ */ defineComponent({
|
|
|
654
654
|
});
|
|
655
655
|
//#endregion
|
|
656
656
|
//#region src/components/avatar/AvatarGroup.vue?vue&type=script&setup=true&lang.ts
|
|
657
|
-
var _hoisted_1$
|
|
658
|
-
var _hoisted_2$
|
|
657
|
+
var _hoisted_1$38 = ["aria-labelledby"];
|
|
658
|
+
var _hoisted_2$25 = ["id"];
|
|
659
659
|
var ITEM_SIZE = "sm";
|
|
660
660
|
/** `Avatar.vue`'s own `size-8` for `sm` — needed again here so the item wrapper (which draws the
|
|
661
661
|
* overlap and the ring) is exactly the avatar's own box, not a guess at its size. */
|
|
@@ -731,8 +731,8 @@ var AvatarGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
731
731
|
id: unref(srTextId),
|
|
732
732
|
"data-part": "srText",
|
|
733
733
|
class: normalizeClass(srTextClass.value)
|
|
734
|
-
}, toDisplayString(groupLabel.value), 11, _hoisted_2$
|
|
735
|
-
], 10, _hoisted_1$
|
|
734
|
+
}, toDisplayString(groupLabel.value), 11, _hoisted_2$25)
|
|
735
|
+
], 10, _hoisted_1$38);
|
|
736
736
|
};
|
|
737
737
|
}
|
|
738
738
|
});
|
|
@@ -833,8 +833,8 @@ var Badge_default = /* @__PURE__ */ defineComponent({
|
|
|
833
833
|
});
|
|
834
834
|
//#endregion
|
|
835
835
|
//#region src/components/breadcrumb/Breadcrumb.vue?vue&type=script&setup=true&lang.ts
|
|
836
|
-
var _hoisted_1$
|
|
837
|
-
var _hoisted_2$
|
|
836
|
+
var _hoisted_1$37 = ["aria-label"];
|
|
837
|
+
var _hoisted_2$24 = ["aria-label"];
|
|
838
838
|
//#endregion
|
|
839
839
|
//#region src/components/breadcrumb/Breadcrumb.vue
|
|
840
840
|
var Breadcrumb_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1166,7 +1166,7 @@ var Breadcrumb_default = /* @__PURE__ */ defineComponent({
|
|
|
1166
1166
|
class: normalizeClass(ellipsisClass.value),
|
|
1167
1167
|
"aria-label": unref(m).showMoreLevels(middleItems.value.length),
|
|
1168
1168
|
onClick: expand
|
|
1169
|
-
}, " … ", 10, _hoisted_2$
|
|
1169
|
+
}, " … ", 10, _hoisted_2$24)], 2)) : createCommentVNode("", true),
|
|
1170
1170
|
(openBlock(true), createElementBlock(Fragment, null, renderList(middleItems.value, (item, index) => {
|
|
1171
1171
|
return openBlock(), createElementBlock("li", {
|
|
1172
1172
|
key: `middle-${index}`,
|
|
@@ -1232,13 +1232,13 @@ var Breadcrumb_default = /* @__PURE__ */ defineComponent({
|
|
|
1232
1232
|
key: 0,
|
|
1233
1233
|
type: "application/ld+json",
|
|
1234
1234
|
textContent: toDisplayString(structuredDataJson.value)
|
|
1235
|
-
}, null, 8, ["textContent"])) : createCommentVNode("", true)], 10, _hoisted_1$
|
|
1235
|
+
}, null, 8, ["textContent"])) : createCommentVNode("", true)], 10, _hoisted_1$37);
|
|
1236
1236
|
};
|
|
1237
1237
|
}
|
|
1238
1238
|
});
|
|
1239
1239
|
//#endregion
|
|
1240
1240
|
//#region src/components/button/ButtonGroup.vue?vue&type=script&setup=true&lang.ts
|
|
1241
|
-
var _hoisted_1$
|
|
1241
|
+
var _hoisted_1$36 = ["role"];
|
|
1242
1242
|
var BASE$2 = "@container flex items-center";
|
|
1243
1243
|
var LOOSE = "flex-wrap gap-3";
|
|
1244
1244
|
//#endregion
|
|
@@ -1278,7 +1278,7 @@ var ButtonGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
1278
1278
|
"data-part": "root",
|
|
1279
1279
|
class: normalizeClass(rootClass.value),
|
|
1280
1280
|
role: __props.attached ? "group" : void 0
|
|
1281
|
-
}, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$
|
|
1281
|
+
}, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$36);
|
|
1282
1282
|
};
|
|
1283
1283
|
}
|
|
1284
1284
|
});
|
|
@@ -2230,14 +2230,14 @@ function useCarousel(options) {
|
|
|
2230
2230
|
}
|
|
2231
2231
|
//#endregion
|
|
2232
2232
|
//#region src/components/carousel/Carousel.vue?vue&type=script&setup=true&lang.ts
|
|
2233
|
-
var _hoisted_1$
|
|
2234
|
-
var _hoisted_2$
|
|
2235
|
-
var _hoisted_3$
|
|
2233
|
+
var _hoisted_1$35 = ["aria-label", "aria-describedby"];
|
|
2234
|
+
var _hoisted_2$23 = ["id"];
|
|
2235
|
+
var _hoisted_3$16 = {
|
|
2236
2236
|
key: 0,
|
|
2237
2237
|
class: "flex shrink-0 items-center gap-2"
|
|
2238
2238
|
};
|
|
2239
|
-
var _hoisted_4$
|
|
2240
|
-
var _hoisted_5$
|
|
2239
|
+
var _hoisted_4$11 = ["disabled", "aria-label"];
|
|
2240
|
+
var _hoisted_5$8 = ["disabled", "aria-label"];
|
|
2241
2241
|
var _hoisted_6$3 = ["tabindex", "aria-label"];
|
|
2242
2242
|
var _hoisted_7$2 = {
|
|
2243
2243
|
key: 2,
|
|
@@ -2471,12 +2471,12 @@ var Carousel_default = /* @__PURE__ */ defineComponent({
|
|
|
2471
2471
|
id: unref(instructionsId),
|
|
2472
2472
|
"data-part": "instructions",
|
|
2473
2473
|
class: normalizeClass(instructionsClass.value)
|
|
2474
|
-
}, toDisplayString(unref(messages).slideInstructions), 11, _hoisted_2$
|
|
2474
|
+
}, toDisplayString(unref(messages).slideInstructions), 11, _hoisted_2$23)) : createCommentVNode("", true),
|
|
2475
2475
|
__props.controls === "header" || _ctx.$slots.header ? (openBlock(), createElementBlock("div", {
|
|
2476
2476
|
key: 1,
|
|
2477
2477
|
"data-part": "header",
|
|
2478
2478
|
class: normalizeClass(headerClass.value)
|
|
2479
|
-
}, [renderSlot(_ctx.$slots, "header"), __props.controls === "header" ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2479
|
+
}, [renderSlot(_ctx.$slots, "header"), __props.controls === "header" ? (openBlock(), createElementBlock("div", _hoisted_3$16, [
|
|
2480
2480
|
__props.counter ? (openBlock(), createElementBlock("span", {
|
|
2481
2481
|
key: 0,
|
|
2482
2482
|
"data-part": "counter",
|
|
@@ -2502,7 +2502,7 @@ var Carousel_default = /* @__PURE__ */ defineComponent({
|
|
|
2502
2502
|
"stroke-linejoin": "round",
|
|
2503
2503
|
"aria-hidden": "true",
|
|
2504
2504
|
focusable: "false"
|
|
2505
|
-
}, [createElementVNode("path", { d: "M15 6l-6 6l6 6" })], -1)])], 10, _hoisted_4$
|
|
2505
|
+
}, [createElementVNode("path", { d: "M15 6l-6 6l6 6" })], -1)])], 10, _hoisted_4$11),
|
|
2506
2506
|
createElementVNode("button", {
|
|
2507
2507
|
ref_key: "nextButtonRef",
|
|
2508
2508
|
ref: nextButtonRef,
|
|
@@ -2522,7 +2522,7 @@ var Carousel_default = /* @__PURE__ */ defineComponent({
|
|
|
2522
2522
|
"stroke-linejoin": "round",
|
|
2523
2523
|
"aria-hidden": "true",
|
|
2524
2524
|
focusable: "false"
|
|
2525
|
-
}, [createElementVNode("path", { d: "M9 6l6 6l-6 6" })], -1)])], 10, _hoisted_5$
|
|
2525
|
+
}, [createElementVNode("path", { d: "M9 6l6 6l-6 6" })], -1)])], 10, _hoisted_5$8)
|
|
2526
2526
|
])) : createCommentVNode("", true)], 2)) : createCommentVNode("", true),
|
|
2527
2527
|
createElementVNode("div", {
|
|
2528
2528
|
ref_key: "trackRef",
|
|
@@ -2608,7 +2608,7 @@ var Carousel_default = /* @__PURE__ */ defineComponent({
|
|
|
2608
2608
|
}, [createElementVNode("path", { d: "M9 6l6 6l-6 6" })], -1)])], 10, _hoisted_14)
|
|
2609
2609
|
])) : (openBlock(), createElementBlock("span", _hoisted_15))
|
|
2610
2610
|
])) : createCommentVNode("", true)
|
|
2611
|
-
], 10, _hoisted_1$
|
|
2611
|
+
], 10, _hoisted_1$35);
|
|
2612
2612
|
};
|
|
2613
2613
|
}
|
|
2614
2614
|
});
|
|
@@ -2618,7 +2618,7 @@ var Carousel_default = /* @__PURE__ */ defineComponent({
|
|
|
2618
2618
|
var CHIP_GROUP_KEY = Symbol("eldra-ui:chip-group");
|
|
2619
2619
|
//#endregion
|
|
2620
2620
|
//#region src/components/chip/Chip.vue?vue&type=script&setup=true&lang.ts
|
|
2621
|
-
var _hoisted_1$
|
|
2621
|
+
var _hoisted_1$34 = ["aria-label", "disabled"];
|
|
2622
2622
|
var FILL_SELECTED = "bg-primary text-primary-contrast";
|
|
2623
2623
|
var FILL_DISABLED = "bg-surface-strong text-muted cursor-not-allowed";
|
|
2624
2624
|
/** Button's own `primary` hover mix: 14% toward `background`. */
|
|
@@ -2907,7 +2907,7 @@ var Chip_default = /* @__PURE__ */ defineComponent({
|
|
|
2907
2907
|
"stroke-linejoin": "round",
|
|
2908
2908
|
"aria-hidden": "true",
|
|
2909
2909
|
focusable: "false"
|
|
2910
|
-
}, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M18 6l-12 12" }, null, -1), createElementVNode("path", { d: "M6 6l12 12" }, null, -1)])], 2))], 42, _hoisted_1$
|
|
2910
|
+
}, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M18 6l-12 12" }, null, -1), createElementVNode("path", { d: "M6 6l12 12" }, null, -1)])], 2))], 42, _hoisted_1$34)) : createCommentVNode("", true)
|
|
2911
2911
|
]),
|
|
2912
2912
|
_: 3
|
|
2913
2913
|
}, 40, [
|
|
@@ -2923,7 +2923,7 @@ var Chip_default = /* @__PURE__ */ defineComponent({
|
|
|
2923
2923
|
});
|
|
2924
2924
|
//#endregion
|
|
2925
2925
|
//#region src/components/chip/ChipGroup.vue?vue&type=script&setup=true&lang.ts
|
|
2926
|
-
var _hoisted_1$
|
|
2926
|
+
var _hoisted_1$33 = ["aria-label", "aria-disabled"];
|
|
2927
2927
|
//#endregion
|
|
2928
2928
|
//#region src/components/chip/ChipGroup.vue
|
|
2929
2929
|
var ChipGroup_default = /* @__PURE__ */ defineComponent({
|
|
@@ -2979,7 +2979,7 @@ var ChipGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
2979
2979
|
"aria-label": __props.ariaLabel,
|
|
2980
2980
|
"aria-disabled": __props.disabled ? "true" : void 0,
|
|
2981
2981
|
class: normalizeClass(rootClass.value)
|
|
2982
|
-
}, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$
|
|
2982
|
+
}, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$33);
|
|
2983
2983
|
};
|
|
2984
2984
|
}
|
|
2985
2985
|
});
|
|
@@ -3172,12 +3172,12 @@ function zoomEntry(entry, zoom) {
|
|
|
3172
3172
|
}
|
|
3173
3173
|
//#endregion
|
|
3174
3174
|
//#region src/components/image/Image.vue?vue&type=script&setup=true&lang.ts
|
|
3175
|
-
var _hoisted_1$
|
|
3175
|
+
var _hoisted_1$32 = [
|
|
3176
3176
|
"src",
|
|
3177
3177
|
"width",
|
|
3178
3178
|
"height"
|
|
3179
3179
|
];
|
|
3180
|
-
var _hoisted_2$
|
|
3180
|
+
var _hoisted_2$22 = [
|
|
3181
3181
|
"src",
|
|
3182
3182
|
"srcset",
|
|
3183
3183
|
"sizes",
|
|
@@ -3187,12 +3187,12 @@ var _hoisted_2$21 = [
|
|
|
3187
3187
|
"loading",
|
|
3188
3188
|
"fetchpriority"
|
|
3189
3189
|
];
|
|
3190
|
-
var _hoisted_3$
|
|
3190
|
+
var _hoisted_3$15 = [
|
|
3191
3191
|
"role",
|
|
3192
3192
|
"aria-hidden",
|
|
3193
3193
|
"aria-label"
|
|
3194
3194
|
];
|
|
3195
|
-
var _hoisted_4$
|
|
3195
|
+
var _hoisted_4$10 = { "aria-hidden": "true" };
|
|
3196
3196
|
//#endregion
|
|
3197
3197
|
//#region src/components/image/Image.vue
|
|
3198
3198
|
var Image_default = /* @__PURE__ */ defineComponent({
|
|
@@ -3370,7 +3370,7 @@ var Image_default = /* @__PURE__ */ defineComponent({
|
|
|
3370
3370
|
playsinline: "",
|
|
3371
3371
|
width: __props.media.width,
|
|
3372
3372
|
height: __props.media.height
|
|
3373
|
-
}), toDisplayString(resolvedAlt.value), 17, _hoisted_1$
|
|
3373
|
+
}), toDisplayString(resolvedAlt.value), 17, _hoisted_1$32)) : __props.media ? (openBlock(), createElementBlock("img", mergeProps({
|
|
3374
3374
|
key: 2,
|
|
3375
3375
|
"data-part": "media",
|
|
3376
3376
|
class: mediaClass.value,
|
|
@@ -3385,7 +3385,7 @@ var Image_default = /* @__PURE__ */ defineComponent({
|
|
|
3385
3385
|
loading: loadingAttr.value,
|
|
3386
3386
|
decoding: "async",
|
|
3387
3387
|
fetchpriority: fetchPriority.value
|
|
3388
|
-
}), null, 16, _hoisted_2$
|
|
3388
|
+
}), null, 16, _hoisted_2$22)) : (openBlock(), createElementBlock("div", {
|
|
3389
3389
|
key: 3,
|
|
3390
3390
|
"data-part": "placeholder",
|
|
3391
3391
|
class: normalizeClass(placeholderClass.value),
|
|
@@ -3417,7 +3417,7 @@ var Image_default = /* @__PURE__ */ defineComponent({
|
|
|
3417
3417
|
}),
|
|
3418
3418
|
createElementVNode("path", { d: "M3 17l5.5 -5.5c.83 -.83 1.67 -.83 2.5 0l7 7" }),
|
|
3419
3419
|
createElementVNode("path", { d: "M14 15l1.5 -1.5c.83 -.83 1.67 -.83 2.5 0l3 3" })
|
|
3420
|
-
], -1)), createElementVNode("span", _hoisted_4$
|
|
3420
|
+
], -1)), createElementVNode("span", _hoisted_4$10, toDisplayString(unref(messages).noImage), 1)], 10, _hoisted_3$15))], 6),
|
|
3421
3421
|
hasCaption.value ? (openBlock(), createElementBlock("figcaption", {
|
|
3422
3422
|
key: 1,
|
|
3423
3423
|
"data-part": "caption",
|
|
@@ -3618,9 +3618,9 @@ var CUE_ARROW_PATHS = [
|
|
|
3618
3618
|
];
|
|
3619
3619
|
//#endregion
|
|
3620
3620
|
//#region src/components/card/ContentCard.vue?vue&type=script&setup=true&lang.ts
|
|
3621
|
-
var _hoisted_1$
|
|
3622
|
-
var _hoisted_2$
|
|
3623
|
-
var _hoisted_3$
|
|
3621
|
+
var _hoisted_1$31 = ["aria-label"];
|
|
3622
|
+
var _hoisted_2$21 = ["datetime"];
|
|
3623
|
+
var _hoisted_3$14 = ["d"];
|
|
3624
3624
|
//#endregion
|
|
3625
3625
|
//#region src/components/card/ContentCard.vue
|
|
3626
3626
|
var ContentCard_default = /* @__PURE__ */ defineComponent({
|
|
@@ -3790,7 +3790,7 @@ var ContentCard_default = /* @__PURE__ */ defineComponent({
|
|
|
3790
3790
|
}, [createVNode(Skeleton_default, {
|
|
3791
3791
|
variant: "text",
|
|
3792
3792
|
lines: 3
|
|
3793
|
-
})], 2)], 10, _hoisted_1$
|
|
3793
|
+
})], 2)], 10, _hoisted_1$31)) : (openBlock(), createElementBlock("article", {
|
|
3794
3794
|
key: 1,
|
|
3795
3795
|
"data-eldra-ui": "",
|
|
3796
3796
|
"data-part": "root",
|
|
@@ -3838,7 +3838,7 @@ var ContentCard_default = /* @__PURE__ */ defineComponent({
|
|
|
3838
3838
|
formattedDate.value ? (openBlock(), createElementBlock("time", {
|
|
3839
3839
|
key: 0,
|
|
3840
3840
|
datetime: __props.date
|
|
3841
|
-
}, toDisplayString(formattedDate.value), 9, _hoisted_2$
|
|
3841
|
+
}, toDisplayString(formattedDate.value), 9, _hoisted_2$21)) : createCommentVNode("", true),
|
|
3842
3842
|
formattedDate.value && __props.meta ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(" · ")], 64)) : createCommentVNode("", true),
|
|
3843
3843
|
__props.meta ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [createTextVNode(toDisplayString(__props.meta), 1)], 64)) : createCommentVNode("", true)
|
|
3844
3844
|
])], 2)) : createCommentVNode("", true),
|
|
@@ -3861,7 +3861,7 @@ var ContentCard_default = /* @__PURE__ */ defineComponent({
|
|
|
3861
3861
|
return openBlock(), createElementBlock("path", {
|
|
3862
3862
|
key: d,
|
|
3863
3863
|
d
|
|
3864
|
-
}, null, 8, _hoisted_3$
|
|
3864
|
+
}, null, 8, _hoisted_3$14);
|
|
3865
3865
|
}), 128))], 2))], 2)) : createCommentVNode("", true)
|
|
3866
3866
|
], 2)], 2));
|
|
3867
3867
|
};
|
|
@@ -4123,10 +4123,10 @@ function useDialog(options) {
|
|
|
4123
4123
|
}
|
|
4124
4124
|
//#endregion
|
|
4125
4125
|
//#region src/components/dialog/Dialog.vue?vue&type=script&setup=true&lang.ts
|
|
4126
|
-
var _hoisted_1$
|
|
4127
|
-
var _hoisted_2$
|
|
4128
|
-
var _hoisted_3$
|
|
4129
|
-
var _hoisted_4$
|
|
4126
|
+
var _hoisted_1$30 = ["aria-labelledby", "aria-describedby"];
|
|
4127
|
+
var _hoisted_2$20 = ["id"];
|
|
4128
|
+
var _hoisted_3$13 = ["aria-label"];
|
|
4129
|
+
var _hoisted_4$9 = ["id"];
|
|
4130
4130
|
//#endregion
|
|
4131
4131
|
//#region src/components/dialog/Dialog.vue
|
|
4132
4132
|
var Dialog_default = /* @__PURE__ */ defineComponent({
|
|
@@ -4250,7 +4250,7 @@ var Dialog_default = /* @__PURE__ */ defineComponent({
|
|
|
4250
4250
|
id: unref(titleId),
|
|
4251
4251
|
"data-part": "title",
|
|
4252
4252
|
class: normalizeClass(titleClass.value)
|
|
4253
|
-
}, toDisplayString(__props.title), 11, _hoisted_2$
|
|
4253
|
+
}, toDisplayString(__props.title), 11, _hoisted_2$20), createElementVNode("button", {
|
|
4254
4254
|
type: "button",
|
|
4255
4255
|
"data-part": "close",
|
|
4256
4256
|
class: normalizeClass(closeClass.value),
|
|
@@ -4266,7 +4266,7 @@ var Dialog_default = /* @__PURE__ */ defineComponent({
|
|
|
4266
4266
|
"stroke-linejoin": "round",
|
|
4267
4267
|
"aria-hidden": "true",
|
|
4268
4268
|
focusable: "false"
|
|
4269
|
-
}, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_3$
|
|
4269
|
+
}, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_3$13)], 2),
|
|
4270
4270
|
createElementVNode("div", {
|
|
4271
4271
|
"data-part": "body",
|
|
4272
4272
|
class: normalizeClass(bodyClass.value)
|
|
@@ -4275,21 +4275,21 @@ var Dialog_default = /* @__PURE__ */ defineComponent({
|
|
|
4275
4275
|
id: unref(descriptionId),
|
|
4276
4276
|
"data-part": "description",
|
|
4277
4277
|
class: normalizeClass(descriptionClass.value)
|
|
4278
|
-
}, toDisplayString(__props.description), 11, _hoisted_4$
|
|
4278
|
+
}, toDisplayString(__props.description), 11, _hoisted_4$9)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default")], 2),
|
|
4279
4279
|
unref(slots).footer ? (openBlock(), createElementBlock("div", {
|
|
4280
4280
|
key: 0,
|
|
4281
4281
|
"data-part": "footer",
|
|
4282
4282
|
class: normalizeClass(footerClass.value)
|
|
4283
4283
|
}, [renderSlot(_ctx.$slots, "footer")], 2)) : createCommentVNode("", true)
|
|
4284
|
-
], 2)], 42, _hoisted_1$
|
|
4284
|
+
], 2)], 42, _hoisted_1$30);
|
|
4285
4285
|
};
|
|
4286
4286
|
}
|
|
4287
4287
|
});
|
|
4288
4288
|
//#endregion
|
|
4289
4289
|
//#region src/components/drawer/Drawer.vue?vue&type=script&setup=true&lang.ts
|
|
4290
|
-
var _hoisted_1$
|
|
4291
|
-
var _hoisted_2$
|
|
4292
|
-
var _hoisted_3$
|
|
4290
|
+
var _hoisted_1$29 = ["aria-labelledby", "aria-label"];
|
|
4291
|
+
var _hoisted_2$19 = ["id"];
|
|
4292
|
+
var _hoisted_3$12 = ["aria-label"];
|
|
4293
4293
|
var titleAreaClass = "min-w-0 flex-1";
|
|
4294
4294
|
//#endregion
|
|
4295
4295
|
//#region src/components/drawer/Drawer.vue
|
|
@@ -4456,7 +4456,7 @@ var Drawer_default = /* @__PURE__ */ defineComponent({
|
|
|
4456
4456
|
key: 0,
|
|
4457
4457
|
"data-part": "count",
|
|
4458
4458
|
class: normalizeClass(countClass.value)
|
|
4459
|
-
}, "(" + toDisplayString(__props.count) + ")", 3)) : createCommentVNode("", true)], 10, _hoisted_2$
|
|
4459
|
+
}, "(" + toDisplayString(__props.count) + ")", 3)) : createCommentVNode("", true)], 10, _hoisted_2$19)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "header")]), createElementVNode("button", {
|
|
4460
4460
|
ref_key: "closeButtonEl",
|
|
4461
4461
|
ref: closeButtonEl,
|
|
4462
4462
|
type: "button",
|
|
@@ -4474,7 +4474,7 @@ var Drawer_default = /* @__PURE__ */ defineComponent({
|
|
|
4474
4474
|
"stroke-linejoin": "round",
|
|
4475
4475
|
"aria-hidden": "true",
|
|
4476
4476
|
focusable: "false"
|
|
4477
|
-
}, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_3$
|
|
4477
|
+
}, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_3$12)], 2),
|
|
4478
4478
|
createElementVNode("div", {
|
|
4479
4479
|
"data-part": "body",
|
|
4480
4480
|
class: normalizeClass(bodyClass.value)
|
|
@@ -4484,7 +4484,7 @@ var Drawer_default = /* @__PURE__ */ defineComponent({
|
|
|
4484
4484
|
"data-part": "footer",
|
|
4485
4485
|
class: normalizeClass(footerClass.value)
|
|
4486
4486
|
}, [renderSlot(_ctx.$slots, "footer")], 2)) : createCommentVNode("", true)
|
|
4487
|
-
], 6)], 42, _hoisted_1$
|
|
4487
|
+
], 6)], 42, _hoisted_1$29);
|
|
4488
4488
|
};
|
|
4489
4489
|
}
|
|
4490
4490
|
});
|
|
@@ -4564,8 +4564,8 @@ var ALERT_TRIANGLE_PATHS = [
|
|
|
4564
4564
|
];
|
|
4565
4565
|
//#endregion
|
|
4566
4566
|
//#region src/components/empty-state/EmptyState.vue?vue&type=script&setup=true&lang.ts
|
|
4567
|
-
var _hoisted_1$
|
|
4568
|
-
var _hoisted_2$
|
|
4567
|
+
var _hoisted_1$28 = ["role"];
|
|
4568
|
+
var _hoisted_2$18 = ["d"];
|
|
4569
4569
|
var ICON_STROKE_WIDTH$2 = 1.5;
|
|
4570
4570
|
//#endregion
|
|
4571
4571
|
//#region src/components/empty-state/EmptyState.vue
|
|
@@ -4676,7 +4676,7 @@ var EmptyState_default = /* @__PURE__ */ defineComponent({
|
|
|
4676
4676
|
return openBlock(), createElementBlock("path", {
|
|
4677
4677
|
key: d,
|
|
4678
4678
|
d
|
|
4679
|
-
}, null, 8, _hoisted_2$
|
|
4679
|
+
}, null, 8, _hoisted_2$18);
|
|
4680
4680
|
}), 128))]))], 2),
|
|
4681
4681
|
(openBlock(), createBlock(resolveDynamicComponent(unref(headingTag)), {
|
|
4682
4682
|
"data-part": "title",
|
|
@@ -4701,13 +4701,13 @@ var EmptyState_default = /* @__PURE__ */ defineComponent({
|
|
|
4701
4701
|
label: unref(messages).tryAgain,
|
|
4702
4702
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("retry"))
|
|
4703
4703
|
}, null, 8, ["loading", "label"])) : createCommentVNode("", true)])], 2)) : createCommentVNode("", true)
|
|
4704
|
-
], 10, _hoisted_1$
|
|
4704
|
+
], 10, _hoisted_1$28);
|
|
4705
4705
|
};
|
|
4706
4706
|
}
|
|
4707
4707
|
});
|
|
4708
4708
|
//#endregion
|
|
4709
4709
|
//#region src/components/card/FeatureCard.vue?vue&type=script&setup=true&lang.ts
|
|
4710
|
-
var _hoisted_1$
|
|
4710
|
+
var _hoisted_1$27 = ["d"];
|
|
4711
4711
|
//#endregion
|
|
4712
4712
|
//#region src/components/card/FeatureCard.vue
|
|
4713
4713
|
var FeatureCard_default = /* @__PURE__ */ defineComponent({
|
|
@@ -4839,7 +4839,7 @@ var FeatureCard_default = /* @__PURE__ */ defineComponent({
|
|
|
4839
4839
|
return openBlock(), createElementBlock("path", {
|
|
4840
4840
|
key: d,
|
|
4841
4841
|
d
|
|
4842
|
-
}, null, 8, _hoisted_1$
|
|
4842
|
+
}, null, 8, _hoisted_1$27);
|
|
4843
4843
|
}), 128))], 2))], 2)) : createCommentVNode("", true)
|
|
4844
4844
|
], 2);
|
|
4845
4845
|
};
|
|
@@ -4847,8 +4847,8 @@ var FeatureCard_default = /* @__PURE__ */ defineComponent({
|
|
|
4847
4847
|
});
|
|
4848
4848
|
//#endregion
|
|
4849
4849
|
//#region src/components/field-wrapper/FieldWrapper.vue?vue&type=script&setup=true&lang.ts
|
|
4850
|
-
var _hoisted_1$
|
|
4851
|
-
var _hoisted_2$
|
|
4850
|
+
var _hoisted_1$26 = ["id"];
|
|
4851
|
+
var _hoisted_2$17 = ["id"];
|
|
4852
4852
|
var GROUP_INLINE = "grid min-w-0 flex-[1_1_14rem] content-start gap-1";
|
|
4853
4853
|
var INLINE_ROW = "order-1 w-full basis-full";
|
|
4854
4854
|
/**
|
|
@@ -5096,12 +5096,12 @@ var FieldWrapper_default = /* @__PURE__ */ defineComponent({
|
|
|
5096
5096
|
id: helpId.value,
|
|
5097
5097
|
"data-part": "help",
|
|
5098
5098
|
class: normalizeClass(helpClass.value)
|
|
5099
|
-
}, [renderSlot(_ctx.$slots, "help", {}, () => [createTextVNode(toDisplayString(__props.help), 1)])], 10, _hoisted_1$
|
|
5099
|
+
}, [renderSlot(_ctx.$slots, "help", {}, () => [createTextVNode(toDisplayString(__props.help), 1)])], 10, _hoisted_1$26)) : createCommentVNode("", true), __props.counter ? (openBlock(), createElementBlock("span", {
|
|
5100
5100
|
key: 1,
|
|
5101
5101
|
id: counterId.value,
|
|
5102
5102
|
"data-part": "counter",
|
|
5103
5103
|
class: normalizeClass(counterClass.value)
|
|
5104
|
-
}, toDisplayString(unref(m).counter(count.value, __props.counter.max)), 11, _hoisted_2$
|
|
5104
|
+
}, toDisplayString(unref(m).counter(count.value, __props.counter.max)), 11, _hoisted_2$17)) : createCommentVNode("", true)], 2)) : createCommentVNode("", true)
|
|
5105
5105
|
]),
|
|
5106
5106
|
_: 3
|
|
5107
5107
|
}, 8, [
|
|
@@ -5674,15 +5674,15 @@ var FACET_ROW_GUTTER = "-mx-2 px-2";
|
|
|
5674
5674
|
var FACET_SWATCH_GUTTER = "-mx-1.5 px-1.5";
|
|
5675
5675
|
//#endregion
|
|
5676
5676
|
//#region src/components/filter-panel/facets/ColourFacet.vue?vue&type=script&setup=true&lang.ts
|
|
5677
|
-
var _hoisted_1$
|
|
5678
|
-
var _hoisted_2$
|
|
5677
|
+
var _hoisted_1$25 = ["data-part", "data-value"];
|
|
5678
|
+
var _hoisted_2$16 = [
|
|
5679
5679
|
"value",
|
|
5680
5680
|
"checked",
|
|
5681
5681
|
"disabled",
|
|
5682
5682
|
"aria-label",
|
|
5683
5683
|
"onChange"
|
|
5684
5684
|
];
|
|
5685
|
-
var _hoisted_3$
|
|
5685
|
+
var _hoisted_3$11 = ["data-part"];
|
|
5686
5686
|
var ROWS_BASE = "grid min-w-0 grid-cols-1 gap-x-6 gap-y-0.5 @min-[26rem]:grid-cols-2";
|
|
5687
5687
|
/**
|
|
5688
5688
|
* Spec → Sizes, Swatch tile row: "Grid of `repeat(auto-fill, minmax(4.25rem, 1fr))`, gaps 0.75rem
|
|
@@ -5836,7 +5836,7 @@ var ColourFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
5836
5836
|
disabled: disabled(value),
|
|
5837
5837
|
"aria-label": nameOf(value),
|
|
5838
5838
|
onChange: ($event) => emit("toggle", value.value, $event.target.checked)
|
|
5839
|
-
}, null, 40, _hoisted_2$
|
|
5839
|
+
}, null, 40, _hoisted_2$16),
|
|
5840
5840
|
createElementVNode("span", { class: normalizeClass(ringClass(value)) }, [
|
|
5841
5841
|
createElementVNode("span", {
|
|
5842
5842
|
"data-part": "swatch",
|
|
@@ -5878,26 +5878,26 @@ var ColourFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
5878
5878
|
createElementVNode("span", {
|
|
5879
5879
|
"data-part": tiles.value ? "tileLabel" : "rowLabel",
|
|
5880
5880
|
class: normalizeClass(nameClass(value))
|
|
5881
|
-
}, toDisplayString(value.label), 11, _hoisted_3$
|
|
5881
|
+
}, toDisplayString(value.label), 11, _hoisted_3$11),
|
|
5882
5882
|
createElementVNode("span", {
|
|
5883
5883
|
"data-part": "count",
|
|
5884
5884
|
class: normalizeClass(countClass.value)
|
|
5885
5885
|
}, toDisplayString(value.count), 3)
|
|
5886
|
-
], 10, _hoisted_1$
|
|
5886
|
+
], 10, _hoisted_1$25);
|
|
5887
5887
|
}), 128))], 2);
|
|
5888
5888
|
};
|
|
5889
5889
|
}
|
|
5890
5890
|
});
|
|
5891
5891
|
//#endregion
|
|
5892
5892
|
//#region src/components/filter-panel/facets/ListFacet.vue?vue&type=script&setup=true&lang.ts
|
|
5893
|
-
var _hoisted_1$
|
|
5893
|
+
var _hoisted_1$24 = {
|
|
5894
5894
|
"data-eldra-ui": "",
|
|
5895
5895
|
class: "min-w-0"
|
|
5896
5896
|
};
|
|
5897
|
-
var _hoisted_2$
|
|
5898
|
-
var _hoisted_3$
|
|
5899
|
-
var _hoisted_4$
|
|
5900
|
-
var _hoisted_5$
|
|
5897
|
+
var _hoisted_2$15 = ["id"];
|
|
5898
|
+
var _hoisted_3$10 = { class: "min-w-0" };
|
|
5899
|
+
var _hoisted_4$8 = ["aria-label"];
|
|
5900
|
+
var _hoisted_5$7 = { class: "min-w-0" };
|
|
5901
5901
|
var SEARCH_BASE = "mb-2 w-full";
|
|
5902
5902
|
/** Spec → Sizes, Facet search: '"No matches" line: 0.875rem `muted`, 0.5rem vertical padding.' */
|
|
5903
5903
|
var NO_MATCHES_BASE = "text-body-sm text-muted";
|
|
@@ -6008,7 +6008,7 @@ var ListFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
6008
6008
|
const showAllClass = computed(() => partClass(SHOW_ALL_BASE, props.classes, "showAll"));
|
|
6009
6009
|
const checkboxClass = computed(() => partClass("", props.classes, "checkbox"));
|
|
6010
6010
|
return (_ctx, _cache) => {
|
|
6011
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
6011
|
+
return openBlock(), createElementBlock("div", _hoisted_1$24, [
|
|
6012
6012
|
searchable.value ? (openBlock(), createElementBlock("div", {
|
|
6013
6013
|
key: 0,
|
|
6014
6014
|
"data-part": "search",
|
|
@@ -6059,7 +6059,7 @@ var ListFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
6059
6059
|
},
|
|
6060
6060
|
onChange: ($event) => emit("toggle", row.value.value, $event)
|
|
6061
6061
|
}, {
|
|
6062
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_3$
|
|
6062
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_3$10, toDisplayString(row.value.label), 1), createElementVNode("span", {
|
|
6063
6063
|
"data-part": "count",
|
|
6064
6064
|
class: normalizeClass(countClass.value)
|
|
6065
6065
|
}, toDisplayString(row.value.count), 3)]),
|
|
@@ -6090,7 +6090,7 @@ var ListFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
6090
6090
|
},
|
|
6091
6091
|
onChange: ($event) => emit("toggle", child.value, $event)
|
|
6092
6092
|
}, {
|
|
6093
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_5$
|
|
6093
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_5$7, toDisplayString(child.label), 1), createElementVNode("span", {
|
|
6094
6094
|
"data-part": "count",
|
|
6095
6095
|
class: normalizeClass(countClass.value)
|
|
6096
6096
|
}, toDisplayString(child.count), 3)]),
|
|
@@ -6103,8 +6103,8 @@ var ListFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
6103
6103
|
"classes",
|
|
6104
6104
|
"onChange"
|
|
6105
6105
|
]);
|
|
6106
|
-
}), 128))], 8, _hoisted_4$
|
|
6107
|
-
}), 128))], 10, _hoisted_2$
|
|
6106
|
+
}), 128))], 8, _hoisted_4$8)) : createCommentVNode("", true)], 64);
|
|
6107
|
+
}), 128))], 10, _hoisted_2$15),
|
|
6108
6108
|
createElementVNode("span", {
|
|
6109
6109
|
"data-part": "noMatches",
|
|
6110
6110
|
role: "status",
|
|
@@ -6300,9 +6300,9 @@ function rangeKeyTransition(key, shiftKey, thumb, value, math) {
|
|
|
6300
6300
|
}
|
|
6301
6301
|
//#endregion
|
|
6302
6302
|
//#region src/components/range-slider/RangeSlider.vue?vue&type=script&setup=true&lang.ts
|
|
6303
|
-
var _hoisted_1$
|
|
6304
|
-
var _hoisted_2$
|
|
6305
|
-
var _hoisted_3$
|
|
6303
|
+
var _hoisted_1$23 = ["id"];
|
|
6304
|
+
var _hoisted_2$14 = ["aria-labelledby"];
|
|
6305
|
+
var _hoisted_3$9 = [
|
|
6306
6306
|
"data-thumb",
|
|
6307
6307
|
"data-dragging",
|
|
6308
6308
|
"aria-label",
|
|
@@ -6313,7 +6313,7 @@ var _hoisted_3$8 = [
|
|
|
6313
6313
|
"aria-disabled",
|
|
6314
6314
|
"onKeydown"
|
|
6315
6315
|
];
|
|
6316
|
-
var _hoisted_4$
|
|
6316
|
+
var _hoisted_4$7 = [
|
|
6317
6317
|
"data-input",
|
|
6318
6318
|
"inputmode",
|
|
6319
6319
|
"value",
|
|
@@ -6804,7 +6804,7 @@ var RangeSlider_default = /* @__PURE__ */ defineComponent({
|
|
|
6804
6804
|
id: unref(labelId),
|
|
6805
6805
|
"data-part": "label",
|
|
6806
6806
|
class: normalizeClass(labelClass.value)
|
|
6807
|
-
}, toDisplayString(__props.label), 11, _hoisted_1$
|
|
6807
|
+
}, toDisplayString(__props.label), 11, _hoisted_1$23)) : createCommentVNode("", true),
|
|
6808
6808
|
createElementVNode("div", {
|
|
6809
6809
|
role: "group",
|
|
6810
6810
|
"data-part": "group",
|
|
@@ -6846,8 +6846,8 @@ var RangeSlider_default = /* @__PURE__ */ defineComponent({
|
|
|
6846
6846
|
onKeydown: ($event) => onThumbKeydown($event, thumb.thumb),
|
|
6847
6847
|
onKeyup: onThumbKeyup,
|
|
6848
6848
|
onBlur: onThumbBlur
|
|
6849
|
-
}, null, 46, _hoisted_3$
|
|
6850
|
-
}), 128))], 34)], 64)) : createCommentVNode("", true)], 10, _hoisted_2$
|
|
6849
|
+
}, null, 46, _hoisted_3$9);
|
|
6850
|
+
}), 128))], 34)], 64)) : createCommentVNode("", true)], 10, _hoisted_2$14),
|
|
6851
6851
|
__props.inputs ? (openBlock(), createElementBlock("div", {
|
|
6852
6852
|
key: 1,
|
|
6853
6853
|
"data-part": "inputs",
|
|
@@ -6872,7 +6872,7 @@ var RangeSlider_default = /* @__PURE__ */ defineComponent({
|
|
|
6872
6872
|
onFocus: ($event) => onInputFocus(thumb.thumb),
|
|
6873
6873
|
onBlur: ($event) => onInputBlur(thumb.thumb),
|
|
6874
6874
|
onKeydown: withKeys(withModifiers(($event) => onInputEnter(thumb.thumb), ["prevent"]), ["enter"])
|
|
6875
|
-
}, null, 42, _hoisted_4$
|
|
6875
|
+
}, null, 42, _hoisted_4$7)], 64);
|
|
6876
6876
|
}), 128))])], 2)) : createCommentVNode("", true)
|
|
6877
6877
|
], 2);
|
|
6878
6878
|
};
|
|
@@ -6880,7 +6880,7 @@ var RangeSlider_default = /* @__PURE__ */ defineComponent({
|
|
|
6880
6880
|
});
|
|
6881
6881
|
//#endregion
|
|
6882
6882
|
//#region src/components/filter-panel/Histogram.vue?vue&type=script&setup=true&lang.ts
|
|
6883
|
-
var _hoisted_1$
|
|
6883
|
+
var _hoisted_1$22 = ["data-inside"];
|
|
6884
6884
|
var ROOT_BASE$1 = "mb-1 flex h-10 w-full items-end gap-0.5";
|
|
6885
6885
|
/** Spec → States, Range: "histogram bars between the thumbs `border-strong`, outside
|
|
6886
6886
|
* `surface-strong`." */
|
|
@@ -6947,7 +6947,7 @@ var Histogram_default = /* @__PURE__ */ defineComponent({
|
|
|
6947
6947
|
"data-inside": bar.inside ? "true" : "false",
|
|
6948
6948
|
class: normalizeClass(barClass(bar)),
|
|
6949
6949
|
style: normalizeStyle({ height: `${bar.height * 100}%` })
|
|
6950
|
-
}, null, 14, _hoisted_1$
|
|
6950
|
+
}, null, 14, _hoisted_1$22);
|
|
6951
6951
|
}), 128))], 2);
|
|
6952
6952
|
};
|
|
6953
6953
|
}
|
|
@@ -7443,12 +7443,12 @@ var Link_default = /* @__PURE__ */ defineComponent({
|
|
|
7443
7443
|
});
|
|
7444
7444
|
//#endregion
|
|
7445
7445
|
//#region src/components/filter-panel/facets/SizeFacet.vue?vue&type=script&setup=true&lang.ts
|
|
7446
|
-
var _hoisted_1$
|
|
7446
|
+
var _hoisted_1$21 = {
|
|
7447
7447
|
"data-eldra-ui": "",
|
|
7448
7448
|
class: "min-w-0"
|
|
7449
7449
|
};
|
|
7450
|
-
var _hoisted_2$
|
|
7451
|
-
var _hoisted_3$
|
|
7450
|
+
var _hoisted_2$13 = ["data-value"];
|
|
7451
|
+
var _hoisted_3$8 = [
|
|
7452
7452
|
"value",
|
|
7453
7453
|
"checked",
|
|
7454
7454
|
"disabled",
|
|
@@ -7550,7 +7550,7 @@ var SizeFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
7550
7550
|
const tileLabelClass = computed(() => partClass("", props.classes, "tileLabel"));
|
|
7551
7551
|
const sizeGuideClass = computed(() => partClass(SIZE_GUIDE_BASE, props.classes, "sizeGuide"));
|
|
7552
7552
|
return (_ctx, _cache) => {
|
|
7553
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7553
|
+
return openBlock(), createElementBlock("div", _hoisted_1$21, [(openBlock(true), createElementBlock(Fragment, null, renderList(groups.value, (group, index) => {
|
|
7554
7554
|
return openBlock(), createElementBlock(Fragment, { key: group.key ?? "" }, [group.key !== void 0 ? (openBlock(), createElementBlock("p", {
|
|
7555
7555
|
key: 0,
|
|
7556
7556
|
"data-part": "subheading",
|
|
@@ -7572,11 +7572,11 @@ var SizeFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
7572
7572
|
disabled: disabled(value),
|
|
7573
7573
|
"aria-label": nameOf(value),
|
|
7574
7574
|
onChange: ($event) => emit("toggle", value.value, $event.target.checked)
|
|
7575
|
-
}, null, 40, _hoisted_3$
|
|
7575
|
+
}, null, 40, _hoisted_3$8), createElementVNode("span", {
|
|
7576
7576
|
"data-part": "tileLabel",
|
|
7577
7577
|
class: normalizeClass(tileLabelClass.value),
|
|
7578
7578
|
"aria-hidden": "true"
|
|
7579
|
-
}, toDisplayString(value.label), 3)], 10, _hoisted_2$
|
|
7579
|
+
}, toDisplayString(value.label), 3)], 10, _hoisted_2$13);
|
|
7580
7580
|
}), 128))], 2)], 64);
|
|
7581
7581
|
}), 128)), __props.facet.sizeGuideHref ? (openBlock(), createBlock(Link_default, {
|
|
7582
7582
|
key: 0,
|
|
@@ -7592,7 +7592,7 @@ var SizeFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
7592
7592
|
});
|
|
7593
7593
|
//#endregion
|
|
7594
7594
|
//#region src/components/filter-panel/facets/ToggleFacet.vue?vue&type=script&setup=true&lang.ts
|
|
7595
|
-
var _hoisted_1$
|
|
7595
|
+
var _hoisted_1$20 = ["data-value"];
|
|
7596
7596
|
var VALUES_BASE = "flex min-w-0 flex-col gap-1";
|
|
7597
7597
|
/**
|
|
7598
7598
|
* Spec → Sizes, Switch row: "Min 2.25rem tall, space-between, 0.75rem gap."
|
|
@@ -7673,22 +7673,22 @@ var ToggleFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
7673
7673
|
]), createElementVNode("span", {
|
|
7674
7674
|
"data-part": "count",
|
|
7675
7675
|
class: normalizeClass(countClass.value)
|
|
7676
|
-
}, toDisplayString(value.count), 3)], 10, _hoisted_1$
|
|
7676
|
+
}, toDisplayString(value.count), 3)], 10, _hoisted_1$20);
|
|
7677
7677
|
}), 128))], 2);
|
|
7678
7678
|
};
|
|
7679
7679
|
}
|
|
7680
7680
|
});
|
|
7681
7681
|
//#endregion
|
|
7682
7682
|
//#region src/components/filter-panel/FilterGroup.vue?vue&type=script&setup=true&lang.ts
|
|
7683
|
-
var _hoisted_1$
|
|
7684
|
-
var _hoisted_2$
|
|
7685
|
-
var _hoisted_3$
|
|
7683
|
+
var _hoisted_1$19 = ["data-facet"];
|
|
7684
|
+
var _hoisted_2$12 = { class: "m-0" };
|
|
7685
|
+
var _hoisted_3$7 = [
|
|
7686
7686
|
"id",
|
|
7687
7687
|
"aria-expanded",
|
|
7688
7688
|
"aria-controls"
|
|
7689
7689
|
];
|
|
7690
|
-
var _hoisted_4$
|
|
7691
|
-
var _hoisted_5$
|
|
7690
|
+
var _hoisted_4$6 = { "aria-hidden": "true" };
|
|
7691
|
+
var _hoisted_5$6 = ["id"];
|
|
7692
7692
|
var GROUP_BASE = "border-border border-b";
|
|
7693
7693
|
/**
|
|
7694
7694
|
* Spec → Sizes, Trigger row: "Full width, min 3rem tall, padding 0.75rem 0, gap 0.5rem,
|
|
@@ -7796,7 +7796,7 @@ var FilterGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
7796
7796
|
"data-part": "group",
|
|
7797
7797
|
"data-facet": __props.facet.id,
|
|
7798
7798
|
class: normalizeClass(groupClass.value)
|
|
7799
|
-
}, [createElementVNode("h3", _hoisted_2$
|
|
7799
|
+
}, [createElementVNode("h3", _hoisted_2$12, [createElementVNode("button", {
|
|
7800
7800
|
ref_key: "triggerEl",
|
|
7801
7801
|
ref: triggerEl,
|
|
7802
7802
|
type: "button",
|
|
@@ -7819,7 +7819,7 @@ var FilterGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
7819
7819
|
classes: { root: badgeClass.value },
|
|
7820
7820
|
"hidden-suffix": unref(m).selectedCount(__props.count)
|
|
7821
7821
|
}, {
|
|
7822
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_4$
|
|
7822
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_4$6, toDisplayString(__props.count), 1)]),
|
|
7823
7823
|
_: 1
|
|
7824
7824
|
}, 8, ["classes", "hidden-suffix"])) : createCommentVNode("", true),
|
|
7825
7825
|
__props.summary.length > 0 ? (openBlock(), createElementBlock("span", {
|
|
@@ -7839,7 +7839,7 @@ var FilterGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
7839
7839
|
"aria-hidden": "true",
|
|
7840
7840
|
focusable: "false"
|
|
7841
7841
|
}, [..._cache[1] || (_cache[1] = [createElementVNode("path", { d: "M6 9l6 6l6 -6" }, null, -1)])], 2))
|
|
7842
|
-
], 10, _hoisted_3$
|
|
7842
|
+
], 10, _hoisted_3$7)]), withDirectives(createElementVNode("fieldset", {
|
|
7843
7843
|
"data-part": "body",
|
|
7844
7844
|
id: __props.panelId,
|
|
7845
7845
|
class: normalizeClass(bodyClass.value),
|
|
@@ -7850,14 +7850,14 @@ var FilterGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
7850
7850
|
}, {
|
|
7851
7851
|
default: withCtx(() => [createTextVNode(toDisplayString(__props.facet.label), 1)]),
|
|
7852
7852
|
_: 1
|
|
7853
|
-
}, 8, ["classes"]), renderSlot(_ctx.$slots, "default")], 42, _hoisted_5$
|
|
7853
|
+
}, 8, ["classes"]), renderSlot(_ctx.$slots, "default")], 42, _hoisted_5$6), [[vShow, __props.open]])], 10, _hoisted_1$19);
|
|
7854
7854
|
};
|
|
7855
7855
|
}
|
|
7856
7856
|
});
|
|
7857
7857
|
//#endregion
|
|
7858
7858
|
//#region src/components/filter-panel/FilterPanel.vue?vue&type=script&setup=true&lang.ts
|
|
7859
|
-
var _hoisted_1$
|
|
7860
|
-
var _hoisted_2$
|
|
7859
|
+
var _hoisted_1$18 = ["aria-label"];
|
|
7860
|
+
var _hoisted_2$11 = ["aria-label"];
|
|
7861
7861
|
var ROOT_BASE = "@container min-w-0 text-control text-text";
|
|
7862
7862
|
/**
|
|
7863
7863
|
* The gutter the rows' own bleed needs, and it is load-bearing. The spec gives every option and
|
|
@@ -8129,7 +8129,7 @@ var FilterPanel_default = /* @__PURE__ */ defineComponent({
|
|
|
8129
8129
|
"messages",
|
|
8130
8130
|
"onRemove"
|
|
8131
8131
|
])]);
|
|
8132
|
-
}), 128))], 10, _hoisted_2$
|
|
8132
|
+
}), 128))], 10, _hoisted_2$11)) : createCommentVNode("", true),
|
|
8133
8133
|
(openBlock(true), createElementBlock(Fragment, null, renderList(drawn.value, (facet, index) => {
|
|
8134
8134
|
return openBlock(), createBlock(FilterGroup_default, {
|
|
8135
8135
|
key: facet.id,
|
|
@@ -8282,17 +8282,17 @@ var FilterPanel_default = /* @__PURE__ */ defineComponent({
|
|
|
8282
8282
|
default: withCtx(() => [createTextVNode(toDisplayString(__props.resultCount === null ? unref(m).filterPanelShowProducts : unref(m).filterPanelShowResults(__props.resultCount)), 1)]),
|
|
8283
8283
|
_: 1
|
|
8284
8284
|
})])], 2)) : createCommentVNode("", true)
|
|
8285
|
-
], 42, _hoisted_1$
|
|
8285
|
+
], 42, _hoisted_1$18);
|
|
8286
8286
|
};
|
|
8287
8287
|
}
|
|
8288
8288
|
});
|
|
8289
8289
|
//#endregion
|
|
8290
8290
|
//#region src/components/lightbox/Lightbox.vue?vue&type=script&setup=true&lang.ts
|
|
8291
|
-
var _hoisted_1$
|
|
8292
|
-
var _hoisted_2$
|
|
8293
|
-
var _hoisted_3$
|
|
8294
|
-
var _hoisted_4$
|
|
8295
|
-
var _hoisted_5$
|
|
8291
|
+
var _hoisted_1$17 = ["aria-label"];
|
|
8292
|
+
var _hoisted_2$10 = { key: 1 };
|
|
8293
|
+
var _hoisted_3$6 = ["aria-label"];
|
|
8294
|
+
var _hoisted_4$5 = ["disabled", "aria-label"];
|
|
8295
|
+
var _hoisted_5$5 = ["aria-label"];
|
|
8296
8296
|
var _hoisted_6$2 = ["disabled", "aria-label"];
|
|
8297
8297
|
var _hoisted_7$1 = [
|
|
8298
8298
|
"aria-current",
|
|
@@ -8566,7 +8566,7 @@ var Lightbox_default = /* @__PURE__ */ defineComponent({
|
|
|
8566
8566
|
"data-part": "counter",
|
|
8567
8567
|
"aria-hidden": "true",
|
|
8568
8568
|
class: normalizeClass(counterClass.value)
|
|
8569
|
-
}, toDisplayString(unref(m).counter(unref(carouselIndex) + 1, unref(count))), 3)) : (openBlock(), createElementBlock("span", _hoisted_2$
|
|
8569
|
+
}, toDisplayString(unref(m).counter(unref(carouselIndex) + 1, unref(count))), 3)) : (openBlock(), createElementBlock("span", _hoisted_2$10)), createElementVNode("button", {
|
|
8570
8570
|
ref_key: "closeButtonEl",
|
|
8571
8571
|
ref: closeButtonEl,
|
|
8572
8572
|
type: "button",
|
|
@@ -8584,7 +8584,7 @@ var Lightbox_default = /* @__PURE__ */ defineComponent({
|
|
|
8584
8584
|
"stroke-linejoin": "round",
|
|
8585
8585
|
"aria-hidden": "true",
|
|
8586
8586
|
focusable: "false"
|
|
8587
|
-
}, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_3$
|
|
8587
|
+
}, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_3$6)]),
|
|
8588
8588
|
createElementVNode("div", { class: normalizeClass(stageClass.value) }, [
|
|
8589
8589
|
!single.value ? (openBlock(), createElementBlock("button", {
|
|
8590
8590
|
key: 0,
|
|
@@ -8606,7 +8606,7 @@ var Lightbox_default = /* @__PURE__ */ defineComponent({
|
|
|
8606
8606
|
"stroke-linejoin": "round",
|
|
8607
8607
|
"aria-hidden": "true",
|
|
8608
8608
|
focusable: "false"
|
|
8609
|
-
}, [createElementVNode("path", { d: "M15 6l-6 6l6 6" })], -1)])], 10, _hoisted_4$
|
|
8609
|
+
}, [createElementVNode("path", { d: "M15 6l-6 6l6 6" })], -1)])], 10, _hoisted_4$5)) : createCommentVNode("", true),
|
|
8610
8610
|
createElementVNode("div", {
|
|
8611
8611
|
ref_key: "trackRef",
|
|
8612
8612
|
ref: trackRef,
|
|
@@ -8645,7 +8645,7 @@ var Lightbox_default = /* @__PURE__ */ defineComponent({
|
|
|
8645
8645
|
"alt",
|
|
8646
8646
|
"caption"
|
|
8647
8647
|
])) : createCommentVNode("", true)], 2);
|
|
8648
|
-
}), 128))], 14, _hoisted_5$
|
|
8648
|
+
}), 128))], 14, _hoisted_5$5),
|
|
8649
8649
|
!single.value ? (openBlock(), createElementBlock("button", {
|
|
8650
8650
|
key: 1,
|
|
8651
8651
|
ref_key: "nextButtonRef",
|
|
@@ -8691,14 +8691,14 @@ var Lightbox_default = /* @__PURE__ */ defineComponent({
|
|
|
8691
8691
|
fit: "cover"
|
|
8692
8692
|
}, null, 8, ["media"])], 10, _hoisted_7$1);
|
|
8693
8693
|
}), 128))], 2)) : createCommentVNode("", true)
|
|
8694
|
-
], 2)], 42, _hoisted_1$
|
|
8694
|
+
], 2)], 42, _hoisted_1$17);
|
|
8695
8695
|
};
|
|
8696
8696
|
}
|
|
8697
8697
|
});
|
|
8698
8698
|
//#endregion
|
|
8699
8699
|
//#region src/components/load-more/LoadMore.vue?vue&type=script&setup=true&lang.ts
|
|
8700
|
-
var _hoisted_1$
|
|
8701
|
-
var _hoisted_2$
|
|
8700
|
+
var _hoisted_1$16 = ["id"];
|
|
8701
|
+
var _hoisted_2$9 = ["aria-describedby", "aria-busy"];
|
|
8702
8702
|
var meterTrackClass = "h-1 w-full max-w-56 overflow-hidden rounded-full bg-surface-strong";
|
|
8703
8703
|
var meterFillClass = "h-full rounded-full bg-text transition-[width] duration-base ease-out motion-reduce:transition-none";
|
|
8704
8704
|
//#endregion
|
|
@@ -8753,7 +8753,7 @@ var LoadMore_default = /* @__PURE__ */ defineComponent({
|
|
|
8753
8753
|
class: normalizeClass(statusClass.value),
|
|
8754
8754
|
role: "status",
|
|
8755
8755
|
"aria-live": "polite"
|
|
8756
|
-
}, toDisplayString(unref(m).showingOf(__props.shown, __props.total, __props.noun)), 11, _hoisted_1$
|
|
8756
|
+
}, toDisplayString(unref(m).showingOf(__props.shown, __props.total, __props.noun)), 11, _hoisted_1$16),
|
|
8757
8757
|
createElementVNode("div", {
|
|
8758
8758
|
class: normalizeClass(meterTrackClass),
|
|
8759
8759
|
"aria-hidden": "true"
|
|
@@ -8772,15 +8772,15 @@ var LoadMore_default = /* @__PURE__ */ defineComponent({
|
|
|
8772
8772
|
}, [__props.pending ? (openBlock(), createBlock(Spinner_default, {
|
|
8773
8773
|
key: 0,
|
|
8774
8774
|
class: "size-4.5"
|
|
8775
|
-
})) : createCommentVNode("", true), createElementVNode("span", null, toDisplayString(unref(m).loadMore), 1)], 10, _hoisted_2$
|
|
8775
|
+
})) : createCommentVNode("", true), createElementVNode("span", null, toDisplayString(unref(m).loadMore), 1)], 10, _hoisted_2$9)) : createCommentVNode("", true)
|
|
8776
8776
|
], 2);
|
|
8777
8777
|
};
|
|
8778
8778
|
}
|
|
8779
8779
|
});
|
|
8780
8780
|
//#endregion
|
|
8781
8781
|
//#region src/components/logo-item/LogoItem.vue?vue&type=script&setup=true&lang.ts
|
|
8782
|
-
var _hoisted_1$
|
|
8783
|
-
var _hoisted_2$
|
|
8782
|
+
var _hoisted_1$15 = ["data-part"];
|
|
8783
|
+
var _hoisted_2$8 = [
|
|
8784
8784
|
"src",
|
|
8785
8785
|
"srcset",
|
|
8786
8786
|
"sizes",
|
|
@@ -8788,7 +8788,7 @@ var _hoisted_2$7 = [
|
|
|
8788
8788
|
"height",
|
|
8789
8789
|
"alt"
|
|
8790
8790
|
];
|
|
8791
|
-
var _hoisted_3$
|
|
8791
|
+
var _hoisted_3$5 = [
|
|
8792
8792
|
"src",
|
|
8793
8793
|
"srcset",
|
|
8794
8794
|
"sizes",
|
|
@@ -8914,7 +8914,7 @@ var LogoItem_default = /* @__PURE__ */ defineComponent({
|
|
|
8914
8914
|
alt: __props.name,
|
|
8915
8915
|
loading: "lazy",
|
|
8916
8916
|
decoding: "async"
|
|
8917
|
-
}, null, 10, _hoisted_2$
|
|
8917
|
+
}, null, 10, _hoisted_2$8)) : (openBlock(), createElementBlock("span", {
|
|
8918
8918
|
key: 1,
|
|
8919
8919
|
"data-part": "wordmark",
|
|
8920
8920
|
class: normalizeClass(wordmarkClass.value)
|
|
@@ -8936,11 +8936,11 @@ var LogoItem_default = /* @__PURE__ */ defineComponent({
|
|
|
8936
8936
|
alt: __props.name,
|
|
8937
8937
|
loading: "lazy",
|
|
8938
8938
|
decoding: "async"
|
|
8939
|
-
}, null, 10, _hoisted_3$
|
|
8939
|
+
}, null, 10, _hoisted_3$5)) : (openBlock(), createElementBlock("span", {
|
|
8940
8940
|
key: 1,
|
|
8941
8941
|
"data-part": "wordmark",
|
|
8942
8942
|
class: normalizeClass(wordmarkClass.value)
|
|
8943
|
-
}, toDisplayString(__props.name), 3))], 64))], 10, _hoisted_1$
|
|
8943
|
+
}, toDisplayString(__props.name), 3))], 64))], 10, _hoisted_1$15);
|
|
8944
8944
|
};
|
|
8945
8945
|
}
|
|
8946
8946
|
});
|
|
@@ -9009,11 +9009,11 @@ function navLinkAttrs(link, linkAs) {
|
|
|
9009
9009
|
}
|
|
9010
9010
|
//#endregion
|
|
9011
9011
|
//#region src/components/nav-menu/NavMenuPanel.vue?vue&type=script&setup=true&lang.ts
|
|
9012
|
-
var _hoisted_1$
|
|
9013
|
-
var _hoisted_2$
|
|
9014
|
-
var _hoisted_3$
|
|
9015
|
-
var _hoisted_4$
|
|
9016
|
-
var _hoisted_5$
|
|
9012
|
+
var _hoisted_1$14 = ["data-part"];
|
|
9013
|
+
var _hoisted_2$7 = ["data-part"];
|
|
9014
|
+
var _hoisted_3$4 = ["id", "data-part"];
|
|
9015
|
+
var _hoisted_4$4 = ["data-part", "aria-labelledby"];
|
|
9016
|
+
var _hoisted_5$4 = ["data-part"];
|
|
9017
9017
|
var _hoisted_6$1 = ["data-part"];
|
|
9018
9018
|
var _hoisted_7 = ["data-part"];
|
|
9019
9019
|
//#endregion
|
|
@@ -9108,7 +9108,7 @@ var NavMenuPanel_default = /* @__PURE__ */ defineComponent({
|
|
|
9108
9108
|
links: group.links,
|
|
9109
9109
|
item: __props.item,
|
|
9110
9110
|
placement: __props.placement
|
|
9111
|
-
}, () => [createTextVNode(toDisplayString(group.group), 1)])], 10, _hoisted_3$
|
|
9111
|
+
}, () => [createTextVNode(toDisplayString(group.group), 1)])], 10, _hoisted_3$4)) : createCommentVNode("", true), createElementVNode("ul", {
|
|
9112
9112
|
"data-part": part("panelList"),
|
|
9113
9113
|
class: normalizeClass(panelListClass.value),
|
|
9114
9114
|
"aria-labelledby": listLabel(group.group, index)
|
|
@@ -9141,9 +9141,9 @@ var NavMenuPanel_default = /* @__PURE__ */ defineComponent({
|
|
|
9141
9141
|
_: 1
|
|
9142
9142
|
})) : createCommentVNode("", true)]),
|
|
9143
9143
|
_: 2
|
|
9144
|
-
}, 1040, ["data-part", "class"]))], 10, _hoisted_5$
|
|
9145
|
-
}), 128))], 10, _hoisted_4$
|
|
9146
|
-
}), 128))], 10, _hoisted_1$
|
|
9144
|
+
}, 1040, ["data-part", "class"]))], 10, _hoisted_5$4);
|
|
9145
|
+
}), 128))], 10, _hoisted_4$4)], 10, _hoisted_2$7);
|
|
9146
|
+
}), 128))], 10, _hoisted_1$14)], 64);
|
|
9147
9147
|
};
|
|
9148
9148
|
}
|
|
9149
9149
|
});
|
|
@@ -9262,21 +9262,21 @@ function useNavMenuKeys(options) {
|
|
|
9262
9262
|
}
|
|
9263
9263
|
//#endregion
|
|
9264
9264
|
//#region src/components/nav-menu/NavMenu.vue?vue&type=script&setup=true&lang.ts
|
|
9265
|
-
var _hoisted_1$
|
|
9266
|
-
var _hoisted_2$
|
|
9265
|
+
var _hoisted_1$13 = ["aria-label"];
|
|
9266
|
+
var _hoisted_2$6 = [
|
|
9267
9267
|
"aria-expanded",
|
|
9268
9268
|
"aria-controls",
|
|
9269
9269
|
"data-current",
|
|
9270
9270
|
"onClick",
|
|
9271
9271
|
"onPointerenter"
|
|
9272
9272
|
];
|
|
9273
|
-
var _hoisted_3$
|
|
9274
|
-
var _hoisted_4$
|
|
9273
|
+
var _hoisted_3$3 = ["id"];
|
|
9274
|
+
var _hoisted_4$3 = [
|
|
9275
9275
|
"aria-label",
|
|
9276
9276
|
"aria-expanded",
|
|
9277
9277
|
"aria-controls"
|
|
9278
9278
|
];
|
|
9279
|
-
var _hoisted_5$
|
|
9279
|
+
var _hoisted_5$3 = ["aria-label"];
|
|
9280
9280
|
var _hoisted_6 = ["id"];
|
|
9281
9281
|
var HOVER_INTENT_MS = 150;
|
|
9282
9282
|
var HOVER_FILL = "hover:bg-[color-mix(in_oklab,var(--eldra-color-text),transparent_94%)]";
|
|
@@ -9559,7 +9559,7 @@ var NavMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9559
9559
|
"stroke-linecap": "round",
|
|
9560
9560
|
"stroke-linejoin": "round",
|
|
9561
9561
|
focusable: "false"
|
|
9562
|
-
}, [createElementVNode("path", { d: "M6 9l6 6l6 -6" })], -1))])], 2)], 42, _hoisted_2$
|
|
9562
|
+
}, [createElementVNode("path", { d: "M6 9l6 6l6 -6" })], -1))])], 2)], 42, _hoisted_2$6), createVNode(Transition, mergeProps({ ref_for: true }, PANEL_TRANSITION), {
|
|
9563
9563
|
default: withCtx(() => [withDirectives(createElementVNode("div", {
|
|
9564
9564
|
id: panelId(index),
|
|
9565
9565
|
ref_for: true,
|
|
@@ -9601,7 +9601,7 @@ var NavMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9601
9601
|
item,
|
|
9602
9602
|
index,
|
|
9603
9603
|
close: closePanel
|
|
9604
|
-
})], 2)) : createCommentVNode("", true)], 2)], 10, _hoisted_3$
|
|
9604
|
+
})], 2)) : createCommentVNode("", true)], 2)], 10, _hoisted_3$3), [[vShow, unref(openIndex) === index]])]),
|
|
9605
9605
|
_: 2
|
|
9606
9606
|
}, 1040)], 64)) : (openBlock(), createBlock(resolveDynamicComponent(unref(navLinkTag)(item, __props.linkAs)), mergeProps({
|
|
9607
9607
|
key: 1,
|
|
@@ -9614,7 +9614,7 @@ var NavMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9614
9614
|
})) : createCommentVNode("", true)]),
|
|
9615
9615
|
_: 2
|
|
9616
9616
|
}, 1040, ["class"]))], 2);
|
|
9617
|
-
}), 128))], 2)], 42, _hoisted_1$
|
|
9617
|
+
}), 128))], 2)], 42, _hoisted_1$13)) : createCommentVNode("", true), __props.collapseBelow !== "never" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createElementVNode("button", {
|
|
9618
9618
|
ref_key: "toggleEl",
|
|
9619
9619
|
ref: toggleEl,
|
|
9620
9620
|
type: "button",
|
|
@@ -9640,7 +9640,7 @@ var NavMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9640
9640
|
createElementVNode("path", { d: "M4 6l16 0" }, null, -1),
|
|
9641
9641
|
createElementVNode("path", { d: "M4 12l16 0" }, null, -1),
|
|
9642
9642
|
createElementVNode("path", { d: "M4 18l16 0" }, null, -1)
|
|
9643
|
-
])], 2))])], 10, _hoisted_4$
|
|
9643
|
+
])], 2))])], 10, _hoisted_4$3), createVNode(Drawer_default, {
|
|
9644
9644
|
id: drawerId.value,
|
|
9645
9645
|
modelValue: unref(drawerOpen),
|
|
9646
9646
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(drawerOpen) ? drawerOpen.value = $event : null),
|
|
@@ -9731,7 +9731,7 @@ var NavMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9731
9731
|
})) : createCommentVNode("", true)]),
|
|
9732
9732
|
_: 2
|
|
9733
9733
|
}, 1040, ["class"]))], 2);
|
|
9734
|
-
}), 128))], 2)], 8, _hoisted_5$
|
|
9734
|
+
}), 128))], 2)], 8, _hoisted_5$3)) : createCommentVNode("", true)]),
|
|
9735
9735
|
_: 2
|
|
9736
9736
|
}, [unref(slots).drawerHeader ? {
|
|
9737
9737
|
name: "header",
|
|
@@ -9754,8 +9754,8 @@ var NavMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9754
9754
|
});
|
|
9755
9755
|
//#endregion
|
|
9756
9756
|
//#region src/components/pagination/Pagination.vue?vue&type=script&setup=true&lang.ts
|
|
9757
|
-
var _hoisted_1$
|
|
9758
|
-
var _hoisted_2$
|
|
9757
|
+
var _hoisted_1$12 = ["aria-label"];
|
|
9758
|
+
var _hoisted_2$5 = { key: 0 };
|
|
9759
9759
|
/**
|
|
9760
9760
|
* The page window (spec "Pagination" → Properties, `siblings`: "First and last always show; the
|
|
9761
9761
|
* rest collapse to '…'."). Built from the *set* of pages that must show — `1`, `totalPages`, and
|
|
@@ -10036,7 +10036,7 @@ var Pagination_default = /* @__PURE__ */ defineComponent({
|
|
|
10036
10036
|
"aria-label"
|
|
10037
10037
|
])),
|
|
10038
10038
|
createElementVNode("span", { class: normalizeClass(compactStatusClass) }, [(openBlock(true), createElementBlock(Fragment, null, renderList(compactStatusParts.value, (part, index) => {
|
|
10039
|
-
return openBlock(), createElementBlock(Fragment, { key: index }, [part.bold ? (openBlock(), createElementBlock("strong", _hoisted_2$
|
|
10039
|
+
return openBlock(), createElementBlock(Fragment, { key: index }, [part.bold ? (openBlock(), createElementBlock("strong", _hoisted_2$5, toDisplayString(part.text), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(part.text), 1)], 64))], 64);
|
|
10040
10040
|
}), 128))]),
|
|
10041
10041
|
nextDisabled.value ? (openBlock(), createElementBlock("span", {
|
|
10042
10042
|
key: 2,
|
|
@@ -10077,13 +10077,13 @@ var Pagination_default = /* @__PURE__ */ defineComponent({
|
|
|
10077
10077
|
"class",
|
|
10078
10078
|
"aria-label"
|
|
10079
10079
|
]))
|
|
10080
|
-
], 2)], 10, _hoisted_1$
|
|
10080
|
+
], 2)], 10, _hoisted_1$12)) : createCommentVNode("", true);
|
|
10081
10081
|
};
|
|
10082
10082
|
}
|
|
10083
10083
|
});
|
|
10084
10084
|
//#endregion
|
|
10085
10085
|
//#region src/components/popover/Popover.vue?vue&type=script&setup=true&lang.ts
|
|
10086
|
-
var _hoisted_1$
|
|
10086
|
+
var _hoisted_1$11 = [
|
|
10087
10087
|
"id",
|
|
10088
10088
|
"data-eldra-overlay-owner",
|
|
10089
10089
|
"data-placement",
|
|
@@ -10290,7 +10290,7 @@ var Popover_default = /* @__PURE__ */ defineComponent({
|
|
|
10290
10290
|
style: unref(panelStyle),
|
|
10291
10291
|
"data-placement": unref(resolvedPlacement),
|
|
10292
10292
|
"aria-label": __props.ariaLabel
|
|
10293
|
-
}, _ctx.$attrs), [renderSlot(_ctx.$slots, "default", { close: () => unref(close)() })], 16, _hoisted_1$
|
|
10293
|
+
}, _ctx.$attrs), [renderSlot(_ctx.$slots, "default", { close: () => unref(close)() })], 16, _hoisted_1$11)) : createCommentVNode("", true)], 8, ["to", "disabled"]))], 2);
|
|
10294
10294
|
};
|
|
10295
10295
|
}
|
|
10296
10296
|
});
|
|
@@ -10395,7 +10395,7 @@ var ValueText_default = /* @__PURE__ */ defineComponent({
|
|
|
10395
10395
|
});
|
|
10396
10396
|
//#endregion
|
|
10397
10397
|
//#region src/components/price/Price.vue?vue&type=script&setup=true&lang.ts
|
|
10398
|
-
var _hoisted_1$
|
|
10398
|
+
var _hoisted_1$10 = ["lang", "aria-busy"];
|
|
10399
10399
|
var ISO_4217_DEFAULT_FRACTION_DIGITS = 2;
|
|
10400
10400
|
var SECTION$1 = "group-data-[section=primary]/section:text-primary-contrast group-data-[section=accent]/section:text-accent-contrast";
|
|
10401
10401
|
//#endregion
|
|
@@ -10726,7 +10726,7 @@ var Price_default = /* @__PURE__ */ defineComponent({
|
|
|
10726
10726
|
"data-part": "srStatus",
|
|
10727
10727
|
class: normalizeClass(srStatusClass.value),
|
|
10728
10728
|
"aria-live": "polite"
|
|
10729
|
-
}, toDisplayString(srStatusText.value), 3)) : createCommentVNode("", true)], 10, _hoisted_1$
|
|
10729
|
+
}, toDisplayString(srStatusText.value), 3)) : createCommentVNode("", true)], 10, _hoisted_1$10);
|
|
10730
10730
|
};
|
|
10731
10731
|
}
|
|
10732
10732
|
});
|
|
@@ -10990,8 +10990,8 @@ var Rating_default = /* @__PURE__ */ defineComponent({
|
|
|
10990
10990
|
});
|
|
10991
10991
|
//#endregion
|
|
10992
10992
|
//#region src/components/badge/StockBadge.vue?vue&type=script&setup=true&lang.ts
|
|
10993
|
-
var _hoisted_1$
|
|
10994
|
-
var _hoisted_2$
|
|
10993
|
+
var _hoisted_1$9 = ["aria-busy"];
|
|
10994
|
+
var _hoisted_2$4 = ["d"];
|
|
10995
10995
|
var ICON_STROKE_WIDTH$1 = 2.25;
|
|
10996
10996
|
//#endregion
|
|
10997
10997
|
//#region src/components/badge/StockBadge.vue
|
|
@@ -11112,7 +11112,7 @@ var StockBadge_default = /* @__PURE__ */ defineComponent({
|
|
|
11112
11112
|
return openBlock(), createElementBlock("path", {
|
|
11113
11113
|
key: d,
|
|
11114
11114
|
d
|
|
11115
|
-
}, null, 8, _hoisted_2$
|
|
11115
|
+
}, null, 8, _hoisted_2$4);
|
|
11116
11116
|
}), 128))], 2)),
|
|
11117
11117
|
createElementVNode("span", {
|
|
11118
11118
|
"data-part": "label",
|
|
@@ -11134,14 +11134,14 @@ var StockBadge_default = /* @__PURE__ */ defineComponent({
|
|
|
11134
11134
|
class: normalizeClass(srStatusClass.value),
|
|
11135
11135
|
"aria-live": "polite"
|
|
11136
11136
|
}, toDisplayString(srStatusText.value), 3)) : createCommentVNode("", true)
|
|
11137
|
-
], 10, _hoisted_1$
|
|
11137
|
+
], 10, _hoisted_1$9);
|
|
11138
11138
|
};
|
|
11139
11139
|
}
|
|
11140
11140
|
});
|
|
11141
11141
|
//#endregion
|
|
11142
11142
|
//#region src/components/product-card/ProductCard.vue?vue&type=script&setup=true&lang.ts
|
|
11143
|
-
var _hoisted_1$
|
|
11144
|
-
var _hoisted_2$
|
|
11143
|
+
var _hoisted_1$8 = ["aria-label"];
|
|
11144
|
+
var _hoisted_2$3 = { class: "mt-3 flex flex-1 flex-col gap-1" };
|
|
11145
11145
|
//#endregion
|
|
11146
11146
|
//#region src/components/product-card/ProductCard.vue
|
|
11147
11147
|
var ProductCard_default = /* @__PURE__ */ defineComponent({
|
|
@@ -11394,7 +11394,7 @@ var ProductCard_default = /* @__PURE__ */ defineComponent({
|
|
|
11394
11394
|
variant: "media",
|
|
11395
11395
|
ratio: __props.ratio
|
|
11396
11396
|
}, null, 8, ["ratio"]),
|
|
11397
|
-
createElementVNode("div", _hoisted_2$
|
|
11397
|
+
createElementVNode("div", _hoisted_2$3, [
|
|
11398
11398
|
createVNode(Skeleton_default, {
|
|
11399
11399
|
variant: "text",
|
|
11400
11400
|
classes: { line: "w-[80%]" }
|
|
@@ -11412,7 +11412,7 @@ var ProductCard_default = /* @__PURE__ */ defineComponent({
|
|
|
11412
11412
|
variant: "btn",
|
|
11413
11413
|
class: "mt-5"
|
|
11414
11414
|
})
|
|
11415
|
-
], 2)], 10, _hoisted_1$
|
|
11415
|
+
], 2)], 10, _hoisted_1$8)) : (openBlock(), createElementBlock("article", {
|
|
11416
11416
|
key: 1,
|
|
11417
11417
|
"data-eldra-ui": "",
|
|
11418
11418
|
"data-part": "root",
|
|
@@ -11566,9 +11566,9 @@ var ProductCard_default = /* @__PURE__ */ defineComponent({
|
|
|
11566
11566
|
});
|
|
11567
11567
|
//#endregion
|
|
11568
11568
|
//#region src/components/search-modal/SearchModal.vue?vue&type=script&setup=true&lang.ts
|
|
11569
|
-
var _hoisted_1$
|
|
11570
|
-
var _hoisted_2$
|
|
11571
|
-
var _hoisted_3$
|
|
11569
|
+
var _hoisted_1$7 = ["aria-label"];
|
|
11570
|
+
var _hoisted_2$2 = ["action"];
|
|
11571
|
+
var _hoisted_3$2 = [
|
|
11572
11572
|
"id",
|
|
11573
11573
|
"value",
|
|
11574
11574
|
"placeholder",
|
|
@@ -11576,8 +11576,8 @@ var _hoisted_3$1 = [
|
|
|
11576
11576
|
"aria-controls",
|
|
11577
11577
|
"aria-activedescendant"
|
|
11578
11578
|
];
|
|
11579
|
-
var _hoisted_4$
|
|
11580
|
-
var _hoisted_5$
|
|
11579
|
+
var _hoisted_4$2 = ["aria-label"];
|
|
11580
|
+
var _hoisted_5$2 = ["aria-label"];
|
|
11581
11581
|
var RECENT_KEY = "eldra-ui:recent-searches";
|
|
11582
11582
|
var RECENT_MAX = 5;
|
|
11583
11583
|
var LOADING_DELAY_MS = 300;
|
|
@@ -12253,7 +12253,7 @@ var SearchModal_default = /* @__PURE__ */ defineComponent({
|
|
|
12253
12253
|
spellcheck: "false",
|
|
12254
12254
|
onInput,
|
|
12255
12255
|
onKeydown
|
|
12256
|
-
}), null, 16, _hoisted_3$
|
|
12256
|
+
}), null, 16, _hoisted_3$2),
|
|
12257
12257
|
loadingShown.value ? (openBlock(), createElementBlock("span", {
|
|
12258
12258
|
key: 0,
|
|
12259
12259
|
"data-part": "busy",
|
|
@@ -12276,7 +12276,7 @@ var SearchModal_default = /* @__PURE__ */ defineComponent({
|
|
|
12276
12276
|
"stroke-linejoin": "round",
|
|
12277
12277
|
"aria-hidden": "true",
|
|
12278
12278
|
focusable: "false"
|
|
12279
|
-
}, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_4$
|
|
12279
|
+
}, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_4$2)) : createCommentVNode("", true),
|
|
12280
12280
|
createElementVNode("button", {
|
|
12281
12281
|
"data-part": "close",
|
|
12282
12282
|
type: "button",
|
|
@@ -12293,14 +12293,14 @@ var SearchModal_default = /* @__PURE__ */ defineComponent({
|
|
|
12293
12293
|
"stroke-linejoin": "round",
|
|
12294
12294
|
"aria-hidden": "true",
|
|
12295
12295
|
focusable: "false"
|
|
12296
|
-
}, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_5$
|
|
12296
|
+
}, [createElementVNode("path", { d: "M18 6l-12 12" }), createElementVNode("path", { d: "M6 6l12 12" })], -1)])], 10, _hoisted_5$2),
|
|
12297
12297
|
createElementVNode("button", {
|
|
12298
12298
|
"data-part": "close",
|
|
12299
12299
|
type: "button",
|
|
12300
12300
|
class: normalizeClass(cancelClass.value),
|
|
12301
12301
|
onClick: onCloseClick
|
|
12302
12302
|
}, toDisplayString(unref(m).cancel), 3)
|
|
12303
|
-
], 42, _hoisted_2$
|
|
12303
|
+
], 42, _hoisted_2$2),
|
|
12304
12304
|
createElementVNode("div", {
|
|
12305
12305
|
"data-part": "results",
|
|
12306
12306
|
class: normalizeClass(resultsClass.value)
|
|
@@ -12367,7 +12367,7 @@ var SearchModal_default = /* @__PURE__ */ defineComponent({
|
|
|
12367
12367
|
default: withCtx(() => [createTextVNode(toDisplayString(announcement.value), 1)]),
|
|
12368
12368
|
_: 1
|
|
12369
12369
|
}, 8, ["classes"])
|
|
12370
|
-
], 42, _hoisted_1$
|
|
12370
|
+
], 42, _hoisted_1$7);
|
|
12371
12371
|
};
|
|
12372
12372
|
}
|
|
12373
12373
|
});
|
|
@@ -12486,6 +12486,806 @@ var Section_default = /* @__PURE__ */ defineComponent({
|
|
|
12486
12486
|
}
|
|
12487
12487
|
});
|
|
12488
12488
|
//#endregion
|
|
12489
|
+
//#region src/components/site-form/localize.ts
|
|
12490
|
+
/** One locale's text: exact tag, same language, first sorted tag, `''`, as the platform's `formLabel`. */
|
|
12491
|
+
function pickLocalized(map, locale) {
|
|
12492
|
+
if (map === void 0) return "";
|
|
12493
|
+
const exact = map[locale];
|
|
12494
|
+
if (exact !== void 0) return exact;
|
|
12495
|
+
const tags = Object.keys(map).sort();
|
|
12496
|
+
const language = locale.split("-")[0]?.toLowerCase();
|
|
12497
|
+
const sameLanguage = tags.find((tag) => tag.split("-")[0]?.toLowerCase() === language);
|
|
12498
|
+
if (language && sameLanguage !== void 0) return map[sameLanguage] ?? "";
|
|
12499
|
+
const first = tags[0];
|
|
12500
|
+
return first === void 0 ? "" : map[first] ?? "";
|
|
12501
|
+
}
|
|
12502
|
+
var FIELD_TYPES = /* @__PURE__ */ new Set([
|
|
12503
|
+
"text",
|
|
12504
|
+
"email",
|
|
12505
|
+
"phone",
|
|
12506
|
+
"textarea",
|
|
12507
|
+
"select",
|
|
12508
|
+
"checkbox",
|
|
12509
|
+
"consent",
|
|
12510
|
+
"number",
|
|
12511
|
+
"url"
|
|
12512
|
+
]);
|
|
12513
|
+
function isBooleanField(field) {
|
|
12514
|
+
return field.type === "checkbox" || field.type === "consent";
|
|
12515
|
+
}
|
|
12516
|
+
/** A `/` path or an absolute http(s) URL, the two shapes the platform accepts for a redirect. */
|
|
12517
|
+
function safeRedirect(target) {
|
|
12518
|
+
const trimmed = target.trim();
|
|
12519
|
+
if (trimmed.startsWith("/") && !trimmed.startsWith("//") && !trimmed.startsWith("/\\")) return trimmed;
|
|
12520
|
+
try {
|
|
12521
|
+
const url = new URL(trimmed);
|
|
12522
|
+
return url.protocol === "http:" || url.protocol === "https:" ? url.href : null;
|
|
12523
|
+
} catch {
|
|
12524
|
+
return null;
|
|
12525
|
+
}
|
|
12526
|
+
}
|
|
12527
|
+
/** Every per-locale text resolved for `locale`; throws on a field type it cannot draw. */
|
|
12528
|
+
function localizeSiteForm(raw, locale) {
|
|
12529
|
+
const fields = raw.fields.map((field) => {
|
|
12530
|
+
if (!FIELD_TYPES.has(field.type)) throw new Error(`form "${raw.key}": unsupported field type "${String(field.type)}"`);
|
|
12531
|
+
const out = {
|
|
12532
|
+
id: field.id,
|
|
12533
|
+
type: field.type,
|
|
12534
|
+
required: field.required,
|
|
12535
|
+
label: pickLocalized(field.label, locale)
|
|
12536
|
+
};
|
|
12537
|
+
const placeholder = pickLocalized(field.placeholder, locale);
|
|
12538
|
+
if (placeholder !== "") out.placeholder = placeholder;
|
|
12539
|
+
if (field.options !== void 0) out.options = field.options.map((option) => ({
|
|
12540
|
+
value: option.value,
|
|
12541
|
+
label: pickLocalized(option.label, locale) || option.value
|
|
12542
|
+
}));
|
|
12543
|
+
if (field.validation !== void 0) out.validation = { ...field.validation };
|
|
12544
|
+
return out;
|
|
12545
|
+
});
|
|
12546
|
+
const redirect = pickLocalized(raw.success?.redirect, locale);
|
|
12547
|
+
return {
|
|
12548
|
+
key: raw.key,
|
|
12549
|
+
name: raw.name,
|
|
12550
|
+
fields,
|
|
12551
|
+
honeypotField: raw.honeypotField,
|
|
12552
|
+
turnstileSiteKey: raw.turnstileSiteKey ?? null,
|
|
12553
|
+
successMessage: pickLocalized(raw.success?.message, locale),
|
|
12554
|
+
successRedirect: redirect === "" ? null : safeRedirect(redirect),
|
|
12555
|
+
consentText: pickLocalized(raw.consentText, locale).trim()
|
|
12556
|
+
};
|
|
12557
|
+
}
|
|
12558
|
+
//#endregion
|
|
12559
|
+
//#region src/components/site-form/turnstile.ts
|
|
12560
|
+
var TURNSTILE_SCRIPT_SRC = "https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit";
|
|
12561
|
+
var scriptPromise = null;
|
|
12562
|
+
/** Loads Cloudflare's script once per page; a failed load is forgotten so the next form retries. */
|
|
12563
|
+
function loadTurnstile() {
|
|
12564
|
+
const win = window;
|
|
12565
|
+
if (win.turnstile) return Promise.resolve(win.turnstile);
|
|
12566
|
+
scriptPromise ??= new Promise((resolve, reject) => {
|
|
12567
|
+
const script = document.createElement("script");
|
|
12568
|
+
script.src = TURNSTILE_SCRIPT_SRC;
|
|
12569
|
+
script.async = true;
|
|
12570
|
+
script.onload = () => win.turnstile ? resolve(win.turnstile) : reject(/* @__PURE__ */ new Error("Turnstile did not start"));
|
|
12571
|
+
script.onerror = () => {
|
|
12572
|
+
script.remove();
|
|
12573
|
+
reject(/* @__PURE__ */ new Error("Turnstile could not load"));
|
|
12574
|
+
};
|
|
12575
|
+
document.head.append(script);
|
|
12576
|
+
}).catch((error) => {
|
|
12577
|
+
scriptPromise = null;
|
|
12578
|
+
throw error;
|
|
12579
|
+
});
|
|
12580
|
+
return scriptPromise;
|
|
12581
|
+
}
|
|
12582
|
+
/** Cloudflare Turnstile in `container` while `siteKey` is set; nothing loads without one. */
|
|
12583
|
+
function useTurnstile(siteKey, container) {
|
|
12584
|
+
const token = ref(null);
|
|
12585
|
+
const failed = ref(false);
|
|
12586
|
+
let api = null;
|
|
12587
|
+
let widgetId = null;
|
|
12588
|
+
async function mount() {
|
|
12589
|
+
const element = container.value;
|
|
12590
|
+
const key = siteKey.value;
|
|
12591
|
+
if (typeof window === "undefined" || !element || !key || widgetId !== null) return;
|
|
12592
|
+
try {
|
|
12593
|
+
api = await loadTurnstile();
|
|
12594
|
+
if (container.value !== element || siteKey.value !== key || widgetId !== null) return;
|
|
12595
|
+
widgetId = api.render(element, {
|
|
12596
|
+
sitekey: key,
|
|
12597
|
+
callback: (value) => {
|
|
12598
|
+
token.value = value;
|
|
12599
|
+
failed.value = false;
|
|
12600
|
+
},
|
|
12601
|
+
"expired-callback": () => {
|
|
12602
|
+
token.value = null;
|
|
12603
|
+
},
|
|
12604
|
+
"error-callback": () => {
|
|
12605
|
+
token.value = null;
|
|
12606
|
+
failed.value = true;
|
|
12607
|
+
}
|
|
12608
|
+
});
|
|
12609
|
+
} catch {
|
|
12610
|
+
failed.value = true;
|
|
12611
|
+
}
|
|
12612
|
+
}
|
|
12613
|
+
function remove() {
|
|
12614
|
+
const id = widgetId;
|
|
12615
|
+
widgetId = null;
|
|
12616
|
+
token.value = null;
|
|
12617
|
+
if (api && id !== null) try {
|
|
12618
|
+
api.remove(id);
|
|
12619
|
+
} catch {}
|
|
12620
|
+
}
|
|
12621
|
+
function reset() {
|
|
12622
|
+
token.value = null;
|
|
12623
|
+
if (api && widgetId !== null) try {
|
|
12624
|
+
api.reset(widgetId);
|
|
12625
|
+
} catch {
|
|
12626
|
+
failed.value = true;
|
|
12627
|
+
}
|
|
12628
|
+
}
|
|
12629
|
+
watch([siteKey, container], ([key, element], [previousKey, previousElement]) => {
|
|
12630
|
+
if (widgetId !== null && (key !== previousKey || element !== previousElement)) remove();
|
|
12631
|
+
mount();
|
|
12632
|
+
});
|
|
12633
|
+
onBeforeUnmount(remove);
|
|
12634
|
+
return {
|
|
12635
|
+
token,
|
|
12636
|
+
failed,
|
|
12637
|
+
reset
|
|
12638
|
+
};
|
|
12639
|
+
}
|
|
12640
|
+
//#endregion
|
|
12641
|
+
//#region src/components/site-form/validate.ts
|
|
12642
|
+
var CONTROL_CHARACTERS = /[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]/g;
|
|
12643
|
+
var NUMBER = /^[+-]?(?:\d+[.,]?\d*|[.,]\d+)(?:[eE][+-]?\d+)?$/;
|
|
12644
|
+
var EMAIL = /^[^\s@<>,;"]+@[^\s@<>,;"]+\.[^\s@<>,;"]+$/;
|
|
12645
|
+
/** The platform's own ceilings per type; a field's `maxLength` can only lower them. */
|
|
12646
|
+
var DEFAULT_MAX_LENGTH = {
|
|
12647
|
+
email: 254,
|
|
12648
|
+
phone: 50,
|
|
12649
|
+
textarea: 8e3
|
|
12650
|
+
};
|
|
12651
|
+
var DEFAULT_TEXT_MAX_LENGTH = 500;
|
|
12652
|
+
var SPACE = "\\t\\n\\v\\f\\r \\u0085\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000";
|
|
12653
|
+
var SPACES = new RegExp(`[${SPACE}]+`, "g");
|
|
12654
|
+
var EDGE_SPACES = new RegExp(`^[${SPACE}]+|[${SPACE}]+$`, "g");
|
|
12655
|
+
var ENGINES_DISAGREE = /[\r\v\u0085\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]/;
|
|
12656
|
+
var NON_ASCII = /[^ -~]/;
|
|
12657
|
+
/** The text the platform validates: control characters dropped, spaces collapsed outside a textarea, trimmed. */
|
|
12658
|
+
function normalizeSiteFormText(field, value) {
|
|
12659
|
+
const cleaned = value.replace(CONTROL_CHARACTERS, "");
|
|
12660
|
+
return (field.type === "textarea" ? cleaned : cleaned.replace(SPACES, " ")).replace(EDGE_SPACES, "");
|
|
12661
|
+
}
|
|
12662
|
+
/** What the platform matches the pattern against: an email lowercased, a number with a decimal point. */
|
|
12663
|
+
function patternSubject(field, text) {
|
|
12664
|
+
if (field.type === "email") return NON_ASCII.test(text) ? null : text.toLowerCase();
|
|
12665
|
+
const subject = field.type === "number" ? text.replace(",", ".") : text;
|
|
12666
|
+
return ENGINES_DISAGREE.test(subject) ? null : subject;
|
|
12667
|
+
}
|
|
12668
|
+
function isNumber(text) {
|
|
12669
|
+
return NUMBER.test(text) && Number.isFinite(Number(text.replace(",", ".")));
|
|
12670
|
+
}
|
|
12671
|
+
function isHttpUrl(text) {
|
|
12672
|
+
try {
|
|
12673
|
+
const url = new URL(text);
|
|
12674
|
+
return (url.protocol === "http:" || url.protocol === "https:") && url.hostname !== "";
|
|
12675
|
+
} catch {
|
|
12676
|
+
return false;
|
|
12677
|
+
}
|
|
12678
|
+
}
|
|
12679
|
+
function compilePattern(pattern) {
|
|
12680
|
+
try {
|
|
12681
|
+
return new RegExp(`^(?:${pattern})$`, "u");
|
|
12682
|
+
} catch {
|
|
12683
|
+
return null;
|
|
12684
|
+
}
|
|
12685
|
+
}
|
|
12686
|
+
/** The first reason the platform would refuse `value`, by its rules in its order, or `null`. */
|
|
12687
|
+
function validateSiteFormValue(field, value, messages) {
|
|
12688
|
+
if (isBooleanField(field)) return field.required && value !== true ? messages.formRequiredCheckbox : null;
|
|
12689
|
+
const text = normalizeSiteFormText(field, typeof value === "string" ? value : "");
|
|
12690
|
+
if (text === "") return field.required ? messages.formRequired : null;
|
|
12691
|
+
const length = Array.from(text).length;
|
|
12692
|
+
const ceiling = DEFAULT_MAX_LENGTH[field.type] ?? DEFAULT_TEXT_MAX_LENGTH;
|
|
12693
|
+
const { minLength, maxLength, pattern } = field.validation ?? {};
|
|
12694
|
+
const max = maxLength === void 0 ? ceiling : Math.min(ceiling, maxLength);
|
|
12695
|
+
if (length > max) return messages.formTooLong(max);
|
|
12696
|
+
if (field.type === "email" && (text.length > 254 || !EMAIL.test(text))) return messages.formInvalidEmail;
|
|
12697
|
+
if (field.type === "number" && !isNumber(text)) return messages.formInvalidNumber;
|
|
12698
|
+
if (field.type === "url" && !isHttpUrl(text)) return messages.formInvalidUrl;
|
|
12699
|
+
if (field.type === "select" && !(field.options ?? []).some((option) => option.value === text)) return messages.formInvalidOption;
|
|
12700
|
+
if (minLength !== void 0 && length < minLength) return messages.formTooShort(minLength);
|
|
12701
|
+
const subject = pattern ? patternSubject(field, text) : null;
|
|
12702
|
+
if (pattern && subject !== null) {
|
|
12703
|
+
const expression = compilePattern(pattern);
|
|
12704
|
+
if (expression !== null && !expression.test(subject)) return messages.formInvalidFormat;
|
|
12705
|
+
}
|
|
12706
|
+
return null;
|
|
12707
|
+
}
|
|
12708
|
+
//#endregion
|
|
12709
|
+
//#region src/components/site-form/useSiteForm.ts
|
|
12710
|
+
function statusOf(error) {
|
|
12711
|
+
if (typeof error !== "object" || error === null || !("status" in error)) return void 0;
|
|
12712
|
+
const status = error.status;
|
|
12713
|
+
return typeof status === "number" ? status : void 0;
|
|
12714
|
+
}
|
|
12715
|
+
function failureReason(error) {
|
|
12716
|
+
const status = statusOf(error);
|
|
12717
|
+
if (status === 429) return "rate-limited";
|
|
12718
|
+
if (status === 413) return "too-large";
|
|
12719
|
+
return "unavailable";
|
|
12720
|
+
}
|
|
12721
|
+
function emptyValue(field) {
|
|
12722
|
+
return isBooleanField(field) ? false : "";
|
|
12723
|
+
}
|
|
12724
|
+
/** One Eldra form's state, checks, honeypot, Turnstile and submission; `SiteForm` is drawn from it. */
|
|
12725
|
+
function useSiteForm(options) {
|
|
12726
|
+
const m = useMessages(() => toValue(options.messages));
|
|
12727
|
+
const fetched = shallowRef(null);
|
|
12728
|
+
const loading = ref(false);
|
|
12729
|
+
const mounted = ref(false);
|
|
12730
|
+
let readId = 0;
|
|
12731
|
+
const raw = computed(() => toValue(options.definition) ?? fetched.value);
|
|
12732
|
+
const form = computed(() => {
|
|
12733
|
+
const definition = raw.value;
|
|
12734
|
+
if (!definition) return null;
|
|
12735
|
+
try {
|
|
12736
|
+
return localizeSiteForm(definition, toValue(options.locale));
|
|
12737
|
+
} catch {
|
|
12738
|
+
return null;
|
|
12739
|
+
}
|
|
12740
|
+
});
|
|
12741
|
+
const status = computed(() => {
|
|
12742
|
+
if (form.value) return "ready";
|
|
12743
|
+
if (raw.value) return "failed";
|
|
12744
|
+
if (toValue(options.formKey) && (loading.value || !mounted.value)) return "loading";
|
|
12745
|
+
return "failed";
|
|
12746
|
+
});
|
|
12747
|
+
async function read(key) {
|
|
12748
|
+
const id = ++readId;
|
|
12749
|
+
loading.value = true;
|
|
12750
|
+
try {
|
|
12751
|
+
const definition = await toValue(options.client).forms.get(key);
|
|
12752
|
+
if (id === readId) fetched.value = definition;
|
|
12753
|
+
} catch {
|
|
12754
|
+
if (id === readId) fetched.value = null;
|
|
12755
|
+
} finally {
|
|
12756
|
+
if (id === readId) loading.value = false;
|
|
12757
|
+
}
|
|
12758
|
+
}
|
|
12759
|
+
onMounted(() => {
|
|
12760
|
+
mounted.value = true;
|
|
12761
|
+
watch(() => [toValue(options.definition), toValue(options.formKey)], ([definition, key]) => {
|
|
12762
|
+
if (definition || !key) {
|
|
12763
|
+
readId++;
|
|
12764
|
+
loading.value = false;
|
|
12765
|
+
return;
|
|
12766
|
+
}
|
|
12767
|
+
if (fetched.value?.key !== key) read(key);
|
|
12768
|
+
}, { immediate: true });
|
|
12769
|
+
});
|
|
12770
|
+
const values = reactive({});
|
|
12771
|
+
const errors = reactive({});
|
|
12772
|
+
const formErrors = ref([]);
|
|
12773
|
+
const honeypot = ref("");
|
|
12774
|
+
const submitting = ref(false);
|
|
12775
|
+
const success = ref(null);
|
|
12776
|
+
let submissionId = 0;
|
|
12777
|
+
const turnstileRoot = ref(null);
|
|
12778
|
+
const turnstile = useTurnstile(computed(() => success.value ? null : form.value?.turnstileSiteKey ?? null), turnstileRoot);
|
|
12779
|
+
function clear() {
|
|
12780
|
+
submissionId += 1;
|
|
12781
|
+
submitting.value = false;
|
|
12782
|
+
for (const id of Object.keys(values)) delete values[id];
|
|
12783
|
+
for (const id of Object.keys(errors)) delete errors[id];
|
|
12784
|
+
formErrors.value = [];
|
|
12785
|
+
honeypot.value = "";
|
|
12786
|
+
success.value = null;
|
|
12787
|
+
}
|
|
12788
|
+
watch(() => form.value?.key, () => clear());
|
|
12789
|
+
watch(() => form.value?.fields, (fields) => {
|
|
12790
|
+
const ids = new Set((fields ?? []).map((field) => field.id));
|
|
12791
|
+
for (const id of Object.keys(values)) if (!ids.has(id)) delete values[id];
|
|
12792
|
+
for (const field of fields ?? []) {
|
|
12793
|
+
const current = values[field.id];
|
|
12794
|
+
const wantsBoolean = isBooleanField(field);
|
|
12795
|
+
if (current === void 0 || typeof current === "boolean" !== wantsBoolean) values[field.id] = emptyValue(field);
|
|
12796
|
+
}
|
|
12797
|
+
}, { immediate: true });
|
|
12798
|
+
function setValue(id, value) {
|
|
12799
|
+
values[id] = value;
|
|
12800
|
+
errors[id] = void 0;
|
|
12801
|
+
}
|
|
12802
|
+
function validate(definition) {
|
|
12803
|
+
let valid = true;
|
|
12804
|
+
for (const field of definition.fields) {
|
|
12805
|
+
const message = validateSiteFormValue(field, values[field.id], m.value);
|
|
12806
|
+
errors[field.id] = message ?? void 0;
|
|
12807
|
+
if (message !== null) valid = false;
|
|
12808
|
+
}
|
|
12809
|
+
return valid;
|
|
12810
|
+
}
|
|
12811
|
+
function showRefusal(definition, fieldMessages, formMessages) {
|
|
12812
|
+
const rendered = new Set(definition.fields.map((field) => field.id));
|
|
12813
|
+
for (const field of definition.fields) errors[field.id] = fieldMessages[field.id]?.[0];
|
|
12814
|
+
const orphaned = Object.entries(fieldMessages).filter(([id]) => !rendered.has(id)).flatMap(([, messages]) => messages);
|
|
12815
|
+
const summary = [...formMessages, ...orphaned];
|
|
12816
|
+
const marksAField = definition.fields.some((field) => errors[field.id] !== void 0);
|
|
12817
|
+
formErrors.value = summary.length > 0 || marksAField ? summary : [m.value.formRefused];
|
|
12818
|
+
}
|
|
12819
|
+
async function submit() {
|
|
12820
|
+
const definition = form.value;
|
|
12821
|
+
if (!definition || submitting.value || success.value) return { kind: "ignored" };
|
|
12822
|
+
formErrors.value = [];
|
|
12823
|
+
if (!validate(definition)) return { kind: "invalid" };
|
|
12824
|
+
if (definition.turnstileSiteKey !== null && turnstile.token.value === null) {
|
|
12825
|
+
formErrors.value = [turnstile.failed.value ? m.value.formSpamCheckFailed : m.value.formSpamCheckRequired];
|
|
12826
|
+
return { kind: "invalid" };
|
|
12827
|
+
}
|
|
12828
|
+
const submission = {};
|
|
12829
|
+
for (const field of definition.fields) submission[field.id] = values[field.id] ?? "";
|
|
12830
|
+
const token = turnstile.token.value;
|
|
12831
|
+
const pagePath = toValue(options.pagePath) ?? (typeof window === "undefined" ? "/" : window.location.pathname);
|
|
12832
|
+
const id = ++submissionId;
|
|
12833
|
+
submitting.value = true;
|
|
12834
|
+
let answer;
|
|
12835
|
+
try {
|
|
12836
|
+
answer = await toValue(options.client).forms.submit(definition.key, {
|
|
12837
|
+
values: submission,
|
|
12838
|
+
locale: toValue(options.locale),
|
|
12839
|
+
pagePath,
|
|
12840
|
+
...token ? { turnstileToken: token } : {},
|
|
12841
|
+
...honeypot.value ? { hp: honeypot.value } : {}
|
|
12842
|
+
});
|
|
12843
|
+
} catch (cause) {
|
|
12844
|
+
if (id !== submissionId) return { kind: "ignored" };
|
|
12845
|
+
submitting.value = false;
|
|
12846
|
+
turnstile.reset();
|
|
12847
|
+
const reason = failureReason(cause);
|
|
12848
|
+
formErrors.value = [reason === "rate-limited" ? m.value.formRateLimited : reason === "too-large" ? m.value.formTooLarge : m.value.formUnavailable];
|
|
12849
|
+
return {
|
|
12850
|
+
kind: "failed",
|
|
12851
|
+
failure: {
|
|
12852
|
+
reason,
|
|
12853
|
+
cause
|
|
12854
|
+
}
|
|
12855
|
+
};
|
|
12856
|
+
}
|
|
12857
|
+
if (id !== submissionId) return { kind: "ignored" };
|
|
12858
|
+
submitting.value = false;
|
|
12859
|
+
if (answer.status === "ok") {
|
|
12860
|
+
success.value = {
|
|
12861
|
+
pending: answer.pending,
|
|
12862
|
+
redirect: definition.successRedirect
|
|
12863
|
+
};
|
|
12864
|
+
return {
|
|
12865
|
+
kind: "success",
|
|
12866
|
+
success: success.value
|
|
12867
|
+
};
|
|
12868
|
+
}
|
|
12869
|
+
turnstile.reset();
|
|
12870
|
+
showRefusal(definition, answer.errors, answer.form);
|
|
12871
|
+
return {
|
|
12872
|
+
kind: "failed",
|
|
12873
|
+
failure: { reason: "refused" }
|
|
12874
|
+
};
|
|
12875
|
+
}
|
|
12876
|
+
function reset() {
|
|
12877
|
+
const fields = form.value?.fields ?? [];
|
|
12878
|
+
clear();
|
|
12879
|
+
for (const field of fields) values[field.id] = emptyValue(field);
|
|
12880
|
+
}
|
|
12881
|
+
return {
|
|
12882
|
+
form,
|
|
12883
|
+
status,
|
|
12884
|
+
values,
|
|
12885
|
+
errors,
|
|
12886
|
+
formErrors,
|
|
12887
|
+
honeypot,
|
|
12888
|
+
turnstileRoot,
|
|
12889
|
+
submitting,
|
|
12890
|
+
success,
|
|
12891
|
+
setValue,
|
|
12892
|
+
submit,
|
|
12893
|
+
reset
|
|
12894
|
+
};
|
|
12895
|
+
}
|
|
12896
|
+
//#endregion
|
|
12897
|
+
//#region src/components/site-form/SiteForm.vue?vue&type=script&setup=true&lang.ts
|
|
12898
|
+
var _hoisted_1$6 = {
|
|
12899
|
+
key: 0,
|
|
12900
|
+
class: "sr-only",
|
|
12901
|
+
"aria-hidden": "true",
|
|
12902
|
+
inert: ""
|
|
12903
|
+
};
|
|
12904
|
+
var _hoisted_2$1 = ["name"];
|
|
12905
|
+
var _hoisted_3$1 = ["id"];
|
|
12906
|
+
var _hoisted_4$1 = {
|
|
12907
|
+
key: 0,
|
|
12908
|
+
class: "grid w-full gap-2"
|
|
12909
|
+
};
|
|
12910
|
+
var _hoisted_5$1 = ["id"];
|
|
12911
|
+
//#endregion
|
|
12912
|
+
//#region src/components/site-form/SiteForm.vue
|
|
12913
|
+
var SiteForm_default = /* @__PURE__ */ defineComponent({
|
|
12914
|
+
__name: "SiteForm",
|
|
12915
|
+
props: {
|
|
12916
|
+
definition: { default: void 0 },
|
|
12917
|
+
formKey: { default: void 0 },
|
|
12918
|
+
client: {},
|
|
12919
|
+
locale: {},
|
|
12920
|
+
pagePath: { default: void 0 },
|
|
12921
|
+
layout: { default: "single" },
|
|
12922
|
+
heading: { default: void 0 },
|
|
12923
|
+
headingLevel: { default: 2 },
|
|
12924
|
+
submitLabel: { default: void 0 },
|
|
12925
|
+
navigate: {
|
|
12926
|
+
type: Function,
|
|
12927
|
+
default: void 0
|
|
12928
|
+
},
|
|
12929
|
+
messages: { default: void 0 },
|
|
12930
|
+
classes: { default: void 0 }
|
|
12931
|
+
},
|
|
12932
|
+
emits: ["success", "error"],
|
|
12933
|
+
setup(__props, { emit: __emit }) {
|
|
12934
|
+
const props = __props;
|
|
12935
|
+
const emit = __emit;
|
|
12936
|
+
const m = useMessages(() => props.messages);
|
|
12937
|
+
const subtreeMessages = reactive({ ...m.value });
|
|
12938
|
+
watch(m, (next) => Object.assign(subtreeMessages, next));
|
|
12939
|
+
provideEldraUiMessages(subtreeMessages);
|
|
12940
|
+
const site = useSiteForm({
|
|
12941
|
+
definition: () => props.definition,
|
|
12942
|
+
formKey: () => props.formKey,
|
|
12943
|
+
client: () => props.client,
|
|
12944
|
+
locale: () => props.locale,
|
|
12945
|
+
pagePath: () => props.pagePath,
|
|
12946
|
+
messages: () => props.messages
|
|
12947
|
+
});
|
|
12948
|
+
const { form, status, values, errors, formErrors, honeypot, submitting, success } = site;
|
|
12949
|
+
const setTurnstileRoot = (element) => {
|
|
12950
|
+
site.turnstileRoot.value = element instanceof HTMLElement ? element : null;
|
|
12951
|
+
};
|
|
12952
|
+
const uid = useUiId("site-form");
|
|
12953
|
+
const fieldId = (id) => `${uid.value}-${id}`;
|
|
12954
|
+
const errorId = (id) => `${fieldId(id)}-error`;
|
|
12955
|
+
const consentId = computed(() => `${uid.value}-consent`);
|
|
12956
|
+
const isInlineRow = computed(() => {
|
|
12957
|
+
const fields = form.value?.fields ?? [];
|
|
12958
|
+
const only = fields[0];
|
|
12959
|
+
return props.layout === "inline" && fields.length === 1 && only !== void 0 && !isBooleanField(only) && only.type !== "textarea" && only.type !== "select";
|
|
12960
|
+
});
|
|
12961
|
+
const layout = computed(() => props.layout === "inline" ? isInlineRow.value ? "inline" : "single" : props.layout);
|
|
12962
|
+
const INPUT_TYPE = {
|
|
12963
|
+
email: "email",
|
|
12964
|
+
phone: "tel",
|
|
12965
|
+
url: "url"
|
|
12966
|
+
};
|
|
12967
|
+
const INPUT_MODE = {
|
|
12968
|
+
email: "email",
|
|
12969
|
+
phone: "tel",
|
|
12970
|
+
url: "url",
|
|
12971
|
+
number: "decimal"
|
|
12972
|
+
};
|
|
12973
|
+
const AUTOCOMPLETE_BY_ID = {
|
|
12974
|
+
name: "name",
|
|
12975
|
+
email: "email",
|
|
12976
|
+
phone: "tel",
|
|
12977
|
+
tel: "tel",
|
|
12978
|
+
company: "organization"
|
|
12979
|
+
};
|
|
12980
|
+
const AUTOCOMPLETE_BY_TYPE = {
|
|
12981
|
+
email: "email",
|
|
12982
|
+
phone: "tel",
|
|
12983
|
+
url: "url"
|
|
12984
|
+
};
|
|
12985
|
+
const autocompleteFor = (field) => AUTOCOMPLETE_BY_TYPE[field.type] ?? AUTOCOMPLETE_BY_ID[field.id.toLowerCase()];
|
|
12986
|
+
const textOf = (id) => {
|
|
12987
|
+
const value = values[id];
|
|
12988
|
+
return typeof value === "string" ? value : "";
|
|
12989
|
+
};
|
|
12990
|
+
const setValue = (id, value) => site.setValue(id, value ?? "");
|
|
12991
|
+
const submitText = computed(() => props.submitLabel ?? m.value.formSubmit);
|
|
12992
|
+
const successTitle = computed(() => success.value?.pending ? m.value.formPendingTitle : m.value.formSuccessTitle);
|
|
12993
|
+
const successMessage = computed(() => form.value?.successMessage || (success.value?.pending ? m.value.formPendingMessage : ""));
|
|
12994
|
+
const spansRow = computed(() => cx(layout.value === "two" && "@two-col:col-span-2", layout.value === "inline" && "basis-full"));
|
|
12995
|
+
const rootClass = computed(() => partClass("", props.classes, "root"));
|
|
12996
|
+
const noticeClass = computed(() => partClass("text-body-sm text-muted", props.classes, "notice"));
|
|
12997
|
+
const layoutClasses = computed(() => ({
|
|
12998
|
+
root: props.classes?.form,
|
|
12999
|
+
heading: props.classes?.heading,
|
|
13000
|
+
errorSummary: props.classes?.errorSummary,
|
|
13001
|
+
fields: props.classes?.fields,
|
|
13002
|
+
actions: props.classes?.actions
|
|
13003
|
+
}));
|
|
13004
|
+
const fieldClasses = computed(() => ({
|
|
13005
|
+
root: props.classes?.field,
|
|
13006
|
+
label: props.classes?.label,
|
|
13007
|
+
requiredMark: props.classes?.requiredMark,
|
|
13008
|
+
optionalText: props.classes?.optionalText,
|
|
13009
|
+
error: props.classes?.error
|
|
13010
|
+
}));
|
|
13011
|
+
const errorClasses = computed(() => ({ error: props.classes?.error }));
|
|
13012
|
+
const controlClasses = computed(() => ({ control: props.classes?.control }));
|
|
13013
|
+
const selectClasses = computed(() => ({ trigger: props.classes?.control }));
|
|
13014
|
+
const checkboxClasses = computed(() => ({ root: props.classes?.checkbox }));
|
|
13015
|
+
const booleanFieldClass = computed(() => partClass(cx("grid gap-1", spansRow.value), props.classes, "field"));
|
|
13016
|
+
const turnstileClass = computed(() => partClass(cx(spansRow.value, layout.value === "inline" && "order-2"), props.classes, "turnstile"));
|
|
13017
|
+
const consentClass = computed(() => partClass(cx("text-body-sm text-muted", layout.value === "inline" && "order-3 basis-full"), props.classes, "consentText"));
|
|
13018
|
+
const consentUnderButton = computed(() => Boolean(form.value?.consentText) && layout.value !== "inline");
|
|
13019
|
+
const submitClasses = computed(() => ({ container: partClass(consentUnderButton.value ? "@two-col:justify-self-end" : "", props.classes, "submit") }));
|
|
13020
|
+
const successClass = computed(() => partClass("grid gap-1 focus:outline-none", props.classes, "success"));
|
|
13021
|
+
const successTitleClass = computed(() => partClass("text-body text-text font-semibold", props.classes, "successTitle"));
|
|
13022
|
+
const successMessageClass = computed(() => partClass("text-body text-muted", props.classes, "successMessage"));
|
|
13023
|
+
const successRoot = ref(null);
|
|
13024
|
+
async function focusFirstInvalid() {
|
|
13025
|
+
await nextTick();
|
|
13026
|
+
const first = (form.value?.fields ?? []).find((field) => errors[field.id]);
|
|
13027
|
+
const element = first ? document.getElementById(fieldId(first.id)) : null;
|
|
13028
|
+
if (element) focusInvalid(element);
|
|
13029
|
+
}
|
|
13030
|
+
async function onSubmit({ event }) {
|
|
13031
|
+
event.preventDefault();
|
|
13032
|
+
const outcome = await site.submit();
|
|
13033
|
+
if (outcome.kind === "invalid") {
|
|
13034
|
+
await focusFirstInvalid();
|
|
13035
|
+
return;
|
|
13036
|
+
}
|
|
13037
|
+
if (outcome.kind === "failed") {
|
|
13038
|
+
emit("error", outcome.failure);
|
|
13039
|
+
if (outcome.failure.reason === "refused") await focusFirstInvalid();
|
|
13040
|
+
return;
|
|
13041
|
+
}
|
|
13042
|
+
if (outcome.kind !== "success") return;
|
|
13043
|
+
emit("success", outcome.success);
|
|
13044
|
+
const redirect = outcome.success.redirect;
|
|
13045
|
+
if (redirect !== null) {
|
|
13046
|
+
if (redirect.startsWith("/") && props.navigate) props.navigate(redirect);
|
|
13047
|
+
else window.location.assign(redirect);
|
|
13048
|
+
return;
|
|
13049
|
+
}
|
|
13050
|
+
await nextTick();
|
|
13051
|
+
successRoot.value?.focus();
|
|
13052
|
+
}
|
|
13053
|
+
async function sendAnother() {
|
|
13054
|
+
site.reset();
|
|
13055
|
+
await nextTick();
|
|
13056
|
+
const first = form.value?.fields[0];
|
|
13057
|
+
const element = first ? document.getElementById(fieldId(first.id)) : null;
|
|
13058
|
+
if (element) focusInvalid(element);
|
|
13059
|
+
}
|
|
13060
|
+
return (_ctx, _cache) => {
|
|
13061
|
+
return openBlock(), createElementBlock("div", {
|
|
13062
|
+
"data-eldra-ui": "",
|
|
13063
|
+
"data-part": "root",
|
|
13064
|
+
class: normalizeClass(rootClass.value)
|
|
13065
|
+
}, [unref(status) === "loading" ? renderSlot(_ctx.$slots, "loading", {}, () => [createElementVNode("p", {
|
|
13066
|
+
"data-part": "notice",
|
|
13067
|
+
role: "status",
|
|
13068
|
+
class: normalizeClass(noticeClass.value)
|
|
13069
|
+
}, toDisplayString(unref(m).formLoading), 3)], void 0, 0) : unref(status) === "failed" || !unref(form) ? renderSlot(_ctx.$slots, "failed", {}, () => [createElementVNode("p", {
|
|
13070
|
+
"data-part": "notice",
|
|
13071
|
+
role: "alert",
|
|
13072
|
+
class: normalizeClass(noticeClass.value)
|
|
13073
|
+
}, toDisplayString(unref(m).formLoadFailed), 3)], void 0, 1) : unref(success) ? (openBlock(), createElementBlock("div", {
|
|
13074
|
+
key: 2,
|
|
13075
|
+
ref_key: "successRoot",
|
|
13076
|
+
ref: successRoot,
|
|
13077
|
+
"data-part": "success",
|
|
13078
|
+
role: "status",
|
|
13079
|
+
tabindex: "-1",
|
|
13080
|
+
class: normalizeClass(successClass.value)
|
|
13081
|
+
}, [renderSlot(_ctx.$slots, "success", {
|
|
13082
|
+
pending: unref(success).pending,
|
|
13083
|
+
title: successTitle.value,
|
|
13084
|
+
message: successMessage.value,
|
|
13085
|
+
reset: sendAnother
|
|
13086
|
+
}, () => [createElementVNode("p", {
|
|
13087
|
+
"data-part": "successTitle",
|
|
13088
|
+
class: normalizeClass(successTitleClass.value)
|
|
13089
|
+
}, toDisplayString(successTitle.value), 3), successMessage.value ? (openBlock(), createElementBlock("p", {
|
|
13090
|
+
key: 0,
|
|
13091
|
+
"data-part": "successMessage",
|
|
13092
|
+
class: normalizeClass(successMessageClass.value)
|
|
13093
|
+
}, toDisplayString(successMessage.value), 3)) : createCommentVNode("", true)])], 2)) : (openBlock(), createBlock(FormLayout_default, {
|
|
13094
|
+
key: 3,
|
|
13095
|
+
layout: layout.value,
|
|
13096
|
+
heading: __props.heading,
|
|
13097
|
+
"heading-level": __props.headingLevel,
|
|
13098
|
+
"aria-label": __props.heading ? void 0 : unref(form).name,
|
|
13099
|
+
submitting: unref(submitting),
|
|
13100
|
+
classes: layoutClasses.value,
|
|
13101
|
+
onSubmit
|
|
13102
|
+
}, createSlots({
|
|
13103
|
+
actions: withCtx(() => [consentUnderButton.value ? (openBlock(), createElementBlock("div", _hoisted_4$1, [renderSlot(_ctx.$slots, "submit", {
|
|
13104
|
+
label: submitText.value,
|
|
13105
|
+
submitting: unref(submitting),
|
|
13106
|
+
describedBy: consentId.value
|
|
13107
|
+
}, () => [createVNode(Button_default, {
|
|
13108
|
+
type: "submit",
|
|
13109
|
+
variant: "primary",
|
|
13110
|
+
label: unref(m).formSubmitting,
|
|
13111
|
+
"aria-describedby": consentId.value,
|
|
13112
|
+
classes: submitClasses.value
|
|
13113
|
+
}, {
|
|
13114
|
+
default: withCtx(() => [createTextVNode(toDisplayString(submitText.value), 1)]),
|
|
13115
|
+
_: 1
|
|
13116
|
+
}, 8, [
|
|
13117
|
+
"label",
|
|
13118
|
+
"aria-describedby",
|
|
13119
|
+
"classes"
|
|
13120
|
+
])]), createElementVNode("p", {
|
|
13121
|
+
id: consentId.value,
|
|
13122
|
+
"data-part": "consentText",
|
|
13123
|
+
class: normalizeClass(consentClass.value)
|
|
13124
|
+
}, toDisplayString(unref(form).consentText), 11, _hoisted_5$1)])) : renderSlot(_ctx.$slots, "submit", {
|
|
13125
|
+
label: submitText.value,
|
|
13126
|
+
submitting: unref(submitting),
|
|
13127
|
+
describedBy: unref(form).consentText ? consentId.value : void 0
|
|
13128
|
+
}, () => [createVNode(Button_default, {
|
|
13129
|
+
type: "submit",
|
|
13130
|
+
variant: "primary",
|
|
13131
|
+
label: unref(m).formSubmitting,
|
|
13132
|
+
"aria-describedby": unref(form).consentText ? consentId.value : void 0,
|
|
13133
|
+
classes: submitClasses.value
|
|
13134
|
+
}, {
|
|
13135
|
+
default: withCtx(() => [createTextVNode(toDisplayString(submitText.value), 1)]),
|
|
13136
|
+
_: 1
|
|
13137
|
+
}, 8, [
|
|
13138
|
+
"label",
|
|
13139
|
+
"aria-describedby",
|
|
13140
|
+
"classes"
|
|
13141
|
+
])], void 0, 1)]),
|
|
13142
|
+
default: withCtx(() => [
|
|
13143
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(form).fields, (field) => {
|
|
13144
|
+
return openBlock(), createElementBlock(Fragment, { key: field.id }, [unref(isBooleanField)(field) ? (openBlock(), createElementBlock("div", {
|
|
13145
|
+
key: 0,
|
|
13146
|
+
"data-part": "field",
|
|
13147
|
+
class: normalizeClass(booleanFieldClass.value)
|
|
13148
|
+
}, [createVNode(Checkbox_default, {
|
|
13149
|
+
id: fieldId(field.id),
|
|
13150
|
+
"model-value": unref(values)[field.id] === true,
|
|
13151
|
+
name: field.id,
|
|
13152
|
+
required: field.required,
|
|
13153
|
+
invalid: Boolean(unref(errors)[field.id]),
|
|
13154
|
+
"described-by": unref(errors)[field.id] ? errorId(field.id) : void 0,
|
|
13155
|
+
classes: checkboxClasses.value,
|
|
13156
|
+
"onUpdate:modelValue": ($event) => setValue(field.id, $event)
|
|
13157
|
+
}, {
|
|
13158
|
+
default: withCtx(() => [createTextVNode(toDisplayString(field.label), 1)]),
|
|
13159
|
+
_: 2
|
|
13160
|
+
}, 1032, [
|
|
13161
|
+
"id",
|
|
13162
|
+
"model-value",
|
|
13163
|
+
"name",
|
|
13164
|
+
"required",
|
|
13165
|
+
"invalid",
|
|
13166
|
+
"described-by",
|
|
13167
|
+
"classes",
|
|
13168
|
+
"onUpdate:modelValue"
|
|
13169
|
+
]), unref(errors)[field.id] ? (openBlock(), createBlock(FieldError_default, {
|
|
13170
|
+
key: 0,
|
|
13171
|
+
id: errorId(field.id),
|
|
13172
|
+
classes: errorClasses.value
|
|
13173
|
+
}, {
|
|
13174
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(errors)[field.id]), 1)]),
|
|
13175
|
+
_: 2
|
|
13176
|
+
}, 1032, ["id", "classes"])) : createCommentVNode("", true)], 2)) : (openBlock(), createBlock(FieldWrapper_default, {
|
|
13177
|
+
key: 1,
|
|
13178
|
+
id: fieldId(field.id),
|
|
13179
|
+
label: field.label,
|
|
13180
|
+
required: field.required,
|
|
13181
|
+
optional: !field.required && unref(form).fields.length > 1,
|
|
13182
|
+
full: field.type === "textarea",
|
|
13183
|
+
error: unref(errors)[field.id],
|
|
13184
|
+
classes: fieldClasses.value
|
|
13185
|
+
}, {
|
|
13186
|
+
default: withCtx(() => [field.type === "textarea" ? (openBlock(), createBlock(Textarea_default, {
|
|
13187
|
+
key: 0,
|
|
13188
|
+
"model-value": textOf(field.id),
|
|
13189
|
+
name: field.id,
|
|
13190
|
+
placeholder: field.placeholder,
|
|
13191
|
+
classes: controlClasses.value,
|
|
13192
|
+
"onUpdate:modelValue": ($event) => setValue(field.id, $event)
|
|
13193
|
+
}, null, 8, [
|
|
13194
|
+
"model-value",
|
|
13195
|
+
"name",
|
|
13196
|
+
"placeholder",
|
|
13197
|
+
"classes",
|
|
13198
|
+
"onUpdate:modelValue"
|
|
13199
|
+
])) : field.type === "select" ? (openBlock(), createBlock(Select_default, {
|
|
13200
|
+
key: 1,
|
|
13201
|
+
"model-value": textOf(field.id),
|
|
13202
|
+
name: field.id,
|
|
13203
|
+
options: field.options ?? [],
|
|
13204
|
+
placeholder: field.placeholder,
|
|
13205
|
+
clearable: !field.required,
|
|
13206
|
+
classes: selectClasses.value,
|
|
13207
|
+
"onUpdate:modelValue": ($event) => setValue(field.id, $event)
|
|
13208
|
+
}, null, 8, [
|
|
13209
|
+
"model-value",
|
|
13210
|
+
"name",
|
|
13211
|
+
"options",
|
|
13212
|
+
"placeholder",
|
|
13213
|
+
"clearable",
|
|
13214
|
+
"classes",
|
|
13215
|
+
"onUpdate:modelValue"
|
|
13216
|
+
])) : (openBlock(), createBlock(Input_default, {
|
|
13217
|
+
key: 2,
|
|
13218
|
+
"model-value": textOf(field.id),
|
|
13219
|
+
type: INPUT_TYPE[field.type] ?? "text",
|
|
13220
|
+
inputmode: INPUT_MODE[field.type],
|
|
13221
|
+
autocomplete: autocompleteFor(field),
|
|
13222
|
+
name: field.id,
|
|
13223
|
+
placeholder: field.placeholder,
|
|
13224
|
+
classes: controlClasses.value,
|
|
13225
|
+
"onUpdate:modelValue": ($event) => setValue(field.id, $event)
|
|
13226
|
+
}, null, 8, [
|
|
13227
|
+
"model-value",
|
|
13228
|
+
"type",
|
|
13229
|
+
"inputmode",
|
|
13230
|
+
"autocomplete",
|
|
13231
|
+
"name",
|
|
13232
|
+
"placeholder",
|
|
13233
|
+
"classes",
|
|
13234
|
+
"onUpdate:modelValue"
|
|
13235
|
+
]))]),
|
|
13236
|
+
_: 2
|
|
13237
|
+
}, 1032, [
|
|
13238
|
+
"id",
|
|
13239
|
+
"label",
|
|
13240
|
+
"required",
|
|
13241
|
+
"optional",
|
|
13242
|
+
"full",
|
|
13243
|
+
"error",
|
|
13244
|
+
"classes"
|
|
13245
|
+
]))], 64);
|
|
13246
|
+
}), 128)),
|
|
13247
|
+
unref(form).honeypotField ? (openBlock(), createElementBlock("div", _hoisted_1$6, [withDirectives(createElementVNode("input", {
|
|
13248
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(honeypot) ? honeypot.value = $event : null),
|
|
13249
|
+
type: "text",
|
|
13250
|
+
name: unref(form).honeypotField,
|
|
13251
|
+
tabindex: "-1",
|
|
13252
|
+
autocomplete: "off"
|
|
13253
|
+
}, null, 8, _hoisted_2$1), [[vModelText, unref(honeypot)]])])) : createCommentVNode("", true),
|
|
13254
|
+
unref(form).turnstileSiteKey ? (openBlock(), createElementBlock("div", {
|
|
13255
|
+
key: 1,
|
|
13256
|
+
ref: setTurnstileRoot,
|
|
13257
|
+
"data-part": "turnstile",
|
|
13258
|
+
class: normalizeClass(turnstileClass.value)
|
|
13259
|
+
}, null, 2)) : createCommentVNode("", true),
|
|
13260
|
+
unref(form).consentText && layout.value === "inline" ? (openBlock(), createElementBlock("p", {
|
|
13261
|
+
key: 2,
|
|
13262
|
+
id: consentId.value,
|
|
13263
|
+
"data-part": "consentText",
|
|
13264
|
+
class: normalizeClass(consentClass.value)
|
|
13265
|
+
}, toDisplayString(unref(form).consentText), 11, _hoisted_3$1)) : createCommentVNode("", true)
|
|
13266
|
+
]),
|
|
13267
|
+
_: 2
|
|
13268
|
+
}, [unref(formErrors).length > 0 ? {
|
|
13269
|
+
name: "errorSummary",
|
|
13270
|
+
fn: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(formErrors), (message, index) => {
|
|
13271
|
+
return openBlock(), createElementBlock("p", {
|
|
13272
|
+
key: index,
|
|
13273
|
+
class: "m-0"
|
|
13274
|
+
}, toDisplayString(message), 1);
|
|
13275
|
+
}), 128))]),
|
|
13276
|
+
key: "0"
|
|
13277
|
+
} : void 0]), 1032, [
|
|
13278
|
+
"layout",
|
|
13279
|
+
"heading",
|
|
13280
|
+
"heading-level",
|
|
13281
|
+
"aria-label",
|
|
13282
|
+
"submitting",
|
|
13283
|
+
"classes"
|
|
13284
|
+
]))], 2);
|
|
13285
|
+
};
|
|
13286
|
+
}
|
|
13287
|
+
});
|
|
13288
|
+
//#endregion
|
|
12489
13289
|
//#region src/components/tabs/context.ts
|
|
12490
13290
|
/** The key `Tabs` provides its `TabsContext` on. */
|
|
12491
13291
|
var TABS_KEY = Symbol("eldra-ui:tabs");
|
|
@@ -12670,6 +13470,131 @@ var TabPanel_default = /* @__PURE__ */ defineComponent({
|
|
|
12670
13470
|
}
|
|
12671
13471
|
});
|
|
12672
13472
|
//#endregion
|
|
13473
|
+
//#region src/components/tabler-icon/tablerIconName.ts
|
|
13474
|
+
var STEGA_CHARACTERS = /[]/g;
|
|
13475
|
+
var EXPORT_NAME = /^Icon[A-Z0-9][A-Za-z0-9]*$/;
|
|
13476
|
+
var KEBAB_NAME = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
13477
|
+
/** The `@tabler/icons-vue` export name (`IconCashRegister`) for a field value in either form Studio content holds, or `null`. */
|
|
13478
|
+
function tablerIconName(value) {
|
|
13479
|
+
const name = value.replace(STEGA_CHARACTERS, "").trim();
|
|
13480
|
+
if (EXPORT_NAME.test(name)) return name;
|
|
13481
|
+
if (!KEBAB_NAME.test(name)) return null;
|
|
13482
|
+
return `Icon${name.split("-").map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join("")}`;
|
|
13483
|
+
}
|
|
13484
|
+
//#endregion
|
|
13485
|
+
//#region src/components/tabler-icon/registry.ts
|
|
13486
|
+
var bodies = /* @__PURE__ */ new Map();
|
|
13487
|
+
var warned = /* @__PURE__ */ new Set();
|
|
13488
|
+
function warnTablerIconOnce(key, message) {
|
|
13489
|
+
if (warned.has(key)) return;
|
|
13490
|
+
warned.add(key);
|
|
13491
|
+
console.warn(`[@eldrajs/ui] TablerIcon: ${message}`);
|
|
13492
|
+
}
|
|
13493
|
+
/** An icon's markup once loaded: a string, `null` for a name Tabler does not have, `undefined` before it loads. */
|
|
13494
|
+
function cachedTablerIcon(name) {
|
|
13495
|
+
return bodies.get(name);
|
|
13496
|
+
}
|
|
13497
|
+
/** Loads an icon's markup by export name: `null` for an unknown name, `undefined` for a failed load. Never rejects. */
|
|
13498
|
+
async function loadTablerIcon(name) {
|
|
13499
|
+
const cached = bodies.get(name);
|
|
13500
|
+
if (cached !== void 0) return cached;
|
|
13501
|
+
try {
|
|
13502
|
+
const { tablerIconBody } = await import("./tablerIconData-CQubY1fX.js");
|
|
13503
|
+
const body = await tablerIconBody(name);
|
|
13504
|
+
bodies.set(name, body);
|
|
13505
|
+
if (body === null) warnTablerIconOnce(name, `no Tabler icon is named "${name}"; it renders empty.`);
|
|
13506
|
+
return body;
|
|
13507
|
+
} catch (error) {
|
|
13508
|
+
warnTablerIconOnce(`load:${name}`, `"${name}" could not be loaded (${String(error)}).`);
|
|
13509
|
+
return;
|
|
13510
|
+
}
|
|
13511
|
+
}
|
|
13512
|
+
/** Loads the named icons ahead of render, so a page rendered in the browser draws them in its first frame. */
|
|
13513
|
+
async function preloadTablerIcons(values) {
|
|
13514
|
+
const names = /* @__PURE__ */ new Set();
|
|
13515
|
+
for (const value of typeof values === "string" ? [values] : values) {
|
|
13516
|
+
const name = value ? tablerIconName(value) : null;
|
|
13517
|
+
if (name !== null) names.add(name);
|
|
13518
|
+
}
|
|
13519
|
+
await Promise.all([...names].map(loadTablerIcon));
|
|
13520
|
+
}
|
|
13521
|
+
//#endregion
|
|
13522
|
+
//#region src/components/tabler-icon/TablerIcon.vue
|
|
13523
|
+
var TablerIcon_default = /* @__PURE__ */ defineComponent({
|
|
13524
|
+
__name: "TablerIcon",
|
|
13525
|
+
props: {
|
|
13526
|
+
name: { default: void 0 },
|
|
13527
|
+
size: { default: "md" },
|
|
13528
|
+
label: { default: void 0 },
|
|
13529
|
+
strokeWidth: { default: ICON_STROKE_WIDTH$4 },
|
|
13530
|
+
classes: { default: void 0 }
|
|
13531
|
+
},
|
|
13532
|
+
setup(__props) {
|
|
13533
|
+
const props = __props;
|
|
13534
|
+
const OUTLINE = {
|
|
13535
|
+
fill: "none",
|
|
13536
|
+
stroke: "currentColor",
|
|
13537
|
+
"stroke-linecap": "round",
|
|
13538
|
+
"stroke-linejoin": "round"
|
|
13539
|
+
};
|
|
13540
|
+
const FILLED = {
|
|
13541
|
+
fill: "currentColor",
|
|
13542
|
+
stroke: "none"
|
|
13543
|
+
};
|
|
13544
|
+
const iconName = computed(() => tablerIconName(props.name ?? ""));
|
|
13545
|
+
const body = shallowRef(iconName.value === null ? void 0 : cachedTablerIcon(iconName.value));
|
|
13546
|
+
const root = useTemplateRef("root");
|
|
13547
|
+
watch(() => props.name, (value) => {
|
|
13548
|
+
if (value && iconName.value === null && /[A-Za-z0-9]/.test(value)) warnTablerIconOnce(value, `"${value}" is not a Tabler icon name; it renders nothing.`);
|
|
13549
|
+
}, { immediate: true });
|
|
13550
|
+
async function load(name) {
|
|
13551
|
+
const loaded = await loadTablerIcon(name);
|
|
13552
|
+
if (iconName.value === name) body.value = loaded;
|
|
13553
|
+
}
|
|
13554
|
+
onServerPrefetch(async () => {
|
|
13555
|
+
if (iconName.value !== null && body.value === void 0) await load(iconName.value);
|
|
13556
|
+
});
|
|
13557
|
+
onMounted(() => {
|
|
13558
|
+
const drawn = root.value?.getAttribute("data-tabler-icon");
|
|
13559
|
+
if (iconName.value !== null && body.value === void 0 && drawn !== iconName.value) load(iconName.value);
|
|
13560
|
+
});
|
|
13561
|
+
watch(iconName, (name) => {
|
|
13562
|
+
if (name === null) return;
|
|
13563
|
+
const cached = cachedTablerIcon(name);
|
|
13564
|
+
body.value = cached === void 0 ? "" : cached;
|
|
13565
|
+
if (cached === void 0) load(name);
|
|
13566
|
+
});
|
|
13567
|
+
const svgAttrs = computed(() => ({
|
|
13568
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13569
|
+
width: 24,
|
|
13570
|
+
height: 24,
|
|
13571
|
+
viewBox: "0 0 24 24",
|
|
13572
|
+
...iconName.value?.endsWith("Filled") ? FILLED : {
|
|
13573
|
+
...OUTLINE,
|
|
13574
|
+
"stroke-width": props.strokeWidth
|
|
13575
|
+
},
|
|
13576
|
+
class: partClass(`${ICON_SIZE_CLASS[props.size]} shrink-0`, props.classes, "root"),
|
|
13577
|
+
"aria-hidden": props.label === void 0 ? true : void 0,
|
|
13578
|
+
role: props.label === void 0 ? void 0 : "img",
|
|
13579
|
+
"aria-label": props.label,
|
|
13580
|
+
focusable: "false",
|
|
13581
|
+
...body.value === void 0 ? {} : {
|
|
13582
|
+
"data-tabler-icon": iconName.value,
|
|
13583
|
+
innerHTML: body.value ?? ""
|
|
13584
|
+
}
|
|
13585
|
+
}));
|
|
13586
|
+
return (_ctx, _cache) => {
|
|
13587
|
+
return iconName.value !== null ? (openBlock(), createElementBlock("svg", mergeProps({
|
|
13588
|
+
key: 0,
|
|
13589
|
+
ref_key: "root",
|
|
13590
|
+
ref: root,
|
|
13591
|
+
"data-eldra-ui": "",
|
|
13592
|
+
"data-part": "root"
|
|
13593
|
+
}, svgAttrs.value), null, 16)) : createCommentVNode("", true);
|
|
13594
|
+
};
|
|
13595
|
+
}
|
|
13596
|
+
});
|
|
13597
|
+
//#endregion
|
|
12673
13598
|
//#region src/components/tabs/Tabs.vue?vue&type=script&setup=true&lang.ts
|
|
12674
13599
|
var _hoisted_1$3 = ["aria-label"];
|
|
12675
13600
|
var PILLS_RING_RESERVE = "py-[calc(var(--eldra-focus-offset)_+_var(--eldra-focus-width))] -my-[calc(var(--eldra-focus-offset)_+_var(--eldra-focus-width))] px-[calc(var(--eldra-focus-offset)_+_var(--eldra-focus-width))] -mx-[calc(var(--eldra-focus-offset)_+_var(--eldra-focus-width))] scroll-px-[calc(var(--eldra-focus-offset)_+_var(--eldra-focus-width))]";
|
|
@@ -13553,4 +14478,4 @@ function mixToward(color, toward, percent) {
|
|
|
13553
14478
|
return `color-mix(in oklab, ${color}, ${toward} ${percent}%)`;
|
|
13554
14479
|
}
|
|
13555
14480
|
//#endregion
|
|
13556
|
-
export { ACCORDION_KEY, Accordion_default as Accordion, AccordionItem_default as AccordionItem, Avatar_default as Avatar, AvatarGroup_default as AvatarGroup, Badge_default as Badge, Breadcrumb_default as Breadcrumb, Button_default as Button, ButtonGroup_default as ButtonGroup, CHIP_GROUP_KEY, CURRENCY_KEY, Carousel_default as Carousel, Checkbox_default as Checkbox, CheckboxGroup_default as CheckboxGroup, Chip_default as Chip, ChipGroup_default as ChipGroup, Container_default as Container, ContentCard_default as ContentCard, CurrencyInput_default as CurrencyInput, DEFAULT_UI_LOCALE, Dialog_default as Dialog, Drawer_default as Drawer, EditorPlaceholder_default as EditorPlaceholder, EmptyState_default as EmptyState, FIELD_KEY, FILTER_SEARCH_FROM, FILTER_VALUES_SHOWN, FORM_LAYOUT_KEY, FORM_SUBMITTING_KEY, FeatureCard_default as FeatureCard, FieldWrapper_default as FieldWrapper, FilterPanel_default as FilterPanel, FormLayout_default as FormLayout, Icon_default as Icon, Image_default as Image, Input_default as Input, LOCALE_KEY, Lightbox_default as Lightbox, Link_default as Link, LoadMore_default as LoadMore, LogoItem_default as LogoItem, MESSAGES_KEY, MultiSelect_default as MultiSelect, NavMenu_default as NavMenu, Pagination_default as Pagination, Popover_default as Popover, Price_default as Price, ProductCard_default as ProductCard, QuantityStepper_default as QuantityStepper, RadioGroup_default as RadioGroup, RangeSlider_default as RangeSlider, Rating_default as Rating, SECTION_KEY, SWATCH_INK_LUMINANCE_THRESHOLD, SearchBar_default as SearchBar, SearchModal_default as SearchModal, Section_default as Section, Select_default as Select, Skeleton_default as Skeleton, StockBadge_default as StockBadge, Switch_default as Switch, TABS_KEY, TOAST_HOST_KEY, Tab_default as Tab, TabPanel_default as TabPanel, Tabs_default as Tabs, Textarea_default as Textarea, Toast_default as Toast, Toaster_default as Toaster, Tooltip_default as Tooltip, UnitInput_default as UnitInput, VariantPicker_default as VariantPicker, VisuallyHidden_default as VisuallyHidden, appliedFilters, applyMask, carouselPerViewStyle, clampRangeThumb, clearedSelection, closeDialog, createNumberFormat, currencyFractionDigits, currencySymbol, currentDialog, cx, defaultCharacterMeaning, enUS as defaultMessages, enUS, defaultUnitFormat, dropOmittedFacets, facetCanShowAll, facetHasHiddenValues, facetIsRenderable, facetIsSearchable, facetRows, facetSelectedCount, facetStartsOpen, facetSummaryLabels, facetValues, filterNumericBeforeInput, foldForSearch, formatCurrency, formatDate, formatNumber, formatUnit, fractionDigits, frameAspectRatio, hasSelection, histogramBarInRange, initialsFromName, isOpenDialog, isRangeAtLimits, isRangeSelection, isValueDisabled, isValueSelected, joinIds, localeSeparators, matchesSearch, mixToward, nearestRangeThumb, normalizeRangeValue, normalizeText, openDialog, parseLocaleNumber, partClass, prefersReducedMotion, provideEldraUiCurrency, provideEldraUiLocale, provideEldraUiMessages, rangeKeyTransition, rangeLimits, rangeOf, rangePositionToValue, rangeStepDigits, rangeThumbLimits, rangeValueToPercent, ratingStarStates, removeValue, renderableFacets, resolveCarouselPerView, roundRatingToHalf, selectedValues, setRange, sizeSystemGroups, snapToRangeStep, stripMask, swatchInk, swatchLuminance, toggleValue, useCarousel, useControllableModel, useDialog, useEldraUiCurrency, useEldraUiLocale, useFloating, useHeadingTag, useListbox, useMessages, useOverlay, usePopover, useSlotPresence, useToast, useUiId, visibleFacetValues, zoomSizes };
|
|
14481
|
+
export { ACCORDION_KEY, Accordion_default as Accordion, AccordionItem_default as AccordionItem, Avatar_default as Avatar, AvatarGroup_default as AvatarGroup, Badge_default as Badge, Breadcrumb_default as Breadcrumb, Button_default as Button, ButtonGroup_default as ButtonGroup, CHIP_GROUP_KEY, CURRENCY_KEY, Carousel_default as Carousel, Checkbox_default as Checkbox, CheckboxGroup_default as CheckboxGroup, Chip_default as Chip, ChipGroup_default as ChipGroup, Container_default as Container, ContentCard_default as ContentCard, CurrencyInput_default as CurrencyInput, DEFAULT_UI_LOCALE, Dialog_default as Dialog, Drawer_default as Drawer, EditorPlaceholder_default as EditorPlaceholder, EmptyState_default as EmptyState, FIELD_KEY, FILTER_SEARCH_FROM, FILTER_VALUES_SHOWN, FORM_LAYOUT_KEY, FORM_SUBMITTING_KEY, FeatureCard_default as FeatureCard, FieldWrapper_default as FieldWrapper, FilterPanel_default as FilterPanel, FormLayout_default as FormLayout, Icon_default as Icon, Image_default as Image, Input_default as Input, LOCALE_KEY, Lightbox_default as Lightbox, Link_default as Link, LoadMore_default as LoadMore, LogoItem_default as LogoItem, MESSAGES_KEY, MultiSelect_default as MultiSelect, NavMenu_default as NavMenu, Pagination_default as Pagination, Popover_default as Popover, Price_default as Price, ProductCard_default as ProductCard, QuantityStepper_default as QuantityStepper, RadioGroup_default as RadioGroup, RangeSlider_default as RangeSlider, Rating_default as Rating, SECTION_KEY, SWATCH_INK_LUMINANCE_THRESHOLD, SearchBar_default as SearchBar, SearchModal_default as SearchModal, Section_default as Section, Select_default as Select, SiteForm_default as SiteForm, Skeleton_default as Skeleton, StockBadge_default as StockBadge, Switch_default as Switch, TABS_KEY, TOAST_HOST_KEY, Tab_default as Tab, TabPanel_default as TabPanel, TablerIcon_default as TablerIcon, Tabs_default as Tabs, Textarea_default as Textarea, Toast_default as Toast, Toaster_default as Toaster, Tooltip_default as Tooltip, UnitInput_default as UnitInput, VariantPicker_default as VariantPicker, VisuallyHidden_default as VisuallyHidden, appliedFilters, applyMask, carouselPerViewStyle, clampRangeThumb, clearedSelection, closeDialog, createNumberFormat, currencyFractionDigits, currencySymbol, currentDialog, cx, defaultCharacterMeaning, enUS as defaultMessages, enUS, defaultUnitFormat, dropOmittedFacets, facetCanShowAll, facetHasHiddenValues, facetIsRenderable, facetIsSearchable, facetRows, facetSelectedCount, facetStartsOpen, facetSummaryLabels, facetValues, filterNumericBeforeInput, foldForSearch, formatCurrency, formatDate, formatNumber, formatUnit, fractionDigits, frameAspectRatio, hasSelection, histogramBarInRange, initialsFromName, isOpenDialog, isRangeAtLimits, isRangeSelection, isValueDisabled, isValueSelected, joinIds, localeSeparators, matchesSearch, mixToward, nearestRangeThumb, normalizeRangeValue, normalizeText, openDialog, parseLocaleNumber, partClass, prefersReducedMotion, preloadTablerIcons, provideEldraUiCurrency, provideEldraUiLocale, provideEldraUiMessages, rangeKeyTransition, rangeLimits, rangeOf, rangePositionToValue, rangeStepDigits, rangeThumbLimits, rangeValueToPercent, ratingStarStates, removeValue, renderableFacets, resolveCarouselPerView, roundRatingToHalf, selectedValues, setRange, sizeSystemGroups, snapToRangeStep, stripMask, swatchInk, swatchLuminance, tablerIconName, toggleValue, useCarousel, useControllableModel, useDialog, useEldraUiCurrency, useEldraUiLocale, useFloating, useHeadingTag, useListbox, useMessages, useOverlay, usePopover, useSiteForm, useSlotPresence, useToast, useUiId, visibleFacetValues, zoomSizes };
|