ngwr 16.2.0 → 16.3.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/badge/styles/_tag.scss +73 -1
- package/calendar/styles/_index.scss +22 -0
- package/cascader/styles/_rules.scss +7 -0
- package/color-picker/styles/_index.scss +21 -0
- package/date-picker/styles/_index.scss +19 -0
- package/dropdown/styles/_index.scss +13 -19
- package/fesm2022/ngwr-affix.mjs +3 -3
- package/fesm2022/ngwr-alert-testing.mjs +70 -0
- package/fesm2022/ngwr-alert-testing.mjs.map +1 -0
- package/fesm2022/ngwr-alert.mjs +3 -3
- package/fesm2022/ngwr-anchor.mjs +17 -6
- package/fesm2022/ngwr-anchor.mjs.map +1 -1
- package/fesm2022/ngwr-animations-aurora.mjs +3 -3
- package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-click-sparks.mjs +3 -3
- package/fesm2022/ngwr-animations-confetti.mjs +3 -3
- package/fesm2022/ngwr-animations-decode.mjs +3 -3
- package/fesm2022/ngwr-animations-destruct.mjs +3 -3
- package/fesm2022/ngwr-animations-dot-grid.mjs +3 -3
- package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
- package/fesm2022/ngwr-animations-flow-lines.mjs +3 -3
- package/fesm2022/ngwr-animations-fluid-cursor.mjs +3 -3
- package/fesm2022/ngwr-animations-glitch.mjs +3 -3
- package/fesm2022/ngwr-animations-glow-border.mjs +3 -3
- package/fesm2022/ngwr-animations-gradient-flow.mjs +3 -3
- package/fesm2022/ngwr-animations-marquee.mjs +3 -3
- package/fesm2022/ngwr-animations-orbit.mjs +3 -3
- package/fesm2022/ngwr-animations-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-ripple-grid.mjs +3 -3
- package/fesm2022/ngwr-animations-rotate-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-shimmer.mjs +3 -3
- package/fesm2022/ngwr-animations-spotlight.mjs +3 -3
- package/fesm2022/ngwr-animations-thread-lines.mjs +3 -3
- package/fesm2022/ngwr-animations-tilt.mjs +3 -3
- package/fesm2022/ngwr-animations-typewriter.mjs +3 -3
- package/fesm2022/ngwr-avatar.mjs +3 -3
- package/fesm2022/ngwr-back-top.mjs +3 -3
- package/fesm2022/ngwr-badge.mjs +129 -11
- package/fesm2022/ngwr-badge.mjs.map +1 -1
- package/fesm2022/ngwr-breadcrumbs-testing.mjs +83 -0
- package/fesm2022/ngwr-breadcrumbs-testing.mjs.map +1 -0
- package/fesm2022/ngwr-breadcrumbs.mjs +8 -8
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-burger-testing.mjs +45 -0
- package/fesm2022/ngwr-burger-testing.mjs.map +1 -0
- package/fesm2022/ngwr-burger.mjs +3 -3
- package/fesm2022/ngwr-button.mjs +6 -6
- package/fesm2022/ngwr-calendar-testing.mjs +18 -0
- package/fesm2022/ngwr-calendar-testing.mjs.map +1 -1
- package/fesm2022/ngwr-calendar.mjs +500 -73
- package/fesm2022/ngwr-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-card.mjs +9 -9
- package/fesm2022/ngwr-carousel.mjs +6 -6
- package/fesm2022/ngwr-cascader.mjs +37 -16
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart.mjs +5 -4
- package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-boxplot-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-bullet-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -3
- package/fesm2022/ngwr-charts-candlestick-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-chart-legend.mjs +26 -11
- package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
- package/fesm2022/ngwr-charts-core.mjs +3 -3
- package/fesm2022/ngwr-charts-donut-chart.mjs +5 -4
- package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-funnel-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-gauge.mjs +3 -3
- package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-line-chart-testing.mjs +3 -2
- package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-line-chart.mjs +17 -7
- package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group.mjs +5 -4
- package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart.mjs +5 -4
- package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-scatter-chart.mjs +5 -4
- package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-sparkline.mjs +3 -3
- package/fesm2022/ngwr-charts-treemap-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-waterfall-chart.mjs +3 -3
- package/fesm2022/ngwr-checkbox.mjs +6 -6
- package/fesm2022/ngwr-clipboard.mjs +3 -3
- package/fesm2022/ngwr-collapse.mjs +9 -9
- package/fesm2022/ngwr-color-picker-testing.mjs +11 -1
- package/fesm2022/ngwr-color-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker.mjs +153 -37
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-command-palette.mjs +3 -3
- package/fesm2022/ngwr-comment.mjs +10 -6
- package/fesm2022/ngwr-comment.mjs.map +1 -1
- package/fesm2022/ngwr-compare-testing.mjs +84 -0
- package/fesm2022/ngwr-compare-testing.mjs.map +1 -0
- package/fesm2022/ngwr-compare.mjs +3 -3
- package/fesm2022/ngwr-context-menu.mjs +12 -12
- package/fesm2022/ngwr-cookie.mjs +3 -3
- package/fesm2022/ngwr-copy-value.mjs +3 -3
- package/fesm2022/ngwr-counter.mjs +6 -6
- package/fesm2022/ngwr-date-picker-testing.mjs +30 -4
- package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +342 -69
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp.mjs +3 -3
- package/fesm2022/ngwr-date.mjs +59 -8
- package/fesm2022/ngwr-date.mjs.map +1 -1
- package/fesm2022/ngwr-density.mjs +6 -6
- package/fesm2022/ngwr-descriptions.mjs +6 -6
- package/fesm2022/ngwr-dialog.mjs +18 -18
- package/fesm2022/ngwr-directives.mjs +15 -15
- package/fesm2022/ngwr-divider.mjs +3 -3
- package/fesm2022/ngwr-drawer.mjs +51 -29
- package/fesm2022/ngwr-drawer.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown-testing.mjs +11 -3
- package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +52 -95
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +4 -3
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-empty.mjs +3 -3
- package/fesm2022/ngwr-event-calendar.mjs +186 -33
- package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload-testing.mjs +34 -2
- package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload.mjs +274 -15
- package/fesm2022/ngwr-file-upload.mjs.map +1 -1
- package/fesm2022/ngwr-form.mjs +9 -9
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-graph-testing.mjs +3 -0
- package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
- package/fesm2022/ngwr-graph.mjs +102 -42
- package/fesm2022/ngwr-graph.mjs.map +1 -1
- package/fesm2022/ngwr-hotkey.mjs +6 -6
- package/fesm2022/ngwr-i18n-ar.mjs +19 -4
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +19 -4
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +19 -4
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +19 -4
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +19 -4
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +19 -4
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +19 -4
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +19 -4
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +19 -4
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +19 -4
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +19 -4
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +19 -4
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +19 -4
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +19 -4
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +19 -4
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +19 -4
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +19 -4
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +19 -4
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +19 -4
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +19 -4
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +19 -4
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +19 -4
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +9 -9
- package/fesm2022/ngwr-icon.mjs +6 -6
- package/fesm2022/ngwr-image-cropper.mjs +3 -3
- package/fesm2022/ngwr-input-number-testing.mjs +11 -0
- package/fesm2022/ngwr-input-number-testing.mjs.map +1 -1
- package/fesm2022/ngwr-input-number.mjs +68 -7
- package/fesm2022/ngwr-input-number.mjs.map +1 -1
- package/fesm2022/ngwr-input-otp.mjs +23 -3
- package/fesm2022/ngwr-input-otp.mjs.map +1 -1
- package/fesm2022/ngwr-input-testing.mjs +24 -1
- package/fesm2022/ngwr-input-testing.mjs.map +1 -1
- package/fesm2022/ngwr-input.mjs +152 -36
- package/fesm2022/ngwr-input.mjs.map +1 -1
- package/fesm2022/ngwr-keyboard.mjs +3 -3
- package/fesm2022/ngwr-knob.mjs +3 -3
- package/fesm2022/ngwr-layout.mjs +15 -15
- package/fesm2022/ngwr-lightbox.mjs +8 -8
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +8 -8
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-load-state.mjs +15 -15
- package/fesm2022/ngwr-loading-bar.mjs +6 -6
- package/fesm2022/ngwr-mention.mjs +6 -6
- package/fesm2022/ngwr-meta.mjs +6 -6
- package/fesm2022/ngwr-overlay.mjs +175 -13
- package/fesm2022/ngwr-overlay.mjs.map +1 -1
- package/fesm2022/ngwr-page-header.mjs +3 -3
- package/fesm2022/ngwr-pagination.mjs +5 -3
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +31 -29
- package/fesm2022/ngwr-pipes.mjs.map +1 -1
- package/fesm2022/ngwr-platform.mjs +9 -9
- package/fesm2022/ngwr-popconfirm-testing.mjs +5 -2
- package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm.mjs +44 -63
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-popover-testing.mjs +7 -1
- package/fesm2022/ngwr-popover-testing.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +58 -156
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-progress.mjs +50 -9
- package/fesm2022/ngwr-progress.mjs.map +1 -1
- package/fesm2022/ngwr-pull-to-refresh-testing.mjs +57 -0
- package/fesm2022/ngwr-pull-to-refresh-testing.mjs.map +1 -0
- package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
- package/fesm2022/ngwr-qr.mjs +3 -3
- package/fesm2022/ngwr-radio.mjs +6 -6
- package/fesm2022/ngwr-rating.mjs +3 -3
- package/fesm2022/ngwr-resizable-testing.mjs +113 -0
- package/fesm2022/ngwr-resizable-testing.mjs.map +1 -0
- package/fesm2022/ngwr-resizable.mjs +3 -3
- package/fesm2022/ngwr-result.mjs +12 -12
- package/fesm2022/ngwr-schema-form-testing.mjs +336 -0
- package/fesm2022/ngwr-schema-form-testing.mjs.map +1 -0
- package/fesm2022/ngwr-schema-form.mjs +415 -19
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-scroll.mjs +3 -3
- package/fesm2022/ngwr-segmented.mjs +3 -3
- package/fesm2022/ngwr-select-testing.mjs +19 -0
- package/fesm2022/ngwr-select-testing.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +263 -83
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-sidebar-testing.mjs +176 -0
- package/fesm2022/ngwr-sidebar-testing.mjs.map +1 -0
- package/fesm2022/ngwr-sidebar.mjs +3 -3
- package/fesm2022/ngwr-skeleton.mjs +3 -3
- package/fesm2022/ngwr-slider-testing.mjs +6 -0
- package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
- package/fesm2022/ngwr-slider.mjs +21 -3
- package/fesm2022/ngwr-slider.mjs.map +1 -1
- package/fesm2022/ngwr-sortable-list.mjs +29 -12
- package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
- package/fesm2022/ngwr-speed-dial.mjs +3 -3
- package/fesm2022/ngwr-spinner.mjs +3 -3
- package/fesm2022/ngwr-splitter.mjs +3 -3
- package/fesm2022/ngwr-statistic.mjs +9 -9
- package/fesm2022/ngwr-stepper.mjs +42 -11
- package/fesm2022/ngwr-stepper.mjs.map +1 -1
- package/fesm2022/ngwr-storage.mjs +3 -3
- package/fesm2022/ngwr-switch.mjs +3 -3
- package/fesm2022/ngwr-table-testing.mjs +88 -2
- package/fesm2022/ngwr-table-testing.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +891 -74
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tabs-router.mjs +3 -3
- package/fesm2022/ngwr-tabs-testing.mjs +1 -1
- package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tabs.mjs +15 -10
- package/fesm2022/ngwr-tabs.mjs.map +1 -1
- package/fesm2022/ngwr-textarea-testing.mjs +11 -0
- package/fesm2022/ngwr-textarea-testing.mjs.map +1 -1
- package/fesm2022/ngwr-textarea.mjs +128 -16
- package/fesm2022/ngwr-textarea.mjs.map +1 -1
- package/fesm2022/ngwr-theme.mjs +3 -3
- package/fesm2022/ngwr-timeline.mjs +6 -6
- package/fesm2022/ngwr-toast.mjs +40 -19
- package/fesm2022/ngwr-toast.mjs.map +1 -1
- package/fesm2022/ngwr-toolbar.mjs +3 -3
- package/fesm2022/ngwr-tour.mjs +6 -6
- package/fesm2022/ngwr-transfer-testing.mjs +6 -0
- package/fesm2022/ngwr-transfer-testing.mjs.map +1 -1
- package/fesm2022/ngwr-transfer.mjs +24 -5
- package/fesm2022/ngwr-transfer.mjs.map +1 -1
- package/fesm2022/ngwr-tree-testing.mjs +62 -2
- package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +966 -78
- package/fesm2022/ngwr-tree.mjs.map +1 -1
- package/fesm2022/ngwr-typography.mjs +3 -3
- package/fesm2022/ngwr-utils-router.mjs +3 -3
- package/fesm2022/ngwr-utils.mjs +34 -1
- package/fesm2022/ngwr-utils.mjs.map +1 -1
- package/fesm2022/ngwr-version.mjs +1 -1
- package/fesm2022/ngwr-version.mjs.map +1 -1
- package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
- package/fesm2022/ngwr-window.mjs +33 -22
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/file-upload/styles/_index.scss +156 -0
- package/i18n/ar.json +21 -4
- package/i18n/cs.json +21 -4
- package/i18n/de.json +21 -4
- package/i18n/en.json +21 -4
- package/i18n/es.json +21 -4
- package/i18n/fr.json +21 -4
- package/i18n/he.json +21 -4
- package/i18n/hi.json +21 -4
- package/i18n/id.json +21 -4
- package/i18n/it.json +21 -4
- package/i18n/ja.json +21 -4
- package/i18n/ko.json +21 -4
- package/i18n/nl.json +21 -4
- package/i18n/pl.json +21 -4
- package/i18n/pt.json +21 -4
- package/i18n/ru.json +21 -4
- package/i18n/sv.json +21 -4
- package/i18n/tr.json +21 -4
- package/i18n/uk.json +21 -4
- package/i18n/vi.json +21 -4
- package/i18n/zh-TW.json +21 -4
- package/i18n/zh.json +21 -4
- package/input/styles/_index.scss +68 -1
- package/input-otp/styles/_index.scss +14 -0
- package/llms-full.txt +52 -20
- package/overlay/styles/_arrow.scss +4 -4
- package/package.json +33 -1
- package/popconfirm/styles/_index.scss +3 -11
- package/progress/styles/_index.scss +32 -0
- package/schema-form/styles/_index.scss +78 -0
- package/schematics/use/rule.js +2 -0
- package/schematics/use/symbol-map.json +4 -0
- package/select/styles/_index.scss +114 -22
- package/skills/ngwr/SKILL.md +1 -1
- package/skills/ngwr/references/catalog.md +9 -1
- package/slider/styles/_index.scss +22 -0
- package/table/styles/_index.scss +167 -3
- package/textarea/styles/_index.scss +80 -0
- package/theme/styles/_focus.scss +5 -0
- package/theme/styles/_motion.scss +5 -0
- package/transfer/styles/_index.scss +84 -0
- package/tree/styles/_index.scss +138 -5
- package/types/ngwr-alert-testing.d.ts +88 -0
- package/types/ngwr-badge.d.ts +72 -2
- package/types/ngwr-breadcrumbs-testing.d.ts +92 -0
- package/types/ngwr-burger-testing.d.ts +51 -0
- package/types/ngwr-calendar-testing.d.ts +18 -6
- package/types/ngwr-calendar.d.ts +272 -22
- package/types/ngwr-cascader.d.ts +10 -1
- package/types/ngwr-charts-chart-legend.d.ts +9 -4
- package/types/ngwr-charts-line-chart-testing.d.ts +4 -1
- package/types/ngwr-charts-line-chart.d.ts +7 -4
- package/types/ngwr-color-picker-testing.d.ts +15 -4
- package/types/ngwr-color-picker.d.ts +76 -6
- package/types/ngwr-compare-testing.d.ts +72 -0
- package/types/ngwr-date-picker-testing.d.ts +23 -8
- package/types/ngwr-date-picker.d.ts +100 -9
- package/types/ngwr-date.d.ts +71 -1
- package/types/ngwr-drawer.d.ts +9 -0
- package/types/ngwr-dropdown-testing.d.ts +20 -0
- package/types/ngwr-dropdown.d.ts +24 -6
- package/types/ngwr-event-calendar.d.ts +66 -8
- package/types/ngwr-file-upload-testing.d.ts +31 -2
- package/types/ngwr-file-upload.d.ts +148 -1
- package/types/ngwr-form.d.ts +47 -3
- package/types/ngwr-graph-testing.d.ts +8 -3
- package/types/ngwr-graph.d.ts +147 -7
- package/types/ngwr-input-number-testing.d.ts +10 -0
- package/types/ngwr-input-number.d.ts +30 -1
- package/types/ngwr-input-otp.d.ts +10 -0
- package/types/ngwr-input-testing.d.ts +30 -0
- package/types/ngwr-input.d.ts +54 -3
- package/types/ngwr-overlay.d.ts +84 -5
- package/types/ngwr-pipes.d.ts +2 -1
- package/types/ngwr-popconfirm-testing.d.ts +12 -3
- package/types/ngwr-popconfirm.d.ts +28 -3
- package/types/ngwr-popover-testing.d.ts +19 -2
- package/types/ngwr-popover.d.ts +22 -2
- package/types/ngwr-progress.d.ts +29 -1
- package/types/ngwr-pull-to-refresh-testing.d.ts +83 -0
- package/types/ngwr-resizable-testing.d.ts +116 -0
- package/types/ngwr-schema-form-testing.d.ts +260 -0
- package/types/ngwr-schema-form.d.ts +76 -6
- package/types/ngwr-select-testing.d.ts +20 -0
- package/types/ngwr-select.d.ts +112 -11
- package/types/ngwr-sidebar-testing.d.ts +176 -0
- package/types/ngwr-slider-testing.d.ts +3 -1
- package/types/ngwr-slider.d.ts +21 -1
- package/types/ngwr-sortable-list.d.ts +6 -0
- package/types/ngwr-stepper.d.ts +20 -11
- package/types/ngwr-table-testing.d.ts +70 -6
- package/types/ngwr-table.d.ts +480 -50
- package/types/ngwr-tabs-testing.d.ts +14 -17
- package/types/ngwr-tabs.d.ts +6 -0
- package/types/ngwr-textarea-testing.d.ts +10 -0
- package/types/ngwr-textarea.d.ts +48 -2
- package/types/ngwr-toast.d.ts +8 -1
- package/types/ngwr-transfer-testing.d.ts +3 -0
- package/types/ngwr-transfer.d.ts +24 -1
- package/types/ngwr-tree-testing.d.ts +65 -1
- package/types/ngwr-tree.d.ts +333 -12
- package/types/ngwr-utils.d.ts +28 -0
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr-window.d.ts +7 -4
package/types/ngwr-tree.d.ts
CHANGED
|
@@ -2,19 +2,48 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import { TemplateRef } from "@angular/core";
|
|
3
3
|
import { WrClassInput } from "ngwr/utils";
|
|
4
4
|
import { FormValueControl } from "@angular/forms/signals";
|
|
5
|
-
|
|
6
|
-
* @license
|
|
7
|
-
*
|
|
8
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
9
|
-
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
10
|
-
*/
|
|
5
|
+
import { Observable } from "rxjs";
|
|
11
6
|
/** A single node in a {@link WrTree}. Nodes are immutable. */
|
|
12
7
|
interface WrTreeNode<TId = string> {
|
|
13
8
|
readonly id: TId;
|
|
14
9
|
readonly label: string;
|
|
15
10
|
readonly children?: readonly WrTreeNode<TId>[];
|
|
11
|
+
/**
|
|
12
|
+
* The node has children it has not loaded. With `children` left undefined the
|
|
13
|
+
* row draws a toggle, and its first expand calls the tree's `loadChildren`.
|
|
14
|
+
*/
|
|
15
|
+
readonly hasChildren?: boolean;
|
|
16
16
|
readonly disabled?: boolean;
|
|
17
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Loads the children of a node that set `hasChildren`. Called once, on the
|
|
20
|
+
* first expand; the answer is cached by node id. An array, a Promise or an
|
|
21
|
+
* Observable (its first value is taken), as `wr-select`'s search loader.
|
|
22
|
+
*/
|
|
23
|
+
type WrTreeChildrenLoader<TId = string> = (node: WrTreeNode<TId>) => Observable<readonly WrTreeNode<TId>[]> | Promise<readonly WrTreeNode<TId>[]> | readonly WrTreeNode<TId>[];
|
|
24
|
+
/** Decides whether a node matches the tree's `filter` text. */
|
|
25
|
+
type WrTreeFilterFn<TId = string> = (node: WrTreeNode<TId>, query: string) => boolean;
|
|
26
|
+
/** One end of a move: the parent (`null` for the root list) and the index among its children. */
|
|
27
|
+
interface WrTreeMoveEnd<TId = string> {
|
|
28
|
+
readonly parentId: TId | null;
|
|
29
|
+
readonly index: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Payload of `nodeMove`. `to.index` counts the new siblings WITHOUT the moved
|
|
33
|
+
* node, so applying it is "remove at `from`, then insert at `to`", which is
|
|
34
|
+
* what {@link wrMoveTreeNode} does.
|
|
35
|
+
*/
|
|
36
|
+
interface WrTreeMoveEvent<TId = string> {
|
|
37
|
+
readonly node: WrTreeNode<TId>;
|
|
38
|
+
readonly from: WrTreeMoveEnd<TId>;
|
|
39
|
+
readonly to: WrTreeMoveEnd<TId>;
|
|
40
|
+
}
|
|
41
|
+
/** Where a node is about to land, as `canDrop` sees it. `parent` is `null` for the root list. */
|
|
42
|
+
interface WrTreeDropTarget<TId = string> extends WrTreeMoveEnd<TId> {
|
|
43
|
+
readonly parent: WrTreeNode<TId> | null;
|
|
44
|
+
}
|
|
45
|
+
/** Refuses a drop, by drag and by keyboard alike. */
|
|
46
|
+
type WrTreeCanDrop<TId = string> = (node: WrTreeNode<TId>, target: WrTreeDropTarget<TId>) => boolean;
|
|
18
47
|
/** Trigger size for an overlay {@link WrTree} — shares the `--wr-control-*` contract. */
|
|
19
48
|
type WrTreeSize = 'sm' | 'md' | 'lg';
|
|
20
49
|
/** Selection mode for {@link WrTree}. */
|
|
@@ -29,6 +58,18 @@ interface FlatNode<TId> {
|
|
|
29
58
|
readonly posinset: number;
|
|
30
59
|
/** Sibling count at this level (ARIA `aria-setsize`). */
|
|
31
60
|
readonly setsize: number;
|
|
61
|
+
/** `@for` key: the node id, or an object of its own for a status row. */
|
|
62
|
+
readonly key: unknown;
|
|
63
|
+
/** Set on the row standing for a branch's pending or failed load; `node` is that branch. */
|
|
64
|
+
readonly status: 'loading' | 'error' | null;
|
|
65
|
+
/** The node's own children are loading. */
|
|
66
|
+
readonly busy: boolean;
|
|
67
|
+
}
|
|
68
|
+
/** The row that carries the drop indicator, and how. */
|
|
69
|
+
interface DropMark {
|
|
70
|
+
readonly row: number;
|
|
71
|
+
readonly position: 'before' | 'after' | 'inside';
|
|
72
|
+
readonly depth: number;
|
|
32
73
|
}
|
|
33
74
|
interface SelectedChip<TId> {
|
|
34
75
|
readonly id: TId;
|
|
@@ -80,6 +121,14 @@ export declare class WrTree<TId = string> implements FormValueControl<unknown> {
|
|
|
80
121
|
readonly selected: import("@angular/core").ModelSignal<readonly TId[]>;
|
|
81
122
|
/** Expanded node ids (two-way bindable). */
|
|
82
123
|
readonly expanded: import("@angular/core").ModelSignal<readonly TId[]>;
|
|
124
|
+
/**
|
|
125
|
+
* Opens and closes a node by a click anywhere on its row, not only on the
|
|
126
|
+
* arrow. In `selectionMode="single"` the click selects too. Under `cascade`
|
|
127
|
+
* the checkbox is the way to check a branch, so a click elsewhere on its row
|
|
128
|
+
* only opens it. A disabled node and a leaf behave as without it.
|
|
129
|
+
* @default true
|
|
130
|
+
*/
|
|
131
|
+
readonly expandOnClick: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
83
132
|
/** Selection behavior. @default 'single' */
|
|
84
133
|
readonly selectionMode: import("@angular/core").InputSignal<WrTreeSelectionMode>;
|
|
85
134
|
/**
|
|
@@ -180,6 +229,58 @@ export declare class WrTree<TId = string> implements FormValueControl<unknown> {
|
|
|
180
229
|
* class of its own.
|
|
181
230
|
*/
|
|
182
231
|
readonly panelClass: import("@angular/core").InputSignal<WrClassInput>;
|
|
232
|
+
/**
|
|
233
|
+
* Loads the children of a node that set `hasChildren` and left `children`
|
|
234
|
+
* undefined. Runs once, on the first expand, and the answer is cached by node
|
|
235
|
+
* id: the row shows a loading row meanwhile and an error row with a retry
|
|
236
|
+
* when the loader fails. Accepts an array, a Promise or an Observable.
|
|
237
|
+
* @default null
|
|
238
|
+
*/
|
|
239
|
+
readonly loadChildren: import("@angular/core").InputSignal<WrTreeChildrenLoader<TId> | null>;
|
|
240
|
+
/**
|
|
241
|
+
* Filter text. While set, only matching nodes and their ancestors show, the
|
|
242
|
+
* ancestors open to reveal the matches and the match is highlighted.
|
|
243
|
+
* `[(expanded)]` is left alone, so clearing the text restores it. Children a
|
|
244
|
+
* `loadChildren` has not fetched yet are not searched.
|
|
245
|
+
* @default ''
|
|
246
|
+
*/
|
|
247
|
+
readonly filter: import("@angular/core").InputSignal<string | null>;
|
|
248
|
+
/**
|
|
249
|
+
* Decides whether a node matches `filter`. The default is a case-insensitive
|
|
250
|
+
* substring of the label.
|
|
251
|
+
* @default null
|
|
252
|
+
*/
|
|
253
|
+
readonly filterFn: import("@angular/core").InputSignal<WrTreeFilterFn<TId> | null>;
|
|
254
|
+
/**
|
|
255
|
+
* Cascading checks, in `selectionMode="multi"` only. Every row draws a
|
|
256
|
+
* checkbox and a click toggles it: checking a node checks its loaded,
|
|
257
|
+
* enabled descendants, and an ancestor is checked exactly while all of its
|
|
258
|
+
* enabled children are. An ancestor with only some of them checked announces
|
|
259
|
+
* `aria-checked="mixed"`. The value holds EVERY checked node, parents and
|
|
260
|
+
* leaves alike, never a mixed one. Rows announce `aria-checked` in place of
|
|
261
|
+
* `aria-selected`.
|
|
262
|
+
* @default false
|
|
263
|
+
*/
|
|
264
|
+
readonly cascade: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
265
|
+
/**
|
|
266
|
+
* Lets rows be moved: dragged between rows to reorder, onto a row to become
|
|
267
|
+
* its child. The keyboard twin is Alt+Enter to pick the row up, the arrows to
|
|
268
|
+
* move it (up and down among siblings, toward the indent into the sibling
|
|
269
|
+
* above, away from it out of the parent), Enter to drop and Escape to cancel.
|
|
270
|
+
* The tree never writes to `nodes`: apply `nodeMove` yourself, with
|
|
271
|
+
* `wrMoveTreeNode`. Off while a `filter` is set, and for rows that came from
|
|
272
|
+
* `loadChildren`, which `nodes` does not hold.
|
|
273
|
+
* @default false
|
|
274
|
+
*/
|
|
275
|
+
readonly draggable: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
276
|
+
/**
|
|
277
|
+
* Refuses a drop, by drag and by keyboard alike. A node is never offered its
|
|
278
|
+
* own subtree, so that case does not reach the predicate.
|
|
279
|
+
* @default null
|
|
280
|
+
*/
|
|
281
|
+
readonly canDrop: import("@angular/core").InputSignal<WrTreeCanDrop<TId> | null>;
|
|
282
|
+
/** Fired once when a row is dropped somewhere new. The tree does not move it: the handler does. */
|
|
283
|
+
readonly nodeMove: import("@angular/core").OutputEmitterRef<WrTreeMoveEvent<TId>>;
|
|
183
284
|
/**
|
|
184
285
|
* Form value — the current selection as seen by a bound field. Bound by
|
|
185
286
|
* `[formField]`, or two-way via `[(value)]`. Shape follows `selectionMode`:
|
|
@@ -202,6 +303,7 @@ export declare class WrTree<TId = string> implements FormValueControl<unknown> {
|
|
|
202
303
|
private readonly destroyRef;
|
|
203
304
|
private readonly platformId;
|
|
204
305
|
private readonly injector;
|
|
306
|
+
private readonly pendingTasks;
|
|
205
307
|
/**
|
|
206
308
|
* Ambient reading direction. Optional so a bare `TestBed` — or a consumer who
|
|
207
309
|
* never set a direction — needs no provider; `Directionality` is root-provided
|
|
@@ -221,6 +323,14 @@ export declare class WrTree<TId = string> implements FormValueControl<unknown> {
|
|
|
221
323
|
* slot — the next arrow walked from a row the user had never been on.
|
|
222
324
|
*/
|
|
223
325
|
private readonly cursorId;
|
|
326
|
+
/** What `loadChildren` has answered so far, by node id. */
|
|
327
|
+
private readonly lazy;
|
|
328
|
+
/**
|
|
329
|
+
* Every node the tree knows, loaded children included: the node and its
|
|
330
|
+
* parent by id, and which ids sit under a `loadChildren` answer. Those live
|
|
331
|
+
* in this component's cache rather than in `nodes`, so a move cannot touch them.
|
|
332
|
+
*/
|
|
333
|
+
private readonly lookup;
|
|
224
334
|
/** Each node's parent id, so a cursor hidden by a collapse can climb to a visible row. */
|
|
225
335
|
private readonly parentMap;
|
|
226
336
|
/**
|
|
@@ -235,10 +345,38 @@ export declare class WrTree<TId = string> implements FormValueControl<unknown> {
|
|
|
235
345
|
* because `onKeydown` bails when `flat[i]` is undefined.
|
|
236
346
|
*/
|
|
237
347
|
protected readonly cursorIndex: import("@angular/core").Signal<number>;
|
|
348
|
+
/** Accessible name of the clear button. Falls back to `tree.clearSelection`, then `'Clear selection'`. */
|
|
349
|
+
readonly clearSelectionLabel: import("@angular/core").InputSignal<string | null>;
|
|
350
|
+
/** Accessible name of the toggle of a collapsed node. Falls back to `tree.expand`, then `'Expand'`. */
|
|
351
|
+
readonly expandLabel: import("@angular/core").InputSignal<string | null>;
|
|
352
|
+
/** Accessible name of the toggle of an expanded node. Falls back to `tree.collapse`, then `'Collapse'`. */
|
|
353
|
+
readonly collapseLabel: import("@angular/core").InputSignal<string | null>;
|
|
354
|
+
/** Text of the row shown while children load. Falls back to `select.loading`, then `'Loading…'`. */
|
|
355
|
+
readonly loadingLabel: import("@angular/core").InputSignal<string | null>;
|
|
356
|
+
/** Text of the row shown when `loadChildren` failed. Falls back to `loadState.failed`, then `'Could not load'`. */
|
|
357
|
+
readonly loadErrorLabel: import("@angular/core").InputSignal<string | null>;
|
|
358
|
+
/** Label of the retry button on that row. Falls back to `loadState.retry`, then `'Try again'`. */
|
|
359
|
+
readonly retryLabel: import("@angular/core").InputSignal<string | null>;
|
|
360
|
+
/** Shown in place of the rows when `filter` matches nothing. Falls back to `select.noResults`. */
|
|
361
|
+
readonly noMatchesLabel: import("@angular/core").InputSignal<string | null>;
|
|
362
|
+
/**
|
|
363
|
+
* The keyboard move, as a screen reader hears it on entering a `draggable`
|
|
364
|
+
* tree. Falls back to `tree.moveKeyHelp`.
|
|
365
|
+
*/
|
|
366
|
+
readonly moveHelpLabel: import("@angular/core").InputSignal<string | null>;
|
|
367
|
+
protected readonly resolvedLoadingLabel: import("@angular/core").Signal<string>;
|
|
368
|
+
protected readonly resolvedLoadErrorLabel: import("@angular/core").Signal<string>;
|
|
369
|
+
protected readonly resolvedNoMatchesLabel: import("@angular/core").Signal<string>;
|
|
370
|
+
protected readonly resolvedRetryLabel: import("@angular/core").Signal<string>;
|
|
371
|
+
protected readonly resolvedMoveHelp: import("@angular/core").Signal<string>;
|
|
372
|
+
private readonly grabbedText;
|
|
373
|
+
private readonly movedText;
|
|
374
|
+
private readonly droppedText;
|
|
375
|
+
private readonly cancelledText;
|
|
238
376
|
/** Resolved ARIA labels — signals, so they follow both a late catalog and a locale switch. */
|
|
239
|
-
protected readonly
|
|
240
|
-
protected readonly
|
|
241
|
-
protected readonly
|
|
377
|
+
protected readonly resolvedClearSelectionLabel: import("@angular/core").Signal<string>;
|
|
378
|
+
protected readonly resolvedExpandLabel: import("@angular/core").Signal<string>;
|
|
379
|
+
protected readonly resolvedCollapseLabel: import("@angular/core").Signal<string>;
|
|
242
380
|
protected readonly chipRemoveLabel: (params?: import("ngwr/i18n").WrI18nParams) => string;
|
|
243
381
|
/**
|
|
244
382
|
* The overflow chip past `maxTagCount`. It was the literal `+{{ extra }} more`
|
|
@@ -247,10 +385,36 @@ export declare class WrTree<TId = string> implements FormValueControl<unknown> {
|
|
|
247
385
|
* `["Черновик", "+2 more"]`.
|
|
248
386
|
*/
|
|
249
387
|
protected readonly chipMoreLabel: (params?: import("ngwr/i18n").WrI18nParams) => string;
|
|
388
|
+
/** The trimmed filter text; `''` means no filter. */
|
|
389
|
+
protected readonly filterQuery: import("@angular/core").Signal<string>;
|
|
390
|
+
/**
|
|
391
|
+
* Under a filter: the nodes that show (a match, or an ancestor of one) and
|
|
392
|
+
* the ancestors that open to reveal a match. `null` with no filter.
|
|
393
|
+
*/
|
|
394
|
+
private readonly filterView;
|
|
395
|
+
/**
|
|
396
|
+
* What the user opened and closed while a filter was showing, kept apart
|
|
397
|
+
* from `expanded` so that clearing the filter restores the tree they had.
|
|
398
|
+
* It belongs to one filter text and is ignored under any other.
|
|
399
|
+
*/
|
|
400
|
+
private readonly filterToggles;
|
|
401
|
+
/** A status row's `@for` key, one object per branch, so it never collides with a node id. */
|
|
402
|
+
private readonly statusKeys;
|
|
403
|
+
/** The visible rows, and the lazy branches that are open with nothing loaded yet. */
|
|
404
|
+
private readonly view;
|
|
250
405
|
/** Flattened list of currently visible nodes — what the template renders. */
|
|
251
406
|
protected readonly flat: import("@angular/core").Signal<readonly FlatNode<TId>[]>;
|
|
407
|
+
/** Each visible node's row, the first one when an id repeats. */
|
|
408
|
+
private readonly flatIndex;
|
|
252
409
|
protected readonly selectedSet: import("@angular/core").Signal<Set<TId>>;
|
|
410
|
+
/**
|
|
411
|
+
* The branches that are open right now. `expanded` alone with no filter; under
|
|
412
|
+
* one, also every ancestor of a match, then whatever the user toggled since.
|
|
413
|
+
*/
|
|
253
414
|
protected readonly expandedSet: import("@angular/core").Signal<Set<TId>>;
|
|
415
|
+
protected readonly isCascade: import("@angular/core").Signal<boolean>;
|
|
416
|
+
/** Cascade only: the nodes that are not checked themselves and have a checked node below them. */
|
|
417
|
+
protected readonly mixedSet: import("@angular/core").Signal<ReadonlySet<TId>>;
|
|
254
418
|
protected readonly isOverlay: import("@angular/core").Signal<boolean>;
|
|
255
419
|
protected readonly isMulti: import("@angular/core").Signal<boolean>;
|
|
256
420
|
protected readonly hasSelection: import("@angular/core").Signal<boolean>;
|
|
@@ -260,8 +424,12 @@ export declare class WrTree<TId = string> implements FormValueControl<unknown> {
|
|
|
260
424
|
protected readonly visibleChips: import("@angular/core").Signal<readonly SelectedChip<TId>[]>;
|
|
261
425
|
protected readonly hiddenChipCount: import("@angular/core").Signal<number>;
|
|
262
426
|
protected readonly singleLabel: import("@angular/core").Signal<string | null>;
|
|
263
|
-
|
|
264
|
-
|
|
427
|
+
private readonly openState;
|
|
428
|
+
/**
|
|
429
|
+
* Whether the overlay panel is open. Read-only: `open()` and `close()` change it.
|
|
430
|
+
* Only meaningful when `openOn='overlay'`.
|
|
431
|
+
*/
|
|
432
|
+
readonly isOpen: import("@angular/core").Signal<boolean>;
|
|
265
433
|
/** Trigger / panel id for `aria-controls`. */
|
|
266
434
|
protected readonly panelId: string;
|
|
267
435
|
protected readonly classes: import("@angular/core").Signal<string>;
|
|
@@ -383,6 +551,69 @@ export declare class WrTree<TId = string> implements FormValueControl<unknown> {
|
|
|
383
551
|
private toggleExpanded;
|
|
384
552
|
private select;
|
|
385
553
|
private emit;
|
|
554
|
+
private writeValue;
|
|
555
|
+
/**
|
|
556
|
+
* The cascade rule, in one place. Down: the node and its loaded descendants
|
|
557
|
+
* take the new state, and a disabled node keeps its own and shields its
|
|
558
|
+
* subtree. Up: each ancestor is checked exactly while all of its enabled
|
|
559
|
+
* children are.
|
|
560
|
+
*/
|
|
561
|
+
private setChecked;
|
|
562
|
+
private load;
|
|
563
|
+
/** The error row's retry: by its button, or by Enter while the cursor is on the row. */
|
|
564
|
+
protected retryLoad(node: WrTreeNode<TId>, event?: Event): void;
|
|
565
|
+
private readonly move;
|
|
566
|
+
/** The node being moved, for the row's `--dragging` modifier. */
|
|
567
|
+
protected readonly movingNode: import("@angular/core").Signal<WrTreeNode<TId> | null>;
|
|
568
|
+
/** Live-region text. Written by the keyboard move only: a drag is its own feedback. */
|
|
569
|
+
protected readonly announcement: import("@angular/core").WritableSignal<string>;
|
|
570
|
+
/** Links the tree to the keyboard move's description. */
|
|
571
|
+
protected readonly moveHelpId: string;
|
|
572
|
+
protected readonly listDescribedBy: import("@angular/core").Signal<string | null>;
|
|
573
|
+
private hoverExpand;
|
|
574
|
+
/** A filter shows a subset of every sibling group, and an index into a subset is not one into `nodes`. */
|
|
575
|
+
private readonly movable;
|
|
576
|
+
protected canDrag(row: FlatNode<TId>): boolean;
|
|
577
|
+
/** A sibling group as `nodes` holds it, without the node being moved. */
|
|
578
|
+
private siblings;
|
|
579
|
+
private locate;
|
|
580
|
+
/** Whether `node` may land at `target`: never under itself, never in the cache, and `canDrop` willing. */
|
|
581
|
+
private allows;
|
|
582
|
+
/** Where the drop indicator sits for the current target. */
|
|
583
|
+
protected readonly dropMark: import("@angular/core").Signal<DropMark | null>;
|
|
584
|
+
private rowOf;
|
|
585
|
+
protected onDragStart(event: DragEvent): void;
|
|
586
|
+
protected onDragOver(event: DragEvent): void;
|
|
587
|
+
protected onDragLeave(event: DragEvent): void;
|
|
588
|
+
protected onDrop(event: DragEvent): void;
|
|
589
|
+
protected endDrag(): void;
|
|
590
|
+
/**
|
|
591
|
+
* The target a pointer names on a row: its top quarter places the node
|
|
592
|
+
* before it, its bottom quarter after it (as the first child, when the row
|
|
593
|
+
* is an open branch), the middle makes it the row's last child. Where the
|
|
594
|
+
* middle is refused the row splits in half instead.
|
|
595
|
+
*/
|
|
596
|
+
private pointerTarget;
|
|
597
|
+
/** A drag resting on a collapsed branch opens it, so its children can be reached. */
|
|
598
|
+
private restOn;
|
|
599
|
+
private clearHoverExpand;
|
|
600
|
+
/** Reports the move and opens the new parent, so the row is in view once the consumer applies it. */
|
|
601
|
+
private commit;
|
|
602
|
+
private grab;
|
|
603
|
+
/**
|
|
604
|
+
* The held row's keys. Up and Down walk its sibling group, stepping over a
|
|
605
|
+
* place `canDrop` refuses; the arrow toward the indent makes it the last
|
|
606
|
+
* child of the sibling above, the other one puts it after its parent. The row
|
|
607
|
+
* itself stays where it is until the consumer applies the drop: the
|
|
608
|
+
* indicator and the live region say where it would land.
|
|
609
|
+
*/
|
|
610
|
+
private onMoveKey;
|
|
611
|
+
private cancelMove;
|
|
612
|
+
/** A held row is put back when focus leaves the list: nothing was written, so nothing is lost. */
|
|
613
|
+
protected onListFocusOut(event: FocusEvent): void;
|
|
614
|
+
private position;
|
|
615
|
+
/** Puts real focus back on the cursor row, after the element that held it left the DOM or was moved in it. */
|
|
616
|
+
private refocusCursor;
|
|
386
617
|
private focusIndex;
|
|
387
618
|
private collectExpandableIds;
|
|
388
619
|
private openOverlay;
|
|
@@ -405,6 +636,11 @@ export declare class WrTree<TId = string> implements FormValueControl<unknown> {
|
|
|
405
636
|
"required": false;
|
|
406
637
|
"isSignal": true;
|
|
407
638
|
};
|
|
639
|
+
"expandOnClick": {
|
|
640
|
+
"alias": "expandOnClick";
|
|
641
|
+
"required": false;
|
|
642
|
+
"isSignal": true;
|
|
643
|
+
};
|
|
408
644
|
"selectionMode": {
|
|
409
645
|
"alias": "selectionMode";
|
|
410
646
|
"required": false;
|
|
@@ -480,18 +716,103 @@ export declare class WrTree<TId = string> implements FormValueControl<unknown> {
|
|
|
480
716
|
"required": false;
|
|
481
717
|
"isSignal": true;
|
|
482
718
|
};
|
|
719
|
+
"loadChildren": {
|
|
720
|
+
"alias": "loadChildren";
|
|
721
|
+
"required": false;
|
|
722
|
+
"isSignal": true;
|
|
723
|
+
};
|
|
724
|
+
"filter": {
|
|
725
|
+
"alias": "filter";
|
|
726
|
+
"required": false;
|
|
727
|
+
"isSignal": true;
|
|
728
|
+
};
|
|
729
|
+
"filterFn": {
|
|
730
|
+
"alias": "filterFn";
|
|
731
|
+
"required": false;
|
|
732
|
+
"isSignal": true;
|
|
733
|
+
};
|
|
734
|
+
"cascade": {
|
|
735
|
+
"alias": "cascade";
|
|
736
|
+
"required": false;
|
|
737
|
+
"isSignal": true;
|
|
738
|
+
};
|
|
739
|
+
"draggable": {
|
|
740
|
+
"alias": "draggable";
|
|
741
|
+
"required": false;
|
|
742
|
+
"isSignal": true;
|
|
743
|
+
};
|
|
744
|
+
"canDrop": {
|
|
745
|
+
"alias": "canDrop";
|
|
746
|
+
"required": false;
|
|
747
|
+
"isSignal": true;
|
|
748
|
+
};
|
|
483
749
|
"value": {
|
|
484
750
|
"alias": "value";
|
|
485
751
|
"required": false;
|
|
486
752
|
"isSignal": true;
|
|
487
753
|
};
|
|
754
|
+
"clearSelectionLabel": {
|
|
755
|
+
"alias": "clearSelectionLabel";
|
|
756
|
+
"required": false;
|
|
757
|
+
"isSignal": true;
|
|
758
|
+
};
|
|
759
|
+
"expandLabel": {
|
|
760
|
+
"alias": "expandLabel";
|
|
761
|
+
"required": false;
|
|
762
|
+
"isSignal": true;
|
|
763
|
+
};
|
|
764
|
+
"collapseLabel": {
|
|
765
|
+
"alias": "collapseLabel";
|
|
766
|
+
"required": false;
|
|
767
|
+
"isSignal": true;
|
|
768
|
+
};
|
|
769
|
+
"loadingLabel": {
|
|
770
|
+
"alias": "loadingLabel";
|
|
771
|
+
"required": false;
|
|
772
|
+
"isSignal": true;
|
|
773
|
+
};
|
|
774
|
+
"loadErrorLabel": {
|
|
775
|
+
"alias": "loadErrorLabel";
|
|
776
|
+
"required": false;
|
|
777
|
+
"isSignal": true;
|
|
778
|
+
};
|
|
779
|
+
"retryLabel": {
|
|
780
|
+
"alias": "retryLabel";
|
|
781
|
+
"required": false;
|
|
782
|
+
"isSignal": true;
|
|
783
|
+
};
|
|
784
|
+
"noMatchesLabel": {
|
|
785
|
+
"alias": "noMatchesLabel";
|
|
786
|
+
"required": false;
|
|
787
|
+
"isSignal": true;
|
|
788
|
+
};
|
|
789
|
+
"moveHelpLabel": {
|
|
790
|
+
"alias": "moveHelpLabel";
|
|
791
|
+
"required": false;
|
|
792
|
+
"isSignal": true;
|
|
793
|
+
};
|
|
488
794
|
}, {
|
|
489
795
|
"selected": "selectedChange";
|
|
490
796
|
"expanded": "expandedChange";
|
|
797
|
+
"nodeMove": "nodeMove";
|
|
491
798
|
"value": "valueChange";
|
|
492
799
|
"touch": "touch";
|
|
493
800
|
"opened": "opened";
|
|
494
801
|
"closed": "closed";
|
|
495
802
|
}, never, never, true, never>;
|
|
496
803
|
}
|
|
497
|
-
|
|
804
|
+
/**
|
|
805
|
+
* Applies a `nodeMove` to a node array and returns the new one. `wr-tree`
|
|
806
|
+
* never writes to `nodes`, so this is the line a `(nodeMove)` handler needs.
|
|
807
|
+
* Nothing is mutated, a branch the move does not touch keeps its identity, and
|
|
808
|
+
* a move into a parent the array does not hold returns the array as it was.
|
|
809
|
+
*
|
|
810
|
+
* @example
|
|
811
|
+
* ```ts
|
|
812
|
+
* onMove(move: WrTreeMoveEvent): void {
|
|
813
|
+
* this.nodes.update(nodes => wrMoveTreeNode(nodes, move));
|
|
814
|
+
* }
|
|
815
|
+
* ```
|
|
816
|
+
*/
|
|
817
|
+
export declare function wrMoveTreeNode<TId = string>(nodes: readonly WrTreeNode<TId>[], move: WrTreeMoveEvent<TId>): readonly WrTreeNode<TId>[];
|
|
818
|
+
export type { WrTreeCanDrop, WrTreeChildrenLoader, WrTreeDropTarget, WrTreeFilterFn, WrTreeMoveEnd, WrTreeMoveEvent, WrTreeNode, WrTreeSelectionMode, WrTreeSize };
|
package/types/ngwr-utils.d.ts
CHANGED
|
@@ -662,6 +662,34 @@ interface WrWatchColorSchemeOptions {
|
|
|
662
662
|
* @returns A function that stops watching early.
|
|
663
663
|
*/
|
|
664
664
|
export declare function wrWatchColorScheme(callback: (scheme: WrColorScheme) => void, options?: WrWatchColorSchemeOptions): () => void;
|
|
665
|
+
/**
|
|
666
|
+
* @license
|
|
667
|
+
*
|
|
668
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
669
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
670
|
+
*/
|
|
671
|
+
/**
|
|
672
|
+
* CDK's `cdkDrag` has no cancel: a pointer drag ends on the release event of the
|
|
673
|
+
* input that started it, and the drop always reorders. This listens for Escape
|
|
674
|
+
* on the document and, when it comes, ends the drag the way the CDK ends it, so
|
|
675
|
+
* the preview flies back and `cdkDragEnded` still fires.
|
|
676
|
+
*
|
|
677
|
+
* The release is `touchend` for a touch start and `mouseup` for a mouse start,
|
|
678
|
+
* the two events the CDK's drag registry binds on the document. The caller marks
|
|
679
|
+
* the drag cancelled in `onCancel`, which runs before the release, so the drop
|
|
680
|
+
* handler that follows can ignore it. Escape is prevented and stopped (capture
|
|
681
|
+
* phase) so a dialog around the drag does not close on the same key.
|
|
682
|
+
*
|
|
683
|
+
* Call it from `cdkDragStarted` and call the returned function from
|
|
684
|
+
* `cdkDragEnded` and on destroy; the listener lives no longer than that.
|
|
685
|
+
*
|
|
686
|
+
* @internal Shared by the entry points; not a consumer API.
|
|
687
|
+
* @param doc The document the drag runs in.
|
|
688
|
+
* @param start The event the drag started with, `CdkDragStart.event`.
|
|
689
|
+
* @param onCancel Runs once when Escape cancels the drag.
|
|
690
|
+
* @returns Removes the listener. Safe to call twice.
|
|
691
|
+
*/
|
|
692
|
+
export declare function wrWatchDragCancel(doc: Document, start: Event, onCancel: () => void): () => void;
|
|
665
693
|
/**
|
|
666
694
|
* @license
|
|
667
695
|
*
|
package/types/ngwr-version.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { InjectionToken } from "@angular/core";
|
|
|
15
15
|
* Distinct from `Version` exported by `@angular/core`, which reports the
|
|
16
16
|
* loaded Angular runtime version (e.g. `'22.0.0'`), not ngwr's.
|
|
17
17
|
*/
|
|
18
|
-
export declare const NGWR_VERSION = "16.
|
|
18
|
+
export declare const NGWR_VERSION = "16.3.0";
|
|
19
19
|
/**
|
|
20
20
|
* Injection token holding the ngwr library version string.
|
|
21
21
|
*
|
package/types/ngwr-window.d.ts
CHANGED
|
@@ -813,9 +813,9 @@ export declare class WrWindowManager implements WrWindowRefHost {
|
|
|
813
813
|
/** The taskbars on the page, registered by each `<wr-window-taskbar>` for its lifetime. */
|
|
814
814
|
private readonly taskbars;
|
|
815
815
|
/**
|
|
816
|
-
* ONE viewport for every window, kept by one `resize` listener
|
|
817
|
-
* used to add its own — twenty listeners for
|
|
818
|
-
* own copy of the same two numbers.
|
|
816
|
+
* ONE viewport for every window, kept by one `resize` listener while any
|
|
817
|
+
* window is open. Each window used to add its own — twenty listeners for
|
|
818
|
+
* twenty windows, each writing its own copy of the same two numbers.
|
|
819
819
|
*/
|
|
820
820
|
private readonly viewport;
|
|
821
821
|
/** Bumped when an element used as `bounds` may have moved: it resized, or something scrolled. */
|
|
@@ -824,6 +824,8 @@ export declare class WrWindowManager implements WrWindowRefHost {
|
|
|
824
824
|
private boundsObserver;
|
|
825
825
|
private readonly boundElements;
|
|
826
826
|
private readonly bumpLayout;
|
|
827
|
+
private readonly measure;
|
|
828
|
+
constructor();
|
|
827
829
|
/** The strip the taskbars cover, edge by edge. */
|
|
828
830
|
private readonly reserve;
|
|
829
831
|
/** All currently-open windows, in the order they opened. */
|
|
@@ -888,8 +890,9 @@ export declare class WrWindowManager implements WrWindowRefHost {
|
|
|
888
890
|
* none is.
|
|
889
891
|
*/
|
|
890
892
|
private readonly onFocusIn;
|
|
891
|
-
/** Install the shared listeners
|
|
893
|
+
/** Install the shared listeners while a window is open. */
|
|
892
894
|
private listen;
|
|
895
|
+
private unlisten;
|
|
893
896
|
private boundsElement;
|
|
894
897
|
/**
|
|
895
898
|
* The work area for one window: its bounds, cut to the viewport, minus the
|