ngwr 16.4.0 → 16.6.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/back-top/styles/_index.scss +6 -0
- package/breadcrumbs/styles/_rules.scss +34 -0
- package/cascader/styles/_rules.scss +7 -0
- package/charts/bar-chart/styles/_index.scss +494 -305
- package/charts/boxplot-chart/styles/_index.scss +114 -48
- package/charts/bullet-chart/styles/_index.scss +113 -42
- package/charts/calendar-heatmap/styles/_index.scss +111 -20
- package/charts/candlestick-chart/styles/_index.scss +61 -26
- package/charts/chart-legend/styles/_index.scss +120 -10
- package/charts/core/styles/_index.scss +201 -5
- package/charts/donut-chart/styles/_index.scss +76 -21
- package/charts/funnel-chart/styles/_index.scss +66 -38
- package/charts/gauge/styles/_index.scss +12 -1
- package/charts/heatmap-chart/styles/_index.scss +90 -53
- package/charts/line-chart/styles/_index.scss +143 -139
- package/charts/meter-group/styles/_index.scss +87 -25
- package/charts/radar-chart/styles/_index.scss +82 -40
- package/charts/scatter-chart/styles/_index.scss +117 -44
- package/charts/sparkline/styles/_index.scss +7 -1
- package/charts/treemap-chart/styles/_index.scss +94 -42
- package/charts/waterfall-chart/styles/_index.scss +150 -87
- package/color-picker/styles/_index.scss +7 -3
- package/copy-value/styles/_index.scss +21 -2
- package/counter/styles/_index.scss +1 -8
- package/date-picker/styles/_index.scss +15 -9
- package/date-stamp/styles/_index.scss +2 -1
- package/dialog/styles/_index.scss +43 -0
- package/drawer/styles/_index.scss +5 -1
- package/editor/styles/_index.scss +1 -8
- package/event-calendar/styles/_index.scss +2 -6
- package/fesm2022/ngwr-affix.mjs +1 -1
- package/fesm2022/ngwr-affix.mjs.map +1 -1
- package/fesm2022/ngwr-anchor.mjs +9 -2
- package/fesm2022/ngwr-anchor.mjs.map +1 -1
- package/fesm2022/ngwr-animations-aurora.mjs.map +1 -1
- package/fesm2022/ngwr-animations-blur-reveal.mjs.map +1 -1
- package/fesm2022/ngwr-animations-click-sparks.mjs.map +1 -1
- package/fesm2022/ngwr-animations-confetti.mjs.map +1 -1
- package/fesm2022/ngwr-animations-decode.mjs.map +1 -1
- package/fesm2022/ngwr-animations-destruct.mjs.map +1 -1
- package/fesm2022/ngwr-animations-dot-grid.mjs.map +1 -1
- package/fesm2022/ngwr-animations-falling-letters.mjs.map +1 -1
- package/fesm2022/ngwr-animations-flow-lines.mjs.map +1 -1
- package/fesm2022/ngwr-animations-fluid-cursor.mjs.map +1 -1
- package/fesm2022/ngwr-animations-glitch.mjs.map +1 -1
- package/fesm2022/ngwr-animations-glow-border.mjs.map +1 -1
- package/fesm2022/ngwr-animations-gradient-flow.mjs.map +1 -1
- package/fesm2022/ngwr-animations-marquee.mjs.map +1 -1
- package/fesm2022/ngwr-animations-orbit.mjs.map +1 -1
- package/fesm2022/ngwr-animations-reveal.mjs.map +1 -1
- package/fesm2022/ngwr-animations-ripple-grid.mjs.map +1 -1
- package/fesm2022/ngwr-animations-rotate-reveal.mjs.map +1 -1
- package/fesm2022/ngwr-animations-shimmer.mjs.map +1 -1
- package/fesm2022/ngwr-animations-spotlight.mjs.map +1 -1
- package/fesm2022/ngwr-animations-thread-lines.mjs.map +1 -1
- package/fesm2022/ngwr-animations-tilt.mjs +20 -13
- package/fesm2022/ngwr-animations-tilt.mjs.map +1 -1
- package/fesm2022/ngwr-animations-typewriter.mjs.map +1 -1
- package/fesm2022/ngwr-breadcrumbs.mjs +40 -7
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-button.mjs +12 -3
- package/fesm2022/ngwr-button.mjs.map +1 -1
- package/fesm2022/ngwr-carousel-testing.mjs +4 -1
- package/fesm2022/ngwr-carousel-testing.mjs.map +1 -1
- package/fesm2022/ngwr-carousel.mjs +27 -2
- package/fesm2022/ngwr-carousel.mjs.map +1 -1
- package/fesm2022/ngwr-cascader-testing.mjs.map +1 -1
- package/fesm2022/ngwr-cascader.mjs +72 -8
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart-testing.mjs +16 -14
- package/fesm2022/ngwr-charts-bar-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart.mjs +399 -141
- package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs +19 -5
- package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-boxplot-chart.mjs +250 -56
- package/fesm2022/ngwr-charts-boxplot-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bullet-chart.mjs +118 -18
- package/fesm2022/ngwr-charts-bullet-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs +266 -46
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs.map +1 -1
- package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs +21 -10
- package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-candlestick-chart.mjs +319 -72
- package/fesm2022/ngwr-charts-candlestick-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-chart-legend.mjs +211 -9
- package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
- package/fesm2022/ngwr-charts-core.mjs +311 -23
- package/fesm2022/ngwr-charts-core.mjs.map +1 -1
- package/fesm2022/ngwr-charts-donut-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-donut-chart.mjs +206 -27
- package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-funnel-chart-testing.mjs +4 -4
- package/fesm2022/ngwr-charts-funnel-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-funnel-chart.mjs +113 -10
- package/fesm2022/ngwr-charts-funnel-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-gauge-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-gauge.mjs +98 -12
- package/fesm2022/ngwr-charts-gauge.mjs.map +1 -1
- package/fesm2022/ngwr-charts-heatmap-chart.mjs +226 -31
- package/fesm2022/ngwr-charts-heatmap-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-line-chart-testing.mjs +16 -4
- package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-line-chart.mjs +407 -172
- package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group-testing.mjs +4 -4
- package/fesm2022/ngwr-charts-meter-group-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group.mjs +225 -31
- package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart-testing.mjs +2 -1
- package/fesm2022/ngwr-charts-radar-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart.mjs +255 -66
- package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-scatter-chart-testing.mjs +39 -18
- package/fesm2022/ngwr-charts-scatter-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-scatter-chart.mjs +431 -53
- package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-sparkline.mjs +19 -8
- package/fesm2022/ngwr-charts-sparkline.mjs.map +1 -1
- package/fesm2022/ngwr-charts-treemap-chart.mjs +253 -44
- package/fesm2022/ngwr-charts-treemap-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs +15 -7
- package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-waterfall-chart.mjs +151 -23
- package/fesm2022/ngwr-charts-waterfall-chart.mjs.map +1 -1
- package/fesm2022/ngwr-checkbox.mjs +3 -2
- package/fesm2022/ngwr-checkbox.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker.mjs +65 -5
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-context-menu-testing.mjs.map +1 -1
- package/fesm2022/ngwr-context-menu.mjs +51 -24
- package/fesm2022/ngwr-context-menu.mjs.map +1 -1
- package/fesm2022/ngwr-copy-value-testing.mjs +5 -1
- package/fesm2022/ngwr-copy-value-testing.mjs.map +1 -1
- package/fesm2022/ngwr-copy-value.mjs +38 -2
- package/fesm2022/ngwr-copy-value.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +105 -9
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-dialog.mjs +29 -11
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-directives.mjs +9 -6
- package/fesm2022/ngwr-directives.mjs.map +1 -1
- package/fesm2022/ngwr-drawer.mjs +19 -3
- package/fesm2022/ngwr-drawer.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +35 -6
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +1 -0
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-event-calendar.mjs +20 -9
- package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-form.mjs +170 -3
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-graph.mjs +81 -13
- package/fesm2022/ngwr-graph.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ar.mjs +20 -0
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +20 -0
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +20 -0
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +20 -0
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +20 -0
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +20 -0
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +20 -0
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +20 -0
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +20 -0
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +20 -0
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +20 -0
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +20 -0
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +20 -0
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +20 -0
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +20 -0
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +20 -0
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +20 -0
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +20 -0
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +20 -0
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +20 -0
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +20 -0
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +20 -0
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +82 -11
- package/fesm2022/ngwr-i18n.mjs.map +1 -1
- package/fesm2022/ngwr-input-number.mjs +24 -1
- package/fesm2022/ngwr-input-number.mjs.map +1 -1
- package/fesm2022/ngwr-input-otp.mjs +2 -2
- package/fesm2022/ngwr-input-otp.mjs.map +1 -1
- package/fesm2022/ngwr-input.mjs +10 -2
- package/fesm2022/ngwr-input.mjs.map +1 -1
- package/fesm2022/ngwr-layout.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox.mjs +20 -3
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +1 -1
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-loading-bar-router.mjs.map +1 -1
- package/fesm2022/ngwr-loading-bar.mjs +2 -2
- package/fesm2022/ngwr-loading-bar.mjs.map +1 -1
- package/fesm2022/ngwr-mention.mjs +8 -0
- package/fesm2022/ngwr-mention.mjs.map +1 -1
- package/fesm2022/ngwr-meta.mjs +9 -6
- package/fesm2022/ngwr-meta.mjs.map +1 -1
- package/fesm2022/ngwr-overlay.mjs +21 -2
- package/fesm2022/ngwr-overlay.mjs.map +1 -1
- package/fesm2022/ngwr-page-header.mjs +21 -0
- package/fesm2022/ngwr-page-header.mjs.map +1 -1
- package/fesm2022/ngwr-pagination.mjs +2 -0
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +8 -1
- package/fesm2022/ngwr-pipes.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm-testing.mjs +4 -1
- package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm.mjs +43 -6
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +114 -15
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-qr.mjs +6 -2
- package/fesm2022/ngwr-qr.mjs.map +1 -1
- package/fesm2022/ngwr-radio.mjs +71 -5
- package/fesm2022/ngwr-radio.mjs.map +1 -1
- package/fesm2022/ngwr-schema-form.mjs +12 -1
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-scroll.mjs +1 -3
- package/fesm2022/ngwr-scroll.mjs.map +1 -1
- package/fesm2022/ngwr-segmented.mjs +20 -0
- package/fesm2022/ngwr-segmented.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +80 -9
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-sortable-list.mjs +16 -4
- package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
- package/fesm2022/ngwr-storage.mjs +1 -1
- package/fesm2022/ngwr-storage.mjs.map +1 -1
- package/fesm2022/ngwr-switch.mjs +2 -2
- package/fesm2022/ngwr-switch.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +43 -7
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tabs-router.mjs.map +1 -1
- package/fesm2022/ngwr-textarea.mjs +2 -2
- package/fesm2022/ngwr-textarea.mjs.map +1 -1
- package/fesm2022/ngwr-toast.mjs +28 -0
- package/fesm2022/ngwr-toast.mjs.map +1 -1
- package/fesm2022/ngwr-tour.mjs +16 -11
- package/fesm2022/ngwr-tour.mjs.map +1 -1
- package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +49 -16
- package/fesm2022/ngwr-tree.mjs.map +1 -1
- package/fesm2022/ngwr-typography.mjs +20 -0
- package/fesm2022/ngwr-typography.mjs.map +1 -1
- package/fesm2022/ngwr-utils-router.mjs.map +1 -1
- package/fesm2022/ngwr-utils.mjs +46 -4
- package/fesm2022/ngwr-utils.mjs.map +1 -1
- package/fesm2022/ngwr-validators.mjs +33 -1
- package/fesm2022/ngwr-validators.mjs.map +1 -1
- package/fesm2022/ngwr-version.mjs +1 -1
- package/fesm2022/ngwr-version.mjs.map +1 -1
- package/fesm2022/ngwr-window.mjs +16 -9
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/form/styles/_index.scss +37 -0
- package/graph/styles/_index.scss +1 -9
- package/i18n/ar.json +20 -0
- package/i18n/cs.json +20 -0
- package/i18n/de.json +20 -0
- package/i18n/en.json +20 -0
- package/i18n/es.json +20 -0
- package/i18n/fr.json +20 -0
- package/i18n/he.json +20 -0
- package/i18n/hi.json +20 -0
- package/i18n/id.json +20 -0
- package/i18n/it.json +20 -0
- package/i18n/ja.json +20 -0
- package/i18n/ko.json +20 -0
- package/i18n/nl.json +20 -0
- package/i18n/pl.json +20 -0
- package/i18n/pt.json +20 -0
- package/i18n/ru.json +20 -0
- package/i18n/sv.json +20 -0
- package/i18n/tr.json +20 -0
- package/i18n/uk.json +20 -0
- package/i18n/vi.json +20 -0
- package/i18n/zh-TW.json +20 -0
- package/i18n/zh.json +20 -0
- package/image-cropper/styles/_index.scss +1 -9
- package/input-number/styles/_index.scss +7 -0
- package/layout/styles/_index.scss +13 -1
- package/llms-full.txt +17 -17
- package/llms.txt +7 -3
- package/loading-bar/styles/_rules.scss +6 -0
- package/package.json +2 -2
- package/page-header/styles/_index.scss +18 -0
- package/popconfirm/styles/_index.scss +6 -0
- package/popover/styles/_index.scss +31 -13
- package/schematics/use/symbol-map.json +3 -0
- package/segmented/styles/_index.scss +7 -0
- package/select/styles/_index.scss +7 -0
- package/sidebar/styles/_index.scss +6 -0
- package/skills/ngwr/references/catalog.md +2 -2
- package/sortable-list/styles/_rules.scss +1 -9
- package/speed-dial/styles/_index.scss +6 -0
- package/stepper/styles/_index.scss +1 -9
- package/table/styles/_index.scss +49 -0
- package/theme/_index.scss +12 -1
- package/theme/styles/_colors.scss +11 -0
- package/theme/styles/_contrast.scss +6 -0
- package/theme/styles/_index.scss +1 -0
- package/theme/styles/_mixins.scss +45 -0
- package/theme/styles/_print.scss +17 -0
- package/toast/styles/_index.scss +7 -0
- package/tour/styles/_index.scss +14 -0
- package/tree/styles/_index.scss +1 -9
- package/types/ngwr-anchor.d.ts +3 -0
- package/types/ngwr-animations-aurora.d.ts +6 -0
- package/types/ngwr-animations-blur-reveal.d.ts +6 -0
- package/types/ngwr-animations-click-sparks.d.ts +6 -0
- package/types/ngwr-animations-confetti.d.ts +6 -0
- package/types/ngwr-animations-decode.d.ts +6 -0
- package/types/ngwr-animations-destruct.d.ts +6 -0
- package/types/ngwr-animations-dot-grid.d.ts +6 -0
- package/types/ngwr-animations-falling-letters.d.ts +6 -0
- package/types/ngwr-animations-flow-lines.d.ts +6 -0
- package/types/ngwr-animations-fluid-cursor.d.ts +6 -0
- package/types/ngwr-animations-glitch.d.ts +6 -0
- package/types/ngwr-animations-glow-border.d.ts +6 -0
- package/types/ngwr-animations-gradient-flow.d.ts +6 -0
- package/types/ngwr-animations-marquee.d.ts +6 -0
- package/types/ngwr-animations-orbit.d.ts +6 -0
- package/types/ngwr-animations-reveal.d.ts +6 -0
- package/types/ngwr-animations-ripple-grid.d.ts +6 -0
- package/types/ngwr-animations-rotate-reveal.d.ts +6 -0
- package/types/ngwr-animations-shimmer.d.ts +6 -0
- package/types/ngwr-animations-spotlight.d.ts +6 -0
- package/types/ngwr-animations-thread-lines.d.ts +6 -0
- package/types/ngwr-animations-tilt.d.ts +10 -0
- package/types/ngwr-animations-typewriter.d.ts +6 -0
- package/types/ngwr-breadcrumbs.d.ts +25 -0
- package/types/ngwr-button.d.ts +23 -3
- package/types/ngwr-carousel-testing.d.ts +6 -4
- package/types/ngwr-carousel.d.ts +16 -3
- package/types/ngwr-cascader-testing.d.ts +4 -3
- package/types/ngwr-cascader.d.ts +34 -3
- package/types/ngwr-charts-bar-chart-testing.d.ts +15 -13
- package/types/ngwr-charts-bar-chart.d.ts +220 -48
- package/types/ngwr-charts-boxplot-chart-testing.d.ts +9 -2
- package/types/ngwr-charts-boxplot-chart.d.ts +110 -19
- package/types/ngwr-charts-bullet-chart.d.ts +72 -12
- package/types/ngwr-charts-calendar-heatmap.d.ts +119 -15
- package/types/ngwr-charts-candlestick-chart-testing.d.ts +19 -9
- package/types/ngwr-charts-candlestick-chart.d.ts +195 -62
- package/types/ngwr-charts-chart-legend.d.ts +142 -5
- package/types/ngwr-charts-core.d.ts +275 -21
- package/types/ngwr-charts-donut-chart-testing.d.ts +11 -5
- package/types/ngwr-charts-donut-chart.d.ts +124 -16
- package/types/ngwr-charts-funnel-chart.d.ts +62 -6
- package/types/ngwr-charts-gauge-testing.d.ts +5 -1
- package/types/ngwr-charts-gauge.d.ts +72 -10
- package/types/ngwr-charts-heatmap-chart.d.ts +103 -20
- package/types/ngwr-charts-line-chart-testing.d.ts +16 -2
- package/types/ngwr-charts-line-chart.d.ts +215 -86
- package/types/ngwr-charts-meter-group.d.ts +98 -7
- package/types/ngwr-charts-radar-chart-testing.d.ts +14 -3
- package/types/ngwr-charts-radar-chart.d.ts +148 -28
- package/types/ngwr-charts-scatter-chart-testing.d.ts +22 -10
- package/types/ngwr-charts-scatter-chart.d.ts +188 -18
- package/types/ngwr-charts-sparkline.d.ts +26 -4
- package/types/ngwr-charts-treemap-chart.d.ts +121 -23
- package/types/ngwr-charts-waterfall-chart-testing.d.ts +8 -1
- package/types/ngwr-charts-waterfall-chart.d.ts +108 -21
- package/types/ngwr-checkbox.d.ts +1 -0
- package/types/ngwr-color-picker.d.ts +28 -0
- package/types/ngwr-context-menu-testing.d.ts +10 -9
- package/types/ngwr-context-menu.d.ts +18 -1
- package/types/ngwr-copy-value.d.ts +8 -0
- package/types/ngwr-date-picker.d.ts +53 -2
- package/types/ngwr-dialog.d.ts +64 -13
- package/types/ngwr-directives.d.ts +12 -4
- package/types/ngwr-drawer.d.ts +33 -2
- package/types/ngwr-dropdown-testing.d.ts +8 -5
- package/types/ngwr-dropdown.d.ts +29 -6
- package/types/ngwr-event-calendar.d.ts +4 -0
- package/types/ngwr-form.d.ts +85 -1
- package/types/ngwr-graph.d.ts +22 -6
- package/types/ngwr-i18n.d.ts +65 -5
- package/types/ngwr-input-number.d.ts +8 -0
- package/types/ngwr-input.d.ts +7 -0
- package/types/ngwr-layout.d.ts +1 -1
- package/types/ngwr-lightbox.d.ts +15 -0
- package/types/ngwr-loading-bar-router.d.ts +6 -0
- package/types/ngwr-overlay.d.ts +16 -1
- package/types/ngwr-page-header.d.ts +23 -1
- package/types/ngwr-popconfirm-testing.d.ts +11 -2
- package/types/ngwr-popconfirm.d.ts +29 -2
- package/types/ngwr-popover.d.ts +87 -13
- package/types/ngwr-radio.d.ts +47 -5
- package/types/ngwr-segmented.d.ts +7 -0
- package/types/ngwr-select.d.ts +57 -13
- package/types/ngwr-sortable-list.d.ts +20 -7
- package/types/ngwr-table.d.ts +59 -6
- package/types/ngwr-tabs-router.d.ts +6 -0
- package/types/ngwr-toast.d.ts +11 -0
- package/types/ngwr-tour.d.ts +21 -3
- package/types/ngwr-tree-testing.d.ts +1 -2
- package/types/ngwr-tree.d.ts +33 -2
- package/types/ngwr-typography.d.ts +7 -0
- package/types/ngwr-utils-router.d.ts +6 -0
- package/types/ngwr-utils.d.ts +56 -2
- package/types/ngwr-validators.d.ts +49 -1
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr-window.d.ts +14 -11
- package/typography/styles/_index.scss +4 -0
- package/window/styles/_index.scss +6 -19
package/types/ngwr-dialog.d.ts
CHANGED
|
@@ -94,6 +94,15 @@ export declare class WrDialogRef<C, R = unknown> {
|
|
|
94
94
|
}
|
|
95
95
|
/** The ARIA role a dialog panel announces. */
|
|
96
96
|
type WrDialogRole = 'dialog' | 'alertdialog';
|
|
97
|
+
/**
|
|
98
|
+
* What a dialog does with focus when it opens: `'first-tabbable'` focuses the
|
|
99
|
+
* first tabbable element, `'dialog'` focuses the panel itself (no ring, so the
|
|
100
|
+
* first Tab reaches the first control), `false` moves nothing. An element with
|
|
101
|
+
* `cdkFocusInitial` wins in every mode.
|
|
102
|
+
*/
|
|
103
|
+
type WrDialogAutoFocus = 'first-tabbable' | 'dialog' | false;
|
|
104
|
+
/** A dialog size: a width step, read from `--wr-dialog-width-<size>`, and the scale of the dialog's parts. */
|
|
105
|
+
type WrDialogSize = 'sm' | 'md' | 'lg';
|
|
97
106
|
/**
|
|
98
107
|
* Options accepted by `WrDialog.open()`.
|
|
99
108
|
*/
|
|
@@ -129,10 +138,34 @@ interface WrDialogOptions<D = unknown> {
|
|
|
129
138
|
readonly closable?: boolean;
|
|
130
139
|
/** Accessible name for the dismiss button. Falls back to the `dialog.close` catalog key. */
|
|
131
140
|
readonly closeLabel?: string;
|
|
132
|
-
/**
|
|
141
|
+
/**
|
|
142
|
+
* `sm`, `md` or `lg`. A width step, 28rem, 40rem and 56rem unless the
|
|
143
|
+
* `--wr-dialog-width-<size>` hooks say otherwise, and the scale of the
|
|
144
|
+
* dialog: its padding, title, text, dismiss button and footer gap, through
|
|
145
|
+
* the `--wr-dialog-*` hooks. `md` scales nothing. A `wr-btn` inside with no
|
|
146
|
+
* `size` of its own takes this one, the buttons of `confirm()` and `alert()`
|
|
147
|
+
* included. The panel gets the `wr-dialog-panel--<size>` class and still
|
|
148
|
+
* narrows to the viewport gutter. An explicit `width` wins over the width
|
|
149
|
+
* step only. With neither, the panel is as wide as its content.
|
|
150
|
+
* @default undefined, or what `withDialog()` sets for `open()`
|
|
151
|
+
*/
|
|
152
|
+
readonly size?: WrDialogSize;
|
|
153
|
+
/** Width applied to the panel — any valid CSS length. Wins over the width of a `size`. */
|
|
133
154
|
readonly width?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Minimum width applied to the panel, in place of `--wr-dialog-min-width`.
|
|
157
|
+
* A minimum wins over the viewport gutter, so a long one overflows a phone.
|
|
158
|
+
*/
|
|
159
|
+
readonly minWidth?: string;
|
|
134
160
|
/** Maximum width applied to the panel. */
|
|
135
161
|
readonly maxWidth?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Height applied to the panel — any valid CSS length. The viewport gutter
|
|
164
|
+
* still caps it, and `[wrDialogContent]` takes the room left and scrolls.
|
|
165
|
+
*/
|
|
166
|
+
readonly height?: string;
|
|
167
|
+
/** Maximum height applied to the panel, in place of the viewport gutter. */
|
|
168
|
+
readonly maxHeight?: string;
|
|
136
169
|
/**
|
|
137
170
|
* Extra CSS classes for the panel. A space-separated string works as well as
|
|
138
171
|
* an array — the CDK would throw `InvalidCharacterError` on the first, so the
|
|
@@ -159,9 +192,20 @@ interface WrDialogOptions<D = unknown> {
|
|
|
159
192
|
* @default 'above'
|
|
160
193
|
*/
|
|
161
194
|
readonly toasts?: 'above' | 'below';
|
|
195
|
+
/**
|
|
196
|
+
* Where focus goes when the dialog opens. `'dialog'` focuses the panel itself,
|
|
197
|
+
* with no ring, so the first Tab goes to the first control. `'first-tabbable'`
|
|
198
|
+
* focuses the first tabbable element, which lights the focus ring on a button
|
|
199
|
+
* when the user pressed nothing. `false` leaves focus where it was. The default is `'dialog'`: a modal that moves no focus strands keyboard
|
|
200
|
+
* users, and `'first-tabbable'` is the explicit opt-in. An
|
|
201
|
+
* element marked `cdkFocusInitial` wins in every mode. The focus trap and the
|
|
202
|
+
* return of focus to the opener on close do not change.
|
|
203
|
+
* @default 'dialog', or what `withDialog()` sets
|
|
204
|
+
*/
|
|
205
|
+
readonly autoFocus?: WrDialogAutoFocus;
|
|
162
206
|
}
|
|
163
207
|
/** The `WrDialogOptions` that `confirm()` and `alert()` pass through to the dialog. */
|
|
164
|
-
type WrDialogMessageOptions = Pick<WrDialogOptions, 'width' | 'maxWidth' | 'panelClass' | 'closeOnBackdropClick' | 'closeOnEscape' | 'closeOnNavigation' | 'tabTitle' | 'toasts'>;
|
|
208
|
+
type WrDialogMessageOptions = Pick<WrDialogOptions, 'size' | 'width' | 'maxWidth' | 'panelClass' | 'closeOnBackdropClick' | 'closeOnEscape' | 'closeOnNavigation' | 'tabTitle' | 'autoFocus' | 'toasts'>;
|
|
165
209
|
/** The meaning a `confirm()` or an `alert()` dialog shows as an icon before its title. */
|
|
166
210
|
type WrDialogIntent = 'info' | 'success' | 'warning' | 'danger';
|
|
167
211
|
/**
|
|
@@ -216,8 +260,11 @@ interface WrDialogAlertOptions extends WrDialogMessageOptions {
|
|
|
216
260
|
/** An icon before the title, in the intent's color. It is decorative. */
|
|
217
261
|
readonly intent?: WrDialogIntent;
|
|
218
262
|
}
|
|
219
|
-
/**
|
|
220
|
-
|
|
263
|
+
/**
|
|
264
|
+
* App-wide dialog defaults, passed to `provideWr(withDialog(...))`. `size`
|
|
265
|
+
* applies to `open()` only: `confirm()` and `alert()` take their own.
|
|
266
|
+
*/
|
|
267
|
+
type WrDialogDefaults = Pick<WrDialogOptions, 'tabTitle' | 'autoFocus' | 'size'>;
|
|
221
268
|
/**
|
|
222
269
|
* Opens dialog components in an isolated NGWR overlay.
|
|
223
270
|
*
|
|
@@ -252,6 +299,7 @@ export declare class WrDialog {
|
|
|
252
299
|
private readonly defaults;
|
|
253
300
|
private readonly order;
|
|
254
301
|
open<C, R = unknown, D = unknown>(component: ComponentType<C>, options?: WrDialogOptions<D>): WrDialogRef<C, R>;
|
|
302
|
+
private mount;
|
|
255
303
|
/**
|
|
256
304
|
* Ask a yes-or-no question and get the answer: `true` only when the user
|
|
257
305
|
* pressed the confirm button. Escape, the backdrop, the cancel button, a
|
|
@@ -262,8 +310,9 @@ export declare class WrDialog {
|
|
|
262
310
|
* The dialog is `role="alertdialog"`, named by `title` and described by
|
|
263
311
|
* `message`, with no corner dismiss: the two buttons are the answers. Labels
|
|
264
312
|
* fall back to the `common.ok` and `common.cancel` catalog keys. With
|
|
265
|
-
* `confirmColor: 'danger'` initial focus is on
|
|
266
|
-
*
|
|
313
|
+
* `autoFocus: 'first-tabbable'` and `confirmColor: 'danger'` initial focus is on
|
|
314
|
+
* the cancel button, and on the confirm button otherwise; by default the panel
|
|
315
|
+
* takes it. Focus returns to the opener on close, as it does
|
|
267
316
|
* for `open()`.
|
|
268
317
|
*
|
|
269
318
|
* `intent` puts an icon before the title, and `danger` or `warning` color the
|
|
@@ -293,7 +342,7 @@ export declare class WrDialog {
|
|
|
293
342
|
*
|
|
294
343
|
* The dialog is `confirm()`'s with one button: `role="alertdialog"` for every
|
|
295
344
|
* intent, named by `title` and described by `message`, with no corner
|
|
296
|
-
* dismiss.
|
|
345
|
+
* dismiss. Under `autoFocus: 'first-tabbable'` the button takes the initial focus; its label falls back to the
|
|
297
346
|
* `common.ok` catalog key. `intent` puts an icon before the title.
|
|
298
347
|
*
|
|
299
348
|
* On the server it resolves at once and opens nothing.
|
|
@@ -309,6 +358,7 @@ export declare class WrDialog {
|
|
|
309
358
|
* ```
|
|
310
359
|
*/
|
|
311
360
|
alert(options: WrDialogAlertOptions): Promise<void>;
|
|
361
|
+
private autoFocusOf;
|
|
312
362
|
private ask;
|
|
313
363
|
/**
|
|
314
364
|
* Tie the dialog's lifetime to the URL it was opened on.
|
|
@@ -397,9 +447,10 @@ export declare const WR_DIALOG_DATA: InjectionToken<unknown>;
|
|
|
397
447
|
*/
|
|
398
448
|
export declare const WR_DIALOG_REF: InjectionToken<WrDialogRef<unknown, unknown>>;
|
|
399
449
|
/**
|
|
400
|
-
* App-wide dialog defaults, as a feature of `provideWr()`:
|
|
401
|
-
*
|
|
402
|
-
*
|
|
450
|
+
* App-wide dialog defaults, as a feature of `provideWr()`: `tabTitle`, so
|
|
451
|
+
* every dialog names the browser tab while it is open, `autoFocus`, where
|
|
452
|
+
* focus goes on open, and `size`, the size of every `open()`. The same
|
|
453
|
+
* option on `open()` or `confirm()` still wins.
|
|
403
454
|
*
|
|
404
455
|
* Bootstrap only: `WrDialog` is root-provided and reads it once, from the root
|
|
405
456
|
* injector, so in a route's `providers` it changes nothing.
|
|
@@ -410,7 +461,7 @@ export declare const WR_DIALOG_REF: InjectionToken<WrDialogRef<unknown, unknown>
|
|
|
410
461
|
* import { withDialog } from 'ngwr/dialog';
|
|
411
462
|
*
|
|
412
463
|
* bootstrapApplication(App, {
|
|
413
|
-
* providers: [provideWr(withDialog({ tabTitle: true }))],
|
|
464
|
+
* providers: [provideWr(withDialog({ tabTitle: true, autoFocus: 'first-tabbable' }))],
|
|
414
465
|
* });
|
|
415
466
|
* ```
|
|
416
467
|
*/
|
|
@@ -488,7 +539,7 @@ export declare class WrDialogFooter {
|
|
|
488
539
|
*
|
|
489
540
|
* @default 'end'
|
|
490
541
|
*/
|
|
491
|
-
readonly align: import("@angular/core").InputSignal<"center" | "
|
|
542
|
+
readonly align: import("@angular/core").InputSignal<"center" | "end" | "start">;
|
|
492
543
|
protected readonly classes: import("@angular/core").Signal<string>;
|
|
493
544
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrDialogFooter, never>;
|
|
494
545
|
static ɵdir: i0.ɵɵDirectiveDeclaration<WrDialogFooter, "[wrDialogFooter]", never, {
|
|
@@ -528,4 +579,4 @@ export declare class WrDialogClose<R = unknown> {
|
|
|
528
579
|
};
|
|
529
580
|
}, {}, never, never, true, never>;
|
|
530
581
|
}
|
|
531
|
-
export type { WrDialogAlertOptions, WrDialogConfirmOptions, WrDialogDefaults, WrDialogIntent, WrDialogMessageOptions, WrDialogOptions, WrDialogRole };
|
|
582
|
+
export type { WrDialogAlertOptions, WrDialogAutoFocus, WrDialogConfirmOptions, WrDialogDefaults, WrDialogIntent, WrDialogMessageOptions, WrDialogOptions, WrDialogRole, WrDialogSize };
|
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
/**
|
|
3
|
-
* Focus the host element after the first render
|
|
4
|
-
* expression
|
|
3
|
+
* Focus the host element after the first render, or whenever the bound
|
|
4
|
+
* expression turns truthy. `"first"` focuses the first focusable element
|
|
5
|
+
* inside the host instead: the control of a form, a card or a dialog body.
|
|
6
|
+
* Disabled and hidden elements are skipped.
|
|
5
7
|
*
|
|
6
8
|
* @example
|
|
7
9
|
* ```html
|
|
8
10
|
* <input wrAutofocus />
|
|
9
11
|
* <input [wrAutofocus]="shouldFocus()" />
|
|
12
|
+
* <form wrAutofocus="first">…</form>
|
|
13
|
+
* <form [wrAutofocus]="editing() && 'first'">…</form>
|
|
10
14
|
* ```
|
|
11
15
|
*/
|
|
12
16
|
export declare class WrAutofocus {
|
|
13
|
-
/**
|
|
14
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Truthy = focus the host, `'first'` = focus the first focusable element
|
|
19
|
+
* inside it. Defaults to `true` so bare `wrAutofocus` works.
|
|
20
|
+
*/
|
|
21
|
+
readonly wrAutofocus: import("@angular/core").InputSignalWithTransform<boolean | "first", unknown>;
|
|
15
22
|
private readonly el;
|
|
23
|
+
private readonly injector;
|
|
16
24
|
constructor();
|
|
17
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrAutofocus, never>;
|
|
18
26
|
static ɵdir: i0.ɵɵDirectiveDeclaration<WrAutofocus, "[wrAutofocus]", never, {
|
package/types/ngwr-drawer.d.ts
CHANGED
|
@@ -13,6 +13,13 @@ import { ReplaySubject } from "rxjs";
|
|
|
13
13
|
*/
|
|
14
14
|
/** Side of the viewport the drawer slides in from. */
|
|
15
15
|
type WrDrawerPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
16
|
+
/**
|
|
17
|
+
* What a drawer does with focus when it opens: `'first-tabbable'` focuses the
|
|
18
|
+
* first tabbable element, `'dialog'` focuses the panel itself (no ring, so the
|
|
19
|
+
* first Tab reaches the first control), `false` moves nothing. An element with
|
|
20
|
+
* `cdkFocusInitial` wins in every mode.
|
|
21
|
+
*/
|
|
22
|
+
type WrDrawerAutoFocus = 'first-tabbable' | 'dialog' | false;
|
|
16
23
|
/**
|
|
17
24
|
* Options accepted by `WrDrawerManager.open()`.
|
|
18
25
|
*
|
|
@@ -83,6 +90,17 @@ interface WrDrawerOptions<D = unknown> {
|
|
|
83
90
|
* @default 'above'
|
|
84
91
|
*/
|
|
85
92
|
readonly toasts?: 'above' | 'below';
|
|
93
|
+
/**
|
|
94
|
+
* Where focus goes when the drawer opens. `'dialog'` focuses the panel itself,
|
|
95
|
+
* with no ring, so the first Tab goes to the first control. `'first-tabbable'`
|
|
96
|
+
* focuses the first tabbable element, which lights the focus ring on a button
|
|
97
|
+
* when the user pressed nothing. `false` leaves focus where it was. The default is `'dialog'`: a modal that moves no focus strands keyboard
|
|
98
|
+
* users, and `'first-tabbable'` is the explicit opt-in. An
|
|
99
|
+
* element marked `cdkFocusInitial` wins in every mode. The trap of a modal
|
|
100
|
+
* drawer and the return of focus on close do not change.
|
|
101
|
+
* @default 'dialog'
|
|
102
|
+
*/
|
|
103
|
+
readonly autoFocus?: WrDrawerAutoFocus;
|
|
86
104
|
}
|
|
87
105
|
/**
|
|
88
106
|
* Side panel that slides in from an edge of the viewport. Two-way binds
|
|
@@ -167,6 +185,14 @@ export declare class WrDrawer {
|
|
|
167
185
|
* @default 'above'
|
|
168
186
|
*/
|
|
169
187
|
readonly toasts: import("@angular/core").InputSignal<"below" | "above">;
|
|
188
|
+
/**
|
|
189
|
+
* Where focus goes when the drawer opens: `'dialog'` focuses the panel itself
|
|
190
|
+
* with no ring so the first Tab reaches the first control, `'first-tabbable'`
|
|
191
|
+
* focuses the first tabbable element, `false` moves nothing. An element
|
|
192
|
+
* marked `cdkFocusInitial` wins in every mode. Read when the drawer opens.
|
|
193
|
+
* @default 'dialog'
|
|
194
|
+
*/
|
|
195
|
+
readonly autoFocus: import("@angular/core").InputSignal<WrDrawerAutoFocus>;
|
|
170
196
|
protected readonly resolvedCloseLabel: import("@angular/core").Signal<string>;
|
|
171
197
|
protected readonly panelTpl: import("@angular/core").Signal<TemplateRef<any>>;
|
|
172
198
|
/**
|
|
@@ -311,6 +337,11 @@ export declare class WrDrawer {
|
|
|
311
337
|
"required": false;
|
|
312
338
|
"isSignal": true;
|
|
313
339
|
};
|
|
340
|
+
"autoFocus": {
|
|
341
|
+
"alias": "autoFocus";
|
|
342
|
+
"required": false;
|
|
343
|
+
"isSignal": true;
|
|
344
|
+
};
|
|
314
345
|
}, {
|
|
315
346
|
"open": "openChange";
|
|
316
347
|
}, ["projectedTitle"], ["*"], true, never>;
|
|
@@ -551,7 +582,7 @@ export declare class WrDrawerContent {
|
|
|
551
582
|
export declare class WrDrawerFooter {
|
|
552
583
|
constructor();
|
|
553
584
|
/** Horizontal alignment of footer content. @default 'end' */
|
|
554
|
-
readonly align: import("@angular/core").InputSignal<"center" | "
|
|
585
|
+
readonly align: import("@angular/core").InputSignal<"center" | "end" | "start">;
|
|
555
586
|
protected readonly classes: import("@angular/core").Signal<string>;
|
|
556
587
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrDrawerFooter, never>;
|
|
557
588
|
static ɵdir: i0.ɵɵDirectiveDeclaration<WrDrawerFooter, "[wrDrawerFooter]", never, {
|
|
@@ -596,4 +627,4 @@ export declare class WrDrawerClose<R = unknown> {
|
|
|
596
627
|
};
|
|
597
628
|
}, {}, never, never, true, never>;
|
|
598
629
|
}
|
|
599
|
-
export type { WrDrawerOptions, WrDrawerPosition };
|
|
630
|
+
export type { WrDrawerAutoFocus, WrDrawerOptions, WrDrawerPosition };
|
|
@@ -139,7 +139,8 @@ export declare class WrDropdownHarness extends ContentContainerComponentHarness
|
|
|
139
139
|
open(): Promise<void>;
|
|
140
140
|
/**
|
|
141
141
|
* Open the menu from the keyboard — ArrowDown on the trigger, the APG
|
|
142
|
-
* menu-button path (ArrowUp / Enter / Space do the same).
|
|
142
|
+
* menu-button path (ArrowUp / Enter / Space do the same). Focus stays on the
|
|
143
|
+
* trigger unless the dropdown sets `wrDropdownAutoFocus`.
|
|
143
144
|
*
|
|
144
145
|
* Worth its own method rather than an argument to `open()`: it is the only way
|
|
145
146
|
* to get TWO dropdowns open at once, because clicking a second trigger is an
|
|
@@ -183,10 +184,12 @@ export declare class WrDropdownHarness extends ContentContainerComponentHarness
|
|
|
183
184
|
* The label of the item that currently holds focus, or `null` when focus is
|
|
184
185
|
* elsewhere.
|
|
185
186
|
*
|
|
186
|
-
* The menu roves focus rather than moving a visual cursor
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
187
|
+
* The menu roves focus rather than moving a visual cursor, so this is the only
|
|
188
|
+
* way to ask where the keyboard is. Opening leaves focus on the trigger unless
|
|
189
|
+
* the dropdown sets `wrDropdownAutoFocus`: send ArrowDown to the host
|
|
190
|
+
* (`(await dropdown.host()).sendKeys(TestKey.DOWN_ARROW)`) to walk in at the
|
|
191
|
+
* first ENABLED item, and the arrow keys walk from there over the enabled
|
|
192
|
+
* items only (a disabled one is not a stop).
|
|
190
193
|
*/
|
|
191
194
|
getFocusedItemText(): Promise<string | null>;
|
|
192
195
|
/**
|
package/types/ngwr-dropdown.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { TemplateRef } from "@angular/core";
|
|
3
3
|
import { WrClassInput } from "ngwr/utils";
|
|
4
|
-
import { ConnectedPosition } from "@angular/cdk/overlay";
|
|
5
4
|
import { WrAnchoredPosition } from "ngwr/overlay";
|
|
5
|
+
import "@angular/cdk/overlay";
|
|
6
6
|
/**
|
|
7
7
|
* Holds the menu content rendered when a {@link WrDropdown} opens.
|
|
8
8
|
*
|
|
@@ -94,6 +94,18 @@ export declare class WrDropdown {
|
|
|
94
94
|
* @default false
|
|
95
95
|
*/
|
|
96
96
|
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
97
|
+
/**
|
|
98
|
+
* Focus the first item when a click, a key or `open()` opens the menu. Off,
|
|
99
|
+
* focus stays on the trigger and ArrowDown / ArrowUp there walk into the menu
|
|
100
|
+
* at its first / last item; a letter jumps to the item it starts. A pointer
|
|
101
|
+
* hovering a `trigger="hover"` menu never moves focus.
|
|
102
|
+
*
|
|
103
|
+
* Prefixed because the directive sits on your own element, where an
|
|
104
|
+
* `autoFocus` attribute would also be the native `autofocus`.
|
|
105
|
+
*
|
|
106
|
+
* @default false
|
|
107
|
+
*/
|
|
108
|
+
readonly autoFocus: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
97
109
|
/**
|
|
98
110
|
* Extra CSS classes for the menu's overlay pane.
|
|
99
111
|
*
|
|
@@ -154,6 +166,8 @@ export declare class WrDropdown {
|
|
|
154
166
|
private overlayRef;
|
|
155
167
|
/** The root menu's link to the submenus open below it. */
|
|
156
168
|
private level;
|
|
169
|
+
/** The open root menu's type-ahead, for a letter typed on the trigger. */
|
|
170
|
+
private typeInMenu;
|
|
157
171
|
constructor();
|
|
158
172
|
/** Open the menu. Does nothing while the trigger is disabled. */
|
|
159
173
|
open(): void;
|
|
@@ -165,10 +179,10 @@ export declare class WrDropdown {
|
|
|
165
179
|
/**
|
|
166
180
|
* Whether the pointer, rather than the keyboard, opened the current menu.
|
|
167
181
|
*
|
|
168
|
-
* A hover-opened menu must not take focus — the APG
|
|
169
|
-
* leaves the caret where it was
|
|
170
|
-
*
|
|
171
|
-
*
|
|
182
|
+
* A hover-opened menu must not take focus, even under `wrDropdownAutoFocus` — the APG
|
|
183
|
+
* shows a menu on hover and leaves the caret where it was. The trigger MODE
|
|
184
|
+
* cannot answer that on its own: a `trigger="hover"` menu is still openable
|
|
185
|
+
* with Enter, and that open follows `wrDropdownAutoFocus`.
|
|
172
186
|
*/
|
|
173
187
|
private openedByPointer;
|
|
174
188
|
protected onClick(event: MouseEvent): void;
|
|
@@ -194,7 +208,11 @@ export declare class WrDropdown {
|
|
|
194
208
|
* its way out of the document.
|
|
195
209
|
*/
|
|
196
210
|
private closeOverlay;
|
|
197
|
-
/**
|
|
211
|
+
/**
|
|
212
|
+
* @internal Trigger keydown — ArrowDown/Up/Enter/Space open the menu. While
|
|
213
|
+
* it is open the arrows reach `handleMenuKeydown` through the overlay, and a
|
|
214
|
+
* letter goes to the menu's type-ahead.
|
|
215
|
+
*/
|
|
198
216
|
protected onKeydown(event: KeyboardEvent): void;
|
|
199
217
|
private handleMenuKeydown;
|
|
200
218
|
/** The focus stops of `pane`, the root menu's own by default. */
|
|
@@ -232,6 +250,11 @@ export declare class WrDropdown {
|
|
|
232
250
|
"required": false;
|
|
233
251
|
"isSignal": true;
|
|
234
252
|
};
|
|
253
|
+
"autoFocus": {
|
|
254
|
+
"alias": "wrDropdownAutoFocus";
|
|
255
|
+
"required": false;
|
|
256
|
+
"isSignal": true;
|
|
257
|
+
};
|
|
235
258
|
"panelClass": {
|
|
236
259
|
"alias": "panelClass";
|
|
237
260
|
"required": false;
|
|
@@ -388,6 +388,10 @@ export declare class WrEventCalendar {
|
|
|
388
388
|
*/
|
|
389
389
|
private stepRow;
|
|
390
390
|
private shift;
|
|
391
|
+
/** Wall-clock minutes since midnight of the day `date` is on. */
|
|
392
|
+
private wallMinutes;
|
|
393
|
+
/** The wall-clock time `minutes` after midnight of `date`'s day; past 1440 it rolls into the next days. */
|
|
394
|
+
private atMinutes;
|
|
391
395
|
private startOfDay;
|
|
392
396
|
private startOfWeek;
|
|
393
397
|
/** Whole days apart — computed on the day floor, so DST cannot round it off. */
|
package/types/ngwr-form.d.ts
CHANGED
|
@@ -1,6 +1,82 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { AfterContentChecked, InjectionToken, Signal } from "@angular/core";
|
|
3
3
|
import { NgControl, ValidationErrors } from "@angular/forms";
|
|
4
|
+
/**
|
|
5
|
+
* Lays out the fields of a form: a column with a gap by default, a wrapping
|
|
6
|
+
* row with `inline`, or rows of `columns` equal columns that fall back to one
|
|
7
|
+
* column when the form itself is narrow.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```html
|
|
11
|
+
* <form wrForm columns="2">
|
|
12
|
+
* <wr-form-field label="First name"><input wrInput /></wr-form-field>
|
|
13
|
+
* <wr-form-field label="Last name"><input wrInput /></wr-form-field>
|
|
14
|
+
* <wr-form-field label="Email" wrFormSpan><input wrInput /></wr-form-field>
|
|
15
|
+
* </form>
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* @see https://ngwr.dev/reference/components/form
|
|
19
|
+
*/
|
|
20
|
+
export declare class WrForm {
|
|
21
|
+
constructor();
|
|
22
|
+
/**
|
|
23
|
+
* Lay the fields out in a wrapping row, aligned on their bottom edge.
|
|
24
|
+
* `columns` is ignored.
|
|
25
|
+
*
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
readonly inline: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
29
|
+
/**
|
|
30
|
+
* How many equal columns a row holds. Below a form width of `30rem` every
|
|
31
|
+
* field takes a full row.
|
|
32
|
+
*
|
|
33
|
+
* @default 1
|
|
34
|
+
*/
|
|
35
|
+
readonly columns: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
36
|
+
protected readonly grid: import("@angular/core").Signal<boolean>;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrForm, never>;
|
|
38
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WrForm, "[wrForm]", never, {
|
|
39
|
+
"inline": {
|
|
40
|
+
"alias": "inline";
|
|
41
|
+
"required": false;
|
|
42
|
+
"isSignal": true;
|
|
43
|
+
};
|
|
44
|
+
"columns": {
|
|
45
|
+
"alias": "columns";
|
|
46
|
+
"required": false;
|
|
47
|
+
"isSignal": true;
|
|
48
|
+
};
|
|
49
|
+
}, {}, never, never, true, never>;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Stretches a child of `[wrForm]` over several columns: all of them with no
|
|
53
|
+
* value, or the given number.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```html
|
|
57
|
+
* <wr-form-field label="Address" wrFormSpan="2"><input wrInput /></wr-form-field>
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* @see https://ngwr.dev/reference/components/form
|
|
61
|
+
*/
|
|
62
|
+
export declare class WrFormSpan {
|
|
63
|
+
constructor();
|
|
64
|
+
/**
|
|
65
|
+
* Columns to span. Empty or `'full'` takes the whole row.
|
|
66
|
+
*
|
|
67
|
+
* @default 'full'
|
|
68
|
+
*/
|
|
69
|
+
readonly span: import("@angular/core").InputSignalWithTransform<number | "full", unknown>;
|
|
70
|
+
protected readonly track: import("@angular/core").Signal<string>;
|
|
71
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrFormSpan, never>;
|
|
72
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WrFormSpan, "[wrFormSpan]", never, {
|
|
73
|
+
"span": {
|
|
74
|
+
"alias": "wrFormSpan";
|
|
75
|
+
"required": false;
|
|
76
|
+
"isSignal": true;
|
|
77
|
+
};
|
|
78
|
+
}, {}, never, never, true, never>;
|
|
79
|
+
}
|
|
4
80
|
/**
|
|
5
81
|
* Wraps a label + control + error message into a single field row.
|
|
6
82
|
*
|
|
@@ -89,6 +165,12 @@ interface WrFormFieldContext {
|
|
|
89
165
|
* field without it simply describes nothing but its errors.
|
|
90
166
|
*/
|
|
91
167
|
readonly hintId?: Signal<string | null>;
|
|
168
|
+
/**
|
|
169
|
+
* Whether the field is marked `required`. Read through `useFormFieldAria()` as
|
|
170
|
+
* `aria-required`. Optional so an app that provides its own `WR_FORM_FIELD`
|
|
171
|
+
* keeps compiling.
|
|
172
|
+
*/
|
|
173
|
+
readonly required?: Signal<boolean>;
|
|
92
174
|
}
|
|
93
175
|
/** Present only inside a `<wr-form-field>`; inject with `{ optional: true }`. */
|
|
94
176
|
export declare const WR_FORM_FIELD: InjectionToken<WrFormFieldContext>;
|
|
@@ -172,7 +254,7 @@ export declare class WrFormField implements WrFormFieldContext, AfterContentChec
|
|
|
172
254
|
readonly label: import("@angular/core").InputSignal<string>;
|
|
173
255
|
/** Hint text shown below the control. Hidden when an error is visible. */
|
|
174
256
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
175
|
-
/** Show a `*` next to the label. @default false */
|
|
257
|
+
/** Show a `*` next to the label and set `aria-required` on the projected control. @default false */
|
|
176
258
|
readonly required: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
177
259
|
/**
|
|
178
260
|
* Show an "optional" marker next to the label — the word comes from
|
|
@@ -361,6 +443,8 @@ interface WrFormFieldAria {
|
|
|
361
443
|
readonly describedBy: Signal<string | null>;
|
|
362
444
|
/** `'true'` while the field has a validation error, `null` otherwise. */
|
|
363
445
|
readonly ariaInvalid: Signal<'true' | null>;
|
|
446
|
+
/** `'true'` while the field is `required`, `null` otherwise. */
|
|
447
|
+
readonly ariaRequired: Signal<'true' | null>;
|
|
364
448
|
/**
|
|
365
449
|
* Id of the field's `<label>`, for a control `<label for>` cannot reach.
|
|
366
450
|
*
|
package/types/ngwr-graph.d.ts
CHANGED
|
@@ -234,17 +234,20 @@ export declare class WrGraph<TData = unknown> {
|
|
|
234
234
|
readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
|
|
235
235
|
/**
|
|
236
236
|
* Lets the viewport zoom and pan instead of scrolling: `Ctrl` or `⌘` with the
|
|
237
|
-
* wheel, a pinch, a drag on the field, the keyboard and three buttons.
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
*
|
|
237
|
+
* wheel, a pinch, a drag on the field, the keyboard and three buttons. A plain
|
|
238
|
+
* wheel or a two-finger scroll pans while the drawing has more to show that
|
|
239
|
+
* way, and scrolls the page once it has none. The drawing is fitted on first
|
|
240
|
+
* draw and whenever the layout changes its size, until the view is moved by
|
|
241
|
+
* hand. A touch drag on the graph then pans it rather than scrolling the page.
|
|
241
242
|
*
|
|
242
243
|
* @default false
|
|
243
244
|
*/
|
|
244
245
|
readonly zoomable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
245
246
|
/**
|
|
246
|
-
* Lets a plain wheel zoom, with no modifier key. The
|
|
247
|
-
* scrolls while the pointer is over the graph.
|
|
247
|
+
* Lets a plain wheel zoom, with no modifier key. The wheel then never pans,
|
|
248
|
+
* and the page no longer scrolls while the pointer is over the graph. Without
|
|
249
|
+
* it a plain wheel pans the drawing, and scrolls the page once the drawing has
|
|
250
|
+
* nothing more to show in that direction.
|
|
248
251
|
*
|
|
249
252
|
* @default false
|
|
250
253
|
*/
|
|
@@ -359,6 +362,8 @@ export declare class WrGraph<TData = unknown> {
|
|
|
359
362
|
private frameId;
|
|
360
363
|
private readonly pointers;
|
|
361
364
|
private dragging;
|
|
365
|
+
/** The zoom a Safari pinch started from, while one is under way. */
|
|
366
|
+
private pinchFrom;
|
|
362
367
|
/**
|
|
363
368
|
* The visually hidden sentence per node id: its parents, then its children, as
|
|
364
369
|
* name lists. Never a count — the catalogs have no plural forms. A neighbour
|
|
@@ -384,6 +389,8 @@ export declare class WrGraph<TData = unknown> {
|
|
|
384
389
|
private frame;
|
|
385
390
|
/** The fitted transform, or `null` while there is nothing to fit or no box to fit it in. */
|
|
386
391
|
private fitted;
|
|
392
|
+
/** The viewport's padding, which a fit and a scroll both stop at. */
|
|
393
|
+
private insets;
|
|
387
394
|
/** After a new drawing or a new box: fit it, or keep a view moved by hand within reach. */
|
|
388
395
|
private settle;
|
|
389
396
|
/** The transform the next frame will show. */
|
|
@@ -397,6 +404,15 @@ export declare class WrGraph<TData = unknown> {
|
|
|
397
404
|
private zoomBy;
|
|
398
405
|
private panBy;
|
|
399
406
|
private onWheel;
|
|
407
|
+
/**
|
|
408
|
+
* A plain wheel or a two-finger scroll, handled as a scroll container handles
|
|
409
|
+
* it: the drawing moves while it has more to show that way and the event is
|
|
410
|
+
* taken; once it has none the event is left alone and the page scrolls on.
|
|
411
|
+
*/
|
|
412
|
+
private onWheelPan;
|
|
413
|
+
private onGestureStart;
|
|
414
|
+
private onGestureChange;
|
|
415
|
+
private onGestureEnd;
|
|
400
416
|
private onKeydown;
|
|
401
417
|
private onPointerDown;
|
|
402
418
|
private onPointerMove;
|
package/types/ngwr-i18n.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { EnvironmentProviders, InjectionToken, PipeTransform, Provider, Signal } from "@angular/core";
|
|
2
|
+
import { EnvironmentProviders, InjectionToken, Injector, PipeTransform, Provider, Signal } from "@angular/core";
|
|
3
3
|
import { Observable } from "rxjs";
|
|
4
4
|
/** Translation catalog — flat or nested record of strings. */
|
|
5
5
|
interface WrI18nCatalog {
|
|
@@ -144,6 +144,8 @@ export declare class WrI18n {
|
|
|
144
144
|
private readonly revision;
|
|
145
145
|
/** In-flight load promises — dedupes parallel `t()` callers. @internal */
|
|
146
146
|
private readonly inflight;
|
|
147
|
+
/** Keys whose last load failed: `t()` does not retry them, `use()` and `registerScope()` do. @internal */
|
|
148
|
+
private readonly failed;
|
|
147
149
|
/** Registered scopes — auto-loaded whenever the locale changes. @internal */
|
|
148
150
|
private readonly scopes;
|
|
149
151
|
/** Active locale. Writes go through `use()` so storage stays in sync. */
|
|
@@ -363,9 +365,8 @@ interface WrI18nHttpLoaderConfig {
|
|
|
363
365
|
readonly rootPath?: string;
|
|
364
366
|
}
|
|
365
367
|
/**
|
|
366
|
-
* Loader that fetches catalogs via `HttpClient`.
|
|
367
|
-
*
|
|
368
|
-
* user code.
|
|
368
|
+
* Loader that fetches catalogs via `HttpClient`. A failure errors the stream;
|
|
369
|
+
* the service logs it, serves the key and retries on the next `use()`.
|
|
369
370
|
*/
|
|
370
371
|
export declare class WrI18nHttpLoader implements WrI18nLoader {
|
|
371
372
|
private readonly config;
|
|
@@ -499,4 +500,63 @@ export declare function wrReadI18nText(key: string, fallback: string): Signal<st
|
|
|
499
500
|
* ```
|
|
500
501
|
*/
|
|
501
502
|
export declare function useI18nFormatter(key: string, fallback: string): (params?: WrI18nParams) => string;
|
|
502
|
-
|
|
503
|
+
/** A screen's own sentence for one status: the text, or a function of the error. */
|
|
504
|
+
type WrHttpErrorOverride = string | ((error: unknown) => string);
|
|
505
|
+
/** Options of {@link wrHttpErrorText}. */
|
|
506
|
+
interface WrHttpErrorTextOptions {
|
|
507
|
+
/** The screen's own sentence per status, `0` being a network failure. Wins over everything else. */
|
|
508
|
+
readonly overrides?: Readonly<Partial<Record<number, WrHttpErrorOverride>>>;
|
|
509
|
+
/**
|
|
510
|
+
* Prefer the sentence the server put in the body: `error.error.message`, or
|
|
511
|
+
* a body that is a plain string. For an API that writes its errors for the
|
|
512
|
+
* person at the screen.
|
|
513
|
+
* @default false
|
|
514
|
+
*/
|
|
515
|
+
readonly serverMessage?: boolean;
|
|
516
|
+
/** Where to read `WrI18n` from when the call is outside an injection context, such as a `catch`. */
|
|
517
|
+
readonly injector?: Injector;
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* The HTTP status of a failed request: of an `HttpErrorResponse`, a `Response`
|
|
521
|
+
* or anything else carrying a numeric `status`. `0` is a request nothing
|
|
522
|
+
* answered (offline, CORS, a dropped connection); `null` is a value that is not
|
|
523
|
+
* an HTTP error at all.
|
|
524
|
+
*
|
|
525
|
+
* @example
|
|
526
|
+
* ```ts
|
|
527
|
+
* if (wrHttpStatus(error) === 401) void router.navigate(['/login']);
|
|
528
|
+
* ```
|
|
529
|
+
*
|
|
530
|
+
* @see https://ngwr.dev/reference/utils/wr-http-error-text
|
|
531
|
+
*/
|
|
532
|
+
export declare function wrHttpStatus(error: unknown): number | null;
|
|
533
|
+
/**
|
|
534
|
+
* A sentence for a failed request, in the active language. Highest first:
|
|
535
|
+
*
|
|
536
|
+
* 1. `overrides[status]`, the screen's own wording.
|
|
537
|
+
* 2. With `serverMessage`, the sentence in the response body.
|
|
538
|
+
* 3. The catalog: `httpError.<status>`, then `httpError.4xx` / `httpError.5xx`
|
|
539
|
+
* (both take `{{status}}`), `httpError.network` for status `0`, and
|
|
540
|
+
* `httpError.unknown` for the rest. An app's own catalog wins over ngwr's,
|
|
541
|
+
* and English is the floor when neither has the key.
|
|
542
|
+
*
|
|
543
|
+
* Call it in an injection context, or pass `injector` from a `catch` or a
|
|
544
|
+
* callback.
|
|
545
|
+
*
|
|
546
|
+
* @example
|
|
547
|
+
* ```ts
|
|
548
|
+
* private readonly injector = inject(Injector);
|
|
549
|
+
*
|
|
550
|
+
* try {
|
|
551
|
+
* await this.api.save(order);
|
|
552
|
+
* } catch (error) {
|
|
553
|
+
* this.toast.danger(
|
|
554
|
+
* wrHttpErrorText(error, { injector: this.injector, overrides: { 409: 'This name is taken.' } })
|
|
555
|
+
* );
|
|
556
|
+
* }
|
|
557
|
+
* ```
|
|
558
|
+
*
|
|
559
|
+
* @see https://ngwr.dev/reference/utils/wr-http-error-text
|
|
560
|
+
*/
|
|
561
|
+
export declare function wrHttpErrorText(error: unknown, options?: WrHttpErrorTextOptions): string;
|
|
562
|
+
export type { ProvideWrI18nOptions, WrHttpErrorOverride, WrHttpErrorTextOptions, WrI18nBaseCatalogs, WrI18nCatalog, WrI18nConfig, WrI18nConfigResolved, WrI18nHttpLoaderConfig, WrI18nLoader, WrI18nMissingHandler, WrI18nParams, WrI18nStaticCatalogs, WrI18nStaticScopedCatalogs, WrI18nTranslateOptions };
|