ngwr 16.1.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 +108 -1
- package/dropdown/styles/_index.scss +40 -10
- 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 +48 -4
- package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +492 -75
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp.mjs +76 -12
- package/fesm2022/ngwr-date-stamp.mjs.map +1 -1
- package/fesm2022/ngwr-date.mjs +144 -12
- 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 +48 -5
- package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +407 -116
- 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 +26 -6
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +26 -6
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +26 -6
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +26 -6
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +26 -6
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +26 -6
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +26 -6
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +26 -6
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +26 -6
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +26 -6
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +26 -6
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +26 -6
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +26 -6
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +26 -6
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +26 -6
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +26 -6
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +26 -6
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +26 -6
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +26 -6
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +26 -6
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +26 -6
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +26 -6
- 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-testing.mjs +26 -0
- package/fesm2022/ngwr-lightbox-testing.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox.mjs +249 -13
- 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 +57 -33
- 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 +418 -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 +23 -0
- package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
- package/fesm2022/ngwr-slider.mjs +108 -14
- package/fesm2022/ngwr-slider.mjs.map +1 -1
- package/fesm2022/ngwr-sortable-list-testing.mjs +103 -0
- package/fesm2022/ngwr-sortable-list-testing.mjs.map +1 -0
- package/fesm2022/ngwr-sortable-list.mjs +284 -63
- 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 +28 -6
- package/i18n/cs.json +28 -6
- package/i18n/de.json +28 -6
- package/i18n/en.json +28 -6
- package/i18n/es.json +28 -6
- package/i18n/fr.json +28 -6
- package/i18n/he.json +28 -6
- package/i18n/hi.json +28 -6
- package/i18n/id.json +28 -6
- package/i18n/it.json +28 -6
- package/i18n/ja.json +28 -6
- package/i18n/ko.json +28 -6
- package/i18n/nl.json +28 -6
- package/i18n/pl.json +28 -6
- package/i18n/pt.json +28 -6
- package/i18n/ru.json +28 -6
- package/i18n/sv.json +28 -6
- package/i18n/tr.json +28 -6
- package/i18n/uk.json +28 -6
- package/i18n/vi.json +28 -6
- package/i18n/zh-TW.json +28 -6
- package/i18n/zh.json +28 -6
- package/input/styles/_index.scss +68 -1
- package/input-otp/styles/_index.scss +14 -0
- package/lightbox/styles/_rules.scss +96 -0
- package/llms-full.txt +61 -25
- package/llms.txt +12 -0
- package/overlay/styles/_arrow.scss +4 -4
- package/package.json +37 -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 +5 -0
- package/select/styles/_index.scss +114 -22
- package/skills/ngwr/SKILL.md +1 -1
- package/skills/ngwr/references/catalog.md +11 -2
- package/slider/styles/_index.scss +128 -0
- package/sortable-list/styles/_rules.scss +23 -1
- 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 +40 -8
- package/types/ngwr-date-picker.d.ts +178 -10
- package/types/ngwr-date-stamp-testing.d.ts +1 -1
- package/types/ngwr-date-stamp.d.ts +53 -7
- package/types/ngwr-date.d.ts +188 -15
- package/types/ngwr-drawer.d.ts +9 -0
- package/types/ngwr-dropdown-testing.d.ts +73 -5
- package/types/ngwr-dropdown.d.ts +124 -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-lightbox-testing.d.ts +27 -0
- package/types/ngwr-lightbox.d.ts +71 -6
- package/types/ngwr-overlay.d.ts +84 -5
- package/types/ngwr-pipes.d.ts +34 -13
- 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 +10 -1
- package/types/ngwr-slider.d.ts +109 -3
- package/types/ngwr-sortable-list-testing.d.ts +79 -0
- package/types/ngwr-sortable-list.d.ts +119 -10
- 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
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from "@angular/cdk/testing";
|
|
2
|
+
/** Narrows which `<wr-sortable-list>` a harness query matches. */
|
|
3
|
+
interface WrSortableListHarnessFilters extends BaseHarnessFilters {
|
|
4
|
+
/** Match the list's `ariaLabel`. A string is an exact match, a RegExp is tested. */
|
|
5
|
+
readonly ariaLabel?: string | RegExp;
|
|
6
|
+
/** Match a list holding a row with this text. A string is an exact match, a RegExp is tested. */
|
|
7
|
+
readonly item?: string | RegExp;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Test harness for `<wr-sortable-list>`.
|
|
11
|
+
*
|
|
12
|
+
* Every move goes through the keyboard path: pick up, arrows, drop. There is
|
|
13
|
+
* no drag method, because a drag is decided by measured boxes and jsdom has
|
|
14
|
+
* none, so one would report success on a list that sorts nothing.
|
|
15
|
+
*
|
|
16
|
+
* The moves drive a VERTICAL list (ArrowUp / ArrowDown inside it, ArrowLeft /
|
|
17
|
+
* ArrowRight across its group). `orientation` is an input that never reaches
|
|
18
|
+
* the DOM, so the harness cannot read it; on a horizontal list a move lands
|
|
19
|
+
* nowhere and throws, rather than resolving on an order nobody asked for.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const todo = await loader.getHarness(WrSortableListHarness.with({ ariaLabel: 'To do' }));
|
|
24
|
+
* const done = await loader.getHarness(WrSortableListHarness.with({ ariaLabel: 'Done' }));
|
|
25
|
+
*
|
|
26
|
+
* await todo.moveItemTo(0, done, 0);
|
|
27
|
+
* expect(await done.getItems()).toEqual(['Write the spec']);
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @see https://ngwr.dev/guides/testing
|
|
31
|
+
*/
|
|
32
|
+
export declare class WrSortableListHarness extends ComponentHarness {
|
|
33
|
+
static hostSelector: string;
|
|
34
|
+
/** Build a predicate that narrows the query: pass to `getHarness` / `getAllHarnesses`. */
|
|
35
|
+
static with(options?: WrSortableListHarnessFilters): HarnessPredicate<WrSortableListHarness>;
|
|
36
|
+
private readonly rows;
|
|
37
|
+
private readonly list;
|
|
38
|
+
private readonly status;
|
|
39
|
+
/** The row the keyboard is holding, in whichever list of the page has it. */
|
|
40
|
+
private readonly held;
|
|
41
|
+
private readonly allLists;
|
|
42
|
+
/** The text of every row, in order. The empty-state slot is not a row. */
|
|
43
|
+
getItems(): Promise<string[]>;
|
|
44
|
+
/** The list's accessible name, or `null` when it has none. */
|
|
45
|
+
getAriaLabel(): Promise<string | null>;
|
|
46
|
+
/** The host's `id`: the `id` input, or the generated one. */
|
|
47
|
+
getId(): Promise<string | null>;
|
|
48
|
+
/** Whether the list has no rows. */
|
|
49
|
+
isEmpty(): Promise<boolean>;
|
|
50
|
+
/** Whether the list belongs to a group, so it can exchange rows with other lists. */
|
|
51
|
+
isConnected(): Promise<boolean>;
|
|
52
|
+
/** The text projected into the empty-state slot, or `null` when the list has rows or projects nothing. */
|
|
53
|
+
getEmptyText(): Promise<string | null>;
|
|
54
|
+
/** What the list's live region last said. Written by keyboard moves only. */
|
|
55
|
+
getAnnouncement(): Promise<string>;
|
|
56
|
+
/** Index of the row the keyboard is holding in THIS list, or `null`. */
|
|
57
|
+
getHeldIndex(): Promise<number | null>;
|
|
58
|
+
/**
|
|
59
|
+
* Moves the row at `from` to `to` inside this list: pick up, arrows, drop.
|
|
60
|
+
* The list emits one `reorder`. Throws when the row does not land on `to`,
|
|
61
|
+
* which is what a disabled or horizontal list does.
|
|
62
|
+
*/
|
|
63
|
+
moveItem(from: number, to: number): Promise<void>;
|
|
64
|
+
/**
|
|
65
|
+
* Moves the row at `from` into another list of the same group, at `to`.
|
|
66
|
+
* The target emits one `move`.
|
|
67
|
+
*
|
|
68
|
+
* It walks the group one way, then the other, so it needs no knowledge of the
|
|
69
|
+
* page's direction. Throws when the row never reaches `target`: another
|
|
70
|
+
* group, a list that is disabled, or a `canEnter` that refuses the item. The
|
|
71
|
+
* row is back where it started by then.
|
|
72
|
+
*/
|
|
73
|
+
moveItemTo(from: number, target: WrSortableListHarness, to: number): Promise<void>;
|
|
74
|
+
private grab;
|
|
75
|
+
private walkTo;
|
|
76
|
+
private release;
|
|
77
|
+
private heldRow;
|
|
78
|
+
}
|
|
79
|
+
export type { WrSortableListHarnessFilters };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { ElementRef, Signal } from "@angular/core";
|
|
2
|
+
import { ElementRef, Signal, WritableSignal } from "@angular/core";
|
|
3
3
|
import * as i1 from "@angular/cdk/drag-drop";
|
|
4
|
-
import { CdkDragDrop } from "@angular/cdk/drag-drop";
|
|
5
4
|
/**
|
|
6
5
|
* Contract a `<wr-sortable-item>` uses to talk to its parent list.
|
|
7
6
|
*
|
|
@@ -35,6 +34,8 @@ interface WrSortableListContext {
|
|
|
35
34
|
* the slot it had left.
|
|
36
35
|
*/
|
|
37
36
|
readonly items: Signal<readonly unknown[]>;
|
|
37
|
+
/** A row's pointer drag was cancelled with Escape; the drop that follows changes nothing. */
|
|
38
|
+
cancelDrag(drag: object): void;
|
|
38
39
|
/** Register a row on construction, in projection order. */
|
|
39
40
|
register(item: {
|
|
40
41
|
readonly host: ElementRef<HTMLElement>;
|
|
@@ -59,6 +60,27 @@ interface WrSortableReorderEvent<T> {
|
|
|
59
60
|
/** Convenience handle for the dropped item. */
|
|
60
61
|
readonly item: T;
|
|
61
62
|
}
|
|
63
|
+
/** One end of a move between connected lists: the list and the index in it. */
|
|
64
|
+
interface WrSortableMoveEnd<T> {
|
|
65
|
+
/** The list. Tell it apart by its `id` input, or by comparing the instance. */
|
|
66
|
+
readonly list: WrSortableList<T>;
|
|
67
|
+
/** Index in that list's `items`. */
|
|
68
|
+
readonly index: number;
|
|
69
|
+
}
|
|
70
|
+
/** Payload emitted by the TARGET list when an item arrives from another list of its group. */
|
|
71
|
+
interface WrSortableMoveEvent<T> {
|
|
72
|
+
/** The item that moved. */
|
|
73
|
+
readonly item: T;
|
|
74
|
+
/** Where it left. */
|
|
75
|
+
readonly from: WrSortableMoveEnd<T>;
|
|
76
|
+
/** Where it landed. */
|
|
77
|
+
readonly to: WrSortableMoveEnd<T>;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Decides whether a list takes an item from another list of its group.
|
|
81
|
+
* `from` is the list the gesture started in.
|
|
82
|
+
*/
|
|
83
|
+
type WrSortableCanEnter<T> = (item: T, from: WrSortableList<T>) => boolean;
|
|
62
84
|
/**
|
|
63
85
|
* Drag-to-reorder list. Wraps CDK's `cdkDropList` + `cdkDrag` with a
|
|
64
86
|
* signal-based items binding — the source array is updated in place and
|
|
@@ -87,6 +109,13 @@ interface WrSortableReorderEvent<T> {
|
|
|
87
109
|
* click would be picking itself straight back up. A visible move-up /
|
|
88
110
|
* move-down affordance is the remaining answer, and that is a design change.
|
|
89
111
|
*
|
|
112
|
+
* Lists that share a `group` exchange items, by drag and by keyboard. The
|
|
113
|
+
* target list emits `move` once, and both lists write `[(items)]`; `reorder`
|
|
114
|
+
* stays for a move inside one list. Lists find each other through a root
|
|
115
|
+
* registry and are handed to `cdkDropListConnectedTo`, not through
|
|
116
|
+
* `cdkDropListGroup`, which needs a common ancestor directive and so cannot
|
|
117
|
+
* join lists that live in separate components.
|
|
118
|
+
*
|
|
90
119
|
* @example
|
|
91
120
|
* ```html
|
|
92
121
|
* <wr-sortable-list [(items)]="rows" (reorder)="onReorder($event)">
|
|
@@ -122,11 +151,42 @@ export declare class WrSortableList<T = unknown> implements WrSortableListContex
|
|
|
122
151
|
touch: number;
|
|
123
152
|
mouse: number;
|
|
124
153
|
}>;
|
|
125
|
-
/**
|
|
154
|
+
/**
|
|
155
|
+
* Name of the group this list belongs to. Lists with the same group exchange
|
|
156
|
+
* items, wherever they sit in the page. @default null
|
|
157
|
+
*/
|
|
158
|
+
readonly group: import("@angular/core").InputSignal<string | null>;
|
|
159
|
+
/**
|
|
160
|
+
* Refuses an item coming from another list of the group, by drag and by
|
|
161
|
+
* keyboard alike. An item can always return to the list it left.
|
|
162
|
+
* @default null
|
|
163
|
+
*/
|
|
164
|
+
readonly canEnter: import("@angular/core").InputSignal<WrSortableCanEnter<T> | null>;
|
|
165
|
+
/**
|
|
166
|
+
* Accessible name of the list. A keyboard move into this list announces it;
|
|
167
|
+
* without one the announcement falls back to the list's position in the group.
|
|
168
|
+
* @default null
|
|
169
|
+
*/
|
|
170
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
|
|
171
|
+
/** The host's `id`, and what tells the lists of a `move` apart. Generated when omitted. */
|
|
172
|
+
readonly id: import("@angular/core").InputSignal<string | undefined>;
|
|
173
|
+
/** Fired after a successful reorder with the new array + indices. Not fired for a move between lists. */
|
|
126
174
|
readonly reorder: import("@angular/core").OutputEmitterRef<WrSortableReorderEvent<T>>;
|
|
175
|
+
/**
|
|
176
|
+
* Fired once on the list an item ARRIVED in from another list of the group,
|
|
177
|
+
* after both lists have written `items`. The list it left emits nothing but
|
|
178
|
+
* `itemsChange`.
|
|
179
|
+
*/
|
|
180
|
+
readonly move: import("@angular/core").OutputEmitterRef<WrSortableMoveEvent<T>>;
|
|
127
181
|
private readonly injector;
|
|
182
|
+
private readonly host;
|
|
183
|
+
private readonly dropList;
|
|
184
|
+
private readonly lists;
|
|
185
|
+
private readonly listEl;
|
|
186
|
+
/** The other lists of this list's group. */
|
|
187
|
+
private readonly peers;
|
|
128
188
|
/**
|
|
129
|
-
* Ambient reading direction, for the
|
|
189
|
+
* Ambient reading direction, for the keyboard path.
|
|
130
190
|
*
|
|
131
191
|
* Optional so a bare `TestBed` — or any consumer that never set a direction —
|
|
132
192
|
* needs no provider; `Directionality` is root-provided, so `null` only ever
|
|
@@ -152,21 +212,32 @@ export declare class WrSortableList<T = unknown> implements WrSortableListContex
|
|
|
152
212
|
*/
|
|
153
213
|
private readonly rows;
|
|
154
214
|
/** Index of the row the keyboard is holding, or `null` when nothing is held. */
|
|
155
|
-
readonly grabbedIndex:
|
|
215
|
+
readonly grabbedIndex: WritableSignal<number | null>;
|
|
156
216
|
/** Live-region text. Written by the keyboard path only. */
|
|
157
|
-
protected readonly announcement:
|
|
217
|
+
protected readonly announcement: WritableSignal<string>;
|
|
218
|
+
private readonly uid;
|
|
158
219
|
/** Links every row to the key model via `aria-describedby`. */
|
|
159
220
|
readonly keyHelpId: string;
|
|
221
|
+
protected readonly fallbackId: string;
|
|
222
|
+
private readonly keyHelp;
|
|
223
|
+
private readonly groupKeyHelp;
|
|
160
224
|
protected readonly resolvedKeyHelp: import("@angular/core").Signal<string>;
|
|
161
225
|
private readonly grabbedText;
|
|
162
226
|
private readonly movedText;
|
|
163
227
|
private readonly droppedText;
|
|
164
228
|
private readonly cancelledText;
|
|
165
|
-
|
|
229
|
+
private readonly movedToText;
|
|
230
|
+
private readonly listPositionText;
|
|
231
|
+
/** Where the held row started, which can be another list. Escape puts it back there. */
|
|
166
232
|
private grabOrigin;
|
|
167
233
|
/** True while a keyboard move is handing focus back — see `onRowFocusout`. */
|
|
168
234
|
private restoringFocus;
|
|
169
|
-
|
|
235
|
+
constructor();
|
|
236
|
+
/** Rows whose pointer drag Escape cancelled; the drop that follows is ignored. */
|
|
237
|
+
private readonly cancelledDrags;
|
|
238
|
+
/** @internal A row's pointer drag was cancelled with Escape. */
|
|
239
|
+
cancelDrag(drag: object): void;
|
|
240
|
+
private onDrop;
|
|
170
241
|
/**
|
|
171
242
|
* The keyboard reorder path: pick up, move, drop — deliberately a two-step
|
|
172
243
|
* grab rather than "an arrow moves the focused row", so that arrowing through
|
|
@@ -213,9 +284,22 @@ export declare class WrSortableList<T = unknown> implements WrSortableListContex
|
|
|
213
284
|
onRowFocusout(): void;
|
|
214
285
|
private grab;
|
|
215
286
|
private moveGrabbed;
|
|
287
|
+
/**
|
|
288
|
+
* Hands the held row to the nearest list of the group, in document order,
|
|
289
|
+
* that takes it. A list that refuses is stepped over, since a drag can reach
|
|
290
|
+
* any list of the group and the keyboard must not reach fewer.
|
|
291
|
+
*/
|
|
292
|
+
private moveToList;
|
|
216
293
|
private drop;
|
|
217
294
|
private cancelGrab;
|
|
295
|
+
/** Whether this list takes `item` from another list of the group. */
|
|
296
|
+
private accepts;
|
|
297
|
+
/** This list and its peers, in document order. */
|
|
298
|
+
private groupLists;
|
|
299
|
+
private removeAt;
|
|
300
|
+
private insertAt;
|
|
218
301
|
private relocate;
|
|
302
|
+
private focusRow;
|
|
219
303
|
private position;
|
|
220
304
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrSortableList<any>, never>;
|
|
221
305
|
static ɵcmp: i0.ɵɵComponentDeclaration<WrSortableList<any>, "wr-sortable-list", never, {
|
|
@@ -244,10 +328,35 @@ export declare class WrSortableList<T = unknown> implements WrSortableListContex
|
|
|
244
328
|
"required": false;
|
|
245
329
|
"isSignal": true;
|
|
246
330
|
};
|
|
331
|
+
"group": {
|
|
332
|
+
"alias": "group";
|
|
333
|
+
"required": false;
|
|
334
|
+
"isSignal": true;
|
|
335
|
+
};
|
|
336
|
+
"canEnter": {
|
|
337
|
+
"alias": "canEnter";
|
|
338
|
+
"required": false;
|
|
339
|
+
"isSignal": true;
|
|
340
|
+
};
|
|
341
|
+
"ariaLabel": {
|
|
342
|
+
"alias": "ariaLabel";
|
|
343
|
+
"required": false;
|
|
344
|
+
"isSignal": true;
|
|
345
|
+
};
|
|
346
|
+
"id": {
|
|
347
|
+
"alias": "id";
|
|
348
|
+
"required": false;
|
|
349
|
+
"isSignal": true;
|
|
350
|
+
};
|
|
247
351
|
}, {
|
|
248
352
|
"items": "itemsChange";
|
|
249
353
|
"reorder": "reorder";
|
|
250
|
-
|
|
354
|
+
"move": "move";
|
|
355
|
+
}, never, ["*", "[wrSortableListEmpty]"], true, [{
|
|
356
|
+
directive: typeof i1.CdkDropList;
|
|
357
|
+
inputs: {};
|
|
358
|
+
outputs: {};
|
|
359
|
+
}]>;
|
|
251
360
|
}
|
|
252
361
|
/**
|
|
253
362
|
* One row of a {@link WrSortableList}. Write the loop yourself and put whatever
|
|
@@ -340,4 +449,4 @@ export declare class WrDragHandle {
|
|
|
340
449
|
outputs: {};
|
|
341
450
|
}]>;
|
|
342
451
|
}
|
|
343
|
-
export type { WrSortableReorderEvent };
|
|
452
|
+
export type { WrSortableCanEnter, WrSortableMoveEnd, WrSortableMoveEvent, WrSortableReorderEvent };
|
package/types/ngwr-stepper.d.ts
CHANGED
|
@@ -106,20 +106,19 @@ export declare class WrStepper implements WrStepperContext {
|
|
|
106
106
|
readonly responsive: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
107
107
|
protected readonly steps: import("@angular/core").Signal<readonly WrStep[]>;
|
|
108
108
|
/**
|
|
109
|
-
* The "optional" badge sits
|
|
110
|
-
* is part of
|
|
111
|
-
*
|
|
112
|
-
* badge is one word shared by every step, and an app that wants other wording
|
|
113
|
-
* overrides `stepper.optional` once instead of on every `<wr-step>`.
|
|
109
|
+
* The word of the "optional" badge, which sits inside the header button's label
|
|
110
|
+
* and so is part of each optional step's accessible name. One input on the
|
|
111
|
+
* stepper covers every step. Falls back to `stepper.optional`, then `'optional'`.
|
|
114
112
|
*/
|
|
115
|
-
|
|
113
|
+
readonly optionalLabel: import("@angular/core").InputSignal<string | null>;
|
|
116
114
|
/**
|
|
117
|
-
* The
|
|
118
|
-
* the
|
|
119
|
-
*
|
|
120
|
-
* `optionalLabel` is.
|
|
115
|
+
* The word a completed step's header button carries after its label, visually
|
|
116
|
+
* hidden: the check mark that replaces the number is `aria-hidden`. Falls back
|
|
117
|
+
* to `stepper.completed`, then `'completed'`.
|
|
121
118
|
*/
|
|
122
|
-
|
|
119
|
+
readonly completedLabel: import("@angular/core").InputSignal<string | null>;
|
|
120
|
+
protected readonly resolvedOptionalLabel: import("@angular/core").Signal<string>;
|
|
121
|
+
protected readonly resolvedCompletedLabel: import("@angular/core").Signal<string>;
|
|
123
122
|
protected readonly classes: import("@angular/core").Signal<string>;
|
|
124
123
|
constructor();
|
|
125
124
|
/** Is the step at `index` considered completed? */
|
|
@@ -152,6 +151,16 @@ export declare class WrStepper implements WrStepperContext {
|
|
|
152
151
|
"required": false;
|
|
153
152
|
"isSignal": true;
|
|
154
153
|
};
|
|
154
|
+
"optionalLabel": {
|
|
155
|
+
"alias": "optionalLabel";
|
|
156
|
+
"required": false;
|
|
157
|
+
"isSignal": true;
|
|
158
|
+
};
|
|
159
|
+
"completedLabel": {
|
|
160
|
+
"alias": "completedLabel";
|
|
161
|
+
"required": false;
|
|
162
|
+
"isSignal": true;
|
|
163
|
+
};
|
|
155
164
|
}, {
|
|
156
165
|
"active": "activeChange";
|
|
157
166
|
}, ["steps"], ["*"], true, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseHarnessFilters, ComponentHarness, ContentContainerComponentHarness, HarnessPredicate } from "@angular/cdk/testing";
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, ContentContainerComponentHarness, HarnessLoader, HarnessPredicate } from "@angular/cdk/testing";
|
|
2
2
|
/** Narrows which `<wr-table>` a harness query matches. */
|
|
3
3
|
interface WrTableHarnessFilters extends BaseHarnessFilters {
|
|
4
4
|
/**
|
|
@@ -75,6 +75,14 @@ export declare class WrTableCellHarness extends ContentContainerComponentHarness
|
|
|
75
75
|
* The column KEY is never in the DOM at all.
|
|
76
76
|
*/
|
|
77
77
|
getColumnTitle(): Promise<string | null>;
|
|
78
|
+
/**
|
|
79
|
+
* Whether the cell opens an editor: its column has a `[wrTableEditCell]`
|
|
80
|
+
* template and neither `editable: false` nor the `editable` predicate
|
|
81
|
+
* refused it.
|
|
82
|
+
*/
|
|
83
|
+
isEditable(): Promise<boolean>;
|
|
84
|
+
/** Whether the cell shows its editor right now. */
|
|
85
|
+
isEditing(): Promise<boolean>;
|
|
78
86
|
/** Which edge the cell's column is frozen against, or `null` when it scrolls. */
|
|
79
87
|
getPin(): Promise<'left' | 'right' | null>;
|
|
80
88
|
}
|
|
@@ -269,15 +277,17 @@ export declare class WrTableHarness extends ComponentHarness {
|
|
|
269
277
|
static with(options?: WrTableHarnessFilters): HarnessPredicate<WrTableHarness>;
|
|
270
278
|
private readonly tableEl;
|
|
271
279
|
private readonly selectAllBox;
|
|
280
|
+
private readonly chooserButton;
|
|
272
281
|
/**
|
|
273
282
|
* The role the table announces.
|
|
274
283
|
*
|
|
275
|
-
* A flat table sets no `role` at all, so it announces the native `table` role
|
|
276
|
-
*
|
|
277
|
-
*
|
|
278
|
-
* place the hierarchy exists for a screen-reader user: the indent is
|
|
284
|
+
* A flat table sets no `role` at all, so it announces the native `table` role.
|
|
285
|
+
* A `[wrTableEditCell]` template makes it a `grid`, whose data cells take focus
|
|
286
|
+
* and the arrow keys. `childrenKey` turns it into a `treegrid`, and that role is
|
|
287
|
+
* the only place the hierarchy exists for a screen-reader user: the indent is
|
|
288
|
+
* decoration.
|
|
279
289
|
*/
|
|
280
|
-
getRole(): Promise<'treegrid' | 'table'>;
|
|
290
|
+
getRole(): Promise<'treegrid' | 'grid' | 'table'>;
|
|
281
291
|
/** Whether the rows are a hierarchy rather than a flat list. */
|
|
282
292
|
isTree(): Promise<boolean>;
|
|
283
293
|
/**
|
|
@@ -404,6 +414,60 @@ export declare class WrTableHarness extends ComponentHarness {
|
|
|
404
414
|
isGroupCollapsed(label: string): Promise<boolean>;
|
|
405
415
|
/** Collapse or expand the band with this label. */
|
|
406
416
|
toggleGroup(label: string): Promise<void>;
|
|
417
|
+
/** Whether the selection bar is over the header: a `[wrTableSelectionBar]` template and a selection. */
|
|
418
|
+
hasSelectionBar(): Promise<boolean>;
|
|
419
|
+
/** The selection bar's count as drawn ("3 selected"), or `null` while the bar is away. */
|
|
420
|
+
getSelectionBarText(): Promise<string | null>;
|
|
421
|
+
/** Click the selection bar's clear button, which empties the selection and takes the bar away. */
|
|
422
|
+
clearSelection(): Promise<void>;
|
|
423
|
+
/**
|
|
424
|
+
* A loader over the `[wrTableSelectionBar]` template's own content, for the
|
|
425
|
+
* harnesses of the actions it holds.
|
|
426
|
+
*/
|
|
427
|
+
getSelectionBarLoader(): Promise<HarnessLoader>;
|
|
428
|
+
/** A part of the selection bar, or a failure naming both reasons the bar is away. */
|
|
429
|
+
private selectionBarPart;
|
|
430
|
+
/**
|
|
431
|
+
* Start editing a cell the way the keyboard does: focus it and press Enter.
|
|
432
|
+
* `row` is the 0-based position among {@link getRows}, `columnTitle` the
|
|
433
|
+
* column's header. Hands back the cell, whose loader reaches the editor's own
|
|
434
|
+
* harnesses: `cell.getHarness(WrInputNumberHarness)`.
|
|
435
|
+
*
|
|
436
|
+
* Throws when the cell does not open an editor: it has no `[wrTableEditCell]`
|
|
437
|
+
* template, its column says `editable: false`, or the `editable` predicate
|
|
438
|
+
* refused the row.
|
|
439
|
+
*/
|
|
440
|
+
editCell(row: number, columnTitle: string): Promise<WrTableCellHarness>;
|
|
441
|
+
/** Whether a cell is being edited. One cell edits at a time. */
|
|
442
|
+
isEditing(): Promise<boolean>;
|
|
443
|
+
/**
|
|
444
|
+
* Commit the edit in flight the way Enter does: the table emits `cellEdit`
|
|
445
|
+
* with the value the editor last kept, when it differs from the cell's.
|
|
446
|
+
* Focus goes to the cell first, so a control that publishes on blur has
|
|
447
|
+
* published.
|
|
448
|
+
*/
|
|
449
|
+
commitEdit(): Promise<void>;
|
|
450
|
+
/** Drop the edit in flight the way Escape does. */
|
|
451
|
+
cancelEdit(): Promise<void>;
|
|
452
|
+
private editingCell;
|
|
453
|
+
/** Whether the table shows the column chooser's button (`columnChooser`). */
|
|
454
|
+
hasColumnChooser(): Promise<boolean>;
|
|
455
|
+
/**
|
|
456
|
+
* The titles of the hidden columns, in column order, read from the column
|
|
457
|
+
* chooser: a hidden column is nowhere else in the DOM. Opens the chooser and
|
|
458
|
+
* leaves it open.
|
|
459
|
+
*/
|
|
460
|
+
getHiddenColumns(): Promise<string[]>;
|
|
461
|
+
/** Whether the chooser refuses to hide a column: `hideable: false`, or the last one shown. */
|
|
462
|
+
isColumnLocked(columnTitle: string): Promise<boolean>;
|
|
463
|
+
/** Hide a shown column or show a hidden one through the column chooser, which stays open. */
|
|
464
|
+
toggleColumn(columnTitle: string): Promise<void>;
|
|
465
|
+
/**
|
|
466
|
+
* The chooser's rows, opening it first. The panel is a popover in the overlay
|
|
467
|
+
* container, found through the id its trigger publishes while open.
|
|
468
|
+
*/
|
|
469
|
+
private chooserEntries;
|
|
470
|
+
private chooserEntryFor;
|
|
407
471
|
/** The header for a column title, or a failure that says which titles do exist. */
|
|
408
472
|
private headerCellFor;
|
|
409
473
|
/**
|