optikos 0.0.0-stage → 0.1.0
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 +28 -0
- package/LICENSE +21 -0
- package/README.md +211 -2
- package/THIRD_PARTY_NOTICES.md +83 -0
- package/dist/bind.js +2 -0
- package/dist/bind.js.map +7 -0
- package/dist/chunk-2UPUC4RK.js +2 -0
- package/dist/chunk-2UPUC4RK.js.map +7 -0
- package/dist/chunk-4AA4FQEM.js +2 -0
- package/dist/chunk-4AA4FQEM.js.map +7 -0
- package/dist/chunk-4C666HHU.js +2 -0
- package/dist/chunk-4C666HHU.js.map +7 -0
- package/dist/chunk-4COBH4QJ.js +2 -0
- package/dist/chunk-4COBH4QJ.js.map +7 -0
- package/dist/chunk-4DHQKECB.js +2 -0
- package/dist/chunk-4DHQKECB.js.map +7 -0
- package/dist/chunk-4Q67QI7J.js +2 -0
- package/dist/chunk-4Q67QI7J.js.map +7 -0
- package/dist/chunk-4SUKNSCY.js +2 -0
- package/dist/chunk-4SUKNSCY.js.map +7 -0
- package/dist/chunk-5AXLYDKU.js +2 -0
- package/dist/chunk-5AXLYDKU.js.map +7 -0
- package/dist/chunk-5GNEFX6F.js +2 -0
- package/dist/chunk-5GNEFX6F.js.map +7 -0
- package/dist/chunk-5Q6Y6CM4.js +2 -0
- package/dist/chunk-5Q6Y6CM4.js.map +7 -0
- package/dist/chunk-666O2GKD.js +2 -0
- package/dist/chunk-666O2GKD.js.map +7 -0
- package/dist/chunk-676AKAGF.js +2 -0
- package/dist/chunk-676AKAGF.js.map +7 -0
- package/dist/chunk-6NCXO5ZP.js +2 -0
- package/dist/chunk-6NCXO5ZP.js.map +7 -0
- package/dist/chunk-6NJW7QFD.js +2 -0
- package/dist/chunk-6NJW7QFD.js.map +7 -0
- package/dist/chunk-6O2BXCRN.js +2 -0
- package/dist/chunk-6O2BXCRN.js.map +7 -0
- package/dist/chunk-A66MDXHL.js +2 -0
- package/dist/chunk-A66MDXHL.js.map +7 -0
- package/dist/chunk-ARCW54L2.js +2 -0
- package/dist/chunk-ARCW54L2.js.map +7 -0
- package/dist/chunk-BIYNHKSA.js +2 -0
- package/dist/chunk-BIYNHKSA.js.map +7 -0
- package/dist/chunk-BNPVRIFT.js +2 -0
- package/dist/chunk-BNPVRIFT.js.map +7 -0
- package/dist/chunk-C3N7QTQB.js +2 -0
- package/dist/chunk-C3N7QTQB.js.map +7 -0
- package/dist/chunk-CEXY5A4T.js +2 -0
- package/dist/chunk-CEXY5A4T.js.map +7 -0
- package/dist/chunk-CN7USUJR.js +2 -0
- package/dist/chunk-CN7USUJR.js.map +7 -0
- package/dist/chunk-CQRHNTEX.js +2 -0
- package/dist/chunk-CQRHNTEX.js.map +7 -0
- package/dist/chunk-CUPAPOKC.js +2 -0
- package/dist/chunk-CUPAPOKC.js.map +7 -0
- package/dist/chunk-DXO3UJKL.js +2 -0
- package/dist/chunk-DXO3UJKL.js.map +7 -0
- package/dist/chunk-GZNQPENR.js +2 -0
- package/dist/chunk-GZNQPENR.js.map +7 -0
- package/dist/chunk-HFFK6K4K.js +2 -0
- package/dist/chunk-HFFK6K4K.js.map +7 -0
- package/dist/chunk-IHAYOSBR.js +2 -0
- package/dist/chunk-IHAYOSBR.js.map +7 -0
- package/dist/chunk-IO66A6G5.js +2 -0
- package/dist/chunk-IO66A6G5.js.map +7 -0
- package/dist/chunk-IW7PK4VS.js +2 -0
- package/dist/chunk-IW7PK4VS.js.map +7 -0
- package/dist/chunk-IYPKPLCU.js +2 -0
- package/dist/chunk-IYPKPLCU.js.map +7 -0
- package/dist/chunk-JTYWZMSZ.js +2 -0
- package/dist/chunk-JTYWZMSZ.js.map +7 -0
- package/dist/chunk-JVEPKW5X.js +2 -0
- package/dist/chunk-JVEPKW5X.js.map +7 -0
- package/dist/chunk-JZNEB7A7.js +2 -0
- package/dist/chunk-JZNEB7A7.js.map +7 -0
- package/dist/chunk-K2DGY6MP.js +2 -0
- package/dist/chunk-K2DGY6MP.js.map +7 -0
- package/dist/chunk-LBCWEWPN.js +2 -0
- package/dist/chunk-LBCWEWPN.js.map +7 -0
- package/dist/chunk-LEE2FEEL.js +2 -0
- package/dist/chunk-LEE2FEEL.js.map +7 -0
- package/dist/chunk-LMGCV35W.js +2 -0
- package/dist/chunk-LMGCV35W.js.map +7 -0
- package/dist/chunk-LV6HXFHU.js +3 -0
- package/dist/chunk-LV6HXFHU.js.map +7 -0
- package/dist/chunk-MA5BJL3S.js +2 -0
- package/dist/chunk-MA5BJL3S.js.map +7 -0
- package/dist/chunk-NDBFYIL6.js +2 -0
- package/dist/chunk-NDBFYIL6.js.map +7 -0
- package/dist/chunk-NHVEP72K.js +2 -0
- package/dist/chunk-NHVEP72K.js.map +7 -0
- package/dist/chunk-NV5AIBQP.js +2 -0
- package/dist/chunk-NV5AIBQP.js.map +7 -0
- package/dist/chunk-NWTTHDIM.js +2 -0
- package/dist/chunk-NWTTHDIM.js.map +7 -0
- package/dist/chunk-O4DCHALR.js +2 -0
- package/dist/chunk-O4DCHALR.js.map +7 -0
- package/dist/chunk-ODWPBBVL.js +2 -0
- package/dist/chunk-ODWPBBVL.js.map +7 -0
- package/dist/chunk-OW2ZSMGS.js +2 -0
- package/dist/chunk-OW2ZSMGS.js.map +7 -0
- package/dist/chunk-OWEQT2HN.js +2 -0
- package/dist/chunk-OWEQT2HN.js.map +7 -0
- package/dist/chunk-PSPQH35P.js +2 -0
- package/dist/chunk-PSPQH35P.js.map +7 -0
- package/dist/chunk-PZSHOSOS.js +2 -0
- package/dist/chunk-PZSHOSOS.js.map +7 -0
- package/dist/chunk-QEQIJAAB.js +2 -0
- package/dist/chunk-QEQIJAAB.js.map +7 -0
- package/dist/chunk-SNTHW4K2.js +2 -0
- package/dist/chunk-SNTHW4K2.js.map +7 -0
- package/dist/chunk-T4OYVG2X.js +2 -0
- package/dist/chunk-T4OYVG2X.js.map +7 -0
- package/dist/chunk-TBLICXWW.js +2 -0
- package/dist/chunk-TBLICXWW.js.map +7 -0
- package/dist/chunk-TK2RC3T5.js +2 -0
- package/dist/chunk-TK2RC3T5.js.map +7 -0
- package/dist/chunk-U3X2FW6U.js +2 -0
- package/dist/chunk-U3X2FW6U.js.map +7 -0
- package/dist/chunk-UPOBGNJ5.js +2 -0
- package/dist/chunk-UPOBGNJ5.js.map +7 -0
- package/dist/chunk-VV7CFMPZ.js +2 -0
- package/dist/chunk-VV7CFMPZ.js.map +7 -0
- package/dist/chunk-X2ASKUFD.js +2 -0
- package/dist/chunk-X2ASKUFD.js.map +7 -0
- package/dist/chunk-X6AULZI4.js +1 -0
- package/dist/chunk-X6AULZI4.js.map +7 -0
- package/dist/chunk-XVIC24AW.js +2 -0
- package/dist/chunk-XVIC24AW.js.map +7 -0
- package/dist/chunk-XZ5CUZZP.js +2 -0
- package/dist/chunk-XZ5CUZZP.js.map +7 -0
- package/dist/chunk-XZEOSW3Q.js +2 -0
- package/dist/chunk-XZEOSW3Q.js.map +7 -0
- package/dist/chunk-YET5PM6F.js +2 -0
- package/dist/chunk-YET5PM6F.js.map +7 -0
- package/dist/chunk-Z25NC4CS.js +2 -0
- package/dist/chunk-Z25NC4CS.js.map +7 -0
- package/dist/chunk-ZCAAM4NH.js +2 -0
- package/dist/chunk-ZCAAM4NH.js.map +7 -0
- package/dist/chunk-ZHVSHDLH.js +2 -0
- package/dist/chunk-ZHVSHDLH.js.map +7 -0
- package/dist/chunk-ZYUXCZX7.js +2 -0
- package/dist/chunk-ZYUXCZX7.js.map +7 -0
- package/dist/components/breadcrumb.js +2 -0
- package/dist/components/breadcrumb.js.map +7 -0
- package/dist/components/button.js +2 -0
- package/dist/components/button.js.map +7 -0
- package/dist/components/calendar.js +2 -0
- package/dist/components/calendar.js.map +7 -0
- package/dist/components/chat.js +2 -0
- package/dist/components/chat.js.map +7 -0
- package/dist/components/checkbox.js +2 -0
- package/dist/components/checkbox.js.map +7 -0
- package/dist/components/combobox.js +2 -0
- package/dist/components/combobox.js.map +7 -0
- package/dist/components/commandpalette.js +2 -0
- package/dist/components/commandpalette.js.map +7 -0
- package/dist/components/container.js +2 -0
- package/dist/components/container.js.map +7 -0
- package/dist/components/dataview.js +2 -0
- package/dist/components/dataview.js.map +7 -0
- package/dist/components/datefield.js +2 -0
- package/dist/components/datefield.js.map +7 -0
- package/dist/components/daterangefield.js +2 -0
- package/dist/components/daterangefield.js.map +7 -0
- package/dist/components/dropdown.js +2 -0
- package/dist/components/dropdown.js.map +7 -0
- package/dist/components/fieldset.js +2 -0
- package/dist/components/fieldset.js.map +7 -0
- package/dist/components/filterbuilder.js +2 -0
- package/dist/components/filterbuilder.js.map +7 -0
- package/dist/components/form.js +2 -0
- package/dist/components/form.js.map +7 -0
- package/dist/components/grid.js +2 -0
- package/dist/components/grid.js.map +7 -0
- package/dist/components/icon.js +2 -0
- package/dist/components/icon.js.map +7 -0
- package/dist/components/label.js +2 -0
- package/dist/components/label.js.map +7 -0
- package/dist/components/listbox.js +2 -0
- package/dist/components/listbox.js.map +7 -0
- package/dist/components/lookupfield.js +2 -0
- package/dist/components/lookupfield.js.map +7 -0
- package/dist/components/menu.js +2 -0
- package/dist/components/menu.js.map +7 -0
- package/dist/components/messagebox.js +2 -0
- package/dist/components/messagebox.js.map +7 -0
- package/dist/components/navmenu.js +2 -0
- package/dist/components/navmenu.js.map +7 -0
- package/dist/components/numberfield.js +2 -0
- package/dist/components/numberfield.js.map +7 -0
- package/dist/components/pagination.js +2 -0
- package/dist/components/pagination.js.map +7 -0
- package/dist/components/panel.js +2 -0
- package/dist/components/panel.js.map +7 -0
- package/dist/components/pickerfield.js +2 -0
- package/dist/components/pickerfield.js.map +7 -0
- package/dist/components/radiogroup.js +2 -0
- package/dist/components/radiogroup.js.map +7 -0
- package/dist/components/searchgrid.js +2 -0
- package/dist/components/searchgrid.js.map +7 -0
- package/dist/components/secretfield.js +2 -0
- package/dist/components/secretfield.js.map +7 -0
- package/dist/components/select.js +2 -0
- package/dist/components/select.js.map +7 -0
- package/dist/components/slider.js +2 -0
- package/dist/components/slider.js.map +7 -0
- package/dist/components/spacer.js +2 -0
- package/dist/components/spacer.js.map +7 -0
- package/dist/components/spinner.js +2 -0
- package/dist/components/spinner.js.map +7 -0
- package/dist/components/stepform.js +2 -0
- package/dist/components/stepform.js.map +7 -0
- package/dist/components/stepper.js +2 -0
- package/dist/components/stepper.js.map +7 -0
- package/dist/components/suggestfield.js +2 -0
- package/dist/components/suggestfield.js.map +7 -0
- package/dist/components/table.js +2 -0
- package/dist/components/table.js.map +7 -0
- package/dist/components/tabs.js +2 -0
- package/dist/components/tabs.js.map +7 -0
- package/dist/components/textarea.js +2 -0
- package/dist/components/textarea.js.map +7 -0
- package/dist/components/textfield.js +2 -0
- package/dist/components/textfield.js.map +7 -0
- package/dist/components/toast.js +2 -0
- package/dist/components/toast.js.map +7 -0
- package/dist/components/toolbar.js +2 -0
- package/dist/components/toolbar.js.map +7 -0
- package/dist/components/tooltip.js +2 -0
- package/dist/components/tooltip.js.map +7 -0
- package/dist/components/viewmanager.js +2 -0
- package/dist/components/viewmanager.js.map +7 -0
- package/dist/components/viewport.js +2 -0
- package/dist/components/viewport.js.map +7 -0
- package/dist/components/widget.js +2 -0
- package/dist/components/widget.js.map +7 -0
- package/dist/components/window.js +2 -0
- package/dist/components/window.js.map +7 -0
- package/dist/core.js +2 -0
- package/dist/core.js.map +7 -0
- package/dist/css/base.css +160 -0
- package/dist/css/breadcrumb.css +53 -0
- package/dist/css/button.css +101 -0
- package/dist/css/calendar.css +108 -0
- package/dist/css/chat.css +233 -0
- package/dist/css/checkbox.css +64 -0
- package/dist/css/commandpalette.css +167 -0
- package/dist/css/container.css +5 -0
- package/dist/css/core.css +88 -0
- package/dist/css/dataview.css +56 -0
- package/dist/css/dropdown.css +13 -0
- package/dist/css/field.css +62 -0
- package/dist/css/fieldset.css +32 -0
- package/dist/css/filterbuilder.css +125 -0
- package/dist/css/form.css +8 -0
- package/dist/css/grid.css +367 -0
- package/dist/css/icon.css +16 -0
- package/dist/css/label.css +12 -0
- package/dist/css/layout.css +116 -0
- package/dist/css/listbox.css +50 -0
- package/dist/css/menu.css +47 -0
- package/dist/css/messagebox.css +6 -0
- package/dist/css/motion.css +29 -0
- package/dist/css/navmenu.css +115 -0
- package/dist/css/pagination.css +23 -0
- package/dist/css/panel.css +77 -0
- package/dist/css/pickerfield.css +85 -0
- package/dist/css/radiogroup.css +53 -0
- package/dist/css/searchgrid.css +37 -0
- package/dist/css/secretfield.css +73 -0
- package/dist/css/slider.css +107 -0
- package/dist/css/spacer.css +7 -0
- package/dist/css/stepform.css +46 -0
- package/dist/css/stepper.css +117 -0
- package/dist/css/table.css +36 -0
- package/dist/css/tabs.css +99 -0
- package/dist/css/textarea.css +11 -0
- package/dist/css/textfield.css +59 -0
- package/dist/css/toast.css +91 -0
- package/dist/css/toolbar.css +14 -0
- package/dist/css/tooltip.css +17 -0
- package/dist/css/viewport.css +9 -0
- package/dist/css/widget.css +77 -0
- package/dist/css/window.css +31 -0
- package/dist/data.js +2 -0
- package/dist/data.js.map +7 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +7 -0
- package/dist/motion.js +2 -0
- package/dist/motion.js.map +7 -0
- package/dist/optikos.css +3145 -0
- package/dist/themes/brand.css +240 -0
- package/dist/themes/brutal.css +100 -0
- package/dist/themes/compact.css +17 -0
- package/dist/themes/corporate.css +112 -0
- package/dist/themes/dark.css +38 -0
- package/dist/themes/editorial.css +110 -0
- package/dist/themes/soft.css +101 -0
- package/dist/themes/terminal.css +91 -0
- package/dist/types/bind/index.d.ts +23 -0
- package/dist/types/components/base/button/button.d.ts +34 -0
- package/dist/types/components/base/icon/icon.d.ts +17 -0
- package/dist/types/components/base/label/label.d.ts +14 -0
- package/dist/types/components/breadcrumb.d.ts +1 -0
- package/dist/types/components/button.d.ts +1 -0
- package/dist/types/components/calendar.d.ts +1 -0
- package/dist/types/components/chat/chat/chat.d.ts +84 -0
- package/dist/types/components/chat.d.ts +1 -0
- package/dist/types/components/checkbox.d.ts +1 -0
- package/dist/types/components/combobox.d.ts +1 -0
- package/dist/types/components/commandpalette.d.ts +1 -0
- package/dist/types/components/container.d.ts +1 -0
- package/dist/types/components/data/dataview/dataview.d.ts +61 -0
- package/dist/types/components/data/filterbuilder/filterbuilder.d.ts +71 -0
- package/dist/types/components/data/grid/grid.d.ts +151 -0
- package/dist/types/components/data/pagination/pagination.d.ts +31 -0
- package/dist/types/components/data/searchgrid/searchgrid.d.ts +63 -0
- package/dist/types/components/data/table/table.d.ts +26 -0
- package/dist/types/components/data/viewmanager/viewmanager.d.ts +86 -0
- package/dist/types/components/dataview.d.ts +1 -0
- package/dist/types/components/datefield.d.ts +1 -0
- package/dist/types/components/daterangefield.d.ts +1 -0
- package/dist/types/components/dates/calendar/calendar.d.ts +48 -0
- package/dist/types/components/dropdown.d.ts +1 -0
- package/dist/types/components/feedback/spinner/spinner.d.ts +11 -0
- package/dist/types/components/fields/checkbox/checkbox.d.ts +20 -0
- package/dist/types/components/fields/combobox/combobox.d.ts +15 -0
- package/dist/types/components/fields/datefield/datefield.d.ts +30 -0
- package/dist/types/components/fields/daterangefield/daterangefield.d.ts +32 -0
- package/dist/types/components/fields/listbox/listbox.d.ts +54 -0
- package/dist/types/components/fields/lookupfield/lookupfield.d.ts +25 -0
- package/dist/types/components/fields/numberfield/numberfield.d.ts +31 -0
- package/dist/types/components/fields/pickerfield/pickerfield.d.ts +77 -0
- package/dist/types/components/fields/radiogroup/radiogroup.d.ts +26 -0
- package/dist/types/components/fields/secretfield/secretfield.d.ts +52 -0
- package/dist/types/components/fields/select/select.d.ts +10 -0
- package/dist/types/components/fields/slider/slider.d.ts +62 -0
- package/dist/types/components/fields/suggestfield/suggestfield.d.ts +34 -0
- package/dist/types/components/fields/textarea/textarea.d.ts +16 -0
- package/dist/types/components/fields/textfield/textfield.d.ts +38 -0
- package/dist/types/components/fieldset.d.ts +1 -0
- package/dist/types/components/filterbuilder.d.ts +1 -0
- package/dist/types/components/form/form/form.d.ts +51 -0
- package/dist/types/components/form/stepform/stepform.d.ts +62 -0
- package/dist/types/components/form.d.ts +1 -0
- package/dist/types/components/grid.d.ts +1 -0
- package/dist/types/components/icon.d.ts +1 -0
- package/dist/types/components/label.d.ts +1 -0
- package/dist/types/components/layout/container/container.d.ts +1 -0
- package/dist/types/components/layout/fieldset/fieldset.d.ts +21 -0
- package/dist/types/components/layout/panel/panel.d.ts +47 -0
- package/dist/types/components/layout/spacer/spacer.d.ts +12 -0
- package/dist/types/components/layout/toolbar/toolbar.d.ts +15 -0
- package/dist/types/components/layout/viewport/viewport.d.ts +7 -0
- package/dist/types/components/listbox.d.ts +1 -0
- package/dist/types/components/lookupfield.d.ts +1 -0
- package/dist/types/components/menu.d.ts +1 -0
- package/dist/types/components/messagebox.d.ts +1 -0
- package/dist/types/components/navigation/breadcrumb/breadcrumb.d.ts +32 -0
- package/dist/types/components/navigation/navmenu/navmenu.d.ts +63 -0
- package/dist/types/components/navigation/stepper/stepper.d.ts +31 -0
- package/dist/types/components/navigation/tabs/tabs.d.ts +49 -0
- package/dist/types/components/navmenu.d.ts +1 -0
- package/dist/types/components/numberfield.d.ts +1 -0
- package/dist/types/components/overlays/commandpalette/commandpalette.d.ts +80 -0
- package/dist/types/components/overlays/dropdown/dropdown.d.ts +41 -0
- package/dist/types/components/overlays/menu/menu.d.ts +41 -0
- package/dist/types/components/overlays/messagebox/messagebox.d.ts +53 -0
- package/dist/types/components/overlays/toast/toast.d.ts +45 -0
- package/dist/types/components/overlays/tooltip/tooltip.d.ts +13 -0
- package/dist/types/components/overlays/widget/widget.d.ts +48 -0
- package/dist/types/components/overlays/window/window.d.ts +31 -0
- package/dist/types/components/pagination.d.ts +1 -0
- package/dist/types/components/panel.d.ts +1 -0
- package/dist/types/components/pickerfield.d.ts +1 -0
- package/dist/types/components/radiogroup.d.ts +1 -0
- package/dist/types/components/searchgrid.d.ts +1 -0
- package/dist/types/components/secretfield.d.ts +1 -0
- package/dist/types/components/select.d.ts +1 -0
- package/dist/types/components/slider.d.ts +1 -0
- package/dist/types/components/spacer.d.ts +1 -0
- package/dist/types/components/spinner.d.ts +1 -0
- package/dist/types/components/stepform.d.ts +1 -0
- package/dist/types/components/stepper.d.ts +1 -0
- package/dist/types/components/suggestfield.d.ts +1 -0
- package/dist/types/components/table.d.ts +1 -0
- package/dist/types/components/tabs.d.ts +1 -0
- package/dist/types/components/textarea.d.ts +1 -0
- package/dist/types/components/textfield.d.ts +1 -0
- package/dist/types/components/toast.d.ts +1 -0
- package/dist/types/components/toolbar.d.ts +1 -0
- package/dist/types/components/tooltip.d.ts +1 -0
- package/dist/types/components/viewmanager.d.ts +1 -0
- package/dist/types/components/viewport.d.ts +1 -0
- package/dist/types/components/widget.d.ts +1 -0
- package/dist/types/components/window.d.ts +1 -0
- package/dist/types/core/component.d.ts +90 -0
- package/dist/types/core/container.d.ts +43 -0
- package/dist/types/core/date.d.ts +14 -0
- package/dist/types/core/dom.d.ts +11 -0
- package/dist/types/core/emitter.d.ts +12 -0
- package/dist/types/core/field.d.ts +78 -0
- package/dist/types/core/focus.d.ts +18 -0
- package/dist/types/core/i18n.d.ts +7 -0
- package/dist/types/core/index.d.ts +15 -0
- package/dist/types/core/layer.d.ts +6 -0
- package/dist/types/core/position.d.ts +16 -0
- package/dist/types/core/registry.d.ts +12 -0
- package/dist/types/core/validators.d.ts +10 -0
- package/dist/types/core/virtual.d.ts +24 -0
- package/dist/types/data/column.d.ts +27 -0
- package/dist/types/data/format.d.ts +4 -0
- package/dist/types/data/index.d.ts +5 -0
- package/dist/types/data/model.d.ts +28 -0
- package/dist/types/data/proxy.d.ts +61 -0
- package/dist/types/data/store.d.ts +94 -0
- package/dist/types/index.d.ts +53 -0
- package/dist/types/layout/layout.d.ts +27 -0
- package/dist/types/motion/config.d.ts +83 -0
- package/dist/types/motion/core.d.ts +40 -0
- package/dist/types/motion/extras.d.ts +66 -0
- package/dist/types/motion/index.d.ts +3 -0
- package/dist/types/themes/define.d.ts +30 -0
- package/dist/types/themes/index.d.ts +1 -0
- package/dist/types/ui/enums.d.ts +88 -0
- package/dist/types/ui/index.d.ts +2 -0
- package/dist/types/ui/ui.d.ts +58 -0
- package/dist/ui.js +2 -0
- package/dist/ui.js.map +7 -0
- package/package.json +99 -4
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Component, type ComponentConfig } from '../../../core/component.js';
|
|
2
|
+
export interface NavItem {
|
|
3
|
+
id: string;
|
|
4
|
+
text: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
badge?: string | number;
|
|
7
|
+
items?: NavItem[];
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
/** Groups: start open. */
|
|
11
|
+
expanded?: boolean;
|
|
12
|
+
data?: unknown;
|
|
13
|
+
}
|
|
14
|
+
export interface NavMenuConfig extends ComponentConfig {
|
|
15
|
+
items?: NavItem[];
|
|
16
|
+
/** id of the active leaf. */
|
|
17
|
+
active?: string;
|
|
18
|
+
/** Rail: icons only. */
|
|
19
|
+
collapsed?: boolean;
|
|
20
|
+
/** Opening a group closes the others at its level. */
|
|
21
|
+
accordion?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/** Sidebar tree: groups that open and close, one active leaf, badges, rail mode, filter and the APG tree keyboard model. */
|
|
24
|
+
export declare class NavMenu extends Component<NavMenuConfig> {
|
|
25
|
+
protected baseCls: string;
|
|
26
|
+
protected tag: 'nav';
|
|
27
|
+
private items;
|
|
28
|
+
private open;
|
|
29
|
+
private active?;
|
|
30
|
+
private query;
|
|
31
|
+
private focusId?;
|
|
32
|
+
private root;
|
|
33
|
+
protected onRender(): void;
|
|
34
|
+
getItem(id: string, list?: NavItem[]): NavItem | undefined;
|
|
35
|
+
private parentsOf;
|
|
36
|
+
private openParents;
|
|
37
|
+
private matches;
|
|
38
|
+
/** Visible = not hidden, matches the filter, and a group has at least one visible child. */
|
|
39
|
+
private visible;
|
|
40
|
+
private isOpen;
|
|
41
|
+
private paint;
|
|
42
|
+
private node;
|
|
43
|
+
private activate;
|
|
44
|
+
private select;
|
|
45
|
+
/** Marks a leaf as the active page (and opens its parents). Does not emit `select`. */
|
|
46
|
+
setActive(id: string | undefined): void;
|
|
47
|
+
getActive(): NavItem | undefined;
|
|
48
|
+
expand(id: string): void;
|
|
49
|
+
collapse(id: string): void;
|
|
50
|
+
toggle(id: string): void;
|
|
51
|
+
private siblings;
|
|
52
|
+
expandAll(): void;
|
|
53
|
+
collapseAll(): void;
|
|
54
|
+
setItems(items: NavItem[]): void;
|
|
55
|
+
/** Changes an item in place (a badge, a label, disabled...). */
|
|
56
|
+
updateItem(id: string, patch: Partial<NavItem>): void;
|
|
57
|
+
setCollapsed(collapsed: boolean): void;
|
|
58
|
+
/** Hides what does not match and opens the groups that have a match; empty text clears the filter. */
|
|
59
|
+
filter(text: string): void;
|
|
60
|
+
private rows;
|
|
61
|
+
private focusRow;
|
|
62
|
+
private onKey;
|
|
63
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Component, type ComponentConfig } from '../../../core/component.js';
|
|
2
|
+
export interface Step {
|
|
3
|
+
id?: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
icon?: string;
|
|
7
|
+
optional?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export type StepState = 'pending' | 'done' | 'error';
|
|
10
|
+
export interface StepperConfig extends ComponentConfig {
|
|
11
|
+
steps?: Step[];
|
|
12
|
+
active?: number;
|
|
13
|
+
/** Steps can be clicked. Default true. */
|
|
14
|
+
clickable?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** Where you are in a multi-step process: numbered steps with done / current / error states. */
|
|
17
|
+
export declare class Stepper extends Component<StepperConfig> {
|
|
18
|
+
protected baseCls: string;
|
|
19
|
+
protected tag: 'nav';
|
|
20
|
+
private list;
|
|
21
|
+
private active;
|
|
22
|
+
private states;
|
|
23
|
+
protected onRender(): void;
|
|
24
|
+
private steps;
|
|
25
|
+
private paint;
|
|
26
|
+
setActive(i: number): void;
|
|
27
|
+
getActive(): number;
|
|
28
|
+
setStepState(i: number, state: StepState): void;
|
|
29
|
+
getStepState(i: number): StepState;
|
|
30
|
+
setSteps(steps: Step[]): void;
|
|
31
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Container, type ContainerConfig } from '../../../core/container.js';
|
|
2
|
+
import { Component } from '../../../core/component.js';
|
|
3
|
+
import { type AnyConfig } from '../../../core/registry.js';
|
|
4
|
+
export interface TabsConfig extends ContainerConfig {
|
|
5
|
+
/** Initially active tab (index or id). */
|
|
6
|
+
active?: number | string;
|
|
7
|
+
position?: 'top' | 'left';
|
|
8
|
+
/** Build a panel's DOM only the first time its tab is activated. Default true. */
|
|
9
|
+
lazy?: boolean;
|
|
10
|
+
/** Default `closable` for tabs. */
|
|
11
|
+
closable?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Items are the panels. Each may carry `title`, `icon`, `closable` and `disabled` for its tab header.
|
|
15
|
+
* Tabs reuse the `card` layout of Container for the panels.
|
|
16
|
+
*/
|
|
17
|
+
export declare class Tabs extends Container<TabsConfig> {
|
|
18
|
+
protected baseCls: string;
|
|
19
|
+
private barEl;
|
|
20
|
+
private panelsEl;
|
|
21
|
+
private tabs;
|
|
22
|
+
private pending;
|
|
23
|
+
private rover?;
|
|
24
|
+
constructor(config?: TabsConfig);
|
|
25
|
+
getBody(): HTMLElement;
|
|
26
|
+
protected build(): HTMLDivElement;
|
|
27
|
+
protected onRender(): void;
|
|
28
|
+
private forcing?;
|
|
29
|
+
/** Lazy panels (everything but the active one) are attached the first time they are activated. */
|
|
30
|
+
protected attach(p: Component, index: number): void;
|
|
31
|
+
/** Builds a pending panel's DOM now. */
|
|
32
|
+
private ensure;
|
|
33
|
+
private tabConfig;
|
|
34
|
+
private addHeader;
|
|
35
|
+
private syncHeaders;
|
|
36
|
+
getActive(): Component | undefined;
|
|
37
|
+
/** Activates a tab (instance, id or index). `before-change` can cancel. */
|
|
38
|
+
setActive(tab: Component | string | number): void;
|
|
39
|
+
insert(index: number, item: AnyConfig | Component | string): Component;
|
|
40
|
+
/** Closes a tab (`before-close` can cancel). The neighbor becomes active. */
|
|
41
|
+
closeTab(tab: Component | string | number): void;
|
|
42
|
+
remove(child: Component | string | number, destroy?: boolean): Component | undefined;
|
|
43
|
+
/** Marks a tab header: a badge with the number of errors in its panel and a dot while something in it changed. */
|
|
44
|
+
setTabState(tab: Component, state: {
|
|
45
|
+
errors?: number;
|
|
46
|
+
dirty?: boolean;
|
|
47
|
+
}): void;
|
|
48
|
+
setTitle(tab: Component, title: string): void;
|
|
49
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/navigation/navmenu/navmenu.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/fields/numberfield/numberfield.js';
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { Component, type ComponentConfig } from '../../../core/component.js';
|
|
2
|
+
export interface Command {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
/** Groups the command and gives it a filter chip. */
|
|
6
|
+
category?: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
/** Extra words that find the command. */
|
|
10
|
+
keywords?: string[];
|
|
11
|
+
/** Only displayed (the app binds the key itself). */
|
|
12
|
+
shortcut?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
hidden?: () => boolean;
|
|
15
|
+
/** Runs after the palette closed. Errors become the palette's `error` event. */
|
|
16
|
+
handler?: (ctx: {
|
|
17
|
+
palette: CommandPalette;
|
|
18
|
+
command: Command;
|
|
19
|
+
}) => unknown;
|
|
20
|
+
/** A second level: choosing this command shows these (Backspace on an empty field goes back). */
|
|
21
|
+
children?: Command[] | (() => Command[] | Promise<Command[]>);
|
|
22
|
+
}
|
|
23
|
+
export interface CommandPaletteConfig extends ComponentConfig {
|
|
24
|
+
commands?: Command[];
|
|
25
|
+
/** `mod` is Ctrl on Windows/Linux and ⌘ on macOS. `false` turns the global key off. Default `'mod+k'`. */
|
|
26
|
+
hotkey?: string | false;
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
emptyText?: string;
|
|
29
|
+
maxResults?: number;
|
|
30
|
+
/** Order of the category groups; the others follow. */
|
|
31
|
+
categories?: string[];
|
|
32
|
+
/** Category chips under the field. Default true. */
|
|
33
|
+
filters?: boolean;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Command palette: Ctrl/⌘+K opens a searchable, categorized list of the actions the app registered. Choosing one closes
|
|
37
|
+
* the palette and runs it; a command with `children` opens a second level instead.
|
|
38
|
+
*/
|
|
39
|
+
export declare class CommandPalette extends Component<CommandPaletteConfig> {
|
|
40
|
+
protected baseCls: string;
|
|
41
|
+
private commands;
|
|
42
|
+
private levels;
|
|
43
|
+
private query;
|
|
44
|
+
private cat;
|
|
45
|
+
private shown;
|
|
46
|
+
private active;
|
|
47
|
+
private opened;
|
|
48
|
+
private opener;
|
|
49
|
+
private release;
|
|
50
|
+
private panel;
|
|
51
|
+
private input;
|
|
52
|
+
private filtersEl;
|
|
53
|
+
private listEl;
|
|
54
|
+
private live;
|
|
55
|
+
private crumb;
|
|
56
|
+
constructor(config?: CommandPaletteConfig);
|
|
57
|
+
protected build(): HTMLDivElement;
|
|
58
|
+
getCommands(): Command[];
|
|
59
|
+
setCommands(list: Command[]): void;
|
|
60
|
+
/** Adds commands; returns the function that removes them again. */
|
|
61
|
+
register(cmd: Command | Command[]): () => void;
|
|
62
|
+
/** Runs a command by id (searching every level that is not a submenu), without opening the palette. */
|
|
63
|
+
run(id: string): Promise<void>;
|
|
64
|
+
isOpen(): boolean;
|
|
65
|
+
toggle(): void;
|
|
66
|
+
open(): void;
|
|
67
|
+
close(): void;
|
|
68
|
+
protected onDestroy(): void;
|
|
69
|
+
private level;
|
|
70
|
+
/** Commands for the current query/filter, in display order. */
|
|
71
|
+
private results;
|
|
72
|
+
private paint;
|
|
73
|
+
private paintFilters;
|
|
74
|
+
private indexOf;
|
|
75
|
+
private setActive;
|
|
76
|
+
private onKey;
|
|
77
|
+
private back;
|
|
78
|
+
private choose;
|
|
79
|
+
private exec;
|
|
80
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Component, type ComponentConfig } from '../../../core/component.js';
|
|
2
|
+
import { type AnyConfig } from '../../../core/registry.js';
|
|
3
|
+
import { type Placement } from '../../../core/position.js';
|
|
4
|
+
export interface DropdownConfig extends ComponentConfig {
|
|
5
|
+
anchor?: HTMLElement | Component | {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
};
|
|
9
|
+
content?: HTMLElement | Component | AnyConfig;
|
|
10
|
+
placement?: Placement;
|
|
11
|
+
offset?: number;
|
|
12
|
+
flip?: boolean;
|
|
13
|
+
matchWidth?: boolean;
|
|
14
|
+
closeOnOutside?: boolean;
|
|
15
|
+
closeOnEsc?: boolean;
|
|
16
|
+
role?: string;
|
|
17
|
+
/** Move focus to the first focusable element of the content on open. */
|
|
18
|
+
autoFocus?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/** Floating panel anchored to an element. Lives in the global layer; closes on outside click and Esc. */
|
|
21
|
+
export declare class Dropdown extends Component<DropdownConfig> {
|
|
22
|
+
protected baseCls: string;
|
|
23
|
+
private content?;
|
|
24
|
+
private open_;
|
|
25
|
+
private release;
|
|
26
|
+
private leaving;
|
|
27
|
+
protected build(): HTMLDivElement;
|
|
28
|
+
getAnchor(): HTMLElement | undefined;
|
|
29
|
+
isOpen(): boolean;
|
|
30
|
+
open(): void;
|
|
31
|
+
close(): void;
|
|
32
|
+
toggle(): void;
|
|
33
|
+
reposition(): void;
|
|
34
|
+
setAnchor(anchor: HTMLElement | Component | {
|
|
35
|
+
x: number;
|
|
36
|
+
y: number;
|
|
37
|
+
}): void;
|
|
38
|
+
setPlacement(placement: Placement): void;
|
|
39
|
+
setContent(content: HTMLElement | Component): void;
|
|
40
|
+
protected onDestroy(): void;
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Component, type ComponentConfig } from '../../../core/component.js';
|
|
2
|
+
import type { Placement } from '../../../core/position.js';
|
|
3
|
+
export interface MenuItem {
|
|
4
|
+
text?: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
handler?: (item: MenuItem) => void;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/** Present (true/false) makes it a checkable item. */
|
|
9
|
+
checked?: boolean;
|
|
10
|
+
items?: MenuEntry[];
|
|
11
|
+
}
|
|
12
|
+
export type MenuEntry = MenuItem | '-';
|
|
13
|
+
export interface MenuConfig extends ComponentConfig {
|
|
14
|
+
items?: MenuEntry[];
|
|
15
|
+
}
|
|
16
|
+
/** Floating menu with submenus. Use `showBy(button)` for button menus and `showAt(x, y)` for context menus. */
|
|
17
|
+
export declare class Menu extends Component<MenuConfig> {
|
|
18
|
+
protected baseCls: string;
|
|
19
|
+
parentMenu?: Menu;
|
|
20
|
+
private dd?;
|
|
21
|
+
private sub?;
|
|
22
|
+
private subOwner?;
|
|
23
|
+
private opener;
|
|
24
|
+
private hoverCancel?;
|
|
25
|
+
protected build(): HTMLDivElement;
|
|
26
|
+
protected onRender(): void;
|
|
27
|
+
private entries;
|
|
28
|
+
private renderItems;
|
|
29
|
+
setItems(items: MenuEntry[]): void;
|
|
30
|
+
private activate;
|
|
31
|
+
private root;
|
|
32
|
+
private openSub;
|
|
33
|
+
isOpen(): boolean;
|
|
34
|
+
private focusFirst;
|
|
35
|
+
showBy(anchor: HTMLElement | Component, placement?: Placement, focus?: boolean): void;
|
|
36
|
+
showAt(x: number, y: number): void;
|
|
37
|
+
private open;
|
|
38
|
+
hide(): void;
|
|
39
|
+
closeAll(): void;
|
|
40
|
+
protected onDestroy(): void;
|
|
41
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Window } from '../window/window.js';
|
|
2
|
+
import { TextField } from '../../fields/textfield/textfield.js';
|
|
3
|
+
import type { Validator } from '../../../core/validators.js';
|
|
4
|
+
export interface MessageBoxButton {
|
|
5
|
+
id: string;
|
|
6
|
+
text: string;
|
|
7
|
+
variant?: 'default' | 'primary' | 'danger';
|
|
8
|
+
}
|
|
9
|
+
export interface MessageBoxConfig {
|
|
10
|
+
text: string;
|
|
11
|
+
title?: string;
|
|
12
|
+
icon?: string;
|
|
13
|
+
buttons: MessageBoxButton[];
|
|
14
|
+
/** Resolved when closed with Esc or the close button. */
|
|
15
|
+
cancelId?: string;
|
|
16
|
+
/** Adds a text input; `show` then resolves with the button id and the input is read by `prompt`. */
|
|
17
|
+
input?: {
|
|
18
|
+
value?: string;
|
|
19
|
+
placeholder?: string;
|
|
20
|
+
validators?: Validator<string>[];
|
|
21
|
+
};
|
|
22
|
+
/** Called with the pressed button id before closing; return `false` to keep the dialog open. */
|
|
23
|
+
beforeClose?: (id: string, win: Window, input?: TextField) => boolean | void;
|
|
24
|
+
}
|
|
25
|
+
declare function open(cfg: MessageBoxConfig): Promise<string>;
|
|
26
|
+
export interface AlertOptions {
|
|
27
|
+
title?: string;
|
|
28
|
+
okText?: string;
|
|
29
|
+
icon?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface ConfirmOptions {
|
|
32
|
+
title?: string;
|
|
33
|
+
okText?: string;
|
|
34
|
+
cancelText?: string;
|
|
35
|
+
danger?: boolean;
|
|
36
|
+
icon?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface PromptOptions {
|
|
39
|
+
title?: string;
|
|
40
|
+
value?: string;
|
|
41
|
+
placeholder?: string;
|
|
42
|
+
okText?: string;
|
|
43
|
+
cancelText?: string;
|
|
44
|
+
validators?: Validator<string>[];
|
|
45
|
+
}
|
|
46
|
+
export declare const MessageBox: {
|
|
47
|
+
show: typeof open;
|
|
48
|
+
alert(text: string, o?: AlertOptions): Promise<void>;
|
|
49
|
+
confirm(text: string, o?: ConfirmOptions): Promise<boolean>;
|
|
50
|
+
/** Resolves with the text, or `null` when cancelled. The dialog stays open while the validators fail. */
|
|
51
|
+
prompt(text: string, o?: PromptOptions): Promise<string | null>;
|
|
52
|
+
};
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Component, type ComponentConfig } from '../../../core/component.js';
|
|
2
|
+
export type ToastPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top' | 'bottom';
|
|
3
|
+
export interface ToastConfig extends ComponentConfig {
|
|
4
|
+
text?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
type?: 'info' | 'success' | 'warning' | 'error';
|
|
7
|
+
/** ms before it closes by itself; 0 keeps it until closed. Default 4000. */
|
|
8
|
+
duration?: number;
|
|
9
|
+
closable?: boolean;
|
|
10
|
+
position?: ToastPosition;
|
|
11
|
+
}
|
|
12
|
+
declare const defaults: {
|
|
13
|
+
duration: number;
|
|
14
|
+
position: ToastPosition;
|
|
15
|
+
max: number;
|
|
16
|
+
};
|
|
17
|
+
export declare class Toast extends Component<ToastConfig> {
|
|
18
|
+
protected baseCls: string;
|
|
19
|
+
private cancelTimer?;
|
|
20
|
+
private remaining;
|
|
21
|
+
private started;
|
|
22
|
+
protected build(): HTMLDivElement;
|
|
23
|
+
/** Puts the toast on screen and starts the timer. */
|
|
24
|
+
show(): void;
|
|
25
|
+
private pause;
|
|
26
|
+
private resume;
|
|
27
|
+
close(): void;
|
|
28
|
+
}
|
|
29
|
+
export interface ToastHandle {
|
|
30
|
+
close(): void;
|
|
31
|
+
}
|
|
32
|
+
/** `toast('Saved')` or `toast({ text, title, type, duration, closable, position })`. */
|
|
33
|
+
export declare function toast(opts: string | ToastConfig): ToastHandle;
|
|
34
|
+
export declare namespace toast {
|
|
35
|
+
var configure: (o: Partial<typeof defaults>) => {
|
|
36
|
+
duration: number;
|
|
37
|
+
position: ToastPosition;
|
|
38
|
+
max: number;
|
|
39
|
+
} & Partial<{
|
|
40
|
+
duration: number;
|
|
41
|
+
position: ToastPosition;
|
|
42
|
+
max: number;
|
|
43
|
+
}>;
|
|
44
|
+
}
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare function show(t: HTMLElement): void;
|
|
2
|
+
declare function hide(): void;
|
|
3
|
+
export declare const Tooltip: {
|
|
4
|
+
/** Default delay (ms) before a hover tooltip shows. */
|
|
5
|
+
configure(o: {
|
|
6
|
+
delay?: number;
|
|
7
|
+
}): void;
|
|
8
|
+
show: typeof show;
|
|
9
|
+
hide: typeof hide;
|
|
10
|
+
};
|
|
11
|
+
/** Gives any element a tooltip (same as the `tooltip` config on components). */
|
|
12
|
+
export declare function attachTooltip(target: HTMLElement, text: string): void;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Panel, type PanelConfig } from '../../layout/panel/panel.js';
|
|
2
|
+
export type WidgetSide = 'right' | 'left' | 'top' | 'bottom';
|
|
3
|
+
export interface WidgetConfig extends PanelConfig {
|
|
4
|
+
side?: WidgetSide;
|
|
5
|
+
/** Float above the page (default). `false`: an ordinary panel where the layout puts it. */
|
|
6
|
+
floating?: boolean;
|
|
7
|
+
/** Width on the sides, height on top/bottom (CSS length or px). */
|
|
8
|
+
size?: number | string;
|
|
9
|
+
/** Header buttons that let the user pick the side. */
|
|
10
|
+
sideSwitcher?: boolean;
|
|
11
|
+
/** Which sides the switcher offers. Default left, right, bottom. */
|
|
12
|
+
sides?: WidgetSide[];
|
|
13
|
+
closeOnEsc?: boolean;
|
|
14
|
+
autoFocus?: boolean;
|
|
15
|
+
/** The user can move it by its header (pointer drag, or Alt+arrow keys). A move frees it from the side; `setSide` docks it again. */
|
|
16
|
+
draggable?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/** A panel that floats over the page, attached to one edge. Not modal: the page behind stays usable. */
|
|
19
|
+
export declare class Widget extends Panel<WidgetConfig> {
|
|
20
|
+
protected baseCls: string;
|
|
21
|
+
private opened;
|
|
22
|
+
private opener;
|
|
23
|
+
private cancelHide?;
|
|
24
|
+
private userTools;
|
|
25
|
+
private pos?;
|
|
26
|
+
constructor(config?: WidgetConfig);
|
|
27
|
+
protected onRender(): void;
|
|
28
|
+
getSide(): WidgetSide;
|
|
29
|
+
setSide(side: WidgetSide): void;
|
|
30
|
+
private paintSide;
|
|
31
|
+
/** Where the user left it (viewport px), or undefined while it sits on its side. */
|
|
32
|
+
getPosition(): {
|
|
33
|
+
x: number;
|
|
34
|
+
y: number;
|
|
35
|
+
} | undefined;
|
|
36
|
+
/** Puts a dragged widget back on its side. */
|
|
37
|
+
resetPosition(): void;
|
|
38
|
+
private moveTo;
|
|
39
|
+
private initDrag;
|
|
40
|
+
setSize(size: number | string): void;
|
|
41
|
+
isOpen(): boolean;
|
|
42
|
+
open(): void;
|
|
43
|
+
/** Opens or closes (with no argument: the other one). `toggle()` stays the Panel's collapse. */
|
|
44
|
+
setOpen(open?: boolean): void;
|
|
45
|
+
show(): void;
|
|
46
|
+
hide(): void;
|
|
47
|
+
protected onDestroy(): void;
|
|
48
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Panel, type PanelConfig } from '../../layout/panel/panel.js';
|
|
2
|
+
export interface WindowConfig extends PanelConfig {
|
|
3
|
+
modal?: boolean;
|
|
4
|
+
draggable?: boolean;
|
|
5
|
+
closeOnEsc?: boolean;
|
|
6
|
+
closeOnBackdrop?: boolean;
|
|
7
|
+
/** Move focus inside on show. Default true. */
|
|
8
|
+
autoFocus?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/** Floating dialog. Modal by default: the page behind becomes inert and Tab stays inside. */
|
|
11
|
+
export declare class Window extends Panel<WindowConfig> {
|
|
12
|
+
protected baseCls: string;
|
|
13
|
+
private backdrop?;
|
|
14
|
+
private visible;
|
|
15
|
+
private cleanup;
|
|
16
|
+
private opener;
|
|
17
|
+
private moved;
|
|
18
|
+
private leaving;
|
|
19
|
+
constructor(config?: WindowConfig);
|
|
20
|
+
protected onRender(): void;
|
|
21
|
+
private initDrag;
|
|
22
|
+
isVisible(): boolean;
|
|
23
|
+
/** Centers in the viewport (also done on show and on resize until the user drags it). */
|
|
24
|
+
center(): void;
|
|
25
|
+
show(): void;
|
|
26
|
+
private focusFirst;
|
|
27
|
+
hide(): void;
|
|
28
|
+
/** Cleans up at once (the page is usable again) and takes the window off the screen: shrinking toward its opener, 20 % faster than it came. */
|
|
29
|
+
private release;
|
|
30
|
+
protected onDestroy(): void;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/data/pagination/pagination.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/layout/panel/panel.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/fields/pickerfield/pickerfield.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/fields/radiogroup/radiogroup.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/data/searchgrid/searchgrid.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/fields/secretfield/secretfield.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/fields/select/select.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/fields/slider/slider.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/layout/spacer/spacer.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/feedback/spinner/spinner.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/form/stepform/stepform.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/navigation/stepper/stepper.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/fields/suggestfield/suggestfield.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/data/table/table.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/navigation/tabs/tabs.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/fields/textarea/textarea.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/fields/textfield/textfield.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/overlays/toast/toast.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/layout/toolbar/toolbar.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/overlays/tooltip/tooltip.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/data/viewmanager/viewmanager.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/layout/viewport/viewport.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/overlays/widget/widget.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/overlays/window/window.js';
|