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/types/ngwr-select.d.ts
CHANGED
|
@@ -22,9 +22,17 @@ import { Observable } from "rxjs";
|
|
|
22
22
|
*/
|
|
23
23
|
type WrOptionLeadingPlacement = 'option' | 'chip' | 'value';
|
|
24
24
|
/** Template context of `<ng-template wrOptionLeading>`. */
|
|
25
|
-
interface WrOptionLeadingContext<T = unknown> {
|
|
26
|
-
/** The option's value — `let-value`. */
|
|
25
|
+
interface WrOptionLeadingContext<T = unknown, I = T> {
|
|
26
|
+
/** The option's value — `let-value`. Under `valueWith` it is the id, not the item. */
|
|
27
27
|
readonly $implicit: T;
|
|
28
|
+
/**
|
|
29
|
+
* The item behind the option — `let-item="item"`. With `[options]` it is the
|
|
30
|
+
* item itself, so under `valueWith` it carries the fields the id leaves out.
|
|
31
|
+
* Without `valueWith` it equals `$implicit`. On a `<wr-option>` you declare
|
|
32
|
+
* yourself there is no item, so it is the value too; so it is for a selected
|
|
33
|
+
* value no row carries any more, such as a loader result since replaced.
|
|
34
|
+
*/
|
|
35
|
+
readonly item: I;
|
|
28
36
|
/** Where this copy is drawn, so one template can size itself per surface. */
|
|
29
37
|
readonly placement: WrOptionLeadingPlacement;
|
|
30
38
|
}
|
|
@@ -109,6 +117,8 @@ interface WrSelectContext {
|
|
|
109
117
|
* cannot be added, and marks itself unavailable.
|
|
110
118
|
*/
|
|
111
119
|
readonly atMaxItems: Signal<boolean>;
|
|
120
|
+
/** The item behind a value, for a leading template's `item`; the value itself when none carries it. */
|
|
121
|
+
itemFor(value: unknown): unknown;
|
|
112
122
|
/** Is the given option value currently selected? Handles both single and multi. */
|
|
113
123
|
isSelected(value: unknown): boolean;
|
|
114
124
|
/**
|
|
@@ -215,6 +225,8 @@ export declare class WrSelectLoadError<E = WrSafeAny> {
|
|
|
215
225
|
interface SelectedChip {
|
|
216
226
|
readonly value: unknown;
|
|
217
227
|
readonly label: string;
|
|
228
|
+
/** The item behind the value, or the value itself when no row carries one. */
|
|
229
|
+
readonly item: unknown;
|
|
218
230
|
/** The leading template this chip draws, or `null`. */
|
|
219
231
|
readonly leading: TemplateRef<WrOptionLeadingContext> | null;
|
|
220
232
|
}
|
|
@@ -242,11 +254,12 @@ interface SelectedChip {
|
|
|
242
254
|
* `ControlValueAccessor` in between. `[(value)]` works standalone, and classic
|
|
243
255
|
* `[(ngModel)]` / reactive forms keep working through Angular's bridge.
|
|
244
256
|
*
|
|
245
|
-
* `T` is an
|
|
246
|
-
* value
|
|
257
|
+
* `T` is an item of `[options]` or of what `[loader]` returns, and `V` is an
|
|
258
|
+
* option's value: the return type of `[valueWith]`, or else the type of the
|
|
259
|
+
* value binding. `value` is `V | readonly V[] | null`: one `V` in single and
|
|
247
260
|
* search mode, an array of them in multi and tag mode. The mode is a runtime
|
|
248
|
-
* input, so the type cannot pick one shape; narrow in the handler, or leave
|
|
249
|
-
* at
|
|
261
|
+
* input, so the type cannot pick one shape; narrow in the handler, or leave
|
|
262
|
+
* both at their default `unknown`.
|
|
250
263
|
*
|
|
251
264
|
* @example
|
|
252
265
|
* ```html
|
|
@@ -272,12 +285,15 @@ interface SelectedChip {
|
|
|
272
285
|
* [(value)]="categories"
|
|
273
286
|
* (searchChange)="store.search($event)"
|
|
274
287
|
* />
|
|
288
|
+
*
|
|
289
|
+
* <!-- Options of objects, the id in the model -->
|
|
290
|
+
* <wr-select [options]="people()" [displayWith]="personName" [valueWith]="personId" [(value)]="assigneeId" />
|
|
275
291
|
* ```
|
|
276
292
|
*
|
|
277
293
|
*
|
|
278
294
|
* @see https://ngwr.dev/reference/components/select
|
|
279
295
|
*/
|
|
280
|
-
export declare class WrSelect<T = unknown> implements FormValueControl<
|
|
296
|
+
export declare class WrSelect<T = unknown, V = T> implements FormValueControl<V | readonly V[] | null>, WrSelectContext {
|
|
281
297
|
/** Placeholder shown when no option is selected. Falls back to `select.placeholder`. */
|
|
282
298
|
readonly placeholder: import("@angular/core").InputSignal<string | null>;
|
|
283
299
|
/** Clear-selection (×) button aria-label. Falls back to `select.clearSelection`. */
|
|
@@ -352,6 +368,7 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
|
|
|
352
368
|
private readonly fieldAria;
|
|
353
369
|
protected readonly describedBy: import("@angular/core").Signal<string | null>;
|
|
354
370
|
protected readonly ariaInvalid: import("@angular/core").Signal<"true" | null>;
|
|
371
|
+
protected readonly ariaRequired: import("@angular/core").Signal<"true" | null>;
|
|
355
372
|
/**
|
|
356
373
|
* Disable the select. Bound automatically from the field's disabled state
|
|
357
374
|
* when used with `[formField]`.
|
|
@@ -373,6 +390,8 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
|
|
|
373
390
|
* @default false
|
|
374
391
|
*/
|
|
375
392
|
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
393
|
+
/** Stretch the select to fill its parent's width. @default false */
|
|
394
|
+
readonly block: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
376
395
|
/** Pill-shaped corners on the trigger. @default false */
|
|
377
396
|
readonly rounded: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
378
397
|
/**
|
|
@@ -440,13 +459,15 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
|
|
|
440
459
|
readonly searchQuery: import("@angular/core").ModelSignal<string>;
|
|
441
460
|
/**
|
|
442
461
|
* Option array, in every mode with a panel. Each item is rendered as a
|
|
443
|
-
* `<wr-option>` whose value is the item
|
|
444
|
-
* `[displayWith]`, before any projected `<wr-option>`
|
|
445
|
-
* query filters both lists alike. Ignored in `tag` mode,
|
|
462
|
+
* `<wr-option>` whose value is the item, or `[valueWith]` of it, and whose
|
|
463
|
+
* label comes from `[displayWith]`, before any projected `<wr-option>`
|
|
464
|
+
* children; a search query filters both lists alike. Ignored in `tag` mode,
|
|
465
|
+
* which has no panel.
|
|
446
466
|
*
|
|
447
467
|
* @example
|
|
448
468
|
* ```html
|
|
449
469
|
* <wr-select [options]="countries" [displayWith]="countryName" [(value)]="country" />
|
|
470
|
+
* <wr-select [options]="countries" [displayWith]="countryName" [valueWith]="countryCode" [(value)]="code" />
|
|
450
471
|
* <wr-select mode="multi" [options]="tags" [(value)]="picked" />
|
|
451
472
|
* ```
|
|
452
473
|
*/
|
|
@@ -456,6 +477,19 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
|
|
|
456
477
|
* selected, on its chip in multi mode. @default String
|
|
457
478
|
*/
|
|
458
479
|
readonly displayWith: import("@angular/core").InputSignal<(item: T) => string>;
|
|
480
|
+
/**
|
|
481
|
+
* Maps an `[options]` item, or a `[loader]` result, to the value the model
|
|
482
|
+
* holds, so a list of objects can bind an id. The trigger and the chips show
|
|
483
|
+
* the label of the item whose value matches. Values are compared with `===`.
|
|
484
|
+
* Without it an item is its own value. Not read by `freeText`, which commits
|
|
485
|
+
* the typed string, or by `tag` mode, which has no options.
|
|
486
|
+
*
|
|
487
|
+
* @example
|
|
488
|
+
* ```html
|
|
489
|
+
* <wr-select [options]="people()" [displayWith]="personName" [valueWith]="personId" [(value)]="assigneeId" />
|
|
490
|
+
* ```
|
|
491
|
+
*/
|
|
492
|
+
readonly valueWith: import("@angular/core").InputSignal<((item: T) => V) | null>;
|
|
459
493
|
/**
|
|
460
494
|
* Search mode: async loader. When set, the loader is called on every
|
|
461
495
|
* (debounced) keystroke and its result replaces `[options]`. Supports
|
|
@@ -671,10 +705,10 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
|
|
|
671
705
|
readonly maxTagCount: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
672
706
|
/**
|
|
673
707
|
* Unified value. Single mode holds a scalar (or `null`); multi / tag
|
|
674
|
-
* mode holds `readonly
|
|
708
|
+
* mode holds `readonly V[]`. Bound by `[formField]`, or two-way
|
|
675
709
|
* via `[(value)]`.
|
|
676
710
|
*/
|
|
677
|
-
readonly value: import("@angular/core").ModelSignal<
|
|
711
|
+
readonly value: import("@angular/core").ModelSignal<V | readonly V[] | null>;
|
|
678
712
|
/** Emitted on blur / commit so a bound field can mark itself touched. */
|
|
679
713
|
readonly touch: import("@angular/core").OutputEmitterRef<void>;
|
|
680
714
|
/** Fires after the panel opens. */
|
|
@@ -743,7 +777,7 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
|
|
|
743
777
|
* `[loader]` results, virtual rows), and the default for projected options that
|
|
744
778
|
* declare none of their own.
|
|
745
779
|
*/
|
|
746
|
-
readonly optionLeading: import("@angular/core").Signal<TemplateRef<WrOptionLeadingContext<unknown>> | null>;
|
|
780
|
+
readonly optionLeading: import("@angular/core").Signal<TemplateRef<WrOptionLeadingContext<unknown, unknown>> | null>;
|
|
747
781
|
/**
|
|
748
782
|
* The leading template for a value: the registered option's (its own, or the
|
|
749
783
|
* default it resolved to), else the select-wide default for a value with no
|
|
@@ -755,7 +789,7 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
|
|
|
755
789
|
* — one instance, for the one selected value. A search-shaped trigger draws the
|
|
756
790
|
* same visual through {@link searchLeading}, on a narrower condition.
|
|
757
791
|
*/
|
|
758
|
-
protected readonly selectedLeading: import("@angular/core").Signal<TemplateRef<WrOptionLeadingContext<unknown>> | null>;
|
|
792
|
+
protected readonly selectedLeading: import("@angular/core").Signal<TemplateRef<WrOptionLeadingContext<unknown, unknown>> | null>;
|
|
759
793
|
/**
|
|
760
794
|
* The same visual on a SEARCH-shaped trigger (`mode="search"`, a searchable
|
|
761
795
|
* single), drawn before the input — the surface an assignee picker actually
|
|
@@ -783,7 +817,7 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
|
|
|
783
817
|
* piece of state to keep in step with the field. Pinned in `option.spec.ts`
|
|
784
818
|
* ("re-creates it after a round trip"), so a future change here has to say so.
|
|
785
819
|
*/
|
|
786
|
-
protected readonly searchLeading: import("@angular/core").Signal<TemplateRef<WrOptionLeadingContext<unknown>> | null>;
|
|
820
|
+
protected readonly searchLeading: import("@angular/core").Signal<TemplateRef<WrOptionLeadingContext<unknown, unknown>> | null>;
|
|
787
821
|
/**
|
|
788
822
|
* Trigger label for single mode. Multi reads `selectedChips` instead.
|
|
789
823
|
*
|
|
@@ -817,7 +851,23 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
|
|
|
817
851
|
* `<wr-option>` in the panel, in every mode that has one.
|
|
818
852
|
*/
|
|
819
853
|
protected readonly dynamicOptions: import("@angular/core").Signal<readonly T[]>;
|
|
820
|
-
|
|
854
|
+
/** An item's value: `valueWith` of it, or the item itself. */
|
|
855
|
+
protected valueOf(item: T): V;
|
|
856
|
+
/**
|
|
857
|
+
* WrSelectContext - the item behind a value, for a leading template's `item`:
|
|
858
|
+
* the `[options]` item, else the one kept from an earlier pass, else the value.
|
|
859
|
+
*/
|
|
860
|
+
itemFor(value: unknown): unknown;
|
|
861
|
+
/** The first of `dynamicOptions()` carrying each value. */
|
|
862
|
+
private readonly itemsByValue;
|
|
863
|
+
/**
|
|
864
|
+
* Under `valueWith`, the item behind each selected value. An item stays here
|
|
865
|
+
* after a loader or a server search has dropped its row, so the label of an
|
|
866
|
+
* id outlives the query it was picked under.
|
|
867
|
+
*/
|
|
868
|
+
private readonly selectedItems;
|
|
869
|
+
/** A chip's label under `valueWith`: its item's, or the value as text while no item carries it. */
|
|
870
|
+
private itemLabel;
|
|
821
871
|
/** Lowercased labels of `dynamicOptions()`, by index: a query reads them, and never `displayWith`. */
|
|
822
872
|
private readonly dynamicSearchLabels;
|
|
823
873
|
private static readonly FALLBACK_ROW_PX;
|
|
@@ -874,6 +924,7 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
|
|
|
874
924
|
/** The windowed slice of options, each carrying its absolute index. */
|
|
875
925
|
protected readonly windowOptions: import("@angular/core").Signal<readonly {
|
|
876
926
|
item: T;
|
|
927
|
+
value: V;
|
|
877
928
|
index: number;
|
|
878
929
|
}[]>;
|
|
879
930
|
/** Stable id for a virtual option row at filtered index `i`. */
|
|
@@ -1197,8 +1248,8 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
|
|
|
1197
1248
|
private panelPositions;
|
|
1198
1249
|
/** `notify: false` is the destroy path: an output cannot emit from a destroyed view. */
|
|
1199
1250
|
private closeOverlay;
|
|
1200
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WrSelect<any>, never>;
|
|
1201
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WrSelect<any>, "wr-select", never, {
|
|
1251
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrSelect<any, any>, never>;
|
|
1252
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WrSelect<any, any>, "wr-select", never, {
|
|
1202
1253
|
"placeholder": {
|
|
1203
1254
|
"alias": "placeholder";
|
|
1204
1255
|
"required": false;
|
|
@@ -1224,6 +1275,11 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
|
|
|
1224
1275
|
"required": false;
|
|
1225
1276
|
"isSignal": true;
|
|
1226
1277
|
};
|
|
1278
|
+
"block": {
|
|
1279
|
+
"alias": "block";
|
|
1280
|
+
"required": false;
|
|
1281
|
+
"isSignal": true;
|
|
1282
|
+
};
|
|
1227
1283
|
"rounded": {
|
|
1228
1284
|
"alias": "rounded";
|
|
1229
1285
|
"required": false;
|
|
@@ -1259,6 +1315,11 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
|
|
|
1259
1315
|
"required": false;
|
|
1260
1316
|
"isSignal": true;
|
|
1261
1317
|
};
|
|
1318
|
+
"valueWith": {
|
|
1319
|
+
"alias": "valueWith";
|
|
1320
|
+
"required": false;
|
|
1321
|
+
"isSignal": true;
|
|
1322
|
+
};
|
|
1262
1323
|
"loader": {
|
|
1263
1324
|
"alias": "loader";
|
|
1264
1325
|
"required": false;
|
|
@@ -1457,7 +1518,9 @@ export declare class WrOption {
|
|
|
1457
1518
|
* instantiate every row's avatar the moment the page renders. An option with
|
|
1458
1519
|
* no parent select has no panel to wait for.
|
|
1459
1520
|
*/
|
|
1460
|
-
protected readonly rowLeading: Signal<TemplateRef<WrOptionLeadingContext<unknown>> | null>;
|
|
1521
|
+
protected readonly rowLeading: Signal<TemplateRef<WrOptionLeadingContext<unknown, unknown>> | null>;
|
|
1522
|
+
/** The item behind this option, for the leading template's `item`; its value when the select holds none. */
|
|
1523
|
+
protected readonly rowItem: Signal<unknown>;
|
|
1461
1524
|
/** The wrapper the leading visual renders into — skipped when reading the text. */
|
|
1462
1525
|
private readonly leadingSlot;
|
|
1463
1526
|
/**
|
|
@@ -1612,7 +1675,7 @@ export declare class WrOptionGroup {
|
|
|
1612
1675
|
* <wr-select mode="multi" placeholder="Assignees" [(value)]="assignees">
|
|
1613
1676
|
* @for (p of people; track p.id) {
|
|
1614
1677
|
* <wr-option [value]="p.id">
|
|
1615
|
-
* <ng-template wrOptionLeading let-placement="placement">
|
|
1678
|
+
* <ng-template wrOptionLeading let-placement="placement" let-item="item">
|
|
1616
1679
|
* <wr-avatar shape="circle" [size]="placement === 'chip' ? 16 : 24" [url]="p.photo">{{ p.initials }}</wr-avatar>
|
|
1617
1680
|
* </ng-template>
|
|
1618
1681
|
* {{ p.name }}
|
|
@@ -1621,8 +1684,8 @@ export declare class WrOptionGroup {
|
|
|
1621
1684
|
* </wr-select>
|
|
1622
1685
|
* ```
|
|
1623
1686
|
*/
|
|
1624
|
-
export declare class WrOptionLeading<T = WrSafeAny> {
|
|
1625
|
-
readonly template: TemplateRef<WrOptionLeadingContext<T>>;
|
|
1687
|
+
export declare class WrOptionLeading<T = WrSafeAny, I = WrSafeAny> {
|
|
1688
|
+
readonly template: TemplateRef<WrOptionLeadingContext<T, I>>;
|
|
1626
1689
|
/**
|
|
1627
1690
|
* Types the template's `let-` variables under `strictTemplates`. Without it
|
|
1628
1691
|
* `let-placement` is `any`, and indexing a `Record<WrOptionLeadingPlacement, …>`
|
|
@@ -1644,9 +1707,9 @@ export declare class WrOptionLeading<T = WrSafeAny> {
|
|
|
1644
1707
|
* variable is in scope. This library's own docs page carries three helpers
|
|
1645
1708
|
* typed `(id: unknown)` to get around it, with nothing saying why.
|
|
1646
1709
|
*/
|
|
1647
|
-
static ngTemplateContextGuard<T>(_dir: WrOptionLeading<T>, _ctx: unknown): _ctx is WrOptionLeadingContext<T>;
|
|
1648
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WrOptionLeading<any>, never>;
|
|
1649
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<WrOptionLeading<any>, "ng-template[wrOptionLeading]", never, {}, {}, never, never, true, never>;
|
|
1710
|
+
static ngTemplateContextGuard<T, I>(_dir: WrOptionLeading<T, I>, _ctx: unknown): _ctx is WrOptionLeadingContext<T, I>;
|
|
1711
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrOptionLeading<any, any>, never>;
|
|
1712
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WrOptionLeading<any, any>, "ng-template[wrOptionLeading]", never, {}, {}, never, never, true, never>;
|
|
1650
1713
|
}
|
|
1651
1714
|
/**
|
|
1652
1715
|
* Token a `<wr-option>` injects to register itself with and notify its
|
|
@@ -21,8 +21,8 @@ interface WrSidebarGroupHarnessFilters extends BaseHarnessFilters {
|
|
|
21
21
|
readonly open?: boolean;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* Test harness for one row of a `<wr-sidebar>`: a page link,
|
|
25
|
-
* or the title row of a group.
|
|
24
|
+
* Test harness for one row of a `<wr-sidebar>`: a page link, an action, a
|
|
25
|
+
* disabled row, or the title row of a group.
|
|
26
26
|
*
|
|
27
27
|
* A row's accessible name is its title, badge and count joined by a hidden
|
|
28
28
|
* separator. Each reader here answers one piece without that separator, so
|
|
@@ -46,13 +46,21 @@ export declare class WrSidebarItemHarness extends ComponentHarness {
|
|
|
46
46
|
getLevel(): Promise<number>;
|
|
47
47
|
/** Whether this row is the current page, from `aria-current="page"`. */
|
|
48
48
|
isCurrent(): Promise<boolean>;
|
|
49
|
-
/** Whether the row is a disabled page: plain text, out of the tab order. */
|
|
49
|
+
/** Whether the row is a disabled page or action: plain text, out of the tab order. */
|
|
50
50
|
isDisabled(): Promise<boolean>;
|
|
51
51
|
/** Whether the row is the title of a group. {@link WrSidebarGroupHarness} opens and closes it. */
|
|
52
52
|
isGroup(): Promise<boolean>;
|
|
53
|
+
/** Whether the row is an action: a button that calls the entry's `action`, never the current page. */
|
|
54
|
+
isAction(): Promise<boolean>;
|
|
53
55
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
+
* The chord an action announces, as `aria-keyshortcuts` spells it
|
|
57
|
+
* (`'Control+K Meta+K'` for `'mod+k'`), or `null`. Not the keycap's text: that
|
|
58
|
+
* follows the platform, and jsdom is never a Mac.
|
|
59
|
+
*/
|
|
60
|
+
getShortcut(): Promise<string | null>;
|
|
61
|
+
/**
|
|
62
|
+
* Click the row: a link navigates, an action runs, and a group with no page
|
|
63
|
+
* of its own toggles. Throws for a disabled row, which is text and does nothing.
|
|
56
64
|
*/
|
|
57
65
|
click(): Promise<void>;
|
|
58
66
|
/** Move keyboard focus to the row. */
|
|
@@ -146,7 +154,11 @@ export declare class WrSidebarHarness extends ComponentHarness {
|
|
|
146
154
|
static with(options?: WrSidebarHarnessFilters): HarnessPredicate<WrSidebarHarness>;
|
|
147
155
|
/** The accessible name of the navigation landmark. */
|
|
148
156
|
getLabel(): Promise<string | null>;
|
|
149
|
-
/** The
|
|
157
|
+
/** The text projected into `[wrSidebarHeader]`, or `null` when the slot is unfilled. */
|
|
158
|
+
getHeaderText(): Promise<string | null>;
|
|
159
|
+
/** The text projected into `[wrSidebarFooter]`, or `null` when the slot is unfilled. */
|
|
160
|
+
getFooterText(): Promise<string | null>;
|
|
161
|
+
/** The reachable rows, in order: pages, actions, disabled rows and group titles, outside every closed group. */
|
|
150
162
|
getItems(filters?: WrSidebarItemHarnessFilters): Promise<WrSidebarItemHarness[]>;
|
|
151
163
|
/** The titles of the reachable rows, in order. */
|
|
152
164
|
getItemTitles(): Promise<string[]>;
|
|
@@ -164,7 +176,7 @@ export declare class WrSidebarHarness extends ComponentHarness {
|
|
|
164
176
|
* is current on every route unless it asks for an exact match.
|
|
165
177
|
*/
|
|
166
178
|
getCurrentTitles(): Promise<string[]>;
|
|
167
|
-
/** Click the first reachable row with this title. Throws when it is out of reach, or disabled. */
|
|
179
|
+
/** Click the first reachable row with this title: a link navigates, an action runs. Throws when it is out of reach, or disabled. */
|
|
168
180
|
clickItem(title: string | RegExp): Promise<void>;
|
|
169
181
|
/** Whether the first reachable group with this title is open. */
|
|
170
182
|
isGroupOpen(title: string | RegExp): Promise<boolean>;
|
|
@@ -172,5 +184,7 @@ export declare class WrSidebarHarness extends ComponentHarness {
|
|
|
172
184
|
openGroup(title: string | RegExp): Promise<void>;
|
|
173
185
|
/** Close the first reachable group with this title. */
|
|
174
186
|
closeGroup(title: string | RegExp): Promise<void>;
|
|
187
|
+
/** An unfilled slot holds no element and no text, which is what its `:empty` rule hides it by. */
|
|
188
|
+
private slotText;
|
|
175
189
|
}
|
|
176
190
|
export type { WrSidebarGroupHarnessFilters, WrSidebarHarnessFilters, WrSidebarItemHarnessFilters };
|
package/types/ngwr-sidebar.d.ts
CHANGED
|
@@ -13,6 +13,11 @@ type WrSidebarActiveOptions = {
|
|
|
13
13
|
* `danger` for Deprecated. The word carries the meaning; the tone only repeats it.
|
|
14
14
|
*/
|
|
15
15
|
type WrSidebarBadgeTone = 'neutral' | 'primary' | 'danger';
|
|
16
|
+
/**
|
|
17
|
+
* How the current page is painted: `primary` is the brand tint, `neutral` a grey
|
|
18
|
+
* one, for a shell that keeps its primary for the page's own actions.
|
|
19
|
+
*/
|
|
20
|
+
type WrSidebarActiveTone = 'primary' | 'neutral';
|
|
16
21
|
/** A word on the line under the title (`New`, `Optional`, `Deprecated`). */
|
|
17
22
|
interface WrSidebarBadge {
|
|
18
23
|
readonly text: string;
|
|
@@ -66,8 +71,25 @@ interface WrSidebarGroup extends WrSidebarRow {
|
|
|
66
71
|
/** Open on first render. @default false */
|
|
67
72
|
readonly defaultOpen?: boolean;
|
|
68
73
|
}
|
|
69
|
-
/**
|
|
70
|
-
|
|
74
|
+
/**
|
|
75
|
+
* A row that does something instead of going somewhere (open the search, start a
|
|
76
|
+
* new record): a `<button>` with the look and the keyboard of a link row. It has
|
|
77
|
+
* no route, so it is never the current page and no group opens for it.
|
|
78
|
+
*/
|
|
79
|
+
interface WrSidebarAction extends WrSidebarRow {
|
|
80
|
+
/** Called on click, and on Enter and Space as on any button. */
|
|
81
|
+
readonly action: () => void;
|
|
82
|
+
/**
|
|
83
|
+
* The chord that runs the same action, in the `ngwr/hotkey` form (`'mod+k'`).
|
|
84
|
+
* Drawn at the end of the row the way the platform writes it and published as
|
|
85
|
+
* `aria-keyshortcuts`. A hint only: the app binds the chord itself.
|
|
86
|
+
*/
|
|
87
|
+
readonly shortcut?: string;
|
|
88
|
+
/** Render as plain text, out of the tab order. A `badge` can say why (`Soon`). */
|
|
89
|
+
readonly disabled?: boolean;
|
|
90
|
+
}
|
|
91
|
+
/** A page, a group or an action. */
|
|
92
|
+
type WrSidebarEntry = WrSidebarItem | WrSidebarGroup | WrSidebarAction;
|
|
71
93
|
/** One rendered row, with everything the template needs already decided. */
|
|
72
94
|
interface SidebarNode {
|
|
73
95
|
/** The title path: what the open state and `track` key on. */
|
|
@@ -91,6 +113,11 @@ interface SidebarNode {
|
|
|
91
113
|
readonly countTail: string;
|
|
92
114
|
/** Where the row links to. `null` is plain text for a page, a whole-row toggle for a group. */
|
|
93
115
|
readonly url: readonly (string | number)[] | null;
|
|
116
|
+
/** What an action row runs. `null` on every other row, and on a disabled action. */
|
|
117
|
+
readonly action: (() => void) | null;
|
|
118
|
+
/** An action's chord as `wr-kbd` takes it and as `aria-keyshortcuts` spells it. */
|
|
119
|
+
readonly shortcut: string | null;
|
|
120
|
+
readonly keyShortcuts: string | null;
|
|
94
121
|
readonly children: readonly SidebarNode[] | null;
|
|
95
122
|
readonly open: boolean;
|
|
96
123
|
readonly active: boolean;
|
|
@@ -110,12 +137,28 @@ interface SidebarNode {
|
|
|
110
137
|
* gets `aria-current="page"`, and a collapsed group holding it shows a dot and
|
|
111
138
|
* says so (`sidebar.containsCurrent`).
|
|
112
139
|
*
|
|
140
|
+
* An entry with an `action` instead of a `url` is a `<button>` that calls it: the
|
|
141
|
+
* row for Search or New, with an optional `shortcut` chord at its end. It is
|
|
142
|
+
* never the current page.
|
|
143
|
+
*
|
|
113
144
|
* Rows are 32px. Under a coarse pointer (a phone, a tablet) they grow to 44px,
|
|
114
145
|
* and the split arrow to 44 by 44, with no input: the size follows the pointer
|
|
115
146
|
* rather than the container, so the same sidebar in a drawer on a laptop keeps
|
|
116
147
|
* its 32px rows. To force either size, set `--wr-sidebar-row-height`,
|
|
117
148
|
* `--wr-sidebar-row-padding-y` and `--wr-sidebar-chevron-size` on `.wr-sidebar`.
|
|
118
149
|
*
|
|
150
|
+
* The current page is painted through four hooks, `--wr-sidebar-row-active-bg`,
|
|
151
|
+
* `-color`, `-icon` and `-indicator` (the bar on the guide and the dot on a
|
|
152
|
+
* collapsed group), primary by default. `activeTone="neutral"` sets all four to
|
|
153
|
+
* the neutral roles.
|
|
154
|
+
*
|
|
155
|
+
* Two slots take any content: `[wrSidebarHeader]` above the rows (a workspace
|
|
156
|
+
* switcher, a search field) and `[wrSidebarFooter]` below them (the signed-in
|
|
157
|
+
* person, a language menu). Both sit inside the navigation landmark and inside
|
|
158
|
+
* the host's padding, `--wr-sidebar-slot-gap` away from the rows. The footer
|
|
159
|
+
* goes to the end of the host, so in a full-height sider it is at the bottom.
|
|
160
|
+
* An unfilled slot takes no room.
|
|
161
|
+
*
|
|
119
162
|
* The host pads its rows by `--wr-sidebar-padding` (`0.5rem`), so a hovered or
|
|
120
163
|
* current row's tint stays off the edge of whatever holds the nav. Where the
|
|
121
164
|
* container already supplies the inset, set the hook to `0` on `.wr-sidebar`,
|
|
@@ -138,6 +181,14 @@ interface SidebarNode {
|
|
|
138
181
|
* ]" />
|
|
139
182
|
* ```
|
|
140
183
|
*
|
|
184
|
+
* @example
|
|
185
|
+
* ```html
|
|
186
|
+
* <wr-sidebar [entries]="entries">
|
|
187
|
+
* <button wr-btn wrSidebarHeader block (click)="create()">New page</button>
|
|
188
|
+
* <button wr-btn wrSidebarFooter block outlined (click)="signOut()">Sign out</button>
|
|
189
|
+
* </wr-sidebar>
|
|
190
|
+
* ```
|
|
191
|
+
*
|
|
141
192
|
* @see https://ngwr.dev/reference/components/sidebar
|
|
142
193
|
*/
|
|
143
194
|
export declare class WrSidebar {
|
|
@@ -169,6 +220,12 @@ export declare class WrSidebar {
|
|
|
169
220
|
* `autoExpand`. @default false
|
|
170
221
|
*/
|
|
171
222
|
readonly autoCollapse: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
223
|
+
/**
|
|
224
|
+
* How the current page is painted: the primary tint, or with `'neutral'` a
|
|
225
|
+
* grey one that leaves the primary to the page's own actions. Either way the
|
|
226
|
+
* four `--wr-sidebar-row-active-*` hooks take any colour. @default 'primary'
|
|
227
|
+
*/
|
|
228
|
+
readonly activeTone: import("@angular/core").InputSignal<WrSidebarActiveTone>;
|
|
172
229
|
/** Spoken after a collapsed group that holds the current page. */
|
|
173
230
|
protected readonly containsCurrentLabel: import("@angular/core").Signal<string>;
|
|
174
231
|
/** The split arrow's name: the group's title is the link beside it. */
|
|
@@ -250,6 +307,11 @@ export declare class WrSidebar {
|
|
|
250
307
|
"required": false;
|
|
251
308
|
"isSignal": true;
|
|
252
309
|
};
|
|
253
|
-
|
|
310
|
+
"activeTone": {
|
|
311
|
+
"alias": "activeTone";
|
|
312
|
+
"required": false;
|
|
313
|
+
"isSignal": true;
|
|
314
|
+
};
|
|
315
|
+
}, {}, never, ["[wrSidebarHeader]", "[wrSidebarFooter]"], true, never>;
|
|
254
316
|
}
|
|
255
|
-
export type { WrSidebarActiveOptions, WrSidebarBadge, WrSidebarBadgeTone, WrSidebarEntry, WrSidebarGroup, WrSidebarItem, WrSidebarRow };
|
|
317
|
+
export type { WrSidebarAction, WrSidebarActiveOptions, WrSidebarActiveTone, WrSidebarBadge, WrSidebarBadgeTone, WrSidebarEntry, WrSidebarGroup, WrSidebarItem, WrSidebarRow };
|
|
@@ -44,6 +44,10 @@ interface WrSortableListContext {
|
|
|
44
44
|
indexOf(item: {
|
|
45
45
|
readonly host: ElementRef<HTMLElement>;
|
|
46
46
|
}): number;
|
|
47
|
+
/** Same as `indexOf`, cached per `items` array and row count; reads `items`. */
|
|
48
|
+
positionOf(item: {
|
|
49
|
+
readonly host: ElementRef<HTMLElement>;
|
|
50
|
+
}): number;
|
|
47
51
|
/** Key handling for a row — pick up, move, drop, cancel. */
|
|
48
52
|
onRowKeydown(event: KeyboardEvent, index: number): void;
|
|
49
53
|
/** A held row losing focus ends the gesture as a drop. */
|
|
@@ -211,6 +215,8 @@ export declare class WrSortableList<T = unknown> implements WrSortableListContex
|
|
|
211
215
|
* the DOM, so `indexOf` cannot find it and the stale entry is swept then.
|
|
212
216
|
*/
|
|
213
217
|
private readonly rows;
|
|
218
|
+
/** Row positions for one `items` array and row count, so a change sorts once however many rows ask. */
|
|
219
|
+
private positions;
|
|
214
220
|
/** Index of the row the keyboard is holding, or `null` when nothing is held. */
|
|
215
221
|
readonly grabbedIndex: WritableSignal<number | null>;
|
|
216
222
|
/** Live-region text. Written by the keyboard path only. */
|
|
@@ -262,6 +268,14 @@ export declare class WrSortableList<T = unknown> implements WrSortableListContex
|
|
|
262
268
|
indexOf(item: {
|
|
263
269
|
readonly host: ElementRef<HTMLElement>;
|
|
264
270
|
}): number;
|
|
271
|
+
/**
|
|
272
|
+
* @internal The same answer as `indexOf`, served from a map that is rebuilt
|
|
273
|
+
* only when `items` or the number of rows changes. Reads `items`, so a
|
|
274
|
+
* `computed` that calls it follows every reorder.
|
|
275
|
+
*/
|
|
276
|
+
positionOf(item: {
|
|
277
|
+
readonly host: ElementRef<HTMLElement>;
|
|
278
|
+
}): number;
|
|
265
279
|
/**
|
|
266
280
|
* Drops rows whose element has left the document and puts the rest into
|
|
267
281
|
* document order.
|
|
@@ -399,13 +413,12 @@ export declare class WrSortableItem {
|
|
|
399
413
|
* Position among the list's rows, which IS the index into `items()`: the
|
|
400
414
|
* consumer's own loop renders them in that order.
|
|
401
415
|
*
|
|
402
|
-
* `
|
|
403
|
-
*
|
|
404
|
-
*
|
|
405
|
-
*
|
|
406
|
-
*
|
|
407
|
-
*
|
|
408
|
-
* has moved the nodes, so the recomputation reads the new order.
|
|
416
|
+
* `positionOf` resolves by DOCUMENT ORDER and is keyed on the `items` ARRAY,
|
|
417
|
+
* not its length: a reorder keeps the count, so a length-keyed index stayed
|
|
418
|
+
* on the slot the row had left, the highlight stayed behind with it, and a
|
|
419
|
+
* second pick-up of the same row moved its old neighbour instead. Host
|
|
420
|
+
* bindings run after the consumer's `@for` has moved the nodes, so the
|
|
421
|
+
* recomputation reads the new order.
|
|
409
422
|
*/
|
|
410
423
|
protected readonly index: import("@angular/core").Signal<number>;
|
|
411
424
|
protected readonly grabbed: import("@angular/core").Signal<boolean>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
5
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
6
|
+
*/
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import { WrTableRoutingAdapter } from "ngwr/table";
|
|
9
|
+
/**
|
|
10
|
+
* Router support for the row links of `<wr-table>`. Add it to the `imports` of
|
|
11
|
+
* the component that declares the table, and `wrTableRouting` to the table:
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { WrTable } from 'ngwr/table';
|
|
16
|
+
* import { WrTableRouting } from 'ngwr/table/router';
|
|
17
|
+
*
|
|
18
|
+
* @Component({ imports: [WrTable, WrTableRouting], template: `
|
|
19
|
+
* <wr-table wrTableRouting [columns]="columns" [items]="orders" [rowLink]="orderLink" />
|
|
20
|
+
* ` })
|
|
21
|
+
* export class OrdersPage {
|
|
22
|
+
* protected readonly orderLink = (order: Order) => ['/orders', order.id];
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* `rowLink` then returns what `routerLink` takes: a URL string or an array of
|
|
27
|
+
* commands, relative to the route of the component that declares the table
|
|
28
|
+
* unless it starts with `/`. A plain click navigates in the app; a middle
|
|
29
|
+
* click or a click with a modifier stays the browser's, on a real href. A
|
|
30
|
+
* string with a scheme or a host of its own (`https://…`, `mailto:…`, `//…`)
|
|
31
|
+
* stays a plain link.
|
|
32
|
+
*
|
|
33
|
+
* A separate entry point, so a table that links nowhere does not carry
|
|
34
|
+
* `@angular/router`; a directive rather than a provider function, so a
|
|
35
|
+
* relative link resolves against the declaring component's route. Both for
|
|
36
|
+
* the reasons `WrTabsRouting` gives.
|
|
37
|
+
*/
|
|
38
|
+
export declare class WrTableRouting implements WrTableRoutingAdapter {
|
|
39
|
+
private readonly router;
|
|
40
|
+
private readonly locationStrategy;
|
|
41
|
+
private readonly route;
|
|
42
|
+
/** The current URL as a signal: a relative link's target moves when the route does. */
|
|
43
|
+
private readonly url;
|
|
44
|
+
href(link: string | readonly unknown[]): string;
|
|
45
|
+
navigate(link: string | readonly unknown[], event: MouseEvent): void;
|
|
46
|
+
private tree;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrTableRouting, never>;
|
|
48
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WrTableRouting, "[wrTableRouting]", ["wrTableRouting"], {}, {}, never, never, true, never>;
|
|
49
|
+
}
|
|
@@ -240,6 +240,7 @@ export declare class WrTableRowHarness extends ContentContainerComponentHarness
|
|
|
240
240
|
* that for a control would report every leaf as expandable.
|
|
241
241
|
*/
|
|
242
242
|
private readonly disclosure;
|
|
243
|
+
private readonly rowLink;
|
|
243
244
|
/** The row's data cells, in DOM order. The lead control cells are not cells. */
|
|
244
245
|
getCells(filters?: WrTableCellHarnessFilters): Promise<WrTableCellHarness[]>;
|
|
245
246
|
/** The text of every data cell, in DOM order. */
|
|
@@ -270,6 +271,12 @@ export declare class WrTableRowHarness extends ContentContainerComponentHarness
|
|
|
270
271
|
isExpanded(): Promise<boolean>;
|
|
271
272
|
/** Open or close the row. Throws when it has nothing to open. */
|
|
272
273
|
toggleExpand(): Promise<void>;
|
|
274
|
+
/**
|
|
275
|
+
* The href of the row's link, or `null` for a row that has none: the table
|
|
276
|
+
* sets no `rowLink`, or it returned `null` for this row. As rendered, so a
|
|
277
|
+
* routed link reads the way the browser would open it.
|
|
278
|
+
*/
|
|
279
|
+
getLink(): Promise<string | null>;
|
|
273
280
|
/**
|
|
274
281
|
* The row's depth as the table announces it — 1-based `aria-level`, `null` in a
|
|
275
282
|
* flat table, where depth is not a thing that exists.
|