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-table.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { TemplateRef } from "@angular/core";
|
|
3
|
-
import {
|
|
3
|
+
import { WrClassInput, WrSafeAny } from "ngwr/utils";
|
|
4
|
+
import { WrPaginationSize } from "ngwr/pagination";
|
|
4
5
|
import { CdkDragDrop } from "@angular/cdk/drag-drop";
|
|
5
6
|
/**
|
|
6
7
|
* @license
|
|
@@ -92,6 +93,18 @@ interface WrTableSortState {
|
|
|
92
93
|
readonly key: string;
|
|
93
94
|
readonly direction: WrTableSortDirection;
|
|
94
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* @license
|
|
98
|
+
*
|
|
99
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
100
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
101
|
+
*/
|
|
102
|
+
/**
|
|
103
|
+
* Reads the value a column sorts by; `key` is the column key. Pass one to
|
|
104
|
+
* `wrSortRows` for a key that is not a field of the row: a computed column or
|
|
105
|
+
* a nested value.
|
|
106
|
+
*/
|
|
107
|
+
type WrTableSortAccessor<T> = (item: T, key: string) => string | number;
|
|
95
108
|
/**
|
|
96
109
|
* @license
|
|
97
110
|
*
|
|
@@ -416,6 +429,23 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
416
429
|
* select-all header; `'single'` keeps one row selected. @default null (off)
|
|
417
430
|
*/
|
|
418
431
|
readonly rowSelection: import("@angular/core").InputSignal<"single" | "multiple" | null>;
|
|
432
|
+
/**
|
|
433
|
+
* What the header select-all covers. `'page'` is the rows on screen: the
|
|
434
|
+
* current page, less a collapsed group's rows and a closed parent's children.
|
|
435
|
+
* `'all'` is the same rule over every page of `items`, so the box reads
|
|
436
|
+
* checked only when all of them are selected, mixed when some are, and one
|
|
437
|
+
* click selects or clears them all. Either way a selected key that is not in
|
|
438
|
+
* the scope stays selected.
|
|
439
|
+
*
|
|
440
|
+
* The table filters nothing itself: `items` is already what the filters left,
|
|
441
|
+
* so `'all'` never reaches a row a filter removed. Group band checkboxes keep
|
|
442
|
+
* their page scope, since grouping runs after pagination.
|
|
443
|
+
*
|
|
444
|
+
* In server mode (`total` set) the table holds one page and cannot name the
|
|
445
|
+
* rows of the others, so `'all'` behaves as `'page'` there.
|
|
446
|
+
* @default 'page'
|
|
447
|
+
*/
|
|
448
|
+
readonly selectAllScope: import("@angular/core").InputSignal<"page" | "all">;
|
|
419
449
|
/**
|
|
420
450
|
* Extra CSS classes per body row, from the row and its drawn index.
|
|
421
451
|
*
|
|
@@ -631,6 +661,8 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
631
661
|
* ```
|
|
632
662
|
*/
|
|
633
663
|
readonly pageSizeOptions: import("@angular/core").InputSignal<readonly number[]>;
|
|
664
|
+
/** Size of the pager under the table: its cells and its size menu. @default 'sm' */
|
|
665
|
+
readonly paginationSize: import("@angular/core").InputSignal<WrPaginationSize>;
|
|
634
666
|
/** Fires with the size the reader picks in the pager's size menu. */
|
|
635
667
|
readonly pageSizeChange: import("@angular/core").OutputEmitterRef<number>;
|
|
636
668
|
/** The size in force: the bound `pageSize`, until the reader picks another. */
|
|
@@ -679,10 +711,25 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
679
711
|
*/
|
|
680
712
|
readonly rowHeight: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
681
713
|
/**
|
|
682
|
-
*
|
|
683
|
-
*
|
|
684
|
-
*
|
|
685
|
-
*
|
|
714
|
+
* Gives the table its own vertical scroll area, with the header row stuck to
|
|
715
|
+
* its top and the summary footer to its bottom, in every mode: plain, paged,
|
|
716
|
+
* grouped, tree, with pinned columns or selection. The pager stays below the
|
|
717
|
+
* scroll area. `viewportHeight` sizes it. A virtualized table already
|
|
718
|
+
* scrolls this way, so the input adds nothing there.
|
|
719
|
+
* @default false
|
|
720
|
+
*/
|
|
721
|
+
readonly stickyHeader: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
722
|
+
/**
|
|
723
|
+
* Height of the scroll area when `virtualScroll` or `stickyHeader` is on — a
|
|
724
|
+
* number (px), any CSS length (`'70vh'`) or `'fill'`. A length is applied as
|
|
725
|
+
* `max-height` on `.wr-table__scroll` through `--wr-table-scroll-height` (a
|
|
726
|
+
* short table shrinks to fit; a long one caps and scrolls). `'fill'` takes
|
|
727
|
+
* the height the parent has left instead: the parent must be a flex column
|
|
728
|
+
* with a definite height (every flex ancestor up the chain needs
|
|
729
|
+
* `min-height: 0`), or a block with a definite height. The table then never
|
|
730
|
+
* shrinks below `--wr-table-scroll-min-height`. A numeric px value lets the
|
|
731
|
+
* server prerender the exact first window of a virtualized table.
|
|
732
|
+
* @default 480
|
|
686
733
|
*/
|
|
687
734
|
readonly viewportHeight: import("@angular/core").InputSignal<string | number>;
|
|
688
735
|
/** Extra rows kept rendered above and below the viewport as scroll headroom. @default 6 */
|
|
@@ -731,16 +778,21 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
731
778
|
*/
|
|
732
779
|
private readonly pins;
|
|
733
780
|
/**
|
|
734
|
-
* Every
|
|
735
|
-
*
|
|
736
|
-
*
|
|
737
|
-
*
|
|
738
|
-
*
|
|
739
|
-
*
|
|
740
|
-
*
|
|
781
|
+
* Every template the content declares, registered or not. An unknown
|
|
782
|
+
* `[wrTableCell]` on an `<ng-template>` compiles under `strictTemplates`: a
|
|
783
|
+
* binding on a template is an input for whichever directive claims it, and
|
|
784
|
+
* the compiler reports nothing when none does. The column then shows the raw
|
|
785
|
+
* value and nothing says why, so the dev-mode check below looks for a
|
|
786
|
+
* projected `<ng-template>` no table directive picked up.
|
|
787
|
+
*
|
|
788
|
+
* The query sees more than those. `@if` / `@for` / `@switch` blocks are
|
|
789
|
+
* templates too, and it also reaches into every view made from a projected
|
|
790
|
+
* template, so each rendered cell adds the blocks inside it.
|
|
741
791
|
*/
|
|
742
792
|
private readonly projectedTemplates;
|
|
793
|
+
private readonly hostEl;
|
|
743
794
|
constructor();
|
|
795
|
+
private setOverflow;
|
|
744
796
|
private measurePins;
|
|
745
797
|
/**
|
|
746
798
|
* Sticky `inset-inline-start` offset (px) for a `pin: 'left'` column, else `null`.
|
|
@@ -754,6 +806,16 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
754
806
|
protected leftPin(key: string): number | null;
|
|
755
807
|
/** Sticky `inset-inline-end` offset (px) for a `pin: 'right'` column, else `null`. See {@link leftPin}. */
|
|
756
808
|
protected rightPin(key: string): number | null;
|
|
809
|
+
private readonly hasPins;
|
|
810
|
+
/**
|
|
811
|
+
* Whether columns are hidden past the start and the end of the scroll area,
|
|
812
|
+
* the host's `wr-table--overflow-start` / `--overflow-end`. Only a table with
|
|
813
|
+
* a pinned column measures it.
|
|
814
|
+
*/
|
|
815
|
+
protected readonly overflow: import("@angular/core").WritableSignal<{
|
|
816
|
+
start: boolean;
|
|
817
|
+
end: boolean;
|
|
818
|
+
}>;
|
|
757
819
|
/** Whether `key` is the inner-edge pinned column on `side` (carries the shadow). */
|
|
758
820
|
protected isPinEdge(key: string, side: 'left' | 'right'): boolean;
|
|
759
821
|
/**
|
|
@@ -809,6 +871,8 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
809
871
|
private static readonly FALLBACK_VIEWPORT_PX;
|
|
810
872
|
/** The `.wr-table__scroll` div (always in the template; only read when virtual). */
|
|
811
873
|
private readonly scrollEl;
|
|
874
|
+
private readonly headEl;
|
|
875
|
+
private readonly footEl;
|
|
812
876
|
/** Live vertical scroll offset (px); 0 on the server / before first scroll. */
|
|
813
877
|
private readonly scrollTop;
|
|
814
878
|
/** Measured viewport clientHeight (px); 0 until the browser observer fires. */
|
|
@@ -823,8 +887,16 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
823
887
|
protected readonly effRowH: import("@angular/core").Signal<number>;
|
|
824
888
|
/** Deterministic viewport px for SSR + first paint (numeric height, else fallback). */
|
|
825
889
|
private readonly fallbackViewportPx;
|
|
826
|
-
/**
|
|
827
|
-
protected readonly
|
|
890
|
+
/** The table scrolls vertically inside `.wr-table__scroll`, under a sticky header. */
|
|
891
|
+
protected readonly scrollable: import("@angular/core").Signal<boolean>;
|
|
892
|
+
protected readonly fillsParent: import("@angular/core").Signal<boolean>;
|
|
893
|
+
/** `viewportHeight` as the value of `--wr-table-scroll-height`; `null` leaves the hook to the stylesheet. */
|
|
894
|
+
protected readonly scrollHeight: import("@angular/core").Signal<string | null>;
|
|
895
|
+
/** Measured heights (px) of the sticky header and footer, which `scroll-padding` keeps clear; `null` until measured. */
|
|
896
|
+
protected readonly stickyEdges: import("@angular/core").WritableSignal<{
|
|
897
|
+
head: number | null;
|
|
898
|
+
foot: number | null;
|
|
899
|
+
}>;
|
|
828
900
|
/** Rendered window [start,end) + spacer pads (px). Pure math, O(1) per scroll frame. */
|
|
829
901
|
protected readonly virtualWindow: import("@angular/core").Signal<{
|
|
830
902
|
start: number;
|
|
@@ -865,8 +937,13 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
865
937
|
* swept in, which keeps the checkbox honest about what it just did.
|
|
866
938
|
*/
|
|
867
939
|
protected readonly pageRowKeys: import("@angular/core").Signal<readonly unknown[]>;
|
|
940
|
+
/**
|
|
941
|
+
* The header select-all's keys: {@link pageRowKeys}, or under
|
|
942
|
+
* `selectAllScope="all"` the keys every page would put on screen.
|
|
943
|
+
*/
|
|
944
|
+
protected readonly selectAllKeys: import("@angular/core").Signal<ReadonlySet<unknown>>;
|
|
868
945
|
protected isRowSelected(row: Record<string, unknown>): boolean;
|
|
869
|
-
/** Every
|
|
946
|
+
/** Every row in the select-all scope selected (drives the header checkbox). */
|
|
870
947
|
protected readonly allSelected: import("@angular/core").Signal<boolean>;
|
|
871
948
|
/** Some but not all selected (drives the header indeterminate). */
|
|
872
949
|
protected readonly someSelected: import("@angular/core").Signal<boolean>;
|
|
@@ -955,6 +1032,7 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
955
1032
|
/** Total rendered columns (data + leading), for detail-row / empty colspans. */
|
|
956
1033
|
protected readonly totalCols: import("@angular/core").Signal<number>;
|
|
957
1034
|
protected expandTemplate(): TemplateRef<WrTableExpandContext> | undefined;
|
|
1035
|
+
private readonly expandedSet;
|
|
958
1036
|
protected isExpanded(row: Record<string, unknown>): boolean;
|
|
959
1037
|
protected toggleExpand(row: Record<string, unknown>): void;
|
|
960
1038
|
protected expandContext(row: Record<string, unknown>): WrTableExpandContext;
|
|
@@ -1089,6 +1167,11 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
1089
1167
|
"required": false;
|
|
1090
1168
|
"isSignal": true;
|
|
1091
1169
|
};
|
|
1170
|
+
"selectAllScope": {
|
|
1171
|
+
"alias": "selectAllScope";
|
|
1172
|
+
"required": false;
|
|
1173
|
+
"isSignal": true;
|
|
1174
|
+
};
|
|
1092
1175
|
"rowClass": {
|
|
1093
1176
|
"alias": "rowClass";
|
|
1094
1177
|
"required": false;
|
|
@@ -1199,6 +1282,11 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
1199
1282
|
"required": false;
|
|
1200
1283
|
"isSignal": true;
|
|
1201
1284
|
};
|
|
1285
|
+
"paginationSize": {
|
|
1286
|
+
"alias": "paginationSize";
|
|
1287
|
+
"required": false;
|
|
1288
|
+
"isSignal": true;
|
|
1289
|
+
};
|
|
1202
1290
|
"page": {
|
|
1203
1291
|
"alias": "page";
|
|
1204
1292
|
"required": false;
|
|
@@ -1219,6 +1307,11 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
1219
1307
|
"required": false;
|
|
1220
1308
|
"isSignal": true;
|
|
1221
1309
|
};
|
|
1310
|
+
"stickyHeader": {
|
|
1311
|
+
"alias": "stickyHeader";
|
|
1312
|
+
"required": false;
|
|
1313
|
+
"isSignal": true;
|
|
1314
|
+
};
|
|
1222
1315
|
"viewportHeight": {
|
|
1223
1316
|
"alias": "viewportHeight";
|
|
1224
1317
|
"required": false;
|
|
@@ -1258,7 +1351,7 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
1258
1351
|
* </wr-table>
|
|
1259
1352
|
* ```
|
|
1260
1353
|
*/
|
|
1261
|
-
export declare class WrTableCell<T extends WrTableRow =
|
|
1354
|
+
export declare class WrTableCell<T extends WrTableRow = WrSafeAny, K extends string = string> {
|
|
1262
1355
|
/** Column key the template applies to. */
|
|
1263
1356
|
readonly columnKey: import("@angular/core").InputSignal<K>;
|
|
1264
1357
|
/**
|
|
@@ -1270,7 +1363,7 @@ export declare class WrTableCell<T extends WrTableRow = SafeAny, K extends strin
|
|
|
1270
1363
|
/**
|
|
1271
1364
|
* Types the template's `let-` variables under `strictTemplates`.
|
|
1272
1365
|
*
|
|
1273
|
-
* `T` defaults to `
|
|
1366
|
+
* `T` defaults to `WrSafeAny` for the reason `WrOptionLeading` gives: a
|
|
1274
1367
|
* template without `[wrTableCellOf]` has nothing to infer the row from, and
|
|
1275
1368
|
* narrowed to `unknown` every `row.email` would stop compiling. With the
|
|
1276
1369
|
* input bound, `K` is the key the attribute names, so `let-value` is that
|
|
@@ -1470,4 +1563,48 @@ export declare class WrTableFilter {
|
|
|
1470
1563
|
"selectionChange": "selectionChange";
|
|
1471
1564
|
}, never, never, true, never>;
|
|
1472
1565
|
}
|
|
1473
|
-
|
|
1566
|
+
/**
|
|
1567
|
+
* Reads the column `key` off a row as the value `wrSortRows` compares.
|
|
1568
|
+
*
|
|
1569
|
+
* - `null`, `undefined`, `''` and an invalid `Date` read as `''`.
|
|
1570
|
+
* - A number stays a number, and a bigint reads as one.
|
|
1571
|
+
* - A string that is a finite number reads as that number, so `'10'` sorts
|
|
1572
|
+
* after `'9'`. A blank string stays a string: it is not `0`.
|
|
1573
|
+
* - A boolean reads as `0` or `1`, so `false` sorts before `true`.
|
|
1574
|
+
* - A `Date` reads as its timestamp.
|
|
1575
|
+
* - Anything else reads as `String(value)`.
|
|
1576
|
+
*
|
|
1577
|
+
* @example
|
|
1578
|
+
* ```ts
|
|
1579
|
+
* wrReadField({ qty: '10' }, 'qty'); // 10
|
|
1580
|
+
* wrReadField({ qty: null }, 'qty'); // ''
|
|
1581
|
+
* ```
|
|
1582
|
+
*
|
|
1583
|
+
* @param item The row.
|
|
1584
|
+
* @param key The column key, a property of the row.
|
|
1585
|
+
*/
|
|
1586
|
+
export declare function wrReadField<T>(item: T, key: string): string | number;
|
|
1587
|
+
/**
|
|
1588
|
+
* Sorts rows by the sort state `<wr-table>` holds. The table draws the arrows
|
|
1589
|
+
* and never reorders `items`, so the host sorts them.
|
|
1590
|
+
*
|
|
1591
|
+
* Entries apply in array order: the first decides, later ones break ties. An
|
|
1592
|
+
* entry with a `null` direction is skipped. Within a column, empty values come
|
|
1593
|
+
* first, then numbers, then text in code-unit order; `desc` reverses all of
|
|
1594
|
+
* it. Rows equal on every key keep their input order.
|
|
1595
|
+
*
|
|
1596
|
+
* Returns `rows` itself when there is nothing to sort, and a sorted copy
|
|
1597
|
+
* otherwise: the input is never mutated.
|
|
1598
|
+
*
|
|
1599
|
+
* @example
|
|
1600
|
+
* ```ts
|
|
1601
|
+
* protected readonly sort = signal<readonly WrTableSortState[]>([]);
|
|
1602
|
+
* protected readonly rows = computed(() => wrSortRows(this.source(), this.sort()));
|
|
1603
|
+
* ```
|
|
1604
|
+
*
|
|
1605
|
+
* @param rows The rows to sort.
|
|
1606
|
+
* @param sort The table's `sort` state.
|
|
1607
|
+
* @param accessor Reads the value of a key; defaults to `wrReadField`.
|
|
1608
|
+
*/
|
|
1609
|
+
export declare function wrSortRows<T>(rows: readonly T[], sort: readonly WrTableSortState[], accessor?: WrTableSortAccessor<T>): readonly T[];
|
|
1610
|
+
export type { WrTableCellContext, WrTableColumn, WrTableColumnAlign, WrTableColumns, WrTableCsvOptions, WrTableExpandContext, WrTableFilterChange, WrTableFilterItem, WrTableGroupContext, WrTableRow, WrTableRowClass, WrTableSortAccessor, WrTableSortDirection, WrTableSortState, WrTableSummary, WrTableSummaryContext };
|
package/types/ngwr-tabs.d.ts
CHANGED
|
@@ -134,6 +134,14 @@ interface WrTabsRoutingAdapter {
|
|
|
134
134
|
*/
|
|
135
135
|
navigate(commands: string | readonly string[], event: MouseEvent): void;
|
|
136
136
|
}
|
|
137
|
+
/**
|
|
138
|
+
* @license
|
|
139
|
+
*
|
|
140
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
141
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
142
|
+
*/
|
|
143
|
+
/** Size variant of `<wr-tabs>`. */
|
|
144
|
+
type WrTabsSize = 'sm' | 'md' | 'lg';
|
|
137
145
|
/**
|
|
138
146
|
* Tabbed container. Two modes depending on the child `<wr-tab>`
|
|
139
147
|
* definitions:
|
|
@@ -169,7 +177,7 @@ export declare class WrTabs implements WrTabsContext {
|
|
|
169
177
|
/** Two-way bindable active tab key (content mode). */
|
|
170
178
|
readonly active: import("@angular/core").ModelSignal<string | null>;
|
|
171
179
|
/** Visual size variant. */
|
|
172
|
-
readonly size: import("@angular/core").InputSignal<
|
|
180
|
+
readonly size: import("@angular/core").InputSignal<WrTabsSize>;
|
|
173
181
|
protected readonly tabs: import("@angular/core").Signal<readonly WrTab[]>;
|
|
174
182
|
private readonly dir;
|
|
175
183
|
/**
|
|
@@ -267,4 +275,4 @@ export declare const WR_TABS: InjectionToken<WrTabsContext>;
|
|
|
267
275
|
* which is what keeps `@angular/router` out of a content-only strip.
|
|
268
276
|
*/
|
|
269
277
|
export declare const WR_TABS_ROUTING: InjectionToken<WrTabsRoutingAdapter>;
|
|
270
|
-
export type { WrTabsContext, WrTabsRoutingAdapter };
|
|
278
|
+
export type { WrTabsContext, WrTabsRoutingAdapter, WrTabsSize };
|
|
@@ -50,13 +50,17 @@ export declare class WrToastHarness extends ComponentHarness {
|
|
|
50
50
|
/** `'assertive'` for danger and warning, `'polite'` otherwise. */
|
|
51
51
|
getLiveLevel(): Promise<string | null>;
|
|
52
52
|
/** Whether the toast offers a dismiss button. */
|
|
53
|
-
|
|
53
|
+
isClosable(): Promise<boolean>;
|
|
54
54
|
/** Whether the toast offers a copy button. */
|
|
55
55
|
hasCopyAction(): Promise<boolean>;
|
|
56
|
-
/** Click the dismiss button. Throws on a toast shown `
|
|
56
|
+
/** Click the dismiss button. Throws on a toast shown `closable: false`. */
|
|
57
57
|
dismiss(): Promise<void>;
|
|
58
58
|
/** Click the copy button. Throws unless the toast was shown `showCopy: true`. */
|
|
59
59
|
copy(): Promise<void>;
|
|
60
|
+
/** The action button's text, or `null` for a toast shown without an `action`. */
|
|
61
|
+
getActionLabel(): Promise<string | null>;
|
|
62
|
+
/** Click the action button. Throws on a toast shown without an `action`. */
|
|
63
|
+
runAction(): Promise<void>;
|
|
60
64
|
/** Whether the auto-dismiss progress bar is showing. */
|
|
61
65
|
hasProgressBar(): Promise<boolean>;
|
|
62
66
|
/** Hover the toast — which is what pauses its auto-dismiss timer. */
|
package/types/ngwr-toast.d.ts
CHANGED
|
@@ -15,6 +15,22 @@ type WrToastType = 'info' | 'success' | 'warning' | 'danger';
|
|
|
15
15
|
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
16
16
|
*/
|
|
17
17
|
type WrToastPosition = 'top-start' | 'top' | 'top-end' | 'bottom-start' | 'bottom' | 'bottom-end';
|
|
18
|
+
/**
|
|
19
|
+
* @license
|
|
20
|
+
*
|
|
21
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
22
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* A button on a toast: "Undo" on "Item deleted", "Retry" on "Upload failed".
|
|
26
|
+
* Pressing it closes the toast and calls `run`, once.
|
|
27
|
+
*/
|
|
28
|
+
interface WrToastAction {
|
|
29
|
+
/** The button's text. The app supplies it: the library ships no copy for it. */
|
|
30
|
+
readonly label: string;
|
|
31
|
+
/** Called once when the button is pressed, after the toast has closed. */
|
|
32
|
+
readonly run: () => void;
|
|
33
|
+
}
|
|
18
34
|
/**
|
|
19
35
|
* Per-toast options passed to {@link WrToast.show}. Any field
|
|
20
36
|
* omitted falls back to the global {@link WrToastConfig}.
|
|
@@ -28,8 +44,14 @@ interface WrToastOptions {
|
|
|
28
44
|
readonly message: string;
|
|
29
45
|
/** Auto-dismiss after N ms. `0` disables auto-dismiss. Default from global config. */
|
|
30
46
|
readonly duration?: number;
|
|
47
|
+
/**
|
|
48
|
+
* A text button beside the message, such as "Undo". Pressing it closes the
|
|
49
|
+
* toast and calls `run`. The countdown still runs, and holds while the pointer
|
|
50
|
+
* or focus is on the toast: pass a longer `duration` when the action matters.
|
|
51
|
+
*/
|
|
52
|
+
readonly action?: WrToastAction;
|
|
31
53
|
/** Show a close (×) button. @default true */
|
|
32
|
-
readonly
|
|
54
|
+
readonly closable?: boolean;
|
|
33
55
|
/**
|
|
34
56
|
* Corner this toast opens in. The whole stack shares one host, so this is
|
|
35
57
|
* not per-toast: passing a different corner relocates the toasts already on
|
|
@@ -139,6 +161,7 @@ export declare class WrToastRef {
|
|
|
139
161
|
* toast.show({ type: 'success', title: 'Saved', message: 'Profile updated.' });
|
|
140
162
|
* toast.show({ type: 'danger', message: 'Network error', duration: 0 });
|
|
141
163
|
* toast.show({ message: 'Permalink copied', position: 'bottom', showCopy: true });
|
|
164
|
+
* toast.show({ message: 'Item deleted', action: { label: 'Undo', run: () => restore() } });
|
|
142
165
|
* ```
|
|
143
166
|
*
|
|
144
167
|
* @see https://ngwr.dev/reference/components/toast
|
|
@@ -167,6 +190,11 @@ export declare class WrToast {
|
|
|
167
190
|
show(options: WrToastOptions): WrToastRef;
|
|
168
191
|
/** Dismiss a single toast by id. */
|
|
169
192
|
dismiss(id: number): void;
|
|
193
|
+
/**
|
|
194
|
+
* Closes first: a second press finds no entry, so `run` cannot fire twice,
|
|
195
|
+
* and a `run` that throws still leaves the toast closed.
|
|
196
|
+
*/
|
|
197
|
+
private runAction;
|
|
170
198
|
/** Dismiss every visible toast. Wired to the host's "Close all" button. */
|
|
171
199
|
dismissAll(): void;
|
|
172
200
|
/** Change the corner the stack opens in. Affects future toasts. */
|
|
@@ -230,7 +258,7 @@ export declare class WrToast {
|
|
|
230
258
|
}
|
|
231
259
|
/**
|
|
232
260
|
* Registers a global {@link WrToastConfig} for {@link WrToast}, as a feature of
|
|
233
|
-
* `provideWr()`. Any field you omit falls back to {@link
|
|
261
|
+
* `provideWr()`. Any field you omit falls back to {@link DEFAULT_WR_TOAST_CONFIG};
|
|
234
262
|
* the `labels` sub-object is merged separately so you can override a single
|
|
235
263
|
* string at a time (useful for i18n).
|
|
236
264
|
*
|
|
@@ -268,11 +296,11 @@ export declare function withToast(config: Partial<Omit<WrToastConfig, 'labels'>>
|
|
|
268
296
|
* Merged shallowly with the consumer's overrides (the `labels` sub-object is
|
|
269
297
|
* merged separately so callers can override one string at a time).
|
|
270
298
|
*/
|
|
271
|
-
export declare const
|
|
299
|
+
export declare const DEFAULT_WR_TOAST_CONFIG: WrToastConfig;
|
|
272
300
|
/**
|
|
273
301
|
* Holds the global {@link WrToastConfig} used by {@link WrToast}.
|
|
274
|
-
* The default factory returns {@link
|
|
302
|
+
* The default factory returns {@link DEFAULT_WR_TOAST_CONFIG} so the service
|
|
275
303
|
* works out of the box; override via `provideWr(withToast(...))`.
|
|
276
304
|
*/
|
|
277
305
|
export declare const WR_TOAST_CONFIG: InjectionToken<WrToastConfig>;
|
|
278
|
-
export type { WrToastConfig, WrToastMode, WrToastOptions, WrToastPosition, WrToastType };
|
|
306
|
+
export type { WrToastAction, WrToastConfig, WrToastMode, WrToastOptions, WrToastPosition, WrToastType };
|
package/types/ngwr-transfer.d.ts
CHANGED
|
@@ -150,7 +150,12 @@ export declare class WrTransfer implements FormValueControl<readonly unknown[]>
|
|
|
150
150
|
private readonly selected;
|
|
151
151
|
private readonly valueSet;
|
|
152
152
|
protected readonly source: import("@angular/core").Signal<PaneState>;
|
|
153
|
+
/** The first item per value, which is the one a scan of `items` would find. */
|
|
154
|
+
private readonly itemByValue;
|
|
155
|
+
private readonly targetRows;
|
|
153
156
|
protected readonly target: import("@angular/core").Signal<PaneState>;
|
|
157
|
+
/** Values no item matches. Equal by content, so its reader runs once per distinct set. */
|
|
158
|
+
private readonly orphans;
|
|
154
159
|
/**
|
|
155
160
|
* Say something when `value` holds a value no `items` entry matches.
|
|
156
161
|
*
|
package/types/ngwr-tree.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ interface WrTreeNode<TId = string> {
|
|
|
15
15
|
readonly children?: readonly WrTreeNode<TId>[];
|
|
16
16
|
readonly disabled?: boolean;
|
|
17
17
|
}
|
|
18
|
+
/** Trigger size for an overlay {@link WrTree} — shares the `--wr-control-*` contract. */
|
|
19
|
+
type WrTreeSize = 'sm' | 'md' | 'lg';
|
|
18
20
|
/** Selection mode for {@link WrTree}. */
|
|
19
21
|
type WrTreeSelectionMode = 'none' | 'single' | 'multi';
|
|
20
22
|
interface FlatNode<TId> {
|
|
@@ -108,6 +110,8 @@ export declare class WrTree<TId = string> implements FormValueControl<unknown> {
|
|
|
108
110
|
protected readonly fieldAria: import("ngwr/form").WrFormFieldAria;
|
|
109
111
|
/** Render shape. @default 'inline' */
|
|
110
112
|
readonly openOn: import("@angular/core").InputSignal<"inline" | "overlay">;
|
|
113
|
+
/** Trigger size — shares the `--wr-control-*` contract. The panel keeps its size. @default 'md' */
|
|
114
|
+
readonly size: import("@angular/core").InputSignal<WrTreeSize>;
|
|
111
115
|
/** Placeholder shown on the trigger when no node is selected. */
|
|
112
116
|
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
113
117
|
/**
|
|
@@ -186,6 +190,10 @@ export declare class WrTree<TId = string> implements FormValueControl<unknown> {
|
|
|
186
190
|
readonly value: import("@angular/core").ModelSignal<unknown>;
|
|
187
191
|
/** Emitted on blur so a bound field can mark itself touched. */
|
|
188
192
|
readonly touch: import("@angular/core").OutputEmitterRef<void>;
|
|
193
|
+
/** Fires after the overlay panel opens. */
|
|
194
|
+
readonly opened: import("@angular/core").OutputEmitterRef<void>;
|
|
195
|
+
/** Fires after the overlay panel closes. */
|
|
196
|
+
readonly closed: import("@angular/core").OutputEmitterRef<void>;
|
|
189
197
|
private readonly host;
|
|
190
198
|
private readonly overlay;
|
|
191
199
|
private readonly outsideClick;
|
|
@@ -253,7 +261,7 @@ export declare class WrTree<TId = string> implements FormValueControl<unknown> {
|
|
|
253
261
|
protected readonly hiddenChipCount: import("@angular/core").Signal<number>;
|
|
254
262
|
protected readonly singleLabel: import("@angular/core").Signal<string | null>;
|
|
255
263
|
/** Overlay open state. Only meaningful when `openOn='overlay'`. */
|
|
256
|
-
protected readonly
|
|
264
|
+
protected readonly isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
257
265
|
/** Trigger / panel id for `aria-controls`. */
|
|
258
266
|
protected readonly panelId: string;
|
|
259
267
|
protected readonly classes: import("@angular/core").Signal<string>;
|
|
@@ -322,6 +330,10 @@ export declare class WrTree<TId = string> implements FormValueControl<unknown> {
|
|
|
322
330
|
* mode that is the trigger, and the panel stays shut.
|
|
323
331
|
*/
|
|
324
332
|
focus(options?: FocusOptions): void;
|
|
333
|
+
/** Open the overlay panel, as the trigger does. Refused inline, and while disabled or read-only. */
|
|
334
|
+
open(): void;
|
|
335
|
+
/** Close the overlay panel. */
|
|
336
|
+
close(): void;
|
|
325
337
|
protected onTriggerClick(): void;
|
|
326
338
|
/** Trigger blur — mark the bound field touched. */
|
|
327
339
|
/**
|
|
@@ -374,6 +386,7 @@ export declare class WrTree<TId = string> implements FormValueControl<unknown> {
|
|
|
374
386
|
private focusIndex;
|
|
375
387
|
private collectExpandableIds;
|
|
376
388
|
private openOverlay;
|
|
389
|
+
/** `notify: false` is the destroy path: an output cannot emit from a destroyed view. */
|
|
377
390
|
private closeOverlay;
|
|
378
391
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrTree<any>, never>;
|
|
379
392
|
static ɵcmp: i0.ɵɵComponentDeclaration<WrTree<any>, "wr-tree", never, {
|
|
@@ -412,6 +425,11 @@ export declare class WrTree<TId = string> implements FormValueControl<unknown> {
|
|
|
412
425
|
"required": false;
|
|
413
426
|
"isSignal": true;
|
|
414
427
|
};
|
|
428
|
+
"size": {
|
|
429
|
+
"alias": "size";
|
|
430
|
+
"required": false;
|
|
431
|
+
"isSignal": true;
|
|
432
|
+
};
|
|
415
433
|
"placeholder": {
|
|
416
434
|
"alias": "placeholder";
|
|
417
435
|
"required": false;
|
|
@@ -472,6 +490,8 @@ export declare class WrTree<TId = string> implements FormValueControl<unknown> {
|
|
|
472
490
|
"expanded": "expandedChange";
|
|
473
491
|
"value": "valueChange";
|
|
474
492
|
"touch": "touch";
|
|
493
|
+
"opened": "opened";
|
|
494
|
+
"closed": "closed";
|
|
475
495
|
}, never, never, true, never>;
|
|
476
496
|
}
|
|
477
|
-
export type { WrTreeNode, WrTreeSelectionMode };
|
|
497
|
+
export type { WrTreeNode, WrTreeSelectionMode, WrTreeSize };
|