@punica/components 0.0.0-stage → 2.1.1
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 +48 -0
- package/LICENSE +21 -0
- package/README.md +139 -2
- package/bin/punica-components.mjs +138 -0
- package/custom-elements.json +38745 -0
- package/dist/ai/index.d.ts +39 -0
- package/dist/ai/index.mjs +615 -0
- package/dist/ai/node.d.ts +5 -0
- package/dist/ai/node.mjs +625 -0
- package/dist/esm/chunks/chunk-25RFU6B5.js +25 -0
- package/dist/esm/chunks/chunk-2EK3PZFT.js +179 -0
- package/dist/esm/chunks/chunk-2KBDCVUH.js +20 -0
- package/dist/esm/chunks/chunk-2NCRRDPI.js +151 -0
- package/dist/esm/chunks/chunk-33GO7Z32.js +40 -0
- package/dist/esm/chunks/chunk-36BKRO3B.js +281 -0
- package/dist/esm/chunks/chunk-3DWJAU5S.js +607 -0
- package/dist/esm/chunks/chunk-3GOFXBR7.js +61 -0
- package/dist/esm/chunks/chunk-3H5QEUFO.js +21 -0
- package/dist/esm/chunks/chunk-3NHCLXYC.js +6 -0
- package/dist/esm/chunks/chunk-3NQ2RVWE.js +36 -0
- package/dist/esm/chunks/chunk-3SYFLID6.js +20 -0
- package/dist/esm/chunks/chunk-3TK5BG5K.js +322 -0
- package/dist/esm/chunks/chunk-3WLKVJO4.js +36 -0
- package/dist/esm/chunks/chunk-427DCAZS.js +49 -0
- package/dist/esm/chunks/chunk-4446KGJH.js +67 -0
- package/dist/esm/chunks/chunk-45UR4HAQ.js +128 -0
- package/dist/esm/chunks/chunk-46P3CPXM.js +81 -0
- package/dist/esm/chunks/chunk-4C3AUANN.js +271 -0
- package/dist/esm/chunks/chunk-4RURT4SK.js +142 -0
- package/dist/esm/chunks/chunk-4XJKCJQG.js +166 -0
- package/dist/esm/chunks/chunk-5PKJV3JP.js +61 -0
- package/dist/esm/chunks/chunk-5SSKNOUZ.js +141 -0
- package/dist/esm/chunks/chunk-5XB5CUJU.js +18 -0
- package/dist/esm/chunks/chunk-5XQX7D2B.js +27 -0
- package/dist/esm/chunks/chunk-6A5Q3TR2.js +73 -0
- package/dist/esm/chunks/chunk-6HE2DQS5.js +29 -0
- package/dist/esm/chunks/chunk-6IWDX7AR.js +32 -0
- package/dist/esm/chunks/chunk-6LO2ITXI.js +138 -0
- package/dist/esm/chunks/chunk-6NSNMUZE.js +36 -0
- package/dist/esm/chunks/chunk-6UQOC4YG.js +61 -0
- package/dist/esm/chunks/chunk-72ANEBJJ.js +138 -0
- package/dist/esm/chunks/chunk-7JTOYPC7.js +24 -0
- package/dist/esm/chunks/chunk-7O3D52ZO.js +27 -0
- package/dist/esm/chunks/chunk-7UN7TAOI.js +39 -0
- package/dist/esm/chunks/chunk-7WEISIJL.js +123 -0
- package/dist/esm/chunks/chunk-7YAUHJR2.js +225 -0
- package/dist/esm/chunks/chunk-7ZT7WUEL.js +35 -0
- package/dist/esm/chunks/chunk-ALU2KZWS.js +177 -0
- package/dist/esm/chunks/chunk-AMVMOCUW.js +81 -0
- package/dist/esm/chunks/chunk-APPQS53K.js +81 -0
- package/dist/esm/chunks/chunk-AVTATVAG.js +410 -0
- package/dist/esm/chunks/chunk-AZMUP33Z.js +56 -0
- package/dist/esm/chunks/chunk-B32J3O2V.js +21 -0
- package/dist/esm/chunks/chunk-B7YCX5VB.js +38 -0
- package/dist/esm/chunks/chunk-BBSDD7DS.js +55 -0
- package/dist/esm/chunks/chunk-BC657356.js +93 -0
- package/dist/esm/chunks/chunk-BFRWXGP4.js +44 -0
- package/dist/esm/chunks/chunk-BYZADSVQ.js +49 -0
- package/dist/esm/chunks/chunk-CDXX27FL.js +28 -0
- package/dist/esm/chunks/chunk-CKI34FQL.js +166 -0
- package/dist/esm/chunks/chunk-CNT47W5N.js +60 -0
- package/dist/esm/chunks/chunk-CU3RW3AS.js +515 -0
- package/dist/esm/chunks/chunk-CZ3R7GRW.js +73 -0
- package/dist/esm/chunks/chunk-DLEJ74RA.js +18 -0
- package/dist/esm/chunks/chunk-DPOPZQ7A.js +150 -0
- package/dist/esm/chunks/chunk-DYXHKPQU.js +18 -0
- package/dist/esm/chunks/chunk-E3XOZZSK.js +77 -0
- package/dist/esm/chunks/chunk-EJLQD3FS.js +89 -0
- package/dist/esm/chunks/chunk-ELY5HYAI.js +45 -0
- package/dist/esm/chunks/chunk-ELY5NJBV.js +152 -0
- package/dist/esm/chunks/chunk-EWIF3VBH.js +45 -0
- package/dist/esm/chunks/chunk-F2OASWR4.js +79 -0
- package/dist/esm/chunks/chunk-F4ODKLNS.js +62 -0
- package/dist/esm/chunks/chunk-F5HKSUTX.js +127 -0
- package/dist/esm/chunks/chunk-FFH6CIAJ.js +208 -0
- package/dist/esm/chunks/chunk-FFLBSXWE.js +21 -0
- package/dist/esm/chunks/chunk-FNTBMCUQ.js +184 -0
- package/dist/esm/chunks/chunk-FYSNICNC.js +71 -0
- package/dist/esm/chunks/chunk-G2QRQLP5.js +18 -0
- package/dist/esm/chunks/chunk-G36PG2LK.js +27 -0
- package/dist/esm/chunks/chunk-G5LARXMF.js +73 -0
- package/dist/esm/chunks/chunk-GQLNLUQX.js +42 -0
- package/dist/esm/chunks/chunk-GRWYCZQZ.js +73 -0
- package/dist/esm/chunks/chunk-GSXWSHYU.js +304 -0
- package/dist/esm/chunks/chunk-GVH32USX.js +48 -0
- package/dist/esm/chunks/chunk-GW3IYQNO.js +271 -0
- package/dist/esm/chunks/chunk-H4Q2HHZA.js +151 -0
- package/dist/esm/chunks/chunk-HDHVTBGS.js +330 -0
- package/dist/esm/chunks/chunk-HK6DEJO3.js +74 -0
- package/dist/esm/chunks/chunk-HUMTZKOD.js +114 -0
- package/dist/esm/chunks/chunk-HW2CN2JV.js +118 -0
- package/dist/esm/chunks/chunk-I6WGYC6M.js +50 -0
- package/dist/esm/chunks/chunk-ICGI6UOP.js +28 -0
- package/dist/esm/chunks/chunk-IYZKVVEX.js +285 -0
- package/dist/esm/chunks/chunk-J4HTWL4Q.js +34 -0
- package/dist/esm/chunks/chunk-J6FXZP6E.js +99 -0
- package/dist/esm/chunks/chunk-JTIBDZBU.js +392 -0
- package/dist/esm/chunks/chunk-K2OIQJ36.js +23 -0
- package/dist/esm/chunks/chunk-K5D5UHVI.js +99 -0
- package/dist/esm/chunks/chunk-K753LIJX.js +157 -0
- package/dist/esm/chunks/chunk-KV4Y5ZP5.js +105 -0
- package/dist/esm/chunks/chunk-KVWZQINH.js +44 -0
- package/dist/esm/chunks/chunk-LKKKFYM4.js +106 -0
- package/dist/esm/chunks/chunk-LKPOFLSP.js +337 -0
- package/dist/esm/chunks/chunk-LSDTMST7.js +6 -0
- package/dist/esm/chunks/chunk-LUASZ5NH.js +271 -0
- package/dist/esm/chunks/chunk-LUPYODQN.js +54 -0
- package/dist/esm/chunks/chunk-M3HQENQG.js +93 -0
- package/dist/esm/chunks/chunk-MCHPBSW4.js +155 -0
- package/dist/esm/chunks/chunk-MDEV5WIN.js +25 -0
- package/dist/esm/chunks/chunk-MF2ASALV.js +194 -0
- package/dist/esm/chunks/chunk-MIUSZNAX.js +62 -0
- package/dist/esm/chunks/chunk-NINGLTB2.js +194 -0
- package/dist/esm/chunks/chunk-NLFUTVKG.js +158 -0
- package/dist/esm/chunks/chunk-NNCGUKTM.js +44 -0
- package/dist/esm/chunks/chunk-NSCGX5GB.js +408 -0
- package/dist/esm/chunks/chunk-NTIMVMDT.js +51 -0
- package/dist/esm/chunks/chunk-OBUW2HDW.js +99 -0
- package/dist/esm/chunks/chunk-OKRRNW3E.js +202 -0
- package/dist/esm/chunks/chunk-PGWADMK3.js +198 -0
- package/dist/esm/chunks/chunk-PMGKVE2V.js +30 -0
- package/dist/esm/chunks/chunk-PMLVGWVZ.js +80 -0
- package/dist/esm/chunks/chunk-PXECURYJ.js +78 -0
- package/dist/esm/chunks/chunk-Q2766HFS.js +34 -0
- package/dist/esm/chunks/chunk-Q62K7757.js +22 -0
- package/dist/esm/chunks/chunk-Q7JNV3UN.js +192 -0
- package/dist/esm/chunks/chunk-QRJKBLYH.js +43 -0
- package/dist/esm/chunks/chunk-QRZWLIUQ.js +551 -0
- package/dist/esm/chunks/chunk-RKF3ZNBC.js +25 -0
- package/dist/esm/chunks/chunk-RMJM6NWT.js +58 -0
- package/dist/esm/chunks/chunk-ROTG34TD.js +81 -0
- package/dist/esm/chunks/chunk-RQ2NYS2W.js +51 -0
- package/dist/esm/chunks/chunk-RX5HOB7L.js +187 -0
- package/dist/esm/chunks/chunk-RYOY6CGB.js +174 -0
- package/dist/esm/chunks/chunk-S2P6I4PF.js +191 -0
- package/dist/esm/chunks/chunk-SCSGRIQM.js +27 -0
- package/dist/esm/chunks/chunk-SENDWPHS.js +115 -0
- package/dist/esm/chunks/chunk-SFY6NIVM.js +106 -0
- package/dist/esm/chunks/chunk-SHEACXCO.js +67 -0
- package/dist/esm/chunks/chunk-SII4GAN2.js +302 -0
- package/dist/esm/chunks/chunk-SIUUXS2M.js +172 -0
- package/dist/esm/chunks/chunk-SLXOGLX4.js +39 -0
- package/dist/esm/chunks/chunk-ST7UASSS.js +43 -0
- package/dist/esm/chunks/chunk-SUNHM3W2.js +211 -0
- package/dist/esm/chunks/chunk-SWTIN4AS.js +43 -0
- package/dist/esm/chunks/chunk-T2FH4DTZ.js +163 -0
- package/dist/esm/chunks/chunk-TK5H2DLW.js +157 -0
- package/dist/esm/chunks/chunk-U3SSEG6P.js +31 -0
- package/dist/esm/chunks/chunk-UNQEQ3F2.js +118 -0
- package/dist/esm/chunks/chunk-UP3ZQ5S6.js +155 -0
- package/dist/esm/chunks/chunk-UQFS4FAE.js +80 -0
- package/dist/esm/chunks/chunk-UZXXUKV6.js +124 -0
- package/dist/esm/chunks/chunk-VF4NHXZG.js +33 -0
- package/dist/esm/chunks/chunk-VIGFMBQW.js +337 -0
- package/dist/esm/chunks/chunk-VJBXT6L2.js +86 -0
- package/dist/esm/chunks/chunk-VM4IKZDR.js +211 -0
- package/dist/esm/chunks/chunk-VPCWI2SH.js +18 -0
- package/dist/esm/chunks/chunk-VR225VA6.js +29 -0
- package/dist/esm/chunks/chunk-WEGQW4SS.js +285 -0
- package/dist/esm/chunks/chunk-WHXEETCS.js +80 -0
- package/dist/esm/chunks/chunk-X2XT4SYI.js +71 -0
- package/dist/esm/chunks/chunk-X6Y3S66P.js +91 -0
- package/dist/esm/chunks/chunk-XBFOPEHZ.js +86 -0
- package/dist/esm/chunks/chunk-XE74KQOC.js +18 -0
- package/dist/esm/chunks/chunk-XNMQ4SC7.js +95 -0
- package/dist/esm/chunks/chunk-XWPDELI6.js +53 -0
- package/dist/esm/chunks/chunk-XWZPKK2I.js +6 -0
- package/dist/esm/chunks/chunk-XZSAOJUV.js +83 -0
- package/dist/esm/chunks/chunk-Y5BQXWLM.js +58 -0
- package/dist/esm/chunks/chunk-Y5HOTHVK.js +22 -0
- package/dist/esm/chunks/chunk-Y7B65FYJ.js +336 -0
- package/dist/esm/chunks/chunk-YIAEOUGS.js +46 -0
- package/dist/esm/chunks/chunk-YKL6MAIV.js +208 -0
- package/dist/esm/chunks/chunk-YPH3G6P7.js +125 -0
- package/dist/esm/chunks/chunk-YSGWORUD.js +36 -0
- package/dist/esm/chunks/chunk-ZB7DQSJK.js +204 -0
- package/dist/esm/chunks/chunk-ZC7JPIL7.js +182 -0
- package/dist/esm/chunks/chunk-ZGBBW7U4.js +35 -0
- package/dist/esm/chunks/chunk-ZIQREEEI.js +210 -0
- package/dist/esm/chunks/chunk-ZJ3UIJ46.js +30 -0
- package/dist/esm/chunks/chunk-ZK6JTE6K.js +826 -0
- package/dist/esm/chunks/chunk-ZPIJWNFB.js +150 -0
- package/dist/esm/chunks/chunk-ZQVI42RW.js +136 -0
- package/dist/esm/chunks/chunk-ZWP6KATC.js +25 -0
- package/dist/esm/chunks/chunk-ZY5YHMTQ.js +88 -0
- package/dist/esm/components/accordion/accordion.js +8 -0
- package/dist/esm/components/accordion/accordionGroup.js +7 -0
- package/dist/esm/components/agenda/agenda.js +9 -0
- package/dist/esm/components/alert/alert.js +8 -0
- package/dist/esm/components/alertDialog/alertDialog.js +14 -0
- package/dist/esm/components/appBar/appBar.js +7 -0
- package/dist/esm/components/appShell/appShell.js +11 -0
- package/dist/esm/components/aspectRatio/aspectRatio.js +7 -0
- package/dist/esm/components/autocomplete/autocomplete.js +14 -0
- package/dist/esm/components/avatar/avatar.js +7 -0
- package/dist/esm/components/avatarGroup/avatarGroup.js +11 -0
- package/dist/esm/components/badge/badge.js +7 -0
- package/dist/esm/components/banner/banner.js +9 -0
- package/dist/esm/components/blockquote/blockquote.js +7 -0
- package/dist/esm/components/bottomSheet/bottomSheet.js +9 -0
- package/dist/esm/components/box/box.js +7 -0
- package/dist/esm/components/breadcrumbs/breadcrumbItem.js +8 -0
- package/dist/esm/components/breadcrumbs/breadcrumbs.js +11 -0
- package/dist/esm/components/button/button.js +8 -0
- package/dist/esm/components/buttonGroup/buttonGroup.js +7 -0
- package/dist/esm/components/calendar/calendar.js +12 -0
- package/dist/esm/components/calendar/dates.js +44 -0
- package/dist/esm/components/card/card.js +7 -0
- package/dist/esm/components/card/cardActions.js +7 -0
- package/dist/esm/components/card/cardContent.js +7 -0
- package/dist/esm/components/card/cardHeader.js +7 -0
- package/dist/esm/components/card/cardMedia.js +7 -0
- package/dist/esm/components/carousel/carousel.js +9 -0
- package/dist/esm/components/carousel/carouselItem.js +7 -0
- package/dist/esm/components/center/center.js +7 -0
- package/dist/esm/components/chat/chatComposer.js +9 -0
- package/dist/esm/components/chat/chatDictationButton.js +8 -0
- package/dist/esm/components/chat/chatLayout.js +9 -0
- package/dist/esm/components/chat/chatMessage.js +9 -0
- package/dist/esm/components/chat/chatMessageBubble.js +7 -0
- package/dist/esm/components/chat/chatMessageList.js +8 -0
- package/dist/esm/components/chat/chatMessageMetadata.js +7 -0
- package/dist/esm/components/chat/chatSystemMessage.js +7 -0
- package/dist/esm/components/chat/chatToolCall.js +9 -0
- package/dist/esm/components/chat/chatToolCalls.js +8 -0
- package/dist/esm/components/chat/slots.js +6 -0
- package/dist/esm/components/checkbox/checkbox.js +9 -0
- package/dist/esm/components/checkboxGroup/checkboxGroup.js +10 -0
- package/dist/esm/components/chip/chip.js +8 -0
- package/dist/esm/components/citation/citation.js +11 -0
- package/dist/esm/components/code/code.js +7 -0
- package/dist/esm/components/codeBlock/codeBlock.js +8 -0
- package/dist/esm/components/collapsible/collapsible.js +7 -0
- package/dist/esm/components/commandPalette/commandGroup.js +7 -0
- package/dist/esm/components/commandPalette/commandItem.js +7 -0
- package/dist/esm/components/commandPalette/commandPalette.js +10 -0
- package/dist/esm/components/complexSelector/complexOption.js +9 -0
- package/dist/esm/components/complexSelector/complexSelector.js +16 -0
- package/dist/esm/components/complexSelector/optionGroup.js +7 -0
- package/dist/esm/components/container/container.js +7 -0
- package/dist/esm/components/contextMenu/contextMenu.js +12 -0
- package/dist/esm/components/datePicker/datePicker.js +15 -0
- package/dist/esm/components/dateRangeInput/dateRangeInput.js +15 -0
- package/dist/esm/components/dateTimeInput/dateTimeInput.js +18 -0
- package/dist/esm/components/dialog/dialog.js +11 -0
- package/dist/esm/components/dialog/dialogContent.js +7 -0
- package/dist/esm/components/dialog/dialogFooter.js +7 -0
- package/dist/esm/components/dialog/dialogHeader.js +7 -0
- package/dist/esm/components/dialog/modalSurface.js +8 -0
- package/dist/esm/components/divider/divider.js +7 -0
- package/dist/esm/components/drawer/drawer.js +10 -0
- package/dist/esm/components/emptyState/emptyState.js +7 -0
- package/dist/esm/components/field/field.js +7 -0
- package/dist/esm/components/fileInput/fileInput.js +9 -0
- package/dist/esm/components/formLayout/formLayout.js +7 -0
- package/dist/esm/components/grid/col.js +7 -0
- package/dist/esm/components/grid/row.js +7 -0
- package/dist/esm/components/heading/heading.js +7 -0
- package/dist/esm/components/hidden/hidden.js +7 -0
- package/dist/esm/components/hoverCard/hoverCard.js +9 -0
- package/dist/esm/components/icon/icon.js +8 -0
- package/dist/esm/components/iconButton/iconButton.js +8 -0
- package/dist/esm/components/infoTip/infoTip.js +10 -0
- package/dist/esm/components/input/input.js +9 -0
- package/dist/esm/components/inputGroup/inputGroup.js +9 -0
- package/dist/esm/components/inputGroup/inputGroupText.js +7 -0
- package/dist/esm/components/kbd/kbd.js +7 -0
- package/dist/esm/components/lightbox/lightbox.js +10 -0
- package/dist/esm/components/link/link.js +8 -0
- package/dist/esm/components/listView/list.js +7 -0
- package/dist/esm/components/listView/listItem.js +7 -0
- package/dist/esm/components/listbox/listbox.js +9 -0
- package/dist/esm/components/listbox/listboxItem.js +8 -0
- package/dist/esm/components/markdown/markdown.js +9 -0
- package/dist/esm/components/markdown/parser.js +9 -0
- package/dist/esm/components/markdown/url.js +6 -0
- package/dist/esm/components/menu/menu.js +11 -0
- package/dist/esm/components/menu/menuCheckboxItem.js +9 -0
- package/dist/esm/components/menu/menuDivider.js +7 -0
- package/dist/esm/components/menu/menuGroup.js +7 -0
- package/dist/esm/components/menu/menuItem.js +8 -0
- package/dist/esm/components/menu/menuRadioGroup.js +7 -0
- package/dist/esm/components/menu/menuRadioItem.js +9 -0
- package/dist/esm/components/metadataList/metadataList.js +9 -0
- package/dist/esm/components/metadataList/metadataListItem.js +8 -0
- package/dist/esm/components/mobileNav/mobileNav.js +10 -0
- package/dist/esm/components/numberInput/numberInput.js +9 -0
- package/dist/esm/components/outline/outline.js +8 -0
- package/dist/esm/components/overflowList/overflowList.js +11 -0
- package/dist/esm/components/pagination/pagination.js +8 -0
- package/dist/esm/components/paper/paper.js +7 -0
- package/dist/esm/components/popover/popover.js +9 -0
- package/dist/esm/components/powerSearch/powerSearch.js +14 -0
- package/dist/esm/components/progressBar/progressBar.js +7 -0
- package/dist/esm/components/qrCode/qrCode.js +9 -0
- package/dist/esm/components/radio/radio.js +7 -0
- package/dist/esm/components/radio/radioGroup.js +10 -0
- package/dist/esm/components/scrollArea/scrollArea.js +8 -0
- package/dist/esm/components/section/section.js +8 -0
- package/dist/esm/components/segmentedControl/segmentedControl.js +12 -0
- package/dist/esm/components/segmentedControl/segmentedControlItem.js +7 -0
- package/dist/esm/components/select/field.js +18 -0
- package/dist/esm/components/select/option.js +8 -0
- package/dist/esm/components/select/select.js +14 -0
- package/dist/esm/components/selectableCard/selectableCard.js +9 -0
- package/dist/esm/components/selectableCard/selectableCardGroup.js +13 -0
- package/dist/esm/components/sideNav/sideNav.js +9 -0
- package/dist/esm/components/sideNav/sideNavItem.js +9 -0
- package/dist/esm/components/sideNav/sideNavSection.js +8 -0
- package/dist/esm/components/skeleton/skeleton.js +7 -0
- package/dist/esm/components/slider/slider.js +9 -0
- package/dist/esm/components/spinner/spinner.js +7 -0
- package/dist/esm/components/split/split.js +8 -0
- package/dist/esm/components/splitButton/splitButton.js +12 -0
- package/dist/esm/components/stack/stack.js +7 -0
- package/dist/esm/components/statusDot/statusDot.js +7 -0
- package/dist/esm/components/stepper/step.js +8 -0
- package/dist/esm/components/stepper/stepper.js +7 -0
- package/dist/esm/components/switch/switch.js +8 -0
- package/dist/esm/components/tab/tab.js +7 -0
- package/dist/esm/components/tab/tabPanel.js +7 -0
- package/dist/esm/components/tab/tabs.js +8 -0
- package/dist/esm/components/table/table.js +7 -0
- package/dist/esm/components/table/tableBody.js +7 -0
- package/dist/esm/components/table/tableCell.js +7 -0
- package/dist/esm/components/table/tableFooter.js +7 -0
- package/dist/esm/components/table/tableHeader.js +7 -0
- package/dist/esm/components/table/tableHeaderCell.js +8 -0
- package/dist/esm/components/table/tableRow.js +7 -0
- package/dist/esm/components/table/tableSelectionToolbar.js +8 -0
- package/dist/esm/components/text/text.js +7 -0
- package/dist/esm/components/textarea/textarea.js +8 -0
- package/dist/esm/components/thumbnail/thumbnail.js +8 -0
- package/dist/esm/components/timePicker/timePicker.js +15 -0
- package/dist/esm/components/timer/timer.js +7 -0
- package/dist/esm/components/timestamp/timestamp.js +7 -0
- package/dist/esm/components/toast/toast.js +8 -0
- package/dist/esm/components/toast/toaster.js +12 -0
- package/dist/esm/components/toggleButton/toggleButton.js +8 -0
- package/dist/esm/components/toggleButtonGroup/toggleButtonGroup.js +10 -0
- package/dist/esm/components/tokenizer/tokenizer.js +14 -0
- package/dist/esm/components/toolbar/toolbar.js +8 -0
- package/dist/esm/components/tooltip/tooltip.js +9 -0
- package/dist/esm/components/topNav/topNav.js +11 -0
- package/dist/esm/components/topNav/topNavItem.js +11 -0
- package/dist/esm/components/topNav/topNavMegaMenu.js +7 -0
- package/dist/esm/components/topNav/topNavMegaMenuCard.js +8 -0
- package/dist/esm/components/topNav/topNavMegaMenuGroup.js +7 -0
- package/dist/esm/components/topNav/topNavMegaMenuItem.js +7 -0
- package/dist/esm/components/tree/tree.js +8 -0
- package/dist/esm/components/tree/treeItem.js +8 -0
- package/dist/esm/components/virtualList/virtualList.js +7 -0
- package/dist/esm/components/virtualTable/virtualTable.js +9 -0
- package/dist/esm/components/visuallyHidden/visuallyHidden.js +7 -0
- package/dist/esm/core/a11y.js +22 -0
- package/dist/esm/core/element.js +14 -0
- package/dist/esm/core/form.js +6 -0
- package/dist/esm/core/overlay.js +8 -0
- package/dist/esm/index.js +779 -0
- package/dist/llms-full.txt +8903 -0
- package/dist/llms.txt +288 -0
- package/dist/punica-components.min.js +14283 -0
- package/dist/tokens.css +158 -0
- package/dist/types/index.d.ts +6762 -0
- package/dist/types/react.d.ts +1914 -0
- package/dist/vscode.css-custom-data.json +3892 -0
- package/dist/vscode.html-custom-data.json +6912 -0
- package/dist/web-types.json +12404 -0
- package/docs/MIGRATION-2.0.md +112 -0
- package/docs/contract.md +130 -0
- package/docs/migration/chat.md +309 -0
- package/docs/migration/content.md +806 -0
- package/docs/migration/data.md +140 -0
- package/docs/migration/display.md +625 -0
- package/docs/migration/form-basic.md +262 -0
- package/docs/migration/navigation.md +368 -0
- package/docs/migration/overlays.md +261 -0
- package/docs/migration/pickers.md +194 -0
- package/package.json +135 -4
- package/scripts/codemod-2.0.mjs +50 -0
- package/scripts/codemod-rules.mjs +102 -0
- package/skills/punica-components/SKILL.md +48 -0
|
@@ -0,0 +1,551 @@
|
|
|
1
|
+
import {
|
|
2
|
+
field_default
|
|
3
|
+
} from "./chunk-LSDTMST7.js";
|
|
4
|
+
import {
|
|
5
|
+
FieldSurface,
|
|
6
|
+
OptionNavigator,
|
|
7
|
+
fieldLanguage,
|
|
8
|
+
fieldName,
|
|
9
|
+
nativeMessage,
|
|
10
|
+
setAttr
|
|
11
|
+
} from "./chunk-H4Q2HHZA.js";
|
|
12
|
+
import {
|
|
13
|
+
FormControl
|
|
14
|
+
} from "./chunk-HW2CN2JV.js";
|
|
15
|
+
import {
|
|
16
|
+
overlayCss
|
|
17
|
+
} from "./chunk-FNTBMCUQ.js";
|
|
18
|
+
import {
|
|
19
|
+
isRtl
|
|
20
|
+
} from "./chunk-4RURT4SK.js";
|
|
21
|
+
import {
|
|
22
|
+
icons
|
|
23
|
+
} from "./chunk-YSGWORUD.js";
|
|
24
|
+
import {
|
|
25
|
+
PunicaElement,
|
|
26
|
+
define
|
|
27
|
+
} from "./chunk-Y7B65FYJ.js";
|
|
28
|
+
|
|
29
|
+
// src/components/powerSearch/powerSearch.css
|
|
30
|
+
var powerSearch_default = ":host {\n --punica-power-search-radius: var(--punica-radius);\n --punica-power-search-height: var(--punica-size-md);\n --punica-power-search-padding: var(--punica-space-12);\n --punica-power-search-border-color: var(--punica-color-border);\n --punica-power-search-background: transparent;\n --punica-power-search-min-width: 280px;\n --punica-power-search-token-background: var(--punica-color-selected);\n --punica-power-search-listbox-max-height: 280px;\n\n --_height: var(--punica-power-search-height);\n --_pad: var(--punica-power-search-padding);\n --_radius: var(--punica-power-search-radius);\n --_border: var(--punica-power-search-border-color);\n --_bg: var(--punica-power-search-background);\n --_list-max-height: var(--punica-power-search-listbox-max-height);\n\n display: inline-flex;\n vertical-align: middle;\n min-inline-size: min(100%, var(--punica-power-search-min-width));\n max-inline-size: 100%;\n}\n\n:host([size='small']) {\n --punica-power-search-height: var(--punica-size-sm);\n --punica-power-search-padding: var(--punica-space-8);\n}\n:host([size='large']) {\n --punica-power-search-height: var(--punica-size-lg);\n --punica-power-search-padding: var(--punica-space-16);\n}\n:host([full-width]) {\n display: flex;\n inline-size: 100%;\n}\n\n.field {\n flex-wrap: wrap;\n gap: var(--punica-space-4);\n padding-block: var(--punica-space-4);\n cursor: text;\n}\n\n:host([size='small']) .field {\n padding-block: var(--punica-space-2);\n}\n\n.search-icon {\n display: inline-flex;\n flex: none;\n margin-inline-end: var(--punica-space-4);\n color: var(--punica-color-text-muted);\n font-size: var(--punica-font-size);\n}\n\n.tokens {\n display: contents;\n}\n\n.token,\n.pending {\n display: inline-flex;\n align-items: center;\n gap: var(--punica-space-4);\n max-inline-size: 100%;\n min-block-size: var(--punica-space-24);\n border-radius: var(--punica-radius-sm);\n font-size: var(--punica-font-size-xs);\n white-space: nowrap;\n}\n\n:host([size='small']) .token,\n:host([size='small']) .pending,\n:host([size='small']) input.control {\n min-block-size: var(--punica-space-20);\n}\n\n.token {\n padding-inline: var(--punica-space-8) var(--punica-space-4);\n border: var(--punica-border-width) solid transparent;\n background: var(--punica-power-search-token-background);\n color: var(--punica-color-text);\n cursor: default;\n user-select: none;\n}\n\n.token:focus-visible {\n outline: var(--punica-focus-ring);\n outline-offset: var(--punica-focus-ring-offset);\n}\n\n.token-label {\n min-inline-size: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.pending {\n padding-inline: var(--punica-space-8);\n border: var(--punica-border-width) dashed var(--punica-color-border-strong);\n color: var(--punica-color-text-muted);\n font-weight: var(--punica-font-weight-semi-bold);\n}\n\n.remove {\n all: unset;\n flex: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n inline-size: var(--punica-space-16);\n block-size: var(--punica-space-16);\n border-radius: var(--punica-radius-full);\n cursor: pointer;\n transition: background-color var(--punica-duration-fast) var(--punica-ease);\n}\n.remove:hover {\n background: var(--punica-color-hover);\n}\n.remove:focus-visible {\n outline: var(--punica-focus-ring);\n}\n.remove:disabled {\n display: none;\n}\n\ninput.control {\n flex: 1 1 var(--punica-space-96);\n min-block-size: var(--punica-space-24);\n}\n\ninput.date {\n color-scheme: inherit;\n}\n\n.field:has(.date:focus-visible) {\n outline: var(--punica-focus-ring);\n outline-offset: var(--punica-focus-ring-offset);\n}\n\n@media (forced-colors: active) {\n .token,\n .pending {\n border-color: CanvasText;\n }\n}\n";
|
|
31
|
+
|
|
32
|
+
// src/components/powerSearch/powerSearch.js
|
|
33
|
+
var DEFAULT_OPERATOR = { text: "contains", select: "is", date: "on" };
|
|
34
|
+
var choice = (c) => typeof c === "object" && c !== null ? { value: String(c.value), label: String(c.label ?? c.value) } : { value: String(c), label: String(c) };
|
|
35
|
+
var normalise = (raw) => {
|
|
36
|
+
const v = (
|
|
37
|
+
/** @type {any} */
|
|
38
|
+
raw && typeof raw === "object" ? raw : {}
|
|
39
|
+
);
|
|
40
|
+
const filters = Array.isArray(v.filters) ? v.filters.filter((f) => f && f.key != null).map((f) => ({ key: String(f.key), operator: String(f.operator ?? ""), value: String(f.value ?? "") })) : [];
|
|
41
|
+
return { query: typeof v.query === "string" ? v.query : "", filters };
|
|
42
|
+
};
|
|
43
|
+
var parse = (text) => {
|
|
44
|
+
if (!text) return normalise(null);
|
|
45
|
+
try {
|
|
46
|
+
return normalise(JSON.parse(text));
|
|
47
|
+
} catch {
|
|
48
|
+
return normalise({ query: text });
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
var PunicaPowerSearch = class extends FormControl(PunicaElement) {
|
|
52
|
+
static properties = {
|
|
53
|
+
defaultValue: { attribute: "value", reflect: false },
|
|
54
|
+
value: { type: Object, attribute: false },
|
|
55
|
+
filters: { type: Array, attribute: false },
|
|
56
|
+
label: {},
|
|
57
|
+
placeholder: {},
|
|
58
|
+
open: { type: Boolean },
|
|
59
|
+
readonly: { type: Boolean },
|
|
60
|
+
size: {},
|
|
61
|
+
fullWidth: { type: Boolean },
|
|
62
|
+
labelValue: { default: "Value" },
|
|
63
|
+
labelRemove: { default: "Remove" }
|
|
64
|
+
};
|
|
65
|
+
static styles = [overlayCss, field_default, powerSearch_default];
|
|
66
|
+
static shadowOptions = { delegatesFocus: true };
|
|
67
|
+
static template = `
|
|
68
|
+
<div part="field" class="field">
|
|
69
|
+
<slot name="start"><span part="icon" class="search-icon">${icons.search}</span></slot>
|
|
70
|
+
<div part="tokens" class="tokens" role="list" hidden></div>
|
|
71
|
+
<span part="pending" class="pending" hidden></span>
|
|
72
|
+
<input part="input" class="control" type="text" role="combobox" aria-autocomplete="list" aria-haspopup="listbox" aria-controls="listbox" aria-expanded="false" autocomplete="off" autocapitalize="off" spellcheck="false">
|
|
73
|
+
<input part="date" class="control date" type="date" hidden>
|
|
74
|
+
</div>
|
|
75
|
+
<div part="listbox" id="listbox" class="panel listbox" role="listbox" popover="manual"></div>
|
|
76
|
+
<template id="token">
|
|
77
|
+
<span part="token" class="token" role="listitem" tabindex="-1">
|
|
78
|
+
<span part="token-label" class="token-label"></span>
|
|
79
|
+
<button part="remove" class="remove" type="button" tabindex="-1">${icons.close}</button>
|
|
80
|
+
</span>
|
|
81
|
+
</template>
|
|
82
|
+
`;
|
|
83
|
+
#field = this.$(".field");
|
|
84
|
+
#tokens = this.$(".tokens");
|
|
85
|
+
#pendingEl = this.$(".pending");
|
|
86
|
+
#input = this.$('[part="input"]');
|
|
87
|
+
#date = this.$('[part="date"]');
|
|
88
|
+
#listbox = this.$("#listbox");
|
|
89
|
+
#template = this.$("#token");
|
|
90
|
+
#surface = new FieldSurface(this, this.#listbox);
|
|
91
|
+
#nav = new OptionNavigator(this.#input, () => this.#rows);
|
|
92
|
+
/** Suggestion rows now in the list. @type {any[]} */
|
|
93
|
+
#rows = [];
|
|
94
|
+
/** What the rows were last built from. */
|
|
95
|
+
#rowsKey = "";
|
|
96
|
+
/** @type {{ field: FilterField, operator: string | null } | null} */
|
|
97
|
+
#pending = null;
|
|
98
|
+
/** The query last committed, to tell whether Enter or a blur changed it. */
|
|
99
|
+
#committedQuery = "";
|
|
100
|
+
#drawn = "";
|
|
101
|
+
/** Focus is being moved onto a token on purpose. */
|
|
102
|
+
#walking = false;
|
|
103
|
+
#touched = false;
|
|
104
|
+
#reason = "api";
|
|
105
|
+
constructor() {
|
|
106
|
+
super();
|
|
107
|
+
const input = this.#input;
|
|
108
|
+
input.addEventListener("input", () => {
|
|
109
|
+
if (this.#locked) return;
|
|
110
|
+
if (!this.#pending) {
|
|
111
|
+
this.value = { ...this.#value(), query: input.value };
|
|
112
|
+
this.emit("input", { value: this.value });
|
|
113
|
+
}
|
|
114
|
+
this.#nav.set(null);
|
|
115
|
+
this.open = true;
|
|
116
|
+
this.update(/* @__PURE__ */ new Map());
|
|
117
|
+
if (this.#pending) this.#nav.set(this.#nav.items[0] || null);
|
|
118
|
+
});
|
|
119
|
+
input.addEventListener("keydown", (event) => this.#onInputKeydown(event));
|
|
120
|
+
this.#date.addEventListener("keydown", (event) => this.#onDateKeydown(event));
|
|
121
|
+
this.#field.addEventListener("mousedown", (event) => {
|
|
122
|
+
if (event.target !== this.#field) return;
|
|
123
|
+
event.preventDefault();
|
|
124
|
+
this.#focusEntry();
|
|
125
|
+
});
|
|
126
|
+
this.#tokens.addEventListener("keydown", (event) => this.#onTokenKeydown(event));
|
|
127
|
+
this.#tokens.addEventListener("focusin", () => {
|
|
128
|
+
if (!this.#walking) this.#input.focus();
|
|
129
|
+
});
|
|
130
|
+
this.#tokens.addEventListener("click", (event) => {
|
|
131
|
+
const target = (
|
|
132
|
+
/** @type {Element} */
|
|
133
|
+
event.target
|
|
134
|
+
);
|
|
135
|
+
const token = (
|
|
136
|
+
/** @type {HTMLElement | null} */
|
|
137
|
+
target.closest(".token")
|
|
138
|
+
);
|
|
139
|
+
if (!token || this.#locked || !target.closest(".remove")) return;
|
|
140
|
+
this.#removeAt(Number(token.dataset.index));
|
|
141
|
+
this.#focusEntry();
|
|
142
|
+
});
|
|
143
|
+
this.#listbox.addEventListener("mousedown", (event) => event.preventDefault());
|
|
144
|
+
this.#listbox.addEventListener("click", (event) => {
|
|
145
|
+
const row = this.#rowFrom(event);
|
|
146
|
+
if (row && !row.disabled) this.#pick(row);
|
|
147
|
+
});
|
|
148
|
+
this.#listbox.addEventListener("pointermove", (event) => {
|
|
149
|
+
const row = this.#rowFrom(event);
|
|
150
|
+
if (row && !row.disabled && row !== this.#nav.active) this.#nav.set(row);
|
|
151
|
+
});
|
|
152
|
+
this.shadowRoot.addEventListener("focusout", (event) => {
|
|
153
|
+
const next = (
|
|
154
|
+
/** @type {FocusEvent} */
|
|
155
|
+
event.relatedTarget
|
|
156
|
+
);
|
|
157
|
+
if (next instanceof Node && (this.shadowRoot.contains(next) || this.contains(next))) return;
|
|
158
|
+
this.#touched = true;
|
|
159
|
+
const pending = this.#pending;
|
|
160
|
+
if (pending && pending.operator !== null && pending.field.type !== "select") {
|
|
161
|
+
this.#commitValue(pending.field.type === "date" ? this.#date.value : this.#input.value, false);
|
|
162
|
+
}
|
|
163
|
+
this.#pending = null;
|
|
164
|
+
this.#close("blur");
|
|
165
|
+
this.#commitQuery();
|
|
166
|
+
this.requestUpdate();
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
get #locked() {
|
|
170
|
+
return this.isDisabled || this.readonly;
|
|
171
|
+
}
|
|
172
|
+
/** Opens the suggestions. */
|
|
173
|
+
show() {
|
|
174
|
+
this.open = true;
|
|
175
|
+
}
|
|
176
|
+
/** Closes the suggestions. */
|
|
177
|
+
hide() {
|
|
178
|
+
this.#close("api");
|
|
179
|
+
}
|
|
180
|
+
/** Moves focus to the text input. */
|
|
181
|
+
focus(options) {
|
|
182
|
+
this.#input.focus(options);
|
|
183
|
+
}
|
|
184
|
+
disconnected() {
|
|
185
|
+
this.#surface.hide();
|
|
186
|
+
this.#nav.set(null);
|
|
187
|
+
}
|
|
188
|
+
formReset() {
|
|
189
|
+
this.#touched = false;
|
|
190
|
+
this.#pending = null;
|
|
191
|
+
this.value = parse(this.defaultValue);
|
|
192
|
+
this.#committedQuery = this.value.query;
|
|
193
|
+
}
|
|
194
|
+
formRestore(state) {
|
|
195
|
+
if (typeof state === "string") this.value = parse(state);
|
|
196
|
+
}
|
|
197
|
+
/** @returns {SearchValue} */
|
|
198
|
+
#value() {
|
|
199
|
+
return normalise(this.value);
|
|
200
|
+
}
|
|
201
|
+
/** @returns {FilterField[]} */
|
|
202
|
+
#fields() {
|
|
203
|
+
return (Array.isArray(this.filters) ? this.filters : []).filter((f) => f && f.key != null);
|
|
204
|
+
}
|
|
205
|
+
/** @param {string} key */
|
|
206
|
+
#fieldOf(key) {
|
|
207
|
+
return this.#fields().find((f) => String(f.key) === key) || null;
|
|
208
|
+
}
|
|
209
|
+
/** @param {FilterField} field @returns {Required<Choice>[]} */
|
|
210
|
+
#operators(field) {
|
|
211
|
+
const list = (field.operators || []).map(choice);
|
|
212
|
+
return list.length ? list : [{ value: DEFAULT_OPERATOR[field.type || "text"] || "is", label: DEFAULT_OPERATOR[field.type || "text"] || "is" }];
|
|
213
|
+
}
|
|
214
|
+
/** The text a token shows for a filter. @param {Filter} filter */
|
|
215
|
+
#tokenText(filter) {
|
|
216
|
+
const field = this.#fieldOf(filter.key);
|
|
217
|
+
const label = field ? String(field.label ?? field.key) : filter.key;
|
|
218
|
+
let shown = filter.value;
|
|
219
|
+
if (field?.type === "select") shown = (field.options || []).map(choice).find((o) => o.value === filter.value)?.label ?? filter.value;
|
|
220
|
+
else if (field?.type === "date" && /^\d{4}-\d{2}-\d{2}$/.test(filter.value)) {
|
|
221
|
+
const [y, m, d] = filter.value.split("-").map(Number);
|
|
222
|
+
shown = new Intl.DateTimeFormat(fieldLanguage(this), { dateStyle: "medium" }).format(new Date(y, m - 1, d));
|
|
223
|
+
}
|
|
224
|
+
const operators = field ? this.#operators(field) : [];
|
|
225
|
+
if (!operators.length || operators[0].value === filter.operator) return `${label}: ${shown}`;
|
|
226
|
+
const op = operators.find((o) => o.value === filter.operator)?.label ?? filter.operator;
|
|
227
|
+
return `${label} ${op} ${shown}`;
|
|
228
|
+
}
|
|
229
|
+
update(changed) {
|
|
230
|
+
if (changed.has("defaultValue") && (this.value == null || changed.get("defaultValue") === void 0)) {
|
|
231
|
+
if (this.value == null) {
|
|
232
|
+
this.value = parse(this.defaultValue);
|
|
233
|
+
this.#committedQuery = this.value.query;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
const value = this.#value();
|
|
237
|
+
const input = this.#input;
|
|
238
|
+
const disabled = this.isDisabled;
|
|
239
|
+
const locked = this.#locked;
|
|
240
|
+
const name = fieldName(this);
|
|
241
|
+
const pending = this.#pending;
|
|
242
|
+
const texts = value.filters.map((f) => this.#tokenText(f));
|
|
243
|
+
const drawn = JSON.stringify([texts, this.labelRemove, locked]);
|
|
244
|
+
if (drawn !== this.#drawn) {
|
|
245
|
+
this.#drawn = drawn;
|
|
246
|
+
const focused = [...this.#tokens.children].indexOf(
|
|
247
|
+
/** @type {any} */
|
|
248
|
+
this.shadowRoot.activeElement
|
|
249
|
+
);
|
|
250
|
+
const tokens = texts.map((text, i) => {
|
|
251
|
+
const token = (
|
|
252
|
+
/** @type {HTMLElement} */
|
|
253
|
+
this.#template.content.firstElementChild.cloneNode(true)
|
|
254
|
+
);
|
|
255
|
+
token.dataset.index = String(i);
|
|
256
|
+
token.querySelector(".token-label").textContent = text;
|
|
257
|
+
const remove = token.querySelector("button");
|
|
258
|
+
remove.setAttribute("aria-label", `${this.labelRemove} ${text}`);
|
|
259
|
+
remove.disabled = locked;
|
|
260
|
+
return token;
|
|
261
|
+
});
|
|
262
|
+
this.#tokens.replaceChildren(...tokens);
|
|
263
|
+
this.#tokens.hidden = tokens.length === 0;
|
|
264
|
+
if (focused >= 0) this.#focusToken(tokens[Math.min(focused, tokens.length - 1)] || input);
|
|
265
|
+
}
|
|
266
|
+
setAttr(this.#tokens, "aria-label", name);
|
|
267
|
+
setAttr(this.#tokens, "aria-disabled", disabled ? "true" : null);
|
|
268
|
+
const dateStep = !!pending && pending.operator !== null && pending.field.type === "date";
|
|
269
|
+
this.#pendingEl.hidden = !pending;
|
|
270
|
+
if (pending) {
|
|
271
|
+
const op = pending.operator === null ? null : this.#operators(pending.field).find((o) => o.value === pending.operator);
|
|
272
|
+
const showOp = op && this.#operators(pending.field).length > 1;
|
|
273
|
+
this.#pendingEl.textContent = `${pending.field.label ?? pending.field.key}${showOp ? " " + op.label : ""}`;
|
|
274
|
+
}
|
|
275
|
+
this.toggleState("pending", !!pending);
|
|
276
|
+
const shown = dateStep ? this.#date : input;
|
|
277
|
+
const gone = dateStep ? input : this.#date;
|
|
278
|
+
shown.hidden = false;
|
|
279
|
+
if (this.shadowRoot.activeElement === gone) shown.focus({ preventScroll: true });
|
|
280
|
+
gone.hidden = true;
|
|
281
|
+
if (!pending && input.value !== value.query && this.shadowRoot.activeElement !== input) input.value = value.query;
|
|
282
|
+
input.disabled = disabled;
|
|
283
|
+
input.readOnly = this.readonly;
|
|
284
|
+
this.#date.disabled = disabled;
|
|
285
|
+
input.placeholder = pending ? pending.operator === null ? "" : this.labelValue : value.filters.length ? "" : this.placeholder || "";
|
|
286
|
+
setAttr(input, "aria-label", pending ? String(pending.field.label ?? pending.field.key) : name);
|
|
287
|
+
setAttr(this.#date, "aria-label", pending ? String(pending.field.label ?? pending.field.key) : null);
|
|
288
|
+
setAttr(this.#listbox, "aria-label", pending ? String(pending.field.label ?? pending.field.key) : name);
|
|
289
|
+
setAttr(input, "aria-required", this.required ? "true" : null);
|
|
290
|
+
this.toggleState("disabled", disabled);
|
|
291
|
+
this.#buildRows();
|
|
292
|
+
this.setFormValue(this.name ? JSON.stringify(value) : null, JSON.stringify(value));
|
|
293
|
+
const missing = this.required && !value.query.trim() && value.filters.length === 0;
|
|
294
|
+
this.setValidity(missing ? { valueMissing: true } : {}, nativeMessage("required"), input);
|
|
295
|
+
const invalid = this.#touched && !this.validity.valid;
|
|
296
|
+
setAttr(input, "aria-invalid", invalid ? "true" : null);
|
|
297
|
+
this.toggleState("user-invalid", invalid);
|
|
298
|
+
const want = this.open && !locked && !dateStep && this.#rows.length > 0;
|
|
299
|
+
if (want && !this.#surface.open) {
|
|
300
|
+
this.#surface.show(this.#field, { matchWidth: true }, () => this.#close("outside"));
|
|
301
|
+
this.toggleState("open", true);
|
|
302
|
+
input.setAttribute("aria-expanded", "true");
|
|
303
|
+
this.emit("open");
|
|
304
|
+
} else if (!want && this.#surface.open) {
|
|
305
|
+
this.#surface.hide();
|
|
306
|
+
this.#nav.set(null);
|
|
307
|
+
this.toggleState("open", false);
|
|
308
|
+
input.setAttribute("aria-expanded", "false");
|
|
309
|
+
const reason = this.open ? "empty" : this.#reason;
|
|
310
|
+
this.#reason = "api";
|
|
311
|
+
this.emit("close", { reason });
|
|
312
|
+
} else if (want) {
|
|
313
|
+
this.#surface.reposition();
|
|
314
|
+
}
|
|
315
|
+
if (this.#nav.active && !this.#rows.includes(this.#nav.active)) this.#nav.set(null);
|
|
316
|
+
}
|
|
317
|
+
/** Builds the suggestion rows for the step the person is on. */
|
|
318
|
+
#buildRows() {
|
|
319
|
+
const language = fieldLanguage(this);
|
|
320
|
+
const needle = this.#input.value.trim().toLocaleLowerCase(language);
|
|
321
|
+
const pending = this.#pending;
|
|
322
|
+
let items = [];
|
|
323
|
+
if (!pending) {
|
|
324
|
+
items = this.#fields().map((f) => ({ kind: "field", value: String(f.key), label: String(f.label ?? f.key) })).filter((f) => !needle || f.label.toLocaleLowerCase(language).includes(needle));
|
|
325
|
+
} else if (pending.operator === null) {
|
|
326
|
+
items = this.#operators(pending.field).map((o) => ({ kind: "operator", ...o })).filter((o) => !needle || o.label.toLocaleLowerCase(language).includes(needle));
|
|
327
|
+
} else if (pending.field.type === "select") {
|
|
328
|
+
items = (pending.field.options || []).map(choice).map((o) => ({ kind: "value", ...o })).filter((o) => !needle || o.label.toLocaleLowerCase(language).includes(needle));
|
|
329
|
+
}
|
|
330
|
+
const key = JSON.stringify(items);
|
|
331
|
+
if (key === this.#rowsKey) return;
|
|
332
|
+
this.#rowsKey = key;
|
|
333
|
+
this.#rows = items.map((item) => {
|
|
334
|
+
const row = (
|
|
335
|
+
/** @type {any} */
|
|
336
|
+
document.createElement("punica-option")
|
|
337
|
+
);
|
|
338
|
+
row.setAttribute("part", "option");
|
|
339
|
+
row.value = item.value;
|
|
340
|
+
row.dataset.kind = item.kind;
|
|
341
|
+
row.textContent = item.label;
|
|
342
|
+
return row;
|
|
343
|
+
});
|
|
344
|
+
this.#listbox.replaceChildren(...this.#rows);
|
|
345
|
+
}
|
|
346
|
+
#rowFrom(event) {
|
|
347
|
+
return event.composedPath().find((node) => this.#rows.includes(node)) || null;
|
|
348
|
+
}
|
|
349
|
+
/** @param {string} reason */
|
|
350
|
+
#close(reason) {
|
|
351
|
+
if (!this.open) return;
|
|
352
|
+
this.#reason = reason;
|
|
353
|
+
this.open = false;
|
|
354
|
+
}
|
|
355
|
+
#focusEntry() {
|
|
356
|
+
(this.#date.hidden ? this.#input : this.#date).focus();
|
|
357
|
+
}
|
|
358
|
+
/** @param {SearchValue} next */
|
|
359
|
+
#commit(next) {
|
|
360
|
+
this.#touched = true;
|
|
361
|
+
this.value = next;
|
|
362
|
+
this.#committedQuery = next.query;
|
|
363
|
+
this.update(/* @__PURE__ */ new Map());
|
|
364
|
+
this.emit("change", { value: this.value });
|
|
365
|
+
}
|
|
366
|
+
/** The query typed since the last commit becomes the committed one. */
|
|
367
|
+
#commitQuery() {
|
|
368
|
+
const value = this.#value();
|
|
369
|
+
if (value.query === this.#committedQuery) return;
|
|
370
|
+
this.#commit(value);
|
|
371
|
+
}
|
|
372
|
+
/** @param {any} row */
|
|
373
|
+
#pick(row) {
|
|
374
|
+
const kind = row.dataset.kind;
|
|
375
|
+
if (kind === "field") {
|
|
376
|
+
const field = this.#fieldOf(row.value);
|
|
377
|
+
if (!field) return;
|
|
378
|
+
this.value = { ...this.#value(), query: "" };
|
|
379
|
+
this.#input.value = "";
|
|
380
|
+
const operators = this.#operators(field);
|
|
381
|
+
this.#pending = { field, operator: operators.length > 1 ? null : operators[0].value };
|
|
382
|
+
this.#date.value = "";
|
|
383
|
+
this.open = true;
|
|
384
|
+
this.update(/* @__PURE__ */ new Map());
|
|
385
|
+
this.#nav.set(this.#nav.items[0] || null);
|
|
386
|
+
this.#focusEntry();
|
|
387
|
+
} else if (kind === "operator") {
|
|
388
|
+
const pending = (
|
|
389
|
+
/** @type {any} */
|
|
390
|
+
this.#pending
|
|
391
|
+
);
|
|
392
|
+
pending.operator = row.value;
|
|
393
|
+
this.#input.value = "";
|
|
394
|
+
this.update(/* @__PURE__ */ new Map());
|
|
395
|
+
this.#nav.set(this.#nav.items[0] || null);
|
|
396
|
+
this.#focusEntry();
|
|
397
|
+
} else {
|
|
398
|
+
this.#commitValue(row.value);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Turns the pending field and a value into a token.
|
|
403
|
+
* @param {string} raw
|
|
404
|
+
* @param {boolean} [refocus] put focus back in the text input
|
|
405
|
+
*/
|
|
406
|
+
#commitValue(raw, refocus = true) {
|
|
407
|
+
const pending = this.#pending;
|
|
408
|
+
const text = String(raw).trim();
|
|
409
|
+
if (!pending || pending.operator === null || !text) return;
|
|
410
|
+
const value = this.#value();
|
|
411
|
+
this.#pending = null;
|
|
412
|
+
this.#input.value = value.query;
|
|
413
|
+
this.#commit({ query: value.query, filters: [...value.filters, { key: String(pending.field.key), operator: pending.operator, value: text }] });
|
|
414
|
+
this.#close("select");
|
|
415
|
+
if (refocus) this.#input.focus();
|
|
416
|
+
}
|
|
417
|
+
#cancelPending() {
|
|
418
|
+
this.#pending = null;
|
|
419
|
+
this.#input.value = this.#value().query;
|
|
420
|
+
this.#close("api");
|
|
421
|
+
this.update(/* @__PURE__ */ new Map());
|
|
422
|
+
this.#input.focus();
|
|
423
|
+
}
|
|
424
|
+
/** @param {number} index */
|
|
425
|
+
#removeAt(index) {
|
|
426
|
+
const value = this.#value();
|
|
427
|
+
if (!(index >= 0 && index < value.filters.length)) return;
|
|
428
|
+
this.#commit({ query: value.query, filters: value.filters.filter((_, i) => i !== index) });
|
|
429
|
+
}
|
|
430
|
+
#search() {
|
|
431
|
+
this.#commitQuery();
|
|
432
|
+
const event = this.emit("search", { value: this.value }, { cancelable: true });
|
|
433
|
+
if (!event.defaultPrevented) this.form?.requestSubmit();
|
|
434
|
+
}
|
|
435
|
+
/** @param {KeyboardEvent} event */
|
|
436
|
+
#onInputKeydown(event) {
|
|
437
|
+
if (this.#locked || event.isComposing) return;
|
|
438
|
+
const input = this.#input;
|
|
439
|
+
const nav = this.#nav;
|
|
440
|
+
const showing = this.#surface.open;
|
|
441
|
+
const pending = this.#pending;
|
|
442
|
+
const atStart = input.selectionStart === 0 && input.selectionEnd === 0;
|
|
443
|
+
const back = isRtl(this) ? "ArrowRight" : "ArrowLeft";
|
|
444
|
+
if (event.key === "Enter") {
|
|
445
|
+
event.preventDefault();
|
|
446
|
+
if (showing && nav.active) {
|
|
447
|
+
this.#pick(nav.active);
|
|
448
|
+
} else if (pending && pending.operator !== null && pending.field.type !== "select") {
|
|
449
|
+
this.#commitValue(input.value);
|
|
450
|
+
} else if (pending && pending.field.type === "select" && pending.operator !== null) {
|
|
451
|
+
const language = fieldLanguage(this);
|
|
452
|
+
const text = input.value.trim().toLocaleLowerCase(language);
|
|
453
|
+
const match = (pending.field.options || []).map(choice).find((o) => o.label.toLocaleLowerCase(language) === text);
|
|
454
|
+
if (match) this.#commitValue(match.value);
|
|
455
|
+
} else if (!pending) {
|
|
456
|
+
this.#close("select");
|
|
457
|
+
this.#search();
|
|
458
|
+
}
|
|
459
|
+
} else if (event.key === "Backspace" && atStart && !input.value) {
|
|
460
|
+
if (pending) {
|
|
461
|
+
event.preventDefault();
|
|
462
|
+
this.#cancelPending();
|
|
463
|
+
} else if (this.#value().filters.length) {
|
|
464
|
+
event.preventDefault();
|
|
465
|
+
this.#removeAt(this.#value().filters.length - 1);
|
|
466
|
+
}
|
|
467
|
+
} else if (event.key === back && atStart && !pending) {
|
|
468
|
+
const last = (
|
|
469
|
+
/** @type {HTMLElement | null} */
|
|
470
|
+
this.#tokens.lastElementChild
|
|
471
|
+
);
|
|
472
|
+
if (last) {
|
|
473
|
+
event.preventDefault();
|
|
474
|
+
this.#focusToken(last);
|
|
475
|
+
}
|
|
476
|
+
} else if (event.key === "Escape") {
|
|
477
|
+
if (showing) {
|
|
478
|
+
event.preventDefault();
|
|
479
|
+
event.stopPropagation();
|
|
480
|
+
this.#close("escape");
|
|
481
|
+
} else if (pending) {
|
|
482
|
+
event.preventDefault();
|
|
483
|
+
event.stopPropagation();
|
|
484
|
+
this.#cancelPending();
|
|
485
|
+
}
|
|
486
|
+
} else if (event.key === "ArrowDown" || event.key === "ArrowUp") {
|
|
487
|
+
event.preventDefault();
|
|
488
|
+
if (!showing) {
|
|
489
|
+
this.open = true;
|
|
490
|
+
this.update(/* @__PURE__ */ new Map());
|
|
491
|
+
nav.set(event.key === "ArrowDown" ? nav.items[0] || null : nav.items.at(-1) || null);
|
|
492
|
+
} else if (event.altKey && event.key === "ArrowUp") {
|
|
493
|
+
this.#close("api");
|
|
494
|
+
} else {
|
|
495
|
+
nav.move(event, { homeEnd: false });
|
|
496
|
+
}
|
|
497
|
+
} else if (showing && nav.move(event, { homeEnd: false })) {
|
|
498
|
+
event.preventDefault();
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
/** @param {KeyboardEvent} event */
|
|
502
|
+
#onDateKeydown(event) {
|
|
503
|
+
if (this.#locked) return;
|
|
504
|
+
if (event.key === "Enter") {
|
|
505
|
+
event.preventDefault();
|
|
506
|
+
this.#commitValue(this.#date.value);
|
|
507
|
+
} else if (event.key === "Escape") {
|
|
508
|
+
event.preventDefault();
|
|
509
|
+
event.stopPropagation();
|
|
510
|
+
this.#cancelPending();
|
|
511
|
+
} else if (event.key === "Backspace" && !this.#date.value) {
|
|
512
|
+
event.preventDefault();
|
|
513
|
+
this.#cancelPending();
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
/** @param {HTMLElement} target a token, or the text input */
|
|
517
|
+
#focusToken(target) {
|
|
518
|
+
this.#walking = true;
|
|
519
|
+
try {
|
|
520
|
+
target.focus();
|
|
521
|
+
} finally {
|
|
522
|
+
this.#walking = false;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
/** @param {KeyboardEvent} event */
|
|
526
|
+
#onTokenKeydown(event) {
|
|
527
|
+
const tokens = (
|
|
528
|
+
/** @type {HTMLElement[]} */
|
|
529
|
+
[...this.#tokens.children]
|
|
530
|
+
);
|
|
531
|
+
const index = tokens.indexOf(
|
|
532
|
+
/** @type {any} */
|
|
533
|
+
this.shadowRoot.activeElement
|
|
534
|
+
);
|
|
535
|
+
if (index < 0) return;
|
|
536
|
+
const forward = isRtl(this) ? "ArrowLeft" : "ArrowRight";
|
|
537
|
+
const back = isRtl(this) ? "ArrowRight" : "ArrowLeft";
|
|
538
|
+
if (event.key === back) this.#focusToken(tokens[Math.max(0, index - 1)]);
|
|
539
|
+
else if (event.key === forward) this.#focusToken(tokens[index + 1] || this.#input);
|
|
540
|
+
else if (event.key === "Home") this.#focusToken(tokens[0]);
|
|
541
|
+
else if (event.key === "End") this.#input.focus();
|
|
542
|
+
else if ((event.key === "Backspace" || event.key === "Delete") && !this.#locked) this.#removeAt(index);
|
|
543
|
+
else return;
|
|
544
|
+
event.preventDefault();
|
|
545
|
+
}
|
|
546
|
+
};
|
|
547
|
+
define("punica-power-search", PunicaPowerSearch);
|
|
548
|
+
|
|
549
|
+
export {
|
|
550
|
+
PunicaPowerSearch
|
|
551
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PunicaElement,
|
|
3
|
+
define
|
|
4
|
+
} from "./chunk-Y7B65FYJ.js";
|
|
5
|
+
|
|
6
|
+
// src/components/chat/chatMessageMetadata.css
|
|
7
|
+
var chatMessageMetadata_default = ":host {\n --punica-chat-message-metadata-color: var(--punica-color-text-muted);\n --punica-chat-message-metadata-gap: var(--punica-space-8);\n\n display: inline-flex;\n vertical-align: middle;\n}\n\n.base {\n display: inline-flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--punica-space-2) var(--punica-chat-message-metadata-gap);\n color: var(--punica-chat-message-metadata-color);\n font-family: var(--punica-font-family);\n font-size: var(--punica-font-size-xs);\n line-height: var(--punica-line-height);\n font-variant-numeric: tabular-nums;\n}\n";
|
|
8
|
+
|
|
9
|
+
// src/components/chat/chatMessageMetadata.js
|
|
10
|
+
var PunicaChatMessageMetadata = class extends PunicaElement {
|
|
11
|
+
static styles = chatMessageMetadata_default;
|
|
12
|
+
static template = `
|
|
13
|
+
<div part="base" class="base">
|
|
14
|
+
<slot name="time"></slot>
|
|
15
|
+
<slot name="model"></slot>
|
|
16
|
+
<slot name="tokens"></slot>
|
|
17
|
+
<slot></slot>
|
|
18
|
+
</div>
|
|
19
|
+
`;
|
|
20
|
+
};
|
|
21
|
+
define("punica-chat-message-metadata", PunicaChatMessageMetadata);
|
|
22
|
+
|
|
23
|
+
export {
|
|
24
|
+
PunicaChatMessageMetadata
|
|
25
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ModalSurface
|
|
3
|
+
} from "./chunk-FFH6CIAJ.js";
|
|
4
|
+
import {
|
|
5
|
+
icons
|
|
6
|
+
} from "./chunk-YSGWORUD.js";
|
|
7
|
+
import {
|
|
8
|
+
PunicaElement,
|
|
9
|
+
define
|
|
10
|
+
} from "./chunk-Y7B65FYJ.js";
|
|
11
|
+
|
|
12
|
+
// src/components/drawer/drawer.css
|
|
13
|
+
var drawer_default = ":host {\n --punica-drawer-radius: 0;\n --punica-drawer-padding: var(--punica-padding);\n --punica-drawer-background: var(--punica-color-bg);\n --punica-drawer-backdrop: var(--punica-color-backdrop);\n --punica-drawer-shadow: var(--punica-shadow-xl);\n --punica-drawer-size: 600px;\n --_x: 100%;\n --_y: 0;\n\n display: contents;\n}\n\n:host([size='small']) {\n --punica-drawer-size: 480px;\n}\n:host([size='large']) {\n --punica-drawer-size: 900px;\n}\n\n:host(:dir(rtl)),\n:host([side='inline-start']) {\n --_x: -100%;\n}\n:host([side='inline-start']:dir(rtl)) {\n --_x: 100%;\n}\n:host([side='block-start']) {\n --_x: 0;\n --_y: -100%;\n}\n:host([side='block-end']) {\n --_x: 0;\n --_y: 100%;\n}\n\ndialog {\n position: fixed;\n inset-block: 0;\n inset-inline: auto 0;\n inline-size: var(--punica-drawer-size);\n block-size: 100dvh;\n /* % of the viewport the panel is fixed to, without its scrollbar; 100vw\n counts the scrollbar and pushed a full-width panel off the edge. */\n max-inline-size: 100%;\n max-block-size: 100dvh;\n margin: 0;\n padding: 0;\n border: 0 solid transparent;\n border-inline-start-width: var(--punica-border-width);\n border-start-start-radius: var(--punica-drawer-radius);\n border-end-start-radius: var(--punica-drawer-radius);\n background: var(--punica-drawer-background);\n color: var(--punica-color-text);\n font-family: var(--punica-font-family);\n box-shadow: var(--punica-drawer-shadow);\n overflow: hidden;\n transform: translate(var(--_x), var(--_y));\n transition: transform var(--punica-duration-slow) var(--punica-ease),\n display var(--punica-duration-slow) allow-discrete,\n overlay var(--punica-duration-slow) allow-discrete;\n}\n\n:host([side='inline-start']) dialog {\n inset-inline: 0 auto;\n border-width: 0;\n border-inline-end-width: var(--punica-border-width);\n border-radius: 0;\n border-start-end-radius: var(--punica-drawer-radius);\n border-end-end-radius: var(--punica-drawer-radius);\n}\n\n:host([side='block-start']) dialog,\n:host([side='block-end']) dialog {\n inset-inline: 0;\n inline-size: 100%;\n block-size: var(--punica-drawer-size);\n border-width: 0;\n border-radius: 0;\n}\n:host([side='block-start']) dialog {\n inset-block: 0 auto;\n border-block-end-width: var(--punica-border-width);\n border-end-start-radius: var(--punica-drawer-radius);\n border-end-end-radius: var(--punica-drawer-radius);\n}\n:host([side='block-end']) dialog {\n inset-block: auto 0;\n border-block-start-width: var(--punica-border-width);\n border-start-start-radius: var(--punica-drawer-radius);\n border-start-end-radius: var(--punica-drawer-radius);\n}\n\ndialog[open] {\n display: flex;\n flex-direction: column;\n transform: none;\n}\n\n@starting-style {\n dialog[open] {\n transform: translate(var(--_x), var(--_y));\n }\n}\n\ndialog::backdrop {\n background: var(--punica-drawer-backdrop);\n opacity: 0;\n transition: opacity var(--punica-duration-slow) var(--punica-ease),\n display var(--punica-duration-slow) allow-discrete,\n overlay var(--punica-duration-slow) allow-discrete;\n}\n\ndialog[open]::backdrop {\n opacity: 1;\n}\n\n@starting-style {\n dialog[open]::backdrop {\n opacity: 0;\n }\n}\n\ndialog:focus-visible {\n outline: var(--punica-focus-ring);\n outline-offset: calc(-1 * var(--punica-focus-ring-width));\n}\n\n[part='header'] {\n display: flex;\n flex: none;\n align-items: center;\n gap: var(--punica-space-8);\n padding: var(--punica-drawer-padding);\n font-size: var(--punica-font-size-lg);\n font-weight: var(--punica-font-weight-semi-bold);\n line-height: var(--punica-line-height);\n}\n\n.title {\n flex: 1;\n min-inline-size: 0;\n}\n\n[part='body'] {\n flex: 1;\n min-block-size: 0;\n padding: 0 var(--punica-drawer-padding) var(--punica-drawer-padding);\n overflow: auto;\n overscroll-behavior: contain;\n line-height: var(--punica-line-height);\n}\n\n[part='footer'] {\n display: flex;\n flex: none;\n flex-wrap: wrap;\n gap: var(--punica-space-8);\n justify-content: flex-end;\n padding: var(--punica-drawer-padding);\n border-block-start: var(--punica-border-width) solid var(--punica-color-border);\n}\n\n[hidden] {\n display: none !important;\n}\n\n.close {\n all: unset;\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n inline-size: var(--punica-size-sm);\n block-size: var(--punica-size-sm);\n border-radius: var(--punica-radius-full);\n color: var(--punica-color-text);\n cursor: pointer;\n transition: background-color var(--punica-duration) var(--punica-ease);\n}\n\n.close:hover {\n background: var(--punica-color-hover);\n}\n\n.close:focus-visible {\n outline: var(--punica-focus-ring);\n outline-offset: var(--punica-focus-ring-offset);\n}\n\n:host([no-close-button]) .close {\n display: none;\n}\n\n@media (forced-colors: active) {\n dialog {\n border-color: CanvasText;\n }\n .close {\n border: var(--punica-border-width) solid ButtonText;\n }\n}\n";
|
|
14
|
+
|
|
15
|
+
// src/components/drawer/drawer.js
|
|
16
|
+
var PunicaDrawer = class extends ModalSurface(PunicaElement) {
|
|
17
|
+
static properties = {
|
|
18
|
+
side: { default: "inline-end" },
|
|
19
|
+
size: {},
|
|
20
|
+
noCloseButton: { type: Boolean },
|
|
21
|
+
labelClose: { default: "Close" }
|
|
22
|
+
};
|
|
23
|
+
static styles = drawer_default;
|
|
24
|
+
static template = `
|
|
25
|
+
<dialog part="dialog">
|
|
26
|
+
<div part="header">
|
|
27
|
+
<div class="title"><slot name="header"></slot></div>
|
|
28
|
+
<button part="close-button" class="close" type="button">${icons.close}</button>
|
|
29
|
+
</div>
|
|
30
|
+
<div part="body"><slot></slot></div>
|
|
31
|
+
<div part="footer" hidden><slot name="footer"></slot></div>
|
|
32
|
+
</dialog>
|
|
33
|
+
`;
|
|
34
|
+
#close = this.$(".close");
|
|
35
|
+
#headerSlot = this.$('slot[name="header"]');
|
|
36
|
+
#footerSlot = this.$('slot[name="footer"]');
|
|
37
|
+
constructor() {
|
|
38
|
+
super();
|
|
39
|
+
this.#close.addEventListener("click", () => this.requestClose("close-button"));
|
|
40
|
+
this.#headerSlot.addEventListener("slotchange", () => this.requestUpdate());
|
|
41
|
+
this.#footerSlot.addEventListener("slotchange", () => this.requestUpdate());
|
|
42
|
+
}
|
|
43
|
+
get labelSources() {
|
|
44
|
+
return this.#headerSlot.assignedElements({ flatten: true });
|
|
45
|
+
}
|
|
46
|
+
update(changed) {
|
|
47
|
+
super.update(changed);
|
|
48
|
+
this.#close.setAttribute("aria-label", this.labelClose);
|
|
49
|
+
this.$('[part="footer"]').hidden = !this.#footerSlot.assignedNodes({ flatten: true }).length;
|
|
50
|
+
const noHeader = !this.#headerSlot.assignedNodes({ flatten: true }).length && this.noCloseButton;
|
|
51
|
+
this.$('[part="header"]').hidden = noHeader;
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
define("punica-drawer", PunicaDrawer);
|
|
55
|
+
|
|
56
|
+
export {
|
|
57
|
+
PunicaDrawer
|
|
58
|
+
};
|