ngwr 15.9.0 → 16.1.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/animations/aurora/styles/_index.scss +1 -1
- package/animations/blur-reveal/styles/_index.scss +1 -1
- package/animations/decode/styles/_index.scss +1 -1
- package/animations/dot-grid/styles/_index.scss +1 -1
- package/animations/flow-lines/styles/_index.scss +1 -1
- package/animations/fluid-cursor/styles/_index.scss +1 -1
- package/animations/{core → internal}/styles/_mixins.scss +1 -1
- package/animations/reveal/styles/_index.scss +1 -1
- package/animations/ripple-grid/styles/_index.scss +1 -1
- package/animations/rotate-reveal/styles/_index.scss +1 -1
- package/animations/thread-lines/styles/_index.scss +1 -1
- package/animations/typewriter/styles/_index.scss +1 -1
- package/badge/styles/_tag.scss +8 -4
- package/button/styles/_index.scss +13 -7
- package/cascader/styles/_rules.scss +4 -2
- package/checkbox/styles/_index.scss +4 -2
- package/copy-value/styles/_index.scss +104 -0
- package/date-picker/styles/_index.scss +121 -0
- package/date-stamp/styles/_index.scss +38 -0
- package/dialog/styles/_index.scss +38 -0
- package/fesm2022/{ngwr-animations-core.mjs → internal-BaQU4t_0.mjs} +6 -49
- package/fesm2022/internal-BaQU4t_0.mjs.map +1 -0
- package/fesm2022/internal-CVLvP9b_.mjs +33 -0
- package/fesm2022/internal-CVLvP9b_.mjs.map +1 -0
- package/fesm2022/ngwr-alert.mjs +13 -9
- package/fesm2022/ngwr-alert.mjs.map +1 -1
- package/fesm2022/ngwr-animations-aurora.mjs +21 -21
- 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 +2 -2
- package/fesm2022/ngwr-animations-click-sparks.mjs.map +1 -1
- package/fesm2022/ngwr-animations-confetti.mjs +5 -5
- package/fesm2022/ngwr-animations-confetti.mjs.map +1 -1
- package/fesm2022/ngwr-animations-decode.mjs +4 -4
- package/fesm2022/ngwr-animations-decode.mjs.map +1 -1
- package/fesm2022/ngwr-animations-destruct.mjs +5 -5
- package/fesm2022/ngwr-animations-destruct.mjs.map +1 -1
- package/fesm2022/ngwr-animations-dot-grid.mjs +7 -7
- 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 +17 -17
- package/fesm2022/ngwr-animations-flow-lines.mjs.map +1 -1
- package/fesm2022/ngwr-animations-fluid-cursor.mjs +12 -12
- package/fesm2022/ngwr-animations-fluid-cursor.mjs.map +1 -1
- package/fesm2022/ngwr-animations-glitch.mjs +2 -2
- package/fesm2022/ngwr-animations-glitch.mjs.map +1 -1
- package/fesm2022/ngwr-animations-marquee.mjs +2 -2
- package/fesm2022/ngwr-animations-marquee.mjs.map +1 -1
- package/fesm2022/ngwr-animations-orbit.mjs +7 -7
- package/fesm2022/ngwr-animations-orbit.mjs.map +1 -1
- package/fesm2022/ngwr-animations-reveal.mjs +4 -4
- package/fesm2022/ngwr-animations-reveal.mjs.map +1 -1
- package/fesm2022/ngwr-animations-ripple-grid.mjs +5 -5
- package/fesm2022/ngwr-animations-ripple-grid.mjs.map +1 -1
- package/fesm2022/ngwr-animations-rotate-reveal.mjs +4 -4
- package/fesm2022/ngwr-animations-rotate-reveal.mjs.map +1 -1
- package/fesm2022/ngwr-animations-shimmer.mjs +2 -2
- package/fesm2022/ngwr-animations-shimmer.mjs.map +1 -1
- package/fesm2022/ngwr-animations-spotlight.mjs +1 -1
- package/fesm2022/ngwr-animations-spotlight.mjs.map +1 -1
- package/fesm2022/ngwr-animations-thread-lines.mjs +16 -16
- package/fesm2022/ngwr-animations-thread-lines.mjs.map +1 -1
- package/fesm2022/ngwr-animations-tilt.mjs +3 -3
- package/fesm2022/ngwr-animations-tilt.mjs.map +1 -1
- package/fesm2022/ngwr-animations-typewriter.mjs +4 -4
- package/fesm2022/ngwr-animations-typewriter.mjs.map +1 -1
- package/fesm2022/ngwr-avatar.mjs +14 -10
- package/fesm2022/ngwr-avatar.mjs.map +1 -1
- package/fesm2022/ngwr-back-top.mjs +10 -6
- package/fesm2022/ngwr-back-top.mjs.map +1 -1
- package/fesm2022/ngwr-badge.mjs +18 -6
- package/fesm2022/ngwr-badge.mjs.map +1 -1
- package/fesm2022/ngwr-burger.mjs +9 -6
- package/fesm2022/ngwr-burger.mjs.map +1 -1
- package/fesm2022/ngwr-button.mjs +8 -4
- package/fesm2022/ngwr-button.mjs.map +1 -1
- package/fesm2022/ngwr-calendar.mjs +19 -8
- package/fesm2022/ngwr-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-card.mjs +9 -5
- package/fesm2022/ngwr-card.mjs.map +1 -1
- package/fesm2022/ngwr-cascader.mjs +54 -25
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart.mjs +13 -13
- package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-boxplot-chart.mjs +9 -9
- package/fesm2022/ngwr-charts-boxplot-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bullet-chart.mjs +8 -8
- package/fesm2022/ngwr-charts-bullet-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs +5 -2
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs.map +1 -1
- package/fesm2022/ngwr-charts-candlestick-chart.mjs +11 -11
- package/fesm2022/ngwr-charts-candlestick-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-chart-legend.mjs +2 -2
- package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
- package/fesm2022/ngwr-charts-core.mjs +20 -20
- package/fesm2022/ngwr-charts-core.mjs.map +1 -1
- package/fesm2022/ngwr-charts-donut-chart.mjs +2 -2
- package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-funnel-chart.mjs +6 -6
- package/fesm2022/ngwr-charts-funnel-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-gauge.mjs +3 -3
- package/fesm2022/ngwr-charts-gauge.mjs.map +1 -1
- package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-heatmap-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-line-chart.mjs +10 -10
- package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group.mjs +2 -2
- package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart.mjs +11 -11
- package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-scatter-chart.mjs +10 -10
- package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-treemap-chart.mjs +4 -4
- package/fesm2022/ngwr-charts-treemap-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-waterfall-chart.mjs +7 -7
- package/fesm2022/ngwr-charts-waterfall-chart.mjs.map +1 -1
- package/fesm2022/ngwr-checkbox.mjs +12 -8
- package/fesm2022/ngwr-checkbox.mjs.map +1 -1
- package/fesm2022/ngwr-clipboard.mjs +2 -1
- package/fesm2022/ngwr-clipboard.mjs.map +1 -1
- package/fesm2022/ngwr-collapse.mjs +11 -7
- package/fesm2022/ngwr-collapse.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker.mjs +56 -54
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-command-palette.mjs +4 -4
- package/fesm2022/ngwr-command-palette.mjs.map +1 -1
- package/fesm2022/ngwr-comment.mjs +15 -9
- package/fesm2022/ngwr-comment.mjs.map +1 -1
- package/fesm2022/ngwr-compare.mjs +15 -9
- package/fesm2022/ngwr-compare.mjs.map +1 -1
- package/fesm2022/ngwr-context-menu.mjs +8 -6
- package/fesm2022/ngwr-context-menu.mjs.map +1 -1
- package/fesm2022/ngwr-copy-value-testing.mjs +58 -0
- package/fesm2022/ngwr-copy-value-testing.mjs.map +1 -0
- package/fesm2022/ngwr-copy-value.mjs +201 -0
- package/fesm2022/ngwr-copy-value.mjs.map +1 -0
- package/fesm2022/ngwr-counter.mjs +3 -3
- package/fesm2022/ngwr-counter.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +303 -70
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp-testing.mjs +34 -0
- package/fesm2022/ngwr-date-stamp-testing.mjs.map +1 -0
- package/fesm2022/ngwr-date-stamp.mjs +149 -0
- package/fesm2022/ngwr-date-stamp.mjs.map +1 -0
- package/fesm2022/ngwr-date.mjs +304 -53
- package/fesm2022/ngwr-date.mjs.map +1 -1
- package/fesm2022/ngwr-descriptions.mjs +9 -5
- package/fesm2022/ngwr-descriptions.mjs.map +1 -1
- package/fesm2022/ngwr-dialog-testing.mjs +23 -2
- package/fesm2022/ngwr-dialog-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dialog.mjs +77 -19
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-directives.mjs +218 -12
- package/fesm2022/ngwr-directives.mjs.map +1 -1
- package/fesm2022/ngwr-divider.mjs +4 -2
- package/fesm2022/ngwr-divider.mjs.map +1 -1
- package/fesm2022/ngwr-drawer.mjs +32 -6
- package/fesm2022/ngwr-drawer.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +17 -14
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +33 -30
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-event-calendar.mjs +9 -7
- package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload.mjs +17 -11
- package/fesm2022/ngwr-file-upload.mjs.map +1 -1
- package/fesm2022/ngwr-form.mjs +18 -6
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-graph.mjs +3 -3
- package/fesm2022/ngwr-graph.mjs.map +1 -1
- package/fesm2022/ngwr-hotkey.mjs +22 -22
- package/fesm2022/ngwr-hotkey.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ar.mjs +7 -0
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +7 -0
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +7 -0
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +7 -0
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +7 -0
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +7 -0
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +7 -0
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +7 -0
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +7 -0
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +7 -0
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +7 -0
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +7 -0
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +7 -0
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +7 -0
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +7 -0
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +7 -0
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +7 -0
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +7 -0
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +7 -0
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +7 -0
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +7 -0
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +7 -0
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +36 -10
- package/fesm2022/ngwr-i18n.mjs.map +1 -1
- package/fesm2022/ngwr-icon.mjs +5 -5
- package/fesm2022/ngwr-icon.mjs.map +1 -1
- package/fesm2022/ngwr-image-cropper.mjs +11 -11
- package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
- package/fesm2022/ngwr-input-number.mjs +13 -7
- package/fesm2022/ngwr-input-number.mjs.map +1 -1
- package/fesm2022/ngwr-input-otp.mjs +6 -4
- package/fesm2022/ngwr-input-otp.mjs.map +1 -1
- package/fesm2022/ngwr-input.mjs +35 -25
- package/fesm2022/ngwr-input.mjs.map +1 -1
- package/fesm2022/ngwr-keyboard.mjs +37 -31
- package/fesm2022/ngwr-keyboard.mjs.map +1 -1
- package/fesm2022/ngwr-knob.mjs +13 -7
- package/fesm2022/ngwr-knob.mjs.map +1 -1
- package/fesm2022/ngwr-layout.mjs +13 -5
- package/fesm2022/ngwr-layout.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox.mjs +11 -7
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +13 -5
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-load-state.mjs +11 -7
- package/fesm2022/ngwr-load-state.mjs.map +1 -1
- package/fesm2022/ngwr-mention.mjs +6 -6
- package/fesm2022/ngwr-mention.mjs.map +1 -1
- package/fesm2022/ngwr-meta.mjs +19 -3
- package/fesm2022/ngwr-meta.mjs.map +1 -1
- package/fesm2022/ngwr-overlay.mjs +87 -4
- package/fesm2022/ngwr-overlay.mjs.map +1 -1
- package/fesm2022/ngwr-pagination.mjs +10 -7
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +22 -8
- package/fesm2022/ngwr-pipes.mjs.map +1 -1
- package/fesm2022/ngwr-platform.mjs +4 -1
- package/fesm2022/ngwr-platform.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm.mjs +6 -5
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +124 -34
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-progress.mjs +4 -2
- package/fesm2022/ngwr-progress.mjs.map +1 -1
- package/fesm2022/ngwr-pull-to-refresh.mjs +2 -2
- package/fesm2022/ngwr-pull-to-refresh.mjs.map +1 -1
- package/fesm2022/ngwr-qr.mjs +6 -6
- package/fesm2022/ngwr-qr.mjs.map +1 -1
- package/fesm2022/ngwr-radio.mjs +12 -8
- package/fesm2022/ngwr-radio.mjs.map +1 -1
- package/fesm2022/ngwr-rating.mjs +19 -13
- package/fesm2022/ngwr-rating.mjs.map +1 -1
- package/fesm2022/ngwr-resizable.mjs +503 -0
- package/fesm2022/ngwr-resizable.mjs.map +1 -0
- package/fesm2022/ngwr-result.mjs +9 -5
- package/fesm2022/ngwr-result.mjs.map +1 -1
- package/fesm2022/ngwr-schema-form.mjs +15 -5
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-segmented.mjs +4 -2
- package/fesm2022/ngwr-segmented.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +70 -39
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-sidebar.mjs +3 -3
- package/fesm2022/ngwr-sidebar.mjs.map +1 -1
- package/fesm2022/ngwr-skeleton.mjs +6 -4
- package/fesm2022/ngwr-skeleton.mjs.map +1 -1
- package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
- package/fesm2022/ngwr-slider.mjs +17 -15
- package/fesm2022/ngwr-slider.mjs.map +1 -1
- package/fesm2022/ngwr-sortable-list.mjs +3 -3
- package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
- package/fesm2022/ngwr-speed-dial.mjs +4 -2
- package/fesm2022/ngwr-speed-dial.mjs.map +1 -1
- package/fesm2022/ngwr-spinner.mjs +4 -2
- package/fesm2022/ngwr-spinner.mjs.map +1 -1
- package/fesm2022/ngwr-splitter.mjs +21 -25
- package/fesm2022/ngwr-splitter.mjs.map +1 -1
- package/fesm2022/ngwr-statistic.mjs +5 -3
- package/fesm2022/ngwr-statistic.mjs.map +1 -1
- package/fesm2022/ngwr-stepper.mjs +9 -3
- package/fesm2022/ngwr-stepper.mjs.map +1 -1
- package/fesm2022/ngwr-storage.mjs +6 -4
- package/fesm2022/ngwr-storage.mjs.map +1 -1
- package/fesm2022/ngwr-switch.mjs +11 -7
- package/fesm2022/ngwr-switch.mjs.map +1 -1
- package/fesm2022/ngwr-table-testing.mjs +5 -1
- package/fesm2022/ngwr-table-testing.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +396 -35
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tabs.mjs +2 -2
- package/fesm2022/ngwr-tabs.mjs.map +1 -1
- package/fesm2022/ngwr-textarea.mjs +9 -3
- package/fesm2022/ngwr-textarea.mjs.map +1 -1
- package/fesm2022/ngwr-timeline.mjs +18 -8
- package/fesm2022/ngwr-timeline.mjs.map +1 -1
- package/fesm2022/ngwr-toast-testing.mjs +14 -2
- package/fesm2022/ngwr-toast-testing.mjs.map +1 -1
- package/fesm2022/ngwr-toast.mjs +588 -120
- package/fesm2022/ngwr-toast.mjs.map +1 -1
- package/fesm2022/ngwr-tour.mjs +7 -7
- package/fesm2022/ngwr-tour.mjs.map +1 -1
- package/fesm2022/ngwr-transfer.mjs +24 -11
- package/fesm2022/ngwr-transfer.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +68 -26
- package/fesm2022/ngwr-tree.mjs.map +1 -1
- package/fesm2022/ngwr-typography.mjs +9 -3
- package/fesm2022/ngwr-typography.mjs.map +1 -1
- package/fesm2022/ngwr-utils-router.mjs +18 -2
- package/fesm2022/ngwr-utils-router.mjs.map +1 -1
- package/fesm2022/ngwr-utils.mjs +106 -56
- package/fesm2022/ngwr-utils.mjs.map +1 -1
- package/fesm2022/ngwr-validators.mjs +2 -2
- 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-window.mjs +33 -30
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/fesm2022/ngwr.mjs.map +1 -1
- package/i18n/ar.json +11 -0
- package/i18n/cs.json +11 -0
- package/i18n/de.json +11 -0
- package/i18n/en.json +11 -0
- package/i18n/es.json +11 -0
- package/i18n/fr.json +11 -0
- package/i18n/he.json +11 -0
- package/i18n/hi.json +11 -0
- package/i18n/id.json +11 -0
- package/i18n/it.json +11 -0
- package/i18n/ja.json +11 -0
- package/i18n/ko.json +11 -0
- package/i18n/nl.json +11 -0
- package/i18n/pl.json +11 -0
- package/i18n/pt.json +11 -0
- package/i18n/ru.json +11 -0
- package/i18n/sv.json +11 -0
- package/i18n/tr.json +11 -0
- package/i18n/uk.json +11 -0
- package/i18n/vi.json +11 -0
- package/i18n/zh-TW.json +11 -0
- package/i18n/zh.json +11 -0
- package/input/styles/_index.scss +10 -5
- package/input-number/styles/_index.scss +12 -3
- package/input-otp/styles/_index.scss +4 -2
- package/llms-full.txt +54 -23
- package/llms.txt +45 -23
- package/mcp/providers.js +1 -1
- package/package.json +29 -10
- package/radio/styles/_index.scss +4 -2
- package/resizable/styles/_index.scss +154 -0
- package/schematics/icon-set/index.js +3 -3
- package/schematics/migrations/v16/index.js +742 -0
- package/schematics/migrations.json +5 -0
- package/schematics/ng-add/index.js +4 -4
- package/schematics/provider/index.js +4 -4
- package/schematics/use/rule.js +1 -0
- package/schematics/use/symbol-map.json +6 -0
- package/select/styles/_index.scss +7 -4
- package/skills/ngwr/SKILL.md +6 -4
- package/skills/ngwr/references/catalog.md +8 -3
- package/skills/ngwr/references/setup.md +13 -9
- package/switch/styles/_index.scss +4 -2
- package/table/styles/_index.scss +138 -29
- package/textarea/styles/_index.scss +4 -2
- package/theme/styles/_motion.scss +6 -0
- package/toast/styles/_index.scss +49 -0
- package/tree/styles/_index.scss +17 -0
- package/types/index-CXbgza47.d.ts +13 -0
- package/types/ngwr-animations-aurora.d.ts +1 -1
- package/types/ngwr-animations-blur-reveal.d.ts +2 -2
- package/types/ngwr-animations-dot-grid.d.ts +1 -2
- package/types/ngwr-animations-flow-lines.d.ts +1 -1
- package/types/ngwr-animations-fluid-cursor.d.ts +1 -1
- package/types/ngwr-animations-reveal.d.ts +4 -8
- package/types/ngwr-animations-ripple-grid.d.ts +1 -1
- package/types/ngwr-animations-spotlight.d.ts +1 -1
- package/types/ngwr-animations-thread-lines.d.ts +1 -1
- package/types/ngwr-animations-tilt.d.ts +1 -1
- package/types/ngwr-avatar.d.ts +2 -2
- package/types/ngwr-badge.d.ts +1 -1
- package/types/ngwr-burger.d.ts +0 -1
- package/types/ngwr-calendar.d.ts +7 -0
- package/types/ngwr-cascader.d.ts +12 -1
- package/types/ngwr-charts-boxplot-chart.d.ts +1 -1
- package/types/ngwr-charts-bullet-chart.d.ts +2 -2
- package/types/ngwr-charts-calendar-heatmap.d.ts +2 -1
- package/types/ngwr-charts-candlestick-chart.d.ts +1 -1
- package/types/ngwr-charts-core.d.ts +12 -12
- package/types/ngwr-charts-line-chart.d.ts +2 -2
- package/types/ngwr-charts-radar-chart.d.ts +1 -1
- package/types/ngwr-charts-scatter-chart.d.ts +2 -2
- package/types/ngwr-charts-waterfall-chart.d.ts +1 -1
- package/types/ngwr-clipboard.d.ts +7 -0
- package/types/ngwr-color-picker.d.ts +12 -12
- package/types/ngwr-copy-value-testing.d.ts +87 -0
- package/types/ngwr-copy-value.d.ts +95 -0
- package/types/ngwr-date-picker-testing.d.ts +3 -3
- package/types/ngwr-date-picker.d.ts +106 -3
- package/types/ngwr-date-stamp-testing.d.ts +47 -0
- package/types/ngwr-date-stamp.d.ts +81 -0
- package/types/ngwr-date.d.ts +179 -27
- package/types/ngwr-dialog-testing.d.ts +10 -0
- package/types/ngwr-dialog.d.ts +120 -5
- package/types/ngwr-directives.d.ts +76 -1
- package/types/ngwr-drawer.d.ts +22 -1
- package/types/ngwr-dropdown.d.ts +3 -2
- package/types/ngwr-hotkey.d.ts +5 -5
- package/types/ngwr-i18n.d.ts +47 -17
- package/types/ngwr-icon.d.ts +26 -26
- package/types/ngwr-input-number.d.ts +2 -2
- package/types/ngwr-input.d.ts +8 -8
- package/types/ngwr-load-state.d.ts +6 -6
- package/types/ngwr-meta.d.ts +18 -0
- package/types/ngwr-overlay.d.ts +36 -0
- package/types/ngwr-pipes.d.ts +21 -4
- package/types/ngwr-platform.d.ts +2 -1
- package/types/ngwr-popconfirm.d.ts +3 -2
- package/types/ngwr-popover.d.ts +43 -4
- package/types/ngwr-resizable.d.ts +228 -0
- package/types/ngwr-select.d.ts +33 -18
- package/types/ngwr-slider-testing.d.ts +2 -2
- package/types/ngwr-slider.d.ts +3 -3
- package/types/ngwr-statistic.d.ts +5 -1
- package/types/ngwr-storage.d.ts +1 -1
- package/types/ngwr-table-testing.d.ts +5 -2
- package/types/ngwr-table.d.ts +255 -14
- package/types/ngwr-tabs.d.ts +10 -2
- package/types/ngwr-toast-testing.d.ts +18 -3
- package/types/ngwr-toast.d.ts +248 -23
- package/types/ngwr-transfer.d.ts +5 -0
- package/types/ngwr-tree.d.ts +22 -2
- package/types/ngwr-utils-router.d.ts +22 -0
- package/types/ngwr-utils.d.ts +165 -83
- package/types/ngwr-validators.d.ts +4 -2
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr.d.ts +2 -0
- package/types/pointer-tracker-D7fXxLQL.d.ts +24 -0
- package/fesm2022/ngwr-animations-core.mjs.map +0 -1
- package/types/ngwr-animations-core.d.ts +0 -294
package/types/ngwr-drawer.d.ts
CHANGED
|
@@ -75,6 +75,14 @@ interface WrDrawerOptions<D = unknown> {
|
|
|
75
75
|
* splitting happens here.
|
|
76
76
|
*/
|
|
77
77
|
readonly panelClass?: WrClassInput;
|
|
78
|
+
/**
|
|
79
|
+
* Where the global toast stack paints while this drawer is open. `'below'`
|
|
80
|
+
* keeps it under the drawer and its backdrop. Toasts in a
|
|
81
|
+
* `<wr-toast-outlet>` are page content and are under every drawer anyway.
|
|
82
|
+
* With overlays stacked, the top one decides.
|
|
83
|
+
* @default 'above'
|
|
84
|
+
*/
|
|
85
|
+
readonly toasts?: 'above' | 'below';
|
|
78
86
|
}
|
|
79
87
|
/**
|
|
80
88
|
* Side panel that slides in from an edge of the viewport. Two-way binds
|
|
@@ -153,6 +161,12 @@ export declare class WrDrawer {
|
|
|
153
161
|
* pane, so one name has to mean the same surface on both paths.
|
|
154
162
|
*/
|
|
155
163
|
readonly panelClass: import("@angular/core").InputSignal<WrClassInput>;
|
|
164
|
+
/**
|
|
165
|
+
* Where the global toast stack paints while the drawer is open. `'below'`
|
|
166
|
+
* keeps it under the drawer and its backdrop. Read when the drawer opens.
|
|
167
|
+
* @default 'above'
|
|
168
|
+
*/
|
|
169
|
+
readonly toasts: import("@angular/core").InputSignal<"below" | "above">;
|
|
156
170
|
protected readonly resolvedCloseLabel: import("@angular/core").Signal<string>;
|
|
157
171
|
protected readonly panelTpl: import("@angular/core").Signal<TemplateRef<any>>;
|
|
158
172
|
/**
|
|
@@ -170,6 +184,7 @@ export declare class WrDrawer {
|
|
|
170
184
|
protected panelClasses(): string;
|
|
171
185
|
private readonly focusMonitor;
|
|
172
186
|
private readonly overlay;
|
|
187
|
+
private readonly order;
|
|
173
188
|
private readonly vcr;
|
|
174
189
|
private readonly destroyRef;
|
|
175
190
|
private readonly injector;
|
|
@@ -282,6 +297,11 @@ export declare class WrDrawer {
|
|
|
282
297
|
"required": false;
|
|
283
298
|
"isSignal": true;
|
|
284
299
|
};
|
|
300
|
+
"toasts": {
|
|
301
|
+
"alias": "toasts";
|
|
302
|
+
"required": false;
|
|
303
|
+
"isSignal": true;
|
|
304
|
+
};
|
|
285
305
|
}, {
|
|
286
306
|
"open": "openChange";
|
|
287
307
|
}, ["projectedTitle"], ["*"], true, never>;
|
|
@@ -388,6 +408,7 @@ export declare class WrDrawerManager {
|
|
|
388
408
|
private readonly isBrowser;
|
|
389
409
|
private readonly i18n;
|
|
390
410
|
private readonly location;
|
|
411
|
+
private readonly order;
|
|
391
412
|
/**
|
|
392
413
|
* The application's reading direction — the instance the CDK itself read when
|
|
393
414
|
* it stamped the overlay. A root service has no node injector above it, so a
|
|
@@ -419,7 +440,7 @@ export declare class WrDrawerManager {
|
|
|
419
440
|
* Resolved per open, not stored as a plain string at injection: this is a root
|
|
420
441
|
* service, so a one-shot read — which is what `WrDialog` used to have, and moved
|
|
421
442
|
* off for this reason — would run before an async catalog had loaded and then
|
|
422
|
-
* freeze that answer for the life of the app. (`
|
|
443
|
+
* freeze that answer for the life of the app. (`wrReadI18nText` hands back a signal
|
|
423
444
|
* now, so it would no longer freeze; the name still has to be pushed onto the
|
|
424
445
|
* button per open either way.) `WrDialog.closeLabel()` is the matching precedent,
|
|
425
446
|
* not the counter-example.
|
package/types/ngwr-dropdown.d.ts
CHANGED
|
@@ -110,8 +110,9 @@ export declare class WrDropdown {
|
|
|
110
110
|
private readonly scrollStrategies;
|
|
111
111
|
private readonly injector;
|
|
112
112
|
private readonly destroyRef;
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
private readonly openState;
|
|
114
|
+
/** Whether the menu is open. Read-only: `open()` and `close()` change it. */
|
|
115
|
+
readonly isOpen: import("@angular/core").Signal<boolean>;
|
|
115
116
|
/** The id used only when the consumer's element carries none of its own. */
|
|
116
117
|
private readonly fallbackId;
|
|
117
118
|
/**
|
package/types/ngwr-hotkey.d.ts
CHANGED
|
@@ -183,7 +183,7 @@ interface WrParsedHotkey {
|
|
|
183
183
|
* @param spec - the spec to parse
|
|
184
184
|
* @param isMac - when true, `mod` resolves to `meta` (Cmd); otherwise `ctrl`
|
|
185
185
|
*/
|
|
186
|
-
declare function
|
|
186
|
+
declare function wrParseHotkeySpec(spec: WrHotkeySpec, isMac?: boolean): WrParsedHotkey;
|
|
187
187
|
/**
|
|
188
188
|
* Does `event` satisfy the parsed hotkey?
|
|
189
189
|
*
|
|
@@ -196,7 +196,7 @@ declare function parseHotkeySpec(spec: WrHotkeySpec, isMac?: boolean): WrParsedH
|
|
|
196
196
|
* Nor does a chord holding Alt, since macOS Option and Windows AltGr type a
|
|
197
197
|
* symbol on purpose, `€` on AltGr+E among them.
|
|
198
198
|
*/
|
|
199
|
-
declare function
|
|
199
|
+
declare function wrMatchesHotkey(event: KeyboardEvent, parsed: WrParsedHotkey): boolean;
|
|
200
200
|
/**
|
|
201
201
|
* The platform a chord is written for, from a user agent: `'mac'` when it
|
|
202
202
|
* names a Mac (iPhone and iPad say "like Mac OS X", and their hardware
|
|
@@ -209,7 +209,7 @@ export declare function wrHotkeyPlatform(userAgent?: string | null): WrHotkeyPla
|
|
|
209
209
|
* A chord written the way the platform writes it: `'mod+k'` is `⌘K` on macOS
|
|
210
210
|
* and `Ctrl+K` elsewhere, `'mod+shift+k'` is `⇧⌘K` and `Ctrl+Shift+K`.
|
|
211
211
|
* Modifiers follow Apple's order (`⌃⌥⇧⌘`) on a Mac and Win, Ctrl, Alt, Shift
|
|
212
|
-
* elsewhere. A named key is labelled from `
|
|
212
|
+
* elsewhere. A named key is labelled from `WR_KEY_LABELS` in `ngwr/utils`, with
|
|
213
213
|
* Apple's glyph on a Mac (`↩`, `⎋`, `⌫`); an arrow is its glyph everywhere; a
|
|
214
214
|
* letter is uppercased; a key neither table knows is passed through as typed.
|
|
215
215
|
*
|
|
@@ -220,8 +220,8 @@ export declare function wrHotkeyPlatform(userAgent?: string | null): WrHotkeyPla
|
|
|
220
220
|
* in `afterNextRender` for that reason. Pass `platform` from such a signal, or
|
|
221
221
|
* let `wr-kbd` print the chord.
|
|
222
222
|
*
|
|
223
|
-
* `labels` replaces a word from `
|
|
223
|
+
* `labels` replaces a word from `WR_KEY_LABELS` by its `WR_KEYS` value, for a
|
|
224
224
|
* translation; `wr-kbd` passes the i18n catalog's. A glyph is never replaced.
|
|
225
225
|
*/
|
|
226
226
|
export declare function wrFormatChord(chord: WrHotkeySpec, platform?: WrHotkeyPlatform, labels?: Readonly<Partial<Record<WrKey, string>>>): string;
|
|
227
|
-
export { type WrHotkeyEntry, type WrHotkeyHandle, type WrHotkeyOptions, type WrHotkeyPlatform, type WrHotkeySpec, type WrParsedHotkey,
|
|
227
|
+
export { type WrHotkeyEntry, type WrHotkeyHandle, type WrHotkeyOptions, type WrHotkeyPlatform, type WrHotkeySpec, type WrParsedHotkey, wrMatchesHotkey, wrParseHotkeySpec };
|
package/types/ngwr-i18n.d.ts
CHANGED
|
@@ -7,6 +7,19 @@ interface WrI18nCatalog {
|
|
|
7
7
|
}
|
|
8
8
|
/** Parameters passed to interpolation — coerced to strings via `String(v)`. */
|
|
9
9
|
type WrI18nParams = Readonly<Record<string, unknown>>;
|
|
10
|
+
/**
|
|
11
|
+
* The third argument of `WrI18n.t()`, `WrI18n.translate()` and the `wrT` pipe,
|
|
12
|
+
* where a bare string is the scope.
|
|
13
|
+
*/
|
|
14
|
+
interface WrI18nTranslateOptions {
|
|
15
|
+
/** Scoped lookup first, then the root catalog. */
|
|
16
|
+
readonly scope?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Returned as is when the key is missing: no interpolation, no
|
|
19
|
+
* `missingHandler` call. `null` and `undefined` mean no fallback.
|
|
20
|
+
*/
|
|
21
|
+
readonly fallback?: string | null;
|
|
22
|
+
}
|
|
10
23
|
/** Hook called once on every key that resolves to nothing. */
|
|
11
24
|
type WrI18nMissingHandler = (key: string, locale: string) => string;
|
|
12
25
|
/** User-facing config for {@link provideWrI18n}. */
|
|
@@ -79,6 +92,7 @@ export declare const WR_I18N_CONFIG: InjectionToken<WrI18nConfigResolved>;
|
|
|
79
92
|
* specific statement wins, because it can only have been deliberate.
|
|
80
93
|
* 2. **`WrI18n.locale()` — the runtime value.** The only one of the three that
|
|
81
94
|
* can change without a reload, so it is what a language switcher writes.
|
|
95
|
+
* With `provideWrI18n()` in the app, dates are written in it.
|
|
82
96
|
* 3. **`LOCALE_ID`.** Angular's app-wide constant, and the seed for both of the
|
|
83
97
|
* above when neither was given. One statement, one answer.
|
|
84
98
|
* 4. `'en-US'`, which is what `LOCALE_ID` itself falls back to.
|
|
@@ -88,11 +102,12 @@ export declare const WR_I18N_CONFIG: InjectionToken<WrI18nConfigResolved>;
|
|
|
88
102
|
* the hydrated page disagree.
|
|
89
103
|
*
|
|
90
104
|
* **What a runtime switch reaches, and what it does not.** `use()` repaints
|
|
91
|
-
* every catalog string
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
105
|
+
* every catalog string, and every date: the date adapter, and so
|
|
106
|
+
* `wr-calendar`, `wr-date-picker`, `wrDate` and `wr-date-stamp`, formats in
|
|
107
|
+
* this locale unless `withDates({ locale })` pinned another. It does not move
|
|
108
|
+
* `LOCALE_ID`, which is a constant, so anything keyed on it — `wrNumber` /
|
|
109
|
+
* `wrPlural`, `wr-input-number`, `wr-statistic`, `wr-counter` — stays where it
|
|
110
|
+
* was. `use()` says so once in dev mode rather than leaving it to be
|
|
96
111
|
* discovered.
|
|
97
112
|
*
|
|
98
113
|
* @example
|
|
@@ -101,6 +116,7 @@ export declare const WR_I18N_CONFIG: InjectionToken<WrI18nConfigResolved>;
|
|
|
101
116
|
* i18n.use('ru'); // switch locale
|
|
102
117
|
* i18n.t('cart.checkout'); // → 'Оформить заказ'
|
|
103
118
|
* i18n.t('greeting', { name: 'Ada' }); // → 'Hello, Ada!'
|
|
119
|
+
* i18n.t(`types.${type}`, undefined, { fallback: type }); // → type, when no key
|
|
104
120
|
*
|
|
105
121
|
* effect(() => console.log(i18n.translate('hi')())); // re-runs on locale change
|
|
106
122
|
* ```
|
|
@@ -137,9 +153,9 @@ export declare class WrI18n {
|
|
|
137
153
|
/**
|
|
138
154
|
* Switch active locale. Ignored when not whitelisted.
|
|
139
155
|
*
|
|
140
|
-
* Text
|
|
156
|
+
* Text and dates — see the class docs for what a runtime switch cannot reach. The
|
|
141
157
|
* dev-mode warning below is the whole reporting of that limit; without it the
|
|
142
|
-
* failure is a screen showing German labels beside `
|
|
158
|
+
* failure is a screen showing German labels beside `1,234.5`, with nothing
|
|
143
159
|
* anywhere saying why.
|
|
144
160
|
*/
|
|
145
161
|
use(locale: string): void;
|
|
@@ -155,10 +171,15 @@ export declare class WrI18n {
|
|
|
155
171
|
* Eager translate — returns the current value or the missing-handler
|
|
156
172
|
* fallback. Does NOT auto-load missing catalogs; combine with the
|
|
157
173
|
* reactive `translate(...)` if you want load-on-demand.
|
|
174
|
+
*
|
|
175
|
+
* The third argument is a scope, or `{ scope, fallback }`. With a `fallback`
|
|
176
|
+
* a missing key returns it as is, not interpolated, and `missingHandler` is
|
|
177
|
+
* not called: for a key built from a server value that may have no
|
|
178
|
+
* translation.
|
|
158
179
|
*/
|
|
159
|
-
t(key: string, params?: WrI18nParams,
|
|
180
|
+
t(key: string, params?: WrI18nParams, scopeOrOptions?: string | WrI18nTranslateOptions): string;
|
|
160
181
|
/** Reactive translate — re-evaluates on locale or catalog updates. */
|
|
161
|
-
translate(key: string, params?: WrI18nParams,
|
|
182
|
+
translate(key: string, params?: WrI18nParams, scopeOrOptions?: string | WrI18nTranslateOptions): Signal<string>;
|
|
162
183
|
/**
|
|
163
184
|
* Look a key up in the registered base catalogs, later contributions first so
|
|
164
185
|
* a feature can shadow an earlier one.
|
|
@@ -177,9 +198,9 @@ export declare class WrI18n {
|
|
|
177
198
|
* Say once, in dev, that a runtime switch moved the text and nothing else.
|
|
178
199
|
*
|
|
179
200
|
* The mismatch is otherwise invisible in the way that costs the most time:
|
|
180
|
-
* the catalog strings all change, which reads as "the switch
|
|
181
|
-
*
|
|
182
|
-
* locale. Silent when the new locale IS `LOCALE_ID`, because then nothing is
|
|
201
|
+
* the catalog strings and the dates all change, which reads as "the switch
|
|
202
|
+
* worked", and the numbers beside them are still correct-looking output in
|
|
203
|
+
* the old locale. Silent when the new locale IS `LOCALE_ID`, because then nothing is
|
|
183
204
|
* out of step and a warning that fires when everything agrees is one people
|
|
184
205
|
* learn to ignore. Production builds drop the call entirely via `isDevMode()`
|
|
185
206
|
* tree-shaking.
|
|
@@ -198,11 +219,12 @@ export declare class WrI18n {
|
|
|
198
219
|
* <h1>{{ 'home.title' | wrT }}</h1>
|
|
199
220
|
* <p>{{ 'greeting' | wrT: { name: user().name } }}</p>
|
|
200
221
|
* <button>{{ 'forms.save' | wrT: null : 'checkout' }}</button>
|
|
222
|
+
* <span>{{ 'types.' + type | wrT: null : { fallback: type } }}</span>
|
|
201
223
|
* ```
|
|
202
224
|
*/
|
|
203
225
|
export declare class WrTPipe implements PipeTransform {
|
|
204
226
|
private readonly i18n;
|
|
205
|
-
transform(key: string, params?: WrI18nParams | null,
|
|
227
|
+
transform(key: string, params?: WrI18nParams | null, scopeOrOptions?: string | WrI18nTranslateOptions): string;
|
|
206
228
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrTPipe, never>;
|
|
207
229
|
static ɵpipe: i0.ɵɵPipeDeclaration<WrTPipe, "wrT", true>;
|
|
208
230
|
}
|
|
@@ -215,6 +237,7 @@ export declare class WrTPipe implements PipeTransform {
|
|
|
215
237
|
* <span [wrT]="'home.title'"></span>
|
|
216
238
|
* <span [wrT]="'greeting'" [wrTParams]="{ name: user().name }"></span>
|
|
217
239
|
* <span [wrT]="'forms.save'" wrTScope="checkout"></span>
|
|
240
|
+
* <span [wrT]="'types.' + type" [wrTFallback]="type"></span>
|
|
218
241
|
* ```
|
|
219
242
|
*/
|
|
220
243
|
export declare class WrTDirective {
|
|
@@ -224,6 +247,8 @@ export declare class WrTDirective {
|
|
|
224
247
|
readonly wrTParams: import("@angular/core").InputSignal<Readonly<Record<string, unknown>> | null>;
|
|
225
248
|
/** Optional scope — scoped lookup first, then root fallback. */
|
|
226
249
|
readonly wrTScope: import("@angular/core").InputSignal<string | null>;
|
|
250
|
+
/** Text shown as is when the key is missing; `missingHandler` is not called. */
|
|
251
|
+
readonly wrTFallback: import("@angular/core").InputSignal<string | null>;
|
|
227
252
|
private readonly host;
|
|
228
253
|
private readonly i18n;
|
|
229
254
|
private readonly text;
|
|
@@ -245,6 +270,11 @@ export declare class WrTDirective {
|
|
|
245
270
|
"required": false;
|
|
246
271
|
"isSignal": true;
|
|
247
272
|
};
|
|
273
|
+
"wrTFallback": {
|
|
274
|
+
"alias": "wrTFallback";
|
|
275
|
+
"required": false;
|
|
276
|
+
"isSignal": true;
|
|
277
|
+
};
|
|
248
278
|
}, {}, never, never, true, never>;
|
|
249
279
|
}
|
|
250
280
|
/**
|
|
@@ -261,7 +291,7 @@ interface WrI18nLoader {
|
|
|
261
291
|
*
|
|
262
292
|
* Defaults to one that serves an empty catalog, which is what makes
|
|
263
293
|
* `provideWrI18n()` genuinely optional: every ngwr component routes its
|
|
264
|
-
* built-in strings through `useI18nText` / `
|
|
294
|
+
* built-in strings through `useI18nText` / `wrReadI18nText`, those inject
|
|
265
295
|
* `WrI18n` optionally — and because `WrI18n` is `providedIn: 'root'`, an
|
|
266
296
|
* optional inject still CONSTRUCTS it. Without a default here that construction
|
|
267
297
|
* threw `NG0201: No provider found for WR_I18N_LOADER`, so an app that had
|
|
@@ -444,7 +474,7 @@ export declare function useI18nText(binding: Signal<string | null | undefined>,
|
|
|
444
474
|
* `<wr-date-picker>` the field said "Открыть календарь" and the calendar
|
|
445
475
|
* button beside it "Open calendar", off the same key.
|
|
446
476
|
*/
|
|
447
|
-
export declare function
|
|
477
|
+
export declare function wrReadI18nText(key: string, fallback: string): Signal<string>;
|
|
448
478
|
/**
|
|
449
479
|
* Build a per-call formatter for parametrized labels (e.g. ARIA labels
|
|
450
480
|
* that interpolate a per-row value: `"Remove {{label}}"`). Returns a
|
|
@@ -458,7 +488,7 @@ export declare function readI18nText(key: string, fallback: string): Signal<stri
|
|
|
458
488
|
* key is missing.
|
|
459
489
|
*
|
|
460
490
|
* Use this for labels that vary per row. For static labels, prefer
|
|
461
|
-
* {@link useI18nText} or {@link
|
|
491
|
+
* {@link useI18nText} or {@link wrReadI18nText}.
|
|
462
492
|
*
|
|
463
493
|
* @example
|
|
464
494
|
* ```ts
|
|
@@ -469,4 +499,4 @@ export declare function readI18nText(key: string, fallback: string): Signal<stri
|
|
|
469
499
|
* ```
|
|
470
500
|
*/
|
|
471
501
|
export declare function useI18nFormatter(key: string, fallback: string): (params?: WrI18nParams) => string;
|
|
472
|
-
export type { ProvideWrI18nOptions, WrI18nBaseCatalogs, WrI18nCatalog, WrI18nConfig, WrI18nConfigResolved, WrI18nHttpLoaderConfig, WrI18nLoader, WrI18nMissingHandler, WrI18nParams, WrI18nStaticCatalogs, WrI18nStaticScopedCatalogs };
|
|
502
|
+
export type { ProvideWrI18nOptions, WrI18nBaseCatalogs, WrI18nCatalog, WrI18nConfig, WrI18nConfigResolved, WrI18nHttpLoaderConfig, WrI18nLoader, WrI18nMissingHandler, WrI18nParams, WrI18nStaticCatalogs, WrI18nStaticScopedCatalogs, WrI18nTranslateOptions };
|
package/types/ngwr-icon.d.ts
CHANGED
|
@@ -75,14 +75,14 @@ export declare class WrIcon {
|
|
|
75
75
|
*
|
|
76
76
|
* Kept as a string alias so consumers can pass any name they've wired
|
|
77
77
|
* — there are no built-ins shipped by ngwr. Bring an icon set via
|
|
78
|
-
* `
|
|
78
|
+
* `wrSvgIcon()`, or `wrLucideIcons()` for Lucide.
|
|
79
79
|
*/
|
|
80
80
|
type WrIconName = string;
|
|
81
81
|
/**
|
|
82
82
|
* Shape of an icon registered with the icon registry.
|
|
83
83
|
*
|
|
84
|
-
* **ngwr ships no icons.** Every `WrIconDef` comes from `
|
|
85
|
-
* raw SVG, or from `
|
|
84
|
+
* **ngwr ships no icons.** Every `WrIconDef` comes from `wrSvgIcon()` over
|
|
85
|
+
* raw SVG, or from `wrLucideIcons()` over Lucide's IconNode tuples, so the set
|
|
86
86
|
* an app pays for is the set it registers.
|
|
87
87
|
*
|
|
88
88
|
* @example
|
|
@@ -117,33 +117,33 @@ interface WrIconDef {
|
|
|
117
117
|
/**
|
|
118
118
|
* Shape of a `lucide` icon export — an array of `[tag, attrs]` tuples
|
|
119
119
|
* representing the inner SVG children. The outer `<svg>` wrapper is
|
|
120
|
-
* added by {@link
|
|
120
|
+
* added by {@link wrLucide} when converting to a {@link WrIconDef}.
|
|
121
121
|
*/
|
|
122
|
-
type
|
|
122
|
+
type WrLucideIconNode = readonly (readonly [string, Record<string, string | number | undefined>])[];
|
|
123
123
|
/**
|
|
124
124
|
* Wrap a single Lucide icon in the {@link WrIconDef} envelope. Use this
|
|
125
125
|
* when you need fine-grained control over the registered name, or when
|
|
126
|
-
* the bulk {@link
|
|
126
|
+
* the bulk {@link wrLucideIcons} helper isn't a good fit.
|
|
127
127
|
*
|
|
128
128
|
* @example
|
|
129
129
|
* ```ts
|
|
130
130
|
* import { Plus } from 'lucide';
|
|
131
|
-
* import {
|
|
131
|
+
* import { wrLucide, provideWrIcons } from 'ngwr/icon';
|
|
132
132
|
*
|
|
133
|
-
* provideWrIcons([
|
|
133
|
+
* provideWrIcons([wrLucide('plus', Plus)]);
|
|
134
134
|
* ```
|
|
135
135
|
*/
|
|
136
|
-
declare function
|
|
136
|
+
declare function wrLucide(name: string, children: WrLucideIconNode): WrIconDef;
|
|
137
137
|
/**
|
|
138
138
|
* Wrap a bag of Lucide icons in one shot. Keys become the registered
|
|
139
139
|
* names **verbatim** — exactly what you pass to `<wr-icon name>` — matching
|
|
140
|
-
* the singular `
|
|
140
|
+
* the singular `wrLucide()` helper and `wrSvgIcon()`. Kebab-case by
|
|
141
141
|
* convention, so quote multi-word keys (`'chevron-down'`). Values are the
|
|
142
142
|
* upstream IconNode tuples.
|
|
143
143
|
*
|
|
144
144
|
* Lucide is the one set with a converter here because it is the one that
|
|
145
145
|
* ships no SVG markup at all; every other set, Feather included, registers
|
|
146
|
-
* its own SVG through `
|
|
146
|
+
* its own SVG through `wrSvgIcon()`.
|
|
147
147
|
*
|
|
148
148
|
* Tree-shaking: every `Plus`, `Trash`, … import lives in *your* file
|
|
149
149
|
* — ngwr ships only this wrapper, not the icon data. Unused icons in
|
|
@@ -152,16 +152,16 @@ declare function lucide(name: string, children: LucideIconNode): WrIconDef;
|
|
|
152
152
|
* @example
|
|
153
153
|
* ```ts
|
|
154
154
|
* import { Plus, Trash, ChevronDown } from 'lucide';
|
|
155
|
-
* import {
|
|
155
|
+
* import { wrLucideIcons, provideWrIcons } from 'ngwr/icon';
|
|
156
156
|
*
|
|
157
157
|
* bootstrapApplication(AppComponent, {
|
|
158
158
|
* providers: [
|
|
159
|
-
* provideWrIcons(
|
|
159
|
+
* provideWrIcons(wrLucideIcons({ plus: Plus, trash: Trash, 'chevron-down': ChevronDown })),
|
|
160
160
|
* ],
|
|
161
161
|
* });
|
|
162
162
|
* ```
|
|
163
163
|
*/
|
|
164
|
-
declare function
|
|
164
|
+
declare function wrLucideIcons(icons: Record<string, WrLucideIconNode>): WrIconDef[];
|
|
165
165
|
/**
|
|
166
166
|
* Registers a set of icons for use by `<wr-icon>`.
|
|
167
167
|
*
|
|
@@ -184,25 +184,25 @@ declare function lucideIcons(icons: Record<string, LucideIconNode>): WrIconDef[]
|
|
|
184
184
|
* ```ts
|
|
185
185
|
* // App-level registration, from the app's own `lucide` install.
|
|
186
186
|
* import { Home, Settings, User } from 'lucide';
|
|
187
|
-
* import {
|
|
187
|
+
* import { wrLucideIcons, provideWrIcons } from 'ngwr/icon';
|
|
188
188
|
*
|
|
189
189
|
* export const appConfig: ApplicationConfig = {
|
|
190
|
-
* providers: [provideWrIcons(
|
|
190
|
+
* providers: [provideWrIcons(wrLucideIcons({ home: Home, user: User, settings: Settings }))],
|
|
191
191
|
* };
|
|
192
192
|
* ```
|
|
193
193
|
*
|
|
194
194
|
* @example
|
|
195
195
|
* ```ts
|
|
196
|
-
* // Component-level registration, from raw SVG. `
|
|
196
|
+
* // Component-level registration, from raw SVG. `wrSvgIcon` names the glyph;
|
|
197
197
|
* // the name is what `<wr-icon name="…">` looks up.
|
|
198
|
-
* import { WrIcon, provideWrIcons,
|
|
198
|
+
* import { WrIcon, provideWrIcons, wrSvgIcon } from 'ngwr/icon';
|
|
199
199
|
*
|
|
200
200
|
* const BRAND = '<svg viewBox="0 0 24 24"><path d="M4 12h16" /></svg>';
|
|
201
201
|
*
|
|
202
202
|
* @Component({
|
|
203
203
|
* selector: 'ngwr-header',
|
|
204
204
|
* imports: [WrIcon],
|
|
205
|
-
* providers: [provideWrIcons([
|
|
205
|
+
* providers: [provideWrIcons([wrSvgIcon('brand', BRAND)])],
|
|
206
206
|
* template: `<wr-icon name="brand" />`,
|
|
207
207
|
* })
|
|
208
208
|
* export class HeaderComponent {}
|
|
@@ -220,13 +220,13 @@ export declare function provideWrIcons(icons: WrIconDef[]): Provider[];
|
|
|
220
220
|
* a string at build time.
|
|
221
221
|
*
|
|
222
222
|
* Lucide is the one set that ships no SVG markup — its exports are IconNode
|
|
223
|
-
* tuples — so it goes through {@link
|
|
223
|
+
* tuples — so it goes through {@link wrLucideIcons} instead. Feather needs no
|
|
224
224
|
* converter: `feather-icons` ships every icon as a complete `<svg>` under
|
|
225
225
|
* `dist/icons/`, the same string `feather.icons[name].toSvg()` returns.
|
|
226
226
|
*
|
|
227
227
|
* @example
|
|
228
228
|
* ```ts
|
|
229
|
-
* import {
|
|
229
|
+
* import { wrSvgIcon, provideWrIcons } from 'ngwr/icon';
|
|
230
230
|
* // Vite: the `?raw` suffix returns the file as a string.
|
|
231
231
|
* import plusSvg from '@tabler/icons/icons/outline/plus.svg?raw';
|
|
232
232
|
* import phosphorPlusSvg from '@phosphor-icons/core/assets/regular/plus.svg?raw';
|
|
@@ -235,9 +235,9 @@ export declare function provideWrIcons(icons: WrIconDef[]): Provider[];
|
|
|
235
235
|
* bootstrapApplication(AppComponent, {
|
|
236
236
|
* providers: [
|
|
237
237
|
* provideWrIcons([
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
*
|
|
238
|
+
* wrSvgIcon('plus', plusSvg),
|
|
239
|
+
* wrSvgIcon('plus-phosphor', phosphorPlusSvg),
|
|
240
|
+
* wrSvgIcon('plus-feather', featherPlusSvg),
|
|
241
241
|
* ]),
|
|
242
242
|
* ],
|
|
243
243
|
* });
|
|
@@ -252,5 +252,5 @@ export declare function provideWrIcons(icons: WrIconDef[]): Provider[];
|
|
|
252
252
|
* before anything reaches the DOM. In dev mode the component names what it
|
|
253
253
|
* removed, so a legitimate icon that loses something says so out loud.
|
|
254
254
|
*/
|
|
255
|
-
export declare function
|
|
256
|
-
export { type
|
|
255
|
+
export declare function wrSvgIcon(name: string, svg: string): WrIconDef;
|
|
256
|
+
export { type WrIconDef, type WrIconName, type WrLucideIconNode, wrLucide, wrLucideIcons };
|
|
@@ -181,10 +181,10 @@ export declare class WrInputNumber<M extends WrInputNumberMode = 'number'> imple
|
|
|
181
181
|
/**
|
|
182
182
|
* Above this, the anti-drift round is skipped — it would MANUFACTURE drift.
|
|
183
183
|
*
|
|
184
|
-
* `
|
|
184
|
+
* `wrRound(v, 10)` is `Math.round((v + EPSILON) * 1e10) / 1e10`, and the scale
|
|
185
185
|
* factor is only exact while `v * 1e10` stays inside 2^53, i.e. |v| under
|
|
186
186
|
* about 900,720. In practice the round-trip still recovers up to ~9.2e8 and
|
|
187
|
-
* then breaks: `
|
|
187
|
+
* then breaks: `wrRound(1000000001, 10)` is `1000000000.9999999`, and since
|
|
188
188
|
* `format` prints up to 20 fraction digits that tail reaches the screen —
|
|
189
189
|
* and compounds, because the next press starts from it. Integer stepping at
|
|
190
190
|
* that magnitude is exact in IEEE754 and needed no help; the only thing this
|
package/types/ngwr-input.d.ts
CHANGED
|
@@ -183,11 +183,11 @@ export declare class WrPasswordToggle {
|
|
|
183
183
|
readonly for: import("@angular/core").InputSignal<HTMLInputElement>;
|
|
184
184
|
protected readonly revealed: import("@angular/core").WritableSignal<boolean>;
|
|
185
185
|
/** Accessible name while the password is hidden. Falls back to `input.showPassword`. */
|
|
186
|
-
readonly
|
|
186
|
+
readonly showPasswordLabel: import("@angular/core").InputSignal<string | null>;
|
|
187
187
|
/** Accessible name while the password is revealed. Falls back to `input.hidePassword`. */
|
|
188
|
-
readonly
|
|
189
|
-
private readonly
|
|
190
|
-
private readonly
|
|
188
|
+
readonly hidePasswordLabel: import("@angular/core").InputSignal<string | null>;
|
|
189
|
+
private readonly resolvedShowPasswordLabel;
|
|
190
|
+
private readonly resolvedHidePasswordLabel;
|
|
191
191
|
protected readonly ariaLabel: import("@angular/core").Signal<string>;
|
|
192
192
|
protected toggle(): void;
|
|
193
193
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrPasswordToggle, never>;
|
|
@@ -197,13 +197,13 @@ export declare class WrPasswordToggle {
|
|
|
197
197
|
"required": true;
|
|
198
198
|
"isSignal": true;
|
|
199
199
|
};
|
|
200
|
-
"
|
|
201
|
-
"alias": "
|
|
200
|
+
"showPasswordLabel": {
|
|
201
|
+
"alias": "showPasswordLabel";
|
|
202
202
|
"required": false;
|
|
203
203
|
"isSignal": true;
|
|
204
204
|
};
|
|
205
|
-
"
|
|
206
|
-
"alias": "
|
|
205
|
+
"hidePasswordLabel": {
|
|
206
|
+
"alias": "hidePasswordLabel";
|
|
207
207
|
"required": false;
|
|
208
208
|
"isSignal": true;
|
|
209
209
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { Resource, TemplateRef } from "@angular/core";
|
|
3
|
-
import {
|
|
3
|
+
import { WrSafeAny } from "ngwr/utils";
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
6
6
|
*
|
|
@@ -50,7 +50,7 @@ type WrLoadStateStatus = 'loading' | 'error' | 'empty' | 'ready';
|
|
|
50
50
|
* </wr-load-state>
|
|
51
51
|
* ```
|
|
52
52
|
*/
|
|
53
|
-
export declare class WrLoadStateContent<T =
|
|
53
|
+
export declare class WrLoadStateContent<T = WrSafeAny> {
|
|
54
54
|
/**
|
|
55
55
|
* The resource the template draws, for the type checker: nothing reads it at
|
|
56
56
|
* runtime. Bind the same resource as the wrapper's `[resource]`.
|
|
@@ -59,7 +59,7 @@ export declare class WrLoadStateContent<T = SafeAny> {
|
|
|
59
59
|
readonly template: TemplateRef<WrLoadStateContentContext<T>>;
|
|
60
60
|
/**
|
|
61
61
|
* Types the template's `let-` variables under `strictTemplates`. `T` defaults
|
|
62
|
-
* to `
|
|
62
|
+
* to `WrSafeAny` for the reason `WrOptionLeading` gives: without
|
|
63
63
|
* `[wrLoadStateContentOf]` nothing infers the value, and narrowed to
|
|
64
64
|
* `unknown` every `value.length` would stop compiling.
|
|
65
65
|
*/
|
|
@@ -99,11 +99,11 @@ export declare class WrLoadStateLoading {
|
|
|
99
99
|
* </ng-template>
|
|
100
100
|
* ```
|
|
101
101
|
*/
|
|
102
|
-
export declare class WrLoadStateError<E =
|
|
102
|
+
export declare class WrLoadStateError<E = WrSafeAny> {
|
|
103
103
|
readonly template: TemplateRef<WrLoadStateErrorContext<E>>;
|
|
104
104
|
/**
|
|
105
105
|
* Types the template's `let-` variables under `strictTemplates`. `E` defaults
|
|
106
|
-
* to `
|
|
106
|
+
* to `WrSafeAny` for the reason `WrOptionLeading` gives: nothing infers the error
|
|
107
107
|
* type, and narrowed to `unknown`, `error.message` would not compile.
|
|
108
108
|
*/
|
|
109
109
|
static ngTemplateContextGuard<E>(_dir: WrLoadStateError<E>, _ctx: unknown): _ctx is WrLoadStateErrorContext<E>;
|
|
@@ -165,7 +165,7 @@ export declare class WrLoadStateEmpty {
|
|
|
165
165
|
*
|
|
166
166
|
* @see https://ngwr.dev/reference/components/load-state
|
|
167
167
|
*/
|
|
168
|
-
export declare class WrLoadState<T =
|
|
168
|
+
export declare class WrLoadState<T = WrSafeAny> {
|
|
169
169
|
constructor();
|
|
170
170
|
/**
|
|
171
171
|
* The state, when the app decides it. Ignored while `resource` is set.
|
package/types/ngwr-meta.d.ts
CHANGED
|
@@ -33,6 +33,17 @@ interface WrMetaConfig {
|
|
|
33
33
|
readonly title?: string;
|
|
34
34
|
/** Template applied to `title` when set — `{{ title }}` (or `%s`) is replaced with the page title. */
|
|
35
35
|
readonly titleTemplate?: string;
|
|
36
|
+
/**
|
|
37
|
+
* A part put in front of the title, joined to it by `titleSeparator`, inside
|
|
38
|
+
* `titleTemplate`. It is a layer's own key, so the title under it stays live:
|
|
39
|
+
* `{ titlePrefix: 'Edit lamp' }` over `{ title: 'Lamps' }` reads
|
|
40
|
+
* `Edit lamp - Lamps`, and popping it gives `Lamps` back. A page whose title
|
|
41
|
+
* this service does not manage gets it in front of the document's own title.
|
|
42
|
+
* Open Graph and Twitter titles never carry it.
|
|
43
|
+
*/
|
|
44
|
+
readonly titlePrefix?: string;
|
|
45
|
+
/** What joins `titlePrefix` to the title. @default ' - ' */
|
|
46
|
+
readonly titleSeparator?: string;
|
|
36
47
|
readonly description?: string;
|
|
37
48
|
readonly keywords?: readonly string[];
|
|
38
49
|
readonly canonical?: string;
|
|
@@ -93,6 +104,13 @@ export declare class WrMeta {
|
|
|
93
104
|
* knows what that was.
|
|
94
105
|
*/
|
|
95
106
|
private titleBeforeFirstWrite;
|
|
107
|
+
/**
|
|
108
|
+
* Set while a `titlePrefix` stands in front of a title this service does not
|
|
109
|
+
* manage: the document's own title as it was found, and what was written
|
|
110
|
+
* over it. Whoever owns that title may change it meanwhile, so it is put back
|
|
111
|
+
* only if the document still reads `written`.
|
|
112
|
+
*/
|
|
113
|
+
private borrowed;
|
|
96
114
|
constructor();
|
|
97
115
|
/** Snapshot of the resolved metadata currently in the DOM. */
|
|
98
116
|
current(): Readonly<WrMetaConfig>;
|
package/types/ngwr-overlay.d.ts
CHANGED
|
@@ -203,6 +203,42 @@ export declare class WrOverlayContainer extends OverlayContainer {
|
|
|
203
203
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrOverlayContainer, never>;
|
|
204
204
|
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
205
205
|
}
|
|
206
|
+
/**
|
|
207
|
+
* Keeps the global toast host under the overlays opened with
|
|
208
|
+
* `toasts: 'below'`, and above every other one.
|
|
209
|
+
*
|
|
210
|
+
* The top layer is ordered by the moment of promotion and by nothing else, so
|
|
211
|
+
* the only way to put the toast host under an overlay is to promote that
|
|
212
|
+
* overlay again after it. The toast host therefore belongs right under the
|
|
213
|
+
* trailing run of covering overlays: the ones opened after the last overlay
|
|
214
|
+
* that wants toasts above it. A covering overlay under such an overlay cannot
|
|
215
|
+
* be moved over the toasts without also moving over the modal above it, so the
|
|
216
|
+
* newer overlay's rule wins until it closes.
|
|
217
|
+
*
|
|
218
|
+
* @internal
|
|
219
|
+
*/
|
|
220
|
+
export declare class WrOverlayOrder {
|
|
221
|
+
/** Open overlays in the order they were promoted. */
|
|
222
|
+
private readonly layers;
|
|
223
|
+
private toasts;
|
|
224
|
+
/** How many of `layers` sit under the toast host. */
|
|
225
|
+
private under;
|
|
226
|
+
/**
|
|
227
|
+
* Register an overlay right after it is attached, which is when the CDK
|
|
228
|
+
* promotes it. Returns the function that takes it off the list.
|
|
229
|
+
*/
|
|
230
|
+
add(host: HTMLElement, toasts?: 'above' | 'below'): () => void;
|
|
231
|
+
/** Put the toast host on top, then every overlay that covers toasts over it. */
|
|
232
|
+
raiseToasts(host: HTMLElement): void;
|
|
233
|
+
dropToasts(): void;
|
|
234
|
+
/**
|
|
235
|
+
* @param raise with no covering overlay open, raise the host even where the
|
|
236
|
+
* list says it is on top: a popover this list does not know may have joined.
|
|
237
|
+
*/
|
|
238
|
+
private place;
|
|
239
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrOverlayOrder, never>;
|
|
240
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
241
|
+
}
|
|
206
242
|
/**
|
|
207
243
|
* Injection token for the CDK `Overlay` service NGWR components should
|
|
208
244
|
* use to open panels.
|
package/types/ngwr-pipes.d.ts
CHANGED
|
@@ -61,8 +61,13 @@ export declare function wrFormatBytes(value: number | string | null | undefined,
|
|
|
61
61
|
/**
|
|
62
62
|
* A date through a `WrDateAdapter`: the same output as the `wrDate` pipe, for a
|
|
63
63
|
* string built in TypeScript. A date-only string (`'2026-01-01'`) is that day in
|
|
64
|
-
* the local zone, as `DatePipe` reads it
|
|
65
|
-
*
|
|
64
|
+
* the local zone, as `DatePipe` reads it, and `'2026-01-01 14:30:00'` is read
|
|
65
|
+
* as its `T` form: the value goes through `wrParseDate`. `null`, `undefined`,
|
|
66
|
+
* an empty string and a date the engine refuses give an empty string.
|
|
67
|
+
*
|
|
68
|
+
* An instant is printed on the wall clock of `withDates({ timeZone })`, through
|
|
69
|
+
* the adapter's `zoned()`. A date-only string is a calendar day and is not
|
|
70
|
+
* moved: `'2026-01-01'` prints as 1 January in every zone.
|
|
66
71
|
*
|
|
67
72
|
* The adapter stands where `wrFormatNumber` takes a locale, because the output
|
|
68
73
|
* is the adapter's: the native one formats in `WR_DATE_LOCALE`, and an app's own
|
|
@@ -84,8 +89,16 @@ export declare function wrFormatDate(value: Date | string | number | null | unde
|
|
|
84
89
|
* unless the app provides its own — so both the named format keys
|
|
85
90
|
* (`'shortDate'`, `'longDate'`, …) and raw token strings work with nothing to
|
|
86
91
|
* set up. A date-only string (`'2026-01-01'`) is that day in the local zone,
|
|
87
|
-
* as `DatePipe` reads it, not UTC midnight
|
|
88
|
-
*
|
|
92
|
+
* as `DatePipe` reads it, not UTC midnight, and a backend's
|
|
93
|
+
* `'2026-01-01 14:30:00'` is read as its `T` form. {@link wrFormatDate} is the
|
|
94
|
+
* same output as a function.
|
|
95
|
+
*
|
|
96
|
+
* An instant is printed in the time zone of `withDates({ timeZone })`, and the
|
|
97
|
+
* output follows that zone and the adapter's locale when they change at
|
|
98
|
+
* runtime. A pure pipe cannot: Angular calls it again only when an argument
|
|
99
|
+
* changes. So the pipe is impure and keeps its last result, and a
|
|
100
|
+
* change-detection pass with nothing new costs three comparisons, not a
|
|
101
|
+
* format.
|
|
89
102
|
*
|
|
90
103
|
* @example
|
|
91
104
|
* ```html
|
|
@@ -96,6 +109,10 @@ export declare function wrFormatDate(value: Date | string | number | null | unde
|
|
|
96
109
|
*/
|
|
97
110
|
export declare class WrDate implements PipeTransform {
|
|
98
111
|
private readonly adapter;
|
|
112
|
+
private value;
|
|
113
|
+
private format;
|
|
114
|
+
private key;
|
|
115
|
+
private text;
|
|
99
116
|
transform(value: Date | string | number | null | undefined, format?: WrDateFormat | (string & {})): string;
|
|
100
117
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrDate, never>;
|
|
101
118
|
static ɵpipe: i0.ɵɵPipeDeclaration<WrDate, "wrDate", true>;
|