ngwr 15.8.0 → 16.0.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/copy-value/styles/_index.scss +104 -0
- package/date-picker/styles/_index.scss +117 -0
- package/fesm2022/{ngwr-animations-core.mjs → internal-BaQU4t_0.mjs} +6 -49
- package/fesm2022/internal-BaQU4t_0.mjs.map +1 -0
- package/fesm2022/ngwr-alert.mjs +2 -2
- 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 +3 -3
- package/fesm2022/ngwr-avatar.mjs.map +1 -1
- package/fesm2022/ngwr-badge.mjs.map +1 -1
- package/fesm2022/ngwr-cascader.mjs +43 -20
- 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-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 +2 -2
- package/fesm2022/ngwr-checkbox.mjs.map +1 -1
- package/fesm2022/ngwr-collapse.mjs +2 -2
- package/fesm2022/ngwr-collapse.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker.mjs +52 -52
- 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 +2 -2
- package/fesm2022/ngwr-comment.mjs.map +1 -1
- package/fesm2022/ngwr-compare.mjs +6 -6
- package/fesm2022/ngwr-compare.mjs.map +1 -1
- package/fesm2022/ngwr-context-menu.mjs +4 -4
- 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 +196 -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 +217 -40
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-date.mjs +27 -5
- package/fesm2022/ngwr-date.mjs.map +1 -1
- package/fesm2022/ngwr-dialog.mjs +32 -3
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-directives.mjs +116 -1
- package/fesm2022/ngwr-directives.mjs.map +1 -1
- package/fesm2022/ngwr-drawer.mjs +3 -3
- package/fesm2022/ngwr-drawer.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +13 -12
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +28 -28
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-event-calendar.mjs +5 -5
- package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload.mjs +8 -8
- package/fesm2022/ngwr-file-upload.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 +5 -0
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +5 -0
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +5 -0
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +5 -0
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +5 -0
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +5 -0
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +5 -0
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +5 -0
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +5 -0
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +5 -0
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +5 -0
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +5 -0
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +5 -0
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +5 -0
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +5 -0
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +5 -0
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +5 -0
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +5 -0
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +5 -0
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +5 -0
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +5 -0
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +5 -0
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +2 -2
- 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 +4 -4
- package/fesm2022/ngwr-input-number.mjs.map +1 -1
- package/fesm2022/ngwr-input-otp.mjs +2 -2
- package/fesm2022/ngwr-input-otp.mjs.map +1 -1
- package/fesm2022/ngwr-input.mjs +15 -15
- package/fesm2022/ngwr-input.mjs.map +1 -1
- package/fesm2022/ngwr-keyboard.mjs +28 -28
- package/fesm2022/ngwr-keyboard.mjs.map +1 -1
- package/fesm2022/ngwr-knob.mjs +4 -4
- package/fesm2022/ngwr-knob.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox.mjs +2 -2
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-load-state.mjs +2 -2
- 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 +3 -3
- package/fesm2022/ngwr-overlay.mjs.map +1 -1
- package/fesm2022/ngwr-pagination.mjs +7 -5
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +3 -5
- 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 +31 -30
- package/fesm2022/ngwr-popover.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 +3 -3
- package/fesm2022/ngwr-radio.mjs.map +1 -1
- package/fesm2022/ngwr-rating.mjs +10 -10
- package/fesm2022/ngwr-rating.mjs.map +1 -1
- package/fesm2022/ngwr-schema-form.mjs +15 -5
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +57 -34
- 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 +2 -2
- package/fesm2022/ngwr-skeleton.mjs.map +1 -1
- package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
- package/fesm2022/ngwr-slider.mjs +13 -13
- 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-splitter.mjs +5 -5
- 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-storage.mjs +6 -4
- package/fesm2022/ngwr-storage.mjs.map +1 -1
- package/fesm2022/ngwr-switch.mjs +2 -2
- package/fesm2022/ngwr-switch.mjs.map +1 -1
- package/fesm2022/ngwr-table-testing.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +263 -32
- 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-toast-testing.mjs +8 -1
- package/fesm2022/ngwr-toast-testing.mjs.map +1 -1
- package/fesm2022/ngwr-toast.mjs +63 -20
- 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 +20 -9
- package/fesm2022/ngwr-transfer.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +64 -24
- package/fesm2022/ngwr-tree.mjs.map +1 -1
- package/fesm2022/ngwr-utils.mjs +98 -55
- 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 +26 -26
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/fesm2022/ngwr.mjs.map +1 -1
- package/i18n/ar.json +5 -0
- package/i18n/cs.json +5 -0
- package/i18n/de.json +5 -0
- package/i18n/en.json +5 -0
- package/i18n/es.json +5 -0
- package/i18n/fr.json +5 -0
- package/i18n/he.json +5 -0
- package/i18n/hi.json +5 -0
- package/i18n/id.json +5 -0
- package/i18n/it.json +5 -0
- package/i18n/ja.json +5 -0
- package/i18n/ko.json +5 -0
- package/i18n/nl.json +5 -0
- package/i18n/pl.json +5 -0
- package/i18n/pt.json +5 -0
- package/i18n/ru.json +5 -0
- package/i18n/sv.json +5 -0
- package/i18n/tr.json +5 -0
- package/i18n/uk.json +5 -0
- package/i18n/vi.json +5 -0
- package/i18n/zh-TW.json +5 -0
- package/i18n/zh.json +5 -0
- package/input-number/styles/_index.scss +6 -0
- package/llms-full.txt +31 -19
- package/llms.txt +37 -19
- package/mcp/providers.js +1 -1
- package/package.json +15 -10
- package/pagination/styles/_index.scss +8 -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/symbol-map.json +2 -0
- package/select/styles/_index.scss +1 -1
- package/skills/ngwr/SKILL.md +6 -4
- package/skills/ngwr/references/catalog.md +4 -2
- package/skills/ngwr/references/setup.md +10 -9
- package/table/styles/_index.scss +92 -30
- package/toast/styles/_index.scss +30 -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-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-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-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 +97 -1
- package/types/ngwr-date.d.ts +44 -3
- package/types/ngwr-dialog.d.ts +50 -3
- package/types/ngwr-directives.d.ts +40 -0
- package/types/ngwr-drawer.d.ts +1 -1
- package/types/ngwr-dropdown.d.ts +3 -2
- package/types/ngwr-hotkey.d.ts +5 -5
- package/types/ngwr-i18n.d.ts +3 -3
- 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-pipes.d.ts +6 -4
- package/types/ngwr-platform.d.ts +2 -1
- package/types/ngwr-popconfirm.d.ts +3 -2
- package/types/ngwr-popover.d.ts +4 -3
- 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 +2 -1
- package/types/ngwr-table.d.ts +155 -18
- package/types/ngwr-tabs.d.ts +10 -2
- package/types/ngwr-toast-testing.d.ts +6 -2
- package/types/ngwr-toast.d.ts +33 -5
- package/types/ngwr-transfer.d.ts +5 -0
- package/types/ngwr-tree.d.ts +22 -2
- package/types/ngwr-utils.d.ts +157 -82
- package/types/ngwr-validators.d.ts +4 -2
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr.d.ts +1 -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-cascader.d.ts
CHANGED
|
@@ -129,11 +129,15 @@ export declare class WrCascader<T = string> implements FormValueControl<unknown>
|
|
|
129
129
|
readonly value: import("@angular/core").ModelSignal<unknown>;
|
|
130
130
|
/** Emitted on blur / commit so a bound field can mark itself touched. */
|
|
131
131
|
readonly touch: import("@angular/core").OutputEmitterRef<void>;
|
|
132
|
+
/** Fires after the panel opens. */
|
|
133
|
+
readonly opened: import("@angular/core").OutputEmitterRef<void>;
|
|
134
|
+
/** Fires after the panel closes. */
|
|
135
|
+
readonly closed: import("@angular/core").OutputEmitterRef<void>;
|
|
132
136
|
/** Committed selection path (full T[] from root to leaf). @internal */
|
|
133
137
|
protected readonly path: import("@angular/core").WritableSignal<readonly T[]>;
|
|
134
138
|
/** Currently-expanded column path — drives which columns the panel shows. @internal */
|
|
135
139
|
protected readonly activePath: import("@angular/core").WritableSignal<readonly T[]>;
|
|
136
|
-
protected readonly
|
|
140
|
+
protected readonly isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
137
141
|
/**
|
|
138
142
|
* The option the user last moved to inside the open panel — `null` until they
|
|
139
143
|
* move, and again on every open. Written by an option's `focus` event, so
|
|
@@ -196,6 +200,10 @@ export declare class WrCascader<T = string> implements FormValueControl<unknown>
|
|
|
196
200
|
* panel stays shut: ArrowDown or a click opens it, the way it does after Tab.
|
|
197
201
|
*/
|
|
198
202
|
focus(options?: FocusOptions): void;
|
|
203
|
+
/** Open the panel on the selected path, as the trigger does. Refused while disabled or read-only. */
|
|
204
|
+
open(): void;
|
|
205
|
+
/** Close the panel. */
|
|
206
|
+
close(): void;
|
|
199
207
|
protected onTriggerClick(): void;
|
|
200
208
|
/**
|
|
201
209
|
* ArrowDown / ArrowUp open the panel, Alt+ArrowDown included — the combobox way in,
|
|
@@ -268,6 +276,7 @@ export declare class WrCascader<T = string> implements FormValueControl<unknown>
|
|
|
268
276
|
* never the stop, so `focus()` cannot land on a choice nobody can make.
|
|
269
277
|
*/
|
|
270
278
|
private focusPanelOption;
|
|
279
|
+
/** `notify: false` is the destroy path: an output cannot emit from a destroyed view. */
|
|
271
280
|
private closeOverlay;
|
|
272
281
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrCascader<any>, never>;
|
|
273
282
|
static ɵcmp: i0.ɵɵComponentDeclaration<WrCascader<any>, "wr-cascader", never, {
|
|
@@ -334,6 +343,8 @@ export declare class WrCascader<T = string> implements FormValueControl<unknown>
|
|
|
334
343
|
}, {
|
|
335
344
|
"value": "valueChange";
|
|
336
345
|
"touch": "touch";
|
|
346
|
+
"opened": "opened";
|
|
347
|
+
"closed": "closed";
|
|
337
348
|
}, never, never, true, never>;
|
|
338
349
|
}
|
|
339
350
|
export type { WrCascaderOption, WrCascaderSize };
|
|
@@ -209,7 +209,7 @@ export declare class WrBoxplotChart {
|
|
|
209
209
|
/** Every group with its colour and its summary, in order. */
|
|
210
210
|
private readonly resolvedGroups;
|
|
211
211
|
/**
|
|
212
|
-
* The value axis, from `
|
|
212
|
+
* The value axis, from `wrChartAxis` over every number drawn — whisker ends, quartiles,
|
|
213
213
|
* medians and outliers alike, so a summary given out of order still lands inside it —
|
|
214
214
|
* with no zero forced in and both ends kept off the data (`symmetric`). A single value
|
|
215
215
|
* is centred with a step either side; with nothing to draw, the 0 to 1 frame.
|
|
@@ -163,7 +163,7 @@ export declare class WrBulletChart {
|
|
|
163
163
|
/** The target marker's share of the scale, or `null` with no target. */
|
|
164
164
|
protected readonly targetAt: import("@angular/core").Signal<number | null>;
|
|
165
165
|
/**
|
|
166
|
-
* The scale's ticks, from its start: `
|
|
166
|
+
* The scale's ticks, from its start: `wrChartAxis` over the scale with the ticks it would
|
|
167
167
|
* draw past either end left out, so the scale ends where `max` says rather than on the
|
|
168
168
|
* next round number. Decided for the whole scale, as an axis' ticks are
|
|
169
169
|
* (`useChartNumbers().ticks`). A tick on either end is aligned inwards, so its label
|
|
@@ -176,7 +176,7 @@ export declare class WrBulletChart {
|
|
|
176
176
|
*/
|
|
177
177
|
protected readonly ticks: import("@angular/core").Signal<readonly Tick[]>;
|
|
178
178
|
/**
|
|
179
|
-
* The scale's ticks for `
|
|
179
|
+
* The scale's ticks for `wrChartAxis` aiming at `count` gaps. A tick on an end is aligned
|
|
180
180
|
* inwards; with a measurement, so is one whose label, centred on it, would cross an end.
|
|
181
181
|
*/
|
|
182
182
|
private ticksFor;
|
|
@@ -183,7 +183,7 @@ export declare class WrCandlestickChart {
|
|
|
183
183
|
/** One slot's share of the drawing's width, in percent: what the stylesheet sizes a body against. */
|
|
184
184
|
protected readonly slot: import("@angular/core").Signal<number>;
|
|
185
185
|
/**
|
|
186
|
-
* The y axis, from `
|
|
186
|
+
* The y axis, from `wrChartAxis` over every candle drawn: fitted from the lowest of the
|
|
187
187
|
* lows to the highest of the highs with no zero forced in, since a price has no
|
|
188
188
|
* baseline, snapped outward at both ends and lifted a step at either end a wick would
|
|
189
189
|
* end on (`symmetric`). A single price is centred with a step either side. With
|
|
@@ -194,13 +194,13 @@ interface WrChartNumbers<A extends readonly unknown[] = []> {
|
|
|
194
194
|
* 1. Bounds handed in the wrong order are swapped.
|
|
195
195
|
*
|
|
196
196
|
* The line chart's own rule, which floors its axis at zero and never lifts it to
|
|
197
|
-
* zero from below, is `
|
|
197
|
+
* zero from below, is `wrChartAxis(Math.min(0, min), max)`: an all-negative series
|
|
198
198
|
* keeps an axis that ends just above its peak. `includeZero` is the other reading,
|
|
199
199
|
* zero inside the range on either side, which an area needs for its baseline.
|
|
200
200
|
*
|
|
201
201
|
* @internal
|
|
202
202
|
*/
|
|
203
|
-
export declare function
|
|
203
|
+
export declare function wrChartAxis(min: number, max: number, options?: WrChartAxisOptions): WrChartAxis;
|
|
204
204
|
/**
|
|
205
205
|
* The figures a chart draws, as a table that only assistive technology reaches.
|
|
206
206
|
*
|
|
@@ -262,13 +262,13 @@ export declare class WrChartTable {
|
|
|
262
262
|
*
|
|
263
263
|
* @internal
|
|
264
264
|
*/
|
|
265
|
-
export declare const
|
|
265
|
+
export declare const WR_CHART_MARKERS: readonly WrChartMarkerShape[];
|
|
266
266
|
/**
|
|
267
267
|
* The marker shape for the series at `index`, wrapping past the end.
|
|
268
268
|
*
|
|
269
269
|
* @internal
|
|
270
270
|
*/
|
|
271
|
-
export declare function
|
|
271
|
+
export declare function wrChartMarker(index: number): WrChartMarkerShape;
|
|
272
272
|
/**
|
|
273
273
|
* The SVG path `d` of a marker centred on the origin, as large as a circle of
|
|
274
274
|
* radius `r` — every shape has that circle's area, so a triangle reaches past it
|
|
@@ -281,9 +281,9 @@ export declare function chartMarker(index: number): WrChartMarkerShape;
|
|
|
281
281
|
*
|
|
282
282
|
* @internal
|
|
283
283
|
*/
|
|
284
|
-
export declare function
|
|
284
|
+
export declare function wrChartMarkerPath(shape: WrChartMarkerShape, r: number): string;
|
|
285
285
|
/**
|
|
286
|
-
* How far the marker {@link
|
|
286
|
+
* How far the marker {@link wrChartMarkerPath} draws at `r` reaches from its centre,
|
|
287
287
|
* in px, before any stroke: up, down, to either side, and to its farthest corner.
|
|
288
288
|
*
|
|
289
289
|
* Every shape has the circle's AREA, so `r` is not how far a marker reaches: a
|
|
@@ -294,7 +294,7 @@ export declare function chartMarkerPath(shape: WrChartMarkerShape, r: number): s
|
|
|
294
294
|
*
|
|
295
295
|
* @internal
|
|
296
296
|
*/
|
|
297
|
-
export declare function
|
|
297
|
+
export declare function wrChartMarkerExtent(shape: WrChartMarkerShape, r: number): WrChartMarkerExtent;
|
|
298
298
|
/**
|
|
299
299
|
* The number writers of one chart: its axis ticks, the labels it prints in tight
|
|
300
300
|
* spaces, and the figures of its tooltip and its accessible names — every one
|
|
@@ -351,20 +351,20 @@ export declare function useChartNumbers<A extends readonly unknown[] = []>(value
|
|
|
351
351
|
*
|
|
352
352
|
* The four that sit within 1.061:1 of each other are told apart by hue alone,
|
|
353
353
|
* which is why a chart that draws lines pairs each with a dash
|
|
354
|
-
* (`
|
|
354
|
+
* (`WR_CHART_DASHES`) and one that draws points with a shape (`WR_CHART_MARKERS`).
|
|
355
355
|
*
|
|
356
356
|
* The line chart, the donut chart and the meter group each kept an identical
|
|
357
357
|
* copy of this list until 15.1.
|
|
358
358
|
*
|
|
359
359
|
* @internal
|
|
360
360
|
*/
|
|
361
|
-
export declare const
|
|
361
|
+
export declare const WR_CHART_PALETTE: readonly string[];
|
|
362
362
|
/**
|
|
363
363
|
* The palette colour for the series at `index`, wrapping past the end.
|
|
364
364
|
*
|
|
365
365
|
* @internal
|
|
366
366
|
*/
|
|
367
|
-
export declare function
|
|
367
|
+
export declare function wrChartColor(index: number): string;
|
|
368
368
|
/**
|
|
369
369
|
* A dash pattern per series, so lines are told apart by SHAPE and not only by hue.
|
|
370
370
|
*
|
|
@@ -381,11 +381,11 @@ export declare function chartColor(index: number): string;
|
|
|
381
381
|
*
|
|
382
382
|
* @internal
|
|
383
383
|
*/
|
|
384
|
-
export declare const
|
|
384
|
+
export declare const WR_CHART_DASHES: readonly string[];
|
|
385
385
|
/**
|
|
386
386
|
* The dash pattern for the series at `index`, wrapping past the end.
|
|
387
387
|
*
|
|
388
388
|
* @internal
|
|
389
389
|
*/
|
|
390
|
-
export declare function
|
|
390
|
+
export declare function wrChartDash(index: number): string;
|
|
391
391
|
export type { WrChartAxis, WrChartAxisOptions, WrChartMarkerExtent, WrChartMarkerShape, WrChartNumbers, WrChartTableData, WrChartTableGroup, WrChartTableRow };
|
|
@@ -206,7 +206,7 @@ export declare class WrLineChart {
|
|
|
206
206
|
private dismissed;
|
|
207
207
|
constructor();
|
|
208
208
|
/**
|
|
209
|
-
* Every series, resolved: its palette colour, its dash (`
|
|
209
|
+
* Every series, resolved: its palette colour, its dash (`wrChartDash`, so the lines are
|
|
210
210
|
* told apart by shape and not only by hue, the first one solid) and its data with a
|
|
211
211
|
* HOLE at each non-finite point. Hidden ones included, since the legend lists them.
|
|
212
212
|
*
|
|
@@ -245,7 +245,7 @@ export declare class WrLineChart {
|
|
|
245
245
|
*/
|
|
246
246
|
protected readonly plottedSeries: import("@angular/core").Signal<readonly PlottedSeries[]>;
|
|
247
247
|
/**
|
|
248
|
-
* The y axis, from `
|
|
248
|
+
* The y axis, from `wrChartAxis`, over what is plotted for the series still shown. It
|
|
249
249
|
* floors at zero and never lifts to zero from below, so an all-negative series keeps
|
|
250
250
|
* an axis that ends just above its peak, and it snaps to a readable step: seven
|
|
251
251
|
* integers between 3 and 35 read 0 / 10 / 20 / 30 / 40, where "the data's max plus
|
|
@@ -245,7 +245,7 @@ export declare class WrRadarChart {
|
|
|
245
245
|
private readonly visibleSeries;
|
|
246
246
|
/**
|
|
247
247
|
* The scale from the centre to the outer ring. A fixed `max` runs from zero, its rings
|
|
248
|
-
* on the readable step that divides it (`fixedStep`). Otherwise it is `
|
|
248
|
+
* on the readable step that divides it (`fixedStep`). Otherwise it is `wrChartAxis` over
|
|
249
249
|
* the series shown, including zero: the centre is zero unless a value is negative, and
|
|
250
250
|
* then the scale's own minimum, which a radar shows as a smaller polygon rather than as
|
|
251
251
|
* anything below a baseline — readable, and worth a fixed `max` where negative values
|
|
@@ -234,7 +234,7 @@ export declare class WrScatterChart {
|
|
|
234
234
|
/** Whether any point shown has a size, which adds the size row and column. */
|
|
235
235
|
protected readonly sized: import("@angular/core").Signal<boolean>;
|
|
236
236
|
/**
|
|
237
|
-
* The x axis, from `
|
|
237
|
+
* The x axis, from `wrChartAxis` over the points shown: fitted to the data with no zero
|
|
238
238
|
* forced in, since a scatter has no baseline, snapped outward at both ends and lifted a
|
|
239
239
|
* step at EITHER end a point would sit on (`symmetric`), so no point lands exactly on
|
|
240
240
|
* the frame. A single value — one point, or a column of them — is centred with a step
|
|
@@ -316,7 +316,7 @@ export declare class WrScatterChart {
|
|
|
316
316
|
* A drawing with no box (nothing laid out yet) answers nothing.
|
|
317
317
|
*/
|
|
318
318
|
private pointAt;
|
|
319
|
-
/** One axis over the points shown: `
|
|
319
|
+
/** One axis over the points shown: `wrChartAxis` with both ends kept off the data, and one value centred. */
|
|
320
320
|
private fit;
|
|
321
321
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrScatterChart, never>;
|
|
322
322
|
static ɵcmp: i0.ɵɵComponentDeclaration<WrScatterChart, "wr-scatter-chart", never, {
|
|
@@ -229,7 +229,7 @@ export declare class WrWaterfallChart {
|
|
|
229
229
|
*/
|
|
230
230
|
private readonly resolved;
|
|
231
231
|
/**
|
|
232
|
-
* The value axis, from `
|
|
232
|
+
* The value axis, from `wrChartAxis` over every bar's two ends with zero always inside —
|
|
233
233
|
* a total stands on it — snapped outward to a readable step and lifted a step where the
|
|
234
234
|
* highest bar would end on the frame. With no step, the empty 0 to 1 frame.
|
|
235
235
|
*/
|
|
@@ -59,19 +59,19 @@ interface WrHsl {
|
|
|
59
59
|
/**
|
|
60
60
|
* Convert sRGB to HSV. Preserves alpha.
|
|
61
61
|
*/
|
|
62
|
-
export declare function
|
|
62
|
+
export declare function wrRgbToHsv(rgb: WrRgb): WrHsv;
|
|
63
63
|
/**
|
|
64
64
|
* Convert HSV to sRGB. Preserves alpha. Returns integer channels in `[0, 255]`.
|
|
65
65
|
*/
|
|
66
|
-
export declare function
|
|
66
|
+
export declare function wrHsvToRgb(hsv: WrHsv): WrRgb;
|
|
67
67
|
/**
|
|
68
68
|
* Convert sRGB to HSL. Preserves alpha.
|
|
69
69
|
*/
|
|
70
|
-
export declare function
|
|
70
|
+
export declare function wrRgbToHsl(rgb: WrRgb): WrHsl;
|
|
71
71
|
/**
|
|
72
72
|
* Convert HSL to sRGB. Preserves alpha. Returns integer channels in `[0, 255]`.
|
|
73
73
|
*/
|
|
74
|
-
export declare function
|
|
74
|
+
export declare function wrHslToRgb(hsl: WrHsl): WrRgb;
|
|
75
75
|
/**
|
|
76
76
|
* Parse a CSS hex colour into {@link WrRgb}. Accepts 3, 4, 6, or 8 digit
|
|
77
77
|
* forms with or without a leading `#`. Returns `null` for anything that
|
|
@@ -79,13 +79,13 @@ export declare function hslToRgb(hsl: WrHsl): WrRgb;
|
|
|
79
79
|
*
|
|
80
80
|
* @example
|
|
81
81
|
* ```ts
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
82
|
+
* wrParseHex('#f00'); // { r: 255, g: 0, b: 0, a: 1 }
|
|
83
|
+
* wrParseHex('3969e2'); // { r: 57, g: 105, b: 226, a: 1 }
|
|
84
|
+
* wrParseHex('#3969e2ff'); // { r: 57, g: 105, b: 226, a: 1 }
|
|
85
|
+
* wrParseHex('nope'); // null
|
|
86
86
|
* ```
|
|
87
87
|
*/
|
|
88
|
-
export declare function
|
|
88
|
+
export declare function wrParseHex(input: string): WrRgb | null;
|
|
89
89
|
/**
|
|
90
90
|
* Format a {@link WrRgb} as a CSS hex string with a leading `#`. When
|
|
91
91
|
* `withAlpha` is `true` the result is 8 digits (`#rrggbbaa`); otherwise
|
|
@@ -93,11 +93,11 @@ export declare function parseHex(input: string): WrRgb | null;
|
|
|
93
93
|
*
|
|
94
94
|
* @example
|
|
95
95
|
* ```ts
|
|
96
|
-
*
|
|
97
|
-
*
|
|
96
|
+
* wrToHex({ r: 57, g: 105, b: 226, a: 1 }); // '#3969e2'
|
|
97
|
+
* wrToHex({ r: 57, g: 105, b: 226, a: 0.5 }, true); // '#3969e280'
|
|
98
98
|
* ```
|
|
99
99
|
*/
|
|
100
|
-
export declare function
|
|
100
|
+
export declare function wrToHex(rgb: WrRgb, withAlpha?: boolean): string;
|
|
101
101
|
/**
|
|
102
102
|
* @license
|
|
103
103
|
*
|
|
@@ -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. */
|