@vlrc-fe/components 2.0.1 → 2.0.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/CHANGELOG.md +44 -29
- package/LICENSE +21 -0
- package/README.md +228 -141
- package/dist/ConfirmModal.d.ts +1 -1
- package/dist/ConfirmModal.d.ts.map +1 -1
- package/dist/DataTable/DataTable.d.ts +1 -1
- package/dist/DataTable/DataTable.d.ts.map +1 -1
- package/dist/DataTable/components/DataTablePagination.d.ts +1 -1
- package/dist/DataTable/components/DataTablePagination.d.ts.map +1 -1
- package/dist/DataTable/components/DataTableRowActions.d.ts +1 -1
- package/dist/DataTable/components/DataTableRowActions.d.ts.map +1 -1
- package/dist/DataTable/components/DataTableTable.d.ts +1 -1
- package/dist/DataTable/components/DataTableTable.d.ts.map +1 -1
- package/dist/DataTable/components/DataTableToolbar.d.ts +1 -1
- package/dist/DataTable/components/DataTableToolbar.d.ts.map +1 -1
- package/dist/DataTable/components/DataTableViewOptions.d.ts +1 -1
- package/dist/DataTable/components/DataTableViewOptions.d.ts.map +1 -1
- package/dist/DataTable/index.d.ts +1 -1
- package/dist/DataTable/index.d.ts.map +1 -1
- package/dist/DataTable/render/createColumns.d.ts.map +1 -1
- package/dist/Form/Form.d.ts +1 -1
- package/dist/Form/Form.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/RangeDatePicker.d.ts +1 -1
- package/dist/Form/FormDatePicker/RangeDatePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/SingleDatePicker.d.ts +1 -1
- package/dist/Form/FormDatePicker/SingleDatePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/TimePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/index.d.ts +2 -2
- package/dist/Form/FormDatePicker/index.d.ts.map +1 -1
- package/dist/Form/FormFileUpload/FileUpload.d.ts +1 -1
- package/dist/Form/FormFileUpload/FileUpload.d.ts.map +1 -1
- package/dist/Form/FormNumberInput/FormNumberInput.d.ts.map +1 -1
- package/dist/Form/FormNumberInput/StepperControls.d.ts +1 -1
- package/dist/Form/FormNumberInput/StepperControls.d.ts.map +1 -1
- package/dist/Form/FormNumberInput/useFormNumberInput.d.ts +1 -1
- package/dist/Form/FormNumberInput/useFormNumberInput.d.ts.map +1 -1
- package/dist/Form/FormRadioGroup/FormRadio.d.ts +1 -1
- package/dist/Form/FormRadioGroup/FormRadio.d.ts.map +1 -1
- package/dist/Form/FormSelect/FormSelect.d.ts.map +1 -1
- package/dist/Form/FormSelect/useFormSelect.d.ts.map +1 -1
- package/dist/Icons/Icons.d.ts.map +1 -1
- package/dist/Modal.d.ts +1 -1
- package/dist/Modal.d.ts.map +1 -1
- package/dist/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/MultiSelect/renderers.d.ts +3 -3
- package/dist/MultiSelect/renderers.d.ts.map +1 -1
- package/dist/MultiSelect/type.d.ts.map +1 -1
- package/dist/MultiSelect/utils.d.ts.map +1 -1
- package/dist/Select/BaseSelect.d.ts.map +1 -1
- package/dist/Select/MultiSelectTags.d.ts +1 -1
- package/dist/Select/MultiSelectTags.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +2 -3
- package/dist/index100.js +1 -2
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +1 -2
- package/dist/index102.js +1 -2
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +373 -383
- package/dist/index104.js +1 -2
- package/dist/index105.js +1 -2
- package/dist/index106.js +1 -2
- package/dist/index107.js +1 -2
- package/dist/index108.js +1 -2
- package/dist/index109.js +1 -2
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +6 -7
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +47 -49
- package/dist/index111.js +1 -2
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +17 -16
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +4 -5
- package/dist/index114.js +1 -2
- package/dist/index115.js +1 -2
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +3 -4
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +2 -3
- package/dist/index118.js +1 -2
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +4 -5
- package/dist/index12.js +1 -2
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +2 -3
- package/dist/index121.js +1 -2
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +1 -2
- package/dist/index123.js +1 -2
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +4 -5
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +14 -15
- package/dist/index126.js +1 -2
- package/dist/index127.js +1 -2
- package/dist/index128.js +1 -2
- package/dist/index129.js +1 -2
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +2 -3
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +2 -7
- package/dist/index131.js +1 -2
- package/dist/index132.js +1 -2
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +2 -3
- package/dist/index134.js +1 -2
- package/dist/index135.js +1 -2
- package/dist/index136.js +1 -2
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +13 -12
- package/dist/index138.js +1 -2
- package/dist/index139.js +1 -2
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +1 -2
- package/dist/index140.js +1 -2
- package/dist/index141.js +1 -2
- package/dist/index142.js +1 -2
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +2 -3
- package/dist/index144.js +1 -2
- package/dist/index145.js +1 -2
- package/dist/index146.js +1 -2
- package/dist/index147.js +1 -2
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +5 -6
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +2 -3
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +4 -5
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +2 -3
- package/dist/index151.js +1 -2
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +3 -4
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +2 -3
- package/dist/index154.js +1 -2
- package/dist/index155.js +1 -2
- package/dist/index156.js +0 -1
- package/dist/index157.js +0 -1
- package/dist/index158.js +0 -1
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +2 -3
- package/dist/index16.js +1 -2
- package/dist/index160.js +1 -2
- package/dist/index161.js +0 -1
- package/dist/index162.js +1 -2
- package/dist/index163.js +0 -1
- package/dist/index164.js +0 -1
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +2 -3
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +2 -3
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +3 -4
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +2 -3
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +2 -3
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +1 -2
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +2 -3
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +3 -4
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +2 -3
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +2 -3
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +2 -3
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +2 -3
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +3 -4
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +3 -4
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +3 -4
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +3 -4
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +2 -3
- package/dist/index180.js +1 -2
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +3 -4
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +12 -6
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +2 -5
- package/dist/index184.js +1 -2
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +2 -3
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +6 -4
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +2 -3
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +2 -3
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +2 -3
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +3 -4
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +5 -6
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +3 -4
- package/dist/index192.cjs +2 -2
- package/dist/index192.js +17 -23
- package/dist/index193.js +1 -2
- package/dist/index194.js +1 -2
- package/dist/index195.js +1 -2
- package/dist/index196.js +1 -2
- package/dist/index197.js +1 -2
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +17 -14
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +2 -3
- package/dist/index2.cjs +1 -1
- package/dist/index2.js +1 -2
- package/dist/index20.js +1 -2
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +2 -3
- package/dist/index201.js +1 -2
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +19 -31
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +2 -3
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +2 -3
- package/dist/index21.js +1 -2
- package/dist/index22.js +1 -2
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +1 -2
- package/dist/index24.js +1 -2
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +2 -3
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +7 -7
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +5 -5
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +3 -4
- package/dist/index29.js +1 -2
- package/dist/index3.js +1 -2
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +2 -3
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +3 -4
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +4 -4
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +2 -3
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +3 -4
- package/dist/index35.js +1 -2
- package/dist/index36.js +1 -2
- package/dist/index37.js +1 -2
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +11 -11
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +2 -3
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +3 -4
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +2 -3
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +1 -2
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +2 -3
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +6 -9
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +4 -4
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +3 -4
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +57 -58
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +4 -4
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +39 -40
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +2 -3
- package/dist/index5.js +1 -2
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +2 -3
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +6 -7
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +3 -4
- package/dist/index53.js +1 -2
- package/dist/index54.js +1 -2
- package/dist/index55.js +1 -2
- package/dist/index56.js +1 -2
- package/dist/index57.js +1 -2
- package/dist/index58.js +1 -2
- package/dist/index59.js +1 -2
- package/dist/index6.js +1 -2
- package/dist/index60.js +1 -2
- package/dist/index61.js +1 -2
- package/dist/index62.js +3 -5
- package/dist/index63.js +1 -2
- package/dist/index64.js +1 -2
- package/dist/index65.js +1 -2
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +1 -1
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +2 -3
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +2 -3
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +1 -1
- package/dist/index7.js +1 -2
- package/dist/index70.js +1 -2
- package/dist/index71.js +1 -2
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +5 -9
- package/dist/index73.js +1 -2
- package/dist/index74.js +1 -2
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +76 -74
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +74 -75
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +2 -3
- package/dist/index78.cjs +2 -2
- package/dist/index78.js +108 -134
- package/dist/index79.js +1 -2
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +4 -5
- package/dist/index80.js +1 -2
- package/dist/index81.js +1 -2
- package/dist/index82.js +1 -2
- package/dist/index83.js +1 -2
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +12 -8
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +3 -4
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +1 -2
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +5 -6
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +2 -3
- package/dist/index89.js +1 -2
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +2 -3
- package/dist/index90.cjs +2 -2
- package/dist/index90.js +7 -16
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +2 -3
- package/dist/index92.js +1 -2
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +85 -86
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +2 -3
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +1 -2
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +3 -4
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +121 -117
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +2 -3
- package/dist/index99.js +1 -2
- package/dist/ui/accordion.d.ts +2 -2
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/alert-dialog.d.ts.map +1 -1
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.test.d.ts +2 -0
- package/dist/ui/alert.test.d.ts.map +1 -0
- package/dist/ui/aspect-ratio.d.ts +1 -1
- package/dist/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/ui/avatar.d.ts +2 -2
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.test.d.ts +2 -0
- package/dist/ui/badge.test.d.ts.map +1 -0
- package/dist/ui/breadcrumb.d.ts +8 -8
- package/dist/ui/breadcrumb.d.ts.map +1 -1
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.test.d.ts +2 -0
- package/dist/ui/button.test.d.ts.map +1 -0
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/card.test.d.ts +2 -0
- package/dist/ui/card.test.d.ts.map +1 -0
- package/dist/ui/carousel.d.ts +7 -7
- package/dist/ui/carousel.d.ts.map +1 -1
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.test.d.ts +2 -0
- package/dist/ui/checkbox.test.d.ts.map +1 -0
- package/dist/ui/collapsible.d.ts +1 -1
- package/dist/ui/collapsible.d.ts.map +1 -1
- package/dist/ui/command.d.ts +4 -4
- package/dist/ui/command.d.ts.map +1 -1
- package/dist/ui/context-menu.d.ts +4 -4
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/drawer.d.ts +4 -4
- package/dist/ui/drawer.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.d.ts +4 -4
- package/dist/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/ui/field.d.ts +1 -1
- package/dist/ui/field.d.ts.map +1 -1
- package/dist/ui/file-upload.d.ts +1 -1
- package/dist/ui/file-upload.d.ts.map +1 -1
- package/dist/ui/form.d.ts +7 -7
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/hover-card.d.ts +2 -2
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/input-otp.d.ts +5 -5
- package/dist/ui/input-otp.d.ts.map +1 -1
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.test.d.ts +2 -0
- package/dist/ui/input.test.d.ts.map +1 -0
- package/dist/ui/item.d.ts +12 -12
- package/dist/ui/item.d.ts.map +1 -1
- package/dist/ui/label.test.d.ts +2 -0
- package/dist/ui/label.test.d.ts.map +1 -0
- package/dist/ui/menubar.d.ts +4 -4
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/navigation-menu.d.ts +2 -2
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/pagination.d.ts +7 -7
- package/dist/ui/pagination.d.ts.map +1 -1
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/radio-group.d.ts.map +1 -1
- package/dist/ui/resizable.d.ts +2 -2
- package/dist/ui/resizable.d.ts.map +1 -1
- package/dist/ui/scroll-area.d.ts +2 -2
- package/dist/ui/scroll-area.d.ts.map +1 -1
- package/dist/ui/select.d.ts +3 -3
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/separator.test.d.ts +2 -0
- package/dist/ui/separator.test.d.ts.map +1 -0
- package/dist/ui/sheet.d.ts +5 -5
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/sidebar.d.ts +31 -31
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/skeleton.test.d.ts +2 -0
- package/dist/ui/skeleton.test.d.ts.map +1 -0
- package/dist/ui/slider.d.ts.map +1 -1
- package/dist/ui/sonner.d.ts +1 -1
- package/dist/ui/sonner.d.ts.map +1 -1
- package/dist/ui/spinner.test.d.ts +2 -0
- package/dist/ui/spinner.test.d.ts.map +1 -0
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/switch.test.d.ts +2 -0
- package/dist/ui/switch.test.d.ts.map +1 -0
- package/dist/ui/table.d.ts +1 -1
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/table.test.d.ts +2 -0
- package/dist/ui/table.test.d.ts.map +1 -0
- package/dist/ui/tabs.d.ts +2 -2
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/textarea.d.ts.map +1 -1
- package/dist/ui/textarea.test.d.ts +2 -0
- package/dist/ui/textarea.test.d.ts.map +1 -0
- package/dist/ui/toggle-group.d.ts +4 -4
- package/dist/ui/toggle-group.d.ts.map +1 -1
- package/dist/ui/toggle.d.ts +3 -3
- package/dist/ui/toggle.d.ts.map +1 -1
- package/package.json +88 -18
- package/MIGRATION_GUIDE.md +0 -121
package/dist/index103.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import { createContext as t, createElement as n, forwardRef as r, useCallback as i, useContext as a, useEffect as o, useImperativeHandle as s, useLayoutEffect as c, useMemo as l, useRef as u, useState as d } from "react";
|
|
3
|
-
|
|
3
|
+
// ../../node_modules/.pnpm/react-resizable-panels@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-resizable-panels/dist/react-resizable-panels.browser.esm.js
|
|
4
4
|
var f = t(null);
|
|
5
5
|
f.displayName = "PanelGroupContext";
|
|
6
6
|
var p = {
|
|
@@ -21,10 +21,10 @@ function ee(e = null) {
|
|
|
21
21
|
let t = _(), n = u(e || t || null);
|
|
22
22
|
return n.current === null && (n.current = "" + v++), e ?? n.current;
|
|
23
23
|
}
|
|
24
|
-
function y({ children: e, className: t = "", collapsedSize: r, collapsible: i, defaultSize: o, forwardedRef: c, id: l, maxSize: d, minSize: m, onCollapse: g, onExpand: _, onResize: v, order: y, style:
|
|
24
|
+
function y({ children: e, className: t = "", collapsedSize: r, collapsible: i, defaultSize: o, forwardedRef: c, id: l, maxSize: d, minSize: m, onCollapse: g, onExpand: _, onResize: v, order: y, style: te, tagName: b = "div", ...x }) {
|
|
25
25
|
let S = a(f);
|
|
26
26
|
if (S === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
27
|
-
let { collapsePanel: C, expandPanel: w, getPanelSize: T, getPanelStyle: E, groupId: D, isPanelCollapsed: O, reevaluatePanelConstraints:
|
|
27
|
+
let { collapsePanel: C, expandPanel: w, getPanelSize: T, getPanelStyle: E, groupId: D, isPanelCollapsed: O, reevaluatePanelConstraints: ne, registerPanel: k, resizePanel: A, unregisterPanel: j } = S, M = ee(l), N = u({
|
|
28
28
|
callbacks: {
|
|
29
29
|
onCollapse: g,
|
|
30
30
|
onExpand: _,
|
|
@@ -37,83 +37,79 @@ function y({ children: e, className: t = "", collapsedSize: r, collapsible: i, d
|
|
|
37
37
|
maxSize: d,
|
|
38
38
|
minSize: m
|
|
39
39
|
},
|
|
40
|
-
id:
|
|
40
|
+
id: M,
|
|
41
41
|
idIsFromProps: l !== void 0,
|
|
42
42
|
order: y
|
|
43
43
|
});
|
|
44
44
|
u({ didLogMissingDefaultSizeWarning: !1 }), h(() => {
|
|
45
|
-
let { callbacks: e, constraints: t } =
|
|
46
|
-
|
|
45
|
+
let { callbacks: e, constraints: t } = N.current, n = { ...t };
|
|
46
|
+
N.current.id = M, N.current.idIsFromProps = l !== void 0, N.current.order = y, e.onCollapse = g, e.onExpand = _, e.onResize = v, t.collapsedSize = r, t.collapsible = i, t.defaultSize = o, t.maxSize = d, t.minSize = m, (n.collapsedSize !== t.collapsedSize || n.collapsible !== t.collapsible || n.maxSize !== t.maxSize || n.minSize !== t.minSize) && ne(N.current, n);
|
|
47
47
|
}), h(() => {
|
|
48
|
-
let e =
|
|
49
|
-
return
|
|
50
|
-
|
|
48
|
+
let e = N.current;
|
|
49
|
+
return k(e), () => {
|
|
50
|
+
j(e);
|
|
51
51
|
};
|
|
52
52
|
}, [
|
|
53
53
|
y,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
M,
|
|
55
|
+
k,
|
|
56
|
+
j
|
|
57
57
|
]), s(c, () => ({
|
|
58
58
|
collapse: () => {
|
|
59
|
-
C(
|
|
59
|
+
C(N.current);
|
|
60
60
|
},
|
|
61
61
|
expand: (e) => {
|
|
62
|
-
w(
|
|
62
|
+
w(N.current, e);
|
|
63
63
|
},
|
|
64
64
|
getId() {
|
|
65
|
-
return
|
|
65
|
+
return M;
|
|
66
66
|
},
|
|
67
67
|
getSize() {
|
|
68
|
-
return T(
|
|
68
|
+
return T(N.current);
|
|
69
69
|
},
|
|
70
70
|
isCollapsed() {
|
|
71
|
-
return O(
|
|
71
|
+
return O(N.current);
|
|
72
72
|
},
|
|
73
73
|
isExpanded() {
|
|
74
|
-
return !O(
|
|
74
|
+
return !O(N.current);
|
|
75
75
|
},
|
|
76
76
|
resize: (e) => {
|
|
77
|
-
|
|
77
|
+
A(N.current, e);
|
|
78
78
|
}
|
|
79
79
|
}), [
|
|
80
80
|
C,
|
|
81
81
|
w,
|
|
82
82
|
T,
|
|
83
83
|
O,
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
M,
|
|
85
|
+
A
|
|
86
86
|
]);
|
|
87
|
-
let
|
|
88
|
-
return n(
|
|
87
|
+
let P = E(N.current, o);
|
|
88
|
+
return n(b, {
|
|
89
89
|
...x,
|
|
90
90
|
children: e,
|
|
91
91
|
className: t,
|
|
92
|
-
id:
|
|
92
|
+
id: M,
|
|
93
93
|
style: {
|
|
94
|
-
...
|
|
95
|
-
...
|
|
94
|
+
...P,
|
|
95
|
+
...te
|
|
96
96
|
},
|
|
97
97
|
[p.groupId]: D,
|
|
98
98
|
[p.panel]: "",
|
|
99
99
|
[p.panelCollapsible]: i || void 0,
|
|
100
|
-
[p.panelId]:
|
|
101
|
-
[p.panelSize]: parseFloat("" +
|
|
100
|
+
[p.panelId]: M,
|
|
101
|
+
[p.panelSize]: parseFloat("" + P.flexGrow).toFixed(1)
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
-
var
|
|
104
|
+
var te = r((e, t) => n(y, {
|
|
105
105
|
...e,
|
|
106
106
|
forwardedRef: t
|
|
107
107
|
}));
|
|
108
|
-
y.displayName = "Panel",
|
|
109
|
-
var
|
|
110
|
-
function
|
|
111
|
-
return te;
|
|
112
|
-
}
|
|
113
|
-
var S = null, C = !0, w = -1, T = null;
|
|
114
|
-
function E(e, t) {
|
|
108
|
+
y.displayName = "Panel", te.displayName = "forwardRef(Panel)";
|
|
109
|
+
var b = null, x = !0, S = -1, C = null;
|
|
110
|
+
function w(e, t) {
|
|
115
111
|
if (t) {
|
|
116
|
-
let e = (t &
|
|
112
|
+
let e = (t & re) !== 0, n = (t & ie) !== 0, r = (t & ae) !== 0, i = (t & oe) !== 0;
|
|
117
113
|
if (e) return r ? "se-resize" : i ? "ne-resize" : "e-resize";
|
|
118
114
|
if (n) return r ? "sw-resize" : i ? "nw-resize" : "w-resize";
|
|
119
115
|
if (r) return "s-resize";
|
|
@@ -125,41 +121,36 @@ function E(e, t) {
|
|
|
125
121
|
case "vertical": return "ns-resize";
|
|
126
122
|
}
|
|
127
123
|
}
|
|
128
|
-
function
|
|
129
|
-
|
|
130
|
-
}
|
|
131
|
-
function
|
|
132
|
-
if (!
|
|
133
|
-
let n =
|
|
134
|
-
if (
|
|
135
|
-
if (
|
|
136
|
-
T = document.createElement("style");
|
|
137
|
-
let e = x();
|
|
138
|
-
e && T.setAttribute("nonce", e), document.head.appendChild(T);
|
|
139
|
-
}
|
|
140
|
-
if (w >= 0) {
|
|
124
|
+
function T() {
|
|
125
|
+
C !== null && (document.head.removeChild(C), b = null, C = null, S = -1);
|
|
126
|
+
}
|
|
127
|
+
function E(e, t) {
|
|
128
|
+
if (!x) return;
|
|
129
|
+
let n = w(e, t);
|
|
130
|
+
if (b !== n) {
|
|
131
|
+
if (b = n, C === null && (C = document.createElement("style"), document.head.appendChild(C)), S >= 0) {
|
|
141
132
|
var r;
|
|
142
|
-
(r =
|
|
133
|
+
(r = C.sheet) == null || r.removeRule(S);
|
|
143
134
|
}
|
|
144
|
-
|
|
135
|
+
S = C.sheet?.insertRule(`*{cursor: ${n} !important;}`) ?? -1;
|
|
145
136
|
}
|
|
146
137
|
}
|
|
147
|
-
function
|
|
138
|
+
function D(e) {
|
|
148
139
|
return e.type === "keydown";
|
|
149
140
|
}
|
|
150
|
-
function
|
|
141
|
+
function O(e) {
|
|
151
142
|
return e.type.startsWith("pointer");
|
|
152
143
|
}
|
|
153
|
-
function
|
|
144
|
+
function ne(e) {
|
|
154
145
|
return e.type.startsWith("mouse");
|
|
155
146
|
}
|
|
156
|
-
function
|
|
157
|
-
if (
|
|
147
|
+
function k(e) {
|
|
148
|
+
if (O(e)) {
|
|
158
149
|
if (e.isPrimary) return {
|
|
159
150
|
x: e.clientX,
|
|
160
151
|
y: e.clientY
|
|
161
152
|
};
|
|
162
|
-
} else if (
|
|
153
|
+
} else if (ne(e)) return {
|
|
163
154
|
x: e.clientX,
|
|
164
155
|
y: e.clientY
|
|
165
156
|
};
|
|
@@ -168,23 +159,23 @@ function M(e) {
|
|
|
168
159
|
y: Infinity
|
|
169
160
|
};
|
|
170
161
|
}
|
|
171
|
-
function
|
|
162
|
+
function A() {
|
|
172
163
|
if (typeof matchMedia == "function") return matchMedia("(pointer:coarse)").matches ? "coarse" : "fine";
|
|
173
164
|
}
|
|
174
|
-
function
|
|
165
|
+
function j(e, t, n) {
|
|
175
166
|
return n ? e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y : e.x <= t.x + t.width && e.x + e.width >= t.x && e.y <= t.y + t.height && e.y + e.height >= t.y;
|
|
176
167
|
}
|
|
177
|
-
function
|
|
168
|
+
function M(e, t) {
|
|
178
169
|
if (e === t) throw Error("Cannot compare node with itself");
|
|
179
170
|
let n = {
|
|
180
|
-
a:
|
|
181
|
-
b:
|
|
171
|
+
a: R(e),
|
|
172
|
+
b: R(t)
|
|
182
173
|
}, r;
|
|
183
174
|
for (; n.a.at(-1) === n.b.at(-1);) e = n.a.pop(), t = n.b.pop(), r = e;
|
|
184
|
-
|
|
175
|
+
G(r, "Stacking order can only be calculated for elements with a common ancestor");
|
|
185
176
|
let i = {
|
|
186
|
-
a:
|
|
187
|
-
b:
|
|
177
|
+
a: L(I(n.a)),
|
|
178
|
+
b: L(I(n.b))
|
|
188
179
|
};
|
|
189
180
|
if (i.a === i.b) {
|
|
190
181
|
let e = r.childNodes, t = {
|
|
@@ -199,81 +190,81 @@ function F(e, t) {
|
|
|
199
190
|
}
|
|
200
191
|
return Math.sign(i.a - i.b);
|
|
201
192
|
}
|
|
202
|
-
var
|
|
203
|
-
function
|
|
204
|
-
let t = getComputedStyle(
|
|
193
|
+
var N = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
|
|
194
|
+
function P(e) {
|
|
195
|
+
let t = getComputedStyle(z(e) ?? e).display;
|
|
205
196
|
return t === "flex" || t === "inline-flex";
|
|
206
197
|
}
|
|
207
|
-
function
|
|
198
|
+
function F(e) {
|
|
208
199
|
let t = getComputedStyle(e);
|
|
209
|
-
return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" ||
|
|
200
|
+
return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" || P(e)) || +t.opacity < 1 || "transform" in t && t.transform !== "none" || "webkitTransform" in t && t.webkitTransform !== "none" || "mixBlendMode" in t && t.mixBlendMode !== "normal" || "filter" in t && t.filter !== "none" || "webkitFilter" in t && t.webkitFilter !== "none" || "isolation" in t && t.isolation === "isolate" || N.test(t.willChange) || t.webkitOverflowScrolling === "touch");
|
|
210
201
|
}
|
|
211
|
-
function
|
|
202
|
+
function I(e) {
|
|
212
203
|
let t = e.length;
|
|
213
204
|
for (; t--;) {
|
|
214
205
|
let n = e[t];
|
|
215
|
-
if (
|
|
206
|
+
if (G(n, "Missing node"), F(n)) return n;
|
|
216
207
|
}
|
|
217
208
|
return null;
|
|
218
209
|
}
|
|
219
|
-
function
|
|
210
|
+
function L(e) {
|
|
220
211
|
return e && Number(getComputedStyle(e).zIndex) || 0;
|
|
221
212
|
}
|
|
222
|
-
function
|
|
213
|
+
function R(e) {
|
|
223
214
|
let t = [];
|
|
224
|
-
for (; e;) t.push(e), e =
|
|
215
|
+
for (; e;) t.push(e), e = z(e);
|
|
225
216
|
return t;
|
|
226
217
|
}
|
|
227
|
-
function
|
|
218
|
+
function z(e) {
|
|
228
219
|
let { parentNode: t } = e;
|
|
229
220
|
return t && t instanceof ShadowRoot ? t.host : t;
|
|
230
221
|
}
|
|
231
|
-
var
|
|
232
|
-
function
|
|
222
|
+
var re = 1, ie = 2, ae = 4, oe = 8, se = A() === "coarse", B = [], V = !1, H = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map(), W = /* @__PURE__ */ new Set();
|
|
223
|
+
function ce(e, t, n, r, i) {
|
|
233
224
|
let { ownerDocument: a } = t, o = {
|
|
234
225
|
direction: n,
|
|
235
226
|
element: t,
|
|
236
227
|
hitAreaMargins: r,
|
|
237
228
|
setResizeHandlerState: i
|
|
238
|
-
}, s =
|
|
239
|
-
return
|
|
240
|
-
|
|
241
|
-
let t =
|
|
242
|
-
if (
|
|
243
|
-
let e =
|
|
244
|
-
e >= 0 &&
|
|
229
|
+
}, s = H.get(a) ?? 0;
|
|
230
|
+
return H.set(a, s + 1), W.add(o), _e(), function() {
|
|
231
|
+
U.delete(e), W.delete(o);
|
|
232
|
+
let t = H.get(a) ?? 1;
|
|
233
|
+
if (H.set(a, t - 1), _e(), t === 1 && H.delete(a), B.includes(o)) {
|
|
234
|
+
let e = B.indexOf(o);
|
|
235
|
+
e >= 0 && B.splice(e, 1), he(), i("up", !0, null);
|
|
245
236
|
}
|
|
246
237
|
};
|
|
247
238
|
}
|
|
248
|
-
function
|
|
249
|
-
let { target: t } = e, { x: n, y: r } =
|
|
250
|
-
|
|
239
|
+
function le(e) {
|
|
240
|
+
let { target: t } = e, { x: n, y: r } = k(e);
|
|
241
|
+
V = !0, pe({
|
|
251
242
|
target: t,
|
|
252
243
|
x: n,
|
|
253
244
|
y: r
|
|
254
|
-
}),
|
|
245
|
+
}), _e(), B.length > 0 && (ve("down", e), e.preventDefault(), fe(t) || e.stopImmediatePropagation());
|
|
255
246
|
}
|
|
256
|
-
function
|
|
257
|
-
let { x: t, y: n } =
|
|
258
|
-
if (
|
|
247
|
+
function ue(e) {
|
|
248
|
+
let { x: t, y: n } = k(e);
|
|
249
|
+
if (V && e.buttons === 0 && (V = !1, ve("up", e)), !V) {
|
|
259
250
|
let { target: r } = e;
|
|
260
|
-
|
|
251
|
+
pe({
|
|
261
252
|
target: r,
|
|
262
253
|
x: t,
|
|
263
254
|
y: n
|
|
264
255
|
});
|
|
265
256
|
}
|
|
266
|
-
|
|
257
|
+
ve("move", e), he(), B.length > 0 && e.preventDefault();
|
|
267
258
|
}
|
|
268
|
-
function
|
|
269
|
-
let { target: t } = e, { x: n, y: r } =
|
|
270
|
-
|
|
259
|
+
function de(e) {
|
|
260
|
+
let { target: t } = e, { x: n, y: r } = k(e);
|
|
261
|
+
U.clear(), V = !1, B.length > 0 && (e.preventDefault(), fe(t) || e.stopImmediatePropagation()), ve("up", e), pe({
|
|
271
262
|
target: t,
|
|
272
263
|
x: n,
|
|
273
264
|
y: r
|
|
274
|
-
}),
|
|
265
|
+
}), he(), _e();
|
|
275
266
|
}
|
|
276
|
-
function
|
|
267
|
+
function fe(e) {
|
|
277
268
|
let t = e;
|
|
278
269
|
for (; t;) {
|
|
279
270
|
if (t.hasAttribute(p.resizeHandle)) return !0;
|
|
@@ -281,16 +272,16 @@ function pe(e) {
|
|
|
281
272
|
}
|
|
282
273
|
return !1;
|
|
283
274
|
}
|
|
284
|
-
function
|
|
285
|
-
|
|
275
|
+
function pe({ target: e, x: t, y: n }) {
|
|
276
|
+
B.splice(0);
|
|
286
277
|
let r = null;
|
|
287
|
-
(e instanceof HTMLElement || e instanceof SVGElement) && (r = e),
|
|
288
|
-
let { element: i, hitAreaMargins: a } = e, o = i.getBoundingClientRect(), { bottom: s, left: c, right: l, top: u } = o, d =
|
|
278
|
+
(e instanceof HTMLElement || e instanceof SVGElement) && (r = e), W.forEach((e) => {
|
|
279
|
+
let { element: i, hitAreaMargins: a } = e, o = i.getBoundingClientRect(), { bottom: s, left: c, right: l, top: u } = o, d = se ? a.coarse : a.fine;
|
|
289
280
|
if (t >= c - d && t <= l + d && n >= u - d && n <= s + d) {
|
|
290
|
-
if (r !== null && document.contains(r) && i !== r && !i.contains(r) && !r.contains(i) &&
|
|
281
|
+
if (r !== null && document.contains(r) && i !== r && !i.contains(r) && !r.contains(i) && M(r, i) > 0) {
|
|
291
282
|
let e = r, t = !1;
|
|
292
283
|
for (; e && !e.contains(i);) {
|
|
293
|
-
if (
|
|
284
|
+
if (j(e.getBoundingClientRect(), o, !0)) {
|
|
294
285
|
t = !0;
|
|
295
286
|
break;
|
|
296
287
|
}
|
|
@@ -298,106 +289,108 @@ function me({ target: e, x: t, y: n }) {
|
|
|
298
289
|
}
|
|
299
290
|
if (t) return;
|
|
300
291
|
}
|
|
301
|
-
|
|
292
|
+
B.push(e);
|
|
302
293
|
}
|
|
303
294
|
});
|
|
304
295
|
}
|
|
305
|
-
function
|
|
306
|
-
|
|
296
|
+
function me(e, t) {
|
|
297
|
+
U.set(e, t);
|
|
307
298
|
}
|
|
308
|
-
function
|
|
299
|
+
function he() {
|
|
309
300
|
let e = !1, t = !1;
|
|
310
|
-
|
|
301
|
+
B.forEach((n) => {
|
|
311
302
|
let { direction: r } = n;
|
|
312
303
|
r === "horizontal" ? e = !0 : t = !0;
|
|
313
304
|
});
|
|
314
305
|
let n = 0;
|
|
315
|
-
|
|
306
|
+
U.forEach((e) => {
|
|
316
307
|
n |= e;
|
|
317
|
-
}), e && t ?
|
|
308
|
+
}), e && t ? E("intersection", n) : e ? E("horizontal", n) : t ? E("vertical", n) : T();
|
|
318
309
|
}
|
|
319
|
-
var
|
|
320
|
-
function
|
|
321
|
-
|
|
310
|
+
var ge = new AbortController();
|
|
311
|
+
function _e() {
|
|
312
|
+
ge.abort(), ge = new AbortController();
|
|
322
313
|
let e = {
|
|
323
314
|
capture: !0,
|
|
324
|
-
signal:
|
|
315
|
+
signal: ge.signal
|
|
325
316
|
};
|
|
326
|
-
|
|
317
|
+
W.size && (V ? (B.length > 0 && H.forEach((t, n) => {
|
|
327
318
|
let { body: r } = n;
|
|
328
|
-
t > 0 && (r.addEventListener("contextmenu",
|
|
329
|
-
}), window.addEventListener("pointerup",
|
|
319
|
+
t > 0 && (r.addEventListener("contextmenu", de, e), r.addEventListener("pointerleave", ue, e), r.addEventListener("pointermove", ue, e));
|
|
320
|
+
}), window.addEventListener("pointerup", de, e), window.addEventListener("pointercancel", de, e)) : H.forEach((t, n) => {
|
|
330
321
|
let { body: r } = n;
|
|
331
|
-
t > 0 && (r.addEventListener("pointerdown",
|
|
322
|
+
t > 0 && (r.addEventListener("pointerdown", le, e), r.addEventListener("pointermove", ue, e));
|
|
332
323
|
}));
|
|
333
324
|
}
|
|
334
|
-
function
|
|
335
|
-
|
|
325
|
+
function ve(e, t) {
|
|
326
|
+
W.forEach((n) => {
|
|
336
327
|
let { setResizeHandlerState: r } = n;
|
|
337
|
-
r(e,
|
|
328
|
+
r(e, B.includes(n), t);
|
|
338
329
|
});
|
|
339
330
|
}
|
|
340
|
-
function
|
|
331
|
+
function ye() {
|
|
341
332
|
let [e, t] = d(0);
|
|
342
333
|
return i(() => t((e) => e + 1), []);
|
|
343
334
|
}
|
|
344
|
-
function
|
|
335
|
+
function G(e, t) {
|
|
345
336
|
if (!e) throw console.error(t), Error(t);
|
|
346
337
|
}
|
|
347
|
-
function
|
|
338
|
+
function K(e, t, n = m) {
|
|
348
339
|
return e.toFixed(n) === t.toFixed(n) ? 0 : e > t ? 1 : -1;
|
|
349
340
|
}
|
|
350
|
-
function
|
|
351
|
-
return
|
|
341
|
+
function q(e, t, n = m) {
|
|
342
|
+
return K(e, t, n) === 0;
|
|
352
343
|
}
|
|
353
|
-
function
|
|
354
|
-
return
|
|
344
|
+
function J(e, t, n) {
|
|
345
|
+
return K(e, t, n) === 0;
|
|
355
346
|
}
|
|
356
|
-
function
|
|
347
|
+
function be(e, t, n) {
|
|
357
348
|
if (e.length !== t.length) return !1;
|
|
358
349
|
for (let r = 0; r < e.length; r++) {
|
|
359
350
|
let i = e[r], a = t[r];
|
|
360
|
-
if (!
|
|
351
|
+
if (!J(i, a, n)) return !1;
|
|
361
352
|
}
|
|
362
353
|
return !0;
|
|
363
354
|
}
|
|
364
|
-
function
|
|
355
|
+
function Y({ panelConstraints: e, panelIndex: t, size: n }) {
|
|
365
356
|
let r = e[t];
|
|
366
|
-
|
|
357
|
+
G(r != null, `Panel constraints not found for index ${t}`);
|
|
367
358
|
let { collapsedSize: i = 0, collapsible: a, maxSize: o = 100, minSize: s = 0 } = r;
|
|
368
|
-
if (
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
359
|
+
if (K(n, s) < 0) {
|
|
360
|
+
if (a) {
|
|
361
|
+
let e = (i + s) / 2;
|
|
362
|
+
n = K(n, e) < 0 ? i : s;
|
|
363
|
+
} else n = s;
|
|
364
|
+
}
|
|
372
365
|
return n = Math.min(o, n), n = parseFloat(n.toFixed(m)), n;
|
|
373
366
|
}
|
|
374
|
-
function
|
|
375
|
-
if (
|
|
367
|
+
function xe({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r, prevLayout: i, trigger: a }) {
|
|
368
|
+
if (J(e, 0)) return t;
|
|
376
369
|
let o = [...t], [s, c] = r;
|
|
377
|
-
|
|
370
|
+
G(s != null, "Invalid first pivot index"), G(c != null, "Invalid second pivot index");
|
|
378
371
|
let l = 0;
|
|
379
372
|
if (a === "keyboard") {
|
|
380
373
|
{
|
|
381
374
|
let r = e < 0 ? c : s, i = n[r];
|
|
382
|
-
|
|
375
|
+
G(i, `Panel constraints not found for index ${r}`);
|
|
383
376
|
let { collapsedSize: a = 0, collapsible: o, minSize: l = 0 } = i;
|
|
384
377
|
if (o) {
|
|
385
378
|
let n = t[r];
|
|
386
|
-
if (
|
|
379
|
+
if (G(n != null, `Previous layout not found for panel index ${r}`), J(n, a)) {
|
|
387
380
|
let t = l - n;
|
|
388
|
-
|
|
381
|
+
K(t, Math.abs(e)) > 0 && (e = e < 0 ? 0 - t : t);
|
|
389
382
|
}
|
|
390
383
|
}
|
|
391
384
|
}
|
|
392
385
|
{
|
|
393
386
|
let r = e < 0 ? s : c, i = n[r];
|
|
394
|
-
|
|
387
|
+
G(i, `No panel constraints found for index ${r}`);
|
|
395
388
|
let { collapsedSize: a = 0, collapsible: o, minSize: l = 0 } = i;
|
|
396
389
|
if (o) {
|
|
397
390
|
let n = t[r];
|
|
398
|
-
if (
|
|
391
|
+
if (G(n != null, `Previous layout not found for panel index ${r}`), J(n, l)) {
|
|
399
392
|
let t = n - a;
|
|
400
|
-
|
|
393
|
+
K(t, Math.abs(e)) > 0 && (e = e < 0 ? 0 - t : t);
|
|
401
394
|
}
|
|
402
395
|
}
|
|
403
396
|
}
|
|
@@ -406,8 +399,8 @@ function Se({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r,
|
|
|
406
399
|
let r = e < 0 ? 1 : -1, i = e < 0 ? c : s, a = 0;
|
|
407
400
|
for (;;) {
|
|
408
401
|
let e = t[i];
|
|
409
|
-
|
|
410
|
-
let o =
|
|
402
|
+
G(e != null, `Previous layout not found for panel index ${i}`);
|
|
403
|
+
let o = Y({
|
|
411
404
|
panelConstraints: n,
|
|
412
405
|
panelIndex: i,
|
|
413
406
|
size: 100
|
|
@@ -421,45 +414,45 @@ function Se({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r,
|
|
|
421
414
|
let r = e < 0 ? s : c;
|
|
422
415
|
for (; r >= 0 && r < n.length;) {
|
|
423
416
|
let i = Math.abs(e) - Math.abs(l), a = t[r];
|
|
424
|
-
|
|
425
|
-
let s = a - i, c =
|
|
417
|
+
G(a != null, `Previous layout not found for panel index ${r}`);
|
|
418
|
+
let s = a - i, c = Y({
|
|
426
419
|
panelConstraints: n,
|
|
427
420
|
panelIndex: r,
|
|
428
421
|
size: s
|
|
429
422
|
});
|
|
430
|
-
if (!
|
|
423
|
+
if (!J(a, c) && (l += a - c, o[r] = c, l.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3), void 0, { numeric: !0 }) >= 0)) break;
|
|
431
424
|
e < 0 ? r-- : r++;
|
|
432
425
|
}
|
|
433
426
|
}
|
|
434
|
-
if (
|
|
427
|
+
if (be(i, o)) return i;
|
|
435
428
|
{
|
|
436
429
|
let r = e < 0 ? c : s, i = t[r];
|
|
437
|
-
|
|
438
|
-
let a = i + l, u =
|
|
430
|
+
G(i != null, `Previous layout not found for panel index ${r}`);
|
|
431
|
+
let a = i + l, u = Y({
|
|
439
432
|
panelConstraints: n,
|
|
440
433
|
panelIndex: r,
|
|
441
434
|
size: a
|
|
442
435
|
});
|
|
443
|
-
if (o[r] = u, !
|
|
436
|
+
if (o[r] = u, !J(u, a)) {
|
|
444
437
|
let t = a - u, r = e < 0 ? c : s;
|
|
445
438
|
for (; r >= 0 && r < n.length;) {
|
|
446
439
|
let i = o[r];
|
|
447
|
-
|
|
448
|
-
let a = i + t, s =
|
|
440
|
+
G(i != null, `Previous layout not found for panel index ${r}`);
|
|
441
|
+
let a = i + t, s = Y({
|
|
449
442
|
panelConstraints: n,
|
|
450
443
|
panelIndex: r,
|
|
451
444
|
size: a
|
|
452
445
|
});
|
|
453
|
-
if (
|
|
446
|
+
if (J(i, s) || (t -= s - i, o[r] = s), J(t, 0)) break;
|
|
454
447
|
e > 0 ? r-- : r++;
|
|
455
448
|
}
|
|
456
449
|
}
|
|
457
450
|
}
|
|
458
|
-
return
|
|
451
|
+
return J(o.reduce((e, t) => t + e, 0), 100) ? o : i;
|
|
459
452
|
}
|
|
460
|
-
function
|
|
453
|
+
function Se({ layout: e, panelsArray: t, pivotIndices: n }) {
|
|
461
454
|
let r = 0, i = 100, a = 0, o = 0, s = n[0];
|
|
462
|
-
return
|
|
455
|
+
return G(s != null, "No pivot index found"), t.forEach((e, t) => {
|
|
463
456
|
let { constraints: n } = e, { maxSize: c = 100, minSize: l = 0 } = n;
|
|
464
457
|
t === s ? (r = l, i = c) : (a += l, o += c);
|
|
465
458
|
}), {
|
|
@@ -468,39 +461,39 @@ function Ce({ layout: e, panelsArray: t, pivotIndices: n }) {
|
|
|
468
461
|
valueNow: e[s]
|
|
469
462
|
};
|
|
470
463
|
}
|
|
471
|
-
function
|
|
464
|
+
function X(e, t = document) {
|
|
472
465
|
return Array.from(t.querySelectorAll(`[${p.resizeHandleId}][data-panel-group-id="${e}"]`));
|
|
473
466
|
}
|
|
474
|
-
function
|
|
475
|
-
return
|
|
467
|
+
function Ce(e, t, n = document) {
|
|
468
|
+
return X(e, n).findIndex((e) => e.getAttribute(p.resizeHandleId) === t) ?? null;
|
|
476
469
|
}
|
|
477
|
-
function
|
|
478
|
-
let r =
|
|
470
|
+
function we(e, t, n) {
|
|
471
|
+
let r = Ce(e, t, n);
|
|
479
472
|
return r == null ? [-1, -1] : [r, r + 1];
|
|
480
473
|
}
|
|
481
|
-
function
|
|
474
|
+
function Te(e, t = document) {
|
|
482
475
|
return t instanceof HTMLElement && t?.dataset?.panelGroupId == e ? t : t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`) || null;
|
|
483
476
|
}
|
|
484
|
-
function
|
|
477
|
+
function Ee(e, t = document) {
|
|
485
478
|
return t.querySelector(`[${p.resizeHandleId}="${e}"]`) || null;
|
|
486
479
|
}
|
|
487
|
-
function
|
|
488
|
-
let i =
|
|
480
|
+
function De(e, t, n, r = document) {
|
|
481
|
+
let i = Ee(t, r), a = X(e, r), o = i ? a.indexOf(i) : -1;
|
|
489
482
|
return [n[o]?.id ?? null, n[o + 1]?.id ?? null];
|
|
490
483
|
}
|
|
491
|
-
function
|
|
484
|
+
function Oe({ committedValuesRef: e, eagerValuesRef: t, groupId: n, layout: r, panelDataArray: i, panelGroupElement: a, setLayout: s }) {
|
|
492
485
|
u({ didWarnAboutMissingResizeHandle: !1 }), h(() => {
|
|
493
486
|
if (!a) return;
|
|
494
|
-
let e =
|
|
487
|
+
let e = X(n, a);
|
|
495
488
|
for (let t = 0; t < i.length - 1; t++) {
|
|
496
|
-
let { valueMax: n, valueMin: a, valueNow: o } =
|
|
489
|
+
let { valueMax: n, valueMin: a, valueNow: o } = Se({
|
|
497
490
|
layout: r,
|
|
498
491
|
panelsArray: i,
|
|
499
492
|
pivotIndices: [t, t + 1]
|
|
500
493
|
}), s = e[t];
|
|
501
494
|
if (s != null) {
|
|
502
495
|
let e = i[t];
|
|
503
|
-
|
|
496
|
+
G(e, `No panel data found for index "${t}"`), s.setAttribute("aria-controls", e.id), s.setAttribute("aria-valuemax", "" + Math.round(n)), s.setAttribute("aria-valuemin", "" + Math.round(a)), s.setAttribute("aria-valuenow", o == null ? "" : "" + Math.round(o));
|
|
504
497
|
}
|
|
505
498
|
}
|
|
506
499
|
return () => {
|
|
@@ -516,15 +509,15 @@ function Ae({ committedValuesRef: e, eagerValuesRef: t, groupId: n, layout: r, p
|
|
|
516
509
|
]), o(() => {
|
|
517
510
|
if (!a) return;
|
|
518
511
|
let e = t.current;
|
|
519
|
-
|
|
512
|
+
G(e, "Eager values not found");
|
|
520
513
|
let { panelDataArray: i } = e;
|
|
521
|
-
|
|
522
|
-
let o =
|
|
523
|
-
|
|
514
|
+
G(Te(n, a) != null, `No group found for id "${n}"`);
|
|
515
|
+
let o = X(n, a);
|
|
516
|
+
G(o, `No resize handles found for group id "${n}"`);
|
|
524
517
|
let c = o.map((e) => {
|
|
525
518
|
let t = e.getAttribute(p.resizeHandleId);
|
|
526
|
-
|
|
527
|
-
let [o, c] =
|
|
519
|
+
G(t, "Resize handle element has no handle id attribute");
|
|
520
|
+
let [o, c] = De(n, t, i, a);
|
|
528
521
|
if (o == null || c == null) return () => {};
|
|
529
522
|
let l = (e) => {
|
|
530
523
|
if (!e.defaultPrevented) switch (e.key) {
|
|
@@ -533,14 +526,14 @@ function Ae({ committedValuesRef: e, eagerValuesRef: t, groupId: n, layout: r, p
|
|
|
533
526
|
let c = i.findIndex((e) => e.id === o);
|
|
534
527
|
if (c >= 0) {
|
|
535
528
|
let e = i[c];
|
|
536
|
-
|
|
529
|
+
G(e, `No panel data found for index ${c}`);
|
|
537
530
|
let o = r[c], { collapsedSize: l = 0, collapsible: u, minSize: d = 0 } = e.constraints;
|
|
538
531
|
if (o != null && u) {
|
|
539
|
-
let e =
|
|
540
|
-
delta:
|
|
532
|
+
let e = xe({
|
|
533
|
+
delta: J(o, l) ? d - l : l - o,
|
|
541
534
|
initialLayout: r,
|
|
542
535
|
panelConstraints: i.map((e) => e.constraints),
|
|
543
|
-
pivotIndices:
|
|
536
|
+
pivotIndices: we(n, t, a),
|
|
544
537
|
prevLayout: r,
|
|
545
538
|
trigger: "keyboard"
|
|
546
539
|
});
|
|
@@ -568,27 +561,27 @@ function Ae({ committedValuesRef: e, eagerValuesRef: t, groupId: n, layout: r, p
|
|
|
568
561
|
s
|
|
569
562
|
]);
|
|
570
563
|
}
|
|
571
|
-
function
|
|
564
|
+
function ke(e, t) {
|
|
572
565
|
if (e.length !== t.length) return !1;
|
|
573
566
|
for (let n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
|
|
574
567
|
return !0;
|
|
575
568
|
}
|
|
576
|
-
function
|
|
577
|
-
let n = e === "horizontal", { x: r, y: i } =
|
|
569
|
+
function Ae(e, t) {
|
|
570
|
+
let n = e === "horizontal", { x: r, y: i } = k(t);
|
|
578
571
|
return n ? r : i;
|
|
579
572
|
}
|
|
580
|
-
function
|
|
581
|
-
let a = n === "horizontal", o =
|
|
582
|
-
|
|
573
|
+
function je(e, t, n, r, i) {
|
|
574
|
+
let a = n === "horizontal", o = Ee(t, i);
|
|
575
|
+
G(o, `No resize handle element found for id "${t}"`);
|
|
583
576
|
let s = o.getAttribute(p.groupId);
|
|
584
|
-
|
|
585
|
-
let { initialCursorPosition: c } = r, l =
|
|
586
|
-
|
|
577
|
+
G(s, "Resize handle element has no group id attribute");
|
|
578
|
+
let { initialCursorPosition: c } = r, l = Ae(n, e), u = Te(s, i);
|
|
579
|
+
G(u, `No group element found for id "${s}"`);
|
|
587
580
|
let d = u.getBoundingClientRect(), f = a ? d.width : d.height;
|
|
588
581
|
return (l - c) / f * 100;
|
|
589
582
|
}
|
|
590
|
-
function
|
|
591
|
-
if (
|
|
583
|
+
function Me(e, t, n, r, i, a) {
|
|
584
|
+
if (D(e)) {
|
|
592
585
|
let t = n === "horizontal", r = 0;
|
|
593
586
|
r = e.shiftKey ? 100 : i ?? 10;
|
|
594
587
|
let a = 0;
|
|
@@ -608,24 +601,23 @@ function Pe(e, t, n, r, i, a) {
|
|
|
608
601
|
case "End":
|
|
609
602
|
a = 100;
|
|
610
603
|
break;
|
|
611
|
-
case "Home":
|
|
612
|
-
a = -100;
|
|
613
|
-
break;
|
|
604
|
+
case "Home": a = -100;
|
|
614
605
|
}
|
|
615
606
|
return a;
|
|
616
|
-
}
|
|
607
|
+
}
|
|
608
|
+
return r == null ? 0 : je(e, t, n, r, a);
|
|
617
609
|
}
|
|
618
|
-
function
|
|
610
|
+
function Ne({ panelDataArray: e }) {
|
|
619
611
|
let t = Array(e.length), n = e.map((e) => e.constraints), r = 0, i = 100;
|
|
620
612
|
for (let a = 0; a < e.length; a++) {
|
|
621
613
|
let e = n[a];
|
|
622
|
-
|
|
614
|
+
G(e, `Panel constraints not found for index ${a}`);
|
|
623
615
|
let { defaultSize: o } = e;
|
|
624
616
|
o != null && (r++, t[a] = o, i -= o);
|
|
625
617
|
}
|
|
626
618
|
for (let a = 0; a < e.length; a++) {
|
|
627
619
|
let o = n[a];
|
|
628
|
-
|
|
620
|
+
G(o, `Panel constraints not found for index ${a}`);
|
|
629
621
|
let { defaultSize: s } = o;
|
|
630
622
|
if (s != null) continue;
|
|
631
623
|
let c = e.length - r, l = i / c;
|
|
@@ -636,21 +628,21 @@ function Fe({ panelDataArray: e }) {
|
|
|
636
628
|
function Z(e, t, n) {
|
|
637
629
|
t.forEach((t, r) => {
|
|
638
630
|
let i = e[r];
|
|
639
|
-
|
|
631
|
+
G(i, `Panel data not found for index ${r}`);
|
|
640
632
|
let { callbacks: a, constraints: o, id: s } = i, { collapsedSize: c = 0, collapsible: l } = o, u = n[s];
|
|
641
633
|
if (u == null || t !== u) {
|
|
642
634
|
n[s] = t;
|
|
643
635
|
let { onCollapse: e, onExpand: r, onResize: i } = a;
|
|
644
|
-
i && i(t, u), l && (e || r) && (r && (u == null ||
|
|
636
|
+
i && i(t, u), l && (e || r) && (r && (u == null || q(u, c)) && !q(t, c) && r(), e && (u == null || !q(u, c)) && q(t, c) && e());
|
|
645
637
|
}
|
|
646
638
|
});
|
|
647
639
|
}
|
|
648
|
-
function
|
|
640
|
+
function Pe(e, t) {
|
|
649
641
|
if (e.length !== t.length) return !1;
|
|
650
642
|
for (let n = 0; n < e.length; n++) if (e[n] != t[n]) return !1;
|
|
651
643
|
return !0;
|
|
652
644
|
}
|
|
653
|
-
function
|
|
645
|
+
function Fe({ defaultSize: e, dragState: t, layout: n, panelData: r, panelIndex: i, precision: a = 3 }) {
|
|
654
646
|
let o = n[i], s;
|
|
655
647
|
return s = o == null ? e == null ? "1" : e.toPrecision(a) : r.length === 1 ? "1" : o.toPrecision(a), {
|
|
656
648
|
flexBasis: 0,
|
|
@@ -660,7 +652,7 @@ function Le({ defaultSize: e, dragState: t, layout: n, panelData: r, panelIndex:
|
|
|
660
652
|
pointerEvents: t === null ? void 0 : "none"
|
|
661
653
|
};
|
|
662
654
|
}
|
|
663
|
-
function
|
|
655
|
+
function Ie(e, t = 10) {
|
|
664
656
|
let n = null;
|
|
665
657
|
return (...r) => {
|
|
666
658
|
n !== null && clearTimeout(n), n = setTimeout(() => {
|
|
@@ -668,7 +660,7 @@ function Re(e, t = 10) {
|
|
|
668
660
|
}, t);
|
|
669
661
|
};
|
|
670
662
|
}
|
|
671
|
-
function
|
|
663
|
+
function Le(e) {
|
|
672
664
|
try {
|
|
673
665
|
if (typeof localStorage < "u") e.getItem = (e) => localStorage.getItem(e), e.setItem = (e, t) => {
|
|
674
666
|
localStorage.setItem(e, t);
|
|
@@ -678,18 +670,18 @@ function ze(e) {
|
|
|
678
670
|
console.error(t), e.getItem = () => null, e.setItem = () => {};
|
|
679
671
|
}
|
|
680
672
|
}
|
|
681
|
-
function
|
|
673
|
+
function Re(e) {
|
|
682
674
|
return `react-resizable-panels:${e}`;
|
|
683
675
|
}
|
|
684
|
-
function
|
|
676
|
+
function ze(e) {
|
|
685
677
|
return e.map((e) => {
|
|
686
678
|
let { constraints: t, id: n, idIsFromProps: r, order: i } = e;
|
|
687
679
|
return r ? n : i ? `${i}:${JSON.stringify(t)}` : JSON.stringify(t);
|
|
688
680
|
}).sort((e, t) => e.localeCompare(t)).join(",");
|
|
689
681
|
}
|
|
690
|
-
function
|
|
682
|
+
function Be(e, t) {
|
|
691
683
|
try {
|
|
692
|
-
let n =
|
|
684
|
+
let n = Re(e), r = t.getItem(n);
|
|
693
685
|
if (r) {
|
|
694
686
|
let e = JSON.parse(r);
|
|
695
687
|
if (typeof e == "object" && e) return e;
|
|
@@ -697,11 +689,11 @@ function He(e, t) {
|
|
|
697
689
|
} catch {}
|
|
698
690
|
return null;
|
|
699
691
|
}
|
|
700
|
-
function
|
|
701
|
-
return (
|
|
692
|
+
function Ve(e, t, n) {
|
|
693
|
+
return (Be(e, n) ?? {})[ze(t)] ?? null;
|
|
702
694
|
}
|
|
703
|
-
function
|
|
704
|
-
let a =
|
|
695
|
+
function He(e, t, n, r, i) {
|
|
696
|
+
let a = Re(e), o = ze(t), s = Be(e, i) ?? {};
|
|
705
697
|
s[o] = {
|
|
706
698
|
expandToSizes: Object.fromEntries(n.entries()),
|
|
707
699
|
layout: r
|
|
@@ -712,44 +704,46 @@ function We(e, t, n, r, i) {
|
|
|
712
704
|
console.error(e);
|
|
713
705
|
}
|
|
714
706
|
}
|
|
715
|
-
function
|
|
707
|
+
function Ue({ layout: e, panelConstraints: t }) {
|
|
716
708
|
let n = [...e], r = n.reduce((e, t) => e + t, 0);
|
|
717
709
|
if (n.length !== t.length) throw Error(`Invalid ${t.length} panel layout: ${n.map((e) => `${e}%`).join(", ")}`);
|
|
718
|
-
if (!
|
|
710
|
+
if (!J(r, 100) && n.length > 0) for (let e = 0; e < t.length; e++) {
|
|
719
711
|
let t = n[e];
|
|
720
|
-
|
|
712
|
+
G(t != null, `No layout data found for index ${e}`);
|
|
713
|
+
let i = 100 / r * t;
|
|
714
|
+
n[e] = i;
|
|
721
715
|
}
|
|
722
716
|
let i = 0;
|
|
723
717
|
for (let e = 0; e < t.length; e++) {
|
|
724
718
|
let r = n[e];
|
|
725
|
-
|
|
726
|
-
let a =
|
|
719
|
+
G(r != null, `No layout data found for index ${e}`);
|
|
720
|
+
let a = Y({
|
|
727
721
|
panelConstraints: t,
|
|
728
722
|
panelIndex: e,
|
|
729
723
|
size: r
|
|
730
724
|
});
|
|
731
725
|
r != a && (i += r - a, n[e] = a);
|
|
732
726
|
}
|
|
733
|
-
if (!
|
|
727
|
+
if (!J(i, 0)) for (let e = 0; e < t.length; e++) {
|
|
734
728
|
let r = n[e];
|
|
735
|
-
|
|
736
|
-
let a = r + i, o =
|
|
729
|
+
G(r != null, `No layout data found for index ${e}`);
|
|
730
|
+
let a = r + i, o = Y({
|
|
737
731
|
panelConstraints: t,
|
|
738
732
|
panelIndex: e,
|
|
739
733
|
size: a
|
|
740
734
|
});
|
|
741
|
-
if (r !== o && (i -= o - r, n[e] = o,
|
|
735
|
+
if (r !== o && (i -= o - r, n[e] = o, J(i, 0))) break;
|
|
742
736
|
}
|
|
743
737
|
return n;
|
|
744
738
|
}
|
|
745
|
-
var
|
|
746
|
-
getItem: (e) => (
|
|
739
|
+
var We = 100, Ge = {
|
|
740
|
+
getItem: (e) => (Le(Ge), Ge.getItem(e)),
|
|
747
741
|
setItem: (e, t) => {
|
|
748
|
-
|
|
742
|
+
Le(Ge), Ge.setItem(e, t);
|
|
749
743
|
}
|
|
750
|
-
},
|
|
751
|
-
function
|
|
752
|
-
let x = ee(m), S = u(null), [C, w] = d(null), [T, E] = d([]),
|
|
744
|
+
}, Ke = {};
|
|
745
|
+
function qe({ autoSaveId: e = null, children: t, className: r = "", direction: a, forwardedRef: c, id: m = null, onLayout: g = null, keyboardResizeBy: _ = null, storage: v = Ge, style: y, tagName: te = "div", ...b }) {
|
|
746
|
+
let x = ee(m), S = u(null), [C, w] = d(null), [T, E] = d([]), k = ye(), A = u({}), j = u(/* @__PURE__ */ new Map()), M = u(0), N = u({
|
|
753
747
|
autoSaveId: e,
|
|
754
748
|
direction: a,
|
|
755
749
|
dragState: C,
|
|
@@ -757,7 +751,7 @@ function Ye({ autoSaveId: e = null, children: t, className: r = "", direction: a
|
|
|
757
751
|
keyboardResizeBy: _,
|
|
758
752
|
onLayout: g,
|
|
759
753
|
storage: v
|
|
760
|
-
}),
|
|
754
|
+
}), P = u({
|
|
761
755
|
layout: T,
|
|
762
756
|
panelDataArray: [],
|
|
763
757
|
panelDataArrayChanged: !1
|
|
@@ -767,35 +761,35 @@ function Ye({ autoSaveId: e = null, children: t, className: r = "", direction: a
|
|
|
767
761
|
didLogPanelConstraintsWarning: !1,
|
|
768
762
|
prevPanelIds: []
|
|
769
763
|
}), s(c, () => ({
|
|
770
|
-
getId: () =>
|
|
764
|
+
getId: () => N.current.id,
|
|
771
765
|
getLayout: () => {
|
|
772
|
-
let { layout: e } =
|
|
766
|
+
let { layout: e } = P.current;
|
|
773
767
|
return e;
|
|
774
768
|
},
|
|
775
769
|
setLayout: (e) => {
|
|
776
|
-
let { onLayout: t } =
|
|
770
|
+
let { onLayout: t } = N.current, { layout: n, panelDataArray: r } = P.current, i = Ue({
|
|
777
771
|
layout: e,
|
|
778
772
|
panelConstraints: r.map((e) => e.constraints)
|
|
779
773
|
});
|
|
780
|
-
|
|
774
|
+
ke(n, i) || (E(i), P.current.layout = i, t && t(i), Z(r, i, A.current));
|
|
781
775
|
}
|
|
782
776
|
}), []), h(() => {
|
|
783
|
-
|
|
784
|
-
}),
|
|
785
|
-
committedValuesRef:
|
|
786
|
-
eagerValuesRef:
|
|
777
|
+
N.current.autoSaveId = e, N.current.direction = a, N.current.dragState = C, N.current.id = x, N.current.onLayout = g, N.current.storage = v;
|
|
778
|
+
}), Oe({
|
|
779
|
+
committedValuesRef: N,
|
|
780
|
+
eagerValuesRef: P,
|
|
787
781
|
groupId: x,
|
|
788
782
|
layout: T,
|
|
789
|
-
panelDataArray:
|
|
783
|
+
panelDataArray: P.current.panelDataArray,
|
|
790
784
|
setLayout: E,
|
|
791
785
|
panelGroupElement: S.current
|
|
792
786
|
}), o(() => {
|
|
793
|
-
let { panelDataArray: t } =
|
|
787
|
+
let { panelDataArray: t } = P.current;
|
|
794
788
|
if (e) {
|
|
795
789
|
if (T.length === 0 || T.length !== t.length) return;
|
|
796
|
-
let n =
|
|
797
|
-
n ?? (n =
|
|
798
|
-
let r = [...t], i = new Map(
|
|
790
|
+
let n = Ke[e];
|
|
791
|
+
n ?? (n = Ie(He, We), Ke[e] = n);
|
|
792
|
+
let r = [...t], i = new Map(j.current);
|
|
799
793
|
n(e, r, i, T, v);
|
|
800
794
|
}
|
|
801
795
|
}, [
|
|
@@ -803,13 +797,13 @@ function Ye({ autoSaveId: e = null, children: t, className: r = "", direction: a
|
|
|
803
797
|
T,
|
|
804
798
|
v
|
|
805
799
|
]), o(() => {});
|
|
806
|
-
let
|
|
807
|
-
let { onLayout: t } =
|
|
800
|
+
let F = i((e) => {
|
|
801
|
+
let { onLayout: t } = N.current, { layout: n, panelDataArray: r } = P.current;
|
|
808
802
|
if (e.constraints.collapsible) {
|
|
809
803
|
let i = r.map((e) => e.constraints), { collapsedSize: a = 0, panelSize: o, pivotIndices: s } = $(r, e, n);
|
|
810
|
-
if (
|
|
811
|
-
|
|
812
|
-
let c =
|
|
804
|
+
if (G(o != null, `Panel size not found for panel "${e.id}"`), !q(o, a)) {
|
|
805
|
+
j.current.set(e.id, o);
|
|
806
|
+
let c = xe({
|
|
813
807
|
delta: Q(r, e) === r.length - 1 ? o - a : a - o,
|
|
814
808
|
initialLayout: n,
|
|
815
809
|
panelConstraints: i,
|
|
@@ -817,15 +811,15 @@ function Ye({ autoSaveId: e = null, children: t, className: r = "", direction: a
|
|
|
817
811
|
prevLayout: n,
|
|
818
812
|
trigger: "imperative-api"
|
|
819
813
|
});
|
|
820
|
-
|
|
814
|
+
Pe(n, c) || (E(c), P.current.layout = c, t && t(c), Z(r, c, A.current));
|
|
821
815
|
}
|
|
822
816
|
}
|
|
823
|
-
}, []),
|
|
824
|
-
let { onLayout: n } =
|
|
817
|
+
}, []), I = i((e, t) => {
|
|
818
|
+
let { onLayout: n } = N.current, { layout: r, panelDataArray: i } = P.current;
|
|
825
819
|
if (e.constraints.collapsible) {
|
|
826
820
|
let a = i.map((e) => e.constraints), { collapsedSize: o = 0, panelSize: s = 0, minSize: c = 0, pivotIndices: l } = $(i, e, r), u = t ?? c;
|
|
827
|
-
if (
|
|
828
|
-
let t =
|
|
821
|
+
if (q(s, o)) {
|
|
822
|
+
let t = j.current.get(e.id), o = t != null && t >= u ? t : u, c = xe({
|
|
829
823
|
delta: Q(i, e) === i.length - 1 ? s - o : o - s,
|
|
830
824
|
initialLayout: r,
|
|
831
825
|
panelConstraints: a,
|
|
@@ -833,77 +827,77 @@ function Ye({ autoSaveId: e = null, children: t, className: r = "", direction: a
|
|
|
833
827
|
prevLayout: r,
|
|
834
828
|
trigger: "imperative-api"
|
|
835
829
|
});
|
|
836
|
-
|
|
830
|
+
Pe(r, c) || (E(c), P.current.layout = c, n && n(c), Z(i, c, A.current));
|
|
837
831
|
}
|
|
838
832
|
}
|
|
839
|
-
}, []),
|
|
840
|
-
let { layout: t, panelDataArray: n } =
|
|
841
|
-
return
|
|
842
|
-
}, []),
|
|
843
|
-
let { panelDataArray: n } =
|
|
844
|
-
return
|
|
833
|
+
}, []), L = i((e) => {
|
|
834
|
+
let { layout: t, panelDataArray: n } = P.current, { panelSize: r } = $(n, e, t);
|
|
835
|
+
return G(r != null, `Panel size not found for panel "${e.id}"`), r;
|
|
836
|
+
}, []), R = i((e, t) => {
|
|
837
|
+
let { panelDataArray: n } = P.current, r = Q(n, e);
|
|
838
|
+
return Fe({
|
|
845
839
|
defaultSize: t,
|
|
846
840
|
dragState: C,
|
|
847
841
|
layout: T,
|
|
848
842
|
panelData: n,
|
|
849
|
-
panelIndex:
|
|
843
|
+
panelIndex: r
|
|
850
844
|
});
|
|
851
|
-
}, [C, T]),
|
|
852
|
-
let { layout: t, panelDataArray: n } =
|
|
853
|
-
return
|
|
854
|
-
}, []),
|
|
855
|
-
let { layout: t, panelDataArray: n } =
|
|
856
|
-
return
|
|
857
|
-
}, []),
|
|
858
|
-
let { panelDataArray: t } =
|
|
845
|
+
}, [C, T]), z = i((e) => {
|
|
846
|
+
let { layout: t, panelDataArray: n } = P.current, { collapsedSize: r = 0, collapsible: i, panelSize: a } = $(n, e, t);
|
|
847
|
+
return G(a != null, `Panel size not found for panel "${e.id}"`), i === !0 && q(a, r);
|
|
848
|
+
}, []), se = i((e) => {
|
|
849
|
+
let { layout: t, panelDataArray: n } = P.current, { collapsedSize: r = 0, collapsible: i, panelSize: a } = $(n, e, t);
|
|
850
|
+
return G(a != null, `Panel size not found for panel "${e.id}"`), !i || K(a, r) > 0;
|
|
851
|
+
}, []), B = i((e) => {
|
|
852
|
+
let { panelDataArray: t } = P.current;
|
|
859
853
|
t.push(e), t.sort((e, t) => {
|
|
860
854
|
let n = e.order, r = t.order;
|
|
861
855
|
return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;
|
|
862
|
-
}),
|
|
863
|
-
}, [
|
|
856
|
+
}), P.current.panelDataArrayChanged = !0, k();
|
|
857
|
+
}, [k]);
|
|
864
858
|
h(() => {
|
|
865
|
-
if (
|
|
866
|
-
|
|
867
|
-
let { autoSaveId: e, onLayout: t, storage: n } =
|
|
859
|
+
if (P.current.panelDataArrayChanged) {
|
|
860
|
+
P.current.panelDataArrayChanged = !1;
|
|
861
|
+
let { autoSaveId: e, onLayout: t, storage: n } = N.current, { layout: r, panelDataArray: i } = P.current, a = null;
|
|
868
862
|
if (e) {
|
|
869
|
-
let t =
|
|
870
|
-
t && (
|
|
863
|
+
let t = Ve(e, i, n);
|
|
864
|
+
t && (j.current = new Map(Object.entries(t.expandToSizes)), a = t.layout);
|
|
871
865
|
}
|
|
872
|
-
a ??=
|
|
873
|
-
let o =
|
|
866
|
+
a ??= Ne({ panelDataArray: i });
|
|
867
|
+
let o = Ue({
|
|
874
868
|
layout: a,
|
|
875
869
|
panelConstraints: i.map((e) => e.constraints)
|
|
876
870
|
});
|
|
877
|
-
|
|
871
|
+
ke(r, o) || (E(o), P.current.layout = o, t && t(o), Z(i, o, A.current));
|
|
878
872
|
}
|
|
879
873
|
}), h(() => {
|
|
880
|
-
let e =
|
|
874
|
+
let e = P.current;
|
|
881
875
|
return () => {
|
|
882
876
|
e.layout = [];
|
|
883
877
|
};
|
|
884
878
|
}, []);
|
|
885
|
-
let
|
|
879
|
+
let V = i((e) => {
|
|
886
880
|
let t = !1, n = S.current;
|
|
887
881
|
return n && window.getComputedStyle(n, null).getPropertyValue("direction") === "rtl" && (t = !0), function(n) {
|
|
888
882
|
n.preventDefault();
|
|
889
883
|
let r = S.current;
|
|
890
884
|
if (!r) return () => null;
|
|
891
|
-
let { direction: i, dragState: a, id: o, keyboardResizeBy: s, onLayout: c } =
|
|
885
|
+
let { direction: i, dragState: a, id: o, keyboardResizeBy: s, onLayout: c } = N.current, { layout: l, panelDataArray: u } = P.current, { initialLayout: d } = a ?? {}, f = we(o, e, r), p = Me(n, e, i, a, s, r), m = i === "horizontal";
|
|
892
886
|
m && t && (p = -p);
|
|
893
|
-
let h = u.map((e) => e.constraints), g =
|
|
887
|
+
let h = u.map((e) => e.constraints), g = xe({
|
|
894
888
|
delta: p,
|
|
895
889
|
initialLayout: d ?? l,
|
|
896
890
|
panelConstraints: h,
|
|
897
891
|
pivotIndices: f,
|
|
898
892
|
prevLayout: l,
|
|
899
|
-
trigger:
|
|
900
|
-
}), _ = !
|
|
901
|
-
(
|
|
893
|
+
trigger: D(n) ? "keyboard" : "mouse-or-touch"
|
|
894
|
+
}), _ = !Pe(l, g);
|
|
895
|
+
(O(n) || ne(n)) && M.current != p && (M.current = p, !_ && p !== 0 ? m ? me(e, p < 0 ? re : ie) : me(e, p < 0 ? ae : oe) : me(e, 0)), _ && (E(g), P.current.layout = g, c && c(g), Z(u, g, A.current));
|
|
902
896
|
};
|
|
903
|
-
}, []),
|
|
904
|
-
let { onLayout: n } =
|
|
905
|
-
|
|
906
|
-
let c =
|
|
897
|
+
}, []), H = i((e, t) => {
|
|
898
|
+
let { onLayout: n } = N.current, { layout: r, panelDataArray: i } = P.current, a = i.map((e) => e.constraints), { panelSize: o, pivotIndices: s } = $(i, e, r);
|
|
899
|
+
G(o != null, `Panel size not found for panel "${e.id}"`);
|
|
900
|
+
let c = xe({
|
|
907
901
|
delta: Q(i, e) === i.length - 1 ? o - t : t - o,
|
|
908
902
|
initialLayout: r,
|
|
909
903
|
panelConstraints: a,
|
|
@@ -911,77 +905,77 @@ function Ye({ autoSaveId: e = null, children: t, className: r = "", direction: a
|
|
|
911
905
|
prevLayout: r,
|
|
912
906
|
trigger: "imperative-api"
|
|
913
907
|
});
|
|
914
|
-
|
|
915
|
-
}, []),
|
|
916
|
-
let { layout: n, panelDataArray: r } =
|
|
917
|
-
u != null && (a && s &&
|
|
918
|
-
}, [
|
|
919
|
-
let { direction: n } =
|
|
908
|
+
Pe(r, c) || (E(c), P.current.layout = c, n && n(c), Z(i, c, A.current));
|
|
909
|
+
}, []), U = i((e, t) => {
|
|
910
|
+
let { layout: n, panelDataArray: r } = P.current, { collapsedSize: i = 0, collapsible: a } = t, { collapsedSize: o = 0, collapsible: s, maxSize: c = 100, minSize: l = 0 } = e.constraints, { panelSize: u } = $(r, e, n);
|
|
911
|
+
u != null && (a && s && q(u, i) ? q(i, o) || H(e, o) : u < l ? H(e, l) : u > c && H(e, c));
|
|
912
|
+
}, [H]), W = i((e, t) => {
|
|
913
|
+
let { direction: n } = N.current, { layout: r } = P.current;
|
|
920
914
|
if (!S.current) return;
|
|
921
|
-
let i =
|
|
922
|
-
|
|
923
|
-
let a =
|
|
915
|
+
let i = Ee(e, S.current);
|
|
916
|
+
G(i, `Drag handle element not found for id "${e}"`);
|
|
917
|
+
let a = Ae(n, t);
|
|
924
918
|
w({
|
|
925
919
|
dragHandleId: e,
|
|
926
920
|
dragHandleRect: i.getBoundingClientRect(),
|
|
927
921
|
initialCursorPosition: a,
|
|
928
922
|
initialLayout: r
|
|
929
923
|
});
|
|
930
|
-
}, []),
|
|
924
|
+
}, []), ce = i(() => {
|
|
931
925
|
w(null);
|
|
932
|
-
}, []),
|
|
933
|
-
let { panelDataArray: t } =
|
|
934
|
-
n >= 0 && (t.splice(n, 1), delete
|
|
935
|
-
}, [
|
|
936
|
-
collapsePanel:
|
|
926
|
+
}, []), le = i((e) => {
|
|
927
|
+
let { panelDataArray: t } = P.current, n = Q(t, e);
|
|
928
|
+
n >= 0 && (t.splice(n, 1), delete A.current[e.id], P.current.panelDataArrayChanged = !0, k());
|
|
929
|
+
}, [k]), ue = l(() => ({
|
|
930
|
+
collapsePanel: F,
|
|
937
931
|
direction: a,
|
|
938
932
|
dragState: C,
|
|
939
|
-
expandPanel:
|
|
940
|
-
getPanelSize:
|
|
941
|
-
getPanelStyle:
|
|
933
|
+
expandPanel: I,
|
|
934
|
+
getPanelSize: L,
|
|
935
|
+
getPanelStyle: R,
|
|
942
936
|
groupId: x,
|
|
943
|
-
isPanelCollapsed:
|
|
944
|
-
isPanelExpanded:
|
|
945
|
-
reevaluatePanelConstraints:
|
|
946
|
-
registerPanel:
|
|
947
|
-
registerResizeHandle:
|
|
948
|
-
resizePanel:
|
|
949
|
-
startDragging:
|
|
950
|
-
stopDragging:
|
|
951
|
-
unregisterPanel:
|
|
937
|
+
isPanelCollapsed: z,
|
|
938
|
+
isPanelExpanded: se,
|
|
939
|
+
reevaluatePanelConstraints: U,
|
|
940
|
+
registerPanel: B,
|
|
941
|
+
registerResizeHandle: V,
|
|
942
|
+
resizePanel: H,
|
|
943
|
+
startDragging: W,
|
|
944
|
+
stopDragging: ce,
|
|
945
|
+
unregisterPanel: le,
|
|
952
946
|
panelGroupElement: S.current
|
|
953
947
|
}), [
|
|
954
|
-
|
|
948
|
+
F,
|
|
955
949
|
C,
|
|
956
950
|
a,
|
|
951
|
+
I,
|
|
957
952
|
L,
|
|
958
953
|
R,
|
|
959
|
-
z,
|
|
960
954
|
x,
|
|
955
|
+
z,
|
|
956
|
+
se,
|
|
957
|
+
U,
|
|
961
958
|
B,
|
|
962
|
-
ne,
|
|
963
|
-
H,
|
|
964
|
-
re,
|
|
965
|
-
ce,
|
|
966
959
|
V,
|
|
967
|
-
|
|
960
|
+
H,
|
|
968
961
|
W,
|
|
969
|
-
|
|
970
|
-
|
|
962
|
+
ce,
|
|
963
|
+
le
|
|
964
|
+
]), de = {
|
|
971
965
|
display: "flex",
|
|
972
966
|
flexDirection: a === "horizontal" ? "row" : "column",
|
|
973
967
|
height: "100%",
|
|
974
968
|
overflow: "hidden",
|
|
975
969
|
width: "100%"
|
|
976
970
|
};
|
|
977
|
-
return n(f.Provider, { value:
|
|
978
|
-
...
|
|
971
|
+
return n(f.Provider, { value: ue }, n(te, {
|
|
972
|
+
...b,
|
|
979
973
|
children: t,
|
|
980
974
|
className: r,
|
|
981
975
|
id: m,
|
|
982
976
|
ref: S,
|
|
983
977
|
style: {
|
|
984
|
-
...
|
|
978
|
+
...de,
|
|
985
979
|
...y
|
|
986
980
|
},
|
|
987
981
|
[p.group]: "",
|
|
@@ -989,11 +983,11 @@ function Ye({ autoSaveId: e = null, children: t, className: r = "", direction: a
|
|
|
989
983
|
[p.groupId]: x
|
|
990
984
|
}));
|
|
991
985
|
}
|
|
992
|
-
var
|
|
986
|
+
var Je = r((e, t) => n(qe, {
|
|
993
987
|
...e,
|
|
994
988
|
forwardedRef: t
|
|
995
989
|
}));
|
|
996
|
-
|
|
990
|
+
qe.displayName = "PanelGroup", Je.displayName = "forwardRef(PanelGroup)";
|
|
997
991
|
function Q(e, t) {
|
|
998
992
|
return e.findIndex((e) => e === t || e.id === t.id);
|
|
999
993
|
}
|
|
@@ -1005,10 +999,10 @@ function $(e, t, n) {
|
|
|
1005
999
|
pivotIndices: i
|
|
1006
1000
|
};
|
|
1007
1001
|
}
|
|
1008
|
-
function
|
|
1002
|
+
function Ye({ disabled: e, handleId: t, resizeHandler: n, panelGroupElement: r }) {
|
|
1009
1003
|
o(() => {
|
|
1010
1004
|
if (e || n == null || r == null) return;
|
|
1011
|
-
let i =
|
|
1005
|
+
let i = Ee(t, r);
|
|
1012
1006
|
if (i == null) return;
|
|
1013
1007
|
let a = (e) => {
|
|
1014
1008
|
if (!e.defaultPrevented) switch (e.key) {
|
|
@@ -1023,9 +1017,9 @@ function Ze({ disabled: e, handleId: t, resizeHandler: n, panelGroupElement: r }
|
|
|
1023
1017
|
case "F6": {
|
|
1024
1018
|
e.preventDefault();
|
|
1025
1019
|
let n = i.getAttribute(p.groupId);
|
|
1026
|
-
|
|
1027
|
-
let a =
|
|
1028
|
-
|
|
1020
|
+
G(n, `No group element found for id "${n}"`);
|
|
1021
|
+
let a = X(n, r), o = Ce(n, t, r);
|
|
1022
|
+
G(o !== null, `No resize element found for id "${t}"`), a[e.shiftKey ? o > 0 ? o - 1 : a.length - 1 : o + 1 < a.length ? o + 1 : 0].focus();
|
|
1029
1023
|
break;
|
|
1030
1024
|
}
|
|
1031
1025
|
}
|
|
@@ -1040,7 +1034,7 @@ function Ze({ disabled: e, handleId: t, resizeHandler: n, panelGroupElement: r }
|
|
|
1040
1034
|
n
|
|
1041
1035
|
]);
|
|
1042
1036
|
}
|
|
1043
|
-
function
|
|
1037
|
+
function Xe({ children: e = null, className: t = "", disabled: r = !1, hitAreaMargins: i, id: s, onBlur: c, onClick: l, onDragging: m, onFocus: g, onPointerDown: _, onPointerUp: v, style: y = {}, tabIndex: te = 0, tagName: b = "div", ...x }) {
|
|
1044
1038
|
let S = u(null), C = u({
|
|
1045
1039
|
onClick: l,
|
|
1046
1040
|
onDragging: m,
|
|
@@ -1052,48 +1046,45 @@ function Qe({ children: e = null, className: t = "", disabled: r = !1, hitAreaMa
|
|
|
1052
1046
|
});
|
|
1053
1047
|
let w = a(f);
|
|
1054
1048
|
if (w === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
1055
|
-
let { direction: T, groupId: E, registerResizeHandle: D, startDragging: O, stopDragging:
|
|
1049
|
+
let { direction: T, groupId: E, registerResizeHandle: D, startDragging: O, stopDragging: ne, panelGroupElement: k } = w, A = ee(s), [j, M] = d("inactive"), [N, P] = d(!1), [F, I] = d(null), L = u({ state: j });
|
|
1056
1050
|
h(() => {
|
|
1057
|
-
|
|
1051
|
+
L.current.state = j;
|
|
1058
1052
|
}), o(() => {
|
|
1059
|
-
if (r)
|
|
1053
|
+
if (r) I(null);
|
|
1060
1054
|
else {
|
|
1061
|
-
let e = D(
|
|
1062
|
-
|
|
1055
|
+
let e = D(A);
|
|
1056
|
+
I(() => e);
|
|
1063
1057
|
}
|
|
1064
1058
|
}, [
|
|
1065
1059
|
r,
|
|
1066
|
-
|
|
1060
|
+
A,
|
|
1067
1061
|
D
|
|
1068
1062
|
]);
|
|
1069
|
-
let
|
|
1063
|
+
let R = i?.coarse ?? 15, z = i?.fine ?? 5;
|
|
1070
1064
|
o(() => {
|
|
1071
|
-
if (r ||
|
|
1065
|
+
if (r || F == null) return;
|
|
1072
1066
|
let e = S.current;
|
|
1073
|
-
|
|
1067
|
+
G(e, "Element ref not attached");
|
|
1074
1068
|
let t = !1;
|
|
1075
|
-
return
|
|
1076
|
-
coarse:
|
|
1077
|
-
fine:
|
|
1069
|
+
return ce(A, e, T, {
|
|
1070
|
+
coarse: R,
|
|
1071
|
+
fine: z
|
|
1078
1072
|
}, (e, n, r) => {
|
|
1079
|
-
if (!n)
|
|
1080
|
-
|
|
1081
|
-
return;
|
|
1082
|
-
}
|
|
1083
|
-
switch (e) {
|
|
1073
|
+
if (!n) M("inactive");
|
|
1074
|
+
else switch (e) {
|
|
1084
1075
|
case "down": {
|
|
1085
|
-
|
|
1076
|
+
M("drag"), t = !1, G(r, "Expected event to be defined for \"down\" action"), O(A, r);
|
|
1086
1077
|
let { onDragging: e, onPointerDown: n } = C.current;
|
|
1087
1078
|
e?.(!0), n?.();
|
|
1088
1079
|
break;
|
|
1089
1080
|
}
|
|
1090
1081
|
case "move": {
|
|
1091
|
-
let { state: e } =
|
|
1092
|
-
t = !0, e !== "drag" &&
|
|
1082
|
+
let { state: e } = L.current;
|
|
1083
|
+
t = !0, e !== "drag" && M("hover"), G(r, "Expected event to be defined for \"move\" action"), F(r);
|
|
1093
1084
|
break;
|
|
1094
1085
|
}
|
|
1095
1086
|
case "up": {
|
|
1096
|
-
|
|
1087
|
+
M("hover"), ne();
|
|
1097
1088
|
let { onClick: e, onDragging: n, onPointerUp: r } = C.current;
|
|
1098
1089
|
n?.(!1), r?.(), t || e?.();
|
|
1099
1090
|
break;
|
|
@@ -1101,52 +1092,51 @@ function Qe({ children: e = null, className: t = "", disabled: r = !1, hitAreaMa
|
|
|
1101
1092
|
}
|
|
1102
1093
|
});
|
|
1103
1094
|
}, [
|
|
1104
|
-
|
|
1095
|
+
R,
|
|
1105
1096
|
T,
|
|
1106
1097
|
r,
|
|
1107
|
-
|
|
1098
|
+
z,
|
|
1108
1099
|
D,
|
|
1109
|
-
|
|
1110
|
-
|
|
1100
|
+
A,
|
|
1101
|
+
F,
|
|
1111
1102
|
O,
|
|
1112
|
-
|
|
1113
|
-
]),
|
|
1103
|
+
ne
|
|
1104
|
+
]), Ye({
|
|
1114
1105
|
disabled: r,
|
|
1115
|
-
handleId:
|
|
1116
|
-
resizeHandler:
|
|
1117
|
-
panelGroupElement:
|
|
1106
|
+
handleId: A,
|
|
1107
|
+
resizeHandler: F,
|
|
1108
|
+
panelGroupElement: k
|
|
1118
1109
|
});
|
|
1119
|
-
let
|
|
1110
|
+
let re = {
|
|
1120
1111
|
touchAction: "none",
|
|
1121
1112
|
userSelect: "none"
|
|
1122
1113
|
};
|
|
1123
|
-
return n(
|
|
1114
|
+
return n(b, {
|
|
1124
1115
|
...x,
|
|
1125
1116
|
children: e,
|
|
1126
1117
|
className: t,
|
|
1127
1118
|
id: s,
|
|
1128
1119
|
onBlur: () => {
|
|
1129
|
-
|
|
1120
|
+
P(!1), c?.();
|
|
1130
1121
|
},
|
|
1131
1122
|
onFocus: () => {
|
|
1132
|
-
|
|
1123
|
+
P(!0), g?.();
|
|
1133
1124
|
},
|
|
1134
1125
|
ref: S,
|
|
1135
1126
|
role: "separator",
|
|
1136
1127
|
style: {
|
|
1137
|
-
...
|
|
1128
|
+
...re,
|
|
1138
1129
|
...y
|
|
1139
1130
|
},
|
|
1140
|
-
tabIndex:
|
|
1131
|
+
tabIndex: te,
|
|
1141
1132
|
[p.groupDirection]: T,
|
|
1142
1133
|
[p.groupId]: E,
|
|
1143
1134
|
[p.resizeHandle]: "",
|
|
1144
|
-
[p.resizeHandleActive]:
|
|
1135
|
+
[p.resizeHandleActive]: j === "drag" ? "pointer" : N ? "keyboard" : void 0,
|
|
1145
1136
|
[p.resizeHandleEnabled]: !r,
|
|
1146
|
-
[p.resizeHandleId]:
|
|
1147
|
-
[p.resizeHandleState]:
|
|
1137
|
+
[p.resizeHandleId]: A,
|
|
1138
|
+
[p.resizeHandleState]: j
|
|
1148
1139
|
});
|
|
1149
1140
|
}
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
export { b as Panel, Xe as PanelGroup, Qe as PanelResizeHandle };
|
|
1141
|
+
Xe.displayName = "PanelResizeHandle";
|
|
1142
|
+
export { p as DATA_ATTRIBUTES, te as Panel, Je as PanelGroup, Xe as PanelResizeHandle, G as assert, Te as getPanelGroupElement, Ee as getResizeHandleElement, Ce as getResizeHandleElementIndex, X as getResizeHandleElementsForGroup, De as getResizeHandlePanelIds, j as intersects };
|