@melodicdev/components 2.0.2 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -6
- package/assets/melodic-components.js +5568 -4145
- package/assets/melodic-components.js.map +1 -1
- package/assets/melodic-components.min.js +6469 -5147
- package/lib/components/data-display/activity-feed/activity-feed-item.component.d.ts +15 -14
- package/lib/components/data-display/activity-feed/activity-feed-item.component.d.ts.map +1 -1
- package/lib/components/data-display/activity-feed/activity-feed-item.component.js +36 -16
- package/lib/components/data-display/activity-feed/activity-feed-item.styles.d.ts.map +1 -1
- package/lib/components/data-display/activity-feed/activity-feed-item.styles.js +4 -0
- package/lib/components/data-display/activity-feed/activity-feed-item.template.d.ts.map +1 -1
- package/lib/components/data-display/activity-feed/activity-feed-item.template.js +15 -14
- package/lib/components/data-display/avatar/avatar.component.d.ts +9 -4
- package/lib/components/data-display/avatar/avatar.component.d.ts.map +1 -1
- package/lib/components/data-display/avatar/avatar.component.js +12 -3
- package/lib/components/data-display/avatar/avatar.template.js +1 -1
- package/lib/components/data-display/badge/badge.component.d.ts +2 -3
- package/lib/components/data-display/badge/badge.component.d.ts.map +1 -1
- package/lib/components/data-display/badge/badge.styles.d.ts.map +1 -1
- package/lib/components/data-display/badge/badge.styles.js +56 -35
- package/lib/components/data-display/badge/badge.types.d.ts +2 -0
- package/lib/components/data-display/badge/badge.types.d.ts.map +1 -1
- package/lib/components/data-display/calendar-view/calendar-view.utils.d.ts +10 -0
- package/lib/components/data-display/calendar-view/calendar-view.utils.d.ts.map +1 -1
- package/lib/components/data-display/calendar-view/calendar-view.utils.js +59 -27
- package/lib/components/data-display/data-grid/data-grid.component.d.ts +6 -5
- package/lib/components/data-display/data-grid/data-grid.component.d.ts.map +1 -1
- package/lib/components/data-display/data-grid/data-grid.component.js +49 -110
- package/lib/components/data-display/data-grid/data-grid.template.d.ts.map +1 -1
- package/lib/components/data-display/data-grid/data-grid.template.js +2 -6
- package/lib/components/data-display/list/list-item.component.d.ts +15 -6
- package/lib/components/data-display/list/list-item.component.d.ts.map +1 -1
- package/lib/components/data-display/list/list-item.component.js +57 -6
- package/lib/components/data-display/list/list-item.styles.d.ts.map +1 -1
- package/lib/components/data-display/list/list-item.styles.js +5 -0
- package/lib/components/data-display/list/list-item.template.d.ts.map +1 -1
- package/lib/components/data-display/list/list-item.template.js +18 -12
- package/lib/components/data-display/profile-card/profile-card.component.d.ts +2 -2
- package/lib/components/data-display/profile-card/profile-card.component.d.ts.map +1 -1
- package/lib/components/data-display/profile-card/profile-card.component.js +17 -15
- package/lib/components/data-display/profile-card/profile-card.template.js +1 -1
- package/lib/components/data-display/stat-card/stat-card.component.d.ts +6 -6
- package/lib/components/data-display/stat-card/stat-card.component.d.ts.map +1 -1
- package/lib/components/data-display/stat-card/stat-card.component.js +14 -6
- package/lib/components/data-display/stat-card/stat-card.template.js +4 -4
- package/lib/components/data-display/table/table.component.d.ts +7 -5
- package/lib/components/data-display/table/table.component.d.ts.map +1 -1
- package/lib/components/data-display/table/table.component.js +40 -117
- package/lib/components/data-display/table/table.styles.d.ts.map +1 -1
- package/lib/components/data-display/table/table.styles.js +5 -2
- package/lib/components/data-display/table/table.template.d.ts.map +1 -1
- package/lib/components/data-display/table/table.template.js +1 -6
- package/lib/components/data-display/table-core/index.d.ts +3 -0
- package/lib/components/data-display/table-core/index.d.ts.map +1 -0
- package/lib/components/data-display/table-core/index.js +2 -0
- package/lib/components/data-display/table-core/table-core.d.ts +137 -0
- package/lib/components/data-display/table-core/table-core.d.ts.map +1 -0
- package/lib/components/data-display/table-core/table-core.js +225 -0
- package/lib/components/data-display/tag/tag.component.d.ts +14 -7
- package/lib/components/data-display/tag/tag.component.d.ts.map +1 -1
- package/lib/components/data-display/tag/tag.component.js +29 -5
- package/lib/components/data-display/tag/tag.template.js +2 -2
- package/lib/components/data-display/tag/tag.types.d.ts +8 -1
- package/lib/components/data-display/tag/tag.types.d.ts.map +1 -1
- package/lib/components/feedback/alert/alert.component.d.ts +6 -3
- package/lib/components/feedback/alert/alert.component.d.ts.map +1 -1
- package/lib/components/feedback/alert/alert.component.js +13 -4
- package/lib/components/feedback/alert/alert.template.js +1 -1
- package/lib/components/feedback/progress/progress.component.d.ts +4 -0
- package/lib/components/feedback/progress/progress.component.d.ts.map +1 -1
- package/lib/components/feedback/progress/progress.component.js +9 -0
- package/lib/components/feedback/progress/progress.template.d.ts.map +1 -1
- package/lib/components/feedback/progress/progress.template.js +19 -5
- package/lib/components/feedback/toast/toast.component.d.ts +6 -3
- package/lib/components/feedback/toast/toast.component.d.ts.map +1 -1
- package/lib/components/feedback/toast/toast.component.js +13 -4
- package/lib/components/feedback/toast/toast.service.d.ts.map +1 -1
- package/lib/components/feedback/toast/toast.service.js +2 -1
- package/lib/components/feedback/toast/toast.template.js +1 -1
- package/lib/components/forms/autocomplete/autocomplete.component.d.ts +12 -4
- package/lib/components/forms/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/lib/components/forms/autocomplete/autocomplete.component.js +39 -30
- package/lib/components/forms/autocomplete/autocomplete.template.d.ts.map +1 -1
- package/lib/components/forms/autocomplete/autocomplete.template.js +14 -0
- package/lib/components/forms/button/button.component.d.ts +28 -3
- package/lib/components/forms/button/button.component.d.ts.map +1 -1
- package/lib/components/forms/button/button.component.js +81 -6
- package/lib/components/forms/button/button.template.js +1 -1
- package/lib/components/forms/button/button.types.d.ts +8 -1
- package/lib/components/forms/button/button.types.d.ts.map +1 -1
- package/lib/components/forms/button-group/button-group-item.component.d.ts +2 -2
- package/lib/components/forms/button-group/button-group-item.component.d.ts.map +1 -1
- package/lib/components/forms/button-group/button-group.component.d.ts +4 -2
- package/lib/components/forms/button-group/button-group.component.d.ts.map +1 -1
- package/lib/components/forms/button-group/button-group.component.js +3 -1
- package/lib/components/forms/button-group/button-group.styles.d.ts.map +1 -1
- package/lib/components/forms/button-group/button-group.styles.js +15 -1
- package/lib/components/forms/button-group/button-group.template.d.ts.map +1 -1
- package/lib/components/forms/button-group/button-group.template.js +4 -2
- package/lib/components/forms/checkbox/checkbox.component.d.ts +4 -2
- package/lib/components/forms/checkbox/checkbox.component.d.ts.map +1 -1
- package/lib/components/forms/checkbox/checkbox.component.js +3 -1
- package/lib/components/forms/checkbox/checkbox.styles.d.ts.map +1 -1
- package/lib/components/forms/checkbox/checkbox.styles.js +19 -0
- package/lib/components/forms/checkbox/checkbox.template.d.ts.map +1 -1
- package/lib/components/forms/checkbox/checkbox.template.js +4 -2
- package/lib/components/forms/date-picker/calendar.component.js +1 -1
- package/lib/components/forms/date-picker/date-picker.component.d.ts +11 -4
- package/lib/components/forms/date-picker/date-picker.component.d.ts.map +1 -1
- package/lib/components/forms/date-picker/date-picker.component.js +99 -32
- package/lib/components/forms/date-picker/date-picker.styles.d.ts.map +1 -1
- package/lib/components/forms/date-picker/date-picker.styles.js +0 -10
- package/lib/components/forms/date-picker/date-picker.template.d.ts.map +1 -1
- package/lib/components/forms/date-picker/date-picker.template.js +3 -4
- package/lib/components/forms/file-upload/file-upload-item.component.d.ts +7 -0
- package/lib/components/forms/file-upload/file-upload-item.component.d.ts.map +1 -1
- package/lib/components/forms/file-upload/file-upload-item.component.js +15 -0
- package/lib/components/forms/file-upload/file-upload.component.d.ts +15 -0
- package/lib/components/forms/file-upload/file-upload.component.d.ts.map +1 -1
- package/lib/components/forms/file-upload/file-upload.component.js +56 -0
- package/lib/components/forms/form-field/form-field.component.d.ts +12 -4
- package/lib/components/forms/form-field/form-field.component.d.ts.map +1 -1
- package/lib/components/forms/form-field/form-field.component.js +50 -31
- package/lib/components/forms/form-field/form-field.template.js +1 -1
- package/lib/components/forms/input/input.component.d.ts +2 -2
- package/lib/components/forms/input/input.component.d.ts.map +1 -1
- package/lib/components/forms/radio/radio-group.component.d.ts +6 -0
- package/lib/components/forms/radio/radio-group.component.d.ts.map +1 -1
- package/lib/components/forms/radio/radio-group.component.js +69 -2
- package/lib/components/forms/radio/radio-group.template.js +1 -1
- package/lib/components/forms/radio/radio.component.d.ts +7 -2
- package/lib/components/forms/radio/radio.component.d.ts.map +1 -1
- package/lib/components/forms/radio/radio.component.js +5 -0
- package/lib/components/forms/radio/radio.template.d.ts.map +1 -1
- package/lib/components/forms/radio/radio.template.js +1 -0
- package/lib/components/forms/select/select.component.d.ts +13 -6
- package/lib/components/forms/select/select.component.d.ts.map +1 -1
- package/lib/components/forms/select/select.component.js +32 -36
- package/lib/components/forms/select/select.template.d.ts.map +1 -1
- package/lib/components/forms/select/select.template.js +6 -2
- package/lib/components/forms/slider/slider.component.d.ts +2 -2
- package/lib/components/forms/slider/slider.component.d.ts.map +1 -1
- package/lib/components/forms/slider/slider.component.js +5 -1
- package/lib/components/forms/textarea/textarea.component.d.ts +2 -2
- package/lib/components/forms/textarea/textarea.component.d.ts.map +1 -1
- package/lib/components/forms/toggle/toggle.component.d.ts +4 -2
- package/lib/components/forms/toggle/toggle.component.d.ts.map +1 -1
- package/lib/components/forms/toggle/toggle.component.js +3 -1
- package/lib/components/forms/toggle/toggle.styles.d.ts.map +1 -1
- package/lib/components/forms/toggle/toggle.styles.js +19 -0
- package/lib/components/forms/toggle/toggle.template.d.ts.map +1 -1
- package/lib/components/forms/toggle/toggle.template.js +11 -3
- package/lib/components/foundation/card/card.component.d.ts +7 -6
- package/lib/components/foundation/card/card.component.d.ts.map +1 -1
- package/lib/components/foundation/card/card.component.js +18 -7
- package/lib/components/foundation/card/card.styles.d.ts.map +1 -1
- package/lib/components/foundation/card/card.styles.js +5 -0
- package/lib/components/foundation/card/card.template.d.ts.map +1 -1
- package/lib/components/foundation/card/card.template.js +16 -11
- package/lib/components/foundation/divider/divider.component.d.ts +5 -4
- package/lib/components/foundation/divider/divider.component.d.ts.map +1 -1
- package/lib/components/foundation/divider/divider.component.js +11 -3
- package/lib/components/foundation/divider/divider.styles.d.ts.map +1 -1
- package/lib/components/foundation/divider/divider.styles.js +6 -0
- package/lib/components/foundation/divider/divider.template.d.ts +5 -0
- package/lib/components/foundation/divider/divider.template.d.ts.map +1 -1
- package/lib/components/foundation/divider/divider.template.js +9 -6
- package/lib/components/general/icon/icon.template.d.ts.map +1 -1
- package/lib/components/general/icon/icon.template.js +3 -1
- package/lib/components/navigation/pagination/pagination.component.d.ts +5 -0
- package/lib/components/navigation/pagination/pagination.component.d.ts.map +1 -1
- package/lib/components/navigation/pagination/pagination.component.js +22 -10
- package/lib/components/navigation/pagination/pagination.styles.d.ts.map +1 -1
- package/lib/components/navigation/pagination/pagination.styles.js +6 -4
- package/lib/components/navigation/sidebar/sidebar-item.component.d.ts +4 -4
- package/lib/components/navigation/sidebar/sidebar-item.component.d.ts.map +1 -1
- package/lib/components/navigation/sidebar/sidebar-item.component.js +11 -4
- package/lib/components/navigation/sidebar/sidebar-item.template.js +2 -2
- package/lib/components/navigation/sidebar/sidebar.component.d.ts +7 -0
- package/lib/components/navigation/sidebar/sidebar.component.d.ts.map +1 -1
- package/lib/components/navigation/sidebar/sidebar.component.js +48 -5
- package/lib/components/navigation/steps/step-panel.component.d.ts +7 -0
- package/lib/components/navigation/steps/step-panel.component.d.ts.map +1 -1
- package/lib/components/navigation/steps/step-panel.component.js +7 -0
- package/lib/components/navigation/steps/step-panel.template.d.ts +1 -1
- package/lib/components/navigation/steps/step-panel.template.d.ts.map +1 -1
- package/lib/components/navigation/steps/step-panel.template.js +2 -2
- package/lib/components/navigation/steps/step.component.d.ts +2 -2
- package/lib/components/navigation/steps/step.component.d.ts.map +1 -1
- package/lib/components/navigation/steps/step.component.js +8 -2
- package/lib/components/navigation/steps/step.template.js +1 -1
- package/lib/components/navigation/steps/steps.component.d.ts +3 -1
- package/lib/components/navigation/steps/steps.component.d.ts.map +1 -1
- package/lib/components/navigation/steps/steps.component.js +47 -14
- package/lib/components/navigation/steps/steps.template.d.ts.map +1 -1
- package/lib/components/navigation/steps/steps.template.js +5 -1
- package/lib/components/navigation/tabs/tab-panel.component.d.ts +7 -0
- package/lib/components/navigation/tabs/tab-panel.component.d.ts.map +1 -1
- package/lib/components/navigation/tabs/tab-panel.component.js +7 -0
- package/lib/components/navigation/tabs/tab-panel.template.d.ts +1 -1
- package/lib/components/navigation/tabs/tab-panel.template.d.ts.map +1 -1
- package/lib/components/navigation/tabs/tab-panel.template.js +2 -2
- package/lib/components/navigation/tabs/tabs.component.d.ts +5 -3
- package/lib/components/navigation/tabs/tabs.component.d.ts.map +1 -1
- package/lib/components/navigation/tabs/tabs.component.js +49 -14
- package/lib/components/navigation/tabs/tabs.template.d.ts.map +1 -1
- package/lib/components/navigation/tabs/tabs.template.js +6 -1
- package/lib/components/overlays/dialog/dialog-ref.class.d.ts +17 -2
- package/lib/components/overlays/dialog/dialog-ref.class.d.ts.map +1 -1
- package/lib/components/overlays/dialog/dialog-ref.class.js +52 -6
- package/lib/components/overlays/dialog/dialog.component.d.ts.map +1 -1
- package/lib/components/overlays/dialog/dialog.component.js +5 -1
- package/lib/components/overlays/dialog/dialog.service.d.ts +2 -2
- package/lib/components/overlays/dialog/dialog.service.d.ts.map +1 -1
- package/lib/components/overlays/dialog/dialog.service.js +46 -18
- package/lib/components/overlays/drawer/drawer.component.d.ts +9 -2
- package/lib/components/overlays/drawer/drawer.component.d.ts.map +1 -1
- package/lib/components/overlays/drawer/drawer.component.js +34 -4
- package/lib/components/overlays/drawer/drawer.styles.d.ts.map +1 -1
- package/lib/components/overlays/drawer/drawer.styles.js +4 -0
- package/lib/components/overlays/dropdown/dropdown-item.component.d.ts +5 -2
- package/lib/components/overlays/dropdown/dropdown-item.component.d.ts.map +1 -1
- package/lib/components/overlays/dropdown/dropdown-item.component.js +18 -0
- package/lib/components/overlays/dropdown/dropdown-item.template.d.ts.map +1 -1
- package/lib/components/overlays/dropdown/dropdown-item.template.js +0 -3
- package/lib/components/overlays/dropdown/dropdown.component.d.ts +8 -4
- package/lib/components/overlays/dropdown/dropdown.component.d.ts.map +1 -1
- package/lib/components/overlays/dropdown/dropdown.component.js +61 -60
- package/lib/components/overlays/popover/popover.component.d.ts +6 -4
- package/lib/components/overlays/popover/popover.component.d.ts.map +1 -1
- package/lib/components/overlays/popover/popover.component.js +37 -51
- package/lib/components/overlays/tooltip/tooltip.component.d.ts +29 -4
- package/lib/components/overlays/tooltip/tooltip.component.d.ts.map +1 -1
- package/lib/components/overlays/tooltip/tooltip.component.js +73 -31
- package/lib/components/overlays/tooltip/tooltip.styles.d.ts.map +1 -1
- package/lib/components/overlays/tooltip/tooltip.styles.js +22 -10
- package/lib/components/overlays/tooltip/tooltip.template.d.ts.map +1 -1
- package/lib/components/overlays/tooltip/tooltip.template.js +3 -2
- package/lib/components/pages/auth/login-page.component.d.ts +11 -4
- package/lib/components/pages/auth/login-page.component.d.ts.map +1 -1
- package/lib/components/pages/auth/login-page.component.js +18 -5
- package/lib/components/pages/auth/login-page.template.d.ts.map +1 -1
- package/lib/components/pages/auth/login-page.template.js +9 -10
- package/lib/components/pages/auth/signup-page.component.d.ts +11 -4
- package/lib/components/pages/auth/signup-page.component.d.ts.map +1 -1
- package/lib/components/pages/auth/signup-page.component.js +18 -5
- package/lib/components/pages/auth/signup-page.template.d.ts.map +1 -1
- package/lib/components/pages/auth/signup-page.template.js +9 -10
- package/lib/components/pages/dashboard/dashboard-page.component.d.ts +18 -11
- package/lib/components/pages/dashboard/dashboard-page.component.d.ts.map +1 -1
- package/lib/components/pages/dashboard/dashboard-page.component.js +55 -13
- package/lib/components/pages/dashboard/dashboard-page.template.js +1 -1
- package/lib/components/sections/app-shell/app-shell.component.d.ts +6 -6
- package/lib/components/sections/app-shell/app-shell.component.d.ts.map +1 -1
- package/lib/components/sections/app-shell/app-shell.component.js +14 -6
- package/lib/components/sections/app-shell/app-shell.template.js +3 -3
- package/lib/components/sections/hero/hero-section.component.d.ts +6 -3
- package/lib/components/sections/hero/hero-section.component.d.ts.map +1 -1
- package/lib/components/sections/hero/hero-section.component.js +13 -4
- package/lib/components/sections/hero/hero-section.template.js +2 -2
- package/lib/components/sections/page-header/page-header.component.d.ts +16 -17
- package/lib/components/sections/page-header/page-header.component.d.ts.map +1 -1
- package/lib/components/sections/page-header/page-header.component.js +36 -25
- package/lib/components/sections/page-header/page-header.styles.d.ts.map +1 -1
- package/lib/components/sections/page-header/page-header.styles.js +9 -0
- package/lib/components/sections/page-header/page-header.template.d.ts +5 -0
- package/lib/components/sections/page-header/page-header.template.d.ts.map +1 -1
- package/lib/components/sections/page-header/page-header.template.js +42 -31
- package/lib/components/sections/page-section/page-section.component.d.ts +16 -12
- package/lib/components/sections/page-section/page-section.component.d.ts.map +1 -1
- package/lib/components/sections/page-section/page-section.component.js +34 -12
- package/lib/components/sections/page-section/page-section.styles.d.ts.map +1 -1
- package/lib/components/sections/page-section/page-section.styles.js +6 -0
- package/lib/components/sections/page-section/page-section.template.d.ts +6 -0
- package/lib/components/sections/page-section/page-section.template.d.ts.map +1 -1
- package/lib/components/sections/page-section/page-section.template.js +26 -15
- package/lib/components/sections/page-section/sanitize-href.function.d.ts +12 -0
- package/lib/components/sections/page-section/sanitize-href.function.d.ts.map +1 -0
- package/lib/components/sections/page-section/sanitize-href.function.js +15 -0
- package/lib/directives/tooltip.directive.d.ts +8 -2
- package/lib/directives/tooltip.directive.d.ts.map +1 -1
- package/lib/directives/tooltip.directive.js +103 -9
- package/lib/functions/deprecation.functions.d.ts +21 -0
- package/lib/functions/deprecation.functions.d.ts.map +1 -0
- package/lib/functions/deprecation.functions.js +44 -0
- package/lib/functions/index.d.ts +2 -0
- package/lib/functions/index.d.ts.map +1 -1
- package/lib/functions/index.js +2 -0
- package/lib/functions/watch-slot-presence.function.d.ts +17 -0
- package/lib/functions/watch-slot-presence.function.d.ts.map +1 -0
- package/lib/functions/watch-slot-presence.function.js +27 -0
- package/lib/theme/functions/create-theme.function.d.ts +15 -1
- package/lib/theme/functions/create-theme.function.d.ts.map +1 -1
- package/lib/theme/functions/create-theme.function.js +57 -11
- package/lib/theme/index.d.ts +1 -0
- package/lib/theme/index.d.ts.map +1 -1
- package/lib/types/index.d.ts +8 -2
- package/lib/types/index.d.ts.map +1 -1
- package/lib/utils/accessibility/focus-trap.d.ts +19 -1
- package/lib/utils/accessibility/focus-trap.d.ts.map +1 -1
- package/lib/utils/accessibility/focus-trap.js +77 -8
- package/lib/utils/accessibility/index.d.ts +2 -1
- package/lib/utils/accessibility/index.d.ts.map +1 -1
- package/lib/utils/accessibility/index.js +1 -1
- package/lib/utils/accessibility/live-region.d.ts +10 -3
- package/lib/utils/accessibility/live-region.d.ts.map +1 -1
- package/lib/utils/accessibility/live-region.js +64 -35
- package/lib/utils/directives/click-outside.directive.d.ts.map +1 -1
- package/lib/utils/directives/click-outside.directive.js +5 -3
- package/lib/utils/overlay/index.d.ts +4 -0
- package/lib/utils/overlay/index.d.ts.map +1 -0
- package/lib/utils/overlay/index.js +2 -0
- package/lib/utils/overlay/overlay-positioner.d.ts +54 -0
- package/lib/utils/overlay/overlay-positioner.d.ts.map +1 -0
- package/lib/utils/overlay/overlay-positioner.js +85 -0
- package/lib/utils/overlay/toggle-dismiss-guard.d.ts +24 -0
- package/lib/utils/overlay/toggle-dismiss-guard.d.ts.map +1 -0
- package/lib/utils/overlay/toggle-dismiss-guard.js +36 -0
- package/lib/utils/positioning/auto-update.d.ts.map +1 -1
- package/lib/utils/positioning/auto-update.js +3 -0
- package/lib/utils/positioning/compute-position.d.ts.map +1 -1
- package/lib/utils/positioning/compute-position.js +8 -4
- package/lib/utils/positioning/middlewares/flip.middleware.d.ts.map +1 -1
- package/lib/utils/positioning/middlewares/flip.middleware.js +10 -3
- package/lib/utils/positioning/middlewares/offset.middleware.d.ts +15 -0
- package/lib/utils/positioning/middlewares/offset.middleware.d.ts.map +1 -1
- package/lib/utils/positioning/middlewares/offset.middleware.js +31 -1
- package/lib/utils/positioning/middlewares/shift.middleware.d.ts +13 -3
- package/lib/utils/positioning/middlewares/shift.middleware.d.ts.map +1 -1
- package/lib/utils/positioning/middlewares/shift.middleware.js +15 -7
- package/package.json +6 -2
|
@@ -1,20 +1,32 @@
|
|
|
1
1
|
import { css } from '@melodicdev/core';
|
|
2
2
|
export const tooltipStyles = () => css `
|
|
3
3
|
:host {
|
|
4
|
-
/* Tooltip content
|
|
4
|
+
/* ── Tooltip: content ──
|
|
5
|
+
--ml-tooltip-max-width, --ml-tooltip-padding-y, --ml-tooltip-padding-x,
|
|
6
|
+
--ml-tooltip-color, --ml-tooltip-font-size, --ml-tooltip-font-weight,
|
|
7
|
+
--ml-tooltip-line-height, --ml-tooltip-radius, --ml-tooltip-shadow,
|
|
8
|
+
--ml-tooltip-z-index, --ml-tooltip-transition-duration,
|
|
9
|
+
--ml-tooltip-transition-easing
|
|
10
|
+
── Tooltip: arrow ──
|
|
11
|
+
--ml-tooltip-arrow-size
|
|
12
|
+
── Theme-level ──
|
|
13
|
+
--ml-tooltip-bg / --ml-tooltip-text are defined by the THEME (light and
|
|
14
|
+
dark presets) and intentionally NOT re-declared here: shadowing
|
|
15
|
+
--ml-tooltip-bg on :host would override the theme's dark value and
|
|
16
|
+
consumer overrides, and a same-name alias would be self-referential.
|
|
17
|
+
Rules reference var(--ml-tooltip-bg, fallback) directly. */
|
|
5
18
|
--ml-tooltip-max-width: 320px;
|
|
6
19
|
--ml-tooltip-padding-y: var(--ml-space-2);
|
|
7
20
|
--ml-tooltip-padding-x: var(--ml-space-3);
|
|
8
|
-
/* bg/color derive from the global tooltip theme tokens; referencing
|
|
9
|
-
--ml-tooltip-bg here would be self-referential (invalid → transparent). */
|
|
10
|
-
--ml-tooltip-bg: var(--ml-color-neutral-900, var(--ml-gray-900));
|
|
11
21
|
--ml-tooltip-color: var(--ml-tooltip-text, var(--ml-white));
|
|
12
22
|
--ml-tooltip-font-size: var(--ml-text-xs);
|
|
13
23
|
--ml-tooltip-font-weight: var(--ml-font-medium);
|
|
14
24
|
--ml-tooltip-line-height: var(--ml-leading-snug);
|
|
15
25
|
--ml-tooltip-radius: var(--ml-radius);
|
|
16
26
|
--ml-tooltip-shadow: var(--ml-shadow-lg);
|
|
17
|
-
--ml-tooltip-
|
|
27
|
+
--ml-tooltip-z-index: 9999;
|
|
28
|
+
--ml-tooltip-transition-duration: var(--ml-duration-150);
|
|
29
|
+
--ml-tooltip-transition-easing: var(--ml-ease-out);
|
|
18
30
|
|
|
19
31
|
/* Arrow */
|
|
20
32
|
--ml-tooltip-arrow-size: 8px;
|
|
@@ -33,10 +45,10 @@ export const tooltipStyles = () => css `
|
|
|
33
45
|
|
|
34
46
|
.ml-tooltip__content {
|
|
35
47
|
position: fixed;
|
|
36
|
-
z-index:
|
|
48
|
+
z-index: var(--ml-tooltip-z-index);
|
|
37
49
|
max-width: var(--ml-tooltip-max-width);
|
|
38
50
|
padding: var(--ml-tooltip-padding-y) var(--ml-tooltip-padding-x);
|
|
39
|
-
background-color: var(--ml-tooltip-bg);
|
|
51
|
+
background-color: var(--ml-tooltip-bg, var(--ml-gray-900));
|
|
40
52
|
color: var(--ml-tooltip-color);
|
|
41
53
|
font-size: var(--ml-tooltip-font-size);
|
|
42
54
|
font-weight: var(--ml-tooltip-font-weight);
|
|
@@ -49,8 +61,8 @@ export const tooltipStyles = () => css `
|
|
|
49
61
|
opacity: 0;
|
|
50
62
|
transform: scale(0.95);
|
|
51
63
|
transition:
|
|
52
|
-
opacity var(--ml-tooltip-transition),
|
|
53
|
-
transform var(--ml-tooltip-transition);
|
|
64
|
+
opacity var(--ml-tooltip-transition-duration) var(--ml-tooltip-transition-easing),
|
|
65
|
+
transform var(--ml-tooltip-transition-duration) var(--ml-tooltip-transition-easing);
|
|
54
66
|
}
|
|
55
67
|
|
|
56
68
|
.ml-tooltip__content--visible {
|
|
@@ -62,7 +74,7 @@ export const tooltipStyles = () => css `
|
|
|
62
74
|
position: absolute;
|
|
63
75
|
width: var(--ml-tooltip-arrow-size);
|
|
64
76
|
height: var(--ml-tooltip-arrow-size);
|
|
65
|
-
background-color: var(--ml-tooltip-bg);
|
|
77
|
+
background-color: var(--ml-tooltip-bg, var(--ml-gray-900));
|
|
66
78
|
transform: rotate(45deg);
|
|
67
79
|
}
|
|
68
80
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.template.d.ts","sourceRoot":"","sources":["../../../../src/components/overlays/tooltip/tooltip.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,wBAAgB,eAAe,CAAC,CAAC,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"tooltip.template.d.ts","sourceRoot":"","sources":["../../../../src/components/overlays/tooltip/tooltip.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,wBAAgB,eAAe,CAAC,CAAC,EAAE,gBAAgB,6CA0BlD"}
|
|
@@ -6,12 +6,13 @@ export function tooltipTemplate(c) {
|
|
|
6
6
|
class="ml-tooltip__trigger"
|
|
7
7
|
@mouseenter=${c.show}
|
|
8
8
|
@mouseleave=${c.hide}
|
|
9
|
-
@
|
|
10
|
-
@
|
|
9
|
+
@focusin=${c.show}
|
|
10
|
+
@focusout=${c.hide}
|
|
11
11
|
>
|
|
12
12
|
<slot></slot>
|
|
13
13
|
</div>
|
|
14
14
|
<div
|
|
15
|
+
id=${c.tooltipID}
|
|
15
16
|
class=${classMap({
|
|
16
17
|
'ml-tooltip__content': true,
|
|
17
18
|
'ml-tooltip__content--visible': c.isVisible
|
|
@@ -33,13 +33,20 @@ export declare class LoginPageComponent implements IElementRef {
|
|
|
33
33
|
elementRef: HTMLElement;
|
|
34
34
|
/** Layout variant */
|
|
35
35
|
variant: 'centered' | 'split';
|
|
36
|
-
/** Page title */
|
|
37
|
-
|
|
36
|
+
/** Page title (attribute: page-title) */
|
|
37
|
+
pageTitle: string;
|
|
38
38
|
/** Page description */
|
|
39
39
|
description: string;
|
|
40
|
-
/**
|
|
40
|
+
/** @deprecated Use `pageTitle` (attribute `page-title`); `title` collides with the global HTML attribute. */
|
|
41
|
+
get title(): string;
|
|
42
|
+
set title(value: string);
|
|
43
|
+
/**
|
|
44
|
+
* Whether the header slot has content. The template no longer reads this at
|
|
45
|
+
* render time (it uses native slot fallback, which stays reactive on its
|
|
46
|
+
* own); this is a live query kept for imperative consumers.
|
|
47
|
+
*/
|
|
41
48
|
get hasHeaderSlot(): boolean;
|
|
42
|
-
/**
|
|
49
|
+
/** Whether the brand slot has content (live query for imperative consumers). */
|
|
43
50
|
get hasBrandSlot(): boolean;
|
|
44
51
|
}
|
|
45
52
|
//# sourceMappingURL=login-page.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-page.component.d.ts","sourceRoot":"","sources":["../../../../src/components/pages/auth/login-page.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"login-page.component.d.ts","sourceRoot":"","sources":["../../../../src/components/pages/auth/login-page.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAKpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,qBAMa,kBAAmB,YAAW,WAAW;IAC9C,UAAU,EAAG,WAAW,CAAC;IAEhC,qBAAqB;IACd,OAAO,EAAE,UAAU,GAAG,OAAO,CAAc;IAElD,yCAAyC;IAClC,SAAS,SAA4B;IAE5C,uBAAuB;IAChB,WAAW,SAA8C;IAEhE,6GAA6G;IAC7G,IAAW,KAAK,IAAI,MAAM,CAEzB;IACD,IAAW,KAAK,CAAC,KAAK,EAAE,MAAM,EAG7B;IAED;;;;OAIG;IACH,IAAW,aAAa,IAAI,OAAO,CAElC;IAED,gFAAgF;IAChF,IAAW,YAAY,IAAI,OAAO,CAEjC;CACD"}
|
|
@@ -7,6 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { MelodicComponent } from '@melodicdev/core';
|
|
8
8
|
import { loginPageTemplate } from './login-page.template.js';
|
|
9
9
|
import { loginPageStyles } from './login-page.styles.js';
|
|
10
|
+
import { warnDeprecatedTitleOnce } from '../../../functions/index.js';
|
|
10
11
|
/**
|
|
11
12
|
* ml-login-page - A full-page login component
|
|
12
13
|
*
|
|
@@ -41,16 +42,28 @@ let LoginPageComponent = class LoginPageComponent {
|
|
|
41
42
|
constructor() {
|
|
42
43
|
/** Layout variant */
|
|
43
44
|
this.variant = 'centered';
|
|
44
|
-
/** Page title */
|
|
45
|
-
this.
|
|
45
|
+
/** Page title (attribute: page-title) */
|
|
46
|
+
this.pageTitle = 'Log in to your account';
|
|
46
47
|
/** Page description */
|
|
47
48
|
this.description = 'Welcome back! Please enter your details.';
|
|
48
49
|
}
|
|
49
|
-
/**
|
|
50
|
+
/** @deprecated Use `pageTitle` (attribute `page-title`); `title` collides with the global HTML attribute. */
|
|
51
|
+
get title() {
|
|
52
|
+
return this.pageTitle;
|
|
53
|
+
}
|
|
54
|
+
set title(value) {
|
|
55
|
+
warnDeprecatedTitleOnce('ml-login-page', 'page-title');
|
|
56
|
+
this.pageTitle = value;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Whether the header slot has content. The template no longer reads this at
|
|
60
|
+
* render time (it uses native slot fallback, which stays reactive on its
|
|
61
|
+
* own); this is a live query kept for imperative consumers.
|
|
62
|
+
*/
|
|
50
63
|
get hasHeaderSlot() {
|
|
51
64
|
return this.elementRef?.querySelector('[slot="header"]') !== null;
|
|
52
65
|
}
|
|
53
|
-
/**
|
|
66
|
+
/** Whether the brand slot has content (live query for imperative consumers). */
|
|
54
67
|
get hasBrandSlot() {
|
|
55
68
|
return this.elementRef?.querySelector('[slot="brand"]') !== null;
|
|
56
69
|
}
|
|
@@ -60,7 +73,7 @@ LoginPageComponent = __decorate([
|
|
|
60
73
|
selector: 'ml-login-page',
|
|
61
74
|
template: loginPageTemplate,
|
|
62
75
|
styles: loginPageStyles,
|
|
63
|
-
attributes: ['variant', 'title', 'description']
|
|
76
|
+
attributes: ['variant', 'page-title', 'title', 'description']
|
|
64
77
|
})
|
|
65
78
|
], LoginPageComponent);
|
|
66
79
|
export { LoginPageComponent };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-page.template.d.ts","sourceRoot":"","sources":["../../../../src/components/pages/auth/login-page.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"login-page.template.d.ts","sourceRoot":"","sources":["../../../../src/components/pages/auth/login-page.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,kBAAkB,6CA2DtD"}
|
|
@@ -6,16 +6,15 @@ export function loginPageTemplate(c) {
|
|
|
6
6
|
<slot name="logo"></slot>
|
|
7
7
|
</div>
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
`)}
|
|
9
|
+
<div class="ml-auth__header">
|
|
10
|
+
<!-- Native slot fallback keeps header-slot presence reactive: content
|
|
11
|
+
assigned after mount projects and hides the default title, with no
|
|
12
|
+
render-time querySelector snapshot involved. -->
|
|
13
|
+
<slot name="header">
|
|
14
|
+
<h1 class="ml-auth__title">${c.pageTitle}</h1>
|
|
15
|
+
<p class="ml-auth__description">${c.description}</p>
|
|
16
|
+
</slot>
|
|
17
|
+
</div>
|
|
19
18
|
|
|
20
19
|
<div class="ml-auth__social">
|
|
21
20
|
<slot name="social"></slot>
|
|
@@ -32,13 +32,20 @@ export declare class SignupPageComponent implements IElementRef {
|
|
|
32
32
|
elementRef: HTMLElement;
|
|
33
33
|
/** Layout variant */
|
|
34
34
|
variant: 'centered' | 'split';
|
|
35
|
-
/** Page title */
|
|
36
|
-
|
|
35
|
+
/** Page title (attribute: page-title) */
|
|
36
|
+
pageTitle: string;
|
|
37
37
|
/** Page description */
|
|
38
38
|
description: string;
|
|
39
|
-
/**
|
|
39
|
+
/** @deprecated Use `pageTitle` (attribute `page-title`); `title` collides with the global HTML attribute. */
|
|
40
|
+
get title(): string;
|
|
41
|
+
set title(value: string);
|
|
42
|
+
/**
|
|
43
|
+
* Whether the header slot has content. The template no longer reads this at
|
|
44
|
+
* render time (it uses native slot fallback, which stays reactive on its
|
|
45
|
+
* own); this is a live query kept for imperative consumers.
|
|
46
|
+
*/
|
|
40
47
|
get hasHeaderSlot(): boolean;
|
|
41
|
-
/**
|
|
48
|
+
/** Whether the brand slot has content (live query for imperative consumers). */
|
|
42
49
|
get hasBrandSlot(): boolean;
|
|
43
50
|
}
|
|
44
51
|
//# sourceMappingURL=signup-page.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signup-page.component.d.ts","sourceRoot":"","sources":["../../../../src/components/pages/auth/signup-page.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"signup-page.component.d.ts","sourceRoot":"","sources":["../../../../src/components/pages/auth/signup-page.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAKpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,qBAMa,mBAAoB,YAAW,WAAW;IAC/C,UAAU,EAAG,WAAW,CAAC;IAEhC,qBAAqB;IACd,OAAO,EAAE,UAAU,GAAG,OAAO,CAAc;IAElD,yCAAyC;IAClC,SAAS,SAAuB;IAEvC,uBAAuB;IAChB,WAAW,SAA+B;IAEjD,6GAA6G;IAC7G,IAAW,KAAK,IAAI,MAAM,CAEzB;IACD,IAAW,KAAK,CAAC,KAAK,EAAE,MAAM,EAG7B;IAED;;;;OAIG;IACH,IAAW,aAAa,IAAI,OAAO,CAElC;IAED,gFAAgF;IAChF,IAAW,YAAY,IAAI,OAAO,CAEjC;CACD"}
|
|
@@ -7,6 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { MelodicComponent } from '@melodicdev/core';
|
|
8
8
|
import { signupPageTemplate } from './signup-page.template.js';
|
|
9
9
|
import { signupPageStyles } from './signup-page.styles.js';
|
|
10
|
+
import { warnDeprecatedTitleOnce } from '../../../functions/index.js';
|
|
10
11
|
/**
|
|
11
12
|
* ml-signup-page - A full-page signup/registration component
|
|
12
13
|
*
|
|
@@ -40,16 +41,28 @@ let SignupPageComponent = class SignupPageComponent {
|
|
|
40
41
|
constructor() {
|
|
41
42
|
/** Layout variant */
|
|
42
43
|
this.variant = 'centered';
|
|
43
|
-
/** Page title */
|
|
44
|
-
this.
|
|
44
|
+
/** Page title (attribute: page-title) */
|
|
45
|
+
this.pageTitle = 'Create an account';
|
|
45
46
|
/** Page description */
|
|
46
47
|
this.description = 'Start your journey today.';
|
|
47
48
|
}
|
|
48
|
-
/**
|
|
49
|
+
/** @deprecated Use `pageTitle` (attribute `page-title`); `title` collides with the global HTML attribute. */
|
|
50
|
+
get title() {
|
|
51
|
+
return this.pageTitle;
|
|
52
|
+
}
|
|
53
|
+
set title(value) {
|
|
54
|
+
warnDeprecatedTitleOnce('ml-signup-page', 'page-title');
|
|
55
|
+
this.pageTitle = value;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Whether the header slot has content. The template no longer reads this at
|
|
59
|
+
* render time (it uses native slot fallback, which stays reactive on its
|
|
60
|
+
* own); this is a live query kept for imperative consumers.
|
|
61
|
+
*/
|
|
49
62
|
get hasHeaderSlot() {
|
|
50
63
|
return this.elementRef?.querySelector('[slot="header"]') !== null;
|
|
51
64
|
}
|
|
52
|
-
/**
|
|
65
|
+
/** Whether the brand slot has content (live query for imperative consumers). */
|
|
53
66
|
get hasBrandSlot() {
|
|
54
67
|
return this.elementRef?.querySelector('[slot="brand"]') !== null;
|
|
55
68
|
}
|
|
@@ -59,7 +72,7 @@ SignupPageComponent = __decorate([
|
|
|
59
72
|
selector: 'ml-signup-page',
|
|
60
73
|
template: signupPageTemplate,
|
|
61
74
|
styles: signupPageStyles,
|
|
62
|
-
attributes: ['variant', 'title', 'description']
|
|
75
|
+
attributes: ['variant', 'page-title', 'title', 'description']
|
|
63
76
|
})
|
|
64
77
|
], SignupPageComponent);
|
|
65
78
|
export { SignupPageComponent };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signup-page.template.d.ts","sourceRoot":"","sources":["../../../../src/components/pages/auth/signup-page.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"signup-page.template.d.ts","sourceRoot":"","sources":["../../../../src/components/pages/auth/signup-page.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,mBAAmB,6CA2DxD"}
|
|
@@ -6,16 +6,15 @@ export function signupPageTemplate(c) {
|
|
|
6
6
|
<slot name="logo"></slot>
|
|
7
7
|
</div>
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
`)}
|
|
9
|
+
<div class="ml-auth__header">
|
|
10
|
+
<!-- Native slot fallback keeps header-slot presence reactive: content
|
|
11
|
+
assigned after mount projects and hides the default title, with no
|
|
12
|
+
render-time querySelector snapshot involved. -->
|
|
13
|
+
<slot name="header">
|
|
14
|
+
<h1 class="ml-auth__title">${c.pageTitle}</h1>
|
|
15
|
+
<p class="ml-auth__description">${c.description}</p>
|
|
16
|
+
</slot>
|
|
17
|
+
</div>
|
|
19
18
|
|
|
20
19
|
<div class="ml-auth__social">
|
|
21
20
|
<slot name="social"></slot>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IElementRef } from '@melodicdev/core';
|
|
1
|
+
import type { IElementRef, OnCreate, OnDestroy } from '@melodicdev/core';
|
|
2
2
|
export type DashboardLayout = 'default' | 'wide' | 'full';
|
|
3
3
|
/**
|
|
4
4
|
* ml-dashboard-page - Composite dashboard layout component
|
|
@@ -9,7 +9,7 @@ export type DashboardLayout = 'default' | 'wide' | 'full';
|
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* ```html
|
|
12
|
-
* <ml-dashboard-page title="Dashboard" description="Overview of your account">
|
|
12
|
+
* <ml-dashboard-page page-title="Dashboard" description="Overview of your account">
|
|
13
13
|
* <ml-sidebar slot="sidebar">...</ml-sidebar>
|
|
14
14
|
* <ml-button slot="header-actions" variant="primary">Create</ml-button>
|
|
15
15
|
* <ml-stat slot="metrics">...</ml-stat>
|
|
@@ -24,19 +24,26 @@ export type DashboardLayout = 'default' | 'wide' | 'full';
|
|
|
24
24
|
* @slot main - Primary content area (tables, charts)
|
|
25
25
|
* @slot aside - Secondary content (activity feed, notifications)
|
|
26
26
|
*/
|
|
27
|
-
export declare class DashboardPageComponent implements IElementRef {
|
|
27
|
+
export declare class DashboardPageComponent implements IElementRef, OnCreate, OnDestroy {
|
|
28
28
|
elementRef: HTMLElement;
|
|
29
|
-
/** Page title */
|
|
30
|
-
|
|
29
|
+
/** Page title (attribute: page-title) */
|
|
30
|
+
pageTitle: string;
|
|
31
31
|
/** Page description */
|
|
32
32
|
description: string;
|
|
33
|
+
/** @deprecated Use `pageTitle` (attribute `page-title`); `title` collides with the global HTML attribute. */
|
|
34
|
+
get title(): string;
|
|
35
|
+
set title(value: string);
|
|
33
36
|
/** Content layout variant */
|
|
34
37
|
layout: DashboardLayout;
|
|
35
|
-
/**
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
|
|
38
|
+
/** Whether the metrics slot has content (kept in sync via MutationObserver) */
|
|
39
|
+
hasMetrics: boolean;
|
|
40
|
+
/** Whether the aside slot has content (kept in sync via MutationObserver) */
|
|
41
|
+
hasAside: boolean;
|
|
42
|
+
/** Whether the header-actions slot has content (kept in sync via MutationObserver) */
|
|
43
|
+
hasHeaderActions: boolean;
|
|
44
|
+
private _slotObserver;
|
|
45
|
+
onCreate(): void;
|
|
46
|
+
onDestroy(): void;
|
|
47
|
+
private syncSlotFlags;
|
|
41
48
|
}
|
|
42
49
|
//# sourceMappingURL=dashboard-page.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-page.component.d.ts","sourceRoot":"","sources":["../../../../src/components/pages/dashboard/dashboard-page.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"dashboard-page.component.d.ts","sourceRoot":"","sources":["../../../../src/components/pages/dashboard/dashboard-page.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAKzE,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAMa,sBAAuB,YAAW,WAAW,EAAE,QAAQ,EAAE,SAAS;IACvE,UAAU,EAAG,WAAW,CAAC;IAEhC,yCAAyC;IAClC,SAAS,SAAM;IAEtB,uBAAuB;IAChB,WAAW,SAAM;IAExB,6GAA6G;IAC7G,IAAW,KAAK,IAAI,MAAM,CAEzB;IACD,IAAW,KAAK,CAAC,KAAK,EAAE,MAAM,EAG7B;IAED,6BAA6B;IACtB,MAAM,EAAE,eAAe,CAAa;IAE3C,+EAA+E;IACxE,UAAU,UAAS;IAE1B,6EAA6E;IACtE,QAAQ,UAAS;IAExB,sFAAsF;IAC/E,gBAAgB,UAAS;IAEhC,OAAO,CAAC,aAAa,CAAiC;IAE/C,QAAQ,IAAI,IAAI;IAgChB,SAAS,IAAI,IAAI;IAKxB,OAAO,CAAC,aAAa;CAKrB"}
|
|
@@ -7,6 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { MelodicComponent } from '@melodicdev/core';
|
|
8
8
|
import { dashboardPageTemplate } from './dashboard-page.template.js';
|
|
9
9
|
import { dashboardPageStyles } from './dashboard-page.styles.js';
|
|
10
|
+
import { warnDeprecatedTitleOnce } from '../../../functions/index.js';
|
|
10
11
|
/**
|
|
11
12
|
* ml-dashboard-page - Composite dashboard layout component
|
|
12
13
|
*
|
|
@@ -16,7 +17,7 @@ import { dashboardPageStyles } from './dashboard-page.styles.js';
|
|
|
16
17
|
*
|
|
17
18
|
* @example
|
|
18
19
|
* ```html
|
|
19
|
-
* <ml-dashboard-page title="Dashboard" description="Overview of your account">
|
|
20
|
+
* <ml-dashboard-page page-title="Dashboard" description="Overview of your account">
|
|
20
21
|
* <ml-sidebar slot="sidebar">...</ml-sidebar>
|
|
21
22
|
* <ml-button slot="header-actions" variant="primary">Create</ml-button>
|
|
22
23
|
* <ml-stat slot="metrics">...</ml-stat>
|
|
@@ -33,24 +34,65 @@ import { dashboardPageStyles } from './dashboard-page.styles.js';
|
|
|
33
34
|
*/
|
|
34
35
|
let DashboardPageComponent = class DashboardPageComponent {
|
|
35
36
|
constructor() {
|
|
36
|
-
/** Page title */
|
|
37
|
-
this.
|
|
37
|
+
/** Page title (attribute: page-title) */
|
|
38
|
+
this.pageTitle = '';
|
|
38
39
|
/** Page description */
|
|
39
40
|
this.description = '';
|
|
40
41
|
/** Content layout variant */
|
|
41
42
|
this.layout = 'default';
|
|
43
|
+
/** Whether the metrics slot has content (kept in sync via MutationObserver) */
|
|
44
|
+
this.hasMetrics = false;
|
|
45
|
+
/** Whether the aside slot has content (kept in sync via MutationObserver) */
|
|
46
|
+
this.hasAside = false;
|
|
47
|
+
/** Whether the header-actions slot has content (kept in sync via MutationObserver) */
|
|
48
|
+
this.hasHeaderActions = false;
|
|
49
|
+
this._slotObserver = null;
|
|
42
50
|
}
|
|
43
|
-
/**
|
|
44
|
-
get
|
|
45
|
-
return this.
|
|
51
|
+
/** @deprecated Use `pageTitle` (attribute `page-title`); `title` collides with the global HTML attribute. */
|
|
52
|
+
get title() {
|
|
53
|
+
return this.pageTitle;
|
|
46
54
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
55
|
+
set title(value) {
|
|
56
|
+
warnDeprecatedTitleOnce('ml-dashboard-page', 'page-title');
|
|
57
|
+
this.pageTitle = value;
|
|
50
58
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
59
|
+
onCreate() {
|
|
60
|
+
// Slot presence must be reactive so content added or removed after mount
|
|
61
|
+
// projects correctly (same bug class fixed with slotchange in
|
|
62
|
+
// profile-card/page-header). The slotchange pattern cannot be used here:
|
|
63
|
+
// these shadow slots are conditionally rendered (chicken-and-egg — the
|
|
64
|
+
// slot that would fire slotchange only exists once the flag is already
|
|
65
|
+
// true), and the header-actions slot is chained into ml-page-header's
|
|
66
|
+
// actions slot, so rendering it unconditionally would make page-header
|
|
67
|
+
// consider its actions section non-empty. Watch the light DOM instead.
|
|
68
|
+
// Only direct children participate in slot projection, but attribute
|
|
69
|
+
// mutations on children are only observable with subtree:true — so
|
|
70
|
+
// observe the subtree and filter to the mutations that can actually
|
|
71
|
+
// change projection: child-list changes on the host itself, or a
|
|
72
|
+
// `slot` attribute change on a direct child. Deep mutations in slotted
|
|
73
|
+
// content (e.g. rows changing inside a slotted table) are ignored.
|
|
74
|
+
this._slotObserver = new MutationObserver((mutations) => {
|
|
75
|
+
const relevant = mutations.some((m) => m.type === 'childList' ? m.target === this.elementRef : m.target.parentNode === this.elementRef);
|
|
76
|
+
if (relevant) {
|
|
77
|
+
this.syncSlotFlags();
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
this._slotObserver.observe(this.elementRef, {
|
|
81
|
+
childList: true,
|
|
82
|
+
subtree: true,
|
|
83
|
+
attributes: true,
|
|
84
|
+
attributeFilter: ['slot']
|
|
85
|
+
});
|
|
86
|
+
this.syncSlotFlags();
|
|
87
|
+
}
|
|
88
|
+
onDestroy() {
|
|
89
|
+
this._slotObserver?.disconnect();
|
|
90
|
+
this._slotObserver = null;
|
|
91
|
+
}
|
|
92
|
+
syncSlotFlags() {
|
|
93
|
+
this.hasMetrics = this.elementRef.querySelector(':scope > [slot="metrics"]') !== null;
|
|
94
|
+
this.hasAside = this.elementRef.querySelector(':scope > [slot="aside"]') !== null;
|
|
95
|
+
this.hasHeaderActions = this.elementRef.querySelector(':scope > [slot="header-actions"]') !== null;
|
|
54
96
|
}
|
|
55
97
|
};
|
|
56
98
|
DashboardPageComponent = __decorate([
|
|
@@ -58,7 +100,7 @@ DashboardPageComponent = __decorate([
|
|
|
58
100
|
selector: 'ml-dashboard-page',
|
|
59
101
|
template: dashboardPageTemplate,
|
|
60
102
|
styles: dashboardPageStyles,
|
|
61
|
-
attributes: ['title', 'description', 'layout']
|
|
103
|
+
attributes: ['page-title', 'title', 'description', 'layout']
|
|
62
104
|
})
|
|
63
105
|
], DashboardPageComponent);
|
|
64
106
|
export { DashboardPageComponent };
|
|
@@ -20,12 +20,12 @@ export type SidebarPosition = 'left' | 'right';
|
|
|
20
20
|
*/
|
|
21
21
|
export declare class AppShellComponent implements IElementRef, OnCreate, OnDestroy {
|
|
22
22
|
elementRef: HTMLElement;
|
|
23
|
-
/** Position of the sidebar: 'left' or 'right' */
|
|
24
|
-
|
|
25
|
-
/** Whether the sidebar is collapsed */
|
|
26
|
-
|
|
27
|
-
/** Whether the header is fixed/sticky */
|
|
28
|
-
|
|
23
|
+
/** Position of the sidebar: 'left' or 'right' (attribute: sidebar-position) */
|
|
24
|
+
sidebarPosition: SidebarPosition;
|
|
25
|
+
/** Whether the sidebar is collapsed (attribute: sidebar-collapsed) */
|
|
26
|
+
sidebarCollapsed: boolean;
|
|
27
|
+
/** Whether the header is fixed/sticky (attribute: header-fixed) */
|
|
28
|
+
headerFixed: boolean;
|
|
29
29
|
/** Whether the viewport is mobile-sized (<768px) */
|
|
30
30
|
mobile: boolean;
|
|
31
31
|
/** Whether the mobile sidebar drawer is open */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-shell.component.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/app-shell/app-shell.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"app-shell.component.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/app-shell/app-shell.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAKzE,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,OAAO,CAAC;AAE/C;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAMa,iBAAkB,YAAW,WAAW,EAAE,QAAQ,EAAE,SAAS;IAClE,UAAU,EAAG,WAAW,CAAC;IAEhC,+EAA+E;IACxE,eAAe,EAAE,eAAe,CAAU;IAEjD,sEAAsE;IAC/D,gBAAgB,UAAS;IAEhC,mEAAmE;IAC5D,WAAW,UAAS;IAE3B,oDAAoD;IAC7C,MAAM,UAAS;IAEtB,gDAAgD;IACzC,UAAU,UAAS;IAE1B,0CAA0C;IAC1C,OAAO,CAAC,WAAW,CAA+B;IAClD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAiC;IAE7D,QAAQ,IAAI,IAAI;IAMhB,SAAS,IAAI,IAAI;IAIxB,mCAAmC;IAC5B,mBAAmB,QAAO,IAAI,CAEnC;IAEF,2BAA2B;IACpB,kBAAkB,QAAO,IAAI,CAElC;IAEF,OAAO,CAAC,aAAa;CAOrB"}
|
|
@@ -7,6 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { MelodicComponent } from '@melodicdev/core';
|
|
8
8
|
import { appShellTemplate } from './app-shell.template.js';
|
|
9
9
|
import { appShellStyles } from './app-shell.styles.js';
|
|
10
|
+
import { defineLegacyAliases } from '../../../functions/index.js';
|
|
10
11
|
/**
|
|
11
12
|
* ml-app-shell - Application shell layout component
|
|
12
13
|
*
|
|
@@ -27,12 +28,12 @@ import { appShellStyles } from './app-shell.styles.js';
|
|
|
27
28
|
*/
|
|
28
29
|
let AppShellComponent = class AppShellComponent {
|
|
29
30
|
constructor() {
|
|
30
|
-
/** Position of the sidebar: 'left' or 'right' */
|
|
31
|
-
this
|
|
32
|
-
/** Whether the sidebar is collapsed */
|
|
33
|
-
this
|
|
34
|
-
/** Whether the header is fixed/sticky */
|
|
35
|
-
this
|
|
31
|
+
/** Position of the sidebar: 'left' or 'right' (attribute: sidebar-position) */
|
|
32
|
+
this.sidebarPosition = 'left';
|
|
33
|
+
/** Whether the sidebar is collapsed (attribute: sidebar-collapsed) */
|
|
34
|
+
this.sidebarCollapsed = false;
|
|
35
|
+
/** Whether the header is fixed/sticky (attribute: header-fixed) */
|
|
36
|
+
this.headerFixed = false;
|
|
36
37
|
/** Whether the viewport is mobile-sized (<768px) */
|
|
37
38
|
this.mobile = false;
|
|
38
39
|
/** Whether the mobile sidebar drawer is open */
|
|
@@ -74,3 +75,10 @@ AppShellComponent = __decorate([
|
|
|
74
75
|
})
|
|
75
76
|
], AppShellComponent);
|
|
76
77
|
export { AppShellComponent };
|
|
78
|
+
// Deprecated quoted kebab-case property aliases (warn once on first write;
|
|
79
|
+
// removed in the next major release).
|
|
80
|
+
defineLegacyAliases(AppShellComponent.prototype, 'ml-app-shell', {
|
|
81
|
+
'sidebar-position': 'sidebarPosition',
|
|
82
|
+
'sidebar-collapsed': 'sidebarCollapsed',
|
|
83
|
+
'header-fixed': 'headerFixed'
|
|
84
|
+
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { html, classMap, when } from '@melodicdev/core';
|
|
2
2
|
export function appShellTemplate(c) {
|
|
3
|
-
const sidebarRight = c
|
|
4
|
-
const collapsed = c
|
|
5
|
-
const headerFixed = c
|
|
3
|
+
const sidebarRight = c.sidebarPosition === 'right';
|
|
4
|
+
const collapsed = c.sidebarCollapsed;
|
|
5
|
+
const headerFixed = c.headerFixed;
|
|
6
6
|
const mobileOpen = c.mobileOpen;
|
|
7
7
|
const isMobile = c.mobile;
|
|
8
8
|
return html `
|
|
@@ -18,7 +18,7 @@ export type HeroBackground = 'none' | 'subtle' | 'gradient';
|
|
|
18
18
|
* ```
|
|
19
19
|
*
|
|
20
20
|
* @slot eyebrow - Small text/badge above the title
|
|
21
|
-
* @slot title - Main headline (or use `title`
|
|
21
|
+
* @slot title - Main headline (or use `hero-title` attribute)
|
|
22
22
|
* @slot description - Supporting text (or use `description` property)
|
|
23
23
|
* @slot actions - CTA buttons
|
|
24
24
|
* @slot media - Image, video, or illustration
|
|
@@ -32,9 +32,12 @@ export declare class HeroSectionComponent implements IElementRef {
|
|
|
32
32
|
size: HeroSize;
|
|
33
33
|
/** Background style */
|
|
34
34
|
background: HeroBackground;
|
|
35
|
-
/** Headline text (alternative to title slot) */
|
|
36
|
-
|
|
35
|
+
/** Headline text (attribute: hero-title; alternative to title slot) */
|
|
36
|
+
heroTitle: string;
|
|
37
37
|
/** Supporting text (alternative to description slot) */
|
|
38
38
|
description: string;
|
|
39
|
+
/** @deprecated Use `heroTitle` (attribute `hero-title`); `title` collides with the global HTML attribute. */
|
|
40
|
+
get title(): string;
|
|
41
|
+
set title(value: string);
|
|
39
42
|
}
|
|
40
43
|
//# sourceMappingURL=hero-section.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hero-section.component.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/hero/hero-section.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"hero-section.component.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/hero/hero-section.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAKpD,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,OAAO,GAAG,eAAe,CAAC;AACjE,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC1C,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAMa,oBAAqB,YAAW,WAAW;IAChD,UAAU,EAAG,WAAW,CAAC;IAEhC,qBAAqB;IACd,OAAO,EAAE,WAAW,CAAc;IAEzC,2CAA2C;IACpC,IAAI,EAAE,QAAQ,CAAQ;IAE7B,uBAAuB;IAChB,UAAU,EAAE,cAAc,CAAU;IAE3C,uEAAuE;IAChE,SAAS,SAAM;IAEtB,wDAAwD;IACjD,WAAW,SAAM;IAExB,6GAA6G;IAC7G,IAAW,KAAK,IAAI,MAAM,CAEzB;IACD,IAAW,KAAK,CAAC,KAAK,EAAE,MAAM,EAG7B;CACD"}
|