ngwr 16.5.0 → 16.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/avatar/styles/_index.scss +39 -0
- package/back-top/styles/_index.scss +6 -0
- package/breadcrumbs/styles/_rules.scss +34 -0
- package/button/styles/_index.scss +45 -2
- package/cascader/styles/_rules.scss +7 -0
- package/charts/chart-legend/styles/_index.scss +1 -9
- package/copy-value/styles/_index.scss +4 -0
- package/counter/styles/_index.scss +1 -8
- package/date-picker/styles/_index.scss +15 -9
- package/dialog/styles/_index.scss +37 -0
- package/dropdown/styles/_index.scss +17 -0
- package/editor/styles/_index.scss +1 -8
- package/event-calendar/styles/_index.scss +2 -6
- package/fesm2022/ngwr-affix.mjs +4 -4
- package/fesm2022/ngwr-affix.mjs.map +1 -1
- package/fesm2022/ngwr-alert.mjs +3 -3
- package/fesm2022/ngwr-anchor.mjs +12 -5
- package/fesm2022/ngwr-anchor.mjs.map +1 -1
- package/fesm2022/ngwr-animations-aurora.mjs +3 -3
- package/fesm2022/ngwr-animations-aurora.mjs.map +1 -1
- package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-blur-reveal.mjs.map +1 -1
- package/fesm2022/ngwr-animations-click-sparks.mjs +3 -3
- package/fesm2022/ngwr-animations-click-sparks.mjs.map +1 -1
- package/fesm2022/ngwr-animations-confetti.mjs +3 -3
- package/fesm2022/ngwr-animations-confetti.mjs.map +1 -1
- package/fesm2022/ngwr-animations-decode.mjs +3 -3
- package/fesm2022/ngwr-animations-decode.mjs.map +1 -1
- package/fesm2022/ngwr-animations-destruct.mjs +3 -3
- package/fesm2022/ngwr-animations-destruct.mjs.map +1 -1
- package/fesm2022/ngwr-animations-dot-grid.mjs +3 -3
- package/fesm2022/ngwr-animations-dot-grid.mjs.map +1 -1
- package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
- package/fesm2022/ngwr-animations-falling-letters.mjs.map +1 -1
- package/fesm2022/ngwr-animations-flow-lines.mjs +3 -3
- package/fesm2022/ngwr-animations-flow-lines.mjs.map +1 -1
- package/fesm2022/ngwr-animations-fluid-cursor.mjs +3 -3
- package/fesm2022/ngwr-animations-fluid-cursor.mjs.map +1 -1
- package/fesm2022/ngwr-animations-glitch.mjs +3 -3
- package/fesm2022/ngwr-animations-glitch.mjs.map +1 -1
- package/fesm2022/ngwr-animations-glow-border.mjs +3 -3
- package/fesm2022/ngwr-animations-glow-border.mjs.map +1 -1
- package/fesm2022/ngwr-animations-gradient-flow.mjs +3 -3
- package/fesm2022/ngwr-animations-gradient-flow.mjs.map +1 -1
- package/fesm2022/ngwr-animations-marquee.mjs +4 -3
- package/fesm2022/ngwr-animations-marquee.mjs.map +1 -1
- package/fesm2022/ngwr-animations-orbit.mjs +3 -3
- package/fesm2022/ngwr-animations-orbit.mjs.map +1 -1
- package/fesm2022/ngwr-animations-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-reveal.mjs.map +1 -1
- package/fesm2022/ngwr-animations-ripple-grid.mjs +3 -3
- package/fesm2022/ngwr-animations-ripple-grid.mjs.map +1 -1
- package/fesm2022/ngwr-animations-rotate-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-rotate-reveal.mjs.map +1 -1
- package/fesm2022/ngwr-animations-shimmer.mjs +3 -3
- package/fesm2022/ngwr-animations-shimmer.mjs.map +1 -1
- package/fesm2022/ngwr-animations-spotlight.mjs +3 -3
- package/fesm2022/ngwr-animations-spotlight.mjs.map +1 -1
- package/fesm2022/ngwr-animations-thread-lines.mjs +3 -3
- package/fesm2022/ngwr-animations-thread-lines.mjs.map +1 -1
- package/fesm2022/ngwr-animations-tilt.mjs +23 -16
- package/fesm2022/ngwr-animations-tilt.mjs.map +1 -1
- package/fesm2022/ngwr-animations-typewriter.mjs +3 -3
- package/fesm2022/ngwr-animations-typewriter.mjs.map +1 -1
- package/fesm2022/ngwr-avatar.mjs +171 -6
- package/fesm2022/ngwr-avatar.mjs.map +1 -1
- package/fesm2022/ngwr-back-top.mjs +3 -3
- package/fesm2022/ngwr-badge.mjs +6 -6
- package/fesm2022/ngwr-breadcrumbs.mjs +47 -13
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-burger.mjs +3 -3
- package/fesm2022/ngwr-button.mjs +38 -9
- package/fesm2022/ngwr-button.mjs.map +1 -1
- package/fesm2022/ngwr-calendar.mjs +3 -3
- package/fesm2022/ngwr-card.mjs +9 -9
- package/fesm2022/ngwr-carousel.mjs +14 -8
- package/fesm2022/ngwr-carousel.mjs.map +1 -1
- package/fesm2022/ngwr-cascader.mjs +27 -7
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-boxplot-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-bullet-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -3
- package/fesm2022/ngwr-charts-candlestick-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-chart-legend.mjs +9 -9
- package/fesm2022/ngwr-charts-core.mjs +18 -11
- package/fesm2022/ngwr-charts-core.mjs.map +1 -1
- package/fesm2022/ngwr-charts-donut-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-funnel-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-gauge.mjs +3 -3
- package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-line-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-meter-group.mjs +7 -5
- package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-scatter-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-sparkline.mjs +3 -3
- package/fesm2022/ngwr-charts-treemap-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-waterfall-chart.mjs +3 -3
- package/fesm2022/ngwr-checkbox.mjs +9 -8
- package/fesm2022/ngwr-checkbox.mjs.map +1 -1
- package/fesm2022/ngwr-clipboard.mjs +3 -3
- package/fesm2022/ngwr-collapse.mjs +9 -9
- package/fesm2022/ngwr-color-picker.mjs +27 -7
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-command-palette.mjs +3 -3
- package/fesm2022/ngwr-comment.mjs +7 -6
- package/fesm2022/ngwr-comment.mjs.map +1 -1
- package/fesm2022/ngwr-compare.mjs +3 -3
- package/fesm2022/ngwr-context-menu.mjs +16 -17
- package/fesm2022/ngwr-context-menu.mjs.map +1 -1
- package/fesm2022/ngwr-cookie.mjs +3 -3
- package/fesm2022/ngwr-copy-value.mjs +3 -3
- package/fesm2022/ngwr-counter.mjs +6 -6
- package/fesm2022/ngwr-date-picker-testing.mjs +35 -0
- package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +151 -54
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp.mjs +3 -3
- package/fesm2022/ngwr-date.mjs +40 -16
- package/fesm2022/ngwr-date.mjs.map +1 -1
- package/fesm2022/ngwr-density.mjs +6 -6
- package/fesm2022/ngwr-descriptions.mjs +6 -6
- package/fesm2022/ngwr-dialog.mjs +35 -24
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-directives.mjs +189 -23
- package/fesm2022/ngwr-directives.mjs.map +1 -1
- package/fesm2022/ngwr-divider.mjs +3 -3
- package/fesm2022/ngwr-drawer.mjs +18 -18
- package/fesm2022/ngwr-dropdown-testing.mjs +5 -1
- package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +59 -16
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +6 -5
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-empty.mjs +3 -3
- package/fesm2022/ngwr-event-calendar.mjs +27 -15
- package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload-testing.mjs +5 -0
- package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload.mjs +68 -13
- package/fesm2022/ngwr-file-upload.mjs.map +1 -1
- package/fesm2022/ngwr-form.mjs +181 -12
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-graph-testing.mjs +30 -0
- package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
- package/fesm2022/ngwr-graph.mjs +100 -11
- package/fesm2022/ngwr-graph.mjs.map +1 -1
- package/fesm2022/ngwr-hotkey.mjs +6 -6
- package/fesm2022/ngwr-i18n-ar.mjs +21 -2
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +21 -2
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +21 -2
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +21 -2
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +21 -2
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +21 -2
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +21 -2
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +21 -2
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +21 -2
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +21 -2
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +21 -2
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-kk.mjs +520 -0
- package/fesm2022/ngwr-i18n-kk.mjs.map +1 -0
- package/fesm2022/ngwr-i18n-ko.mjs +21 -2
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +21 -2
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +21 -2
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +21 -2
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +21 -2
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +21 -2
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +21 -2
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +21 -2
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +21 -2
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +21 -2
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +21 -2
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +91 -20
- package/fesm2022/ngwr-i18n.mjs.map +1 -1
- package/fesm2022/ngwr-icon.mjs +6 -6
- package/fesm2022/ngwr-image-cropper.mjs +8 -4
- package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
- package/fesm2022/ngwr-input-number.mjs +27 -4
- package/fesm2022/ngwr-input-number.mjs.map +1 -1
- package/fesm2022/ngwr-input-otp.mjs +5 -5
- package/fesm2022/ngwr-input-otp.mjs.map +1 -1
- package/fesm2022/ngwr-input.mjs +25 -17
- package/fesm2022/ngwr-input.mjs.map +1 -1
- package/fesm2022/ngwr-keyboard.mjs +3 -3
- package/fesm2022/ngwr-knob.mjs +3 -3
- package/fesm2022/ngwr-layout.mjs +15 -15
- package/fesm2022/ngwr-layout.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox.mjs +8 -8
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +9 -9
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-load-state.mjs +16 -15
- package/fesm2022/ngwr-load-state.mjs.map +1 -1
- package/fesm2022/ngwr-loading-bar-router.mjs.map +1 -1
- package/fesm2022/ngwr-loading-bar.mjs +8 -8
- package/fesm2022/ngwr-loading-bar.mjs.map +1 -1
- package/fesm2022/ngwr-mention.mjs +14 -6
- package/fesm2022/ngwr-mention.mjs.map +1 -1
- package/fesm2022/ngwr-meta.mjs +15 -12
- package/fesm2022/ngwr-meta.mjs.map +1 -1
- package/fesm2022/ngwr-overlay.mjs +9 -9
- package/fesm2022/ngwr-page-header.mjs +24 -3
- package/fesm2022/ngwr-page-header.mjs.map +1 -1
- package/fesm2022/ngwr-pagination-testing.mjs +3 -0
- package/fesm2022/ngwr-pagination-testing.mjs.map +1 -1
- package/fesm2022/ngwr-pagination.mjs +34 -5
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +35 -28
- package/fesm2022/ngwr-pipes.mjs.map +1 -1
- package/fesm2022/ngwr-platform.mjs +9 -9
- package/fesm2022/ngwr-popconfirm.mjs +9 -7
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +162 -18
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-progress.mjs +75 -10
- package/fesm2022/ngwr-progress.mjs.map +1 -1
- package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
- package/fesm2022/ngwr-qr.mjs +9 -5
- package/fesm2022/ngwr-qr.mjs.map +1 -1
- package/fesm2022/ngwr-radio.mjs +77 -11
- package/fesm2022/ngwr-radio.mjs.map +1 -1
- package/fesm2022/ngwr-rating.mjs +3 -3
- package/fesm2022/ngwr-resizable.mjs +3 -3
- package/fesm2022/ngwr-result.mjs +12 -12
- package/fesm2022/ngwr-schema-form.mjs +20 -7
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-scroll.mjs +233 -10
- package/fesm2022/ngwr-scroll.mjs.map +1 -1
- package/fesm2022/ngwr-segmented.mjs +23 -3
- package/fesm2022/ngwr-segmented.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +106 -26
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-sidebar-testing.mjs +17 -1
- package/fesm2022/ngwr-sidebar-testing.mjs.map +1 -1
- package/fesm2022/ngwr-sidebar.mjs +66 -11
- package/fesm2022/ngwr-sidebar.mjs.map +1 -1
- package/fesm2022/ngwr-skeleton.mjs +3 -3
- package/fesm2022/ngwr-slider.mjs +3 -3
- package/fesm2022/ngwr-sortable-list.mjs +27 -15
- package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
- package/fesm2022/ngwr-speed-dial.mjs +3 -3
- package/fesm2022/ngwr-spinner.mjs +3 -3
- package/fesm2022/ngwr-splitter.mjs +3 -3
- package/fesm2022/ngwr-statistic.mjs +9 -9
- package/fesm2022/ngwr-stepper.mjs +6 -6
- package/fesm2022/ngwr-storage.mjs +4 -4
- package/fesm2022/ngwr-storage.mjs.map +1 -1
- package/fesm2022/ngwr-switch.mjs +5 -5
- package/fesm2022/ngwr-switch.mjs.map +1 -1
- package/fesm2022/ngwr-table-router.mjs +89 -0
- package/fesm2022/ngwr-table-router.mjs.map +1 -0
- package/fesm2022/ngwr-table-testing.mjs +5 -0
- package/fesm2022/ngwr-table-testing.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +307 -47
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tabs-router.mjs +9 -5
- package/fesm2022/ngwr-tabs-router.mjs.map +1 -1
- package/fesm2022/ngwr-tabs-testing.mjs +8 -1
- package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tabs.mjs +60 -10
- package/fesm2022/ngwr-tabs.mjs.map +1 -1
- package/fesm2022/ngwr-textarea.mjs +5 -5
- package/fesm2022/ngwr-textarea.mjs.map +1 -1
- package/fesm2022/ngwr-theme.mjs +3 -3
- package/fesm2022/ngwr-timeline.mjs +6 -6
- package/fesm2022/ngwr-toast.mjs +43 -15
- package/fesm2022/ngwr-toast.mjs.map +1 -1
- package/fesm2022/ngwr-toolbar.mjs +3 -3
- package/fesm2022/ngwr-tour.mjs +9 -8
- package/fesm2022/ngwr-tour.mjs.map +1 -1
- package/fesm2022/ngwr-transfer.mjs +4 -3
- package/fesm2022/ngwr-transfer.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +3 -3
- package/fesm2022/ngwr-typography.mjs +23 -3
- package/fesm2022/ngwr-typography.mjs.map +1 -1
- package/fesm2022/ngwr-utils-router.mjs +3 -3
- package/fesm2022/ngwr-utils-router.mjs.map +1 -1
- package/fesm2022/ngwr-utils.mjs +74 -4
- package/fesm2022/ngwr-utils.mjs.map +1 -1
- package/fesm2022/ngwr-validators.mjs +33 -1
- package/fesm2022/ngwr-validators.mjs.map +1 -1
- package/fesm2022/ngwr-version.mjs +1 -1
- package/fesm2022/ngwr-version.mjs.map +1 -1
- package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
- package/fesm2022/ngwr-window.mjs +18 -13
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/file-upload/styles/_index.scss +16 -0
- package/form/styles/_index.scss +37 -0
- package/graph/styles/_index.scss +49 -9
- package/i18n/ar.json +19 -2
- package/i18n/cs.json +19 -2
- package/i18n/de.json +19 -2
- package/i18n/en.json +19 -2
- package/i18n/es.json +19 -2
- package/i18n/fr.json +19 -2
- package/i18n/he.json +19 -2
- package/i18n/hi.json +19 -2
- package/i18n/id.json +19 -2
- package/i18n/it.json +19 -2
- package/i18n/ja.json +19 -2
- package/i18n/kk.json +567 -0
- package/i18n/ko.json +19 -2
- package/i18n/nl.json +19 -2
- package/i18n/pl.json +19 -2
- package/i18n/pt.json +19 -2
- package/i18n/ru.json +19 -2
- package/i18n/sv.json +19 -2
- package/i18n/tr.json +19 -2
- package/i18n/uk.json +19 -2
- package/i18n/vi.json +19 -2
- package/i18n/zh-TW.json +19 -2
- package/i18n/zh.json +19 -2
- package/image-cropper/styles/_index.scss +1 -9
- package/input-number/styles/_index.scss +7 -0
- package/layout/styles/_index.scss +13 -1
- package/llms-full.txt +37 -26
- package/llms.txt +4 -1
- package/loading-bar/styles/_rules.scss +6 -0
- package/package.json +16 -8
- package/page-header/styles/_index.scss +18 -0
- package/pagination/styles/_index.scss +6 -0
- package/popover/styles/_index.scss +9 -0
- package/progress/styles/_index.scss +64 -0
- package/schematics/use/symbol-map.json +7 -0
- package/segmented/styles/_index.scss +7 -0
- package/select/styles/_index.scss +7 -0
- package/sidebar/styles/_index.scss +64 -6
- package/skills/ngwr/SKILL.md +7 -6
- package/skills/ngwr/references/catalog.md +7 -5
- package/sortable-list/styles/_rules.scss +1 -9
- package/speed-dial/styles/_index.scss +6 -0
- package/stepper/styles/_index.scss +1 -9
- package/table/styles/_index.scss +168 -30
- package/tabs/styles/_index.scss +9 -0
- package/theme/_index.scss +12 -1
- package/theme/styles/_colors.scss +11 -0
- package/theme/styles/_contrast.scss +6 -0
- package/theme/styles/_focus.scss +3 -1
- package/theme/styles/_index.scss +1 -0
- package/theme/styles/_mixins.scss +45 -0
- package/theme/styles/_print.scss +17 -0
- package/toast/styles/_index.scss +7 -0
- package/tour/styles/_index.scss +9 -0
- package/tree/styles/_index.scss +1 -9
- package/types/ngwr-anchor.d.ts +3 -0
- package/types/ngwr-animations-aurora.d.ts +6 -0
- package/types/ngwr-animations-blur-reveal.d.ts +6 -0
- package/types/ngwr-animations-click-sparks.d.ts +6 -0
- package/types/ngwr-animations-confetti.d.ts +6 -0
- package/types/ngwr-animations-decode.d.ts +6 -0
- package/types/ngwr-animations-destruct.d.ts +6 -0
- package/types/ngwr-animations-dot-grid.d.ts +6 -0
- package/types/ngwr-animations-falling-letters.d.ts +6 -0
- package/types/ngwr-animations-flow-lines.d.ts +6 -0
- package/types/ngwr-animations-fluid-cursor.d.ts +6 -0
- package/types/ngwr-animations-glitch.d.ts +6 -0
- package/types/ngwr-animations-glow-border.d.ts +6 -0
- package/types/ngwr-animations-gradient-flow.d.ts +6 -0
- package/types/ngwr-animations-marquee.d.ts +6 -0
- package/types/ngwr-animations-orbit.d.ts +6 -0
- package/types/ngwr-animations-reveal.d.ts +6 -0
- package/types/ngwr-animations-ripple-grid.d.ts +6 -0
- package/types/ngwr-animations-rotate-reveal.d.ts +6 -0
- package/types/ngwr-animations-shimmer.d.ts +6 -0
- package/types/ngwr-animations-spotlight.d.ts +6 -0
- package/types/ngwr-animations-thread-lines.d.ts +6 -0
- package/types/ngwr-animations-tilt.d.ts +10 -0
- package/types/ngwr-animations-typewriter.d.ts +6 -0
- package/types/ngwr-avatar.d.ts +39 -0
- package/types/ngwr-breadcrumbs.d.ts +25 -0
- package/types/ngwr-button.d.ts +35 -3
- package/types/ngwr-carousel.d.ts +2 -0
- package/types/ngwr-cascader.d.ts +7 -0
- package/types/ngwr-charts-core.d.ts +16 -0
- package/types/ngwr-charts-meter-group.d.ts +2 -0
- package/types/ngwr-checkbox.d.ts +1 -0
- package/types/ngwr-color-picker.d.ts +1 -0
- package/types/ngwr-context-menu.d.ts +1 -1
- package/types/ngwr-date-picker-testing.d.ts +22 -0
- package/types/ngwr-date-picker.d.ts +97 -17
- package/types/ngwr-date.d.ts +51 -0
- package/types/ngwr-dialog.d.ts +39 -8
- package/types/ngwr-directives.d.ts +57 -4
- package/types/ngwr-drawer.d.ts +1 -1
- package/types/ngwr-dropdown-testing.d.ts +8 -1
- package/types/ngwr-dropdown.d.ts +30 -1
- package/types/ngwr-event-calendar.d.ts +4 -0
- package/types/ngwr-file-upload-testing.d.ts +10 -0
- package/types/ngwr-file-upload.d.ts +55 -1
- package/types/ngwr-form.d.ts +87 -1
- package/types/ngwr-graph-testing.d.ts +28 -1
- package/types/ngwr-graph.d.ts +53 -3
- package/types/ngwr-i18n-kk.d.ts +3 -0
- package/types/ngwr-i18n.d.ts +65 -5
- package/types/ngwr-image-cropper.d.ts +6 -0
- package/types/ngwr-input-number.d.ts +8 -0
- package/types/ngwr-input.d.ts +7 -0
- package/types/ngwr-layout.d.ts +1 -1
- package/types/ngwr-loading-bar-router.d.ts +6 -0
- package/types/ngwr-page-header.d.ts +23 -1
- package/types/ngwr-pagination-testing.d.ts +8 -0
- package/types/ngwr-pagination.d.ts +16 -0
- package/types/ngwr-popconfirm.d.ts +1 -1
- package/types/ngwr-popover.d.ts +67 -4
- package/types/ngwr-progress.d.ts +63 -1
- package/types/ngwr-radio.d.ts +47 -5
- package/types/ngwr-scroll.d.ts +86 -0
- package/types/ngwr-segmented.d.ts +7 -0
- package/types/ngwr-select.d.ts +88 -25
- package/types/ngwr-sidebar-testing.d.ts +21 -7
- package/types/ngwr-sidebar.d.ts +66 -4
- package/types/ngwr-sortable-list.d.ts +20 -7
- package/types/ngwr-table-router.d.ts +49 -0
- package/types/ngwr-table-testing.d.ts +7 -0
- package/types/ngwr-table.d.ts +241 -10
- package/types/ngwr-tabs-router.d.ts +7 -1
- package/types/ngwr-tabs-testing.d.ts +5 -1
- package/types/ngwr-tabs.d.ts +34 -1
- package/types/ngwr-toast.d.ts +11 -0
- package/types/ngwr-tour.d.ts +0 -1
- package/types/ngwr-typography.d.ts +7 -0
- package/types/ngwr-utils-router.d.ts +6 -0
- package/types/ngwr-utils.d.ts +69 -2
- package/types/ngwr-validators.d.ts +49 -1
- package/types/ngwr-version.d.ts +1 -1
- package/typography/styles/_index.scss +4 -0
- package/window/styles/_index.scss +1 -9
package/fesm2022/ngwr-input.mjs
CHANGED
|
@@ -23,6 +23,12 @@ var WrInput = class WrInput {
|
|
|
23
23
|
fieldAria = useFormFieldAria();
|
|
24
24
|
describedBy = this.fieldAria.describedBy;
|
|
25
25
|
ariaInvalid = this.fieldAria.ariaInvalid;
|
|
26
|
+
ownAriaRequired = this.host.nativeElement.getAttribute("aria-required");
|
|
27
|
+
ariaRequired() {
|
|
28
|
+
if (this.ownAriaRequired !== null) return this.ownAriaRequired;
|
|
29
|
+
if (this.host.nativeElement.required) return null;
|
|
30
|
+
return this.fieldAria.ariaRequired();
|
|
31
|
+
}
|
|
26
32
|
size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
27
33
|
rounded = input(false, {
|
|
28
34
|
...ngDevMode ? { debugName: "rounded" } : /* istanbul ignore next */ {},
|
|
@@ -37,7 +43,7 @@ var WrInput = class WrInput {
|
|
|
37
43
|
}, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
38
44
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
39
45
|
minVersion: "12.0.0",
|
|
40
|
-
version: "22.
|
|
46
|
+
version: "22.3.0",
|
|
41
47
|
ngImport: i0,
|
|
42
48
|
type: WrInput,
|
|
43
49
|
deps: [],
|
|
@@ -45,7 +51,7 @@ var WrInput = class WrInput {
|
|
|
45
51
|
});
|
|
46
52
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
47
53
|
minVersion: "17.1.0",
|
|
48
|
-
version: "22.
|
|
54
|
+
version: "22.3.0",
|
|
49
55
|
type: WrInput,
|
|
50
56
|
isStandalone: true,
|
|
51
57
|
selector: "input[wrInput], textarea[wrInput]",
|
|
@@ -70,7 +76,8 @@ var WrInput = class WrInput {
|
|
|
70
76
|
"class": "classes()",
|
|
71
77
|
"attr.id": "resolvedId()",
|
|
72
78
|
"attr.aria-invalid": "ariaInvalid()",
|
|
73
|
-
"attr.aria-describedby": "describedBy()"
|
|
79
|
+
"attr.aria-describedby": "describedBy()",
|
|
80
|
+
"attr.aria-required": "ariaRequired()"
|
|
74
81
|
},
|
|
75
82
|
classAttribute: "wr-input"
|
|
76
83
|
},
|
|
@@ -79,7 +86,7 @@ var WrInput = class WrInput {
|
|
|
79
86
|
};
|
|
80
87
|
i0.ɵɵngDeclareClassMetadata({
|
|
81
88
|
minVersion: "12.0.0",
|
|
82
|
-
version: "22.
|
|
89
|
+
version: "22.3.0",
|
|
83
90
|
ngImport: i0,
|
|
84
91
|
type: WrInput,
|
|
85
92
|
decorators: [{
|
|
@@ -91,7 +98,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
91
98
|
"[class]": "classes()",
|
|
92
99
|
"[attr.id]": "resolvedId()",
|
|
93
100
|
"[attr.aria-invalid]": "ariaInvalid()",
|
|
94
|
-
"[attr.aria-describedby]": "describedBy()"
|
|
101
|
+
"[attr.aria-describedby]": "describedBy()",
|
|
102
|
+
"[attr.aria-required]": "ariaRequired()"
|
|
95
103
|
}
|
|
96
104
|
}]
|
|
97
105
|
}],
|
|
@@ -127,7 +135,7 @@ var WrInputPrefix = class WrInputPrefix {
|
|
|
127
135
|
}
|
|
128
136
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
129
137
|
minVersion: "12.0.0",
|
|
130
|
-
version: "22.
|
|
138
|
+
version: "22.3.0",
|
|
131
139
|
ngImport: i0,
|
|
132
140
|
type: WrInputPrefix,
|
|
133
141
|
deps: [],
|
|
@@ -135,7 +143,7 @@ var WrInputPrefix = class WrInputPrefix {
|
|
|
135
143
|
});
|
|
136
144
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
137
145
|
minVersion: "14.0.0",
|
|
138
|
-
version: "22.
|
|
146
|
+
version: "22.3.0",
|
|
139
147
|
type: WrInputPrefix,
|
|
140
148
|
isStandalone: true,
|
|
141
149
|
selector: "[wrInputPrefix]",
|
|
@@ -145,7 +153,7 @@ var WrInputPrefix = class WrInputPrefix {
|
|
|
145
153
|
};
|
|
146
154
|
i0.ɵɵngDeclareClassMetadata({
|
|
147
155
|
minVersion: "12.0.0",
|
|
148
|
-
version: "22.
|
|
156
|
+
version: "22.3.0",
|
|
149
157
|
ngImport: i0,
|
|
150
158
|
type: WrInputPrefix,
|
|
151
159
|
decorators: [{
|
|
@@ -169,7 +177,7 @@ var WrInputSuffix = class WrInputSuffix {
|
|
|
169
177
|
}
|
|
170
178
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
171
179
|
minVersion: "12.0.0",
|
|
172
|
-
version: "22.
|
|
180
|
+
version: "22.3.0",
|
|
173
181
|
ngImport: i0,
|
|
174
182
|
type: WrInputSuffix,
|
|
175
183
|
deps: [],
|
|
@@ -177,7 +185,7 @@ var WrInputSuffix = class WrInputSuffix {
|
|
|
177
185
|
});
|
|
178
186
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
179
187
|
minVersion: "14.0.0",
|
|
180
|
-
version: "22.
|
|
188
|
+
version: "22.3.0",
|
|
181
189
|
type: WrInputSuffix,
|
|
182
190
|
isStandalone: true,
|
|
183
191
|
selector: "[wrInputSuffix]",
|
|
@@ -187,7 +195,7 @@ var WrInputSuffix = class WrInputSuffix {
|
|
|
187
195
|
};
|
|
188
196
|
i0.ɵɵngDeclareClassMetadata({
|
|
189
197
|
minVersion: "12.0.0",
|
|
190
|
-
version: "22.
|
|
198
|
+
version: "22.3.0",
|
|
191
199
|
ngImport: i0,
|
|
192
200
|
type: WrInputSuffix,
|
|
193
201
|
decorators: [{
|
|
@@ -258,7 +266,7 @@ var WrInputGroup = class WrInputGroup {
|
|
|
258
266
|
}, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
259
267
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
260
268
|
minVersion: "12.0.0",
|
|
261
|
-
version: "22.
|
|
269
|
+
version: "22.3.0",
|
|
262
270
|
ngImport: i0,
|
|
263
271
|
type: WrInputGroup,
|
|
264
272
|
deps: [],
|
|
@@ -266,7 +274,7 @@ var WrInputGroup = class WrInputGroup {
|
|
|
266
274
|
});
|
|
267
275
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
268
276
|
minVersion: "17.0.0",
|
|
269
|
-
version: "22.
|
|
277
|
+
version: "22.3.0",
|
|
270
278
|
type: WrInputGroup,
|
|
271
279
|
isStandalone: true,
|
|
272
280
|
selector: "wr-input-group",
|
|
@@ -327,7 +335,7 @@ var WrInputGroup = class WrInputGroup {
|
|
|
327
335
|
};
|
|
328
336
|
i0.ɵɵngDeclareClassMetadata({
|
|
329
337
|
minVersion: "12.0.0",
|
|
330
|
-
version: "22.
|
|
338
|
+
version: "22.3.0",
|
|
331
339
|
ngImport: i0,
|
|
332
340
|
type: WrInputGroup,
|
|
333
341
|
decorators: [{
|
|
@@ -416,7 +424,7 @@ var WrPasswordToggle = class WrPasswordToggle {
|
|
|
416
424
|
}
|
|
417
425
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
418
426
|
minVersion: "12.0.0",
|
|
419
|
-
version: "22.
|
|
427
|
+
version: "22.3.0",
|
|
420
428
|
ngImport: i0,
|
|
421
429
|
type: WrPasswordToggle,
|
|
422
430
|
deps: [],
|
|
@@ -424,7 +432,7 @@ var WrPasswordToggle = class WrPasswordToggle {
|
|
|
424
432
|
});
|
|
425
433
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
426
434
|
minVersion: "17.0.0",
|
|
427
|
-
version: "22.
|
|
435
|
+
version: "22.3.0",
|
|
428
436
|
type: WrPasswordToggle,
|
|
429
437
|
isStandalone: true,
|
|
430
438
|
selector: "wr-password-toggle",
|
|
@@ -458,7 +466,7 @@ var WrPasswordToggle = class WrPasswordToggle {
|
|
|
458
466
|
};
|
|
459
467
|
i0.ɵɵngDeclareClassMetadata({
|
|
460
468
|
minVersion: "12.0.0",
|
|
461
|
-
version: "22.
|
|
469
|
+
version: "22.3.0",
|
|
462
470
|
ngImport: i0,
|
|
463
471
|
type: WrPasswordToggle,
|
|
464
472
|
decorators: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngwr-input.mjs","names":[],"sources":["../../../projects/lib/input/directives/wr-input.ts","../../../projects/lib/input/directives/wr-input-prefix.ts","../../../projects/lib/input/directives/wr-input-suffix.ts","../../../projects/lib/input/input-group.ts","../../../projects/lib/input/input-group.html","../../../projects/lib/input/password-toggle.ts","../../../projects/lib/input/password-toggle.html"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { Directive, ElementRef, computed, inject, input } from '@angular/core';\n\nimport { WR_FORM_FIELD, useFormFieldAria } from 'ngwr/form';\nimport { wrCheckStyles } from 'ngwr/utils';\n\nimport type { WrInputSize } from '../types';\n\n/**\n * Applies NGWR input styling to a native `<input>` element.\n *\n * Because this is an attribute directive on the real `<input>` (not a wrapper\n * component), any other directive that targets `input` — `[(ngModel)]`,\n * `[formControl]`, validators, third-party libraries like `ngx-mask` — composes\n * naturally on the same element.\n *\n * @example\n * ```html\n * <input wrInput [(ngModel)]=\"name\" placeholder=\"Your name\" />\n *\n * <!-- Works with ngx-mask, validators, etc. -->\n * <input wrInput [(ngModel)]=\"phone\" mask=\"(000) 000-0000\" />\n * ```\n *\n * For prefix / suffix / password-toggle layouts, wrap the input in\n * `<wr-input-group>`.\n *\n * @see https://ngwr.dev/reference/components/input\n */\n@Directive({\n selector: 'input[wrInput], textarea[wrInput]',\n host: {\n class: 'wr-input',\n '[class]': 'classes()',\n '[attr.id]': 'resolvedId()',\n '[attr.aria-invalid]': 'ariaInvalid()',\n '[attr.aria-describedby]': 'describedBy()',\n },\n})\nexport class WrInput {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly field = inject(WR_FORM_FIELD, { optional: true });\n\n /**\n * Read once, at construction: a static `id=\"\"` in the template is already on\n * the element by the time a directive is instantiated, and it must win over\n * the field's generated one.\n */\n private readonly ownId = this.host.nativeElement.getAttribute('id');\n\n /**\n * Adopts the surrounding `<wr-form-field>`'s `controlId`, so the label it\n * already rendered actually points at this element. Without this the `for`\n * referenced an id that existed nowhere and the input had no label at all.\n */\n protected readonly resolvedId = computed(() => this.ownId ?? this.field?.controlId() ?? null);\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('input');\n // Tell the field which id actually stuck. Without this its `<label for>` keeps\n // pointing at the generated id while this element answers to the author's own —\n // a label referencing nothing, which is the same as having none.\n if (this.ownId) this.field?.adoptControlId(this.ownId);\n }\n\n /**\n * Announced state, taken from the surrounding `<wr-form-field>`.\n *\n * The field renders the message but cannot reach the projected control, so\n * the control reads back: without this the error is visible on screen and\n * invisible to a screen reader, which never learns the field is invalid or\n * what the message says.\n */\n // Through the shared helper, not a local pair: the hint is described by\n // `hintId`, which only `useFormFieldAria()` composes, and `aria-invalid` keys\n // on the error COUNT rather than on \"something is described\". Hand-rolled here,\n // these three announced the error and never the hint — and `<input wrInput>` is\n // the control the report was filed against.\n private readonly fieldAria = useFormFieldAria();\n protected readonly describedBy = this.fieldAria.describedBy;\n protected readonly ariaInvalid = this.fieldAria.ariaInvalid;\n\n /**\n * Control size. @default 'md'\n *\n * Called `wrSize` until v14, to dodge the native `<input size>` attribute —\n * which measures the field in characters and which `.wr-input`'s `width: 100%`\n * has always overridden, so the clash it guarded against was never observable.\n * It made this the one size input in the catalog spelled differently from the\n * other twenty-three. The cost of the change is that a consumer who wanted the\n * NATIVE `size` on an ngwr input can no longer have it — but `width: 100%`\n * meant they never did.\n */\n readonly size = input<WrInputSize>('md');\n\n /** Pill-shaped corners. @default false */\n readonly rounded = input(false, { transform: coerceBooleanProperty });\n\n protected readonly classes = computed(() => {\n const parts: string[] = [];\n const size = this.size();\n if (size !== 'md') parts.push(`wr-input--${size}`);\n if (this.rounded()) parts.push('wr-input--rounded');\n return parts.join(' ');\n });\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Directive } from '@angular/core';\n\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/**\n * Marks an element as the **left** decoration inside `<wr-input-group>`.\n * Adds the `.wr-input-group__affix` class so the group's layout flexes it\n * to the input's left edge.\n *\n * @example\n * ```html\n * <wr-input-group>\n * <span wrInputPrefix>$</span>\n * <input wrInput [(ngModel)]=\"amount\" type=\"number\" />\n * </wr-input-group>\n * ```\n */\n@Directive({\n selector: '[wrInputPrefix]',\n host: { class: 'wr-input-group__affix wr-input-group__affix--prefix' },\n})\nexport class WrInputPrefix {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('input');\n }\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Directive } from '@angular/core';\n\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/**\n * Marks an element as the **right** decoration inside `<wr-input-group>`.\n * Adds the `.wr-input-group__affix` class so the group's layout flexes it\n * to the input's right edge.\n *\n * @example\n * ```html\n * <wr-input-group>\n * <input wrInput [(ngModel)]=\"amount\" type=\"number\" />\n * <span wrInputSuffix>USD</span>\n * </wr-input-group>\n * ```\n */\n@Directive({\n selector: '[wrInputSuffix]',\n host: { class: 'wr-input-group__affix wr-input-group__affix--suffix' },\n})\nexport class WrInputSuffix {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('input');\n }\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport {\n Component,\n ElementRef,\n Renderer2,\n ViewEncapsulation,\n afterEveryRender,\n computed,\n contentChild,\n effect,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\n\nimport { useI18nText } from 'ngwr/i18n';\nimport { WrSpinner } from 'ngwr/spinner';\nimport { wrCheckStyles } from 'ngwr/utils';\n\nimport { WrInput } from './directives';\n\n/**\n * Container for `<input wrInput>` + `[wrInputPrefix]` / `[wrInputSuffix]` /\n * `<wr-password-toggle>` siblings. Renders the border and focus ring; the\n * inner native input drops its own border so it visually melts into the\n * group.\n *\n * Focus styling is driven entirely by `:focus-within`, so any focusable child\n * counts.\n *\n * `clearable` and `loading` draw a clear (×) button and a spinner after the\n * field, before any `[wrInputSuffix]` or `<wr-password-toggle>`. Both act on the\n * first `wrInput` the group wraps.\n *\n * @example\n * ```html\n * <wr-input-group>\n * <span wrInputPrefix>$</span>\n * <input wrInput [(ngModel)]=\"amount\" type=\"number\" />\n * <span wrInputSuffix>USD</span>\n * </wr-input-group>\n *\n * <!-- a search box: a clear button, and a spinner while the lookup runs -->\n * <wr-input-group clearable [loading]=\"pending()\">\n * <input wrInput [(ngModel)]=\"query\" placeholder=\"Search\" />\n * </wr-input-group>\n * ```\n *\n * @see https://ngwr.dev/reference/components/input\n */\n@Component({\n selector: 'wr-input-group',\n templateUrl: './input-group.html',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-input-group', '[class]': 'classes()', '(input)': 'syncClear()' },\n imports: [WrSpinner],\n})\nexport class WrInputGroup {\n private readonly renderer = inject(Renderer2);\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('input');\n\n // A native field's value is not a signal, and a model write (`ngModel`,\n // `[formField]`, a bound `[value]`) reaches it with no event. So the field\n // is read after every render, and on its own `input` events in between.\n afterEveryRender({ read: () => this.syncClear() });\n\n effect(() => {\n const field = this.field()?.nativeElement;\n if (!field) return;\n if (this.loading()) this.renderer.setAttribute(field, 'aria-busy', 'true');\n else this.renderer.removeAttribute(field, 'aria-busy');\n });\n }\n\n /** Pill-shaped corners. @default false */\n readonly rounded = input(false, { transform: coerceBooleanProperty });\n\n /**\n * Show a clear (×) button while the field holds text and is neither disabled\n * nor read-only. Clearing empties the field through an `input` event, so\n * whatever is bound to it (`ngModel`, `[formField]`, an `(input)` listener)\n * hears it as an edit, and puts focus back in the field. It is a pointer\n * control: from the keyboard, emptying the field clears it. @default false\n */\n readonly clearable = input(false, { transform: coerceBooleanProperty });\n\n /** Clear (×) button aria-label. Falls back to `common.clear`. */\n readonly clearLabel = input<string | null>(null);\n\n /**\n * Show a spinner after the field and mark the field `aria-busy`. The field\n * stays editable. @default false\n */\n readonly loading = input(false, { transform: coerceBooleanProperty });\n\n /** Emitted after the clear (×) button emptied the field. */\n readonly cleared = output<void>();\n\n protected readonly resolvedClear = useI18nText(this.clearLabel, 'common.clear', 'Clear');\n\n private readonly field = contentChild<WrInput, ElementRef<HTMLInputElement | HTMLTextAreaElement>>(WrInput, {\n read: ElementRef,\n });\n\n /** Whether the field has text a user could clear right now. */\n private readonly fieldClearable = signal(false);\n\n protected readonly clearShown = computed(() => this.clearable() && this.fieldClearable());\n\n protected syncClear(): void {\n if (!this.clearable()) return;\n const field = this.field()?.nativeElement;\n this.fieldClearable.set(!!field && field.value !== '' && !field.disabled && !field.readOnly);\n }\n\n protected clear(): void {\n const field = this.field()?.nativeElement;\n if (!field || field.disabled || field.readOnly) return;\n field.value = '';\n field.dispatchEvent(new Event('input', { bubbles: true }));\n field.focus();\n this.cleared.emit();\n }\n\n protected readonly classes = computed(() => {\n const parts: string[] = [];\n if (this.rounded()) parts.push('wr-input-group--rounded');\n return parts.join(' ');\n });\n}\n","<ng-content />\n<!-- Pointer-only, as the select's is: emptying the field is the keyboard way to clear. -->\n@if (clearShown()) {\n <span class=\"wr-input-group__clear\" role=\"button\" [attr.aria-label]=\"resolvedClear()\" tabindex=\"-1\" (click)=\"clear()\">\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\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 aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n} @else if (clearable()) {\n <!-- Holds the ×'s room while the field is empty, so clearing does not narrow the group. -->\n <span class=\"wr-input-group__clear-space\" aria-hidden=\"true\"></span>\n}\n<!-- Hidden from the accessibility tree: the field says it is busy with `aria-busy`. -->\n@if (loading()) {\n <wr-spinner class=\"wr-input-group__spinner\" size=\"sm\" aria-hidden=\"true\" />\n}\n<ng-content select=\"[wrInputSuffix], wr-password-toggle\" />\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Component, ViewEncapsulation, computed, input, signal } from '@angular/core';\n\nimport { useI18nText } from 'ngwr/i18n';\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/**\n * Self-contained eye-toggle button. Flips the linked `<input>`'s `type`\n * attribute between `password` and `text`. Drop it inside an\n * `<wr-input-group>` next to a password input.\n *\n * @example\n * ```html\n * <wr-input-group>\n * <input wrInput type=\"password\" [(ngModel)]=\"pw\" #pwInput />\n * <wr-password-toggle [for]=\"pwInput\" />\n * </wr-input-group>\n * ```\n */\n@Component({\n selector: 'wr-password-toggle',\n templateUrl: './password-toggle.html',\n encapsulation: ViewEncapsulation.None,\n})\nexport class WrPasswordToggle {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('input');\n }\n\n /** Reference to the linked password input. */\n readonly for = input.required<HTMLInputElement>();\n\n protected readonly revealed = signal(false);\n\n /** Accessible name while the password is hidden. Falls back to `input.showPassword`. */\n readonly showPasswordLabel = input<string | null>(null);\n\n /** Accessible name while the password is revealed. Falls back to `input.hidePassword`. */\n readonly hidePasswordLabel = input<string | null>(null);\n\n private readonly resolvedShowPasswordLabel = useI18nText(\n this.showPasswordLabel,\n 'input.showPassword',\n 'Show password'\n );\n private readonly resolvedHidePasswordLabel = useI18nText(\n this.hidePasswordLabel,\n 'input.hidePassword',\n 'Hide password'\n );\n\n protected readonly ariaLabel = computed(() =>\n this.revealed() ? this.resolvedHidePasswordLabel() : this.resolvedShowPasswordLabel()\n );\n\n protected toggle(): void {\n const input = this.for();\n const next = input.type === 'password' ? 'text' : 'password';\n input.type = next;\n this.revealed.set(next === 'text');\n }\n}\n","<button\n type=\"button\"\n class=\"wr-input-group__toggle\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-pressed]=\"revealed()\"\n (click)=\"toggle()\"\n>\n @if (revealed()) {\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\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 aria-hidden=\"true\"\n >\n <path d=\"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49\" />\n <path d=\"M14.084 14.158a3 3 0 0 1-4.242-4.242\" />\n <path d=\"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143\" />\n <path d=\"m2 2 20 20\" />\n </svg>\n } @else {\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\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 aria-hidden=\"true\"\n >\n <path d=\"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0\" />\n <circle cx=\"12\" cy=\"12\" r=\"3\" />\n </svg>\n }\n</button>\n"],"mappings":";;;;;;;;;;;;;AA8CA,IAAa,UAAb,MAAa,QAAO;CACD,OAAO,OAAgC,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AAA;EAAgB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAhB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAgB,cAAA;EAAA,UAAA;EAAA,QAAA;GAAA,KAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,mBAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,mBAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;EAAA;EAAA,UAAA;EAAA,UC9B7B;EAyCA,eAAA,GAAA,kBAAA;CAAA,CAAA;;ADXa,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAgB,YAAA,CAAA;EAL5B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAoB,eAEf,kBAAkB;GAAI,UAAA;EAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"ngwr-input.mjs","names":[],"sources":["../../../projects/lib/input/directives/wr-input.ts","../../../projects/lib/input/directives/wr-input-prefix.ts","../../../projects/lib/input/directives/wr-input-suffix.ts","../../../projects/lib/input/input-group.ts","../../../projects/lib/input/input-group.html","../../../projects/lib/input/password-toggle.ts","../../../projects/lib/input/password-toggle.html"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { Directive, ElementRef, computed, inject, input } from '@angular/core';\n\nimport { WR_FORM_FIELD, useFormFieldAria } from 'ngwr/form';\nimport { wrCheckStyles } from 'ngwr/utils';\n\nimport type { WrInputSize } from '../types';\n\n/**\n * Applies NGWR input styling to a native `<input>` element.\n *\n * Because this is an attribute directive on the real `<input>` (not a wrapper\n * component), any other directive that targets `input` — `[(ngModel)]`,\n * `[formControl]`, validators, third-party libraries like `ngx-mask` — composes\n * naturally on the same element.\n *\n * @example\n * ```html\n * <input wrInput [(ngModel)]=\"name\" placeholder=\"Your name\" />\n *\n * <!-- Works with ngx-mask, validators, etc. -->\n * <input wrInput [(ngModel)]=\"phone\" mask=\"(000) 000-0000\" />\n * ```\n *\n * For prefix / suffix / password-toggle layouts, wrap the input in\n * `<wr-input-group>`.\n *\n * @see https://ngwr.dev/reference/components/input\n */\n@Directive({\n selector: 'input[wrInput], textarea[wrInput]',\n host: {\n class: 'wr-input',\n '[class]': 'classes()',\n '[attr.id]': 'resolvedId()',\n '[attr.aria-invalid]': 'ariaInvalid()',\n '[attr.aria-describedby]': 'describedBy()',\n '[attr.aria-required]': 'ariaRequired()',\n },\n})\nexport class WrInput {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly field = inject(WR_FORM_FIELD, { optional: true });\n\n /**\n * Read once, at construction: a static `id=\"\"` in the template is already on\n * the element by the time a directive is instantiated, and it must win over\n * the field's generated one.\n */\n private readonly ownId = this.host.nativeElement.getAttribute('id');\n\n /**\n * Adopts the surrounding `<wr-form-field>`'s `controlId`, so the label it\n * already rendered actually points at this element. Without this the `for`\n * referenced an id that existed nowhere and the input had no label at all.\n */\n protected readonly resolvedId = computed(() => this.ownId ?? this.field?.controlId() ?? null);\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('input');\n // Tell the field which id actually stuck. Without this its `<label for>` keeps\n // pointing at the generated id while this element answers to the author's own —\n // a label referencing nothing, which is the same as having none.\n if (this.ownId) this.field?.adoptControlId(this.ownId);\n }\n\n /**\n * Announced state, taken from the surrounding `<wr-form-field>`.\n *\n * The field renders the message but cannot reach the projected control, so\n * the control reads back: without this the error is visible on screen and\n * invisible to a screen reader, which never learns the field is invalid or\n * what the message says.\n */\n // Through the shared helper, not a local pair: the hint is described by\n // `hintId`, which only `useFormFieldAria()` composes, and `aria-invalid` keys\n // on the error COUNT rather than on \"something is described\". Hand-rolled here,\n // these three announced the error and never the hint — and `<input wrInput>` is\n // the control the report was filed against.\n private readonly fieldAria = useFormFieldAria();\n protected readonly describedBy = this.fieldAria.describedBy;\n protected readonly ariaInvalid = this.fieldAria.ariaInvalid;\n\n /** The element's own `aria-required`, read once: a hand-written one wins over the field's. */\n private readonly ownAriaRequired = this.host.nativeElement.getAttribute('aria-required');\n\n /**\n * Native `required` (including the one Signal Forms binds) already announces it,\n * so the field's `required` only fills in when neither is there.\n */\n protected ariaRequired(): string | null {\n if (this.ownAriaRequired !== null) return this.ownAriaRequired;\n if ((this.host.nativeElement as HTMLInputElement).required) return null;\n return this.fieldAria.ariaRequired();\n }\n\n /**\n * Control size. @default 'md'\n *\n * Called `wrSize` until v14, to dodge the native `<input size>` attribute —\n * which measures the field in characters and which `.wr-input`'s `width: 100%`\n * has always overridden, so the clash it guarded against was never observable.\n * It made this the one size input in the catalog spelled differently from the\n * other twenty-three. The cost of the change is that a consumer who wanted the\n * NATIVE `size` on an ngwr input can no longer have it — but `width: 100%`\n * meant they never did.\n */\n readonly size = input<WrInputSize>('md');\n\n /** Pill-shaped corners. @default false */\n readonly rounded = input(false, { transform: coerceBooleanProperty });\n\n protected readonly classes = computed(() => {\n const parts: string[] = [];\n const size = this.size();\n if (size !== 'md') parts.push(`wr-input--${size}`);\n if (this.rounded()) parts.push('wr-input--rounded');\n return parts.join(' ');\n });\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Directive } from '@angular/core';\n\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/**\n * Marks an element as the **left** decoration inside `<wr-input-group>`.\n * Adds the `.wr-input-group__affix` class so the group's layout flexes it\n * to the input's left edge.\n *\n * @example\n * ```html\n * <wr-input-group>\n * <span wrInputPrefix>$</span>\n * <input wrInput [(ngModel)]=\"amount\" type=\"number\" />\n * </wr-input-group>\n * ```\n */\n@Directive({\n selector: '[wrInputPrefix]',\n host: { class: 'wr-input-group__affix wr-input-group__affix--prefix' },\n})\nexport class WrInputPrefix {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('input');\n }\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Directive } from '@angular/core';\n\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/**\n * Marks an element as the **right** decoration inside `<wr-input-group>`.\n * Adds the `.wr-input-group__affix` class so the group's layout flexes it\n * to the input's right edge.\n *\n * @example\n * ```html\n * <wr-input-group>\n * <input wrInput [(ngModel)]=\"amount\" type=\"number\" />\n * <span wrInputSuffix>USD</span>\n * </wr-input-group>\n * ```\n */\n@Directive({\n selector: '[wrInputSuffix]',\n host: { class: 'wr-input-group__affix wr-input-group__affix--suffix' },\n})\nexport class WrInputSuffix {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('input');\n }\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport {\n Component,\n ElementRef,\n Renderer2,\n ViewEncapsulation,\n afterEveryRender,\n computed,\n contentChild,\n effect,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\n\nimport { useI18nText } from 'ngwr/i18n';\nimport { WrSpinner } from 'ngwr/spinner';\nimport { wrCheckStyles } from 'ngwr/utils';\n\nimport { WrInput } from './directives';\n\n/**\n * Container for `<input wrInput>` + `[wrInputPrefix]` / `[wrInputSuffix]` /\n * `<wr-password-toggle>` siblings. Renders the border and focus ring; the\n * inner native input drops its own border so it visually melts into the\n * group.\n *\n * Focus styling is driven entirely by `:focus-within`, so any focusable child\n * counts.\n *\n * `clearable` and `loading` draw a clear (×) button and a spinner after the\n * field, before any `[wrInputSuffix]` or `<wr-password-toggle>`. Both act on the\n * first `wrInput` the group wraps.\n *\n * @example\n * ```html\n * <wr-input-group>\n * <span wrInputPrefix>$</span>\n * <input wrInput [(ngModel)]=\"amount\" type=\"number\" />\n * <span wrInputSuffix>USD</span>\n * </wr-input-group>\n *\n * <!-- a search box: a clear button, and a spinner while the lookup runs -->\n * <wr-input-group clearable [loading]=\"pending()\">\n * <input wrInput [(ngModel)]=\"query\" placeholder=\"Search\" />\n * </wr-input-group>\n * ```\n *\n * @see https://ngwr.dev/reference/components/input\n */\n@Component({\n selector: 'wr-input-group',\n templateUrl: './input-group.html',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-input-group', '[class]': 'classes()', '(input)': 'syncClear()' },\n imports: [WrSpinner],\n})\nexport class WrInputGroup {\n private readonly renderer = inject(Renderer2);\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('input');\n\n // A native field's value is not a signal, and a model write (`ngModel`,\n // `[formField]`, a bound `[value]`) reaches it with no event. So the field\n // is read after every render, and on its own `input` events in between.\n afterEveryRender({ read: () => this.syncClear() });\n\n effect(() => {\n const field = this.field()?.nativeElement;\n if (!field) return;\n if (this.loading()) this.renderer.setAttribute(field, 'aria-busy', 'true');\n else this.renderer.removeAttribute(field, 'aria-busy');\n });\n }\n\n /** Pill-shaped corners. @default false */\n readonly rounded = input(false, { transform: coerceBooleanProperty });\n\n /**\n * Show a clear (×) button while the field holds text and is neither disabled\n * nor read-only. Clearing empties the field through an `input` event, so\n * whatever is bound to it (`ngModel`, `[formField]`, an `(input)` listener)\n * hears it as an edit, and puts focus back in the field. It is a pointer\n * control: from the keyboard, emptying the field clears it. @default false\n */\n readonly clearable = input(false, { transform: coerceBooleanProperty });\n\n /** Clear (×) button aria-label. Falls back to `common.clear`. */\n readonly clearLabel = input<string | null>(null);\n\n /**\n * Show a spinner after the field and mark the field `aria-busy`. The field\n * stays editable. @default false\n */\n readonly loading = input(false, { transform: coerceBooleanProperty });\n\n /** Emitted after the clear (×) button emptied the field. */\n readonly cleared = output<void>();\n\n protected readonly resolvedClear = useI18nText(this.clearLabel, 'common.clear', 'Clear');\n\n private readonly field = contentChild<WrInput, ElementRef<HTMLInputElement | HTMLTextAreaElement>>(WrInput, {\n read: ElementRef,\n });\n\n /** Whether the field has text a user could clear right now. */\n private readonly fieldClearable = signal(false);\n\n protected readonly clearShown = computed(() => this.clearable() && this.fieldClearable());\n\n protected syncClear(): void {\n if (!this.clearable()) return;\n const field = this.field()?.nativeElement;\n this.fieldClearable.set(!!field && field.value !== '' && !field.disabled && !field.readOnly);\n }\n\n protected clear(): void {\n const field = this.field()?.nativeElement;\n if (!field || field.disabled || field.readOnly) return;\n field.value = '';\n field.dispatchEvent(new Event('input', { bubbles: true }));\n field.focus();\n this.cleared.emit();\n }\n\n protected readonly classes = computed(() => {\n const parts: string[] = [];\n if (this.rounded()) parts.push('wr-input-group--rounded');\n return parts.join(' ');\n });\n}\n","<ng-content />\n<!-- Pointer-only, as the select's is: emptying the field is the keyboard way to clear. -->\n@if (clearShown()) {\n <span class=\"wr-input-group__clear\" role=\"button\" [attr.aria-label]=\"resolvedClear()\" tabindex=\"-1\" (click)=\"clear()\">\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\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 aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n} @else if (clearable()) {\n <!-- Holds the ×'s room while the field is empty, so clearing does not narrow the group. -->\n <span class=\"wr-input-group__clear-space\" aria-hidden=\"true\"></span>\n}\n<!-- Hidden from the accessibility tree: the field says it is busy with `aria-busy`. -->\n@if (loading()) {\n <wr-spinner class=\"wr-input-group__spinner\" size=\"sm\" aria-hidden=\"true\" />\n}\n<ng-content select=\"[wrInputSuffix], wr-password-toggle\" />\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Component, ViewEncapsulation, computed, input, signal } from '@angular/core';\n\nimport { useI18nText } from 'ngwr/i18n';\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/**\n * Self-contained eye-toggle button. Flips the linked `<input>`'s `type`\n * attribute between `password` and `text`. Drop it inside an\n * `<wr-input-group>` next to a password input.\n *\n * @example\n * ```html\n * <wr-input-group>\n * <input wrInput type=\"password\" [(ngModel)]=\"pw\" #pwInput />\n * <wr-password-toggle [for]=\"pwInput\" />\n * </wr-input-group>\n * ```\n */\n@Component({\n selector: 'wr-password-toggle',\n templateUrl: './password-toggle.html',\n encapsulation: ViewEncapsulation.None,\n})\nexport class WrPasswordToggle {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('input');\n }\n\n /** Reference to the linked password input. */\n readonly for = input.required<HTMLInputElement>();\n\n protected readonly revealed = signal(false);\n\n /** Accessible name while the password is hidden. Falls back to `input.showPassword`. */\n readonly showPasswordLabel = input<string | null>(null);\n\n /** Accessible name while the password is revealed. Falls back to `input.hidePassword`. */\n readonly hidePasswordLabel = input<string | null>(null);\n\n private readonly resolvedShowPasswordLabel = useI18nText(\n this.showPasswordLabel,\n 'input.showPassword',\n 'Show password'\n );\n private readonly resolvedHidePasswordLabel = useI18nText(\n this.hidePasswordLabel,\n 'input.hidePassword',\n 'Hide password'\n );\n\n protected readonly ariaLabel = computed(() =>\n this.revealed() ? this.resolvedHidePasswordLabel() : this.resolvedShowPasswordLabel()\n );\n\n protected toggle(): void {\n const input = this.for();\n const next = input.type === 'password' ? 'text' : 'password';\n input.type = next;\n this.revealed.set(next === 'text');\n }\n}\n","<button\n type=\"button\"\n class=\"wr-input-group__toggle\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-pressed]=\"revealed()\"\n (click)=\"toggle()\"\n>\n @if (revealed()) {\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\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 aria-hidden=\"true\"\n >\n <path d=\"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49\" />\n <path d=\"M14.084 14.158a3 3 0 0 1-4.242-4.242\" />\n <path d=\"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143\" />\n <path d=\"m2 2 20 20\" />\n </svg>\n } @else {\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\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 aria-hidden=\"true\"\n >\n <path d=\"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0\" />\n <circle cx=\"12\" cy=\"12\" r=\"3\" />\n </svg>\n }\n</button>\n"],"mappings":";;;;;;;;;;;;;AA+CA,IAAa,UAAb,MAAa,QAAO;CACD,OAAO,OAAgC,UAAU;CACjD,QAAQ,OAAO,eAAe,EAAE,UAAU,KAAI,CAAE;CAOhD,QAAQ,KAAK,KAAK,cAAc,aAAa,IAAI;CAO/C,aAAa,eAAe,KAAK,SAAS,KAAK,OAAO,UAAS,KAAM,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;CAE7F,cAAA;EACE,IAAI,OAAO,cAAc,eAAe,WAAW,cAAc,OAAO;EAIxE,IAAI,KAAK,OAAO,KAA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YAAA;EAAA,SAAA;EAAA,MAAA;EAAgB,cAAA;EAAA,UAAA;EAAA,QAAA;GAAA,KAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,mBAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,mBAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;EAAA;EAAA,UAAA;EAAA,UC9B7B;EAyCA,eAAA,GAAA,kBAAA;CAAA,CAAA;;ADXa,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAgB,YAAA,CAAA;EAL5B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAoB,eAEf,kBAAkB;GAAI,UAAA;EAAA,CAAA"}
|
|
@@ -52,7 +52,7 @@ var WrKbd = class WrKbd {
|
|
|
52
52
|
}
|
|
53
53
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
54
54
|
minVersion: "12.0.0",
|
|
55
|
-
version: "22.
|
|
55
|
+
version: "22.3.0",
|
|
56
56
|
ngImport: i0,
|
|
57
57
|
type: WrKbd,
|
|
58
58
|
deps: [],
|
|
@@ -60,7 +60,7 @@ var WrKbd = class WrKbd {
|
|
|
60
60
|
});
|
|
61
61
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
62
62
|
minVersion: "17.0.0",
|
|
63
|
-
version: "22.
|
|
63
|
+
version: "22.3.0",
|
|
64
64
|
type: WrKbd,
|
|
65
65
|
isStandalone: true,
|
|
66
66
|
selector: "wr-kbd",
|
|
@@ -92,7 +92,7 @@ var WrKbd = class WrKbd {
|
|
|
92
92
|
};
|
|
93
93
|
i0.ɵɵngDeclareClassMetadata({
|
|
94
94
|
minVersion: "12.0.0",
|
|
95
|
-
version: "22.
|
|
95
|
+
version: "22.3.0",
|
|
96
96
|
ngImport: i0,
|
|
97
97
|
type: WrKbd,
|
|
98
98
|
decorators: [{
|
package/fesm2022/ngwr-knob.mjs
CHANGED
|
@@ -176,7 +176,7 @@ var WrKnob = class WrKnob {
|
|
|
176
176
|
}
|
|
177
177
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
178
178
|
minVersion: "12.0.0",
|
|
179
|
-
version: "22.
|
|
179
|
+
version: "22.3.0",
|
|
180
180
|
ngImport: i0,
|
|
181
181
|
type: WrKnob,
|
|
182
182
|
deps: [],
|
|
@@ -184,7 +184,7 @@ var WrKnob = class WrKnob {
|
|
|
184
184
|
});
|
|
185
185
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
186
186
|
minVersion: "17.0.0",
|
|
187
|
-
version: "22.
|
|
187
|
+
version: "22.3.0",
|
|
188
188
|
type: WrKnob,
|
|
189
189
|
isStandalone: true,
|
|
190
190
|
selector: "wr-knob",
|
|
@@ -303,7 +303,7 @@ var WrKnob = class WrKnob {
|
|
|
303
303
|
};
|
|
304
304
|
i0.ɵɵngDeclareClassMetadata({
|
|
305
305
|
minVersion: "12.0.0",
|
|
306
|
-
version: "22.
|
|
306
|
+
version: "22.3.0",
|
|
307
307
|
ngImport: i0,
|
|
308
308
|
type: WrKnob,
|
|
309
309
|
decorators: [{
|
package/fesm2022/ngwr-layout.mjs
CHANGED
|
@@ -40,7 +40,7 @@ var WrLayoutSider = class WrLayoutSider {
|
|
|
40
40
|
}
|
|
41
41
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
42
42
|
minVersion: "12.0.0",
|
|
43
|
-
version: "22.
|
|
43
|
+
version: "22.3.0",
|
|
44
44
|
ngImport: i0,
|
|
45
45
|
type: WrLayoutSider,
|
|
46
46
|
deps: [],
|
|
@@ -48,7 +48,7 @@ var WrLayoutSider = class WrLayoutSider {
|
|
|
48
48
|
});
|
|
49
49
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
50
50
|
minVersion: "17.1.0",
|
|
51
|
-
version: "22.
|
|
51
|
+
version: "22.3.0",
|
|
52
52
|
type: WrLayoutSider,
|
|
53
53
|
isStandalone: true,
|
|
54
54
|
selector: "wr-layout-sider",
|
|
@@ -102,7 +102,7 @@ var WrLayoutSider = class WrLayoutSider {
|
|
|
102
102
|
};
|
|
103
103
|
i0.ɵɵngDeclareClassMetadata({
|
|
104
104
|
minVersion: "12.0.0",
|
|
105
|
-
version: "22.
|
|
105
|
+
version: "22.3.0",
|
|
106
106
|
ngImport: i0,
|
|
107
107
|
type: WrLayoutSider,
|
|
108
108
|
decorators: [{
|
|
@@ -180,7 +180,7 @@ var WrLayout = class WrLayout {
|
|
|
180
180
|
}, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
181
181
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
182
182
|
minVersion: "12.0.0",
|
|
183
|
-
version: "22.
|
|
183
|
+
version: "22.3.0",
|
|
184
184
|
ngImport: i0,
|
|
185
185
|
type: WrLayout,
|
|
186
186
|
deps: [],
|
|
@@ -188,7 +188,7 @@ var WrLayout = class WrLayout {
|
|
|
188
188
|
});
|
|
189
189
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
190
190
|
minVersion: "17.2.0",
|
|
191
|
-
version: "22.
|
|
191
|
+
version: "22.3.0",
|
|
192
192
|
type: WrLayout,
|
|
193
193
|
isStandalone: true,
|
|
194
194
|
selector: "wr-layout",
|
|
@@ -209,7 +209,7 @@ var WrLayout = class WrLayout {
|
|
|
209
209
|
};
|
|
210
210
|
i0.ɵɵngDeclareClassMetadata({
|
|
211
211
|
minVersion: "12.0.0",
|
|
212
|
-
version: "22.
|
|
212
|
+
version: "22.3.0",
|
|
213
213
|
ngImport: i0,
|
|
214
214
|
type: WrLayout,
|
|
215
215
|
decorators: [{
|
|
@@ -242,7 +242,7 @@ var WrLayoutHeader = class WrLayoutHeader {
|
|
|
242
242
|
}
|
|
243
243
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
244
244
|
minVersion: "12.0.0",
|
|
245
|
-
version: "22.
|
|
245
|
+
version: "22.3.0",
|
|
246
246
|
ngImport: i0,
|
|
247
247
|
type: WrLayoutHeader,
|
|
248
248
|
deps: [],
|
|
@@ -250,7 +250,7 @@ var WrLayoutHeader = class WrLayoutHeader {
|
|
|
250
250
|
});
|
|
251
251
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
252
252
|
minVersion: "14.0.0",
|
|
253
|
-
version: "22.
|
|
253
|
+
version: "22.3.0",
|
|
254
254
|
type: WrLayoutHeader,
|
|
255
255
|
isStandalone: true,
|
|
256
256
|
selector: "wr-layout-header",
|
|
@@ -266,7 +266,7 @@ var WrLayoutHeader = class WrLayoutHeader {
|
|
|
266
266
|
};
|
|
267
267
|
i0.ɵɵngDeclareClassMetadata({
|
|
268
268
|
minVersion: "12.0.0",
|
|
269
|
-
version: "22.
|
|
269
|
+
version: "22.3.0",
|
|
270
270
|
ngImport: i0,
|
|
271
271
|
type: WrLayoutHeader,
|
|
272
272
|
decorators: [{
|
|
@@ -295,7 +295,7 @@ var WrLayoutContent = class WrLayoutContent {
|
|
|
295
295
|
}
|
|
296
296
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
297
297
|
minVersion: "12.0.0",
|
|
298
|
-
version: "22.
|
|
298
|
+
version: "22.3.0",
|
|
299
299
|
ngImport: i0,
|
|
300
300
|
type: WrLayoutContent,
|
|
301
301
|
deps: [],
|
|
@@ -303,7 +303,7 @@ var WrLayoutContent = class WrLayoutContent {
|
|
|
303
303
|
});
|
|
304
304
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
305
305
|
minVersion: "14.0.0",
|
|
306
|
-
version: "22.
|
|
306
|
+
version: "22.3.0",
|
|
307
307
|
type: WrLayoutContent,
|
|
308
308
|
isStandalone: true,
|
|
309
309
|
selector: "wr-layout-content",
|
|
@@ -319,7 +319,7 @@ var WrLayoutContent = class WrLayoutContent {
|
|
|
319
319
|
};
|
|
320
320
|
i0.ɵɵngDeclareClassMetadata({
|
|
321
321
|
minVersion: "12.0.0",
|
|
322
|
-
version: "22.
|
|
322
|
+
version: "22.3.0",
|
|
323
323
|
ngImport: i0,
|
|
324
324
|
type: WrLayoutContent,
|
|
325
325
|
decorators: [{
|
|
@@ -348,7 +348,7 @@ var WrLayoutFooter = class WrLayoutFooter {
|
|
|
348
348
|
}
|
|
349
349
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
350
350
|
minVersion: "12.0.0",
|
|
351
|
-
version: "22.
|
|
351
|
+
version: "22.3.0",
|
|
352
352
|
ngImport: i0,
|
|
353
353
|
type: WrLayoutFooter,
|
|
354
354
|
deps: [],
|
|
@@ -356,7 +356,7 @@ var WrLayoutFooter = class WrLayoutFooter {
|
|
|
356
356
|
});
|
|
357
357
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
358
358
|
minVersion: "14.0.0",
|
|
359
|
-
version: "22.
|
|
359
|
+
version: "22.3.0",
|
|
360
360
|
type: WrLayoutFooter,
|
|
361
361
|
isStandalone: true,
|
|
362
362
|
selector: "wr-layout-footer",
|
|
@@ -372,7 +372,7 @@ var WrLayoutFooter = class WrLayoutFooter {
|
|
|
372
372
|
};
|
|
373
373
|
i0.ɵɵngDeclareClassMetadata({
|
|
374
374
|
minVersion: "12.0.0",
|
|
375
|
-
version: "22.
|
|
375
|
+
version: "22.3.0",
|
|
376
376
|
ngImport: i0,
|
|
377
377
|
type: WrLayoutFooter,
|
|
378
378
|
decorators: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngwr-layout.mjs","names":[],"sources":["../../../projects/lib/layout/layout-sider.ts","../../../projects/lib/layout/layout.ts","../../../projects/lib/layout/layout-header.ts","../../../projects/lib/layout/layout-content.ts","../../../projects/lib/layout/layout-footer.ts"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { Component, ViewEncapsulation, computed, effect, input, model, output, untracked } from '@angular/core';\n\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/**\n * Collapsible side panel. Lives inside a row `<wr-layout>` next to a\n * `<wr-layout-content>`. Two-way `[(collapsed)]` controls width.\n *\n * @example\n * ```html\n * <wr-layout>\n * <wr-layout-sider [(collapsed)]=\"collapsed\" width=\"14rem\" collapsedWidth=\"3rem\">\n * …\n * </wr-layout-sider>\n * <wr-layout-content>Main</wr-layout-content>\n * </wr-layout>\n * ```\n */\n@Component({\n selector: 'wr-layout-sider',\n template: '<ng-content />',\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'wr-layout-sider',\n '[class]': 'classes()',\n '[style.width]': 'collapsed() ? collapsedWidth() : width()',\n role: 'complementary',\n },\n})\nexport class WrLayoutSider {\n /** Two-way bindable collapsed state. @default false */\n readonly collapsed = model(false);\n\n /** Width when expanded. Any CSS length. @default '16rem' */\n readonly width = input<string>('16rem');\n\n /** Width when collapsed. Any CSS length. `0` to fully hide. @default '4rem' */\n readonly collapsedWidth = input<string>('4rem');\n\n /** Place the sider on the right edge instead of the left. @default false */\n readonly reverse = input(false, { transform: coerceBooleanProperty });\n\n /** Emits whenever `collapsed` changes (in addition to the two-way `[(collapsed)]`). */\n readonly collapsedChanged = output<boolean>();\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('layout');\n // The output is documented as firing whenever `collapsed` CHANGES, and it\n // only ever fired from `toggle()` — so a `[(collapsed)]` write, which is the\n // documented way to drive this, was silent. Emitting from an effect covers\n // both, and skipping the first run keeps the initial value from reading as a\n // change.\n let first = true;\n effect(() => {\n const collapsed = this.collapsed();\n if (first) {\n first = false;\n return;\n }\n untracked(() => this.collapsedChanged.emit(collapsed));\n });\n }\n\n protected readonly classes = computed(() => {\n const parts: string[] = [];\n if (this.collapsed()) parts.push('wr-layout-sider--collapsed');\n if (this.reverse()) parts.push('wr-layout-sider--reverse');\n return parts.join(' ');\n });\n\n /** Imperative toggle helper — `[(collapsed)]` still works alongside this. */\n toggle(): void {\n // No emit here: the effect above owns that, so a toggle and an external\n // write produce exactly one event each rather than two and none.\n this.collapsed.set(!this.collapsed());\n }\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Component, ViewEncapsulation, computed, contentChildren } from '@angular/core';\n\nimport { wrCheckStyles } from 'ngwr/utils';\n\nimport { WrLayoutSider } from './layout-sider';\n\n/**\n * App-shell layout container. Lays its children out as a flex column by\n * default; switches to a row when a `<wr-layout-sider>` is among the\n * direct children (so `header → [sider + content] → footer` falls into\n * place automatically — same convention as ng-zorro / antd Layout).\n *\n * @example\n * ```html\n * <wr-layout>\n * <wr-layout-header>App bar</wr-layout-header>\n * <wr-layout>\n * <wr-layout-sider [(collapsed)]=\"collapsed\">Sidebar</wr-layout-sider>\n * <wr-layout-content>Main</wr-layout-content>\n * </wr-layout>\n * <wr-layout-footer>© 2026</wr-layout-footer>\n * </wr-layout>\n * ```\n *\n * @see https://ngwr.dev/reference/components/layout\n */\n@Component({\n selector: 'wr-layout',\n template: '<ng-content />',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-layout', '[class]': 'classes()' },\n})\nexport class WrLayout {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('layout');\n }\n\n protected readonly siders = contentChildren(WrLayoutSider);\n\n protected readonly classes = computed(() => {\n const parts: string[] = [];\n if (this.siders().length > 0) parts.push('wr-layout--has-sider');\n return parts.join(' ');\n });\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Component, ViewEncapsulation } from '@angular/core';\n\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/**\n * Top bar of a {@link WrLayout}. Stretches across the parent;\n * size and stickiness are app-controlled via CSS.\n */\n@Component({\n selector: 'wr-layout-header',\n template: '<ng-content />',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-layout-header', role: 'banner' },\n})\nexport class WrLayoutHeader {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('layout');\n }\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Component, ViewEncapsulation } from '@angular/core';\n\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/**\n * Main content area of a {@link WrLayout}. Flex-grows to fill\n * remaining space.\n */\n@Component({\n selector: 'wr-layout-content',\n template: '<ng-content />',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-layout-content', role: 'main' },\n})\nexport class WrLayoutContent {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('layout');\n }\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Component, ViewEncapsulation } from '@angular/core';\n\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/**\n * Bottom bar of a {@link WrLayout}. Doesn't grow — sized by its\n * children.\n */\n@Component({\n selector: 'wr-layout-footer',\n template: '<ng-content />',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-layout-footer', role: 'contentinfo' },\n})\nexport class WrLayoutFooter {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('layout');\n }\n}\n"],"mappings":";;;;;;;;;;AAqCA,IAAa,gBAAb,MAAa,cAAa;CAEf,YAAY,MAAM,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CAGxB,QAAQ,MAAc,SAAQ,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAG9B,iBAAiB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AAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAc,YAAA,CAAA;EAN1B,MAAA;EAAU,MAAA,CAAA;GACT,UAAU;GACV,UAAU;GACV,eAAe,kBAAkB;GACjC,MAAM;IAAE,OAAO;IAAoB,MAAM;GAAa;EACvD,CAAA"}
|
|
1
|
+
{"version":3,"file":"ngwr-layout.mjs","names":[],"sources":["../../../projects/lib/layout/layout-sider.ts","../../../projects/lib/layout/layout.ts","../../../projects/lib/layout/layout-header.ts","../../../projects/lib/layout/layout-content.ts","../../../projects/lib/layout/layout-footer.ts"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { Component, ViewEncapsulation, computed, effect, input, model, output, untracked } from '@angular/core';\n\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/**\n * Collapsible side panel. Lives inside a row `<wr-layout>` next to a\n * `<wr-layout-content>`. Two-way `[(collapsed)]` controls width.\n *\n * @example\n * ```html\n * <wr-layout>\n * <wr-layout-sider [(collapsed)]=\"collapsed\" width=\"14rem\" collapsedWidth=\"3rem\">\n * …\n * </wr-layout-sider>\n * <wr-layout-content>Main</wr-layout-content>\n * </wr-layout>\n * ```\n */\n@Component({\n selector: 'wr-layout-sider',\n template: '<ng-content />',\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'wr-layout-sider',\n '[class]': 'classes()',\n '[style.width]': 'collapsed() ? collapsedWidth() : width()',\n role: 'complementary',\n },\n})\nexport class WrLayoutSider {\n /** Two-way bindable collapsed state. @default false */\n readonly collapsed = model(false);\n\n /** Width when expanded. Any CSS length. @default '16rem' */\n readonly width = input<string>('16rem');\n\n /** Width when collapsed. Any CSS length. `0` to fully hide. @default '4rem' */\n readonly collapsedWidth = input<string>('4rem');\n\n /** Place the sider on the right edge instead of the left. @default false */\n readonly reverse = input(false, { transform: coerceBooleanProperty });\n\n /** Emits whenever `collapsed` changes (in addition to the two-way `[(collapsed)]`). */\n readonly collapsedChanged = output<boolean>();\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('layout');\n // The output is documented as firing whenever `collapsed` CHANGES, and it\n // only ever fired from `toggle()` — so a `[(collapsed)]` write, which is the\n // documented way to drive this, was silent. Emitting from an effect covers\n // both, and skipping the first run keeps the initial value from reading as a\n // change.\n let first = true;\n effect(() => {\n const collapsed = this.collapsed();\n if (first) {\n first = false;\n return;\n }\n untracked(() => this.collapsedChanged.emit(collapsed));\n });\n }\n\n protected readonly classes = computed(() => {\n const parts: string[] = [];\n if (this.collapsed()) parts.push('wr-layout-sider--collapsed');\n if (this.reverse()) parts.push('wr-layout-sider--reverse');\n return parts.join(' ');\n });\n\n /** Imperative toggle helper — `[(collapsed)]` still works alongside this. */\n toggle(): void {\n // No emit here: the effect above owns that, so a toggle and an external\n // write produce exactly one event each rather than two and none.\n this.collapsed.set(!this.collapsed());\n }\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Component, ViewEncapsulation, computed, contentChildren } from '@angular/core';\n\nimport { wrCheckStyles } from 'ngwr/utils';\n\nimport { WrLayoutSider } from './layout-sider';\n\n/**\n * App-shell layout container. Lays its children out as a flex column by\n * default; switches to a row when a `<wr-layout-sider>` is among the\n * direct children (so `header → [sider + content] → footer` falls into\n * place automatically — same convention as ng-zorro / antd Layout).\n *\n * @example\n * ```html\n * <wr-layout>\n * <wr-layout-header>App bar</wr-layout-header>\n * <wr-layout>\n * <wr-layout-sider [(collapsed)]=\"collapsed\">Sidebar</wr-layout-sider>\n * <wr-layout-content>Main</wr-layout-content>\n * </wr-layout>\n * <wr-layout-footer>© 2026</wr-layout-footer>\n * </wr-layout>\n * ```\n *\n * @see https://ngwr.dev/reference/components/layout\n */\n@Component({\n selector: 'wr-layout',\n template: '<ng-content />',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-layout', '[class]': 'classes()' },\n})\nexport class WrLayout {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('layout');\n }\n\n protected readonly siders = contentChildren(WrLayoutSider);\n\n protected readonly classes = computed(() => {\n const parts: string[] = [];\n if (this.siders().length > 0) parts.push('wr-layout--has-sider');\n return parts.join(' ');\n });\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Component, ViewEncapsulation } from '@angular/core';\n\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/**\n * Top bar of a {@link WrLayout}. Stretches across the parent;\n * size and stickiness are app-controlled via CSS.\n */\n@Component({\n selector: 'wr-layout-header',\n template: '<ng-content />',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-layout-header', role: 'banner' },\n})\nexport class WrLayoutHeader {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('layout');\n }\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Component, ViewEncapsulation } from '@angular/core';\n\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/**\n * Main content area of a {@link WrLayout}. Flex-grows to fill\n * remaining space. Its padding is `--wr-layout-content-padding`, one length.\n */\n@Component({\n selector: 'wr-layout-content',\n template: '<ng-content />',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-layout-content', role: 'main' },\n})\nexport class WrLayoutContent {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('layout');\n }\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { Component, ViewEncapsulation } from '@angular/core';\n\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/**\n * Bottom bar of a {@link WrLayout}. Doesn't grow — sized by its\n * children.\n */\n@Component({\n selector: 'wr-layout-footer',\n template: '<ng-content />',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-layout-footer', role: 'contentinfo' },\n})\nexport class WrLayoutFooter {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('layout');\n }\n}\n"],"mappings":";;;;;;;;;;AAqCA,IAAa,gBAAb,MAAa,cAAa;CAEf,YAAY,MAAM,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CAGxB,QAAQ,MAAc,SAAQ,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAG9B,iBAAiB,MAAc,QAAO,GAAA,YAAA,CAAA,EAAA,WAAA,iBAAA,CAAA,+BAAA,CAAA,CAAA;CAGtC,UAAU,MAAM,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,UAAA,+BAAA,CAAA;EAAI,WAAW;CAAqB,CAAA;CAGzD,mBAAmB,OAAM;CAElC,cAAA;EACE,IAAI,OAAO,cAAc,eAAe,WAAW,cAAc,QAAQ;EAMzE,IAAI,QAAQ;EACZ,aAAY;GACV,MAAM,YAAY,KAAK,UAAS;GAChC,IAAI,OAAO;IACT,QAAQ;IACR;GACF;GACA,gBAAgB,KAAK,iBAAiB,KAAK,SAAS,CAAC;EACvD,CAAC;CACH;CAEmB,UAAU,eAAc;EACzC,MAAM,QAAkB,CAAA;EACxB,IAAI,KAAK,UAAS,GAAI,MAAM,KAAK,4BAA4B;EAC7D,IAAI,KAAK,QAAO,GAAI,MAAM,KAAK,0BAA0B;EACzD,OAAO,MAAM,KAAK,GAAG;CACvB,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAGF,SAAM;EAGJ,KAAK,UAAU,IAAI,CAAC,K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