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-graph.d.ts
CHANGED
|
@@ -102,6 +102,12 @@ interface GraphView<TData> {
|
|
|
102
102
|
* the consumer's: `nodeWidth` / `nodeHeight` for every node, or `width` /
|
|
103
103
|
* `height` on one. A prerender therefore ships the finished picture.
|
|
104
104
|
*
|
|
105
|
+
* A provided `WrGraphLayout` may answer with a Promise. The last picture stays
|
|
106
|
+
* on screen until it resolves, `layoutPending` is true meanwhile, and a newer
|
|
107
|
+
* run or the graph's destruction aborts it through the `AbortSignal` it was
|
|
108
|
+
* given. The server does not wait for it: a prerender ships an empty, pending
|
|
109
|
+
* graph and the browser draws it.
|
|
110
|
+
*
|
|
105
111
|
* What the lines show is also written out: every node carries visually hidden
|
|
106
112
|
* text naming its parents and children, and the lines themselves are hidden
|
|
107
113
|
* from assistive technology.
|
|
@@ -141,6 +147,11 @@ export declare class WrGraph<TData = unknown> {
|
|
|
141
147
|
readonly nodeHeight: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
142
148
|
/** Accessible name of the scrolling viewport. Falls back to `graph.label`, then `'Graph'`. */
|
|
143
149
|
readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
|
|
150
|
+
/**
|
|
151
|
+
* An asynchronous layout rejected. Carries the rejection as thrown. The last
|
|
152
|
+
* picture stays on screen, and a run that was aborted never reports here.
|
|
153
|
+
*/
|
|
154
|
+
readonly layoutError: import("@angular/core").OutputEmitterRef<unknown>;
|
|
144
155
|
protected readonly label: import("@angular/core").Signal<string>;
|
|
145
156
|
private readonly parentsText;
|
|
146
157
|
private readonly childrenText;
|
|
@@ -162,13 +173,22 @@ export declare class WrGraph<TData = unknown> {
|
|
|
162
173
|
*/
|
|
163
174
|
private readonly defaultSize;
|
|
164
175
|
private readonly prepared;
|
|
165
|
-
/**
|
|
166
|
-
private readonly
|
|
176
|
+
/** One run per cleaned input. A controller of its own, so aborting a run never touches another. */
|
|
177
|
+
private readonly run;
|
|
178
|
+
/** The asynchronous run that last settled. */
|
|
179
|
+
private readonly settled;
|
|
167
180
|
/**
|
|
168
|
-
*
|
|
169
|
-
*
|
|
181
|
+
* What is drawn. A synchronous answer is drawn in the pass that computed it. A
|
|
182
|
+
* Promise keeps the previous drawing until it resolves, and a rejected one
|
|
183
|
+
* keeps it for good.
|
|
170
184
|
*/
|
|
171
|
-
private readonly
|
|
185
|
+
private readonly drawing;
|
|
186
|
+
/**
|
|
187
|
+
* Whether an asynchronous layout is running for the current inputs. The host
|
|
188
|
+
* carries `wr-graph--pending` and the viewport `aria-busy` while it is. Always
|
|
189
|
+
* `false` with a synchronous layout.
|
|
190
|
+
*/
|
|
191
|
+
readonly layoutPending: import("@angular/core").Signal<boolean>;
|
|
172
192
|
/** Layout joined to the nodes and edges, direction-free, nodes in reading order. */
|
|
173
193
|
private readonly placed;
|
|
174
194
|
/**
|
|
@@ -211,6 +231,126 @@ export declare class WrGraph<TData = unknown> {
|
|
|
211
231
|
"required": false;
|
|
212
232
|
"isSignal": true;
|
|
213
233
|
};
|
|
214
|
-
}, {
|
|
234
|
+
}, {
|
|
235
|
+
"layoutError": "layoutError";
|
|
236
|
+
}, ["nodeTemplate"], never, true, never>;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* @license
|
|
240
|
+
*
|
|
241
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
242
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
243
|
+
*/
|
|
244
|
+
/** A point in graph space: origin top-left, y grows downward. */
|
|
245
|
+
interface WrGraphPoint {
|
|
246
|
+
readonly x: number;
|
|
247
|
+
readonly y: number;
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* What a layout reads about a node: resolved, plain and serialisable. The
|
|
251
|
+
* consumer's `data` never reaches a layout, and neither does the DOM — sizes
|
|
252
|
+
* arrive as finite numbers the component already resolved.
|
|
253
|
+
*/
|
|
254
|
+
interface WrGraphLayoutNode {
|
|
255
|
+
readonly id: string;
|
|
256
|
+
readonly width: number;
|
|
257
|
+
readonly height: number;
|
|
258
|
+
}
|
|
259
|
+
/** A layout edge. `from` is the parent, `to` the child; `id` is unique per edge. */
|
|
260
|
+
interface WrGraphLayoutEdge {
|
|
261
|
+
readonly id: string;
|
|
262
|
+
readonly from: string;
|
|
263
|
+
readonly to: string;
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* The whole graph a layout works on. Input order IS the tie-break order, so the
|
|
267
|
+
* same arrays always produce the same picture. Parallel edges and self-loops
|
|
268
|
+
* are legal here; an edge naming a missing node is dropped silently, because
|
|
269
|
+
* the component has already warned about it.
|
|
270
|
+
*/
|
|
271
|
+
interface WrGraphLayoutInput {
|
|
272
|
+
readonly nodes: readonly WrGraphLayoutNode[];
|
|
273
|
+
readonly edges: readonly WrGraphLayoutEdge[];
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Per-call context. An object from day one so later fields are additive. The
|
|
277
|
+
* signal aborts when the input changes, or the graph is destroyed, before an
|
|
278
|
+
* asynchronous layout settles. An engine that cannot stop its work can leave it
|
|
279
|
+
* running: the graph drops the late result.
|
|
280
|
+
*/
|
|
281
|
+
interface WrGraphLayoutContext {
|
|
282
|
+
readonly signal: AbortSignal;
|
|
283
|
+
}
|
|
284
|
+
/** Where a node goes: its TOP-LEFT corner in graph space, which maps straight onto a CSS translate. */
|
|
285
|
+
interface WrGraphNodePlacement {
|
|
286
|
+
readonly id: string;
|
|
287
|
+
readonly x: number;
|
|
288
|
+
readonly y: number;
|
|
289
|
+
}
|
|
290
|
+
/** The polyline of one edge, from the `from` end to the `to` end — at least two points. */
|
|
291
|
+
interface WrGraphEdgeRoute {
|
|
292
|
+
readonly id: string;
|
|
293
|
+
readonly points: readonly WrGraphPoint[];
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* A finished layout. The bounding box starts at (0, 0) and measures
|
|
297
|
+
* `width` × `height`. Direction-free: RTL is applied after the layout, so these
|
|
298
|
+
* numbers never depend on `dir`.
|
|
299
|
+
*/
|
|
300
|
+
interface WrGraphLayoutResult {
|
|
301
|
+
readonly nodes: readonly WrGraphNodePlacement[];
|
|
302
|
+
readonly edges: readonly WrGraphEdgeRoute[];
|
|
303
|
+
readonly width: number;
|
|
304
|
+
readonly height: number;
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* The seam a layout engine plugs into. Used as both the type and the DI token,
|
|
308
|
+
* the way `WrDateAdapter` is.
|
|
309
|
+
*
|
|
310
|
+
* A synchronous result is drawn in the same pass. A Promise is for an engine
|
|
311
|
+
* that works in a worker or on a server: the graph keeps its last picture until
|
|
312
|
+
* the Promise resolves, and reports a rejection through `layoutError`.
|
|
313
|
+
*
|
|
314
|
+
* @example
|
|
315
|
+
* ```ts
|
|
316
|
+
* providers: [{ provide: WrGraphLayout, useClass: WorkerLayout }]
|
|
317
|
+
* ```
|
|
318
|
+
*/
|
|
319
|
+
export declare abstract class WrGraphLayout {
|
|
320
|
+
abstract layout(input: WrGraphLayoutInput, context: WrGraphLayoutContext): WrGraphLayoutResult | Promise<WrGraphLayoutResult>;
|
|
321
|
+
}
|
|
322
|
+
/** Options for {@link WrLayeredGraphLayout}. Spacing lives here, not on the component: the names are engine-specific. */
|
|
323
|
+
interface WrLayeredGraphLayoutOptions {
|
|
324
|
+
/** Horizontal gap between two nodes in one layer. Default `24`. */
|
|
325
|
+
readonly nodeGap?: number;
|
|
326
|
+
/** Vertical gap between two layers. Default `48`. */
|
|
327
|
+
readonly layerGap?: number;
|
|
328
|
+
/** Gap between an edge's bend and its neighbours, and between ports on one side. Default `12`. */
|
|
329
|
+
readonly edgeGap?: number;
|
|
330
|
+
/** Horizontal gap between two unconnected parts of the graph. Default `48`. */
|
|
331
|
+
readonly componentGap?: number;
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* The built-in layered layout: parents above children, pure TypeScript, no DOM
|
|
335
|
+
* and no dependency, so it runs the same under prerender as in the browser.
|
|
336
|
+
*
|
|
337
|
+
* It is deliberately the light version of the pipeline: DFS cycle breaking,
|
|
338
|
+
* source-based longest-path ranking with one tightening pass, barycenter sweeps
|
|
339
|
+
* with a pairwise crossing count, and averaged forward/backward compaction for
|
|
340
|
+
* coordinates. Network simplex and Brandes–Köpf would draw some graphs more
|
|
341
|
+
* compactly at several times the code.
|
|
342
|
+
*
|
|
343
|
+
* Deterministic by construction rather than by luck: ids are turned into indices
|
|
344
|
+
* in input order before anything else, every loop is capped by a count, every
|
|
345
|
+
* comparator is total with an integer tie-break, and the arithmetic is limited
|
|
346
|
+
* to operations the language specifies exactly — so the server and the browser
|
|
347
|
+
* agree to the last bit. Nothing is kept between calls and the input is never
|
|
348
|
+
* written to.
|
|
349
|
+
*/
|
|
350
|
+
export declare class WrLayeredGraphLayout extends WrGraphLayout {
|
|
351
|
+
private readonly gaps;
|
|
352
|
+
constructor(options?: WrLayeredGraphLayoutOptions);
|
|
353
|
+
/** Synchronous — a narrowing of the base signature, so a caller holding this class needs no `await`. */
|
|
354
|
+
layout(input: WrGraphLayoutInput): WrGraphLayoutResult;
|
|
215
355
|
}
|
|
216
|
-
export type { WrGraphEdge, WrGraphNode, WrGraphNodeContext };
|
|
356
|
+
export type { WrGraphEdge, WrGraphEdgeRoute, WrGraphLayoutContext, WrGraphLayoutEdge, WrGraphLayoutInput, WrGraphLayoutNode, WrGraphLayoutResult, WrGraphNode, WrGraphNodeContext, WrGraphNodePlacement, WrGraphPoint, WrLayeredGraphLayoutOptions };
|
|
@@ -113,6 +113,16 @@ export declare class WrInputNumberHarness extends ComponentHarness {
|
|
|
113
113
|
setValueText(text: string): Promise<void>;
|
|
114
114
|
/** Empty the field, which sets the value to `null` — not to `0`. */
|
|
115
115
|
clear(): Promise<void>;
|
|
116
|
+
/** Whether the clear (×) button is on show: `clearable`, with text, neither disabled nor read-only. */
|
|
117
|
+
hasClearButton(): Promise<boolean>;
|
|
118
|
+
/**
|
|
119
|
+
* Click the clear (×) button, which sets the value to `null` and emits `touch`.
|
|
120
|
+
* {@link clear} empties the field from the keyboard instead. Throws when the
|
|
121
|
+
* button is not on show.
|
|
122
|
+
*/
|
|
123
|
+
clickClear(): Promise<void>;
|
|
124
|
+
/** Whether the field is drawing its `loading` spinner. */
|
|
125
|
+
isLoading(): Promise<boolean>;
|
|
116
126
|
/** Whether the ▲▼ column is rendered at all — `[showSteppers]="false"` drops it. */
|
|
117
127
|
hasSteppers(): Promise<boolean>;
|
|
118
128
|
/**
|
|
@@ -137,6 +137,20 @@ export declare class WrInputNumber<M extends WrInputNumberMode = 'number'> imple
|
|
|
137
137
|
*/
|
|
138
138
|
protected readonly resolvedIncrement: import("@angular/core").Signal<string>;
|
|
139
139
|
protected readonly resolvedDecrement: import("@angular/core").Signal<string>;
|
|
140
|
+
/**
|
|
141
|
+
* Show a clear (×) button while the field holds text and is neither disabled
|
|
142
|
+
* nor read-only. Clearing sets `value` to `null`, emits `touch` and puts focus
|
|
143
|
+
* back in the field. It is a pointer control: from the keyboard, emptying the
|
|
144
|
+
* field clears the value. @default false
|
|
145
|
+
*/
|
|
146
|
+
readonly clearable: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
147
|
+
/** Clear (×) button aria-label. Falls back to `common.clear`. */
|
|
148
|
+
readonly clearLabel: import("@angular/core").InputSignal<string | null>;
|
|
149
|
+
/**
|
|
150
|
+
* Show a spinner after the field and mark the field `aria-busy`. The field
|
|
151
|
+
* stays editable. @default false
|
|
152
|
+
*/
|
|
153
|
+
readonly loading: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
140
154
|
/** Disable interaction. @default false */
|
|
141
155
|
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
142
156
|
/** Read-only — values cannot be changed (steppers + typing disabled). @default false */
|
|
@@ -147,7 +161,7 @@ export declare class WrInputNumber<M extends WrInputNumberMode = 'number'> imple
|
|
|
147
161
|
* `[(value)]`.
|
|
148
162
|
*/
|
|
149
163
|
readonly value: import("@angular/core").ModelSignal<WrInputNumberValue<M>>;
|
|
150
|
-
/** Emitted on blur so a bound field can mark itself touched. */
|
|
164
|
+
/** Emitted on blur, and by the clear (×) button, so a bound field can mark itself touched. */
|
|
151
165
|
readonly touch: import("@angular/core").OutputEmitterRef<void>;
|
|
152
166
|
private readonly locale;
|
|
153
167
|
private readonly separators;
|
|
@@ -303,6 +317,21 @@ export declare class WrInputNumber<M extends WrInputNumberMode = 'number'> imple
|
|
|
303
317
|
"required": false;
|
|
304
318
|
"isSignal": true;
|
|
305
319
|
};
|
|
320
|
+
"clearable": {
|
|
321
|
+
"alias": "clearable";
|
|
322
|
+
"required": false;
|
|
323
|
+
"isSignal": true;
|
|
324
|
+
};
|
|
325
|
+
"clearLabel": {
|
|
326
|
+
"alias": "clearLabel";
|
|
327
|
+
"required": false;
|
|
328
|
+
"isSignal": true;
|
|
329
|
+
};
|
|
330
|
+
"loading": {
|
|
331
|
+
"alias": "loading";
|
|
332
|
+
"required": false;
|
|
333
|
+
"isSignal": true;
|
|
334
|
+
};
|
|
306
335
|
"disabled": {
|
|
307
336
|
"alias": "disabled";
|
|
308
337
|
"required": false;
|
|
@@ -55,6 +55,11 @@ export declare class WrInputOtp implements FormValueControl<string> {
|
|
|
55
55
|
* sizes the whole strip however many boxes `length` renders. @default 'md'
|
|
56
56
|
*/
|
|
57
57
|
readonly size: import("@angular/core").InputSignal<WrInputOtpSize>;
|
|
58
|
+
/**
|
|
59
|
+
* Pill-shaped corners. Every box takes them, so a square box draws a circle.
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
62
|
+
readonly rounded: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
58
63
|
/** Mask the typed characters like a password. @default false */
|
|
59
64
|
readonly mask: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
60
65
|
/**
|
|
@@ -185,6 +190,11 @@ export declare class WrInputOtp implements FormValueControl<string> {
|
|
|
185
190
|
"required": false;
|
|
186
191
|
"isSignal": true;
|
|
187
192
|
};
|
|
193
|
+
"rounded": {
|
|
194
|
+
"alias": "rounded";
|
|
195
|
+
"required": false;
|
|
196
|
+
"isSignal": true;
|
|
197
|
+
};
|
|
188
198
|
"mask": {
|
|
189
199
|
"alias": "mask";
|
|
190
200
|
"required": false;
|
|
@@ -63,4 +63,34 @@ export declare class WrInputHarness extends ComponentHarness {
|
|
|
63
63
|
blur(): Promise<void>;
|
|
64
64
|
isFocused(): Promise<boolean>;
|
|
65
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Harness for `<wr-input-group>`: the clear (×) button and the spinner it draws
|
|
68
|
+
* around the field it wraps. The field itself is a {@link WrInputHarness}, from
|
|
69
|
+
* {@link getInput}.
|
|
70
|
+
*
|
|
71
|
+
* There is no `getPrefix()` / `getSuffix()`: an affix is the app's own markup,
|
|
72
|
+
* so a spec reads it straight off its own template.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```ts
|
|
76
|
+
* const search = await loader.getHarness(WrInputGroupHarness);
|
|
77
|
+
*
|
|
78
|
+
* await (await search.getInput()).setValue('ada');
|
|
79
|
+
* expect(await search.isLoading()).toBe(true);
|
|
80
|
+
* await search.clear();
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* @see https://ngwr.dev/guides/testing
|
|
84
|
+
*/
|
|
85
|
+
export declare class WrInputGroupHarness extends ComponentHarness {
|
|
86
|
+
static hostSelector: string;
|
|
87
|
+
/** The first field the group wraps, the one `clearable` and `loading` act on. */
|
|
88
|
+
getInput(): Promise<WrInputHarness>;
|
|
89
|
+
/** Whether the clear (×) button is on show: `clearable`, with text, neither disabled nor read-only. */
|
|
90
|
+
hasClearButton(): Promise<boolean>;
|
|
91
|
+
/** Click the clear (×) button. Throws when it is not on show. */
|
|
92
|
+
clear(): Promise<void>;
|
|
93
|
+
/** Whether the group is drawing its `loading` spinner. */
|
|
94
|
+
isLoading(): Promise<boolean>;
|
|
95
|
+
}
|
|
66
96
|
export type { WrInputHarnessFilters };
|
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 };
|