ngwr 16.2.0 → 16.4.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/carousel/styles/_index.scss +53 -1
- 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-testing.mjs +24 -1
- package/fesm2022/ngwr-carousel-testing.mjs.map +1 -1
- package/fesm2022/ngwr-carousel.mjs +73 -10
- package/fesm2022/ngwr-carousel.mjs.map +1 -1
- package/fesm2022/ngwr-cascader.mjs +45 -37
- 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 +28 -13
- package/fesm2022/ngwr-context-menu.mjs.map +1 -1
- 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 +70 -99
- 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 +279 -16
- 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 +30 -0
- package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
- package/fesm2022/ngwr-graph.mjs +664 -43
- package/fesm2022/ngwr-graph.mjs.map +1 -1
- package/fesm2022/ngwr-hotkey.mjs +6 -6
- package/fesm2022/ngwr-i18n-ar.mjs +27 -8
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +27 -8
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +27 -8
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +27 -8
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +27 -8
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +27 -8
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +27 -8
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +27 -8
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +27 -8
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +27 -8
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +27 -8
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +27 -8
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +27 -8
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +27 -8
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +27 -8
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +27 -8
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +27 -8
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +27 -8
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +27 -8
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +27 -8
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +27 -8
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +27 -8
- 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 +6 -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 +416 -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 +361 -84
- 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 +157 -3
- package/fesm2022/ngwr-table-testing.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +1051 -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-testing.mjs +13 -1
- package/fesm2022/ngwr-tour-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tour.mjs +19 -15
- package/fesm2022/ngwr-tour.mjs.map +1 -1
- 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 +978 -79
- 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 +97 -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/graph/styles/_index.scss +87 -0
- package/i18n/ar.json +29 -8
- package/i18n/cs.json +29 -8
- package/i18n/de.json +29 -8
- package/i18n/en.json +29 -8
- package/i18n/es.json +29 -8
- package/i18n/fr.json +29 -8
- package/i18n/he.json +29 -8
- package/i18n/hi.json +29 -8
- package/i18n/id.json +29 -8
- package/i18n/it.json +29 -8
- package/i18n/ja.json +29 -8
- package/i18n/ko.json +29 -8
- package/i18n/nl.json +29 -8
- package/i18n/pl.json +29 -8
- package/i18n/pt.json +29 -8
- package/i18n/ru.json +29 -8
- package/i18n/sv.json +29 -8
- package/i18n/tr.json +29 -8
- package/i18n/uk.json +29 -8
- package/i18n/vi.json +29 -8
- package/i18n/zh-TW.json +29 -8
- package/i18n/zh.json +29 -8
- package/input/styles/_index.scss +68 -1
- package/input-otp/styles/_index.scss +14 -0
- package/llms-full.txt +53 -21
- package/llms.txt +57 -24
- 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/collection.json +5 -0
- package/schematics/eject/index.js +158 -0
- package/schematics/eject/schema.js +8 -0
- package/schematics/eject/schema.json +24 -0
- package/schematics/eject/source.js +295 -0
- package/schematics/use/rule.js +2 -0
- package/schematics/use/symbol-map.json +5 -0
- package/select/styles/_index.scss +127 -22
- package/skills/ngwr/SKILL.md +31 -4
- package/skills/ngwr/references/catalog.md +9 -1
- package/slider/styles/_index.scss +22 -0
- package/table/styles/_index.scss +191 -3
- package/textarea/styles/_index.scss +80 -0
- package/theme/styles/_focus.scss +16 -1
- 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-carousel-testing.d.ts +27 -6
- package/types/ngwr-carousel.d.ts +42 -6
- package/types/ngwr-cascader.d.ts +13 -6
- 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-context-menu.d.ts +2 -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 +26 -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 +156 -3
- package/types/ngwr-form.d.ts +47 -3
- package/types/ngwr-graph-testing.d.ts +36 -3
- package/types/ngwr-graph.d.ts +309 -13
- 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 +149 -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 +122 -7
- package/types/ngwr-table.d.ts +572 -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-tour-testing.d.ts +10 -0
- package/types/ngwr-tour.d.ts +11 -2
- 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 +335 -12
- package/types/ngwr-utils.d.ts +107 -1
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr-window.d.ts +7 -4
package/types/ngwr-table.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { TemplateRef } from "@angular/core";
|
|
2
|
+
import { TemplateRef, WritableSignal } from "@angular/core";
|
|
3
3
|
import { WrClassInput, WrSafeAny } from "ngwr/utils";
|
|
4
4
|
import { WrPaginationSize } from "ngwr/pagination";
|
|
5
|
-
import { CdkDragDrop } from "@angular/cdk/drag-drop";
|
|
5
|
+
import { CdkDragDrop, CdkDragMove, CdkDragSortEvent, CdkDragStart } from "@angular/cdk/drag-drop";
|
|
6
6
|
/**
|
|
7
7
|
* @license
|
|
8
8
|
*
|
|
@@ -250,6 +250,16 @@ interface WrTableColumn<T extends WrTableRow = WrTableRow> {
|
|
|
250
250
|
* `'left'` and the rightmost `'right'`; several per side stack in order.
|
|
251
251
|
*/
|
|
252
252
|
readonly pin?: 'left' | 'right';
|
|
253
|
+
/**
|
|
254
|
+
* `false` keeps the column out of reach of `hiddenColumns`: it is always
|
|
255
|
+
* shown, and its checkbox in the column chooser is disabled.
|
|
256
|
+
*/
|
|
257
|
+
readonly hideable?: boolean;
|
|
258
|
+
/**
|
|
259
|
+
* `false` keeps the column's cells read-only even with a `[wrTableEditCell]`
|
|
260
|
+
* template for its key.
|
|
261
|
+
*/
|
|
262
|
+
readonly editable?: boolean;
|
|
253
263
|
/** Show a drag handle on the header edge to resize the column. */
|
|
254
264
|
readonly resizable?: boolean;
|
|
255
265
|
/** Initial column width in px. Overridden once the user drags to resize. */
|
|
@@ -332,6 +342,76 @@ interface WrTableCellContext<T extends WrTableRow = Record<string, unknown>, K e
|
|
|
332
342
|
/** The column definition. */
|
|
333
343
|
readonly column: WrTableColumn<T>;
|
|
334
344
|
}
|
|
345
|
+
/**
|
|
346
|
+
* Payload emitted by `<wr-table>` when a cell edit commits. The table does not
|
|
347
|
+
* write the value: the handler updates the data behind `items`.
|
|
348
|
+
*/
|
|
349
|
+
interface WrTableCellEdit<T extends WrTableRow = WrTableRow> {
|
|
350
|
+
/** The row's own object, as it sits in `items`. */
|
|
351
|
+
readonly row: T;
|
|
352
|
+
/** The column key of the edited cell. */
|
|
353
|
+
readonly key: string;
|
|
354
|
+
/** The committed value. */
|
|
355
|
+
readonly value: unknown;
|
|
356
|
+
/** The cell's value when the edit started. */
|
|
357
|
+
readonly previous: unknown;
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* @license
|
|
361
|
+
*
|
|
362
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
363
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
364
|
+
*/
|
|
365
|
+
/** One row of a column chooser: a column of the table, shown or hidden. */
|
|
366
|
+
interface WrTableChooserColumn {
|
|
367
|
+
/** The column's key in `columns`, the value `hiddenColumns` lists. */
|
|
368
|
+
readonly key: string;
|
|
369
|
+
/** The column's title, or its `headerHint`, or its key when it has neither. */
|
|
370
|
+
readonly title: string;
|
|
371
|
+
/** Whether the table leaves the column out. */
|
|
372
|
+
readonly hidden: boolean;
|
|
373
|
+
/** `false` for a `hideable: false` column, which is always shown. */
|
|
374
|
+
readonly hideable: boolean;
|
|
375
|
+
/** Whether the checkbox is disabled: a `hideable: false` column, or the last one shown. */
|
|
376
|
+
readonly locked: boolean;
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Context passed to a `[wrTableEditCell]` template, the editor of one cell.
|
|
380
|
+
*
|
|
381
|
+
* `T` is the row and `K` the column key, both from the directive's
|
|
382
|
+
* `[wrTableEditCellOf]` input, the way `[wrTableCellOf]` types a cell template.
|
|
383
|
+
*
|
|
384
|
+
* `set` and `commit` take `unknown`: a control's own value type is often wider
|
|
385
|
+
* than the cell's (a cleared number field emits `null`), and `cellEdit` hands
|
|
386
|
+
* the value on as `unknown` for the handler to check.
|
|
387
|
+
*/
|
|
388
|
+
interface WrTableEditCellContext<T extends WrTableRow = Record<string, unknown>, K extends string = string> {
|
|
389
|
+
/**
|
|
390
|
+
* The pending value: the cell's own when the edit starts, then whatever
|
|
391
|
+
* `set` last took. Use as `let-value`.
|
|
392
|
+
*/
|
|
393
|
+
readonly $implicit: K extends keyof T ? T[K] : unknown;
|
|
394
|
+
/** The row being edited. */
|
|
395
|
+
readonly row: T;
|
|
396
|
+
/** The column definition. */
|
|
397
|
+
readonly column: WrTableColumn<T>;
|
|
398
|
+
/**
|
|
399
|
+
* Keeps a value without ending the edit. Enter, Tab and a click outside the
|
|
400
|
+
* cell commit the last one kept.
|
|
401
|
+
*/
|
|
402
|
+
readonly set: (value: unknown) => void;
|
|
403
|
+
/** Ends the edit with this value: the table emits `cellEdit` and focus returns to the cell. */
|
|
404
|
+
readonly commit: (value: unknown) => void;
|
|
405
|
+
/** Ends the edit and drops the pending value. Focus returns to the cell. */
|
|
406
|
+
readonly cancel: () => void;
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* Decides whether one cell can be edited, from its row and its column key. It
|
|
410
|
+
* is asked only for a column that has a `[wrTableEditCell]` template and does
|
|
411
|
+
* not say `editable: false`, and it runs during change detection: keep it a
|
|
412
|
+
* pure read of the row.
|
|
413
|
+
*/
|
|
414
|
+
type WrTableEditable<T extends WrTableRow = WrTableRow> = (row: T, key: string) => boolean;
|
|
335
415
|
/**
|
|
336
416
|
* @license
|
|
337
417
|
*
|
|
@@ -382,6 +462,49 @@ interface WrTableExpandContext {
|
|
|
382
462
|
* - `'bar'` — a thin progress bar along the top edge, rows left as they are
|
|
383
463
|
*/
|
|
384
464
|
type WrTableLoadingMode = 'auto' | 'overlay' | 'bar';
|
|
465
|
+
/**
|
|
466
|
+
* Context of the `[wrTableSelectionBar]` template, the actions of the bar the
|
|
467
|
+
* table draws over its header while rows are selected.
|
|
468
|
+
*/
|
|
469
|
+
interface WrTableSelectionContext<T extends WrTableRow = WrTableRow> {
|
|
470
|
+
/**
|
|
471
|
+
* The selected rows the table holds, in `items` order. In server mode
|
|
472
|
+
* (`total` set) that is the selected rows of the current page: a key
|
|
473
|
+
* selected on another page is counted and is not here.
|
|
474
|
+
*/
|
|
475
|
+
readonly $implicit: readonly T[];
|
|
476
|
+
/** How many keys `selection` holds. */
|
|
477
|
+
readonly count: number;
|
|
478
|
+
/** Empties the selection. Focus goes back to the table when it was in the bar. */
|
|
479
|
+
readonly clear: () => void;
|
|
480
|
+
/**
|
|
481
|
+
* What the header select-all covers: `selectAllScope`, or `'page'` in server
|
|
482
|
+
* mode, where the table holds one page.
|
|
483
|
+
*/
|
|
484
|
+
readonly scope: 'page' | 'all';
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* Everything a reader can change about a `<wr-table>`, in one object: what
|
|
488
|
+
* `(stateChange)` emits and `[state]` restores. It holds plain data, so a
|
|
489
|
+
* state whose filter values are primitives survives `JSON.stringify`.
|
|
490
|
+
*/
|
|
491
|
+
interface WrTableState {
|
|
492
|
+
/** The sort, in application order: the `sort` model. */
|
|
493
|
+
readonly sort: readonly WrTableSortState[];
|
|
494
|
+
/**
|
|
495
|
+
* The selected filter values per column key. A column with nothing selected
|
|
496
|
+
* has no entry.
|
|
497
|
+
*/
|
|
498
|
+
readonly filters: Readonly<Record<string, readonly unknown[]>>;
|
|
499
|
+
/** The 1-based current page: the `page` model. */
|
|
500
|
+
readonly page: number;
|
|
501
|
+
/** The rows per page in force, `0` when the table does not page. */
|
|
502
|
+
readonly pageSize: number;
|
|
503
|
+
/** The `columnOrder` model: empty until a column is dragged. */
|
|
504
|
+
readonly columnOrder: readonly string[];
|
|
505
|
+
/** The `hiddenColumns` model. */
|
|
506
|
+
readonly hiddenColumns: readonly string[];
|
|
507
|
+
}
|
|
385
508
|
/** One `<tbody>` row descriptor. Not exported — same precedent as the tree's flat node. */
|
|
386
509
|
type RenderRow = {
|
|
387
510
|
readonly kind: 'group';
|
|
@@ -406,6 +529,48 @@ type RenderRow = {
|
|
|
406
529
|
readonly id: string;
|
|
407
530
|
readonly summaries: ReadonlyMap<string, unknown>;
|
|
408
531
|
};
|
|
532
|
+
/**
|
|
533
|
+
* A display column with everything its cells draw from the column alone, so a
|
|
534
|
+
* cell binding reads a property instead of calling a method on every pass.
|
|
535
|
+
*/
|
|
536
|
+
interface CellColumn<T extends WrTableRow> {
|
|
537
|
+
readonly key: string;
|
|
538
|
+
readonly column: WrTableColumn<T>;
|
|
539
|
+
readonly thClass: string;
|
|
540
|
+
readonly tdClass: string;
|
|
541
|
+
readonly footClass: string;
|
|
542
|
+
readonly pinned: boolean;
|
|
543
|
+
readonly pinLeft: boolean;
|
|
544
|
+
readonly pinRight: boolean;
|
|
545
|
+
/** The inner-edge pinned column of its side, which carries the shadow. */
|
|
546
|
+
readonly edgeLeft: boolean;
|
|
547
|
+
readonly edgeRight: boolean;
|
|
548
|
+
/** Sticky `inset-inline-start` / `-end` offsets in px, `null` off the pinned set. */
|
|
549
|
+
readonly start: number | null;
|
|
550
|
+
readonly end: number | null;
|
|
551
|
+
/** The `<col>` width in px, `null` for auto. A live resize wins. */
|
|
552
|
+
readonly width: number | null;
|
|
553
|
+
/** The `width` a truncated column's cells are capped at. */
|
|
554
|
+
readonly maxWidth: number | null;
|
|
555
|
+
/** Whether its cell names the row (see `labelColumnKey`). */
|
|
556
|
+
readonly label: boolean;
|
|
557
|
+
/** Whether its cell carries the tree indent and toggle. */
|
|
558
|
+
readonly tree: boolean;
|
|
559
|
+
readonly template: TemplateRef<WrTableCellContext> | undefined;
|
|
560
|
+
/** The column's editor, `undefined` without one and under `editable: false`. */
|
|
561
|
+
readonly editTemplate: TemplateRef<WrTableEditCellContext> | undefined;
|
|
562
|
+
/** The context each row's cell template gets, kept so a pass hands the outlet the same object. */
|
|
563
|
+
readonly contexts: WeakMap<Record<string, unknown>, WrTableCellContext>;
|
|
564
|
+
}
|
|
565
|
+
/** One cell edit in flight. */
|
|
566
|
+
interface CellEdit {
|
|
567
|
+
readonly row: Record<string, unknown>;
|
|
568
|
+
readonly key: string;
|
|
569
|
+
readonly td: HTMLElement;
|
|
570
|
+
readonly previous: unknown;
|
|
571
|
+
readonly pending: WritableSignal<unknown>;
|
|
572
|
+
readonly context: WrTableEditCellContext;
|
|
573
|
+
}
|
|
409
574
|
/**
|
|
410
575
|
* Data table with sortable / filterable headers and custom cell templates.
|
|
411
576
|
*
|
|
@@ -481,6 +646,22 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
481
646
|
* listed, and updates this on drag. Bind it to persist a user's arrangement.
|
|
482
647
|
*/
|
|
483
648
|
readonly columnOrder: import("@angular/core").ModelSignal<readonly string[]>;
|
|
649
|
+
/**
|
|
650
|
+
* Two-way bindable hidden columns, an array of column keys. A hidden column
|
|
651
|
+
* renders nothing: no header, no cell, no summary, no `<col>`. Its sort and
|
|
652
|
+
* its filter selection stay as they are, and `toCsv()` leaves it out. A
|
|
653
|
+
* column with `hideable: false` is shown whatever this lists, and so is the
|
|
654
|
+
* first column when the list would leave none. Bind it beside `columnOrder`
|
|
655
|
+
* to persist a user's arrangement.
|
|
656
|
+
*/
|
|
657
|
+
readonly hiddenColumns: import("@angular/core").ModelSignal<readonly string[]>;
|
|
658
|
+
/**
|
|
659
|
+
* Show a toolbar above the table with a button that opens the column
|
|
660
|
+
* chooser: one checkbox per column, in column order, named by the column's
|
|
661
|
+
* title. A `hideable: false` column and the last visible one cannot be
|
|
662
|
+
* unchecked. Each toggle writes `hiddenColumns`. @default false
|
|
663
|
+
*/
|
|
664
|
+
readonly columnChooser: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
484
665
|
/**
|
|
485
666
|
* Row selection with a leading checkbox column — `'multiple'` adds a
|
|
486
667
|
* select-all header; `'single'` keeps one row selected. @default null (off)
|
|
@@ -642,6 +823,15 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
642
823
|
readonly toggleGroupLabel: import("@angular/core").InputSignal<string | null>;
|
|
643
824
|
/** Accessible name of the loading overlay or bar. Falls back to `table.loading`. */
|
|
644
825
|
readonly loadingLabel: import("@angular/core").InputSignal<string | null>;
|
|
826
|
+
/**
|
|
827
|
+
* Text of the selection bar's count, with `{{count}}` where the number goes.
|
|
828
|
+
* Falls back to `table.selected`.
|
|
829
|
+
*/
|
|
830
|
+
readonly selectedLabel: import("@angular/core").InputSignal<string | null>;
|
|
831
|
+
/** Text of the selection bar's clear button. Falls back to `table.clearSelection`. */
|
|
832
|
+
readonly clearSelectionLabel: import("@angular/core").InputSignal<string | null>;
|
|
833
|
+
/** Text of the column chooser's button and name of its panel. Falls back to `table.columns`. */
|
|
834
|
+
readonly columnsLabel: import("@angular/core").InputSignal<string | null>;
|
|
645
835
|
protected readonly resolvedEmptyLabel: import("@angular/core").Signal<string>;
|
|
646
836
|
/**
|
|
647
837
|
* The loading overlay was a bare spinner in a `<div>` — a busy state with no
|
|
@@ -650,6 +840,9 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
650
840
|
* never read.
|
|
651
841
|
*/
|
|
652
842
|
protected readonly resolvedLoadingLabel: import("@angular/core").Signal<string>;
|
|
843
|
+
protected readonly resolvedColumnsLabel: import("@angular/core").Signal<string>;
|
|
844
|
+
protected readonly resolvedClearSelectionLabel: import("@angular/core").Signal<string>;
|
|
845
|
+
private readonly selectedText;
|
|
653
846
|
private readonly sortText;
|
|
654
847
|
/**
|
|
655
848
|
* The sort button's accessible name, with the COLUMN in it.
|
|
@@ -701,6 +894,31 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
701
894
|
protected groupControlLabelledby(action: 'select-group' | 'toggle-group', groupId: string): string;
|
|
702
895
|
/** Fires whenever a column's filter selection changes. */
|
|
703
896
|
readonly filterChange: import("@angular/core").OutputEmitterRef<WrTableFilterChange>;
|
|
897
|
+
/**
|
|
898
|
+
* Restores the table in one write: the sort, each column's filter selection,
|
|
899
|
+
* the page, the page size, the column order and the hidden columns. A saved
|
|
900
|
+
* view binds here. It is applied when the bound object changes, so hand it a
|
|
901
|
+
* new object to restore the same view a second time; a key left out keeps
|
|
902
|
+
* what the table has. The models it writes fire their own `*Change`, and
|
|
903
|
+
* `pageSizeChange` fires for a new size; `filterChange` and `stateChange` do
|
|
904
|
+
* not, since the host already holds what it restored. Pairs with
|
|
905
|
+
* `stateChange` as `[(state)]`.
|
|
906
|
+
* @default null
|
|
907
|
+
*/
|
|
908
|
+
readonly state: import("@angular/core").InputSignal<Partial<WrTableState> | null>;
|
|
909
|
+
/**
|
|
910
|
+
* Fires with the whole state after a change the reader makes: a sort, a
|
|
911
|
+
* filter, a page, a page size, a column drag, a column shown or hidden. One
|
|
912
|
+
* action is one event, so a new page size that also moves the page fires
|
|
913
|
+
* once. A write from the host, through `state` or a model, does not fire.
|
|
914
|
+
*/
|
|
915
|
+
readonly stateChange: import("@angular/core").OutputEmitterRef<WrTableState>;
|
|
916
|
+
/** Bumped by every reader action `stateChange` reports. */
|
|
917
|
+
private readonly readerChanges;
|
|
918
|
+
/** The last state emitted, which comes straight back under `[(state)]`. */
|
|
919
|
+
private emittedState;
|
|
920
|
+
private currentState;
|
|
921
|
+
private restoreState;
|
|
704
922
|
/**
|
|
705
923
|
* Fires when a body row is clicked, with the row, its index in `items` and the
|
|
706
924
|
* click. Group bands, summary rows and detail rows do not fire it.
|
|
@@ -740,7 +958,7 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
740
958
|
/** Fires with the size the reader picks in the pager's size menu. */
|
|
741
959
|
readonly pageSizeChange: import("@angular/core").OutputEmitterRef<number>;
|
|
742
960
|
/** The size in force: the bound `pageSize`, until the reader picks another. */
|
|
743
|
-
protected readonly currentPageSize:
|
|
961
|
+
protected readonly currentPageSize: WritableSignal<number>;
|
|
744
962
|
/** Two-way bindable 1-based current page. */
|
|
745
963
|
readonly page: import("@angular/core").ModelSignal<number>;
|
|
746
964
|
/**
|
|
@@ -815,6 +1033,7 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
815
1033
|
/** Show the pager footer only when paging is enabled and rows overflow. */
|
|
816
1034
|
protected readonly showPager: import("@angular/core").Signal<boolean>;
|
|
817
1035
|
protected onPageSizeChange(size: number): void;
|
|
1036
|
+
protected onPagerPage(page: number): void;
|
|
818
1037
|
/**
|
|
819
1038
|
* Typed at the context's own default: the directive's `T` is whatever each
|
|
820
1039
|
* template declared, and the table hands every one the same record.
|
|
@@ -822,6 +1041,9 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
822
1041
|
private readonly cellTemplates;
|
|
823
1042
|
/** Map of column key → custom template (if provided via `[wrTableCell]`). */
|
|
824
1043
|
protected readonly cellMap: import("@angular/core").Signal<Map<string, TemplateRef<WrTableCellContext<Record<string, unknown>, string>>>>;
|
|
1044
|
+
private readonly editTemplates;
|
|
1045
|
+
/** Map of column key → editor template (if provided via `[wrTableEditCell]`). */
|
|
1046
|
+
private readonly editMap;
|
|
825
1047
|
private readonly platformId;
|
|
826
1048
|
private readonly headerCells;
|
|
827
1049
|
/**
|
|
@@ -836,14 +1058,37 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
836
1058
|
private readonly dir;
|
|
837
1059
|
private isRtl;
|
|
838
1060
|
/**
|
|
839
|
-
*
|
|
840
|
-
* once reordered; new keys append, removed keys drop out.
|
|
841
|
-
|
|
1061
|
+
* Every column in order, hidden ones included — declaration order, overridden
|
|
1062
|
+
* by `columnOrder` once reordered; new keys append, removed keys drop out.
|
|
1063
|
+
*/
|
|
1064
|
+
private readonly orderedColumns;
|
|
1065
|
+
/**
|
|
1066
|
+
* Columns in render order: {@link orderedColumns} less `hiddenColumns`. Pin
|
|
1067
|
+
* and resize measurement key off this, so it must equal the rendered order.
|
|
1068
|
+
* The same array as `orderedColumns()` while nothing is hidden.
|
|
842
1069
|
*/
|
|
843
1070
|
protected readonly displayColumns: import("@angular/core").Signal<readonly {
|
|
844
1071
|
key: string;
|
|
845
1072
|
column: WrTableColumn<T>;
|
|
846
1073
|
}[]>;
|
|
1074
|
+
/**
|
|
1075
|
+
* One entry per column in column order, hidden ones included: what a column
|
|
1076
|
+
* chooser lists. `<wr-table-column-chooser>` reads it, and so can a menu of
|
|
1077
|
+
* your own.
|
|
1078
|
+
*/
|
|
1079
|
+
readonly chooserColumns: import("@angular/core").Signal<readonly WrTableChooserColumn[]>;
|
|
1080
|
+
/**
|
|
1081
|
+
* Hide a shown column or show a hidden one, as its checkbox in the column
|
|
1082
|
+
* chooser does: it writes `hiddenColumns` and reports a `stateChange`. A
|
|
1083
|
+
* locked column (`hideable: false`, or the last one shown) stays as it is.
|
|
1084
|
+
*/
|
|
1085
|
+
toggleColumn(key: string): void;
|
|
1086
|
+
/**
|
|
1087
|
+
* Write `hiddenColumns` as a reader action, so `stateChange` reports it. A
|
|
1088
|
+
* `hideable: false` column is left out of the list, and so is the first
|
|
1089
|
+
* column when the list would hide every one.
|
|
1090
|
+
*/
|
|
1091
|
+
setHiddenColumns(keys: readonly string[]): void;
|
|
847
1092
|
/**
|
|
848
1093
|
* Sticky offsets for pinned columns, measured from the header cells so any
|
|
849
1094
|
* number of columns can stack per side. Also names the inner-edge column on
|
|
@@ -869,43 +1114,38 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
869
1114
|
constructor();
|
|
870
1115
|
private setOverflow;
|
|
871
1116
|
private measurePins;
|
|
1117
|
+
/** Per column key. Rebuilt with the columns and the cell templates, never on a pin measurement, a resize or a hidden column. */
|
|
1118
|
+
private readonly cellContexts;
|
|
872
1119
|
/**
|
|
873
|
-
*
|
|
1120
|
+
* {@link displayColumns} with the per-column half of every cell resolved
|
|
1121
|
+
* once. Apart from `displayColumns` because the pin effect reads that one
|
|
1122
|
+
* and writes `pins`, which this reads.
|
|
874
1123
|
*
|
|
875
|
-
*
|
|
876
|
-
*
|
|
877
|
-
*
|
|
878
|
-
*
|
|
879
|
-
*
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
1124
|
+
* `pin` keeps its physical name — it is public API — but the offsets are
|
|
1125
|
+
* LOGICAL. `measurePins()` accumulates in DOM order, which is start-to-end
|
|
1126
|
+
* semantics, and under `dir="rtl"` the column order mirrors: a `pin: 'left'`
|
|
1127
|
+
* column then sits at the physical right, where a `left: 0` sticky inset can
|
|
1128
|
+
* never catch it and the column just scrolls away.
|
|
1129
|
+
*
|
|
1130
|
+
* The class strings are the BEM class and the consumer's own, merged. One
|
|
1131
|
+
* binding rather than a static `class` beside a `[class]` — Angular does
|
|
1132
|
+
* merge the two, but `no-duplicate-attributes` refuses the shape, and a
|
|
1133
|
+
* reader should not have to know the merge rules to know what a cell ends up
|
|
1134
|
+
* with. The summary and group-footer cells take `align` only, on the body
|
|
1135
|
+
* cell's modifier, the way they already wear `__td--pin-*`: `column.class`
|
|
1136
|
+
* stays off them, as its docs say.
|
|
1137
|
+
*/
|
|
1138
|
+
protected readonly cellColumns: import("@angular/core").Signal<readonly CellColumn<T>[]>;
|
|
884
1139
|
private readonly hasPins;
|
|
885
1140
|
/**
|
|
886
1141
|
* Whether columns are hidden past the start and the end of the scroll area,
|
|
887
1142
|
* the host's `wr-table--overflow-start` / `--overflow-end`. Only a table with
|
|
888
1143
|
* a pinned column measures it.
|
|
889
1144
|
*/
|
|
890
|
-
protected readonly overflow:
|
|
1145
|
+
protected readonly overflow: WritableSignal<{
|
|
891
1146
|
start: boolean;
|
|
892
1147
|
end: boolean;
|
|
893
1148
|
}>;
|
|
894
|
-
/** Whether `key` is the inner-edge pinned column on `side` (carries the shadow). */
|
|
895
|
-
protected isPinEdge(key: string, side: 'left' | 'right'): boolean;
|
|
896
|
-
/**
|
|
897
|
-
* The BEM class and the consumer's own, merged into one string.
|
|
898
|
-
*
|
|
899
|
-
* One binding rather than a static `class` beside a `[class]` — Angular does
|
|
900
|
-
* merge the two, but `no-duplicate-attributes` refuses the shape, and a reader
|
|
901
|
-
* should not have to know the merge rules to know what a cell ends up with.
|
|
902
|
-
* Each returns the shared constant untouched when the column sets neither
|
|
903
|
-
* `align` nor `class`, so a table without these hooks allocates nothing per
|
|
904
|
-
* cell.
|
|
905
|
-
*/
|
|
906
|
-
protected thClasses(column: WrTableColumn<T>): string;
|
|
907
|
-
/** Body-cell half of {@link thClasses}, with the `truncate` modifier. */
|
|
908
|
-
protected tdClasses(column: WrTableColumn<T>): string;
|
|
909
1149
|
/**
|
|
910
1150
|
* `'tooltip'` cuts every body cell to one line with an ellipsis and shows a
|
|
911
1151
|
* cut cell's full text in a tooltip on hover and focus; a cell that fits
|
|
@@ -916,8 +1156,6 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
916
1156
|
* @default null
|
|
917
1157
|
*/
|
|
918
1158
|
readonly truncate: import("@angular/core").InputSignal<"tooltip" | null>;
|
|
919
|
-
/** Whether a column's cells are cut to one line. */
|
|
920
|
-
protected truncates(column: WrTableColumn<T>): boolean;
|
|
921
1159
|
/**
|
|
922
1160
|
* A column's name for its controls: the title, the hint after it, or the hint
|
|
923
1161
|
* alone under an empty title.
|
|
@@ -930,19 +1168,13 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
930
1168
|
* for the whole table, created on the first hint or cut cell the pointer or
|
|
931
1169
|
* the focus reaches: a table of thousands of cells holds none before that.
|
|
932
1170
|
*/
|
|
933
|
-
protected readonly tip:
|
|
1171
|
+
protected readonly tip: WritableSignal<{
|
|
934
1172
|
readonly el: HTMLElement;
|
|
935
1173
|
readonly text: string;
|
|
936
1174
|
} | null>;
|
|
937
1175
|
private readonly modality;
|
|
938
1176
|
private onTipTarget;
|
|
939
|
-
/**
|
|
940
|
-
* Summary and group-footer half of {@link thClasses}: `align` only, on the
|
|
941
|
-
* body cell's modifier, the way those cells already wear `__td--pin-*`.
|
|
942
|
-
* `column.class` stays off them, as its docs say.
|
|
943
|
-
*/
|
|
944
|
-
protected footClasses(column: WrTableColumn<T>): string;
|
|
945
|
-
/** Row half of {@link thClasses}, resolved through the `rowClass` predicate. */
|
|
1177
|
+
/** The row's class with the consumer's own, resolved through the `rowClass` predicate. */
|
|
946
1178
|
protected rowClasses(row: Record<string, unknown>, index: number): string;
|
|
947
1179
|
private readonly resizeWidths;
|
|
948
1180
|
private resizeKey;
|
|
@@ -953,9 +1185,16 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
953
1185
|
* Once a column has been dragged, the table switches to fixed layout so the
|
|
954
1186
|
* `<col>` widths are honoured exactly (auto layout treats them as minimums).
|
|
955
1187
|
*/
|
|
956
|
-
protected readonly fixedLayout:
|
|
957
|
-
/**
|
|
958
|
-
|
|
1188
|
+
protected readonly fixedLayout: WritableSignal<boolean>;
|
|
1189
|
+
/**
|
|
1190
|
+
* Fixed layout held only while a cell edits, so an editor of another width
|
|
1191
|
+
* cannot move the columns. `editHold` keeps the widths in force before it, to
|
|
1192
|
+
* put back when the edit ends.
|
|
1193
|
+
*/
|
|
1194
|
+
protected readonly editHeld: WritableSignal<boolean>;
|
|
1195
|
+
private editHold;
|
|
1196
|
+
private holdWidthsForEdit;
|
|
1197
|
+
private releaseEditHold;
|
|
959
1198
|
/** Freeze every column at its current rendered header width (skips frozen keys). */
|
|
960
1199
|
private freezeColumnWidths;
|
|
961
1200
|
protected onResizeStart(event: PointerEvent, key: string, th: HTMLElement): void;
|
|
@@ -998,7 +1237,7 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
998
1237
|
/** `viewportHeight` as the value of `--wr-table-scroll-height`; `null` leaves the hook to the stylesheet. */
|
|
999
1238
|
protected readonly scrollHeight: import("@angular/core").Signal<string | null>;
|
|
1000
1239
|
/** Measured heights (px) of the sticky header and footer, which `scroll-padding` keeps clear; `null` until measured. */
|
|
1001
|
-
protected readonly stickyEdges:
|
|
1240
|
+
protected readonly stickyEdges: WritableSignal<{
|
|
1002
1241
|
head: number | null;
|
|
1003
1242
|
foot: number | null;
|
|
1004
1243
|
}>;
|
|
@@ -1034,6 +1273,36 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
1034
1273
|
* back to DOM order.
|
|
1035
1274
|
*/
|
|
1036
1275
|
protected readonly sortPredicate: (index: number) => boolean;
|
|
1276
|
+
/**
|
|
1277
|
+
* The one rule for a header slot, in the CDK's left-to-right sweep order: it
|
|
1278
|
+
* is open unless a pinned column holds it. The drop guard and the drag cursor
|
|
1279
|
+
* both ask it, so they cannot disagree.
|
|
1280
|
+
*/
|
|
1281
|
+
private slotOpen;
|
|
1282
|
+
private readonly doc;
|
|
1283
|
+
private readonly destroyRef;
|
|
1284
|
+
/** Sweep-order `[left, right]` of each header slot, measured when a drag starts. */
|
|
1285
|
+
private dragSlots;
|
|
1286
|
+
private dragInList;
|
|
1287
|
+
private dragActive;
|
|
1288
|
+
private dragCancelled;
|
|
1289
|
+
private stopDragCancel;
|
|
1290
|
+
/** The dragged column's current slot in DOM order, kept by the CDK's `sorted` event. */
|
|
1291
|
+
private dragOwn;
|
|
1292
|
+
private readonly clearDragCursor;
|
|
1293
|
+
/**
|
|
1294
|
+
* The pointer cursor of a column drag lives on `<html>`: the CDK preview has
|
|
1295
|
+
* `pointer-events: none`, so the cursor is whatever sits under it, and a class
|
|
1296
|
+
* on the root is the only place that covers the whole page, margins included
|
|
1297
|
+
* (`<body>` ends where its content does).
|
|
1298
|
+
*/
|
|
1299
|
+
private setDragCursor;
|
|
1300
|
+
protected onColumnDragStart(event: CdkDragStart): void;
|
|
1301
|
+
protected onColumnDragMoved(event: CdkDragMove): void;
|
|
1302
|
+
protected onColumnListSorted(event: CdkDragSortEvent): void;
|
|
1303
|
+
protected onColumnListEntered(): void;
|
|
1304
|
+
protected onColumnListExited(): void;
|
|
1305
|
+
protected onColumnDragEnd(): void;
|
|
1037
1306
|
private rowKeyOf;
|
|
1038
1307
|
/** Keys of the rows on the current page — the select-all scope. */
|
|
1039
1308
|
/**
|
|
@@ -1056,6 +1325,23 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
1056
1325
|
/** Add (or remove) a set of row keys from the selection in one update. */
|
|
1057
1326
|
private applySelection;
|
|
1058
1327
|
protected toggleAll(checked: boolean): void;
|
|
1328
|
+
private readonly selectionBarTpl;
|
|
1329
|
+
private readonly selectionBarEl;
|
|
1330
|
+
/** Whether a `[wrTableSelectionBar]` template was projected. */
|
|
1331
|
+
protected readonly hasSelectionBar: import("@angular/core").Signal<boolean>;
|
|
1332
|
+
/** The bar's template while rows are selected, `null` while the bar is away. */
|
|
1333
|
+
protected readonly selectionBar: import("@angular/core").Signal<TemplateRef<WrTableSelectionContext<object>> | null>;
|
|
1334
|
+
/** The header's measured height in px for the bar to match; `null` until measured. */
|
|
1335
|
+
protected readonly selectionBarHeight: WritableSignal<number | null>;
|
|
1336
|
+
protected readonly selectionCountText: import("@angular/core").Signal<string>;
|
|
1337
|
+
protected readonly selectionContext: import("@angular/core").Signal<WrTableSelectionContext<object>>;
|
|
1338
|
+
/**
|
|
1339
|
+
* Empty the selection. When the focus is in the selection bar, which leaves
|
|
1340
|
+
* with the last selected row, it moves to the table.
|
|
1341
|
+
*/
|
|
1342
|
+
clearSelection(): void;
|
|
1343
|
+
/** Focus the first control of the table: a selection checkbox, else the scroll area. */
|
|
1344
|
+
private focusTable;
|
|
1059
1345
|
private readonly expandTpl;
|
|
1060
1346
|
/** Whether the expand column shows (a `[wrTableExpand]` template was projected). */
|
|
1061
1347
|
/**
|
|
@@ -1132,6 +1418,61 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
1132
1418
|
* focus had not yet left.
|
|
1133
1419
|
*/
|
|
1134
1420
|
private focusTreeRow;
|
|
1421
|
+
/**
|
|
1422
|
+
* Vetoes the edit of single cells: called with the row and the column key,
|
|
1423
|
+
* `false` keeps that cell read-only. Asked only for a column that has a
|
|
1424
|
+
* `[wrTableEditCell]` template and does not say `editable: false`.
|
|
1425
|
+
*/
|
|
1426
|
+
readonly editable: import("@angular/core").InputSignal<WrTableEditable<T> | null>;
|
|
1427
|
+
/**
|
|
1428
|
+
* Emits when a cell edit commits with a value other than the cell's own. The
|
|
1429
|
+
* table does not write it: update the data behind `items` in the handler.
|
|
1430
|
+
*/
|
|
1431
|
+
readonly cellEdit: import("@angular/core").OutputEmitterRef<WrTableCellEdit<T>>;
|
|
1432
|
+
/** The edit in flight. One cell edits at a time. */
|
|
1433
|
+
protected readonly editing: WritableSignal<CellEdit | null>;
|
|
1434
|
+
/** Whether any column has an editor: the table is then a grid of focusable cells. */
|
|
1435
|
+
protected readonly editGrid: import("@angular/core").Signal<boolean>;
|
|
1436
|
+
/** The rendered data rows, 1:1 with {@link rowEls}. */
|
|
1437
|
+
private readonly dataRows;
|
|
1438
|
+
/** The cell the keyboard last stood on, by `rowKey` and column key. */
|
|
1439
|
+
private readonly activeCell;
|
|
1440
|
+
/**
|
|
1441
|
+
* The grid's one tab stop: the active cell while it is on screen, else the
|
|
1442
|
+
* first data cell. `null` in a tree, where the row holds the tab stop.
|
|
1443
|
+
*/
|
|
1444
|
+
private readonly tabStopCell;
|
|
1445
|
+
protected cellEditable(row: Record<string, unknown>, col: CellColumn<T>): boolean;
|
|
1446
|
+
/**
|
|
1447
|
+
* A data cell's `tabindex` in an editable table. In a tree the tab-stop
|
|
1448
|
+
* row's editable cells are tab stops, so Tab walks from the row into them.
|
|
1449
|
+
*/
|
|
1450
|
+
protected cellTabindex(entry: Extract<RenderRow, {
|
|
1451
|
+
kind: 'row';
|
|
1452
|
+
}>, col: CellColumn<T>): 0 | -1;
|
|
1453
|
+
/** The data cell an event came from, with its row and column. */
|
|
1454
|
+
private cellAt;
|
|
1455
|
+
protected onCellFocusin(event: FocusEvent): void;
|
|
1456
|
+
protected onCellDblclick(event: MouseEvent): void;
|
|
1457
|
+
protected onCellKeydown(event: KeyboardEvent): void;
|
|
1458
|
+
/** Arrow, Home and End on a focused cell. Ctrl is the first or last row's chord. */
|
|
1459
|
+
private moveCellFocus;
|
|
1460
|
+
private onEditorKeydown;
|
|
1461
|
+
/** The next or previous editable cell of the edited row. */
|
|
1462
|
+
private editableSibling;
|
|
1463
|
+
/**
|
|
1464
|
+
* Put a cell's editor in its place and move focus into it. `typed` is the
|
|
1465
|
+
* character that started the edit: it replaces the content of a text field.
|
|
1466
|
+
*/
|
|
1467
|
+
private startEdit;
|
|
1468
|
+
/**
|
|
1469
|
+
* End the edit in flight. `commit` emits `cellEdit` when the pending value
|
|
1470
|
+
* differs from the cell's. `focus` hands focus back to the cell: always, or
|
|
1471
|
+
* (`'inside'`) only when the editor held it. Either way a field that held
|
|
1472
|
+
* focus is blurred first when `flush` is set, for a control that publishes
|
|
1473
|
+
* its value on blur.
|
|
1474
|
+
*/
|
|
1475
|
+
private endEdit;
|
|
1135
1476
|
/** Leading control columns — selection + expand. */
|
|
1136
1477
|
protected readonly leadingCols: import("@angular/core").Signal<number>;
|
|
1137
1478
|
/** Total rendered columns (data + leading), for detail-row / empty colspans. */
|
|
@@ -1140,6 +1481,7 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
1140
1481
|
private readonly expandedSet;
|
|
1141
1482
|
protected isExpanded(row: Record<string, unknown>): boolean;
|
|
1142
1483
|
protected toggleExpand(row: Record<string, unknown>): void;
|
|
1484
|
+
private readonly expandContexts;
|
|
1143
1485
|
protected expandContext(row: Record<string, unknown>): WrTableExpandContext;
|
|
1144
1486
|
/** Whether any column defines a `summary` (so the footer row shows). */
|
|
1145
1487
|
protected readonly hasSummary: import("@angular/core").Signal<boolean>;
|
|
@@ -1227,14 +1569,13 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
1227
1569
|
protected sortOrderFor(key: string): number | null;
|
|
1228
1570
|
protected cycleSort(key: string): void;
|
|
1229
1571
|
protected onFilter(key: string, items: readonly WrTableFilterItem[]): void;
|
|
1230
|
-
protected cellContext(item: Record<string, unknown>,
|
|
1572
|
+
protected cellContext(item: Record<string, unknown>, col: CellColumn<T>): WrTableCellContext;
|
|
1231
1573
|
/**
|
|
1232
1574
|
* What a plain cell shows: the column's `empty` for a missing value, its
|
|
1233
1575
|
* `format` over the value, else the value itself. A cell template takes
|
|
1234
1576
|
* this path's place entirely (see table.html).
|
|
1235
1577
|
*/
|
|
1236
1578
|
protected cellText(item: Record<string, unknown>, key: string, column: WrTableColumn<T>): unknown;
|
|
1237
|
-
protected templateFor(key: unknown): TemplateRef<WrTableCellContext> | undefined;
|
|
1238
1579
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrTable<any>, never>;
|
|
1239
1580
|
static ɵcmp: i0.ɵɵComponentDeclaration<WrTable<any>, "wr-table", never, {
|
|
1240
1581
|
"columns": {
|
|
@@ -1272,6 +1613,16 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
1272
1613
|
"required": false;
|
|
1273
1614
|
"isSignal": true;
|
|
1274
1615
|
};
|
|
1616
|
+
"hiddenColumns": {
|
|
1617
|
+
"alias": "hiddenColumns";
|
|
1618
|
+
"required": false;
|
|
1619
|
+
"isSignal": true;
|
|
1620
|
+
};
|
|
1621
|
+
"columnChooser": {
|
|
1622
|
+
"alias": "columnChooser";
|
|
1623
|
+
"required": false;
|
|
1624
|
+
"isSignal": true;
|
|
1625
|
+
};
|
|
1275
1626
|
"rowSelection": {
|
|
1276
1627
|
"alias": "rowSelection";
|
|
1277
1628
|
"required": false;
|
|
@@ -1382,6 +1733,26 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
1382
1733
|
"required": false;
|
|
1383
1734
|
"isSignal": true;
|
|
1384
1735
|
};
|
|
1736
|
+
"selectedLabel": {
|
|
1737
|
+
"alias": "selectedLabel";
|
|
1738
|
+
"required": false;
|
|
1739
|
+
"isSignal": true;
|
|
1740
|
+
};
|
|
1741
|
+
"clearSelectionLabel": {
|
|
1742
|
+
"alias": "clearSelectionLabel";
|
|
1743
|
+
"required": false;
|
|
1744
|
+
"isSignal": true;
|
|
1745
|
+
};
|
|
1746
|
+
"columnsLabel": {
|
|
1747
|
+
"alias": "columnsLabel";
|
|
1748
|
+
"required": false;
|
|
1749
|
+
"isSignal": true;
|
|
1750
|
+
};
|
|
1751
|
+
"state": {
|
|
1752
|
+
"alias": "state";
|
|
1753
|
+
"required": false;
|
|
1754
|
+
"isSignal": true;
|
|
1755
|
+
};
|
|
1385
1756
|
"pageSize": {
|
|
1386
1757
|
"alias": "pageSize";
|
|
1387
1758
|
"required": false;
|
|
@@ -1437,17 +1808,25 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
1437
1808
|
"required": false;
|
|
1438
1809
|
"isSignal": true;
|
|
1439
1810
|
};
|
|
1811
|
+
"editable": {
|
|
1812
|
+
"alias": "editable";
|
|
1813
|
+
"required": false;
|
|
1814
|
+
"isSignal": true;
|
|
1815
|
+
};
|
|
1440
1816
|
}, {
|
|
1441
1817
|
"columnOrder": "columnOrderChange";
|
|
1818
|
+
"hiddenColumns": "hiddenColumnsChange";
|
|
1442
1819
|
"selection": "selectionChange";
|
|
1443
1820
|
"expanded": "expandedChange";
|
|
1444
1821
|
"collapsedGroups": "collapsedGroupsChange";
|
|
1445
1822
|
"sort": "sortChange";
|
|
1446
1823
|
"filterChange": "filterChange";
|
|
1824
|
+
"stateChange": "stateChange";
|
|
1447
1825
|
"rowClick": "rowClick";
|
|
1448
1826
|
"pageSizeChange": "pageSizeChange";
|
|
1449
1827
|
"page": "pageChange";
|
|
1450
|
-
|
|
1828
|
+
"cellEdit": "cellEdit";
|
|
1829
|
+
}, ["cellTemplates", "editTemplates", "projectedTemplates", "selectionBarTpl", "expandTpl", "groupTpl"], never, true, never>;
|
|
1451
1830
|
}
|
|
1452
1831
|
/**
|
|
1453
1832
|
* Provide a custom template for a specific column's cells.
|
|
@@ -1500,6 +1879,114 @@ export declare class WrTableCell<T extends WrTableRow = WrSafeAny, K extends str
|
|
|
1500
1879
|
};
|
|
1501
1880
|
}, {}, never, never, true, never>;
|
|
1502
1881
|
}
|
|
1882
|
+
/**
|
|
1883
|
+
* The column list of a `<wr-table>`, for a menu of your own: one checkbox per
|
|
1884
|
+
* column, in column order, under a "Show all" row. Place it in a popover, a
|
|
1885
|
+
* dropdown or a drawer and hand it the table. Every toggle writes the table's
|
|
1886
|
+
* `hiddenColumns`, so `hiddenColumnsChange` and `stateChange` fire as they do
|
|
1887
|
+
* from the built-in `columnChooser`, which renders this same list.
|
|
1888
|
+
*
|
|
1889
|
+
* A `hideable: false` column and the last visible one stay checked and
|
|
1890
|
+
* disabled. "Show all" shows every column; pressed while all are shown, it
|
|
1891
|
+
* hides every column that can be hidden, less the first when none is
|
|
1892
|
+
* `hideable: false`.
|
|
1893
|
+
*
|
|
1894
|
+
* @example
|
|
1895
|
+
* ```html
|
|
1896
|
+
* <button wr-btn type="button" [wrPopover]="menu">Columns</button>
|
|
1897
|
+
* <ng-template #menu>
|
|
1898
|
+
* <wr-table-column-chooser [table]="table" />
|
|
1899
|
+
* </ng-template>
|
|
1900
|
+
*
|
|
1901
|
+
* <wr-table #table [columns]="columns" [items]="rows" [(hiddenColumns)]="hidden" />
|
|
1902
|
+
* ```
|
|
1903
|
+
*
|
|
1904
|
+
* @see https://ngwr.dev/reference/components/table
|
|
1905
|
+
*/
|
|
1906
|
+
export declare class WrTableColumnChooser {
|
|
1907
|
+
constructor();
|
|
1908
|
+
/** The table whose columns the list shows and hides. */
|
|
1909
|
+
readonly table: import("@angular/core").InputSignal<WrTable<any>>;
|
|
1910
|
+
/** Text of the "Show all" row. Falls back to `table.showAllColumns`. */
|
|
1911
|
+
readonly showAllLabel: import("@angular/core").InputSignal<string | null>;
|
|
1912
|
+
/** Accessible name of the list. Falls back to `table.columns`. */
|
|
1913
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
|
|
1914
|
+
protected readonly resolvedShowAll: import("@angular/core").Signal<string>;
|
|
1915
|
+
protected readonly resolvedLabel: import("@angular/core").Signal<string>;
|
|
1916
|
+
protected readonly columns: import("@angular/core").Signal<readonly WrTableChooserColumn[]>;
|
|
1917
|
+
/** How many of the hideable columns are shown: every one, some, or none. */
|
|
1918
|
+
protected readonly showAllState: import("@angular/core").Signal<"some" | "none" | "all">;
|
|
1919
|
+
/** No column can be shown or hidden, so the row has nothing to do. */
|
|
1920
|
+
protected readonly showAllDisabled: import("@angular/core").Signal<boolean>;
|
|
1921
|
+
/**
|
|
1922
|
+
* Shows every column while one is hidden. Once all are shown it hides every
|
|
1923
|
+
* hideable one, and the table keeps its first column when that would leave none.
|
|
1924
|
+
*/
|
|
1925
|
+
protected toggleShowAll(): void;
|
|
1926
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrTableColumnChooser, never>;
|
|
1927
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WrTableColumnChooser, "wr-table-column-chooser", never, {
|
|
1928
|
+
"table": {
|
|
1929
|
+
"alias": "table";
|
|
1930
|
+
"required": true;
|
|
1931
|
+
"isSignal": true;
|
|
1932
|
+
};
|
|
1933
|
+
"showAllLabel": {
|
|
1934
|
+
"alias": "showAllLabel";
|
|
1935
|
+
"required": false;
|
|
1936
|
+
"isSignal": true;
|
|
1937
|
+
};
|
|
1938
|
+
"ariaLabel": {
|
|
1939
|
+
"alias": "ariaLabel";
|
|
1940
|
+
"required": false;
|
|
1941
|
+
"isSignal": true;
|
|
1942
|
+
};
|
|
1943
|
+
}, {}, never, never, true, never>;
|
|
1944
|
+
}
|
|
1945
|
+
/**
|
|
1946
|
+
* Provide the editor for a column's cells, and with it make the column
|
|
1947
|
+
* editable: a double click, Enter, F2 or a typed character on a cell swaps its
|
|
1948
|
+
* content for this template, and the table emits `cellEdit` when the edit
|
|
1949
|
+
* commits. A column whose definition says `editable: false` stays read-only.
|
|
1950
|
+
*
|
|
1951
|
+
* `set` keeps a value while the reader types and `commit` ends the edit with
|
|
1952
|
+
* one. Enter, Tab and a click outside commit the value last kept; Escape and
|
|
1953
|
+
* `cancel` drop it. `[wrTableEditCellOf]` types the variables, the way
|
|
1954
|
+
* `[wrTableCellOf]` does.
|
|
1955
|
+
*
|
|
1956
|
+
* @example
|
|
1957
|
+
* ```html
|
|
1958
|
+
* <wr-table [columns]="columns" [items]="products" (cellEdit)="save($event)">
|
|
1959
|
+
* <ng-template wrTableEditCell="price" [wrTableEditCellOf]="products" let-value let-set="set">
|
|
1960
|
+
* <wr-input-number aria-label="Price" [value]="value" (valueChange)="set($event)" />
|
|
1961
|
+
* </ng-template>
|
|
1962
|
+
* </wr-table>
|
|
1963
|
+
* ```
|
|
1964
|
+
*/
|
|
1965
|
+
export declare class WrTableEditCell<T extends WrTableRow = WrSafeAny, K extends string = string> {
|
|
1966
|
+
/** Column key the editor applies to. */
|
|
1967
|
+
readonly columnKey: import("@angular/core").InputSignal<K>;
|
|
1968
|
+
/**
|
|
1969
|
+
* The rows the table draws, for the type checker: nothing reads it at
|
|
1970
|
+
* runtime. Bind the same array as the table's `[items]`.
|
|
1971
|
+
*/
|
|
1972
|
+
readonly wrTableEditCellOf: import("@angular/core").InputSignal<readonly T[] | null | undefined>;
|
|
1973
|
+
readonly template: TemplateRef<WrTableEditCellContext<T, K>>;
|
|
1974
|
+
/** Types the template's `let-` variables under `strictTemplates`, as `WrTableCell` does. */
|
|
1975
|
+
static ngTemplateContextGuard<T extends WrTableRow, K extends string>(_dir: WrTableEditCell<T, K>, _ctx: unknown): _ctx is WrTableEditCellContext<T, K>;
|
|
1976
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrTableEditCell<any, any>, never>;
|
|
1977
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WrTableEditCell<any, any>, "[wrTableEditCell]", never, {
|
|
1978
|
+
"columnKey": {
|
|
1979
|
+
"alias": "wrTableEditCell";
|
|
1980
|
+
"required": true;
|
|
1981
|
+
"isSignal": true;
|
|
1982
|
+
};
|
|
1983
|
+
"wrTableEditCellOf": {
|
|
1984
|
+
"alias": "wrTableEditCellOf";
|
|
1985
|
+
"required": false;
|
|
1986
|
+
"isSignal": true;
|
|
1987
|
+
};
|
|
1988
|
+
}, {}, never, never, true, never>;
|
|
1989
|
+
}
|
|
1503
1990
|
/**
|
|
1504
1991
|
* Provide the detail template revealed when a row is expanded. Adding it turns
|
|
1505
1992
|
* on the leading expand column; the row object is the template's implicit
|
|
@@ -1540,6 +2027,41 @@ export declare class WrTableGroupHeader {
|
|
|
1540
2027
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrTableGroupHeader, never>;
|
|
1541
2028
|
static ɵdir: i0.ɵɵDirectiveDeclaration<WrTableGroupHeader, "ng-template[wrTableGroupHeader]", never, {}, {}, never, never, true, never>;
|
|
1542
2029
|
}
|
|
2030
|
+
/**
|
|
2031
|
+
* Provide the actions of the selection bar. With it, the table draws a bar
|
|
2032
|
+
* over its header while `selection` is not empty: the count, a clear button
|
|
2033
|
+
* and this template between them. The selected rows are the template's
|
|
2034
|
+
* implicit context, beside `count`, `clear` and `scope`.
|
|
2035
|
+
*
|
|
2036
|
+
* Name the rows through `[wrTableSelectionBarOf]` and `let-rows` arrives
|
|
2037
|
+
* typed, the way `[wrTableCellOf]` types a cell template.
|
|
2038
|
+
*
|
|
2039
|
+
* @example
|
|
2040
|
+
* ```html
|
|
2041
|
+
* <wr-table rowKey="id" rowSelection="multiple" [columns]="columns" [items]="users" [(selection)]="selected">
|
|
2042
|
+
* <ng-template wrTableSelectionBar [wrTableSelectionBarOf]="users" let-rows>
|
|
2043
|
+
* <button wr-btn type="button" size="sm" color="danger" (click)="remove(rows)">Delete</button>
|
|
2044
|
+
* </ng-template>
|
|
2045
|
+
* </wr-table>
|
|
2046
|
+
* ```
|
|
2047
|
+
*/
|
|
2048
|
+
export declare class WrTableSelectionBar<T extends WrTableRow = WrSafeAny> {
|
|
2049
|
+
/**
|
|
2050
|
+
* The rows the template receives, for the type checker: nothing reads it at
|
|
2051
|
+
* runtime. Bind the same array as the table's `[items]`.
|
|
2052
|
+
*/
|
|
2053
|
+
readonly wrTableSelectionBarOf: import("@angular/core").InputSignal<readonly T[] | null | undefined>;
|
|
2054
|
+
readonly template: TemplateRef<WrTableSelectionContext<T>>;
|
|
2055
|
+
static ngTemplateContextGuard<T extends WrTableRow>(_dir: WrTableSelectionBar<T>, _ctx: unknown): _ctx is WrTableSelectionContext<T>;
|
|
2056
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrTableSelectionBar<any>, never>;
|
|
2057
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WrTableSelectionBar<any>, "ng-template[wrTableSelectionBar]", never, {
|
|
2058
|
+
"wrTableSelectionBarOf": {
|
|
2059
|
+
"alias": "wrTableSelectionBarOf";
|
|
2060
|
+
"required": false;
|
|
2061
|
+
"isSignal": true;
|
|
2062
|
+
};
|
|
2063
|
+
}, {}, never, never, true, never>;
|
|
2064
|
+
}
|
|
1543
2065
|
/**
|
|
1544
2066
|
* Sort indicator rendered in a sortable column's header.
|
|
1545
2067
|
*
|
|
@@ -1723,4 +2245,4 @@ export declare function wrReadField<T>(item: T, key: string): string | number;
|
|
|
1723
2245
|
* @param accessor Reads the value of a key; defaults to `wrReadField`.
|
|
1724
2246
|
*/
|
|
1725
2247
|
export declare function wrSortRows<T>(rows: readonly T[], sort: readonly WrTableSortState[], accessor?: WrTableSortAccessor<T>): readonly T[];
|
|
1726
|
-
export type { WrTableCellContext, WrTableColumn, WrTableColumnAlign, WrTableColumns, WrTableCsvOptions, WrTableExpandContext, WrTableFilterChange, WrTableFilterItem, WrTableGroupContext, WrTableLoadingMode, WrTableRow, WrTableRowClass, WrTableRowClick, WrTableSortAccessor, WrTableSortDirection, WrTableSortState, WrTableSummary, WrTableSummaryContext, WrTableTruncate };
|
|
2248
|
+
export type { WrTableCellContext, WrTableCellEdit, WrTableChooserColumn, WrTableColumn, WrTableColumnAlign, WrTableColumns, WrTableCsvOptions, WrTableEditCellContext, WrTableEditable, WrTableExpandContext, WrTableFilterChange, WrTableFilterItem, WrTableGroupContext, WrTableLoadingMode, WrTableRow, WrTableRowClass, WrTableRowClick, WrTableSelectionContext, WrTableSortAccessor, WrTableSortDirection, WrTableSortState, WrTableState, WrTableSummary, WrTableSummaryContext, WrTableTruncate };
|