ngwr 16.2.0 → 16.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/badge/styles/_tag.scss +73 -1
- package/calendar/styles/_index.scss +22 -0
- package/cascader/styles/_rules.scss +7 -0
- package/color-picker/styles/_index.scss +21 -0
- package/date-picker/styles/_index.scss +19 -0
- package/dropdown/styles/_index.scss +13 -19
- package/fesm2022/ngwr-affix.mjs +3 -3
- package/fesm2022/ngwr-alert-testing.mjs +70 -0
- package/fesm2022/ngwr-alert-testing.mjs.map +1 -0
- package/fesm2022/ngwr-alert.mjs +3 -3
- package/fesm2022/ngwr-anchor.mjs +17 -6
- package/fesm2022/ngwr-anchor.mjs.map +1 -1
- package/fesm2022/ngwr-animations-aurora.mjs +3 -3
- package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-click-sparks.mjs +3 -3
- package/fesm2022/ngwr-animations-confetti.mjs +3 -3
- package/fesm2022/ngwr-animations-decode.mjs +3 -3
- package/fesm2022/ngwr-animations-destruct.mjs +3 -3
- package/fesm2022/ngwr-animations-dot-grid.mjs +3 -3
- package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
- package/fesm2022/ngwr-animations-flow-lines.mjs +3 -3
- package/fesm2022/ngwr-animations-fluid-cursor.mjs +3 -3
- package/fesm2022/ngwr-animations-glitch.mjs +3 -3
- package/fesm2022/ngwr-animations-glow-border.mjs +3 -3
- package/fesm2022/ngwr-animations-gradient-flow.mjs +3 -3
- package/fesm2022/ngwr-animations-marquee.mjs +3 -3
- package/fesm2022/ngwr-animations-orbit.mjs +3 -3
- package/fesm2022/ngwr-animations-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-ripple-grid.mjs +3 -3
- package/fesm2022/ngwr-animations-rotate-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-shimmer.mjs +3 -3
- package/fesm2022/ngwr-animations-spotlight.mjs +3 -3
- package/fesm2022/ngwr-animations-thread-lines.mjs +3 -3
- package/fesm2022/ngwr-animations-tilt.mjs +3 -3
- package/fesm2022/ngwr-animations-typewriter.mjs +3 -3
- package/fesm2022/ngwr-avatar.mjs +3 -3
- package/fesm2022/ngwr-back-top.mjs +3 -3
- package/fesm2022/ngwr-badge.mjs +129 -11
- package/fesm2022/ngwr-badge.mjs.map +1 -1
- package/fesm2022/ngwr-breadcrumbs-testing.mjs +83 -0
- package/fesm2022/ngwr-breadcrumbs-testing.mjs.map +1 -0
- package/fesm2022/ngwr-breadcrumbs.mjs +8 -8
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-burger-testing.mjs +45 -0
- package/fesm2022/ngwr-burger-testing.mjs.map +1 -0
- package/fesm2022/ngwr-burger.mjs +3 -3
- package/fesm2022/ngwr-button.mjs +6 -6
- package/fesm2022/ngwr-calendar-testing.mjs +18 -0
- package/fesm2022/ngwr-calendar-testing.mjs.map +1 -1
- package/fesm2022/ngwr-calendar.mjs +500 -73
- package/fesm2022/ngwr-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-card.mjs +9 -9
- package/fesm2022/ngwr-carousel.mjs +6 -6
- package/fesm2022/ngwr-cascader.mjs +37 -16
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart.mjs +5 -4
- package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-boxplot-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-bullet-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -3
- package/fesm2022/ngwr-charts-candlestick-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-chart-legend.mjs +26 -11
- package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
- package/fesm2022/ngwr-charts-core.mjs +3 -3
- package/fesm2022/ngwr-charts-donut-chart.mjs +5 -4
- package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-funnel-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-gauge.mjs +3 -3
- package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-line-chart-testing.mjs +3 -2
- package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-line-chart.mjs +17 -7
- package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group.mjs +5 -4
- package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart.mjs +5 -4
- package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-scatter-chart.mjs +5 -4
- package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-sparkline.mjs +3 -3
- package/fesm2022/ngwr-charts-treemap-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-waterfall-chart.mjs +3 -3
- package/fesm2022/ngwr-checkbox.mjs +6 -6
- package/fesm2022/ngwr-clipboard.mjs +3 -3
- package/fesm2022/ngwr-collapse.mjs +9 -9
- package/fesm2022/ngwr-color-picker-testing.mjs +11 -1
- package/fesm2022/ngwr-color-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker.mjs +153 -37
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-command-palette.mjs +3 -3
- package/fesm2022/ngwr-comment.mjs +10 -6
- package/fesm2022/ngwr-comment.mjs.map +1 -1
- package/fesm2022/ngwr-compare-testing.mjs +84 -0
- package/fesm2022/ngwr-compare-testing.mjs.map +1 -0
- package/fesm2022/ngwr-compare.mjs +3 -3
- package/fesm2022/ngwr-context-menu.mjs +12 -12
- package/fesm2022/ngwr-cookie.mjs +3 -3
- package/fesm2022/ngwr-copy-value.mjs +3 -3
- package/fesm2022/ngwr-counter.mjs +6 -6
- package/fesm2022/ngwr-date-picker-testing.mjs +30 -4
- package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +342 -69
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp.mjs +3 -3
- package/fesm2022/ngwr-date.mjs +59 -8
- package/fesm2022/ngwr-date.mjs.map +1 -1
- package/fesm2022/ngwr-density.mjs +6 -6
- package/fesm2022/ngwr-descriptions.mjs +6 -6
- package/fesm2022/ngwr-dialog.mjs +18 -18
- package/fesm2022/ngwr-directives.mjs +15 -15
- package/fesm2022/ngwr-divider.mjs +3 -3
- package/fesm2022/ngwr-drawer.mjs +51 -29
- package/fesm2022/ngwr-drawer.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown-testing.mjs +11 -3
- package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +52 -95
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +4 -3
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-empty.mjs +3 -3
- package/fesm2022/ngwr-event-calendar.mjs +186 -33
- package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload-testing.mjs +34 -2
- package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload.mjs +274 -15
- package/fesm2022/ngwr-file-upload.mjs.map +1 -1
- package/fesm2022/ngwr-form.mjs +9 -9
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-graph-testing.mjs +3 -0
- package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
- package/fesm2022/ngwr-graph.mjs +102 -42
- package/fesm2022/ngwr-graph.mjs.map +1 -1
- package/fesm2022/ngwr-hotkey.mjs +6 -6
- package/fesm2022/ngwr-i18n-ar.mjs +19 -4
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +19 -4
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +19 -4
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +19 -4
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +19 -4
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +19 -4
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +19 -4
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +19 -4
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +19 -4
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +19 -4
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +19 -4
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +19 -4
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +19 -4
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +19 -4
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +19 -4
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +19 -4
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +19 -4
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +19 -4
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +19 -4
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +19 -4
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +19 -4
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +19 -4
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +9 -9
- package/fesm2022/ngwr-icon.mjs +6 -6
- package/fesm2022/ngwr-image-cropper.mjs +3 -3
- package/fesm2022/ngwr-input-number-testing.mjs +11 -0
- package/fesm2022/ngwr-input-number-testing.mjs.map +1 -1
- package/fesm2022/ngwr-input-number.mjs +68 -7
- package/fesm2022/ngwr-input-number.mjs.map +1 -1
- package/fesm2022/ngwr-input-otp.mjs +23 -3
- package/fesm2022/ngwr-input-otp.mjs.map +1 -1
- package/fesm2022/ngwr-input-testing.mjs +24 -1
- package/fesm2022/ngwr-input-testing.mjs.map +1 -1
- package/fesm2022/ngwr-input.mjs +152 -36
- package/fesm2022/ngwr-input.mjs.map +1 -1
- package/fesm2022/ngwr-keyboard.mjs +3 -3
- package/fesm2022/ngwr-knob.mjs +3 -3
- package/fesm2022/ngwr-layout.mjs +15 -15
- package/fesm2022/ngwr-lightbox.mjs +8 -8
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +8 -8
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-load-state.mjs +15 -15
- package/fesm2022/ngwr-loading-bar.mjs +6 -6
- package/fesm2022/ngwr-mention.mjs +6 -6
- package/fesm2022/ngwr-meta.mjs +6 -6
- package/fesm2022/ngwr-overlay.mjs +175 -13
- package/fesm2022/ngwr-overlay.mjs.map +1 -1
- package/fesm2022/ngwr-page-header.mjs +3 -3
- package/fesm2022/ngwr-pagination.mjs +5 -3
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +31 -29
- package/fesm2022/ngwr-pipes.mjs.map +1 -1
- package/fesm2022/ngwr-platform.mjs +9 -9
- package/fesm2022/ngwr-popconfirm-testing.mjs +5 -2
- package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm.mjs +44 -63
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-popover-testing.mjs +7 -1
- package/fesm2022/ngwr-popover-testing.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +58 -156
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-progress.mjs +50 -9
- package/fesm2022/ngwr-progress.mjs.map +1 -1
- package/fesm2022/ngwr-pull-to-refresh-testing.mjs +57 -0
- package/fesm2022/ngwr-pull-to-refresh-testing.mjs.map +1 -0
- package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
- package/fesm2022/ngwr-qr.mjs +3 -3
- package/fesm2022/ngwr-radio.mjs +6 -6
- package/fesm2022/ngwr-rating.mjs +3 -3
- package/fesm2022/ngwr-resizable-testing.mjs +113 -0
- package/fesm2022/ngwr-resizable-testing.mjs.map +1 -0
- package/fesm2022/ngwr-resizable.mjs +3 -3
- package/fesm2022/ngwr-result.mjs +12 -12
- package/fesm2022/ngwr-schema-form-testing.mjs +336 -0
- package/fesm2022/ngwr-schema-form-testing.mjs.map +1 -0
- package/fesm2022/ngwr-schema-form.mjs +415 -19
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-scroll.mjs +3 -3
- package/fesm2022/ngwr-segmented.mjs +3 -3
- package/fesm2022/ngwr-select-testing.mjs +19 -0
- package/fesm2022/ngwr-select-testing.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +263 -83
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-sidebar-testing.mjs +176 -0
- package/fesm2022/ngwr-sidebar-testing.mjs.map +1 -0
- package/fesm2022/ngwr-sidebar.mjs +3 -3
- package/fesm2022/ngwr-skeleton.mjs +3 -3
- package/fesm2022/ngwr-slider-testing.mjs +6 -0
- package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
- package/fesm2022/ngwr-slider.mjs +21 -3
- package/fesm2022/ngwr-slider.mjs.map +1 -1
- package/fesm2022/ngwr-sortable-list.mjs +29 -12
- package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
- package/fesm2022/ngwr-speed-dial.mjs +3 -3
- package/fesm2022/ngwr-spinner.mjs +3 -3
- package/fesm2022/ngwr-splitter.mjs +3 -3
- package/fesm2022/ngwr-statistic.mjs +9 -9
- package/fesm2022/ngwr-stepper.mjs +42 -11
- package/fesm2022/ngwr-stepper.mjs.map +1 -1
- package/fesm2022/ngwr-storage.mjs +3 -3
- package/fesm2022/ngwr-switch.mjs +3 -3
- package/fesm2022/ngwr-table-testing.mjs +88 -2
- package/fesm2022/ngwr-table-testing.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +891 -74
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tabs-router.mjs +3 -3
- package/fesm2022/ngwr-tabs-testing.mjs +1 -1
- package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tabs.mjs +15 -10
- package/fesm2022/ngwr-tabs.mjs.map +1 -1
- package/fesm2022/ngwr-textarea-testing.mjs +11 -0
- package/fesm2022/ngwr-textarea-testing.mjs.map +1 -1
- package/fesm2022/ngwr-textarea.mjs +128 -16
- package/fesm2022/ngwr-textarea.mjs.map +1 -1
- package/fesm2022/ngwr-theme.mjs +3 -3
- package/fesm2022/ngwr-timeline.mjs +6 -6
- package/fesm2022/ngwr-toast.mjs +40 -19
- package/fesm2022/ngwr-toast.mjs.map +1 -1
- package/fesm2022/ngwr-toolbar.mjs +3 -3
- package/fesm2022/ngwr-tour.mjs +6 -6
- package/fesm2022/ngwr-transfer-testing.mjs +6 -0
- package/fesm2022/ngwr-transfer-testing.mjs.map +1 -1
- package/fesm2022/ngwr-transfer.mjs +24 -5
- package/fesm2022/ngwr-transfer.mjs.map +1 -1
- package/fesm2022/ngwr-tree-testing.mjs +62 -2
- package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +966 -78
- package/fesm2022/ngwr-tree.mjs.map +1 -1
- package/fesm2022/ngwr-typography.mjs +3 -3
- package/fesm2022/ngwr-utils-router.mjs +3 -3
- package/fesm2022/ngwr-utils.mjs +34 -1
- package/fesm2022/ngwr-utils.mjs.map +1 -1
- package/fesm2022/ngwr-version.mjs +1 -1
- package/fesm2022/ngwr-version.mjs.map +1 -1
- package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
- package/fesm2022/ngwr-window.mjs +33 -22
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/file-upload/styles/_index.scss +156 -0
- package/i18n/ar.json +21 -4
- package/i18n/cs.json +21 -4
- package/i18n/de.json +21 -4
- package/i18n/en.json +21 -4
- package/i18n/es.json +21 -4
- package/i18n/fr.json +21 -4
- package/i18n/he.json +21 -4
- package/i18n/hi.json +21 -4
- package/i18n/id.json +21 -4
- package/i18n/it.json +21 -4
- package/i18n/ja.json +21 -4
- package/i18n/ko.json +21 -4
- package/i18n/nl.json +21 -4
- package/i18n/pl.json +21 -4
- package/i18n/pt.json +21 -4
- package/i18n/ru.json +21 -4
- package/i18n/sv.json +21 -4
- package/i18n/tr.json +21 -4
- package/i18n/uk.json +21 -4
- package/i18n/vi.json +21 -4
- package/i18n/zh-TW.json +21 -4
- package/i18n/zh.json +21 -4
- package/input/styles/_index.scss +68 -1
- package/input-otp/styles/_index.scss +14 -0
- package/llms-full.txt +52 -20
- package/overlay/styles/_arrow.scss +4 -4
- package/package.json +33 -1
- package/popconfirm/styles/_index.scss +3 -11
- package/progress/styles/_index.scss +32 -0
- package/schema-form/styles/_index.scss +78 -0
- package/schematics/use/rule.js +2 -0
- package/schematics/use/symbol-map.json +4 -0
- package/select/styles/_index.scss +114 -22
- package/skills/ngwr/SKILL.md +1 -1
- package/skills/ngwr/references/catalog.md +9 -1
- package/slider/styles/_index.scss +22 -0
- package/table/styles/_index.scss +167 -3
- package/textarea/styles/_index.scss +80 -0
- package/theme/styles/_focus.scss +5 -0
- package/theme/styles/_motion.scss +5 -0
- package/transfer/styles/_index.scss +84 -0
- package/tree/styles/_index.scss +138 -5
- package/types/ngwr-alert-testing.d.ts +88 -0
- package/types/ngwr-badge.d.ts +72 -2
- package/types/ngwr-breadcrumbs-testing.d.ts +92 -0
- package/types/ngwr-burger-testing.d.ts +51 -0
- package/types/ngwr-calendar-testing.d.ts +18 -6
- package/types/ngwr-calendar.d.ts +272 -22
- package/types/ngwr-cascader.d.ts +10 -1
- package/types/ngwr-charts-chart-legend.d.ts +9 -4
- package/types/ngwr-charts-line-chart-testing.d.ts +4 -1
- package/types/ngwr-charts-line-chart.d.ts +7 -4
- package/types/ngwr-color-picker-testing.d.ts +15 -4
- package/types/ngwr-color-picker.d.ts +76 -6
- package/types/ngwr-compare-testing.d.ts +72 -0
- package/types/ngwr-date-picker-testing.d.ts +23 -8
- package/types/ngwr-date-picker.d.ts +100 -9
- package/types/ngwr-date.d.ts +71 -1
- package/types/ngwr-drawer.d.ts +9 -0
- package/types/ngwr-dropdown-testing.d.ts +20 -0
- package/types/ngwr-dropdown.d.ts +24 -6
- package/types/ngwr-event-calendar.d.ts +66 -8
- package/types/ngwr-file-upload-testing.d.ts +31 -2
- package/types/ngwr-file-upload.d.ts +148 -1
- package/types/ngwr-form.d.ts +47 -3
- package/types/ngwr-graph-testing.d.ts +8 -3
- package/types/ngwr-graph.d.ts +147 -7
- package/types/ngwr-input-number-testing.d.ts +10 -0
- package/types/ngwr-input-number.d.ts +30 -1
- package/types/ngwr-input-otp.d.ts +10 -0
- package/types/ngwr-input-testing.d.ts +30 -0
- package/types/ngwr-input.d.ts +54 -3
- package/types/ngwr-overlay.d.ts +84 -5
- package/types/ngwr-pipes.d.ts +2 -1
- package/types/ngwr-popconfirm-testing.d.ts +12 -3
- package/types/ngwr-popconfirm.d.ts +28 -3
- package/types/ngwr-popover-testing.d.ts +19 -2
- package/types/ngwr-popover.d.ts +22 -2
- package/types/ngwr-progress.d.ts +29 -1
- package/types/ngwr-pull-to-refresh-testing.d.ts +83 -0
- package/types/ngwr-resizable-testing.d.ts +116 -0
- package/types/ngwr-schema-form-testing.d.ts +260 -0
- package/types/ngwr-schema-form.d.ts +76 -6
- package/types/ngwr-select-testing.d.ts +20 -0
- package/types/ngwr-select.d.ts +112 -11
- package/types/ngwr-sidebar-testing.d.ts +176 -0
- package/types/ngwr-slider-testing.d.ts +3 -1
- package/types/ngwr-slider.d.ts +21 -1
- package/types/ngwr-sortable-list.d.ts +6 -0
- package/types/ngwr-stepper.d.ts +20 -11
- package/types/ngwr-table-testing.d.ts +70 -6
- package/types/ngwr-table.d.ts +480 -50
- package/types/ngwr-tabs-testing.d.ts +14 -17
- package/types/ngwr-tabs.d.ts +6 -0
- package/types/ngwr-textarea-testing.d.ts +10 -0
- package/types/ngwr-textarea.d.ts +48 -2
- package/types/ngwr-toast.d.ts +8 -1
- package/types/ngwr-transfer-testing.d.ts +3 -0
- package/types/ngwr-transfer.d.ts +24 -1
- package/types/ngwr-tree-testing.d.ts +65 -1
- package/types/ngwr-tree.d.ts +333 -12
- package/types/ngwr-utils.d.ts +28 -0
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr-window.d.ts +7 -4
package/types/ngwr-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,57 @@ 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
|
+
* Context passed to a `[wrTableEditCell]` template, the editor of one cell.
|
|
361
|
+
*
|
|
362
|
+
* `T` is the row and `K` the column key, both from the directive's
|
|
363
|
+
* `[wrTableEditCellOf]` input, the way `[wrTableCellOf]` types a cell template.
|
|
364
|
+
*
|
|
365
|
+
* `set` and `commit` take `unknown`: a control's own value type is often wider
|
|
366
|
+
* than the cell's (a cleared number field emits `null`), and `cellEdit` hands
|
|
367
|
+
* the value on as `unknown` for the handler to check.
|
|
368
|
+
*/
|
|
369
|
+
interface WrTableEditCellContext<T extends WrTableRow = Record<string, unknown>, K extends string = string> {
|
|
370
|
+
/**
|
|
371
|
+
* The pending value: the cell's own when the edit starts, then whatever
|
|
372
|
+
* `set` last took. Use as `let-value`.
|
|
373
|
+
*/
|
|
374
|
+
readonly $implicit: K extends keyof T ? T[K] : unknown;
|
|
375
|
+
/** The row being edited. */
|
|
376
|
+
readonly row: T;
|
|
377
|
+
/** The column definition. */
|
|
378
|
+
readonly column: WrTableColumn<T>;
|
|
379
|
+
/**
|
|
380
|
+
* Keeps a value without ending the edit. Enter, Tab and a click outside the
|
|
381
|
+
* cell commit the last one kept.
|
|
382
|
+
*/
|
|
383
|
+
readonly set: (value: unknown) => void;
|
|
384
|
+
/** Ends the edit with this value: the table emits `cellEdit` and focus returns to the cell. */
|
|
385
|
+
readonly commit: (value: unknown) => void;
|
|
386
|
+
/** Ends the edit and drops the pending value. Focus returns to the cell. */
|
|
387
|
+
readonly cancel: () => void;
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* Decides whether one cell can be edited, from its row and its column key. It
|
|
391
|
+
* is asked only for a column that has a `[wrTableEditCell]` template and does
|
|
392
|
+
* not say `editable: false`, and it runs during change detection: keep it a
|
|
393
|
+
* pure read of the row.
|
|
394
|
+
*/
|
|
395
|
+
type WrTableEditable<T extends WrTableRow = WrTableRow> = (row: T, key: string) => boolean;
|
|
335
396
|
/**
|
|
336
397
|
* @license
|
|
337
398
|
*
|
|
@@ -382,6 +443,49 @@ interface WrTableExpandContext {
|
|
|
382
443
|
* - `'bar'` — a thin progress bar along the top edge, rows left as they are
|
|
383
444
|
*/
|
|
384
445
|
type WrTableLoadingMode = 'auto' | 'overlay' | 'bar';
|
|
446
|
+
/**
|
|
447
|
+
* Context of the `[wrTableSelectionBar]` template, the actions of the bar the
|
|
448
|
+
* table draws over its header while rows are selected.
|
|
449
|
+
*/
|
|
450
|
+
interface WrTableSelectionContext<T extends WrTableRow = WrTableRow> {
|
|
451
|
+
/**
|
|
452
|
+
* The selected rows the table holds, in `items` order. In server mode
|
|
453
|
+
* (`total` set) that is the selected rows of the current page: a key
|
|
454
|
+
* selected on another page is counted and is not here.
|
|
455
|
+
*/
|
|
456
|
+
readonly $implicit: readonly T[];
|
|
457
|
+
/** How many keys `selection` holds. */
|
|
458
|
+
readonly count: number;
|
|
459
|
+
/** Empties the selection. Focus goes back to the table when it was in the bar. */
|
|
460
|
+
readonly clear: () => void;
|
|
461
|
+
/**
|
|
462
|
+
* What the header select-all covers: `selectAllScope`, or `'page'` in server
|
|
463
|
+
* mode, where the table holds one page.
|
|
464
|
+
*/
|
|
465
|
+
readonly scope: 'page' | 'all';
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Everything a reader can change about a `<wr-table>`, in one object: what
|
|
469
|
+
* `(stateChange)` emits and `[state]` restores. It holds plain data, so a
|
|
470
|
+
* state whose filter values are primitives survives `JSON.stringify`.
|
|
471
|
+
*/
|
|
472
|
+
interface WrTableState {
|
|
473
|
+
/** The sort, in application order: the `sort` model. */
|
|
474
|
+
readonly sort: readonly WrTableSortState[];
|
|
475
|
+
/**
|
|
476
|
+
* The selected filter values per column key. A column with nothing selected
|
|
477
|
+
* has no entry.
|
|
478
|
+
*/
|
|
479
|
+
readonly filters: Readonly<Record<string, readonly unknown[]>>;
|
|
480
|
+
/** The 1-based current page: the `page` model. */
|
|
481
|
+
readonly page: number;
|
|
482
|
+
/** The rows per page in force, `0` when the table does not page. */
|
|
483
|
+
readonly pageSize: number;
|
|
484
|
+
/** The `columnOrder` model: empty until a column is dragged. */
|
|
485
|
+
readonly columnOrder: readonly string[];
|
|
486
|
+
/** The `hiddenColumns` model. */
|
|
487
|
+
readonly hiddenColumns: readonly string[];
|
|
488
|
+
}
|
|
385
489
|
/** One `<tbody>` row descriptor. Not exported — same precedent as the tree's flat node. */
|
|
386
490
|
type RenderRow = {
|
|
387
491
|
readonly kind: 'group';
|
|
@@ -406,6 +510,48 @@ type RenderRow = {
|
|
|
406
510
|
readonly id: string;
|
|
407
511
|
readonly summaries: ReadonlyMap<string, unknown>;
|
|
408
512
|
};
|
|
513
|
+
/**
|
|
514
|
+
* A display column with everything its cells draw from the column alone, so a
|
|
515
|
+
* cell binding reads a property instead of calling a method on every pass.
|
|
516
|
+
*/
|
|
517
|
+
interface CellColumn<T extends WrTableRow> {
|
|
518
|
+
readonly key: string;
|
|
519
|
+
readonly column: WrTableColumn<T>;
|
|
520
|
+
readonly thClass: string;
|
|
521
|
+
readonly tdClass: string;
|
|
522
|
+
readonly footClass: string;
|
|
523
|
+
readonly pinned: boolean;
|
|
524
|
+
readonly pinLeft: boolean;
|
|
525
|
+
readonly pinRight: boolean;
|
|
526
|
+
/** The inner-edge pinned column of its side, which carries the shadow. */
|
|
527
|
+
readonly edgeLeft: boolean;
|
|
528
|
+
readonly edgeRight: boolean;
|
|
529
|
+
/** Sticky `inset-inline-start` / `-end` offsets in px, `null` off the pinned set. */
|
|
530
|
+
readonly start: number | null;
|
|
531
|
+
readonly end: number | null;
|
|
532
|
+
/** The `<col>` width in px, `null` for auto. A live resize wins. */
|
|
533
|
+
readonly width: number | null;
|
|
534
|
+
/** The `width` a truncated column's cells are capped at. */
|
|
535
|
+
readonly maxWidth: number | null;
|
|
536
|
+
/** Whether its cell names the row (see `labelColumnKey`). */
|
|
537
|
+
readonly label: boolean;
|
|
538
|
+
/** Whether its cell carries the tree indent and toggle. */
|
|
539
|
+
readonly tree: boolean;
|
|
540
|
+
readonly template: TemplateRef<WrTableCellContext> | undefined;
|
|
541
|
+
/** The column's editor, `undefined` without one and under `editable: false`. */
|
|
542
|
+
readonly editTemplate: TemplateRef<WrTableEditCellContext> | undefined;
|
|
543
|
+
/** The context each row's cell template gets, kept so a pass hands the outlet the same object. */
|
|
544
|
+
readonly contexts: WeakMap<Record<string, unknown>, WrTableCellContext>;
|
|
545
|
+
}
|
|
546
|
+
/** One cell edit in flight. */
|
|
547
|
+
interface CellEdit {
|
|
548
|
+
readonly row: Record<string, unknown>;
|
|
549
|
+
readonly key: string;
|
|
550
|
+
readonly td: HTMLElement;
|
|
551
|
+
readonly previous: unknown;
|
|
552
|
+
readonly pending: WritableSignal<unknown>;
|
|
553
|
+
readonly context: WrTableEditCellContext;
|
|
554
|
+
}
|
|
409
555
|
/**
|
|
410
556
|
* Data table with sortable / filterable headers and custom cell templates.
|
|
411
557
|
*
|
|
@@ -481,6 +627,22 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
481
627
|
* listed, and updates this on drag. Bind it to persist a user's arrangement.
|
|
482
628
|
*/
|
|
483
629
|
readonly columnOrder: import("@angular/core").ModelSignal<readonly string[]>;
|
|
630
|
+
/**
|
|
631
|
+
* Two-way bindable hidden columns, an array of column keys. A hidden column
|
|
632
|
+
* renders nothing: no header, no cell, no summary, no `<col>`. Its sort and
|
|
633
|
+
* its filter selection stay as they are, and `toCsv()` leaves it out. A
|
|
634
|
+
* column with `hideable: false` is shown whatever this lists, and so is the
|
|
635
|
+
* first column when the list would leave none. Bind it beside `columnOrder`
|
|
636
|
+
* to persist a user's arrangement.
|
|
637
|
+
*/
|
|
638
|
+
readonly hiddenColumns: import("@angular/core").ModelSignal<readonly string[]>;
|
|
639
|
+
/**
|
|
640
|
+
* Show a toolbar above the table with a button that opens the column
|
|
641
|
+
* chooser: one checkbox per column, in column order, named by the column's
|
|
642
|
+
* title. A `hideable: false` column and the last visible one cannot be
|
|
643
|
+
* unchecked. Each toggle writes `hiddenColumns`. @default false
|
|
644
|
+
*/
|
|
645
|
+
readonly columnChooser: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
484
646
|
/**
|
|
485
647
|
* Row selection with a leading checkbox column — `'multiple'` adds a
|
|
486
648
|
* select-all header; `'single'` keeps one row selected. @default null (off)
|
|
@@ -642,6 +804,15 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
642
804
|
readonly toggleGroupLabel: import("@angular/core").InputSignal<string | null>;
|
|
643
805
|
/** Accessible name of the loading overlay or bar. Falls back to `table.loading`. */
|
|
644
806
|
readonly loadingLabel: import("@angular/core").InputSignal<string | null>;
|
|
807
|
+
/**
|
|
808
|
+
* Text of the selection bar's count, with `{{count}}` where the number goes.
|
|
809
|
+
* Falls back to `table.selected`.
|
|
810
|
+
*/
|
|
811
|
+
readonly selectedLabel: import("@angular/core").InputSignal<string | null>;
|
|
812
|
+
/** Text of the selection bar's clear button. Falls back to `table.clearSelection`. */
|
|
813
|
+
readonly clearSelectionLabel: import("@angular/core").InputSignal<string | null>;
|
|
814
|
+
/** Text of the column chooser's button and name of its panel. Falls back to `table.columns`. */
|
|
815
|
+
readonly columnsLabel: import("@angular/core").InputSignal<string | null>;
|
|
645
816
|
protected readonly resolvedEmptyLabel: import("@angular/core").Signal<string>;
|
|
646
817
|
/**
|
|
647
818
|
* The loading overlay was a bare spinner in a `<div>` — a busy state with no
|
|
@@ -650,6 +821,9 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
650
821
|
* never read.
|
|
651
822
|
*/
|
|
652
823
|
protected readonly resolvedLoadingLabel: import("@angular/core").Signal<string>;
|
|
824
|
+
protected readonly resolvedColumnsLabel: import("@angular/core").Signal<string>;
|
|
825
|
+
protected readonly resolvedClearSelectionLabel: import("@angular/core").Signal<string>;
|
|
826
|
+
private readonly selectedText;
|
|
653
827
|
private readonly sortText;
|
|
654
828
|
/**
|
|
655
829
|
* The sort button's accessible name, with the COLUMN in it.
|
|
@@ -701,6 +875,31 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
701
875
|
protected groupControlLabelledby(action: 'select-group' | 'toggle-group', groupId: string): string;
|
|
702
876
|
/** Fires whenever a column's filter selection changes. */
|
|
703
877
|
readonly filterChange: import("@angular/core").OutputEmitterRef<WrTableFilterChange>;
|
|
878
|
+
/**
|
|
879
|
+
* Restores the table in one write: the sort, each column's filter selection,
|
|
880
|
+
* the page, the page size, the column order and the hidden columns. A saved
|
|
881
|
+
* view binds here. It is applied when the bound object changes, so hand it a
|
|
882
|
+
* new object to restore the same view a second time; a key left out keeps
|
|
883
|
+
* what the table has. The models it writes fire their own `*Change`, and
|
|
884
|
+
* `pageSizeChange` fires for a new size; `filterChange` and `stateChange` do
|
|
885
|
+
* not, since the host already holds what it restored. Pairs with
|
|
886
|
+
* `stateChange` as `[(state)]`.
|
|
887
|
+
* @default null
|
|
888
|
+
*/
|
|
889
|
+
readonly state: import("@angular/core").InputSignal<Partial<WrTableState> | null>;
|
|
890
|
+
/**
|
|
891
|
+
* Fires with the whole state after a change the reader makes: a sort, a
|
|
892
|
+
* filter, a page, a page size, a column drag, a column shown or hidden. One
|
|
893
|
+
* action is one event, so a new page size that also moves the page fires
|
|
894
|
+
* once. A write from the host, through `state` or a model, does not fire.
|
|
895
|
+
*/
|
|
896
|
+
readonly stateChange: import("@angular/core").OutputEmitterRef<WrTableState>;
|
|
897
|
+
/** Bumped by every reader action `stateChange` reports. */
|
|
898
|
+
private readonly readerChanges;
|
|
899
|
+
/** The last state emitted, which comes straight back under `[(state)]`. */
|
|
900
|
+
private emittedState;
|
|
901
|
+
private currentState;
|
|
902
|
+
private restoreState;
|
|
704
903
|
/**
|
|
705
904
|
* Fires when a body row is clicked, with the row, its index in `items` and the
|
|
706
905
|
* click. Group bands, summary rows and detail rows do not fire it.
|
|
@@ -740,7 +939,7 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
740
939
|
/** Fires with the size the reader picks in the pager's size menu. */
|
|
741
940
|
readonly pageSizeChange: import("@angular/core").OutputEmitterRef<number>;
|
|
742
941
|
/** The size in force: the bound `pageSize`, until the reader picks another. */
|
|
743
|
-
protected readonly currentPageSize:
|
|
942
|
+
protected readonly currentPageSize: WritableSignal<number>;
|
|
744
943
|
/** Two-way bindable 1-based current page. */
|
|
745
944
|
readonly page: import("@angular/core").ModelSignal<number>;
|
|
746
945
|
/**
|
|
@@ -815,6 +1014,7 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
815
1014
|
/** Show the pager footer only when paging is enabled and rows overflow. */
|
|
816
1015
|
protected readonly showPager: import("@angular/core").Signal<boolean>;
|
|
817
1016
|
protected onPageSizeChange(size: number): void;
|
|
1017
|
+
protected onPagerPage(page: number): void;
|
|
818
1018
|
/**
|
|
819
1019
|
* Typed at the context's own default: the directive's `T` is whatever each
|
|
820
1020
|
* template declared, and the table hands every one the same record.
|
|
@@ -822,6 +1022,9 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
822
1022
|
private readonly cellTemplates;
|
|
823
1023
|
/** Map of column key → custom template (if provided via `[wrTableCell]`). */
|
|
824
1024
|
protected readonly cellMap: import("@angular/core").Signal<Map<string, TemplateRef<WrTableCellContext<Record<string, unknown>, string>>>>;
|
|
1025
|
+
private readonly editTemplates;
|
|
1026
|
+
/** Map of column key → editor template (if provided via `[wrTableEditCell]`). */
|
|
1027
|
+
private readonly editMap;
|
|
825
1028
|
private readonly platformId;
|
|
826
1029
|
private readonly headerCells;
|
|
827
1030
|
/**
|
|
@@ -836,14 +1039,27 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
836
1039
|
private readonly dir;
|
|
837
1040
|
private isRtl;
|
|
838
1041
|
/**
|
|
839
|
-
*
|
|
840
|
-
* once reordered; new keys append, removed keys drop out.
|
|
841
|
-
|
|
1042
|
+
* Every column in order, hidden ones included — declaration order, overridden
|
|
1043
|
+
* by `columnOrder` once reordered; new keys append, removed keys drop out.
|
|
1044
|
+
*/
|
|
1045
|
+
private readonly orderedColumns;
|
|
1046
|
+
/**
|
|
1047
|
+
* Columns in render order: {@link orderedColumns} less `hiddenColumns`. Pin
|
|
1048
|
+
* and resize measurement key off this, so it must equal the rendered order.
|
|
1049
|
+
* The same array as `orderedColumns()` while nothing is hidden.
|
|
842
1050
|
*/
|
|
843
1051
|
protected readonly displayColumns: import("@angular/core").Signal<readonly {
|
|
844
1052
|
key: string;
|
|
845
1053
|
column: WrTableColumn<T>;
|
|
846
1054
|
}[]>;
|
|
1055
|
+
/** One row of the column chooser per column, hidden ones included. */
|
|
1056
|
+
protected readonly chooserColumns: import("@angular/core").Signal<{
|
|
1057
|
+
key: string;
|
|
1058
|
+
title: string;
|
|
1059
|
+
visible: boolean;
|
|
1060
|
+
locked: boolean;
|
|
1061
|
+
}[]>;
|
|
1062
|
+
protected setColumnVisible(key: string, visible: boolean): void;
|
|
847
1063
|
/**
|
|
848
1064
|
* Sticky offsets for pinned columns, measured from the header cells so any
|
|
849
1065
|
* number of columns can stack per side. Also names the inner-edge column on
|
|
@@ -869,43 +1085,38 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
869
1085
|
constructor();
|
|
870
1086
|
private setOverflow;
|
|
871
1087
|
private measurePins;
|
|
1088
|
+
/** Per column key. Rebuilt with the columns and the cell templates, never on a pin measurement, a resize or a hidden column. */
|
|
1089
|
+
private readonly cellContexts;
|
|
872
1090
|
/**
|
|
873
|
-
*
|
|
1091
|
+
* {@link displayColumns} with the per-column half of every cell resolved
|
|
1092
|
+
* once. Apart from `displayColumns` because the pin effect reads that one
|
|
1093
|
+
* and writes `pins`, which this reads.
|
|
874
1094
|
*
|
|
875
|
-
*
|
|
876
|
-
*
|
|
877
|
-
*
|
|
878
|
-
*
|
|
879
|
-
*
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
1095
|
+
* `pin` keeps its physical name — it is public API — but the offsets are
|
|
1096
|
+
* LOGICAL. `measurePins()` accumulates in DOM order, which is start-to-end
|
|
1097
|
+
* semantics, and under `dir="rtl"` the column order mirrors: a `pin: 'left'`
|
|
1098
|
+
* column then sits at the physical right, where a `left: 0` sticky inset can
|
|
1099
|
+
* never catch it and the column just scrolls away.
|
|
1100
|
+
*
|
|
1101
|
+
* The class strings are the BEM class and the consumer's own, merged. One
|
|
1102
|
+
* binding rather than a static `class` beside a `[class]` — Angular does
|
|
1103
|
+
* merge the two, but `no-duplicate-attributes` refuses the shape, and a
|
|
1104
|
+
* reader should not have to know the merge rules to know what a cell ends up
|
|
1105
|
+
* with. The summary and group-footer cells take `align` only, on the body
|
|
1106
|
+
* cell's modifier, the way they already wear `__td--pin-*`: `column.class`
|
|
1107
|
+
* stays off them, as its docs say.
|
|
1108
|
+
*/
|
|
1109
|
+
protected readonly cellColumns: import("@angular/core").Signal<readonly CellColumn<T>[]>;
|
|
884
1110
|
private readonly hasPins;
|
|
885
1111
|
/**
|
|
886
1112
|
* Whether columns are hidden past the start and the end of the scroll area,
|
|
887
1113
|
* the host's `wr-table--overflow-start` / `--overflow-end`. Only a table with
|
|
888
1114
|
* a pinned column measures it.
|
|
889
1115
|
*/
|
|
890
|
-
protected readonly overflow:
|
|
1116
|
+
protected readonly overflow: WritableSignal<{
|
|
891
1117
|
start: boolean;
|
|
892
1118
|
end: boolean;
|
|
893
1119
|
}>;
|
|
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
1120
|
/**
|
|
910
1121
|
* `'tooltip'` cuts every body cell to one line with an ellipsis and shows a
|
|
911
1122
|
* cut cell's full text in a tooltip on hover and focus; a cell that fits
|
|
@@ -916,8 +1127,6 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
916
1127
|
* @default null
|
|
917
1128
|
*/
|
|
918
1129
|
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
1130
|
/**
|
|
922
1131
|
* A column's name for its controls: the title, the hint after it, or the hint
|
|
923
1132
|
* alone under an empty title.
|
|
@@ -930,19 +1139,13 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
930
1139
|
* for the whole table, created on the first hint or cut cell the pointer or
|
|
931
1140
|
* the focus reaches: a table of thousands of cells holds none before that.
|
|
932
1141
|
*/
|
|
933
|
-
protected readonly tip:
|
|
1142
|
+
protected readonly tip: WritableSignal<{
|
|
934
1143
|
readonly el: HTMLElement;
|
|
935
1144
|
readonly text: string;
|
|
936
1145
|
} | null>;
|
|
937
1146
|
private readonly modality;
|
|
938
1147
|
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. */
|
|
1148
|
+
/** The row's class with the consumer's own, resolved through the `rowClass` predicate. */
|
|
946
1149
|
protected rowClasses(row: Record<string, unknown>, index: number): string;
|
|
947
1150
|
private readonly resizeWidths;
|
|
948
1151
|
private resizeKey;
|
|
@@ -953,9 +1156,16 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
953
1156
|
* Once a column has been dragged, the table switches to fixed layout so the
|
|
954
1157
|
* `<col>` widths are honoured exactly (auto layout treats them as minimums).
|
|
955
1158
|
*/
|
|
956
|
-
protected readonly fixedLayout:
|
|
957
|
-
/**
|
|
958
|
-
|
|
1159
|
+
protected readonly fixedLayout: WritableSignal<boolean>;
|
|
1160
|
+
/**
|
|
1161
|
+
* Fixed layout held only while a cell edits, so an editor of another width
|
|
1162
|
+
* cannot move the columns. `editHold` keeps the widths in force before it, to
|
|
1163
|
+
* put back when the edit ends.
|
|
1164
|
+
*/
|
|
1165
|
+
protected readonly editHeld: WritableSignal<boolean>;
|
|
1166
|
+
private editHold;
|
|
1167
|
+
private holdWidthsForEdit;
|
|
1168
|
+
private releaseEditHold;
|
|
959
1169
|
/** Freeze every column at its current rendered header width (skips frozen keys). */
|
|
960
1170
|
private freezeColumnWidths;
|
|
961
1171
|
protected onResizeStart(event: PointerEvent, key: string, th: HTMLElement): void;
|
|
@@ -998,7 +1208,7 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
998
1208
|
/** `viewportHeight` as the value of `--wr-table-scroll-height`; `null` leaves the hook to the stylesheet. */
|
|
999
1209
|
protected readonly scrollHeight: import("@angular/core").Signal<string | null>;
|
|
1000
1210
|
/** Measured heights (px) of the sticky header and footer, which `scroll-padding` keeps clear; `null` until measured. */
|
|
1001
|
-
protected readonly stickyEdges:
|
|
1211
|
+
protected readonly stickyEdges: WritableSignal<{
|
|
1002
1212
|
head: number | null;
|
|
1003
1213
|
foot: number | null;
|
|
1004
1214
|
}>;
|
|
@@ -1034,6 +1244,36 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
1034
1244
|
* back to DOM order.
|
|
1035
1245
|
*/
|
|
1036
1246
|
protected readonly sortPredicate: (index: number) => boolean;
|
|
1247
|
+
/**
|
|
1248
|
+
* The one rule for a header slot, in the CDK's left-to-right sweep order: it
|
|
1249
|
+
* is open unless a pinned column holds it. The drop guard and the drag cursor
|
|
1250
|
+
* both ask it, so they cannot disagree.
|
|
1251
|
+
*/
|
|
1252
|
+
private slotOpen;
|
|
1253
|
+
private readonly doc;
|
|
1254
|
+
private readonly destroyRef;
|
|
1255
|
+
/** Sweep-order `[left, right]` of each header slot, measured when a drag starts. */
|
|
1256
|
+
private dragSlots;
|
|
1257
|
+
private dragInList;
|
|
1258
|
+
private dragActive;
|
|
1259
|
+
private dragCancelled;
|
|
1260
|
+
private stopDragCancel;
|
|
1261
|
+
/** The dragged column's current slot in DOM order, kept by the CDK's `sorted` event. */
|
|
1262
|
+
private dragOwn;
|
|
1263
|
+
private readonly clearDragCursor;
|
|
1264
|
+
/**
|
|
1265
|
+
* The pointer cursor of a column drag lives on `<html>`: the CDK preview has
|
|
1266
|
+
* `pointer-events: none`, so the cursor is whatever sits under it, and a class
|
|
1267
|
+
* on the root is the only place that covers the whole page, margins included
|
|
1268
|
+
* (`<body>` ends where its content does).
|
|
1269
|
+
*/
|
|
1270
|
+
private setDragCursor;
|
|
1271
|
+
protected onColumnDragStart(event: CdkDragStart): void;
|
|
1272
|
+
protected onColumnDragMoved(event: CdkDragMove): void;
|
|
1273
|
+
protected onColumnListSorted(event: CdkDragSortEvent): void;
|
|
1274
|
+
protected onColumnListEntered(): void;
|
|
1275
|
+
protected onColumnListExited(): void;
|
|
1276
|
+
protected onColumnDragEnd(): void;
|
|
1037
1277
|
private rowKeyOf;
|
|
1038
1278
|
/** Keys of the rows on the current page — the select-all scope. */
|
|
1039
1279
|
/**
|
|
@@ -1056,6 +1296,23 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
1056
1296
|
/** Add (or remove) a set of row keys from the selection in one update. */
|
|
1057
1297
|
private applySelection;
|
|
1058
1298
|
protected toggleAll(checked: boolean): void;
|
|
1299
|
+
private readonly selectionBarTpl;
|
|
1300
|
+
private readonly selectionBarEl;
|
|
1301
|
+
/** Whether a `[wrTableSelectionBar]` template was projected. */
|
|
1302
|
+
protected readonly hasSelectionBar: import("@angular/core").Signal<boolean>;
|
|
1303
|
+
/** The bar's template while rows are selected, `null` while the bar is away. */
|
|
1304
|
+
protected readonly selectionBar: import("@angular/core").Signal<TemplateRef<WrTableSelectionContext<object>> | null>;
|
|
1305
|
+
/** The header's measured height in px for the bar to match; `null` until measured. */
|
|
1306
|
+
protected readonly selectionBarHeight: WritableSignal<number | null>;
|
|
1307
|
+
protected readonly selectionCountText: import("@angular/core").Signal<string>;
|
|
1308
|
+
protected readonly selectionContext: import("@angular/core").Signal<WrTableSelectionContext<object>>;
|
|
1309
|
+
/**
|
|
1310
|
+
* Empty the selection. When the focus is in the selection bar, which leaves
|
|
1311
|
+
* with the last selected row, it moves to the table.
|
|
1312
|
+
*/
|
|
1313
|
+
clearSelection(): void;
|
|
1314
|
+
/** Focus the first control of the table: a selection checkbox, else the scroll area. */
|
|
1315
|
+
private focusTable;
|
|
1059
1316
|
private readonly expandTpl;
|
|
1060
1317
|
/** Whether the expand column shows (a `[wrTableExpand]` template was projected). */
|
|
1061
1318
|
/**
|
|
@@ -1132,6 +1389,61 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
1132
1389
|
* focus had not yet left.
|
|
1133
1390
|
*/
|
|
1134
1391
|
private focusTreeRow;
|
|
1392
|
+
/**
|
|
1393
|
+
* Vetoes the edit of single cells: called with the row and the column key,
|
|
1394
|
+
* `false` keeps that cell read-only. Asked only for a column that has a
|
|
1395
|
+
* `[wrTableEditCell]` template and does not say `editable: false`.
|
|
1396
|
+
*/
|
|
1397
|
+
readonly editable: import("@angular/core").InputSignal<WrTableEditable<T> | null>;
|
|
1398
|
+
/**
|
|
1399
|
+
* Emits when a cell edit commits with a value other than the cell's own. The
|
|
1400
|
+
* table does not write it: update the data behind `items` in the handler.
|
|
1401
|
+
*/
|
|
1402
|
+
readonly cellEdit: import("@angular/core").OutputEmitterRef<WrTableCellEdit<T>>;
|
|
1403
|
+
/** The edit in flight. One cell edits at a time. */
|
|
1404
|
+
protected readonly editing: WritableSignal<CellEdit | null>;
|
|
1405
|
+
/** Whether any column has an editor: the table is then a grid of focusable cells. */
|
|
1406
|
+
protected readonly editGrid: import("@angular/core").Signal<boolean>;
|
|
1407
|
+
/** The rendered data rows, 1:1 with {@link rowEls}. */
|
|
1408
|
+
private readonly dataRows;
|
|
1409
|
+
/** The cell the keyboard last stood on, by `rowKey` and column key. */
|
|
1410
|
+
private readonly activeCell;
|
|
1411
|
+
/**
|
|
1412
|
+
* The grid's one tab stop: the active cell while it is on screen, else the
|
|
1413
|
+
* first data cell. `null` in a tree, where the row holds the tab stop.
|
|
1414
|
+
*/
|
|
1415
|
+
private readonly tabStopCell;
|
|
1416
|
+
protected cellEditable(row: Record<string, unknown>, col: CellColumn<T>): boolean;
|
|
1417
|
+
/**
|
|
1418
|
+
* A data cell's `tabindex` in an editable table. In a tree the tab-stop
|
|
1419
|
+
* row's editable cells are tab stops, so Tab walks from the row into them.
|
|
1420
|
+
*/
|
|
1421
|
+
protected cellTabindex(entry: Extract<RenderRow, {
|
|
1422
|
+
kind: 'row';
|
|
1423
|
+
}>, col: CellColumn<T>): 0 | -1;
|
|
1424
|
+
/** The data cell an event came from, with its row and column. */
|
|
1425
|
+
private cellAt;
|
|
1426
|
+
protected onCellFocusin(event: FocusEvent): void;
|
|
1427
|
+
protected onCellDblclick(event: MouseEvent): void;
|
|
1428
|
+
protected onCellKeydown(event: KeyboardEvent): void;
|
|
1429
|
+
/** Arrow, Home and End on a focused cell. Ctrl is the first or last row's chord. */
|
|
1430
|
+
private moveCellFocus;
|
|
1431
|
+
private onEditorKeydown;
|
|
1432
|
+
/** The next or previous editable cell of the edited row. */
|
|
1433
|
+
private editableSibling;
|
|
1434
|
+
/**
|
|
1435
|
+
* Put a cell's editor in its place and move focus into it. `typed` is the
|
|
1436
|
+
* character that started the edit: it replaces the content of a text field.
|
|
1437
|
+
*/
|
|
1438
|
+
private startEdit;
|
|
1439
|
+
/**
|
|
1440
|
+
* End the edit in flight. `commit` emits `cellEdit` when the pending value
|
|
1441
|
+
* differs from the cell's. `focus` hands focus back to the cell: always, or
|
|
1442
|
+
* (`'inside'`) only when the editor held it. Either way a field that held
|
|
1443
|
+
* focus is blurred first when `flush` is set, for a control that publishes
|
|
1444
|
+
* its value on blur.
|
|
1445
|
+
*/
|
|
1446
|
+
private endEdit;
|
|
1135
1447
|
/** Leading control columns — selection + expand. */
|
|
1136
1448
|
protected readonly leadingCols: import("@angular/core").Signal<number>;
|
|
1137
1449
|
/** Total rendered columns (data + leading), for detail-row / empty colspans. */
|
|
@@ -1140,6 +1452,7 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
1140
1452
|
private readonly expandedSet;
|
|
1141
1453
|
protected isExpanded(row: Record<string, unknown>): boolean;
|
|
1142
1454
|
protected toggleExpand(row: Record<string, unknown>): void;
|
|
1455
|
+
private readonly expandContexts;
|
|
1143
1456
|
protected expandContext(row: Record<string, unknown>): WrTableExpandContext;
|
|
1144
1457
|
/** Whether any column defines a `summary` (so the footer row shows). */
|
|
1145
1458
|
protected readonly hasSummary: import("@angular/core").Signal<boolean>;
|
|
@@ -1227,14 +1540,13 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
1227
1540
|
protected sortOrderFor(key: string): number | null;
|
|
1228
1541
|
protected cycleSort(key: string): void;
|
|
1229
1542
|
protected onFilter(key: string, items: readonly WrTableFilterItem[]): void;
|
|
1230
|
-
protected cellContext(item: Record<string, unknown>,
|
|
1543
|
+
protected cellContext(item: Record<string, unknown>, col: CellColumn<T>): WrTableCellContext;
|
|
1231
1544
|
/**
|
|
1232
1545
|
* What a plain cell shows: the column's `empty` for a missing value, its
|
|
1233
1546
|
* `format` over the value, else the value itself. A cell template takes
|
|
1234
1547
|
* this path's place entirely (see table.html).
|
|
1235
1548
|
*/
|
|
1236
1549
|
protected cellText(item: Record<string, unknown>, key: string, column: WrTableColumn<T>): unknown;
|
|
1237
|
-
protected templateFor(key: unknown): TemplateRef<WrTableCellContext> | undefined;
|
|
1238
1550
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrTable<any>, never>;
|
|
1239
1551
|
static ɵcmp: i0.ɵɵComponentDeclaration<WrTable<any>, "wr-table", never, {
|
|
1240
1552
|
"columns": {
|
|
@@ -1272,6 +1584,16 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
1272
1584
|
"required": false;
|
|
1273
1585
|
"isSignal": true;
|
|
1274
1586
|
};
|
|
1587
|
+
"hiddenColumns": {
|
|
1588
|
+
"alias": "hiddenColumns";
|
|
1589
|
+
"required": false;
|
|
1590
|
+
"isSignal": true;
|
|
1591
|
+
};
|
|
1592
|
+
"columnChooser": {
|
|
1593
|
+
"alias": "columnChooser";
|
|
1594
|
+
"required": false;
|
|
1595
|
+
"isSignal": true;
|
|
1596
|
+
};
|
|
1275
1597
|
"rowSelection": {
|
|
1276
1598
|
"alias": "rowSelection";
|
|
1277
1599
|
"required": false;
|
|
@@ -1382,6 +1704,26 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
1382
1704
|
"required": false;
|
|
1383
1705
|
"isSignal": true;
|
|
1384
1706
|
};
|
|
1707
|
+
"selectedLabel": {
|
|
1708
|
+
"alias": "selectedLabel";
|
|
1709
|
+
"required": false;
|
|
1710
|
+
"isSignal": true;
|
|
1711
|
+
};
|
|
1712
|
+
"clearSelectionLabel": {
|
|
1713
|
+
"alias": "clearSelectionLabel";
|
|
1714
|
+
"required": false;
|
|
1715
|
+
"isSignal": true;
|
|
1716
|
+
};
|
|
1717
|
+
"columnsLabel": {
|
|
1718
|
+
"alias": "columnsLabel";
|
|
1719
|
+
"required": false;
|
|
1720
|
+
"isSignal": true;
|
|
1721
|
+
};
|
|
1722
|
+
"state": {
|
|
1723
|
+
"alias": "state";
|
|
1724
|
+
"required": false;
|
|
1725
|
+
"isSignal": true;
|
|
1726
|
+
};
|
|
1385
1727
|
"pageSize": {
|
|
1386
1728
|
"alias": "pageSize";
|
|
1387
1729
|
"required": false;
|
|
@@ -1437,17 +1779,25 @@ export declare class WrTable<T extends WrTableRow = WrTableRow> {
|
|
|
1437
1779
|
"required": false;
|
|
1438
1780
|
"isSignal": true;
|
|
1439
1781
|
};
|
|
1782
|
+
"editable": {
|
|
1783
|
+
"alias": "editable";
|
|
1784
|
+
"required": false;
|
|
1785
|
+
"isSignal": true;
|
|
1786
|
+
};
|
|
1440
1787
|
}, {
|
|
1441
1788
|
"columnOrder": "columnOrderChange";
|
|
1789
|
+
"hiddenColumns": "hiddenColumnsChange";
|
|
1442
1790
|
"selection": "selectionChange";
|
|
1443
1791
|
"expanded": "expandedChange";
|
|
1444
1792
|
"collapsedGroups": "collapsedGroupsChange";
|
|
1445
1793
|
"sort": "sortChange";
|
|
1446
1794
|
"filterChange": "filterChange";
|
|
1795
|
+
"stateChange": "stateChange";
|
|
1447
1796
|
"rowClick": "rowClick";
|
|
1448
1797
|
"pageSizeChange": "pageSizeChange";
|
|
1449
1798
|
"page": "pageChange";
|
|
1450
|
-
|
|
1799
|
+
"cellEdit": "cellEdit";
|
|
1800
|
+
}, ["cellTemplates", "editTemplates", "projectedTemplates", "selectionBarTpl", "expandTpl", "groupTpl"], never, true, never>;
|
|
1451
1801
|
}
|
|
1452
1802
|
/**
|
|
1453
1803
|
* Provide a custom template for a specific column's cells.
|
|
@@ -1500,6 +1850,51 @@ export declare class WrTableCell<T extends WrTableRow = WrSafeAny, K extends str
|
|
|
1500
1850
|
};
|
|
1501
1851
|
}, {}, never, never, true, never>;
|
|
1502
1852
|
}
|
|
1853
|
+
/**
|
|
1854
|
+
* Provide the editor for a column's cells, and with it make the column
|
|
1855
|
+
* editable: a double click, Enter, F2 or a typed character on a cell swaps its
|
|
1856
|
+
* content for this template, and the table emits `cellEdit` when the edit
|
|
1857
|
+
* commits. A column whose definition says `editable: false` stays read-only.
|
|
1858
|
+
*
|
|
1859
|
+
* `set` keeps a value while the reader types and `commit` ends the edit with
|
|
1860
|
+
* one. Enter, Tab and a click outside commit the value last kept; Escape and
|
|
1861
|
+
* `cancel` drop it. `[wrTableEditCellOf]` types the variables, the way
|
|
1862
|
+
* `[wrTableCellOf]` does.
|
|
1863
|
+
*
|
|
1864
|
+
* @example
|
|
1865
|
+
* ```html
|
|
1866
|
+
* <wr-table [columns]="columns" [items]="products" (cellEdit)="save($event)">
|
|
1867
|
+
* <ng-template wrTableEditCell="price" [wrTableEditCellOf]="products" let-value let-set="set">
|
|
1868
|
+
* <wr-input-number aria-label="Price" [value]="value" (valueChange)="set($event)" />
|
|
1869
|
+
* </ng-template>
|
|
1870
|
+
* </wr-table>
|
|
1871
|
+
* ```
|
|
1872
|
+
*/
|
|
1873
|
+
export declare class WrTableEditCell<T extends WrTableRow = WrSafeAny, K extends string = string> {
|
|
1874
|
+
/** Column key the editor applies to. */
|
|
1875
|
+
readonly columnKey: import("@angular/core").InputSignal<K>;
|
|
1876
|
+
/**
|
|
1877
|
+
* The rows the table draws, for the type checker: nothing reads it at
|
|
1878
|
+
* runtime. Bind the same array as the table's `[items]`.
|
|
1879
|
+
*/
|
|
1880
|
+
readonly wrTableEditCellOf: import("@angular/core").InputSignal<readonly T[] | null | undefined>;
|
|
1881
|
+
readonly template: TemplateRef<WrTableEditCellContext<T, K>>;
|
|
1882
|
+
/** Types the template's `let-` variables under `strictTemplates`, as `WrTableCell` does. */
|
|
1883
|
+
static ngTemplateContextGuard<T extends WrTableRow, K extends string>(_dir: WrTableEditCell<T, K>, _ctx: unknown): _ctx is WrTableEditCellContext<T, K>;
|
|
1884
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrTableEditCell<any, any>, never>;
|
|
1885
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WrTableEditCell<any, any>, "[wrTableEditCell]", never, {
|
|
1886
|
+
"columnKey": {
|
|
1887
|
+
"alias": "wrTableEditCell";
|
|
1888
|
+
"required": true;
|
|
1889
|
+
"isSignal": true;
|
|
1890
|
+
};
|
|
1891
|
+
"wrTableEditCellOf": {
|
|
1892
|
+
"alias": "wrTableEditCellOf";
|
|
1893
|
+
"required": false;
|
|
1894
|
+
"isSignal": true;
|
|
1895
|
+
};
|
|
1896
|
+
}, {}, never, never, true, never>;
|
|
1897
|
+
}
|
|
1503
1898
|
/**
|
|
1504
1899
|
* Provide the detail template revealed when a row is expanded. Adding it turns
|
|
1505
1900
|
* on the leading expand column; the row object is the template's implicit
|
|
@@ -1540,6 +1935,41 @@ export declare class WrTableGroupHeader {
|
|
|
1540
1935
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrTableGroupHeader, never>;
|
|
1541
1936
|
static ɵdir: i0.ɵɵDirectiveDeclaration<WrTableGroupHeader, "ng-template[wrTableGroupHeader]", never, {}, {}, never, never, true, never>;
|
|
1542
1937
|
}
|
|
1938
|
+
/**
|
|
1939
|
+
* Provide the actions of the selection bar. With it, the table draws a bar
|
|
1940
|
+
* over its header while `selection` is not empty: the count, a clear button
|
|
1941
|
+
* and this template between them. The selected rows are the template's
|
|
1942
|
+
* implicit context, beside `count`, `clear` and `scope`.
|
|
1943
|
+
*
|
|
1944
|
+
* Name the rows through `[wrTableSelectionBarOf]` and `let-rows` arrives
|
|
1945
|
+
* typed, the way `[wrTableCellOf]` types a cell template.
|
|
1946
|
+
*
|
|
1947
|
+
* @example
|
|
1948
|
+
* ```html
|
|
1949
|
+
* <wr-table rowKey="id" rowSelection="multiple" [columns]="columns" [items]="users" [(selection)]="selected">
|
|
1950
|
+
* <ng-template wrTableSelectionBar [wrTableSelectionBarOf]="users" let-rows>
|
|
1951
|
+
* <button wr-btn type="button" size="sm" color="danger" (click)="remove(rows)">Delete</button>
|
|
1952
|
+
* </ng-template>
|
|
1953
|
+
* </wr-table>
|
|
1954
|
+
* ```
|
|
1955
|
+
*/
|
|
1956
|
+
export declare class WrTableSelectionBar<T extends WrTableRow = WrSafeAny> {
|
|
1957
|
+
/**
|
|
1958
|
+
* The rows the template receives, for the type checker: nothing reads it at
|
|
1959
|
+
* runtime. Bind the same array as the table's `[items]`.
|
|
1960
|
+
*/
|
|
1961
|
+
readonly wrTableSelectionBarOf: import("@angular/core").InputSignal<readonly T[] | null | undefined>;
|
|
1962
|
+
readonly template: TemplateRef<WrTableSelectionContext<T>>;
|
|
1963
|
+
static ngTemplateContextGuard<T extends WrTableRow>(_dir: WrTableSelectionBar<T>, _ctx: unknown): _ctx is WrTableSelectionContext<T>;
|
|
1964
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrTableSelectionBar<any>, never>;
|
|
1965
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WrTableSelectionBar<any>, "ng-template[wrTableSelectionBar]", never, {
|
|
1966
|
+
"wrTableSelectionBarOf": {
|
|
1967
|
+
"alias": "wrTableSelectionBarOf";
|
|
1968
|
+
"required": false;
|
|
1969
|
+
"isSignal": true;
|
|
1970
|
+
};
|
|
1971
|
+
}, {}, never, never, true, never>;
|
|
1972
|
+
}
|
|
1543
1973
|
/**
|
|
1544
1974
|
* Sort indicator rendered in a sortable column's header.
|
|
1545
1975
|
*
|
|
@@ -1723,4 +2153,4 @@ export declare function wrReadField<T>(item: T, key: string): string | number;
|
|
|
1723
2153
|
* @param accessor Reads the value of a key; defaults to `wrReadField`.
|
|
1724
2154
|
*/
|
|
1725
2155
|
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 };
|
|
2156
|
+
export type { WrTableCellContext, WrTableCellEdit, WrTableColumn, WrTableColumnAlign, WrTableColumns, WrTableCsvOptions, WrTableEditCellContext, WrTableEditable, WrTableExpandContext, WrTableFilterChange, WrTableFilterItem, WrTableGroupContext, WrTableLoadingMode, WrTableRow, WrTableRowClass, WrTableRowClick, WrTableSelectionContext, WrTableSortAccessor, WrTableSortDirection, WrTableSortState, WrTableState, WrTableSummary, WrTableSummaryContext, WrTableTruncate };
|