@ngstarter-ui/components 21.0.77 → 22.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -116
- package/README.md +16 -25
- package/ai/component-registry.json +183 -183
- package/fesm2022/ngstarter-ui-components-action-required.mjs +14 -10
- package/fesm2022/ngstarter-ui-components-action-required.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-alert.mjs +23 -21
- package/fesm2022/ngstarter-ui-components-alert.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-announcement.mjs +23 -18
- package/fesm2022/ngstarter-ui-components-announcement.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-autocomplete.mjs +18 -13
- package/fesm2022/ngstarter-ui-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-avatar.mjs +44 -33
- package/fesm2022/ngstarter-ui-components-avatar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-badge.mjs +12 -10
- package/fesm2022/ngstarter-ui-components-badge.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-block-loader.mjs +7 -7
- package/fesm2022/ngstarter-ui-components-block-loader.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs +7 -7
- package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs +60 -60
- package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-button-toggle.mjs +21 -22
- package/fesm2022/ngstarter-ui-components-button-toggle.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-button.mjs +6 -5
- package/fesm2022/ngstarter-ui-components-button.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-calendar.mjs +30 -17
- package/fesm2022/ngstarter-ui-components-calendar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-card-overlay.mjs +9 -9
- package/fesm2022/ngstarter-ui-components-card-overlay.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-card.mjs +57 -54
- package/fesm2022/ngstarter-ui-components-card.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-carousel.mjs +77 -51
- package/fesm2022/ngstarter-ui-components-carousel.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-checkbox.mjs +35 -24
- package/fesm2022/ngstarter-ui-components-checkbox.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-chips.mjs +86 -66
- package/fesm2022/ngstarter-ui-components-chips.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-code-highlighter.mjs +25 -18
- package/fesm2022/ngstarter-ui-components-code-highlighter.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-color-picker.mjs +62 -45
- package/fesm2022/ngstarter-ui-components-color-picker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-color-scheme.mjs +33 -83
- package/fesm2022/ngstarter-ui-components-color-scheme.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-color-switcher.mjs +11 -9
- package/fesm2022/ngstarter-ui-components-color-switcher.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-command-bar.mjs +20 -18
- package/fesm2022/ngstarter-ui-components-command-bar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-comment-editor.mjs +129 -108
- package/fesm2022/ngstarter-ui-components-comment-editor.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-comparison-slider.mjs +26 -19
- package/fesm2022/ngstarter-ui-components-comparison-slider.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-confirm.mjs +13 -11
- package/fesm2022/ngstarter-ui-components-confirm.mjs.map +1 -1
- package/fesm2022/{ngstarter-ui-components-content-editor-code-block.component-CLfzSb69.mjs → ngstarter-ui-components-content-editor-code-block.component-BbK5fCoE.mjs} +29 -18
- package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-BbK5fCoE.mjs.map +1 -0
- package/fesm2022/{ngstarter-ui-components-content-editor-content-editor-content-editable.directive-Bvfa2dqh.mjs → ngstarter-ui-components-content-editor-content-editor-content-editable.directive-BOXOHcSo.mjs} +10 -7
- package/fesm2022/{ngstarter-ui-components-content-editor-content-editor-content-editable.directive-Bvfa2dqh.mjs.map → ngstarter-ui-components-content-editor-content-editor-content-editable.directive-BOXOHcSo.mjs.map} +1 -1
- package/fesm2022/{ngstarter-ui-components-content-editor-divider-block.component-C_iRTCPH.mjs → ngstarter-ui-components-content-editor-divider-block.component-B5wyMHjr.mjs} +16 -11
- package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-B5wyMHjr.mjs.map +1 -0
- package/fesm2022/{ngstarter-ui-components-content-editor-embed-block-BMBObSRE.mjs → ngstarter-ui-components-content-editor-embed-block-DGqupBLe.mjs} +28 -19
- package/fesm2022/ngstarter-ui-components-content-editor-embed-block-DGqupBLe.mjs.map +1 -0
- package/fesm2022/{ngstarter-ui-components-content-editor-heading-block.component-DL9PehLX.mjs → ngstarter-ui-components-content-editor-heading-block.component-D1s2yalT.mjs} +30 -19
- package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-D1s2yalT.mjs.map +1 -0
- package/fesm2022/{ngstarter-ui-components-content-editor-image-block.component-DJWItlMf.mjs → ngstarter-ui-components-content-editor-image-block.component-D75DrPNq.mjs} +27 -17
- package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-D75DrPNq.mjs.map +1 -0
- package/fesm2022/{ngstarter-ui-components-content-editor-list-block.component-J9vhrddX.mjs → ngstarter-ui-components-content-editor-list-block.component-B7pDlrQ_.mjs} +29 -20
- package/fesm2022/{ngstarter-ui-components-content-editor-list-block.component-J9vhrddX.mjs.map → ngstarter-ui-components-content-editor-list-block.component-B7pDlrQ_.mjs.map} +1 -1
- package/fesm2022/{ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-Be8dDH3z.mjs → ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CV959OGj.mjs} +351 -213
- package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CV959OGj.mjs.map +1 -0
- package/fesm2022/{ngstarter-ui-components-content-editor-paragraph-block.component-DxE2SXVt.mjs → ngstarter-ui-components-content-editor-paragraph-block.component-CVV2f-ON.mjs} +30 -19
- package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-CVV2f-ON.mjs.map +1 -0
- package/fesm2022/{ngstarter-ui-components-content-editor-quote-block.component-BEt5JkO8.mjs → ngstarter-ui-components-content-editor-quote-block.component-CVb-bkJw.mjs} +42 -25
- package/fesm2022/{ngstarter-ui-components-content-editor-quote-block.component-BEt5JkO8.mjs.map → ngstarter-ui-components-content-editor-quote-block.component-CVb-bkJw.mjs.map} +1 -1
- package/fesm2022/{ngstarter-ui-components-content-editor-table-block.component-BeCHXahH.mjs → ngstarter-ui-components-content-editor-table-block.component-DSpLBC4V.mjs} +42 -31
- package/fesm2022/{ngstarter-ui-components-content-editor-table-block.component-BeCHXahH.mjs.map → ngstarter-ui-components-content-editor-table-block.component-DSpLBC4V.mjs.map} +1 -1
- package/fesm2022/{ngstarter-ui-components-content-editor-video-block.component-BzFQtQwc.mjs → ngstarter-ui-components-content-editor-video-block.component-D3U8uXIy.mjs} +31 -19
- package/fesm2022/{ngstarter-ui-components-content-editor-video-block.component-BzFQtQwc.mjs.map → ngstarter-ui-components-content-editor-video-block.component-D3U8uXIy.mjs.map} +1 -1
- package/fesm2022/ngstarter-ui-components-content-editor.mjs +1 -1
- package/fesm2022/ngstarter-ui-components-cookie-popup.mjs +18 -16
- package/fesm2022/ngstarter-ui-components-cookie-popup.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-core.mjs +228 -689
- package/fesm2022/ngstarter-ui-components-core.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-country-select.mjs +27 -17
- package/fesm2022/ngstarter-ui-components-country-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-crop.mjs +22 -13
- package/fesm2022/ngstarter-ui-components-crop.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-currency-select.mjs +25 -16
- package/fesm2022/ngstarter-ui-components-currency-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-data-view.mjs +173 -98
- package/fesm2022/ngstarter-ui-components-data-view.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-date-format-select.mjs +17 -12
- package/fesm2022/ngstarter-ui-components-date-format-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-datepicker.mjs +172 -117
- package/fesm2022/ngstarter-ui-components-datepicker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-dialog.mjs +39 -35
- package/fesm2022/ngstarter-ui-components-dialog.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-digit-roller.mjs +55 -31
- package/fesm2022/ngstarter-ui-components-digit-roller.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-divider.mjs +11 -11
- package/fesm2022/ngstarter-ui-components-divider.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-drawer.mjs +16 -12
- package/fesm2022/ngstarter-ui-components-drawer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-emoji-picker.mjs +23 -16
- package/fesm2022/ngstarter-ui-components-emoji-picker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-empty-state.mjs +24 -24
- package/fesm2022/ngstarter-ui-components-events.mjs +45 -40
- package/fesm2022/ngstarter-ui-components-events.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-expand.mjs +14 -10
- package/fesm2022/ngstarter-ui-components-expand.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-expansion.mjs +30 -28
- package/fesm2022/ngstarter-ui-components-expansion.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-file-type.mjs +18 -11
- package/fesm2022/ngstarter-ui-components-file-type.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-filter-builder.mjs +35 -25
- package/fesm2022/ngstarter-ui-components-filter-builder.mjs.map +1 -1
- package/fesm2022/{ngstarter-ui-components-form-builder-plain-text-settings-C69NYW8R.mjs → ngstarter-ui-components-form-builder-plain-text-settings-GNXKGonc.mjs} +19 -12
- package/fesm2022/{ngstarter-ui-components-form-builder-plain-text-settings-C69NYW8R.mjs.map → ngstarter-ui-components-form-builder-plain-text-settings-GNXKGonc.mjs.map} +1 -1
- package/fesm2022/ngstarter-ui-components-form-builder.mjs +328 -181
- package/fesm2022/ngstarter-ui-components-form-builder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-form-field.mjs +105 -66
- package/fesm2022/ngstarter-ui-components-form-field.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-gauge.mjs +11 -11
- package/fesm2022/ngstarter-ui-components-gauge.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-grid.mjs +15 -11
- package/fesm2022/ngstarter-ui-components-grid.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-guided-tour.mjs +56 -36
- package/fesm2022/ngstarter-ui-components-guided-tour.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-headless-stepper.mjs +32 -19
- package/fesm2022/ngstarter-ui-components-headless-stepper.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-icon.mjs +21 -10
- package/fesm2022/ngstarter-ui-components-icon.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-image-designer.mjs +136 -76
- package/fesm2022/ngstarter-ui-components-image-designer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-image-placeholder.mjs +6 -6
- package/fesm2022/ngstarter-ui-components-image-placeholder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-image-resizer.mjs +18 -14
- package/fesm2022/ngstarter-ui-components-image-resizer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-image-viewer.mjs +41 -31
- package/fesm2022/ngstarter-ui-components-image-viewer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs +25 -19
- package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-incidents.mjs +69 -64
- package/fesm2022/ngstarter-ui-components-incidents.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs +12 -8
- package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-input-mask.mjs +15 -12
- package/fesm2022/ngstarter-ui-components-input-mask.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-input.mjs +19 -11
- package/fesm2022/ngstarter-ui-components-input.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-kanban-board.mjs +19 -15
- package/fesm2022/ngstarter-ui-components-kanban-board.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-kbd.mjs +11 -11
- package/fesm2022/ngstarter-ui-components-kbd.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-layout.mjs +45 -43
- package/fesm2022/ngstarter-ui-components-layout.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-list.mjs +52 -49
- package/fesm2022/ngstarter-ui-components-list.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-logo.mjs +21 -20
- package/fesm2022/ngstarter-ui-components-logo.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-marquee.mjs +13 -11
- package/fesm2022/ngstarter-ui-components-marquee.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-menu.mjs +75 -57
- package/fesm2022/ngstarter-ui-components-menu.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-micro-chart.mjs +63 -45
- package/fesm2022/ngstarter-ui-components-micro-chart.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-motion.mjs +6 -6
- package/fesm2022/ngstarter-ui-components-navigation.mjs +83 -62
- package/fesm2022/ngstarter-ui-components-navigation.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-notifications.mjs +73 -49
- package/fesm2022/ngstarter-ui-components-notifications.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-number-input.mjs +39 -28
- package/fesm2022/ngstarter-ui-components-number-input.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-option.mjs +22 -17
- package/fesm2022/ngstarter-ui-components-option.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs +6 -6
- package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-paginator.mjs +7 -7
- package/fesm2022/ngstarter-ui-components-paginator.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-panel.mjs +47 -42
- package/fesm2022/ngstarter-ui-components-panel.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-password-strength.mjs +39 -27
- package/fesm2022/ngstarter-ui-components-password-strength.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-pdf-builder.mjs +170 -90
- package/fesm2022/ngstarter-ui-components-pdf-builder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-pdf-signer.mjs +62 -33
- package/fesm2022/ngstarter-ui-components-pdf-signer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs +125 -70
- package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-phone-input.mjs +51 -32
- package/fesm2022/ngstarter-ui-components-phone-input.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-pin-input.mjs +22 -16
- package/fesm2022/ngstarter-ui-components-pin-input.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-popover.mjs +27 -20
- package/fesm2022/ngstarter-ui-components-popover.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-progress-bar.mjs +16 -10
- package/fesm2022/ngstarter-ui-components-progress-bar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-radio-card.mjs +28 -24
- package/fesm2022/ngstarter-ui-components-radio-card.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-radio.mjs +27 -18
- package/fesm2022/ngstarter-ui-components-radio.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-rail-nav.mjs +19 -17
- package/fesm2022/ngstarter-ui-components-rail-nav.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-resizable-container.mjs +6 -5
- package/fesm2022/ngstarter-ui-components-resizable-container.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-screen-loader.mjs +11 -10
- package/fesm2022/ngstarter-ui-components-screen-loader.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-scroll-spy.mjs +29 -27
- package/fesm2022/ngstarter-ui-components-scroll-spy.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs +75 -41
- package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-segmented.mjs +21 -18
- package/fesm2022/ngstarter-ui-components-segmented.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-select.mjs +121 -79
- package/fesm2022/ngstarter-ui-components-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-side-panel.mjs +35 -23
- package/fesm2022/ngstarter-ui-components-side-panel.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-sidebar.mjs +105 -94
- package/fesm2022/ngstarter-ui-components-sidebar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-sidenav.mjs +47 -33
- package/fesm2022/ngstarter-ui-components-sidenav.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-signature-pad.mjs +56 -32
- package/fesm2022/ngstarter-ui-components-signature-pad.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-skeleton.mjs +6 -6
- package/fesm2022/ngstarter-ui-components-skeleton.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-slide-toggle.mjs +21 -15
- package/fesm2022/ngstarter-ui-components-slide-toggle.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-slider.mjs +27 -20
- package/fesm2022/ngstarter-ui-components-slider.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-snack-bar.mjs +17 -14
- package/fesm2022/ngstarter-ui-components-snack-bar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-sort.mjs +13 -12
- package/fesm2022/ngstarter-ui-components-sort.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-spinner.mjs +15 -12
- package/fesm2022/ngstarter-ui-components-spinner.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-splash-screen.mjs +6 -6
- package/fesm2022/ngstarter-ui-components-splash-screen.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-split.mjs +18 -12
- package/fesm2022/ngstarter-ui-components-split.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-step-tracker.mjs +48 -35
- package/fesm2022/ngstarter-ui-components-step-tracker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-stepper.mjs +33 -34
- package/fesm2022/ngstarter-ui-components-stepper.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-suggestions.mjs +23 -22
- package/fesm2022/ngstarter-ui-components-suggestions.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tab-panel.mjs +64 -61
- package/fesm2022/ngstarter-ui-components-tab-panel.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-table.mjs +68 -73
- package/fesm2022/ngstarter-ui-components-table.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tabs.mjs +74 -49
- package/fesm2022/ngstarter-ui-components-tabs.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-text-editor.mjs +131 -110
- package/fesm2022/ngstarter-ui-components-text-editor.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs +19 -14
- package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tiles.mjs +43 -29
- package/fesm2022/ngstarter-ui-components-tiles.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-timeline.mjs +48 -47
- package/fesm2022/ngstarter-ui-components-timeline.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-timepicker.mjs +29 -23
- package/fesm2022/ngstarter-ui-components-timepicker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-timezone-select.mjs +26 -17
- package/fesm2022/ngstarter-ui-components-timezone-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-toolbar.mjs +55 -47
- package/fesm2022/ngstarter-ui-components-toolbar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tooltip.mjs +8 -8
- package/fesm2022/ngstarter-ui-components-tree.mjs +56 -42
- package/fesm2022/ngstarter-ui-components-tree.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-upload.mjs +94 -78
- package/fesm2022/ngstarter-ui-components-upload.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-video-player.mjs +43 -25
- package/fesm2022/ngstarter-ui-components-video-player.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-video-viewer.mjs +45 -33
- package/fesm2022/ngstarter-ui-components-video-viewer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-visual-builder.mjs +5 -5
- package/fesm2022/ngstarter-ui-components-visual-builder.mjs.map +1 -1
- package/package.json +13 -16
- package/schematics/utils.js +0 -1
- package/schematics/utils.js.map +1 -1
- package/styles/_common.scss +20 -20
- package/styles/_tokens.scss +132 -556
- package/styles/themes/_default-components.scss +492 -0
- package/styles/themes/chalk.scss +400 -0
- package/styles/themes/default.scss +360 -0
- package/types/ngstarter-ui-components-announcement.d.ts +1 -1
- package/types/ngstarter-ui-components-bottom-sheet.d.ts +1 -1
- package/types/ngstarter-ui-components-button-toggle.d.ts +1 -1
- package/types/ngstarter-ui-components-checkbox.d.ts +3 -2
- package/types/ngstarter-ui-components-code-highlighter.d.ts +1 -2
- package/types/ngstarter-ui-components-confirm.d.ts +1 -1
- package/types/ngstarter-ui-components-core.d.ts +42 -31
- package/types/ngstarter-ui-components-datepicker.d.ts +2 -2
- package/types/ngstarter-ui-components-dialog.d.ts +1 -1
- package/types/ngstarter-ui-components-expansion.d.ts +3 -2
- package/types/ngstarter-ui-components-form-field.d.ts +15 -5
- package/types/ngstarter-ui-components-guided-tour.d.ts +1 -1
- package/types/ngstarter-ui-components-icon.d.ts +2 -1
- package/types/ngstarter-ui-components-image-designer.d.ts +1 -1
- package/types/ngstarter-ui-components-layout.d.ts +1 -1
- package/types/ngstarter-ui-components-list.d.ts +3 -2
- package/types/ngstarter-ui-components-navigation.d.ts +3 -1
- package/types/ngstarter-ui-components-notifications.d.ts +8 -2
- package/types/ngstarter-ui-components-paginator.d.ts +1 -1
- package/types/ngstarter-ui-components-pdf-viewer.d.ts +1 -1
- package/types/ngstarter-ui-components-screen-loader.d.ts +1 -1
- package/types/ngstarter-ui-components-sidebar.d.ts +8 -6
- package/types/ngstarter-ui-components-snack-bar.d.ts +1 -1
- package/types/ngstarter-ui-components-stepper.d.ts +0 -1
- package/types/ngstarter-ui-components-tab-panel.d.ts +1 -1
- package/types/ngstarter-ui-components-table.d.ts +1 -4
- package/types/ngstarter-ui-components-tiles.d.ts +1 -1
- package/types/ngstarter-ui-components-timepicker.d.ts +1 -1
- package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-CLfzSb69.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-C_iRTCPH.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-embed-block-BMBObSRE.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-DL9PehLX.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-DJWItlMf.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-Be8dDH3z.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-DxE2SXVt.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-fade.mjs +0 -35
- package/fesm2022/ngstarter-ui-components-content-fade.mjs.map +0 -1
- package/styles/themes/compact.scss +0 -8
- package/styles/themes/modern.scss +0 -346
- package/types/ngstarter-ui-components-content-fade.d.ts +0 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngstarter-ui-components-logo.mjs","sources":["../../../projects/components/logo/src/logo/logo.ts","../../../projects/components/logo/src/logo/logo.html","../../../projects/components/logo/src/logo-shape/logo-shape.ts","../../../projects/components/logo/src/logo-shape/logo-shape.html","../../../projects/components/logo/src/logo-text/logo-text.ts","../../../projects/components/logo/src/logo-text/logo-text.html","../../../projects/components/logo/src/logo-description/logo-description.ts","../../../projects/components/logo/src/logo-description/logo-description.html","../../../projects/components/logo/ngstarter-ui-components-logo.ts"],"sourcesContent":["import { Component } from '@angular/core';\n\n@Component({\n selector: 'ngs-logo,[ngs-logo]',\n exportAs: 'ngsLogo',\n imports: [],\n templateUrl: './logo.html',\n styleUrl: './logo.scss',\n host: {\n 'class': 'ngs-logo',\n }\n})\nexport class Logo {\n\n}\n","<ng-content select=\"ngs-logo-shape\"/>\n<div class=\"content\">\n <ng-content/>\n <ng-content select=\"ngs-logo-text\"/>\n <ng-content select=\"ngs-logo-description\"/>\n</div>\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'ngs-logo-shape',\n imports: [],\n templateUrl: './logo-shape.html',\n styleUrl: './logo-shape.scss',\n})\nexport class LogoShape {\n\n}\n","<ng-content select=\"img\"/>\n","import { Component, input } from '@angular/core';\nimport { LogoTextSize } from '../types';\n\n@Component({\n selector: 'ngs-logo-text',\n exportAs: 'ngsLogoText',\n templateUrl: './logo-text.html',\n styleUrl: './logo-text.scss',\n host: {\n 'class': 'ngs-logo-text',\n '[attr.data-size]': 'size()',\n }\n})\nexport class LogoText {\n readonly size = input<LogoTextSize>('default');\n}\n","<ng-content/>\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'ngs-logo-description',\n imports: [],\n templateUrl: './logo-description.html',\n styleUrl: './logo-description.scss',\n})\nexport class LogoDescription {\n\n}\n","<ng-content/>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ngstarter-ui-components-logo.mjs","sources":["../../../projects/components/logo/src/logo/logo.ts","../../../projects/components/logo/src/logo/logo.html","../../../projects/components/logo/src/logo-shape/logo-shape.ts","../../../projects/components/logo/src/logo-shape/logo-shape.html","../../../projects/components/logo/src/logo-text/logo-text.ts","../../../projects/components/logo/src/logo-text/logo-text.html","../../../projects/components/logo/src/logo-description/logo-description.ts","../../../projects/components/logo/src/logo-description/logo-description.html","../../../projects/components/logo/ngstarter-ui-components-logo.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\n\n@Component({\n selector: 'ngs-logo,[ngs-logo]',\n exportAs: 'ngsLogo',\n imports: [],\n templateUrl: './logo.html',\n styleUrl: './logo.scss',\n changeDetection: ChangeDetectionStrategy.Eager,\n host: {\n 'class': 'ngs-logo',\n }\n})\nexport class Logo {\n\n}\n","<ng-content select=\"ngs-logo-shape\"/>\n<div class=\"content\">\n <ng-content/>\n <ng-content select=\"ngs-logo-text\"/>\n <ng-content select=\"ngs-logo-description\"/>\n</div>\n","import { Component, ChangeDetectionStrategy } from '@angular/core';\n\n@Component({\n selector: 'ngs-logo-shape',\n imports: [],\n templateUrl: './logo-shape.html',\n changeDetection: ChangeDetectionStrategy.Eager,\n styleUrl: './logo-shape.scss',\n})\nexport class LogoShape {\n\n}\n","<ng-content select=\"img\"/>\n","import { Component, input, ChangeDetectionStrategy } from '@angular/core';\nimport { LogoTextSize } from '../types';\n\n@Component({\n selector: 'ngs-logo-text',\n exportAs: 'ngsLogoText',\n templateUrl: './logo-text.html',\n styleUrl: './logo-text.scss',\n changeDetection: ChangeDetectionStrategy.Eager,\n host: {\n 'class': 'ngs-logo-text',\n '[attr.data-size]': 'size()',\n }\n})\nexport class LogoText {\n readonly size = input<LogoTextSize>('default');\n}\n","<ng-content/>\n","import { Component, ChangeDetectionStrategy } from '@angular/core';\n\n@Component({\n selector: 'ngs-logo-description',\n imports: [],\n templateUrl: './logo-description.html',\n changeDetection: ChangeDetectionStrategy.Eager,\n styleUrl: './logo-description.scss',\n})\nexport class Logo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AAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,sBAAsB,EAAA,OAAA,EACvB,EAAE,EAAA,eAAA,EAEM,uBAAuB,CAAC,KAAK,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,CAAA,2IAAA,CAAA,EAAA;;;AENhD;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, ElementRef, PLATFORM_ID, input, booleanAttribute, viewChild, Component, Directive } from '@angular/core';
|
|
2
|
+
import { inject, ElementRef, PLATFORM_ID, input, booleanAttribute, viewChild, ChangeDetectionStrategy, Component, Directive } from '@angular/core';
|
|
3
3
|
import { isPlatformServer } from '@angular/common';
|
|
4
4
|
|
|
5
5
|
class Marquee {
|
|
@@ -12,8 +12,10 @@ class Marquee {
|
|
|
12
12
|
reverse = input(false, { ...(ngDevMode ? { debugName: "reverse" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
13
13
|
pauseOnHover = input(false, { ...(ngDevMode ? { debugName: "pauseOnHover" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
14
14
|
isInView = false;
|
|
15
|
-
track = viewChild.required('track'
|
|
16
|
-
|
|
15
|
+
track = viewChild.required('track', /* @ts-ignore */
|
|
16
|
+
...(ngDevMode ? [{ debugName: "track" }] : /* istanbul ignore next */ []));
|
|
17
|
+
sourceItem = viewChild.required('sourceItem', /* @ts-ignore */
|
|
18
|
+
...(ngDevMode ? [{ debugName: "sourceItem" }] : /* istanbul ignore next */ []));
|
|
17
19
|
get nativeElement() {
|
|
18
20
|
return this._elementRef.nativeElement;
|
|
19
21
|
}
|
|
@@ -112,14 +114,14 @@ class Marquee {
|
|
|
112
114
|
clone.setAttribute('inert', '');
|
|
113
115
|
return clone;
|
|
114
116
|
}
|
|
115
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
116
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
117
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: Marquee, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
118
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.7", type: Marquee, isStandalone: true, selector: "ngs-marquee", inputs: { reverse: { classPropertyName: "reverse", publicName: "reverse", isSignal: true, isRequired: false, transformFunction: null }, pauseOnHover: { classPropertyName: "pauseOnHover", publicName: "pauseOnHover", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "ngs-marquee" }, viewQueries: [{ propertyName: "track", first: true, predicate: ["track"], descendants: true, isSignal: true }, { propertyName: "sourceItem", first: true, predicate: ["sourceItem"], descendants: true, isSignal: true }], exportAs: ["ngsMarquee"], usesOnChanges: true, ngImport: i0, template: "<div class=\"content\" [class.out-of-view]=\"!isInView\">\n <div #track class=\"track\">\n <div #sourceItem class=\"item\">\n <ng-content/>\n </div>\n </div>\n</div>\n", styles: [":host{--ngs-marquee-animation-duration: 20s;--ngs-marquee-gap: calc(var(--spacing, .25rem) * 6);--ngs-marquee-repeat-gap: var(--ngs-marquee-gap);--ngs-marquee-item-width: 0px;--ngs-marquee-reverse: ;--ngs-marquee-pause: running;display:block;width:100%}:host .content{width:100%;height:100%;overflow:hidden;padding:.5rem}:host .content .track{display:flex;gap:var(--ngs-marquee-repeat-gap);width:max-content;animation:ngs-marquee-animation var(--ngs-marquee-animation-duration) infinite linear var(--ngs-marquee-reverse);will-change:transform}:host .content .item{display:flex;flex-shrink:0;white-space:nowrap}:host .content:hover .track{animation-play-state:var(--ngs-marquee-pause)}:host .content.out-of-view .track{animation-play-state:paused}:host .invisible{width:0;height:0;display:none;pointer-events:none}@keyframes ngs-marquee-animation{0%{transform:translate(0)}to{transform:translate(calc((var(--ngs-marquee-item-width) + var(--ngs-marquee-repeat-gap)) * -1))}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.Eager });
|
|
117
119
|
}
|
|
118
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: Marquee, decorators: [{
|
|
119
121
|
type: Component,
|
|
120
|
-
args: [{ selector: 'ngs-marquee', exportAs: 'ngsMarquee', host: {
|
|
122
|
+
args: [{ selector: 'ngs-marquee', exportAs: 'ngsMarquee', changeDetection: ChangeDetectionStrategy.Eager, host: {
|
|
121
123
|
'class': 'ngs-marquee'
|
|
122
|
-
}, template: "<div class=\"content\" [class.out-of-view]=\"!isInView\">\n <div #track class=\"track\">\n <div #sourceItem class=\"item\">\n <ng-content/>\n </div>\n </div>\n</div>\n", styles: [":host{--ngs-marquee-animation-duration: 20s;--ngs-marquee-gap: calc(var(--spacing, .25rem) * 6);--ngs-marquee-repeat-gap: var(--ngs-marquee-gap);--ngs-marquee-item-width: 0px;--ngs-marquee-reverse: ;--ngs-marquee-pause: running;display:block;width:100%}:host .content{width:100%;height:100%;overflow:hidden;padding:.5rem}:host .content .track{display:flex;gap:var(--ngs-marquee-repeat-gap);width:max-content;animation:ngs-marquee-animation var(--ngs-marquee-animation-duration) infinite linear var(--ngs-marquee-reverse);will-change:transform}:host .content .item{display:flex;flex-shrink:0;white-space:nowrap}:host .content:hover .track{animation-play-state:var(--ngs-marquee-pause)}:host .content.out-of-view .track{animation-play-state:paused}:host .invisible{width:0;height:0;display:none;pointer-events:none}@keyframes ngs-marquee-animation{0%{transform:translate(0)}to{transform:translate(calc((var(--ngs-marquee-item-width) + var(--ngs-marquee-repeat-gap)) * -1))}}\n/*! tailwindcss v4.
|
|
124
|
+
}, template: "<div class=\"content\" [class.out-of-view]=\"!isInView\">\n <div #track class=\"track\">\n <div #sourceItem class=\"item\">\n <ng-content/>\n </div>\n </div>\n</div>\n", styles: [":host{--ngs-marquee-animation-duration: 20s;--ngs-marquee-gap: calc(var(--spacing, .25rem) * 6);--ngs-marquee-repeat-gap: var(--ngs-marquee-gap);--ngs-marquee-item-width: 0px;--ngs-marquee-reverse: ;--ngs-marquee-pause: running;display:block;width:100%}:host .content{width:100%;height:100%;overflow:hidden;padding:.5rem}:host .content .track{display:flex;gap:var(--ngs-marquee-repeat-gap);width:max-content;animation:ngs-marquee-animation var(--ngs-marquee-animation-duration) infinite linear var(--ngs-marquee-reverse);will-change:transform}:host .content .item{display:flex;flex-shrink:0;white-space:nowrap}:host .content:hover .track{animation-play-state:var(--ngs-marquee-pause)}:host .content.out-of-view .track{animation-play-state:paused}:host .invisible{width:0;height:0;display:none;pointer-events:none}@keyframes ngs-marquee-animation{0%{transform:translate(0)}to{transform:translate(calc((var(--ngs-marquee-item-width) + var(--ngs-marquee-repeat-gap)) * -1))}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
|
|
123
125
|
}], propDecorators: { reverse: [{ type: i0.Input, args: [{ isSignal: true, alias: "reverse", required: false }] }], pauseOnHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "pauseOnHover", required: false }] }], track: [{ type: i0.ViewChild, args: ['track', { isSignal: true }] }], sourceItem: [{ type: i0.ViewChild, args: ['sourceItem', { isSignal: true }] }] } });
|
|
124
126
|
|
|
125
127
|
class MarqueeItemDirective {
|
|
@@ -127,10 +129,10 @@ class MarqueeItemDirective {
|
|
|
127
129
|
get nativeElement() {
|
|
128
130
|
return this._elementRef.nativeElement;
|
|
129
131
|
}
|
|
130
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
131
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
132
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: MarqueeItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
133
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: MarqueeItemDirective, isStandalone: true, selector: "[ngsMarqueeItem]", ngImport: i0 });
|
|
132
134
|
}
|
|
133
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: MarqueeItemDirective, decorators: [{
|
|
134
136
|
type: Directive,
|
|
135
137
|
args: [{
|
|
136
138
|
selector: '[ngsMarqueeItem]',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngstarter-ui-components-marquee.mjs","sources":["../../../projects/components/marquee/src/marquee/marquee.ts","../../../projects/components/marquee/src/marquee/marquee.html","../../../projects/components/marquee/src/marquee-item.directive.ts","../../../projects/components/marquee/ngstarter-ui-components-marquee.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n input,\n viewChild,\n AfterViewInit,\n inject,\n PLATFORM_ID,\n booleanAttribute,\n OnChanges,\n SimpleChanges,\n OnDestroy\n} from '@angular/core';\nimport { isPlatformServer } from '@angular/common';\n\n@Component({\n selector: 'ngs-marquee',\n exportAs: 'ngsMarquee',\n templateUrl: './marquee.html',\n styleUrl: './marquee.scss',\n host: {\n 'class': 'ngs-marquee'\n }\n})\nexport class Marquee implements AfterViewInit, OnChanges, OnDestroy {\n private _elementRef = inject(ElementRef);\n private _platformId = inject(PLATFORM_ID);\n private _intersectionObserver?: IntersectionObserver;\n private _resizeObserver?: ResizeObserver;\n private _mutationObserver?: MutationObserver;\n private _measureFrame = 0;\n\n reverse = input(false, {\n transform: booleanAttribute\n });\n pauseOnHover = input(false, {\n transform: booleanAttribute\n });\n\n protected isInView = false;\n\n readonly track = viewChild.required<ElementRef<HTMLElement>>('track');\n readonly sourceItem = viewChild.required<ElementRef<HTMLElement>>('sourceItem');\n\n protected get nativeElement(): HTMLElement {\n return this._elementRef.nativeElement;\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes['reverse']) {\n this.nativeElement.style.setProperty('--ngs-marquee-reverse', changes['reverse'].currentValue ? 'reverse' : '');\n }\n\n if (changes['pauseOnHover']) {\n this.nativeElement.style.setProperty('--ngs-marquee-pause', changes['pauseOnHover'].currentValue ? 'paused' : 'running');\n }\n }\n\n ngAfterViewInit(): void {\n if (isPlatformServer(this._platformId)) {\n return;\n }\n\n this._intersectionObserver = new IntersectionObserver(([entry]) => {\n if (entry.isIntersecting) {\n if (!this.isInView) {\n this.isInView = true;\n }\n } else if (this.isInView) {\n this.isInView = false;\n }\n });\n this._intersectionObserver.observe(this.nativeElement);\n\n if (typeof ResizeObserver !== 'undefined') {\n this._resizeObserver = new ResizeObserver(() => {\n this._queueRepeatMeasure();\n });\n this._resizeObserver.observe(this.nativeElement);\n this._resizeObserver.observe(this.sourceItem().nativeElement);\n }\n\n if (typeof MutationObserver !== 'undefined') {\n this._mutationObserver = new MutationObserver(() => {\n this._queueRepeatMeasure();\n });\n this._mutationObserver.observe(this.sourceItem().nativeElement, {\n attributes: true,\n characterData: true,\n childList: true,\n subtree: true\n });\n }\n\n this._queueRepeatMeasure();\n }\n\n ngOnDestroy(): void {\n if (this._intersectionObserver) {\n this._intersectionObserver.disconnect();\n }\n\n if (this._resizeObserver) {\n this._resizeObserver.disconnect();\n }\n\n if (this._mutationObserver) {\n this._mutationObserver.disconnect();\n }\n\n if (this._measureFrame) {\n cancelAnimationFrame(this._measureFrame);\n }\n }\n\n private _queueRepeatMeasure(): void {\n if (this._measureFrame) {\n cancelAnimationFrame(this._measureFrame);\n }\n\n this._measureFrame = requestAnimationFrame(() => {\n this._measureFrame = 0;\n this._syncRepeatItems();\n });\n }\n\n private _syncRepeatItems(): void {\n const viewport = this.nativeElement.querySelector<HTMLElement>('.content');\n const item = this.sourceItem().nativeElement;\n\n if (!viewport) {\n return;\n }\n\n const viewportWidth = viewport.getBoundingClientRect().width;\n const itemWidth = item.getBoundingClientRect().width;\n\n if (viewportWidth <= 0 || itemWidth <= 0) {\n return;\n }\n\n const repeatGap = Math.max(0, viewportWidth - itemWidth);\n\n this.nativeElement.style.setProperty('--ngs-marquee-item-width', `${itemWidth}px`);\n this.nativeElement.style.setProperty('--ngs-marquee-repeat-gap', `${repeatGap}px`);\n this._renderClone();\n }\n\n private _renderClone(): void {\n const track = this.track().nativeElement;\n const sourceItem = this.sourceItem().nativeElement;\n\n track.querySelectorAll('[data-ngs-marquee-clone]').forEach(clone => clone.remove());\n\n track.appendChild(this._createItemClone(sourceItem));\n }\n\n private _createItemClone(sourceItem: HTMLElement): HTMLElement {\n const clone = sourceItem.cloneNode(true) as HTMLElement;\n\n clone.dataset['ngsMarqueeClone'] = 'true';\n clone.setAttribute('aria-hidden', 'true');\n clone.setAttribute('inert', '');\n\n return clone;\n }\n}\n","<div class=\"content\" [class.out-of-view]=\"!isInView\">\n <div #track class=\"track\">\n <div #sourceItem class=\"item\">\n <ng-content/>\n </div>\n </div>\n</div>\n","import { Directive, ElementRef, inject } from '@angular/core';\n\n@Directive({\n selector: '[ngsMarqueeItem]',\n standalone: true\n})\nexport class MarqueeItemDirective {\n private _elementRef = inject(ElementRef);\n\n get nativeElement(): HTMLElement {\n return this._elementRef.nativeElement;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAwBa,OAAO,CAAA;AACV,IAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC;AAChC,IAAA,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;AACjC,IAAA,qBAAqB;AACrB,IAAA,eAAe;AACf,IAAA,iBAAiB;IACjB,aAAa,GAAG,CAAC;IAEzB,OAAO,GAAG,KAAK,CAAC,KAAK,+EACnB,SAAS,EAAE,gBAAgB,EAAA,CAC3B;IACF,YAAY,GAAG,KAAK,CAAC,KAAK,oFACxB,SAAS,EAAE,gBAAgB,EAAA,CAC3B;IAEQ,QAAQ,GAAG,KAAK;AAEjB,IAAA,KAAK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AA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAAA,OAAO,oEACF,YAAY,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;MEpCnE,oBAAoB,CAAA;AACvB,IAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC;AAExC,IAAA,IAAI,aAAa,GAAA;AACf,QAAA,OAAO,IAAI,CAAC,WAAW,CAAC,aAAa;IACvC;uGALW,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAApB,oBAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACLD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngstarter-ui-components-marquee.mjs","sources":["../../../projects/components/marquee/src/marquee/marquee.ts","../../../projects/components/marquee/src/marquee/marquee.html","../../../projects/components/marquee/src/marquee-item.directive.ts","../../../projects/components/marquee/ngstarter-ui-components-marquee.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n input,\n viewChild,\n AfterViewInit,\n inject,\n PLATFORM_ID,\n booleanAttribute,\n OnChanges,\n SimpleChanges,\n OnDestroy,\n ChangeDetectionStrategy\n} from '@angular/core';\nimport { isPlatformServer } from '@angular/common';\n\n@Component({\n selector: 'ngs-marquee',\n exportAs: 'ngsMarquee',\n templateUrl: './marquee.html',\n styleUrl: './marquee.scss',\n changeDetection: ChangeDetectionStrategy.Eager,\n host: {\n 'class': 'ngs-marquee'\n }\n})\nexport class Marquee implements AfterViewInit, OnChanges, OnDestroy {\n private _elementRef = inject(ElementRef);\n private _platformId = inject(PLATFORM_ID);\n private _intersectionObserver?: IntersectionObserver;\n private _resizeObserver?: ResizeObserver;\n private _mutationObserver?: MutationObserver;\n private _measureFrame = 0;\n\n reverse = input(false, {\n transform: booleanAttribute\n });\n pauseOnHover = input(false, {\n transform: booleanAttribute\n });\n\n protected isInView = false;\n\n readonly track = viewChild.required<ElementRef<HTMLElement>>('track');\n readonly sourceItem = viewChild.required<ElementRef<HTMLElement>>('sourceItem');\n\n protected get nativeElement(): HTMLElement {\n return this._elementRef.nativeElement;\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes['reverse']) {\n this.nativeElement.style.setProperty('--ngs-marquee-reverse', changes['reverse'].currentValue ? 'reverse' : '');\n }\n\n if (changes['pauseOnHover']) {\n this.nativeElement.style.setProperty('--ngs-marquee-pause', changes['pauseOnHover'].currentValue ? 'paused' : 'running');\n }\n }\n\n ngAfterViewInit(): void {\n if (isPlatformServer(this._platformId)) {\n return;\n }\n\n this._intersectionObserver = new IntersectionObserver(([entry]) => {\n if (entry.isIntersecting) {\n if (!this.isInView) {\n this.isInView = true;\n }\n } else if (this.isInView) {\n this.isInView = false;\n }\n });\n this._intersectionObserver.observe(this.nativeElement);\n\n if (typeof ResizeObserver !== 'undefined') {\n this._resizeObserver = new ResizeObserver(() => {\n this._queueRepeatMeasure();\n });\n this._resizeObserver.observe(this.nativeElement);\n this._resizeObserver.observe(this.sourceItem().nativeElement);\n }\n\n if (typeof MutationObserver !== 'undefined') {\n this._mutationObserver = new MutationObserver(() => {\n this._queueRepeatMeasure();\n });\n this._mutationObserver.observe(this.sourceItem().nativeElement, {\n attributes: true,\n characterData: true,\n childList: true,\n subtree: true\n });\n }\n\n this._queueRepeatMeasure();\n }\n\n ngOnDestroy(): void {\n if (this._intersectionObserver) {\n this._intersectionObserver.disconnect();\n }\n\n if (this._resizeObserver) {\n this._resizeObserver.disconnect();\n }\n\n if (this._mutationObserver) {\n this._mutationObserver.disconnect();\n }\n\n if (this._measureFrame) {\n cancelAnimationFrame(this._measureFrame);\n }\n }\n\n private _queueRepeatMeasure(): void {\n if (this._measureFrame) {\n cancelAnimationFrame(this._measureFrame);\n }\n\n this._measureFrame = requestAnimationFrame(() => {\n this._measureFrame = 0;\n this._syncRepeatItems();\n });\n }\n\n private _syncRepeatItems(): void {\n const viewport = this.nativeElement.querySelector<HTMLElement>('.content');\n const item = this.sourceItem().nativeElement;\n\n if (!viewport) {\n return;\n }\n\n const viewportWidth = viewport.getBoundingClientRect().width;\n const itemWidth = item.getBoundingClientRect().width;\n\n if (viewportWidth <= 0 || itemWidth <= 0) {\n return;\n }\n\n const repeatGap = Math.max(0, viewportWidth - itemWidth);\n\n this.nativeElement.style.setProperty('--ngs-marquee-item-width', `${itemWidth}px`);\n this.nativeElement.style.setProperty('--ngs-marquee-repeat-gap', `${repeatGap}px`);\n this._renderClone();\n }\n\n private _renderClone(): void {\n const track = this.track().nativeElement;\n const sourceItem = this.sourceItem().nativeElement;\n\n track.querySelectorAll('[data-ngs-marquee-clone]').forEach(clone => clone.remove());\n\n track.appendChild(this._createItemClone(sourceItem));\n }\n\n private _createItemClone(sourceItem: HTMLElement): HTMLElement {\n const clone = sourceItem.cloneNode(true) as HTMLElement;\n\n clone.dataset['ngsMarqueeClone'] = 'true';\n clone.setAttribute('aria-hidden', 'true');\n clone.setAttribute('inert', '');\n\n return clone;\n }\n}\n","<div class=\"content\" [class.out-of-view]=\"!isInView\">\n <div #track class=\"track\">\n <div #sourceItem class=\"item\">\n <ng-content/>\n </div>\n </div>\n</div>\n","import { Directive, ElementRef, inject } from '@angular/core';\n\n@Directive({\n selector: '[ngsMarqueeItem]',\n standalone: true\n})\nexport class MarqueeItemDirective {\n private _elementRef = inject(ElementRef);\n\n get nativeElement(): HTMLElement {\n return this._elementRef.nativeElement;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MA0Ba,OAA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@ class MenuItem {
|
|
|
17
17
|
_injector = inject(Injector);
|
|
18
18
|
_menuTrigger = null;
|
|
19
19
|
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
20
|
-
role = input('menuitem',
|
|
20
|
+
role = input('menuitem', /* @ts-ignore */
|
|
21
|
+
...(ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []));
|
|
21
22
|
selected = input(false, { ...(ngDevMode ? { debugName: "selected" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
22
23
|
_triggered = output();
|
|
23
24
|
_elementRef = inject((ElementRef));
|
|
@@ -50,16 +51,17 @@ class MenuItem {
|
|
|
50
51
|
this._menu._triggerOpened(null);
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
|
-
_isHighlighted = signal(false,
|
|
54
|
-
|
|
55
|
-
static
|
|
54
|
+
_isHighlighted = signal(false, /* @ts-ignore */
|
|
55
|
+
...(ngDevMode ? [{ debugName: "_isHighlighted" }] : /* istanbul ignore next */ []));
|
|
56
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: MenuItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
57
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: MenuItem, isStandalone: true, selector: "ngs-menu-item, [ngs-menu-item]", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { _triggered: "_triggered" }, host: { listeners: { "click": "_handleClick($event)", "mouseenter": "_handleMouseEnter()" }, properties: { "attr.role": "role()", "class.ngs-menu-item": "true", "class.ngs-menu-item-highlighted": "_isHighlighted() || selected()", "attr.disabled": "disabled() || null", "attr.aria-disabled": "disabled()", "tabindex": "disabled() ? -1 : 0" } }, providers: [
|
|
56
58
|
{
|
|
57
59
|
provide: MENU_ITEM,
|
|
58
60
|
useExisting: forwardRef(() => MenuItem)
|
|
59
61
|
}
|
|
60
|
-
], exportAs: ["ngsMenuItem"], ngImport: i0, template: "<div class=\"icon\">\n <ng-content select=\"ngs-icon\"/>\n</div>\n\n<div class=\"ngs-menu-item-content\">\n <ng-content/>\n</div>\n\n@if (_menuTrigger) {\n <svg class=\"ngs-menu-item-submenu-icon\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <polyline points=\"9 18 15 12 9 6\"></polyline>\n </svg>\n}\n", styles: [":host{display:flex;align-items:center;flex:none;min-height:var(--ngs-menu-item-height, var(--ngs-dropdown-height, var(--option-height)));padding:var(--ngs-menu-item-padding, var(--ngs-dropdown-item-padding, 0 calc(var(--spacing, .25rem) * 3)));border-radius:var(--ngs-menu-item-radius, var(--ngs-dropdown-item-radius, var(--ngs-control-radius)));font-size:var(--ngs-menu-item-font-size, var(--ngs-dropdown-item-font-size, var(--ngs-font-size-sm)));font-weight:var(--ngs-menu-item-font-weight, inherit);color:var(--ngs-menu-item-color, var(--ngs-dropdown-item-color, var(--ngs-color-on-surface)));cursor:pointer;-webkit-user-select:none;user-select:none;border:none;background:none;width:100%;text-align:left;box-sizing:border-box;transition:background .1s ease-in-out;outline:none;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;gap:var(--ngs-menu-item-gap, var(--ngs-dropdown-item-gap, calc(var(--spacing, .25rem) * 2.5)))}:host:hover:not([disabled]),:host.ngs-menu-item-highlighted:not([disabled]){background:var(--ngs-menu-item-hover-background, var(--ngs-dropdown-item-hover-bg, var(--ngs-color-surface-container-high)))}:host.ngs-menu-item-active:not([disabled]){background:var(--ngs-menu-item-active-background, var(--ngs-dropdown-item-active-bg, var(--ngs-color-surface-container-highest)))}:host[disabled]{color:var(--ngs-menu-item-disabled-color, var(--ngs-dropdown-item-disabled-color, var(--ngs-color-on-surface-variant)));cursor:default;pointer-events:none}:host .icon{line-height:0;opacity:.75}:host .icon:empty{display:none}:host .ngs-menu-item-content{display:flex;align-items:center;justify-content:space-between;gap:calc(var(--spacing, .25rem) * 2);flex:1}:host .ngs-menu-item-submenu-icon{width:16px;height:16px;margin-left:8px;opacity:.5}\n/*! tailwindcss v4.
|
|
62
|
+
], exportAs: ["ngsMenuItem"], ngImport: i0, template: "<div class=\"icon\">\n <ng-content select=\"ngs-icon\"/>\n</div>\n\n<div class=\"ngs-menu-item-content\">\n <ng-content/>\n</div>\n\n@if (_menuTrigger) {\n <svg class=\"ngs-menu-item-submenu-icon\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <polyline points=\"9 18 15 12 9 6\"></polyline>\n </svg>\n}\n", styles: [":host{display:flex;align-items:center;flex:none;min-height:var(--ngs-menu-item-height, var(--ngs-dropdown-height, var(--option-height)));padding:var(--ngs-menu-item-padding, var(--ngs-dropdown-item-padding, 0 calc(var(--spacing, .25rem) * 3)));border-radius:var(--ngs-menu-item-radius, var(--ngs-dropdown-item-radius, var(--ngs-control-radius)));font-size:var(--ngs-menu-item-font-size, var(--ngs-dropdown-item-font-size, var(--ngs-font-size-sm)));font-weight:var(--ngs-menu-item-font-weight, inherit);color:var(--ngs-menu-item-color, var(--ngs-dropdown-item-color, var(--ngs-color-on-surface)));cursor:pointer;-webkit-user-select:none;user-select:none;border:none;background:none;width:100%;text-align:left;box-sizing:border-box;transition:background .1s ease-in-out;outline:none;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;gap:var(--ngs-menu-item-gap, var(--ngs-dropdown-item-gap, calc(var(--spacing, .25rem) * 2.5)))}:host:hover:not([disabled]),:host.ngs-menu-item-highlighted:not([disabled]){background:var(--ngs-menu-item-hover-background, var(--ngs-dropdown-item-hover-bg, var(--ngs-color-surface-container-high)))}:host.ngs-menu-item-active:not([disabled]){background:var(--ngs-menu-item-active-background, var(--ngs-dropdown-item-active-bg, var(--ngs-color-surface-container-highest)))}:host[disabled]{color:var(--ngs-menu-item-disabled-color, var(--ngs-dropdown-item-disabled-color, var(--ngs-color-on-surface-variant)));cursor:default;pointer-events:none}:host .icon{line-height:0;opacity:.75}:host .icon:empty{display:none}:host .ngs-menu-item-content{display:flex;align-items:center;justify-content:space-between;gap:calc(var(--spacing, .25rem) * 2);flex:1}:host .ngs-menu-item-submenu-icon{width:16px;height:16px;margin-left:8px;opacity:.5}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
61
63
|
}
|
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: MenuItem, decorators: [{
|
|
63
65
|
type: Component,
|
|
64
66
|
args: [{ selector: 'ngs-menu-item, [ngs-menu-item]', exportAs: 'ngsMenuItem', standalone: true, imports: [], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
65
67
|
{
|
|
@@ -75,15 +77,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
75
77
|
'[tabindex]': 'disabled() ? -1 : 0',
|
|
76
78
|
'(click)': '_handleClick($event)',
|
|
77
79
|
'(mouseenter)': '_handleMouseEnter()',
|
|
78
|
-
}, template: "<div class=\"icon\">\n <ng-content select=\"ngs-icon\"/>\n</div>\n\n<div class=\"ngs-menu-item-content\">\n <ng-content/>\n</div>\n\n@if (_menuTrigger) {\n <svg class=\"ngs-menu-item-submenu-icon\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <polyline points=\"9 18 15 12 9 6\"></polyline>\n </svg>\n}\n", styles: [":host{display:flex;align-items:center;flex:none;min-height:var(--ngs-menu-item-height, var(--ngs-dropdown-height, var(--option-height)));padding:var(--ngs-menu-item-padding, var(--ngs-dropdown-item-padding, 0 calc(var(--spacing, .25rem) * 3)));border-radius:var(--ngs-menu-item-radius, var(--ngs-dropdown-item-radius, var(--ngs-control-radius)));font-size:var(--ngs-menu-item-font-size, var(--ngs-dropdown-item-font-size, var(--ngs-font-size-sm)));font-weight:var(--ngs-menu-item-font-weight, inherit);color:var(--ngs-menu-item-color, var(--ngs-dropdown-item-color, var(--ngs-color-on-surface)));cursor:pointer;-webkit-user-select:none;user-select:none;border:none;background:none;width:100%;text-align:left;box-sizing:border-box;transition:background .1s ease-in-out;outline:none;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;gap:var(--ngs-menu-item-gap, var(--ngs-dropdown-item-gap, calc(var(--spacing, .25rem) * 2.5)))}:host:hover:not([disabled]),:host.ngs-menu-item-highlighted:not([disabled]){background:var(--ngs-menu-item-hover-background, var(--ngs-dropdown-item-hover-bg, var(--ngs-color-surface-container-high)))}:host.ngs-menu-item-active:not([disabled]){background:var(--ngs-menu-item-active-background, var(--ngs-dropdown-item-active-bg, var(--ngs-color-surface-container-highest)))}:host[disabled]{color:var(--ngs-menu-item-disabled-color, var(--ngs-dropdown-item-disabled-color, var(--ngs-color-on-surface-variant)));cursor:default;pointer-events:none}:host .icon{line-height:0;opacity:.75}:host .icon:empty{display:none}:host .ngs-menu-item-content{display:flex;align-items:center;justify-content:space-between;gap:calc(var(--spacing, .25rem) * 2);flex:1}:host .ngs-menu-item-submenu-icon{width:16px;height:16px;margin-left:8px;opacity:.5}\n/*! tailwindcss v4.
|
|
80
|
+
}, template: "<div class=\"icon\">\n <ng-content select=\"ngs-icon\"/>\n</div>\n\n<div class=\"ngs-menu-item-content\">\n <ng-content/>\n</div>\n\n@if (_menuTrigger) {\n <svg class=\"ngs-menu-item-submenu-icon\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <polyline points=\"9 18 15 12 9 6\"></polyline>\n </svg>\n}\n", styles: [":host{display:flex;align-items:center;flex:none;min-height:var(--ngs-menu-item-height, var(--ngs-dropdown-height, var(--option-height)));padding:var(--ngs-menu-item-padding, var(--ngs-dropdown-item-padding, 0 calc(var(--spacing, .25rem) * 3)));border-radius:var(--ngs-menu-item-radius, var(--ngs-dropdown-item-radius, var(--ngs-control-radius)));font-size:var(--ngs-menu-item-font-size, var(--ngs-dropdown-item-font-size, var(--ngs-font-size-sm)));font-weight:var(--ngs-menu-item-font-weight, inherit);color:var(--ngs-menu-item-color, var(--ngs-dropdown-item-color, var(--ngs-color-on-surface)));cursor:pointer;-webkit-user-select:none;user-select:none;border:none;background:none;width:100%;text-align:left;box-sizing:border-box;transition:background .1s ease-in-out;outline:none;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;gap:var(--ngs-menu-item-gap, var(--ngs-dropdown-item-gap, calc(var(--spacing, .25rem) * 2.5)))}:host:hover:not([disabled]),:host.ngs-menu-item-highlighted:not([disabled]){background:var(--ngs-menu-item-hover-background, var(--ngs-dropdown-item-hover-bg, var(--ngs-color-surface-container-high)))}:host.ngs-menu-item-active:not([disabled]){background:var(--ngs-menu-item-active-background, var(--ngs-dropdown-item-active-bg, var(--ngs-color-surface-container-highest)))}:host[disabled]{color:var(--ngs-menu-item-disabled-color, var(--ngs-dropdown-item-disabled-color, var(--ngs-color-on-surface-variant)));cursor:default;pointer-events:none}:host .icon{line-height:0;opacity:.75}:host .icon:empty{display:none}:host .ngs-menu-item-content{display:flex;align-items:center;justify-content:space-between;gap:calc(var(--spacing, .25rem) * 2);flex:1}:host .ngs-menu-item-submenu-icon{width:16px;height:16px;margin-left:8px;opacity:.5}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
|
|
79
81
|
}], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], _triggered: [{ type: i0.Output, args: ["_triggered"] }] } });
|
|
80
82
|
|
|
81
83
|
class MenuContent {
|
|
82
84
|
templateRef = inject(TemplateRef);
|
|
83
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
84
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
85
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: MenuContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
86
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: MenuContent, isStandalone: true, selector: "[ngsMenuContent]", ngImport: i0 });
|
|
85
87
|
}
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
88
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: MenuContent, decorators: [{
|
|
87
89
|
type: Directive,
|
|
88
90
|
args: [{
|
|
89
91
|
selector: '[ngsMenuContent]',
|
|
@@ -92,18 +94,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
92
94
|
}] });
|
|
93
95
|
|
|
94
96
|
class Menu {
|
|
95
|
-
role = input('menu',
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
role = input('menu', /* @ts-ignore */
|
|
98
|
+
...(ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []));
|
|
99
|
+
classList = input('', /* @ts-ignore */
|
|
100
|
+
...(ngDevMode ? [{ debugName: "classList" }] : /* istanbul ignore next */ []));
|
|
101
|
+
xPosition = input('after', /* @ts-ignore */
|
|
102
|
+
...(ngDevMode ? [{ debugName: "xPosition" }] : /* istanbul ignore next */ []));
|
|
103
|
+
yPosition = input('below', /* @ts-ignore */
|
|
104
|
+
...(ngDevMode ? [{ debugName: "yPosition" }] : /* istanbul ignore next */ []));
|
|
105
|
+
_panelClasses = signal([], /* @ts-ignore */
|
|
106
|
+
...(ngDevMode ? [{ debugName: "_panelClasses" }] : /* istanbul ignore next */ []));
|
|
100
107
|
closed = output();
|
|
101
108
|
_childMenuClosed = new Subject();
|
|
102
|
-
templateRef = viewChild.required(TemplateRef
|
|
103
|
-
|
|
109
|
+
templateRef = viewChild.required(TemplateRef, /* @ts-ignore */
|
|
110
|
+
...(ngDevMode ? [{ debugName: "templateRef" }] : /* istanbul ignore next */ []));
|
|
111
|
+
content = contentChild(MenuContent, /* @ts-ignore */
|
|
112
|
+
...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
|
|
104
113
|
items = contentChildren(MenuItem, { ...(ngDevMode ? { debugName: "items" } : /* istanbul ignore next */ {}), descendants: true });
|
|
105
|
-
_isNested = signal(false,
|
|
106
|
-
|
|
114
|
+
_isNested = signal(false, /* @ts-ignore */
|
|
115
|
+
...(ngDevMode ? [{ debugName: "_isNested" }] : /* istanbul ignore next */ []));
|
|
116
|
+
_context = signal(undefined, /* @ts-ignore */
|
|
117
|
+
...(ngDevMode ? [{ debugName: "_context" }] : /* istanbul ignore next */ []));
|
|
107
118
|
_parentMenu = inject(Menu, { optional: true, skipSelf: true });
|
|
108
119
|
_parentMenuTrigger = inject(MENU_TRIGGER, { optional: true });
|
|
109
120
|
_itemSubscription = Subscription.EMPTY;
|
|
@@ -153,35 +164,35 @@ class Menu {
|
|
|
153
164
|
hasOpenChild() {
|
|
154
165
|
return !!this._openedTrigger && this._openedTrigger.menuOpen();
|
|
155
166
|
}
|
|
156
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
157
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
167
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: Menu, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
168
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: Menu, isStandalone: true, selector: "ngs-menu", inputs: { role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, classList: { classPropertyName: "classList", publicName: "classList", isSignal: true, isRequired: false, transformFunction: null }, xPosition: { classPropertyName: "xPosition", publicName: "xPosition", isSignal: true, isRequired: false, transformFunction: null }, yPosition: { classPropertyName: "yPosition", publicName: "yPosition", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { properties: { "attr.role": "role()", "class.ngs-menu": "true" } }, queries: [{ propertyName: "content", first: true, predicate: MenuContent, descendants: true, isSignal: true }, { propertyName: "items", predicate: MenuItem, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "templateRef", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], exportAs: ["ngsMenu"], ngImport: i0, template: "<ng-template>\n <div\n class=\"ngs-menu-panel\"\n [class]=\"classList()\"\n [class.ngs-menu-before]=\"_panelClasses().includes('ngs-menu-before')\"\n [class.ngs-menu-after]=\"_panelClasses().includes('ngs-menu-after')\"\n [class.ngs-menu-above]=\"_panelClasses().includes('ngs-menu-above')\"\n [class.ngs-menu-below]=\"_panelClasses().includes('ngs-menu-below')\"\n tabindex=\"-1\"\n role=\"menu\"\n >\n <ng-content select=\"ngs-menu-header,[ngs-menu-header]\"/>\n <div class=\"ngs-menu-content\">\n @if (content()) {\n <ng-container [ngTemplateOutlet]=\"content()!.templateRef\" [ngTemplateOutletContext]=\"_context()\" />\n } @else {\n <ng-content />\n }\n </div>\n <ng-content select=\"ngs-menu-footer,[ngs-menu-footer]\"/>\n </div>\n</ng-template>\n", styles: [":host{display:contents}.ngs-menu-panel{background:var(--ngs-menu-background, var(--ngs-dropdown-bg));box-shadow:var(--ngs-menu-shadow, var(--ngs-dropdown-shadow));border-radius:var(--ngs-dropdown-radius);max-height:var(--ngs-menu-max-height, var(--ngs-dropdown-max-height, 16rem));display:flex;flex-direction:column;min-width:var(--ngs-menu-min-width, 112px);max-width:var(--ngs-menu-max-width, 280px);outline:var(--ngs-menu-border, var(--ngs-dropdown-border));overflow:hidden;animation-name:ngs-menu-panel-showing;animation-duration:.15s;animation-timing-function:cubic-bezier(0,0,.2,1)}.ngs-menu-panel.ngs-menu-below{transform-origin:top}.ngs-menu-panel.ngs-menu-below.ngs-menu-before{transform-origin:top right}.ngs-menu-panel.ngs-menu-below.ngs-menu-after{transform-origin:top left}.ngs-menu-panel.ngs-menu-above{transform-origin:bottom}.ngs-menu-panel.ngs-menu-above.ngs-menu-before{transform-origin:bottom right}.ngs-menu-panel.ngs-menu-above.ngs-menu-after{transform-origin:bottom left}@keyframes ngs-menu-panel-showing{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}.ngs-menu-content{overflow:auto;max-height:inherit;padding:var(--ngs-menu-padding, var(--ngs-dropdown-padding, calc(var(--spacing, .25rem) * 2)))}ngs-menu-header,ngs-menu-footer,[ngs-menu-header],[ngs-menu-footer]{flex:none;z-index:1}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
158
169
|
}
|
|
159
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
170
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: Menu, decorators: [{
|
|
160
171
|
type: Component,
|
|
161
172
|
args: [{ selector: 'ngs-menu', exportAs: 'ngsMenu', standalone: true, imports: [
|
|
162
173
|
NgTemplateOutlet
|
|
163
174
|
], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
164
175
|
'[attr.role]': 'role()',
|
|
165
176
|
'[class.ngs-menu]': 'true',
|
|
166
|
-
}, template: "<ng-template>\n <div\n class=\"ngs-menu-panel\"\n [class]=\"classList()\"\n [class.ngs-menu-before]=\"_panelClasses().includes('ngs-menu-before')\"\n [class.ngs-menu-after]=\"_panelClasses().includes('ngs-menu-after')\"\n [class.ngs-menu-above]=\"_panelClasses().includes('ngs-menu-above')\"\n [class.ngs-menu-below]=\"_panelClasses().includes('ngs-menu-below')\"\n tabindex=\"-1\"\n role=\"menu\"\n >\n <ng-content select=\"ngs-menu-header,[ngs-menu-header]\"/>\n <div class=\"ngs-menu-content\">\n @if (content()) {\n <ng-container [ngTemplateOutlet]=\"content()!.templateRef\" [ngTemplateOutletContext]=\"_context()\" />\n } @else {\n <ng-content />\n }\n </div>\n <ng-content select=\"ngs-menu-footer,[ngs-menu-footer]\"/>\n </div>\n</ng-template>\n", styles: [":host{display:contents}.ngs-menu-panel{background:var(--ngs-menu-background, var(--ngs-dropdown-bg));box-shadow:var(--ngs-menu-shadow, var(--ngs-dropdown-shadow));border-radius:var(--ngs-dropdown-radius);max-height:var(--ngs-menu-max-height,
|
|
177
|
+
}, template: "<ng-template>\n <div\n class=\"ngs-menu-panel\"\n [class]=\"classList()\"\n [class.ngs-menu-before]=\"_panelClasses().includes('ngs-menu-before')\"\n [class.ngs-menu-after]=\"_panelClasses().includes('ngs-menu-after')\"\n [class.ngs-menu-above]=\"_panelClasses().includes('ngs-menu-above')\"\n [class.ngs-menu-below]=\"_panelClasses().includes('ngs-menu-below')\"\n tabindex=\"-1\"\n role=\"menu\"\n >\n <ng-content select=\"ngs-menu-header,[ngs-menu-header]\"/>\n <div class=\"ngs-menu-content\">\n @if (content()) {\n <ng-container [ngTemplateOutlet]=\"content()!.templateRef\" [ngTemplateOutletContext]=\"_context()\" />\n } @else {\n <ng-content />\n }\n </div>\n <ng-content select=\"ngs-menu-footer,[ngs-menu-footer]\"/>\n </div>\n</ng-template>\n", styles: [":host{display:contents}.ngs-menu-panel{background:var(--ngs-menu-background, var(--ngs-dropdown-bg));box-shadow:var(--ngs-menu-shadow, var(--ngs-dropdown-shadow));border-radius:var(--ngs-dropdown-radius);max-height:var(--ngs-menu-max-height, var(--ngs-dropdown-max-height, 16rem));display:flex;flex-direction:column;min-width:var(--ngs-menu-min-width, 112px);max-width:var(--ngs-menu-max-width, 280px);outline:var(--ngs-menu-border, var(--ngs-dropdown-border));overflow:hidden;animation-name:ngs-menu-panel-showing;animation-duration:.15s;animation-timing-function:cubic-bezier(0,0,.2,1)}.ngs-menu-panel.ngs-menu-below{transform-origin:top}.ngs-menu-panel.ngs-menu-below.ngs-menu-before{transform-origin:top right}.ngs-menu-panel.ngs-menu-below.ngs-menu-after{transform-origin:top left}.ngs-menu-panel.ngs-menu-above{transform-origin:bottom}.ngs-menu-panel.ngs-menu-above.ngs-menu-before{transform-origin:bottom right}.ngs-menu-panel.ngs-menu-above.ngs-menu-after{transform-origin:bottom left}@keyframes ngs-menu-panel-showing{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}.ngs-menu-content{overflow:auto;max-height:inherit;padding:var(--ngs-menu-padding, var(--ngs-dropdown-padding, calc(var(--spacing, .25rem) * 2)))}ngs-menu-header,ngs-menu-footer,[ngs-menu-header],[ngs-menu-footer]{flex:none;z-index:1}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
|
|
167
178
|
}], ctorParameters: () => [], propDecorators: { role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], classList: [{ type: i0.Input, args: [{ isSignal: true, alias: "classList", required: false }] }], xPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "xPosition", required: false }] }], yPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "yPosition", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }], templateRef: [{ type: i0.ViewChild, args: [i0.forwardRef(() => TemplateRef), { isSignal: true }] }], content: [{ type: i0.ContentChild, args: [i0.forwardRef(() => MenuContent), { isSignal: true }] }], items: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => MenuItem), { ...{ descendants: true }, isSignal: true }] }] } });
|
|
168
179
|
|
|
169
180
|
class MenuDivider {
|
|
170
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
171
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
181
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: MenuDivider, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
182
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: MenuDivider, isStandalone: true, selector: "ngs-menu-divider", ngImport: i0, template: "", styles: [":host{display:block;height:1px;background:var(--ngs-menu-divider-color, var(--ngs-color-subtle));margin:var(--ngs-menu-divider-margin, calc(var(--spacing, .25rem) * 2) 0)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.Eager });
|
|
172
183
|
}
|
|
173
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
184
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: MenuDivider, decorators: [{
|
|
174
185
|
type: Component,
|
|
175
|
-
args: [{ selector: 'ngs-menu-divider', imports: [], template: "", styles: [":host{display:block;height:1px;background:var(--ngs-menu-divider-color, var(--ngs-color-subtle));margin:var(--ngs-menu-divider-margin, calc(var(--spacing, .25rem) * 2) 0)}\n/*! tailwindcss v4.
|
|
186
|
+
args: [{ selector: 'ngs-menu-divider', imports: [], changeDetection: ChangeDetectionStrategy.Eager, template: "", styles: [":host{display:block;height:1px;background:var(--ngs-menu-divider-color, var(--ngs-color-subtle));margin:var(--ngs-menu-divider-margin, calc(var(--spacing, .25rem) * 2) 0)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
|
|
176
187
|
}] });
|
|
177
188
|
|
|
178
189
|
class MenuHeading {
|
|
179
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
180
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
190
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: MenuHeading, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
191
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: MenuHeading, isStandalone: true, selector: "ngs-menu-heading", ngImport: i0, template: "<ng-content/>\n", styles: [":host{display:block;font-size:var(--ngs-font-size-xs);margin:calc(var(--spacing, .25rem) * 2) 0;padding:0 calc(var(--spacing, .25rem) * 3);color:var(--ngs-color-neutral-500)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.Eager });
|
|
181
192
|
}
|
|
182
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: MenuHeading, decorators: [{
|
|
183
194
|
type: Component,
|
|
184
|
-
args: [{ selector: 'ngs-menu-heading', imports: [], template: "<ng-content/>\n", styles: [":host{display:block;font-size:var(--ngs-font-size-xs);margin:calc(var(--spacing, .25rem) * 2) 0;padding:0 calc(var(--spacing, .25rem) * 3);color:var(--ngs-color-neutral-500)}\n/*! tailwindcss v4.
|
|
195
|
+
args: [{ selector: 'ngs-menu-heading', imports: [], changeDetection: ChangeDetectionStrategy.Eager, template: "<ng-content/>\n", styles: [":host{display:block;font-size:var(--ngs-font-size-xs);margin:calc(var(--spacing, .25rem) * 2) 0;padding:0 calc(var(--spacing, .25rem) * 3);color:var(--ngs-color-neutral-500)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
|
|
185
196
|
}] });
|
|
186
197
|
|
|
187
198
|
class MenuTrigger {
|
|
@@ -195,8 +206,10 @@ class MenuTrigger {
|
|
|
195
206
|
menu = input(null, { ...(ngDevMode ? { debugName: "menu" } : /* istanbul ignore next */ {}), alias: 'ngsMenuTriggerFor' });
|
|
196
207
|
menuData = input(undefined, { ...(ngDevMode ? { debugName: "menuData" } : /* istanbul ignore next */ {}), alias: 'ngsMenuTriggerData' });
|
|
197
208
|
menuDisabled = input(false, { ...(ngDevMode ? { debugName: "menuDisabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute, alias: 'ngsMenuDisabled' });
|
|
198
|
-
xPosition = input('after',
|
|
199
|
-
|
|
209
|
+
xPosition = input('after', /* @ts-ignore */
|
|
210
|
+
...(ngDevMode ? [{ debugName: "xPosition" }] : /* istanbul ignore next */ []));
|
|
211
|
+
yPosition = input('below', /* @ts-ignore */
|
|
212
|
+
...(ngDevMode ? [{ debugName: "yPosition" }] : /* istanbul ignore next */ []));
|
|
200
213
|
menuOpened = output();
|
|
201
214
|
menuClosed = output();
|
|
202
215
|
restoreFocus = input(true, { ...(ngDevMode ? { debugName: "restoreFocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute, alias: 'ngsMenuTriggerRestoreFocus' });
|
|
@@ -207,7 +220,8 @@ class MenuTrigger {
|
|
|
207
220
|
_childMenuClosedSubscription = Subscription.EMPTY;
|
|
208
221
|
_closeTimeoutId;
|
|
209
222
|
_previouslyFocusedElement = null;
|
|
210
|
-
menuOpen = signal(false,
|
|
223
|
+
menuOpen = signal(false, /* @ts-ignore */
|
|
224
|
+
...(ngDevMode ? [{ debugName: "menuOpen" }] : /* istanbul ignore next */ []));
|
|
211
225
|
ngOnDestroy() {
|
|
212
226
|
if (this._overlayRef) {
|
|
213
227
|
this._overlayRef.dispose();
|
|
@@ -472,15 +486,15 @@ class MenuTrigger {
|
|
|
472
486
|
this.openMenu();
|
|
473
487
|
}
|
|
474
488
|
}
|
|
475
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
476
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
489
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: MenuTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
490
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.7", type: MenuTrigger, isStandalone: true, selector: "[ngsMenuTriggerFor]", inputs: { menu: { classPropertyName: "menu", publicName: "ngsMenuTriggerFor", isSignal: true, isRequired: false, transformFunction: null }, menuData: { classPropertyName: "menuData", publicName: "ngsMenuTriggerData", isSignal: true, isRequired: false, transformFunction: null }, menuDisabled: { classPropertyName: "menuDisabled", publicName: "ngsMenuDisabled", isSignal: true, isRequired: false, transformFunction: null }, xPosition: { classPropertyName: "xPosition", publicName: "xPosition", isSignal: true, isRequired: false, transformFunction: null }, yPosition: { classPropertyName: "yPosition", publicName: "yPosition", isSignal: true, isRequired: false, transformFunction: null }, restoreFocus: { classPropertyName: "restoreFocus", publicName: "ngsMenuTriggerRestoreFocus", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { menuOpened: "menuOpened", menuClosed: "menuClosed" }, host: { attributes: { "aria-haspopup": "menu" }, listeners: { "click": "_handleClick($event)", "mouseenter": "_handleMouseEnter()", "mouseleave": "_handleMouseLeave()" }, properties: { "attr.aria-expanded": "menuOpen()", "attr.aria-controls": "menuOpen() ? menu()?.templateRef() : null", "class.ngs-menu-item-highlighted": "menuOpen()" } }, providers: [
|
|
477
491
|
{
|
|
478
492
|
provide: MENU_TRIGGER,
|
|
479
493
|
useExisting: forwardRef(() => MenuTrigger)
|
|
480
494
|
}
|
|
481
495
|
], exportAs: ["ngsMenuTrigger"], ngImport: i0 });
|
|
482
496
|
}
|
|
483
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
497
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: MenuTrigger, decorators: [{
|
|
484
498
|
type: Directive,
|
|
485
499
|
args: [{
|
|
486
500
|
selector: '[ngsMenuTriggerFor]',
|
|
@@ -516,7 +530,8 @@ class ContextMenuTrigger {
|
|
|
516
530
|
_overlayRef = null;
|
|
517
531
|
_portal = null;
|
|
518
532
|
_closingSubscription = Subscription.EMPTY;
|
|
519
|
-
menuOpen = signal(false,
|
|
533
|
+
menuOpen = signal(false, /* @ts-ignore */
|
|
534
|
+
...(ngDevMode ? [{ debugName: "menuOpen" }] : /* istanbul ignore next */ []));
|
|
520
535
|
ngOnDestroy() {
|
|
521
536
|
if (this._overlayRef) {
|
|
522
537
|
this._overlayRef.dispose();
|
|
@@ -642,10 +657,10 @@ class ContextMenuTrigger {
|
|
|
642
657
|
}
|
|
643
658
|
this.openMenu(event.clientX, event.clientY);
|
|
644
659
|
}
|
|
645
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
646
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
660
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ContextMenuTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
661
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.7", type: ContextMenuTrigger, isStandalone: true, selector: "[ngsContextMenuTriggerFor]", inputs: { menu: { classPropertyName: "menu", publicName: "ngsContextMenuTriggerFor", isSignal: true, isRequired: false, transformFunction: null }, menuData: { classPropertyName: "menuData", publicName: "ngsContextMenuTriggerData", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { menuOpened: "menuOpened", menuClosed: "menuClosed" }, host: { listeners: { "contextmenu": "_handleContextMenu($event)" } }, exportAs: ["ngsContextMenuTrigger"], ngImport: i0 });
|
|
647
662
|
}
|
|
648
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
663
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ContextMenuTrigger, decorators: [{
|
|
649
664
|
type: Directive,
|
|
650
665
|
args: [{
|
|
651
666
|
selector: '[ngsContextMenuTriggerFor]',
|
|
@@ -658,25 +673,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
658
673
|
}], propDecorators: { menu: [{ type: i0.Input, args: [{ isSignal: true, alias: "ngsContextMenuTriggerFor", required: false }] }], menuData: [{ type: i0.Input, args: [{ isSignal: true, alias: "ngsContextMenuTriggerData", required: false }] }], menuOpened: [{ type: i0.Output, args: ["menuOpened"] }], menuClosed: [{ type: i0.Output, args: ["menuClosed"] }] } });
|
|
659
674
|
|
|
660
675
|
class MenuHeader {
|
|
661
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
662
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
676
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: MenuHeader, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
677
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: MenuHeader, isStandalone: true, selector: "ngs-menu-header", host: { classAttribute: "ngs-menu-header" }, exportAs: ["ngsMenuHeader"], ngImport: i0, template: "<ng-content/>\n", styles: [":host{display:block;background:var(--ngs-menu-panel-bg, var(--ngs-dropdown-bg))}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.Eager });
|
|
663
678
|
}
|
|
664
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
679
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: MenuHeader, decorators: [{
|
|
665
680
|
type: Component,
|
|
666
|
-
args: [{ selector: 'ngs-menu-header', exportAs: 'ngsMenuHeader', imports: [], host: {
|
|
681
|
+
args: [{ selector: 'ngs-menu-header', exportAs: 'ngsMenuHeader', imports: [], changeDetection: ChangeDetectionStrategy.Eager, host: {
|
|
667
682
|
'class': 'ngs-menu-header',
|
|
668
|
-
}, template: "<ng-content/>\n", styles: [":host{display:block;background:var(--ngs-menu-panel-bg, var(--ngs-dropdown-bg))}\n/*! tailwindcss v4.
|
|
683
|
+
}, template: "<ng-content/>\n", styles: [":host{display:block;background:var(--ngs-menu-panel-bg, var(--ngs-dropdown-bg))}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
|
|
669
684
|
}] });
|
|
670
685
|
|
|
671
686
|
class MenuFooter {
|
|
672
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
673
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
687
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: MenuFooter, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
688
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: MenuFooter, isStandalone: true, selector: "ngs-menu-footer", host: { classAttribute: "ngs-menu-footer" }, exportAs: ["ngsMenuFooter"], ngImport: i0, template: "<ng-content/>\n", styles: [":host{display:block;background:var(--ngs-menu-panel-bg, var(--ngs-dropdown-bg))}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.Eager });
|
|
674
689
|
}
|
|
675
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
690
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: MenuFooter, decorators: [{
|
|
676
691
|
type: Component,
|
|
677
|
-
args: [{ selector: 'ngs-menu-footer', exportAs: 'ngsMenuFooter', imports: [], host: {
|
|
692
|
+
args: [{ selector: 'ngs-menu-footer', exportAs: 'ngsMenuFooter', imports: [], changeDetection: ChangeDetectionStrategy.Eager, host: {
|
|
678
693
|
'class': 'ngs-menu-footer',
|
|
679
|
-
}, template: "<ng-content/>\n", styles: [":host{display:block;background:var(--ngs-menu-panel-bg, var(--ngs-dropdown-bg))}\n/*! tailwindcss v4.
|
|
694
|
+
}, template: "<ng-content/>\n", styles: [":host{display:block;background:var(--ngs-menu-panel-bg, var(--ngs-dropdown-bg))}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
|
|
680
695
|
}] });
|
|
681
696
|
|
|
682
697
|
/**
|
|
@@ -692,9 +707,12 @@ class MenuOptionGroupDirective {
|
|
|
692
707
|
inertGroups = false;
|
|
693
708
|
hideSingleSelectionIndicator = false;
|
|
694
709
|
multiple = input(false, { ...(ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
695
|
-
multipleSignal = computed(() => this.multiple(),
|
|
696
|
-
|
|
697
|
-
|
|
710
|
+
multipleSignal = computed(() => this.multiple(), /* @ts-ignore */
|
|
711
|
+
...(ngDevMode ? [{ debugName: "multipleSignal" }] : /* istanbul ignore next */ []));
|
|
712
|
+
hideCheckIcon = signal(false, /* @ts-ignore */
|
|
713
|
+
...(ngDevMode ? [{ debugName: "hideCheckIcon" }] : /* istanbul ignore next */ []));
|
|
714
|
+
_optionsContentChanges = signal(0, /* @ts-ignore */
|
|
715
|
+
...(ngDevMode ? [{ debugName: "_optionsContentChanges" }] : /* istanbul ignore next */ []));
|
|
698
716
|
_selectionModel;
|
|
699
717
|
_value;
|
|
700
718
|
options = contentChildren(Option, { ...(ngDevMode ? { debugName: "options" } : /* istanbul ignore next */ {}), descendants: true });
|
|
@@ -793,8 +811,8 @@ class MenuOptionGroupDirective {
|
|
|
793
811
|
this._selectOptionByValue();
|
|
794
812
|
}
|
|
795
813
|
}
|
|
796
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
797
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "
|
|
814
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: MenuOptionGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
815
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "22.1.7", type: MenuOptionGroupDirective, isStandalone: true, selector: "[ngsMenuOptionGroup]", inputs: { multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, providers: [
|
|
798
816
|
{
|
|
799
817
|
provide: OPTION_PARENT_COMPONENT,
|
|
800
818
|
useExisting: MenuOptionGroupDirective
|
|
@@ -817,7 +835,7 @@ class MenuOptionGroupDirective {
|
|
|
817
835
|
}
|
|
818
836
|
], queries: [{ propertyName: "options", predicate: Option, descendants: true, isSignal: true }, { propertyName: "ngsOptions", predicate: i0.forwardRef(() => Option), descendants: true, isSignal: true }], ngImport: i0 });
|
|
819
837
|
}
|
|
820
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
838
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: MenuOptionGroupDirective, decorators: [{
|
|
821
839
|
type: Directive,
|
|
822
840
|
args: [{
|
|
823
841
|
selector: '[ngsMenuOptionGroup]',
|