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-input.d.ts
CHANGED
|
@@ -136,8 +136,12 @@ export declare class WrInputSuffix {
|
|
|
136
136
|
* inner native input drops its own border so it visually melts into the
|
|
137
137
|
* group.
|
|
138
138
|
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
139
|
+
* Focus styling is driven entirely by `:focus-within`, so any focusable child
|
|
140
|
+
* counts.
|
|
141
|
+
*
|
|
142
|
+
* `clearable` and `loading` draw a clear (×) button and a spinner after the
|
|
143
|
+
* field, before any `[wrInputSuffix]` or `<wr-password-toggle>`. Both act on the
|
|
144
|
+
* first `wrInput` the group wraps.
|
|
141
145
|
*
|
|
142
146
|
* @example
|
|
143
147
|
* ```html
|
|
@@ -146,14 +150,44 @@ export declare class WrInputSuffix {
|
|
|
146
150
|
* <input wrInput [(ngModel)]="amount" type="number" />
|
|
147
151
|
* <span wrInputSuffix>USD</span>
|
|
148
152
|
* </wr-input-group>
|
|
153
|
+
*
|
|
154
|
+
* <!-- a search box: a clear button, and a spinner while the lookup runs -->
|
|
155
|
+
* <wr-input-group clearable [loading]="pending()">
|
|
156
|
+
* <input wrInput [(ngModel)]="query" placeholder="Search" />
|
|
157
|
+
* </wr-input-group>
|
|
149
158
|
* ```
|
|
150
159
|
*
|
|
151
160
|
* @see https://ngwr.dev/reference/components/input
|
|
152
161
|
*/
|
|
153
162
|
export declare class WrInputGroup {
|
|
163
|
+
private readonly renderer;
|
|
154
164
|
constructor();
|
|
155
165
|
/** Pill-shaped corners. @default false */
|
|
156
166
|
readonly rounded: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
167
|
+
/**
|
|
168
|
+
* Show a clear (×) button while the field holds text and is neither disabled
|
|
169
|
+
* nor read-only. Clearing empties the field through an `input` event, so
|
|
170
|
+
* whatever is bound to it (`ngModel`, `[formField]`, an `(input)` listener)
|
|
171
|
+
* hears it as an edit, and puts focus back in the field. It is a pointer
|
|
172
|
+
* control: from the keyboard, emptying the field clears it. @default false
|
|
173
|
+
*/
|
|
174
|
+
readonly clearable: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
175
|
+
/** Clear (×) button aria-label. Falls back to `common.clear`. */
|
|
176
|
+
readonly clearLabel: import("@angular/core").InputSignal<string | null>;
|
|
177
|
+
/**
|
|
178
|
+
* Show a spinner after the field and mark the field `aria-busy`. The field
|
|
179
|
+
* stays editable. @default false
|
|
180
|
+
*/
|
|
181
|
+
readonly loading: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
182
|
+
/** Emitted after the clear (×) button emptied the field. */
|
|
183
|
+
readonly cleared: import("@angular/core").OutputEmitterRef<void>;
|
|
184
|
+
protected readonly resolvedClear: import("@angular/core").Signal<string>;
|
|
185
|
+
private readonly field;
|
|
186
|
+
/** Whether the field has text a user could clear right now. */
|
|
187
|
+
private readonly fieldClearable;
|
|
188
|
+
protected readonly clearShown: import("@angular/core").Signal<boolean>;
|
|
189
|
+
protected syncClear(): void;
|
|
190
|
+
protected clear(): void;
|
|
157
191
|
protected readonly classes: import("@angular/core").Signal<string>;
|
|
158
192
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrInputGroup, never>;
|
|
159
193
|
static ɵcmp: i0.ɵɵComponentDeclaration<WrInputGroup, "wr-input-group", never, {
|
|
@@ -162,7 +196,24 @@ export declare class WrInputGroup {
|
|
|
162
196
|
"required": false;
|
|
163
197
|
"isSignal": true;
|
|
164
198
|
};
|
|
165
|
-
|
|
199
|
+
"clearable": {
|
|
200
|
+
"alias": "clearable";
|
|
201
|
+
"required": false;
|
|
202
|
+
"isSignal": true;
|
|
203
|
+
};
|
|
204
|
+
"clearLabel": {
|
|
205
|
+
"alias": "clearLabel";
|
|
206
|
+
"required": false;
|
|
207
|
+
"isSignal": true;
|
|
208
|
+
};
|
|
209
|
+
"loading": {
|
|
210
|
+
"alias": "loading";
|
|
211
|
+
"required": false;
|
|
212
|
+
"isSignal": true;
|
|
213
|
+
};
|
|
214
|
+
}, {
|
|
215
|
+
"cleared": "cleared";
|
|
216
|
+
}, ["field"], ["*", "[wrInputSuffix], wr-password-toggle"], true, never>;
|
|
166
217
|
}
|
|
167
218
|
/**
|
|
168
219
|
* Self-contained eye-toggle button. Flips the linked `<input>`'s `type`
|
package/types/ngwr-overlay.d.ts
CHANGED
|
@@ -3,6 +3,74 @@ import { InjectionToken, Injector } from "@angular/core";
|
|
|
3
3
|
import { ConnectedPosition, Overlay, OverlayContainer, OverlayRef } from "@angular/cdk/overlay";
|
|
4
4
|
import { Observable } from "rxjs";
|
|
5
5
|
import { Direction, Directionality } from "@angular/cdk/bidi";
|
|
6
|
+
/**
|
|
7
|
+
* Where an anchored panel sits relative to its trigger: a side, optionally
|
|
8
|
+
* aligned to the trigger's start or end edge. The one set `wr-popover`,
|
|
9
|
+
* `wr-dropdown` and `wr-popconfirm` take as `position`.
|
|
10
|
+
*
|
|
11
|
+
* `left` / `right` and `-start` / `-end` are logical: under `dir="rtl"` they
|
|
12
|
+
* mirror, the name staying as written.
|
|
13
|
+
*/
|
|
14
|
+
type WrAnchoredPosition = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
15
|
+
/**
|
|
16
|
+
* The CDK geometry for each placement: one position, no gap and no fallbacks.
|
|
17
|
+
*
|
|
18
|
+
* Everything anchors on `start` / `end` or `center`, which the CDK resolves
|
|
19
|
+
* against the direction, so the table itself needs no mirroring. A gap added by
|
|
20
|
+
* `wrAnchoredPositions` is an offset in physical pixels and does: see
|
|
21
|
+
* `wrMirrorOffsets`.
|
|
22
|
+
*
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare const WR_ANCHORED_POSITIONS: Record<WrAnchoredPosition, ConnectedPosition>;
|
|
26
|
+
/**
|
|
27
|
+
* What each placement is allowed to flip to when it does not fit, best first.
|
|
28
|
+
* The requested placement always leads, so a panel that fits never moves.
|
|
29
|
+
*
|
|
30
|
+
* Alignment is preserved down the whole chain — a `-start` panel stays
|
|
31
|
+
* `-start` — because the alignment is the author's answer to "which end of the
|
|
32
|
+
* trigger does this belong to", and a flip is about the side, not about that.
|
|
33
|
+
*
|
|
34
|
+
* The two axes are deliberately NOT symmetric. A block-axis placement (`top*` /
|
|
35
|
+
* `bottom*`) flips only to its opposite, the classic behaviour, so a dropdown-ish
|
|
36
|
+
* panel can never surprise anyone by appearing beside its trigger. An inline-axis
|
|
37
|
+
* one (`left*` / `right*`) also gets the two block-axis sides, because on a phone
|
|
38
|
+
* NEITHER side fits: at 375px a 233px panel beside a mid-page trigger overflows
|
|
39
|
+
* by 109px to the right and 97px to the left, and only below/above has room.
|
|
40
|
+
*
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
export declare const WR_ANCHORED_FALLBACKS: Record<WrAnchoredPosition, readonly WrAnchoredPosition[]>;
|
|
44
|
+
/** How a host dresses the links `wrAnchoredPositions` returns. @internal */
|
|
45
|
+
interface WrAnchoredPositionsOptions {
|
|
46
|
+
/**
|
|
47
|
+
* Distance between the trigger and the panel, in px, as a CDK offset pointing
|
|
48
|
+
* away from the trigger. Left out by a host whose gap is padding on the pane.
|
|
49
|
+
*
|
|
50
|
+
* It is the reason a flip list matters rather than being a nicety: the
|
|
51
|
+
* flexible strategy emits `offsetX` as a `transform` on the pane, AFTER
|
|
52
|
+
* `withPush` has already decided the coordinate. Push therefore parks a
|
|
53
|
+
* right-anchored panel flush against the viewport edge and the offset then
|
|
54
|
+
* shoves it back out, so a side placement that does not fit loses its border
|
|
55
|
+
* and corner off-screen no matter how hard push works.
|
|
56
|
+
*/
|
|
57
|
+
readonly gap?: number;
|
|
58
|
+
/**
|
|
59
|
+
* The pane's base class. Each link is tagged `<paneClass>--<placement>`, so
|
|
60
|
+
* the pane names the placement it ACTUALLY took: the CDK applies a position's
|
|
61
|
+
* own `panelClass` when it lands on it and clears it on the next one. Left
|
|
62
|
+
* out by a host that writes the class itself.
|
|
63
|
+
*/
|
|
64
|
+
readonly paneClass?: string;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* The list `withPositions()` wants for a placement: its fallback chain in
|
|
68
|
+
* order, as fresh objects, so a caller may also tell which link the CDK landed
|
|
69
|
+
* on by the identity of the position it reports back.
|
|
70
|
+
*
|
|
71
|
+
* @internal
|
|
72
|
+
*/
|
|
73
|
+
export declare function wrAnchoredPositions(position: WrAnchoredPosition, options?: WrAnchoredPositionsOptions): ConnectedPosition[];
|
|
6
74
|
/**
|
|
7
75
|
* @license
|
|
8
76
|
*
|
|
@@ -114,7 +182,7 @@ export declare function wrFollowSize(overlayRef: OverlayRef): () => void;
|
|
|
114
182
|
* ```ts
|
|
115
183
|
* const dir = inject(Directionality, { optional: true });
|
|
116
184
|
*
|
|
117
|
-
* strategy.withPositions(wrMirrorOffsets(
|
|
185
|
+
* strategy.withPositions(wrMirrorOffsets(wrAnchoredPositions(position, { gap: 8 }), dir?.value === 'rtl'));
|
|
118
186
|
* ```
|
|
119
187
|
*/
|
|
120
188
|
export declare function wrMirrorOffsets(positions: readonly ConnectedPosition[], isRtl: boolean): ConnectedPosition[];
|
|
@@ -223,17 +291,27 @@ export declare class WrOverlayOrder {
|
|
|
223
291
|
private toasts;
|
|
224
292
|
/** How many of `layers` sit under the toast host. */
|
|
225
293
|
private under;
|
|
294
|
+
/** Something may have joined the top layer since the toast host was last raised. */
|
|
295
|
+
private stale;
|
|
296
|
+
private placing;
|
|
297
|
+
private readonly onBeforeToggle;
|
|
298
|
+
private readonly onFullscreenChange;
|
|
226
299
|
/**
|
|
227
300
|
* Register an overlay right after it is attached, which is when the CDK
|
|
228
301
|
* promotes it. Returns the function that takes it off the list.
|
|
229
302
|
*/
|
|
230
303
|
add(host: HTMLElement, toasts?: 'above' | 'below'): () => void;
|
|
231
|
-
/**
|
|
232
|
-
|
|
304
|
+
/**
|
|
305
|
+
* Put the toast host on top, then every overlay that covers toasts over it.
|
|
306
|
+
* Returns whether anything had to move.
|
|
307
|
+
*/
|
|
308
|
+
raiseToasts(host: HTMLElement): boolean;
|
|
309
|
+
/** An overlay that is not on the list was promoted. */
|
|
310
|
+
joined(): void;
|
|
233
311
|
dropToasts(): void;
|
|
234
312
|
/**
|
|
235
313
|
* @param raise with no covering overlay open, raise the host even where the
|
|
236
|
-
* list says it is on top
|
|
314
|
+
* list says it is on top, if a popover this list does not know may have joined.
|
|
237
315
|
*/
|
|
238
316
|
private place;
|
|
239
317
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrOverlayOrder, never>;
|
|
@@ -265,4 +343,5 @@ export declare const WR_OVERLAY: InjectionToken<Overlay>;
|
|
|
265
343
|
*
|
|
266
344
|
* @internal
|
|
267
345
|
*/
|
|
268
|
-
export declare const WR_OVERLAY_CONTAINER: InjectionToken<OverlayContainer>;
|
|
346
|
+
export declare const WR_OVERLAY_CONTAINER: InjectionToken<OverlayContainer>;
|
|
347
|
+
export type { WrAnchoredPosition, WrAnchoredPositionsOptions };
|
package/types/ngwr-pipes.d.ts
CHANGED
|
@@ -71,7 +71,8 @@ export declare function wrFormatBytes(value: number | string | null | undefined,
|
|
|
71
71
|
*
|
|
72
72
|
* The value is read as `withDates()` says: `epochUnit` for a number and
|
|
73
73
|
* `zonelessIn` for a date-time string with no offset. The last argument
|
|
74
|
-
* overrides either for one call, for a field whose unit differs from the app's
|
|
74
|
+
* overrides either for one call, for a field whose unit differs from the app's;
|
|
75
|
+
* a key left `undefined` keeps the app's value.
|
|
75
76
|
*
|
|
76
77
|
* The adapter stands where `wrFormatNumber` takes a locale, because the output
|
|
77
78
|
* is the adapter's: the native one formats in `WR_DATE_LOCALE`, and an app's own
|
|
@@ -11,6 +11,8 @@ interface WrPopconfirmHarnessFilters extends BaseHarnessFilters {
|
|
|
11
11
|
readonly triggerText?: string | RegExp;
|
|
12
12
|
/** Match only open (`true`) or only closed (`false`) popconfirms. */
|
|
13
13
|
readonly open?: boolean;
|
|
14
|
+
/** Match only disabled (`true`) or only enabled (`false`) triggers. */
|
|
15
|
+
readonly disabled?: boolean;
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
16
18
|
* Test harness for `[wrPopconfirm]` — the "are you sure?" dialog anchored to its
|
|
@@ -62,10 +64,17 @@ export declare class WrPopconfirmHarness extends ContentContainerComponentHarnes
|
|
|
62
64
|
* Whether the dialog is showing.
|
|
63
65
|
*
|
|
64
66
|
* Read from `aria-expanded` rather than from a class, because that is the whole
|
|
65
|
-
* of what the trigger tells a screen reader — the directive puts no state
|
|
66
|
-
* on its host at all.
|
|
67
|
+
* of what the trigger tells a screen reader — the directive puts no open-state
|
|
68
|
+
* class on its host at all.
|
|
67
69
|
*/
|
|
68
70
|
isOpen(): Promise<boolean>;
|
|
71
|
+
/**
|
|
72
|
+
* Whether `wrPopconfirmDisabled` has turned the question off — read from
|
|
73
|
+
* `wr-popconfirm-trigger--disabled`, the one mark a disabled trigger carries.
|
|
74
|
+
* The HOST's own `disabled` is another question: the directive never sets it,
|
|
75
|
+
* so ask the host's harness (`WrButtonHarness.isDisabled()`).
|
|
76
|
+
*/
|
|
77
|
+
isDisabled(): Promise<boolean>;
|
|
69
78
|
/** Whether the trigger currently has keyboard focus — the state it is handed back on close. */
|
|
70
79
|
isTriggerFocused(): Promise<boolean>;
|
|
71
80
|
/**
|
|
@@ -179,7 +188,7 @@ export declare class WrPopconfirmHarness extends ContentContainerComponentHarnes
|
|
|
179
188
|
*/
|
|
180
189
|
getDescriptionText(): Promise<string | null>;
|
|
181
190
|
/**
|
|
182
|
-
* Which side of the trigger the panel is anchored to.
|
|
191
|
+
* Which side of the trigger the panel is anchored to, and how it is aligned.
|
|
183
192
|
*
|
|
184
193
|
* Read off the pane's public modifier class — `position` is an input, so a
|
|
185
194
|
* bound one never reaches the DOM, and the panel's own offset is a CDK inline
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { WrClassInput } from "ngwr/utils";
|
|
3
3
|
import { ConnectedPosition } from "@angular/cdk/overlay";
|
|
4
|
-
|
|
4
|
+
import { WrAnchoredPosition } from "ngwr/overlay";
|
|
5
5
|
export declare class WrPopconfirm {
|
|
6
6
|
/** Confirmation message. */
|
|
7
7
|
readonly message: import("@angular/core").InputSignal<string>;
|
|
8
|
-
/**
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Anchor side and alignment, the twelve placements `wr-popover` takes; the
|
|
10
|
+
* panel flips to another side when this one has no room.
|
|
11
|
+
* @default 'top'
|
|
12
|
+
*/
|
|
13
|
+
readonly position: import("@angular/core").InputSignal<import("ngwr/overlay").WrAnchoredPosition>;
|
|
10
14
|
/** Label for the confirm button. @default 'Confirm' */
|
|
11
15
|
/** Confirm button text. Falls back to `popconfirm.confirm`. */
|
|
12
16
|
readonly confirmText: import("@angular/core").InputSignal<string | null>;
|
|
@@ -32,6 +36,19 @@ export declare class WrPopconfirm {
|
|
|
32
36
|
* handle on it. A space-separated string works as well as an array.
|
|
33
37
|
*/
|
|
34
38
|
readonly panelClass: import("@angular/core").InputSignal<WrClassInput>;
|
|
39
|
+
/**
|
|
40
|
+
* Turns the question off: a click on the host opens nothing and is left to
|
|
41
|
+
* propagate, `open()` does nothing, and an open panel closes without
|
|
42
|
+
* `cancelled`. The host publishes no popup ARIA meanwhile and carries
|
|
43
|
+
* `wr-popconfirm-trigger--disabled`.
|
|
44
|
+
*
|
|
45
|
+
* The host's own `disabled` stays yours: the directive never sets it, so the
|
|
46
|
+
* button still takes its own `(click)` — the way to skip the question when
|
|
47
|
+
* there is nothing to confirm.
|
|
48
|
+
*
|
|
49
|
+
* @default false
|
|
50
|
+
*/
|
|
51
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
35
52
|
/** Fires when the user clicks confirm. */
|
|
36
53
|
readonly confirmed: import("@angular/core").OutputEmitterRef<void>;
|
|
37
54
|
/** Fires when the user clicks cancel or dismisses the overlay. */
|
|
@@ -56,6 +73,7 @@ export declare class WrPopconfirm {
|
|
|
56
73
|
constructor();
|
|
57
74
|
/** @internal */
|
|
58
75
|
protected toggle(event: MouseEvent): void;
|
|
76
|
+
/** Open the panel. Does nothing while the trigger is disabled. */
|
|
59
77
|
open(): void;
|
|
60
78
|
close(): void;
|
|
61
79
|
private dismiss;
|
|
@@ -132,6 +150,11 @@ export declare class WrPopconfirm {
|
|
|
132
150
|
"required": false;
|
|
133
151
|
"isSignal": true;
|
|
134
152
|
};
|
|
153
|
+
"disabled": {
|
|
154
|
+
"alias": "wrPopconfirmDisabled";
|
|
155
|
+
"required": false;
|
|
156
|
+
"isSignal": true;
|
|
157
|
+
};
|
|
135
158
|
}, {
|
|
136
159
|
"confirmed": "confirmed";
|
|
137
160
|
"cancelled": "cancelled";
|
|
@@ -185,4 +208,6 @@ export declare class WrPopconfirmPanel {
|
|
|
185
208
|
"cancelled": "cancelled";
|
|
186
209
|
}, never, never, true, never>;
|
|
187
210
|
}
|
|
211
|
+
/** Where the popconfirm panel sits relative to its trigger. */
|
|
212
|
+
type WrPopconfirmPosition = WrAnchoredPosition;
|
|
188
213
|
export type { WrPopconfirmPosition };
|
|
@@ -8,10 +8,15 @@ interface WrPopoverHarnessFilters extends BaseHarnessFilters {
|
|
|
8
8
|
* exact match, a RegExp is tested.
|
|
9
9
|
*/
|
|
10
10
|
readonly triggerText?: string | RegExp;
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Match only popovers (`'popover'`) or only tooltips (`'tooltip'`). A disabled
|
|
13
|
+
* trigger publishes no ARIA to tell them apart by, so it matches neither.
|
|
14
|
+
*/
|
|
12
15
|
readonly mode?: 'popover' | 'tooltip';
|
|
13
16
|
/** Match only showing (`true`) or only hidden (`false`) panels. */
|
|
14
17
|
readonly open?: boolean;
|
|
18
|
+
/** Match only disabled (`true`) or only enabled (`false`) triggers. */
|
|
19
|
+
readonly disabled?: boolean;
|
|
15
20
|
}
|
|
16
21
|
/**
|
|
17
22
|
* Test harness for `[wrPopover]` — both shapes the one directive ships:
|
|
@@ -72,10 +77,21 @@ export declare class WrPopoverHarness extends ContentContainerComponentHarness {
|
|
|
72
77
|
* never reaches the DOM, while `aria-haspopup="dialog"` is on every popover
|
|
73
78
|
* trigger and on no tooltip trigger — a tooltip is a description of the
|
|
74
79
|
* control, not a popup it owns.
|
|
80
|
+
*
|
|
81
|
+
* Throws on a disabled trigger: `wrPopoverDisabled` withdraws that ARIA from
|
|
82
|
+
* both shapes, and answering `'tooltip'` for a disabled popover would be a
|
|
83
|
+
* guess.
|
|
75
84
|
*/
|
|
76
85
|
getMode(): Promise<'popover' | 'tooltip'>;
|
|
77
86
|
/** The trigger's own visible text. The panel's content is `getContentText()`. */
|
|
78
87
|
getTriggerText(): Promise<string>;
|
|
88
|
+
/**
|
|
89
|
+
* Whether `wrPopoverDisabled` has turned the trigger off — read from
|
|
90
|
+
* `wr-popover-trigger--disabled`, the one mark a disabled trigger carries.
|
|
91
|
+
* The HOST's own `disabled` is another question: the directive never sets it,
|
|
92
|
+
* so ask the host's harness (`WrButtonHarness.isDisabled()`).
|
|
93
|
+
*/
|
|
94
|
+
isDisabled(): Promise<boolean>;
|
|
79
95
|
/**
|
|
80
96
|
* Whether the panel is showing.
|
|
81
97
|
*
|
|
@@ -101,7 +117,8 @@ export declare class WrPopoverHarness extends ContentContainerComponentHarness {
|
|
|
101
117
|
* `FocusMonitor`'s to grant (see {@link focus}).
|
|
102
118
|
*
|
|
103
119
|
* Throws when nothing appears: a tooltip with an empty string never opens, and
|
|
104
|
-
* a spec on fake timers has to advance the clock itself.
|
|
120
|
+
* a spec on fake timers has to advance the clock itself. Throws at once on a
|
|
121
|
+
* disabled trigger, which no gesture opens.
|
|
105
122
|
*/
|
|
106
123
|
open(timeout?: number): Promise<void>;
|
|
107
124
|
/**
|
package/types/ngwr-popover.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import { Signal, TemplateRef } from "@angular/core";
|
|
3
3
|
import { WrClassInput } from "ngwr/utils";
|
|
4
4
|
import { ConnectedPosition } from "@angular/cdk/overlay";
|
|
5
|
+
import { WrAnchoredPosition } from "ngwr/overlay";
|
|
5
6
|
/**
|
|
6
7
|
* What a chart's hover tooltip says about one section.
|
|
7
8
|
*
|
|
@@ -93,7 +94,8 @@ interface WrChartTooltip {
|
|
|
93
94
|
*/
|
|
94
95
|
leave(event?: MouseEvent): void;
|
|
95
96
|
}
|
|
96
|
-
|
|
97
|
+
/** Where the popover sits relative to its trigger. */
|
|
98
|
+
type WrPopoverPosition = WrAnchoredPosition;
|
|
97
99
|
/**
|
|
98
100
|
* A hover tooltip for a chart's sections, with ONE overlay per chart.
|
|
99
101
|
*
|
|
@@ -189,7 +191,7 @@ export declare class WrPopover {
|
|
|
189
191
|
*/
|
|
190
192
|
readonly trigger: import("@angular/core").InputSignal<"click" | "hover">;
|
|
191
193
|
/** Anchor side. @default 'bottom' for popover, 'top' for tooltip */
|
|
192
|
-
readonly position: import("@angular/core").InputSignal<
|
|
194
|
+
readonly position: import("@angular/core").InputSignal<import("ngwr/overlay").WrAnchoredPosition | null>;
|
|
193
195
|
/** Tooltip only — delay before showing, in ms. @default 120 */
|
|
194
196
|
readonly showDelay: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
195
197
|
/** Tooltip only — delay before hiding, in ms. @default 60 */
|
|
@@ -207,6 +209,18 @@ export declare class WrPopover {
|
|
|
207
209
|
* @default null
|
|
208
210
|
*/
|
|
209
211
|
readonly origin: import("@angular/core").InputSignal<HTMLElement | null>;
|
|
212
|
+
/**
|
|
213
|
+
* Turns the trigger off: no hover, focus, click or key opens the panel,
|
|
214
|
+
* `open()` and `toggle()` do nothing, and an open panel closes. The host
|
|
215
|
+
* publishes no popup ARIA meanwhile and carries `wr-popover-trigger--disabled`.
|
|
216
|
+
*
|
|
217
|
+
* The host's own `disabled` stays yours: the directive never sets it, so a
|
|
218
|
+
* button keeps working as a button. Typical use is a tooltip that only shows
|
|
219
|
+
* for truncated text.
|
|
220
|
+
*
|
|
221
|
+
* @default false
|
|
222
|
+
*/
|
|
223
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
210
224
|
/**
|
|
211
225
|
* Popover mode only — accessible name of the panel. `role="dialog"` with no
|
|
212
226
|
* name announces as a bare "dialog", so the catalog's `popover.label` is used
|
|
@@ -262,6 +276,7 @@ export declare class WrPopover {
|
|
|
262
276
|
private showTimer;
|
|
263
277
|
private hideTimer;
|
|
264
278
|
constructor();
|
|
279
|
+
/** Open the panel. Does nothing while the trigger is disabled. */
|
|
265
280
|
open(): void;
|
|
266
281
|
close(): void;
|
|
267
282
|
/**
|
|
@@ -426,6 +441,11 @@ export declare class WrPopover {
|
|
|
426
441
|
"required": false;
|
|
427
442
|
"isSignal": true;
|
|
428
443
|
};
|
|
444
|
+
"disabled": {
|
|
445
|
+
"alias": "wrPopoverDisabled";
|
|
446
|
+
"required": false;
|
|
447
|
+
"isSignal": true;
|
|
448
|
+
};
|
|
429
449
|
"ariaLabel": {
|
|
430
450
|
"alias": "ariaLabel";
|
|
431
451
|
"required": false;
|
package/types/ngwr-progress.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
+
/** Size of a `<wr-progress>`. */
|
|
3
|
+
type WrProgressSize = 'sm' | 'md' | 'lg';
|
|
2
4
|
/**
|
|
3
5
|
* Horizontal progress bar.
|
|
4
6
|
*
|
|
@@ -6,6 +8,7 @@ import * as i0 from "@angular/core";
|
|
|
6
8
|
* ```html
|
|
7
9
|
* <wr-progress [value]="42" />
|
|
8
10
|
* <wr-progress color="success" [value]="80" />
|
|
11
|
+
* <wr-progress indeterminate />
|
|
9
12
|
* ```
|
|
10
13
|
*
|
|
11
14
|
* @see https://ngwr.dev/reference/components/progress
|
|
@@ -21,12 +24,26 @@ export declare class WrProgress {
|
|
|
21
24
|
* @default 'primary'
|
|
22
25
|
*/
|
|
23
26
|
readonly color: import("@angular/core").InputSignal<"success" | "info" | "warning" | "danger" | "primary">;
|
|
27
|
+
/**
|
|
28
|
+
* Bar thickness: 4px, 8px or 12px, through `--wr-progress-height`.
|
|
29
|
+
*
|
|
30
|
+
* @default 'md'
|
|
31
|
+
*/
|
|
32
|
+
readonly size: import("@angular/core").InputSignal<WrProgressSize>;
|
|
24
33
|
/**
|
|
25
34
|
* Progress value, clamped to `[0, 100]`.
|
|
26
35
|
*
|
|
27
36
|
* @default 0
|
|
28
37
|
*/
|
|
29
38
|
readonly value: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
39
|
+
/**
|
|
40
|
+
* Show that work is running without saying how far it has got: the bar sweeps,
|
|
41
|
+
* `value` is ignored and `aria-valuenow` is left off, which is how a
|
|
42
|
+
* progressbar says its value is unknown.
|
|
43
|
+
*
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
readonly indeterminate: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
30
47
|
protected readonly clamped: import("@angular/core").Signal<number>;
|
|
31
48
|
protected readonly classes: import("@angular/core").Signal<string>;
|
|
32
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrProgress, never>;
|
|
@@ -41,10 +58,21 @@ export declare class WrProgress {
|
|
|
41
58
|
"required": false;
|
|
42
59
|
"isSignal": true;
|
|
43
60
|
};
|
|
61
|
+
"size": {
|
|
62
|
+
"alias": "size";
|
|
63
|
+
"required": false;
|
|
64
|
+
"isSignal": true;
|
|
65
|
+
};
|
|
44
66
|
"value": {
|
|
45
67
|
"alias": "value";
|
|
46
68
|
"required": false;
|
|
47
69
|
"isSignal": true;
|
|
48
70
|
};
|
|
71
|
+
"indeterminate": {
|
|
72
|
+
"alias": "indeterminate";
|
|
73
|
+
"required": false;
|
|
74
|
+
"isSignal": true;
|
|
75
|
+
};
|
|
49
76
|
}, {}, never, never, true, never>;
|
|
50
|
-
}
|
|
77
|
+
}
|
|
78
|
+
export type { WrProgressSize };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from "@angular/cdk/testing";
|
|
2
|
+
/** Narrows which `<wr-pull-to-refresh>` a harness query matches. */
|
|
3
|
+
interface WrPullToRefreshHarnessFilters extends BaseHarnessFilters {
|
|
4
|
+
/** Match only wrappers that are (`true`) or are not (`false`) showing a refresh in flight. */
|
|
5
|
+
readonly refreshing?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Test harness for `<wr-pull-to-refresh>`.
|
|
9
|
+
*
|
|
10
|
+
* The component is a controlled spinner: a pull only fires `(refresh)`, and the
|
|
11
|
+
* indicator stays open while the host binds `refreshing`. So {@link pull}
|
|
12
|
+
* proves the gesture reached the handler, and {@link isRefreshing} proves the
|
|
13
|
+
* handler set the flag. A spec that wants both asserts both.
|
|
14
|
+
*
|
|
15
|
+
* The gesture is sent as `touchstart`, `touchmove` and `touchend` events
|
|
16
|
+
* carrying the one field the component reads, a `touches` list with a
|
|
17
|
+
* `clientY`. That is what a unit test can send; the feel of the rubber band
|
|
18
|
+
* needs a device. A pull starts only while the wrapper is scrolled to its top,
|
|
19
|
+
* which is where every element is in a test with no layout.
|
|
20
|
+
*
|
|
21
|
+
* There is no `isDisabled()`: `disabled` writes nothing to the page. Pull, and
|
|
22
|
+
* read what happened.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const list = await loader.getHarness(WrPullToRefreshHarness);
|
|
27
|
+
*
|
|
28
|
+
* await list.pull();
|
|
29
|
+
* expect(reload).toHaveBeenCalledOnce();
|
|
30
|
+
* expect(await list.isRefreshing()).toBe(true);
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @see https://ngwr.dev/guides/testing
|
|
34
|
+
*/
|
|
35
|
+
export declare class WrPullToRefreshHarness extends ComponentHarness {
|
|
36
|
+
static hostSelector: string;
|
|
37
|
+
/** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
|
|
38
|
+
static with(options?: WrPullToRefreshHarnessFilters): HarnessPredicate<WrPullToRefreshHarness>;
|
|
39
|
+
private readonly indicator;
|
|
40
|
+
/**
|
|
41
|
+
* Whether a refresh is in flight: the indicator is drawn while no finger is
|
|
42
|
+
* on the wrapper. At rest the component closes the indicator unless
|
|
43
|
+
* `refreshing` holds it open, so the two together mean the bound flag is set.
|
|
44
|
+
*/
|
|
45
|
+
isRefreshing(): Promise<boolean>;
|
|
46
|
+
/** Whether a pull is under way, from the host losing its `wr-pull-to-refresh--animating` modifier. */
|
|
47
|
+
isPulling(): Promise<boolean>;
|
|
48
|
+
/**
|
|
49
|
+
* How far the indicator is open, in pixels, from the height the component
|
|
50
|
+
* wrote on it: `0` when it is closed.
|
|
51
|
+
*/
|
|
52
|
+
getPullDistance(): Promise<number>;
|
|
53
|
+
/**
|
|
54
|
+
* Whether a pull under way has reached the threshold, so letting go would
|
|
55
|
+
* refresh. Read from the spinner's opacity, which the component writes as the
|
|
56
|
+
* pull's progress and which reaches `1` at the threshold. `false` with no
|
|
57
|
+
* finger down: a refresh in flight holds the spinner at full opacity too.
|
|
58
|
+
*/
|
|
59
|
+
isArmed(): Promise<boolean>;
|
|
60
|
+
/** The projected content, trimmed. */
|
|
61
|
+
getContentText(): Promise<string>;
|
|
62
|
+
/**
|
|
63
|
+
* Put a finger down at the top and drag it `travel` pixels down, without
|
|
64
|
+
* letting go. The indicator opens by half the travel. Follow with
|
|
65
|
+
* {@link release} or {@link cancel}.
|
|
66
|
+
*/
|
|
67
|
+
pullBy(travel: number): Promise<void>;
|
|
68
|
+
/** Lift the finger. An armed pull fires `(refresh)`; a shorter one closes. */
|
|
69
|
+
release(): Promise<void>;
|
|
70
|
+
/** Abandon the pull the way the system does (`touchcancel`): nothing refreshes. */
|
|
71
|
+
cancel(): Promise<void>;
|
|
72
|
+
/**
|
|
73
|
+
* A whole pull: drag down until the indicator arms, then let go, which fires
|
|
74
|
+
* `(refresh)` once.
|
|
75
|
+
*
|
|
76
|
+
* The `threshold` is not on the page, so the drag lengthens until the
|
|
77
|
+
* component says it is armed. Throws when it never does, which is what a
|
|
78
|
+
* disabled wrapper, one already refreshing and one scrolled away from its top
|
|
79
|
+
* all do.
|
|
80
|
+
*/
|
|
81
|
+
pull(): Promise<void>;
|
|
82
|
+
}
|
|
83
|
+
export type { WrPullToRefreshHarnessFilters };
|