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-date.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { InjectionToken, Type } from "@angular/core";
|
|
2
|
+
import { InjectionToken, Signal, Type } from "@angular/core";
|
|
3
3
|
import { WrFeature } from "ngwr/utils";
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
@@ -46,16 +46,35 @@ interface WrDatesOptions {
|
|
|
46
46
|
* browser happens to be.
|
|
47
47
|
*/
|
|
48
48
|
readonly locale?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The time zone dates are SHOWN in: an IANA name (`'Asia/Almaty'`), an offset
|
|
51
|
+
* (`'+05:00'`, `'+05:30'`), or a function returning one. The function runs in
|
|
52
|
+
* an injection context, so it may `inject()` the service that holds the
|
|
53
|
+
* value, and a signal is such a function: a zone that arrives from a runtime
|
|
54
|
+
* config after bootstrap repaints what is on screen. Default, and for `null`
|
|
55
|
+
* or `undefined`: the browser's zone.
|
|
56
|
+
*
|
|
57
|
+
* Display only. A `Date` stays the instant it is, and so does a picker's
|
|
58
|
+
* `value`. `wrDate`, `wrFormatDate` and `wr-date-stamp` print an instant on
|
|
59
|
+
* this zone's wall clock; `wr-date-picker` in `time` and `datetime` mode shows
|
|
60
|
+
* and reads its field and panel on it; the calendar marks this zone's today.
|
|
61
|
+
* A date-only value is a calendar day and does not shift: `mode="date"` and a
|
|
62
|
+
* `'2026-11-12'` string are the 12th in every zone.
|
|
63
|
+
*
|
|
64
|
+
* A value no engine knows falls back to the browser's zone and warns once in
|
|
65
|
+
* dev mode.
|
|
66
|
+
*/
|
|
67
|
+
readonly timeZone?: string | (() => string | null | undefined);
|
|
49
68
|
}
|
|
50
69
|
/** Whether `value` is one of the shared named format keys. */
|
|
51
|
-
declare function
|
|
70
|
+
declare function wrIsNamedFormat(value: string): value is WrDateFormat;
|
|
52
71
|
/**
|
|
53
72
|
* Abstraction over a date object so the calendar, date picker and time picker
|
|
54
73
|
* can work with `Date` or any other library a consumer prefers — without
|
|
55
74
|
* changing component code.
|
|
56
75
|
*
|
|
57
76
|
* Injected with nothing provided it is {@link WrNativeDateAdapter} (native
|
|
58
|
-
* `Date`, `Intl.DateTimeFormat`, the locale from {@link
|
|
77
|
+
* `Date`, `Intl.DateTimeFormat`, the locale from {@link wrDateLocale}), so the
|
|
59
78
|
* date components need no provider. For another library, subclass this,
|
|
60
79
|
* decorate the subclass with `@Service()` and register it via
|
|
61
80
|
* `provideWr(withDates({ adapter: MyAdapter }))`. An undecorated subclass still
|
|
@@ -135,6 +154,26 @@ export declare abstract class WrDateAdapter<TDate = Date> {
|
|
|
135
154
|
* exactly as it was.
|
|
136
155
|
*/
|
|
137
156
|
abstract parse(value: string, formatKeyOrString: WrDateFormat | (string & {})): TDate | null;
|
|
157
|
+
/**
|
|
158
|
+
* This adapter for instants: every accessor, `createDate`, the math, `format`
|
|
159
|
+
* and `parse` read a date on the wall clock of the display time zone
|
|
160
|
+
* (`withDates({ timeZone })`) instead of the browser's. The adapter itself
|
|
161
|
+
* keeps reading the browser's zone, because a calendar day has no zone: the
|
|
162
|
+
* 12th picked in a date-only field is the 12th wherever it is shown.
|
|
163
|
+
*
|
|
164
|
+
* `wrDate`, `wr-date-stamp` and the pickers' modes with a time ask for it.
|
|
165
|
+
* The base class returns itself, so an adapter that does not override this
|
|
166
|
+
* shows every date in the browser's zone.
|
|
167
|
+
*/
|
|
168
|
+
zoned(): WrDateAdapter<TDate>;
|
|
169
|
+
/**
|
|
170
|
+
* What `format` writes in besides its arguments, as one string: the locale,
|
|
171
|
+
* and the time zone on the {@link zoned} adapter. Equal keys mean equal
|
|
172
|
+
* output, so a caller that keeps a formatted string compares keys instead of
|
|
173
|
+
* formatting again. The native adapter reads its signals here: called in a
|
|
174
|
+
* template, a `computed` or an `effect`, it re-runs them when either moves.
|
|
175
|
+
*/
|
|
176
|
+
displayKey(): string;
|
|
138
177
|
/** `0` Sunday, `1` Monday — locale-dependent. */
|
|
139
178
|
abstract getFirstDayOfWeek(): number;
|
|
140
179
|
/** Names ordered from `getFirstDayOfWeek()` onwards. Length 7. */
|
|
@@ -152,7 +191,38 @@ export declare abstract class WrDateAdapter<TDate = Date> {
|
|
|
152
191
|
* {@link WrDateAdapter} over its own date library instead.
|
|
153
192
|
*/
|
|
154
193
|
export declare class WrNativeDateAdapter extends WrDateAdapter<Date> {
|
|
155
|
-
private readonly
|
|
194
|
+
private readonly localeSource;
|
|
195
|
+
private cache;
|
|
196
|
+
/**
|
|
197
|
+
* What is kept for the current locale, and the locale with it. A signal read,
|
|
198
|
+
* so what formats in a reactive context follows a language switch; the switch
|
|
199
|
+
* drops everything kept for the locale before it.
|
|
200
|
+
*/
|
|
201
|
+
private caches;
|
|
202
|
+
private get locale();
|
|
203
|
+
private readonly zoneSource;
|
|
204
|
+
private readonly injector;
|
|
205
|
+
/** Whether this instance is the one {@link zoned} hands out. */
|
|
206
|
+
private zonal;
|
|
207
|
+
private zonedSelf;
|
|
208
|
+
/**
|
|
209
|
+
* A second instance of the same class, so an app's subclass keeps its
|
|
210
|
+
* overrides. With no `timeZone` option at all it is this instance.
|
|
211
|
+
*/
|
|
212
|
+
zoned(): WrDateAdapter<Date>;
|
|
213
|
+
displayKey(): string;
|
|
214
|
+
private zone;
|
|
215
|
+
private wallZone;
|
|
216
|
+
private readonly walls;
|
|
217
|
+
/**
|
|
218
|
+
* The date on the display zone's wall clock, as a `Date` read with the UTC
|
|
219
|
+
* getters, or `null` on the adapter that reads the browser's zone. Reading a
|
|
220
|
+
* named zone costs an `Intl` call and a month grid asks for the same day many
|
|
221
|
+
* times over, so those are kept.
|
|
222
|
+
*/
|
|
223
|
+
private wall;
|
|
224
|
+
/** The instant a wall clock from {@link wall} names. */
|
|
225
|
+
private instant;
|
|
156
226
|
today(): Date;
|
|
157
227
|
clone(date: Date): Date;
|
|
158
228
|
createDate(year: number, month: number, day: number): Date;
|
|
@@ -197,11 +267,8 @@ export declare class WrNativeDateAdapter extends WrDateAdapter<Date> {
|
|
|
197
267
|
* Constructing one is the expensive part of `format()`, and this adapter is
|
|
198
268
|
* called per CELL: `wr-event-calendar` builds an `aria-label` for every time
|
|
199
269
|
* slot on every day, so a week view asked for hundreds of identical
|
|
200
|
-
* formatters.
|
|
201
|
-
* adapter, so the cache needs no invalidation — that is the whole reason it
|
|
202
|
-
* can be this simple.
|
|
270
|
+
* formatters. They are kept per locale, in {@link caches}.
|
|
203
271
|
*/
|
|
204
|
-
private readonly formatters;
|
|
205
272
|
/**
|
|
206
273
|
* Every `Intl` call this adapter makes pins `calendar: 'gregory'`, and that is a
|
|
207
274
|
* correctness fix rather than a preference.
|
|
@@ -216,6 +283,7 @@ export declare class WrNativeDateAdapter extends WrDateAdapter<Date> {
|
|
|
216
283
|
* describe the same one.
|
|
217
284
|
*/
|
|
218
285
|
private intlOptions;
|
|
286
|
+
/** `utc` is the formatter a wall clock from {@link wall} is printed with. */
|
|
219
287
|
private intl;
|
|
220
288
|
getDayOfWeekNames(style: 'narrow' | 'short' | 'long'): readonly string[];
|
|
221
289
|
/**
|
|
@@ -224,10 +292,8 @@ export declare class WrNativeDateAdapter extends WrDateAdapter<Date> {
|
|
|
224
292
|
* the token formatter, and this method deliberately keeps the heading one.
|
|
225
293
|
*/
|
|
226
294
|
getMonthNames(style: 'narrow' | 'short' | 'long'): readonly string[];
|
|
227
|
-
private numeralsCache;
|
|
228
295
|
/** The locale's own ten digits, cached — empty when its system is algorithmic. */
|
|
229
296
|
private localeNumerals;
|
|
230
|
-
private dayPeriodCache;
|
|
231
297
|
/**
|
|
232
298
|
* `[am, pm]` as the LOCALE writes them — `PM`, `م`, `午後`.
|
|
233
299
|
*
|
|
@@ -239,7 +305,6 @@ export declare class WrNativeDateAdapter extends WrDateAdapter<Date> {
|
|
|
239
305
|
* there and passes a 24-hour pattern here.
|
|
240
306
|
*/
|
|
241
307
|
private dayPeriods;
|
|
242
|
-
private readonly monthNameCache;
|
|
243
308
|
/**
|
|
244
309
|
* `context: 'format'` asks `Intl` for the month name as it appears BESIDE A DAY, which
|
|
245
310
|
* is where a case language stops using the nominative: ru writes `15 марта`, not
|
|
@@ -277,7 +342,6 @@ export declare class WrNativeDateAdapter extends WrDateAdapter<Date> {
|
|
|
277
342
|
private namedMonthNames;
|
|
278
343
|
/** `[am, pm]` as THIS formatter writes them — `ص` / `م` in Arabic, not AM / PM. */
|
|
279
344
|
private dayPeriodNames;
|
|
280
|
-
private readonly namedParsers;
|
|
281
345
|
private parseNamed;
|
|
282
346
|
/**
|
|
283
347
|
* Assemble whatever was read into a `Date`, or refuse.
|
|
@@ -298,6 +362,14 @@ export declare class WrNativeDateAdapter extends WrDateAdapter<Date> {
|
|
|
298
362
|
* Use of this source code is governed by an MIT-style license that can be
|
|
299
363
|
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
300
364
|
*/
|
|
365
|
+
/**
|
|
366
|
+
* Whether a value names a calendar day (`2026-01-01`, `2026-01`, `2026`) rather
|
|
367
|
+
* than an instant. Such a day is the same day in every time zone, so `wrDate`
|
|
368
|
+
* does not move it to the display zone.
|
|
369
|
+
*
|
|
370
|
+
* @internal
|
|
371
|
+
*/
|
|
372
|
+
export declare function wrIsDateOnly(value: unknown): boolean;
|
|
301
373
|
/**
|
|
302
374
|
* A string or a timestamp as a `Date`, with one exception to `new Date()`: a
|
|
303
375
|
* date-only ISO string names a calendar day, so it is read as that day's LOCAL
|
|
@@ -316,15 +388,80 @@ export declare class WrNativeDateAdapter extends WrDateAdapter<Date> {
|
|
|
316
388
|
*
|
|
317
389
|
* @internal
|
|
318
390
|
*/
|
|
319
|
-
export declare function
|
|
391
|
+
export declare function wrToLocalDate(value: string | number): Date;
|
|
320
392
|
/**
|
|
321
|
-
*
|
|
322
|
-
* the locale it formats in, as a feature of `provideWr()`. Optional: with no
|
|
323
|
-
* call at all they run on {@link WrNativeDateAdapter} in Angular's `LOCALE_ID`.
|
|
393
|
+
* @license
|
|
324
394
|
*
|
|
325
|
-
*
|
|
326
|
-
*
|
|
327
|
-
|
|
395
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
396
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
397
|
+
*/
|
|
398
|
+
/**
|
|
399
|
+
* What a backend sends for a date, as a `Date`, or `null` when it holds none.
|
|
400
|
+
* Never an Invalid Date, so the result needs one check rather than two.
|
|
401
|
+
*
|
|
402
|
+
* - A `Date` comes back as it is, the same object; an Invalid Date gives `null`.
|
|
403
|
+
* - A number is epoch milliseconds; `NaN`, an infinity and a number outside the
|
|
404
|
+
* range of `Date` give `null`.
|
|
405
|
+
* - `2026-03-01 14:30:00`, a space where ISO 8601 has a `T`, is rewritten to the
|
|
406
|
+
* ISO form first. Chrome reads the space form and Safari gives an Invalid Date
|
|
407
|
+
* for it. Seconds, a fraction and a zone are optional; the fraction is cut to
|
|
408
|
+
* milliseconds and a zone of hours alone (`+05`, as PostgreSQL prints it) is
|
|
409
|
+
* completed. Without a zone it is local time, as the `T` form is.
|
|
410
|
+
* - A date-only string (`2026-03-01`, `2026-03`, `2026`) is that day's LOCAL
|
|
411
|
+
* midnight, as `wrDate` and `WrValidators.minDate` read it. `new Date()` would
|
|
412
|
+
* make it UTC midnight, the evening before for a reader west of Greenwich.
|
|
413
|
+
* - Any other string is left to `new Date()`, so an ISO string with `Z` or an
|
|
414
|
+
* offset is the instant it names.
|
|
415
|
+
* - `null`, `undefined`, an empty or blank string and a string the engine
|
|
416
|
+
* refuses give `null`.
|
|
417
|
+
*
|
|
418
|
+
* Surrounding whitespace is ignored. A plain function: no adapter and no
|
|
419
|
+
* injection context, so it runs in a mapper, a resolver or a store.
|
|
420
|
+
*
|
|
421
|
+
* @example
|
|
422
|
+
* ```ts
|
|
423
|
+
* wrParseDate('2026-03-01 14:30:00'); // 1 March 2026, 14:30 local
|
|
424
|
+
* wrParseDate('2026-03-01'); // 1 March 2026, 00:00 local
|
|
425
|
+
* wrParseDate('2026-03-01T09:30:00+05:00'); // that instant
|
|
426
|
+
* wrParseDate(1772343000000); // epoch milliseconds
|
|
427
|
+
* wrParseDate('n/a'); // null
|
|
428
|
+
* ```
|
|
429
|
+
*
|
|
430
|
+
* @see https://ngwr.dev/reference/pipes/wr-date
|
|
431
|
+
*/
|
|
432
|
+
export declare function wrParseDate(value: Date | string | number | null | undefined): Date | null;
|
|
433
|
+
/**
|
|
434
|
+
* The locale dates are written in, as a signal. Highest first:
|
|
435
|
+
*
|
|
436
|
+
* 1. `withDates({ locale })`: a pin, which a language switch does not move.
|
|
437
|
+
* 2. `WrI18n.locale()`, when the app calls `provideWrI18n()`: the interface
|
|
438
|
+
* language, which `WrI18n.use()` changes at runtime.
|
|
439
|
+
* 3. `LOCALE_ID`.
|
|
440
|
+
*
|
|
441
|
+
* A catalog name that is not a BCP 47 tag (`en_US`) cannot format a date, so
|
|
442
|
+
* the signal holds `LOCALE_ID` while the interface language is one.
|
|
443
|
+
*
|
|
444
|
+
* Must be called in an injection context. The native adapter formats in it; an
|
|
445
|
+
* adapter of your own reads it to follow the same rule.
|
|
446
|
+
*
|
|
447
|
+
* @example
|
|
448
|
+
* ```ts
|
|
449
|
+
* private readonly locale = wrDateLocale();
|
|
450
|
+
* protected readonly weekday = computed(() =>
|
|
451
|
+
* new Intl.DateTimeFormat(this.locale(), { weekday: 'long' }).format(this.date()),
|
|
452
|
+
* );
|
|
453
|
+
* ```
|
|
454
|
+
*/
|
|
455
|
+
export declare function wrDateLocale(): Signal<string>;
|
|
456
|
+
/**
|
|
457
|
+
* Replace the date adapter the calendar / date picker / time picker use, pin
|
|
458
|
+
* the locale it formats in, or set the time zone dates are shown in, as a
|
|
459
|
+
* feature of `provideWr()`. Optional: with no call at all they run on
|
|
460
|
+
* {@link WrNativeDateAdapter} in Angular's `LOCALE_ID` and the browser's zone.
|
|
461
|
+
*
|
|
462
|
+
* Omit `locale` and dates follow the interface language of `provideWrI18n()`,
|
|
463
|
+
* `WrI18n.use()` included, and Angular's `LOCALE_ID` in an app without it.
|
|
464
|
+
* Pass one only to pin dates to something else, see {@link wrDateLocale}.
|
|
328
465
|
*
|
|
329
466
|
* The one feature that works in a route's `providers` as well: that subtree
|
|
330
467
|
* gets an adapter of its own.
|
|
@@ -338,15 +475,16 @@ export declare function toLocalDate(value: string | number): Date;
|
|
|
338
475
|
* providers: [
|
|
339
476
|
* provideWr(withDates({ locale: 'ru-RU' })), // pin the dates
|
|
340
477
|
* // provideWr(withDates({ adapter: MyDateAdapter, locale: 'fr' })), // your own subclass
|
|
478
|
+
* // provideWr(withDates({ timeZone: () => inject(AppConfig).timeZone() })), // a runtime config
|
|
341
479
|
* ],
|
|
342
480
|
* });
|
|
343
481
|
* ```
|
|
344
482
|
*/
|
|
345
483
|
export declare function withDates(options?: WrDatesOptions): WrFeature<'dates'>;
|
|
346
484
|
/**
|
|
347
|
-
* BCP 47 locale tag
|
|
348
|
-
*
|
|
349
|
-
* `
|
|
485
|
+
* The BCP 47 locale tag `withDates({ locale })` pinned, and Angular's
|
|
486
|
+
* `LOCALE_ID` when nothing was. An adapter reads {@link wrDateLocale} instead,
|
|
487
|
+
* which puts the interface language of `provideWrI18n()` between the two.
|
|
350
488
|
*
|
|
351
489
|
* **It used to default to `navigator.language`, and that was wrong in the
|
|
352
490
|
* documented case.** The provider's own first example was the no-argument call,
|
|
@@ -360,10 +498,10 @@ export declare function withDates(options?: WrDatesOptions): WrFeature<'dates'>;
|
|
|
360
498
|
* to match. An app that genuinely wants the browser's tag can still say so:
|
|
361
499
|
* `provideWr(withDates({ locale: navigator.language }))`.
|
|
362
500
|
*
|
|
363
|
-
* The token is a plain string, resolved once
|
|
364
|
-
*
|
|
365
|
-
*
|
|
366
|
-
* the
|
|
501
|
+
* The token is a plain string, resolved once: the *pinned* date locale, not a
|
|
502
|
+
* live one. `WrI18n.use()` cannot move it, and moves dates only when nothing
|
|
503
|
+
* was pinned. Provide it through `withDates({ locale })`: a bare provider of
|
|
504
|
+
* this token is read as the fallback, not as a pin.
|
|
367
505
|
*
|
|
368
506
|
* **How far it reaches is up to the adapter.** The native one threads it through
|
|
369
507
|
* everything. A subclass over a library that resolves its patterns against a
|
|
@@ -372,4 +510,18 @@ export declare function withDates(options?: WrDatesOptions): WrFeature<'dates'>;
|
|
|
372
510
|
* through `Intl`, localize and the field's own text does not.
|
|
373
511
|
*/
|
|
374
512
|
export declare const WR_DATE_LOCALE: InjectionToken<string>;
|
|
375
|
-
|
|
513
|
+
/**
|
|
514
|
+
* The display time zone the {@link WrDateAdapter} implementations read, as a
|
|
515
|
+
* function: an IANA name (`'Asia/Almaty'`) or an offset (`'+05:00'`), and
|
|
516
|
+
* `null` or `undefined` for the browser's own zone. `null` when
|
|
517
|
+
* `withDates({ timeZone })` was not called, which is the browser's zone too.
|
|
518
|
+
*
|
|
519
|
+
* A function rather than a string because the zone often arrives after
|
|
520
|
+
* bootstrap, from a runtime config. The native adapter calls it on every read,
|
|
521
|
+
* so what it formats follows the signals the function reads.
|
|
522
|
+
*
|
|
523
|
+
* Set it with the `timeZone` option of `provideWr(withDates(...))`. An adapter
|
|
524
|
+
* of your own injects it to honour the same option.
|
|
525
|
+
*/
|
|
526
|
+
export declare const WR_DATE_TIME_ZONE: InjectionToken<(() => string | null | undefined) | null>;
|
|
527
|
+
export { type WrDateFormat, type WrDatesOptions, wrIsNamedFormat };
|
|
@@ -57,6 +57,16 @@ export declare class WrDialogHarness extends ContentContainerComponentHarness {
|
|
|
57
57
|
sendEscape(): Promise<void>;
|
|
58
58
|
/** Whether this is a `WrDialog.confirm()` dialog, the one `confirm()` and `cancel()` answer. */
|
|
59
59
|
isConfirm(): Promise<boolean>;
|
|
60
|
+
/** Whether this is a `WrDialog.alert()` dialog, the one `ok()` dismisses. */
|
|
61
|
+
isAlert(): Promise<boolean>;
|
|
62
|
+
/**
|
|
63
|
+
* The `intent` a `confirm()` or an `alert()` dialog shows as an icon, or
|
|
64
|
+
* `null` when it has none. Read off the icon's modifier class, which is all
|
|
65
|
+
* the intent leaves in the DOM: the icon is decorative.
|
|
66
|
+
*/
|
|
67
|
+
getIntent(): Promise<'info' | 'success' | 'warning' | 'danger' | null>;
|
|
68
|
+
/** Press the button of a `WrDialog.alert()` dialog. Throws on any other dialog. */
|
|
69
|
+
ok(): Promise<void>;
|
|
60
70
|
/** Press the confirm button of a `WrDialog.confirm()` dialog. Throws on any other dialog. */
|
|
61
71
|
confirm(): Promise<void>;
|
|
62
72
|
/** Press the cancel button of a `WrDialog.confirm()` dialog. Throws on any other dialog. */
|
package/types/ngwr-dialog.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { ComponentRef, ElementRef, InjectionToken, Injector, Signal } from "@angular/core";
|
|
3
|
-
import { WrClassInput } from "ngwr/utils";
|
|
3
|
+
import { WrClassInput, WrFeature } from "ngwr/utils";
|
|
4
4
|
import { WrColor } from "ngwr/theme";
|
|
5
5
|
import { ComponentType } from "@angular/cdk/portal";
|
|
6
6
|
import { ConfigurableFocusTrap } from "@angular/cdk/a11y";
|
|
@@ -139,7 +139,31 @@ interface WrDialogOptions<D = unknown> {
|
|
|
139
139
|
* splitting happens here.
|
|
140
140
|
*/
|
|
141
141
|
readonly panelClass?: WrClassInput;
|
|
142
|
+
/**
|
|
143
|
+
* When `true`, the browser tab reads the dialog's title in front of the page
|
|
144
|
+
* title while the dialog is open, and the page title comes back when it
|
|
145
|
+
* closes. The text is read from the `[wrDialogTitle]` element, so it is
|
|
146
|
+
* already translated; a dialog without one leaves the tab alone. With dialogs
|
|
147
|
+
* stacked, the top one names the tab. It is written through `WrMeta` from
|
|
148
|
+
* `ngwr/meta`, as a `titlePrefix` layer, so `titleTemplate` and
|
|
149
|
+
* `titleSeparator` from `withMeta()` apply.
|
|
150
|
+
* @default false, or what `withDialog()` sets
|
|
151
|
+
*/
|
|
152
|
+
readonly tabTitle?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Where the global toast stack paints while this dialog is open. `'below'`
|
|
155
|
+
* keeps it under the dialog and its backdrop, so a toast neither covers the
|
|
156
|
+
* dialog nor can be reached until the dialog closes. Toasts in a
|
|
157
|
+
* `<wr-toast-outlet>` are page content and are under every dialog anyway.
|
|
158
|
+
* With dialogs stacked, the top one decides.
|
|
159
|
+
* @default 'above'
|
|
160
|
+
*/
|
|
161
|
+
readonly toasts?: 'above' | 'below';
|
|
142
162
|
}
|
|
163
|
+
/** The `WrDialogOptions` that `confirm()` and `alert()` pass through to the dialog. */
|
|
164
|
+
type WrDialogMessageOptions = Pick<WrDialogOptions, 'width' | 'maxWidth' | 'panelClass' | 'closeOnBackdropClick' | 'closeOnEscape' | 'closeOnNavigation' | 'tabTitle' | 'toasts'>;
|
|
165
|
+
/** The meaning a `confirm()` or an `alert()` dialog shows as an icon before its title. */
|
|
166
|
+
type WrDialogIntent = 'info' | 'success' | 'warning' | 'danger';
|
|
143
167
|
/**
|
|
144
168
|
* Options accepted by `WrDialog.confirm()`.
|
|
145
169
|
*
|
|
@@ -147,7 +171,7 @@ interface WrDialogOptions<D = unknown> {
|
|
|
147
171
|
* and a `[wrDialogFooter]` with two `wr-btn`. Anything richer than a title and
|
|
148
172
|
* a line of text is a component of your own through `open()`.
|
|
149
173
|
*/
|
|
150
|
-
interface WrDialogConfirmOptions extends
|
|
174
|
+
interface WrDialogConfirmOptions extends WrDialogMessageOptions {
|
|
151
175
|
/** The question. Names the dialog through `aria-labelledby`. */
|
|
152
176
|
readonly title: string;
|
|
153
177
|
/**
|
|
@@ -163,10 +187,37 @@ interface WrDialogConfirmOptions extends Pick<WrDialogOptions, 'width' | 'maxWid
|
|
|
163
187
|
* Color of the confirm button, the way `confirmColor` on `[wrPopconfirm]`
|
|
164
188
|
* reads. `danger` also moves the initial focus to the cancel button, so a
|
|
165
189
|
* stray Enter does not delete; every other color focuses the confirm button.
|
|
166
|
-
* @default 'primary'
|
|
190
|
+
* @default 'primary', or the `intent` when that is `danger` or `warning`
|
|
167
191
|
*/
|
|
168
192
|
readonly confirmColor?: WrColor;
|
|
193
|
+
/**
|
|
194
|
+
* An icon before the title, in the intent's color. It is decorative: the
|
|
195
|
+
* title and the message say what happened. `danger` and `warning` also color
|
|
196
|
+
* the confirm button unless `confirmColor` is set.
|
|
197
|
+
*/
|
|
198
|
+
readonly intent?: WrDialogIntent;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Options accepted by `WrDialog.alert()`.
|
|
202
|
+
*
|
|
203
|
+
* The layout is `confirm()`'s with one `wr-btn`: a message the user reads and
|
|
204
|
+
* acknowledges.
|
|
205
|
+
*/
|
|
206
|
+
interface WrDialogAlertOptions extends WrDialogMessageOptions {
|
|
207
|
+
/** The message's headline. Names the dialog through `aria-labelledby`. */
|
|
208
|
+
readonly title: string;
|
|
209
|
+
/**
|
|
210
|
+
* Plain text under the title, rendered as text and never as HTML. Describes
|
|
211
|
+
* the dialog through `aria-describedby`.
|
|
212
|
+
*/
|
|
213
|
+
readonly message?: string;
|
|
214
|
+
/** Button text. Falls back to the `common.ok` catalog key. */
|
|
215
|
+
readonly okLabel?: string;
|
|
216
|
+
/** An icon before the title, in the intent's color. It is decorative. */
|
|
217
|
+
readonly intent?: WrDialogIntent;
|
|
169
218
|
}
|
|
219
|
+
/** App-wide dialog defaults, passed to `provideWr(withDialog(...))`. */
|
|
220
|
+
type WrDialogDefaults = Pick<WrDialogOptions, 'tabTitle'>;
|
|
170
221
|
/**
|
|
171
222
|
* Opens dialog components in an isolated NGWR overlay.
|
|
172
223
|
*
|
|
@@ -198,6 +249,8 @@ export declare class WrDialog {
|
|
|
198
249
|
private readonly dir;
|
|
199
250
|
private readonly location;
|
|
200
251
|
private readonly destroyRef;
|
|
252
|
+
private readonly defaults;
|
|
253
|
+
private readonly order;
|
|
201
254
|
open<C, R = unknown, D = unknown>(component: ComponentType<C>, options?: WrDialogOptions<D>): WrDialogRef<C, R>;
|
|
202
255
|
/**
|
|
203
256
|
* Ask a yes-or-no question and get the answer: `true` only when the user
|
|
@@ -213,6 +266,10 @@ export declare class WrDialog {
|
|
|
213
266
|
* is on the confirm button. Focus returns to the opener on close, as it does
|
|
214
267
|
* for `open()`.
|
|
215
268
|
*
|
|
269
|
+
* `intent` puts an icon before the title, and `danger` or `warning` color the
|
|
270
|
+
* confirm button unless `confirmColor` is set, so a `danger` question also
|
|
271
|
+
* starts on the cancel button.
|
|
272
|
+
*
|
|
216
273
|
* On the server nothing can answer, so it resolves `false` at once and opens
|
|
217
274
|
* nothing.
|
|
218
275
|
*
|
|
@@ -222,12 +279,37 @@ export declare class WrDialog {
|
|
|
222
279
|
* title: 'Delete this item?',
|
|
223
280
|
* message: 'This cannot be undone.',
|
|
224
281
|
* confirmLabel: 'Delete',
|
|
225
|
-
*
|
|
282
|
+
* intent: 'danger',
|
|
226
283
|
* });
|
|
227
284
|
* if (ok) remove();
|
|
228
285
|
* ```
|
|
229
286
|
*/
|
|
230
287
|
confirm(options: WrDialogConfirmOptions): Promise<boolean>;
|
|
288
|
+
/**
|
|
289
|
+
* Show a message with one button and wait until the user has dismissed it.
|
|
290
|
+
* The button, Escape, the backdrop, a navigation and the application being
|
|
291
|
+
* torn down all resolve the promise, which settles exactly once with no
|
|
292
|
+
* value and never rejects.
|
|
293
|
+
*
|
|
294
|
+
* The dialog is `confirm()`'s with one button: `role="alertdialog"` for every
|
|
295
|
+
* intent, named by `title` and described by `message`, with no corner
|
|
296
|
+
* dismiss. The button takes the initial focus and its label falls back to the
|
|
297
|
+
* `common.ok` catalog key. `intent` puts an icon before the title.
|
|
298
|
+
*
|
|
299
|
+
* On the server it resolves at once and opens nothing.
|
|
300
|
+
*
|
|
301
|
+
* @example
|
|
302
|
+
* ```ts
|
|
303
|
+
* await dialog.alert({
|
|
304
|
+
* title: 'Range too large',
|
|
305
|
+
* message: 'Pick at most 31 days to export.',
|
|
306
|
+
* okLabel: 'Close',
|
|
307
|
+
* intent: 'danger',
|
|
308
|
+
* });
|
|
309
|
+
* ```
|
|
310
|
+
*/
|
|
311
|
+
alert(options: WrDialogAlertOptions): Promise<void>;
|
|
312
|
+
private ask;
|
|
231
313
|
/**
|
|
232
314
|
* Tie the dialog's lifetime to the URL it was opened on.
|
|
233
315
|
*
|
|
@@ -244,6 +326,20 @@ export declare class WrDialog {
|
|
|
244
326
|
* pending forever.
|
|
245
327
|
*/
|
|
246
328
|
private watchNavigation;
|
|
329
|
+
/**
|
|
330
|
+
* Put the dialog's title in front of the page title for as long as the
|
|
331
|
+
* overlay is attached, and hand back where to write that title.
|
|
332
|
+
*
|
|
333
|
+
* A `titlePrefix` layer rather than a composed `title`: the page title stays
|
|
334
|
+
* whatever the layers under it resolve to, so a page that retitles itself
|
|
335
|
+
* under an open dialog is followed, and closing restores nothing, it only
|
|
336
|
+
* removes the layer. Stacked dialogs each hold a layer and the top one wins.
|
|
337
|
+
*
|
|
338
|
+
* `WrMeta` is resolved here and not injected with the service: constructing
|
|
339
|
+
* it applies its defaults to `<head>`, which an app that never asked for
|
|
340
|
+
* `tabTitle` must not pay for.
|
|
341
|
+
*/
|
|
342
|
+
private nameTab;
|
|
247
343
|
/**
|
|
248
344
|
* The dismiss button's accessible name.
|
|
249
345
|
*
|
|
@@ -300,6 +396,25 @@ export declare const WR_DIALOG_DATA: InjectionToken<unknown>;
|
|
|
300
396
|
* ```
|
|
301
397
|
*/
|
|
302
398
|
export declare const WR_DIALOG_REF: InjectionToken<WrDialogRef<unknown, unknown>>;
|
|
399
|
+
/**
|
|
400
|
+
* App-wide dialog defaults, as a feature of `provideWr()`: today `tabTitle`,
|
|
401
|
+
* so every dialog names the browser tab while it is open. The same option on
|
|
402
|
+
* `open()` or `confirm()` still wins.
|
|
403
|
+
*
|
|
404
|
+
* Bootstrap only: `WrDialog` is root-provided and reads it once, from the root
|
|
405
|
+
* injector, so in a route's `providers` it changes nothing.
|
|
406
|
+
*
|
|
407
|
+
* @example
|
|
408
|
+
* ```ts
|
|
409
|
+
* import { provideWr } from 'ngwr';
|
|
410
|
+
* import { withDialog } from 'ngwr/dialog';
|
|
411
|
+
*
|
|
412
|
+
* bootstrapApplication(App, {
|
|
413
|
+
* providers: [provideWr(withDialog({ tabTitle: true }))],
|
|
414
|
+
* });
|
|
415
|
+
* ```
|
|
416
|
+
*/
|
|
417
|
+
export declare function withDialog(defaults: WrDialogDefaults): WrFeature<'dialog'>;
|
|
303
418
|
/**
|
|
304
419
|
* Styles a dialog title row. Use on a heading inside an opened dialog.
|
|
305
420
|
* Auto-assigns an `id` so the dialog panel can reference it via
|
|
@@ -413,4 +528,4 @@ export declare class WrDialogClose<R = unknown> {
|
|
|
413
528
|
};
|
|
414
529
|
}, {}, never, never, true, never>;
|
|
415
530
|
}
|
|
416
|
-
export type { WrDialogConfirmOptions, WrDialogOptions, WrDialogRole };
|
|
531
|
+
export type { WrDialogAlertOptions, WrDialogConfirmOptions, WrDialogDefaults, WrDialogIntent, WrDialogMessageOptions, WrDialogOptions, WrDialogRole };
|
|
@@ -97,26 +97,51 @@ export declare class WrClickOutside {
|
|
|
97
97
|
* `<textarea>` + `document.execCommand('copy')` fallback for older browsers
|
|
98
98
|
* and non-secure contexts.
|
|
99
99
|
*
|
|
100
|
+
* After a successful copy the host carries `wr-copy-to-clipboard--copied` for
|
|
101
|
+
* a moment, a tooltip over it reads "Copied" and the same text is announced
|
|
102
|
+
* politely. `wrCopyToClipboardToast` shows a toast instead of the tooltip and
|
|
103
|
+
* the announcement. A refused write changes nothing and emits `copyFailed`.
|
|
104
|
+
*
|
|
100
105
|
* @example
|
|
101
106
|
* ```html
|
|
102
|
-
* <button [wrCopyToClipboard]="value"
|
|
107
|
+
* <button [wrCopyToClipboard]="value">Copy</button>
|
|
108
|
+
* <button [wrCopyToClipboard]="rows" wrCopyToClipboardToast copiedLabel="Copied to clipboard">Copy all</button>
|
|
103
109
|
* ```
|
|
104
110
|
*/
|
|
105
111
|
export declare class WrCopyToClipboard {
|
|
112
|
+
constructor();
|
|
106
113
|
/** The text to copy. */
|
|
107
114
|
readonly wrCopyToClipboard: import("@angular/core").InputSignal<string>;
|
|
115
|
+
/**
|
|
116
|
+
* Confirm a copy with a toast instead of the tooltip and the announcement.
|
|
117
|
+
*
|
|
118
|
+
* @default false
|
|
119
|
+
*/
|
|
120
|
+
readonly wrCopyToClipboardToast: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
121
|
+
/** Text of the tooltip, the announcement and the toast. Falls back to `copyToClipboard.copied`, then `'Copied'`. */
|
|
122
|
+
readonly copiedLabel: import("@angular/core").InputSignal<string | null>;
|
|
108
123
|
/** Emitted with the copied text once the write succeeds. */
|
|
109
124
|
readonly copied: import("@angular/core").OutputEmitterRef<string>;
|
|
110
125
|
/** Emitted if the copy fails (denied permission, no clipboard, …). */
|
|
111
126
|
readonly copyFailed: import("@angular/core").OutputEmitterRef<unknown>;
|
|
127
|
+
/** True for a moment after a successful copy. */
|
|
128
|
+
protected readonly justCopied: import("@angular/core").WritableSignal<boolean>;
|
|
129
|
+
private readonly resolvedCopiedLabel;
|
|
112
130
|
private readonly focusMonitor;
|
|
113
131
|
private readonly doc;
|
|
132
|
+
private readonly injector;
|
|
133
|
+
private readonly tooltip;
|
|
134
|
+
private readonly hostPopover;
|
|
135
|
+
private destroyed;
|
|
136
|
+
private timer;
|
|
114
137
|
/**
|
|
115
138
|
* Copies the bound text, as a click does: `(copied)` or `(copyFailed)` fires
|
|
116
139
|
* either way. Resolves `true` once the text is on the clipboard and `false`
|
|
117
140
|
* when neither path could write it. It never rejects.
|
|
118
141
|
*/
|
|
119
142
|
copy(): Promise<boolean>;
|
|
143
|
+
private confirm;
|
|
144
|
+
private clearTimer;
|
|
120
145
|
/**
|
|
121
146
|
* Legacy clipboard write — hidden textarea + `execCommand('copy')`.
|
|
122
147
|
*
|
|
@@ -135,8 +160,58 @@ export declare class WrCopyToClipboard {
|
|
|
135
160
|
"required": true;
|
|
136
161
|
"isSignal": true;
|
|
137
162
|
};
|
|
163
|
+
"wrCopyToClipboardToast": {
|
|
164
|
+
"alias": "wrCopyToClipboardToast";
|
|
165
|
+
"required": false;
|
|
166
|
+
"isSignal": true;
|
|
167
|
+
};
|
|
168
|
+
"copiedLabel": {
|
|
169
|
+
"alias": "copiedLabel";
|
|
170
|
+
"required": false;
|
|
171
|
+
"isSignal": true;
|
|
172
|
+
};
|
|
138
173
|
}, {
|
|
139
174
|
"copied": "copied";
|
|
140
175
|
"copyFailed": "copyFailed";
|
|
141
176
|
}, never, never, true, never>;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Shrink a block whose text wraps to the width of its longest line.
|
|
180
|
+
*
|
|
181
|
+
* A wrapped block keeps the width it was offered, so a tinted pill with three
|
|
182
|
+
* lines of text carries an empty band of background beside them, and CSS has
|
|
183
|
+
* no way to take it back. The lines are measured and the host's inline `width`
|
|
184
|
+
* is set to the widest one, padding and border included as its `box-sizing`
|
|
185
|
+
* needs. Every line already fits that width, so the line breaks stay where
|
|
186
|
+
* they were. It is measured again when the text changes and when the parent is
|
|
187
|
+
* resized; a block on one line is left alone.
|
|
188
|
+
*
|
|
189
|
+
* The host needs a box that takes a width (block, inline-block, a flex or grid
|
|
190
|
+
* item) and holds text and inline content.
|
|
191
|
+
*
|
|
192
|
+
* @example
|
|
193
|
+
* ```html
|
|
194
|
+
* <wr-tag wrFitText>A label long enough to wrap onto a second line</wr-tag>
|
|
195
|
+
* <p [wrFitText]="fit()">…</p>
|
|
196
|
+
* ```
|
|
197
|
+
*/
|
|
198
|
+
export declare class WrFitText {
|
|
199
|
+
/** `false` switches the fitting off and removes the width it wrote. Bare `wrFitText` is on. */
|
|
200
|
+
readonly wrFitText: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
201
|
+
private readonly el;
|
|
202
|
+
private frame;
|
|
203
|
+
private started;
|
|
204
|
+
/** The width this directive wrote, so switching off removes that and nothing else. */
|
|
205
|
+
private written;
|
|
206
|
+
constructor();
|
|
207
|
+
private schedule;
|
|
208
|
+
private fit;
|
|
209
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrFitText, never>;
|
|
210
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WrFitText, "[wrFitText]", never, {
|
|
211
|
+
"wrFitText": {
|
|
212
|
+
"alias": "wrFitText";
|
|
213
|
+
"required": false;
|
|
214
|
+
"isSignal": true;
|
|
215
|
+
};
|
|
216
|
+
}, {}, never, never, true, never>;
|
|
142
217
|
}
|