@tap-payments/os-micro-frontend-shared 0.3.273 → 0.3.274-test.1794161513
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/build/_chunks/{chunk-64ZDTAAW.js → chunk-265MSIZH.js} +1 -1
- package/build/_chunks/{chunk-NUCUSAD2.js → chunk-2DZTKOWC.js} +1 -1
- package/build/_chunks/{chunk-IPEPXEL5.js → chunk-2FFQR4XJ.js} +1 -1
- package/build/_chunks/{chunk-Y75WADMM.js → chunk-363HMCRF.js} +1 -1
- package/build/_chunks/chunk-37SWWF3G.js +1 -0
- package/build/_chunks/chunk-3M2GZVQW.js +2 -0
- package/build/_chunks/{chunk-X5HRCMTE.js → chunk-42T6C72N.js} +1 -1
- package/build/_chunks/{chunk-MF5ATA3Y.js → chunk-46V3JVHX.js} +1 -1
- package/build/_chunks/{chunk-3DOR47UW.js → chunk-52PPSCXG.js} +1 -1
- package/build/_chunks/{chunk-K6LOVRKX.js → chunk-5SPLSDGC.js} +1 -1
- package/build/_chunks/chunk-7L6NBFKR.js +1 -0
- package/build/_chunks/{chunk-PUJ762TG.js → chunk-7XEIN7KW.js} +1 -1
- package/build/_chunks/{chunk-BRFCMPF5.js → chunk-A6YF5T27.js} +1 -1
- package/build/_chunks/{chunk-TZOMS57X.js → chunk-ADEEIE7D.js} +1 -1
- package/build/_chunks/{chunk-BNM6FJCR.js → chunk-B3QNGYUI.js} +1 -1
- package/build/_chunks/chunk-BPHG6RDC.js +1 -0
- package/build/_chunks/{chunk-GBGW63EG.js → chunk-BVAZARPH.js} +1 -1
- package/build/_chunks/{chunk-6TH5OBRZ.js → chunk-BXQASOYE.js} +1 -1
- package/build/_chunks/{chunk-AXNWVU3K.js → chunk-CAVYK7HF.js} +1 -1
- package/build/_chunks/{chunk-UEG5AHXV.js → chunk-DEMRELKE.js} +1 -1
- package/build/_chunks/{chunk-LDCBWAC4.js → chunk-DZYFAAXL.js} +1 -1
- package/build/_chunks/{chunk-ZUK5FRG5.js → chunk-EKOUE2IZ.js} +1 -1
- package/build/_chunks/{chunk-XRUOTYCI.js → chunk-F4TXGFRW.js} +1 -1
- package/build/_chunks/{chunk-4JUVQWRF.js → chunk-FIFXF3JZ.js} +1 -1
- package/build/_chunks/{chunk-UC5FMNUV.js → chunk-FJNHU3S4.js} +1 -1
- package/build/_chunks/{chunk-DJRPY3A2.js → chunk-HRL5HXES.js} +1 -1
- package/build/_chunks/chunk-HZCNE5Q2.js +1 -0
- package/build/_chunks/{chunk-FNUU2KSZ.js → chunk-I7OG7E3Z.js} +1 -1
- package/build/_chunks/{chunk-KCIFOOFA.js → chunk-IERB2R3J.js} +1 -1
- package/build/_chunks/{chunk-2ANYOHLU.js → chunk-IPIA27QM.js} +1 -1
- package/build/_chunks/chunk-ISC5KT5E.js +1 -0
- package/build/_chunks/{chunk-YIZKLFYJ.js → chunk-JDEIU7E5.js} +1 -1
- package/build/_chunks/{chunk-PHKAZCP5.js → chunk-JGVAEGDX.js} +1 -1
- package/build/_chunks/{chunk-HOHQMC2O.js → chunk-JM6GMHUT.js} +1 -1
- package/build/_chunks/{chunk-MI3EC2ZF.js → chunk-KOBQX2C2.js} +1 -1
- package/build/_chunks/chunk-KPY3W62P.js +1 -0
- package/build/_chunks/{chunk-XXCH74F3.js → chunk-KVZJDQV2.js} +1 -1
- package/build/_chunks/chunk-LS57WE6K.js +1 -0
- package/build/_chunks/{chunk-ONANHXZA.js → chunk-O44C6KUS.js} +1 -1
- package/build/_chunks/{chunk-GFOWTME6.js → chunk-PCGC6E7J.js} +1 -1
- package/build/_chunks/{chunk-LON6X4MJ.js → chunk-PQRI2WMI.js} +1 -1
- package/build/_chunks/chunk-QFKF5I2T.js +2 -0
- package/build/_chunks/{chunk-WC2MF35C.js → chunk-QVH3AVGY.js} +1 -1
- package/build/_chunks/{chunk-LVQ2UFZT.js → chunk-QZJCQWTE.js} +1 -1
- package/build/_chunks/{chunk-BXVLLRHG.js → chunk-RSIJKVO6.js} +1 -1
- package/build/_chunks/chunk-RXDZGI4N.js +1 -0
- package/build/_chunks/{chunk-TN55SPRQ.js → chunk-S27723NU.js} +1 -1
- package/build/_chunks/{chunk-FMUJQ45L.js → chunk-SKASDIJH.js} +1 -1
- package/build/_chunks/{chunk-RNJI3YXH.js → chunk-SN2KTD4P.js} +1 -1
- package/build/_chunks/chunk-UG6JEHZY.js +2 -0
- package/build/_chunks/{chunk-2JYBMD4I.js → chunk-UQ7XDCXB.js} +1 -1
- package/build/_chunks/{chunk-DOZLA7RE.js → chunk-UY75PFQ7.js} +1 -1
- package/build/_chunks/{chunk-FTRMTWS4.js → chunk-UZVOPL5U.js} +1 -1
- package/build/_chunks/{chunk-TX3XM6XL.js → chunk-VEPRRBYW.js} +1 -1
- package/build/_chunks/{chunk-SMJCH23I.js → chunk-VFCK7VBP.js} +1 -1
- package/build/_chunks/chunk-VNUT3HGU.js +1 -0
- package/build/_chunks/{chunk-AJS7K55Q.js → chunk-VRPTMDSJ.js} +1 -1
- package/build/_chunks/{chunk-DFEQ23C7.js → chunk-W2HSCMPT.js} +1 -1
- package/build/_chunks/chunk-WEDCKMUU.js +1 -0
- package/build/_chunks/{chunk-DRRME7J2.js → chunk-XMGXCCSD.js} +1 -1
- package/build/_chunks/{chunk-F3U4ZIAP.js → chunk-YDOKNGL2.js} +1 -1
- package/build/_chunks/chunk-YQEBQZXF.js +1 -0
- package/build/_chunks/{chunk-EUMG4QKT.js → chunk-YQYHL4AG.js} +1 -1
- package/build/_chunks/chunk-Z2DUFVI5.js +1 -0
- package/build/_chunks/{chunk-ZCULKYWE.js → chunk-ZERM22LM.js} +1 -1
- package/build/_chunks/{chunk-REZFP4CA.js → chunk-ZFVCIKJ5.js} +1 -1
- package/build/_chunks/{chunk-WNB7CBHZ.js → chunk-ZO7IPGTD.js} +1 -1
- package/build/_chunks/{chunk-H4FZYTL7.js → chunk-ZYP2H2JO.js} +1 -1
- package/build/components/ActionsDropdownMenu/index.js +1 -1
- package/build/components/Alert/index.js +1 -1
- package/build/components/AreaChart/index.js +1 -1
- package/build/components/Autocomplete/index.js +1 -1
- package/build/components/AvatarStack/index.js +1 -1
- package/build/components/Calender/index.js +1 -1
- package/build/components/Calender/style.d.ts +4 -4
- package/build/components/Card/index.js +1 -1
- package/build/components/CardList/index.js +1 -1
- package/build/components/ColorPicker/index.js +1 -1
- package/build/components/ColorPicker/style.d.ts +2 -2
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/ColumnViews/styles.d.ts +6 -2
- package/build/components/ConfirmDialog/index.js +1 -1
- package/build/components/CountryFilter/index.js +1 -1
- package/build/components/CountryFlag/index.js +1 -1
- package/build/components/CurrenciesMenu/index.js +1 -1
- package/build/components/CurrencyAmount/index.js +1 -1
- package/build/components/CurrencyAmountInput/index.js +1 -1
- package/build/components/CurrencySymbol/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DateInput/index.js +1 -1
- package/build/components/DeviceIcon/index.js +1 -1
- package/build/components/DropdownMenu/index.js +1 -1
- package/build/components/EmptyState/index.js +1 -1
- package/build/components/ErrorToast/index.js +1 -1
- package/build/components/FileDropbox/index.js +1 -1
- package/build/components/FilePreview/index.js +1 -1
- package/build/components/FileUploader/index.js +1 -1
- package/build/components/FilterChip/index.js +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/FilterDropdown/style.d.ts +2 -2
- package/build/components/Filters/index.js +1 -1
- package/build/components/Filters/style.d.ts +2 -2
- package/build/components/FlippingCard/index.js +1 -1
- package/build/components/GroupedSelect/index.js +1 -1
- package/build/components/HeatMap/index.js +1 -1
- package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/ListLayout/index.js +1 -1
- package/build/components/Loader/index.js +1 -1
- package/build/components/Logo/index.js +1 -1
- package/build/components/MaskedText/index.js +1 -1
- package/build/components/MultiLevelSelect/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/PhoneInput/CountriesList/style.d.ts +1 -0
- package/build/components/PhoneInput/index.js +1 -1
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RadioGroup/index.js +1 -1
- package/build/components/RadioGroup/style.d.ts +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/RatingCount/index.js +1 -1
- package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SearchButton/style.d.ts +1 -1
- package/build/components/SearchInput/index.js +1 -1
- package/build/components/SearchInput/style.d.ts +2 -2
- package/build/components/Select/index.js +1 -1
- package/build/components/Select/style.d.ts +2 -2
- package/build/components/SheetViewChip/index.js +1 -1
- package/build/components/Sidebar/index.js +1 -1
- package/build/components/StatusBar/index.js +1 -1
- package/build/components/StatusButton/index.js +1 -1
- package/build/components/StatusButton/style.d.ts +2 -2
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/StatusLabel/index.js +1 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/TextInput/index.js +1 -1
- package/build/components/TextInput/style.d.ts +1 -0
- package/build/components/TextInput/type.d.ts +2 -0
- package/build/components/Timepicker/index.js +1 -1
- package/build/components/TreeDropdown/index.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/Window/Window.d.ts +15 -0
- package/build/components/Window/WindowContent.d.ts +4 -0
- package/build/components/Window/WindowDialog.d.ts +4 -0
- package/build/components/Window/WindowFooter.d.ts +4 -0
- package/build/components/Window/WindowFooterActions.d.ts +4 -0
- package/build/components/Window/WindowProvider.d.ts +3 -0
- package/build/components/Window/constants.d.ts +41 -0
- package/build/components/Window/context.d.ts +10 -0
- package/build/components/Window/index.d.ts +9 -0
- package/build/components/Window/index.js +1 -0
- package/build/components/Window/style.d.ts +36 -0
- package/build/components/Window/type.d.ts +233 -0
- package/build/components/Window/utils.d.ts +41 -0
- package/build/components/WindowServices/DropdownIcon.d.ts +9 -0
- package/build/components/WindowServices/ServiceItem.d.ts +9 -0
- package/build/components/WindowServices/WindowServices.d.ts +4 -0
- package/build/components/WindowServices/WindowSkeleton.d.ts +4 -0
- package/build/components/WindowServices/constants.d.ts +37 -0
- package/build/components/WindowServices/index.d.ts +4 -0
- package/build/components/WindowServices/index.js +1 -0
- package/build/components/WindowServices/style.d.ts +45 -0
- package/build/components/WindowServices/type.d.ts +66 -0
- package/build/components/WindowServices/utils.d.ts +9 -0
- package/build/components/WindowToolbar/CloseIcon.d.ts +9 -0
- package/build/components/WindowToolbar/DirectionIcon.d.ts +12 -0
- package/build/components/WindowToolbar/MaximizeIcon.d.ts +9 -0
- package/build/components/WindowToolbar/MinimizeIcon.d.ts +9 -0
- package/build/components/WindowToolbar/SandboxIcon.d.ts +10 -0
- package/build/components/WindowToolbar/WindowToolbar.d.ts +4 -0
- package/build/components/WindowToolbar/WindowToolbarEndAdornment.d.ts +4 -0
- package/build/components/WindowToolbar/WindowToolbarStartAdornment.d.ts +4 -0
- package/build/components/WindowToolbar/WindowToolbarTitle.d.ts +12 -0
- package/build/components/WindowToolbar/constants.d.ts +12 -0
- package/build/components/WindowToolbar/index.d.ts +11 -0
- package/build/components/WindowToolbar/index.js +1 -0
- package/build/components/WindowToolbar/style.d.ts +56 -0
- package/build/components/WindowToolbar/type.d.ts +64 -0
- package/build/components/index.d.ts +6 -8
- package/build/components/index.js +1 -1
- package/build/components/modules/JSONViewWindow/JSONViewWindow.d.ts +12 -0
- package/build/components/modules/JSONViewWindow/components/Content/Content.d.ts +11 -0
- package/build/components/modules/JSONViewWindow/components/Content/constants.d.ts +4 -0
- package/build/components/modules/JSONViewWindow/components/Content/index.d.ts +3 -0
- package/build/components/modules/JSONViewWindow/components/Content/style.d.ts +266 -0
- package/build/components/modules/JSONViewWindow/components/Content/type.d.ts +10 -0
- package/build/components/{JSONViewer → modules/JSONViewWindow}/components/CopiedIndicator/CopiedIndicator.d.ts +1 -1
- package/build/components/modules/JSONViewWindow/components/CopiedIndicator/style.d.ts +276 -0
- package/build/components/{AppWindowWrapper/AppWindow/AppWindow.d.ts → modules/JSONViewWindow/components/Footer/Footer.d.ts} +2 -2
- package/build/components/modules/JSONViewWindow/components/Footer/index.d.ts +3 -0
- package/build/components/modules/JSONViewWindow/components/Footer/style.d.ts +7 -0
- package/build/components/modules/JSONViewWindow/components/Footer/type.d.ts +11 -0
- package/build/components/modules/JSONViewWindow/components/HighlightText/index.d.ts +1 -0
- package/build/components/modules/JSONViewWindow/components/IconButton/IconButton.d.ts +8 -0
- package/build/components/modules/JSONViewWindow/components/IconButton/index.d.ts +2 -0
- package/build/components/modules/JSONViewWindow/components/IconButton/style.d.ts +2 -0
- package/build/components/modules/JSONViewWindow/components/IconButton/type.d.ts +6 -0
- package/build/components/{JSONViewer/components/JSONSearchBar/styles.d.ts → modules/JSONViewWindow/components/JSONSearchBar/style.d.ts} +2 -2
- package/build/components/modules/JSONViewWindow/components/JSONViewArrow/JSONViewArrow.d.ts +8 -0
- package/build/components/modules/JSONViewWindow/components/JSONViewArrow/index.d.ts +2 -0
- package/build/components/modules/JSONViewWindow/components/JSONViewArrow/type.d.ts +6 -0
- package/build/components/modules/JSONViewWindow/components/List/List.d.ts +8 -0
- package/build/components/modules/JSONViewWindow/components/List/index.d.ts +3 -0
- package/build/components/modules/JSONViewWindow/components/List/type.d.ts +8 -0
- package/build/components/modules/JSONViewWindow/components/Pane/Pane.d.ts +20 -0
- package/build/components/modules/JSONViewWindow/components/Pane/index.d.ts +3 -0
- package/build/components/modules/JSONViewWindow/components/Pane/type.d.ts +5 -0
- package/build/components/modules/JSONViewWindow/components/Toolbar/Toolbar.d.ts +4 -0
- package/build/components/modules/JSONViewWindow/components/Toolbar/constants.d.ts +4 -0
- package/build/components/modules/JSONViewWindow/components/Toolbar/index.d.ts +4 -0
- package/build/components/modules/JSONViewWindow/components/Toolbar/type.d.ts +21 -0
- package/build/components/modules/JSONViewWindow/components/index.d.ts +8 -0
- package/build/components/modules/JSONViewWindow/constants.d.ts +26 -0
- package/build/components/modules/JSONViewWindow/context/Provider.d.ts +7 -0
- package/build/components/modules/JSONViewWindow/context/context.d.ts +3 -0
- package/build/components/modules/JSONViewWindow/context/index.d.ts +2 -0
- package/build/components/modules/JSONViewWindow/hooks/index.d.ts +2 -0
- package/build/components/modules/JSONViewWindow/hooks/useJSONViewWindow.d.ts +24 -0
- package/build/components/{JSONViewer → modules/JSONViewWindow}/hooks/useJsonSearch.d.ts +1 -1
- package/build/components/modules/JSONViewWindow/index.d.ts +9 -0
- package/build/components/modules/JSONViewWindow/index.js +1 -0
- package/build/components/{JSONViewer → modules/JSONViewWindow}/style.d.ts +32 -40
- package/build/components/modules/JSONViewWindow/type.d.ts +33 -0
- package/build/components/modules/JSONViewWindow/utils.d.ts +14 -0
- package/build/components/modules/RangeCalender/components/QuickFilters/style.d.ts +1 -1
- package/build/components/modules/RangeCalender/components/RangeDatepicker/style.d.ts +1 -1
- package/build/components/modules/RangeCalender/index.js +1 -1
- package/build/components/modules/RangeCalender/style.d.ts +3 -3
- package/build/components/modules/VirtualTables/SheetViewVirtualTable/SheetViewVirtualTable.d.ts +1 -1
- package/build/components/modules/VirtualTables/VirtualTable/VirtualTable.d.ts +1 -1
- package/build/components/modules/VirtualTables/VirtualTableWithCard/VirtualTableWithCard.d.ts +1 -1
- package/build/components/modules/VirtualTables/components/ColumnFilter/Inputs/style.d.ts +1 -1
- package/build/components/modules/VirtualTables/components/ColumnFilter/style.d.ts +2 -2
- package/build/components/modules/VirtualTables/components/ErrorList/styles.d.ts +1 -1
- package/build/components/modules/VirtualTables/components/TableFooter/TableFooter.d.ts +1 -1
- package/build/components/modules/VirtualTables/index.js +1 -1
- package/build/components/modules/WindowShell/WindowShell.d.ts +4 -0
- package/build/components/modules/WindowShell/WindowShellAnimator.d.ts +28 -0
- package/build/components/modules/WindowShell/WindowShellSlotColumn.d.ts +8 -0
- package/build/components/modules/WindowShell/WindowShellSlotsLayout.d.ts +13 -0
- package/build/components/modules/WindowShell/WindowShellToolbar.d.ts +14 -0
- package/build/components/modules/WindowShell/constants.d.ts +6 -0
- package/build/components/modules/WindowShell/index.d.ts +3 -0
- package/build/components/modules/WindowShell/index.js +1 -0
- package/build/components/modules/WindowShell/style.d.ts +573 -0
- package/build/components/modules/WindowShell/type.d.ts +289 -0
- package/build/components/modules/WindowShell/utils.d.ts +49 -0
- package/build/components/modules/index.d.ts +4 -0
- package/build/components/modules/index.js +1 -0
- package/build/components/primitives/Input/style.d.ts +2 -2
- package/build/components/primitives/Slider/style.d.ts +1 -1
- package/build/components/primitives/Textarea/style.d.ts +2 -2
- package/build/components/primitives/index.js +1 -1
- package/build/constants/index.d.ts +1 -2
- package/build/constants/index.js +1 -1
- package/build/constants/window.d.ts +10 -5
- package/build/datetime/components/DateRangeCalendar/style.d.ts +5 -5
- package/build/datetime/components/index.js +1 -1
- package/build/hooks/index.d.ts +1 -2
- package/build/hooks/index.js +1 -1
- package/build/hooks/useElementSizeObserver.d.ts +18 -0
- package/build/index.js +1 -1
- package/build/types/appEvents.d.ts +0 -3
- package/build/types/index.js +1 -1
- package/build/types/table.d.ts +0 -2
- package/build/utils/index.js +1 -1
- package/package.json +4 -11
- package/build/_chunks/chunk-2RPPZGV7.js +0 -1
- package/build/_chunks/chunk-37JEPAIM.js +0 -1
- package/build/_chunks/chunk-7VJMQ6ZC.js +0 -1
- package/build/_chunks/chunk-ABVY4O2O.js +0 -1
- package/build/_chunks/chunk-EG32DA46.js +0 -1
- package/build/_chunks/chunk-EOBVIUIS.js +0 -1
- package/build/_chunks/chunk-FT35MCQE.js +0 -2
- package/build/_chunks/chunk-IBHWDBBJ.js +0 -2
- package/build/_chunks/chunk-IQAHULGQ.js +0 -2
- package/build/_chunks/chunk-LXG5YXOJ.js +0 -1
- package/build/_chunks/chunk-OOLWSYGD.js +0 -1
- package/build/_chunks/chunk-Q4FLSRWN.js +0 -1
- package/build/_chunks/chunk-QO5OUTFV.js +0 -1
- package/build/_chunks/chunk-RUFO5P34.js +0 -1
- package/build/_chunks/chunk-TKQTJ4MH.js +0 -1
- package/build/components/AppServices/AppServices.d.ts +0 -15
- package/build/components/AppServices/ServiceItem.d.ts +0 -12
- package/build/components/AppServices/index.d.ts +0 -2
- package/build/components/AppServices/index.js +0 -1
- package/build/components/AppServices/style.d.ts +0 -12
- package/build/components/AppServicesBar/AppServicesBar.d.ts +0 -22
- package/build/components/AppServicesBar/index.d.ts +0 -3
- package/build/components/AppServicesBar/index.js +0 -1
- package/build/components/AppWindowWrapper/AppWindow/constant.d.ts +0 -2
- package/build/components/AppWindowWrapper/AppWindow/index.d.ts +0 -5
- package/build/components/AppWindowWrapper/AppWindow/nestingContext.d.ts +0 -3
- package/build/components/AppWindowWrapper/AppWindow/style.d.ts +0 -18
- package/build/components/AppWindowWrapper/AppWindow/type.d.ts +0 -18
- package/build/components/AppWindowWrapper/AppWindow/utils.d.ts +0 -34
- package/build/components/AppWindowWrapper/AppWindowWrapper.d.ts +0 -4
- package/build/components/AppWindowWrapper/context/Provider.d.ts +0 -3
- package/build/components/AppWindowWrapper/context/context.d.ts +0 -3
- package/build/components/AppWindowWrapper/context/index.d.ts +0 -2
- package/build/components/AppWindowWrapper/context/type.d.ts +0 -88
- package/build/components/AppWindowWrapper/headers/AccountHeader/AccountHeader.d.ts +0 -5
- package/build/components/AppWindowWrapper/headers/AccountHeader/components/AccountHeaderTitle/AccountHeaderTitle.d.ts +0 -5
- package/build/components/AppWindowWrapper/headers/AccountHeader/components/AccountHeaderTitle/index.d.ts +0 -3
- package/build/components/AppWindowWrapper/headers/AccountHeader/components/AccountHeaderTitle/type.d.ts +0 -16
- package/build/components/AppWindowWrapper/headers/AccountHeader/index.d.ts +0 -4
- package/build/components/AppWindowWrapper/headers/AccountHeader/type.d.ts +0 -14
- package/build/components/AppWindowWrapper/headers/AppWindowHeader/AppWindowHeader.d.ts +0 -5
- package/build/components/AppWindowWrapper/headers/AppWindowHeader/AppWindowHeaderBase.d.ts +0 -5
- package/build/components/AppWindowWrapper/headers/AppWindowHeader/index.d.ts +0 -4
- package/build/components/AppWindowWrapper/headers/AppWindowHeader/type.d.ts +0 -25
- package/build/components/AppWindowWrapper/index.d.ts +0 -8
- package/build/components/AppWindowWrapper/index.js +0 -1
- package/build/components/AppWindowWrapper/type.d.ts +0 -11
- package/build/components/JSONViewer/JSONViewer.d.ts +0 -3
- package/build/components/JSONViewer/JSONViewerList.d.ts +0 -11
- package/build/components/JSONViewer/components/FooterButton/FooterButton.d.ts +0 -5
- package/build/components/JSONViewer/components/FooterButton/index.d.ts +0 -2
- package/build/components/JSONViewer/components/HighlightText/index.d.ts +0 -2
- package/build/components/JSONViewer/components/JSONTitleBar/JSONTitleBar.d.ts +0 -5
- package/build/components/JSONViewer/components/JSONTitleBar/index.d.ts +0 -3
- package/build/components/JSONViewer/components/JSONTitleBar/type.d.ts +0 -14
- package/build/components/JSONViewer/components/index.d.ts +0 -4
- package/build/components/JSONViewer/context/Provider.d.ts +0 -7
- package/build/components/JSONViewer/context/context.d.ts +0 -3
- package/build/components/JSONViewer/context/index.d.ts +0 -2
- package/build/components/JSONViewer/hooks/index.d.ts +0 -2
- package/build/components/JSONViewer/hooks/useJsonViewerContext.d.ts +0 -9
- package/build/components/JSONViewer/index.d.ts +0 -7
- package/build/components/JSONViewer/index.js +0 -1
- package/build/components/JSONViewer/type.d.ts +0 -33
- package/build/components/JSONViewer/utils.d.ts +0 -7
- package/build/components/MFWidgetLoader/DefaultMFWidgetLoader.d.ts +0 -2
- package/build/components/MFWidgetLoader/MFWidgetLoader.d.ts +0 -6
- package/build/components/MFWidgetLoader/ReportsMFWidgetLoader.d.ts +0 -2
- package/build/components/MFWidgetLoader/index.d.ts +0 -2
- package/build/components/MFWidgetLoader/index.js +0 -1
- package/build/components/Toolbar/Toolbar.d.ts +0 -5
- package/build/components/Toolbar/ToolbarAppIcon.d.ts +0 -7
- package/build/components/Toolbar/index.d.ts +0 -4
- package/build/components/Toolbar/index.js +0 -1
- package/build/components/Toolbar/style.d.ts +0 -34
- package/build/components/Toolbar/type.d.ts +0 -10
- package/build/components/ToolbarIcon/CloseIcon/CloseIcon.d.ts +0 -3
- package/build/components/ToolbarIcon/CloseIcon/index.d.ts +0 -1
- package/build/components/ToolbarIcon/CloseIcon/style.d.ts +0 -4
- package/build/components/ToolbarIcon/ExpandButton/ExpandButton.d.ts +0 -9
- package/build/components/ToolbarIcon/ExpandButton/index.d.ts +0 -1
- package/build/components/ToolbarIcon/ExpandButton/style.d.ts +0 -14
- package/build/components/ToolbarIcon/MaximizeIcon/MaximizeIcon.d.ts +0 -7
- package/build/components/ToolbarIcon/MaximizeIcon/index.d.ts +0 -1
- package/build/components/ToolbarIcon/MaximizeIcon/style.d.ts +0 -4
- package/build/components/ToolbarIcon/MinimizeIcon/MinimizeIcon.d.ts +0 -3
- package/build/components/ToolbarIcon/MinimizeIcon/index.d.ts +0 -1
- package/build/components/ToolbarIcon/MinimizeIcon/style.d.ts +0 -4
- package/build/components/ToolbarIcon/index.d.ts +0 -4
- package/build/components/ToolbarIcon/index.js +0 -1
- package/build/components/ToolbarIcon/style.d.ts +0 -4
- package/build/constants/style.d.ts +0 -4
- package/build/hooks/useCheckUserLoggedIn.d.ts +0 -1
- package/build/hooks/useMouseState.d.ts +0 -8
- /package/build/components/{JSONViewer → modules/JSONViewWindow}/components/CopiedIndicator/index.d.ts +0 -0
- /package/build/components/{JSONViewer → modules/JSONViewWindow}/components/HighlightText/HighlightText.d.ts +0 -0
- /package/build/components/{JSONViewer → modules/JSONViewWindow}/components/HighlightText/HighlightedParts.d.ts +0 -0
- /package/build/components/{JSONViewer → modules/JSONViewWindow}/components/HighlightText/type.d.ts +0 -0
- /package/build/components/{JSONViewer → modules/JSONViewWindow}/components/HighlightText/util.d.ts +0 -0
- /package/build/components/{JSONViewer → modules/JSONViewWindow}/components/JSONSearchBar/JSONSearchBar.d.ts +0 -0
- /package/build/components/{JSONViewer → modules/JSONViewWindow}/components/JSONSearchBar/index.d.ts +0 -0
- /package/build/components/{JSONViewer → modules/JSONViewWindow}/components/JSONSearchHighlighters/HighlightMatchingKey.d.ts +0 -0
- /package/build/components/{JSONViewer → modules/JSONViewWindow}/components/JSONSearchHighlighters/HighlightMatchingValue.d.ts +0 -0
- /package/build/components/{JSONViewer → modules/JSONViewWindow}/components/JSONSearchHighlighters/index.d.ts +0 -0
- /package/build/components/{JSONViewer → modules/JSONViewWindow}/components/JSONSearchHighlighters/type.d.ts +0 -0
- /package/build/components/{JSONViewer → modules/JSONViewWindow}/components/JSONSearchHighlighters/util.d.ts +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { WindowFooterActionsProps } from './type';
|
|
3
|
+
declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<WindowFooterActionsProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { WindowProviderProps } from './type';
|
|
3
|
+
export declare function WindowProvider({ children, isOpen, onClose, defaultSize: defaultSizeProp, minSize: minSizeProp, maxSize: maxSizeProp, defaultPosition, containerRef, isMaximized: isMaximizedProp, }: WindowProviderProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare const windowClassNamePrefix: "os-shared-Window";
|
|
2
|
+
export declare const windowClassNames: {
|
|
3
|
+
/** Outermost Dialog node (drag, portal, stacking). */
|
|
4
|
+
readonly dialog: "os-shared-Window-dialog";
|
|
5
|
+
/** MUI paper = the visual card. Also used as the drag-guard selector. */
|
|
6
|
+
readonly paper: "os-shared-Window-paper";
|
|
7
|
+
/** re-resizable wrapper. */
|
|
8
|
+
readonly resizable: "os-shared-Window-resizable";
|
|
9
|
+
/** Inner `WindowContent` box. */
|
|
10
|
+
readonly content: "os-shared-Window-content";
|
|
11
|
+
/** WindowFooter bar. */
|
|
12
|
+
readonly footer: "os-shared-Window-footer";
|
|
13
|
+
};
|
|
14
|
+
/** Default dialog width (px) when the caller provides none. */
|
|
15
|
+
export declare const windowDefaultWidth: 555;
|
|
16
|
+
/** Default dialog height (px) when the caller provides none. */
|
|
17
|
+
export declare const windowDefaultHeight: 545;
|
|
18
|
+
/** Default dialog min-width (px) when the caller provides no `minSize`. */
|
|
19
|
+
export declare const windowDefaultMinWidth: 372;
|
|
20
|
+
/** Default dialog min-height (px) when the caller provides no `minSize.height`. */
|
|
21
|
+
export declare const windowDefaultMinHeight: 345;
|
|
22
|
+
/** Drag-handle id shared by the dialog and title bars (`Draggable handle` + `aria-labelledby`). */
|
|
23
|
+
export declare const windowDragHandleId: "draggable-dialog-title";
|
|
24
|
+
/**
|
|
25
|
+
* Drag-handle class shared by the dialog's chrome bars (`Draggable handle`).
|
|
26
|
+
* Applied to `WindowToolbar` and `WindowServices` so both drag the window.
|
|
27
|
+
* The dialog matches `#windowDragHandleId, .windowDragHandleClass` — the id
|
|
28
|
+
* stays for `aria-labelledby` and backwards compatibility.
|
|
29
|
+
*/
|
|
30
|
+
export declare const windowDragHandleClass: "os-shared-Window-dragHandle";
|
|
31
|
+
/** Default window motion duration in seconds. Owned by `Window`; shell/pane animations fall back to it. */
|
|
32
|
+
export declare const WINDOW_ANIMATION_DURATION = 0.5;
|
|
33
|
+
/** Default window paper elevation; override via `Window` / `WindowShell` `sx`. */
|
|
34
|
+
export declare const WINDOW_DIALOG_BOX_SHADOW: "0px 0px 20px 0px rgba(0, 0, 0, 0.15)";
|
|
35
|
+
/**
|
|
36
|
+
* Shared chrome background for `WindowToolbar`, `WindowServices`, and `WindowFooter`.
|
|
37
|
+
* Single source of truth so the title bar always matches the services bar.
|
|
38
|
+
*/
|
|
39
|
+
export declare const WINDOW_BACKGROUND_COLOR: "rgba(249, 249, 249, 0.8)";
|
|
40
|
+
/** Backdrop blur paired with `WINDOW_BACKGROUND_COLOR`. */
|
|
41
|
+
export declare const WINDOW_BACKDROP_FILTER: "blur(12px)";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { WindowContextValue } from './type';
|
|
3
|
+
/**
|
|
4
|
+
* Single unified window context. `WindowProvider` is the only provider;
|
|
5
|
+
* everything (lifecycle, geometry, maximized state, sidebar/panel, infra)
|
|
6
|
+
* is read from here via `useWindow()` / `useContext(WindowContext)`.
|
|
7
|
+
*/
|
|
8
|
+
export declare const WindowContext: import("react").Context<WindowContextValue>;
|
|
9
|
+
/** Reads the single unified window context. Must be used under `<Window>`. */
|
|
10
|
+
export declare function useWindow(): WindowContextValue;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default } from './Window';
|
|
2
|
+
export { default as WindowContent } from './WindowContent';
|
|
3
|
+
export { default as WindowFooter } from './WindowFooter';
|
|
4
|
+
export { default as WindowFooterActions } from './WindowFooterActions';
|
|
5
|
+
export { WindowProvider } from './WindowProvider';
|
|
6
|
+
export { WindowContext, useWindow } from './context';
|
|
7
|
+
export { windowClassNames, windowDragHandleClass, windowDragHandleId } from './constants';
|
|
8
|
+
export type { WindowContentProps, WindowFooterActionsProps, WindowFooterProps, WindowClassNames, WindowContextValue, WindowPosition, WindowDimensions, WindowDimensionScope, WindowDimensionValue, WindowSectionState, WindowProviderProps, WindowProps, WindowResizeHandler, WindowSize, WindowSizeInput, } from './type';
|
|
9
|
+
export { resolveWindowBounds, resolveWindowDimension } from './utils';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{g as WindowContent,a as WindowContext,h as WindowFooter,i as WindowFooterActions,e as WindowProvider,f as default,d as resolveWindowBounds,c as resolveWindowDimension,b as useWindow}from'../../_chunks/chunk-37SWWF3G.js';export{a as windowClassNames,g as windowDragHandleClass,f as windowDragHandleId}from'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-HZCNE5Q2.js';import'../../_chunks/chunk-Z2DUFVI5.js';import'../../_chunks/chunk-3M2GZVQW.js';import'../../_chunks/chunk-LS57WE6K.js';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
export declare const WindowDialogStyled: import("@emotion/styled").StyledComponent<import("@mui/material").DialogProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
3
|
+
$zIndex: number;
|
|
4
|
+
$isMinimized?: boolean | undefined;
|
|
5
|
+
$isBodyContainer?: boolean | undefined;
|
|
6
|
+
$isMaximized?: boolean | undefined;
|
|
7
|
+
$isSafari?: boolean | undefined;
|
|
8
|
+
$windowWidth: number | string;
|
|
9
|
+
$defaultHeight: number;
|
|
10
|
+
}, {}, {}>;
|
|
11
|
+
export declare function getWindowPaperStyle({ isMaximized, isResized, currentWindowWidth, maxWidth, maxHeight, minWidth, minHeight, }: {
|
|
12
|
+
isMaximized: boolean;
|
|
13
|
+
isResized: boolean;
|
|
14
|
+
currentWindowWidth: number | string;
|
|
15
|
+
maxWidth?: number | string;
|
|
16
|
+
maxHeight?: number | string;
|
|
17
|
+
minWidth?: number | string;
|
|
18
|
+
minHeight?: number | string;
|
|
19
|
+
}): CSSProperties;
|
|
20
|
+
export declare function getWindowResizableStyle({ sizeHeight, isMaximized }: {
|
|
21
|
+
sizeHeight: number | string;
|
|
22
|
+
isMaximized: boolean;
|
|
23
|
+
}): CSSProperties;
|
|
24
|
+
export declare const WindowDialogContentStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
25
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
26
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
27
|
+
export declare const WindowContentStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
28
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
29
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
30
|
+
export declare const WindowFooterStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
31
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
32
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
33
|
+
/** Action cluster hung off the top edge of `WindowFooter`. Compose it inside the footer when there are actions. */
|
|
34
|
+
export declare const WindowFooterActionsStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
35
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
36
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import type { Dispatch, MutableRefObject, ReactNode, RefObject, SetStateAction } from 'react';
|
|
2
|
+
import type { BoxProps } from '@mui/material/Box';
|
|
3
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
4
|
+
import type { Resizable } from 're-resizable';
|
|
5
|
+
import type { windowClassNames } from './constants';
|
|
6
|
+
export type WindowClassNames = (typeof windowClassNames)[keyof typeof windowClassNames];
|
|
7
|
+
export interface WindowSize {
|
|
8
|
+
/** Width in px (resolved). */
|
|
9
|
+
width: number;
|
|
10
|
+
/** Height in px (resolved). */
|
|
11
|
+
height: number;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Flexible dimension input accepted by `defaultSize`/`minSize`/`maxSize`.
|
|
15
|
+
* `number` (and unitless numeric strings) are px for backwards compatibility.
|
|
16
|
+
* Strings may be `px`, `%` (of the positioning container), `vw`/`vh`
|
|
17
|
+
* (of the viewport), or a `calc(...)` expression combining them
|
|
18
|
+
* (e.g. `"calc(100% - 40px)"`, `"80%"`, `"80vw"`).
|
|
19
|
+
*/
|
|
20
|
+
export type WindowDimensionValue = number | string;
|
|
21
|
+
/** Size input accepting flexible dimension values. Resolved to px (`WindowSize`) internally. */
|
|
22
|
+
export type WindowSizeInput = Partial<Record<keyof WindowSize, WindowDimensionValue>>;
|
|
23
|
+
/** Pixel basis used to resolve `%` / `vw` / `vh` / `calc(...)` dimension values. */
|
|
24
|
+
export interface WindowDimensionScope {
|
|
25
|
+
/** Positioning-container width (`%` basis for width). Falls back to viewport width. */
|
|
26
|
+
containerWidth: number;
|
|
27
|
+
/** Positioning-container height (`%` basis for height). Falls back to viewport height. */
|
|
28
|
+
containerHeight: number;
|
|
29
|
+
/** Browser viewport width (`vw` basis). */
|
|
30
|
+
viewportWidth: number;
|
|
31
|
+
/** Browser viewport height (`vh` basis). */
|
|
32
|
+
viewportHeight: number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @internal — dialog internals. Do not import from barrels. Use `WindowProps` instead.
|
|
36
|
+
* Rendered by `Window` only; kept in this file so `WindowDialog` can share the shape
|
|
37
|
+
* without exposing a second public props type.
|
|
38
|
+
*/
|
|
39
|
+
export interface WindowDialogProps {
|
|
40
|
+
/** Window content, composed as `<WindowToolbar />` + `<WindowContent />`. */
|
|
41
|
+
children: ReactNode;
|
|
42
|
+
/** Stacking order among sibling windows. Dialog z-index is `order + WINDOW_Z_INDEX_BASE` (+1 when maximized). */
|
|
43
|
+
order?: number;
|
|
44
|
+
/** Hides the dialog (keeps it mounted). */
|
|
45
|
+
isMinimized?: boolean;
|
|
46
|
+
/** Caller-supplied id — no auto-generated id inside the component. */
|
|
47
|
+
id?: string;
|
|
48
|
+
/** Extra class name merged onto the dialog paper. */
|
|
49
|
+
className?: string;
|
|
50
|
+
/** MUI sx style overrides for the dialog paper. Style content via `WindowContent`. */
|
|
51
|
+
sx?: SxProps<Theme>;
|
|
52
|
+
/** Fired on manual resize only (not panel/sidebar animator or maximize). Raw calls — debounce at the call site. */
|
|
53
|
+
onResize?: WindowResizeHandler;
|
|
54
|
+
/**
|
|
55
|
+
* Render the dialog inline instead of portaling it into the scoped portal
|
|
56
|
+
* container. Defaults to false (portaled).
|
|
57
|
+
*/
|
|
58
|
+
disablePortal?: boolean;
|
|
59
|
+
/** Overrides `data-testid` (defaults to `id ?? 'Window'`). */
|
|
60
|
+
'data-testid'?: string;
|
|
61
|
+
/** Overrides `data-id` (defaults to `id`). Set on the paper and the inner content node. */
|
|
62
|
+
'data-id'?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Fired when a drag gesture starts on the window chrome (toolbar / services
|
|
65
|
+
* bar). Use it to focus the window (e.g. raise `order` / z-index) *before*
|
|
66
|
+
* the window moves, so the dragged window paints on top throughout the drag.
|
|
67
|
+
* Notification only — it never cancels the drag and never touches position.
|
|
68
|
+
*/
|
|
69
|
+
onDragStart?: () => void;
|
|
70
|
+
/** Fired on `mousedown` on the dialog paper (e.g. focus before drag). */
|
|
71
|
+
onMouseDown?: () => void;
|
|
72
|
+
/** Fired on `click` on the dialog paper (e.g. raise stacking order). */
|
|
73
|
+
onClick?: () => void;
|
|
74
|
+
}
|
|
75
|
+
export interface WindowContentProps {
|
|
76
|
+
/** Window content. */
|
|
77
|
+
children: ReactNode;
|
|
78
|
+
/** Caller-supplied id — no auto-generated id inside the component. */
|
|
79
|
+
id?: string;
|
|
80
|
+
/** Extra class name merged onto the content root. */
|
|
81
|
+
className?: string;
|
|
82
|
+
/** MUI sx style overrides */
|
|
83
|
+
sx?: SxProps<Theme>;
|
|
84
|
+
/** Overrides `data-testid` (defaults to `id ?? 'WindowContent'`). */
|
|
85
|
+
'data-testid'?: string;
|
|
86
|
+
/** Sets `data-id` (defaults to `id`). */
|
|
87
|
+
'data-id'?: string;
|
|
88
|
+
}
|
|
89
|
+
export interface WindowFooterProps {
|
|
90
|
+
/** Optional footer content. Action buttons belong in `WindowFooterActions`, not directly on the bar. */
|
|
91
|
+
children?: ReactNode;
|
|
92
|
+
/** Caller-supplied id — no auto-generated id inside the component. */
|
|
93
|
+
id?: string;
|
|
94
|
+
/** Extra class name merged onto the footer. */
|
|
95
|
+
className?: string;
|
|
96
|
+
/** MUI sx style overrides */
|
|
97
|
+
sx?: SxProps<Theme>;
|
|
98
|
+
/** Overrides `data-testid` (defaults to `id ?? 'WindowFooter'`). */
|
|
99
|
+
'data-testid'?: string;
|
|
100
|
+
/** Sets `data-id` (defaults to `id`). */
|
|
101
|
+
'data-id'?: string;
|
|
102
|
+
}
|
|
103
|
+
/** Props for the footer action cluster. Renders nothing when there is no content. */
|
|
104
|
+
export interface WindowFooterActionsProps extends Omit<BoxProps, 'children'> {
|
|
105
|
+
/** Action cluster content (buttons, alerts). Empty content renders nothing. */
|
|
106
|
+
children?: ReactNode;
|
|
107
|
+
}
|
|
108
|
+
export interface WindowProviderProps {
|
|
109
|
+
/** Window content. */
|
|
110
|
+
children: ReactNode;
|
|
111
|
+
/** Whether the window is open. */
|
|
112
|
+
isOpen: boolean;
|
|
113
|
+
/** Fired when the window requests close. */
|
|
114
|
+
onClose: () => void;
|
|
115
|
+
/** Default dialog size. Numbers are px; strings accept `px`, `%`, `vw`/`vh`, or `calc(...)`. Falls back to the viewer default. */
|
|
116
|
+
defaultSize?: WindowSizeInput;
|
|
117
|
+
/** Minimum size bounds. Same value format as `defaultSize`. */
|
|
118
|
+
minSize?: WindowSizeInput;
|
|
119
|
+
/** Maximum size bounds. Same value format as `defaultSize`. */
|
|
120
|
+
maxSize?: WindowSizeInput;
|
|
121
|
+
/** Initial position relative to the positioning container, in px. */
|
|
122
|
+
defaultPosition?: Partial<WindowPosition>;
|
|
123
|
+
/** Parent the window positions against. Defaults to viewport positioning. */
|
|
124
|
+
containerRef?: RefObject<HTMLElement | null>;
|
|
125
|
+
/** Controlled maximized flag. When provided, syncs into internal maximized state. Omitted keeps uncontrolled internal state. Note: normal, minimized, and maximized are three distinct states — this flag cannot be derived from `isMinimized` nor vice versa. */
|
|
126
|
+
isMaximized?: boolean;
|
|
127
|
+
/** Fired on manual dialog resize with the resolved px size and the live element. Raw calls — debounce at the call site. */
|
|
128
|
+
onResize?: WindowResizeHandler;
|
|
129
|
+
}
|
|
130
|
+
export interface WindowPosition {
|
|
131
|
+
x: number;
|
|
132
|
+
y: number;
|
|
133
|
+
}
|
|
134
|
+
export interface WindowDimensions {
|
|
135
|
+
width: number;
|
|
136
|
+
height: number;
|
|
137
|
+
}
|
|
138
|
+
/** Fired on manual dialog resize with the resolved px size and the live element. Raw calls — debounce at the call site. */
|
|
139
|
+
export type WindowResizeHandler = (size: WindowSize, element: HTMLElement) => void;
|
|
140
|
+
export interface WindowSectionState {
|
|
141
|
+
/** Whether the section is expanded. */
|
|
142
|
+
isExpanded: boolean;
|
|
143
|
+
/** Sets whether the section is expanded. */
|
|
144
|
+
setExpanded: (expanded: boolean) => void;
|
|
145
|
+
/** Toggles whether the section is expanded. */
|
|
146
|
+
toggle: () => void;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Single unified window context value: lifecycle + geometry + maximized state
|
|
150
|
+
* + layout sections + infrastructure. Provided by `WindowProvider`.
|
|
151
|
+
*/
|
|
152
|
+
export interface WindowContextValue {
|
|
153
|
+
/** Whether the window is open. */
|
|
154
|
+
isOpen: boolean;
|
|
155
|
+
/** Fired when the window requests close. */
|
|
156
|
+
onClose: () => void;
|
|
157
|
+
/** Offset of the window's top-left from the positioning parent's top-left, in px. */
|
|
158
|
+
position: WindowPosition;
|
|
159
|
+
/** Updates the draggable position. */
|
|
160
|
+
setPosition: Dispatch<SetStateAction<WindowPosition>>;
|
|
161
|
+
/** Current dialog size in px. Initialized from `size.default`, then synced on every resize. */
|
|
162
|
+
size: WindowSize;
|
|
163
|
+
/** Resizes the dialog through the Resizable instance and syncs `size`. */
|
|
164
|
+
setSize: Dispatch<SetStateAction<WindowSize>>;
|
|
165
|
+
/** Default dialog size in px, resolved from `size.default` (falls back to the viewer default). */
|
|
166
|
+
defaultSize: WindowSize;
|
|
167
|
+
/** Minimum size bounds, from `size.min`. */
|
|
168
|
+
minSize?: Partial<WindowSize>;
|
|
169
|
+
/** Maximum size bounds, from `size.max`. */
|
|
170
|
+
maxSize?: Partial<WindowSize>;
|
|
171
|
+
/** Full parent/viewport size used for positioning. */
|
|
172
|
+
container: WindowDimensions;
|
|
173
|
+
/** Browser viewport size from `window.innerWidth/innerHeight`, used for resize max bounds. */
|
|
174
|
+
viewport: WindowDimensions;
|
|
175
|
+
/** Whether the window is maximized. */
|
|
176
|
+
isMaximized: boolean;
|
|
177
|
+
/** Maximized state setter. */
|
|
178
|
+
setIsMaximized: Dispatch<SetStateAction<boolean>>;
|
|
179
|
+
/** Whether the window was resized. */
|
|
180
|
+
isResized: boolean;
|
|
181
|
+
/** Resized state setter. */
|
|
182
|
+
setIsResized: Dispatch<SetStateAction<boolean>>;
|
|
183
|
+
/** Whether a manual resize drag is currently in progress. */
|
|
184
|
+
isResizing: boolean;
|
|
185
|
+
/** Resizing state setter. */
|
|
186
|
+
setIsResizing: Dispatch<SetStateAction<boolean>>;
|
|
187
|
+
/** Sidebar section state. */
|
|
188
|
+
sidebar: WindowSectionState;
|
|
189
|
+
/** Details-panel section state. */
|
|
190
|
+
panel: WindowSectionState;
|
|
191
|
+
/** Parent the window positions against. */
|
|
192
|
+
containerRef: RefObject<HTMLElement | null>;
|
|
193
|
+
/** Resizable instance handle. */
|
|
194
|
+
resizableRef: MutableRefObject<Resizable | null | undefined>;
|
|
195
|
+
/** Resolved stacking base (`WINDOW_Z_INDEX_BASE`). The dialog z-index is `order + zIndex` (+1 when maximized). */
|
|
196
|
+
zIndex: number;
|
|
197
|
+
}
|
|
198
|
+
export type WindowProps = WindowProviderProps & {
|
|
199
|
+
/** Stacking order among sibling windows. Dialog z-index is `order + WINDOW_Z_INDEX_BASE` (+1 when maximized). */
|
|
200
|
+
order?: number;
|
|
201
|
+
/** Hides the dialog (keeps it mounted). */
|
|
202
|
+
isMinimized?: boolean;
|
|
203
|
+
/** Caller-supplied id, forwarded to the dialog paper. */
|
|
204
|
+
id?: string;
|
|
205
|
+
/** Extra class name merged onto the dialog paper. Style content via `WindowBody`. */
|
|
206
|
+
className?: string;
|
|
207
|
+
/**
|
|
208
|
+
* Render the dialog inline instead of portaling it into the scoped portal
|
|
209
|
+
* container. Defaults to false (portaled).
|
|
210
|
+
*/
|
|
211
|
+
disablePortal?: boolean;
|
|
212
|
+
/**
|
|
213
|
+
* MUI sx overrides for the dialog paper (elevation, overflow, etc.). Defaults
|
|
214
|
+
* include `overflow: 'hidden'` and `boxShadow: WINDOW_DIALOG_BOX_SHADOW`;
|
|
215
|
+
* caller `sx` wins on conflict. Style inner content via `WindowContent`.
|
|
216
|
+
*/
|
|
217
|
+
sx?: SxProps<Theme>;
|
|
218
|
+
/** Overrides dialog `data-testid` (defaults to `id ?? 'Window'`). */
|
|
219
|
+
'data-testid'?: string;
|
|
220
|
+
/** Overrides dialog `data-id` (defaults to `id`). Set on the paper and the inner content node. */
|
|
221
|
+
'data-id'?: string;
|
|
222
|
+
/**
|
|
223
|
+
* Fired when a drag gesture starts on the window chrome (toolbar / services
|
|
224
|
+
* bar). Use it to focus the window (e.g. raise `order` / z-index) *before*
|
|
225
|
+
* the window moves, so the dragged window paints on top throughout the drag.
|
|
226
|
+
* Notification only — it never cancels the drag and never touches position.
|
|
227
|
+
*/
|
|
228
|
+
onDragStart?: () => void;
|
|
229
|
+
/** @see WindowDialogProps.onMouseDown */
|
|
230
|
+
onMouseDown?: () => void;
|
|
231
|
+
/** @see WindowDialogProps.onClick */
|
|
232
|
+
onClick?: () => void;
|
|
233
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ResizeDirection } from 're-resizable';
|
|
2
|
+
import type { WindowDimensionScope, WindowDimensionValue, WindowProviderProps, WindowSize, WindowSizeInput } from './type';
|
|
3
|
+
/**
|
|
4
|
+
* Adjusts draggable position for top/left resizes.
|
|
5
|
+
* re-resizable changes size only; returns `null` when no position offset is needed.
|
|
6
|
+
*
|
|
7
|
+
* Growing the left or top edge moves that edge backward, so x and y decrease.
|
|
8
|
+
*/
|
|
9
|
+
export declare function getResizeAdjustedPosition(startPosition: {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
}, direction: ResizeDirection, delta: {
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
}): {
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
} | null;
|
|
19
|
+
/**
|
|
20
|
+
* Resolves a flexible dimension (`number` = px, `"500px"`, `"80%"`, `"80vw"`/`"80vh"`,
|
|
21
|
+
* `"calc(100% - 40px)"`) to px. `%` resolves against the positioning container
|
|
22
|
+
* for the given axis (width → containerWidth, height → containerHeight).
|
|
23
|
+
* Returns `undefined` when the value is absent or unresolvable so callers can fall back.
|
|
24
|
+
*/
|
|
25
|
+
export declare function resolveWindowDimension(value: WindowDimensionValue | undefined, axis: keyof WindowSize, scope: WindowDimensionScope): number | undefined;
|
|
26
|
+
/** Resolves a partial size input to px, dropping absent/unresolvable axes. */
|
|
27
|
+
export declare function resolveWindowBounds(input: WindowSizeInput | undefined, scope: WindowDimensionScope): Partial<WindowSize>;
|
|
28
|
+
type ComputeInitialPositionParams = {
|
|
29
|
+
viewportWidth: number;
|
|
30
|
+
viewportHeight: number;
|
|
31
|
+
defaultWidth: number;
|
|
32
|
+
defaultHeight: number;
|
|
33
|
+
isMaximized: boolean;
|
|
34
|
+
containerRef?: WindowProviderProps['containerRef'] | null;
|
|
35
|
+
defaultPosition: WindowProviderProps['defaultPosition'];
|
|
36
|
+
};
|
|
37
|
+
export declare function computeInitialPosition(params: ComputeInitialPositionParams): {
|
|
38
|
+
x: number;
|
|
39
|
+
y: number;
|
|
40
|
+
};
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { WindowServicesDropdownIconProps } from './type';
|
|
3
|
+
/**
|
|
4
|
+
* Dropdown chevron switching assets with the select open state.
|
|
5
|
+
* Flat nested file — no barrel, imported via `./DropdownIcon` from `WindowServices` only.
|
|
6
|
+
*/
|
|
7
|
+
declare function DropdownIcon({ className }: WindowServicesDropdownIconProps): import("react").JSX.Element;
|
|
8
|
+
declare const _default: import("react").MemoExoticComponent<typeof DropdownIcon>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { WindowServicesServiceItemProps } from './type';
|
|
3
|
+
/**
|
|
4
|
+
* Single service tab with a right-click context-menu action.
|
|
5
|
+
* Flat nested file — no barrel, imported via `./ServiceItem` from `WindowServices` only.
|
|
6
|
+
*/
|
|
7
|
+
declare function ServiceItem({ name, code, isActive, openInNewWindowLabel, onOpenService, onOpenServiceInNewWindow, className, }: WindowServicesServiceItemProps): import("react").JSX.Element;
|
|
8
|
+
declare const _default: import("react").MemoExoticComponent<typeof ServiceItem>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { WindowServicesProps } from './type';
|
|
3
|
+
declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<WindowServicesProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { WindowSkeletonProps } from './type';
|
|
3
|
+
declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<WindowSkeletonProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const windowServicesClassNamePrefix: "os-shared-WindowServices";
|
|
2
|
+
export declare const windowServicesClassNames: {
|
|
3
|
+
readonly root: "os-shared-WindowServices-root";
|
|
4
|
+
readonly bar: "os-shared-WindowServices-bar";
|
|
5
|
+
readonly tabsBar: "os-shared-WindowServices-tabsBar";
|
|
6
|
+
readonly tabs: "os-shared-WindowServices-tabs";
|
|
7
|
+
readonly tab: "os-shared-WindowServices-tab";
|
|
8
|
+
readonly trigger: "os-shared-WindowServices-trigger";
|
|
9
|
+
readonly triggerLabel: "os-shared-WindowServices-triggerLabel";
|
|
10
|
+
readonly triggerArrow: "os-shared-WindowServices-triggerArrow";
|
|
11
|
+
readonly menuItem: "os-shared-WindowServices-menuItem";
|
|
12
|
+
readonly contextMenu: "os-shared-WindowServices-contextMenu";
|
|
13
|
+
};
|
|
14
|
+
export declare const windowSkeletonClassNamePrefix: "os-shared-WindowSkeleton";
|
|
15
|
+
export declare const windowSkeletonClassNames: {
|
|
16
|
+
readonly root: "os-shared-WindowSkeleton-root";
|
|
17
|
+
readonly bar: "os-shared-WindowSkeleton-bar";
|
|
18
|
+
readonly body: "os-shared-WindowSkeleton-body";
|
|
19
|
+
readonly rows: "os-shared-WindowSkeleton-rows";
|
|
20
|
+
readonly row: "os-shared-WindowSkeleton-row";
|
|
21
|
+
};
|
|
22
|
+
/** Fallback label for the tab context-menu action. Callers pass the already-translated string via `openInNewWindowLabel`. */
|
|
23
|
+
export declare const windowServicesDefaultOpenInNewWindowLabel: "Open in a new window";
|
|
24
|
+
/** Fallback language used to resolve service names when `language` is omitted. */
|
|
25
|
+
export declare const windowServicesDefaultLanguage: "en";
|
|
26
|
+
/** Width (px) of one measured service tab used to decide tabs vs dropdown rendering. */
|
|
27
|
+
export declare const windowServicesTabIconSize: 51;
|
|
28
|
+
/** Gap (px) between measured service tabs. */
|
|
29
|
+
export declare const windowServicesTabIconGap: 8;
|
|
30
|
+
/** Margin (px) added to the measured tabs width. */
|
|
31
|
+
export declare const windowServicesTabIconMargin: 3;
|
|
32
|
+
/** Extra width (px) tolerated before collapsing tabs into the dropdown. */
|
|
33
|
+
export declare const windowServicesDropdownCollapseOffset: 10;
|
|
34
|
+
/** Total horizontal bar padding (px). Must match `BarStyled` paddingInline (32 x 2) — the collapse math compares the outer bar width against the inner tabs width. */
|
|
35
|
+
export declare const windowServicesBarInlinePadding: 64;
|
|
36
|
+
/** Skeleton rows rendered by the reports loader variant. */
|
|
37
|
+
export declare const windowServicesReportsLoaderRowsCount: 4;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default } from './WindowServices';
|
|
2
|
+
export { default as WindowSkeleton } from './WindowSkeleton';
|
|
3
|
+
export { windowServicesClassNames, windowSkeletonClassNames } from './constants';
|
|
4
|
+
export type { WindowServicesClassNames, WindowSkeletonClassNames, WindowServicesProps, WindowSkeletonProps } from './type';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{d as WindowSkeleton,c as default,a as windowServicesClassNames,b as windowSkeletonClassNames}from'../../_chunks/chunk-RXDZGI4N.js';import'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-CAVYK7HF.js';import'../../_chunks/chunk-HZCNE5Q2.js';import'../../_chunks/chunk-Z2DUFVI5.js';import'../../_chunks/chunk-3M2GZVQW.js';import'../../_chunks/chunk-LS57WE6K.js';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const WindowServicesStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
5
|
+
$isDragging?: boolean | undefined;
|
|
6
|
+
}, {}, {}>;
|
|
7
|
+
export declare const BarStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
8
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
9
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
10
|
+
export declare const TabsRowStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
11
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
12
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
13
|
+
export declare const ServiceTabStyled: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").TypographyProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
|
|
14
|
+
ref?: import("react").RefObject<HTMLElement> | ((instance: HTMLElement | null) => void) | null | undefined;
|
|
15
|
+
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
16
|
+
$title?: string | undefined;
|
|
17
|
+
}, {}, {}>;
|
|
18
|
+
export declare const SelectStyled: import("@emotion/styled").StyledComponent<import("@mui/material/Select").SelectProps<unknown> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
19
|
+
export declare const SelectValueStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
|
|
20
|
+
export declare const SelectOptionStyled: import("@emotion/styled").StyledComponent<import("@mui/material/MenuItem").MenuItemOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
21
|
+
ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
|
|
22
|
+
}, "disabled" | "classes" | "autoFocus" | "className" | "style" | "tabIndex" | "children" | "selected" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "dense" | "disableGutters" | "divider"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
23
|
+
export declare const SelectOptionTitleStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
|
|
24
|
+
export declare const SelectIconStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
25
|
+
export declare const LoaderStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
26
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
27
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
28
|
+
export declare const LoaderBarStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
29
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
30
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
31
|
+
export declare const LoaderBodyStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
32
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
33
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
34
|
+
export declare const LoaderRowsStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
35
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
36
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
37
|
+
export declare const LoaderRowStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
38
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
39
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
40
|
+
export declare const LoaderRowColumnStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
41
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
42
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
43
|
+
export declare const LoaderRowLineStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
44
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
45
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
import type { AppService } from '../../types/index.js';
|
|
3
|
+
import type { windowServicesClassNames, windowSkeletonClassNames } from './constants';
|
|
4
|
+
export type WindowServicesClassNames = (typeof windowServicesClassNames)[keyof typeof windowServicesClassNames];
|
|
5
|
+
export type WindowSkeletonClassNames = (typeof windowSkeletonClassNames)[keyof typeof windowSkeletonClassNames];
|
|
6
|
+
export interface WindowServicesProps {
|
|
7
|
+
/** Active service code (matched case-insensitively). */
|
|
8
|
+
serviceCode?: string;
|
|
9
|
+
/** Services rendered as tabs (wide) or a dropdown (narrow). Renders nothing when empty. */
|
|
10
|
+
services: AppService[];
|
|
11
|
+
/** Fired with the newly selected service code. */
|
|
12
|
+
onOpenService?: (serviceCode: string) => void;
|
|
13
|
+
/** Fired from the tab context-menu "open in new window" action. */
|
|
14
|
+
onOpenServiceInNewWindow?: (serviceCode: string) => void;
|
|
15
|
+
/** Language used to resolve service names. Falls back to `en`. */
|
|
16
|
+
language?: string;
|
|
17
|
+
/** Already-translated label for the tab context-menu action. Falls back to English. */
|
|
18
|
+
openInNewWindowLabel?: string;
|
|
19
|
+
/** Caller-supplied id — no auto-generated id inside the component. */
|
|
20
|
+
id?: string;
|
|
21
|
+
/** Extra class name merged onto the root. */
|
|
22
|
+
className?: string;
|
|
23
|
+
/** MUI sx style overrides */
|
|
24
|
+
sx?: SxProps<Theme>;
|
|
25
|
+
/** Overrides `data-testid` (defaults to `id ?? 'WindowServices'`). */
|
|
26
|
+
'data-testid'?: string;
|
|
27
|
+
/** Sets `data-id` (defaults to `id`). */
|
|
28
|
+
'data-id'?: string;
|
|
29
|
+
}
|
|
30
|
+
/** Props for the nested service tab (flat file, no barrel — imported via `./ServiceItem` only). */
|
|
31
|
+
export interface WindowServicesServiceItemProps {
|
|
32
|
+
/** Already-translated service name. */
|
|
33
|
+
name: string;
|
|
34
|
+
/** Service code matched case-insensitively against the active code. */
|
|
35
|
+
code: string;
|
|
36
|
+
/** Highlights the tab with the active treatment. */
|
|
37
|
+
isActive: boolean;
|
|
38
|
+
/** Already-translated context-menu label. */
|
|
39
|
+
openInNewWindowLabel: string;
|
|
40
|
+
/** Fired with the service code on tab click. */
|
|
41
|
+
onOpenService: (serviceCode: string) => void;
|
|
42
|
+
/** Fired with the service code from the context-menu action. */
|
|
43
|
+
onOpenServiceInNewWindow?: (serviceCode: string) => void;
|
|
44
|
+
/** Extra class name merged onto the tab. */
|
|
45
|
+
className?: string;
|
|
46
|
+
}
|
|
47
|
+
/** Props for the nested dropdown chevron icon (flat file, no barrel — imported via `./DropdownIcon` only). */
|
|
48
|
+
export interface WindowServicesDropdownIconProps {
|
|
49
|
+
/** Class names injected by the select, including the open-state class. */
|
|
50
|
+
className?: string;
|
|
51
|
+
}
|
|
52
|
+
/** Props for the window loading skeleton: `appCode` selects the variant, the rest target the root. */
|
|
53
|
+
export interface WindowSkeletonProps {
|
|
54
|
+
/** App code — reports/upload codes render the rows variant, anything else the default tab-bar variant. */
|
|
55
|
+
appCode?: string;
|
|
56
|
+
/** Caller-supplied id — no auto-generated id inside the component. */
|
|
57
|
+
id?: string;
|
|
58
|
+
/** Extra class name merged onto the root. */
|
|
59
|
+
className?: string;
|
|
60
|
+
/** MUI sx style overrides */
|
|
61
|
+
sx?: SxProps<Theme>;
|
|
62
|
+
/** Overrides `data-testid` (defaults to `id ?? 'WindowSkeleton'`). */
|
|
63
|
+
'data-testid'?: string;
|
|
64
|
+
/** Sets `data-id` (defaults to `id`). */
|
|
65
|
+
'data-id'?: string;
|
|
66
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AppService } from '../../types/index.js';
|
|
2
|
+
/** Loading-skeleton switch: reports/upload app codes render the rows skeleton, anything else the default tab-bar one. */
|
|
3
|
+
export declare function isReportsSkeleton(appCode?: string): boolean;
|
|
4
|
+
/** Resolves the active service display name for a service code (case-insensitive, URI-decoded). */
|
|
5
|
+
export declare function getActiveServiceTitle(services: AppService[] | undefined, serviceCode: string | undefined, language?: string): string;
|
|
6
|
+
/** Resolves one service display name in the given language. */
|
|
7
|
+
export declare function getWindowServiceName(service: AppService, language?: string): string;
|
|
8
|
+
/** Case-insensitive service-code equality used for the active tab. */
|
|
9
|
+
export declare function isActiveServiceCode(serviceCode: string | undefined, code: string): boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { WindowToolbarIconProps } from './type';
|
|
3
|
+
/**
|
|
4
|
+
* Window close affordance.
|
|
5
|
+
* Flat nested file — no barrel, imported via `./CloseIcon` from `WindowToolbar` only.
|
|
6
|
+
*/
|
|
7
|
+
declare function CloseIcon({ className, id, ...props }: WindowToolbarIconProps): import("react").JSX.Element;
|
|
8
|
+
declare const _default: import("react").MemoExoticComponent<typeof CloseIcon>;
|
|
9
|
+
export default _default;
|