@ryuzaki13/react-foundation-ui 1.1.0 → 1.1.2
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/README.md +1 -1
- package/dist/advanced-search/index.js +1 -1
- package/dist/chunks/ImageViewerRuntime-RN49by8Y.js +225 -0
- package/dist/chunks/ImageViewerRuntime-RN49by8Y.js.map +1 -0
- package/dist/chunks/{TextEditorLexicalClient-bDEyimUa.js → TextEditorLexicalClient-DDe1NezE.js} +2 -2
- package/dist/chunks/{TextEditorLexicalClient-bDEyimUa.js.map → TextEditorLexicalClient-DDe1NezE.js.map} +1 -1
- package/dist/chunks/modal-DiQ-yR71.js +183 -0
- package/dist/chunks/modal-DiQ-yR71.js.map +1 -0
- package/dist/image/index.js +140 -343
- package/dist/image/index.js.map +1 -1
- package/dist/image/ui/ImageViewer.d.ts +4 -4
- package/dist/image/ui/ImageViewer.d.ts.map +1 -1
- package/dist/image/ui/ImageViewerRuntime.d.ts +11 -0
- package/dist/image/ui/ImageViewerRuntime.d.ts.map +1 -0
- package/dist/modal/Modal.d.ts.map +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/modal/modalMotion.d.ts +26 -0
- package/dist/modal/modalMotion.d.ts.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/text-editor/index.js +1 -1
- package/package.json +1 -1
- package/storybook-static/assets/{Badge-kXFWHX1o.js → Badge-ySHe8vmn.js} +1 -1
- package/storybook-static/assets/{Badge.stories-fhovi8Mi.js → Badge.stories-BYFVnpXD.js} +1 -1
- package/storybook-static/assets/{Button-BzcIPScf.js → Button-BSfih1w7.js} +1 -1
- package/storybook-static/assets/{Button-DuNV63ZS.js → Button-rWpfFmWo.js} +1 -1
- package/storybook-static/assets/{Button.stories-DehjFhSM.js → Button.stories-BPUX-pUU.js} +1 -1
- package/storybook-static/assets/{CheckBox-BmyFh4i7.js → CheckBox-BRmxHv5c.js} +1 -1
- package/storybook-static/assets/{CheckBox-D6mLxi2P.js → CheckBox-DJvchxuK.js} +1 -1
- package/storybook-static/assets/{CheckBox.stories-Cb7RC2GA.js → CheckBox.stories-Zz7HW_Tt.js} +1 -1
- package/storybook-static/assets/{Color-KMSTOMOX-CX-Xl_mX.js → Color-KMSTOMOX-Bvh-Futk.js} +1 -1
- package/storybook-static/assets/{ContextMenu-Cef_K-t5.js → ContextMenu-K5hnbQwB.js} +1 -1
- package/storybook-static/assets/{ContextMenu.stories-AZHC-8P9.js → ContextMenu.stories-q25-a_KQ.js} +1 -1
- package/storybook-static/assets/{DateInput-C55_ANq6.js → DateInput-DgI18Wd3.js} +1 -1
- package/storybook-static/assets/{DateInput-DSVMF1gB.js → DateInput-ElFtdL37.js} +1 -1
- package/storybook-static/assets/{DateInput.stories-CsC2qa2g.js → DateInput.stories-BfN_pYwR.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect-B8rYDJ5X.js → DateRangePresetSelect-BvJ0OXbG.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect-CIFpis74.js → DateRangePresetSelect-C6YNhNYJ.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect.stories-BjtAEDa9.js → DateRangePresetSelect.stories-DJIqYv8z.js} +1 -1
- package/storybook-static/assets/{Detail-BgqY0SrV.js → Detail-DyISI1K8.js} +1 -1
- package/storybook-static/assets/{Detail.stories-Co8o1gqx.js → Detail.stories-DGbd09Cm.js} +1 -1
- package/storybook-static/assets/{Dialog-DoekeYCP.js → Dialog-BP5LMJer.js} +1 -1
- package/storybook-static/assets/{Dialog.stories-v5TQS_1-.js → Dialog.stories-iAreH7Ft.js} +1 -1
- package/storybook-static/assets/{Disclosure-E7Bm1F1a.js → Disclosure-DbzW47oB.js} +1 -1
- package/storybook-static/assets/{Disclosure.stories-CUYuBYh6.js → Disclosure.stories-Iiobg__i.js} +1 -1
- package/storybook-static/assets/{DocsRenderer-JROSPFPF-9II2vBP-.js → DocsRenderer-JROSPFPF-BoQ-Uqbl.js} +2 -2
- package/storybook-static/assets/{DropZone-COhh7w0P.js → DropZone-BFChZBSC.js} +1 -1
- package/storybook-static/assets/{DropZone.stories-XU7u589t.js → DropZone.stories-yf4h971Z.js} +1 -1
- package/storybook-static/assets/{DropdownMenu-3ney3Ng2.js → DropdownMenu-Dk5dGs-s.js} +1 -1
- package/storybook-static/assets/{ExpandableActionPanel.stories-DJOZxMv_.js → ExpandableActionPanel.stories-kdhJaIZg.js} +1 -1
- package/storybook-static/assets/{Flex-CN6FIOe5.js → Flex-BHWaC8ei.js} +1 -1
- package/storybook-static/assets/{Flex-BtfZvPDu.js → Flex-D2dKtJQc.js} +1 -1
- package/storybook-static/assets/{Flex.stories-BCZhfSVz.js → Flex.stories-BB5qAL1v.js} +1 -1
- package/storybook-static/assets/{Grid-D_d69WcK.js → Grid-sojkTYwf.js} +1 -1
- package/storybook-static/assets/{Grid-CdgOXXxt.js → Grid-z6gyebzr.js} +1 -1
- package/storybook-static/assets/{Grid.stories-DQoSH4q8.js → Grid.stories-D4cAyXDs.js} +1 -1
- package/storybook-static/assets/{ImageCropper.stories-BJiSLQAw.js → ImageCropper.stories-FBR_3FWR.js} +1 -1
- package/storybook-static/assets/{ImageRenderer-D6M62W6a.js → ImageRenderer-CRBJvRub.js} +1 -1
- package/storybook-static/assets/{ImageRenderer.stories-BZFA51MD.js → ImageRenderer.stories-Bm5yzrQm.js} +1 -1
- package/storybook-static/assets/{ImageView.stories-DFvdAL1U.js → ImageView.stories-Dy6kw_ha.js} +1 -1
- package/storybook-static/assets/{ImageViewer-kKDkAY87.css → ImageViewer-imFO-FH3.css} +1 -1
- package/storybook-static/assets/ImageViewer.stories-CGTaIHxP.js +72 -0
- package/storybook-static/assets/ImageViewerRuntime-CRmlrtpL.css +1 -0
- package/storybook-static/assets/ImageViewerRuntime-DZ2d3UnD.js +51 -0
- package/storybook-static/assets/{Input-BrEoa-ul.js → Input-BClWQm32.js} +1 -1
- package/storybook-static/assets/{Input-DD9fx2Sx.js → Input-c3EhAUVg.js} +1 -1
- package/storybook-static/assets/{Input.stories-BmsoCBN4.js → Input.stories-BhCP8U4r.js} +1 -1
- package/storybook-static/assets/{InputDateTime-Cdmc7rX2.js → InputDateTime-B3e7QSbu.js} +1 -1
- package/storybook-static/assets/{InputDateTime.stories-BhjQejJD.js → InputDateTime.stories-lSHRzKkd.js} +1 -1
- package/storybook-static/assets/{InputFile-BJfA5xNs.js → InputFile-BaUvfw0y.js} +1 -1
- package/storybook-static/assets/{InputFile.stories-BIJaIWlj.js → InputFile.stories-xSZykMu5.js} +1 -1
- package/storybook-static/assets/{InputFiles-DORMd5fm.js → InputFiles-BeIHcYkg.js} +1 -1
- package/storybook-static/assets/{InputFiles-ZK4wdii7.js → InputFiles-Bz96ef5G.js} +1 -1
- package/storybook-static/assets/{InputFiles.stories-CVr0ENgC.js → InputFiles.stories-HYB4u-mB.js} +1 -1
- package/storybook-static/assets/{InputImage-Dk4j2KMa.js → InputImage-CZTnJ4ul.js} +1 -1
- package/storybook-static/assets/{InputImage.stories-Dtx-ynMr.js → InputImage.stories-DqjDYlZN.js} +1 -1
- package/storybook-static/assets/{LayoutPicker-CCvATGnT.js → LayoutPicker-DvKs-0Fv.js} +1 -1
- package/storybook-static/assets/{LayoutPicker.stories-MUwtf1U1.js → LayoutPicker.stories-DmuTHfsc.js} +1 -1
- package/storybook-static/assets/{Listbox-TfXOnGNL.js → Listbox-mcm1KqjJ.js} +1 -1
- package/storybook-static/assets/{Listbox.stories-Bxx8eTZ9.js → Listbox.stories-CtS-e5pi.js} +1 -1
- package/storybook-static/assets/{Modal-CeXVAufO.js → Modal-BqeKhT7H.js} +1 -1
- package/storybook-static/assets/Modal.stories-Gli7XX36.js +180 -0
- package/storybook-static/assets/{MultiSelect-CdEQ7LE0.js → MultiSelect-CIMJ-GDy.js} +1 -1
- package/storybook-static/assets/{MultiSelect-Bq5Xj6i5.js → MultiSelect-Cl6rIRPU.js} +1 -1
- package/storybook-static/assets/{MultiSelect.stories-BgjuPpG-.js → MultiSelect.stories-Dff66BK5.js} +1 -1
- package/storybook-static/assets/{NotificationsHost-B6xWf_Ae.js → NotificationsHost-DowbxTw1.js} +1 -1
- package/storybook-static/assets/{NotificationsHost.stories-BmnJ3G3S.js → NotificationsHost.stories-nbb74ArB.js} +1 -1
- package/storybook-static/assets/{ODataMultiSelect-BGFMSKC-.js → ODataMultiSelect-BwjM7TCI.js} +1 -1
- package/storybook-static/assets/{ODataMultiSelect.stories-Cw3mS3ds.js → ODataMultiSelect.stories-DqjbgljQ.js} +1 -1
- package/storybook-static/assets/{ODataSelect-BTpRnB-o.js → ODataSelect-BfFCFPKT.js} +1 -1
- package/storybook-static/assets/{ODataSelect-9gP8ejA7.js → ODataSelect-CUb853Wg.js} +1 -1
- package/storybook-static/assets/{ODataSelect.stories-C8XnS6W-.js → ODataSelect.stories-yivutwVc.js} +1 -1
- package/storybook-static/assets/{ODataTreeMultiSelect-TXpOQMB8.js → ODataTreeMultiSelect-Dd7RuuQJ.js} +1 -1
- package/storybook-static/assets/{ODataTreeMultiSelect.stories-ikxs50iA.js → ODataTreeMultiSelect.stories-fr3DsJrU.js} +1 -1
- package/storybook-static/assets/{ODataTreeSelect-CvgrWRYS.js → ODataTreeSelect-CPpbLgIt.js} +1 -1
- package/storybook-static/assets/{ODataTreeSelect.stories-CWuZaxIF.js → ODataTreeSelect.stories-DmEX0dcP.js} +1 -1
- package/storybook-static/assets/{PeriodSelect-CVT2XzOd.js → PeriodSelect-D5kBTYIo.js} +1 -1
- package/storybook-static/assets/{PeriodSelect.stories-B5jJRelX.js → PeriodSelect.stories-BQ8Fe5La.js} +1 -1
- package/storybook-static/assets/{Popover-D9YhHWsi.js → Popover-BXriLIId.js} +1 -1
- package/storybook-static/assets/{Popover.stories-CtEUOX4O.js → Popover.stories-CKXTLaPn.js} +1 -1
- package/storybook-static/assets/{PresetRangeDateInput-D3r0iIRk.js → PresetRangeDateInput-BAeztTbq.js} +1 -1
- package/storybook-static/assets/{PresetRangeDateInput.stories-Dcc1dGV0.js → PresetRangeDateInput.stories-DHErwmMR.js} +1 -1
- package/storybook-static/assets/{RadioButton-CWjkmWu9.js → RadioButton-CHmZgd5q.js} +1 -1
- package/storybook-static/assets/{RadioButton.stories-BXXJWoHz.js → RadioButton.stories-aa0vDs3Q.js} +1 -1
- package/storybook-static/assets/{RadioGroup-DCZdrs0C.js → RadioGroup-DPeAo49R.js} +1 -1
- package/storybook-static/assets/{RadioGroup-Bjc2XTVk.js → RadioGroup-DvOxoOpU.js} +1 -1
- package/storybook-static/assets/{RadioGroup.stories-CsfVUt9l.js → RadioGroup.stories-R2DhGaUo.js} +1 -1
- package/storybook-static/assets/{Select-BGu6rVaZ.js → Select-CMFiMGUD.js} +1 -1
- package/storybook-static/assets/{Select-BBFQZObL.js → Select-DAgVgEuM.js} +1 -1
- package/storybook-static/assets/{Select.stories-wIbcvZYi.js → Select.stories-DnDwuoSb.js} +1 -1
- package/storybook-static/assets/{SelectOptionContent-DkTRrtFu.js → SelectOptionContent-DlUoa2zi.js} +1 -1
- package/storybook-static/assets/{SerializableSelect-CdnRBVHB.js → SerializableSelect-BL6Sy3b_.js} +1 -1
- package/storybook-static/assets/{SerializableSelect-CJtNM-c6.js → SerializableSelect-CHAD3r9t.js} +1 -1
- package/storybook-static/assets/{SerializableSelect.stories-DVwxpiTF.js → SerializableSelect.stories-tcz7KvtM.js} +1 -1
- package/storybook-static/assets/{SingleDateTimeInput-BK2_uv0z.js → SingleDateTimeInput-BTjmZ93p.js} +1 -1
- package/storybook-static/assets/{SingleDateTimeInput.stories-DPH4R-h9.js → SingleDateTimeInput.stories-fAE8JkXx.js} +1 -1
- package/storybook-static/assets/{Slider-f4VatXYq.js → Slider-BT1LHZ79.js} +1 -1
- package/storybook-static/assets/{Slider.stories-CBnmt8h9.js → Slider.stories-D936g26I.js} +1 -1
- package/storybook-static/assets/{SliderInput-W2HVfY9Z.js → SliderInput-BhFLXhLl.js} +1 -1
- package/storybook-static/assets/{SliderInput.stories-B7wzoUbu.js → SliderInput.stories-BVdD9tEX.js} +1 -1
- package/storybook-static/assets/{Sortable-CCL1UMb_.js → Sortable-SmbXEzK3.js} +1 -1
- package/storybook-static/assets/{Sortable.stories-B8SgFjl7.js → Sortable.stories-CkCKnV-o.js} +1 -1
- package/storybook-static/assets/{Splitter-BsBb1sgN.js → Splitter-HnrBItZh.js} +1 -1
- package/storybook-static/assets/{Splitter.stories-CuBHIA8-.js → Splitter.stories-DW1Cs65Y.js} +1 -1
- package/storybook-static/assets/{StateSelect-BENsGD07.js → StateSelect-j73SSm6j.js} +1 -1
- package/storybook-static/assets/{StateSelect.stories-byEPoQ2E.js → StateSelect.stories-DlYcFCZu.js} +1 -1
- package/storybook-static/assets/{Switch-DKXE4SVs.js → Switch-Df9CUFzH.js} +1 -1
- package/storybook-static/assets/{Switch.stories-BWQdJoJT.js → Switch.stories-CLj7D165.js} +1 -1
- package/storybook-static/assets/{Table-D9w3ncNi.js → Table-DQNIWsu6.js} +1 -1
- package/storybook-static/assets/{Table.stories-znqy5cLP.js → Table.stories-PauSY-JA.js} +1 -1
- package/storybook-static/assets/{Tabs-D_OO95mK.js → Tabs-Dk5gLtMV.js} +1 -1
- package/storybook-static/assets/{Tabs.stories-B2A1HYeH.js → Tabs.stories-QbqForCs.js} +1 -1
- package/storybook-static/assets/{TagInput.stories-DaBnABh8.js → TagInput.stories-BKDMX-Xf.js} +1 -1
- package/storybook-static/assets/{Textarea-Hwyvp6ll.js → Textarea-DysJ81Q0.js} +1 -1
- package/storybook-static/assets/{Textarea.stories-DD3Icl3x.js → Textarea.stories-BjwiGsRE.js} +1 -1
- package/storybook-static/assets/{TimePanel-CdpxiwMQ.js → TimePanel-B3ydmHaY.js} +1 -1
- package/storybook-static/assets/{TimePanel.stories-ytXuqm9R.js → TimePanel.stories-BKywSX32.js} +1 -1
- package/storybook-static/assets/{Toggle-Sdruy8bN.js → Toggle-KdmtodIb.js} +1 -1
- package/storybook-static/assets/{Toggle.stories-qgeQLvRn.js → Toggle.stories-Bhb_z8Jz.js} +1 -1
- package/storybook-static/assets/{TreeMultiSelect-t2FNc6CY.js → TreeMultiSelect-CwW9N9Ig.js} +1 -1
- package/storybook-static/assets/{TreeMultiSelect-CKfmI37X.js → TreeMultiSelect-DsmEfu72.js} +1 -1
- package/storybook-static/assets/{TreeMultiSelect.stories-k1NBsKij.js → TreeMultiSelect.stories-C6D2dAVV.js} +1 -1
- package/storybook-static/assets/{TreePickerBase-DXv--vBR.js → TreePickerBase-KscLSAmI.js} +1 -1
- package/storybook-static/assets/{TreeSelect-DYHpUNGC.js → TreeSelect-CaZc5mMy.js} +1 -1
- package/storybook-static/assets/{TreeSelect-DgKArbMR.js → TreeSelect-Dyzfh0j1.js} +1 -1
- package/storybook-static/assets/{TreeSelect.stories-DTpkFKp7.js → TreeSelect.stories-DgPobNFf.js} +1 -1
- package/storybook-static/assets/{TreeTable-BOy0Tit-.js → TreeTable-Cp-3yiUl.js} +1 -1
- package/storybook-static/assets/{TreeTable.stories-By1BlhSx.js → TreeTable.stories-Ch5zCYJv.js} +1 -1
- package/storybook-static/assets/{WithTooltip-7X4HQR7L-D0sHKirZ.js → WithTooltip-7X4HQR7L-Bvci3679.js} +1 -1
- package/storybook-static/assets/{base-table-CYO33S-X.js → base-table-4j0yzCkY.js} +1 -1
- package/storybook-static/assets/{blocks-Be6sd6Mi.js → blocks-B-ZSUli0.js} +6 -6
- package/storybook-static/assets/{button-D2JNy4h8.js → button-PJeFaVDD.js} +1 -1
- package/storybook-static/assets/{check-box-B4tjJED4.js → check-box-B0-G8LQm.js} +1 -1
- package/storybook-static/assets/{chunk-3LY4VQVK-jaQG9QeP.js → chunk-3LY4VQVK-D6w4YoJz.js} +1 -1
- package/storybook-static/assets/{chunk-LITCR56V-HuSFGdRZ.js → chunk-LITCR56V-CO50GA85.js} +1 -1
- package/storybook-static/assets/{contextMenu-DIpGZPH1.js → contextMenu-CnU3cBnI.js} +1 -1
- package/storybook-static/assets/{error-DHDPaDqg.js → error-BSGcuIkS.js} +1 -1
- package/storybook-static/assets/{flex-BWOaXKdl.js → flex-DH0uZKDL.js} +1 -1
- package/storybook-static/assets/{floating-ui.react-C83w-peW.js → floating-ui.react-D1gWigwt.js} +1 -1
- package/storybook-static/assets/formatter-L2YTDE3Q-CTky3r2k.js +1 -0
- package/storybook-static/assets/{formatters-BaQpdAeu.js → formatters-q62UjZF6.js} +1 -1
- package/storybook-static/assets/grid-rDCrr9Aa.js +1 -0
- package/storybook-static/assets/{hooks-5ZdxaH2L.js → hooks-C0kO8ifn.js} +1 -1
- package/storybook-static/assets/{iframe-Dw3PG8YA.js → iframe-D1kbCBk7.js} +3 -3
- package/storybook-static/assets/{input-Cv9ps4La.js → input-D8SCvYlc.js} +1 -1
- package/storybook-static/assets/{lucide-react-DMM2-ayk.js → lucide-react-DItxRogI.js} +1 -1
- package/storybook-static/assets/{mdx-react-shim-Be8o0WOk.js → mdx-react-shim-B8QUPqDz.js} +1 -1
- package/storybook-static/assets/{media-Bc0eGngh.js → media-DgzbAjsg.js} +1 -1
- package/storybook-static/assets/{misc-7hwZFEXA.js → misc-CzV_PQE6.js} +1 -1
- package/storybook-static/assets/{notifications-DkxUPPfB.js → notifications-CdohXJuf.js} +1 -1
- package/storybook-static/assets/{odata-nO_yW-3w.js → odata-BCXcLElA.js} +1 -1
- package/storybook-static/assets/odata-service-tcECnUvF.js +1 -0
- package/storybook-static/assets/{odataStoryFixtures-J-OBpNg6.js → odataStoryFixtures-KJnMeJob.js} +1 -1
- package/storybook-static/assets/{picker-BQr_wySR.js → picker-BILXnlvH.js} +1 -1
- package/storybook-static/assets/{popover-v9hxY66g.js → popover-Bmfe__Oe.js} +1 -1
- package/storybook-static/assets/{preset-select-d-pIvdGN.js → preset-select-C3eeRGrr.js} +1 -1
- package/storybook-static/assets/{react-18-CXAAUXpx.js → react-18-C05GCNzp.js} +1 -1
- package/storybook-static/assets/{react-ByWJZTAG.js → react-C7-n-j-7.js} +2 -2
- package/storybook-static/assets/{react-dom-DXk3dBb-.js → react-dom-BuBaXqtP.js} +1 -1
- package/storybook-static/assets/select-DOX3d-Dq.js +1 -0
- package/storybook-static/assets/{slider-tV7pXkKI.js → slider-mYXodgoS.js} +1 -1
- package/storybook-static/assets/{sortable-CHwTYQdY.js → sortable-DFt3FEPe.js} +1 -1
- package/storybook-static/assets/{syntaxhighlighter-RTCFPKCB-CsqLGhls.js → syntaxhighlighter-RTCFPKCB-DpuAtHAL.js} +1 -1
- package/storybook-static/assets/{text-Bf_PqPja.js → text-CxC7Ibdz.js} +1 -1
- package/storybook-static/assets/{theming-D37tYvvG.js → theming-LaAgw3BX.js} +1 -1
- package/storybook-static/assets/ui-CidvNniM.js +1 -0
- package/storybook-static/assets/{useODataSelectBase-DSlg4q3l.js → useODataSelectBase-D8W-kHaa.js} +1 -1
- package/storybook-static/assets/{useODataTreeData-d53TKU6r.js → useODataTreeData-CdDBNi-n.js} +1 -1
- package/storybook-static/assets/{utils-CnV3Gszu.js → utils-Bgk51jNr.js} +1 -1
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/project.json +1 -1
- package/dist/chunks/modal-Cll8YZ7b.js +0 -153
- package/dist/chunks/modal-Cll8YZ7b.js.map +0 -1
- package/storybook-static/assets/ImageViewer.stories-BzUxxQAO.js +0 -72
- package/storybook-static/assets/Modal.stories-DmnMwG9h.js +0 -180
- package/storybook-static/assets/formatter-L2YTDE3Q-CO9xKxzu.js +0 -1
- package/storybook-static/assets/grid-BwTl00V9.js +0 -1
- package/storybook-static/assets/odata-service-RLReWm0A.js +0 -1
- package/storybook-static/assets/select-BessDJfg.js +0 -1
- package/storybook-static/assets/ui-QO8tRKaR.js +0 -1
package/dist/image/index.js
CHANGED
|
@@ -1,91 +1,82 @@
|
|
|
1
1
|
import { n as e } from "../chunks/button-CC0Jdx1j.js";
|
|
2
2
|
import { r as t } from "../chunks/grid-dI94AAbi.js";
|
|
3
3
|
import { o as n } from "../chunks/input-CZLUUggm.js";
|
|
4
|
-
import { i as r, n as i, r as a } from "../chunks/modal-
|
|
4
|
+
import { i as r, n as i, r as a } from "../chunks/modal-DiQ-yR71.js";
|
|
5
5
|
import { t as o } from "../chunks/input-files-aB8iaqGk.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
10
|
-
import k from "react-easy-crop";
|
|
11
|
-
import A, { isImageSlide as j } from "yet-another-react-lightbox";
|
|
12
|
-
import M from "yet-another-react-lightbox/plugins/captions";
|
|
13
|
-
import N from "yet-another-react-lightbox/plugins/counter";
|
|
14
|
-
import P from "yet-another-react-lightbox/plugins/download";
|
|
15
|
-
import F from "yet-another-react-lightbox/plugins/fullscreen";
|
|
16
|
-
import I from "yet-another-react-lightbox/plugins/thumbnails";
|
|
17
|
-
import L from "yet-another-react-lightbox/plugins/zoom";
|
|
6
|
+
import { Suspense as s, lazy as c, useCallback as l, useEffect as u, useMemo as d, useRef as f, useState as p } from "react";
|
|
7
|
+
import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
8
|
+
import _ from "react-easy-crop";
|
|
18
9
|
//#region src/image/lib/buildImageSrcSet.ts
|
|
19
|
-
function
|
|
10
|
+
function v(e) {
|
|
20
11
|
return e.map((e) => "width" in e ? `${e.src} ${e.width}w` : `${e.src} ${e.density}x`).join(", ");
|
|
21
12
|
}
|
|
22
13
|
//#endregion
|
|
23
14
|
//#region src/image/lib/buildImageSources.ts
|
|
24
|
-
function
|
|
15
|
+
function y(e, t) {
|
|
25
16
|
return (e ?? []).map((e) => ({
|
|
26
|
-
srcSet:
|
|
17
|
+
srcSet: v(e.candidates),
|
|
27
18
|
type: e.type,
|
|
28
19
|
sizes: e.sizes ?? t
|
|
29
20
|
})).filter((e) => e.srcSet.length > 0);
|
|
30
21
|
}
|
|
31
22
|
//#endregion
|
|
32
23
|
//#region src/image/ui/ImageCropper.tsx
|
|
33
|
-
var
|
|
24
|
+
var b = {
|
|
34
25
|
x: 0,
|
|
35
26
|
y: 0
|
|
36
27
|
};
|
|
37
|
-
function
|
|
38
|
-
let [
|
|
39
|
-
|
|
28
|
+
function x({ image: e, aspect: t = 16 / 9, width: n = "100%", className: r, style: i, crop: a, defaultCrop: o = b, zoom: s, defaultZoom: c = 1, minZoom: u = 1, maxZoom: d = 3, zoomSpeed: f = .1, objectFit: m = "contain", disabled: g = !1, onCropChange: v, onZoomChange: y, onCropComplete: x }) {
|
|
29
|
+
let [S, C] = p(o), [w, T] = p(c), E = a ?? S, D = s ?? w, O = l((e) => {
|
|
30
|
+
g || (a === void 0 && C(e), v?.(e));
|
|
40
31
|
}, [
|
|
41
32
|
a,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
]),
|
|
45
|
-
|
|
33
|
+
g,
|
|
34
|
+
v
|
|
35
|
+
]), k = l((e) => {
|
|
36
|
+
g || (s === void 0 && T(e), y?.(e));
|
|
46
37
|
}, [
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
]),
|
|
51
|
-
|
|
52
|
-
}, [
|
|
53
|
-
return /* @__PURE__ */
|
|
38
|
+
g,
|
|
39
|
+
y,
|
|
40
|
+
s
|
|
41
|
+
]), A = l((e, t) => {
|
|
42
|
+
g || x?.(t, e);
|
|
43
|
+
}, [g, x]);
|
|
44
|
+
return /* @__PURE__ */ h("div", {
|
|
54
45
|
className: r,
|
|
55
46
|
style: {
|
|
56
47
|
position: "relative",
|
|
57
48
|
width: n,
|
|
58
49
|
aspectRatio: t,
|
|
59
|
-
pointerEvents:
|
|
50
|
+
pointerEvents: g ? "none" : void 0,
|
|
60
51
|
...i
|
|
61
52
|
},
|
|
62
|
-
children: /* @__PURE__ */
|
|
53
|
+
children: /* @__PURE__ */ h(_, {
|
|
63
54
|
image: e,
|
|
64
|
-
crop:
|
|
65
|
-
zoom:
|
|
55
|
+
crop: E,
|
|
56
|
+
zoom: D,
|
|
66
57
|
aspect: t,
|
|
67
58
|
minZoom: u,
|
|
68
|
-
maxZoom:
|
|
69
|
-
zoomSpeed:
|
|
59
|
+
maxZoom: d,
|
|
60
|
+
zoomSpeed: f,
|
|
70
61
|
objectFit: m,
|
|
71
|
-
onCropChange:
|
|
72
|
-
onZoomChange:
|
|
73
|
-
onCropComplete:
|
|
74
|
-
cropperProps: { "aria-disabled":
|
|
62
|
+
onCropChange: O,
|
|
63
|
+
onZoomChange: k,
|
|
64
|
+
onCropComplete: A,
|
|
65
|
+
cropperProps: { "aria-disabled": g || void 0 }
|
|
75
66
|
})
|
|
76
67
|
});
|
|
77
68
|
}
|
|
78
69
|
//#endregion
|
|
79
70
|
//#region src/image/ui/ImagePlaceholder.tsx
|
|
80
|
-
function
|
|
81
|
-
return /* @__PURE__ */
|
|
71
|
+
function S({ width: e = "100%", height: t = "100%", aspectRatio: n = "16 / 9", className: r }) {
|
|
72
|
+
return /* @__PURE__ */ h("div", {
|
|
82
73
|
style: {
|
|
83
74
|
width: e,
|
|
84
75
|
height: t,
|
|
85
76
|
aspectRatio: n
|
|
86
77
|
},
|
|
87
78
|
className: r,
|
|
88
|
-
children: /* @__PURE__ */
|
|
79
|
+
children: /* @__PURE__ */ h("svg", {
|
|
89
80
|
width: e,
|
|
90
81
|
height: t,
|
|
91
82
|
viewBox: "0 0 200 200",
|
|
@@ -96,31 +87,31 @@ function H({ width: e = "100%", height: t = "100%", aspectRatio: n = "16 / 9", c
|
|
|
96
87
|
ry: "10",
|
|
97
88
|
style: { display: "block" },
|
|
98
89
|
"aria-label": "Изображение недоступно",
|
|
99
|
-
children: /* @__PURE__ */
|
|
90
|
+
children: /* @__PURE__ */ g("g", {
|
|
100
91
|
fill: "var(--surface-0)",
|
|
101
92
|
children: [
|
|
102
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ h("rect", {
|
|
103
94
|
x: "40",
|
|
104
95
|
y: "50",
|
|
105
96
|
width: "120",
|
|
106
97
|
height: "100",
|
|
107
98
|
rx: "10"
|
|
108
99
|
}),
|
|
109
|
-
/* @__PURE__ */
|
|
100
|
+
/* @__PURE__ */ h("circle", {
|
|
110
101
|
cx: "60",
|
|
111
102
|
cy: "70",
|
|
112
103
|
r: "8",
|
|
113
104
|
fill: "var(--surface-2)"
|
|
114
105
|
}),
|
|
115
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ h("path", {
|
|
116
107
|
d: "M50 130 L75 100 L100 130 Z",
|
|
117
108
|
fill: "var(--surface-2)"
|
|
118
109
|
}),
|
|
119
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ h("path", {
|
|
120
111
|
d: "M90 130 L120 90 L150 130 Z",
|
|
121
112
|
fill: "var(--surface-2)"
|
|
122
113
|
}),
|
|
123
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ h("line", {
|
|
124
115
|
x1: "160",
|
|
125
116
|
y1: "40",
|
|
126
117
|
x2: "40",
|
|
@@ -129,7 +120,7 @@ function H({ width: e = "100%", height: t = "100%", aspectRatio: n = "16 / 9", c
|
|
|
129
120
|
strokeWidth: "15",
|
|
130
121
|
strokeLinecap: "round"
|
|
131
122
|
}),
|
|
132
|
-
/* @__PURE__ */
|
|
123
|
+
/* @__PURE__ */ h("line", {
|
|
133
124
|
x1: "160",
|
|
134
125
|
y1: "40",
|
|
135
126
|
x2: "40",
|
|
@@ -145,30 +136,30 @@ function H({ width: e = "100%", height: t = "100%", aspectRatio: n = "16 / 9", c
|
|
|
145
136
|
}
|
|
146
137
|
//#endregion
|
|
147
138
|
//#region src/image/ui/ImageRenderer.tsx
|
|
148
|
-
function
|
|
149
|
-
let
|
|
150
|
-
|
|
139
|
+
function C({ src: e, sources: t, alt: n, role: r, ariaLabel: i, caption: a, fallback: o, useFigure: s = !1, layout: c = "cover", width: l = "100%", height: d = "100%", aspectRatio: _, intrinsicWidth: v, intrinsicHeight: y, onLoad: b, onError: x, style: C, wrapperStyle: w, ...T }) {
|
|
140
|
+
let E = f(null), [D, O] = p(0), [k, A] = p(!1), [j, M] = p(!1), [N, P] = p(!1);
|
|
141
|
+
u(() => {
|
|
151
142
|
if (typeof IntersectionObserver > "u") {
|
|
152
|
-
let e = window.setTimeout(() =>
|
|
143
|
+
let e = window.setTimeout(() => A(!0), 0);
|
|
153
144
|
return () => window.clearTimeout(e);
|
|
154
145
|
}
|
|
155
146
|
let e = new IntersectionObserver(([t]) => {
|
|
156
147
|
if (t.isIntersecting) {
|
|
157
148
|
let n = Math.round(t.boundingClientRect.width);
|
|
158
|
-
|
|
149
|
+
O(n), A(!0), e.disconnect();
|
|
159
150
|
}
|
|
160
151
|
}, {
|
|
161
152
|
rootMargin: "100px",
|
|
162
153
|
threshold: .01
|
|
163
154
|
});
|
|
164
|
-
return
|
|
155
|
+
return E.current && e.observe(E.current), () => e.disconnect();
|
|
165
156
|
}, []);
|
|
166
|
-
let
|
|
167
|
-
width:
|
|
168
|
-
height:
|
|
169
|
-
aspectRatio:
|
|
170
|
-
}),
|
|
171
|
-
...
|
|
157
|
+
let F = c === "intrinsic", I = F ? "auto" : d, L = v && y ? `${v} / ${y}` : void 0, R = F ? L ?? _ ?? "auto" : _ ?? "16 / 9", z = F && R !== "auto" && R !== "unset" ? "100%" : I, B = D ? `${D}px` : "100vw", V = /* @__PURE__ */ h(S, {
|
|
158
|
+
width: l,
|
|
159
|
+
height: z,
|
|
160
|
+
aspectRatio: R
|
|
161
|
+
}), H = F ? {
|
|
162
|
+
...C,
|
|
172
163
|
display: "block",
|
|
173
164
|
width: "100%",
|
|
174
165
|
height: "auto",
|
|
@@ -177,45 +168,45 @@ function U({ src: e, sources: t, alt: n, role: r, ariaLabel: i, caption: a, fall
|
|
|
177
168
|
display: "block",
|
|
178
169
|
width: "100%",
|
|
179
170
|
height: "100%",
|
|
180
|
-
objectFit:
|
|
181
|
-
...
|
|
182
|
-
}, U = /* @__PURE__ */
|
|
183
|
-
!
|
|
184
|
-
|
|
171
|
+
objectFit: c,
|
|
172
|
+
...C
|
|
173
|
+
}, U = /* @__PURE__ */ g(m, { children: [
|
|
174
|
+
!j && !N && (o || V),
|
|
175
|
+
k && !N && /* @__PURE__ */ g("picture", { children: [t?.map((e) => /* @__PURE__ */ h("source", {
|
|
185
176
|
srcSet: e.srcSet,
|
|
186
177
|
type: e.type,
|
|
187
|
-
sizes: e.sizes ??
|
|
188
|
-
}, `${e.type ?? "source"}-${e.srcSet}`)), /* @__PURE__ */
|
|
178
|
+
sizes: e.sizes ?? B
|
|
179
|
+
}, `${e.type ?? "source"}-${e.srcSet}`)), /* @__PURE__ */ h("img", {
|
|
189
180
|
src: e,
|
|
190
181
|
alt: n,
|
|
191
182
|
role: r,
|
|
192
183
|
"aria-label": i,
|
|
193
184
|
onLoad: (e) => {
|
|
194
|
-
|
|
185
|
+
M(!0), b?.(e);
|
|
195
186
|
},
|
|
196
187
|
onError: (e) => {
|
|
197
|
-
|
|
188
|
+
P(!0), x?.(e);
|
|
198
189
|
},
|
|
199
|
-
style:
|
|
200
|
-
"aria-busy": !
|
|
201
|
-
width:
|
|
202
|
-
height:
|
|
203
|
-
...
|
|
190
|
+
style: j ? H : { display: "none" },
|
|
191
|
+
"aria-busy": !j,
|
|
192
|
+
width: v,
|
|
193
|
+
height: y,
|
|
194
|
+
...T
|
|
204
195
|
})] }),
|
|
205
|
-
|
|
206
|
-
] }), W = /* @__PURE__ */
|
|
207
|
-
ref:
|
|
196
|
+
N && V
|
|
197
|
+
] }), W = /* @__PURE__ */ h("div", {
|
|
198
|
+
ref: E,
|
|
208
199
|
style: {
|
|
209
|
-
width:
|
|
210
|
-
height:
|
|
211
|
-
aspectRatio:
|
|
212
|
-
...
|
|
200
|
+
width: l,
|
|
201
|
+
height: I,
|
|
202
|
+
aspectRatio: R,
|
|
203
|
+
...w
|
|
213
204
|
},
|
|
214
205
|
children: U
|
|
215
206
|
});
|
|
216
|
-
return s ? /* @__PURE__ */
|
|
207
|
+
return s ? /* @__PURE__ */ g("figure", {
|
|
217
208
|
className: "relative",
|
|
218
|
-
children: [W, a && /* @__PURE__ */
|
|
209
|
+
children: [W, a && /* @__PURE__ */ h("figcaption", {
|
|
219
210
|
style: {
|
|
220
211
|
bottom: 2,
|
|
221
212
|
right: 2,
|
|
@@ -228,27 +219,27 @@ function U({ src: e, sources: t, alt: n, role: r, ariaLabel: i, caption: a, fall
|
|
|
228
219
|
}
|
|
229
220
|
//#endregion
|
|
230
221
|
//#region src/image/lib/getImageSelectionKey.ts
|
|
231
|
-
function
|
|
222
|
+
function w(e, t) {
|
|
232
223
|
return `${e.file.meta.name}-${e.file.meta.size}-${e.file.meta.lastModified}-${t}`;
|
|
233
224
|
}
|
|
234
225
|
//#endregion
|
|
235
226
|
//#region src/image/model/useImageSelectionState.ts
|
|
236
|
-
var
|
|
227
|
+
var T = {
|
|
237
228
|
crop: {
|
|
238
229
|
x: 0,
|
|
239
230
|
y: 0
|
|
240
231
|
},
|
|
241
232
|
zoom: 1
|
|
242
233
|
};
|
|
243
|
-
function
|
|
244
|
-
let [a, o] =
|
|
234
|
+
function E({ value: e, defaultValue: t, disabled: n, onChange: r, onApply: i }) {
|
|
235
|
+
let [a, o] = p(t ?? []), [s, c] = p(0), [u, f] = p({}), m = e ?? a, h = l((t) => {
|
|
245
236
|
let n = t(m);
|
|
246
237
|
e === void 0 && o(n), r?.(n);
|
|
247
238
|
}, [
|
|
248
239
|
r,
|
|
249
240
|
m,
|
|
250
241
|
e
|
|
251
|
-
]), g =
|
|
242
|
+
]), g = d(() => m.map((e) => e.file), [m]), _ = m.length === 0 ? 0 : Math.min(s, m.length - 1), v = m[_], y = v ? w(v, _) : void 0, b = y ? u[y] ?? T : T, x = m.length > 0, S = !n && x && m.every((e) => e.alt.trim() && e.crop), C = l((e) => {
|
|
252
243
|
h((t) => e.map((e) => {
|
|
253
244
|
let n = t.find((t) => t.file.file === e.file);
|
|
254
245
|
return n ? {
|
|
@@ -259,26 +250,26 @@ function K({ value: e, defaultValue: t, disabled: n, onChange: r, onApply: i })
|
|
|
259
250
|
alt: ""
|
|
260
251
|
};
|
|
261
252
|
}));
|
|
262
|
-
}, [h]),
|
|
253
|
+
}, [h]), E = l((e) => {
|
|
263
254
|
h((t) => t.map((t, n) => n === _ ? {
|
|
264
255
|
...t,
|
|
265
256
|
alt: e
|
|
266
257
|
} : t));
|
|
267
|
-
}, [_, h]),
|
|
258
|
+
}, [_, h]), D = l((e) => {
|
|
268
259
|
h((t) => t.map((t, n) => n === _ ? {
|
|
269
260
|
...t,
|
|
270
261
|
crop: e
|
|
271
262
|
} : t));
|
|
272
|
-
}, [_, h]),
|
|
273
|
-
y &&
|
|
263
|
+
}, [_, h]), O = l((e) => {
|
|
264
|
+
y && f((t) => ({
|
|
274
265
|
...t,
|
|
275
266
|
[y]: {
|
|
276
267
|
crop: e,
|
|
277
268
|
zoom: t[y]?.zoom ?? 1
|
|
278
269
|
}
|
|
279
270
|
}));
|
|
280
|
-
}, [y]),
|
|
281
|
-
y &&
|
|
271
|
+
}, [y]), k = l((e) => {
|
|
272
|
+
y && f((t) => ({
|
|
282
273
|
...t,
|
|
283
274
|
[y]: {
|
|
284
275
|
crop: t[y]?.crop ?? {
|
|
@@ -297,20 +288,20 @@ function K({ value: e, defaultValue: t, disabled: n, onChange: r, onApply: i })
|
|
|
297
288
|
activeCropperState: b,
|
|
298
289
|
hasSelected: x,
|
|
299
290
|
canApply: S,
|
|
300
|
-
apply:
|
|
291
|
+
apply: l(() => {
|
|
301
292
|
i?.(m);
|
|
302
293
|
}, [i, m]),
|
|
303
294
|
setFiles: C,
|
|
304
|
-
setActiveIndex:
|
|
305
|
-
setActiveAlt:
|
|
306
|
-
setActiveCrop:
|
|
307
|
-
setActiveCropperCrop:
|
|
308
|
-
setActiveCropperZoom:
|
|
295
|
+
setActiveIndex: c,
|
|
296
|
+
setActiveAlt: E,
|
|
297
|
+
setActiveCrop: D,
|
|
298
|
+
setActiveCropperCrop: O,
|
|
299
|
+
setActiveCropperZoom: k
|
|
309
300
|
};
|
|
310
301
|
}
|
|
311
302
|
//#endregion
|
|
312
303
|
//#region src/image/lib/getImageCropPreviewStyle.ts
|
|
313
|
-
function
|
|
304
|
+
function D(e, t, n) {
|
|
314
305
|
if (!e.crop || !t) return {
|
|
315
306
|
width: "100%",
|
|
316
307
|
aspectRatio: n,
|
|
@@ -329,18 +320,18 @@ function q(e, t, n) {
|
|
|
329
320
|
}
|
|
330
321
|
//#endregion
|
|
331
322
|
//#region src/image/ui/ImageSelectionFields.tsx
|
|
332
|
-
var
|
|
323
|
+
var O = [
|
|
333
324
|
"image/jpeg",
|
|
334
325
|
"image/png",
|
|
335
326
|
"image/webp",
|
|
336
327
|
"image/avif"
|
|
337
328
|
];
|
|
338
|
-
function
|
|
339
|
-
let u = l.activeImage?.crop, [
|
|
340
|
-
return /* @__PURE__ */
|
|
329
|
+
function k({ aspect: e = 16 / 9, disabled: r, allowedMime: i = O, maxBytes: a, minimumCropWidth: s, onReadError: c, state: l }) {
|
|
330
|
+
let u = l.activeImage?.crop, [d, f] = p({});
|
|
331
|
+
return /* @__PURE__ */ g(t, {
|
|
341
332
|
gap: "md",
|
|
342
333
|
children: [
|
|
343
|
-
/* @__PURE__ */
|
|
334
|
+
/* @__PURE__ */ h(o, {
|
|
344
335
|
label: "Файл изображения",
|
|
345
336
|
allowedMime: i,
|
|
346
337
|
value: l.files,
|
|
@@ -349,13 +340,13 @@ function Y({ aspect: e = 16 / 9, disabled: r, allowedMime: i = J, maxBytes: a, m
|
|
|
349
340
|
disabled: r,
|
|
350
341
|
onReadError: c
|
|
351
342
|
}),
|
|
352
|
-
l.hasSelected && l.activeImage && /* @__PURE__ */
|
|
353
|
-
/* @__PURE__ */
|
|
343
|
+
l.hasSelected && l.activeImage && /* @__PURE__ */ g("div", { children: [
|
|
344
|
+
/* @__PURE__ */ h(t, {
|
|
354
345
|
templateColumns: "repeat(auto-fill, minmax(10em, 1fr))",
|
|
355
346
|
gap: "xs",
|
|
356
347
|
children: l.value.map((t, n) => {
|
|
357
|
-
let i =
|
|
358
|
-
return /* @__PURE__ */
|
|
348
|
+
let i = w(t, n);
|
|
349
|
+
return /* @__PURE__ */ h("button", {
|
|
359
350
|
type: "button",
|
|
360
351
|
disabled: r,
|
|
361
352
|
onClick: () => l.setActiveIndex(n),
|
|
@@ -365,7 +356,7 @@ function Y({ aspect: e = 16 / 9, disabled: r, allowedMime: i = J, maxBytes: a, m
|
|
|
365
356
|
background: "transparent",
|
|
366
357
|
cursor: r ? "default" : "pointer"
|
|
367
358
|
},
|
|
368
|
-
children: /* @__PURE__ */
|
|
359
|
+
children: /* @__PURE__ */ h("span", {
|
|
369
360
|
style: {
|
|
370
361
|
position: "relative",
|
|
371
362
|
display: "block",
|
|
@@ -373,13 +364,13 @@ function Y({ aspect: e = 16 / 9, disabled: r, allowedMime: i = J, maxBytes: a, m
|
|
|
373
364
|
aspectRatio: e,
|
|
374
365
|
overflow: "hidden"
|
|
375
366
|
},
|
|
376
|
-
children: /* @__PURE__ */
|
|
367
|
+
children: /* @__PURE__ */ h("img", {
|
|
377
368
|
src: t.file.dataUrl,
|
|
378
369
|
alt: t.alt || `Предпросмотр изображения ${n + 1}`,
|
|
379
|
-
style:
|
|
370
|
+
style: D(t, d[i], e),
|
|
380
371
|
onLoad: (e) => {
|
|
381
372
|
let t = e.currentTarget;
|
|
382
|
-
|
|
373
|
+
f((e) => ({
|
|
383
374
|
...e,
|
|
384
375
|
[i]: {
|
|
385
376
|
width: t.naturalWidth,
|
|
@@ -392,10 +383,10 @@ function Y({ aspect: e = 16 / 9, disabled: r, allowedMime: i = J, maxBytes: a, m
|
|
|
392
383
|
}, i);
|
|
393
384
|
})
|
|
394
385
|
}),
|
|
395
|
-
/* @__PURE__ */
|
|
386
|
+
/* @__PURE__ */ g("div", { children: [
|
|
396
387
|
"Выберите область изображения",
|
|
397
388
|
" ",
|
|
398
|
-
u && /* @__PURE__ */
|
|
389
|
+
u && /* @__PURE__ */ g("code", {
|
|
399
390
|
className: s && u.width < s ? "statusError" : "statusSuccess",
|
|
400
391
|
children: [
|
|
401
392
|
u.width,
|
|
@@ -405,7 +396,7 @@ function Y({ aspect: e = 16 / 9, disabled: r, allowedMime: i = J, maxBytes: a, m
|
|
|
405
396
|
]
|
|
406
397
|
})
|
|
407
398
|
] }),
|
|
408
|
-
/* @__PURE__ */
|
|
399
|
+
/* @__PURE__ */ h(x, {
|
|
409
400
|
image: l.activeImage.file.dataUrl,
|
|
410
401
|
crop: l.activeCropperState.crop,
|
|
411
402
|
zoom: l.activeCropperState.zoom,
|
|
@@ -414,9 +405,9 @@ function Y({ aspect: e = 16 / 9, disabled: r, allowedMime: i = J, maxBytes: a, m
|
|
|
414
405
|
onCropChange: l.setActiveCropperCrop,
|
|
415
406
|
onZoomChange: l.setActiveCropperZoom,
|
|
416
407
|
onCropComplete: l.setActiveCrop
|
|
417
|
-
},
|
|
408
|
+
}, w(l.activeImage, l.activeIndex))
|
|
418
409
|
] }),
|
|
419
|
-
/* @__PURE__ */
|
|
410
|
+
/* @__PURE__ */ h(n, {
|
|
420
411
|
required: !0,
|
|
421
412
|
disabled: !l.hasSelected || r,
|
|
422
413
|
label: "Краткое описание изображения",
|
|
@@ -429,37 +420,37 @@ function Y({ aspect: e = 16 / 9, disabled: r, allowedMime: i = J, maxBytes: a, m
|
|
|
429
420
|
}
|
|
430
421
|
//#endregion
|
|
431
422
|
//#region src/image/ui/ImageSelectionModal.tsx
|
|
432
|
-
function
|
|
433
|
-
let l =
|
|
423
|
+
function A({ disabled: t, isOpen: n = !0, onClose: o = () => {}, title: s = "Загрузка нового изображения", ...c }) {
|
|
424
|
+
let l = E({
|
|
434
425
|
...c,
|
|
435
426
|
disabled: t
|
|
436
427
|
});
|
|
437
|
-
return c.onApply ? /* @__PURE__ */
|
|
428
|
+
return c.onApply ? /* @__PURE__ */ g(i, {
|
|
438
429
|
isOpen: n,
|
|
439
430
|
onClose: o,
|
|
440
431
|
title: s,
|
|
441
432
|
size: "xl",
|
|
442
|
-
children: [/* @__PURE__ */
|
|
433
|
+
children: [/* @__PURE__ */ h(a, {
|
|
443
434
|
scrollable: !0,
|
|
444
|
-
children: /* @__PURE__ */
|
|
435
|
+
children: /* @__PURE__ */ h(k, {
|
|
445
436
|
...c,
|
|
446
437
|
disabled: t,
|
|
447
438
|
state: l
|
|
448
439
|
})
|
|
449
|
-
}), /* @__PURE__ */
|
|
440
|
+
}), /* @__PURE__ */ h(r, { children: /* @__PURE__ */ h(e, {
|
|
450
441
|
disabled: !l.canApply,
|
|
451
442
|
tone: "success",
|
|
452
443
|
onClick: l.apply,
|
|
453
444
|
children: "Применить"
|
|
454
445
|
}) })]
|
|
455
|
-
}) : /* @__PURE__ */
|
|
446
|
+
}) : /* @__PURE__ */ h(i, {
|
|
456
447
|
isOpen: n,
|
|
457
448
|
onClose: o,
|
|
458
449
|
title: s,
|
|
459
450
|
size: "xl",
|
|
460
|
-
children: /* @__PURE__ */
|
|
451
|
+
children: /* @__PURE__ */ h(a, {
|
|
461
452
|
scrollable: !0,
|
|
462
|
-
children: /* @__PURE__ */
|
|
453
|
+
children: /* @__PURE__ */ h(k, {
|
|
463
454
|
...c,
|
|
464
455
|
disabled: t,
|
|
465
456
|
state: l
|
|
@@ -469,8 +460,8 @@ function X({ disabled: t, isOpen: n = !0, onClose: o = () => {}, title: s = "З
|
|
|
469
460
|
}
|
|
470
461
|
//#endregion
|
|
471
462
|
//#region src/image/ui/ImageSelectionPanel.tsx
|
|
472
|
-
function
|
|
473
|
-
let i =
|
|
463
|
+
function j({ disabled: t, renderActions: n, ...r }) {
|
|
464
|
+
let i = E({
|
|
474
465
|
...r,
|
|
475
466
|
disabled: t
|
|
476
467
|
}), a = {
|
|
@@ -480,11 +471,11 @@ function Z({ disabled: t, renderActions: n, ...r }) {
|
|
|
480
471
|
canApply: i.canApply,
|
|
481
472
|
apply: i.apply
|
|
482
473
|
};
|
|
483
|
-
return /* @__PURE__ */
|
|
474
|
+
return /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(k, {
|
|
484
475
|
...r,
|
|
485
476
|
disabled: t,
|
|
486
477
|
state: i
|
|
487
|
-
}), n ? n(a) : r.onApply && /* @__PURE__ */
|
|
478
|
+
}), n ? n(a) : r.onApply && /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(e, {
|
|
488
479
|
disabled: !i.canApply,
|
|
489
480
|
tone: "success",
|
|
490
481
|
onClick: i.apply,
|
|
@@ -493,9 +484,9 @@ function Z({ disabled: t, renderActions: n, ...r }) {
|
|
|
493
484
|
}
|
|
494
485
|
//#endregion
|
|
495
486
|
//#region src/image/ui/ImageView.tsx
|
|
496
|
-
function
|
|
497
|
-
let a =
|
|
498
|
-
return /* @__PURE__ */
|
|
487
|
+
function M({ image: e, alt: t, sizes: n, aspectRatio: r, ...i }) {
|
|
488
|
+
let a = y(e.sources, n), o = e.candidates ? v(e.candidates) : void 0, s = r ?? (e.intrinsicWidth && e.intrinsicHeight ? `${e.intrinsicWidth} / ${e.intrinsicHeight}` : void 0);
|
|
489
|
+
return /* @__PURE__ */ h(C, {
|
|
499
490
|
...i,
|
|
500
491
|
src: e.src,
|
|
501
492
|
srcSet: o || void 0,
|
|
@@ -508,213 +499,19 @@ function ee({ image: e, alt: t, sizes: n, aspectRatio: r, ...i }) {
|
|
|
508
499
|
});
|
|
509
500
|
}
|
|
510
501
|
//#endregion
|
|
511
|
-
//#region src/image/lib/buildImageViewerSlides.ts
|
|
512
|
-
function Q(e) {
|
|
513
|
-
return Number.isFinite(e) && e > 0;
|
|
514
|
-
}
|
|
515
|
-
function te(e, t) {
|
|
516
|
-
let n = e.width === void 0 ? e.density === void 0 ? 0 : t * e.density : e.width;
|
|
517
|
-
return Q(n) ? Math.round(n) : null;
|
|
518
|
-
}
|
|
519
|
-
function ne(e) {
|
|
520
|
-
let { intrinsicWidth: t, intrinsicHeight: n } = e;
|
|
521
|
-
if (t === void 0 || n === void 0 || !Q(t) || !Q(n)) return;
|
|
522
|
-
let r = /* @__PURE__ */ new Map();
|
|
523
|
-
for (let i of e.candidates ?? []) {
|
|
524
|
-
let e = te(i, t);
|
|
525
|
-
e === null || r.has(e) || r.set(e, {
|
|
526
|
-
src: i.src,
|
|
527
|
-
width: e,
|
|
528
|
-
height: Math.max(1, Math.round(e * n / t))
|
|
529
|
-
});
|
|
530
|
-
}
|
|
531
|
-
let i = [...r.values()].sort((e, t) => e.width - t.width);
|
|
532
|
-
return i.length > 0 ? i : void 0;
|
|
533
|
-
}
|
|
534
|
-
function re(e) {
|
|
535
|
-
return e.map((e) => {
|
|
536
|
-
let t = Q(e.intrinsicWidth ?? 0) && Q(e.intrinsicHeight ?? 0);
|
|
537
|
-
return {
|
|
538
|
-
src: e.src,
|
|
539
|
-
alt: e.alt,
|
|
540
|
-
width: t ? e.intrinsicWidth : void 0,
|
|
541
|
-
height: t ? e.intrinsicHeight : void 0,
|
|
542
|
-
srcSet: ne(e),
|
|
543
|
-
title: e.title === void 0 ? e.alt : e.title,
|
|
544
|
-
description: e.description,
|
|
545
|
-
thumbnail: e.thumbnail,
|
|
546
|
-
download: e.download
|
|
547
|
-
};
|
|
548
|
-
});
|
|
549
|
-
}
|
|
550
|
-
//#endregion
|
|
551
|
-
//#region src/image/lib/resolveImageViewerLabels.ts
|
|
552
|
-
var ie = {
|
|
553
|
-
previous: "Предыдущее изображение",
|
|
554
|
-
next: "Следующее изображение",
|
|
555
|
-
close: "Закрыть просмотр",
|
|
556
|
-
slide: "Изображение",
|
|
557
|
-
carousel: "Карусель изображений",
|
|
558
|
-
lightbox: "Просмотр изображений",
|
|
559
|
-
photoGallery: "Галерея изображений",
|
|
560
|
-
slideCounter: "{index} из {total}",
|
|
561
|
-
zoomIn: "Увеличить",
|
|
562
|
-
zoomOut: "Уменьшить",
|
|
563
|
-
enterFullscreen: "Перейти в полноэкранный режим",
|
|
564
|
-
exitFullscreen: "Выйти из полноэкранного режима",
|
|
565
|
-
thumbnails: "Миниатюры",
|
|
566
|
-
showThumbnails: "Показать миниатюры",
|
|
567
|
-
hideThumbnails: "Скрыть миниатюры",
|
|
568
|
-
caption: "Подпись изображения",
|
|
569
|
-
showCaptions: "Показать подписи",
|
|
570
|
-
hideCaptions: "Скрыть подписи",
|
|
571
|
-
download: "Скачать изображение"
|
|
572
|
-
};
|
|
573
|
-
function ae(e) {
|
|
574
|
-
let t = {
|
|
575
|
-
...ie,
|
|
576
|
-
...e
|
|
577
|
-
};
|
|
578
|
-
return {
|
|
579
|
-
Previous: t.previous,
|
|
580
|
-
Next: t.next,
|
|
581
|
-
Close: t.close,
|
|
582
|
-
Slide: t.slide,
|
|
583
|
-
Carousel: t.carousel,
|
|
584
|
-
Lightbox: t.lightbox,
|
|
585
|
-
"Photo gallery": t.photoGallery,
|
|
586
|
-
"{index} of {total}": t.slideCounter,
|
|
587
|
-
"Zoom in": t.zoomIn,
|
|
588
|
-
"Zoom out": t.zoomOut,
|
|
589
|
-
"Enter Fullscreen": t.enterFullscreen,
|
|
590
|
-
"Exit Fullscreen": t.exitFullscreen,
|
|
591
|
-
Thumbnails: t.thumbnails,
|
|
592
|
-
"Show thumbnails": t.showThumbnails,
|
|
593
|
-
"Hide thumbnails": t.hideThumbnails,
|
|
594
|
-
Caption: t.caption,
|
|
595
|
-
"Show captions": t.showCaptions,
|
|
596
|
-
"Hide captions": t.hideCaptions,
|
|
597
|
-
Download: t.download
|
|
598
|
-
};
|
|
599
|
-
}
|
|
600
|
-
var $ = {
|
|
601
|
-
viewer: "acj1dM",
|
|
602
|
-
icon: "jt3y3m",
|
|
603
|
-
loadingIcon: "_2SAWIU",
|
|
604
|
-
imageViewerSpin: "_1GqI3h"
|
|
605
|
-
};
|
|
606
|
-
//#endregion
|
|
607
502
|
//#region src/image/ui/ImageViewer.tsx
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
V,
|
|
619
|
-
H,
|
|
620
|
-
U,
|
|
621
|
-
W,
|
|
622
|
-
G
|
|
623
|
-
]), q = l(() => ae(u), [u]);
|
|
624
|
-
return /* @__PURE__ */ D(A, {
|
|
625
|
-
open: e && O.length > 0,
|
|
626
|
-
close: r,
|
|
627
|
-
index: R,
|
|
628
|
-
slides: O,
|
|
629
|
-
plugins: K,
|
|
630
|
-
className: f($.viewer, d),
|
|
631
|
-
portal: { container: { style: E } },
|
|
632
|
-
labels: q,
|
|
633
|
-
carousel: { finite: !o },
|
|
634
|
-
controller: {
|
|
635
|
-
closeOnBackdropClick: s,
|
|
636
|
-
closeOnPullDown: c
|
|
637
|
-
},
|
|
638
|
-
captions: { showToggle: !0 },
|
|
639
|
-
counter: { separator: " / " },
|
|
640
|
-
thumbnails: { showToggle: !0 },
|
|
641
|
-
download: { download: ({ slide: e, saveAs: t }) => {
|
|
642
|
-
if (!(!j(e) || e.download === !1)) {
|
|
643
|
-
if (typeof e.download == "string") {
|
|
644
|
-
t(e.download);
|
|
645
|
-
return;
|
|
646
|
-
}
|
|
647
|
-
if (typeof e.download == "object") {
|
|
648
|
-
t(e.download.url, e.download.filename);
|
|
649
|
-
return;
|
|
650
|
-
}
|
|
651
|
-
t(e.src);
|
|
652
|
-
}
|
|
653
|
-
} },
|
|
654
|
-
on: { view: ({ index: e }) => {
|
|
655
|
-
e !== R && i?.(e);
|
|
656
|
-
} },
|
|
657
|
-
render: {
|
|
658
|
-
iconPrev: () => /* @__PURE__ */ D(h, {
|
|
659
|
-
"aria-hidden": "true",
|
|
660
|
-
className: $.icon
|
|
661
|
-
}),
|
|
662
|
-
iconNext: () => /* @__PURE__ */ D(g, {
|
|
663
|
-
"aria-hidden": "true",
|
|
664
|
-
className: $.icon
|
|
665
|
-
}),
|
|
666
|
-
iconClose: () => /* @__PURE__ */ D(C, {
|
|
667
|
-
"aria-hidden": "true",
|
|
668
|
-
className: $.icon
|
|
669
|
-
}),
|
|
670
|
-
iconLoading: () => /* @__PURE__ */ D(b, {
|
|
671
|
-
"aria-hidden": "true",
|
|
672
|
-
className: f($.icon, $.loadingIcon)
|
|
673
|
-
}),
|
|
674
|
-
iconError: () => /* @__PURE__ */ D(y, {
|
|
675
|
-
"aria-hidden": "true",
|
|
676
|
-
className: $.icon
|
|
677
|
-
}),
|
|
678
|
-
iconZoomIn: () => /* @__PURE__ */ D(w, {
|
|
679
|
-
"aria-hidden": "true",
|
|
680
|
-
className: $.icon
|
|
681
|
-
}),
|
|
682
|
-
iconZoomOut: () => /* @__PURE__ */ D(T, {
|
|
683
|
-
"aria-hidden": "true",
|
|
684
|
-
className: $.icon
|
|
685
|
-
}),
|
|
686
|
-
iconEnterFullscreen: () => /* @__PURE__ */ D(x, {
|
|
687
|
-
"aria-hidden": "true",
|
|
688
|
-
className: $.icon
|
|
689
|
-
}),
|
|
690
|
-
iconExitFullscreen: () => /* @__PURE__ */ D(S, {
|
|
691
|
-
"aria-hidden": "true",
|
|
692
|
-
className: $.icon
|
|
693
|
-
}),
|
|
694
|
-
iconThumbnailsVisible: () => /* @__PURE__ */ D(v, {
|
|
695
|
-
"aria-hidden": "true",
|
|
696
|
-
className: $.icon
|
|
697
|
-
}),
|
|
698
|
-
iconThumbnailsHidden: () => /* @__PURE__ */ D(v, {
|
|
699
|
-
"aria-hidden": "true",
|
|
700
|
-
className: $.icon
|
|
701
|
-
}),
|
|
702
|
-
iconCaptionsVisible: () => /* @__PURE__ */ D(p, {
|
|
703
|
-
"aria-hidden": "true",
|
|
704
|
-
className: $.icon
|
|
705
|
-
}),
|
|
706
|
-
iconCaptionsHidden: () => /* @__PURE__ */ D(m, {
|
|
707
|
-
"aria-hidden": "true",
|
|
708
|
-
className: $.icon
|
|
709
|
-
}),
|
|
710
|
-
iconDownload: () => /* @__PURE__ */ D(_, {
|
|
711
|
-
"aria-hidden": "true",
|
|
712
|
-
className: $.icon
|
|
713
|
-
})
|
|
714
|
-
}
|
|
715
|
-
});
|
|
503
|
+
var N = c(() => import("../chunks/ImageViewerRuntime-RN49by8Y.js"));
|
|
504
|
+
function P(e) {
|
|
505
|
+
let [t, n] = p(!1), r = l(() => n(!0), []);
|
|
506
|
+
return typeof document < "u" && (e.open || t) ? /* @__PURE__ */ h(s, {
|
|
507
|
+
fallback: null,
|
|
508
|
+
children: /* @__PURE__ */ h(N, {
|
|
509
|
+
...e,
|
|
510
|
+
onRuntimeMounted: r
|
|
511
|
+
})
|
|
512
|
+
}) : null;
|
|
716
513
|
}
|
|
717
514
|
//#endregion
|
|
718
|
-
export {
|
|
515
|
+
export { x as ImageCropper, S as ImagePlaceholder, C as ImageRenderer, A as ImageSelectionModal, j as ImageSelectionPanel, M as ImageView, P as ImageViewer, y as buildImageSources, v as buildImageSrcSet };
|
|
719
516
|
|
|
720
517
|
//# sourceMappingURL=index.js.map
|