ngwr 16.5.0 → 16.7.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/avatar/styles/_index.scss +39 -0
- package/back-top/styles/_index.scss +6 -0
- package/breadcrumbs/styles/_rules.scss +34 -0
- package/button/styles/_index.scss +45 -2
- package/cascader/styles/_rules.scss +7 -0
- package/charts/chart-legend/styles/_index.scss +1 -9
- package/copy-value/styles/_index.scss +4 -0
- package/counter/styles/_index.scss +1 -8
- package/date-picker/styles/_index.scss +15 -9
- package/dialog/styles/_index.scss +37 -0
- package/dropdown/styles/_index.scss +17 -0
- package/editor/styles/_index.scss +1 -8
- package/event-calendar/styles/_index.scss +2 -6
- package/fesm2022/ngwr-affix.mjs +4 -4
- package/fesm2022/ngwr-affix.mjs.map +1 -1
- package/fesm2022/ngwr-alert.mjs +3 -3
- package/fesm2022/ngwr-anchor.mjs +12 -5
- package/fesm2022/ngwr-anchor.mjs.map +1 -1
- package/fesm2022/ngwr-animations-aurora.mjs +3 -3
- package/fesm2022/ngwr-animations-aurora.mjs.map +1 -1
- package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-blur-reveal.mjs.map +1 -1
- package/fesm2022/ngwr-animations-click-sparks.mjs +3 -3
- package/fesm2022/ngwr-animations-click-sparks.mjs.map +1 -1
- package/fesm2022/ngwr-animations-confetti.mjs +3 -3
- package/fesm2022/ngwr-animations-confetti.mjs.map +1 -1
- package/fesm2022/ngwr-animations-decode.mjs +3 -3
- package/fesm2022/ngwr-animations-decode.mjs.map +1 -1
- package/fesm2022/ngwr-animations-destruct.mjs +3 -3
- package/fesm2022/ngwr-animations-destruct.mjs.map +1 -1
- package/fesm2022/ngwr-animations-dot-grid.mjs +3 -3
- package/fesm2022/ngwr-animations-dot-grid.mjs.map +1 -1
- package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
- package/fesm2022/ngwr-animations-falling-letters.mjs.map +1 -1
- package/fesm2022/ngwr-animations-flow-lines.mjs +3 -3
- package/fesm2022/ngwr-animations-flow-lines.mjs.map +1 -1
- package/fesm2022/ngwr-animations-fluid-cursor.mjs +3 -3
- package/fesm2022/ngwr-animations-fluid-cursor.mjs.map +1 -1
- package/fesm2022/ngwr-animations-glitch.mjs +3 -3
- package/fesm2022/ngwr-animations-glitch.mjs.map +1 -1
- package/fesm2022/ngwr-animations-glow-border.mjs +3 -3
- package/fesm2022/ngwr-animations-glow-border.mjs.map +1 -1
- package/fesm2022/ngwr-animations-gradient-flow.mjs +3 -3
- package/fesm2022/ngwr-animations-gradient-flow.mjs.map +1 -1
- package/fesm2022/ngwr-animations-marquee.mjs +4 -3
- package/fesm2022/ngwr-animations-marquee.mjs.map +1 -1
- package/fesm2022/ngwr-animations-orbit.mjs +3 -3
- package/fesm2022/ngwr-animations-orbit.mjs.map +1 -1
- package/fesm2022/ngwr-animations-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-reveal.mjs.map +1 -1
- package/fesm2022/ngwr-animations-ripple-grid.mjs +3 -3
- package/fesm2022/ngwr-animations-ripple-grid.mjs.map +1 -1
- package/fesm2022/ngwr-animations-rotate-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-rotate-reveal.mjs.map +1 -1
- package/fesm2022/ngwr-animations-shimmer.mjs +3 -3
- package/fesm2022/ngwr-animations-shimmer.mjs.map +1 -1
- package/fesm2022/ngwr-animations-spotlight.mjs +3 -3
- package/fesm2022/ngwr-animations-spotlight.mjs.map +1 -1
- package/fesm2022/ngwr-animations-thread-lines.mjs +3 -3
- package/fesm2022/ngwr-animations-thread-lines.mjs.map +1 -1
- package/fesm2022/ngwr-animations-tilt.mjs +23 -16
- package/fesm2022/ngwr-animations-tilt.mjs.map +1 -1
- package/fesm2022/ngwr-animations-typewriter.mjs +3 -3
- package/fesm2022/ngwr-animations-typewriter.mjs.map +1 -1
- package/fesm2022/ngwr-avatar.mjs +171 -6
- package/fesm2022/ngwr-avatar.mjs.map +1 -1
- package/fesm2022/ngwr-back-top.mjs +3 -3
- package/fesm2022/ngwr-badge.mjs +6 -6
- package/fesm2022/ngwr-breadcrumbs.mjs +47 -13
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-burger.mjs +3 -3
- package/fesm2022/ngwr-button.mjs +38 -9
- package/fesm2022/ngwr-button.mjs.map +1 -1
- package/fesm2022/ngwr-calendar.mjs +3 -3
- package/fesm2022/ngwr-card.mjs +9 -9
- package/fesm2022/ngwr-carousel.mjs +14 -8
- package/fesm2022/ngwr-carousel.mjs.map +1 -1
- package/fesm2022/ngwr-cascader.mjs +27 -7
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart.mjs +3 -3
- 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 +9 -9
- package/fesm2022/ngwr-charts-core.mjs +18 -11
- package/fesm2022/ngwr-charts-core.mjs.map +1 -1
- package/fesm2022/ngwr-charts-donut-chart.mjs +3 -3
- 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.mjs +3 -3
- package/fesm2022/ngwr-charts-meter-group.mjs +7 -5
- package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-scatter-chart.mjs +3 -3
- 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 +9 -8
- package/fesm2022/ngwr-checkbox.mjs.map +1 -1
- package/fesm2022/ngwr-clipboard.mjs +3 -3
- package/fesm2022/ngwr-collapse.mjs +9 -9
- package/fesm2022/ngwr-color-picker.mjs +27 -7
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-command-palette.mjs +3 -3
- package/fesm2022/ngwr-comment.mjs +7 -6
- package/fesm2022/ngwr-comment.mjs.map +1 -1
- package/fesm2022/ngwr-compare.mjs +3 -3
- package/fesm2022/ngwr-context-menu.mjs +16 -17
- package/fesm2022/ngwr-context-menu.mjs.map +1 -1
- package/fesm2022/ngwr-cookie.mjs +3 -3
- package/fesm2022/ngwr-copy-value.mjs +3 -3
- package/fesm2022/ngwr-counter.mjs +6 -6
- package/fesm2022/ngwr-date-picker-testing.mjs +35 -0
- package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +151 -54
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp.mjs +3 -3
- package/fesm2022/ngwr-date.mjs +40 -16
- 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 +35 -24
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-directives.mjs +189 -23
- package/fesm2022/ngwr-directives.mjs.map +1 -1
- package/fesm2022/ngwr-divider.mjs +3 -3
- package/fesm2022/ngwr-drawer.mjs +18 -18
- package/fesm2022/ngwr-dropdown-testing.mjs +5 -1
- package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +59 -16
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +6 -5
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-empty.mjs +3 -3
- package/fesm2022/ngwr-event-calendar.mjs +27 -15
- package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload-testing.mjs +5 -0
- package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload.mjs +68 -13
- package/fesm2022/ngwr-file-upload.mjs.map +1 -1
- package/fesm2022/ngwr-form.mjs +181 -12
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-graph-testing.mjs +30 -0
- package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
- package/fesm2022/ngwr-graph.mjs +100 -11
- package/fesm2022/ngwr-graph.mjs.map +1 -1
- package/fesm2022/ngwr-hotkey.mjs +6 -6
- package/fesm2022/ngwr-i18n-ar.mjs +21 -2
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +21 -2
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +21 -2
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +21 -2
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +21 -2
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +21 -2
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +21 -2
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +21 -2
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +21 -2
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +21 -2
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +21 -2
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-kk.mjs +520 -0
- package/fesm2022/ngwr-i18n-kk.mjs.map +1 -0
- package/fesm2022/ngwr-i18n-ko.mjs +21 -2
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +21 -2
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +21 -2
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +21 -2
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +21 -2
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +21 -2
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +21 -2
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +21 -2
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +21 -2
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +21 -2
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +21 -2
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +91 -20
- package/fesm2022/ngwr-i18n.mjs.map +1 -1
- package/fesm2022/ngwr-icon.mjs +6 -6
- package/fesm2022/ngwr-image-cropper.mjs +8 -4
- package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
- package/fesm2022/ngwr-input-number.mjs +27 -4
- package/fesm2022/ngwr-input-number.mjs.map +1 -1
- package/fesm2022/ngwr-input-otp.mjs +5 -5
- package/fesm2022/ngwr-input-otp.mjs.map +1 -1
- package/fesm2022/ngwr-input.mjs +25 -17
- 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-layout.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox.mjs +8 -8
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +9 -9
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-load-state.mjs +16 -15
- package/fesm2022/ngwr-load-state.mjs.map +1 -1
- package/fesm2022/ngwr-loading-bar-router.mjs.map +1 -1
- package/fesm2022/ngwr-loading-bar.mjs +8 -8
- package/fesm2022/ngwr-loading-bar.mjs.map +1 -1
- package/fesm2022/ngwr-mention.mjs +14 -6
- package/fesm2022/ngwr-mention.mjs.map +1 -1
- package/fesm2022/ngwr-meta.mjs +15 -12
- package/fesm2022/ngwr-meta.mjs.map +1 -1
- package/fesm2022/ngwr-overlay.mjs +9 -9
- package/fesm2022/ngwr-page-header.mjs +24 -3
- package/fesm2022/ngwr-page-header.mjs.map +1 -1
- package/fesm2022/ngwr-pagination-testing.mjs +3 -0
- package/fesm2022/ngwr-pagination-testing.mjs.map +1 -1
- package/fesm2022/ngwr-pagination.mjs +34 -5
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +35 -28
- package/fesm2022/ngwr-pipes.mjs.map +1 -1
- package/fesm2022/ngwr-platform.mjs +9 -9
- package/fesm2022/ngwr-popconfirm.mjs +9 -7
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +162 -18
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-progress.mjs +75 -10
- package/fesm2022/ngwr-progress.mjs.map +1 -1
- package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
- package/fesm2022/ngwr-qr.mjs +9 -5
- package/fesm2022/ngwr-qr.mjs.map +1 -1
- package/fesm2022/ngwr-radio.mjs +77 -11
- package/fesm2022/ngwr-radio.mjs.map +1 -1
- package/fesm2022/ngwr-rating.mjs +3 -3
- package/fesm2022/ngwr-resizable.mjs +3 -3
- package/fesm2022/ngwr-result.mjs +12 -12
- package/fesm2022/ngwr-schema-form.mjs +20 -7
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-scroll.mjs +233 -10
- package/fesm2022/ngwr-scroll.mjs.map +1 -1
- package/fesm2022/ngwr-segmented.mjs +23 -3
- package/fesm2022/ngwr-segmented.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +106 -26
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-sidebar-testing.mjs +17 -1
- package/fesm2022/ngwr-sidebar-testing.mjs.map +1 -1
- package/fesm2022/ngwr-sidebar.mjs +66 -11
- package/fesm2022/ngwr-sidebar.mjs.map +1 -1
- package/fesm2022/ngwr-skeleton.mjs +3 -3
- package/fesm2022/ngwr-slider.mjs +3 -3
- package/fesm2022/ngwr-sortable-list.mjs +27 -15
- 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 +6 -6
- package/fesm2022/ngwr-storage.mjs +4 -4
- package/fesm2022/ngwr-storage.mjs.map +1 -1
- package/fesm2022/ngwr-switch.mjs +5 -5
- package/fesm2022/ngwr-switch.mjs.map +1 -1
- package/fesm2022/ngwr-table-router.mjs +89 -0
- package/fesm2022/ngwr-table-router.mjs.map +1 -0
- package/fesm2022/ngwr-table-testing.mjs +5 -0
- package/fesm2022/ngwr-table-testing.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +307 -47
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tabs-router.mjs +9 -5
- package/fesm2022/ngwr-tabs-router.mjs.map +1 -1
- package/fesm2022/ngwr-tabs-testing.mjs +8 -1
- package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tabs.mjs +60 -10
- package/fesm2022/ngwr-tabs.mjs.map +1 -1
- package/fesm2022/ngwr-textarea.mjs +5 -5
- 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 +43 -15
- package/fesm2022/ngwr-toast.mjs.map +1 -1
- package/fesm2022/ngwr-toolbar.mjs +3 -3
- package/fesm2022/ngwr-tour.mjs +9 -8
- package/fesm2022/ngwr-tour.mjs.map +1 -1
- package/fesm2022/ngwr-transfer.mjs +4 -3
- package/fesm2022/ngwr-transfer.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +3 -3
- package/fesm2022/ngwr-typography.mjs +23 -3
- package/fesm2022/ngwr-typography.mjs.map +1 -1
- package/fesm2022/ngwr-utils-router.mjs +3 -3
- package/fesm2022/ngwr-utils-router.mjs.map +1 -1
- package/fesm2022/ngwr-utils.mjs +74 -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-virtual-scroll.mjs +3 -3
- package/fesm2022/ngwr-window.mjs +18 -13
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/file-upload/styles/_index.scss +16 -0
- package/form/styles/_index.scss +37 -0
- package/graph/styles/_index.scss +49 -9
- package/i18n/ar.json +19 -2
- package/i18n/cs.json +19 -2
- package/i18n/de.json +19 -2
- package/i18n/en.json +19 -2
- package/i18n/es.json +19 -2
- package/i18n/fr.json +19 -2
- package/i18n/he.json +19 -2
- package/i18n/hi.json +19 -2
- package/i18n/id.json +19 -2
- package/i18n/it.json +19 -2
- package/i18n/ja.json +19 -2
- package/i18n/kk.json +567 -0
- package/i18n/ko.json +19 -2
- package/i18n/nl.json +19 -2
- package/i18n/pl.json +19 -2
- package/i18n/pt.json +19 -2
- package/i18n/ru.json +19 -2
- package/i18n/sv.json +19 -2
- package/i18n/tr.json +19 -2
- package/i18n/uk.json +19 -2
- package/i18n/vi.json +19 -2
- package/i18n/zh-TW.json +19 -2
- package/i18n/zh.json +19 -2
- 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 +37 -26
- package/llms.txt +4 -1
- package/loading-bar/styles/_rules.scss +6 -0
- package/package.json +16 -8
- package/page-header/styles/_index.scss +18 -0
- package/pagination/styles/_index.scss +6 -0
- package/popover/styles/_index.scss +9 -0
- package/progress/styles/_index.scss +64 -0
- package/schematics/use/symbol-map.json +7 -0
- package/segmented/styles/_index.scss +7 -0
- package/select/styles/_index.scss +7 -0
- package/sidebar/styles/_index.scss +64 -6
- package/skills/ngwr/SKILL.md +7 -6
- package/skills/ngwr/references/catalog.md +7 -5
- 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 +168 -30
- package/tabs/styles/_index.scss +9 -0
- package/theme/_index.scss +12 -1
- package/theme/styles/_colors.scss +11 -0
- package/theme/styles/_contrast.scss +6 -0
- package/theme/styles/_focus.scss +3 -1
- 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 +9 -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-avatar.d.ts +39 -0
- package/types/ngwr-breadcrumbs.d.ts +25 -0
- package/types/ngwr-button.d.ts +35 -3
- package/types/ngwr-carousel.d.ts +2 -0
- package/types/ngwr-cascader.d.ts +7 -0
- package/types/ngwr-charts-core.d.ts +16 -0
- package/types/ngwr-charts-meter-group.d.ts +2 -0
- package/types/ngwr-checkbox.d.ts +1 -0
- package/types/ngwr-color-picker.d.ts +1 -0
- package/types/ngwr-context-menu.d.ts +1 -1
- package/types/ngwr-date-picker-testing.d.ts +22 -0
- package/types/ngwr-date-picker.d.ts +97 -17
- package/types/ngwr-date.d.ts +51 -0
- package/types/ngwr-dialog.d.ts +39 -8
- package/types/ngwr-directives.d.ts +57 -4
- package/types/ngwr-drawer.d.ts +1 -1
- package/types/ngwr-dropdown-testing.d.ts +8 -1
- package/types/ngwr-dropdown.d.ts +30 -1
- package/types/ngwr-event-calendar.d.ts +4 -0
- package/types/ngwr-file-upload-testing.d.ts +10 -0
- package/types/ngwr-file-upload.d.ts +55 -1
- package/types/ngwr-form.d.ts +87 -1
- package/types/ngwr-graph-testing.d.ts +28 -1
- package/types/ngwr-graph.d.ts +53 -3
- package/types/ngwr-i18n-kk.d.ts +3 -0
- package/types/ngwr-i18n.d.ts +65 -5
- package/types/ngwr-image-cropper.d.ts +6 -0
- 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-loading-bar-router.d.ts +6 -0
- package/types/ngwr-page-header.d.ts +23 -1
- package/types/ngwr-pagination-testing.d.ts +8 -0
- package/types/ngwr-pagination.d.ts +16 -0
- package/types/ngwr-popconfirm.d.ts +1 -1
- package/types/ngwr-popover.d.ts +67 -4
- package/types/ngwr-progress.d.ts +63 -1
- package/types/ngwr-radio.d.ts +47 -5
- package/types/ngwr-scroll.d.ts +86 -0
- package/types/ngwr-segmented.d.ts +7 -0
- package/types/ngwr-select.d.ts +88 -25
- package/types/ngwr-sidebar-testing.d.ts +21 -7
- package/types/ngwr-sidebar.d.ts +66 -4
- package/types/ngwr-sortable-list.d.ts +20 -7
- package/types/ngwr-table-router.d.ts +49 -0
- package/types/ngwr-table-testing.d.ts +7 -0
- package/types/ngwr-table.d.ts +241 -10
- package/types/ngwr-tabs-router.d.ts +7 -1
- package/types/ngwr-tabs-testing.d.ts +5 -1
- package/types/ngwr-tabs.d.ts +34 -1
- package/types/ngwr-toast.d.ts +11 -0
- package/types/ngwr-tour.d.ts +0 -1
- package/types/ngwr-typography.d.ts +7 -0
- package/types/ngwr-utils-router.d.ts +6 -0
- package/types/ngwr-utils.d.ts +69 -2
- package/types/ngwr-validators.d.ts +49 -1
- package/types/ngwr-version.d.ts +1 -1
- package/typography/styles/_index.scss +4 -0
- package/window/styles/_index.scss +1 -9
|
@@ -31,6 +31,25 @@ interface WrFileUploadStatus {
|
|
|
31
31
|
}
|
|
32
32
|
/** Per-file upload state, keyed by the `File` objects in `value`. */
|
|
33
33
|
type WrFileUploadStatusMap = ReadonlyMap<File, WrFileUploadStatus>;
|
|
34
|
+
/**
|
|
35
|
+
* A file that already lives on a server, listed through `[stored]`. It is not a
|
|
36
|
+
* `File` and never enters `value`: the app owns it, and says what happened to it
|
|
37
|
+
* through `(storedRemove)`.
|
|
38
|
+
*/
|
|
39
|
+
interface WrStoredFile {
|
|
40
|
+
/** The name shown in the row. */
|
|
41
|
+
readonly name: string;
|
|
42
|
+
/** Size in bytes. Left out, the row shows no size. */
|
|
43
|
+
readonly size?: number | null;
|
|
44
|
+
/** Where the file can be opened. Left out, the name is plain text. Opens in a new tab. */
|
|
45
|
+
readonly url?: string | null;
|
|
46
|
+
}
|
|
47
|
+
/** One row of a stored file, listed before the picked ones. */
|
|
48
|
+
interface StoredRow {
|
|
49
|
+
readonly stored: WrStoredFile;
|
|
50
|
+
readonly url: string | null;
|
|
51
|
+
readonly size: number | null;
|
|
52
|
+
}
|
|
34
53
|
/** One list row: the file, what `[status]` says about it and its thumbnail. */
|
|
35
54
|
interface FileRow {
|
|
36
55
|
readonly file: File;
|
|
@@ -118,6 +137,21 @@ export declare class WrFileUpload implements FormValueControl<File | readonly Fi
|
|
|
118
137
|
* @default null
|
|
119
138
|
*/
|
|
120
139
|
readonly status: import("@angular/core").InputSignal<WrFileUploadStatusMap | null>;
|
|
140
|
+
/**
|
|
141
|
+
* Files that already live on a server, listed before the picked ones with the
|
|
142
|
+
* same look: name, size when known, a link when `url` is set, and a remove
|
|
143
|
+
* button. They are not part of `value`, so a form value stays the `File`s the
|
|
144
|
+
* user picked. Removing one does not change this input: `(storedRemove)` emits
|
|
145
|
+
* the descriptor and the app drops it from the list it passes in.
|
|
146
|
+
*
|
|
147
|
+
* In multiple mode they count toward `maxFiles`. In single mode a pick does not
|
|
148
|
+
* replace them: the app clears its own list when it takes the new file. A
|
|
149
|
+
* `required` rule on the control sees `value` only, so an edit form whose file
|
|
150
|
+
* is stored validates against its own list instead.
|
|
151
|
+
*
|
|
152
|
+
* @default []
|
|
153
|
+
*/
|
|
154
|
+
readonly stored: import("@angular/core").InputSignal<readonly WrStoredFile[]>;
|
|
121
155
|
/**
|
|
122
156
|
* Show a thumbnail beside each image file. The thumbnail is an object URL,
|
|
123
157
|
* revoked when its file leaves the list or the component is destroyed. Browser
|
|
@@ -181,6 +215,8 @@ export declare class WrFileUpload implements FormValueControl<File | readonly Fi
|
|
|
181
215
|
private readonly removeText;
|
|
182
216
|
/** The remove button of one row, named after its file. */
|
|
183
217
|
protected removeName(name: string): string;
|
|
218
|
+
/** A link that leaves the page says so: `{{name}} (opens in a new tab)`. */
|
|
219
|
+
protected readonly openText: (params?: import("ngwr/i18n").WrI18nParams) => string;
|
|
184
220
|
protected readonly resolvedRetry: import("@angular/core").Signal<string>;
|
|
185
221
|
protected readonly resolvedUploading: import("@angular/core").Signal<string>;
|
|
186
222
|
protected readonly resolvedUploaded: import("@angular/core").Signal<string>;
|
|
@@ -196,6 +232,8 @@ export declare class WrFileUpload implements FormValueControl<File | readonly Fi
|
|
|
196
232
|
readonly value: import("@angular/core").ModelSignal<File | readonly File[] | null>;
|
|
197
233
|
/** Emitted when files are rejected for type / size / count reasons. */
|
|
198
234
|
readonly rejected: import("@angular/core").OutputEmitterRef<readonly WrFileUploadRejection[]>;
|
|
235
|
+
/** Emitted with the descriptor when the remove button of a stored row is pressed. */
|
|
236
|
+
readonly storedRemove: import("@angular/core").OutputEmitterRef<WrStoredFile>;
|
|
199
237
|
/** Emitted with the file when the retry button of a failed row is pressed. */
|
|
200
238
|
readonly retry: import("@angular/core").OutputEmitterRef<File>;
|
|
201
239
|
/** Emitted on commit so a bound field can mark itself touched. */
|
|
@@ -220,6 +258,7 @@ export declare class WrFileUpload implements FormValueControl<File | readonly Fi
|
|
|
220
258
|
/** The object URL of each previewed image file. */
|
|
221
259
|
private readonly previewUrls;
|
|
222
260
|
protected readonly rows: import("@angular/core").Signal<readonly FileRow[]>;
|
|
261
|
+
protected readonly storedRows: import("@angular/core").Signal<readonly StoredRow[]>;
|
|
223
262
|
/** `aria-busy` on the list: at least one file is uploading. */
|
|
224
263
|
protected readonly busy: import("@angular/core").Signal<boolean>;
|
|
225
264
|
/** What the one live region says: the states that changed in the last `[status]` write. */
|
|
@@ -276,6 +315,15 @@ export declare class WrFileUpload implements FormValueControl<File | readonly Fi
|
|
|
276
315
|
protected onDrop(event: DragEvent): void;
|
|
277
316
|
protected onPaste(event: ClipboardEvent): void;
|
|
278
317
|
protected onRetry(file: File, index: number): void;
|
|
318
|
+
protected removeStored(row: StoredRow, index: number): void;
|
|
319
|
+
/** The stored row whose remove button held focus when it was pressed, until the row leaves. */
|
|
320
|
+
private focusAfterStored;
|
|
321
|
+
/**
|
|
322
|
+
* Put focus on the remove button at the index `at` gives after the render,
|
|
323
|
+
* else the one before it, else the zone. Read late: a handler may change
|
|
324
|
+
* `stored` in the same cycle, which moves every picked row.
|
|
325
|
+
*/
|
|
326
|
+
private focusRemoveNear;
|
|
279
327
|
protected removeAt(index: number): void;
|
|
280
328
|
private acceptFiles;
|
|
281
329
|
/**
|
|
@@ -336,6 +384,11 @@ export declare class WrFileUpload implements FormValueControl<File | readonly Fi
|
|
|
336
384
|
"required": false;
|
|
337
385
|
"isSignal": true;
|
|
338
386
|
};
|
|
387
|
+
"stored": {
|
|
388
|
+
"alias": "stored";
|
|
389
|
+
"required": false;
|
|
390
|
+
"isSignal": true;
|
|
391
|
+
};
|
|
339
392
|
"previews": {
|
|
340
393
|
"alias": "previews";
|
|
341
394
|
"required": false;
|
|
@@ -399,8 +452,9 @@ export declare class WrFileUpload implements FormValueControl<File | readonly Fi
|
|
|
399
452
|
}, {
|
|
400
453
|
"value": "valueChange";
|
|
401
454
|
"rejected": "rejected";
|
|
455
|
+
"storedRemove": "storedRemove";
|
|
402
456
|
"retry": "retry";
|
|
403
457
|
"touch": "touch";
|
|
404
458
|
}, never, never, true, never>;
|
|
405
459
|
}
|
|
406
|
-
export type { WrFileUploadRejection, WrFileUploadRejectionReason, WrFileUploadSize, WrFileUploadState, WrFileUploadStatus, WrFileUploadStatusMap };
|
|
460
|
+
export type { WrFileUploadRejection, WrFileUploadRejectionReason, WrFileUploadSize, WrFileUploadState, WrFileUploadStatus, WrFileUploadStatusMap, WrStoredFile };
|
package/types/ngwr-form.d.ts
CHANGED
|
@@ -1,6 +1,84 @@
|
|
|
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
|
+
private readonly form;
|
|
64
|
+
constructor();
|
|
65
|
+
/**
|
|
66
|
+
* Columns to span. Empty or `'full'` takes the whole row. A number above
|
|
67
|
+
* the form's `columns` spans them all.
|
|
68
|
+
*
|
|
69
|
+
* @default 'full'
|
|
70
|
+
*/
|
|
71
|
+
readonly span: import("@angular/core").InputSignalWithTransform<number | "full", unknown>;
|
|
72
|
+
protected readonly track: import("@angular/core").Signal<string>;
|
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrFormSpan, never>;
|
|
74
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WrFormSpan, "[wrFormSpan]", never, {
|
|
75
|
+
"span": {
|
|
76
|
+
"alias": "wrFormSpan";
|
|
77
|
+
"required": false;
|
|
78
|
+
"isSignal": true;
|
|
79
|
+
};
|
|
80
|
+
}, {}, never, never, true, never>;
|
|
81
|
+
}
|
|
4
82
|
/**
|
|
5
83
|
* Wraps a label + control + error message into a single field row.
|
|
6
84
|
*
|
|
@@ -89,6 +167,12 @@ interface WrFormFieldContext {
|
|
|
89
167
|
* field without it simply describes nothing but its errors.
|
|
90
168
|
*/
|
|
91
169
|
readonly hintId?: Signal<string | null>;
|
|
170
|
+
/**
|
|
171
|
+
* Whether the field is marked `required`. Read through `useFormFieldAria()` as
|
|
172
|
+
* `aria-required`. Optional so an app that provides its own `WR_FORM_FIELD`
|
|
173
|
+
* keeps compiling.
|
|
174
|
+
*/
|
|
175
|
+
readonly required?: Signal<boolean>;
|
|
92
176
|
}
|
|
93
177
|
/** Present only inside a `<wr-form-field>`; inject with `{ optional: true }`. */
|
|
94
178
|
export declare const WR_FORM_FIELD: InjectionToken<WrFormFieldContext>;
|
|
@@ -172,7 +256,7 @@ export declare class WrFormField implements WrFormFieldContext, AfterContentChec
|
|
|
172
256
|
readonly label: import("@angular/core").InputSignal<string>;
|
|
173
257
|
/** Hint text shown below the control. Hidden when an error is visible. */
|
|
174
258
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
175
|
-
/** Show a `*` next to the label. @default false */
|
|
259
|
+
/** Show a `*` next to the label and set `aria-required` on the projected control. @default false */
|
|
176
260
|
readonly required: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
177
261
|
/**
|
|
178
262
|
* Show an "optional" marker next to the label — the word comes from
|
|
@@ -361,6 +445,8 @@ interface WrFormFieldAria {
|
|
|
361
445
|
readonly describedBy: Signal<string | null>;
|
|
362
446
|
/** `'true'` while the field has a validation error, `null` otherwise. */
|
|
363
447
|
readonly ariaInvalid: Signal<'true' | null>;
|
|
448
|
+
/** `'true'` while the field is `required`, `null` otherwise. */
|
|
449
|
+
readonly ariaRequired: Signal<'true' | null>;
|
|
364
450
|
/**
|
|
365
451
|
* Id of the field's `<label>`, for a control `<label for>` cannot reach.
|
|
366
452
|
*
|
|
@@ -83,10 +83,30 @@ export declare class WrGraphNodeHarness extends ComponentHarness {
|
|
|
83
83
|
* failure from a node that has nothing to say.
|
|
84
84
|
*/
|
|
85
85
|
getRelationText(): Promise<string | null>;
|
|
86
|
+
/**
|
|
87
|
+
* Whether the node is the selected one, from its button's `aria-pressed`. `false`
|
|
88
|
+
* on a graph that is not `selectable`, where no node is ever selected.
|
|
89
|
+
*/
|
|
90
|
+
isSelected(): Promise<boolean>;
|
|
91
|
+
/**
|
|
92
|
+
* Whether the node is lit as a neighbour of the selected one: an edge joins the
|
|
93
|
+
* two. `false` for the selected node itself, and while nothing is selected.
|
|
94
|
+
*/
|
|
95
|
+
isLinked(): Promise<boolean>;
|
|
96
|
+
/**
|
|
97
|
+
* Whether the node is dimmed: another node is selected and no edge joins the two.
|
|
98
|
+
* `false` while nothing is selected.
|
|
99
|
+
*/
|
|
100
|
+
isDimmed(): Promise<boolean>;
|
|
101
|
+
/** Selects the node with a click on its button; leaves a selected node as it is. Throws unless `selectable`. */
|
|
102
|
+
select(): Promise<void>;
|
|
103
|
+
/** Clears the selection if this node holds it, with a click on its button. Throws unless `selectable`. */
|
|
104
|
+
deselect(): Promise<void>;
|
|
105
|
+
private selectButton;
|
|
86
106
|
}
|
|
87
107
|
/**
|
|
88
108
|
* Test harness for `<wr-graph>` — blocks joined by parent-child lines, laid out in
|
|
89
|
-
* layers
|
|
109
|
+
* layers.
|
|
90
110
|
*
|
|
91
111
|
* The graph is read the way assistive technology reads it: the viewport's name, the
|
|
92
112
|
* nodes as a list in READING order (layer, then inline position — which is DOM order),
|
|
@@ -171,6 +191,13 @@ export declare class WrGraphHarness extends ComponentHarness {
|
|
|
171
191
|
from: string;
|
|
172
192
|
to: string;
|
|
173
193
|
}[]>;
|
|
194
|
+
/** Whether a node can be selected, from the host's `wr-graph--selectable`. */
|
|
195
|
+
isSelectable(): Promise<boolean>;
|
|
196
|
+
/**
|
|
197
|
+
* The selected node, or `null` while none is — which is also the answer on a graph
|
|
198
|
+
* that is not `selectable`, and for a `selected` id no drawn node has.
|
|
199
|
+
*/
|
|
200
|
+
getSelectedNode(): Promise<WrGraphNodeHarness | null>;
|
|
174
201
|
/** Whether the graph zooms and pans, from the host's `wr-graph--zoomable`. */
|
|
175
202
|
isZoomable(): Promise<boolean>;
|
|
176
203
|
/** Clicks the zoom-in button: one step, around the middle of the viewport. Throws unless `zoomable`. */
|
package/types/ngwr-graph.d.ts
CHANGED
|
@@ -179,9 +179,9 @@ interface GraphView<TData> {
|
|
|
179
179
|
}
|
|
180
180
|
/**
|
|
181
181
|
* A graph of blocks joined by parent-child links, laid out in layers from top to
|
|
182
|
-
* bottom.
|
|
183
|
-
*
|
|
184
|
-
*
|
|
182
|
+
* bottom. The graph scrolls inside its own viewport rather than the page. With
|
|
183
|
+
* `zoomable` the viewport zooms and pans instead of scrolling. With `selectable`
|
|
184
|
+
* a node can be picked, which lights up its links and dims the rest.
|
|
185
185
|
*
|
|
186
186
|
* The layout runs in a `computed` with no DOM and no measuring, so the sizes are
|
|
187
187
|
* the consumer's: `nodeWidth` / `nodeHeight` for every node, or `width` /
|
|
@@ -272,6 +272,26 @@ export declare class WrGraph<TData = unknown> {
|
|
|
272
272
|
* @default 4
|
|
273
273
|
*/
|
|
274
274
|
readonly maxZoom: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
275
|
+
/**
|
|
276
|
+
* Lets a node be selected: each node becomes a button, pressed while it is
|
|
277
|
+
* the selected one. A click, `Enter` or `Space` selects it, the same again or
|
|
278
|
+
* `Escape` clears the selection. While a node is selected, its edges and the
|
|
279
|
+
* nodes at their other ends stay lit and everything else is dimmed.
|
|
280
|
+
*
|
|
281
|
+
* A node template should hold no control of its own while this is on: the
|
|
282
|
+
* whole node is one button.
|
|
283
|
+
*
|
|
284
|
+
* @default false
|
|
285
|
+
*/
|
|
286
|
+
readonly selectable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
287
|
+
/**
|
|
288
|
+
* The id of the selected node, or `null`. Two-way: it follows every pick, and
|
|
289
|
+
* a value written to it selects that node. An id no drawn node has highlights
|
|
290
|
+
* nothing. Ignored unless `selectable`.
|
|
291
|
+
*
|
|
292
|
+
* @default null
|
|
293
|
+
*/
|
|
294
|
+
readonly selected: import("@angular/core").ModelSignal<string | null>;
|
|
275
295
|
/** Accessible name of the zoom-in button. Falls back to `graph.zoomIn`, then `'Zoom in'`. */
|
|
276
296
|
readonly zoomInLabel: import("@angular/core").InputSignal<string | null>;
|
|
277
297
|
/** Accessible name of the zoom-out button. Falls back to `graph.zoomOut`, then `'Zoom out'`. */
|
|
@@ -295,6 +315,9 @@ export declare class WrGraph<TData = unknown> {
|
|
|
295
315
|
/** `url(#…)` for every edge's `marker-end`. */
|
|
296
316
|
protected readonly markerId: string;
|
|
297
317
|
protected readonly markerUrl: string;
|
|
318
|
+
/** The arrowhead of a highlighted edge: a marker takes no colour from the path that uses it. */
|
|
319
|
+
protected readonly linkedMarkerId: string;
|
|
320
|
+
protected readonly linkedMarkerUrl: string;
|
|
298
321
|
protected readonly arrowSize = 6;
|
|
299
322
|
private readonly engine;
|
|
300
323
|
private readonly dir;
|
|
@@ -362,6 +385,8 @@ export declare class WrGraph<TData = unknown> {
|
|
|
362
385
|
private frameId;
|
|
363
386
|
private readonly pointers;
|
|
364
387
|
private dragging;
|
|
388
|
+
/** The last press became a drag, so the click that may follow it selects nothing. */
|
|
389
|
+
private dragged;
|
|
365
390
|
/** The zoom a Safari pinch started from, while one is under way. */
|
|
366
391
|
private pinchFrom;
|
|
367
392
|
/**
|
|
@@ -370,6 +395,15 @@ export declare class WrGraph<TData = unknown> {
|
|
|
370
395
|
* linked by several edges is named once, and names follow reading order.
|
|
371
396
|
*/
|
|
372
397
|
protected readonly relations: Signal<Map<string, string>>;
|
|
398
|
+
/**
|
|
399
|
+
* What the selection lights up: the selected node, the nodes at the other end
|
|
400
|
+
* of its edges, and those edges. `null` while nothing drawn is selected, and
|
|
401
|
+
* then no node or edge carries a highlight class at all.
|
|
402
|
+
*/
|
|
403
|
+
protected readonly highlight: Signal<{
|
|
404
|
+
nodes: Map<string, "selected" | "linked">;
|
|
405
|
+
edges: Set<string>;
|
|
406
|
+
} | null>;
|
|
373
407
|
constructor();
|
|
374
408
|
/**
|
|
375
409
|
* Shows the whole drawing, centred, at the largest zoom that fits and never
|
|
@@ -382,6 +416,11 @@ export declare class WrGraph<TData = unknown> {
|
|
|
382
416
|
* view, so a later layout does not fit it. Does nothing unless `zoomable`.
|
|
383
417
|
*/
|
|
384
418
|
resetView(): void;
|
|
419
|
+
protected onNodeClick(event: Event, id: string): void;
|
|
420
|
+
protected onNodeKeydown(event: KeyboardEvent, id: string): void;
|
|
421
|
+
/** Stopped only when it cleared something, so a dialog around the graph still closes on the next press. */
|
|
422
|
+
protected onEscape(event: Event): void;
|
|
423
|
+
private toggle;
|
|
385
424
|
protected zoomIn(): void;
|
|
386
425
|
protected zoomOut(): void;
|
|
387
426
|
protected fitView(animate: boolean): void;
|
|
@@ -471,6 +510,16 @@ export declare class WrGraph<TData = unknown> {
|
|
|
471
510
|
"required": false;
|
|
472
511
|
"isSignal": true;
|
|
473
512
|
};
|
|
513
|
+
"selectable": {
|
|
514
|
+
"alias": "selectable";
|
|
515
|
+
"required": false;
|
|
516
|
+
"isSignal": true;
|
|
517
|
+
};
|
|
518
|
+
"selected": {
|
|
519
|
+
"alias": "selected";
|
|
520
|
+
"required": false;
|
|
521
|
+
"isSignal": true;
|
|
522
|
+
};
|
|
474
523
|
"zoomInLabel": {
|
|
475
524
|
"alias": "zoomInLabel";
|
|
476
525
|
"required": false;
|
|
@@ -488,6 +537,7 @@ export declare class WrGraph<TData = unknown> {
|
|
|
488
537
|
};
|
|
489
538
|
}, {
|
|
490
539
|
"zoom": "zoomChange";
|
|
540
|
+
"selected": "selectedChange";
|
|
491
541
|
"layoutError": "layoutError";
|
|
492
542
|
}, ["nodeTemplate"], never, true, never>;
|
|
493
543
|
}
|
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 };
|
|
@@ -305,6 +305,12 @@ export declare class WrImageCropper {
|
|
|
305
305
|
* `'loaded'`, since there is no image to draw.
|
|
306
306
|
*/
|
|
307
307
|
toBlob(type?: WrImageOutputType, quality?: number): Promise<Blob>;
|
|
308
|
+
/**
|
|
309
|
+
* Render the current crop as a `File`. The extension of `name` is replaced by that of
|
|
310
|
+
* the type the browser actually encoded, which can differ from `type`: a browser falls
|
|
311
|
+
* back to PNG for a type it cannot encode. Rejects like `toBlob()`.
|
|
312
|
+
*/
|
|
313
|
+
toFile(name: string, type?: WrImageOutputType, quality?: number): Promise<File>;
|
|
308
314
|
/**
|
|
309
315
|
* Render the current crop as a data URL. Throws while `status()` is anything but
|
|
310
316
|
* `'loaded'`, since there is no image to draw.
|
|
@@ -104,6 +104,8 @@ export declare class WrInputNumber<M extends WrInputNumberMode = 'number'> imple
|
|
|
104
104
|
* `--wr-control-*` contract. @default 'md'
|
|
105
105
|
*/
|
|
106
106
|
readonly size: import("@angular/core").InputSignal<WrInputSize>;
|
|
107
|
+
/** Stretch the field to fill its parent's width. @default false */
|
|
108
|
+
readonly block: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
107
109
|
/** Pill-shaped corners — forwarded to the group AND the field. @default false */
|
|
108
110
|
readonly rounded: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
109
111
|
/** Optional prefix label (e.g. `"$"`). */
|
|
@@ -169,6 +171,7 @@ export declare class WrInputNumber<M extends WrInputNumberMode = 'number'> imple
|
|
|
169
171
|
private readonly group;
|
|
170
172
|
/** Text currently in the input (may be partial / invalid mid-type). */
|
|
171
173
|
protected readonly text: import("@angular/core").WritableSignal<string>;
|
|
174
|
+
private lastCommitted;
|
|
172
175
|
/** Whether the input is focused. While true, the input handlers own `text`. */
|
|
173
176
|
protected readonly focused: import("@angular/core").WritableSignal<boolean>;
|
|
174
177
|
private readonly field;
|
|
@@ -282,6 +285,11 @@ export declare class WrInputNumber<M extends WrInputNumberMode = 'number'> imple
|
|
|
282
285
|
"required": false;
|
|
283
286
|
"isSignal": true;
|
|
284
287
|
};
|
|
288
|
+
"block": {
|
|
289
|
+
"alias": "block";
|
|
290
|
+
"required": false;
|
|
291
|
+
"isSignal": true;
|
|
292
|
+
};
|
|
285
293
|
"rounded": {
|
|
286
294
|
"alias": "rounded";
|
|
287
295
|
"required": false;
|
package/types/ngwr-input.d.ts
CHANGED
|
@@ -65,6 +65,13 @@ export declare class WrInput {
|
|
|
65
65
|
private readonly fieldAria;
|
|
66
66
|
protected readonly describedBy: import("@angular/core").Signal<string | null>;
|
|
67
67
|
protected readonly ariaInvalid: import("@angular/core").Signal<"true" | null>;
|
|
68
|
+
/** The element's own `aria-required`, read once: a hand-written one wins over the field's. */
|
|
69
|
+
private readonly ownAriaRequired;
|
|
70
|
+
/**
|
|
71
|
+
* Native `required` (including the one Signal Forms binds) already announces it,
|
|
72
|
+
* so the field's `required` only fills in when neither is there.
|
|
73
|
+
*/
|
|
74
|
+
protected ariaRequired(): string | null;
|
|
68
75
|
/**
|
|
69
76
|
* Control size. @default 'md'
|
|
70
77
|
*
|
package/types/ngwr-layout.d.ts
CHANGED
|
@@ -93,7 +93,7 @@ export declare class WrLayoutHeader {
|
|
|
93
93
|
}
|
|
94
94
|
/**
|
|
95
95
|
* Main content area of a {@link WrLayout}. Flex-grows to fill
|
|
96
|
-
* remaining space.
|
|
96
|
+
* remaining space. Its padding is `--wr-layout-content-padding`, one length.
|
|
97
97
|
*/
|
|
98
98
|
export declare class WrLayoutContent {
|
|
99
99
|
constructor();
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
5
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
6
|
+
*/
|
|
1
7
|
import { EnvironmentProviders } from "@angular/core";
|
|
2
8
|
/**
|
|
3
9
|
* Drive {@link WrLoadingBar} from router navigations: `NavigationStart` takes a
|
|
@@ -30,6 +30,16 @@ import * as i0 from "@angular/core";
|
|
|
30
30
|
* header's height plus `--wr-page-header-sticky-top`, and focus, anchors and
|
|
31
31
|
* `scrollIntoView()` all stop short of it.
|
|
32
32
|
*
|
|
33
|
+
* The filters row is inside the header's own box, so under `sticky` it stays in
|
|
34
|
+
* view with the title: it is the place for a view switch or tabs as well.
|
|
35
|
+
*
|
|
36
|
+
* `bleed` carries the header over the padding of the box it tops, to the top and
|
|
37
|
+
* both side edges, and pads it by as much, so a sticky header's background and
|
|
38
|
+
* border run edge to edge. The amount is `--wr-page-header-bleed`, which reads
|
|
39
|
+
* `--wr-layout-content-padding`: inside `wr-layout-content` it follows the
|
|
40
|
+
* content's padding, and anywhere else it is zero until set. Make the header
|
|
41
|
+
* the first thing in that box.
|
|
42
|
+
*
|
|
33
43
|
* A bare `<div>` wrapper in the actions or the filters slot, one with no `class`
|
|
34
44
|
* and no `style`, is laid out as a wrapping row with the region's own gap, so
|
|
35
45
|
* the controls inside it are spaced exactly like controls projected one by one.
|
|
@@ -40,7 +50,7 @@ import * as i0 from "@angular/core";
|
|
|
40
50
|
*
|
|
41
51
|
* @example
|
|
42
52
|
* ```html
|
|
43
|
-
* <wr-page-header title="Settings" subtitle="Manage your workspace" compact sticky>
|
|
53
|
+
* <wr-page-header title="Settings" subtitle="Manage your workspace" compact sticky bleed>
|
|
44
54
|
* <nav wrPageHeaderBreadcrumbs>…</nav>
|
|
45
55
|
* <div wrPageHeaderActions>
|
|
46
56
|
* <button wr-btn>Invite</button>
|
|
@@ -84,6 +94,13 @@ export declare class WrPageHeader {
|
|
|
84
94
|
* @default false
|
|
85
95
|
*/
|
|
86
96
|
readonly sticky: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
97
|
+
/**
|
|
98
|
+
* Run over the padding of the box the header tops, to the top and both side
|
|
99
|
+
* edges, by `--wr-page-header-bleed` (the content padding inside
|
|
100
|
+
* `wr-layout-content`, zero elsewhere until set).
|
|
101
|
+
* @default false
|
|
102
|
+
*/
|
|
103
|
+
readonly bleed: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
87
104
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrPageHeader, never>;
|
|
88
105
|
static ɵcmp: i0.ɵɵComponentDeclaration<WrPageHeader, "wr-page-header", never, {
|
|
89
106
|
"title": {
|
|
@@ -111,5 +128,10 @@ export declare class WrPageHeader {
|
|
|
111
128
|
"required": false;
|
|
112
129
|
"isSignal": true;
|
|
113
130
|
};
|
|
131
|
+
"bleed": {
|
|
132
|
+
"alias": "bleed";
|
|
133
|
+
"required": false;
|
|
134
|
+
"isSignal": true;
|
|
135
|
+
};
|
|
114
136
|
}, {}, never, ["[wrPageHeaderBreadcrumbs]", "[wrPageHeaderActions]", "[wrPageHeaderExtra]", "[wrPageHeaderFilters]"], true, never>;
|
|
115
137
|
}
|
|
@@ -128,6 +128,14 @@ export declare class WrPaginationHarness extends ComponentHarness {
|
|
|
128
128
|
* {@link isPreviousDisabled} and {@link isNextDisabled} read.
|
|
129
129
|
*/
|
|
130
130
|
isDisabled(): Promise<boolean>;
|
|
131
|
+
/**
|
|
132
|
+
* Whether `hideOnSinglePage` has hidden the pager: everything fits on one page,
|
|
133
|
+
* so it renders nothing and its host takes no box.
|
|
134
|
+
*
|
|
135
|
+
* Ask this first on a pager that may be hidden. It has no cells, step controls,
|
|
136
|
+
* total label or size changer then, so the reads that need one throw.
|
|
137
|
+
*/
|
|
138
|
+
isHidden(): Promise<boolean>;
|
|
131
139
|
/**
|
|
132
140
|
* The whole strip in DOM order: a `number` for every page cell, and the gap
|
|
133
141
|
* marker's own text (`…`) for every ellipsis.
|
|
@@ -87,6 +87,15 @@ export declare class WrPagination {
|
|
|
87
87
|
* width, not the viewport). @default false
|
|
88
88
|
*/
|
|
89
89
|
readonly responsive: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
90
|
+
/**
|
|
91
|
+
* Render nothing while everything fits on one page, an empty list included.
|
|
92
|
+
* The host stays in the DOM with `display: none`: no layout box, no tab stop,
|
|
93
|
+
* no landmark, and the total label goes with the strip. With
|
|
94
|
+
* `showSizeChanger` it hides only when the smallest size on offer also gives
|
|
95
|
+
* one page, so choosing a large size cannot remove the way back.
|
|
96
|
+
* @default false
|
|
97
|
+
*/
|
|
98
|
+
readonly hideOnSinglePage: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
90
99
|
/** Previous-page button aria-label. Falls back to `pagination.prev`. */
|
|
91
100
|
readonly prevLabel: import("@angular/core").InputSignal<string | null>;
|
|
92
101
|
/** Next-page button aria-label. Falls back to `pagination.next`. */
|
|
@@ -127,6 +136,8 @@ export declare class WrPagination {
|
|
|
127
136
|
*/
|
|
128
137
|
private readonly usablePageSize;
|
|
129
138
|
protected readonly totalPages: import("@angular/core").Signal<number>;
|
|
139
|
+
/** Internal: whether `hideOnSinglePage` applies right now. */
|
|
140
|
+
protected readonly hidden: import("@angular/core").Signal<boolean>;
|
|
130
141
|
/**
|
|
131
142
|
* Internal: where the previous arrow goes. Clamped to the end of the valid
|
|
132
143
|
* range rather than being a plain `page() - 1`, because the page can
|
|
@@ -238,6 +249,11 @@ export declare class WrPagination {
|
|
|
238
249
|
"required": false;
|
|
239
250
|
"isSignal": true;
|
|
240
251
|
};
|
|
252
|
+
"hideOnSinglePage": {
|
|
253
|
+
"alias": "hideOnSinglePage";
|
|
254
|
+
"required": false;
|
|
255
|
+
"isSignal": true;
|
|
256
|
+
};
|
|
241
257
|
"prevLabel": {
|
|
242
258
|
"alias": "prevLabel";
|
|
243
259
|
"required": false;
|