optikos 0.0.0-stage → 0.2.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 +146 -0
- package/LICENSE +21 -0
- package/README.md +213 -2
- package/THIRD_PARTY_NOTICES.md +83 -0
- package/dist/bind.js +2 -0
- package/dist/bind.js.map +7 -0
- package/dist/chunk-23XLG2EM.js +2 -0
- package/dist/chunk-23XLG2EM.js.map +7 -0
- package/dist/chunk-27UZFEXD.js +2 -0
- package/dist/chunk-27UZFEXD.js.map +7 -0
- package/dist/chunk-2UPUC4RK.js +2 -0
- package/dist/chunk-2UPUC4RK.js.map +7 -0
- package/dist/chunk-2ZRNGG2N.js +2 -0
- package/dist/chunk-2ZRNGG2N.js.map +7 -0
- package/dist/chunk-2ZUZ5HDL.js +2 -0
- package/dist/chunk-2ZUZ5HDL.js.map +7 -0
- package/dist/chunk-3DBEZGOY.js +2 -0
- package/dist/chunk-3DBEZGOY.js.map +7 -0
- package/dist/chunk-3S24ZRPK.js +2 -0
- package/dist/chunk-3S24ZRPK.js.map +7 -0
- package/dist/chunk-3TAW4AKH.js +2 -0
- package/dist/chunk-3TAW4AKH.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-4EZJ5FKJ.js +2 -0
- package/dist/chunk-4EZJ5FKJ.js.map +7 -0
- package/dist/chunk-4LZZ244E.js +2 -0
- package/dist/chunk-4LZZ244E.js.map +7 -0
- package/dist/chunk-4SYIIX5A.js +2 -0
- package/dist/chunk-4SYIIX5A.js.map +7 -0
- package/dist/chunk-5BC72727.js +2 -0
- package/dist/chunk-5BC72727.js.map +7 -0
- package/dist/chunk-5DJTP53N.js +2 -0
- package/dist/chunk-5DJTP53N.js.map +7 -0
- package/dist/chunk-5JEXM5S7.js +2 -0
- package/dist/chunk-5JEXM5S7.js.map +7 -0
- package/dist/chunk-5Q76ACVI.js +2 -0
- package/dist/chunk-5Q76ACVI.js.map +7 -0
- package/dist/chunk-5QUY72FX.js +2 -0
- package/dist/chunk-5QUY72FX.js.map +7 -0
- package/dist/chunk-5YS7OD5E.js +2 -0
- package/dist/chunk-5YS7OD5E.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-6VBK2I5B.js +2 -0
- package/dist/chunk-6VBK2I5B.js.map +7 -0
- package/dist/chunk-7KMIFXHZ.js +2 -0
- package/dist/chunk-7KMIFXHZ.js.map +7 -0
- package/dist/chunk-A2NKDOYN.js +2 -0
- package/dist/chunk-A2NKDOYN.js.map +7 -0
- package/dist/chunk-ATFJ7PNA.js +2 -0
- package/dist/chunk-ATFJ7PNA.js.map +7 -0
- package/dist/chunk-BXYWVRKJ.js +2 -0
- package/dist/chunk-BXYWVRKJ.js.map +7 -0
- package/dist/chunk-CKXS375P.js +2 -0
- package/dist/chunk-CKXS375P.js.map +7 -0
- package/dist/chunk-CUN5QO4T.js +2 -0
- package/dist/chunk-CUN5QO4T.js.map +7 -0
- package/dist/chunk-DBMWS3O5.js +2 -0
- package/dist/chunk-DBMWS3O5.js.map +7 -0
- package/dist/chunk-E4VNLYO2.js +2 -0
- package/dist/chunk-E4VNLYO2.js.map +7 -0
- package/dist/chunk-EDUMAMK4.js +2 -0
- package/dist/chunk-EDUMAMK4.js.map +7 -0
- package/dist/chunk-ELYARUCN.js +2 -0
- package/dist/chunk-ELYARUCN.js.map +7 -0
- package/dist/chunk-EV73ADN2.js +2 -0
- package/dist/chunk-EV73ADN2.js.map +7 -0
- package/dist/chunk-FEHGU6EP.js +3 -0
- package/dist/chunk-FEHGU6EP.js.map +7 -0
- package/dist/chunk-FHM5NUS4.js +3 -0
- package/dist/chunk-FHM5NUS4.js.map +7 -0
- package/dist/chunk-G2DAD3MQ.js +2 -0
- package/dist/chunk-G2DAD3MQ.js.map +7 -0
- package/dist/chunk-G2KUK6AT.js +2 -0
- package/dist/chunk-G2KUK6AT.js.map +7 -0
- package/dist/chunk-GBPLNXMP.js +2 -0
- package/dist/chunk-GBPLNXMP.js.map +7 -0
- package/dist/chunk-GNU4VOOE.js +2 -0
- package/dist/chunk-GNU4VOOE.js.map +7 -0
- package/dist/chunk-GZ7X34QP.js +2 -0
- package/dist/chunk-GZ7X34QP.js.map +7 -0
- package/dist/chunk-HOF4JGMQ.js +2 -0
- package/dist/chunk-HOF4JGMQ.js.map +7 -0
- package/dist/chunk-HXDTGP2K.js +2 -0
- package/dist/chunk-HXDTGP2K.js.map +7 -0
- package/dist/chunk-I4SP6JTU.js +2 -0
- package/dist/chunk-I4SP6JTU.js.map +7 -0
- package/dist/chunk-IHE2MQ3W.js +2 -0
- package/dist/chunk-IHE2MQ3W.js.map +7 -0
- package/dist/chunk-II6ITOA6.js +2 -0
- package/dist/chunk-II6ITOA6.js.map +7 -0
- package/dist/chunk-JBLRAM7Z.js +2 -0
- package/dist/chunk-JBLRAM7Z.js.map +7 -0
- package/dist/chunk-JI265XFO.js +2 -0
- package/dist/chunk-JI265XFO.js.map +7 -0
- package/dist/chunk-JK74QK3M.js +2 -0
- package/dist/chunk-JK74QK3M.js.map +7 -0
- package/dist/chunk-JOFQJGZK.js +2 -0
- package/dist/chunk-JOFQJGZK.js.map +7 -0
- package/dist/chunk-KCEUD232.js +2 -0
- package/dist/chunk-KCEUD232.js.map +7 -0
- package/dist/chunk-KLLAY2IM.js +2 -0
- package/dist/chunk-KLLAY2IM.js.map +7 -0
- package/dist/chunk-LBJSMXLV.js +2 -0
- package/dist/chunk-LBJSMXLV.js.map +7 -0
- package/dist/chunk-LQRFNQ2N.js +2 -0
- package/dist/chunk-LQRFNQ2N.js.map +7 -0
- package/dist/chunk-LW2WRUVL.js +2 -0
- package/dist/chunk-LW2WRUVL.js.map +7 -0
- package/dist/chunk-M242VYZA.js +2 -0
- package/dist/chunk-M242VYZA.js.map +7 -0
- package/dist/chunk-MB3MU6HR.js +2 -0
- package/dist/chunk-MB3MU6HR.js.map +7 -0
- package/dist/chunk-MW3RWBZ7.js +2 -0
- package/dist/chunk-MW3RWBZ7.js.map +7 -0
- package/dist/chunk-NXSTUFS7.js +2 -0
- package/dist/chunk-NXSTUFS7.js.map +7 -0
- package/dist/chunk-OEAXCCVM.js +2 -0
- package/dist/chunk-OEAXCCVM.js.map +7 -0
- package/dist/chunk-OGRFQTXA.js +2 -0
- package/dist/chunk-OGRFQTXA.js.map +7 -0
- package/dist/chunk-OWEQT2HN.js +2 -0
- package/dist/chunk-OWEQT2HN.js.map +7 -0
- package/dist/chunk-PZSHOSOS.js +2 -0
- package/dist/chunk-PZSHOSOS.js.map +7 -0
- package/dist/chunk-REW4LR46.js +2 -0
- package/dist/chunk-REW4LR46.js.map +7 -0
- package/dist/chunk-RNN55473.js +2 -0
- package/dist/chunk-RNN55473.js.map +7 -0
- package/dist/chunk-SA53QUBF.js +2 -0
- package/dist/chunk-SA53QUBF.js.map +7 -0
- package/dist/chunk-TIPK3SCJ.js +2 -0
- package/dist/chunk-TIPK3SCJ.js.map +7 -0
- package/dist/chunk-TOLTUOZS.js +2 -0
- package/dist/chunk-TOLTUOZS.js.map +7 -0
- package/dist/chunk-TZOQWCVH.js +2 -0
- package/dist/chunk-TZOQWCVH.js.map +7 -0
- package/dist/chunk-VF7BGP6L.js +2 -0
- package/dist/chunk-VF7BGP6L.js.map +7 -0
- package/dist/chunk-VU3GIDZ3.js +2 -0
- package/dist/chunk-VU3GIDZ3.js.map +7 -0
- package/dist/chunk-VV7CFMPZ.js +2 -0
- package/dist/chunk-VV7CFMPZ.js.map +7 -0
- package/dist/chunk-W3H7GTJY.js +2 -0
- package/dist/chunk-W3H7GTJY.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-XHOBNSBO.js +2 -0
- package/dist/chunk-XHOBNSBO.js.map +7 -0
- package/dist/chunk-XX2MVWFS.js +4 -0
- package/dist/chunk-XX2MVWFS.js.map +7 -0
- package/dist/chunk-XYZ6VZ5T.js +2 -0
- package/dist/chunk-XYZ6VZ5T.js.map +7 -0
- package/dist/chunk-YBAYEU25.js +2 -0
- package/dist/chunk-YBAYEU25.js.map +7 -0
- package/dist/chunk-YHEMA56R.js +2 -0
- package/dist/chunk-YHEMA56R.js.map +7 -0
- package/dist/chunk-Z2JBUHKA.js +2 -0
- package/dist/chunk-Z2JBUHKA.js.map +7 -0
- package/dist/chunk-Z2Z52GFT.js +2 -0
- package/dist/chunk-Z2Z52GFT.js.map +7 -0
- package/dist/chunk-ZPPELYNJ.js +2 -0
- package/dist/chunk-ZPPELYNJ.js.map +7 -0
- package/dist/chunk-ZVK4L5GK.js +2 -0
- package/dist/chunk-ZVK4L5GK.js.map +7 -0
- package/dist/chunk-ZWNQREWS.js +2 -0
- package/dist/chunk-ZWNQREWS.js.map +7 -0
- package/dist/components/badge.js +2 -0
- package/dist/components/badge.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/cellediting.js +2 -0
- package/dist/components/cellediting.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/checkboxgroup.js +2 -0
- package/dist/components/checkboxgroup.js.map +7 -0
- package/dist/components/chip.js +2 -0
- package/dist/components/chip.js.map +7 -0
- package/dist/components/codeviewer.js +2 -0
- package/dist/components/codeviewer.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/dial.js +2 -0
- package/dist/components/dial.js.map +7 -0
- package/dist/components/dropdown.js +2 -0
- package/dist/components/dropdown.js.map +7 -0
- package/dist/components/fieldgroup.js +2 -0
- package/dist/components/fieldgroup.js.map +7 -0
- package/dist/components/fieldlist.js +2 -0
- package/dist/components/fieldlist.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/formactions.js +2 -0
- package/dist/components/formactions.js.map +7 -0
- package/dist/components/formerrors.js +2 -0
- package/dist/components/formerrors.js.map +7 -0
- package/dist/components/formsection.js +2 -0
- package/dist/components/formsection.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/inputgroup.js +2 -0
- package/dist/components/inputgroup.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/toggle.js +2 -0
- package/dist/components/toggle.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/tree.js +2 -0
- package/dist/components/tree.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/badge.css +39 -0
- package/dist/css/base.css +180 -0
- package/dist/css/breadcrumb.css +53 -0
- package/dist/css/button.css +103 -0
- package/dist/css/calendar.css +108 -0
- package/dist/css/cellediting.css +33 -0
- package/dist/css/chat.css +232 -0
- package/dist/css/checkbox.css +64 -0
- package/dist/css/checkboxgroup.css +12 -0
- package/dist/css/chip.css +64 -0
- package/dist/css/codeviewer.css +109 -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/dial.css +203 -0
- package/dist/css/dropdown.css +13 -0
- package/dist/css/field.css +62 -0
- package/dist/css/fieldgroup.css +26 -0
- package/dist/css/fieldlist.css +84 -0
- package/dist/css/fieldset.css +68 -0
- package/dist/css/filterbuilder.css +125 -0
- package/dist/css/form.css +8 -0
- package/dist/css/formactions.css +40 -0
- package/dist/css/formerrors.css +39 -0
- package/dist/css/formsection.css +45 -0
- package/dist/css/grid.css +378 -0
- package/dist/css/icon.css +16 -0
- package/dist/css/inputgroup.css +58 -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 +92 -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 +84 -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 +122 -0
- package/dist/css/table.css +36 -0
- package/dist/css/tabs.css +108 -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/toggle.css +39 -0
- package/dist/css/toolbar.css +14 -0
- package/dist/css/tooltip.css +17 -0
- package/dist/css/tree.css +94 -0
- package/dist/css/viewport.css +9 -0
- package/dist/css/widget.css +135 -0
- package/dist/css/window.css +35 -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 +4240 -0
- package/dist/themes/compact.css +17 -0
- package/dist/themes/dark.css +53 -0
- package/dist/types/bind/index.d.ts +23 -0
- package/dist/types/components/badge.d.ts +1 -0
- package/dist/types/components/base/badge/badge.d.ts +18 -0
- package/dist/types/components/base/button/button.d.ts +34 -0
- package/dist/types/components/base/chip/chip.d.ts +27 -0
- package/dist/types/components/base/codeviewer/codeviewer.d.ts +48 -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/cellediting.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/checkboxgroup.d.ts +1 -0
- package/dist/types/components/chip.d.ts +1 -0
- package/dist/types/components/codeviewer.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/cellediting/cellediting.d.ts +10 -0
- package/dist/types/components/data/dataview/dataview.d.ts +61 -0
- package/dist/types/components/data/filterbuilder/filterbuilder.d.ts +73 -0
- package/dist/types/components/data/grid/grid.d.ts +177 -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/tree/tree.d.ts +71 -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/dial.d.ts +1 -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/fieldgroup.d.ts +1 -0
- package/dist/types/components/fieldlist.d.ts +1 -0
- package/dist/types/components/fields/checkbox/checkbox.d.ts +20 -0
- package/dist/types/components/fields/checkboxgroup/checkboxgroup.d.ts +27 -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/dial/dial.d.ts +84 -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/fields/toggle/toggle.d.ts +9 -0
- package/dist/types/components/fieldset.d.ts +1 -0
- package/dist/types/components/filterbuilder.d.ts +1 -0
- package/dist/types/components/form/fieldgroup/fieldgroup.d.ts +33 -0
- package/dist/types/components/form/fieldlist/fieldlist.d.ts +58 -0
- package/dist/types/components/form/form/form.d.ts +68 -0
- package/dist/types/components/form/formactions/formactions.d.ts +34 -0
- package/dist/types/components/form/formerrors/formerrors.d.ts +23 -0
- package/dist/types/components/form/formsection/formsection.d.ts +26 -0
- package/dist/types/components/form/inputgroup/inputgroup.d.ts +28 -0
- package/dist/types/components/form/stepform/stepform.d.ts +64 -0
- package/dist/types/components/form.d.ts +1 -0
- package/dist/types/components/formactions.d.ts +1 -0
- package/dist/types/components/formerrors.d.ts +1 -0
- package/dist/types/components/formsection.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/inputgroup.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 +30 -0
- package/dist/types/components/layout/panel/panel.d.ts +53 -0
- package/dist/types/components/layout/panel/reload.d.ts +1 -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 +57 -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 +56 -0
- package/dist/types/components/overlays/messagebox/messagebox.d.ts +61 -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 +61 -0
- package/dist/types/components/overlays/window/window.d.ts +38 -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/toggle.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/tree.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 +94 -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 +12 -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 +19 -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 +32 -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 +67 -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 +31 -0
- package/dist/types/themes/index.d.ts +1 -0
- package/dist/types/ui/enums.d.ts +82 -0
- package/dist/types/ui/index.d.ts +2 -0
- package/dist/types/ui/ui.d.ts +67 -0
- package/dist/ui.js +2 -0
- package/dist/ui.js.map +7 -0
- package/package.json +104 -4
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Container, type ContainerConfig } from '../../../core/container.js';
|
|
2
|
+
import { Field } from '../../../core/field.js';
|
|
3
|
+
import type { Model } from '../../../data/model.js';
|
|
4
|
+
import type { Component } from '../../../core/component.js';
|
|
5
|
+
import type { LayoutSpec } from '../../../layout/layout.js';
|
|
6
|
+
export interface FormTab {
|
|
7
|
+
title: string;
|
|
8
|
+
icon?: string;
|
|
9
|
+
items: ContainerConfig['items'];
|
|
10
|
+
/** Default: two columns (one on a phone). */
|
|
11
|
+
layout?: LayoutSpec;
|
|
12
|
+
}
|
|
13
|
+
export interface FormConfig extends ContainerConfig {
|
|
14
|
+
/** Shortcut: the fields in tabs, still one form (one `getValues`, one `validate`, one dirty). */
|
|
15
|
+
tabs?: FormTab[];
|
|
16
|
+
/** Default `labelPos` for fields that do not set their own. */
|
|
17
|
+
labelPos?: 'top' | 'left';
|
|
18
|
+
/** Width of the labels on the left (`labelPos: 'left'`), so they line up in a column. Number = px. */
|
|
19
|
+
labelWidth?: number | string;
|
|
20
|
+
/** Shortcut for a responsive grid layout (one column on narrow screens); items take `colspan` (a number or `'full'`). */
|
|
21
|
+
columns?: number;
|
|
22
|
+
readonly?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare class Form extends Container<FormConfig> {
|
|
25
|
+
protected baseCls: string;
|
|
26
|
+
protected tag: 'form';
|
|
27
|
+
/** Components hidden by their `showIf` rule: their fields do not count (no validation, not in `getValues`). */
|
|
28
|
+
private ruledOut;
|
|
29
|
+
private dirty;
|
|
30
|
+
constructor(config?: FormConfig);
|
|
31
|
+
protected build(): HTMLElement;
|
|
32
|
+
protected onRender(): void;
|
|
33
|
+
getFields(): Field<any>[];
|
|
34
|
+
getField(name: string): Field<any> | undefined;
|
|
35
|
+
/** Nested object built from field names (`address.city` → `{ address: { city } }`). Fields hidden by `showIf` are left out. */
|
|
36
|
+
getValues(opts?: {
|
|
37
|
+
dirtyOnly?: boolean;
|
|
38
|
+
}): Record<string, any>;
|
|
39
|
+
/** The fields that count: not inside something its `showIf` rule hid. */
|
|
40
|
+
private counted;
|
|
41
|
+
/** A field changed: rerun the `showIf`/`enableIf` rules and say when the form as a whole became (un)changed. */
|
|
42
|
+
private changed;
|
|
43
|
+
/** Shows/hides and enables/disables every item that has a rule, from the current values (hidden fields included). */
|
|
44
|
+
applyRules(): void;
|
|
45
|
+
/** Brings a field into view (opening its tab or step) and focuses it. */
|
|
46
|
+
focusField(field: Field<any>): void;
|
|
47
|
+
/** Sets the fields present in `values` (silently). */
|
|
48
|
+
setValues(values: Record<string, any>): void;
|
|
49
|
+
/** Fills the form from a plain object or a Model, and makes it the "clean" state. */
|
|
50
|
+
load(record: Record<string, any> | Model): void;
|
|
51
|
+
/** Brings a field into view: asks every ancestor that shows one child at a time (Tabs, a card layout) to show the branch. */
|
|
52
|
+
protected reveal(field: Component): void;
|
|
53
|
+
/** Error counts and "changed" dots on the headers of every Tabs inside the form. */
|
|
54
|
+
protected syncTabs(): void;
|
|
55
|
+
/** Writes the changed fields back into a Model. */
|
|
56
|
+
updateRecord(model: Model): void;
|
|
57
|
+
markClean(): void;
|
|
58
|
+
reset(): void;
|
|
59
|
+
isDirty(): boolean;
|
|
60
|
+
isValid(): boolean;
|
|
61
|
+
clearErrors(): void;
|
|
62
|
+
/** Validates every field that counts (marks errors) and focuses the first invalid one. */
|
|
63
|
+
validate(): boolean;
|
|
64
|
+
submit(): boolean;
|
|
65
|
+
/** Width of the labels on the left (number = px); they line up in a column. */
|
|
66
|
+
setLabelWidth(width: number | string): void;
|
|
67
|
+
setReadonly(readonly: boolean): void;
|
|
68
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Component, type ComponentConfig } from '../../../core/component.js';
|
|
2
|
+
import { type ButtonConfig } from '../../base/button/button.js';
|
|
3
|
+
import type { Form } from '../form/form.js';
|
|
4
|
+
export interface FormActionsConfig extends ComponentConfig {
|
|
5
|
+
submitText?: string;
|
|
6
|
+
/** `false` hides Cancel. */
|
|
7
|
+
cancelText?: string | false;
|
|
8
|
+
/** Extra buttons, before Cancel. */
|
|
9
|
+
buttons?: ButtonConfig[];
|
|
10
|
+
/** Sticks to the bottom of the scrolling area. */
|
|
11
|
+
sticky?: boolean;
|
|
12
|
+
/** Save is disabled until the form has changes. */
|
|
13
|
+
requireChanges?: boolean;
|
|
14
|
+
/** The "Unsaved changes" line. Default true. */
|
|
15
|
+
status?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/** The form's action bar: Cancel (resets), Save (submits) and an "Unsaved changes" status. */
|
|
18
|
+
export declare class FormActions extends Component<FormActionsConfig> {
|
|
19
|
+
protected baseCls: string;
|
|
20
|
+
private statusEl;
|
|
21
|
+
private buttonsEl;
|
|
22
|
+
private form?;
|
|
23
|
+
private save;
|
|
24
|
+
private cancel?;
|
|
25
|
+
private extra;
|
|
26
|
+
protected build(): HTMLDivElement;
|
|
27
|
+
protected onRender(): void;
|
|
28
|
+
private paint;
|
|
29
|
+
getForm(): Form | undefined;
|
|
30
|
+
setSubmitText(text: string): void;
|
|
31
|
+
/** The Cancel button's text, or `false` to hide it. Cancel emits `cancel` (return false to keep the changes), then resets. */
|
|
32
|
+
setCancelText(text: string | false): void;
|
|
33
|
+
setSticky(sticky: boolean): void;
|
|
34
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Component, type ComponentConfig } from '../../../core/component.js';
|
|
2
|
+
import { Field } from '../../../core/field.js';
|
|
3
|
+
export interface FormErrorsConfig extends ComponentConfig {
|
|
4
|
+
/** The heading: a function of the number of problems, or a fixed text. */
|
|
5
|
+
title?: string | ((n: number) => string);
|
|
6
|
+
/** Take the focus after a failed submit (instead of the first invalid field). */
|
|
7
|
+
focus?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/** An error summary: after a failed validation, every problem as a button that takes you to its field. */
|
|
10
|
+
export declare class FormErrors extends Component<FormErrorsConfig> {
|
|
11
|
+
protected baseCls: string;
|
|
12
|
+
private titleEl;
|
|
13
|
+
private listEl;
|
|
14
|
+
private form?;
|
|
15
|
+
/** Shown only once the form was validated with errors (not while the user is still filling it in). */
|
|
16
|
+
private active;
|
|
17
|
+
protected build(): HTMLDivElement;
|
|
18
|
+
protected onRender(): void;
|
|
19
|
+
/** The form fields that have an error, in order. */
|
|
20
|
+
getErrors(): Field<any>[];
|
|
21
|
+
/** Redraws the list from the current errors (hides when there are none). */
|
|
22
|
+
refresh(): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Container, type ContainerConfig } from '../../../core/container.js';
|
|
2
|
+
export interface FormSectionConfig extends ContainerConfig {
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
/** Title and description in a column beside the fields (default); `false` stacks them above. */
|
|
6
|
+
aside?: boolean;
|
|
7
|
+
/** Shortcut for a responsive grid layout of the fields; items take `colspan` (a number or `'full'`). */
|
|
8
|
+
columns?: number;
|
|
9
|
+
/** A rule between consecutive sections. Default true. */
|
|
10
|
+
divider?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/** A titled part of a long form, "settings page" style: title and description on the left, fields on the right. */
|
|
13
|
+
export declare class FormSection extends Container<FormSectionConfig> {
|
|
14
|
+
protected baseCls: string;
|
|
15
|
+
protected tag: 'section';
|
|
16
|
+
private titleEl;
|
|
17
|
+
private descEl;
|
|
18
|
+
private bodyEl;
|
|
19
|
+
getBody(): HTMLElement;
|
|
20
|
+
protected build(): HTMLElement;
|
|
21
|
+
protected onRender(): void;
|
|
22
|
+
setTitle(title: string): void;
|
|
23
|
+
setDescription(text: string): void;
|
|
24
|
+
/** Title beside the fields (true) or always above them (false). */
|
|
25
|
+
setAside(aside: boolean): void;
|
|
26
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Container, type ContainerConfig } from '../../../core/container.js';
|
|
2
|
+
import { Field } from '../../../core/field.js';
|
|
3
|
+
/** Text joined to the input (`'R$'`, `'.com'`), or a button. */
|
|
4
|
+
export type InputAffix = string | {
|
|
5
|
+
icon?: string;
|
|
6
|
+
text?: string;
|
|
7
|
+
ariaLabel?: string;
|
|
8
|
+
handler?: (field: Field<any>) => void;
|
|
9
|
+
};
|
|
10
|
+
export interface InputGroupConfig extends ContainerConfig {
|
|
11
|
+
prefix?: InputAffix;
|
|
12
|
+
suffix?: InputAffix;
|
|
13
|
+
}
|
|
14
|
+
/** Joins text or buttons to a field's input box. The field keeps its label, help, error, name and value. */
|
|
15
|
+
export declare class InputGroup extends Container<InputGroupConfig> {
|
|
16
|
+
protected baseCls: string;
|
|
17
|
+
private affixes;
|
|
18
|
+
/** The field inside. */
|
|
19
|
+
getField(): Field<any> | undefined;
|
|
20
|
+
protected onRender(): void;
|
|
21
|
+
/** Text affixes describe the input, after the field's own help and error. */
|
|
22
|
+
private describe;
|
|
23
|
+
/** `[prefix][the field's input box][suffix]` inside the field's control. */
|
|
24
|
+
private paint;
|
|
25
|
+
private track;
|
|
26
|
+
setPrefix(prefix: InputAffix | undefined): void;
|
|
27
|
+
setSuffix(suffix: InputAffix | undefined): void;
|
|
28
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Form, type FormConfig } from '../form/form.js';
|
|
2
|
+
import { type ContainerConfig } from '../../../core/container.js';
|
|
3
|
+
import type { LayoutSpec } from '../../../layout/layout.js';
|
|
4
|
+
import { Stepper } from '../../navigation/stepper/stepper.js';
|
|
5
|
+
import '../../layout/container/container.js';
|
|
6
|
+
export interface FormStep {
|
|
7
|
+
title: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
icon?: string;
|
|
10
|
+
/** May be left alone: the stepper says "optional" (its fields are still validated if filled wrongly). */
|
|
11
|
+
optional?: boolean;
|
|
12
|
+
items: ContainerConfig['items'];
|
|
13
|
+
/** Default: two columns (one on a phone). */
|
|
14
|
+
layout?: LayoutSpec;
|
|
15
|
+
}
|
|
16
|
+
export interface StepFormConfig extends FormConfig {
|
|
17
|
+
steps: FormStep[];
|
|
18
|
+
/** Moving forward validates the steps on the way. `false` lets the user click any step. Default true. */
|
|
19
|
+
linear?: boolean;
|
|
20
|
+
/** Adds a last "Review" step with a summary of the values; a function renders the summary yourself. */
|
|
21
|
+
review?: boolean | ((values: Record<string, any>, form: StepForm) => string | Node);
|
|
22
|
+
reviewTitle?: string;
|
|
23
|
+
backText?: string;
|
|
24
|
+
nextText?: string;
|
|
25
|
+
finishText?: string;
|
|
26
|
+
/** Shows a Cancel button (fires `cancel`). */
|
|
27
|
+
cancelText?: string;
|
|
28
|
+
/** On a new step, focus its first field (a phone keyboard pops up). Default false: the step panel gets the focus. */
|
|
29
|
+
autoFocus?: boolean;
|
|
30
|
+
}
|
|
31
|
+
/** One form, several steps: a Stepper on top, one step at a time, Back / Next / Finish, validation per step and an optional review. */
|
|
32
|
+
export declare class StepForm extends Form {
|
|
33
|
+
protected baseCls: string;
|
|
34
|
+
private stepper;
|
|
35
|
+
private body;
|
|
36
|
+
private pane?;
|
|
37
|
+
private backBtn;
|
|
38
|
+
private nextBtn;
|
|
39
|
+
private finishBtn;
|
|
40
|
+
private index;
|
|
41
|
+
constructor(config: StepFormConfig);
|
|
42
|
+
private cfg;
|
|
43
|
+
private count;
|
|
44
|
+
private real;
|
|
45
|
+
getStep(): number;
|
|
46
|
+
getStepCount(): number;
|
|
47
|
+
getStepper(): Stepper;
|
|
48
|
+
private stepFields;
|
|
49
|
+
/** Validates one step's fields (marks the errors, sets its state on the stepper). */
|
|
50
|
+
validateStep(i: number): boolean;
|
|
51
|
+
/** Moves to a step. Forward with `linear` validates the steps on the way and stops at the first invalid one. Returns whether it got there. */
|
|
52
|
+
goTo(j: number): boolean;
|
|
53
|
+
next(): boolean;
|
|
54
|
+
back(): boolean;
|
|
55
|
+
/** The card layout changed the visible step (by `goTo`, or because `validate` brought an invalid field into view). */
|
|
56
|
+
private onActivate;
|
|
57
|
+
private refreshReview;
|
|
58
|
+
/** What the user sees for a field (its display text; ticks for booleans, dots for passwords). */
|
|
59
|
+
private show_;
|
|
60
|
+
/** Enter and the Finish button: Next on every step but the last; on the last, validate everything and `finish`. */
|
|
61
|
+
submit(): boolean;
|
|
62
|
+
/** Clears the values and goes back to the first step. */
|
|
63
|
+
reset(): void;
|
|
64
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/form/form/form.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/form/formactions/formactions.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/form/formerrors/formerrors.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/form/formsection/formsection.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/data/grid/grid.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/base/icon/icon.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/form/inputgroup/inputgroup.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/base/label/label.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Container, type ContainerConfig } from '../../../core/container.js';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Container, type ContainerConfig } from '../../../core/container.js';
|
|
2
|
+
export interface FieldSetConfig extends ContainerConfig {
|
|
3
|
+
title?: string;
|
|
4
|
+
/** A line under the legend, read as the group's description. */
|
|
5
|
+
description?: string;
|
|
6
|
+
/** `box` (a framed group, default), `line` (a rule under the legend, no frame) or `plain` (just the legend). */
|
|
7
|
+
variant?: 'box' | 'line' | 'plain';
|
|
8
|
+
/** Shortcut for a responsive grid layout; items take `colspan` (a number or `'full'`). */
|
|
9
|
+
columns?: number;
|
|
10
|
+
collapsible?: boolean;
|
|
11
|
+
collapsed?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare class FieldSet extends Container<FieldSetConfig> {
|
|
14
|
+
protected baseCls: string;
|
|
15
|
+
protected tag: 'fieldset';
|
|
16
|
+
private legend;
|
|
17
|
+
private bodyEl;
|
|
18
|
+
private toggleBtn?;
|
|
19
|
+
private descEl;
|
|
20
|
+
getBody(): HTMLElement;
|
|
21
|
+
protected build(): HTMLElement;
|
|
22
|
+
protected onRender(): void;
|
|
23
|
+
setTitle(title: string): void;
|
|
24
|
+
setDescription(text: string): void;
|
|
25
|
+
setVariant(variant: 'box' | 'line' | 'plain'): void;
|
|
26
|
+
setCollapsed(collapsed: boolean): void;
|
|
27
|
+
collapse(): void;
|
|
28
|
+
expand(): void;
|
|
29
|
+
toggle(): void;
|
|
30
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Container, type ContainerConfig } from '../../../core/container.js';
|
|
2
|
+
import './reload.js';
|
|
3
|
+
import { type ToolbarConfig } from '../toolbar/toolbar.js';
|
|
4
|
+
import type { ButtonConfig } from '../../base/button/button.js';
|
|
5
|
+
export interface PanelTool {
|
|
6
|
+
icon: string;
|
|
7
|
+
label: string;
|
|
8
|
+
handler?: (panel: Panel, ev: MouseEvent) => void;
|
|
9
|
+
}
|
|
10
|
+
export interface PanelConfig extends ContainerConfig {
|
|
11
|
+
title?: string;
|
|
12
|
+
icon?: string;
|
|
13
|
+
collapsible?: boolean;
|
|
14
|
+
collapsed?: boolean;
|
|
15
|
+
closable?: boolean;
|
|
16
|
+
closeAction?: 'destroy' | 'hide';
|
|
17
|
+
/** A ↻ button in the header that calls `onReload` (a Promise shows the loading mask until it settles). */
|
|
18
|
+
reloadable?: boolean;
|
|
19
|
+
onReload?: (panel: Panel) => void | Promise<unknown>;
|
|
20
|
+
tools?: PanelTool[];
|
|
21
|
+
tbar?: ToolbarConfig['items'];
|
|
22
|
+
bbar?: ToolbarConfig['items'];
|
|
23
|
+
buttons?: ButtonConfig[];
|
|
24
|
+
bodyCls?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare class Panel<C extends PanelConfig = PanelConfig> extends Container<C> {
|
|
27
|
+
protected baseCls: string;
|
|
28
|
+
protected headerEl: HTMLElement;
|
|
29
|
+
protected titleEl: HTMLElement;
|
|
30
|
+
protected bodyEl: HTMLElement;
|
|
31
|
+
private toolsEl;
|
|
32
|
+
private iconHost;
|
|
33
|
+
private toggleBtn?;
|
|
34
|
+
private bars;
|
|
35
|
+
private bodyId;
|
|
36
|
+
private titleId;
|
|
37
|
+
getBody(): HTMLElement;
|
|
38
|
+
protected build(): HTMLDivElement;
|
|
39
|
+
protected onRender(): void;
|
|
40
|
+
private addTool;
|
|
41
|
+
private updateHeader;
|
|
42
|
+
/** Runs `onReload` (`before-reload` can cancel); a returned Promise keeps the loading mask (and a turning ↻) until it settles. */
|
|
43
|
+
reload(): Promise<boolean>;
|
|
44
|
+
setTitle(title: string): void;
|
|
45
|
+
setIcon(name: string): void;
|
|
46
|
+
/** Collapses/expands without events. Use `collapse()`/`expand()` for the full behavior. */
|
|
47
|
+
setCollapsed(collapsed: boolean): void;
|
|
48
|
+
collapse(): void;
|
|
49
|
+
expand(): void;
|
|
50
|
+
toggle(): void;
|
|
51
|
+
close(): void;
|
|
52
|
+
protected onDestroy(): void;
|
|
53
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Component, type ComponentConfig } from '../../../core/component.js';
|
|
2
|
+
export interface SpacerConfig extends ComponentConfig {
|
|
3
|
+
/** Renders a vertical separator line. */
|
|
4
|
+
line?: boolean;
|
|
5
|
+
}
|
|
6
|
+
/** Without `width`/`flex` it takes the free space (`flex: 1`), pushing the next items away. */
|
|
7
|
+
export declare class Spacer extends Component<SpacerConfig> {
|
|
8
|
+
protected baseCls: string;
|
|
9
|
+
protected tag: 'span';
|
|
10
|
+
protected onRender(): void;
|
|
11
|
+
setLine(line: boolean): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Container, type ContainerConfig } from '../../../core/container.js';
|
|
2
|
+
import { type AnyConfig } from '../../../core/registry.js';
|
|
3
|
+
import '../spacer/spacer.js';
|
|
4
|
+
export interface ToolbarConfig extends ContainerConfig {
|
|
5
|
+
vertical?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/** Items may be `'->'` (fill space), `'-'` (separator) or `' '` (small gap). */
|
|
8
|
+
export declare class Toolbar extends Container<ToolbarConfig> {
|
|
9
|
+
protected baseCls: string;
|
|
10
|
+
private rover?;
|
|
11
|
+
protected shorthand(s: string): AnyConfig;
|
|
12
|
+
protected build(): HTMLElement;
|
|
13
|
+
protected onRender(): void;
|
|
14
|
+
notifyMount(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Container, type ContainerConfig } from '../../../core/container.js';
|
|
2
|
+
/** Root container that fills the window. Only one can exist at a time. */
|
|
3
|
+
export declare class Viewport extends Container<ContainerConfig> {
|
|
4
|
+
protected baseCls: string;
|
|
5
|
+
constructor(config?: ContainerConfig);
|
|
6
|
+
protected onRender(): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/fields/listbox/listbox.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/fields/lookupfield/lookupfield.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/overlays/menu/menu.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/overlays/messagebox/messagebox.js';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Component, type ComponentConfig } from '../../../core/component.js';
|
|
2
|
+
export interface BreadcrumbItem {
|
|
3
|
+
text: string;
|
|
4
|
+
icon?: string;
|
|
5
|
+
/** Renders a real link (native navigation, middle-click, copy link). */
|
|
6
|
+
href?: string;
|
|
7
|
+
handler?: (item: BreadcrumbItem) => void;
|
|
8
|
+
}
|
|
9
|
+
export interface BreadcrumbConfig extends ComponentConfig {
|
|
10
|
+
items?: BreadcrumbItem[];
|
|
11
|
+
/** More items than this collapse the middle into a "…" menu. Minimum 3, default 4. */
|
|
12
|
+
maxItems?: number;
|
|
13
|
+
separator?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare class Breadcrumb extends Component<BreadcrumbConfig> {
|
|
16
|
+
protected baseCls: string;
|
|
17
|
+
protected tag: 'nav';
|
|
18
|
+
private list;
|
|
19
|
+
private menu?;
|
|
20
|
+
protected onRender(): void;
|
|
21
|
+
private items;
|
|
22
|
+
/** Indexes hidden behind the "…" button (empty when everything fits). */
|
|
23
|
+
private collapsed;
|
|
24
|
+
private paint;
|
|
25
|
+
/** Runs `before-navigate` / handler / `navigate`. Returns false when cancelled. */
|
|
26
|
+
private go;
|
|
27
|
+
private showHidden;
|
|
28
|
+
setItems(items: BreadcrumbItem[]): void;
|
|
29
|
+
setMaxItems(max: number): void;
|
|
30
|
+
/** Any text, e.g. `'/'` or `'›'`. */
|
|
31
|
+
setSeparator(separator: string): void;
|
|
32
|
+
}
|
|
@@ -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,57 @@
|
|
|
1
|
+
import { Container, type ContainerConfig } from '../../../core/container.js';
|
|
2
|
+
import '../../layout/panel/reload.js';
|
|
3
|
+
import { Component } from '../../../core/component.js';
|
|
4
|
+
import { type AnyConfig } from '../../../core/registry.js';
|
|
5
|
+
export interface TabsConfig extends ContainerConfig {
|
|
6
|
+
/** Initially active tab (index or id). */
|
|
7
|
+
active?: number | string;
|
|
8
|
+
position?: 'top' | 'left';
|
|
9
|
+
/** Build a panel's DOM only the first time its tab is activated. Default true. */
|
|
10
|
+
lazy?: boolean;
|
|
11
|
+
/** Default `closable` for tabs. */
|
|
12
|
+
closable?: boolean;
|
|
13
|
+
/** Default `reloadable` for tabs: a ↻ in the tab that calls the panel's `onReload`. */
|
|
14
|
+
reloadable?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Items are the panels. Each may carry `title`, `icon`, `closable` and `disabled` for its tab header.
|
|
18
|
+
* Tabs reuse the `card` layout of Container for the panels.
|
|
19
|
+
*/
|
|
20
|
+
export declare class Tabs extends Container<TabsConfig> {
|
|
21
|
+
protected baseCls: string;
|
|
22
|
+
private barEl;
|
|
23
|
+
private panelsEl;
|
|
24
|
+
private tabs;
|
|
25
|
+
private pending;
|
|
26
|
+
private rover?;
|
|
27
|
+
constructor(config?: TabsConfig);
|
|
28
|
+
getBody(): HTMLElement;
|
|
29
|
+
protected build(): HTMLDivElement;
|
|
30
|
+
protected onRender(): void;
|
|
31
|
+
private forcing?;
|
|
32
|
+
/** Lazy panels (everything but the active one) are attached the first time they are activated. */
|
|
33
|
+
protected attach(p: Component, index: number): void;
|
|
34
|
+
/** Builds a pending panel's DOM now. */
|
|
35
|
+
private ensure;
|
|
36
|
+
private tabConfig;
|
|
37
|
+
private addHeader;
|
|
38
|
+
private syncHeaders;
|
|
39
|
+
getActive(): Component | undefined;
|
|
40
|
+
/** Activates a tab (instance, id or index). `before-change` can cancel. */
|
|
41
|
+
setActive(tab: Component | string | number): void;
|
|
42
|
+
insert(index: number, item: AnyConfig | Component | string): Component;
|
|
43
|
+
/**
|
|
44
|
+
* Reloads a tab: calls its panel's `onReload` (`before-reload` can cancel). While a returned Promise is pending the panel
|
|
45
|
+
* shows its loading mask and the tab's ↻ spins; `reload(panel)` fires when it is done.
|
|
46
|
+
*/
|
|
47
|
+
reloadTab(tab: Component | string | number): Promise<boolean>;
|
|
48
|
+
/** Closes a tab (`before-close` can cancel). The neighbor becomes active. */
|
|
49
|
+
closeTab(tab: Component | string | number): void;
|
|
50
|
+
remove(child: Component | string | number, destroy?: boolean): Component | undefined;
|
|
51
|
+
/** Marks a tab header: a badge with the number of errors in its panel and a dot while something in it changed. */
|
|
52
|
+
setTabState(tab: Component, state: {
|
|
53
|
+
errors?: number;
|
|
54
|
+
dirty?: boolean;
|
|
55
|
+
}): void;
|
|
56
|
+
setTitle(tab: Component, title: string): void;
|
|
57
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/navigation/navmenu/navmenu.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/fields/numberfield/numberfield.js';
|