@blukavantui/community 0.0.0-stage → 1.0.1
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/LICENSE.txt +103 -0
- package/README.md +171 -2
- package/THIRD_PARTY_NOTICES.txt +58 -0
- package/assets/fonts/dm-sans-LICENSE.txt +93 -0
- package/assets/fonts/dm-sans-latin-ext-wght-italic.woff2 +0 -0
- package/assets/fonts/dm-sans-latin-ext-wght-normal.woff2 +0 -0
- package/assets/fonts/dm-sans-latin-wght-italic.woff2 +0 -0
- package/assets/fonts/dm-sans-latin-wght-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-LICENSE.txt +93 -0
- package/assets/fonts/ibm-plex-mono-latin-100-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-100-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-200-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-200-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-300-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-300-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-400-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-400-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-500-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-500-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-600-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-600-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-700-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-700-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-100-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-100-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-200-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-200-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-300-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-300-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-400-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-400-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-500-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-500-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-600-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-600-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-700-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-700-normal.woff2 +0 -0
- package/assets/fonts/inter-LICENSE.txt +93 -0
- package/assets/fonts/inter-latin-ext-wght-italic.woff2 +0 -0
- package/assets/fonts/inter-latin-ext-wght-normal.woff2 +0 -0
- package/assets/fonts/inter-latin-wght-italic.woff2 +0 -0
- package/assets/fonts/inter-latin-wght-normal.woff2 +0 -0
- package/assets/fonts/jetbrains-mono-LICENSE.txt +93 -0
- package/assets/fonts/jetbrains-mono-latin-ext-wght-italic.woff2 +0 -0
- package/assets/fonts/jetbrains-mono-latin-ext-wght-normal.woff2 +0 -0
- package/assets/fonts/jetbrains-mono-latin-wght-italic.woff2 +0 -0
- package/assets/fonts/jetbrains-mono-latin-wght-normal.woff2 +0 -0
- package/assets/fonts/lora-LICENSE.txt +93 -0
- package/assets/fonts/lora-latin-ext-wght-italic.woff2 +0 -0
- package/assets/fonts/lora-latin-ext-wght-normal.woff2 +0 -0
- package/assets/fonts/lora-latin-wght-italic.woff2 +0 -0
- package/assets/fonts/lora-latin-wght-normal.woff2 +0 -0
- package/assets/fonts/manifest.json +618 -0
- package/assets/fonts/manrope-LICENSE.txt +93 -0
- package/assets/fonts/manrope-latin-ext-wght-normal.woff2 +0 -0
- package/assets/fonts/manrope-latin-wght-normal.woff2 +0 -0
- package/assets/fonts/merriweather-LICENSE.txt +93 -0
- package/assets/fonts/merriweather-latin-ext-wght-italic.woff2 +0 -0
- package/assets/fonts/merriweather-latin-ext-wght-normal.woff2 +0 -0
- package/assets/fonts/merriweather-latin-wght-italic.woff2 +0 -0
- package/assets/fonts/merriweather-latin-wght-normal.woff2 +0 -0
- package/assets/fonts/montserrat-LICENSE.txt +93 -0
- package/assets/fonts/montserrat-latin-ext-wght-italic.woff2 +0 -0
- package/assets/fonts/montserrat-latin-ext-wght-normal.woff2 +0 -0
- package/assets/fonts/montserrat-latin-wght-italic.woff2 +0 -0
- package/assets/fonts/montserrat-latin-wght-normal.woff2 +0 -0
- package/assets/fonts/playfair-display-LICENSE.txt +93 -0
- package/assets/fonts/playfair-display-latin-ext-wght-italic.woff2 +0 -0
- package/assets/fonts/playfair-display-latin-ext-wght-normal.woff2 +0 -0
- package/assets/fonts/playfair-display-latin-wght-italic.woff2 +0 -0
- package/assets/fonts/playfair-display-latin-wght-normal.woff2 +0 -0
- package/assets/fonts/roboto-LICENSE.txt +93 -0
- package/assets/fonts/roboto-latin-ext-wght-italic.woff2 +0 -0
- package/assets/fonts/roboto-latin-ext-wght-normal.woff2 +0 -0
- package/assets/fonts/roboto-latin-wght-italic.woff2 +0 -0
- package/assets/fonts/roboto-latin-wght-normal.woff2 +0 -0
- package/assets/fonts/source-sans-3-LICENSE.txt +93 -0
- package/assets/fonts/source-sans-3-latin-ext-wght-italic.woff2 +0 -0
- package/assets/fonts/source-sans-3-latin-ext-wght-normal.woff2 +0 -0
- package/assets/fonts/source-sans-3-latin-wght-italic.woff2 +0 -0
- package/assets/fonts/source-sans-3-latin-wght-normal.woff2 +0 -0
- package/dist/advanced-types.d.ts +114 -0
- package/dist/app-layout.css +115 -0
- package/dist/app-layout.d.ts +2 -0
- package/dist/app-layout.js +1 -0
- package/dist/badge.css +131 -0
- package/dist/badge.d.ts +2 -0
- package/dist/badge.js +1 -0
- package/dist/bluui-community-grid.js +72 -0
- package/dist/bluui-community.js +1 -0
- package/dist/breadcrumbs.css +77 -0
- package/dist/breadcrumbs.d.ts +2 -0
- package/dist/breadcrumbs.js +1 -0
- package/dist/build-audit.json +388 -0
- package/dist/button.css +625 -0
- package/dist/button.d.ts +2 -0
- package/dist/button.js +1 -0
- package/dist/card.css +119 -0
- package/dist/card.d.ts +2 -0
- package/dist/card.js +1 -0
- package/dist/cascader.css +152 -0
- package/dist/cascader.d.ts +2 -0
- package/dist/cascader.js +1 -0
- package/dist/chat-widget.css +121 -0
- package/dist/chat-widget.d.ts +2 -0
- package/dist/chat-widget.js +1 -0
- package/dist/chat.css +66 -0
- package/dist/chat.d.ts +2 -0
- package/dist/chat.js +1 -0
- package/dist/chip-group.css +44 -0
- package/dist/chip-group.d.ts +2 -0
- package/dist/chip-group.js +1 -0
- package/dist/chip.css +191 -0
- package/dist/chip.d.ts +2 -0
- package/dist/chip.js +1 -0
- package/dist/chunk-2HFI6CC6.js +0 -0
- package/dist/chunk-2MQNFEGJ.js +1 -0
- package/dist/chunk-2TCNAQC6.js +1 -0
- package/dist/chunk-3LWXPCWY.js +1 -0
- package/dist/chunk-3ZS5YITP.js +1 -0
- package/dist/chunk-4RM3B4L7.js +1 -0
- package/dist/chunk-4USJBOSC.js +1 -0
- package/dist/chunk-5TEIXA4R.js +1 -0
- package/dist/chunk-64LOE3FU.js +1 -0
- package/dist/chunk-6EHKOVZK.js +1 -0
- package/dist/chunk-6EJIIQNF.js +1 -0
- package/dist/chunk-6XOMFIPU.js +1 -0
- package/dist/chunk-75BQYII5.js +1 -0
- package/dist/chunk-7HXX66DB.js +3 -0
- package/dist/chunk-7KMRDQZG.js +0 -0
- package/dist/chunk-AICXIQKD.js +1 -0
- package/dist/chunk-BLDXIO7P.js +1 -0
- package/dist/chunk-C3CLLZH2.js +1 -0
- package/dist/chunk-CTLZIWMX.js +1 -0
- package/dist/chunk-CZXYS6CY.js +1 -0
- package/dist/chunk-GEG3TNB4.js +1 -0
- package/dist/chunk-GK3INPAZ.js +1 -0
- package/dist/chunk-H5IEGCAK.js +72 -0
- package/dist/chunk-H7ETPJVW.js +1 -0
- package/dist/chunk-IHKCC6WJ.js +1 -0
- package/dist/chunk-IIKSMXQE.js +1 -0
- package/dist/chunk-J7BV4KHG.js +1 -0
- package/dist/chunk-K2P2BHV5.js +1 -0
- package/dist/chunk-KBOMPMSI.js +1 -0
- package/dist/chunk-KR3UUTB2.js +1 -0
- package/dist/chunk-LGJVLEAH.js +1 -0
- package/dist/chunk-LJ4O6YTN.js +1 -0
- package/dist/chunk-MBC4UVTS.js +1 -0
- package/dist/chunk-MCVO25PZ.js +1 -0
- package/dist/chunk-MEEQNPGM.js +1 -0
- package/dist/chunk-MHHJZYXW.js +1 -0
- package/dist/chunk-MSMNEIWA.js +0 -0
- package/dist/chunk-MZBB5ROJ.js +1 -0
- package/dist/chunk-NB5PGEDY.js +1 -0
- package/dist/chunk-NTFHNL7T.js +1 -0
- package/dist/chunk-O3MRWAI5.js +1 -0
- package/dist/chunk-RGTLYBOY.js +3 -0
- package/dist/chunk-RZ5YSY7Y.js +0 -0
- package/dist/chunk-SDMH2EVD.js +1 -0
- package/dist/chunk-SEJUHKS5.js +1 -0
- package/dist/chunk-SIU7DSOA.js +1 -0
- package/dist/chunk-T45UAWNI.js +3 -0
- package/dist/chunk-TIXCZTJ7.js +0 -0
- package/dist/chunk-U4ZP73V4.js +1 -0
- package/dist/chunk-U73BNLZ3.js +1 -0
- package/dist/chunk-UEOCR2C3.js +2 -0
- package/dist/chunk-UUZ4HU7L.js +0 -0
- package/dist/chunk-VBRSAI3K.js +1 -0
- package/dist/chunk-W27NAI62.js +1 -0
- package/dist/chunk-W4SW4RWX.js +1 -0
- package/dist/chunk-WHA6UO5X.js +1 -0
- package/dist/chunk-XDYBNO4P.js +1 -0
- package/dist/chunk-XIOI5PKM.js +1 -0
- package/dist/chunk-Y4TCT2K6.js +1 -0
- package/dist/chunk-Y4WEMSE4.js +0 -0
- package/dist/collection-layout.css +30 -0
- package/dist/collection-layout.d.ts +2 -0
- package/dist/collection-layout.js +1 -0
- package/dist/colors.d.ts +2 -0
- package/dist/command-palette.css +35 -0
- package/dist/command-palette.d.ts +2 -0
- package/dist/command-palette.js +1 -0
- package/dist/component-factories/app-layout.d.ts +2 -0
- package/dist/component-factories/breadcrumbs.d.ts +2 -0
- package/dist/component-factories/cascader.d.ts +2 -0
- package/dist/component-factories/chat-widget.d.ts +2 -0
- package/dist/component-factories/chat.d.ts +2 -0
- package/dist/component-factories/collection-layout.d.ts +2 -0
- package/dist/component-factories/command-palette.d.ts +2 -0
- package/dist/component-factories/content-carousel.d.ts +2 -0
- package/dist/component-factories/dashboard-canvas.d.ts +3 -0
- package/dist/component-factories/dashboard-panel.d.ts +3 -0
- package/dist/component-factories/date-picker.d.ts +2 -0
- package/dist/component-factories/date-range-picker.d.ts +2 -0
- package/dist/component-factories/date-time-picker.d.ts +2 -0
- package/dist/component-factories/descriptions.d.ts +2 -0
- package/dist/component-factories/drawer.d.ts +2 -0
- package/dist/component-factories/float-button.d.ts +2 -0
- package/dist/component-factories/font-provider.d.ts +2 -0
- package/dist/component-factories/hero-section.d.ts +2 -0
- package/dist/component-factories/image-compare.d.ts +2 -0
- package/dist/component-factories/logo-cloud.d.ts +2 -0
- package/dist/component-factories/media-card.d.ts +2 -0
- package/dist/component-factories/media-image.d.ts +2 -0
- package/dist/component-factories/modal.d.ts +2 -0
- package/dist/component-factories/notification-center.d.ts +3 -0
- package/dist/component-factories/notification.d.ts +5 -0
- package/dist/component-factories/page-header.d.ts +2 -0
- package/dist/component-factories/page-layout.d.ts +2 -0
- package/dist/component-factories/pagination.d.ts +2 -0
- package/dist/component-factories/profile-card.d.ts +2 -0
- package/dist/component-factories/qr-code.d.ts +2 -0
- package/dist/component-factories/quote-card.d.ts +2 -0
- package/dist/component-factories/shape-mask.d.ts +2 -0
- package/dist/component-factories/sidebar.d.ts +2 -0
- package/dist/component-factories/sparkline.d.ts +2 -0
- package/dist/component-factories/split-section.d.ts +2 -0
- package/dist/component-factories/splitter.d.ts +2 -0
- package/dist/component-factories/statistic.d.ts +2 -0
- package/dist/component-factories/text-highlight.d.ts +2 -0
- package/dist/component-factories/time-picker.d.ts +2 -0
- package/dist/component-factories/timeline.d.ts +2 -0
- package/dist/component-factories/tour.d.ts +2 -0
- package/dist/component-factories/transfer-list.d.ts +2 -0
- package/dist/component-factories/tree-select.d.ts +2 -0
- package/dist/component-factories/tree-view.d.ts +2 -0
- package/dist/component-factories/upload-manager.d.ts +2 -0
- package/dist/component-factories/video-lightbox.d.ts +2 -0
- package/dist/component-factories/video-player.d.ts +2 -0
- package/dist/component-runtime.d.ts +2 -0
- package/dist/content-carousel.css +34 -0
- package/dist/content-carousel.d.ts +2 -0
- package/dist/content-carousel.js +1 -0
- package/dist/content.css +2085 -0
- package/dist/content.d.ts +13 -0
- package/dist/content.js +1 -0
- package/dist/core.css +1070 -0
- package/dist/core.d.ts +6 -0
- package/dist/core.js +1 -0
- package/dist/dashboard-canvas.css +49 -0
- package/dist/dashboard-canvas.d.ts +2 -0
- package/dist/dashboard-canvas.js +1 -0
- package/dist/dashboard-panel.css +2 -0
- package/dist/dashboard-panel.d.ts +2 -0
- package/dist/dashboard-panel.js +1 -0
- package/dist/data.css +813 -0
- package/dist/data.d.ts +9 -0
- package/dist/data.js +1 -0
- package/dist/date-picker.css +78 -0
- package/dist/date-picker.d.ts +2 -0
- package/dist/date-picker.js +1 -0
- package/dist/date-range-picker.css +78 -0
- package/dist/date-range-picker.d.ts +2 -0
- package/dist/date-range-picker.js +1 -0
- package/dist/date-time-picker.css +78 -0
- package/dist/date-time-picker.d.ts +2 -0
- package/dist/date-time-picker.js +1 -0
- package/dist/descriptions.css +113 -0
- package/dist/descriptions.d.ts +2 -0
- package/dist/descriptions.js +1 -0
- package/dist/dom.d.ts +7 -0
- package/dist/drawer.css +215 -0
- package/dist/drawer.d.ts +2 -0
- package/dist/drawer.js +1 -0
- package/dist/empty-state.css +110 -0
- package/dist/empty-state.d.ts +2 -0
- package/dist/empty-state.js +1 -0
- package/dist/essentials.css +1295 -0
- package/dist/essentials.d.ts +11 -0
- package/dist/essentials.js +1 -0
- package/dist/feedback.css +1136 -0
- package/dist/feedback.d.ts +10 -0
- package/dist/feedback.js +1 -0
- package/dist/float-button.css +28 -0
- package/dist/float-button.d.ts +2 -0
- package/dist/float-button.js +1 -0
- package/dist/font-provider.css +5 -0
- package/dist/font-provider.d.ts +2 -0
- package/dist/font-provider.js +1 -0
- package/dist/fonts/dm-sans-LICENSE.txt +93 -0
- package/dist/fonts/dm-sans-latin-ext-wght-italic.woff2 +0 -0
- package/dist/fonts/dm-sans-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/dm-sans-latin-wght-italic.woff2 +0 -0
- package/dist/fonts/dm-sans-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-LICENSE.txt +93 -0
- package/dist/fonts/ibm-plex-mono-latin-100-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-100-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-200-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-200-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-300-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-300-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-400-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-400-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-500-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-500-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-600-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-600-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-700-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-700-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-100-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-100-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-200-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-200-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-300-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-300-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-400-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-400-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-500-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-500-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-600-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-600-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-700-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-700-normal.woff2 +0 -0
- package/dist/fonts/inter-LICENSE.txt +93 -0
- package/dist/fonts/inter-latin-ext-wght-italic.woff2 +0 -0
- package/dist/fonts/inter-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-latin-wght-italic.woff2 +0 -0
- package/dist/fonts/inter-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/jetbrains-mono-LICENSE.txt +93 -0
- package/dist/fonts/jetbrains-mono-latin-ext-wght-italic.woff2 +0 -0
- package/dist/fonts/jetbrains-mono-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/jetbrains-mono-latin-wght-italic.woff2 +0 -0
- package/dist/fonts/jetbrains-mono-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/lora-LICENSE.txt +93 -0
- package/dist/fonts/lora-latin-ext-wght-italic.woff2 +0 -0
- package/dist/fonts/lora-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/lora-latin-wght-italic.woff2 +0 -0
- package/dist/fonts/lora-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/manifest.json +618 -0
- package/dist/fonts/manrope-LICENSE.txt +93 -0
- package/dist/fonts/manrope-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/manrope-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/merriweather-LICENSE.txt +93 -0
- package/dist/fonts/merriweather-latin-ext-wght-italic.woff2 +0 -0
- package/dist/fonts/merriweather-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/merriweather-latin-wght-italic.woff2 +0 -0
- package/dist/fonts/merriweather-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/montserrat-LICENSE.txt +93 -0
- package/dist/fonts/montserrat-latin-ext-wght-italic.woff2 +0 -0
- package/dist/fonts/montserrat-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/montserrat-latin-wght-italic.woff2 +0 -0
- package/dist/fonts/montserrat-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/playfair-display-LICENSE.txt +93 -0
- package/dist/fonts/playfair-display-latin-ext-wght-italic.woff2 +0 -0
- package/dist/fonts/playfair-display-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/playfair-display-latin-wght-italic.woff2 +0 -0
- package/dist/fonts/playfair-display-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/roboto-LICENSE.txt +93 -0
- package/dist/fonts/roboto-latin-ext-wght-italic.woff2 +0 -0
- package/dist/fonts/roboto-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/roboto-latin-wght-italic.woff2 +0 -0
- package/dist/fonts/roboto-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/source-sans-3-LICENSE.txt +93 -0
- package/dist/fonts/source-sans-3-latin-ext-wght-italic.woff2 +0 -0
- package/dist/fonts/source-sans-3-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/source-sans-3-latin-wght-italic.woff2 +0 -0
- package/dist/fonts/source-sans-3-latin-wght-normal.woff2 +0 -0
- package/dist/grid-basic.css +12 -0
- package/dist/grid-basic.d.ts +10 -0
- package/dist/grid-basic.js +1 -0
- package/dist/grid-spec.d.ts +37 -0
- package/dist/grid.css +12 -0
- package/dist/grid.d.ts +1 -0
- package/dist/grid.js +1 -0
- package/dist/hero-section.css +41 -0
- package/dist/hero-section.d.ts +2 -0
- package/dist/hero-section.js +1 -0
- package/dist/image-compare.css +35 -0
- package/dist/image-compare.d.ts +2 -0
- package/dist/image-compare.js +1 -0
- package/dist/index.d.ts +56 -0
- package/dist/index.js +1 -0
- package/dist/inputs.css +1524 -0
- package/dist/inputs.d.ts +8 -0
- package/dist/inputs.js +1 -0
- package/dist/layout.css +844 -0
- package/dist/layout.d.ts +8 -0
- package/dist/layout.js +1 -0
- package/dist/logo-cloud.css +33 -0
- package/dist/logo-cloud.d.ts +2 -0
- package/dist/logo-cloud.js +1 -0
- package/dist/marketing-template-layout.css +30 -0
- package/dist/media-card.css +41 -0
- package/dist/media-card.d.ts +2 -0
- package/dist/media-card.js +1 -0
- package/dist/media-image.css +531 -0
- package/dist/media-image.d.ts +2 -0
- package/dist/media-image.js +1 -0
- package/dist/modal.css +210 -0
- package/dist/modal.d.ts +2 -0
- package/dist/modal.js +1 -0
- package/dist/native/app-layout.js +1 -0
- package/dist/native/cascader.js +1 -0
- package/dist/native/chat-widget.js +3 -0
- package/dist/native/chat.js +3 -0
- package/dist/native/collection-layout.js +1 -0
- package/dist/native/command-palette.js +1 -0
- package/dist/native/content-carousel.js +1 -0
- package/dist/native/dashboard-canvas.js +1 -0
- package/dist/native/date-picker.js +1 -0
- package/dist/native/date-range-picker.js +1 -0
- package/dist/native/date-time-picker.js +1 -0
- package/dist/native/descriptions.js +1 -0
- package/dist/native/drawer.js +1 -0
- package/dist/native/float-button.js +1 -0
- package/dist/native/font-provider.js +1 -0
- package/dist/native/hero-section.js +1 -0
- package/dist/native/image-compare.js +1 -0
- package/dist/native/logo-cloud.js +1 -0
- package/dist/native/media-card.js +1 -0
- package/dist/native/media-image.js +1 -0
- package/dist/native/modal.js +1 -0
- package/dist/native/notification-center.js +1 -0
- package/dist/native/notification.js +2 -0
- package/dist/native/page-layout.js +1 -0
- package/dist/native/pagination.js +1 -0
- package/dist/native/profile-card.js +1 -0
- package/dist/native/qr-code.js +3 -0
- package/dist/native/quote-card.js +1 -0
- package/dist/native/shape-mask.js +1 -0
- package/dist/native/sparkline.js +1 -0
- package/dist/native/split-section.js +1 -0
- package/dist/native/splitter.js +1 -0
- package/dist/native/statistic.js +1 -0
- package/dist/native/text-highlight.js +1 -0
- package/dist/native/time-picker.js +1 -0
- package/dist/native/timeline.js +1 -0
- package/dist/native/tour.js +1 -0
- package/dist/native/transfer-list.js +1 -0
- package/dist/native/tree-select.js +1 -0
- package/dist/native/tree-view.js +1 -0
- package/dist/native/upload-manager.js +1 -0
- package/dist/native/video-lightbox.js +1 -0
- package/dist/native/video-player.js +1 -0
- package/dist/native-base.d.ts +1 -0
- package/dist/native-components/app-layout.d.ts +1 -0
- package/dist/native-components/cascader.d.ts +1 -0
- package/dist/native-components/chat-widget.d.ts +1 -0
- package/dist/native-components/chat.d.ts +1 -0
- package/dist/native-components/collection-layout.d.ts +1 -0
- package/dist/native-components/command-palette.d.ts +1 -0
- package/dist/native-components/content-carousel.d.ts +1 -0
- package/dist/native-components/dashboard-canvas.d.ts +1 -0
- package/dist/native-components/date-picker.d.ts +1 -0
- package/dist/native-components/date-range-picker.d.ts +1 -0
- package/dist/native-components/date-time-picker.d.ts +1 -0
- package/dist/native-components/descriptions.d.ts +1 -0
- package/dist/native-components/drawer.d.ts +1 -0
- package/dist/native-components/float-button.d.ts +1 -0
- package/dist/native-components/font-provider.d.ts +1 -0
- package/dist/native-components/hero-section.d.ts +1 -0
- package/dist/native-components/image-compare.d.ts +1 -0
- package/dist/native-components/logo-cloud.d.ts +1 -0
- package/dist/native-components/media-card.d.ts +1 -0
- package/dist/native-components/media-image.d.ts +1 -0
- package/dist/native-components/modal.d.ts +1 -0
- package/dist/native-components/notification-center.d.ts +1 -0
- package/dist/native-components/notification.d.ts +1 -0
- package/dist/native-components/page-layout.d.ts +1 -0
- package/dist/native-components/pagination.d.ts +1 -0
- package/dist/native-components/profile-card.d.ts +1 -0
- package/dist/native-components/qr-code.d.ts +1 -0
- package/dist/native-components/quote-card.d.ts +1 -0
- package/dist/native-components/shape-mask.d.ts +1 -0
- package/dist/native-components/sparkline.d.ts +1 -0
- package/dist/native-components/split-section.d.ts +1 -0
- package/dist/native-components/splitter.d.ts +1 -0
- package/dist/native-components/statistic.d.ts +1 -0
- package/dist/native-components/text-highlight.d.ts +1 -0
- package/dist/native-components/time-picker.d.ts +1 -0
- package/dist/native-components/timeline.d.ts +1 -0
- package/dist/native-components/tour.d.ts +1 -0
- package/dist/native-components/transfer-list.d.ts +1 -0
- package/dist/native-components/tree-select.d.ts +1 -0
- package/dist/native-components/tree-view.d.ts +1 -0
- package/dist/native-components/upload-manager.d.ts +1 -0
- package/dist/native-components/video-lightbox.d.ts +1 -0
- package/dist/native-components/video-player.d.ts +1 -0
- package/dist/native-grid.d.ts +1 -0
- package/dist/native.d.ts +1 -0
- package/dist/notification-center.css +49 -0
- package/dist/notification-center.d.ts +2 -0
- package/dist/notification-center.js +1 -0
- package/dist/notification.css +155 -0
- package/dist/notification.d.ts +2 -0
- package/dist/notification.js +1 -0
- package/dist/page-header.css +184 -0
- package/dist/page-header.d.ts +2 -0
- package/dist/page-header.js +1 -0
- package/dist/page-layout.css +117 -0
- package/dist/page-layout.d.ts +2 -0
- package/dist/page-layout.js +1 -0
- package/dist/pagination.css +127 -0
- package/dist/pagination.d.ts +2 -0
- package/dist/pagination.js +1 -0
- package/dist/primitives.d.ts +1 -0
- package/dist/profile-card.css +484 -0
- package/dist/profile-card.d.ts +2 -0
- package/dist/profile-card.js +1 -0
- package/dist/qr-code.css +125 -0
- package/dist/qr-code.d.ts +2 -0
- package/dist/qr-code.js +1 -0
- package/dist/quote-card.css +30 -0
- package/dist/quote-card.d.ts +2 -0
- package/dist/quote-card.js +1 -0
- package/dist/shape-mask.css +10 -0
- package/dist/shape-mask.d.ts +2 -0
- package/dist/shape-mask.js +1 -0
- package/dist/sidebar.css +183 -0
- package/dist/sidebar.d.ts +2 -0
- package/dist/sidebar.js +1 -0
- package/dist/sizes.json +1012 -0
- package/dist/skeleton.css +69 -0
- package/dist/skeleton.d.ts +2 -0
- package/dist/skeleton.js +1 -0
- package/dist/sparkline.css +38 -0
- package/dist/sparkline.d.ts +2 -0
- package/dist/sparkline.js +1 -0
- package/dist/split-section.css +34 -0
- package/dist/split-section.d.ts +2 -0
- package/dist/split-section.js +1 -0
- package/dist/splitter.css +32 -0
- package/dist/splitter.d.ts +2 -0
- package/dist/splitter.js +1 -0
- package/dist/statistic.css +107 -0
- package/dist/statistic.d.ts +2 -0
- package/dist/statistic.js +1 -0
- package/dist/styles.css +8882 -0
- package/dist/text-highlight.css +49 -0
- package/dist/text-highlight.d.ts +2 -0
- package/dist/text-highlight.js +1 -0
- package/dist/theme-runtime.d.ts +1 -0
- package/dist/theme.css +1391 -0
- package/dist/theme.d.ts +10 -0
- package/dist/theme.js +1 -0
- package/dist/time-picker.css +78 -0
- package/dist/time-picker.d.ts +2 -0
- package/dist/time-picker.js +1 -0
- package/dist/timeline.css +126 -0
- package/dist/timeline.d.ts +2 -0
- package/dist/timeline.js +1 -0
- package/dist/tour.css +138 -0
- package/dist/tour.d.ts +2 -0
- package/dist/tour.js +1 -0
- package/dist/transfer-list.css +878 -0
- package/dist/transfer-list.d.ts +2 -0
- package/dist/transfer-list.js +1 -0
- package/dist/tree-select.css +135 -0
- package/dist/tree-select.d.ts +2 -0
- package/dist/tree-select.js +1 -0
- package/dist/tree-view.css +118 -0
- package/dist/tree-view.d.ts +2 -0
- package/dist/tree-view.js +1 -0
- package/dist/types.d.ts +1284 -0
- package/dist/upload-manager.css +40 -0
- package/dist/upload-manager.d.ts +2 -0
- package/dist/upload-manager.js +1 -0
- package/dist/video-lightbox.css +639 -0
- package/dist/video-lightbox.d.ts +2 -0
- package/dist/video-lightbox.js +1 -0
- package/dist/video-player.css +92 -0
- package/dist/video-player.d.ts +2 -0
- package/dist/video-player.js +1 -0
- package/docs/PUBLISHING.md +25 -0
- package/edition.json +245 -0
- package/npm-shrinkwrap.json +554 -0
- package/package.json +391 -4
- package/scripts/build.mjs +34 -0
- package/scripts/verify-package.mjs +136 -0
- package/src/advanced-types.ts +89 -0
- package/src/app-layout.ts +2 -0
- package/src/badge.ts +2 -0
- package/src/breadcrumbs.ts +2 -0
- package/src/button.ts +2 -0
- package/src/card.ts +2 -0
- package/src/cascader.ts +2 -0
- package/src/chat-widget.ts +2 -0
- package/src/chat.ts +2 -0
- package/src/chip-group.ts +2 -0
- package/src/chip.ts +2 -0
- package/src/collection-layout.ts +2 -0
- package/src/colors.ts +3 -0
- package/src/command-palette.ts +2 -0
- package/src/component-factories/app-layout.ts +8 -0
- package/src/component-factories/breadcrumbs.ts +45 -0
- package/src/component-factories/cascader.ts +11 -0
- package/src/component-factories/chat-widget.ts +12 -0
- package/src/component-factories/chat.ts +10 -0
- package/src/component-factories/collection-layout.ts +5 -0
- package/src/component-factories/command-palette.ts +79 -0
- package/src/component-factories/content-carousel.ts +5 -0
- package/src/component-factories/dashboard-canvas.ts +11 -0
- package/src/component-factories/dashboard-panel.ts +9 -0
- package/src/component-factories/date-picker.ts +6 -0
- package/src/component-factories/date-range-picker.ts +6 -0
- package/src/component-factories/date-time-picker.ts +6 -0
- package/src/component-factories/descriptions.ts +11 -0
- package/src/component-factories/drawer.ts +12 -0
- package/src/component-factories/float-button.ts +7 -0
- package/src/component-factories/font-provider.ts +6 -0
- package/src/component-factories/hero-section.ts +5 -0
- package/src/component-factories/image-compare.ts +5 -0
- package/src/component-factories/logo-cloud.ts +5 -0
- package/src/component-factories/media-card.ts +5 -0
- package/src/component-factories/media-image.ts +5 -0
- package/src/component-factories/modal.ts +12 -0
- package/src/component-factories/notification-center.ts +13 -0
- package/src/component-factories/notification.ts +16 -0
- package/src/component-factories/page-header.ts +73 -0
- package/src/component-factories/page-layout.ts +8 -0
- package/src/component-factories/pagination.ts +11 -0
- package/src/component-factories/profile-card.ts +5 -0
- package/src/component-factories/qr-code.ts +11 -0
- package/src/component-factories/quote-card.ts +5 -0
- package/src/component-factories/shape-mask.ts +6 -0
- package/src/component-factories/sidebar.ts +98 -0
- package/src/component-factories/sparkline.ts +8 -0
- package/src/component-factories/split-section.ts +5 -0
- package/src/component-factories/splitter.ts +105 -0
- package/src/component-factories/statistic.ts +10 -0
- package/src/component-factories/text-highlight.ts +5 -0
- package/src/component-factories/time-picker.ts +6 -0
- package/src/component-factories/timeline.ts +11 -0
- package/src/component-factories/tour.ts +13 -0
- package/src/component-factories/transfer-list.ts +159 -0
- package/src/component-factories/tree-select.ts +83 -0
- package/src/component-factories/tree-view.ts +115 -0
- package/src/component-factories/upload-manager.ts +76 -0
- package/src/component-factories/video-lightbox.ts +5 -0
- package/src/component-factories/video-player.ts +5 -0
- package/src/component-runtime.ts +20 -0
- package/src/content-carousel.ts +2 -0
- package/src/content.ts +13 -0
- package/src/core.ts +6 -0
- package/src/dashboard-canvas.ts +2 -0
- package/src/dashboard-panel.ts +2 -0
- package/src/data.ts +9 -0
- package/src/date-picker.ts +2 -0
- package/src/date-range-picker.ts +2 -0
- package/src/date-time-picker.ts +2 -0
- package/src/descriptions.ts +2 -0
- package/src/dom.ts +65 -0
- package/src/drawer.ts +2 -0
- package/src/empty-state.ts +2 -0
- package/src/essentials.ts +180 -0
- package/src/feedback.ts +10 -0
- package/src/float-button.ts +2 -0
- package/src/font-provider.ts +2 -0
- package/src/grid-basic.ts +46 -0
- package/src/grid-spec.ts +93 -0
- package/src/grid.ts +1 -0
- package/src/hero-section.ts +2 -0
- package/src/image-compare.ts +2 -0
- package/src/index.ts +56 -0
- package/src/inputs.ts +8 -0
- package/src/layout.ts +8 -0
- package/src/logo-cloud.ts +2 -0
- package/src/media-card.ts +2 -0
- package/src/media-image.ts +2 -0
- package/src/modal.ts +2 -0
- package/src/native-base.ts +20 -0
- package/src/native-components/app-layout.ts +2 -0
- package/src/native-components/cascader.ts +2 -0
- package/src/native-components/chat-widget.ts +2 -0
- package/src/native-components/chat.ts +2 -0
- package/src/native-components/collection-layout.ts +2 -0
- package/src/native-components/command-palette.ts +2 -0
- package/src/native-components/content-carousel.ts +2 -0
- package/src/native-components/dashboard-canvas.ts +2 -0
- package/src/native-components/date-picker.ts +2 -0
- package/src/native-components/date-range-picker.ts +2 -0
- package/src/native-components/date-time-picker.ts +2 -0
- package/src/native-components/descriptions.ts +2 -0
- package/src/native-components/drawer.ts +2 -0
- package/src/native-components/float-button.ts +2 -0
- package/src/native-components/font-provider.ts +2 -0
- package/src/native-components/hero-section.ts +2 -0
- package/src/native-components/image-compare.ts +2 -0
- package/src/native-components/logo-cloud.ts +2 -0
- package/src/native-components/media-card.ts +2 -0
- package/src/native-components/media-image.ts +2 -0
- package/src/native-components/modal.ts +2 -0
- package/src/native-components/notification-center.ts +2 -0
- package/src/native-components/notification.ts +2 -0
- package/src/native-components/page-layout.ts +2 -0
- package/src/native-components/pagination.ts +2 -0
- package/src/native-components/profile-card.ts +2 -0
- package/src/native-components/qr-code.ts +2 -0
- package/src/native-components/quote-card.ts +2 -0
- package/src/native-components/shape-mask.ts +2 -0
- package/src/native-components/sparkline.ts +2 -0
- package/src/native-components/split-section.ts +2 -0
- package/src/native-components/splitter.ts +2 -0
- package/src/native-components/statistic.ts +2 -0
- package/src/native-components/text-highlight.ts +2 -0
- package/src/native-components/time-picker.ts +2 -0
- package/src/native-components/timeline.ts +2 -0
- package/src/native-components/tour.ts +2 -0
- package/src/native-components/transfer-list.ts +2 -0
- package/src/native-components/tree-select.ts +2 -0
- package/src/native-components/tree-view.ts +2 -0
- package/src/native-components/upload-manager.ts +2 -0
- package/src/native-components/video-lightbox.ts +2 -0
- package/src/native-components/video-player.ts +2 -0
- package/src/native-grid.ts +3 -0
- package/src/native.ts +3 -0
- package/src/notification-center.ts +2 -0
- package/src/notification.ts +2 -0
- package/src/page-header.ts +2 -0
- package/src/page-layout.ts +2 -0
- package/src/pagination.ts +2 -0
- package/src/primitives.ts +1 -0
- package/src/profile-card.ts +2 -0
- package/src/qr-code.ts +2 -0
- package/src/quote-card.ts +2 -0
- package/src/runtime/app-layout.d.ts +1 -0
- package/src/runtime/app-layout.js +168 -0
- package/src/runtime/cascader.d.ts +1 -0
- package/src/runtime/cascader.js +381 -0
- package/src/runtime/chat-widget.d.ts +1 -0
- package/src/runtime/chat-widget.js +630 -0
- package/src/runtime/chat.d.ts +1 -0
- package/src/runtime/chat.js +461 -0
- package/src/runtime/collection-layout.d.ts +1 -0
- package/src/runtime/collection-layout.js +269 -0
- package/src/runtime/command-palette.d.ts +1 -0
- package/src/runtime/command-palette.js +302 -0
- package/src/runtime/content-carousel.d.ts +1 -0
- package/src/runtime/content-carousel.js +282 -0
- package/src/runtime/dashboard-canvas.d.ts +1 -0
- package/src/runtime/dashboard-canvas.js +493 -0
- package/src/runtime/date-picker.d.ts +1 -0
- package/src/runtime/date-picker.js +817 -0
- package/src/runtime/date-range-picker.d.ts +1 -0
- package/src/runtime/date-range-picker.js +817 -0
- package/src/runtime/date-time-picker.d.ts +1 -0
- package/src/runtime/date-time-picker.js +817 -0
- package/src/runtime/descriptions.d.ts +1 -0
- package/src/runtime/descriptions.js +220 -0
- package/src/runtime/drawer.d.ts +1 -0
- package/src/runtime/drawer.js +287 -0
- package/src/runtime/empty-state.d.ts +1 -0
- package/src/runtime/empty-state.js +178 -0
- package/src/runtime/float-button.d.ts +1 -0
- package/src/runtime/float-button.js +171 -0
- package/src/runtime/font-provider.d.ts +1 -0
- package/src/runtime/font-provider.js +694 -0
- package/src/runtime/hero-section.d.ts +1 -0
- package/src/runtime/hero-section.js +186 -0
- package/src/runtime/image-compare.d.ts +1 -0
- package/src/runtime/image-compare.js +242 -0
- package/src/runtime/kernel.js +8 -0
- package/src/runtime/logo-cloud.d.ts +1 -0
- package/src/runtime/logo-cloud.js +163 -0
- package/src/runtime/media-card.d.ts +1 -0
- package/src/runtime/media-card.js +189 -0
- package/src/runtime/media-image.d.ts +1 -0
- package/src/runtime/media-image.js +480 -0
- package/src/runtime/modal.d.ts +1 -0
- package/src/runtime/modal.js +287 -0
- package/src/runtime/notification-center.d.ts +1 -0
- package/src/runtime/notification-center.js +417 -0
- package/src/runtime/notification.d.ts +1 -0
- package/src/runtime/notification.js +347 -0
- package/src/runtime/page-layout.d.ts +1 -0
- package/src/runtime/page-layout.js +105 -0
- package/src/runtime/pagination.d.ts +1 -0
- package/src/runtime/pagination.js +274 -0
- package/src/runtime/profile-card.d.ts +1 -0
- package/src/runtime/profile-card.js +512 -0
- package/src/runtime/qr-code.d.ts +1 -0
- package/src/runtime/qr-code.js +1942 -0
- package/src/runtime/quote-card.d.ts +1 -0
- package/src/runtime/quote-card.js +153 -0
- package/src/runtime/shape-mask.d.ts +1 -0
- package/src/runtime/shape-mask.js +211 -0
- package/src/runtime/sparkline.d.ts +1 -0
- package/src/runtime/sparkline.js +197 -0
- package/src/runtime/split-section.d.ts +1 -0
- package/src/runtime/split-section.js +148 -0
- package/src/runtime/splitter.d.ts +1 -0
- package/src/runtime/splitter.js +278 -0
- package/src/runtime/statistic.d.ts +1 -0
- package/src/runtime/statistic.js +204 -0
- package/src/runtime/text-highlight.d.ts +1 -0
- package/src/runtime/text-highlight.js +194 -0
- package/src/runtime/time-picker.d.ts +1 -0
- package/src/runtime/time-picker.js +817 -0
- package/src/runtime/timeline.d.ts +1 -0
- package/src/runtime/timeline.js +213 -0
- package/src/runtime/tour.d.ts +1 -0
- package/src/runtime/tour.js +412 -0
- package/src/runtime/transfer.d.ts +1 -0
- package/src/runtime/transfer.js +88 -0
- package/src/runtime/tree-select.d.ts +1 -0
- package/src/runtime/tree-select.js +420 -0
- package/src/runtime/tree.d.ts +1 -0
- package/src/runtime/tree.js +302 -0
- package/src/runtime/upload-manager.d.ts +1 -0
- package/src/runtime/upload-manager.js +408 -0
- package/src/runtime/video-lightbox.d.ts +1 -0
- package/src/runtime/video-lightbox.js +1117 -0
- package/src/runtime/video-player.d.ts +1 -0
- package/src/runtime/video-player.js +770 -0
- package/src/shape-mask.ts +2 -0
- package/src/sidebar.ts +2 -0
- package/src/skeleton.ts +2 -0
- package/src/sparkline.ts +2 -0
- package/src/split-section.ts +2 -0
- package/src/splitter.ts +2 -0
- package/src/statistic.ts +2 -0
- package/src/text-highlight.ts +2 -0
- package/src/theme-runtime.ts +70 -0
- package/src/theme.ts +32 -0
- package/src/time-picker.ts +2 -0
- package/src/timeline.ts +2 -0
- package/src/tour.ts +2 -0
- package/src/transfer-list.ts +2 -0
- package/src/tree-select.ts +2 -0
- package/src/tree-view.ts +2 -0
- package/src/types.ts +1299 -0
- package/src/upload-manager.ts +2 -0
- package/src/video-lightbox.ts +2 -0
- package/src/video-player.ts +2 -0
- package/styles/app-layout.css +115 -0
- package/styles/badge.css +131 -0
- package/styles/breadcrumbs.css +77 -0
- package/styles/button.css +625 -0
- package/styles/card.css +119 -0
- package/styles/cascader.css +152 -0
- package/styles/chat-widget.css +121 -0
- package/styles/chat.css +66 -0
- package/styles/chip-group.css +44 -0
- package/styles/chip.css +191 -0
- package/styles/collection-layout.css +30 -0
- package/styles/command-palette.css +35 -0
- package/styles/content-carousel.css +34 -0
- package/styles/dashboard-canvas.css +49 -0
- package/styles/dashboard-panel.css +2 -0
- package/styles/date-picker.css +78 -0
- package/styles/date-range-picker.css +78 -0
- package/styles/date-time-picker.css +78 -0
- package/styles/descriptions.css +113 -0
- package/styles/drawer.css +215 -0
- package/styles/empty-state.css +110 -0
- package/styles/float-button.css +28 -0
- package/styles/font-provider.css +5 -0
- package/styles/grid-basic.css +12 -0
- package/styles/hero-section.css +41 -0
- package/styles/image-compare.css +35 -0
- package/styles/logo-cloud.css +33 -0
- package/styles/marketing-template-layout.css +30 -0
- package/styles/media-card.css +41 -0
- package/styles/media-image.css +531 -0
- package/styles/modal.css +210 -0
- package/styles/notification-center.css +49 -0
- package/styles/notification.css +155 -0
- package/styles/page-header.css +184 -0
- package/styles/page-layout.css +117 -0
- package/styles/pagination.css +127 -0
- package/styles/profile-card.css +484 -0
- package/styles/qr-code.css +125 -0
- package/styles/quote-card.css +30 -0
- package/styles/shape-mask.css +10 -0
- package/styles/sidebar.css +183 -0
- package/styles/skeleton.css +69 -0
- package/styles/sparkline.css +38 -0
- package/styles/split-section.css +34 -0
- package/styles/splitter.css +32 -0
- package/styles/statistic.css +107 -0
- package/styles/text-highlight.css +49 -0
- package/styles/theme.css +1391 -0
- package/styles/time-picker.css +78 -0
- package/styles/timeline.css +126 -0
- package/styles/tour.css +138 -0
- package/styles/transfer-list.css +878 -0
- package/styles/tree-select.css +135 -0
- package/styles/tree-view.css +118 -0
- package/styles/upload-manager.css +40 -0
- package/styles/video-lightbox.css +639 -0
- package/styles/video-player.css +92 -0
- package/test/contracts.test.mjs +8 -0
- package/test/isolation.test.mjs +36 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,493 @@
|
|
|
1
|
+
// ../blu-grid/docs/scripts/modules/platform.js
|
|
2
|
+
import { global, runtime, state, register } from "./kernel.js";
|
|
3
|
+
var shared = /* @__PURE__ */ state("platform", () => ({ states: /* @__PURE__ */ new Map(), sequence: 0 }));
|
|
4
|
+
function el(tag, cls, text2) {
|
|
5
|
+
var n = document.createElement(tag);
|
|
6
|
+
if (cls) n.className = cls;
|
|
7
|
+
if (text2 !== void 0) n.textContent = String(text2);
|
|
8
|
+
return n;
|
|
9
|
+
}
|
|
10
|
+
function at(n, k, v) {
|
|
11
|
+
n.setAttribute(k, String(v));
|
|
12
|
+
return n;
|
|
13
|
+
}
|
|
14
|
+
function clear(n) {
|
|
15
|
+
while (n.firstChild) n.removeChild(n.firstChild);
|
|
16
|
+
}
|
|
17
|
+
function copy(value) {
|
|
18
|
+
return JSON.parse(JSON.stringify(value));
|
|
19
|
+
}
|
|
20
|
+
function json(value) {
|
|
21
|
+
return JSON.stringify(value);
|
|
22
|
+
}
|
|
23
|
+
function text(value) {
|
|
24
|
+
return value == null ? "" : String(value);
|
|
25
|
+
}
|
|
26
|
+
function int(value, fallback, min, max) {
|
|
27
|
+
var n = value == null ? fallback : Number(value);
|
|
28
|
+
if (!Number.isInteger(n) || n < min || n > max) throw Error("Expected a whole number from " + min + " to " + max + ".");
|
|
29
|
+
return n;
|
|
30
|
+
}
|
|
31
|
+
function list(raw, name, max) {
|
|
32
|
+
var v = typeof raw === "string" ? JSON.parse(raw || "[]") : raw || [];
|
|
33
|
+
if (!Array.isArray(v) || v.length > (max || 1e4)) throw Error(name + " must be a list with at most " + (max || 1e4) + " items.");
|
|
34
|
+
return copy(v);
|
|
35
|
+
}
|
|
36
|
+
function keyed(rows, name) {
|
|
37
|
+
var keys = /* @__PURE__ */ new Set();
|
|
38
|
+
rows.forEach(function(r) {
|
|
39
|
+
if (!r || typeof r.Key !== "string" || !r.Key || keys.has(r.Key)) throw Error(name + " needs unique, nonempty text keys.");
|
|
40
|
+
keys.add(r.Key);
|
|
41
|
+
});
|
|
42
|
+
return rows;
|
|
43
|
+
}
|
|
44
|
+
function uid(prefix) {
|
|
45
|
+
return prefix + "-" + Date.now().toString(36) + "-" + ++shared.sequence;
|
|
46
|
+
}
|
|
47
|
+
function on(s, node, event, fn, capture) {
|
|
48
|
+
node.addEventListener(event, fn, !!capture);
|
|
49
|
+
s.cleanup.push(function() {
|
|
50
|
+
node.removeEventListener(event, fn, !!capture);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function announce(s, message) {
|
|
54
|
+
s.status.textContent = message || "";
|
|
55
|
+
}
|
|
56
|
+
function report(s, error) {
|
|
57
|
+
var message = error && error.message || text(error);
|
|
58
|
+
s.error.textContent = message;
|
|
59
|
+
s.error.hidden = !message;
|
|
60
|
+
if (message && s.lastError !== message) {
|
|
61
|
+
s.lastError = message;
|
|
62
|
+
if (s.events.Error) {
|
|
63
|
+
try {
|
|
64
|
+
Promise.resolve(s.events.Error(message)).catch(function() {
|
|
65
|
+
});
|
|
66
|
+
} catch (_) {
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
if (!message) s.lastError = "";
|
|
71
|
+
}
|
|
72
|
+
function emit(s, name) {
|
|
73
|
+
if (s.dead || !s.events[name]) return;
|
|
74
|
+
var args = Array.prototype.slice.call(arguments, 2);
|
|
75
|
+
try {
|
|
76
|
+
Promise.resolve(s.events[name].apply(null, args)).catch(function(e) {
|
|
77
|
+
if (!s.dead) report(s, e);
|
|
78
|
+
});
|
|
79
|
+
} catch (e) {
|
|
80
|
+
report(s, e);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
function button(label, fn, key, cls) {
|
|
84
|
+
var b = el("button", "blu-platform__button " + (cls || ""), label);
|
|
85
|
+
b.type = "button";
|
|
86
|
+
if (key) at(b, "data-focus", key);
|
|
87
|
+
b.addEventListener("click", fn);
|
|
88
|
+
return b;
|
|
89
|
+
}
|
|
90
|
+
function labelControl(label, control) {
|
|
91
|
+
var f = el("label", "blu-platform__field");
|
|
92
|
+
f.append(el("span", "blu-platform__label", label), control);
|
|
93
|
+
return f;
|
|
94
|
+
}
|
|
95
|
+
function select(values, value, label, fn, key) {
|
|
96
|
+
var n = el("select", "blu-platform__input");
|
|
97
|
+
at(n, "aria-label", label);
|
|
98
|
+
if (key) at(n, "data-focus", key);
|
|
99
|
+
values.forEach(function(v) {
|
|
100
|
+
var o = el("option", "", typeof v === "string" ? v : v.label);
|
|
101
|
+
o.value = typeof v === "string" ? v : v.value;
|
|
102
|
+
n.append(o);
|
|
103
|
+
});
|
|
104
|
+
n.value = text(value);
|
|
105
|
+
n.addEventListener("change", function() {
|
|
106
|
+
fn(n.value);
|
|
107
|
+
});
|
|
108
|
+
return n;
|
|
109
|
+
}
|
|
110
|
+
function focusState(root) {
|
|
111
|
+
var a = document.activeElement;
|
|
112
|
+
return a && root.contains(a) ? { key: a.getAttribute("data-focus"), start: a.selectionStart, end: a.selectionEnd } : null;
|
|
113
|
+
}
|
|
114
|
+
function restoreFocus(root, f) {
|
|
115
|
+
if (!f || !f.key) return false;
|
|
116
|
+
var n = Array.from(root.querySelectorAll("[data-focus]")).find(function(x) {
|
|
117
|
+
return x.getAttribute("data-focus") === f.key;
|
|
118
|
+
});
|
|
119
|
+
if (n && !n.disabled && !n.closest("[hidden]")) {
|
|
120
|
+
var details = n.closest("details");
|
|
121
|
+
if (details) details.open = true;
|
|
122
|
+
n.focus({ preventScroll: true });
|
|
123
|
+
if (typeof n.setSelectionRange === "function" && f.start != null) {
|
|
124
|
+
try {
|
|
125
|
+
n.setSelectionRange(f.start, f.end);
|
|
126
|
+
} catch (_) {
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return true;
|
|
130
|
+
}
|
|
131
|
+
return false;
|
|
132
|
+
}
|
|
133
|
+
function busy(s) {
|
|
134
|
+
return !!s.pending;
|
|
135
|
+
}
|
|
136
|
+
function startSave(s, snapshot, event, args) {
|
|
137
|
+
if (busy(s)) return;
|
|
138
|
+
var hadFocus = s.root.contains(document.activeElement);
|
|
139
|
+
s.pending = { id: uid("save"), data: copy(snapshot) };
|
|
140
|
+
announce(s, "Saving changes\u2026");
|
|
141
|
+
s.draw();
|
|
142
|
+
if (hadFocus) {
|
|
143
|
+
at(s.status, "tabindex", "-1");
|
|
144
|
+
s.status.focus({ preventScroll: true });
|
|
145
|
+
}
|
|
146
|
+
emit.apply(null, [s, event, s.pending.id].concat(args));
|
|
147
|
+
}
|
|
148
|
+
function result(s, accept) {
|
|
149
|
+
var o = s.options;
|
|
150
|
+
if (!s.pending || o.SaveResultRequestId !== s.pending.id) return;
|
|
151
|
+
var pending = s.pending;
|
|
152
|
+
s.pending = null;
|
|
153
|
+
if (o.SaveResultSuccess) {
|
|
154
|
+
s.baseline = copy(pending.data);
|
|
155
|
+
accept && accept();
|
|
156
|
+
announce(s, o.SaveResultMessage || "Changes saved.");
|
|
157
|
+
} else announce(s, o.SaveResultMessage || "Changes could not be saved. Your edits are retained.");
|
|
158
|
+
}
|
|
159
|
+
function saveBar(s, dirty, save, discard) {
|
|
160
|
+
var bar = el("div", "blu-platform__savebar");
|
|
161
|
+
bar.hidden = !dirty && !busy(s);
|
|
162
|
+
var b = button(busy(s) ? "Saving\u2026" : "Save changes", save, "save", "blu-platform__button--primary");
|
|
163
|
+
b.disabled = busy(s);
|
|
164
|
+
var d = button("Discard", discard, "discard");
|
|
165
|
+
d.disabled = busy(s);
|
|
166
|
+
bar.append(el("span", "", dirty + (dirty === 1 ? " change" : " changes")), d, b);
|
|
167
|
+
return bar;
|
|
168
|
+
}
|
|
169
|
+
function dispose(key) {
|
|
170
|
+
var s = shared.states.get(key);
|
|
171
|
+
if (!s) return;
|
|
172
|
+
s.dead = true;
|
|
173
|
+
s.cleanup.forEach(function(f) {
|
|
174
|
+
f();
|
|
175
|
+
});
|
|
176
|
+
if (s.destroy) s.destroy();
|
|
177
|
+
s.root.remove();
|
|
178
|
+
if (s.host._bluPlatformOwner === key) delete s.host._bluPlatformOwner;
|
|
179
|
+
shared.states.delete(key);
|
|
180
|
+
}
|
|
181
|
+
function define(kind, cls, init, update) {
|
|
182
|
+
return { sync: function(id, options, events, owner) {
|
|
183
|
+
var host = document.getElementById(id);
|
|
184
|
+
if (!host) return "Component host was not found.";
|
|
185
|
+
var key = owner || id, s = shared.states.get(key);
|
|
186
|
+
if (s && (s.host !== host || s.kind !== kind)) {
|
|
187
|
+
dispose(key);
|
|
188
|
+
s = null;
|
|
189
|
+
}
|
|
190
|
+
if (host._bluPlatformOwner && host._bluPlatformOwner !== key) dispose(host._bluPlatformOwner);
|
|
191
|
+
if (!s) {
|
|
192
|
+
s = { host, key, kind, uid: uid("blu-platform"), cleanup: [], events: {}, options: {} };
|
|
193
|
+
s.root = el("section", "blu-platform " + cls);
|
|
194
|
+
s.body = el("div", "blu-platform__body");
|
|
195
|
+
s.status = at(el("p", "blu-platform__status"), "role", "status");
|
|
196
|
+
at(s.status, "aria-live", "polite");
|
|
197
|
+
s.error = at(el("p", "blu-platform__error"), "role", "alert");
|
|
198
|
+
s.error.hidden = true;
|
|
199
|
+
s.root.append(s.body, s.status, s.error);
|
|
200
|
+
host.append(s.root);
|
|
201
|
+
shared.states.set(key, s);
|
|
202
|
+
s.needsInit = true;
|
|
203
|
+
}
|
|
204
|
+
host._bluPlatformOwner = key;
|
|
205
|
+
s.options = options || {};
|
|
206
|
+
s.events = events || {};
|
|
207
|
+
at(s.root, "aria-label", s.options.AccessibleLabel || kind.replace(/([a-z])([A-Z])/g, "$1 $2"));
|
|
208
|
+
var preview = host.nextElementSibling;
|
|
209
|
+
if (preview && preview.classList.contains("blu-component-preview")) preview.hidden = true;
|
|
210
|
+
try {
|
|
211
|
+
if (s.needsInit) {
|
|
212
|
+
init(s);
|
|
213
|
+
s.needsInit = false;
|
|
214
|
+
}
|
|
215
|
+
update(s);
|
|
216
|
+
report(s, "");
|
|
217
|
+
return "";
|
|
218
|
+
} catch (e) {
|
|
219
|
+
report(s, e);
|
|
220
|
+
return e.message || String(e);
|
|
221
|
+
}
|
|
222
|
+
}, destroy: dispose };
|
|
223
|
+
}
|
|
224
|
+
function dashboardPanels(raw, columns) {
|
|
225
|
+
return keyed(list(raw, "Panels", 200), "Panels").map(function(p) {
|
|
226
|
+
return { Key: p.Key, Title: text(p.Title) || p.Key, ColumnSpan: Math.min(columns, int(p.ColumnSpan, 6, 1, 12)), RowSpan: int(p.RowSpan, 2, 1, 12), IsHidden: !!p.IsHidden };
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
function dashboardInit(s) {
|
|
230
|
+
s.editing = false;
|
|
231
|
+
s.panels = [];
|
|
232
|
+
s.baseline = [];
|
|
233
|
+
s.panelNodes = /* @__PURE__ */ new Map();
|
|
234
|
+
s.content = Array.from(s.host.children).find(function(n) {
|
|
235
|
+
return n.classList.contains("blu-common-slot--content");
|
|
236
|
+
});
|
|
237
|
+
if (!s.content) throw Error("DashboardCanvas requires a Content slot containing DashboardPanel blocks.");
|
|
238
|
+
s.content.classList.add("blu-dashboard-canvas__grid");
|
|
239
|
+
s.root.insertBefore(s.content, s.status);
|
|
240
|
+
s.change = function() {
|
|
241
|
+
s.draw();
|
|
242
|
+
emit(s, "LayoutChanged", json(s.panels));
|
|
243
|
+
};
|
|
244
|
+
s.move = function(key, index) {
|
|
245
|
+
if (s.options.IsDisabled || busy(s)) return;
|
|
246
|
+
var old = s.panels.findIndex(function(p) {
|
|
247
|
+
return p.Key === key;
|
|
248
|
+
});
|
|
249
|
+
if (old < 0 || index < 0 || index >= s.panels.length || old === index) return;
|
|
250
|
+
s.panels.splice(index, 0, s.panels.splice(old, 1)[0]);
|
|
251
|
+
announce(s, "Panel moved to position " + (index + 1) + ".");
|
|
252
|
+
s.change();
|
|
253
|
+
};
|
|
254
|
+
s.draw = function() {
|
|
255
|
+
var f = focusState(s.root), o = s.options, editing = s.editing && o.AllowEditing !== false, locked = !!o.IsDisabled || busy(s);
|
|
256
|
+
s.root.classList.toggle("blu-dashboard-canvas--editing", editing);
|
|
257
|
+
s.content.style.setProperty("--blu-dashboard-columns", s.columns);
|
|
258
|
+
s.content.style.setProperty("--blu-dashboard-row", s.rowHeight + "px");
|
|
259
|
+
clear(s.body);
|
|
260
|
+
var tools = el("div", "blu-platform__toolbar");
|
|
261
|
+
tools.append(el("span", "blu-platform__muted", s.panels.filter(function(p) {
|
|
262
|
+
return !p.IsHidden;
|
|
263
|
+
}).length + " visible panels"));
|
|
264
|
+
if (o.AllowEditing !== false) {
|
|
265
|
+
var edit = button(editing ? "Done editing" : "Edit layout", function() {
|
|
266
|
+
s.editing = !s.editing;
|
|
267
|
+
s.draw();
|
|
268
|
+
}, "edit-layout");
|
|
269
|
+
edit.disabled = locked;
|
|
270
|
+
tools.append(edit);
|
|
271
|
+
if (editing) {
|
|
272
|
+
var hidden = s.panels.filter(function(p) {
|
|
273
|
+
return p.IsHidden;
|
|
274
|
+
});
|
|
275
|
+
if (hidden.length) {
|
|
276
|
+
var restore = select([{ value: "", label: "Restore a hidden panel" }].concat(hidden.map(function(p) {
|
|
277
|
+
return { value: p.Key, label: p.Title };
|
|
278
|
+
})), "", "Restore a hidden panel", function(key) {
|
|
279
|
+
var p = s.panels.find(function(p2) {
|
|
280
|
+
return p2.Key === key;
|
|
281
|
+
});
|
|
282
|
+
if (p) {
|
|
283
|
+
p.IsHidden = false;
|
|
284
|
+
s.change();
|
|
285
|
+
announce(s, p.Title + " restored.");
|
|
286
|
+
}
|
|
287
|
+
}, "restore-panel");
|
|
288
|
+
restore.disabled = locked;
|
|
289
|
+
tools.append(restore);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
s.body.append(tools);
|
|
294
|
+
var dirty = s.panels.reduce(function(n, p, i) {
|
|
295
|
+
return n + (json(p) !== json(s.baseline[i]) ? 1 : 0);
|
|
296
|
+
}, 0);
|
|
297
|
+
s.body.append(saveBar(s, dirty, function() {
|
|
298
|
+
startSave(s, s.panels, "SaveRequested", [json(s.panels)]);
|
|
299
|
+
}, function() {
|
|
300
|
+
s.panels = copy(s.baseline);
|
|
301
|
+
s.change();
|
|
302
|
+
announce(s, "Layout changes discarded.");
|
|
303
|
+
}));
|
|
304
|
+
var panelElements = Array.from(s.content.querySelectorAll("[data-blu-panel-key]")).filter(function(n) {
|
|
305
|
+
return n.closest(".blu-dashboard-canvas") === s.root;
|
|
306
|
+
});
|
|
307
|
+
var wrappers = panelElements.map(function(n) {
|
|
308
|
+
var w = n;
|
|
309
|
+
while (w.parentElement !== s.content && w.parentElement.querySelectorAll("[data-blu-panel-key]").length === 1) w = w.parentElement;
|
|
310
|
+
return w;
|
|
311
|
+
});
|
|
312
|
+
if (wrappers.length && wrappers.every(function(w) {
|
|
313
|
+
return w.parentElement === wrappers[0].parentElement;
|
|
314
|
+
})) {
|
|
315
|
+
var parent = wrappers[0].parentElement, ordered = wrappers.slice().sort(function(a, b) {
|
|
316
|
+
return s.panels.findIndex(function(p) {
|
|
317
|
+
return p.Key === (a.matches("[data-blu-panel-key]") ? a : a.querySelector("[data-blu-panel-key]")).getAttribute("data-blu-panel-key");
|
|
318
|
+
}) - s.panels.findIndex(function(p) {
|
|
319
|
+
return p.Key === (b.matches("[data-blu-panel-key]") ? b : b.querySelector("[data-blu-panel-key]")).getAttribute("data-blu-panel-key");
|
|
320
|
+
});
|
|
321
|
+
});
|
|
322
|
+
var current = Array.from(parent.children).filter(function(n) {
|
|
323
|
+
return wrappers.indexOf(n) >= 0;
|
|
324
|
+
});
|
|
325
|
+
if (ordered.some(function(n, i) {
|
|
326
|
+
return n !== current[i];
|
|
327
|
+
})) ordered.forEach(function(n) {
|
|
328
|
+
parent.append(n);
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
panelElements.forEach(function(node) {
|
|
332
|
+
var key = node.getAttribute("data-blu-panel-key"), index = s.panels.findIndex(function(p2) {
|
|
333
|
+
return p2.Key === key;
|
|
334
|
+
}), p = s.panels[index];
|
|
335
|
+
var chrome = Array.from(node.children).find(function(n) {
|
|
336
|
+
return n.classList.contains("blu-dashboard-canvas__panel-header");
|
|
337
|
+
});
|
|
338
|
+
if (chrome) chrome.remove();
|
|
339
|
+
node.classList.add("blu-dashboard-canvas__panel");
|
|
340
|
+
node.hidden = !p || p.IsHidden;
|
|
341
|
+
if (!p) return;
|
|
342
|
+
s.panelNodes.set(key, node);
|
|
343
|
+
var parent2 = node.parentElement;
|
|
344
|
+
while (parent2 && parent2 !== s.content) {
|
|
345
|
+
parent2.classList.add("blu-dashboard-canvas__bridge");
|
|
346
|
+
parent2 = parent2.parentElement;
|
|
347
|
+
}
|
|
348
|
+
node.style.order = String(index);
|
|
349
|
+
node.style.setProperty("--blu-dashboard-span", p.ColumnSpan);
|
|
350
|
+
node.style.setProperty("--blu-dashboard-rows", p.RowSpan);
|
|
351
|
+
at(node, "role", "group");
|
|
352
|
+
at(node, "aria-label", p.Title);
|
|
353
|
+
chrome = el("div", "blu-dashboard-canvas__panel-header");
|
|
354
|
+
chrome.append(el("h3", "blu-dashboard-canvas__panel-title", p.Title));
|
|
355
|
+
if (editing) {
|
|
356
|
+
var handle = button("\u283F", function() {
|
|
357
|
+
}, "drag-" + key, "blu-dashboard-canvas__drag");
|
|
358
|
+
at(handle, "aria-label", "Drag " + p.Title + "; use Layout options to move without dragging");
|
|
359
|
+
handle.disabled = locked;
|
|
360
|
+
handle.addEventListener("pointerdown", function(e) {
|
|
361
|
+
if (e.button !== 0 || locked) return;
|
|
362
|
+
e.preventDefault();
|
|
363
|
+
s.drag = { key, x: e.clientX, y: e.clientY, index, handle };
|
|
364
|
+
handle.setPointerCapture(e.pointerId);
|
|
365
|
+
});
|
|
366
|
+
var details = el("details", "blu-dashboard-canvas__settings");
|
|
367
|
+
var summary = el("summary", "", "Layout options");
|
|
368
|
+
at(summary, "data-focus", "settings-" + key);
|
|
369
|
+
details.append(summary);
|
|
370
|
+
var choices = el("div", "blu-dashboard-canvas__settings-body"), before = button("Move earlier", function() {
|
|
371
|
+
s.move(key, index - 1);
|
|
372
|
+
}, "earlier-" + key), after = button("Move later", function() {
|
|
373
|
+
s.move(key, index + 1);
|
|
374
|
+
}, "later-" + key);
|
|
375
|
+
before.disabled = locked || index === 0;
|
|
376
|
+
after.disabled = locked || index === s.panels.length - 1;
|
|
377
|
+
var widths = Array.from({ length: s.columns }, function(_, i) {
|
|
378
|
+
return { value: String(i + 1), label: i + 1 + " columns" };
|
|
379
|
+
});
|
|
380
|
+
var heights = Array.from({ length: 12 }, function(_, i) {
|
|
381
|
+
return { value: String(i + 1), label: i + 1 + " row units" };
|
|
382
|
+
});
|
|
383
|
+
var width = select(widths, p.ColumnSpan, "Width of " + p.Title, function(v) {
|
|
384
|
+
p.ColumnSpan = Number(v);
|
|
385
|
+
s.change();
|
|
386
|
+
}, "width-" + key), height = select(heights, p.RowSpan, "Height of " + p.Title, function(v) {
|
|
387
|
+
p.RowSpan = Number(v);
|
|
388
|
+
s.change();
|
|
389
|
+
}, "height-" + key);
|
|
390
|
+
width.disabled = height.disabled = locked;
|
|
391
|
+
var hide = button("Hide panel", function() {
|
|
392
|
+
p.IsHidden = true;
|
|
393
|
+
s.change();
|
|
394
|
+
announce(s, p.Title + " hidden.");
|
|
395
|
+
var b = s.root.querySelector('[data-focus="restore-panel"]');
|
|
396
|
+
if (b) b.focus();
|
|
397
|
+
}, "hide-" + key);
|
|
398
|
+
hide.disabled = locked;
|
|
399
|
+
choices.append(before, after, labelControl("Width", width), labelControl("Height", height), hide);
|
|
400
|
+
details.append(choices);
|
|
401
|
+
chrome.append(handle, details);
|
|
402
|
+
}
|
|
403
|
+
node.prepend(chrome);
|
|
404
|
+
});
|
|
405
|
+
restoreFocus(s.root, f);
|
|
406
|
+
};
|
|
407
|
+
on(s, document, "pointermove", function(e) {
|
|
408
|
+
var d = s.drag;
|
|
409
|
+
if (!d) return;
|
|
410
|
+
if (!d.ghost && Math.hypot(e.clientX - d.x, e.clientY - d.y) > 5) {
|
|
411
|
+
var source = s.panelNodes.get(d.key);
|
|
412
|
+
d.ghost = source.cloneNode(true);
|
|
413
|
+
d.ghost.querySelectorAll("[id]").forEach(function(n) {
|
|
414
|
+
n.removeAttribute("id");
|
|
415
|
+
});
|
|
416
|
+
d.ghost.removeAttribute("id");
|
|
417
|
+
d.ghost.className = "blu-dashboard-canvas__ghost";
|
|
418
|
+
at(d.ghost, "aria-hidden", "true");
|
|
419
|
+
d.ghost.inert = true;
|
|
420
|
+
d.ghost.style.width = Math.min(source.getBoundingClientRect().width, 360) + "px";
|
|
421
|
+
document.body.append(d.ghost);
|
|
422
|
+
}
|
|
423
|
+
if (d.ghost) {
|
|
424
|
+
d.ghost.style.left = e.clientX + 14 + "px";
|
|
425
|
+
d.ghost.style.top = e.clientY + 14 + "px";
|
|
426
|
+
var under = document.elementFromPoint(e.clientX, e.clientY), target = under && under.closest("[data-blu-panel-key]");
|
|
427
|
+
s.panelNodes.forEach(function(n) {
|
|
428
|
+
n.classList.remove("blu-dashboard-canvas__drop");
|
|
429
|
+
});
|
|
430
|
+
if (target && s.content.contains(target)) {
|
|
431
|
+
d.index = s.panels.findIndex(function(p) {
|
|
432
|
+
return p.Key === target.getAttribute("data-blu-panel-key");
|
|
433
|
+
});
|
|
434
|
+
target.classList.add("blu-dashboard-canvas__drop");
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
function finish(e) {
|
|
439
|
+
var d = s.drag;
|
|
440
|
+
if (!d) return;
|
|
441
|
+
s.drag = null;
|
|
442
|
+
if (d.ghost) d.ghost.remove();
|
|
443
|
+
s.panelNodes.forEach(function(n) {
|
|
444
|
+
n.classList.remove("blu-dashboard-canvas__drop");
|
|
445
|
+
});
|
|
446
|
+
if (e.type === "pointerup" && d.ghost) s.move(d.key, d.index);
|
|
447
|
+
}
|
|
448
|
+
on(s, document, "pointerup", finish);
|
|
449
|
+
on(s, document, "pointercancel", finish);
|
|
450
|
+
on(s, document, "keydown", function(e) {
|
|
451
|
+
if (e.key === "Escape" && s.drag) finish({ type: "pointercancel" });
|
|
452
|
+
});
|
|
453
|
+
var observer = new MutationObserver(function(changes) {
|
|
454
|
+
if (changes.some(function(c) {
|
|
455
|
+
return Array.from(c.addedNodes).some(function(n) {
|
|
456
|
+
return n.nodeType === 1 && (n.hasAttribute("data-blu-panel-key") || n.querySelector("[data-blu-panel-key]"));
|
|
457
|
+
});
|
|
458
|
+
})) s.draw();
|
|
459
|
+
});
|
|
460
|
+
observer.observe(s.content, { childList: true, subtree: true });
|
|
461
|
+
s.destroy = function() {
|
|
462
|
+
observer.disconnect();
|
|
463
|
+
if (s.drag && s.drag.ghost) s.drag.ghost.remove();
|
|
464
|
+
s.content.querySelectorAll(".blu-dashboard-canvas__panel-header").forEach(function(n) {
|
|
465
|
+
n.remove();
|
|
466
|
+
});
|
|
467
|
+
s.host.insertBefore(s.content, s.root);
|
|
468
|
+
s.content.classList.remove("blu-dashboard-canvas__grid");
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
function dashboardUpdate(s) {
|
|
472
|
+
var o = s.options;
|
|
473
|
+
s.columns = int(o.Columns, 12, 1, 12);
|
|
474
|
+
s.rowHeight = int(o.RowHeight, 100, 60, 320);
|
|
475
|
+
var raw = json(dashboardPanels(o.PanelsJson, s.columns));
|
|
476
|
+
if (s.lastPanels === void 0 || s.resetKey !== o.ResetKey && !busy(s)) {
|
|
477
|
+
s.panels = JSON.parse(raw);
|
|
478
|
+
s.baseline = copy(s.panels);
|
|
479
|
+
s.resetKey = o.ResetKey;
|
|
480
|
+
} else if (raw !== s.lastPanels && !busy(s) && raw !== json(s.panels)) {
|
|
481
|
+
s.panels = JSON.parse(raw);
|
|
482
|
+
s.baseline = copy(s.panels);
|
|
483
|
+
}
|
|
484
|
+
s.lastPanels = raw;
|
|
485
|
+
result(s);
|
|
486
|
+
s.draw();
|
|
487
|
+
}
|
|
488
|
+
function installDashboardCanvas() {
|
|
489
|
+
return register("DashboardCanvas", () => define("DashboardCanvas", "blu-dashboard-canvas", dashboardInit, dashboardUpdate));
|
|
490
|
+
}
|
|
491
|
+
export {
|
|
492
|
+
installDashboardCanvas
|
|
493
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function installDatePicker(): unknown;
|