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
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from "@angular/cdk/testing";
|
|
2
|
+
/** Narrows which `<wr-copy-value>` a harness query matches. */
|
|
3
|
+
interface WrCopyValueHarnessFilters extends BaseHarnessFilters {
|
|
4
|
+
/** Match the value shown — a string is an exact match, a RegExp is tested. An empty one matches neither. */
|
|
5
|
+
readonly value?: string | RegExp;
|
|
6
|
+
/** Match only empty (`true`) or only filled (`false`) ones. */
|
|
7
|
+
readonly empty?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Test harness for one `<wr-copy-value>` — a value and the button that copies it.
|
|
11
|
+
*
|
|
12
|
+
* It answers from what the component renders: the value's text node, the button's
|
|
13
|
+
* accessible name, the polite status region and the public `wr-copy-value--*`
|
|
14
|
+
* modifiers. Two things are absent on purpose. Whether a long value is TRUNCATED is
|
|
15
|
+
* a measured box, and jsdom has no layout, so the answer would be the same for a
|
|
16
|
+
* working component and a broken one; {@link getTitle} reads the full text the
|
|
17
|
+
* truncated value keeps instead. And what reached the CLIPBOARD is not the
|
|
18
|
+
* component's to report: stub `navigator.clipboard.writeText` in the spec and
|
|
19
|
+
* assert the call.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const loader = TestbedHarnessEnvironment.loader(fixture);
|
|
24
|
+
* const id = await loader.getHarness(WrCopyValueHarness.with({ value: 'ORD-1042' }));
|
|
25
|
+
*
|
|
26
|
+
* await id.copy();
|
|
27
|
+
* expect(await id.isCopied()).toBe(true);
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @see https://ngwr.dev/guides/testing
|
|
31
|
+
*/
|
|
32
|
+
export declare class WrCopyValueHarness extends ComponentHarness {
|
|
33
|
+
static hostSelector: string;
|
|
34
|
+
/** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
|
|
35
|
+
static with(options?: WrCopyValueHarnessFilters): HarnessPredicate<WrCopyValueHarness>;
|
|
36
|
+
private readonly text;
|
|
37
|
+
private readonly button;
|
|
38
|
+
/**
|
|
39
|
+
* The value shown, or `null` when it is empty.
|
|
40
|
+
*
|
|
41
|
+
* `null` rather than the placeholder: the dash is not the value, and a spec that
|
|
42
|
+
* compared against it would pass on a component showing a real `-`.
|
|
43
|
+
* {@link getEmptyText} reads the placeholder.
|
|
44
|
+
*/
|
|
45
|
+
getValue(): Promise<string | null>;
|
|
46
|
+
/**
|
|
47
|
+
* Whether the value is empty: no value and no button, the placeholder in their
|
|
48
|
+
* place. Read from what is rendered rather than from the `wr-copy-value--empty`
|
|
49
|
+
* modifier, which could be lost while the button is still withheld.
|
|
50
|
+
*/
|
|
51
|
+
isEmpty(): Promise<boolean>;
|
|
52
|
+
/** The placeholder an empty value shows (`emptyLabel`). Throws when there is a value. */
|
|
53
|
+
getEmptyText(): Promise<string>;
|
|
54
|
+
/**
|
|
55
|
+
* The full text a truncated value keeps in its `title`, or `null` under `wrap`,
|
|
56
|
+
* where nothing is cut and the attribute is not written.
|
|
57
|
+
*/
|
|
58
|
+
getTitle(): Promise<string | null>;
|
|
59
|
+
/** Whether the value wraps instead of truncating, from the `wr-copy-value--wrap` modifier. */
|
|
60
|
+
isWrapped(): Promise<boolean>;
|
|
61
|
+
/** The button's accessible name (`copyLabel`). Throws when the value is empty. */
|
|
62
|
+
getCopyLabel(): Promise<string | null>;
|
|
63
|
+
/**
|
|
64
|
+
* Click the copy button. Throws when the value is empty, since there is no button.
|
|
65
|
+
*
|
|
66
|
+
* The write itself is asynchronous and may be refused, so this resolving says a
|
|
67
|
+
* click happened, not that anything was copied: ask {@link isCopied} afterwards.
|
|
68
|
+
*/
|
|
69
|
+
copy(): Promise<void>;
|
|
70
|
+
/**
|
|
71
|
+
* Whether the component is showing its "copied" state, which lasts a moment after
|
|
72
|
+
* a successful write.
|
|
73
|
+
*
|
|
74
|
+
* Both halves, because they reach different people: the modifier flips the glyph
|
|
75
|
+
* to a tick, the status region is what a screen reader hears. One without the
|
|
76
|
+
* other is a copy that half the users are not told about.
|
|
77
|
+
*/
|
|
78
|
+
isCopied(): Promise<boolean>;
|
|
79
|
+
/** The text in the polite status region: `copiedLabel` after a copy, empty otherwise. */
|
|
80
|
+
getStatusText(): Promise<string>;
|
|
81
|
+
/** Move keyboard focus to the copy button. Throws when the value is empty. */
|
|
82
|
+
focus(): Promise<void>;
|
|
83
|
+
/** Whether the copy button holds focus. An empty value has nothing to focus. */
|
|
84
|
+
isFocused(): Promise<boolean>;
|
|
85
|
+
private requireButton;
|
|
86
|
+
}
|
|
87
|
+
export type { WrCopyValueHarnessFilters };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* A short value with a copy button beside it: an id, a serial number, an
|
|
4
|
+
* address, a name in a table cell.
|
|
5
|
+
*
|
|
6
|
+
* The value truncates on one line and keeps the whole text in its `title`;
|
|
7
|
+
* `wrap` lets it run over several lines instead. `null`, `undefined` and `''`
|
|
8
|
+
* are empty: the component shows `emptyLabel` and no button. `0` is a value.
|
|
9
|
+
*
|
|
10
|
+
* The write goes through `WrClipboard`, so it also works on a plain `http://`
|
|
11
|
+
* origin. After it succeeds the button shows a tick and the "Copied" text is
|
|
12
|
+
* announced politely; a refused write changes nothing and emits `copyFailed`.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```html
|
|
16
|
+
* <wr-copy-value [value]="order.id" />
|
|
17
|
+
* <wr-copy-value [value]="user.fullName" wrap (copied)="track($event)" />
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @see https://ngwr.dev/reference/components/copy-value
|
|
21
|
+
*/
|
|
22
|
+
export declare class WrCopyValue {
|
|
23
|
+
constructor();
|
|
24
|
+
/**
|
|
25
|
+
* The value shown and copied. `null`, `undefined` and `''` are empty.
|
|
26
|
+
*
|
|
27
|
+
* @default null
|
|
28
|
+
*/
|
|
29
|
+
readonly value: import("@angular/core").InputSignal<string | number | null | undefined>;
|
|
30
|
+
/**
|
|
31
|
+
* Let a long value wrap over several lines instead of truncating it.
|
|
32
|
+
*
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
readonly wrap: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
36
|
+
/** Accessible name and tooltip of the button. Falls back to `copyValue.copy`, then `'Copy'`. */
|
|
37
|
+
readonly copyLabel: import("@angular/core").InputSignal<string | null>;
|
|
38
|
+
/** Tooltip and announcement after a copy. Falls back to `copyValue.copied`, then `'Copied'`. */
|
|
39
|
+
readonly copiedLabel: import("@angular/core").InputSignal<string | null>;
|
|
40
|
+
/** What stands in for an empty value. Falls back to `copyValue.empty`, then `'-'`. */
|
|
41
|
+
readonly emptyLabel: import("@angular/core").InputSignal<string | null>;
|
|
42
|
+
/** Emitted with the text that reached the clipboard. */
|
|
43
|
+
readonly copied: import("@angular/core").OutputEmitterRef<string>;
|
|
44
|
+
/** Emitted when the browser refused the write. */
|
|
45
|
+
readonly copyFailed: import("@angular/core").OutputEmitterRef<void>;
|
|
46
|
+
protected readonly resolvedCopyLabel: import("@angular/core").Signal<string>;
|
|
47
|
+
protected readonly resolvedCopiedLabel: import("@angular/core").Signal<string>;
|
|
48
|
+
protected readonly resolvedEmptyLabel: import("@angular/core").Signal<string>;
|
|
49
|
+
protected readonly text: import("@angular/core").Signal<string>;
|
|
50
|
+
protected readonly empty: import("@angular/core").Signal<boolean>;
|
|
51
|
+
/** True for a moment after a successful copy. */
|
|
52
|
+
protected readonly justCopied: import("@angular/core").WritableSignal<boolean>;
|
|
53
|
+
protected readonly classes: import("@angular/core").Signal<string>;
|
|
54
|
+
private readonly clipboard;
|
|
55
|
+
private destroyed;
|
|
56
|
+
private timer;
|
|
57
|
+
/**
|
|
58
|
+
* Copies the value, as a click on the button does. Resolves to whether the
|
|
59
|
+
* text reached the clipboard; an empty value resolves to `false` and emits
|
|
60
|
+
* nothing.
|
|
61
|
+
*/
|
|
62
|
+
copy(): Promise<boolean>;
|
|
63
|
+
private clearTimer;
|
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrCopyValue, never>;
|
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WrCopyValue, "wr-copy-value", never, {
|
|
66
|
+
"value": {
|
|
67
|
+
"alias": "value";
|
|
68
|
+
"required": false;
|
|
69
|
+
"isSignal": true;
|
|
70
|
+
};
|
|
71
|
+
"wrap": {
|
|
72
|
+
"alias": "wrap";
|
|
73
|
+
"required": false;
|
|
74
|
+
"isSignal": true;
|
|
75
|
+
};
|
|
76
|
+
"copyLabel": {
|
|
77
|
+
"alias": "copyLabel";
|
|
78
|
+
"required": false;
|
|
79
|
+
"isSignal": true;
|
|
80
|
+
};
|
|
81
|
+
"copiedLabel": {
|
|
82
|
+
"alias": "copiedLabel";
|
|
83
|
+
"required": false;
|
|
84
|
+
"isSignal": true;
|
|
85
|
+
};
|
|
86
|
+
"emptyLabel": {
|
|
87
|
+
"alias": "emptyLabel";
|
|
88
|
+
"required": false;
|
|
89
|
+
"isSignal": true;
|
|
90
|
+
};
|
|
91
|
+
}, {
|
|
92
|
+
"copied": "copied";
|
|
93
|
+
"copyFailed": "copyFailed";
|
|
94
|
+
}, never, never, true, never>;
|
|
95
|
+
}
|
|
@@ -224,7 +224,7 @@ export declare class WrDateRangePickerHarness extends WrDatePickerHarnessBase {
|
|
|
224
224
|
setStartText(text: string): Promise<void>;
|
|
225
225
|
/** Type a date into the end field — see {@link setStartText} on ordering. */
|
|
226
226
|
setEndText(text: string): Promise<void>;
|
|
227
|
-
/** Empty both fields, which clears the range
|
|
227
|
+
/** Empty both fields, which clears the range, with or without the `clearable` button. */
|
|
228
228
|
clear(): Promise<void>;
|
|
229
229
|
/** Whether the picker refuses interaction. */
|
|
230
230
|
isDisabled(): Promise<boolean>;
|
|
@@ -402,8 +402,8 @@ export declare class WrDatePickerHarness extends WrDatePickerHarnessBase {
|
|
|
402
402
|
/**
|
|
403
403
|
* Empty the field, which clears the value.
|
|
404
404
|
*
|
|
405
|
-
*
|
|
406
|
-
*
|
|
405
|
+
* Not a click on the `×`: that button exists only on a `clearable` picker, and an
|
|
406
|
+
* empty field gets back to `null` on every one.
|
|
407
407
|
*/
|
|
408
408
|
clear(): Promise<void>;
|
|
409
409
|
/** Whether the picker refuses interaction. */
|
|
@@ -52,6 +52,14 @@ type WrDateInputError = {
|
|
|
52
52
|
type WrDateRangeInputError = WrDateInputError & {
|
|
53
53
|
readonly end: 'start' | 'end';
|
|
54
54
|
};
|
|
55
|
+
/**
|
|
56
|
+
* @license
|
|
57
|
+
*
|
|
58
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
59
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
60
|
+
*/
|
|
61
|
+
/** Control size for `<wr-date-picker>` and `<wr-date-range-picker>` — shares the `--wr-control-*` contract. */
|
|
62
|
+
type WrDatePickerSize = 'sm' | 'md' | 'lg';
|
|
55
63
|
/**
|
|
56
64
|
* @license
|
|
57
65
|
*
|
|
@@ -145,6 +153,19 @@ export declare class WrDatePicker implements FormValueControl<Date | null> {
|
|
|
145
153
|
readonly showSeconds: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
146
154
|
/** Minute / second step for the time panel. @default 1 */
|
|
147
155
|
readonly step: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
156
|
+
/**
|
|
157
|
+
* Control size — forwarded to the field's `[size]`, and shares the
|
|
158
|
+
* `--wr-control-*` contract. The panel keeps its size. @default 'md'
|
|
159
|
+
*/
|
|
160
|
+
readonly size: import("@angular/core").InputSignal<WrDatePickerSize>;
|
|
161
|
+
/**
|
|
162
|
+
* Show a clear (×) button once a date is picked. It is a pointer control: from the
|
|
163
|
+
* keyboard, emptying the field clears the value. @default false
|
|
164
|
+
*/
|
|
165
|
+
readonly clearable: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
166
|
+
/** Clear (×) button aria-label. Falls back to `common.clear`. */
|
|
167
|
+
readonly clearLabel: import("@angular/core").InputSignal<string | null>;
|
|
168
|
+
protected readonly resolvedClear: Signal<string>;
|
|
148
169
|
/**
|
|
149
170
|
* Disable interaction. Bound automatically from the field's disabled state
|
|
150
171
|
* when used with `[formField]`.
|
|
@@ -154,7 +175,9 @@ export declare class WrDatePicker implements FormValueControl<Date | null> {
|
|
|
154
175
|
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
155
176
|
/** Read-only — input not typeable, but the trigger icon still opens the overlay. @default false */
|
|
156
177
|
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
157
|
-
private readonly
|
|
178
|
+
private readonly dayAdapter;
|
|
179
|
+
private readonly environment;
|
|
180
|
+
private get adapter();
|
|
158
181
|
private readonly overlay;
|
|
159
182
|
private readonly outsideClick;
|
|
160
183
|
private readonly scrollStrategies;
|
|
@@ -174,8 +197,13 @@ export declare class WrDatePicker implements FormValueControl<Date | null> {
|
|
|
174
197
|
readonly value: import("@angular/core").ModelSignal<Date | null>;
|
|
175
198
|
/** Emitted on blur so a bound field can mark itself touched. */
|
|
176
199
|
readonly touch: import("@angular/core").OutputEmitterRef<void>;
|
|
200
|
+
/** Fires after the popup opens. */
|
|
201
|
+
readonly opened: import("@angular/core").OutputEmitterRef<void>;
|
|
202
|
+
/** Fires after the popup closes. */
|
|
203
|
+
readonly closed: import("@angular/core").OutputEmitterRef<void>;
|
|
177
204
|
/** Text currently in the input (may be partial / invalid mid-type). */
|
|
178
205
|
protected readonly text: import("@angular/core").WritableSignal<string>;
|
|
206
|
+
protected readonly hasValue: Signal<boolean>;
|
|
179
207
|
/** Whether the popover is currently open. */
|
|
180
208
|
protected readonly overlayOpen: import("@angular/core").WritableSignal<boolean>;
|
|
181
209
|
/**
|
|
@@ -345,8 +373,12 @@ export declare class WrDatePicker implements FormValueControl<Date | null> {
|
|
|
345
373
|
* because the echo guard has to answer "is the display still current", and a
|
|
346
374
|
* `[format]` / `[mode]` change makes it stale with the value untouched. */
|
|
347
375
|
private lastFormat;
|
|
376
|
+
/** The adapter's `displayKey()` the text was last written under. */
|
|
377
|
+
private lastKey;
|
|
348
378
|
constructor();
|
|
349
379
|
protected onInput(event: Event): void;
|
|
380
|
+
/** The clear (×) button — the same commit an emptied field makes. */
|
|
381
|
+
protected clear(event: Event): void;
|
|
350
382
|
/**
|
|
351
383
|
* In `time` mode the typed string carries no date, so the adapter fills one in — and
|
|
352
384
|
* the date already in the model is the better answer than whatever default it picks.
|
|
@@ -416,7 +448,15 @@ export declare class WrDatePicker implements FormValueControl<Date | null> {
|
|
|
416
448
|
private focusPanel;
|
|
417
449
|
/** Hand focus back to whatever opened the panel, if it is still on the page. */
|
|
418
450
|
private restoreFocus;
|
|
451
|
+
/**
|
|
452
|
+
* Open the popup, as a click on the field does: focus stays where it is.
|
|
453
|
+
* Refused while disabled; a read-only picker still opens, as its field and trigger do.
|
|
454
|
+
*/
|
|
455
|
+
open(): void;
|
|
456
|
+
/** Close the popup. */
|
|
457
|
+
close(): void;
|
|
419
458
|
private openOverlay;
|
|
459
|
+
private panelInjector;
|
|
420
460
|
private attachDate;
|
|
421
461
|
private attachTime;
|
|
422
462
|
private attachDateTime;
|
|
@@ -482,6 +522,21 @@ export declare class WrDatePicker implements FormValueControl<Date | null> {
|
|
|
482
522
|
"required": false;
|
|
483
523
|
"isSignal": true;
|
|
484
524
|
};
|
|
525
|
+
"size": {
|
|
526
|
+
"alias": "size";
|
|
527
|
+
"required": false;
|
|
528
|
+
"isSignal": true;
|
|
529
|
+
};
|
|
530
|
+
"clearable": {
|
|
531
|
+
"alias": "clearable";
|
|
532
|
+
"required": false;
|
|
533
|
+
"isSignal": true;
|
|
534
|
+
};
|
|
535
|
+
"clearLabel": {
|
|
536
|
+
"alias": "clearLabel";
|
|
537
|
+
"required": false;
|
|
538
|
+
"isSignal": true;
|
|
539
|
+
};
|
|
485
540
|
"disabled": {
|
|
486
541
|
"alias": "disabled";
|
|
487
542
|
"required": false;
|
|
@@ -515,6 +570,8 @@ export declare class WrDatePicker implements FormValueControl<Date | null> {
|
|
|
515
570
|
}, {
|
|
516
571
|
"value": "valueChange";
|
|
517
572
|
"touch": "touch";
|
|
573
|
+
"opened": "opened";
|
|
574
|
+
"closed": "closed";
|
|
518
575
|
}, never, never, true, never>;
|
|
519
576
|
}
|
|
520
577
|
/** Which end of the range an edit applies to. */
|
|
@@ -597,6 +654,19 @@ export declare class WrDateRangePicker implements FormValueControl<WrDateRange |
|
|
|
597
654
|
readonly showSeconds: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
598
655
|
/** Minute / second step for the time panels. @default 1 */
|
|
599
656
|
readonly step: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
657
|
+
/**
|
|
658
|
+
* Control size — forwarded to each field's `[size]`, and shares the
|
|
659
|
+
* `--wr-control-*` contract. The panel keeps its size. @default 'md'
|
|
660
|
+
*/
|
|
661
|
+
readonly size: import("@angular/core").InputSignal<WrDatePickerSize>;
|
|
662
|
+
/**
|
|
663
|
+
* Show a clear (×) button once either end is picked. It is a pointer control: from the
|
|
664
|
+
* keyboard, emptying both fields clears the value. @default false
|
|
665
|
+
*/
|
|
666
|
+
readonly clearable: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
667
|
+
/** Clear (×) button aria-label. Falls back to `common.clear`. */
|
|
668
|
+
readonly clearLabel: import("@angular/core").InputSignal<string | null>;
|
|
669
|
+
protected readonly resolvedClear: Signal<string>;
|
|
600
670
|
/**
|
|
601
671
|
* Disable interaction. Bound automatically from the field's disabled state
|
|
602
672
|
* when used with `[formField]`.
|
|
@@ -616,7 +686,9 @@ export declare class WrDateRangePicker implements FormValueControl<WrDateRange |
|
|
|
616
686
|
* @default false
|
|
617
687
|
*/
|
|
618
688
|
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
619
|
-
private readonly
|
|
689
|
+
private readonly dayAdapter;
|
|
690
|
+
private readonly environment;
|
|
691
|
+
private get adapter();
|
|
620
692
|
private readonly overlay;
|
|
621
693
|
private readonly outsideClick;
|
|
622
694
|
private readonly scrollStrategies;
|
|
@@ -637,9 +709,14 @@ export declare class WrDateRangePicker implements FormValueControl<WrDateRange |
|
|
|
637
709
|
readonly value: import("@angular/core").ModelSignal<WrDateRange | null>;
|
|
638
710
|
/** Emitted on blur so a bound field can mark itself touched. */
|
|
639
711
|
readonly touch: import("@angular/core").OutputEmitterRef<void>;
|
|
712
|
+
/** Fires after the popup opens. */
|
|
713
|
+
readonly opened: import("@angular/core").OutputEmitterRef<void>;
|
|
714
|
+
/** Fires after the popup closes. */
|
|
715
|
+
readonly closed: import("@angular/core").OutputEmitterRef<void>;
|
|
640
716
|
/** Text currently in each input (may be partial / invalid mid-type). */
|
|
641
717
|
protected readonly startText: import("@angular/core").WritableSignal<string>;
|
|
642
718
|
protected readonly endText: import("@angular/core").WritableSignal<string>;
|
|
719
|
+
protected readonly hasValue: Signal<boolean>;
|
|
643
720
|
/** Whether the popover is currently open. */
|
|
644
721
|
protected readonly overlayOpen: import("@angular/core").WritableSignal<boolean>;
|
|
645
722
|
/**
|
|
@@ -822,6 +899,15 @@ export declare class WrDateRangePicker implements FormValueControl<WrDateRange |
|
|
|
822
899
|
/** Hand focus back to whatever opened the popup, if it is still on the page. */
|
|
823
900
|
private restoreFocus;
|
|
824
901
|
private onRangeInput;
|
|
902
|
+
/** The clear (×) button — the same commit two emptied fields make. */
|
|
903
|
+
protected clear(event: Event): void;
|
|
904
|
+
/**
|
|
905
|
+
* Open the popup, as a click on the start field does: focus stays where it is.
|
|
906
|
+
* Refused while disabled or read-only.
|
|
907
|
+
*/
|
|
908
|
+
open(): void;
|
|
909
|
+
/** Close the popup. */
|
|
910
|
+
close(): void;
|
|
825
911
|
private openOverlay;
|
|
826
912
|
/**
|
|
827
913
|
* Close the popover, handing focus back to whichever field or button opened
|
|
@@ -931,6 +1017,21 @@ export declare class WrDateRangePicker implements FormValueControl<WrDateRange |
|
|
|
931
1017
|
"required": false;
|
|
932
1018
|
"isSignal": true;
|
|
933
1019
|
};
|
|
1020
|
+
"size": {
|
|
1021
|
+
"alias": "size";
|
|
1022
|
+
"required": false;
|
|
1023
|
+
"isSignal": true;
|
|
1024
|
+
};
|
|
1025
|
+
"clearable": {
|
|
1026
|
+
"alias": "clearable";
|
|
1027
|
+
"required": false;
|
|
1028
|
+
"isSignal": true;
|
|
1029
|
+
};
|
|
1030
|
+
"clearLabel": {
|
|
1031
|
+
"alias": "clearLabel";
|
|
1032
|
+
"required": false;
|
|
1033
|
+
"isSignal": true;
|
|
1034
|
+
};
|
|
934
1035
|
"disabled": {
|
|
935
1036
|
"alias": "disabled";
|
|
936
1037
|
"required": false;
|
|
@@ -959,6 +1060,8 @@ export declare class WrDateRangePicker implements FormValueControl<WrDateRange |
|
|
|
959
1060
|
}, {
|
|
960
1061
|
"value": "valueChange";
|
|
961
1062
|
"touch": "touch";
|
|
1063
|
+
"opened": "opened";
|
|
1064
|
+
"closed": "closed";
|
|
962
1065
|
}, never, never, true, never>;
|
|
963
1066
|
}
|
|
964
|
-
export type { WrDateInputError, WrDateRange, WrDateRangeInputError };
|
|
1067
|
+
export type { WrDateInputError, WrDatePickerSize, WrDateRange, WrDateRangeInputError };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from "@angular/cdk/testing";
|
|
2
|
+
/** Narrows which `<wr-date-stamp>` a harness query matches. */
|
|
3
|
+
interface WrDateStampHarnessFilters extends BaseHarnessFilters {
|
|
4
|
+
/** Match the date line: a string is an exact match, a RegExp is tested. An empty stamp matches neither. */
|
|
5
|
+
readonly date?: string | RegExp;
|
|
6
|
+
/** Match only empty (`true`) or only filled (`false`) ones. */
|
|
7
|
+
readonly empty?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Test harness for one `<wr-date-stamp>`: a date over a time.
|
|
11
|
+
*
|
|
12
|
+
* It answers from what the component renders: the two lines as text and the
|
|
13
|
+
* `datetime` attribute of the `<time>` around them. The lines are written in
|
|
14
|
+
* the locale and the time zone of the test's own providers, so a spec that
|
|
15
|
+
* must not depend on either asserts {@link getDateTime}, which is the instant.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const loader = TestbedHarnessEnvironment.loader(fixture);
|
|
20
|
+
* const created = await loader.getHarness(WrDateStampHarness);
|
|
21
|
+
*
|
|
22
|
+
* expect(await created.getDateTime()).toBe('2026-11-12T08:45:00.000Z');
|
|
23
|
+
* expect(await created.getTime()).toBe('13:45');
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @see https://ngwr.dev/guides/testing
|
|
27
|
+
*/
|
|
28
|
+
export declare class WrDateStampHarness extends ComponentHarness {
|
|
29
|
+
static hostSelector: string;
|
|
30
|
+
/** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
|
|
31
|
+
static with(options?: WrDateStampHarnessFilters): HarnessPredicate<WrDateStampHarness>;
|
|
32
|
+
private readonly time;
|
|
33
|
+
/** The first line, or `null` when the stamp is empty. */
|
|
34
|
+
getDate(): Promise<string | null>;
|
|
35
|
+
/** The second line, or `null` when the stamp is empty or shows a date-only value. */
|
|
36
|
+
getTime(): Promise<string | null>;
|
|
37
|
+
/**
|
|
38
|
+
* The `datetime` attribute: the instant in ISO 8601 (UTC), or `yyyy-MM-dd` for a
|
|
39
|
+
* date-only value. `null` when the stamp is empty.
|
|
40
|
+
*/
|
|
41
|
+
getDateTime(): Promise<string | null>;
|
|
42
|
+
/** Whether the value is empty: no `<time>`, the placeholder in its place. */
|
|
43
|
+
isEmpty(): Promise<boolean>;
|
|
44
|
+
/** The placeholder an empty value shows (`emptyLabel`). Throws when there is a value. */
|
|
45
|
+
getEmptyText(): Promise<string>;
|
|
46
|
+
}
|
|
47
|
+
export type { WrDateStampHarnessFilters };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { WrDateFormat } from "ngwr/date";
|
|
3
|
+
interface Stamp {
|
|
4
|
+
readonly iso: string;
|
|
5
|
+
readonly date: string;
|
|
6
|
+
readonly time: string | null;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A moment in two lines, for a table cell: the date over the time.
|
|
10
|
+
*
|
|
11
|
+
* Both lines are written by the date adapter, so they are in the interface
|
|
12
|
+
* language and, for an instant, on the wall clock of
|
|
13
|
+
* `withDates({ timeZone })`, and they follow both at runtime. The value is read
|
|
14
|
+
* as `wrDate` reads it: a `Date`, epoch milliseconds or a string. A date-only
|
|
15
|
+
* string (`'2026-11-12'`) is a day, so it shows the date line alone and does
|
|
16
|
+
* not shift with the zone.
|
|
17
|
+
*
|
|
18
|
+
* The lines sit in one `<time>` whose `datetime` is the instant in ISO 8601,
|
|
19
|
+
* or the day for a date-only string. `null`, `undefined`, `''` and a value
|
|
20
|
+
* that is not a date are empty: the component shows `emptyLabel`.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```html
|
|
24
|
+
* <wr-date-stamp [value]="row.createdAt" />
|
|
25
|
+
* <wr-date-stamp [value]="row.createdAt" dateFormat="d MMM yyyy" timeFormat="time24hSeconds" />
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @see https://ngwr.dev/reference/components/date-stamp
|
|
29
|
+
*/
|
|
30
|
+
export declare class WrDateStamp {
|
|
31
|
+
constructor();
|
|
32
|
+
/**
|
|
33
|
+
* The moment shown: a `Date`, epoch milliseconds, or a string `wrParseDate`
|
|
34
|
+
* reads. `null`, `undefined`, `''` and a value that is not a date are empty.
|
|
35
|
+
*
|
|
36
|
+
* @default null
|
|
37
|
+
*/
|
|
38
|
+
readonly value: import("@angular/core").InputSignal<string | number | Date | null | undefined>;
|
|
39
|
+
/**
|
|
40
|
+
* Format of the first line: a named key or a token string (`'d MMM yyyy'`).
|
|
41
|
+
*
|
|
42
|
+
* @default 'mediumDate'
|
|
43
|
+
*/
|
|
44
|
+
readonly dateFormat: import("@angular/core").InputSignal<WrDateFormat | (string & {})>;
|
|
45
|
+
/**
|
|
46
|
+
* Format of the second line: a named key (`'time24hSeconds'`) or a token
|
|
47
|
+
* string (`'HH:mm'`).
|
|
48
|
+
*
|
|
49
|
+
* @default 'time'
|
|
50
|
+
*/
|
|
51
|
+
readonly timeFormat: import("@angular/core").InputSignal<WrDateFormat | (string & {})>;
|
|
52
|
+
/** What stands in for an empty value. Falls back to `copyValue.empty`, then `'-'`. */
|
|
53
|
+
readonly emptyLabel: import("@angular/core").InputSignal<string | null>;
|
|
54
|
+
protected readonly resolvedEmptyLabel: import("@angular/core").Signal<string>;
|
|
55
|
+
private readonly adapter;
|
|
56
|
+
protected readonly parts: import("@angular/core").Signal<Stamp | null>;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrDateStamp, never>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WrDateStamp, "wr-date-stamp", never, {
|
|
59
|
+
"value": {
|
|
60
|
+
"alias": "value";
|
|
61
|
+
"required": false;
|
|
62
|
+
"isSignal": true;
|
|
63
|
+
};
|
|
64
|
+
"dateFormat": {
|
|
65
|
+
"alias": "dateFormat";
|
|
66
|
+
"required": false;
|
|
67
|
+
"isSignal": true;
|
|
68
|
+
};
|
|
69
|
+
"timeFormat": {
|
|
70
|
+
"alias": "timeFormat";
|
|
71
|
+
"required": false;
|
|
72
|
+
"isSignal": true;
|
|
73
|
+
};
|
|
74
|
+
"emptyLabel": {
|
|
75
|
+
"alias": "emptyLabel";
|
|
76
|
+
"required": false;
|
|
77
|
+
"isSignal": true;
|
|
78
|
+
};
|
|
79
|
+
}, {}, never, never, true, never>;
|
|
80
|
+
}
|
|
81
|
+
export {};
|