@slotted/angular 0.1.0-beta.2 → 0.1.0-beta.20
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/docs/AGENTS.snippet.md +2 -0
- package/docs/action-bar.json +5 -4
- package/docs/action-bar.md +4 -4
- package/docs/action-sheet.json +391 -64
- package/docs/action-sheet.md +259 -0
- package/docs/alert.json +22 -5
- package/docs/alert.md +16 -5
- package/docs/app-shell.examples.md +1 -1
- package/docs/app-shell.json +24 -7
- package/docs/app-shell.md +5 -3
- package/docs/avatar.json +22 -1
- package/docs/avatar.md +5 -3
- package/docs/badge.json +7 -1
- package/docs/badge.md +3 -3
- package/docs/button-group.json +2 -0
- package/docs/button-group.md +1 -1
- package/docs/button.examples.md +15 -0
- package/docs/button.json +165 -11
- package/docs/button.md +34 -6
- package/docs/calendar.json +27 -2
- package/docs/calendar.md +6 -3
- package/docs/cascader.json +1 -0
- package/docs/cascader.md +1 -1
- package/docs/chart.examples.md +1 -1
- package/docs/chart.json +10 -1
- package/docs/chart.md +3 -2
- package/docs/code-block.json +92 -92
- package/docs/code-block.md +69 -69
- package/docs/combobox.json +2 -0
- package/docs/combobox.md +1 -1
- package/docs/command-palette.json +1 -0
- package/docs/command-palette.md +1 -1
- package/docs/currency-field.json +40 -1
- package/docs/currency-field.md +5 -1
- package/docs/dashboard-grid.json +31 -9
- package/docs/dashboard-grid.md +15 -6
- package/docs/data-grid.examples.md +2 -2
- package/docs/data-grid.json +34 -8
- package/docs/data-grid.md +2 -1
- package/docs/data-grid.props.md +6 -4
- package/docs/data-list.json +2 -1
- package/docs/data-list.md +1 -1
- package/docs/date-field.json +9 -1
- package/docs/date-field.md +3 -2
- package/docs/date-picker.examples.md +36 -0
- package/docs/date-picker.json +21 -5
- package/docs/date-picker.md +6 -5
- package/docs/datetime-field.json +1 -0
- package/docs/datetime-field.md +1 -1
- package/docs/description-list.json +9 -1
- package/docs/description-list.md +2 -1
- package/docs/detail-panel.json +4 -2
- package/docs/detail-panel.md +8 -3
- package/docs/dialog.examples.md +158 -136
- package/docs/dialog.json +36 -11
- package/docs/dialog.md +4 -2
- package/docs/dialog.props.md +1 -1
- package/docs/drawer.examples.md +1 -1
- package/docs/drawer.json +29 -10
- package/docs/drawer.md +9 -7
- package/docs/entity-picker.json +20 -4
- package/docs/entity-picker.md +8 -6
- package/docs/event-calendar.md +2 -2
- package/docs/filter-bar.json +118 -118
- package/docs/filter-bar.md +79 -79
- package/docs/form.json +2 -1
- package/docs/form.md +1 -1
- package/docs/guidelines/README.md +2 -2
- package/docs/guidelines/async-feedback.md +25 -4
- package/docs/guidelines/composition.md +33 -7
- package/docs/guidelines/errors-and-conflicts.md +7 -6
- package/docs/guidelines/forms.md +10 -0
- package/docs/guidelines/index.md +16 -4
- package/docs/guidelines/layout-alignment.md +19 -9
- package/docs/guidelines/list-pages.md +44 -3
- package/docs/guidelines/overviews.md +31 -1
- package/docs/guidelines/own-elements.md +1 -1
- package/docs/guidelines/reading-permissions.md +2 -2
- package/docs/guidelines/reports.md +1 -1
- package/docs/icon.json +3 -1
- package/docs/icon.md +3 -3
- package/docs/index.md +2 -2
- package/docs/inline-message.json +20 -7
- package/docs/inline-message.md +11 -9
- package/docs/kbd.json +3 -0
- package/docs/kbd.md +1 -1
- package/docs/link.json +16 -0
- package/docs/link.md +3 -1
- package/docs/list-item.json +19 -3
- package/docs/list-item.md +19 -16
- package/docs/list.json +19 -1
- package/docs/list.md +3 -1
- package/docs/markdown.json +86 -79
- package/docs/markdown.md +66 -65
- package/docs/menu.json +13 -0
- package/docs/menu.md +3 -1
- package/docs/message-scroller.json +1 -1
- package/docs/message.json +7 -1
- package/docs/message.md +3 -3
- package/docs/multi-select.json +1 -0
- package/docs/multi-select.md +1 -1
- package/docs/notification-center.json +4 -0
- package/docs/notification-center.md +2 -2
- package/docs/number-field.json +1 -0
- package/docs/number-field.md +1 -1
- package/docs/otp-input.json +1 -0
- package/docs/otp-input.md +1 -1
- package/docs/page-header.json +22 -5
- package/docs/page-header.md +6 -4
- package/docs/page.json +4 -2
- package/docs/page.md +3 -2
- package/docs/popover.json +2 -1
- package/docs/popover.md +1 -1
- package/docs/progress-indicator.json +3 -1
- package/docs/progress-indicator.md +3 -3
- package/docs/prompt-composer.json +50 -3
- package/docs/prompt-composer.md +8 -2
- package/docs/rating.json +5 -3
- package/docs/rating.md +6 -6
- package/docs/scroll-area.json +266 -64
- package/docs/scroll-area.md +188 -0
- package/docs/section.json +38 -16
- package/docs/section.md +23 -20
- package/docs/segmented-control.json +36 -12
- package/docs/segmented-control.md +17 -1
- package/docs/select.json +2 -0
- package/docs/select.md +1 -1
- package/docs/side-navigation.json +1 -0
- package/docs/side-navigation.md +1 -1
- package/docs/skills/build-own-element/SKILL.md +6 -6
- package/docs/skills/compose-screen/SKILL.md +53 -17
- package/docs/skills/review-screen/SKILL.md +28 -17
- package/docs/skills/theme-app/SKILL.md +53 -15
- package/docs/skills/waiting-states/SKILL.md +14 -10
- package/docs/sparkline.json +5 -2
- package/docs/sparkline.md +4 -4
- package/docs/split-button.json +4 -1
- package/docs/split-button.md +3 -3
- package/docs/splitter.json +279 -64
- package/docs/splitter.md +215 -0
- package/docs/stat-card.json +11 -5
- package/docs/stat-card.md +6 -6
- package/docs/status-indicator.json +16 -5
- package/docs/status-indicator.md +3 -1
- package/docs/table-of-contents.json +2 -1
- package/docs/table-of-contents.md +2 -2
- package/docs/table.examples.md +3 -3
- package/docs/table.json +85 -3
- package/docs/table.md +12 -1
- package/docs/tabs.json +16 -3
- package/docs/tabs.md +3 -2
- package/docs/tag.json +14 -4
- package/docs/tag.md +6 -6
- package/docs/tags-input.json +29 -2
- package/docs/tags-input.md +4 -1
- package/docs/text-field.json +2 -1
- package/docs/text-field.md +2 -2
- package/docs/textarea.json +1 -0
- package/docs/textarea.md +1 -1
- package/docs/time-field.json +1 -0
- package/docs/time-field.md +1 -1
- package/docs/timeline.json +138 -132
- package/docs/timeline.md +125 -125
- package/docs/toast.json +8 -1
- package/docs/toast.md +3 -3
- package/docs/toggle-group.json +14 -3
- package/docs/toggle-group.md +3 -3
- package/docs/toggle.json +12 -3
- package/docs/toggle.md +3 -3
- package/docs/tokens.md +54 -11
- package/docs/toolbar.json +1 -1
- package/docs/toolbar.md +1 -1
- package/docs/tooltip.json +1 -0
- package/docs/tooltip.md +1 -1
- package/docs/tour.json +1 -1
- package/docs/typography.json +4 -2
- package/docs/typography.md +5 -5
- package/fesm2022/slotted-angular-accordion.mjs +4 -2
- package/fesm2022/slotted-angular-accordion.mjs.map +1 -1
- package/fesm2022/slotted-angular-action-bar.mjs +27 -12
- package/fesm2022/slotted-angular-action-bar.mjs.map +1 -1
- package/fesm2022/slotted-angular-action-sheet.mjs +48 -29
- package/fesm2022/slotted-angular-action-sheet.mjs.map +1 -1
- package/fesm2022/slotted-angular-alert.mjs +29 -16
- package/fesm2022/slotted-angular-alert.mjs.map +1 -1
- package/fesm2022/slotted-angular-app-shell.mjs +124 -63
- package/fesm2022/slotted-angular-app-shell.mjs.map +1 -1
- package/fesm2022/slotted-angular-aspect-ratio.mjs +4 -2
- package/fesm2022/slotted-angular-aspect-ratio.mjs.map +1 -1
- package/fesm2022/slotted-angular-attachment.mjs +33 -22
- package/fesm2022/slotted-angular-attachment.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar-group.mjs +9 -6
- package/fesm2022/slotted-angular-avatar-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar.mjs +14 -7
- package/fesm2022/slotted-angular-avatar.mjs.map +1 -1
- package/fesm2022/slotted-angular-badge.mjs +14 -10
- package/fesm2022/slotted-angular-badge.mjs.map +1 -1
- package/fesm2022/slotted-angular-breadcrumb.mjs +26 -18
- package/fesm2022/slotted-angular-breadcrumb.mjs.map +1 -1
- package/fesm2022/slotted-angular-button-group.mjs +7 -4
- package/fesm2022/slotted-angular-button-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-button.mjs +197 -30
- package/fesm2022/slotted-angular-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-calendar.mjs +263 -65
- package/fesm2022/slotted-angular-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-card.mjs +18 -16
- package/fesm2022/slotted-angular-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-carousel.mjs +22 -11
- package/fesm2022/slotted-angular-carousel.mjs.map +1 -1
- package/fesm2022/slotted-angular-cascader.mjs +180 -66
- package/fesm2022/slotted-angular-cascader.mjs.map +1 -1
- package/fesm2022/slotted-angular-chart.mjs +59 -20
- package/fesm2022/slotted-angular-chart.mjs.map +1 -1
- package/fesm2022/slotted-angular-checkbox-group.mjs +5 -3
- package/fesm2022/slotted-angular-checkbox-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-checkbox.mjs +13 -8
- package/fesm2022/slotted-angular-checkbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-code-block.mjs +29 -15
- package/fesm2022/slotted-angular-code-block.mjs.map +1 -1
- package/fesm2022/slotted-angular-collapsible.mjs +20 -15
- package/fesm2022/slotted-angular-collapsible.mjs.map +1 -1
- package/fesm2022/slotted-angular-color-picker.mjs +77 -22
- package/fesm2022/slotted-angular-color-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-column-manager.mjs +68 -31
- package/fesm2022/slotted-angular-column-manager.mjs.map +1 -1
- package/fesm2022/slotted-angular-combobox.mjs +108 -35
- package/fesm2022/slotted-angular-combobox.mjs.map +1 -1
- package/fesm2022/slotted-angular-command-palette.mjs +162 -54
- package/fesm2022/slotted-angular-command-palette.mjs.map +1 -1
- package/fesm2022/slotted-angular-container.mjs +6 -4
- package/fesm2022/slotted-angular-container.mjs.map +1 -1
- package/fesm2022/slotted-angular-context-menu.mjs +5 -4
- package/fesm2022/slotted-angular-context-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-currency-field.mjs +149 -32
- package/fesm2022/slotted-angular-currency-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-dashboard-grid.mjs +295 -68
- package/fesm2022/slotted-angular-dashboard-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-grid.mjs +461 -129
- package/fesm2022/slotted-angular-data-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-list.mjs +83 -50
- package/fesm2022/slotted-angular-data-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-field.mjs +74 -25
- package/fesm2022/slotted-angular-date-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-picker.mjs +112 -40
- package/fesm2022/slotted-angular-date-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-range-picker.mjs +45 -22
- package/fesm2022/slotted-angular-date-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-field.mjs +48 -16
- package/fesm2022/slotted-angular-datetime-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-picker.mjs +41 -29
- package/fesm2022/slotted-angular-datetime-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-range-picker.mjs +115 -48
- package/fesm2022/slotted-angular-datetime-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-description-list.mjs +44 -21
- package/fesm2022/slotted-angular-description-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-detail-panel.mjs +48 -30
- package/fesm2022/slotted-angular-detail-panel.mjs.map +1 -1
- package/fesm2022/slotted-angular-dialog.mjs +79 -37
- package/fesm2022/slotted-angular-dialog.mjs.map +1 -1
- package/fesm2022/slotted-angular-divider.mjs +7 -5
- package/fesm2022/slotted-angular-divider.mjs.map +1 -1
- package/fesm2022/slotted-angular-drawer.mjs +235 -104
- package/fesm2022/slotted-angular-drawer.mjs.map +1 -1
- package/fesm2022/slotted-angular-entity-picker.mjs +474 -75
- package/fesm2022/slotted-angular-entity-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-event-calendar.mjs +259 -102
- package/fesm2022/slotted-angular-event-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-field-group.mjs +14 -7
- package/fesm2022/slotted-angular-field-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-field.mjs +35 -15
- package/fesm2022/slotted-angular-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-filter-bar.mjs +118 -51
- package/fesm2022/slotted-angular-filter-bar.mjs.map +1 -1
- package/fesm2022/slotted-angular-form.mjs +18 -10
- package/fesm2022/slotted-angular-form.mjs.map +1 -1
- package/fesm2022/slotted-angular-fullscreen.mjs +14 -8
- package/fesm2022/slotted-angular-fullscreen.mjs.map +1 -1
- package/fesm2022/slotted-angular-grid.mjs +4 -2
- package/fesm2022/slotted-angular-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-highlight.mjs +5 -3
- package/fesm2022/slotted-angular-highlight.mjs.map +1 -1
- package/fesm2022/slotted-angular-hover-card.mjs +5 -4
- package/fesm2022/slotted-angular-hover-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-icon.mjs +188 -87
- package/fesm2022/slotted-angular-icon.mjs.map +1 -1
- package/fesm2022/slotted-angular-image.mjs +13 -10
- package/fesm2022/slotted-angular-image.mjs.map +1 -1
- package/fesm2022/slotted-angular-import-export-center.mjs +175 -99
- package/fesm2022/slotted-angular-import-export-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline-message.mjs +94 -19
- package/fesm2022/slotted-angular-inline-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline.mjs +4 -2
- package/fesm2022/slotted-angular-inline.mjs.map +1 -1
- package/fesm2022/slotted-angular-kbd.mjs +11 -7
- package/fesm2022/slotted-angular-kbd.mjs.map +1 -1
- package/fesm2022/slotted-angular-link.mjs +13 -4
- package/fesm2022/slotted-angular-link.mjs.map +1 -1
- package/fesm2022/slotted-angular-list-item.mjs +63 -23
- package/fesm2022/slotted-angular-list-item.mjs.map +1 -1
- package/fesm2022/slotted-angular-list.mjs +37 -22
- package/fesm2022/slotted-angular-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-listbox.mjs +39 -21
- package/fesm2022/slotted-angular-listbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-loading-overlay.mjs +59 -22
- package/fesm2022/slotted-angular-loading-overlay.mjs.map +1 -1
- package/fesm2022/slotted-angular-markdown.mjs +57 -31
- package/fesm2022/slotted-angular-markdown.mjs.map +1 -1
- package/fesm2022/slotted-angular-menu.mjs +51 -29
- package/fesm2022/slotted-angular-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-menubar.mjs +6 -3
- package/fesm2022/slotted-angular-menubar.mjs.map +1 -1
- package/fesm2022/slotted-angular-message-scroller.mjs +34 -15
- package/fesm2022/slotted-angular-message-scroller.mjs.map +1 -1
- package/fesm2022/slotted-angular-message.mjs +119 -51
- package/fesm2022/slotted-angular-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-multi-select.mjs +163 -60
- package/fesm2022/slotted-angular-multi-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-navigation-menu.mjs +34 -26
- package/fesm2022/slotted-angular-navigation-menu.mjs.map +1 -1
- package/fesm2022/slotted-angular-notification-center.mjs +108 -65
- package/fesm2022/slotted-angular-notification-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-number-field.mjs +23 -11
- package/fesm2022/slotted-angular-number-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-otp-input.mjs +13 -8
- package/fesm2022/slotted-angular-otp-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-page-header.mjs +90 -48
- package/fesm2022/slotted-angular-page-header.mjs.map +1 -1
- package/fesm2022/slotted-angular-page.mjs +60 -12
- package/fesm2022/slotted-angular-page.mjs.map +1 -1
- package/fesm2022/slotted-angular-pagination.mjs +35 -22
- package/fesm2022/slotted-angular-pagination.mjs.map +1 -1
- package/fesm2022/slotted-angular-popover.mjs +32 -19
- package/fesm2022/slotted-angular-popover.mjs.map +1 -1
- package/fesm2022/slotted-angular-progress-indicator.mjs +236 -52
- package/fesm2022/slotted-angular-progress-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-prompt-composer.mjs +132 -22
- package/fesm2022/slotted-angular-prompt-composer.mjs.map +1 -1
- package/fesm2022/slotted-angular-prose.mjs +14 -11
- package/fesm2022/slotted-angular-prose.mjs.map +1 -1
- package/fesm2022/slotted-angular-radio-group.mjs +15 -9
- package/fesm2022/slotted-angular-radio-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-rating.mjs +138 -82
- package/fesm2022/slotted-angular-rating.mjs.map +1 -1
- package/fesm2022/slotted-angular-result-state.mjs +16 -12
- package/fesm2022/slotted-angular-result-state.mjs.map +1 -1
- package/fesm2022/slotted-angular-saved-views.mjs +43 -16
- package/fesm2022/slotted-angular-saved-views.mjs.map +1 -1
- package/fesm2022/slotted-angular-scroll-area.mjs +13 -5
- package/fesm2022/slotted-angular-scroll-area.mjs.map +1 -1
- package/fesm2022/slotted-angular-section.mjs +81 -19
- package/fesm2022/slotted-angular-section.mjs.map +1 -1
- package/fesm2022/slotted-angular-segmented-control.mjs +37 -11
- package/fesm2022/slotted-angular-segmented-control.mjs.map +1 -1
- package/fesm2022/slotted-angular-select.mjs +189 -69
- package/fesm2022/slotted-angular-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-side-navigation.mjs +46 -35
- package/fesm2022/slotted-angular-side-navigation.mjs.map +1 -1
- package/fesm2022/slotted-angular-skeleton.mjs +32 -16
- package/fesm2022/slotted-angular-skeleton.mjs.map +1 -1
- package/fesm2022/slotted-angular-slider.mjs +31 -11
- package/fesm2022/slotted-angular-slider.mjs.map +1 -1
- package/fesm2022/slotted-angular-sparkline.mjs +41 -14
- package/fesm2022/slotted-angular-sparkline.mjs.map +1 -1
- package/fesm2022/slotted-angular-split-button.mjs +37 -11
- package/fesm2022/slotted-angular-split-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-splitter.mjs +11 -9
- package/fesm2022/slotted-angular-splitter.mjs.map +1 -1
- package/fesm2022/slotted-angular-stack.mjs +4 -2
- package/fesm2022/slotted-angular-stack.mjs.map +1 -1
- package/fesm2022/slotted-angular-stat-card.mjs +69 -31
- package/fesm2022/slotted-angular-stat-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-status-indicator.mjs +50 -19
- package/fesm2022/slotted-angular-status-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-stepper.mjs +40 -15
- package/fesm2022/slotted-angular-stepper.mjs.map +1 -1
- package/fesm2022/slotted-angular-switch.mjs +15 -10
- package/fesm2022/slotted-angular-switch.mjs.map +1 -1
- package/fesm2022/slotted-angular-table-of-contents.mjs +29 -21
- package/fesm2022/slotted-angular-table-of-contents.mjs.map +1 -1
- package/fesm2022/slotted-angular-table.mjs +241 -71
- package/fesm2022/slotted-angular-table.mjs.map +1 -1
- package/fesm2022/slotted-angular-tabs.mjs +42 -18
- package/fesm2022/slotted-angular-tabs.mjs.map +1 -1
- package/fesm2022/slotted-angular-tag.mjs +19 -12
- package/fesm2022/slotted-angular-tag.mjs.map +1 -1
- package/fesm2022/slotted-angular-tags-input.mjs +253 -28
- package/fesm2022/slotted-angular-tags-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-text-field.mjs +55 -15
- package/fesm2022/slotted-angular-text-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-textarea.mjs +5 -3
- package/fesm2022/slotted-angular-textarea.mjs.map +1 -1
- package/fesm2022/slotted-angular-theme.mjs +6 -3
- package/fesm2022/slotted-angular-theme.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-field.mjs +48 -14
- package/fesm2022/slotted-angular-time-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-picker.mjs +32 -20
- package/fesm2022/slotted-angular-time-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-range-picker.mjs +113 -46
- package/fesm2022/slotted-angular-time-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-timeline.mjs +147 -64
- package/fesm2022/slotted-angular-timeline.mjs.map +1 -1
- package/fesm2022/slotted-angular-toast.mjs +48 -36
- package/fesm2022/slotted-angular-toast.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle-group.mjs +25 -8
- package/fesm2022/slotted-angular-toggle-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle.mjs +9 -4
- package/fesm2022/slotted-angular-toggle.mjs.map +1 -1
- package/fesm2022/slotted-angular-toolbar.mjs +27 -12
- package/fesm2022/slotted-angular-toolbar.mjs.map +1 -1
- package/fesm2022/slotted-angular-tooltip.mjs +15 -6
- package/fesm2022/slotted-angular-tooltip.mjs.map +1 -1
- package/fesm2022/slotted-angular-top-navigation.mjs +64 -44
- package/fesm2022/slotted-angular-top-navigation.mjs.map +1 -1
- package/fesm2022/slotted-angular-tour.mjs +47 -22
- package/fesm2022/slotted-angular-tour.mjs.map +1 -1
- package/fesm2022/slotted-angular-transfer.mjs +69 -30
- package/fesm2022/slotted-angular-transfer.mjs.map +1 -1
- package/fesm2022/slotted-angular-tree.mjs +80 -26
- package/fesm2022/slotted-angular-tree.mjs.map +1 -1
- package/fesm2022/slotted-angular-typography.mjs +8 -4
- package/fesm2022/slotted-angular-typography.mjs.map +1 -1
- package/fesm2022/slotted-angular-upload.mjs +125 -57
- package/fesm2022/slotted-angular-upload.mjs.map +1 -1
- package/fesm2022/slotted-angular-visually-hidden.mjs +4 -2
- package/fesm2022/slotted-angular-visually-hidden.mjs.map +1 -1
- package/fesm2022/slotted-angular-wizard.mjs +163 -65
- package/fesm2022/slotted-angular-wizard.mjs.map +1 -1
- package/package.json +3 -3
- package/types/slotted-angular-accordion.d.ts.map +1 -1
- package/types/slotted-angular-action-bar.d.ts +2 -0
- package/types/slotted-angular-action-bar.d.ts.map +1 -1
- package/types/slotted-angular-action-sheet.d.ts.map +1 -1
- package/types/slotted-angular-alert.d.ts +13 -4
- package/types/slotted-angular-alert.d.ts.map +1 -1
- package/types/slotted-angular-app-shell.d.ts +12 -4
- package/types/slotted-angular-app-shell.d.ts.map +1 -1
- package/types/slotted-angular-aspect-ratio.d.ts.map +1 -1
- package/types/slotted-angular-attachment.d.ts +2 -1
- package/types/slotted-angular-attachment.d.ts.map +1 -1
- package/types/slotted-angular-avatar-group.d.ts.map +1 -1
- package/types/slotted-angular-avatar.d.ts +11 -3
- package/types/slotted-angular-avatar.d.ts.map +1 -1
- package/types/slotted-angular-badge.d.ts +1 -1
- package/types/slotted-angular-badge.d.ts.map +1 -1
- package/types/slotted-angular-breadcrumb.d.ts.map +1 -1
- package/types/slotted-angular-button-group.d.ts +1 -1
- package/types/slotted-angular-button-group.d.ts.map +1 -1
- package/types/slotted-angular-button.d.ts +67 -14
- package/types/slotted-angular-button.d.ts.map +1 -1
- package/types/slotted-angular-calendar.d.ts +43 -2
- package/types/slotted-angular-calendar.d.ts.map +1 -1
- package/types/slotted-angular-card.d.ts.map +1 -1
- package/types/slotted-angular-carousel.d.ts.map +1 -1
- package/types/slotted-angular-cascader.d.ts.map +1 -1
- package/types/slotted-angular-chart.d.ts +19 -9
- package/types/slotted-angular-chart.d.ts.map +1 -1
- package/types/slotted-angular-checkbox-group.d.ts.map +1 -1
- package/types/slotted-angular-checkbox.d.ts.map +1 -1
- package/types/slotted-angular-code-block.d.ts +2 -1
- package/types/slotted-angular-code-block.d.ts.map +1 -1
- package/types/slotted-angular-collapsible.d.ts +2 -1
- package/types/slotted-angular-collapsible.d.ts.map +1 -1
- package/types/slotted-angular-color-picker.d.ts.map +1 -1
- package/types/slotted-angular-column-manager.d.ts.map +1 -1
- package/types/slotted-angular-combobox.d.ts +6 -1
- package/types/slotted-angular-combobox.d.ts.map +1 -1
- package/types/slotted-angular-command-palette.d.ts +10 -1
- package/types/slotted-angular-command-palette.d.ts.map +1 -1
- package/types/slotted-angular-container.d.ts.map +1 -1
- package/types/slotted-angular-context-menu.d.ts.map +1 -1
- package/types/slotted-angular-currency-field.d.ts +63 -15
- package/types/slotted-angular-currency-field.d.ts.map +1 -1
- package/types/slotted-angular-dashboard-grid.d.ts +63 -7
- package/types/slotted-angular-dashboard-grid.d.ts.map +1 -1
- package/types/slotted-angular-data-grid.d.ts +62 -4
- package/types/slotted-angular-data-grid.d.ts.map +1 -1
- package/types/slotted-angular-data-list.d.ts.map +1 -1
- package/types/slotted-angular-date-field.d.ts +11 -1
- package/types/slotted-angular-date-field.d.ts.map +1 -1
- package/types/slotted-angular-date-picker.d.ts +38 -12
- package/types/slotted-angular-date-picker.d.ts.map +1 -1
- package/types/slotted-angular-date-range-picker.d.ts +0 -1
- package/types/slotted-angular-date-range-picker.d.ts.map +1 -1
- package/types/slotted-angular-datetime-field.d.ts.map +1 -1
- package/types/slotted-angular-datetime-picker.d.ts +0 -1
- package/types/slotted-angular-datetime-picker.d.ts.map +1 -1
- package/types/slotted-angular-datetime-range-picker.d.ts +0 -1
- package/types/slotted-angular-datetime-range-picker.d.ts.map +1 -1
- package/types/slotted-angular-description-list.d.ts +11 -3
- package/types/slotted-angular-description-list.d.ts.map +1 -1
- package/types/slotted-angular-detail-panel.d.ts.map +1 -1
- package/types/slotted-angular-dialog.d.ts +11 -3
- package/types/slotted-angular-dialog.d.ts.map +1 -1
- package/types/slotted-angular-divider.d.ts.map +1 -1
- package/types/slotted-angular-drawer.d.ts +29 -3
- package/types/slotted-angular-drawer.d.ts.map +1 -1
- package/types/slotted-angular-entity-picker.d.ts +63 -15
- package/types/slotted-angular-entity-picker.d.ts.map +1 -1
- package/types/slotted-angular-event-calendar.d.ts.map +1 -1
- package/types/slotted-angular-field-group.d.ts.map +1 -1
- package/types/slotted-angular-field.d.ts.map +1 -1
- package/types/slotted-angular-filter-bar.d.ts.map +1 -1
- package/types/slotted-angular-form.d.ts.map +1 -1
- package/types/slotted-angular-fullscreen.d.ts.map +1 -1
- package/types/slotted-angular-grid.d.ts.map +1 -1
- package/types/slotted-angular-highlight.d.ts.map +1 -1
- package/types/slotted-angular-hover-card.d.ts.map +1 -1
- package/types/slotted-angular-icon.d.ts +13 -3
- package/types/slotted-angular-icon.d.ts.map +1 -1
- package/types/slotted-angular-image.d.ts.map +1 -1
- package/types/slotted-angular-import-export-center.d.ts.map +1 -1
- package/types/slotted-angular-inline-message.d.ts +29 -28
- package/types/slotted-angular-inline-message.d.ts.map +1 -1
- package/types/slotted-angular-inline.d.ts.map +1 -1
- package/types/slotted-angular-kbd.d.ts.map +1 -1
- package/types/slotted-angular-link.d.ts +8 -2
- package/types/slotted-angular-link.d.ts.map +1 -1
- package/types/slotted-angular-list-item.d.ts +5 -1
- package/types/slotted-angular-list-item.d.ts.map +1 -1
- package/types/slotted-angular-list.d.ts +42 -27
- package/types/slotted-angular-list.d.ts.map +1 -1
- package/types/slotted-angular-listbox.d.ts.map +1 -1
- package/types/slotted-angular-loading-overlay.d.ts.map +1 -1
- package/types/slotted-angular-markdown.d.ts +6 -1
- package/types/slotted-angular-markdown.d.ts.map +1 -1
- package/types/slotted-angular-menu.d.ts +11 -2
- package/types/slotted-angular-menu.d.ts.map +1 -1
- package/types/slotted-angular-menubar.d.ts +5 -4
- package/types/slotted-angular-menubar.d.ts.map +1 -1
- package/types/slotted-angular-message-scroller.d.ts.map +1 -1
- package/types/slotted-angular-message.d.ts +1 -1
- package/types/slotted-angular-message.d.ts.map +1 -1
- package/types/slotted-angular-multi-select.d.ts +6 -1
- package/types/slotted-angular-multi-select.d.ts.map +1 -1
- package/types/slotted-angular-navigation-menu.d.ts.map +1 -1
- package/types/slotted-angular-notification-center.d.ts +1 -1
- package/types/slotted-angular-notification-center.d.ts.map +1 -1
- package/types/slotted-angular-number-field.d.ts.map +1 -1
- package/types/slotted-angular-otp-input.d.ts.map +1 -1
- package/types/slotted-angular-page-header.d.ts +15 -6
- package/types/slotted-angular-page-header.d.ts.map +1 -1
- package/types/slotted-angular-page.d.ts +7 -1
- package/types/slotted-angular-page.d.ts.map +1 -1
- package/types/slotted-angular-pagination.d.ts.map +1 -1
- package/types/slotted-angular-popover.d.ts.map +1 -1
- package/types/slotted-angular-progress-indicator.d.ts +8 -1
- package/types/slotted-angular-progress-indicator.d.ts.map +1 -1
- package/types/slotted-angular-prompt-composer.d.ts +35 -3
- package/types/slotted-angular-prompt-composer.d.ts.map +1 -1
- package/types/slotted-angular-prose.d.ts.map +1 -1
- package/types/slotted-angular-radio-group.d.ts.map +1 -1
- package/types/slotted-angular-rating.d.ts +1 -1
- package/types/slotted-angular-rating.d.ts.map +1 -1
- package/types/slotted-angular-result-state.d.ts.map +1 -1
- package/types/slotted-angular-saved-views.d.ts.map +1 -1
- package/types/slotted-angular-scroll-area.d.ts.map +1 -1
- package/types/slotted-angular-section.d.ts +14 -4
- package/types/slotted-angular-section.d.ts.map +1 -1
- package/types/slotted-angular-segmented-control.d.ts +15 -2
- package/types/slotted-angular-segmented-control.d.ts.map +1 -1
- package/types/slotted-angular-select.d.ts +13 -2
- package/types/slotted-angular-select.d.ts.map +1 -1
- package/types/slotted-angular-side-navigation.d.ts.map +1 -1
- package/types/slotted-angular-skeleton.d.ts.map +1 -1
- package/types/slotted-angular-slider.d.ts.map +1 -1
- package/types/slotted-angular-sparkline.d.ts +7 -1
- package/types/slotted-angular-sparkline.d.ts.map +1 -1
- package/types/slotted-angular-split-button.d.ts +2 -2
- package/types/slotted-angular-split-button.d.ts.map +1 -1
- package/types/slotted-angular-splitter.d.ts.map +1 -1
- package/types/slotted-angular-stack.d.ts.map +1 -1
- package/types/slotted-angular-stat-card.d.ts +9 -4
- package/types/slotted-angular-stat-card.d.ts.map +1 -1
- package/types/slotted-angular-status-indicator.d.ts +13 -3
- package/types/slotted-angular-status-indicator.d.ts.map +1 -1
- package/types/slotted-angular-stepper.d.ts +2 -1
- package/types/slotted-angular-stepper.d.ts.map +1 -1
- package/types/slotted-angular-switch.d.ts.map +1 -1
- package/types/slotted-angular-table-of-contents.d.ts.map +1 -1
- package/types/slotted-angular-table.d.ts +63 -6
- package/types/slotted-angular-table.d.ts.map +1 -1
- package/types/slotted-angular-tabs.d.ts +3 -4
- package/types/slotted-angular-tabs.d.ts.map +1 -1
- package/types/slotted-angular-tag.d.ts +1 -1
- package/types/slotted-angular-tag.d.ts.map +1 -1
- package/types/slotted-angular-tags-input.d.ts +33 -1
- package/types/slotted-angular-tags-input.d.ts.map +1 -1
- package/types/slotted-angular-text-field.d.ts.map +1 -1
- package/types/slotted-angular-textarea.d.ts.map +1 -1
- package/types/slotted-angular-theme.d.ts +7 -5
- package/types/slotted-angular-theme.d.ts.map +1 -1
- package/types/slotted-angular-time-field.d.ts.map +1 -1
- package/types/slotted-angular-time-picker.d.ts +0 -1
- package/types/slotted-angular-time-picker.d.ts.map +1 -1
- package/types/slotted-angular-time-range-picker.d.ts +0 -1
- package/types/slotted-angular-time-range-picker.d.ts.map +1 -1
- package/types/slotted-angular-timeline.d.ts +1 -1
- package/types/slotted-angular-timeline.d.ts.map +1 -1
- package/types/slotted-angular-toast.d.ts +5 -3
- package/types/slotted-angular-toast.d.ts.map +1 -1
- package/types/slotted-angular-toggle-group.d.ts +8 -2
- package/types/slotted-angular-toggle-group.d.ts.map +1 -1
- package/types/slotted-angular-toggle.d.ts +1 -1
- package/types/slotted-angular-toggle.d.ts.map +1 -1
- package/types/slotted-angular-toolbar.d.ts +2 -0
- package/types/slotted-angular-toolbar.d.ts.map +1 -1
- package/types/slotted-angular-tooltip.d.ts.map +1 -1
- package/types/slotted-angular-top-navigation.d.ts.map +1 -1
- package/types/slotted-angular-tour.d.ts.map +1 -1
- package/types/slotted-angular-transfer.d.ts.map +1 -1
- package/types/slotted-angular-tree.d.ts.map +1 -1
- package/types/slotted-angular-typography.d.ts +1 -1
- package/types/slotted-angular-typography.d.ts.map +1 -1
- package/types/slotted-angular-upload.d.ts +4 -2
- package/types/slotted-angular-upload.d.ts.map +1 -1
- package/types/slotted-angular-visually-hidden.d.ts.map +1 -1
- package/types/slotted-angular-wizard.d.ts.map +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { input, booleanAttribute, computed, ChangeDetectionStrategy, Component, inject, HostAttributeToken, ViewEncapsulation } from '@angular/core';
|
|
3
|
-
import { GLYPH_VIEW_BOX, GLYPHS } from '@slotted/core/glyph';
|
|
3
|
+
import { GLYPH_VIEW_BOX, isStatusGlyph, STATUS_GLYPH_GRIDS, STATUS_GLYPHS, GLYPHS } from '@slotted/core/glyph';
|
|
4
4
|
|
|
5
5
|
let sequence = 0;
|
|
6
6
|
/**
|
|
@@ -15,6 +15,9 @@ let sequence = 0;
|
|
|
15
15
|
* shape filled, and the symbol inside it cut out of the fill by an SVG
|
|
16
16
|
* `<mask>`, so whatever lies behind shows through the symbol on any ground.
|
|
17
17
|
*
|
|
18
|
+
* A status mark (`status-*`) is always solid, and is drawn once per grid it
|
|
19
|
+
* was drawn on; `icon.css` shows the grid the icon box is sized for.
|
|
20
|
+
*
|
|
18
21
|
* The children carry the `svg:` namespace because the template is parsed apart
|
|
19
22
|
* from its host: an unprefixed `<path>` would be created as an HTML element.
|
|
20
23
|
*/
|
|
@@ -30,7 +33,22 @@ class SlGlyph {
|
|
|
30
33
|
solid = input(false, { ...(ngDevMode ? { debugName: "solid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
31
34
|
maskId = `sl-glyph-${String((sequence += 1))}`;
|
|
32
35
|
viewBox = GLYPH_VIEW_BOX;
|
|
33
|
-
drawing
|
|
36
|
+
/** A status mark's drawing on each of its grids; `null` for a Lucide glyph. */
|
|
37
|
+
grids = computed(() => {
|
|
38
|
+
const name = this.name();
|
|
39
|
+
return isStatusGlyph(name)
|
|
40
|
+
? STATUS_GLYPH_GRIDS.map((size) => ({ size, drawing: STATUS_GLYPHS[name][size] }))
|
|
41
|
+
: null;
|
|
42
|
+
}, /* @ts-ignore */
|
|
43
|
+
...(ngDevMode ? [{ debugName: "grids" }] : /* istanbul ignore next */ []));
|
|
44
|
+
/** Painted by the root's own fill or stroke rather than by a solid shape. */
|
|
45
|
+
painted = computed(() => !this.solid() && this.grids() === null, /* @ts-ignore */
|
|
46
|
+
...(ngDevMode ? [{ debugName: "painted" }] : /* istanbul ignore next */ []));
|
|
47
|
+
/* A status mark has no Lucide drawing, and reads none: `dot` only keeps the signal typed. */
|
|
48
|
+
drawing = computed(() => {
|
|
49
|
+
const name = this.name();
|
|
50
|
+
return isStatusGlyph(name) ? GLYPHS.dot : GLYPHS[name];
|
|
51
|
+
}, /* @ts-ignore */
|
|
34
52
|
...(ngDevMode ? [{ debugName: "drawing" }] : /* istanbul ignore next */ []));
|
|
35
53
|
symbol = computed(() => this.drawing().paths.slice(1), /* @ts-ignore */
|
|
36
54
|
...(ngDevMode ? [{ debugName: "symbol" }] : /* istanbul ignore next */ []));
|
|
@@ -42,109 +60,190 @@ class SlGlyph {
|
|
|
42
60
|
}, /* @ts-ignore */
|
|
43
61
|
...(ngDevMode ? [{ debugName: "transform" }] : /* istanbul ignore next */ []));
|
|
44
62
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlGlyph, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
45
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlGlyph, isStandalone: true, selector: "svg[slGlyph]", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, solid: { classPropertyName: "solid", publicName: "solid", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-hidden": "true", "focusable": "false", "data-part": "glyph" }, properties: { "attr.data-glyph": "name()", "attr.viewBox": "viewBox", "attr.data-solid": "
|
|
46
|
-
|
|
47
|
-
<svg:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
63
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlGlyph, isStandalone: true, selector: "svg[slGlyph]", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, solid: { classPropertyName: "solid", publicName: "solid", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-hidden": "true", "focusable": "false", "data-part": "glyph", "data-part-glyph": "" }, properties: { "attr.data-glyph": "name()", "attr.viewBox": "grids() ? '0 0 16 16' : viewBox", "attr.data-solid": "painted() ? null : ''", "attr.fill": "painted() ? (stroked() ? 'none' : 'currentColor') : null", "attr.stroke": "painted() && stroked() ? 'currentColor' : null", "attr.stroke-width": "painted() && stroked() ? drawing().strokeWidth : null", "attr.stroke-linecap": "painted() && stroked() ? 'round' : null", "attr.stroke-linejoin": "painted() && stroked() ? 'round' : null" } }, ngImport: i0, template: `@if (grids(); as grids) {
|
|
64
|
+
@for (grid of grids; track grid.size) {
|
|
65
|
+
<svg:svg [attr.data-grid]="grid.size" [attr.viewBox]="'0 0 ' + grid.size + ' ' + grid.size">
|
|
66
|
+
<svg:defs>
|
|
67
|
+
<svg:mask
|
|
68
|
+
[attr.id]="maskId + '-' + grid.size"
|
|
69
|
+
maskUnits="userSpaceOnUse"
|
|
70
|
+
x="0"
|
|
71
|
+
y="0"
|
|
72
|
+
[attr.width]="grid.size"
|
|
73
|
+
[attr.height]="grid.size"
|
|
74
|
+
>
|
|
75
|
+
<svg:rect fill="#fff" [attr.width]="grid.size" [attr.height]="grid.size" />
|
|
76
|
+
@for (d of grid.drawing.holes; track $index) {
|
|
77
|
+
<svg:path [attr.d]="d" fill="#000" />
|
|
78
|
+
}
|
|
79
|
+
@for (d of grid.drawing.strokes; track $index) {
|
|
80
|
+
<svg:path
|
|
81
|
+
[attr.d]="d"
|
|
82
|
+
fill="none"
|
|
83
|
+
stroke="#000"
|
|
84
|
+
stroke-linecap="round"
|
|
85
|
+
stroke-linejoin="round"
|
|
86
|
+
stroke-width="2"
|
|
87
|
+
/>
|
|
88
|
+
}
|
|
89
|
+
</svg:mask>
|
|
90
|
+
</svg:defs>
|
|
91
|
+
<svg:path
|
|
92
|
+
[attr.d]="grid.drawing.shape"
|
|
93
|
+
fill="currentColor"
|
|
94
|
+
[attr.mask]="'url(#' + maskId + '-' + grid.size + ')'"
|
|
95
|
+
[attr.stroke]="grid.drawing.shapeStroke === 0 ? null : 'currentColor'"
|
|
96
|
+
[attr.stroke-linejoin]="grid.drawing.shapeStroke === 0 ? null : 'round'"
|
|
97
|
+
[attr.stroke-width]="grid.drawing.shapeStroke === 0 ? null : grid.drawing.shapeStroke"
|
|
98
|
+
/>
|
|
99
|
+
</svg:svg>
|
|
100
|
+
}
|
|
101
|
+
} @else {
|
|
102
|
+
@if (solid()) {
|
|
103
|
+
<svg:defs>
|
|
104
|
+
<svg:mask
|
|
105
|
+
[attr.id]="maskId"
|
|
106
|
+
maskUnits="userSpaceOnUse"
|
|
107
|
+
x="-2"
|
|
108
|
+
y="-2"
|
|
109
|
+
width="28"
|
|
110
|
+
height="28"
|
|
111
|
+
>
|
|
112
|
+
<svg:rect x="-2" y="-2" width="28" height="28" fill="#fff" />
|
|
113
|
+
<svg:g
|
|
114
|
+
fill="none"
|
|
115
|
+
stroke="#000"
|
|
116
|
+
stroke-linecap="round"
|
|
117
|
+
stroke-linejoin="round"
|
|
118
|
+
[attr.stroke-width]="drawing().strokeWidth"
|
|
119
|
+
>
|
|
120
|
+
@for (d of symbol(); track $index) {
|
|
121
|
+
<svg:path [attr.d]="d" />
|
|
122
|
+
}
|
|
123
|
+
</svg:g>
|
|
124
|
+
</svg:mask>
|
|
125
|
+
</svg:defs>
|
|
126
|
+
}
|
|
127
|
+
<svg:g [attr.transform]="transform()">
|
|
128
|
+
@if (solid()) {
|
|
129
|
+
<svg:path
|
|
130
|
+
[attr.d]="drawing().paths[0]"
|
|
131
|
+
fill="currentColor"
|
|
132
|
+
stroke="currentColor"
|
|
59
133
|
stroke-linecap="round"
|
|
60
134
|
stroke-linejoin="round"
|
|
61
135
|
[attr.stroke-width]="drawing().strokeWidth"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
</svg:defs>
|
|
69
|
-
}
|
|
70
|
-
<svg:g [attr.transform]="transform()">
|
|
71
|
-
@if (solid()) {
|
|
72
|
-
<svg:path
|
|
73
|
-
[attr.d]="drawing().paths[0]"
|
|
74
|
-
fill="currentColor"
|
|
75
|
-
stroke="currentColor"
|
|
76
|
-
stroke-linecap="round"
|
|
77
|
-
stroke-linejoin="round"
|
|
78
|
-
[attr.stroke-width]="drawing().strokeWidth"
|
|
79
|
-
[attr.mask]="'url(#' + maskId + ')'"
|
|
80
|
-
/>
|
|
81
|
-
} @else {
|
|
82
|
-
@for (d of drawing().paths; track $index) {
|
|
83
|
-
<svg:path [attr.d]="d" />
|
|
136
|
+
[attr.mask]="'url(#' + maskId + ')'"
|
|
137
|
+
/>
|
|
138
|
+
} @else {
|
|
139
|
+
@for (d of drawing().paths; track $index) {
|
|
140
|
+
<svg:path [attr.d]="d" />
|
|
141
|
+
}
|
|
84
142
|
}
|
|
85
|
-
|
|
86
|
-
|
|
143
|
+
</svg:g>
|
|
144
|
+
}`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
87
145
|
}
|
|
88
146
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlGlyph, decorators: [{
|
|
89
147
|
type: Component,
|
|
90
148
|
args: [{
|
|
91
149
|
selector: 'svg[slGlyph]',
|
|
92
150
|
standalone: true,
|
|
93
|
-
template: `@if (
|
|
94
|
-
|
|
95
|
-
<svg:
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
151
|
+
template: `@if (grids(); as grids) {
|
|
152
|
+
@for (grid of grids; track grid.size) {
|
|
153
|
+
<svg:svg [attr.data-grid]="grid.size" [attr.viewBox]="'0 0 ' + grid.size + ' ' + grid.size">
|
|
154
|
+
<svg:defs>
|
|
155
|
+
<svg:mask
|
|
156
|
+
[attr.id]="maskId + '-' + grid.size"
|
|
157
|
+
maskUnits="userSpaceOnUse"
|
|
158
|
+
x="0"
|
|
159
|
+
y="0"
|
|
160
|
+
[attr.width]="grid.size"
|
|
161
|
+
[attr.height]="grid.size"
|
|
162
|
+
>
|
|
163
|
+
<svg:rect fill="#fff" [attr.width]="grid.size" [attr.height]="grid.size" />
|
|
164
|
+
@for (d of grid.drawing.holes; track $index) {
|
|
165
|
+
<svg:path [attr.d]="d" fill="#000" />
|
|
166
|
+
}
|
|
167
|
+
@for (d of grid.drawing.strokes; track $index) {
|
|
168
|
+
<svg:path
|
|
169
|
+
[attr.d]="d"
|
|
170
|
+
fill="none"
|
|
171
|
+
stroke="#000"
|
|
172
|
+
stroke-linecap="round"
|
|
173
|
+
stroke-linejoin="round"
|
|
174
|
+
stroke-width="2"
|
|
175
|
+
/>
|
|
176
|
+
}
|
|
177
|
+
</svg:mask>
|
|
178
|
+
</svg:defs>
|
|
179
|
+
<svg:path
|
|
180
|
+
[attr.d]="grid.drawing.shape"
|
|
181
|
+
fill="currentColor"
|
|
182
|
+
[attr.mask]="'url(#' + maskId + '-' + grid.size + ')'"
|
|
183
|
+
[attr.stroke]="grid.drawing.shapeStroke === 0 ? null : 'currentColor'"
|
|
184
|
+
[attr.stroke-linejoin]="grid.drawing.shapeStroke === 0 ? null : 'round'"
|
|
185
|
+
[attr.stroke-width]="grid.drawing.shapeStroke === 0 ? null : grid.drawing.shapeStroke"
|
|
186
|
+
/>
|
|
187
|
+
</svg:svg>
|
|
188
|
+
}
|
|
189
|
+
} @else {
|
|
190
|
+
@if (solid()) {
|
|
191
|
+
<svg:defs>
|
|
192
|
+
<svg:mask
|
|
193
|
+
[attr.id]="maskId"
|
|
194
|
+
maskUnits="userSpaceOnUse"
|
|
195
|
+
x="-2"
|
|
196
|
+
y="-2"
|
|
197
|
+
width="28"
|
|
198
|
+
height="28"
|
|
199
|
+
>
|
|
200
|
+
<svg:rect x="-2" y="-2" width="28" height="28" fill="#fff" />
|
|
201
|
+
<svg:g
|
|
202
|
+
fill="none"
|
|
203
|
+
stroke="#000"
|
|
204
|
+
stroke-linecap="round"
|
|
205
|
+
stroke-linejoin="round"
|
|
206
|
+
[attr.stroke-width]="drawing().strokeWidth"
|
|
207
|
+
>
|
|
208
|
+
@for (d of symbol(); track $index) {
|
|
209
|
+
<svg:path [attr.d]="d" />
|
|
210
|
+
}
|
|
211
|
+
</svg:g>
|
|
212
|
+
</svg:mask>
|
|
213
|
+
</svg:defs>
|
|
214
|
+
}
|
|
215
|
+
<svg:g [attr.transform]="transform()">
|
|
216
|
+
@if (solid()) {
|
|
217
|
+
<svg:path
|
|
218
|
+
[attr.d]="drawing().paths[0]"
|
|
219
|
+
fill="currentColor"
|
|
220
|
+
stroke="currentColor"
|
|
107
221
|
stroke-linecap="round"
|
|
108
222
|
stroke-linejoin="round"
|
|
109
223
|
[attr.stroke-width]="drawing().strokeWidth"
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
</svg:defs>
|
|
117
|
-
}
|
|
118
|
-
<svg:g [attr.transform]="transform()">
|
|
119
|
-
@if (solid()) {
|
|
120
|
-
<svg:path
|
|
121
|
-
[attr.d]="drawing().paths[0]"
|
|
122
|
-
fill="currentColor"
|
|
123
|
-
stroke="currentColor"
|
|
124
|
-
stroke-linecap="round"
|
|
125
|
-
stroke-linejoin="round"
|
|
126
|
-
[attr.stroke-width]="drawing().strokeWidth"
|
|
127
|
-
[attr.mask]="'url(#' + maskId + ')'"
|
|
128
|
-
/>
|
|
129
|
-
} @else {
|
|
130
|
-
@for (d of drawing().paths; track $index) {
|
|
131
|
-
<svg:path [attr.d]="d" />
|
|
224
|
+
[attr.mask]="'url(#' + maskId + ')'"
|
|
225
|
+
/>
|
|
226
|
+
} @else {
|
|
227
|
+
@for (d of drawing().paths; track $index) {
|
|
228
|
+
<svg:path [attr.d]="d" />
|
|
229
|
+
}
|
|
132
230
|
}
|
|
133
|
-
|
|
134
|
-
|
|
231
|
+
</svg:g>
|
|
232
|
+
}`,
|
|
135
233
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
136
234
|
host: {
|
|
137
235
|
'aria-hidden': 'true',
|
|
138
236
|
focusable: 'false',
|
|
139
237
|
'data-part': 'glyph',
|
|
238
|
+
'data-part-glyph': '',
|
|
140
239
|
'[attr.data-glyph]': 'name()',
|
|
141
|
-
'[attr.viewBox]': 'viewBox
|
|
142
|
-
'[attr.data-solid]': "
|
|
143
|
-
'[attr.fill]': "
|
|
144
|
-
'[attr.stroke]': "
|
|
145
|
-
'[attr.stroke-width]': '
|
|
146
|
-
'[attr.stroke-linecap]': "
|
|
147
|
-
'[attr.stroke-linejoin]': "
|
|
240
|
+
'[attr.viewBox]': "grids() ? '0 0 16 16' : viewBox",
|
|
241
|
+
'[attr.data-solid]': "painted() ? null : ''",
|
|
242
|
+
'[attr.fill]': "painted() ? (stroked() ? 'none' : 'currentColor') : null",
|
|
243
|
+
'[attr.stroke]': "painted() && stroked() ? 'currentColor' : null",
|
|
244
|
+
'[attr.stroke-width]': 'painted() && stroked() ? drawing().strokeWidth : null',
|
|
245
|
+
'[attr.stroke-linecap]': "painted() && stroked() ? 'round' : null",
|
|
246
|
+
'[attr.stroke-linejoin]': "painted() && stroked() ? 'round' : null",
|
|
148
247
|
},
|
|
149
248
|
}]
|
|
150
249
|
}], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], solid: [{ type: i0.Input, args: [{ isSignal: true, alias: "solid", required: false }] }] } });
|
|
@@ -208,20 +307,22 @@ class SlIcon {
|
|
|
208
307
|
toneAttribute = computed(() => toneAttribute(this.tone()), /* @ts-ignore */
|
|
209
308
|
...(ngDevMode ? [{ debugName: "toneAttribute" }] : /* istanbul ignore next */ []));
|
|
210
309
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlIcon, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
211
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: SlIcon, isStandalone: true, selector: "[slIcon]", inputs: { directional: { classPropertyName: "directional", publicName: "directional", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-ui": "icon", "data-part": "root" }, properties: { "attr.data-size": "size() ?? null", "attr.data-tone": "toneAttribute()", "attr.data-directional": "directional() ? \"\" : null", "attr.role": "role()", "attr.aria-label": "ariaLabel()", "attr.aria-hidden": "named() ? null : \"true\"" } }, exportAs: ["slIcon"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: ["@layer slotted.components{[data-ui
|
|
310
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: SlIcon, isStandalone: true, selector: "[slIcon]", inputs: { directional: { classPropertyName: "directional", publicName: "directional", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-ui": "icon", "data-ui-icon": "", "data-part": "root", "data-part-root": "" }, properties: { "attr.data-size": "size() ?? null", "attr.data-tone": "toneAttribute()", "attr.data-directional": "directional() ? \"\" : null", "attr.role": "role()", "attr.aria-label": "ariaLabel()", "attr.aria-hidden": "named() ? null : \"true\"" } }, exportAs: ["slIcon"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: ["@layer slotted.components{[data-ui-icon]{--_size: var(--slotted-icon-size, var(--slotted-control-icon-size-md, 16px));align-items:center;block-size:var(--_size);display:inline-flex;flex:none;inline-size:var(--_size);justify-content:center;line-height:1;vertical-align:var(--slotted-icon-baseline-shift, calc(.5cap - .5 * var(--_size)))}[data-ui-icon]>*,[data-ui-icon] svg{block-size:100%;display:block;font-size:var(--_size);inline-size:100%}[data-ui-icon]:has(>svg>svg[data-grid]){container-type:size}[data-ui-icon] svg[data-grid]{display:none}@container (width < 13px){[data-ui-icon] svg[data-grid=\"12\"]{display:block}}@container (13px <= width < 15px){[data-ui-icon] svg[data-grid=\"14\"]{display:block}}@container (width >= 15px){[data-ui-icon] svg[data-grid=\"16\"]{display:block}}@media(max-resolution:.99dppx){[data-ui-icon] svg[data-grid]{display:none}[data-ui-icon] svg[data-grid=\"12\"]{display:block}}[data-ui-icon][data-size=text]{--slotted-icon-size: 1em}[data-ui-icon][data-size=sm]{--slotted-icon-size: var(--slotted-control-icon-size-sm, 14px)}[data-ui-icon][data-size=md]{--slotted-icon-size: var(--slotted-control-icon-size-md, 16px)}[data-ui-icon][data-size=lg]{--slotted-icon-size: var(--slotted-control-icon-size-lg, 18px)}[data-ui-icon][data-tone=default]{color:var(--slotted-text, CanvasText)}[data-ui-icon][data-tone=muted]{color:var(--slotted-text-muted, GrayText)}[data-ui-icon][data-tone=accent]{color:var(--slotted-tone-accent-text, LinkText)}[data-ui-icon][data-tone=success]{color:var(--slotted-tone-success-text, CanvasText)}[data-ui-icon][data-tone=info]{color:var(--slotted-tone-info-text, CanvasText)}[data-ui-icon][data-tone=warning]{color:var(--slotted-tone-warning-text, CanvasText)}[data-ui-icon][data-tone=danger]{color:var(--slotted-tone-danger-text, CanvasText)}[data-ui-icon][data-tone=inverse]{color:var(--slotted-text-inverse, Canvas)}[data-ui-icon][data-directional]:dir(rtl){scale:-1 1}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
212
311
|
}
|
|
213
312
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlIcon, decorators: [{
|
|
214
313
|
type: Component,
|
|
215
314
|
args: [{ selector: '[slIcon]', standalone: true, exportAs: 'slIcon', template: '<ng-content></ng-content>', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
216
315
|
'data-ui': 'icon',
|
|
316
|
+
'data-ui-icon': '',
|
|
217
317
|
'data-part': 'root',
|
|
318
|
+
'data-part-root': '',
|
|
218
319
|
'[attr.data-size]': 'size() ?? null',
|
|
219
320
|
'[attr.data-tone]': 'toneAttribute()',
|
|
220
321
|
'[attr.data-directional]': 'directional() ? "" : null',
|
|
221
322
|
'[attr.role]': 'role()',
|
|
222
323
|
'[attr.aria-label]': 'ariaLabel()',
|
|
223
324
|
'[attr.aria-hidden]': 'named() ? null : "true"',
|
|
224
|
-
}, styles: ["@layer slotted.components{[data-ui
|
|
325
|
+
}, styles: ["@layer slotted.components{[data-ui-icon]{--_size: var(--slotted-icon-size, var(--slotted-control-icon-size-md, 16px));align-items:center;block-size:var(--_size);display:inline-flex;flex:none;inline-size:var(--_size);justify-content:center;line-height:1;vertical-align:var(--slotted-icon-baseline-shift, calc(.5cap - .5 * var(--_size)))}[data-ui-icon]>*,[data-ui-icon] svg{block-size:100%;display:block;font-size:var(--_size);inline-size:100%}[data-ui-icon]:has(>svg>svg[data-grid]){container-type:size}[data-ui-icon] svg[data-grid]{display:none}@container (width < 13px){[data-ui-icon] svg[data-grid=\"12\"]{display:block}}@container (13px <= width < 15px){[data-ui-icon] svg[data-grid=\"14\"]{display:block}}@container (width >= 15px){[data-ui-icon] svg[data-grid=\"16\"]{display:block}}@media(max-resolution:.99dppx){[data-ui-icon] svg[data-grid]{display:none}[data-ui-icon] svg[data-grid=\"12\"]{display:block}}[data-ui-icon][data-size=text]{--slotted-icon-size: 1em}[data-ui-icon][data-size=sm]{--slotted-icon-size: var(--slotted-control-icon-size-sm, 14px)}[data-ui-icon][data-size=md]{--slotted-icon-size: var(--slotted-control-icon-size-md, 16px)}[data-ui-icon][data-size=lg]{--slotted-icon-size: var(--slotted-control-icon-size-lg, 18px)}[data-ui-icon][data-tone=default]{color:var(--slotted-text, CanvasText)}[data-ui-icon][data-tone=muted]{color:var(--slotted-text-muted, GrayText)}[data-ui-icon][data-tone=accent]{color:var(--slotted-tone-accent-text, LinkText)}[data-ui-icon][data-tone=success]{color:var(--slotted-tone-success-text, CanvasText)}[data-ui-icon][data-tone=info]{color:var(--slotted-tone-info-text, CanvasText)}[data-ui-icon][data-tone=warning]{color:var(--slotted-tone-warning-text, CanvasText)}[data-ui-icon][data-tone=danger]{color:var(--slotted-tone-danger-text, CanvasText)}[data-ui-icon][data-tone=inverse]{color:var(--slotted-text-inverse, Canvas)}[data-ui-icon][data-directional]:dir(rtl){scale:-1 1}}\n"] }]
|
|
225
326
|
}], propDecorators: { directional: [{ type: i0.Input, args: [{ isSignal: true, alias: "directional", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], tone: [{ type: i0.Input, args: [{ isSignal: true, alias: "tone", required: false }] }] } });
|
|
226
327
|
|
|
227
328
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slotted-angular-icon.mjs","sources":["../../icon/src/glyph.ts","../../icon/src/icon.types.ts","../../icon/src/icon.ts","../../icon/src/slotted-angular-icon.ts"],"sourcesContent":["import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n} from '@angular/core';\nimport { GLYPH_VIEW_BOX, GLYPHS } from '@slotted/core/glyph';\nimport type { GlyphDrawing, GlyphName } from '@slotted/core/glyph';\n\nlet sequence = 0;\n\n/**\n * Glyph is the library's own artwork, drawn as a real `<svg>`: the Lucide\n * geometry `@slotted/core/glyph` holds, stroked or filled with `currentColor`.\n * It goes inside a `slIcon` box, which owns the size, the colour, the\n * alignment and the name; the glyph owns only the drawing. Every family draws\n * its own icons — a close button's cross, a pager's chevrons — with this\n * element, and never with a pseudo-element or a mask of its own.\n *\n * `solid` draws a status mark the way a tone's badge reads: the glyph's first\n * shape filled, and the symbol inside it cut out of the fill by an SVG\n * `<mask>`, so whatever lies behind shows through the symbol on any ground.\n *\n * The children carry the `svg:` namespace because the template is parsed apart\n * from its host: an unprefixed `<path>` would be created as an HTML element.\n */\n@Component({\n selector: 'svg[slGlyph]',\n standalone: true,\n template: `@if (solid()) {\n <svg:defs>\n <svg:mask\n [attr.id]=\"maskId\"\n maskUnits=\"userSpaceOnUse\"\n x=\"-2\"\n y=\"-2\"\n width=\"28\"\n height=\"28\"\n >\n <svg:rect x=\"-2\" y=\"-2\" width=\"28\" height=\"28\" fill=\"#fff\" />\n <svg:g\n fill=\"none\"\n stroke=\"#000\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n [attr.stroke-width]=\"drawing().strokeWidth\"\n >\n @for (d of symbol(); track $index) {\n <svg:path [attr.d]=\"d\" />\n }\n </svg:g>\n </svg:mask>\n </svg:defs>\n }\n <svg:g [attr.transform]=\"transform()\">\n @if (solid()) {\n <svg:path\n [attr.d]=\"drawing().paths[0]\"\n fill=\"currentColor\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n [attr.stroke-width]=\"drawing().strokeWidth\"\n [attr.mask]=\"'url(#' + maskId + ')'\"\n />\n } @else {\n @for (d of drawing().paths; track $index) {\n <svg:path [attr.d]=\"d\" />\n }\n }\n </svg:g>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'aria-hidden': 'true',\n focusable: 'false',\n 'data-part': 'glyph',\n '[attr.data-glyph]': 'name()',\n '[attr.viewBox]': 'viewBox',\n '[attr.data-solid]': \"solid() ? '' : null\",\n '[attr.fill]': \"solid() ? null : stroked() ? 'none' : 'currentColor'\",\n '[attr.stroke]': \"!solid() && stroked() ? 'currentColor' : null\",\n '[attr.stroke-width]': '!solid() && stroked() ? drawing().strokeWidth : null',\n '[attr.stroke-linecap]': \"!solid() && stroked() ? 'round' : null\",\n '[attr.stroke-linejoin]': \"!solid() && stroked() ? 'round' : null\",\n },\n})\nexport class SlGlyph {\n /** One of the library's own icons: its glyph token without `--slotted-icon-`. */\n readonly name = input.required<GlyphName>();\n /**\n * The first shape filled and the symbol cut out of it — a tone's status\n * mark. For glyphs whose first shape encloses the rest (`circle-*`,\n * `triangle-alert`).\n */\n readonly solid = input(false, { transform: booleanAttribute });\n\n protected readonly maskId = `sl-glyph-${String((sequence += 1))}`;\n\n protected readonly viewBox = GLYPH_VIEW_BOX;\n protected readonly drawing = computed<GlyphDrawing>(() => GLYPHS[this.name()]);\n protected readonly symbol = computed(() => this.drawing().paths.slice(1));\n protected readonly stroked = computed(() => this.drawing().paint === 'stroke');\n protected readonly transform = computed(() => {\n const [dx, dy] = this.drawing().offset;\n return dx === 0 && dy === 0 ? null : `translate(${dx} ${dy})`;\n });\n}\n","/**\n * Three steps read the control icon scale, which the theme restates per\n * density. `text` follows the type the icon sits in, because a control-sized\n * glyph inside a display heading is not an icon.\n */\nexport type IconSize = 'text' | 'sm' | 'md' | 'lg';\n\nexport type IconTone =\n 'inherit' | 'default' | 'muted' | 'accent' | 'success' | 'warning' | 'danger' | 'inverse';\n\n/**\n * `inherit` is the absence of a colour rather than a colour of its own, so it\n * removes the attribute and lets the surface decide.\n */\nexport function toneAttribute(tone: IconTone | undefined): string | null {\n return tone === undefined || tone === 'inherit' ? null : tone;\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n HostAttributeToken,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { toneAttribute } from './icon.types';\nimport type { IconSize, IconTone } from './icon.types';\n\n/**\n * Icon is the box a glyph is drawn in, not the glyph. The library ships no\n * catalogue: the artwork is the consumer's — an `ng-icon`, an inline `svg`,\n * anything that renders one — and this family owns the size it is drawn at,\n * the colour it inherits, where it sits against a line of text, and whether it\n * mirrors where reading runs the other way.\n *\n * The selector is the bare attribute, so the consumer writes the element. It\n * is a component rather than a directive only because a directive carries no\n * `styleUrl`, and that also means it cannot sit on `<ng-icon>` itself: Angular\n * refuses two components on one element, so the box is always written.\n */\n@Component({\n selector: '[slIcon]',\n standalone: true,\n exportAs: 'slIcon',\n template: '<ng-content></ng-content>',\n styleUrl: '../../../styles/src/icon/icon.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'icon',\n 'data-part': 'root',\n '[attr.data-size]': 'size() ?? null',\n '[attr.data-tone]': 'toneAttribute()',\n '[attr.data-directional]': 'directional() ? \"\" : null',\n '[attr.role]': 'role()',\n '[attr.aria-label]': 'ariaLabel()',\n '[attr.aria-hidden]': 'named() ? null : \"true\"',\n },\n})\nexport class SlIcon {\n readonly directional = input(false, { transform: booleanAttribute });\n readonly label = input<string>();\n readonly size = input<IconSize>();\n readonly tone = input<IconTone>();\n\n /**\n * A name the consumer wrote on the element counts as much as the input, and\n * has to be read rather than assumed absent: a host binding that wrote\n * `null` would delete the consumer's own `aria-label` and hide the icon it\n * named, which is a silent defect in the likeliest mistake. `aria-labelledby`\n * is read and never written, so the attribute the consumer put there stays\n * exactly as written.\n */\n private readonly writtenLabel = inject(new HostAttributeToken('aria-label'), { optional: true });\n private readonly writtenLabelledBy = inject(new HostAttributeToken('aria-labelledby'), {\n optional: true,\n });\n private readonly writtenRole = inject(new HostAttributeToken('role'), { optional: true });\n\n protected readonly ariaLabel = computed(() => this.label() ?? this.writtenLabel);\n\n /**\n * The icon is decorative when it has no name and meaningful when it has one,\n * which is why there is no `decorative` input: named and hidden cannot both\n * be true.\n */\n protected readonly named = computed(\n () => this.ariaLabel() !== null || this.writtenLabelledBy !== null,\n );\n\n /**\n * `role=\"img\"` requires a name, so it appears only once there is one, and a\n * role the consumer chose is left alone.\n */\n protected readonly role = computed(() =>\n this.writtenRole === null ? (this.named() ? 'img' : null) : this.writtenRole,\n );\n\n protected readonly toneAttribute = computed(() => toneAttribute(this.tone()));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n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,EAAE,QAAQ;AACvB,wBAAA,mBAAmB,EAAE,aAAa;AAClC,wBAAA,oBAAoB,EAAE,yBAAyB;AAChD,qBAAA,EAAA,MAAA,EAAA,CAAA,42CAAA,CAAA,EAAA;;;AC3CH;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"slotted-angular-icon.mjs","sources":["../../icon/src/glyph.ts","../../icon/src/icon.types.ts","../../icon/src/icon.ts","../../icon/src/slotted-angular-icon.ts"],"sourcesContent":["import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n} from '@angular/core';\nimport {\n GLYPH_VIEW_BOX,\n GLYPHS,\n isStatusGlyph,\n STATUS_GLYPH_GRIDS,\n STATUS_GLYPHS,\n} from '@slotted/core/glyph';\nimport type { GlyphDrawing, GlyphName, StatusGlyphGrid } from '@slotted/core/glyph';\n\nlet sequence = 0;\n\n/**\n * Glyph is the library's own artwork, drawn as a real `<svg>`: the Lucide\n * geometry `@slotted/core/glyph` holds, stroked or filled with `currentColor`.\n * It goes inside a `slIcon` box, which owns the size, the colour, the\n * alignment and the name; the glyph owns only the drawing. Every family draws\n * its own icons — a close button's cross, a pager's chevrons — with this\n * element, and never with a pseudo-element or a mask of its own.\n *\n * `solid` draws a status mark the way a tone's badge reads: the glyph's first\n * shape filled, and the symbol inside it cut out of the fill by an SVG\n * `<mask>`, so whatever lies behind shows through the symbol on any ground.\n *\n * A status mark (`status-*`) is always solid, and is drawn once per grid it\n * was drawn on; `icon.css` shows the grid the icon box is sized for.\n *\n * The children carry the `svg:` namespace because the template is parsed apart\n * from its host: an unprefixed `<path>` would be created as an HTML element.\n */\n@Component({\n selector: 'svg[slGlyph]',\n standalone: true,\n template: `@if (grids(); as grids) {\n @for (grid of grids; track grid.size) {\n <svg:svg [attr.data-grid]=\"grid.size\" [attr.viewBox]=\"'0 0 ' + grid.size + ' ' + grid.size\">\n <svg:defs>\n <svg:mask\n [attr.id]=\"maskId + '-' + grid.size\"\n maskUnits=\"userSpaceOnUse\"\n x=\"0\"\n y=\"0\"\n [attr.width]=\"grid.size\"\n [attr.height]=\"grid.size\"\n >\n <svg:rect fill=\"#fff\" [attr.width]=\"grid.size\" [attr.height]=\"grid.size\" />\n @for (d of grid.drawing.holes; track $index) {\n <svg:path [attr.d]=\"d\" fill=\"#000\" />\n }\n @for (d of grid.drawing.strokes; track $index) {\n <svg:path\n [attr.d]=\"d\"\n fill=\"none\"\n stroke=\"#000\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n />\n }\n </svg:mask>\n </svg:defs>\n <svg:path\n [attr.d]=\"grid.drawing.shape\"\n fill=\"currentColor\"\n [attr.mask]=\"'url(#' + maskId + '-' + grid.size + ')'\"\n [attr.stroke]=\"grid.drawing.shapeStroke === 0 ? null : 'currentColor'\"\n [attr.stroke-linejoin]=\"grid.drawing.shapeStroke === 0 ? null : 'round'\"\n [attr.stroke-width]=\"grid.drawing.shapeStroke === 0 ? null : grid.drawing.shapeStroke\"\n />\n </svg:svg>\n }\n } @else {\n @if (solid()) {\n <svg:defs>\n <svg:mask\n [attr.id]=\"maskId\"\n maskUnits=\"userSpaceOnUse\"\n x=\"-2\"\n y=\"-2\"\n width=\"28\"\n height=\"28\"\n >\n <svg:rect x=\"-2\" y=\"-2\" width=\"28\" height=\"28\" fill=\"#fff\" />\n <svg:g\n fill=\"none\"\n stroke=\"#000\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n [attr.stroke-width]=\"drawing().strokeWidth\"\n >\n @for (d of symbol(); track $index) {\n <svg:path [attr.d]=\"d\" />\n }\n </svg:g>\n </svg:mask>\n </svg:defs>\n }\n <svg:g [attr.transform]=\"transform()\">\n @if (solid()) {\n <svg:path\n [attr.d]=\"drawing().paths[0]\"\n fill=\"currentColor\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n [attr.stroke-width]=\"drawing().strokeWidth\"\n [attr.mask]=\"'url(#' + maskId + ')'\"\n />\n } @else {\n @for (d of drawing().paths; track $index) {\n <svg:path [attr.d]=\"d\" />\n }\n }\n </svg:g>\n }`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'aria-hidden': 'true',\n focusable: 'false',\n 'data-part': 'glyph',\n 'data-part-glyph': '',\n '[attr.data-glyph]': 'name()',\n '[attr.viewBox]': \"grids() ? '0 0 16 16' : viewBox\",\n '[attr.data-solid]': \"painted() ? null : ''\",\n '[attr.fill]': \"painted() ? (stroked() ? 'none' : 'currentColor') : null\",\n '[attr.stroke]': \"painted() && stroked() ? 'currentColor' : null\",\n '[attr.stroke-width]': 'painted() && stroked() ? drawing().strokeWidth : null',\n '[attr.stroke-linecap]': \"painted() && stroked() ? 'round' : null\",\n '[attr.stroke-linejoin]': \"painted() && stroked() ? 'round' : null\",\n },\n})\nexport class SlGlyph {\n /** One of the library's own icons: its glyph token without `--slotted-icon-`. */\n readonly name = input.required<GlyphName>();\n /**\n * The first shape filled and the symbol cut out of it — a tone's status\n * mark. For glyphs whose first shape encloses the rest (`circle-*`,\n * `triangle-alert`).\n */\n readonly solid = input(false, { transform: booleanAttribute });\n\n protected readonly maskId = `sl-glyph-${String((sequence += 1))}`;\n\n protected readonly viewBox = GLYPH_VIEW_BOX;\n /** A status mark's drawing on each of its grids; `null` for a Lucide glyph. */\n protected readonly grids = computed<readonly { size: number; drawing: StatusGlyphGrid }[] | null>(\n () => {\n const name = this.name();\n return isStatusGlyph(name)\n ? STATUS_GLYPH_GRIDS.map((size) => ({ size, drawing: STATUS_GLYPHS[name][size] }))\n : null;\n },\n );\n /** Painted by the root's own fill or stroke rather than by a solid shape. */\n protected readonly painted = computed(() => !this.solid() && this.grids() === null);\n /* A status mark has no Lucide drawing, and reads none: `dot` only keeps the signal typed. */\n protected readonly drawing = computed<GlyphDrawing>(() => {\n const name = this.name();\n return isStatusGlyph(name) ? GLYPHS.dot : GLYPHS[name];\n });\n protected readonly symbol = computed(() => this.drawing().paths.slice(1));\n protected readonly stroked = computed(() => this.drawing().paint === 'stroke');\n protected readonly transform = computed(() => {\n const [dx, dy] = this.drawing().offset;\n return dx === 0 && dy === 0 ? null : `translate(${dx} ${dy})`;\n });\n}\n","/**\n * Three steps read the control icon scale, which the theme restates per\n * density. `text` follows the type the icon sits in, because a control-sized\n * glyph inside a display heading is not an icon.\n */\nexport type IconSize = 'text' | 'sm' | 'md' | 'lg';\n\nexport type IconTone =\n | 'inherit'\n | 'default'\n | 'muted'\n | 'accent'\n | 'info'\n | 'success'\n | 'warning'\n | 'danger'\n | 'inverse';\n\n/**\n * `inherit` is the absence of a colour rather than a colour of its own, so it\n * removes the attribute and lets the surface decide.\n */\nexport function toneAttribute(tone: IconTone | undefined): string | null {\n return tone === undefined || tone === 'inherit' ? null : tone;\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n HostAttributeToken,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { toneAttribute } from './icon.types';\nimport type { IconSize, IconTone } from './icon.types';\n\n/**\n * Icon is the box a glyph is drawn in, not the glyph. The library ships no\n * catalogue: the artwork is the consumer's — an `ng-icon`, an inline `svg`,\n * anything that renders one — and this family owns the size it is drawn at,\n * the colour it inherits, where it sits against a line of text, and whether it\n * mirrors where reading runs the other way.\n *\n * The selector is the bare attribute, so the consumer writes the element. It\n * is a component rather than a directive only because a directive carries no\n * `styleUrl`, and that also means it cannot sit on `<ng-icon>` itself: Angular\n * refuses two components on one element, so the box is always written.\n */\n@Component({\n selector: '[slIcon]',\n standalone: true,\n exportAs: 'slIcon',\n template: '<ng-content></ng-content>',\n styleUrl: '../../../styles/src/icon/icon.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'icon',\n 'data-ui-icon': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-size]': 'size() ?? null',\n '[attr.data-tone]': 'toneAttribute()',\n '[attr.data-directional]': 'directional() ? \"\" : null',\n '[attr.role]': 'role()',\n '[attr.aria-label]': 'ariaLabel()',\n '[attr.aria-hidden]': 'named() ? null : \"true\"',\n },\n})\nexport class SlIcon {\n readonly directional = input(false, { transform: booleanAttribute });\n readonly label = input<string>();\n readonly size = input<IconSize>();\n readonly tone = input<IconTone>();\n\n /**\n * A name the consumer wrote on the element counts as much as the input, and\n * has to be read rather than assumed absent: a host binding that wrote\n * `null` would delete the consumer's own `aria-label` and hide the icon it\n * named, which is a silent defect in the likeliest mistake. `aria-labelledby`\n * is read and never written, so the attribute the consumer put there stays\n * exactly as written.\n */\n private readonly writtenLabel = inject(new HostAttributeToken('aria-label'), { optional: true });\n private readonly writtenLabelledBy = inject(new HostAttributeToken('aria-labelledby'), {\n optional: true,\n });\n private readonly writtenRole = inject(new HostAttributeToken('role'), { optional: true });\n\n protected readonly ariaLabel = computed(() => this.label() ?? this.writtenLabel);\n\n /**\n * The icon is decorative when it has no name and meaningful when it has one,\n * which is why there is no `decorative` input: named and hidden cannot both\n * be true.\n */\n protected readonly named = computed(\n () => this.ariaLabel() !== null || this.writtenLabelledBy !== null,\n );\n\n /**\n * `role=\"img\"` requires a name, so it appears only once there is one, and a\n * role the consumer chose is left alone.\n */\n protected readonly role = computed(() =>\n this.writtenRole === null ? (this.named() ? 'img' : null) : this.writtenRole,\n );\n\n protected readonly toneAttribute = computed(() => toneAttribute(this.tone()));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAgBA,IAAI,QAAQ,GAAG,CAAC;AAEhB;;;;;;;;;;;;;;;;;AAiBG;MAsGU,OAAO,CAAA;;IAET,IAAI,GAAG,KAAK,CAAC,QAAQ;6EAAa;AAC3C;;;;AAIG;IACM,KAAK,GAAG,KAAK,CAAC,KAAK,6EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IAE3C,MAAM,GAAG,CAAA,SAAA,EAAY,MAAM,EAAE,QAAQ,IAAI,CAAC,EAAE,CAAA,CAAE;IA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AAA,EAAA,QAAA,EAAA,UAAU,EAAA,UAAA,EACR,IAAI,EAAA,QAAA,EACN,QAAQ,YACR,2BAA2B,EAAA,eAAA,EAEpB,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,IAAA,EAC/B;AACJ,wBAAA,SAAS,EAAE,MAAM;AACjB,wBAAA,cAAc,EAAE,EAAE;AAClB,wBAAA,WAAW,EAAE,MAAM;AACnB,wBAAA,gBAAgB,EAAE,EAAE;AACpB,wBAAA,kBAAkB,EAAE,gBAAgB;AACpC,wBAAA,kBAAkB,EAAE,iBAAiB;AACrC,wBAAA,yBAAyB,EAAE,2BAA2B;AACtD,wBAAA,aAAa,EAAE,QAAQ;AACvB,wBAAA,mBAAmB,EAAE,aAAa;AAClC,wBAAA,oBAAoB,EAAE,yBAAyB;AAChD,qBAAA,EAAA,MAAA,EAAA,CAAA,m5DAAA,CAAA,EAAA;;;AC7CH;;AAEG;;"}
|
|
@@ -77,7 +77,7 @@ class SlImageMedia {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlImageMedia, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
80
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlImageMedia, isStandalone: true, selector: "img[slImageMedia]", host: { attributes: { "data-part": "image" }, listeners: { "load": "host.reportLoaded()", "error": "host.reportError()" } }, exportAs: ["slImageMedia"], ngImport: i0 });
|
|
80
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlImageMedia, isStandalone: true, selector: "img[slImageMedia]", host: { attributes: { "data-part": "image", "data-part-image": "" }, listeners: { "load": "host.reportLoaded()", "error": "host.reportError()" } }, exportAs: ["slImageMedia"], ngImport: i0 });
|
|
81
81
|
}
|
|
82
82
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlImageMedia, decorators: [{
|
|
83
83
|
type: Directive,
|
|
@@ -87,6 +87,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
87
87
|
exportAs: 'slImageMedia',
|
|
88
88
|
host: {
|
|
89
89
|
'data-part': 'image',
|
|
90
|
+
'data-part-image': '',
|
|
90
91
|
'(load)': 'host.reportLoaded()',
|
|
91
92
|
'(error)': 'host.reportError()',
|
|
92
93
|
},
|
|
@@ -271,7 +272,7 @@ class SlImage {
|
|
|
271
272
|
this.statusChange.emit('error');
|
|
272
273
|
}
|
|
273
274
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlImage, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
274
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlImage, isStandalone: true, selector: "[slImage]", inputs: { src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: false, transformFunction: null }, srcset: { classPropertyName: "srcset", publicName: "srcset", isSignal: true, isRequired: false, transformFunction: null }, sizes: { classPropertyName: "sizes", publicName: "sizes", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, crossOrigin: { classPropertyName: "crossOrigin", publicName: "crossOrigin", isSignal: true, isRequired: false, transformFunction: null }, referrerPolicy: { classPropertyName: "referrerPolicy", publicName: "referrerPolicy", isSignal: true, isRequired: false, transformFunction: null }, ratio: { classPropertyName: "ratio", publicName: "ratio", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, fit: { classPropertyName: "fit", publicName: "fit", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, radius: { classPropertyName: "radius", publicName: "radius", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, placeholderSrc: { classPropertyName: "placeholderSrc", publicName: "placeholderSrc", isSignal: true, isRequired: false, transformFunction: null }, fallbackSrc: { classPropertyName: "fallbackSrc", publicName: "fallbackSrc", isSignal: true, isRequired: false, transformFunction: null }, sources: { classPropertyName: "sources", publicName: "sources", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, decoding: { classPropertyName: "decoding", publicName: "decoding", isSignal: true, isRequired: false, transformFunction: null }, fetchPriority: { classPropertyName: "fetchPriority", publicName: "fetchPriority", isSignal: true, isRequired: false, transformFunction: null }, priority: { classPropertyName: "priority", publicName: "priority", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { statusChange: "statusChange" }, host: { attributes: { "data-ui": "image", "data-part": "root" }, properties: { "attr.data-layout": "resolvedLayout()", "attr.data-fit": "resolvedFit()", "attr.data-position": "positionAttribute()", "attr.data-radius": "resolvedRadius()", "attr.data-placeholder": "resolvedPlaceholder()", "attr.data-status": "resolvedStatus()", "attr.data-bordered": "resolvedBordered() ? '' : null", "style.--slotted-image-position": "positionToken()" } }, providers: [
|
|
275
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlImage, isStandalone: true, selector: "[slImage]", inputs: { src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: false, transformFunction: null }, srcset: { classPropertyName: "srcset", publicName: "srcset", isSignal: true, isRequired: false, transformFunction: null }, sizes: { classPropertyName: "sizes", publicName: "sizes", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, crossOrigin: { classPropertyName: "crossOrigin", publicName: "crossOrigin", isSignal: true, isRequired: false, transformFunction: null }, referrerPolicy: { classPropertyName: "referrerPolicy", publicName: "referrerPolicy", isSignal: true, isRequired: false, transformFunction: null }, ratio: { classPropertyName: "ratio", publicName: "ratio", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, fit: { classPropertyName: "fit", publicName: "fit", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, radius: { classPropertyName: "radius", publicName: "radius", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, placeholderSrc: { classPropertyName: "placeholderSrc", publicName: "placeholderSrc", isSignal: true, isRequired: false, transformFunction: null }, fallbackSrc: { classPropertyName: "fallbackSrc", publicName: "fallbackSrc", isSignal: true, isRequired: false, transformFunction: null }, sources: { classPropertyName: "sources", publicName: "sources", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, decoding: { classPropertyName: "decoding", publicName: "decoding", isSignal: true, isRequired: false, transformFunction: null }, fetchPriority: { classPropertyName: "fetchPriority", publicName: "fetchPriority", isSignal: true, isRequired: false, transformFunction: null }, priority: { classPropertyName: "priority", publicName: "priority", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { statusChange: "statusChange" }, host: { attributes: { "data-ui": "image", "data-ui-image": "", "data-part": "root", "data-part-root": "" }, properties: { "attr.data-layout": "resolvedLayout()", "attr.data-fit": "resolvedFit()", "attr.data-position": "positionAttribute()", "attr.data-radius": "resolvedRadius()", "attr.data-placeholder": "resolvedPlaceholder()", "attr.data-status": "resolvedStatus()", "attr.data-bordered": "resolvedBordered() ? '' : null", "style.--slotted-image-position": "positionToken()" } }, providers: [
|
|
275
276
|
/* The component is its own media host, and a decorator is evaluated before
|
|
276
277
|
the class it decorates exists. */
|
|
277
278
|
{ provide: IMAGE_MEDIA_HOST, useExisting: forwardRef(() => SlImage) },
|
|
@@ -285,7 +286,7 @@ class SlImage {
|
|
|
285
286
|
<ng-template #layers>
|
|
286
287
|
@if (projected() === undefined && src() !== undefined) {
|
|
287
288
|
@if (sources().length > 0) {
|
|
288
|
-
<picture data-part="picture">
|
|
289
|
+
<picture data-part="picture" data-part-picture="">
|
|
289
290
|
@for (source of sources(); track $index) {
|
|
290
291
|
<source
|
|
291
292
|
[attr.srcset]="source.srcSet"
|
|
@@ -301,12 +302,12 @@ class SlImage {
|
|
|
301
302
|
}
|
|
302
303
|
}
|
|
303
304
|
<ng-content select="img[slImageMedia]"></ng-content
|
|
304
|
-
><span data-part="placeholder" aria-hidden="true">
|
|
305
|
+
><span data-part="placeholder" data-part-placeholder="" aria-hidden="true">
|
|
305
306
|
@if (resolvedPlaceholder() === 'blur' && placeholderSrc(); as preview) {
|
|
306
307
|
<img alt="" [src]="preview" />
|
|
307
308
|
}
|
|
308
309
|
<ng-content select="[slImagePlaceholder]"></ng-content></span
|
|
309
|
-
><span data-part="fallback"
|
|
310
|
+
><span data-part="fallback" data-part-fallback=""
|
|
310
311
|
><ng-content select="[slImageFallback]"
|
|
311
312
|
><span slIcon><svg slGlyph name="image-off"></svg></span></ng-content
|
|
312
313
|
></span>
|
|
@@ -326,7 +327,7 @@ class SlImage {
|
|
|
326
327
|
[attr.crossorigin]="crossOrigin() ?? null"
|
|
327
328
|
[attr.referrerpolicy]="referrerPolicy() ?? null"
|
|
328
329
|
/>
|
|
329
|
-
</ng-template>`, isInline: true, styles: ["@layer slotted.components{[data-ui
|
|
330
|
+
</ng-template>`, isInline: true, styles: ["@layer slotted.components{[data-ui-image][data-part-root]{--_fit: cover;--_position: var(--slotted-image-position, center);--_radius: var(--slotted-image-radius, var(--slotted-radius-none, 0px));--_edge: transparent;--_edge-width: var(--slotted-image-border-width, var(--slotted-border-width-thin, 1px));--_ground: var(--slotted-image-placeholder-background, var(--slotted-surface-sunken));--_ground-edge: inset 0 0 0 var(--_edge-width) var(--slotted-border-subtle, ButtonBorder);background-color:var(--slotted-image-background, transparent);border-radius:var(--_radius);box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:1fr;inline-size:fit-content;isolation:isolate;max-inline-size:100%;min-inline-size:0;overflow:clip;position:relative;appearance:none;border:0;padding:0;text-decoration:none}[data-ui-image][data-part-root]>*{grid-area:1 / 1;min-inline-size:0}[data-ui-image][data-part-root][data-layout=fill]{block-size:100%;inline-size:100%}[data-ui-image][data-part-root][data-layout=framed]{inline-size:100%}[data-ui-image][data-part-root][data-fit=contain]{--_fit: contain}[data-ui-image][data-part-root][data-fit=fill]{--_fit: fill}[data-ui-image][data-part-root][data-fit=none]{--_fit: none}[data-ui-image][data-part-root][data-fit=scale-down]{--_fit: scale-down}[data-ui-image][data-part-root][data-position=top]{--_position: top}[data-ui-image][data-part-root][data-position=bottom]{--_position: bottom}[data-ui-image][data-part-root][data-position=start]{--_position: left}[data-ui-image][data-part-root][data-position=end]{--_position: right}[data-ui-image][data-part-root][data-position=start]:dir(rtl){--_position: right}[data-ui-image][data-part-root][data-position=end]:dir(rtl){--_position: left}[data-ui-image][data-part-root][data-radius=sm]{--_radius: var(--slotted-image-radius, var(--slotted-radius-sm, 4px))}[data-ui-image][data-part-root][data-radius=md]{--_radius: var(--slotted-image-radius, var(--slotted-radius-md, 6px))}[data-ui-image][data-part-root][data-radius=lg]{--_radius: var(--slotted-image-radius, var(--slotted-radius-lg, 8px))}[data-ui-image][data-part-root][data-bordered]{--_edge: var(--slotted-border-subtle, ButtonBorder)}[data-ui-image][data-part-root]:after{border-radius:inherit;box-shadow:inset 0 0 0 var(--_edge-width) var(--_edge);content:\"\";grid-area:1 / 1;pointer-events:none}[data-ui-image] [data-part-picture]{display:contents}[data-ui-image][data-part-root] [data-part-image]{block-size:auto;display:block;grid-area:1 / 1;max-inline-size:100%;min-inline-size:0;object-fit:var(--_fit);object-position:var(--_position);opacity:0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-standard)}[data-ui-image][data-part-root][data-layout=fill] [data-part-image],[data-ui-image][data-part-root][data-layout=framed] [data-part-image]{block-size:100%;inline-size:100%}[data-ui-image][data-part-root][data-status=loaded] [data-part-image]{opacity:1}[data-ui-image][data-part-root][data-status=error] [data-part-image]{block-size:0;inline-size:0;min-block-size:0}[data-ui-image][data-part-root] [data-part-placeholder]{background-color:var(--_ground);block-size:100%;box-shadow:var(--_ground-edge);overflow:clip;display:grid;grid-area:1 / 1;inline-size:100%;min-inline-size:0;pointer-events:none;transition:opacity var(--slotted-duration-short) var(--slotted-easing-standard)}[data-ui-image][data-part-root][data-placeholder=none] [data-part-placeholder]{background-color:transparent;box-shadow:none}[data-ui-image][data-part-root][data-placeholder=blur] [data-part-placeholder]>img{block-size:100%;display:block;filter:blur(var(--slotted-image-placeholder-blur, 1.25rem));inline-size:100%;object-fit:var(--_fit);object-position:var(--_position);transform:scale(1.08)}[data-ui-image][data-part-root][data-status=loaded] [data-part-placeholder]{opacity:0}[data-ui-image][data-part-root][data-status=error] [data-part-placeholder]{visibility:hidden}[data-ui-image][data-part-root] [data-part-fallback]{--slotted-icon-size: var(--slotted-image-glyph-size, var(--slotted-space-9, 2rem));display:none}[data-ui-image][data-part-root][data-status=error] [data-part-fallback]{background-color:var(--_ground);block-size:100%;box-shadow:var(--_ground-edge);color:var(--slotted-text-muted, GrayText);display:grid;grid-area:1 / 1;inline-size:100%;min-block-size:var(--slotted-image-fallback-min-size, var(--slotted-space-12, 4rem));min-inline-size:var(--slotted-image-fallback-min-size, var(--slotted-space-12, 4rem));place-items:center}[data-ui-image][data-part-root]:any-link,button[data-ui-image][data-part-root],[data-ui-image][data-part-root][tabindex]{cursor:pointer}[data-ui-image][data-part-root]:any-link:not([data-disabled]):hover,button[data-ui-image][data-part-root]:not(:disabled):hover,[data-ui-image][data-part-root][tabindex]:not([data-disabled]):hover{--_edge: var(--slotted-border-strong, CanvasText);--_edge-width: var(--slotted-border-width-thick, 2px)}[data-ui-image][data-part-root]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: SlAspectRatio, selector: "[slAspectRatio]", inputs: ["ratio"], exportAs: ["slAspectRatio"] }, { kind: "component", type: SlGlyph, selector: "svg[slGlyph]", inputs: ["name", "solid"] }, { kind: "component", type: SlIcon, selector: "[slIcon]", inputs: ["directional", "label", "size", "tone"], exportAs: ["slIcon"] }, { kind: "directive", type: SlImageMedia, selector: "img[slImageMedia]", exportAs: ["slImageMedia"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
330
331
|
}
|
|
331
332
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlImage, decorators: [{
|
|
332
333
|
type: Component,
|
|
@@ -344,7 +345,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
344
345
|
<ng-template #layers>
|
|
345
346
|
@if (projected() === undefined && src() !== undefined) {
|
|
346
347
|
@if (sources().length > 0) {
|
|
347
|
-
<picture data-part="picture">
|
|
348
|
+
<picture data-part="picture" data-part-picture="">
|
|
348
349
|
@for (source of sources(); track $index) {
|
|
349
350
|
<source
|
|
350
351
|
[attr.srcset]="source.srcSet"
|
|
@@ -360,12 +361,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
360
361
|
}
|
|
361
362
|
}
|
|
362
363
|
<ng-content select="img[slImageMedia]"></ng-content
|
|
363
|
-
><span data-part="placeholder" aria-hidden="true">
|
|
364
|
+
><span data-part="placeholder" data-part-placeholder="" aria-hidden="true">
|
|
364
365
|
@if (resolvedPlaceholder() === 'blur' && placeholderSrc(); as preview) {
|
|
365
366
|
<img alt="" [src]="preview" />
|
|
366
367
|
}
|
|
367
368
|
<ng-content select="[slImagePlaceholder]"></ng-content></span
|
|
368
|
-
><span data-part="fallback"
|
|
369
|
+
><span data-part="fallback" data-part-fallback=""
|
|
369
370
|
><ng-content select="[slImageFallback]"
|
|
370
371
|
><span slIcon><svg slGlyph name="image-off"></svg></span></ng-content
|
|
371
372
|
></span>
|
|
@@ -387,7 +388,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
387
388
|
/>
|
|
388
389
|
</ng-template>`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
389
390
|
'data-ui': 'image',
|
|
391
|
+
'data-ui-image': '',
|
|
390
392
|
'data-part': 'root',
|
|
393
|
+
'data-part-root': '',
|
|
391
394
|
'[attr.data-layout]': 'resolvedLayout()',
|
|
392
395
|
'[attr.data-fit]': 'resolvedFit()',
|
|
393
396
|
'[attr.data-position]': 'positionAttribute()',
|
|
@@ -396,7 +399,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
396
399
|
'[attr.data-status]': 'resolvedStatus()',
|
|
397
400
|
'[attr.data-bordered]': "resolvedBordered() ? '' : null",
|
|
398
401
|
'[style.--slotted-image-position]': 'positionToken()',
|
|
399
|
-
}, styles: ["@layer slotted.components{[data-ui
|
|
402
|
+
}, styles: ["@layer slotted.components{[data-ui-image][data-part-root]{--_fit: cover;--_position: var(--slotted-image-position, center);--_radius: var(--slotted-image-radius, var(--slotted-radius-none, 0px));--_edge: transparent;--_edge-width: var(--slotted-image-border-width, var(--slotted-border-width-thin, 1px));--_ground: var(--slotted-image-placeholder-background, var(--slotted-surface-sunken));--_ground-edge: inset 0 0 0 var(--_edge-width) var(--slotted-border-subtle, ButtonBorder);background-color:var(--slotted-image-background, transparent);border-radius:var(--_radius);box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:1fr;inline-size:fit-content;isolation:isolate;max-inline-size:100%;min-inline-size:0;overflow:clip;position:relative;appearance:none;border:0;padding:0;text-decoration:none}[data-ui-image][data-part-root]>*{grid-area:1 / 1;min-inline-size:0}[data-ui-image][data-part-root][data-layout=fill]{block-size:100%;inline-size:100%}[data-ui-image][data-part-root][data-layout=framed]{inline-size:100%}[data-ui-image][data-part-root][data-fit=contain]{--_fit: contain}[data-ui-image][data-part-root][data-fit=fill]{--_fit: fill}[data-ui-image][data-part-root][data-fit=none]{--_fit: none}[data-ui-image][data-part-root][data-fit=scale-down]{--_fit: scale-down}[data-ui-image][data-part-root][data-position=top]{--_position: top}[data-ui-image][data-part-root][data-position=bottom]{--_position: bottom}[data-ui-image][data-part-root][data-position=start]{--_position: left}[data-ui-image][data-part-root][data-position=end]{--_position: right}[data-ui-image][data-part-root][data-position=start]:dir(rtl){--_position: right}[data-ui-image][data-part-root][data-position=end]:dir(rtl){--_position: left}[data-ui-image][data-part-root][data-radius=sm]{--_radius: var(--slotted-image-radius, var(--slotted-radius-sm, 4px))}[data-ui-image][data-part-root][data-radius=md]{--_radius: var(--slotted-image-radius, var(--slotted-radius-md, 6px))}[data-ui-image][data-part-root][data-radius=lg]{--_radius: var(--slotted-image-radius, var(--slotted-radius-lg, 8px))}[data-ui-image][data-part-root][data-bordered]{--_edge: var(--slotted-border-subtle, ButtonBorder)}[data-ui-image][data-part-root]:after{border-radius:inherit;box-shadow:inset 0 0 0 var(--_edge-width) var(--_edge);content:\"\";grid-area:1 / 1;pointer-events:none}[data-ui-image] [data-part-picture]{display:contents}[data-ui-image][data-part-root] [data-part-image]{block-size:auto;display:block;grid-area:1 / 1;max-inline-size:100%;min-inline-size:0;object-fit:var(--_fit);object-position:var(--_position);opacity:0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-standard)}[data-ui-image][data-part-root][data-layout=fill] [data-part-image],[data-ui-image][data-part-root][data-layout=framed] [data-part-image]{block-size:100%;inline-size:100%}[data-ui-image][data-part-root][data-status=loaded] [data-part-image]{opacity:1}[data-ui-image][data-part-root][data-status=error] [data-part-image]{block-size:0;inline-size:0;min-block-size:0}[data-ui-image][data-part-root] [data-part-placeholder]{background-color:var(--_ground);block-size:100%;box-shadow:var(--_ground-edge);overflow:clip;display:grid;grid-area:1 / 1;inline-size:100%;min-inline-size:0;pointer-events:none;transition:opacity var(--slotted-duration-short) var(--slotted-easing-standard)}[data-ui-image][data-part-root][data-placeholder=none] [data-part-placeholder]{background-color:transparent;box-shadow:none}[data-ui-image][data-part-root][data-placeholder=blur] [data-part-placeholder]>img{block-size:100%;display:block;filter:blur(var(--slotted-image-placeholder-blur, 1.25rem));inline-size:100%;object-fit:var(--_fit);object-position:var(--_position);transform:scale(1.08)}[data-ui-image][data-part-root][data-status=loaded] [data-part-placeholder]{opacity:0}[data-ui-image][data-part-root][data-status=error] [data-part-placeholder]{visibility:hidden}[data-ui-image][data-part-root] [data-part-fallback]{--slotted-icon-size: var(--slotted-image-glyph-size, var(--slotted-space-9, 2rem));display:none}[data-ui-image][data-part-root][data-status=error] [data-part-fallback]{background-color:var(--_ground);block-size:100%;box-shadow:var(--_ground-edge);color:var(--slotted-text-muted, GrayText);display:grid;grid-area:1 / 1;inline-size:100%;min-block-size:var(--slotted-image-fallback-min-size, var(--slotted-space-12, 4rem));min-inline-size:var(--slotted-image-fallback-min-size, var(--slotted-space-12, 4rem));place-items:center}[data-ui-image][data-part-root]:any-link,button[data-ui-image][data-part-root],[data-ui-image][data-part-root][tabindex]{cursor:pointer}[data-ui-image][data-part-root]:any-link:not([data-disabled]):hover,button[data-ui-image][data-part-root]:not(:disabled):hover,[data-ui-image][data-part-root][tabindex]:not([data-disabled]):hover{--_edge: var(--slotted-border-strong, CanvasText);--_edge-width: var(--slotted-border-width-thick, 2px)}[data-ui-image][data-part-root]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}}\n"] }]
|
|
400
403
|
}], propDecorators: { src: [{ type: i0.Input, args: [{ isSignal: true, alias: "src", required: false }] }], srcset: [{ type: i0.Input, args: [{ isSignal: true, alias: "srcset", required: false }] }], sizes: [{ type: i0.Input, args: [{ isSignal: true, alias: "sizes", required: false }] }], alt: [{ type: i0.Input, args: [{ isSignal: true, alias: "alt", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], crossOrigin: [{ type: i0.Input, args: [{ isSignal: true, alias: "crossOrigin", required: false }] }], referrerPolicy: [{ type: i0.Input, args: [{ isSignal: true, alias: "referrerPolicy", required: false }] }], ratio: [{ type: i0.Input, args: [{ isSignal: true, alias: "ratio", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], fit: [{ type: i0.Input, args: [{ isSignal: true, alias: "fit", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], radius: [{ type: i0.Input, args: [{ isSignal: true, alias: "radius", required: false }] }], bordered: [{ type: i0.Input, args: [{ isSignal: true, alias: "bordered", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], placeholderSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholderSrc", required: false }] }], fallbackSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "fallbackSrc", required: false }] }], sources: [{ type: i0.Input, args: [{ isSignal: true, alias: "sources", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], decoding: [{ type: i0.Input, args: [{ isSignal: true, alias: "decoding", required: false }] }], fetchPriority: [{ type: i0.Input, args: [{ isSignal: true, alias: "fetchPriority", required: false }] }], priority: [{ type: i0.Input, args: [{ isSignal: true, alias: "priority", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], statusChange: [{ type: i0.Output, args: ["statusChange"] }], projected: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SlImageMedia), { isSignal: true }] }] } });
|
|
401
404
|
|
|
402
405
|
/**
|