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
|
@@ -81,6 +81,19 @@ type WrDateRangePickerMode = 'date' | 'datetime' | 'month' | 'quarter' | 'year';
|
|
|
81
81
|
*/
|
|
82
82
|
/** Control size for `<wr-date-picker>` and `<wr-date-range-picker>` — shares the `--wr-control-*` contract. */
|
|
83
83
|
type WrDatePickerSize = 'sm' | 'md' | 'lg';
|
|
84
|
+
/**
|
|
85
|
+
* @license
|
|
86
|
+
*
|
|
87
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
88
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
89
|
+
*/
|
|
90
|
+
/**
|
|
91
|
+
* What `<wr-date-picker>` holds in its `value` model: `'date'` is a `Date`,
|
|
92
|
+
* `'day'` is a `YYYY-MM-DD` string, the browser-local day `wrToDay` writes.
|
|
93
|
+
*/
|
|
94
|
+
type WrDatePickerValueFormat = 'date' | 'day';
|
|
95
|
+
/** The `value` type of `<wr-date-picker>` under a {@link WrDatePickerValueFormat}. */
|
|
96
|
+
type WrDatePickerValue<F extends WrDatePickerValueFormat = 'date'> = F extends 'day' ? string : Date;
|
|
84
97
|
/**
|
|
85
98
|
* @license
|
|
86
99
|
*
|
|
@@ -151,11 +164,13 @@ interface WrDateRangePreset {
|
|
|
151
164
|
* year and arranged by the i18n catalog; `[format]`, when set, replaces it,
|
|
152
165
|
* and the date typed in that format stands for the period it is in.
|
|
153
166
|
*
|
|
154
|
-
* A signal-forms native control: it implements `FormValueControl
|
|
155
|
-
*
|
|
167
|
+
* A signal-forms native control: it implements `FormValueControl`, so
|
|
168
|
+
* `[formField]` binds straight to its `value` model — no
|
|
156
169
|
* `ControlValueAccessor` in between. `[(value)]` works standalone, and classic
|
|
157
170
|
* `[(ngModel)]` / reactive forms keep working through Angular's bridge. Value
|
|
158
|
-
* type is `Date | null` for every mode
|
|
171
|
+
* type is `Date | null` for every mode, unless {@link valueFormat} is `'day'`:
|
|
172
|
+
* the model is then a `YYYY-MM-DD` string, and the class's type parameter is
|
|
173
|
+
* that format, inferred from the `valueFormat` binding in a template.
|
|
159
174
|
*
|
|
160
175
|
* Parses the input on every keystroke and emits only a date it can read and the
|
|
161
176
|
* calendar would accept. Anything else is REFUSED, never guessed: the bound value
|
|
@@ -184,11 +199,14 @@ interface WrDateRangePreset {
|
|
|
184
199
|
*
|
|
185
200
|
* <!-- Date + time -->
|
|
186
201
|
* <wr-date-picker mode="datetime" [(value)]="when" [showSeconds]="true" [step]="5" />
|
|
202
|
+
*
|
|
203
|
+
* <!-- A day string: `due` is a `signal<string | null>` holding '2026-03-01' -->
|
|
204
|
+
* <wr-date-picker valueFormat="day" [(value)]="due" min="2026-01-01" />
|
|
187
205
|
* ```
|
|
188
206
|
*
|
|
189
207
|
* @see https://ngwr.dev/reference/components/date-picker
|
|
190
208
|
*/
|
|
191
|
-
export declare class WrDatePicker implements FormValueControl<
|
|
209
|
+
export declare class WrDatePicker<F extends WrDatePickerValueFormat = 'date'> implements Omit<FormValueControl<WrDatePickerValue<F> | null>, 'min' | 'max'> {
|
|
192
210
|
/**
|
|
193
211
|
* What the picker picks: `'date'`, `'time'`, `'datetime'`, or a period held
|
|
194
212
|
* as its first day: `'week'`, `'month'`, `'quarter'`, `'year'`.
|
|
@@ -207,16 +225,38 @@ export declare class WrDatePicker implements FormValueControl<Date | null> {
|
|
|
207
225
|
/** Placeholder shown when the input is empty. */
|
|
208
226
|
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
209
227
|
/**
|
|
210
|
-
*
|
|
211
|
-
*
|
|
228
|
+
* What the `value` model holds. `'date'` is a `Date`. `'day'` is a
|
|
229
|
+
* `YYYY-MM-DD` string, the browser-local day `wrToDay` from `ngwr/date`
|
|
230
|
+
* writes, so a form posts what the picker holds. A string that is not a
|
|
231
|
+
* valid day in that form reads as empty.
|
|
232
|
+
*
|
|
233
|
+
* It applies where the value is a day: `mode="date"` and the period modes,
|
|
234
|
+
* which hold their first day. `time` and `datetime` hold an instant, which a
|
|
235
|
+
* day string cannot carry: they ignore it, keep a `Date`, and warn in dev mode.
|
|
236
|
+
*
|
|
237
|
+
* Only the model changes. `dateFilter` is still called with a `Date`, and a
|
|
238
|
+
* refusal still carries `Date`s in its payload.
|
|
239
|
+
* @default 'date'
|
|
240
|
+
*/
|
|
241
|
+
readonly valueFormat: import("@angular/core").InputSignal<F>;
|
|
242
|
+
/**
|
|
243
|
+
* Min selectable date (forwarded to the calendar): a `Date`, or a
|
|
244
|
+
* `YYYY-MM-DD` string under any `valueFormat`. Ignored in `time` mode, and a
|
|
245
|
+
* string that is not a valid day is no bound. A period mode refuses a period
|
|
246
|
+
* that ends before it.
|
|
247
|
+
*/
|
|
248
|
+
readonly min: import("@angular/core").InputSignal<string | Date | undefined>;
|
|
249
|
+
/**
|
|
250
|
+
* Max selectable date (forwarded to the calendar): a `Date`, or a
|
|
251
|
+
* `YYYY-MM-DD` string under any `valueFormat`. Ignored in `time` mode, and a
|
|
252
|
+
* string that is not a valid day is no bound. A period mode refuses a period
|
|
253
|
+
* that starts after it.
|
|
212
254
|
*/
|
|
213
|
-
readonly
|
|
255
|
+
readonly max: import("@angular/core").InputSignal<string | Date | undefined>;
|
|
214
256
|
/**
|
|
215
|
-
*
|
|
216
|
-
*
|
|
257
|
+
* Predicate to disable specific dates (forwarded to the calendar). Ignored in
|
|
258
|
+
* `time` mode. Called with a `Date` at local midnight under either `valueFormat`.
|
|
217
259
|
*/
|
|
218
|
-
readonly max: import("@angular/core").InputSignal<Date | undefined>;
|
|
219
|
-
/** Predicate to disable specific dates (forwarded to the calendar). Ignored in `time` mode. */
|
|
220
260
|
readonly dateFilter: import("@angular/core").InputSignal<((date: Date) => boolean) | null>;
|
|
221
261
|
/**
|
|
222
262
|
* 12 / 24-hour clock, in the time panel and in the field, unless `format` is
|
|
@@ -236,6 +276,8 @@ export declare class WrDatePicker implements FormValueControl<Date | null> {
|
|
|
236
276
|
* `--wr-control-*` contract. The panel keeps its size. @default 'md'
|
|
237
277
|
*/
|
|
238
278
|
readonly size: import("@angular/core").InputSignal<WrDatePickerSize>;
|
|
279
|
+
/** Stretch the field to fill its parent's width. The panel keeps its size. @default false */
|
|
280
|
+
readonly block: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
239
281
|
/** Pill-shaped corners on the field. The panel keeps its shape. @default false */
|
|
240
282
|
readonly rounded: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
241
283
|
/**
|
|
@@ -273,8 +315,22 @@ export declare class WrDatePicker implements FormValueControl<Date | null> {
|
|
|
273
315
|
private readonly dir;
|
|
274
316
|
protected readonly inputEl: Signal<ElementRef<HTMLInputElement>>;
|
|
275
317
|
protected readonly triggerEl: Signal<ElementRef<HTMLButtonElement> | undefined>;
|
|
276
|
-
/**
|
|
277
|
-
|
|
318
|
+
/**
|
|
319
|
+
* The picked value: a `Date`, or a `YYYY-MM-DD` string with
|
|
320
|
+
* `valueFormat="day"`. Bound by `[formField]`, or two-way via `[(value)]`.
|
|
321
|
+
*/
|
|
322
|
+
readonly value: import("@angular/core").ModelSignal<WrDatePickerValue<F> | null>;
|
|
323
|
+
/** Whether the model holds a day string: `valueFormat="day"` in a mode whose value is a day. */
|
|
324
|
+
private readonly holdsDay;
|
|
325
|
+
/** The model as the `Date` the field and the panels work on. */
|
|
326
|
+
private readonly date;
|
|
327
|
+
private readonly minDate;
|
|
328
|
+
private readonly maxDate;
|
|
329
|
+
/**
|
|
330
|
+
* The held day on the host as `data-day`, for a test or a stylesheet: empty
|
|
331
|
+
* while there is no value, absent when the model is a `Date`.
|
|
332
|
+
*/
|
|
333
|
+
protected readonly dayAttr: Signal<string | null>;
|
|
278
334
|
/** Emitted on blur so a bound field can mark itself touched. */
|
|
279
335
|
readonly touch: import("@angular/core").OutputEmitterRef<void>;
|
|
280
336
|
/** Fires after the popup opens. */
|
|
@@ -571,9 +627,11 @@ export declare class WrDatePicker implements FormValueControl<Date | null> {
|
|
|
571
627
|
private closeOverlay;
|
|
572
628
|
private dispose;
|
|
573
629
|
private outOfBounds;
|
|
574
|
-
private
|
|
575
|
-
|
|
576
|
-
|
|
630
|
+
private sameValue;
|
|
631
|
+
private toDate;
|
|
632
|
+
private toModel;
|
|
633
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrDatePicker<any>, never>;
|
|
634
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WrDatePicker<any>, "wr-date-picker", never, {
|
|
577
635
|
"mode": {
|
|
578
636
|
"alias": "mode";
|
|
579
637
|
"required": false;
|
|
@@ -589,6 +647,11 @@ export declare class WrDatePicker implements FormValueControl<Date | null> {
|
|
|
589
647
|
"required": false;
|
|
590
648
|
"isSignal": true;
|
|
591
649
|
};
|
|
650
|
+
"valueFormat": {
|
|
651
|
+
"alias": "valueFormat";
|
|
652
|
+
"required": false;
|
|
653
|
+
"isSignal": true;
|
|
654
|
+
};
|
|
592
655
|
"min": {
|
|
593
656
|
"alias": "min";
|
|
594
657
|
"required": false;
|
|
@@ -624,6 +687,11 @@ export declare class WrDatePicker implements FormValueControl<Date | null> {
|
|
|
624
687
|
"required": false;
|
|
625
688
|
"isSignal": true;
|
|
626
689
|
};
|
|
690
|
+
"block": {
|
|
691
|
+
"alias": "block";
|
|
692
|
+
"required": false;
|
|
693
|
+
"isSignal": true;
|
|
694
|
+
};
|
|
627
695
|
"rounded": {
|
|
628
696
|
"alias": "rounded";
|
|
629
697
|
"required": false;
|
|
@@ -779,6 +847,8 @@ export declare class WrDateRangePicker implements FormValueControl<WrDateRange |
|
|
|
779
847
|
* `--wr-control-*` contract. The panel keeps its size. @default 'md'
|
|
780
848
|
*/
|
|
781
849
|
readonly size: import("@angular/core").InputSignal<WrDatePickerSize>;
|
|
850
|
+
/** Stretch the field to fill its parent's width. The panel keeps its size. @default false */
|
|
851
|
+
readonly block: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
782
852
|
/** Pill-shaped corners on the field. The panel keeps its shape. @default false */
|
|
783
853
|
readonly rounded: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
784
854
|
/**
|
|
@@ -976,6 +1046,11 @@ export declare class WrDateRangePicker implements FormValueControl<WrDateRange |
|
|
|
976
1046
|
*/
|
|
977
1047
|
protected readonly startAriaInvalid: Signal<"true" | null>;
|
|
978
1048
|
protected readonly endAriaInvalid: Signal<"true" | null>;
|
|
1049
|
+
/**
|
|
1050
|
+
* The end input is hidden from the field, so the picker carries the field's `required` to it.
|
|
1051
|
+
* Written after render: a template binding loses to the `wrInput` host binding on the first pass.
|
|
1052
|
+
*/
|
|
1053
|
+
protected readonly endAriaRequired: Signal<"true" | null>;
|
|
979
1054
|
protected readonly startDescribedBy: Signal<string | null>;
|
|
980
1055
|
protected readonly endDescribedBy: Signal<string | null>;
|
|
981
1056
|
protected readonly classes: Signal<string>;
|
|
@@ -1186,6 +1261,11 @@ export declare class WrDateRangePicker implements FormValueControl<WrDateRange |
|
|
|
1186
1261
|
"required": false;
|
|
1187
1262
|
"isSignal": true;
|
|
1188
1263
|
};
|
|
1264
|
+
"block": {
|
|
1265
|
+
"alias": "block";
|
|
1266
|
+
"required": false;
|
|
1267
|
+
"isSignal": true;
|
|
1268
|
+
};
|
|
1189
1269
|
"rounded": {
|
|
1190
1270
|
"alias": "rounded";
|
|
1191
1271
|
"required": false;
|
|
@@ -1264,4 +1344,4 @@ export declare function wrThisWeek(): WrDateRangePresetFn;
|
|
|
1264
1344
|
export declare function wrThisMonth(): WrDateRangePresetFn;
|
|
1265
1345
|
/** The month before the one today is in, from its first day to its last. */
|
|
1266
1346
|
export declare function wrLastMonth(): WrDateRangePresetFn;
|
|
1267
|
-
export type { WrDateInputError, WrDatePickerMode, WrDatePickerSize, WrDateRange, WrDateRangeInputError, WrDateRangePickerMode, WrDateRangePreset, WrDateRangePresetContext, WrDateRangePresetFn };
|
|
1347
|
+
export type { WrDateInputError, WrDatePickerMode, WrDatePickerSize, WrDatePickerValue, WrDatePickerValueFormat, WrDateRange, WrDateRangeInputError, WrDateRangePickerMode, WrDateRangePreset, WrDateRangePresetContext, WrDateRangePresetFn };
|
package/types/ngwr-date.d.ts
CHANGED
|
@@ -461,6 +461,57 @@ export declare class WrNativeDateAdapter extends WrDateAdapter<Date> {
|
|
|
461
461
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrNativeDateAdapter, never>;
|
|
462
462
|
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
463
463
|
}
|
|
464
|
+
/**
|
|
465
|
+
* @license
|
|
466
|
+
*
|
|
467
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
468
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
469
|
+
*/
|
|
470
|
+
/**
|
|
471
|
+
* The calendar day of a `Date` as `YYYY-MM-DD`, read in the browser's zone.
|
|
472
|
+
*
|
|
473
|
+
* `date.toISOString().slice(0, 10)` reads the day in UTC: just after midnight in
|
|
474
|
+
* Almaty it is still yesterday there, and in the evening in New York it is
|
|
475
|
+
* already tomorrow. This reads the local year, month and day, so the string is
|
|
476
|
+
* the day the user sees on the calendar.
|
|
477
|
+
*
|
|
478
|
+
* An Invalid Date, and a year outside 0 to 9999, give `''`: neither has a
|
|
479
|
+
* `YYYY-MM-DD` form.
|
|
480
|
+
*
|
|
481
|
+
* @example
|
|
482
|
+
* ```ts
|
|
483
|
+
* wrToDay(new Date(2026, 2, 1, 0, 30)); // '2026-03-01', in every zone
|
|
484
|
+
* wrToDay(new Date(NaN)); // ''
|
|
485
|
+
* ```
|
|
486
|
+
*
|
|
487
|
+
* @see https://ngwr.dev/reference/pipes/wr-date
|
|
488
|
+
*/
|
|
489
|
+
export declare function wrToDay(date: Date): string;
|
|
490
|
+
/**
|
|
491
|
+
* Today as `YYYY-MM-DD`, in the browser's zone: `wrToDay(new Date())`.
|
|
492
|
+
*
|
|
493
|
+
* @see https://ngwr.dev/reference/pipes/wr-date
|
|
494
|
+
*/
|
|
495
|
+
export declare function wrToday(): string;
|
|
496
|
+
/**
|
|
497
|
+
* A `YYYY-MM-DD` string as a `Date` at that day's LOCAL midnight, the instant a
|
|
498
|
+
* date picker emits for it. The reverse of {@link wrToDay}.
|
|
499
|
+
*
|
|
500
|
+
* `null` for anything that is not a day on the calendar in exactly that form:
|
|
501
|
+
* `2026-02-30`, `2026-3-1`, `2026-03`, a string with a time, an empty string,
|
|
502
|
+
* `null` and `undefined`. Use `wrParseDate` for a value that may be any of the
|
|
503
|
+
* forms a backend sends.
|
|
504
|
+
*
|
|
505
|
+
* @example
|
|
506
|
+
* ```ts
|
|
507
|
+
* wrFromDay('2026-03-01'); // 1 March 2026, 00:00 local
|
|
508
|
+
* wrFromDay('2026-02-30'); // null
|
|
509
|
+
* wrFromDay('2026-03-01T09:30:00Z'); // null
|
|
510
|
+
* ```
|
|
511
|
+
*
|
|
512
|
+
* @see https://ngwr.dev/reference/pipes/wr-date
|
|
513
|
+
*/
|
|
514
|
+
export declare function wrFromDay(day: string | null | undefined): Date | null;
|
|
464
515
|
/**
|
|
465
516
|
* @license
|
|
466
517
|
*
|
package/types/ngwr-dialog.d.ts
CHANGED
|
@@ -101,6 +101,8 @@ type WrDialogRole = 'dialog' | 'alertdialog';
|
|
|
101
101
|
* `cdkFocusInitial` wins in every mode.
|
|
102
102
|
*/
|
|
103
103
|
type WrDialogAutoFocus = 'first-tabbable' | 'dialog' | false;
|
|
104
|
+
/** A dialog size: a width step, read from `--wr-dialog-width-<size>`, and the scale of the dialog's parts. */
|
|
105
|
+
type WrDialogSize = 'sm' | 'md' | 'lg';
|
|
104
106
|
/**
|
|
105
107
|
* Options accepted by `WrDialog.open()`.
|
|
106
108
|
*/
|
|
@@ -136,10 +138,34 @@ interface WrDialogOptions<D = unknown> {
|
|
|
136
138
|
readonly closable?: boolean;
|
|
137
139
|
/** Accessible name for the dismiss button. Falls back to the `dialog.close` catalog key. */
|
|
138
140
|
readonly closeLabel?: string;
|
|
139
|
-
/**
|
|
141
|
+
/**
|
|
142
|
+
* `sm`, `md` or `lg`. A width step, 28rem, 40rem and 56rem unless the
|
|
143
|
+
* `--wr-dialog-width-<size>` hooks say otherwise, and the scale of the
|
|
144
|
+
* dialog: its padding, title, text, dismiss button and footer gap, through
|
|
145
|
+
* the `--wr-dialog-*` hooks. `md` scales nothing. A `wr-btn` inside with no
|
|
146
|
+
* `size` of its own takes this one, the buttons of `confirm()` and `alert()`
|
|
147
|
+
* included. The panel gets the `wr-dialog-panel--<size>` class and still
|
|
148
|
+
* narrows to the viewport gutter. An explicit `width` wins over the width
|
|
149
|
+
* step only. With neither, the panel is as wide as its content.
|
|
150
|
+
* @default undefined, or what `withDialog()` sets for `open()`
|
|
151
|
+
*/
|
|
152
|
+
readonly size?: WrDialogSize;
|
|
153
|
+
/** Width applied to the panel — any valid CSS length. Wins over the width of a `size`. */
|
|
140
154
|
readonly width?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Minimum width applied to the panel, in place of `--wr-dialog-min-width`.
|
|
157
|
+
* A minimum wins over the viewport gutter, so a long one overflows a phone.
|
|
158
|
+
*/
|
|
159
|
+
readonly minWidth?: string;
|
|
141
160
|
/** Maximum width applied to the panel. */
|
|
142
161
|
readonly maxWidth?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Height applied to the panel — any valid CSS length. The viewport gutter
|
|
164
|
+
* still caps it, and `[wrDialogContent]` takes the room left and scrolls.
|
|
165
|
+
*/
|
|
166
|
+
readonly height?: string;
|
|
167
|
+
/** Maximum height applied to the panel, in place of the viewport gutter. */
|
|
168
|
+
readonly maxHeight?: string;
|
|
143
169
|
/**
|
|
144
170
|
* Extra CSS classes for the panel. A space-separated string works as well as
|
|
145
171
|
* an array — the CDK would throw `InvalidCharacterError` on the first, so the
|
|
@@ -179,7 +205,7 @@ interface WrDialogOptions<D = unknown> {
|
|
|
179
205
|
readonly autoFocus?: WrDialogAutoFocus;
|
|
180
206
|
}
|
|
181
207
|
/** The `WrDialogOptions` that `confirm()` and `alert()` pass through to the dialog. */
|
|
182
|
-
type WrDialogMessageOptions = Pick<WrDialogOptions, 'width' | 'maxWidth' | 'panelClass' | 'closeOnBackdropClick' | 'closeOnEscape' | 'closeOnNavigation' | 'tabTitle' | 'autoFocus' | 'toasts'>;
|
|
208
|
+
type WrDialogMessageOptions = Pick<WrDialogOptions, 'size' | 'width' | 'maxWidth' | 'panelClass' | 'closeOnBackdropClick' | 'closeOnEscape' | 'closeOnNavigation' | 'tabTitle' | 'autoFocus' | 'toasts'>;
|
|
183
209
|
/** The meaning a `confirm()` or an `alert()` dialog shows as an icon before its title. */
|
|
184
210
|
type WrDialogIntent = 'info' | 'success' | 'warning' | 'danger';
|
|
185
211
|
/**
|
|
@@ -234,8 +260,11 @@ interface WrDialogAlertOptions extends WrDialogMessageOptions {
|
|
|
234
260
|
/** An icon before the title, in the intent's color. It is decorative. */
|
|
235
261
|
readonly intent?: WrDialogIntent;
|
|
236
262
|
}
|
|
237
|
-
/**
|
|
238
|
-
|
|
263
|
+
/**
|
|
264
|
+
* App-wide dialog defaults, passed to `provideWr(withDialog(...))`. `size`
|
|
265
|
+
* applies to `open()` only: `confirm()` and `alert()` take their own.
|
|
266
|
+
*/
|
|
267
|
+
type WrDialogDefaults = Pick<WrDialogOptions, 'tabTitle' | 'autoFocus' | 'size'>;
|
|
239
268
|
/**
|
|
240
269
|
* Opens dialog components in an isolated NGWR overlay.
|
|
241
270
|
*
|
|
@@ -270,6 +299,7 @@ export declare class WrDialog {
|
|
|
270
299
|
private readonly defaults;
|
|
271
300
|
private readonly order;
|
|
272
301
|
open<C, R = unknown, D = unknown>(component: ComponentType<C>, options?: WrDialogOptions<D>): WrDialogRef<C, R>;
|
|
302
|
+
private mount;
|
|
273
303
|
/**
|
|
274
304
|
* Ask a yes-or-no question and get the answer: `true` only when the user
|
|
275
305
|
* pressed the confirm button. Escape, the backdrop, the cancel button, a
|
|
@@ -418,8 +448,9 @@ export declare const WR_DIALOG_DATA: InjectionToken<unknown>;
|
|
|
418
448
|
export declare const WR_DIALOG_REF: InjectionToken<WrDialogRef<unknown, unknown>>;
|
|
419
449
|
/**
|
|
420
450
|
* App-wide dialog defaults, as a feature of `provideWr()`: `tabTitle`, so
|
|
421
|
-
* every dialog names the browser tab while it is open,
|
|
422
|
-
* focus goes on open
|
|
451
|
+
* every dialog names the browser tab while it is open, `autoFocus`, where
|
|
452
|
+
* focus goes on open, and `size`, the size of every `open()`. The same
|
|
453
|
+
* option on `open()` or `confirm()` still wins.
|
|
423
454
|
*
|
|
424
455
|
* Bootstrap only: `WrDialog` is root-provided and reads it once, from the root
|
|
425
456
|
* injector, so in a route's `providers` it changes nothing.
|
|
@@ -508,7 +539,7 @@ export declare class WrDialogFooter {
|
|
|
508
539
|
*
|
|
509
540
|
* @default 'end'
|
|
510
541
|
*/
|
|
511
|
-
readonly align: import("@angular/core").InputSignal<"center" | "
|
|
542
|
+
readonly align: import("@angular/core").InputSignal<"center" | "end" | "start">;
|
|
512
543
|
protected readonly classes: import("@angular/core").Signal<string>;
|
|
513
544
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrDialogFooter, never>;
|
|
514
545
|
static ɵdir: i0.ɵɵDirectiveDeclaration<WrDialogFooter, "[wrDialogFooter]", never, {
|
|
@@ -548,4 +579,4 @@ export declare class WrDialogClose<R = unknown> {
|
|
|
548
579
|
};
|
|
549
580
|
}, {}, never, never, true, never>;
|
|
550
581
|
}
|
|
551
|
-
export type { WrDialogAlertOptions, WrDialogAutoFocus, WrDialogConfirmOptions, WrDialogDefaults, WrDialogIntent, WrDialogMessageOptions, WrDialogOptions, WrDialogRole };
|
|
582
|
+
export type { WrDialogAlertOptions, WrDialogAutoFocus, WrDialogConfirmOptions, WrDialogDefaults, WrDialogIntent, WrDialogMessageOptions, WrDialogOptions, WrDialogRole, WrDialogSize };
|
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
/**
|
|
3
|
-
* Focus the host element after the first render
|
|
4
|
-
* expression
|
|
3
|
+
* Focus the host element after the first render, or whenever the bound
|
|
4
|
+
* expression turns truthy. `"first"` focuses the first focusable element
|
|
5
|
+
* inside the host instead: the control of a form, a card or a dialog body.
|
|
6
|
+
* Disabled and hidden elements are skipped.
|
|
5
7
|
*
|
|
6
8
|
* @example
|
|
7
9
|
* ```html
|
|
8
10
|
* <input wrAutofocus />
|
|
9
11
|
* <input [wrAutofocus]="shouldFocus()" />
|
|
12
|
+
* <form wrAutofocus="first">…</form>
|
|
13
|
+
* <form [wrAutofocus]="editing() && 'first'">…</form>
|
|
10
14
|
* ```
|
|
11
15
|
*/
|
|
12
16
|
export declare class WrAutofocus {
|
|
13
|
-
/**
|
|
14
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Truthy = focus the host, `'first'` = focus the first focusable element
|
|
19
|
+
* inside it. Defaults to `true` so bare `wrAutofocus` works.
|
|
20
|
+
*/
|
|
21
|
+
readonly wrAutofocus: import("@angular/core").InputSignalWithTransform<boolean | "first", unknown>;
|
|
15
22
|
private readonly el;
|
|
23
|
+
private readonly injector;
|
|
16
24
|
constructor();
|
|
17
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrAutofocus, never>;
|
|
18
26
|
static ɵdir: i0.ɵɵDirectiveDeclaration<WrAutofocus, "[wrAutofocus]", never, {
|
|
@@ -214,4 +222,49 @@ export declare class WrFitText {
|
|
|
214
222
|
"isSignal": true;
|
|
215
223
|
};
|
|
216
224
|
}, {}, never, never, true, never>;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Emits when the host enters or leaves the viewport.
|
|
228
|
+
*
|
|
229
|
+
* `(wrInView)` carries `true` on entering and `false` on leaving, and only on a
|
|
230
|
+
* change: an element that starts out of view emits nothing until it shows up.
|
|
231
|
+
* `wrInViewOnce` stops after the first entry. Every instance with the same
|
|
232
|
+
* `wrInViewThreshold` shares one `IntersectionObserver`. Nothing is observed on
|
|
233
|
+
* the server.
|
|
234
|
+
*
|
|
235
|
+
* @example
|
|
236
|
+
* ```html
|
|
237
|
+
* <section (wrInView)="seen.set($event)" [wrInViewThreshold]="0.5"> … </section>
|
|
238
|
+
* <img wrInViewOnce (wrInView)="load()" />
|
|
239
|
+
* ```
|
|
240
|
+
*/
|
|
241
|
+
export declare class WrInView {
|
|
242
|
+
/** Fires with `true` when the host enters the viewport and `false` when it leaves. */
|
|
243
|
+
readonly wrInView: import("@angular/core").OutputEmitterRef<boolean>;
|
|
244
|
+
/**
|
|
245
|
+
* The share of the host, from 0 to 1, that must be visible to count as in view.
|
|
246
|
+
* Read once, when the host first renders. A host taller than the viewport never
|
|
247
|
+
* reaches a threshold of 1.
|
|
248
|
+
*/
|
|
249
|
+
readonly wrInViewThreshold: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
250
|
+
/** Stop watching after the first entry. Bare `wrInViewOnce` is on. */
|
|
251
|
+
readonly wrInViewOnce: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
252
|
+
private readonly el;
|
|
253
|
+
private readonly pool;
|
|
254
|
+
constructor();
|
|
255
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrInView, never>;
|
|
256
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WrInView, "[wrInView]", never, {
|
|
257
|
+
"wrInViewThreshold": {
|
|
258
|
+
"alias": "wrInViewThreshold";
|
|
259
|
+
"required": false;
|
|
260
|
+
"isSignal": true;
|
|
261
|
+
};
|
|
262
|
+
"wrInViewOnce": {
|
|
263
|
+
"alias": "wrInViewOnce";
|
|
264
|
+
"required": false;
|
|
265
|
+
"isSignal": true;
|
|
266
|
+
};
|
|
267
|
+
}, {
|
|
268
|
+
"wrInView": "wrInView";
|
|
269
|
+
}, never, never, true, never>;
|
|
217
270
|
}
|
package/types/ngwr-drawer.d.ts
CHANGED
|
@@ -582,7 +582,7 @@ export declare class WrDrawerContent {
|
|
|
582
582
|
export declare class WrDrawerFooter {
|
|
583
583
|
constructor();
|
|
584
584
|
/** Horizontal alignment of footer content. @default 'end' */
|
|
585
|
-
readonly align: import("@angular/core").InputSignal<"center" | "
|
|
585
|
+
readonly align: import("@angular/core").InputSignal<"center" | "end" | "start">;
|
|
586
586
|
protected readonly classes: import("@angular/core").Signal<string>;
|
|
587
587
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrDrawerFooter, never>;
|
|
588
588
|
static ɵdir: i0.ɵɵDirectiveDeclaration<WrDrawerFooter, "[wrDrawerFooter]", never, {
|
|
@@ -19,6 +19,8 @@ interface WrDropdownItemHarnessFilters extends BaseHarnessFilters {
|
|
|
19
19
|
readonly text?: string | RegExp;
|
|
20
20
|
/** Match only enabled (`false`) or only disabled (`true`) items. */
|
|
21
21
|
readonly disabled?: boolean;
|
|
22
|
+
/** Match only checked (`true`) or only unchecked (`false`) items. A plain item has no state and never matches. */
|
|
23
|
+
readonly checked?: boolean;
|
|
22
24
|
}
|
|
23
25
|
/**
|
|
24
26
|
* Test harness for one `<wr-dropdown-item>` inside a dropdown menu.
|
|
@@ -39,8 +41,13 @@ export declare class WrDropdownItemHarness extends ComponentHarness {
|
|
|
39
41
|
static with(options?: WrDropdownItemHarnessFilters): HarnessPredicate<WrDropdownItemHarness>;
|
|
40
42
|
/** The item's label, trimmed. A leading icon is not part of it. */
|
|
41
43
|
getText(): Promise<string>;
|
|
42
|
-
/** The role the item announces
|
|
44
|
+
/** The role the item announces: `menuitem`, or `menuitemcheckbox` / `menuitemradio` when it has a checked state. */
|
|
43
45
|
getRole(): Promise<string | null>;
|
|
46
|
+
/**
|
|
47
|
+
* The item's checked state: `true` or `false` for a `menuitemcheckbox` /
|
|
48
|
+
* `menuitemradio`, `null` for a plain item that has none.
|
|
49
|
+
*/
|
|
50
|
+
isChecked(): Promise<boolean | null>;
|
|
44
51
|
/** Whether the item refuses activation. */
|
|
45
52
|
isDisabled(): Promise<boolean>;
|
|
46
53
|
/** Whether the item opens a submenu. `WrDropdownHarness.openSubmenu()` opens it. */
|
package/types/ngwr-dropdown.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import { TemplateRef } from "@angular/core";
|
|
3
3
|
import { WrClassInput } from "ngwr/utils";
|
|
4
4
|
import { WrAnchoredPosition } from "ngwr/overlay";
|
|
5
|
-
import
|
|
5
|
+
import "@angular/cdk/overlay";
|
|
6
6
|
/**
|
|
7
7
|
* Holds the menu content rendered when a {@link WrDropdown} opens.
|
|
8
8
|
*
|
|
@@ -272,7 +272,14 @@ export declare class WrDropdown {
|
|
|
272
272
|
* ```html
|
|
273
273
|
* <wr-dropdown-item icon="copy" (click)="copy()">Copy</wr-dropdown-item>
|
|
274
274
|
* <wr-dropdown-item icon="trash" disabled>Delete</wr-dropdown-item>
|
|
275
|
+
* <wr-dropdown-item [checked]="grid()" (click)="grid.set(!grid())">Show grid</wr-dropdown-item>
|
|
276
|
+
* <wr-dropdown-item radio [checked]="view() === 'list'" (click)="view.set('list')">List</wr-dropdown-item>
|
|
275
277
|
* ```
|
|
278
|
+
*
|
|
279
|
+
* Set `checked` to `true` or `false` and the row reserves a check column and
|
|
280
|
+
* announces itself as `menuitemcheckbox` (or `menuitemradio` with `radio`),
|
|
281
|
+
* with `aria-checked`. The item never flips the state: bind `(click)` and
|
|
282
|
+
* update what `checked` reads. A click still leaves the menu open.
|
|
276
283
|
*/
|
|
277
284
|
export declare class WrDropdownItem {
|
|
278
285
|
constructor();
|
|
@@ -280,6 +287,18 @@ export declare class WrDropdownItem {
|
|
|
280
287
|
readonly icon: import("@angular/core").InputSignal<string | null>;
|
|
281
288
|
/** Disable interaction (suppresses pointer + keyboard). @default false */
|
|
282
289
|
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
290
|
+
/**
|
|
291
|
+
* Checked state. `null` (default) is a plain `menuitem` with no check column;
|
|
292
|
+
* `true` / `false` turn it into a `menuitemcheckbox` (or `menuitemradio` with
|
|
293
|
+
* `radio`) that shows a check mark while `true`. The item does not toggle
|
|
294
|
+
* itself: flip the state you bind here from `(click)`.
|
|
295
|
+
*
|
|
296
|
+
* @default null
|
|
297
|
+
*/
|
|
298
|
+
readonly checked: import("@angular/core").InputSignal<boolean | null>;
|
|
299
|
+
/** With `checked` set, announce as `menuitemradio` instead of `menuitemcheckbox`. @default false */
|
|
300
|
+
readonly radio: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
301
|
+
protected readonly role: import("@angular/core").Signal<"menuitem" | "menuitemradio" | "menuitemcheckbox">;
|
|
283
302
|
protected readonly classes: import("@angular/core").Signal<string>;
|
|
284
303
|
private readonly host;
|
|
285
304
|
/** @internal Keyboard activation — fires the same click consumers bind to. */
|
|
@@ -296,6 +315,16 @@ export declare class WrDropdownItem {
|
|
|
296
315
|
"required": false;
|
|
297
316
|
"isSignal": true;
|
|
298
317
|
};
|
|
318
|
+
"checked": {
|
|
319
|
+
"alias": "checked";
|
|
320
|
+
"required": false;
|
|
321
|
+
"isSignal": true;
|
|
322
|
+
};
|
|
323
|
+
"radio": {
|
|
324
|
+
"alias": "radio";
|
|
325
|
+
"required": false;
|
|
326
|
+
"isSignal": true;
|
|
327
|
+
};
|
|
299
328
|
}, {}, never, ["*"], true, never>;
|
|
300
329
|
}
|
|
301
330
|
/**
|
|
@@ -388,6 +388,10 @@ export declare class WrEventCalendar {
|
|
|
388
388
|
*/
|
|
389
389
|
private stepRow;
|
|
390
390
|
private shift;
|
|
391
|
+
/** Wall-clock minutes since midnight of the day `date` is on. */
|
|
392
|
+
private wallMinutes;
|
|
393
|
+
/** The wall-clock time `minutes` after midnight of `date`'s day; past 1440 it rolls into the next days. */
|
|
394
|
+
private atMinutes;
|
|
391
395
|
private startOfDay;
|
|
392
396
|
private startOfWeek;
|
|
393
397
|
/** Whole days apart — computed on the day floor, so DST cannot round it off. */
|
|
@@ -16,6 +16,11 @@ interface WrFileUploadHarnessFilters extends BaseHarnessFilters {
|
|
|
16
16
|
/**
|
|
17
17
|
* Test harness for `<wr-file-upload>`.
|
|
18
18
|
*
|
|
19
|
+
* Stored files (`[stored]`) are rows like any other: they count in
|
|
20
|
+
* {@link getFileCount}, {@link getFileNames} and {@link getFileSizes}, come first,
|
|
21
|
+
* and {@link removeFile} / {@link removeFileNamed} press their remove button, which
|
|
22
|
+
* emits `(storedRemove)` rather than changing the bound value.
|
|
23
|
+
*
|
|
19
24
|
* The control a user operates is the `.wr-file-upload__zone` — a `role="button"`
|
|
20
25
|
* div that is the single tab stop; the `<input type="file">` behind it is
|
|
21
26
|
* `aria-hidden` and `tabindex="-1"`, and exists only so a click can be forwarded
|
|
@@ -195,6 +200,11 @@ export declare class WrFileUploadHarness extends ComponentHarness {
|
|
|
195
200
|
* `true` has to stub it.
|
|
196
201
|
*/
|
|
197
202
|
hasPreview(name: string): Promise<boolean>;
|
|
203
|
+
/**
|
|
204
|
+
* The `href` of this row's link, or `null` for a row whose name is plain text.
|
|
205
|
+
* Only a stored file (`[stored]`) with a `url` has one.
|
|
206
|
+
*/
|
|
207
|
+
getLink(name: string): Promise<string | null>;
|
|
198
208
|
/** Index of the row with this name, or a throw that says what the list holds. */
|
|
199
209
|
private indexNamed;
|
|
200
210
|
private rowNamed;
|