@medyll/idae-slotui-svelte 0.3.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/README.md +18 -0
- package/dist/base/alert/Alert.demo.svelte +60 -0
- package/dist/base/alert/Alert.demo.svelte.d.ts +14 -0
- package/dist/base/alert/Alert.svelte +195 -0
- package/dist/base/alert/Alert.svelte.d.ts +37 -0
- package/dist/base/alert/alert.scss +93 -0
- package/dist/base/alert/types.d.ts +20 -0
- package/dist/base/alert/types.js +24 -0
- package/dist/base/avatar/Avatar.demo.svelte +37 -0
- package/dist/base/avatar/Avatar.demo.svelte.d.ts +14 -0
- package/dist/base/avatar/Avatar.preview.svelte +5 -0
- package/dist/base/avatar/Avatar.preview.svelte.d.ts +14 -0
- package/dist/base/avatar/Avatar.svelte +50 -0
- package/dist/base/avatar/Avatar.svelte.d.ts +29 -0
- package/dist/base/avatar/avatar.scss +17 -0
- package/dist/base/avatar/types.d.ts +29 -0
- package/dist/base/avatar/types.js +26 -0
- package/dist/base/backdrop/Backdrop.demo.svelte +45 -0
- package/dist/base/backdrop/Backdrop.demo.svelte.d.ts +14 -0
- package/dist/base/backdrop/Backdrop.svelte +104 -0
- package/dist/base/backdrop/Backdrop.svelte.d.ts +24 -0
- package/dist/base/backdrop/backdrop.scss +34 -0
- package/dist/base/backdrop/types.d.ts +35 -0
- package/dist/base/backdrop/types.js +20 -0
- package/dist/base/backdrop/useBackDrop.d.ts +7 -0
- package/dist/base/backdrop/useBackDrop.js +1 -0
- package/dist/base/badge/Badge.svelte +43 -0
- package/dist/base/badge/Badge.svelte.d.ts +15 -0
- package/dist/base/badge/badge.scss +19 -0
- package/dist/base/badge/types.d.ts +14 -0
- package/dist/base/badge/types.js +1 -0
- package/dist/base/box/Box.demo.svelte +51 -0
- package/dist/base/box/Box.demo.svelte.d.ts +14 -0
- package/dist/base/box/Box.svelte +94 -0
- package/dist/base/box/Box.svelte.d.ts +46 -0
- package/dist/base/box/box.scss +33 -0
- package/dist/base/box/types.d.ts +30 -0
- package/dist/base/box/types.js +32 -0
- package/dist/base/breadCrumb/BreadCrumb.svelte +21 -0
- package/dist/base/breadCrumb/breadcrumb.scss +11 -0
- package/dist/base/breadCrumb/types.d.ts +23 -0
- package/dist/base/breadCrumb/types.js +1 -0
- package/dist/base/cartouche/Cartouche.demo.svelte +104 -0
- package/dist/base/cartouche/Cartouche.demo.svelte.d.ts +14 -0
- package/dist/base/cartouche/Cartouche.preview.svelte +25 -0
- package/dist/base/cartouche/Cartouche.preview.svelte.d.ts +23 -0
- package/dist/base/cartouche/Cartouche.svelte +213 -0
- package/dist/base/cartouche/Cartouche.svelte.d.ts +55 -0
- package/dist/base/cartouche/cartouche.scss +75 -0
- package/dist/base/cartouche/types.d.ts +47 -0
- package/dist/base/cartouche/types.js +38 -0
- package/dist/base/chipper/Chipper.demo.svelte +41 -0
- package/dist/base/chipper/Chipper.demo.svelte.d.ts +14 -0
- package/dist/base/chipper/Chipper.svelte +93 -0
- package/dist/base/chipper/Chipper.svelte.d.ts +32 -0
- package/dist/base/chipper/chipper.scss +65 -0
- package/dist/base/chipper/types.d.ts +18 -0
- package/dist/base/chipper/types.js +22 -0
- package/dist/base/columner/Column.svelte +75 -0
- package/dist/base/columner/Column.svelte.d.ts +15 -0
- package/dist/base/columner/Columner.demo.svelte +14 -0
- package/dist/base/columner/Columner.demo.svelte.d.ts +14 -0
- package/dist/base/columner/Columner.svelte +18 -0
- package/dist/base/columner/Columner.svelte.d.ts +17 -0
- package/dist/base/columner/types.d.ts +17 -0
- package/dist/base/columner/types.js +2 -0
- package/dist/base/contentSwitcher/ContentSwitcher.demo.svelte +42 -0
- package/dist/base/contentSwitcher/ContentSwitcher.demo.svelte.d.ts +14 -0
- package/dist/base/contentSwitcher/ContentSwitcher.svelte +74 -0
- package/dist/base/contentSwitcher/ContentSwitcher.svelte.d.ts +31 -0
- package/dist/base/contentSwitcher/content-switcher.scss +22 -0
- package/dist/base/contentSwitcher/types.d.ts +20 -0
- package/dist/base/contentSwitcher/types.js +12 -0
- package/dist/base/contentSwitcher/useContentSwitcher.d.ts +7 -0
- package/dist/base/contentSwitcher/useContentSwitcher.js +5 -0
- package/dist/base/debug/Debug.svelte +18 -0
- package/dist/base/debug/Debug.svelte.d.ts +16 -0
- package/dist/base/demoer/DemoPage.svelte +34 -0
- package/dist/base/demoer/DemoPage.svelte.d.ts +15 -0
- package/dist/base/demoer/Demoer.svelte +166 -0
- package/dist/base/demoer/Demoer.svelte.d.ts +15 -0
- package/dist/base/demoer/DemoerCode.svelte +23 -0
- package/dist/base/demoer/DemoerCode.svelte.d.ts +23 -0
- package/dist/base/demoer/DemoerComponent.svelte +30 -0
- package/dist/base/demoer/DemoerComponent.svelte.d.ts +28 -0
- package/dist/base/demoer/demoer.utils.d.ts +7 -0
- package/dist/base/demoer/demoer.utils.js +15 -0
- package/dist/base/demoer/types.d.ts +38 -0
- package/dist/base/demoer/types.js +1 -0
- package/dist/base/divider/Divider.demo.svelte +28 -0
- package/dist/base/divider/Divider.demo.svelte.d.ts +14 -0
- package/dist/base/divider/Divider.svelte +67 -0
- package/dist/base/divider/Divider.svelte.d.ts +25 -0
- package/dist/base/divider/divider.scss +19 -0
- package/dist/base/divider/types.d.ts +30 -0
- package/dist/base/divider/types.js +22 -0
- package/dist/base/icon/Icon.demo.svelte +21 -0
- package/dist/base/icon/Icon.demo.svelte.d.ts +14 -0
- package/dist/base/icon/Icon.svelte +55 -0
- package/dist/base/icon/Icon.svelte.d.ts +25 -0
- package/dist/base/icon/icon.scss +17 -0
- package/dist/base/icon/types.d.ts +24 -0
- package/dist/base/icon/types.js +21 -0
- package/dist/base/paper/Paper.demo.svelte +28 -0
- package/dist/base/paper/Paper.demo.svelte.d.ts +14 -0
- package/dist/base/paper/Paper.svelte +39 -0
- package/dist/base/paper/Paper.svelte.d.ts +26 -0
- package/dist/base/paper/paper.scss +15 -0
- package/dist/base/paper/type.d.ts +16 -0
- package/dist/base/paper/type.js +8 -0
- package/dist/base/titleBar/TitleBar.demo.svelte +28 -0
- package/dist/base/titleBar/TitleBar.demo.svelte.d.ts +14 -0
- package/dist/base/titleBar/TitleBar.svelte +64 -0
- package/dist/base/titleBar/TitleBar.svelte.d.ts +22 -0
- package/dist/base/titleBar/title-bar.scss +27 -0
- package/dist/base/titleBar/types.d.ts +17 -0
- package/dist/base/titleBar/types.js +18 -0
- package/dist/componentCite.d.ts +1 -0
- package/dist/componentCite.js +200 -0
- package/dist/controls/autocomplete/AutoComplete.demo.svelte +83 -0
- package/dist/controls/autocomplete/AutoComplete.demo.svelte.d.ts +14 -0
- package/dist/controls/autocomplete/AutoComplete.svelte +133 -0
- package/dist/controls/autocomplete/AutoComplete.svelte.d.ts +35 -0
- package/dist/controls/autocomplete/auto-complete.scss +15 -0
- package/dist/controls/autocomplete/types.d.ts +30 -0
- package/dist/controls/autocomplete/types.js +28 -0
- package/dist/controls/button/Button.demo.svelte +139 -0
- package/dist/controls/button/Button.demo.svelte.d.ts +14 -0
- package/dist/controls/button/Button.svelte +1372 -0
- package/dist/controls/button/Button.svelte.d.ts +40 -0
- package/dist/controls/button/ButtonAction.svelte +1327 -0
- package/dist/controls/button/ButtonAction.svelte.d.ts +45 -0
- package/dist/controls/button/ButtonMenu.svelte +81 -0
- package/dist/controls/button/ButtonMenu.svelte.d.ts +15 -0
- package/dist/controls/button/IconButton.svelte +17 -0
- package/dist/controls/button/IconButton.svelte.d.ts +33 -0
- package/dist/controls/button/button-action.scss +8 -0
- package/dist/controls/button/button-menu.scss +36 -0
- package/dist/controls/button/button.scss +335 -0
- package/dist/controls/button/types.d.ts +56 -0
- package/dist/controls/button/types.js +45 -0
- package/dist/controls/checkbox/Checkbox.demo.svelte +25 -0
- package/dist/controls/checkbox/Checkbox.demo.svelte.d.ts +14 -0
- package/dist/controls/checkbox/Checkbox.svelte +201 -0
- package/dist/controls/checkbox/Checkbox.svelte.d.ts +436 -0
- package/dist/controls/checkbox/checkbox.scss +112 -0
- package/dist/controls/checkbox/types.d.ts +20 -0
- package/dist/controls/checkbox/types.js +24 -0
- package/dist/controls/confirm/Confirm.demo.svelte +46 -0
- package/dist/controls/confirm/Confirm.demo.svelte.d.ts +14 -0
- package/dist/controls/confirm/Confirm.preview.svelte +13 -0
- package/dist/controls/confirm/Confirm.preview.svelte.d.ts +14 -0
- package/dist/controls/confirm/Confirm.svelte +127 -0
- package/dist/controls/confirm/Confirm.svelte.d.ts +35 -0
- package/dist/controls/confirm/confirm.scss +12 -0
- package/dist/controls/confirm/types.d.ts +44 -0
- package/dist/controls/confirm/types.js +39 -0
- package/dist/controls/inplaceedit/InPlaceEdit.demo.svelte +37 -0
- package/dist/controls/inplaceedit/InPlaceEdit.demo.svelte.d.ts +14 -0
- package/dist/controls/inplaceedit/InPlaceEdit.svelte +90 -0
- package/dist/controls/inplaceedit/InPlaceEdit.svelte.d.ts +21 -0
- package/dist/controls/inplaceedit/types.d.ts +11 -0
- package/dist/controls/inplaceedit/types.js +24 -0
- package/dist/controls/progress/Progress.demo.svelte +25 -0
- package/dist/controls/progress/Progress.demo.svelte.d.ts +14 -0
- package/dist/controls/progress/Progress.svelte +40 -0
- package/dist/controls/progress/Progress.svelte.d.ts +21 -0
- package/dist/controls/progress/progress.scss +23 -0
- package/dist/controls/progress/types.d.ts +17 -0
- package/dist/controls/progress/types.js +13 -0
- package/dist/controls/rating/Rating.demo.svelte +42 -0
- package/dist/controls/rating/Rating.demo.svelte.d.ts +14 -0
- package/dist/controls/rating/Rating.svelte +47 -0
- package/dist/controls/rating/Rating.svelte.d.ts +31 -0
- package/dist/controls/rating/rating.scss +9 -0
- package/dist/controls/rating/types.d.ts +19 -0
- package/dist/controls/rating/types.js +24 -0
- package/dist/controls/select/Select.demo.svelte +92 -0
- package/dist/controls/select/Select.demo.svelte.d.ts +14 -0
- package/dist/controls/select/Select.svelte +88 -0
- package/dist/controls/select/Select.svelte.d.ts +44 -0
- package/dist/controls/select/select.scss +13 -0
- package/dist/controls/slider/Slider.demo.svelte +27 -0
- package/dist/controls/slider/Slider.demo.svelte.d.ts +14 -0
- package/dist/controls/slider/Slider.svelte +221 -0
- package/dist/controls/slider/Slider.svelte.d.ts +40 -0
- package/dist/controls/slider/slider.scss +49 -0
- package/dist/controls/slider/types.d.ts +36 -0
- package/dist/controls/slider/types.js +37 -0
- package/dist/controls/stepper/Stepper.demo.svelte +29 -0
- package/dist/controls/stepper/Stepper.demo.svelte.d.ts +14 -0
- package/dist/controls/stepper/Stepper.svelte +46 -0
- package/dist/controls/stepper/Stepper.svelte.d.ts +39 -0
- package/dist/controls/stepper/stepper.scss +23 -0
- package/dist/controls/stepper/types.d.ts +24 -0
- package/dist/controls/stepper/types.js +27 -0
- package/dist/controls/switch/Switch.demo.svelte +54 -0
- package/dist/controls/switch/Switch.demo.svelte.d.ts +14 -0
- package/dist/controls/switch/Switch.svelte +108 -0
- package/dist/controls/switch/Switch.svelte.d.ts +26 -0
- package/dist/controls/switch/switch.scss +73 -0
- package/dist/controls/switch/types.d.ts +24 -0
- package/dist/controls/switch/types.js +10 -0
- package/dist/controls/textfield/TextField.demo.svelte +74 -0
- package/dist/controls/textfield/TextField.demo.svelte.d.ts +14 -0
- package/dist/controls/textfield/TextField.svelte +227 -0
- package/dist/controls/textfield/TextField.svelte.d.ts +37 -0
- package/dist/controls/textfield/textfield.scss +66 -0
- package/dist/controls/textfield/types.d.ts +30 -0
- package/dist/controls/textfield/types.js +23 -0
- package/dist/csss/README.svelte +118 -0
- package/dist/csss/csss.d.ts +81 -0
- package/dist/csss/csss.js +101 -0
- package/dist/csss/csss.scss +8 -0
- package/dist/data/dataList/DataList.demo.svelte +147 -0
- package/dist/data/dataList/DataList.demo.svelte.d.ts +14 -0
- package/dist/data/dataList/DataList.preview.svelte +24 -0
- package/dist/data/dataList/DataList.preview.svelte.d.ts +14 -0
- package/dist/data/dataList/DataList.svelte +366 -0
- package/dist/data/dataList/DataList.svelte.d.ts +61 -0
- package/dist/data/dataList/DataListCell.svelte +161 -0
- package/dist/data/dataList/DataListCell.svelte.d.ts +27 -0
- package/dist/data/dataList/DataListHead.svelte +62 -0
- package/dist/data/dataList/DataListHead.svelte.d.ts +20 -0
- package/dist/data/dataList/DataListRow.svelte +84 -0
- package/dist/data/dataList/DataListRow.svelte.d.ts +16 -0
- package/dist/data/dataList/datalist.scss +157 -0
- package/dist/data/dataList/types.d.ts +138 -0
- package/dist/data/dataList/types.js +83 -0
- package/dist/data/finder/Finder.demo.svelte +51 -0
- package/dist/data/finder/Finder.demo.svelte.d.ts +14 -0
- package/dist/data/finder/Finder.svelte +237 -0
- package/dist/data/finder/Finder.svelte.d.ts +28 -0
- package/dist/data/finder/finder.scss +14 -0
- package/dist/data/finder/types.d.ts +29 -0
- package/dist/data/finder/types.js +23 -0
- package/dist/data/grouper/Grouper.demo.svelte +30 -0
- package/dist/data/grouper/Grouper.demo.svelte.d.ts +14 -0
- package/dist/data/grouper/Grouper.svelte +73 -0
- package/dist/data/grouper/Grouper.svelte.d.ts +39 -0
- package/dist/data/grouper/types.d.ts +48 -0
- package/dist/data/grouper/types.js +115 -0
- package/dist/data/jsoner/Jsoner.svelte +36 -0
- package/dist/data/jsoner/Jsoner.svelte.d.ts +15 -0
- package/dist/data/jsoner/types.d.ts +7 -0
- package/dist/data/jsoner/types.js +1 -0
- package/dist/data/list/List.svelte +12 -0
- package/dist/data/list/List.svelte.d.ts +15 -0
- package/dist/data/list/ListItem.svelte +7 -0
- package/dist/data/list/ListItem.svelte.d.ts +15 -0
- package/dist/data/list/ListTitle.svelte +5 -0
- package/dist/data/list/ListTitle.svelte.d.ts +15 -0
- package/dist/data/loader/Loader.demo.svelte +87 -0
- package/dist/data/loader/Loader.demo.svelte.d.ts +14 -0
- package/dist/data/loader/Loader.preview.svelte +6 -0
- package/dist/data/loader/Loader.preview.svelte.d.ts +14 -0
- package/dist/data/loader/Loader.svelte +139 -0
- package/dist/data/loader/Loader.svelte.d.ts +41 -0
- package/dist/data/loader/loader.scss +50 -0
- package/dist/data/loader/types.d.ts +36 -0
- package/dist/data/loader/types.js +53 -0
- package/dist/data/sorter/Sorter.demo.svelte +59 -0
- package/dist/data/sorter/Sorter.demo.svelte.d.ts +14 -0
- package/dist/data/sorter/Sorter.svelte +73 -0
- package/dist/data/sorter/Sorter.svelte.d.ts +24 -0
- package/dist/data/sorter/Sorterer.svelte +35 -0
- package/dist/data/sorter/Sorterer.svelte.d.ts +15 -0
- package/dist/data/sorter/sorterer.scss +11 -0
- package/dist/data/sorter/types.d.ts +39 -0
- package/dist/data/sorter/types.js +1 -0
- package/dist/index.d.ts +285 -0
- package/dist/index.js +286 -0
- package/dist/navigation/drawer/Drawer.demo.svelte +48 -0
- package/dist/navigation/drawer/Drawer.demo.svelte.d.ts +14 -0
- package/dist/navigation/drawer/Drawer.svelte +249 -0
- package/dist/navigation/drawer/Drawer.svelte.d.ts +59 -0
- package/dist/navigation/drawer/drawer.scss +65 -0
- package/dist/navigation/drawer/types.d.ts +45 -0
- package/dist/navigation/drawer/types.js +35 -0
- package/dist/navigation/tabs/Tabs.demo.svelte +78 -0
- package/dist/navigation/tabs/Tabs.demo.svelte.d.ts +14 -0
- package/dist/navigation/tabs/Tabs.preview.svelte +19 -0
- package/dist/navigation/tabs/Tabs.preview.svelte.d.ts +14 -0
- package/dist/navigation/tabs/Tabs.svelte +242 -0
- package/dist/navigation/tabs/Tabs.svelte.d.ts +45 -0
- package/dist/navigation/tabs/tabs.scss +92 -0
- package/dist/navigation/tabs/types.d.ts +40 -0
- package/dist/navigation/tabs/types.js +45 -0
- package/dist/styles/slotui-mixins.scss +161 -0
- package/dist/styles/slotui-presets.scss +56 -0
- package/dist/styles/slotuisheet/SlotuiSheet.svelte +700 -0
- package/dist/styles/slotuisheet/SlotuiSheet.svelte.d.ts +15 -0
- package/dist/styles/slotuisheet/SlotyuiSheet.demo.svelte +24 -0
- package/dist/styles/slotuisheet/SlotyuiSheet.demo.svelte.d.ts +14 -0
- package/dist/styles/slotuisheet/containerConfig.css +8 -0
- package/dist/styles/slotuisheet/slotui-sheet.scss +192 -0
- package/dist/styles/slotuisheet/stylesheet-container.scss +147 -0
- package/dist/styles/slotuisheet/stylesheet.scss +148 -0
- package/dist/styles/slotuisheet/types.d.ts +10 -0
- package/dist/styles/slotuisheet/types.js +1 -0
- package/dist/styles/slotuisheet/utils.d.ts +14 -0
- package/dist/styles/slotuisheet/utils.js +42 -0
- package/dist/types/index.d.ts +202 -0
- package/dist/types/index.js +161 -0
- package/dist/types/slotui-ambient.d.ts +27 -0
- package/dist/ui/bootstrapp/BootStrApp.svelte +92 -0
- package/dist/ui/bootstrapp/BootStrApp.svelte.d.ts +16 -0
- package/dist/ui/chromeFrame/ChromeFrame.svelte +69 -0
- package/dist/ui/chromeFrame/ChromeFrame.svelte.d.ts +17 -0
- package/dist/ui/chromeFrame/ChromeFrameButtonList.svelte +40 -0
- package/dist/ui/chromeFrame/ChromeFrameButtonList.svelte.d.ts +18 -0
- package/dist/ui/chromeFrame/ChromeFrameList.svelte +67 -0
- package/dist/ui/chromeFrame/ChromeFrameList.svelte.d.ts +24 -0
- package/dist/ui/chromeFrame/chrome-frame.scss +34 -0
- package/dist/ui/chromeFrame/chromeFrame.store.js +122 -0
- package/dist/ui/chromeFrame/chromeFrame.utils.d.ts +12 -0
- package/dist/ui/chromeFrame/chromeFrame.utils.js +29 -0
- package/dist/ui/chromeFrame/types.d.ts +40 -0
- package/dist/ui/chromeFrame/types.js +1 -0
- package/dist/ui/frame/Frame.demo.svelte +46 -0
- package/dist/ui/frame/Frame.demo.svelte.d.ts +14 -0
- package/dist/ui/frame/Frame.svelte +135 -0
- package/dist/ui/frame/Frame.svelte.d.ts +44 -0
- package/dist/ui/frame/frame.scss +46 -0
- package/dist/ui/frame/types.d.ts +31 -0
- package/dist/ui/frame/types.js +9 -0
- package/dist/ui/login/Login.demo.svelte +54 -0
- package/dist/ui/login/Login.demo.svelte.d.ts +14 -0
- package/dist/ui/login/Login.svelte +128 -0
- package/dist/ui/login/Login.svelte.d.ts +39 -0
- package/dist/ui/login/store.js +16 -0
- package/dist/ui/login/types.d.ts +31 -0
- package/dist/ui/login/types.js +28 -0
- package/dist/ui/marquee/Marque.demo.svelte +34 -0
- package/dist/ui/marquee/Marque.demo.svelte.d.ts +14 -0
- package/dist/ui/marquee/Marquee.svelte +110 -0
- package/dist/ui/marquee/Marquee.svelte.d.ts +28 -0
- package/dist/ui/marquee/marquee.scss +32 -0
- package/dist/ui/marquee/types.d.ts +19 -0
- package/dist/ui/marquee/types.js +23 -0
- package/dist/ui/menu/Menu.svelte +5 -0
- package/dist/ui/menu/Menu.svelte.d.ts +16 -0
- package/dist/ui/menu/MenuItem.svelte +5 -0
- package/dist/ui/menu/MenuItem.svelte.d.ts +16 -0
- package/dist/ui/menu/MenuTitle.svelte +116 -0
- package/dist/ui/menu/MenuTitle.svelte.d.ts +15 -0
- package/dist/ui/menu/menu.scss +56 -0
- package/dist/ui/menu/types.d.ts +81 -0
- package/dist/ui/menu/types.js +1 -0
- package/dist/ui/menuList/MenuList.demo.svelte +68 -0
- package/dist/ui/menuList/MenuList.demo.svelte.d.ts +14 -0
- package/dist/ui/menuList/MenuList.svelte +514 -0
- package/dist/ui/menuList/MenuList.svelte.d.ts +61 -0
- package/dist/ui/menuList/MenuListItem.svelte +504 -0
- package/dist/ui/menuList/MenuListItem.svelte.d.ts +16 -0
- package/dist/ui/menuList/MenuListTitle.svelte +391 -0
- package/dist/ui/menuList/MenuListTitle.svelte.d.ts +15 -0
- package/dist/ui/menuList/menu-list.scss +118 -0
- package/dist/ui/menuList/types.d.ts +112 -0
- package/dist/ui/menuList/types.js +25 -0
- package/dist/ui/panel/Panel.demo.svelte +160 -0
- package/dist/ui/panel/Panel.demo.svelte.d.ts +14 -0
- package/dist/ui/panel/Panel.svelte +112 -0
- package/dist/ui/panel/Panel.svelte.d.ts +23 -0
- package/dist/ui/panel/PanelGrid.svelte +68 -0
- package/dist/ui/panel/PanelGrid.svelte.d.ts +15 -0
- package/dist/ui/panel/PanelSlide.svelte +148 -0
- package/dist/ui/panel/PanelSlide.svelte.d.ts +43 -0
- package/dist/ui/panel/Paneler.svelte +36 -0
- package/dist/ui/panel/Paneler.svelte.d.ts +24 -0
- package/dist/ui/panel/panel.scss +32 -0
- package/dist/ui/panel/types.d.ts +36 -0
- package/dist/ui/panel/types.js +1 -0
- package/dist/ui/popper/Popper.demo.svelte +84 -0
- package/dist/ui/popper/Popper.demo.svelte.d.ts +14 -0
- package/dist/ui/popper/Popper.svelte +232 -0
- package/dist/ui/popper/Popper.svelte.d.ts +52 -0
- package/dist/ui/popper/actions.d.ts +5 -0
- package/dist/ui/popper/actions.js +26 -0
- package/dist/ui/popper/popper.scss +108 -0
- package/dist/ui/popper/types.d.ts +34 -0
- package/dist/ui/popper/types.js +1 -0
- package/dist/ui/popper/usePopper.d.ts +16 -0
- package/dist/ui/popper/usePopper.js +26 -0
- package/dist/ui/preview/Preview.svelte +46 -0
- package/dist/ui/preview/Preview.svelte.d.ts +15 -0
- package/dist/ui/preview/Preview.svelte.demo +0 -0
- package/dist/ui/preview/types.d.ts +18 -0
- package/dist/ui/preview/types.js +1 -0
- package/dist/ui/serviceBox/ServiceBox.svelte +45 -0
- package/dist/ui/serviceBox/ServiceBox.svelte.d.ts +14 -0
- package/dist/ui/startMenu/BootMenu.svelte +177 -0
- package/dist/ui/startMenu/BootMenu.svelte.d.ts +14 -0
- package/dist/ui/startMenu/boot-menu.scss +86 -0
- package/dist/ui/taskbar/TaskBarContent.svelte +19 -0
- package/dist/ui/taskbar/TaskBarContent.svelte.d.ts +16 -0
- package/dist/ui/taskbar/Taskbar.svelte +46 -0
- package/dist/ui/taskbar/Taskbar.svelte.d.ts +15 -0
- package/dist/ui/taskbar/taskbar.scss +28 -0
- package/dist/ui/taskbar/types.d.ts +11 -0
- package/dist/ui/taskbar/types.js +1 -0
- package/dist/ui/themeswitcher/ThemeSwitcher.svelte +16 -0
- package/dist/ui/themeswitcher/ThemeSwitcher.svelte.d.ts +16 -0
- package/dist/ui/toast/Toast.demo.svelte +14 -0
- package/dist/ui/toast/Toast.demo.svelte.d.ts +14 -0
- package/dist/ui/toast/Toast.svelte +52 -0
- package/dist/ui/toast/Toast.svelte.d.ts +15 -0
- package/dist/ui/toast/Toaster.svelte +16 -0
- package/dist/ui/toast/Toaster.svelte.d.ts +17 -0
- package/dist/ui/toast/store.d.ts +4 -0
- package/dist/ui/toast/store.js +2 -0
- package/dist/ui/toast/types.d.ts +26 -0
- package/dist/ui/toast/types.js +1 -0
- package/dist/ui/toggleBar/ToggleBar.demo.svelte +105 -0
- package/dist/ui/toggleBar/ToggleBar.demo.svelte.d.ts +14 -0
- package/dist/ui/toggleBar/ToggleBar.svelte +98 -0
- package/dist/ui/toggleBar/ToggleBar.svelte.d.ts +15 -0
- package/dist/ui/toggleBar/toggle-bar.scss +45 -0
- package/dist/ui/toggleBar/types.d.ts +17 -0
- package/dist/ui/toggleBar/types.js +1 -0
- package/dist/ui/toolBar/ToolBar.demo.svelte +88 -0
- package/dist/ui/toolBar/ToolBar.demo.svelte.d.ts +14 -0
- package/dist/ui/toolBar/ToolBar.svelte +54 -0
- package/dist/ui/toolBar/ToolBar.svelte.d.ts +15 -0
- package/dist/ui/toolBar/toolbar.scss +32 -0
- package/dist/ui/toolBar/types.d.ts +11 -0
- package/dist/ui/toolBar/types.js +1 -0
- package/dist/ui/tree/Tree.demo.svelte +73 -0
- package/dist/ui/tree/Tree.demo.svelte.d.ts +14 -0
- package/dist/ui/tree/Tree.preview.svelte +16 -0
- package/dist/ui/tree/Tree.preview.svelte.d.ts +14 -0
- package/dist/ui/tree/Tree.svelte +184 -0
- package/dist/ui/tree/Tree.svelte.d.ts +45 -0
- package/dist/ui/tree/tree.scss +38 -0
- package/dist/ui/tree/tree.utils.d.ts +2 -0
- package/dist/ui/tree/tree.utils.js +29 -0
- package/dist/ui/tree/types.d.ts +15 -0
- package/dist/ui/tree/types.js +1 -0
- package/dist/ui/window/Window.demo.svelte +103 -0
- package/dist/ui/window/Window.demo.svelte.d.ts +14 -0
- package/dist/ui/window/Window.svelte +232 -0
- package/dist/ui/window/Window.svelte.d.ts +66 -0
- package/dist/ui/window/actions.svelte.d.ts +37 -0
- package/dist/ui/window/actions.svelte.js +31 -0
- package/dist/ui/window/store.d.ts +13 -0
- package/dist/ui/window/store.js +14 -0
- package/dist/ui/window/types.d.ts +61 -0
- package/dist/ui/window/types.js +74 -0
- package/dist/ui/window/window.scss +66 -0
- package/dist/utils/content/Content.svelte +178 -0
- package/dist/utils/content/Content.svelte.d.ts +24 -0
- package/dist/utils/content/types.d.ts +31 -0
- package/dist/utils/content/types.js +1 -0
- package/dist/utils/contextRooter/ContextRooter.demo.svelte +29 -0
- package/dist/utils/contextRooter/ContextRooter.demo.svelte.d.ts +14 -0
- package/dist/utils/contextRooter/ContextRooter.svelte +4 -0
- package/dist/utils/contextRooter/ContextRooter.svelte.d.ts +17 -0
- package/dist/utils/css/Css.demo.svelte +4 -0
- package/dist/utils/css/Css.demo.svelte.d.ts +14 -0
- package/dist/utils/css/Css.svelte +63 -0
- package/dist/utils/css/Css.svelte.d.ts +14 -0
- package/dist/utils/effects/transitions.d.ts +44 -0
- package/dist/utils/effects/transitions.js +77 -0
- package/dist/utils/engine/elem.d.ts +9 -0
- package/dist/utils/engine/elem.js +106 -0
- package/dist/utils/engine/engine.d.ts +1 -0
- package/dist/utils/engine/engine.js +1 -0
- package/dist/utils/engine/presets.d.ts +14 -0
- package/dist/utils/engine/presets.js +15 -0
- package/dist/utils/engine/site.utils.d.ts +10 -0
- package/dist/utils/engine/site.utils.js +4 -0
- package/dist/utils/engine/stator.d.ts +9 -0
- package/dist/utils/engine/stator.js +47 -0
- package/dist/utils/engine/utils.d.ts +29 -0
- package/dist/utils/engine/utils.js +112 -0
- package/dist/utils/engine/wactions.utils.js +8 -0
- package/dist/utils/looper/Looper.demo.svelte +34 -0
- package/dist/utils/looper/Looper.demo.svelte.d.ts +14 -0
- package/dist/utils/looper/Looper.svelte +42 -0
- package/dist/utils/looper/Looper.svelte.d.ts +16 -0
- package/dist/utils/looper/types.d.ts +24 -0
- package/dist/utils/looper/types.js +46 -0
- package/dist/utils/slotted/Slotted.svelte +12 -0
- package/dist/utils/slotted/Slotted.svelte.d.ts +19 -0
- package/dist/utils/stylesheet/StyleSheet.demo.svelte +24 -0
- package/dist/utils/stylesheet/StyleSheet.demo.svelte.d.ts +14 -0
- package/dist/utils/stylesheet/StyleSheet.svelte +403 -0
- package/dist/utils/stylesheet/StyleSheet.svelte.d.ts +15 -0
- package/dist/utils/stylesheet/containerConfig.css +8 -0
- package/dist/utils/stylesheet/stylesheet.scss +147 -0
- package/dist/utils/stylesheet/types.d.ts +10 -0
- package/dist/utils/stylesheet/types.js +1 -0
- package/dist/utils/stylesheet/utils.d.ts +14 -0
- package/dist/utils/stylesheet/utils.js +42 -0
- package/dist/utils/uses/autofocus/autofocus.d.ts +1 -0
- package/dist/utils/uses/autofocus/autofocus.js +3 -0
- package/dist/utils/uses/clickAway/clickAway.d.ts +9 -0
- package/dist/utils/uses/clickAway/clickAway.js +26 -0
- package/dist/utils/uses/draggabler.d.ts +8 -0
- package/dist/utils/uses/draggabler.js +35 -0
- package/dist/utils/uses/event.d.ts +10 -0
- package/dist/utils/uses/event.js +10 -0
- package/dist/utils/uses/makeOnTop.d.ts +4 -0
- package/dist/utils/uses/makeOnTop.js +11 -0
- package/dist/utils/uses/navigation.d.ts +8 -0
- package/dist/utils/uses/navigation.js +79 -0
- package/dist/utils/uses/positioner.d.ts +7 -0
- package/dist/utils/uses/positioner.js +18 -0
- package/dist/utils/uses/resizer/resizer.d.ts +7 -0
- package/dist/utils/uses/resizer/resizer.js +76 -0
- package/dist/utils/uses/stickTo/stickTo.d.ts +26 -0
- package/dist/utils/uses/stickTo/stickTo.js +138 -0
- package/dist/utils/uses/sx4u/sx4u.d.ts +34 -0
- package/dist/utils/uses/sx4u/sx4u.js +148 -0
- package/dist/utils/uses/sx4u/sx4uPreprocess.d.ts +5 -0
- package/dist/utils/uses/sx4u/sx4uPreprocess.js +34 -0
- package/dist/utils/uses/toggler.d.ts +13 -0
- package/dist/utils/uses/toggler.js +33 -0
- package/package.json +101 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { tallPreset } from '../../types/index.js';
|
|
2
|
+
import { demoerArgs } from '../demoer/demoer.utils.js';
|
|
3
|
+
export const cartoucheDemoValues = {
|
|
4
|
+
primary: {
|
|
5
|
+
type: 'string',
|
|
6
|
+
values: ['A smart title', 'Second title']
|
|
7
|
+
},
|
|
8
|
+
secondary: {
|
|
9
|
+
type: 'string',
|
|
10
|
+
values: [undefined, 'A smart subtitle', 'Second subtitle'],
|
|
11
|
+
default: undefined
|
|
12
|
+
},
|
|
13
|
+
icon: {
|
|
14
|
+
type: 'icon',
|
|
15
|
+
values: ['mdi:window', 'mdi:user', undefined]
|
|
16
|
+
},
|
|
17
|
+
stacked: {
|
|
18
|
+
type: 'boolean',
|
|
19
|
+
default: false
|
|
20
|
+
},
|
|
21
|
+
showTitleDivider: {
|
|
22
|
+
type: 'boolean',
|
|
23
|
+
default: false
|
|
24
|
+
},
|
|
25
|
+
bordered: {
|
|
26
|
+
type: 'boolean',
|
|
27
|
+
default: false
|
|
28
|
+
},
|
|
29
|
+
isOpen: {
|
|
30
|
+
type: 'boolean',
|
|
31
|
+
default: true
|
|
32
|
+
},
|
|
33
|
+
tall: {
|
|
34
|
+
type: 'tall',
|
|
35
|
+
default: tallPreset.default
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
export let { parameters, componentArgs } = demoerArgs(cartoucheDemoValues);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<script lang="ts">import ComponentDemo from "../demoer/DemoerComponent.svelte";
|
|
2
|
+
import Demoer from "../demoer/Demoer.svelte";
|
|
3
|
+
import DemoPage from "../demoer/DemoPage.svelte";
|
|
4
|
+
import { chipperDemoValues } from "./types.js";
|
|
5
|
+
import { defaultsArgs } from "../demoer/demoer.utils.js";
|
|
6
|
+
import Chipper from "./Chipper.svelte";
|
|
7
|
+
import { parameters, componentArgs } from "./types.js";
|
|
8
|
+
let codeSlot = `
|
|
9
|
+
<Chipper >
|
|
10
|
+
<div class="pad-2">some content</div>
|
|
11
|
+
{#snippet chipperChip()}
|
|
12
|
+
<div class="theme-bg-primary radius-small w-full h-full"></div>
|
|
13
|
+
{/snippet}
|
|
14
|
+
</Chipper>`;
|
|
15
|
+
let codeProps = `
|
|
16
|
+
<Chipper
|
|
17
|
+
content="<div class='pad'>Some props html content</div>"
|
|
18
|
+
color="red" />`;
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<ComponentDemo component="Chipper">
|
|
22
|
+
<DemoPage component="Chipper" code={codeSlot}>
|
|
23
|
+
<Demoer {parameters} {componentArgs}>
|
|
24
|
+
{#snippet children({ activeParams })}
|
|
25
|
+
<Chipper {...activeParams}>
|
|
26
|
+
<div class="pad-2">some content</div>
|
|
27
|
+
{#snippet chipperChip()}
|
|
28
|
+
<div class="theme-bg-primary radius-small w-full h-full"></div>
|
|
29
|
+
{/snippet}
|
|
30
|
+
</Chipper>
|
|
31
|
+
{/snippet}
|
|
32
|
+
</Demoer>
|
|
33
|
+
</DemoPage>
|
|
34
|
+
<DemoPage title="Without slots" component="Chipper" code={codeProps}>
|
|
35
|
+
<Demoer {parameters} {componentArgs}>
|
|
36
|
+
{#snippet children({ activeParams })}
|
|
37
|
+
<Chipper {...activeParams} />
|
|
38
|
+
{/snippet}
|
|
39
|
+
</Demoer>
|
|
40
|
+
</DemoPage>
|
|
41
|
+
</ComponentDemo>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
type ChipperProps_ = typeof __propDef.props;
|
|
10
|
+
export { ChipperProps_ as ChipperProps };
|
|
11
|
+
export type ChipperEvents = typeof __propDef.events;
|
|
12
|
+
export type ChipperSlots = typeof __propDef.slots;
|
|
13
|
+
export default class Chipper extends SvelteComponent<ChipperProps_, ChipperEvents, ChipperSlots> {
|
|
14
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
<script lang="ts">import Slotted from "../../utils/slotted/Slotted.svelte";
|
|
2
|
+
let {
|
|
3
|
+
class: className = "",
|
|
4
|
+
style,
|
|
5
|
+
element = $bindable(),
|
|
6
|
+
position = "bottom",
|
|
7
|
+
theme: status = "primary",
|
|
8
|
+
color = "",
|
|
9
|
+
content = "",
|
|
10
|
+
showChip = true,
|
|
11
|
+
chipperChip,
|
|
12
|
+
children
|
|
13
|
+
} = $props();
|
|
14
|
+
let cssColor = $derived(color ?? (status ? `var(--sld-color-${status})` : ""));
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<div bind:this={element} style="{style};position:relative;" class="chipper {className} ">
|
|
18
|
+
<Slotted child={children}>
|
|
19
|
+
{#if content}
|
|
20
|
+
<div class="chipper-content">{@html content ?? ''}</div>
|
|
21
|
+
{/if}
|
|
22
|
+
</Slotted>
|
|
23
|
+
|
|
24
|
+
<chip class="chipper-chip" data-position={position} style:--css-button-chip-color={cssColor}>
|
|
25
|
+
{#if showChip}
|
|
26
|
+
<Slotted child={chipperChip} />
|
|
27
|
+
{/if}
|
|
28
|
+
</chip>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<style>:root {
|
|
32
|
+
--chipper-gap: var(--sld-gap-tiny);
|
|
33
|
+
--chipper-radius: var(--sld-radius-large);
|
|
34
|
+
--chipper-chip-color: var(--css-button-chip-color, var(--sld-color-primary));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.chipper {
|
|
38
|
+
position: relative;
|
|
39
|
+
gap: var(--chipper-gap);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.chipper .chipper-content {
|
|
43
|
+
padding: 0.5rem;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.chipper .chipper-chip {
|
|
47
|
+
display: block;
|
|
48
|
+
position: absolute;
|
|
49
|
+
z-index: 2;
|
|
50
|
+
border-radius: var(--chipper-radius);
|
|
51
|
+
transition: all 0.25s;
|
|
52
|
+
max-height: 100%;
|
|
53
|
+
background-color: var(--chipper-chip-color);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.chipper .chipper-chip[data-position=left] {
|
|
57
|
+
top: 2px;
|
|
58
|
+
left: 2px;
|
|
59
|
+
height: 100%;
|
|
60
|
+
width: 3px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.chipper .chipper-chip[data-position=right] {
|
|
64
|
+
top: 2px;
|
|
65
|
+
right: 2px;
|
|
66
|
+
height: 130px;
|
|
67
|
+
width: 3px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.chipper .chipper-chip[data-position=top] {
|
|
71
|
+
height: 4px;
|
|
72
|
+
top: 2px;
|
|
73
|
+
left: 50%;
|
|
74
|
+
transform: translate(-50%, 0);
|
|
75
|
+
width: 50%;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.chipper .chipper-chip[data-position=bottom] {
|
|
79
|
+
height: 4px;
|
|
80
|
+
bottom: 2px;
|
|
81
|
+
left: 50%;
|
|
82
|
+
transform: translate(-50%, 0);
|
|
83
|
+
width: 50%;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.chipper .chipper-chip .defaultChip,
|
|
87
|
+
.chipper .chipper-chip [slot=chipperChip] {
|
|
88
|
+
display: block;
|
|
89
|
+
height: 100%;
|
|
90
|
+
width: 100%;
|
|
91
|
+
min-height: 3px;
|
|
92
|
+
background-color: var(--chipper-chip-color);
|
|
93
|
+
}</style>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { ElementProps } from '../../types/index.js';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
position?: ElementProps["position"];
|
|
6
|
+
theme?: "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | "light" | "medium" | "dark";
|
|
7
|
+
color?: string;
|
|
8
|
+
content?: string;
|
|
9
|
+
showChip?: boolean;
|
|
10
|
+
chipperChip?: import("svelte").Snippet;
|
|
11
|
+
'anchor-for'?: string;
|
|
12
|
+
element?: HTMLElement;
|
|
13
|
+
class?: string;
|
|
14
|
+
style?: string;
|
|
15
|
+
container?: `inline` | `size` | `normal`;
|
|
16
|
+
hideMaxWidth?: string;
|
|
17
|
+
hideMaxHeight?: string;
|
|
18
|
+
hideMinWidth?: string;
|
|
19
|
+
hideMinHeight?: string;
|
|
20
|
+
children?: import("svelte").Snippet<[any]>;
|
|
21
|
+
};
|
|
22
|
+
events: {
|
|
23
|
+
[evt: string]: CustomEvent<any>;
|
|
24
|
+
};
|
|
25
|
+
slots: {};
|
|
26
|
+
};
|
|
27
|
+
type ChipperProps_ = typeof __propDef.props;
|
|
28
|
+
export { ChipperProps_ as ChipperProps };
|
|
29
|
+
export type ChipperEvents = typeof __propDef.events;
|
|
30
|
+
export type ChipperSlots = typeof __propDef.slots;
|
|
31
|
+
export default class Chipper extends SvelteComponent<ChipperProps_, ChipperEvents, ChipperSlots> {
|
|
32
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
@import "../../styles/slotui-mixins.scss";
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--chipper-gap: var(--sld-gap-tiny);
|
|
5
|
+
--chipper-radius: var(--sld-radius-large);
|
|
6
|
+
--chipper-chip-color: var(--css-button-chip-color, var(--sld-color-primary));
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.chipper {
|
|
10
|
+
position: relative;
|
|
11
|
+
gap: var(--chipper-gap);
|
|
12
|
+
|
|
13
|
+
.chipper-content {
|
|
14
|
+
padding: 0.5rem;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.chipper-chip {
|
|
18
|
+
display: block;
|
|
19
|
+
position: absolute;
|
|
20
|
+
z-index: 2;
|
|
21
|
+
border-radius: var(--chipper-radius);
|
|
22
|
+
transition: all 0.25s;
|
|
23
|
+
max-height: 100%;
|
|
24
|
+
background-color: var(--chipper-chip-color);
|
|
25
|
+
|
|
26
|
+
&[data-position="left"] {
|
|
27
|
+
top: 2px;
|
|
28
|
+
left: 2px;
|
|
29
|
+
height: 100%;
|
|
30
|
+
width: 3px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&[data-position="right"] {
|
|
34
|
+
top: 2px;
|
|
35
|
+
right: 2px;
|
|
36
|
+
height: 130px;
|
|
37
|
+
width: 3px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&[data-position="top"] {
|
|
41
|
+
height: 4px;
|
|
42
|
+
top: 2px;
|
|
43
|
+
left: 50%;
|
|
44
|
+
transform: translate(-50%, 0);
|
|
45
|
+
width: 50%;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&[data-position="bottom"] {
|
|
49
|
+
height: 4px;
|
|
50
|
+
bottom: 2px;
|
|
51
|
+
left: 50%;
|
|
52
|
+
transform: translate(-50%, 0);
|
|
53
|
+
width: 50%;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.defaultChip,
|
|
57
|
+
[slot="chipperChip"] {
|
|
58
|
+
display: block;
|
|
59
|
+
height: 100%;
|
|
60
|
+
width: 100%;
|
|
61
|
+
min-height: 3px;
|
|
62
|
+
background-color: var(--chipper-chip-color);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { CommonProps, ElementProps } from '../../types/index.js';
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
import type { DemoerStoryProps } from '../demoer/types.js';
|
|
4
|
+
export interface ChipperProps extends CommonProps {
|
|
5
|
+
/** position of the chipper */
|
|
6
|
+
position?: ElementProps['position'];
|
|
7
|
+
/** status of the chip */
|
|
8
|
+
theme?: 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger' | 'light' | 'medium' | 'dark';
|
|
9
|
+
/** css color code for the chip */
|
|
10
|
+
color?: string;
|
|
11
|
+
/** text or html is snippet is not used */
|
|
12
|
+
content?: string;
|
|
13
|
+
/** show or hide the chip */
|
|
14
|
+
showChip?: boolean;
|
|
15
|
+
chipperChip?: Snippet;
|
|
16
|
+
}
|
|
17
|
+
export declare const chipperDemoValues: DemoerStoryProps<ChipperProps>;
|
|
18
|
+
export declare let parameters: DemoerStoryProps<ChipperProps>, componentArgs: ChipperProps;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { demoerArgs } from '../demoer/demoer.utils.js';
|
|
2
|
+
export const chipperDemoValues = {
|
|
3
|
+
showChip: {
|
|
4
|
+
type: 'boolean',
|
|
5
|
+
default: true
|
|
6
|
+
},
|
|
7
|
+
position: {
|
|
8
|
+
type: 'position'
|
|
9
|
+
},
|
|
10
|
+
theme: {
|
|
11
|
+
type: 'theme'
|
|
12
|
+
},
|
|
13
|
+
color: {
|
|
14
|
+
type: 'color',
|
|
15
|
+
values: ['#ff0000', '#00ff00', '#0000ff']
|
|
16
|
+
},
|
|
17
|
+
content: {
|
|
18
|
+
type: 'string',
|
|
19
|
+
values: ['Some content', 'Other content']
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
export let { parameters, componentArgs } = demoerArgs(chipperDemoValues);
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
<script lang="ts">import { getContext, tick } from "svelte";
|
|
2
|
+
import { resizer } from "../../utils/uses/resizer/resizer.js";
|
|
3
|
+
import Slotted from "../../utils/slotted/Slotted.svelte";
|
|
4
|
+
import { onEvent } from "../../utils/uses/event.js";
|
|
5
|
+
let columner = getContext("columner");
|
|
6
|
+
let {
|
|
7
|
+
class: className = "",
|
|
8
|
+
element = $bindable(),
|
|
9
|
+
style = "",
|
|
10
|
+
columnId = crypto.randomUUID(),
|
|
11
|
+
bottomSlot,
|
|
12
|
+
drawerTop,
|
|
13
|
+
children,
|
|
14
|
+
...rest
|
|
15
|
+
} = $props();
|
|
16
|
+
if (!$columner[columnId]) {
|
|
17
|
+
$columner[columnId] = {
|
|
18
|
+
columnId: Object.keys($columner).length,
|
|
19
|
+
state: "default",
|
|
20
|
+
defaultStyle: {}
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
let width;
|
|
24
|
+
function resizeStart() {
|
|
25
|
+
}
|
|
26
|
+
async function resizeOn(data) {
|
|
27
|
+
await tick();
|
|
28
|
+
width = data.detail.width + "px";
|
|
29
|
+
}
|
|
30
|
+
function resizeEnd() {
|
|
31
|
+
}
|
|
32
|
+
</script>
|
|
33
|
+
|
|
34
|
+
<div
|
|
35
|
+
bind:this={element}
|
|
36
|
+
id={columnId}
|
|
37
|
+
class="column {className}"
|
|
38
|
+
use:resizer
|
|
39
|
+
use:onEvent={{ event: 'on:resizer:start', action: resizeStart }}
|
|
40
|
+
use:onEvent={{ event: 'on:resizer:resize', action: resizeOn }}
|
|
41
|
+
use:onEvent={{ event: 'on:resizer:end', action: resizeEnd }}
|
|
42
|
+
style:width
|
|
43
|
+
{...rest}
|
|
44
|
+
>
|
|
45
|
+
<Slotted child={drawerTop}></Slotted>
|
|
46
|
+
<div class="content">
|
|
47
|
+
{width}
|
|
48
|
+
|
|
49
|
+
<Slotted child={children}></Slotted>
|
|
50
|
+
</div>
|
|
51
|
+
<Slotted child={bottomSlot}></Slotted>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
<style>.column {
|
|
55
|
+
height: 100%;
|
|
56
|
+
width: 100%;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
display: flex;
|
|
59
|
+
min-width: 110px;
|
|
60
|
+
position: relative;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
border-right: 1px solid var(--sld-column-bordercolor, var(--sld-color-foreground-alpha-high));
|
|
63
|
+
box-shadow: var(--sld-elevation-1);
|
|
64
|
+
}
|
|
65
|
+
.column [data-resizer=true] {
|
|
66
|
+
background-color: red;
|
|
67
|
+
}
|
|
68
|
+
.column .content {
|
|
69
|
+
flex: 1;
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
}
|
|
72
|
+
.column .commandBar {
|
|
73
|
+
position: sticky;
|
|
74
|
+
top: 0;
|
|
75
|
+
}</style>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { ColumnProps } from './types.js';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: ColumnProps;
|
|
5
|
+
events: {
|
|
6
|
+
[evt: string]: CustomEvent<any>;
|
|
7
|
+
};
|
|
8
|
+
slots: {};
|
|
9
|
+
};
|
|
10
|
+
type ColumnProps_ = typeof __propDef.props;
|
|
11
|
+
export { ColumnProps_ as ColumnProps };
|
|
12
|
+
export type ColumnEvents = typeof __propDef.events;
|
|
13
|
+
export type ColumnSlots = typeof __propDef.slots;
|
|
14
|
+
export default class Column extends SvelteComponent<ColumnProps_, ColumnEvents, ColumnSlots> {
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script lang="ts">import ComponentDemo from "../demoer/DemoerComponent.svelte";
|
|
2
|
+
import Column from "./Column.svelte";
|
|
3
|
+
import Columner from "./Columner.svelte";
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
todo
|
|
7
|
+
<ComponentDemo component="Column" cite="What else, cells ? We are columns <br /> D. Viesas, 1964">
|
|
8
|
+
<Columner style="height:350px">
|
|
9
|
+
<Column style="width:150px">1</Column>
|
|
10
|
+
<Column style="width:150px">2</Column>
|
|
11
|
+
<Column style="width:150px">2</Column>
|
|
12
|
+
<Column style="width:150px;right:0">3</Column>
|
|
13
|
+
</Columner>
|
|
14
|
+
</ComponentDemo>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type ColumnerProps = typeof __propDef.props;
|
|
10
|
+
export type ColumnerEvents = typeof __propDef.events;
|
|
11
|
+
export type ColumnerSlots = typeof __propDef.slots;
|
|
12
|
+
export default class Columner extends SvelteComponent<ColumnerProps, ColumnerEvents, ColumnerSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script lang="ts">import { setContext } from "svelte";
|
|
2
|
+
import { writable } from "svelte/store";
|
|
3
|
+
const columner = writable({});
|
|
4
|
+
setContext("columner", columner);
|
|
5
|
+
let { children, ...restProps } = $props();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<div class="columner" {...restProps}>
|
|
9
|
+
{#if children}
|
|
10
|
+
{@render children()}
|
|
11
|
+
{/if}
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<style>.columner {
|
|
15
|
+
display: flex;
|
|
16
|
+
height: 100%;
|
|
17
|
+
position: relative;
|
|
18
|
+
}</style>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { type Snippet } from 'svelte';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
children: Snippet;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {};
|
|
11
|
+
};
|
|
12
|
+
export type ColumnerProps = typeof __propDef.props;
|
|
13
|
+
export type ColumnerEvents = typeof __propDef.events;
|
|
14
|
+
export type ColumnerSlots = typeof __propDef.slots;
|
|
15
|
+
export default class Columner extends SvelteComponent<ColumnerProps, ColumnerEvents, ColumnerSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CommonProps } from '../../types/index.js';
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
export type ColumnProps = CommonProps & {
|
|
4
|
+
/** unique id of the column */
|
|
5
|
+
columnId: string;
|
|
6
|
+
/** snippet for the top of the drawer */
|
|
7
|
+
drawerTop?: Snippet;
|
|
8
|
+
/** snippet for the bottom of the column */
|
|
9
|
+
bottomSlot?: Snippet;
|
|
10
|
+
};
|
|
11
|
+
export type ColumnerStoreType = Record<string, ColumnType>;
|
|
12
|
+
export interface ColumnType {
|
|
13
|
+
columnId: string;
|
|
14
|
+
state: keyof typeof states;
|
|
15
|
+
}
|
|
16
|
+
declare const states: string[];
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<script lang="ts">import ComponentDemo from "../demoer/DemoerComponent.svelte";
|
|
2
|
+
import { Demoer } from "../../../sitedata/slotuiComponents.js";
|
|
3
|
+
import Icon from "../icon/Icon.svelte";
|
|
4
|
+
import DemoPage from "../demoer/DemoPage.svelte";
|
|
5
|
+
import ContentSwitcher from "./ContentSwitcher.svelte";
|
|
6
|
+
import { contentSwitcherDemoValues } from "./types.js";
|
|
7
|
+
import { parameters, componentArgs } from "./types.js";
|
|
8
|
+
const code = `
|
|
9
|
+
<ContentSwitcher {...activeParams} class="marg-tb-1">
|
|
10
|
+
{#snippet contentSwitcherTogglerIcon()}
|
|
11
|
+
<Icon icon="mdi:tree" />
|
|
12
|
+
{/snippet}
|
|
13
|
+
{#snippet contentSwitcherBackIcon()}
|
|
14
|
+
<span>Switch</span>
|
|
15
|
+
{/snippet}
|
|
16
|
+
{#snippet contentSwitcherReveal()}
|
|
17
|
+
<div class="pad-2 border-t">Some <br />switched <br />content</div>
|
|
18
|
+
{/snippet}
|
|
19
|
+
</ContentSwitcher>`;
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<ComponentDemo component="ContentSwitcher">
|
|
23
|
+
<div class="flex-v gap-large">
|
|
24
|
+
<DemoPage component="ContentSwitcher" {code}>
|
|
25
|
+
<Demoer title="A simple contentSwitcher" {parameters} {componentArgs}>
|
|
26
|
+
{#snippet children({ activeParams })}
|
|
27
|
+
<ContentSwitcher {...activeParams} class="marg-tb-1">
|
|
28
|
+
{#snippet contentSwitcherTogglerIcon()}
|
|
29
|
+
<Icon icon="mdi:tree" />
|
|
30
|
+
{/snippet}
|
|
31
|
+
{#snippet contentSwitcherBackIcon()}
|
|
32
|
+
<span>Switch</span>
|
|
33
|
+
{/snippet}
|
|
34
|
+
{#snippet contentSwitcherReveal()}
|
|
35
|
+
<div class="pad-2 border-t">Some <br />switched <br />content</div>
|
|
36
|
+
{/snippet}
|
|
37
|
+
</ContentSwitcher>
|
|
38
|
+
{/snippet}
|
|
39
|
+
</Demoer>
|
|
40
|
+
</DemoPage>
|
|
41
|
+
</div>
|
|
42
|
+
</ComponentDemo>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type ContentSwitcherProps = typeof __propDef.props;
|
|
10
|
+
export type ContentSwitcherEvents = typeof __propDef.events;
|
|
11
|
+
export type ContentSwitcherSlots = typeof __propDef.slots;
|
|
12
|
+
export default class ContentSwitcher extends SvelteComponent<ContentSwitcherProps, ContentSwitcherEvents, ContentSwitcherSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<script lang="ts">import IconButton from "../../controls/button/IconButton.svelte";
|
|
2
|
+
import Button from "../../controls/button/Button.svelte";
|
|
3
|
+
import Slotted from "../../utils/slotted/Slotted.svelte";
|
|
4
|
+
let {
|
|
5
|
+
class: className = "",
|
|
6
|
+
element = void 0,
|
|
7
|
+
style,
|
|
8
|
+
icon = "toggle",
|
|
9
|
+
iconback = "chevron-left",
|
|
10
|
+
parent = void 0,
|
|
11
|
+
contentSwitcherTogglerIcon: togglerIcon,
|
|
12
|
+
contentSwitcherBackIcon: backIcon,
|
|
13
|
+
contentSwitcherReveal
|
|
14
|
+
} = $props();
|
|
15
|
+
let visibleSate = $state(false);
|
|
16
|
+
let thisRef;
|
|
17
|
+
let realParent = $derived(parent ?? element?.parentElement ?? null);
|
|
18
|
+
function handleClick(event) {
|
|
19
|
+
visibleSate = !visibleSate;
|
|
20
|
+
if (!element || !realParent) return false;
|
|
21
|
+
const children = realParent?.children;
|
|
22
|
+
Array.from(children).forEach((li) => {
|
|
23
|
+
li.style.display = visibleSate ? "none" : "";
|
|
24
|
+
});
|
|
25
|
+
if (visibleSate) {
|
|
26
|
+
realParent.appendChild(thisRef);
|
|
27
|
+
} else {
|
|
28
|
+
element.appendChild(thisRef);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<!-- svelte-ignore a11y_click_events_have_key_events -->
|
|
34
|
+
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
|
35
|
+
<div class={className} {style} onclick={handleClick}>
|
|
36
|
+
<Slotted child={togglerIcon}>
|
|
37
|
+
<IconButton style="aspect-ratio:1/1" {icon} iconFontSize="small" />
|
|
38
|
+
</Slotted>
|
|
39
|
+
</div>
|
|
40
|
+
<div bind:this={element} style="display:none">
|
|
41
|
+
<div bind:this={thisRef} class="content-switcher">
|
|
42
|
+
<!-- svelte-ignore a11y_click_events_have_key_events -->
|
|
43
|
+
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
|
44
|
+
<div onclick={handleClick}>
|
|
45
|
+
<Slotted child={backIcon}>
|
|
46
|
+
<Button ratio="1/1" icon={iconback} />
|
|
47
|
+
</Slotted>
|
|
48
|
+
</div>
|
|
49
|
+
<Slotted child={contentSwitcherReveal} />
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
<style>:root {
|
|
54
|
+
--sld-content-switcher-overflow: hidden;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.content-switcher {
|
|
58
|
+
min-width: auto;
|
|
59
|
+
max-width: 100%;
|
|
60
|
+
width: 100%;
|
|
61
|
+
gap: 0.5rem;
|
|
62
|
+
overflow: var(--sld-content-switcher-overflow);
|
|
63
|
+
position: relative;
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
flex: 1;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.content-switcher .content {
|
|
70
|
+
position: relative;
|
|
71
|
+
overflow: var(--sld-content-switcher-overflow);
|
|
72
|
+
min-width: auto;
|
|
73
|
+
flex: 1 1 auto;
|
|
74
|
+
}</style>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
'anchor-for'?: string;
|
|
5
|
+
element?: (HTMLElement & HTMLDivElement) | undefined;
|
|
6
|
+
class?: string;
|
|
7
|
+
style?: string;
|
|
8
|
+
container?: `inline` | `size` | `normal`;
|
|
9
|
+
hideMaxWidth?: string;
|
|
10
|
+
hideMaxHeight?: string;
|
|
11
|
+
hideMinWidth?: string;
|
|
12
|
+
hideMinHeight?: string;
|
|
13
|
+
children?: import("svelte").Snippet<[any]>;
|
|
14
|
+
icon?: string | import("../../types/index.js").IconObj;
|
|
15
|
+
iconback?: string | import("../../types/index.js").IconObj;
|
|
16
|
+
parent?: HTMLElement;
|
|
17
|
+
contentSwitcherTogglerIcon?: import("svelte").Snippet;
|
|
18
|
+
contentSwitcherBackIcon?: import("svelte").Snippet;
|
|
19
|
+
contentSwitcherReveal?: import("svelte").Snippet;
|
|
20
|
+
};
|
|
21
|
+
events: {
|
|
22
|
+
[evt: string]: CustomEvent<any>;
|
|
23
|
+
};
|
|
24
|
+
slots: {};
|
|
25
|
+
};
|
|
26
|
+
type ContentSwitcherProps_ = typeof __propDef.props;
|
|
27
|
+
export { ContentSwitcherProps_ as ContentSwitcherProps };
|
|
28
|
+
export type ContentSwitcherEvents = typeof __propDef.events;
|
|
29
|
+
export type ContentSwitcherSlots = typeof __propDef.slots;
|
|
30
|
+
export default class ContentSwitcher extends SvelteComponent<ContentSwitcherProps_, ContentSwitcherEvents, ContentSwitcherSlots> {
|
|
31
|
+
}
|