@sondor-technology/sondor-components 1.0.8 → 1.0.10
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/dist/components/accordion/accordion.constants.d.ts +5 -0
- package/dist/components/accordion/accordion.constants.d.ts.map +1 -0
- package/dist/components/accordion/accordion.constants.js +3 -0
- package/dist/components/accordion/accordion.constants.js.map +1 -0
- package/dist/components/accordion/accordion.d.ts +29 -0
- package/dist/components/accordion/accordion.d.ts.map +1 -0
- package/dist/components/accordion/accordion.js +226 -0
- package/dist/components/accordion/accordion.js.map +1 -0
- package/dist/components/alert/alert.constants.d.ts +2 -0
- package/dist/components/alert/alert.constants.d.ts.map +1 -1
- package/dist/components/alert/alert.d.ts +50 -2
- package/dist/components/alert/alert.d.ts.map +1 -1
- package/dist/components/alert/alert.js +285 -16
- package/dist/components/alert/alert.js.map +1 -1
- package/dist/components/avatar/avatar.d.ts +20 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/avatar/avatar.js +100 -0
- package/dist/components/avatar/avatar.js.map +1 -0
- package/dist/components/back-to-top/back-to-top.d.ts +29 -0
- package/dist/components/back-to-top/back-to-top.d.ts.map +1 -0
- package/dist/components/back-to-top/back-to-top.js +149 -0
- package/dist/components/back-to-top/back-to-top.js.map +1 -0
- package/dist/components/bar-chart/bar-chart.d.ts +42 -0
- package/dist/components/bar-chart/bar-chart.d.ts.map +1 -0
- package/dist/components/bar-chart/bar-chart.js +298 -0
- package/dist/components/bar-chart/bar-chart.js.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.js +2 -2
- package/dist/components/button/button.d.ts +1 -0
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/button.js +8 -8
- package/dist/components/button/button.js.map +1 -1
- package/dist/components/button-group/button-group.js +4 -4
- package/dist/components/calendar/calendar.d.ts.map +1 -1
- package/dist/components/calendar/calendar.js +21 -9
- package/dist/components/calendar/calendar.js.map +1 -1
- package/dist/components/chart/chart-base.d.ts +59 -0
- package/dist/components/chart/chart-base.d.ts.map +1 -0
- package/dist/components/chart/chart-base.js +261 -0
- package/dist/components/chart/chart-base.js.map +1 -0
- package/dist/components/chart/chart.utils.d.ts +27 -0
- package/dist/components/chart/chart.utils.d.ts.map +1 -0
- package/dist/components/chart/chart.utils.js +117 -0
- package/dist/components/chart/chart.utils.js.map +1 -0
- package/dist/components/code-block/code-block.d.ts +5 -0
- package/dist/components/code-block/code-block.d.ts.map +1 -1
- package/dist/components/code-block/code-block.js +34 -24
- package/dist/components/code-block/code-block.js.map +1 -1
- package/dist/components/consent/consent.d.ts +63 -0
- package/dist/components/consent/consent.d.ts.map +1 -0
- package/dist/components/consent/consent.js +327 -0
- package/dist/components/consent/consent.js.map +1 -0
- package/dist/components/consent/consent.utils.d.ts +36 -0
- package/dist/components/consent/consent.utils.d.ts.map +1 -0
- package/dist/components/consent/consent.utils.js +82 -0
- package/dist/components/consent/consent.utils.js.map +1 -0
- package/dist/components/contact/contact.d.ts +22 -0
- package/dist/components/contact/contact.d.ts.map +1 -0
- package/dist/components/contact/contact.js +83 -0
- package/dist/components/contact/contact.js.map +1 -0
- package/dist/components/container/container.d.ts +20 -0
- package/dist/components/container/container.d.ts.map +1 -0
- package/dist/components/container/container.js +68 -0
- package/dist/components/container/container.js.map +1 -0
- package/dist/components/content-card/content-card.js +4 -4
- package/dist/components/context-menu/context-menu.d.ts +89 -0
- package/dist/components/context-menu/context-menu.d.ts.map +1 -0
- package/dist/components/context-menu/context-menu.js +414 -0
- package/dist/components/context-menu/context-menu.js.map +1 -0
- package/dist/components/cron-builder/cron-builder.d.ts +5 -2
- package/dist/components/cron-builder/cron-builder.d.ts.map +1 -1
- package/dist/components/cron-builder/cron-builder.js +83 -15
- package/dist/components/cron-builder/cron-builder.js.map +1 -1
- package/dist/components/cta/cta.d.ts +20 -0
- package/dist/components/cta/cta.d.ts.map +1 -0
- package/dist/components/cta/cta.js +64 -0
- package/dist/components/cta/cta.js.map +1 -0
- package/dist/components/drawer/drawer.js +6 -6
- package/dist/components/faq/faq-item.d.ts +22 -0
- package/dist/components/faq/faq-item.d.ts.map +1 -0
- package/dist/components/faq/faq-item.js +117 -0
- package/dist/components/faq/faq-item.js.map +1 -0
- package/dist/components/faq/faq.d.ts +18 -0
- package/dist/components/faq/faq.d.ts.map +1 -0
- package/dist/components/faq/faq.js +38 -0
- package/dist/components/faq/faq.js.map +1 -0
- package/dist/components/feature-grid/feature-grid.d.ts +22 -0
- package/dist/components/feature-grid/feature-grid.d.ts.map +1 -0
- package/dist/components/feature-grid/feature-grid.js +55 -0
- package/dist/components/feature-grid/feature-grid.js.map +1 -0
- package/dist/components/feature-grid/feature.d.ts +18 -0
- package/dist/components/feature-grid/feature.d.ts.map +1 -0
- package/dist/components/feature-grid/feature.js +91 -0
- package/dist/components/feature-grid/feature.js.map +1 -0
- package/dist/components/field/field.js +2 -2
- package/dist/components/footer/footer.js +4 -4
- package/dist/components/form/form-reset.d.ts +7 -0
- package/dist/components/form/form-reset.d.ts.map +1 -0
- package/dist/components/form/form-reset.js +47 -0
- package/dist/components/form/form-reset.js.map +1 -0
- package/dist/components/form/form.d.ts +5 -0
- package/dist/components/form/form.d.ts.map +1 -1
- package/dist/components/form/form.js +17 -3
- package/dist/components/form/form.js.map +1 -1
- package/dist/components/grid/grid.d.ts +5 -0
- package/dist/components/grid/grid.d.ts.map +1 -1
- package/dist/components/grid/grid.js +86 -4
- package/dist/components/grid/grid.js.map +1 -1
- package/dist/components/heat-map/heat-map.d.ts +39 -0
- package/dist/components/heat-map/heat-map.d.ts.map +1 -0
- package/dist/components/heat-map/heat-map.js +306 -0
- package/dist/components/heat-map/heat-map.js.map +1 -0
- package/dist/components/hero/hero.d.ts +26 -0
- package/dist/components/hero/hero.d.ts.map +1 -0
- package/dist/components/hero/hero.js +132 -0
- package/dist/components/hero/hero.js.map +1 -0
- package/dist/components/icon/icon-paths.d.ts +84 -0
- package/dist/components/icon/icon-paths.d.ts.map +1 -1
- package/dist/components/icon/icon-paths.js +89 -0
- package/dist/components/icon/icon-paths.js.map +1 -1
- package/dist/components/icon/icon.d.ts +2 -0
- package/dist/components/icon/icon.d.ts.map +1 -1
- package/dist/components/icon/icon.js +10 -1
- package/dist/components/icon/icon.js.map +1 -1
- package/dist/components/image/image.d.ts +31 -0
- package/dist/components/image/image.d.ts.map +1 -0
- package/dist/components/image/image.js +179 -0
- package/dist/components/image/image.js.map +1 -0
- package/dist/components/input/input.js +4 -4
- package/dist/components/lazy/lazy.d.ts +34 -0
- package/dist/components/lazy/lazy.d.ts.map +1 -0
- package/dist/components/lazy/lazy.js +104 -0
- package/dist/components/lazy/lazy.js.map +1 -0
- package/dist/components/line-chart/line-chart.d.ts +37 -0
- package/dist/components/line-chart/line-chart.d.ts.map +1 -0
- package/dist/components/line-chart/line-chart.js +271 -0
- package/dist/components/line-chart/line-chart.js.map +1 -0
- package/dist/components/list/list-item.d.ts +45 -0
- package/dist/components/list/list-item.d.ts.map +1 -0
- package/dist/components/list/list-item.js +263 -0
- package/dist/components/list/list-item.js.map +1 -0
- package/dist/components/list/list.d.ts +50 -0
- package/dist/components/list/list.d.ts.map +1 -0
- package/dist/components/list/list.js +161 -0
- package/dist/components/list/list.js.map +1 -0
- package/dist/components/logo-cloud/logo-cloud.d.ts +19 -0
- package/dist/components/logo-cloud/logo-cloud.d.ts.map +1 -0
- package/dist/components/logo-cloud/logo-cloud.js +66 -0
- package/dist/components/logo-cloud/logo-cloud.js.map +1 -0
- package/dist/components/modal/modal.d.ts +12 -0
- package/dist/components/modal/modal.d.ts.map +1 -1
- package/dist/components/modal/modal.js +40 -11
- package/dist/components/modal/modal.js.map +1 -1
- package/dist/components/page-layout/page-layout.js +8 -8
- package/dist/components/pagination/pagination.d.ts +15 -0
- package/dist/components/pagination/pagination.d.ts.map +1 -0
- package/dist/components/pagination/pagination.js +126 -0
- package/dist/components/pagination/pagination.js.map +1 -0
- package/dist/components/pagination/pagination.utils.d.ts +3 -0
- package/dist/components/pagination/pagination.utils.d.ts.map +1 -0
- package/dist/components/pagination/pagination.utils.js +19 -0
- package/dist/components/pagination/pagination.utils.js.map +1 -0
- package/dist/components/pie-chart/pie-chart.d.ts +33 -0
- package/dist/components/pie-chart/pie-chart.d.ts.map +1 -0
- package/dist/components/pie-chart/pie-chart.js +233 -0
- package/dist/components/pie-chart/pie-chart.js.map +1 -0
- package/dist/components/pin-input/pin-input.js +4 -4
- package/dist/components/popover/popover.d.ts.map +1 -1
- package/dist/components/popover/popover.js +1 -3
- package/dist/components/popover/popover.js.map +1 -1
- package/dist/components/post-list/post-card.d.ts +16 -0
- package/dist/components/post-list/post-card.d.ts.map +1 -0
- package/dist/components/post-list/post-card.js +22 -0
- package/dist/components/post-list/post-card.js.map +1 -0
- package/dist/components/post-list/post-list.d.ts +17 -0
- package/dist/components/post-list/post-list.d.ts.map +1 -0
- package/dist/components/post-list/post-list.js +23 -0
- package/dist/components/post-list/post-list.js.map +1 -0
- package/dist/components/pricing/pricing-tier.d.ts +23 -0
- package/dist/components/pricing/pricing-tier.d.ts.map +1 -0
- package/dist/components/pricing/pricing-tier.js +144 -0
- package/dist/components/pricing/pricing-tier.js.map +1 -0
- package/dist/components/pricing/pricing.d.ts +18 -0
- package/dist/components/pricing/pricing.d.ts.map +1 -0
- package/dist/components/pricing/pricing.js +38 -0
- package/dist/components/pricing/pricing.js.map +1 -0
- package/dist/components/progress/progress.d.ts +17 -0
- package/dist/components/progress/progress.d.ts.map +1 -0
- package/dist/components/progress/progress.js +109 -0
- package/dist/components/progress/progress.js.map +1 -0
- package/dist/components/project-grid/project-card.d.ts +17 -0
- package/dist/components/project-grid/project-card.d.ts.map +1 -0
- package/dist/components/project-grid/project-card.js +23 -0
- package/dist/components/project-grid/project-card.js.map +1 -0
- package/dist/components/project-grid/project-grid.d.ts +17 -0
- package/dist/components/project-grid/project-grid.d.ts.map +1 -0
- package/dist/components/project-grid/project-grid.js +23 -0
- package/dist/components/project-grid/project-grid.js.map +1 -0
- package/dist/components/radio/radio.js +1 -1
- package/dist/components/reveal/reveal.constants.d.ts +10 -0
- package/dist/components/reveal/reveal.constants.d.ts.map +1 -0
- package/dist/components/reveal/reveal.constants.js +11 -0
- package/dist/components/reveal/reveal.constants.js.map +1 -0
- package/dist/components/reveal/reveal.d.ts +64 -0
- package/dist/components/reveal/reveal.d.ts.map +1 -0
- package/dist/components/reveal/reveal.js +352 -0
- package/dist/components/reveal/reveal.js.map +1 -0
- package/dist/components/scroll-progress/scroll-progress.d.ts +32 -0
- package/dist/components/scroll-progress/scroll-progress.d.ts.map +1 -0
- package/dist/components/scroll-progress/scroll-progress.js +120 -0
- package/dist/components/scroll-progress/scroll-progress.js.map +1 -0
- package/dist/components/section/card-row.d.ts +30 -0
- package/dist/components/section/card-row.d.ts.map +1 -0
- package/dist/components/section/card-row.js +174 -0
- package/dist/components/section/card-row.js.map +1 -0
- package/dist/components/section/card.d.ts +27 -0
- package/dist/components/section/card.d.ts.map +1 -0
- package/dist/components/section/card.js +205 -0
- package/dist/components/section/card.js.map +1 -0
- package/dist/components/section/row-item.d.ts +22 -0
- package/dist/components/section/row-item.d.ts.map +1 -0
- package/dist/components/section/row-item.js +53 -0
- package/dist/components/section/row-item.js.map +1 -0
- package/dist/components/section/section.d.ts +70 -0
- package/dist/components/section/section.d.ts.map +1 -0
- package/dist/components/section/section.js +240 -0
- package/dist/components/section/section.js.map +1 -0
- package/dist/components/select/select.js +3 -3
- package/dist/components/series-nav/series-nav.d.ts +29 -0
- package/dist/components/series-nav/series-nav.d.ts.map +1 -0
- package/dist/components/series-nav/series-nav.js +178 -0
- package/dist/components/series-nav/series-nav.js.map +1 -0
- package/dist/components/site-header/site-header.d.ts +51 -0
- package/dist/components/site-header/site-header.d.ts.map +1 -0
- package/dist/components/site-header/site-header.js +296 -0
- package/dist/components/site-header/site-header.js.map +1 -0
- package/dist/components/skeleton/skeleton.js +7 -7
- package/dist/components/sparkline/sparkline.d.ts +19 -0
- package/dist/components/sparkline/sparkline.d.ts.map +1 -0
- package/dist/components/sparkline/sparkline.js +99 -0
- package/dist/components/sparkline/sparkline.js.map +1 -0
- package/dist/components/spinner/spinner.d.ts +13 -0
- package/dist/components/spinner/spinner.d.ts.map +1 -0
- package/dist/components/spinner/spinner.js +65 -0
- package/dist/components/spinner/spinner.js.map +1 -0
- package/dist/components/split/split.d.ts +23 -0
- package/dist/components/split/split.d.ts.map +1 -0
- package/dist/components/split/split.js +104 -0
- package/dist/components/split/split.js.map +1 -0
- package/dist/components/stack/stack.d.ts +21 -0
- package/dist/components/stack/stack.d.ts.map +1 -0
- package/dist/components/stack/stack.js +102 -0
- package/dist/components/stack/stack.js.map +1 -0
- package/dist/components/stat-card/stat-card.d.ts +35 -0
- package/dist/components/stat-card/stat-card.d.ts.map +1 -0
- package/dist/components/stat-card/stat-card.js +199 -0
- package/dist/components/stat-card/stat-card.js.map +1 -0
- package/dist/components/stats/stat.d.ts +16 -0
- package/dist/components/stats/stat.d.ts.map +1 -0
- package/dist/components/stats/stat.js +51 -0
- package/dist/components/stats/stat.js.map +1 -0
- package/dist/components/stats/stats.d.ts +19 -0
- package/dist/components/stats/stats.d.ts.map +1 -0
- package/dist/components/stats/stats.js +45 -0
- package/dist/components/stats/stats.js.map +1 -0
- package/dist/components/switch/switch.js +2 -2
- package/dist/components/table/data-table.d.ts +115 -27
- package/dist/components/table/data-table.d.ts.map +1 -1
- package/dist/components/table/data-table.js +1012 -411
- package/dist/components/table/data-table.js.map +1 -1
- package/dist/components/table/data-table.utils.d.ts +81 -0
- package/dist/components/table/data-table.utils.d.ts.map +1 -0
- package/dist/components/table/data-table.utils.js +208 -0
- package/dist/components/table/data-table.utils.js.map +1 -0
- package/dist/components/table/table.d.ts +28 -0
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +161 -33
- package/dist/components/table/table.js.map +1 -1
- package/dist/components/team/person.d.ts +19 -0
- package/dist/components/team/person.d.ts.map +1 -0
- package/dist/components/team/person.js +123 -0
- package/dist/components/team/person.js.map +1 -0
- package/dist/components/team/team.d.ts +18 -0
- package/dist/components/team/team.d.ts.map +1 -0
- package/dist/components/team/team.js +36 -0
- package/dist/components/team/team.js.map +1 -0
- package/dist/components/testimonials/testimonial.d.ts +18 -0
- package/dist/components/testimonials/testimonial.d.ts.map +1 -0
- package/dist/components/testimonials/testimonial.js +115 -0
- package/dist/components/testimonials/testimonial.js.map +1 -0
- package/dist/components/testimonials/testimonials.d.ts +18 -0
- package/dist/components/testimonials/testimonials.d.ts.map +1 -0
- package/dist/components/testimonials/testimonials.js +36 -0
- package/dist/components/testimonials/testimonials.js.map +1 -0
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/theme-toggle/theme-toggle.js +1 -1
- package/dist/components/time-picker/time-picker.d.ts.map +1 -1
- package/dist/components/time-picker/time-picker.js +13 -3
- package/dist/components/time-picker/time-picker.js.map +1 -1
- package/dist/components/timeline/timeline-item.d.ts +18 -0
- package/dist/components/timeline/timeline-item.d.ts.map +1 -0
- package/dist/components/timeline/timeline-item.js +102 -0
- package/dist/components/timeline/timeline-item.js.map +1 -0
- package/dist/components/timeline/timeline.d.ts +18 -0
- package/dist/components/timeline/timeline.d.ts.map +1 -0
- package/dist/components/timeline/timeline.js +30 -0
- package/dist/components/timeline/timeline.js.map +1 -0
- package/dist/components/toast/toast.d.ts +33 -0
- package/dist/components/toast/toast.d.ts.map +1 -0
- package/dist/components/toast/toast.js +147 -0
- package/dist/components/toast/toast.js.map +1 -0
- package/dist/components/toggle-group/toggle-button.d.ts +2 -0
- package/dist/components/toggle-group/toggle-button.d.ts.map +1 -1
- package/dist/components/toggle-group/toggle-button.js +12 -5
- package/dist/components/toggle-group/toggle-button.js.map +1 -1
- package/dist/components/toggle-group/toggle-group.d.ts +6 -0
- package/dist/components/toggle-group/toggle-group.d.ts.map +1 -1
- package/dist/components/toggle-group/toggle-group.js +141 -21
- package/dist/components/toggle-group/toggle-group.js.map +1 -1
- package/dist/components/tooltip/tooltip.js +21 -21
- package/dist/components/vertical-nav/vertical-nav-group.js +3 -3
- package/dist/components/vertical-nav/vertical-nav-item.js +4 -4
- package/dist/components/video-embed/video-embed.d.ts +37 -0
- package/dist/components/video-embed/video-embed.d.ts.map +1 -0
- package/dist/components/video-embed/video-embed.js +183 -0
- package/dist/components/video-embed/video-embed.js.map +1 -0
- package/dist/index.d.ts +107 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +104 -0
- package/dist/index.js.map +1 -0
- package/dist/styles/index.css +205 -1
- package/dist/styles/reset.d.ts.map +1 -1
- package/dist/styles/reset.js +5 -0
- package/dist/styles/reset.js.map +1 -1
- package/package.json +214 -7
- package/src/components/accordion/accordion.constants.ts +5 -0
- package/src/components/accordion/accordion.ts +209 -0
- package/src/components/alert/alert.constants.ts +3 -0
- package/src/components/alert/alert.ts +284 -17
- package/src/components/avatar/avatar.ts +84 -0
- package/src/components/back-to-top/back-to-top.ts +140 -0
- package/src/components/bar-chart/bar-chart.ts +295 -0
- package/src/components/breadcrumb/breadcrumb.ts +2 -2
- package/src/components/button/button.ts +9 -8
- package/src/components/button-group/button-group.ts +4 -4
- package/src/components/calendar/calendar.ts +26 -9
- package/src/components/chart/chart-base.ts +275 -0
- package/src/components/chart/chart.utils.ts +140 -0
- package/src/components/code-block/code-block.ts +35 -24
- package/src/components/consent/consent.ts +312 -0
- package/src/components/consent/consent.utils.ts +110 -0
- package/src/components/contact/contact.ts +83 -0
- package/src/components/container/container.ts +60 -0
- package/src/components/content-card/content-card.ts +4 -4
- package/src/components/context-menu/context-menu.ts +426 -0
- package/src/components/cron-builder/cron-builder.ts +102 -22
- package/src/components/cta/cta.ts +64 -0
- package/src/components/drawer/drawer.ts +6 -6
- package/src/components/faq/faq-item.ts +110 -0
- package/src/components/faq/faq.ts +40 -0
- package/src/components/feature-grid/feature-grid.ts +52 -0
- package/src/components/feature-grid/feature.ts +84 -0
- package/src/components/field/field.ts +2 -2
- package/src/components/footer/footer.ts +4 -4
- package/src/components/form/form-reset.ts +45 -0
- package/src/components/form/form.ts +17 -3
- package/src/components/grid/grid.ts +73 -4
- package/src/components/heat-map/heat-map.ts +292 -0
- package/src/components/hero/hero.ts +132 -0
- package/src/components/icon/icon-paths.ts +92 -1
- package/src/components/icon/icon.ts +8 -1
- package/src/components/image/image.ts +165 -0
- package/src/components/input/input.ts +4 -4
- package/src/components/lazy/lazy.ts +94 -0
- package/src/components/line-chart/line-chart.ts +271 -0
- package/src/components/list/list-item.ts +225 -0
- package/src/components/list/list.ts +157 -0
- package/src/components/logo-cloud/logo-cloud.ts +65 -0
- package/src/components/modal/modal.ts +37 -11
- package/src/components/page-layout/page-layout.ts +8 -8
- package/src/components/pagination/pagination.ts +120 -0
- package/src/components/pagination/pagination.utils.ts +14 -0
- package/src/components/pie-chart/pie-chart.ts +230 -0
- package/src/components/pin-input/pin-input.ts +4 -4
- package/src/components/popover/popover.ts +1 -3
- package/src/components/post-list/post-card.ts +18 -0
- package/src/components/post-list/post-list.ts +19 -0
- package/src/components/pricing/pricing-tier.ts +132 -0
- package/src/components/pricing/pricing.ts +39 -0
- package/src/components/progress/progress.ts +95 -0
- package/src/components/project-grid/project-card.ts +19 -0
- package/src/components/project-grid/project-grid.ts +19 -0
- package/src/components/radio/radio.ts +1 -1
- package/src/components/reveal/reveal.constants.ts +20 -0
- package/src/components/reveal/reveal.ts +344 -0
- package/src/components/scroll-progress/scroll-progress.ts +119 -0
- package/src/components/section/card-row.ts +152 -0
- package/src/components/section/card.ts +197 -0
- package/src/components/section/row-item.ts +38 -0
- package/src/components/section/section.ts +232 -0
- package/src/components/select/select.ts +3 -3
- package/src/components/series-nav/series-nav.ts +164 -0
- package/src/components/site-header/site-header.ts +276 -0
- package/src/components/skeleton/skeleton.ts +7 -7
- package/src/components/sparkline/sparkline.ts +83 -0
- package/src/components/spinner/spinner.ts +55 -0
- package/src/components/split/split.ts +106 -0
- package/src/components/stack/stack.ts +88 -0
- package/src/components/stat-card/stat-card.ts +179 -0
- package/src/components/stats/stat.ts +49 -0
- package/src/components/stats/stats.ts +47 -0
- package/src/components/switch/switch.ts +2 -2
- package/src/components/table/data-table.ts +1015 -425
- package/src/components/table/data-table.utils.ts +276 -0
- package/src/components/table/table.ts +168 -38
- package/src/components/team/person.ts +113 -0
- package/src/components/team/team.ts +37 -0
- package/src/components/testimonials/testimonial.ts +108 -0
- package/src/components/testimonials/testimonials.ts +37 -0
- package/src/components/textarea/textarea.ts +3 -3
- package/src/components/theme-toggle/theme-toggle.ts +1 -1
- package/src/components/time-picker/time-picker.ts +17 -3
- package/src/components/timeline/timeline-item.ts +100 -0
- package/src/components/timeline/timeline.ts +31 -0
- package/src/components/toast/toast.ts +153 -0
- package/src/components/toggle-group/toggle-button.ts +9 -5
- package/src/components/toggle-group/toggle-group.ts +158 -42
- package/src/components/tooltip/tooltip.ts +21 -21
- package/src/components/vertical-nav/vertical-nav-group.ts +3 -3
- package/src/components/vertical-nav/vertical-nav-item.ts +4 -4
- package/src/components/video-embed/video-embed.ts +162 -0
- package/src/index.ts +108 -0
- package/src/styles/globals.css +63 -0
- package/src/styles/index.css +3 -1
- package/src/styles/prose.css +154 -0
- package/src/styles/reset.ts +5 -0
- package/src/styles/theme.css +53 -0
- package/src/styles/typography.css +1 -0
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LitElement, html, css, nothing } from "lit";
|
|
8
|
+
import { customElement, property, query, state } from "lit/decorators.js";
|
|
9
|
+
import { resetStyles } from "../../styles/reset.js";
|
|
10
|
+
import "../icon/icon.js";
|
|
11
|
+
const VIEWPORT_MARGIN = 8;
|
|
12
|
+
/**
|
|
13
|
+
* A reusable menu styled like a native right-click menu. It renders in the top layer, so it is
|
|
14
|
+
* never clipped by scrolling containers, flips to stay on screen, and is fully keyboard
|
|
15
|
+
* operable (arrows, Home/End, type-ahead, Enter/Space, Escape).
|
|
16
|
+
*
|
|
17
|
+
* Opening: wrap an element in it (default trigger is right-click, which also covers the
|
|
18
|
+
* keyboard Menu key and Shift+F10), or call `show(x, y, context)` / `showAt(element, context)`
|
|
19
|
+
* with `trigger="manual"`.
|
|
20
|
+
*
|
|
21
|
+
* Events (bubble, composed): `st-menu-open`, `st-menu-close`, and `st-menu-select` with
|
|
22
|
+
* `{ item, value, context }`.
|
|
23
|
+
*/
|
|
24
|
+
let StContextMenu = class StContextMenu extends LitElement {
|
|
25
|
+
constructor() {
|
|
26
|
+
super(...arguments);
|
|
27
|
+
this.items = [];
|
|
28
|
+
this.trigger = "contextmenu";
|
|
29
|
+
/** Accessible name of the menu. */
|
|
30
|
+
this.label = "Actions";
|
|
31
|
+
this.disabled = false;
|
|
32
|
+
this._open = false;
|
|
33
|
+
this._active = -1;
|
|
34
|
+
this._returnFocus = null;
|
|
35
|
+
this._clicked = null;
|
|
36
|
+
this._typeahead = "";
|
|
37
|
+
this._onContextMenu = (e) => {
|
|
38
|
+
if (this.trigger !== "contextmenu" || this.disabled)
|
|
39
|
+
return;
|
|
40
|
+
// Let the native menu through on text inputs so users keep copy/paste.
|
|
41
|
+
const target = e.composedPath()[0];
|
|
42
|
+
if (target?.closest?.("input, textarea, [contenteditable]"))
|
|
43
|
+
return;
|
|
44
|
+
e.preventDefault();
|
|
45
|
+
// Some browsers don't focus a button on right-click, so remember what was clicked.
|
|
46
|
+
this._clicked = target?.closest?.("button, a[href], [tabindex]") ?? null;
|
|
47
|
+
this.show(e.clientX, e.clientY);
|
|
48
|
+
};
|
|
49
|
+
this._onTriggerClick = (e) => {
|
|
50
|
+
if (this.trigger !== "click" || this.disabled || this._menu?.contains(e.target))
|
|
51
|
+
return;
|
|
52
|
+
this.showAt(this);
|
|
53
|
+
};
|
|
54
|
+
this._dismiss = () => this.hide();
|
|
55
|
+
this._onOutsidePointer = (e) => {
|
|
56
|
+
if (!e.composedPath().includes(this._menu))
|
|
57
|
+
this.hide();
|
|
58
|
+
};
|
|
59
|
+
this._onEscape = (e) => {
|
|
60
|
+
if (e.key !== "Escape")
|
|
61
|
+
return;
|
|
62
|
+
e.stopPropagation();
|
|
63
|
+
this.hide();
|
|
64
|
+
};
|
|
65
|
+
this._closeOnLayoutChange = (e) => {
|
|
66
|
+
// Scrolling inside the menu itself must not dismiss it.
|
|
67
|
+
if (e.target instanceof Node && this._menu?.contains(e.target))
|
|
68
|
+
return;
|
|
69
|
+
this.hide();
|
|
70
|
+
};
|
|
71
|
+
this._onToggle = (e) => {
|
|
72
|
+
const state = e.newState;
|
|
73
|
+
if (state === "closed")
|
|
74
|
+
this._afterClose();
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
connectedCallback() {
|
|
78
|
+
super.connectedCallback();
|
|
79
|
+
this.addEventListener("contextmenu", this._onContextMenu);
|
|
80
|
+
this.addEventListener("click", this._onTriggerClick);
|
|
81
|
+
}
|
|
82
|
+
disconnectedCallback() {
|
|
83
|
+
this.removeEventListener("contextmenu", this._onContextMenu);
|
|
84
|
+
this.removeEventListener("click", this._onTriggerClick);
|
|
85
|
+
this._listen(false);
|
|
86
|
+
super.disconnectedCallback();
|
|
87
|
+
}
|
|
88
|
+
/** True while the menu is showing. */
|
|
89
|
+
get isOpen() {
|
|
90
|
+
return this._open;
|
|
91
|
+
}
|
|
92
|
+
/** Opens the menu at viewport coordinates. `context` is echoed back in `st-menu-select`. */
|
|
93
|
+
show(x, y, context) {
|
|
94
|
+
this._show(x, y, context);
|
|
95
|
+
}
|
|
96
|
+
_show(x, y, context, flipY) {
|
|
97
|
+
if (!this.items.length || this.disabled)
|
|
98
|
+
return;
|
|
99
|
+
this._context = context;
|
|
100
|
+
const focused = this._activeElement();
|
|
101
|
+
this._returnFocus = focused && focused !== document.body ? focused : this._clicked;
|
|
102
|
+
this._clicked = null;
|
|
103
|
+
this._open = true;
|
|
104
|
+
this.updateComplete.then(() => {
|
|
105
|
+
const menu = this._menu;
|
|
106
|
+
if (!menu)
|
|
107
|
+
return;
|
|
108
|
+
if (!menu.matches(":popover-open"))
|
|
109
|
+
menu.showPopover();
|
|
110
|
+
this._place(x, y, flipY);
|
|
111
|
+
this._listen(true);
|
|
112
|
+
this._focusItem(this._nextEnabled(-1, 1));
|
|
113
|
+
this.dispatchEvent(new CustomEvent("st-menu-open", { detail: { context }, bubbles: true, composed: true }));
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
/** Opens the menu below (or above, if there is no room) an element, e.g. a "more" button. */
|
|
117
|
+
showAt(anchor, context) {
|
|
118
|
+
const rect = anchor.getBoundingClientRect();
|
|
119
|
+
// Opens below the anchor, or above it when there is no room.
|
|
120
|
+
this._show(rect.left, rect.bottom + 4, context, rect.top - 4);
|
|
121
|
+
}
|
|
122
|
+
/** Closes the menu and restores focus to where it was before opening. */
|
|
123
|
+
hide() {
|
|
124
|
+
if (this._menu?.matches(":popover-open"))
|
|
125
|
+
this._menu.hidePopover();
|
|
126
|
+
else
|
|
127
|
+
this._afterClose();
|
|
128
|
+
}
|
|
129
|
+
_activeElement() {
|
|
130
|
+
let el = document.activeElement;
|
|
131
|
+
while (el?.shadowRoot?.activeElement)
|
|
132
|
+
el = el.shadowRoot.activeElement;
|
|
133
|
+
return el;
|
|
134
|
+
}
|
|
135
|
+
_place(x, y, flipY) {
|
|
136
|
+
const menu = this._menu;
|
|
137
|
+
if (!menu)
|
|
138
|
+
return;
|
|
139
|
+
// Layout size, so the opening scale animation does not skew the measurement.
|
|
140
|
+
const { offsetWidth: width, offsetHeight: height } = menu;
|
|
141
|
+
const maxLeft = window.innerWidth - width - VIEWPORT_MARGIN;
|
|
142
|
+
const maxTop = window.innerHeight - height - VIEWPORT_MARGIN;
|
|
143
|
+
const left = x > maxLeft ? Math.max(VIEWPORT_MARGIN, x - width) : x;
|
|
144
|
+
let top = y;
|
|
145
|
+
if (y > maxTop)
|
|
146
|
+
top = flipY !== undefined ? flipY - height : y - height;
|
|
147
|
+
top = Math.min(Math.max(VIEWPORT_MARGIN, top), Math.max(VIEWPORT_MARGIN, maxTop));
|
|
148
|
+
menu.style.left = `${Math.max(VIEWPORT_MARGIN, left)}px`;
|
|
149
|
+
menu.style.top = `${top}px`;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Light dismiss is handled here rather than by popover="auto", because browsers that fire
|
|
153
|
+
* contextmenu on mouse-down (macOS, Linux) would close an auto popover on the mouse-up.
|
|
154
|
+
*/
|
|
155
|
+
_listen(on) {
|
|
156
|
+
const method = on ? "addEventListener" : "removeEventListener";
|
|
157
|
+
window[method]("resize", this._closeOnLayoutChange);
|
|
158
|
+
window[method]("scroll", this._closeOnLayoutChange, true);
|
|
159
|
+
window[method]("blur", this._dismiss);
|
|
160
|
+
document[method]("pointerdown", this._onOutsidePointer, true);
|
|
161
|
+
document[method]("keydown", this._onEscape, true);
|
|
162
|
+
}
|
|
163
|
+
_afterClose() {
|
|
164
|
+
if (!this._open)
|
|
165
|
+
return;
|
|
166
|
+
this._open = false;
|
|
167
|
+
this._active = -1;
|
|
168
|
+
this._listen(false);
|
|
169
|
+
this._returnFocus?.focus?.();
|
|
170
|
+
this._returnFocus = null;
|
|
171
|
+
this.dispatchEvent(new CustomEvent("st-menu-close", { detail: { context: this._context }, bubbles: true, composed: true }));
|
|
172
|
+
}
|
|
173
|
+
_isFocusable(item) {
|
|
174
|
+
return !item.separator && !item.disabled;
|
|
175
|
+
}
|
|
176
|
+
_nextEnabled(from, step) {
|
|
177
|
+
const n = this.items.length;
|
|
178
|
+
for (let i = 1; i <= n; i++) {
|
|
179
|
+
const index = (((from + step * i) % n) + n) % n;
|
|
180
|
+
if (this._isFocusable(this.items[index]))
|
|
181
|
+
return index;
|
|
182
|
+
}
|
|
183
|
+
return -1;
|
|
184
|
+
}
|
|
185
|
+
_focusItem(index) {
|
|
186
|
+
if (index < 0)
|
|
187
|
+
return;
|
|
188
|
+
this._active = index;
|
|
189
|
+
this.updateComplete.then(() => {
|
|
190
|
+
this.renderRoot.querySelector(`[data-index="${index}"]`)?.focus();
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
_onKeydown(e) {
|
|
194
|
+
const last = this.items.length - 1;
|
|
195
|
+
switch (e.key) {
|
|
196
|
+
case "ArrowDown":
|
|
197
|
+
e.preventDefault();
|
|
198
|
+
this._focusItem(this._nextEnabled(this._active, 1));
|
|
199
|
+
break;
|
|
200
|
+
case "ArrowUp":
|
|
201
|
+
e.preventDefault();
|
|
202
|
+
this._focusItem(this._nextEnabled(this._active < 0 ? 0 : this._active, -1));
|
|
203
|
+
break;
|
|
204
|
+
case "Home":
|
|
205
|
+
e.preventDefault();
|
|
206
|
+
this._focusItem(this._nextEnabled(-1, 1));
|
|
207
|
+
break;
|
|
208
|
+
case "End":
|
|
209
|
+
e.preventDefault();
|
|
210
|
+
this._focusItem(this._nextEnabled(last + 1, -1));
|
|
211
|
+
break;
|
|
212
|
+
case "Tab":
|
|
213
|
+
this.hide();
|
|
214
|
+
break;
|
|
215
|
+
default:
|
|
216
|
+
if (e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey)
|
|
217
|
+
this._typeaheadSearch(e.key);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
_typeaheadSearch(char) {
|
|
221
|
+
window.clearTimeout(this._typeaheadTimer);
|
|
222
|
+
this._typeahead += char.toLowerCase();
|
|
223
|
+
this._typeaheadTimer = window.setTimeout(() => (this._typeahead = ""), 600);
|
|
224
|
+
const start = this._typeahead.length === 1 ? this._active : this._active - 1;
|
|
225
|
+
const n = this.items.length;
|
|
226
|
+
for (let i = 1; i <= n; i++) {
|
|
227
|
+
const index = (((start + i) % n) + n) % n;
|
|
228
|
+
const item = this.items[index];
|
|
229
|
+
if (this._isFocusable(item) && item.label?.toLowerCase().startsWith(this._typeahead)) {
|
|
230
|
+
this._focusItem(index);
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
_select(item) {
|
|
236
|
+
if (!this._isFocusable(item))
|
|
237
|
+
return;
|
|
238
|
+
this.dispatchEvent(new CustomEvent("st-menu-select", {
|
|
239
|
+
detail: { item, value: item.value ?? item.label, context: this._context },
|
|
240
|
+
bubbles: true,
|
|
241
|
+
composed: true,
|
|
242
|
+
}));
|
|
243
|
+
if (!item.keepOpen)
|
|
244
|
+
this.hide();
|
|
245
|
+
}
|
|
246
|
+
_renderItem(item, index) {
|
|
247
|
+
if (item.separator)
|
|
248
|
+
return html `<div class="separator" role="separator"></div>`;
|
|
249
|
+
const checkable = item.checked !== undefined;
|
|
250
|
+
return html `
|
|
251
|
+
<button
|
|
252
|
+
class="item ${item.danger ? "danger" : ""}"
|
|
253
|
+
type="button"
|
|
254
|
+
role=${checkable ? "menuitemcheckbox" : "menuitem"}
|
|
255
|
+
aria-checked=${checkable ? String(item.checked) : nothing}
|
|
256
|
+
?disabled=${item.disabled}
|
|
257
|
+
tabindex=${index === this._active ? "0" : "-1"}
|
|
258
|
+
data-index=${index}
|
|
259
|
+
@click=${() => this._select(item)}
|
|
260
|
+
@pointerenter=${(e) => !item.disabled && e.currentTarget.focus()}
|
|
261
|
+
>
|
|
262
|
+
<span class="lead" aria-hidden="true">
|
|
263
|
+
${checkable
|
|
264
|
+
? item.checked
|
|
265
|
+
? html `<st-icon name="check" size="sm"></st-icon>`
|
|
266
|
+
: nothing
|
|
267
|
+
: item.icon
|
|
268
|
+
? html `<st-icon name=${item.icon} size="sm"></st-icon>`
|
|
269
|
+
: nothing}
|
|
270
|
+
</span>
|
|
271
|
+
<span class="label">${item.label}</span>
|
|
272
|
+
${item.shortcut ? html `<span class="shortcut" aria-hidden="true">${item.shortcut}</span>` : nothing}
|
|
273
|
+
</button>
|
|
274
|
+
`;
|
|
275
|
+
}
|
|
276
|
+
render() {
|
|
277
|
+
return html `
|
|
278
|
+
<slot></slot>
|
|
279
|
+
<div
|
|
280
|
+
popover="manual"
|
|
281
|
+
role="menu"
|
|
282
|
+
aria-label=${this.label}
|
|
283
|
+
@toggle=${this._onToggle}
|
|
284
|
+
@keydown=${this._onKeydown}
|
|
285
|
+
>
|
|
286
|
+
${this._open ? this.items.map((item, index) => this._renderItem(item, index)) : nothing}
|
|
287
|
+
</div>
|
|
288
|
+
`;
|
|
289
|
+
}
|
|
290
|
+
};
|
|
291
|
+
StContextMenu.styles = [
|
|
292
|
+
resetStyles,
|
|
293
|
+
css `
|
|
294
|
+
:host {
|
|
295
|
+
display: contents;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
[popover] {
|
|
299
|
+
position: fixed;
|
|
300
|
+
inset: auto;
|
|
301
|
+
margin: 0;
|
|
302
|
+
min-width: 12rem;
|
|
303
|
+
max-width: min(24rem, calc(100vw - 16px));
|
|
304
|
+
max-height: calc(100vh - 16px);
|
|
305
|
+
overflow-y: auto;
|
|
306
|
+
padding: var(--st-spacing-xs);
|
|
307
|
+
border: 1px solid var(--st-color-border);
|
|
308
|
+
border-radius: var(--st-radius-md);
|
|
309
|
+
background: var(--st-color-surface);
|
|
310
|
+
color: var(--st-color-text);
|
|
311
|
+
box-shadow: var(--st-shadow-lg);
|
|
312
|
+
font-size: var(--st-font-size-sm);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
316
|
+
[popover]:popover-open {
|
|
317
|
+
animation: st-menu-in 0.1s ease-out;
|
|
318
|
+
}
|
|
319
|
+
@keyframes st-menu-in {
|
|
320
|
+
from {
|
|
321
|
+
opacity: 0;
|
|
322
|
+
transform: scale(0.97);
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.item {
|
|
328
|
+
display: flex;
|
|
329
|
+
align-items: center;
|
|
330
|
+
gap: var(--st-spacing-sm);
|
|
331
|
+
width: 100%;
|
|
332
|
+
padding: var(--st-spacing-xs) var(--st-spacing-sm);
|
|
333
|
+
border: 0;
|
|
334
|
+
border-radius: var(--st-radius-sm);
|
|
335
|
+
background: none;
|
|
336
|
+
color: inherit;
|
|
337
|
+
font: inherit;
|
|
338
|
+
text-align: left;
|
|
339
|
+
cursor: default;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.item:hover:not(:disabled),
|
|
343
|
+
.item:focus-visible {
|
|
344
|
+
outline: none;
|
|
345
|
+
background: var(--st-color-primary-bg);
|
|
346
|
+
color: var(--st-color-primary-text);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.item:disabled {
|
|
350
|
+
opacity: 0.5;
|
|
351
|
+
cursor: not-allowed;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.item.danger {
|
|
355
|
+
color: var(--st-color-error-text);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.item.danger:hover:not(:disabled),
|
|
359
|
+
.item.danger:focus-visible {
|
|
360
|
+
background: var(--st-color-error-bg);
|
|
361
|
+
color: var(--st-color-error-text);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.lead {
|
|
365
|
+
display: inline-flex;
|
|
366
|
+
flex-shrink: 0;
|
|
367
|
+
width: 1.25rem;
|
|
368
|
+
justify-content: center;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.label {
|
|
372
|
+
flex: 1;
|
|
373
|
+
white-space: nowrap;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.shortcut {
|
|
377
|
+
padding-left: var(--st-spacing-lg);
|
|
378
|
+
color: var(--st-color-text-muted);
|
|
379
|
+
font-size: var(--st-font-size-xs);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.separator {
|
|
383
|
+
height: 1px;
|
|
384
|
+
margin: var(--st-spacing-xs) calc(var(--st-spacing-xs) * -1);
|
|
385
|
+
background: var(--st-color-border);
|
|
386
|
+
}
|
|
387
|
+
`,
|
|
388
|
+
];
|
|
389
|
+
__decorate([
|
|
390
|
+
property({ type: Array })
|
|
391
|
+
], StContextMenu.prototype, "items", void 0);
|
|
392
|
+
__decorate([
|
|
393
|
+
property({ type: String })
|
|
394
|
+
], StContextMenu.prototype, "trigger", void 0);
|
|
395
|
+
__decorate([
|
|
396
|
+
property({ type: String })
|
|
397
|
+
], StContextMenu.prototype, "label", void 0);
|
|
398
|
+
__decorate([
|
|
399
|
+
property({ type: Boolean, reflect: true })
|
|
400
|
+
], StContextMenu.prototype, "disabled", void 0);
|
|
401
|
+
__decorate([
|
|
402
|
+
state()
|
|
403
|
+
], StContextMenu.prototype, "_open", void 0);
|
|
404
|
+
__decorate([
|
|
405
|
+
state()
|
|
406
|
+
], StContextMenu.prototype, "_active", void 0);
|
|
407
|
+
__decorate([
|
|
408
|
+
query("[popover]")
|
|
409
|
+
], StContextMenu.prototype, "_menu", void 0);
|
|
410
|
+
StContextMenu = __decorate([
|
|
411
|
+
customElement("st-context-menu")
|
|
412
|
+
], StContextMenu);
|
|
413
|
+
export { StContextMenu };
|
|
414
|
+
//# sourceMappingURL=context-menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-menu.js","sourceRoot":"","sources":["../../../src/components/context-menu/context-menu.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAC,MAAM,KAAK,CAAC;AACnD,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAClD,OAAO,iBAAiB,CAAC;AAuBzB,MAAM,eAAe,GAAG,CAAC,CAAC;AA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4CAA6B;AAVrC,aAAa;IADzB,aAAa,CAAC,iBAAiB,CAAC;GACpB,aAAa,CA0XzB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
1
|
+
import { LitElement, PropertyValues } from "lit";
|
|
2
2
|
export declare class StCronBuilder extends LitElement {
|
|
3
3
|
static formAssociated: boolean;
|
|
4
4
|
private _internals;
|
|
@@ -14,9 +14,12 @@ export declare class StCronBuilder extends LitElement {
|
|
|
14
14
|
private _customCronError;
|
|
15
15
|
private _customCronText;
|
|
16
16
|
private _defaultValue;
|
|
17
|
+
private _lastGeneratedOutput;
|
|
17
18
|
constructor();
|
|
18
19
|
static styles: import("lit").CSSResult[];
|
|
19
|
-
|
|
20
|
+
willUpdate(changedProperties: PropertyValues): void;
|
|
21
|
+
firstUpdated(changedProperties: PropertyValues): void;
|
|
22
|
+
private _parseIncomingValue;
|
|
20
23
|
private _translateCron;
|
|
21
24
|
private _generateOutput;
|
|
22
25
|
private _handleCustomCronInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cron-builder.d.ts","sourceRoot":"","sources":["../../../src/components/cron-builder/cron-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"cron-builder.d.ts","sourceRoot":"","sources":["../../../src/components/cron-builder/cron-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAa,cAAc,EAAC,MAAM,KAAK,CAAC;AAO1D,qBACa,aAAc,SAAQ,UAAU;IAC3C,MAAM,CAAC,cAAc,UAAQ;IAC7B,OAAO,CAAC,UAAU,CAAmB;IAEI,IAAI,SAAM;IACzB,KAAK,SAAM;IACK,QAAQ,UAAS;IAElD,OAAO,CAAC,UAAU,CAAY;IAC9B,OAAO,CAAC,KAAK,CAAW;IACxB,OAAO,CAAC,KAAK,CAAW;IACxB,OAAO,CAAC,SAAS,CAAO;IACxB,OAAO,CAAC,KAAK,CAAM;IAEnB,OAAO,CAAC,WAAW,CAAe;IAClC,OAAO,CAAC,gBAAgB,CAAM;IAC9B,OAAO,CAAC,eAAe,CAAM;IAEtC,OAAO,CAAC,aAAa,CAAM;IAC3B,OAAO,CAAC,oBAAoB,CAAM;IAElC,cAOC;IAED,MAAM,CAAC,MAAM,4BAsFX;IAEO,UAAU,CAAC,iBAAiB,EAAE,cAAc,QAQpD;IAEQ,YAAY,CAAC,iBAAiB,EAAE,cAAc,QAStD;IAED,OAAO,CAAC,mBAAmB;IAuD3B,OAAO,CAAC,cAAc;IAiHtB,OAAO,CAAC,eAAe;IA+CvB,OAAO,CAAC,sBAAsB;IAY9B,OAAO,CAAC,sBAAsB;IAKvB,aAAa,YAEnB;IACM,cAAc,YAEpB;IAED,iBAAiB,SAIhB;IAED,MAAM,yCAoIL;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,aAAa,CAAC;KAClC;CACF"}
|
|
@@ -7,6 +7,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { LitElement, html, css } from "lit";
|
|
8
8
|
import { customElement, property, state } from "lit/decorators.js";
|
|
9
9
|
import { resetStyles } from "../../styles/reset";
|
|
10
|
+
/** Reads `.value` from a custom form element event target. */
|
|
11
|
+
const targetValue = (e) => e.target.value;
|
|
10
12
|
let StCronBuilder = class StCronBuilder extends LitElement {
|
|
11
13
|
constructor() {
|
|
12
14
|
super();
|
|
@@ -22,15 +24,77 @@ let StCronBuilder = class StCronBuilder extends LitElement {
|
|
|
22
24
|
this._customCronError = "";
|
|
23
25
|
this._customCronText = "";
|
|
24
26
|
this._defaultValue = "";
|
|
27
|
+
this._lastGeneratedOutput = "";
|
|
25
28
|
this._internals = this.attachInternals();
|
|
26
29
|
const today = new Date();
|
|
27
30
|
const pad = (n) => n.toString().padStart(2, "0");
|
|
28
31
|
this._date = `${today.getFullYear()}-${pad(today.getMonth() + 1)}-${pad(today.getDate())}`;
|
|
29
32
|
}
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
willUpdate(changedProperties) {
|
|
34
|
+
super.willUpdate(changedProperties);
|
|
35
|
+
// Check if value changed, is truthy (not ""), and wasn't generated by the component itself
|
|
36
|
+
if (changedProperties.has("value") && this.value && this.value !== this._lastGeneratedOutput) {
|
|
37
|
+
this._parseIncomingValue(this.value);
|
|
38
|
+
this._generateOutput(true); // true = silent (don't dispatch 'change' event)
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
firstUpdated(changedProperties) {
|
|
42
|
+
super.firstUpdated(changedProperties);
|
|
43
|
+
// If the component mounted without an external value, generate the default cron string
|
|
44
|
+
if (!this.value) {
|
|
45
|
+
this._generateOutput(true);
|
|
46
|
+
}
|
|
32
47
|
this._defaultValue = this.value;
|
|
33
48
|
}
|
|
49
|
+
_parseIncomingValue(val) {
|
|
50
|
+
if (!val)
|
|
51
|
+
return;
|
|
52
|
+
// 1. One-Off Checks
|
|
53
|
+
if (val.includes("T")) {
|
|
54
|
+
this._frequency = "one-off";
|
|
55
|
+
const [dateStr, timeStr] = val.split("T");
|
|
56
|
+
this._date = dateStr;
|
|
57
|
+
this._time = timeStr;
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
const parts = val.trim().split(/\s+/);
|
|
61
|
+
if (parts.length !== 5) {
|
|
62
|
+
this._frequency = "custom";
|
|
63
|
+
this._customCron = val;
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
// 🚀 THE FIX: Check mathematical validity FIRST.
|
|
67
|
+
// If it's broken (like DOW 15), force it to Custom so the error UI displays.
|
|
68
|
+
const analysis = this._translateCron(val);
|
|
69
|
+
if (!analysis.valid) {
|
|
70
|
+
this._frequency = "custom";
|
|
71
|
+
this._customCron = val;
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
// 2. Safe mapping for valid cron strings
|
|
75
|
+
const [min, hour, dom, mon, dow] = parts;
|
|
76
|
+
if (/^\d+$/.test(min) && /^\d+$/.test(hour)) {
|
|
77
|
+
this._time = `${hour.padStart(2, "0")}:${min.padStart(2, "0")}`;
|
|
78
|
+
if (dom === "*" && mon === "*" && dow === "*") {
|
|
79
|
+
this._frequency = "daily";
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
// Ensure weekly is only triggered for simple lists (e.g. "1,3,5" or "1"), not steps/ranges
|
|
83
|
+
else if (dom === "*" && mon === "*" && /^[0-7](,[0-7])*$/.test(dow)) {
|
|
84
|
+
this._frequency = "weekly";
|
|
85
|
+
this._days = dow;
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
else if (/^\d+$/.test(dom) && mon === "*" && dow === "*") {
|
|
89
|
+
this._frequency = "monthly";
|
|
90
|
+
this._monthDay = dom;
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
// 3. Fallback for valid but complex expressions (e.g., */15 * * * *)
|
|
95
|
+
this._frequency = "custom";
|
|
96
|
+
this._customCron = val;
|
|
97
|
+
}
|
|
34
98
|
_translateCron(cron) {
|
|
35
99
|
const parts = cron.trim().split(/\s+/);
|
|
36
100
|
if (parts.length !== 5) {
|
|
@@ -135,7 +199,7 @@ let StCronBuilder = class StCronBuilder extends LitElement {
|
|
|
135
199
|
}
|
|
136
200
|
return { valid: true, text: desc + "." };
|
|
137
201
|
}
|
|
138
|
-
_generateOutput() {
|
|
202
|
+
_generateOutput(silent = false) {
|
|
139
203
|
let output = "";
|
|
140
204
|
this._customCronError = "";
|
|
141
205
|
this._customCronText = "";
|
|
@@ -171,9 +235,13 @@ let StCronBuilder = class StCronBuilder extends LitElement {
|
|
|
171
235
|
break;
|
|
172
236
|
}
|
|
173
237
|
}
|
|
238
|
+
this._lastGeneratedOutput = output;
|
|
174
239
|
this.value = output;
|
|
175
240
|
this._internals.setFormValue(output);
|
|
176
|
-
|
|
241
|
+
// Only dispatch if the user actually clicked/typed something
|
|
242
|
+
if (!silent) {
|
|
243
|
+
this.dispatchEvent(new Event("change", { bubbles: true, composed: true }));
|
|
244
|
+
}
|
|
177
245
|
}
|
|
178
246
|
_handleCustomCronInput(e) {
|
|
179
247
|
const inputEl = e.target;
|
|
@@ -185,7 +253,7 @@ let StCronBuilder = class StCronBuilder extends LitElement {
|
|
|
185
253
|
this._generateOutput();
|
|
186
254
|
}
|
|
187
255
|
_handleFrequencyChange(e) {
|
|
188
|
-
this._frequency = e
|
|
256
|
+
this._frequency = targetValue(e);
|
|
189
257
|
this._generateOutput();
|
|
190
258
|
}
|
|
191
259
|
checkValidity() {
|
|
@@ -232,7 +300,7 @@ let StCronBuilder = class StCronBuilder extends LitElement {
|
|
|
232
300
|
multiple
|
|
233
301
|
.value=${this._days}
|
|
234
302
|
@change=${(e) => {
|
|
235
|
-
this._days = e
|
|
303
|
+
this._days = targetValue(e);
|
|
236
304
|
this._generateOutput();
|
|
237
305
|
}}
|
|
238
306
|
>
|
|
@@ -255,7 +323,7 @@ let StCronBuilder = class StCronBuilder extends LitElement {
|
|
|
255
323
|
.options=${monthDayOptions}
|
|
256
324
|
.value=${this._monthDay}
|
|
257
325
|
@change=${(e) => {
|
|
258
|
-
this._monthDay = e
|
|
326
|
+
this._monthDay = targetValue(e);
|
|
259
327
|
this._generateOutput();
|
|
260
328
|
}}
|
|
261
329
|
></st-select>
|
|
@@ -269,7 +337,7 @@ let StCronBuilder = class StCronBuilder extends LitElement {
|
|
|
269
337
|
<st-calendar
|
|
270
338
|
.value=${this._date}
|
|
271
339
|
@change=${(e) => {
|
|
272
|
-
this._date = e
|
|
340
|
+
this._date = targetValue(e);
|
|
273
341
|
this._generateOutput();
|
|
274
342
|
}}
|
|
275
343
|
></st-calendar>
|
|
@@ -312,7 +380,7 @@ let StCronBuilder = class StCronBuilder extends LitElement {
|
|
|
312
380
|
label="Execution Time"
|
|
313
381
|
.value=${this._time}
|
|
314
382
|
@change=${(e) => {
|
|
315
|
-
this._time = e
|
|
383
|
+
this._time = targetValue(e);
|
|
316
384
|
this._generateOutput();
|
|
317
385
|
}}
|
|
318
386
|
></st-time-picker>
|
|
@@ -338,7 +406,7 @@ StCronBuilder.styles = [
|
|
|
338
406
|
border: 1px solid var(--st-color-border);
|
|
339
407
|
border-radius: var(--st-radius-lg);
|
|
340
408
|
padding: var(--st-spacing-lg);
|
|
341
|
-
box-shadow:
|
|
409
|
+
box-shadow: var(--st-shadow-sm);
|
|
342
410
|
}
|
|
343
411
|
|
|
344
412
|
.builder-grid {
|
|
@@ -377,7 +445,7 @@ StCronBuilder.styles = [
|
|
|
377
445
|
text-align: center;
|
|
378
446
|
font-size: 11px;
|
|
379
447
|
padding: 4px;
|
|
380
|
-
background: var(--st-color-surface-muted
|
|
448
|
+
background: var(--st-color-surface-muted);
|
|
381
449
|
border-radius: var(--st-radius-sm);
|
|
382
450
|
color: var(--st-color-text-muted);
|
|
383
451
|
border: 1px solid var(--st-color-border);
|
|
@@ -385,25 +453,25 @@ StCronBuilder.styles = [
|
|
|
385
453
|
}
|
|
386
454
|
|
|
387
455
|
.segment-badge.active {
|
|
388
|
-
background: var(--st-color-primary
|
|
456
|
+
background: var(--st-color-primary);
|
|
389
457
|
color: var(--st-color-surface);
|
|
390
458
|
border-color: var(--st-color-primary);
|
|
391
459
|
font-weight: 600;
|
|
392
460
|
}
|
|
393
461
|
|
|
394
462
|
.success-text {
|
|
395
|
-
color: var(--st-color-success
|
|
463
|
+
color: var(--st-color-success);
|
|
396
464
|
}
|
|
397
465
|
|
|
398
466
|
.error-text {
|
|
399
|
-
color: var(--st-color-danger
|
|
467
|
+
color: var(--st-color-danger);
|
|
400
468
|
font-weight: 500;
|
|
401
469
|
}
|
|
402
470
|
|
|
403
471
|
.output-preview {
|
|
404
472
|
margin-top: var(--st-spacing-md);
|
|
405
473
|
padding: var(--st-spacing-md);
|
|
406
|
-
background: var(--st-color-surface-muted
|
|
474
|
+
background: var(--st-color-surface-muted);
|
|
407
475
|
border-radius: var(--st-radius-md);
|
|
408
476
|
border: 1px dashed var(--st-color-border);
|
|
409
477
|
}
|