@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 @@
|
|
|
1
|
+
export function installQuoteCard(): any;
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
// ../blu-grid/docs/scripts/modules/qr-encoder.js
|
|
2
|
+
import { global } from "./kernel.js";
|
|
3
|
+
|
|
4
|
+
// ../blu-grid/docs/scripts/modules/common.js
|
|
5
|
+
import { global as global2, runtime, state, register } from "./kernel.js";
|
|
6
|
+
|
|
7
|
+
// ../blu-grid/docs/scripts/modules/rich.js
|
|
8
|
+
import { global as global3, runtime as runtime2, state as state2, register as register2 } from "./kernel.js";
|
|
9
|
+
var shared = /* @__PURE__ */ state2("rich", () => ({ instances: /* @__PURE__ */ new Map(), serial: 0 }));
|
|
10
|
+
function el(tag, cls, value) {
|
|
11
|
+
var n = document.createElement(tag);
|
|
12
|
+
if (cls) n.className = cls;
|
|
13
|
+
if (value !== void 0) n.textContent = value;
|
|
14
|
+
return n;
|
|
15
|
+
}
|
|
16
|
+
function attr(n, k, v) {
|
|
17
|
+
n.setAttribute(k, String(v));
|
|
18
|
+
return n;
|
|
19
|
+
}
|
|
20
|
+
function num(v, d, min, max) {
|
|
21
|
+
v = v === void 0 ? d : Number(v);
|
|
22
|
+
return Number.isFinite(v) ? Math.min(max, Math.max(min, v)) : d;
|
|
23
|
+
}
|
|
24
|
+
function url(v) {
|
|
25
|
+
if (!v) return "";
|
|
26
|
+
var u = new URL(String(v), document.baseURI);
|
|
27
|
+
if (!/^https?:$/.test(u.protocol) && u.protocol !== "blob:") throw Error("Use an HTTP(S), relative or blob URL.");
|
|
28
|
+
return u.href;
|
|
29
|
+
}
|
|
30
|
+
function report(s, e) {
|
|
31
|
+
var message = e ? e.message || String(e) : "";
|
|
32
|
+
s.error.textContent = message;
|
|
33
|
+
s.error.hidden = !message;
|
|
34
|
+
if (message && message !== s.lastError) {
|
|
35
|
+
s.lastError = message;
|
|
36
|
+
if (s.events.Error) try {
|
|
37
|
+
s.events.Error(message);
|
|
38
|
+
} catch (_) {
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function image(src, alt, eager) {
|
|
43
|
+
var n = el("img");
|
|
44
|
+
n.alt = alt || "";
|
|
45
|
+
n.loading = eager ? "eager" : "lazy";
|
|
46
|
+
n.decoding = "async";
|
|
47
|
+
if (src) n.src = url(src);
|
|
48
|
+
return n;
|
|
49
|
+
}
|
|
50
|
+
function destroy(key) {
|
|
51
|
+
var s = shared.instances.get(key);
|
|
52
|
+
if (!s || s.destroying) return;
|
|
53
|
+
s.destroying = true;
|
|
54
|
+
if (s.beforeDestroy) s.beforeDestroy();
|
|
55
|
+
s.dead = true;
|
|
56
|
+
s.cleanup.forEach(function(f) {
|
|
57
|
+
f();
|
|
58
|
+
});
|
|
59
|
+
if (s.pause) s.pause();
|
|
60
|
+
if (s.modal) runtime2.Modal.destroy(s.uid + "-modal");
|
|
61
|
+
if (s.observer) s.observer.disconnect();
|
|
62
|
+
if (s.resize) s.resize.disconnect();
|
|
63
|
+
if (s.frame) cancelAnimationFrame(s.frame);
|
|
64
|
+
Object.keys(s.slots).forEach(function(k) {
|
|
65
|
+
s.host.append(s.slots[k]);
|
|
66
|
+
});
|
|
67
|
+
s.root.remove();
|
|
68
|
+
if (s.modal) s.modal.remove();
|
|
69
|
+
if (s.host._bluRichOwner === key) delete s.host._bluRichOwner;
|
|
70
|
+
shared.instances.delete(key);
|
|
71
|
+
}
|
|
72
|
+
function define(kind, slug, init, update) {
|
|
73
|
+
return { sync: function(id, options, events, key) {
|
|
74
|
+
var host = document.getElementById(id);
|
|
75
|
+
if (!host) return "Component host was not found.";
|
|
76
|
+
key = key || id;
|
|
77
|
+
var s = shared.instances.get(key);
|
|
78
|
+
if (s && (s.host !== host || s.kind !== kind)) {
|
|
79
|
+
destroy(key);
|
|
80
|
+
s = null;
|
|
81
|
+
}
|
|
82
|
+
if (host._bluRichOwner && host._bluRichOwner !== key) destroy(host._bluRichOwner);
|
|
83
|
+
if (!s) {
|
|
84
|
+
s = { host, key, kind, uid: "blu-rich-" + ++shared.serial, cleanup: [], slots: {}, events: {}, options: {} };
|
|
85
|
+
Array.from(host.children).forEach(function(n) {
|
|
86
|
+
var match = n.className && String(n.className).match(/blu-common-slot--(\w+)/);
|
|
87
|
+
if (match) s.slots[match[1]] = n;
|
|
88
|
+
});
|
|
89
|
+
s.root = el("div", "blu-rich blu-" + slug);
|
|
90
|
+
s.body = el("div", "blu-rich-body");
|
|
91
|
+
s.error = attr(el("p", "blu-rich-error"), "role", "alert");
|
|
92
|
+
s.error.hidden = true;
|
|
93
|
+
s.root.append(s.body, s.error);
|
|
94
|
+
host.append(s.root);
|
|
95
|
+
shared.instances.set(key, s);
|
|
96
|
+
s.fresh = true;
|
|
97
|
+
}
|
|
98
|
+
host._bluRichOwner = key;
|
|
99
|
+
s.options = options || {};
|
|
100
|
+
s.events = events || {};
|
|
101
|
+
var preview = host.nextElementSibling;
|
|
102
|
+
if (preview && preview.classList.contains("blu-component-preview")) preview.hidden = true;
|
|
103
|
+
if (s.options.AccessibleLabel) {
|
|
104
|
+
attr(s.root, "aria-label", s.options.AccessibleLabel);
|
|
105
|
+
attr(s.root, "role", "group");
|
|
106
|
+
} else {
|
|
107
|
+
s.root.removeAttribute("aria-label");
|
|
108
|
+
s.root.removeAttribute("role");
|
|
109
|
+
}
|
|
110
|
+
try {
|
|
111
|
+
if (s.fresh) {
|
|
112
|
+
init(s);
|
|
113
|
+
s.fresh = false;
|
|
114
|
+
}
|
|
115
|
+
update(s);
|
|
116
|
+
report(s, null);
|
|
117
|
+
return "";
|
|
118
|
+
} catch (e) {
|
|
119
|
+
report(s, e);
|
|
120
|
+
return e.message || String(e);
|
|
121
|
+
}
|
|
122
|
+
}, destroy };
|
|
123
|
+
}
|
|
124
|
+
function installQuoteCard() {
|
|
125
|
+
return register2("QuoteCard", () => define("QuoteCard", "quote-card", function(s) {
|
|
126
|
+
}, function(s) {
|
|
127
|
+
var o = s.options;
|
|
128
|
+
s.body.replaceChildren();
|
|
129
|
+
var quote = el("figure"), rating = num(o.Rating, 0, 0, 5);
|
|
130
|
+
if (rating) {
|
|
131
|
+
var stars = el("p", "blu-quote-card__rating", "\u2605".repeat(Math.round(rating)));
|
|
132
|
+
attr(stars, "role", "img");
|
|
133
|
+
attr(stars, "aria-label", rating + " out of 5 stars");
|
|
134
|
+
quote.append(stars);
|
|
135
|
+
}
|
|
136
|
+
quote.append(el("blockquote", "", o.Quote || ""));
|
|
137
|
+
var caption = el("figcaption");
|
|
138
|
+
if (o.AvatarUrl) caption.append(image(o.AvatarUrl, "", false));
|
|
139
|
+
var who = el("div");
|
|
140
|
+
who.append(el("strong", "", o.Name || ""), el("span", "", o.Role || ""));
|
|
141
|
+
caption.append(who);
|
|
142
|
+
if (o.LogoUrl) {
|
|
143
|
+
var logo = image(o.LogoUrl, o.Role || "Organization", false);
|
|
144
|
+
logo.className = "blu-quote-card__logo";
|
|
145
|
+
caption.append(logo);
|
|
146
|
+
}
|
|
147
|
+
quote.append(caption);
|
|
148
|
+
s.body.append(quote);
|
|
149
|
+
}));
|
|
150
|
+
}
|
|
151
|
+
export {
|
|
152
|
+
installQuoteCard
|
|
153
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function installShapeMask(): unknown;
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
// ../blu-grid/docs/scripts/advanced/shared.js
|
|
2
|
+
import { state, register } from "./kernel.js";
|
|
3
|
+
var shared = state("advanced", () => ({ instances: /* @__PURE__ */ new Map(), serial: 0 }));
|
|
4
|
+
var uid = () => `blu-advanced-${++shared.serial}`;
|
|
5
|
+
function node(tag, cls, text) {
|
|
6
|
+
const el = document.createElement(tag);
|
|
7
|
+
if (cls) el.className = cls;
|
|
8
|
+
if (text !== void 0) el.textContent = String(text);
|
|
9
|
+
return el;
|
|
10
|
+
}
|
|
11
|
+
function attr(el, name, value) {
|
|
12
|
+
if (value === null || value === void 0) el.removeAttribute(name);
|
|
13
|
+
else el.setAttribute(name, String(value));
|
|
14
|
+
return el;
|
|
15
|
+
}
|
|
16
|
+
function emit(s, name, ...args) {
|
|
17
|
+
if (s.dead) return;
|
|
18
|
+
try {
|
|
19
|
+
Promise.resolve(s.events[name]?.(...args)).catch((e) => report(s, e));
|
|
20
|
+
} catch (e) {
|
|
21
|
+
report(s, e);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function report(s, error) {
|
|
25
|
+
if (s.dead) return;
|
|
26
|
+
const message = error?.message || String(error);
|
|
27
|
+
s.notice.textContent = message;
|
|
28
|
+
if (s.lastError !== message) {
|
|
29
|
+
s.lastError = message;
|
|
30
|
+
emit(s, "Error", message);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function assetUrl(value) {
|
|
34
|
+
const url = new URL(String(value), document.baseURI);
|
|
35
|
+
if (!["https:", "http:"].includes(url.protocol)) throw Error("Use a relative or HTTP(S) asset URL.");
|
|
36
|
+
return url.href;
|
|
37
|
+
}
|
|
38
|
+
function createAPI(kind, init, update) {
|
|
39
|
+
const destroy = (key) => {
|
|
40
|
+
const s = shared.instances.get(key);
|
|
41
|
+
if (!s || s.kind !== kind) return;
|
|
42
|
+
s.dead = true;
|
|
43
|
+
s.dispose?.();
|
|
44
|
+
s.root.remove();
|
|
45
|
+
s.notice.remove();
|
|
46
|
+
if (s.host._bluAdvancedOwner === key) delete s.host._bluAdvancedOwner;
|
|
47
|
+
shared.instances.delete(key);
|
|
48
|
+
};
|
|
49
|
+
return register(kind, () => ({ sync(id, options = {}, events = {}, owner) {
|
|
50
|
+
const host = document.getElementById(id);
|
|
51
|
+
if (!host) return kind + " host was not found.";
|
|
52
|
+
const key = owner || id;
|
|
53
|
+
let s = shared.instances.get(key);
|
|
54
|
+
if (s && (s.host !== host || s.kind !== kind)) {
|
|
55
|
+
s.destroy(s.key);
|
|
56
|
+
s = null;
|
|
57
|
+
}
|
|
58
|
+
const previous = shared.instances.get(host._bluAdvancedOwner);
|
|
59
|
+
if (previous && previous !== s) previous.destroy(previous.key);
|
|
60
|
+
if (!s) {
|
|
61
|
+
s = { key, host, kind, uid: uid(), options, events, dead: false, destroy };
|
|
62
|
+
s.root = node("div");
|
|
63
|
+
s.notice = attr(node("div", "blu-advanced-sr"), "role", "status");
|
|
64
|
+
attr(s.notice, "aria-atomic", "true");
|
|
65
|
+
host.append(s.root, s.notice);
|
|
66
|
+
shared.instances.set(key, s);
|
|
67
|
+
host._bluAdvancedOwner = key;
|
|
68
|
+
try {
|
|
69
|
+
init(s);
|
|
70
|
+
} catch (e) {
|
|
71
|
+
destroy(key);
|
|
72
|
+
throw e;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
s.options = options;
|
|
76
|
+
s.events = events;
|
|
77
|
+
try {
|
|
78
|
+
update(s);
|
|
79
|
+
host.dataset.bluRuntimeReady = "true";
|
|
80
|
+
return "";
|
|
81
|
+
} catch (e) {
|
|
82
|
+
report(s, e);
|
|
83
|
+
return e.message || String(e);
|
|
84
|
+
}
|
|
85
|
+
}, destroy }));
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// ../blu-grid/docs/scripts/advanced/shape-mask.js
|
|
89
|
+
var shapes = {
|
|
90
|
+
Circle: "circle(48%)",
|
|
91
|
+
Oval: "ellipse(48% 36%)",
|
|
92
|
+
Diamond: "polygon(50% 0,100% 50%,50% 100%,0 50%)",
|
|
93
|
+
Hexagon: "polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%)",
|
|
94
|
+
Arch: "inset(0 round 50% 50% 0 0)",
|
|
95
|
+
Organic: "inset(0 round 40% 60% 61% 39% / 48% 35% 65% 52%)",
|
|
96
|
+
None: "none",
|
|
97
|
+
Custom: "none"
|
|
98
|
+
};
|
|
99
|
+
function resetMask(s) {
|
|
100
|
+
s.mask.style.maskImage = "none";
|
|
101
|
+
s.mask.style.webkitMaskImage = "none";
|
|
102
|
+
s.mask.style.clipPath = "none";
|
|
103
|
+
}
|
|
104
|
+
function animate(s) {
|
|
105
|
+
s.motion?.cancel();
|
|
106
|
+
s.motion = null;
|
|
107
|
+
if (s.reduced.matches || s.options.Animation === "None" || !s.options.Animation) return;
|
|
108
|
+
const keyframes = s.options.Animation === "Zoom" ? [{ scale: "1.06" }, { scale: "1" }] : [{ opacity: 0 }, { opacity: 1 }];
|
|
109
|
+
s.motion = s.media.animate(keyframes, { duration: Math.max(0, Math.min(2e3, Number(s.options.AnimationDuration ?? 500))), easing: "ease-out" });
|
|
110
|
+
}
|
|
111
|
+
function installShapeMask() {
|
|
112
|
+
return createAPI("ShapeMask", (s) => {
|
|
113
|
+
s.root.className = "blu-shape-mask";
|
|
114
|
+
s.mask = node("div", "blu-shape-mask__mask");
|
|
115
|
+
s.media = node("div", "blu-shape-mask__media");
|
|
116
|
+
s.mask.append(s.media);
|
|
117
|
+
s.root.append(s.mask);
|
|
118
|
+
s.content = s.host.querySelector(".blu-common-slot--content");
|
|
119
|
+
if (!s.content) throw Error("ShapeMask requires a Content slot.");
|
|
120
|
+
s.marker = document.createComment("ShapeMask content");
|
|
121
|
+
s.content.before(s.marker);
|
|
122
|
+
s.media.append(s.content);
|
|
123
|
+
s.reduced = matchMedia("(prefers-reduced-motion: reduce)");
|
|
124
|
+
s.motionChange = () => {
|
|
125
|
+
if (s.reduced.matches) s.motion?.cancel();
|
|
126
|
+
};
|
|
127
|
+
s.reduced.addEventListener("change", s.motionChange);
|
|
128
|
+
s.dispose = () => {
|
|
129
|
+
s.sequence = (s.sequence || 0) + 1;
|
|
130
|
+
if (s.image) s.image.onload = s.image.onerror = null;
|
|
131
|
+
s.motion?.cancel();
|
|
132
|
+
s.observer?.disconnect();
|
|
133
|
+
s.reduced.removeEventListener("change", s.motionChange);
|
|
134
|
+
s.marker.replaceWith(s.content);
|
|
135
|
+
};
|
|
136
|
+
s.sequence = 0;
|
|
137
|
+
}, (s) => {
|
|
138
|
+
const o = s.options, shape = o.Shape || "Arch";
|
|
139
|
+
if (!(shape in shapes)) throw Error("Unknown ShapeMask preset.");
|
|
140
|
+
const ratio = String(o.AspectRatio || "1 / 1");
|
|
141
|
+
if (!/^(?:\d+(?:\.\d+)?)(?:\s*\/\s*\d+(?:\.\d+)?)?$/.test(ratio) || ratio.split("/").some((n) => Number(n) <= 0)) throw Error("AspectRatio must be positive, for example 4 / 3.");
|
|
142
|
+
const rotation = Number(o.Rotation || 0), size = Number(o.MaskSize ?? 100), x = Number(o.PositionX ?? 50), y = Number(o.PositionY ?? 50);
|
|
143
|
+
if (![rotation, size, x, y].every(Number.isFinite) || size < 10 || size > 150 || x < 0 || x > 100 || y < 0 || y > 100) throw Error("MaskSize must be 10\u2013150; PositionX and PositionY must be 0\u2013100.");
|
|
144
|
+
s.root.style.aspectRatio = ratio;
|
|
145
|
+
s.root.style.setProperty("--blu-mask-size", size + "%");
|
|
146
|
+
s.root.style.setProperty("--blu-mask-x", x + "%");
|
|
147
|
+
s.root.style.setProperty("--blu-mask-y", y + "%");
|
|
148
|
+
const flipX = o.FlipHorizontal ? -1 : 1, flipY = o.FlipVertical ? -1 : 1;
|
|
149
|
+
s.mask.style.transform = `translate(-50%,-50%) rotate(${rotation}deg) scale(${flipX},${flipY})`;
|
|
150
|
+
const ratioParts = ratio.split("/").map(Number), aspect = ratioParts[0] / (ratioParts[1] || 1), angle = rotation * Math.PI / 180, cover = Math.max(Math.abs(Math.cos(angle)) + Math.abs(Math.sin(angle)) / aspect, Math.abs(Math.cos(angle)) + Math.abs(Math.sin(angle)) * aspect);
|
|
151
|
+
s.media.style.transform = `scale(${flipX},${flipY}) rotate(${-rotation}deg) scale(${cover})`;
|
|
152
|
+
const url = String(o.MaskUrl || "").trim(), signature = JSON.stringify([shape, url]);
|
|
153
|
+
if (signature !== s.maskSignature) {
|
|
154
|
+
s.maskSignature = signature;
|
|
155
|
+
const sequence = ++s.sequence;
|
|
156
|
+
if (s.image) s.image.onload = s.image.onerror = null;
|
|
157
|
+
resetMask(s);
|
|
158
|
+
if (shape === "Custom" || url) {
|
|
159
|
+
if (!url) throw Error("MaskUrl is required for the Custom shape.");
|
|
160
|
+
const source = assetUrl(url), image = new Image();
|
|
161
|
+
s.image = image;
|
|
162
|
+
s.host.dataset.maskStatus = "loading";
|
|
163
|
+
image.crossOrigin = "anonymous";
|
|
164
|
+
image.onload = () => {
|
|
165
|
+
if (s.dead || sequence !== s.sequence) return;
|
|
166
|
+
const value = "url(" + JSON.stringify(source) + ")";
|
|
167
|
+
s.mask.style.maskImage = value;
|
|
168
|
+
s.mask.style.webkitMaskImage = value;
|
|
169
|
+
s.host.dataset.maskStatus = "loaded";
|
|
170
|
+
s.notice.textContent = "";
|
|
171
|
+
s.lastError = "";
|
|
172
|
+
emit(s, "Loaded", source);
|
|
173
|
+
};
|
|
174
|
+
image.onerror = () => {
|
|
175
|
+
if (s.dead || sequence !== s.sequence) return;
|
|
176
|
+
resetMask(s);
|
|
177
|
+
s.host.dataset.maskStatus = "error";
|
|
178
|
+
report(s, "MaskUrl could not load. Content remains visible without a mask. Check the URL and cross-origin access.");
|
|
179
|
+
};
|
|
180
|
+
image.src = source;
|
|
181
|
+
} else {
|
|
182
|
+
s.mask.style.clipPath = shapes[shape];
|
|
183
|
+
s.host.dataset.maskStatus = "loaded";
|
|
184
|
+
s.notice.textContent = "";
|
|
185
|
+
s.lastError = "";
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
const animation = ["None", "Reveal", "Zoom"].includes(o.Animation) ? o.Animation : "None", motionKey = JSON.stringify([animation, o.AnimationKey || ""]);
|
|
189
|
+
if (s.motionKey !== motionKey) {
|
|
190
|
+
s.motionKey = motionKey;
|
|
191
|
+
s.motion?.cancel();
|
|
192
|
+
s.observer?.disconnect();
|
|
193
|
+
s.options.Animation = animation;
|
|
194
|
+
if (animation !== "None" && !s.reduced.matches) {
|
|
195
|
+
if ("IntersectionObserver" in window) {
|
|
196
|
+
s.observer = new IntersectionObserver((entries) => {
|
|
197
|
+
if (entries.some((e) => e.isIntersecting)) {
|
|
198
|
+
s.observer.disconnect();
|
|
199
|
+
animate(s);
|
|
200
|
+
}
|
|
201
|
+
}, { threshold: 0.1 });
|
|
202
|
+
s.observer.observe(s.root);
|
|
203
|
+
} else animate(s);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
attr(s.root, "data-shape", shape);
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
export {
|
|
210
|
+
installShapeMask
|
|
211
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function installSparkline(): any;
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
// ../blu-grid/docs/scripts/modules/foundations.js
|
|
2
|
+
import { global, runtime, state, register } from "./kernel.js";
|
|
3
|
+
var shared = /* @__PURE__ */ state("foundations", () => ({ instances: /* @__PURE__ */ new Map(), serial: 0 }));
|
|
4
|
+
function el(tag, cls, text) {
|
|
5
|
+
var n = document.createElement(tag);
|
|
6
|
+
if (cls) n.className = cls;
|
|
7
|
+
if (text !== void 0) n.textContent = text;
|
|
8
|
+
return n;
|
|
9
|
+
}
|
|
10
|
+
function attr(n, key, value) {
|
|
11
|
+
n.setAttribute(key, String(value));
|
|
12
|
+
return n;
|
|
13
|
+
}
|
|
14
|
+
function report(s, message) {
|
|
15
|
+
if (!s.error) {
|
|
16
|
+
s.error = attr(el("p", "blu-common-error"), "role", "alert");
|
|
17
|
+
s.host.append(s.error);
|
|
18
|
+
}
|
|
19
|
+
s.error.textContent = message;
|
|
20
|
+
s.error.hidden = !message;
|
|
21
|
+
if (message && s.lastError !== message && s.events.Error) {
|
|
22
|
+
s.lastError = message;
|
|
23
|
+
try {
|
|
24
|
+
s.events.Error(message);
|
|
25
|
+
} catch (_) {
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
if (!message) s.lastError = "";
|
|
29
|
+
}
|
|
30
|
+
function integer(value, fallback, min, max) {
|
|
31
|
+
value = value === void 0 ? fallback : Number(value);
|
|
32
|
+
if (!Number.isInteger(value) || value < min || value > max) throw Error("Expected an integer between " + min + " and " + max + ".");
|
|
33
|
+
return value;
|
|
34
|
+
}
|
|
35
|
+
function destroy(key) {
|
|
36
|
+
var s = shared.instances.get(key);
|
|
37
|
+
if (!s) return;
|
|
38
|
+
s.dead = true;
|
|
39
|
+
s.cleanup.forEach(function(f) {
|
|
40
|
+
f();
|
|
41
|
+
});
|
|
42
|
+
s.owned.forEach(function(n) {
|
|
43
|
+
n.remove();
|
|
44
|
+
});
|
|
45
|
+
if (s.host._bluFoundationOwner === key) {
|
|
46
|
+
delete s.host._bluFoundationOwner;
|
|
47
|
+
s.host.removeAttribute("data-blu-ready");
|
|
48
|
+
}
|
|
49
|
+
shared.instances.delete(key);
|
|
50
|
+
}
|
|
51
|
+
function own(s, node) {
|
|
52
|
+
s.owned.push(node);
|
|
53
|
+
return node;
|
|
54
|
+
}
|
|
55
|
+
function geometry(raw, height) {
|
|
56
|
+
var rows = typeof raw === "string" ? JSON.parse(raw || "[]") : raw || [];
|
|
57
|
+
if (!Array.isArray(rows) || rows.length > 1e4) throw Error("Points must be a list with at most 10,000 items.");
|
|
58
|
+
var values = rows.map(function(p) {
|
|
59
|
+
if (!p || typeof p.Value !== "number" || !Number.isFinite(p.Value)) throw Error("Every Sparkline point needs a finite numeric Value.");
|
|
60
|
+
return p.Value;
|
|
61
|
+
});
|
|
62
|
+
if (!values.length) return { rows, coordinates: [], line: "", area: "" };
|
|
63
|
+
var min = Math.min.apply(null, values), max = Math.max.apply(null, values), range = max - min;
|
|
64
|
+
var scale = Math.max(Math.abs(min), Math.abs(max), 1), low = min / scale, spread = max / scale - low;
|
|
65
|
+
var coordinates = values.map(function(value, index) {
|
|
66
|
+
return [values.length === 1 ? 150 : 6 + index * 288 / (values.length - 1), spread ? height - 6 - (value / scale - low) / spread * (height - 12) : height / 2];
|
|
67
|
+
});
|
|
68
|
+
var line = coordinates.map(function(p, i) {
|
|
69
|
+
return (i ? "L" : "M") + p[0].toFixed(3) + " " + p[1].toFixed(3);
|
|
70
|
+
}).join(" ");
|
|
71
|
+
return { rows, coordinates, line, area: line + " L" + coordinates[coordinates.length - 1][0] + " " + (height - 4) + " L" + coordinates[0][0] + " " + (height - 4) + " Z", min, max, first: values[0], last: values[values.length - 1] };
|
|
72
|
+
}
|
|
73
|
+
function sparkline(s) {
|
|
74
|
+
var o = s.options, signature = JSON.stringify(o);
|
|
75
|
+
if (s.renderSignature === signature) return;
|
|
76
|
+
var height = integer(o.Height, 64, 24, 240), geometryKey = JSON.stringify([o.PointsJson, height]);
|
|
77
|
+
var g = s.geometryKey === geometryKey ? s.geometry : geometry(o.PointsJson, height);
|
|
78
|
+
s.geometryKey = geometryKey;
|
|
79
|
+
s.geometry = g;
|
|
80
|
+
var color = String(o.Color || "Primary").toLowerCase();
|
|
81
|
+
if ("default primary secondary success processing warning error danger magenta red volcano orange gold lime green cyan blue geekblue purple".split(" ").indexOf(color) < 0) throw Error("Unknown ComponentColor.");
|
|
82
|
+
if (!s.body) {
|
|
83
|
+
s.body = own(s, el("div", "blu-sparkline"));
|
|
84
|
+
s.host.append(s.body);
|
|
85
|
+
}
|
|
86
|
+
var body = s.body, wasOpen = !!(body.querySelector("details") && body.querySelector("details").open), hadFocus = body.contains(document.activeElement);
|
|
87
|
+
while (body.firstChild) body.removeChild(body.firstChild);
|
|
88
|
+
body.style.setProperty("--blu-sparkline-color", "var(--bluui-color-" + color + "-text)");
|
|
89
|
+
body.style.setProperty("--blu-sparkline-height", height + "px");
|
|
90
|
+
if (!g.rows.length) {
|
|
91
|
+
body.append(el("p", "blu-sparkline__empty", o.EmptyText || "No trend data."));
|
|
92
|
+
s.renderSignature = signature;
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
var ns = "http://www.w3.org/2000/svg", svg = document.createElementNS(ns, "svg");
|
|
96
|
+
attr(svg, "viewBox", "0 0 300 " + height);
|
|
97
|
+
attr(svg, "preserveAspectRatio", "none");
|
|
98
|
+
attr(svg, "role", "img");
|
|
99
|
+
var summary = o.SummaryText || g.rows.length + " points. " + (g.last > g.first ? "Rising" : g.last < g.first ? "Falling" : "Unchanged") + " from " + g.first + " to " + g.last + ". Minimum " + g.min + ", maximum " + g.max + ".";
|
|
100
|
+
attr(svg, "aria-label", (o.AccessibleLabel || "Trend") + ". " + summary);
|
|
101
|
+
var title = document.createElementNS(ns, "title");
|
|
102
|
+
title.textContent = (o.AccessibleLabel || "Trend") + ". " + summary;
|
|
103
|
+
svg.append(title);
|
|
104
|
+
if (o.ShowArea !== false && g.rows.length > 1) {
|
|
105
|
+
var area = document.createElementNS(ns, "path");
|
|
106
|
+
attr(area, "d", g.area);
|
|
107
|
+
attr(area, "class", "blu-sparkline__area");
|
|
108
|
+
svg.append(area);
|
|
109
|
+
}
|
|
110
|
+
if (o.AnimateGlow === true && g.rows.length > 1) {
|
|
111
|
+
var glow = document.createElementNS(ns, "path");
|
|
112
|
+
attr(glow, "d", g.line);
|
|
113
|
+
attr(glow, "class", "blu-sparkline__glow");
|
|
114
|
+
attr(glow, "vector-effect", "non-scaling-stroke");
|
|
115
|
+
attr(glow, "aria-hidden", "true");
|
|
116
|
+
svg.append(glow);
|
|
117
|
+
}
|
|
118
|
+
var path = document.createElementNS(ns, "path");
|
|
119
|
+
attr(path, "d", g.line);
|
|
120
|
+
attr(path, "class", "blu-sparkline__line");
|
|
121
|
+
attr(path, "vector-effect", "non-scaling-stroke");
|
|
122
|
+
svg.append(path);
|
|
123
|
+
if (o.ShowEndMarker !== false || g.rows.length === 1) {
|
|
124
|
+
var p = g.coordinates[g.coordinates.length - 1], circle = document.createElementNS(ns, "circle");
|
|
125
|
+
attr(circle, "cx", p[0]);
|
|
126
|
+
attr(circle, "cy", p[1]);
|
|
127
|
+
attr(circle, "r", 3);
|
|
128
|
+
attr(circle, "class", "blu-sparkline__point");
|
|
129
|
+
svg.append(circle);
|
|
130
|
+
}
|
|
131
|
+
body.append(svg);
|
|
132
|
+
if (o.ShowDataTable) {
|
|
133
|
+
let buildTable = function() {
|
|
134
|
+
if (!details.open || tableBuilt) return;
|
|
135
|
+
var table = el("table"), caption = el("caption", "", o.AccessibleLabel || "Trend"), thead = el("thead"), headings = el("tr");
|
|
136
|
+
headings.append(attr(el("th", "", "Point"), "scope", "col"), attr(el("th", "", "Value"), "scope", "col"));
|
|
137
|
+
thead.append(headings);
|
|
138
|
+
table.append(caption, thead);
|
|
139
|
+
var tbody = el("tbody");
|
|
140
|
+
g.rows.forEach(function(row, index) {
|
|
141
|
+
var tr = el("tr");
|
|
142
|
+
tr.append(attr(el("th", "", row.Label || String(index + 1)), "scope", "row"), el("td", "", String(row.Value)));
|
|
143
|
+
tbody.append(tr);
|
|
144
|
+
});
|
|
145
|
+
table.append(tbody);
|
|
146
|
+
details.append(table);
|
|
147
|
+
tableBuilt = true;
|
|
148
|
+
};
|
|
149
|
+
var details = el("details", "blu-sparkline__data");
|
|
150
|
+
details.open = wasOpen;
|
|
151
|
+
details.append(el("summary", "", "View trend data"));
|
|
152
|
+
var tableBuilt = false;
|
|
153
|
+
details.addEventListener("toggle", buildTable);
|
|
154
|
+
body.append(details);
|
|
155
|
+
buildTable();
|
|
156
|
+
if (hadFocus) details.querySelector("summary").focus();
|
|
157
|
+
}
|
|
158
|
+
s.renderSignature = signature;
|
|
159
|
+
}
|
|
160
|
+
function api(kind, render) {
|
|
161
|
+
return { sync: function(id, options, events, key) {
|
|
162
|
+
var host = document.getElementById(id);
|
|
163
|
+
if (!host) return "Component host was not found.";
|
|
164
|
+
key = key || id;
|
|
165
|
+
var s = shared.instances.get(key);
|
|
166
|
+
if (s && s.host !== host) {
|
|
167
|
+
destroy(key);
|
|
168
|
+
s = null;
|
|
169
|
+
}
|
|
170
|
+
if (host._bluFoundationOwner && host._bluFoundationOwner !== key) destroy(host._bluFoundationOwner);
|
|
171
|
+
if (!s) {
|
|
172
|
+
s = { host, key, uid: "blu-foundation-" + ++shared.serial, owned: [], cleanup: [] };
|
|
173
|
+
shared.instances.set(key, s);
|
|
174
|
+
}
|
|
175
|
+
var preview = host.nextElementSibling;
|
|
176
|
+
if (preview && preview.classList.contains("blu-component-preview")) preview.hidden = true;
|
|
177
|
+
host._bluFoundationOwner = key;
|
|
178
|
+
s.options = options || {};
|
|
179
|
+
s.events = events || {};
|
|
180
|
+
attr(host, "data-blu-ready", "true");
|
|
181
|
+
try {
|
|
182
|
+
render(s);
|
|
183
|
+
report(s, "");
|
|
184
|
+
return "";
|
|
185
|
+
} catch (e) {
|
|
186
|
+
s.renderSignature = void 0;
|
|
187
|
+
report(s, e.message || String(e));
|
|
188
|
+
return e.message || String(e);
|
|
189
|
+
}
|
|
190
|
+
}, destroy };
|
|
191
|
+
}
|
|
192
|
+
function installSparkline() {
|
|
193
|
+
return register("Sparkline", () => Object.assign(api("Sparkline", sparkline), { geometry }));
|
|
194
|
+
}
|
|
195
|
+
export {
|
|
196
|
+
installSparkline
|
|
197
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function installSplitSection(): any;
|