ngwr 16.1.0 → 16.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/badge/styles/_tag.scss +73 -1
- package/calendar/styles/_index.scss +22 -0
- package/cascader/styles/_rules.scss +7 -0
- package/color-picker/styles/_index.scss +21 -0
- package/date-picker/styles/_index.scss +108 -1
- package/dropdown/styles/_index.scss +40 -10
- package/fesm2022/ngwr-affix.mjs +3 -3
- package/fesm2022/ngwr-alert-testing.mjs +70 -0
- package/fesm2022/ngwr-alert-testing.mjs.map +1 -0
- package/fesm2022/ngwr-alert.mjs +3 -3
- package/fesm2022/ngwr-anchor.mjs +17 -6
- package/fesm2022/ngwr-anchor.mjs.map +1 -1
- package/fesm2022/ngwr-animations-aurora.mjs +3 -3
- package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-click-sparks.mjs +3 -3
- package/fesm2022/ngwr-animations-confetti.mjs +3 -3
- package/fesm2022/ngwr-animations-decode.mjs +3 -3
- package/fesm2022/ngwr-animations-destruct.mjs +3 -3
- package/fesm2022/ngwr-animations-dot-grid.mjs +3 -3
- package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
- package/fesm2022/ngwr-animations-flow-lines.mjs +3 -3
- package/fesm2022/ngwr-animations-fluid-cursor.mjs +3 -3
- package/fesm2022/ngwr-animations-glitch.mjs +3 -3
- package/fesm2022/ngwr-animations-glow-border.mjs +3 -3
- package/fesm2022/ngwr-animations-gradient-flow.mjs +3 -3
- package/fesm2022/ngwr-animations-marquee.mjs +3 -3
- package/fesm2022/ngwr-animations-orbit.mjs +3 -3
- package/fesm2022/ngwr-animations-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-ripple-grid.mjs +3 -3
- package/fesm2022/ngwr-animations-rotate-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-shimmer.mjs +3 -3
- package/fesm2022/ngwr-animations-spotlight.mjs +3 -3
- package/fesm2022/ngwr-animations-thread-lines.mjs +3 -3
- package/fesm2022/ngwr-animations-tilt.mjs +3 -3
- package/fesm2022/ngwr-animations-typewriter.mjs +3 -3
- package/fesm2022/ngwr-avatar.mjs +3 -3
- package/fesm2022/ngwr-back-top.mjs +3 -3
- package/fesm2022/ngwr-badge.mjs +129 -11
- package/fesm2022/ngwr-badge.mjs.map +1 -1
- package/fesm2022/ngwr-breadcrumbs-testing.mjs +83 -0
- package/fesm2022/ngwr-breadcrumbs-testing.mjs.map +1 -0
- package/fesm2022/ngwr-breadcrumbs.mjs +8 -8
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-burger-testing.mjs +45 -0
- package/fesm2022/ngwr-burger-testing.mjs.map +1 -0
- package/fesm2022/ngwr-burger.mjs +3 -3
- package/fesm2022/ngwr-button.mjs +6 -6
- package/fesm2022/ngwr-calendar-testing.mjs +18 -0
- package/fesm2022/ngwr-calendar-testing.mjs.map +1 -1
- package/fesm2022/ngwr-calendar.mjs +500 -73
- package/fesm2022/ngwr-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-card.mjs +9 -9
- package/fesm2022/ngwr-carousel.mjs +6 -6
- package/fesm2022/ngwr-cascader.mjs +37 -16
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart.mjs +5 -4
- package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-boxplot-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-bullet-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -3
- package/fesm2022/ngwr-charts-candlestick-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-chart-legend.mjs +26 -11
- package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
- package/fesm2022/ngwr-charts-core.mjs +3 -3
- package/fesm2022/ngwr-charts-donut-chart.mjs +5 -4
- package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-funnel-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-gauge.mjs +3 -3
- package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-line-chart-testing.mjs +3 -2
- package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-line-chart.mjs +17 -7
- package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group.mjs +5 -4
- package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart.mjs +5 -4
- package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-scatter-chart.mjs +5 -4
- package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-sparkline.mjs +3 -3
- package/fesm2022/ngwr-charts-treemap-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-waterfall-chart.mjs +3 -3
- package/fesm2022/ngwr-checkbox.mjs +6 -6
- package/fesm2022/ngwr-clipboard.mjs +3 -3
- package/fesm2022/ngwr-collapse.mjs +9 -9
- package/fesm2022/ngwr-color-picker-testing.mjs +11 -1
- package/fesm2022/ngwr-color-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker.mjs +153 -37
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-command-palette.mjs +3 -3
- package/fesm2022/ngwr-comment.mjs +10 -6
- package/fesm2022/ngwr-comment.mjs.map +1 -1
- package/fesm2022/ngwr-compare-testing.mjs +84 -0
- package/fesm2022/ngwr-compare-testing.mjs.map +1 -0
- package/fesm2022/ngwr-compare.mjs +3 -3
- package/fesm2022/ngwr-context-menu.mjs +12 -12
- package/fesm2022/ngwr-cookie.mjs +3 -3
- package/fesm2022/ngwr-copy-value.mjs +3 -3
- package/fesm2022/ngwr-counter.mjs +6 -6
- package/fesm2022/ngwr-date-picker-testing.mjs +48 -4
- package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +492 -75
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp.mjs +76 -12
- package/fesm2022/ngwr-date-stamp.mjs.map +1 -1
- package/fesm2022/ngwr-date.mjs +144 -12
- package/fesm2022/ngwr-date.mjs.map +1 -1
- package/fesm2022/ngwr-density.mjs +6 -6
- package/fesm2022/ngwr-descriptions.mjs +6 -6
- package/fesm2022/ngwr-dialog.mjs +18 -18
- package/fesm2022/ngwr-directives.mjs +15 -15
- package/fesm2022/ngwr-divider.mjs +3 -3
- package/fesm2022/ngwr-drawer.mjs +51 -29
- package/fesm2022/ngwr-drawer.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown-testing.mjs +48 -5
- package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +407 -116
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +4 -3
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-empty.mjs +3 -3
- package/fesm2022/ngwr-event-calendar.mjs +186 -33
- package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload-testing.mjs +34 -2
- package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload.mjs +274 -15
- package/fesm2022/ngwr-file-upload.mjs.map +1 -1
- package/fesm2022/ngwr-form.mjs +9 -9
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-graph-testing.mjs +3 -0
- package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
- package/fesm2022/ngwr-graph.mjs +102 -42
- package/fesm2022/ngwr-graph.mjs.map +1 -1
- package/fesm2022/ngwr-hotkey.mjs +6 -6
- package/fesm2022/ngwr-i18n-ar.mjs +26 -6
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +26 -6
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +26 -6
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +26 -6
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +26 -6
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +26 -6
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +26 -6
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +26 -6
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +26 -6
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +26 -6
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +26 -6
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +26 -6
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +26 -6
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +26 -6
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +26 -6
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +26 -6
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +26 -6
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +26 -6
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +26 -6
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +26 -6
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +26 -6
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +26 -6
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +9 -9
- package/fesm2022/ngwr-icon.mjs +6 -6
- package/fesm2022/ngwr-image-cropper.mjs +3 -3
- package/fesm2022/ngwr-input-number-testing.mjs +11 -0
- package/fesm2022/ngwr-input-number-testing.mjs.map +1 -1
- package/fesm2022/ngwr-input-number.mjs +68 -7
- package/fesm2022/ngwr-input-number.mjs.map +1 -1
- package/fesm2022/ngwr-input-otp.mjs +23 -3
- package/fesm2022/ngwr-input-otp.mjs.map +1 -1
- package/fesm2022/ngwr-input-testing.mjs +24 -1
- package/fesm2022/ngwr-input-testing.mjs.map +1 -1
- package/fesm2022/ngwr-input.mjs +152 -36
- package/fesm2022/ngwr-input.mjs.map +1 -1
- package/fesm2022/ngwr-keyboard.mjs +3 -3
- package/fesm2022/ngwr-knob.mjs +3 -3
- package/fesm2022/ngwr-layout.mjs +15 -15
- package/fesm2022/ngwr-lightbox-testing.mjs +26 -0
- package/fesm2022/ngwr-lightbox-testing.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox.mjs +249 -13
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +8 -8
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-load-state.mjs +15 -15
- package/fesm2022/ngwr-loading-bar.mjs +6 -6
- package/fesm2022/ngwr-mention.mjs +6 -6
- package/fesm2022/ngwr-meta.mjs +6 -6
- package/fesm2022/ngwr-overlay.mjs +175 -13
- package/fesm2022/ngwr-overlay.mjs.map +1 -1
- package/fesm2022/ngwr-page-header.mjs +3 -3
- package/fesm2022/ngwr-pagination.mjs +5 -3
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +57 -33
- package/fesm2022/ngwr-pipes.mjs.map +1 -1
- package/fesm2022/ngwr-platform.mjs +9 -9
- package/fesm2022/ngwr-popconfirm-testing.mjs +5 -2
- package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm.mjs +44 -63
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-popover-testing.mjs +7 -1
- package/fesm2022/ngwr-popover-testing.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +58 -156
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-progress.mjs +50 -9
- package/fesm2022/ngwr-progress.mjs.map +1 -1
- package/fesm2022/ngwr-pull-to-refresh-testing.mjs +57 -0
- package/fesm2022/ngwr-pull-to-refresh-testing.mjs.map +1 -0
- package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
- package/fesm2022/ngwr-qr.mjs +3 -3
- package/fesm2022/ngwr-radio.mjs +6 -6
- package/fesm2022/ngwr-rating.mjs +3 -3
- package/fesm2022/ngwr-resizable-testing.mjs +113 -0
- package/fesm2022/ngwr-resizable-testing.mjs.map +1 -0
- package/fesm2022/ngwr-resizable.mjs +3 -3
- package/fesm2022/ngwr-result.mjs +12 -12
- package/fesm2022/ngwr-schema-form-testing.mjs +336 -0
- package/fesm2022/ngwr-schema-form-testing.mjs.map +1 -0
- package/fesm2022/ngwr-schema-form.mjs +418 -19
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-scroll.mjs +3 -3
- package/fesm2022/ngwr-segmented.mjs +3 -3
- package/fesm2022/ngwr-select-testing.mjs +19 -0
- package/fesm2022/ngwr-select-testing.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +263 -83
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-sidebar-testing.mjs +176 -0
- package/fesm2022/ngwr-sidebar-testing.mjs.map +1 -0
- package/fesm2022/ngwr-sidebar.mjs +3 -3
- package/fesm2022/ngwr-skeleton.mjs +3 -3
- package/fesm2022/ngwr-slider-testing.mjs +23 -0
- package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
- package/fesm2022/ngwr-slider.mjs +108 -14
- package/fesm2022/ngwr-slider.mjs.map +1 -1
- package/fesm2022/ngwr-sortable-list-testing.mjs +103 -0
- package/fesm2022/ngwr-sortable-list-testing.mjs.map +1 -0
- package/fesm2022/ngwr-sortable-list.mjs +284 -63
- package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
- package/fesm2022/ngwr-speed-dial.mjs +3 -3
- package/fesm2022/ngwr-spinner.mjs +3 -3
- package/fesm2022/ngwr-splitter.mjs +3 -3
- package/fesm2022/ngwr-statistic.mjs +9 -9
- package/fesm2022/ngwr-stepper.mjs +42 -11
- package/fesm2022/ngwr-stepper.mjs.map +1 -1
- package/fesm2022/ngwr-storage.mjs +3 -3
- package/fesm2022/ngwr-switch.mjs +3 -3
- package/fesm2022/ngwr-table-testing.mjs +88 -2
- package/fesm2022/ngwr-table-testing.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +891 -74
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tabs-router.mjs +3 -3
- package/fesm2022/ngwr-tabs-testing.mjs +1 -1
- package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tabs.mjs +15 -10
- package/fesm2022/ngwr-tabs.mjs.map +1 -1
- package/fesm2022/ngwr-textarea-testing.mjs +11 -0
- package/fesm2022/ngwr-textarea-testing.mjs.map +1 -1
- package/fesm2022/ngwr-textarea.mjs +128 -16
- package/fesm2022/ngwr-textarea.mjs.map +1 -1
- package/fesm2022/ngwr-theme.mjs +3 -3
- package/fesm2022/ngwr-timeline.mjs +6 -6
- package/fesm2022/ngwr-toast.mjs +40 -19
- package/fesm2022/ngwr-toast.mjs.map +1 -1
- package/fesm2022/ngwr-toolbar.mjs +3 -3
- package/fesm2022/ngwr-tour.mjs +6 -6
- package/fesm2022/ngwr-transfer-testing.mjs +6 -0
- package/fesm2022/ngwr-transfer-testing.mjs.map +1 -1
- package/fesm2022/ngwr-transfer.mjs +24 -5
- package/fesm2022/ngwr-transfer.mjs.map +1 -1
- package/fesm2022/ngwr-tree-testing.mjs +62 -2
- package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +966 -78
- package/fesm2022/ngwr-tree.mjs.map +1 -1
- package/fesm2022/ngwr-typography.mjs +3 -3
- package/fesm2022/ngwr-utils-router.mjs +3 -3
- package/fesm2022/ngwr-utils.mjs +34 -1
- package/fesm2022/ngwr-utils.mjs.map +1 -1
- package/fesm2022/ngwr-version.mjs +1 -1
- package/fesm2022/ngwr-version.mjs.map +1 -1
- package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
- package/fesm2022/ngwr-window.mjs +33 -22
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/file-upload/styles/_index.scss +156 -0
- package/i18n/ar.json +28 -6
- package/i18n/cs.json +28 -6
- package/i18n/de.json +28 -6
- package/i18n/en.json +28 -6
- package/i18n/es.json +28 -6
- package/i18n/fr.json +28 -6
- package/i18n/he.json +28 -6
- package/i18n/hi.json +28 -6
- package/i18n/id.json +28 -6
- package/i18n/it.json +28 -6
- package/i18n/ja.json +28 -6
- package/i18n/ko.json +28 -6
- package/i18n/nl.json +28 -6
- package/i18n/pl.json +28 -6
- package/i18n/pt.json +28 -6
- package/i18n/ru.json +28 -6
- package/i18n/sv.json +28 -6
- package/i18n/tr.json +28 -6
- package/i18n/uk.json +28 -6
- package/i18n/vi.json +28 -6
- package/i18n/zh-TW.json +28 -6
- package/i18n/zh.json +28 -6
- package/input/styles/_index.scss +68 -1
- package/input-otp/styles/_index.scss +14 -0
- package/lightbox/styles/_rules.scss +96 -0
- package/llms-full.txt +61 -25
- package/llms.txt +12 -0
- package/overlay/styles/_arrow.scss +4 -4
- package/package.json +37 -1
- package/popconfirm/styles/_index.scss +3 -11
- package/progress/styles/_index.scss +32 -0
- package/schema-form/styles/_index.scss +78 -0
- package/schematics/use/rule.js +2 -0
- package/schematics/use/symbol-map.json +5 -0
- package/select/styles/_index.scss +114 -22
- package/skills/ngwr/SKILL.md +1 -1
- package/skills/ngwr/references/catalog.md +11 -2
- package/slider/styles/_index.scss +128 -0
- package/sortable-list/styles/_rules.scss +23 -1
- package/table/styles/_index.scss +167 -3
- package/textarea/styles/_index.scss +80 -0
- package/theme/styles/_focus.scss +5 -0
- package/theme/styles/_motion.scss +5 -0
- package/transfer/styles/_index.scss +84 -0
- package/tree/styles/_index.scss +138 -5
- package/types/ngwr-alert-testing.d.ts +88 -0
- package/types/ngwr-badge.d.ts +72 -2
- package/types/ngwr-breadcrumbs-testing.d.ts +92 -0
- package/types/ngwr-burger-testing.d.ts +51 -0
- package/types/ngwr-calendar-testing.d.ts +18 -6
- package/types/ngwr-calendar.d.ts +272 -22
- package/types/ngwr-cascader.d.ts +10 -1
- package/types/ngwr-charts-chart-legend.d.ts +9 -4
- package/types/ngwr-charts-line-chart-testing.d.ts +4 -1
- package/types/ngwr-charts-line-chart.d.ts +7 -4
- package/types/ngwr-color-picker-testing.d.ts +15 -4
- package/types/ngwr-color-picker.d.ts +76 -6
- package/types/ngwr-compare-testing.d.ts +72 -0
- package/types/ngwr-date-picker-testing.d.ts +40 -8
- package/types/ngwr-date-picker.d.ts +178 -10
- package/types/ngwr-date-stamp-testing.d.ts +1 -1
- package/types/ngwr-date-stamp.d.ts +53 -7
- package/types/ngwr-date.d.ts +188 -15
- package/types/ngwr-drawer.d.ts +9 -0
- package/types/ngwr-dropdown-testing.d.ts +73 -5
- package/types/ngwr-dropdown.d.ts +124 -6
- package/types/ngwr-event-calendar.d.ts +66 -8
- package/types/ngwr-file-upload-testing.d.ts +31 -2
- package/types/ngwr-file-upload.d.ts +148 -1
- package/types/ngwr-form.d.ts +47 -3
- package/types/ngwr-graph-testing.d.ts +8 -3
- package/types/ngwr-graph.d.ts +147 -7
- package/types/ngwr-input-number-testing.d.ts +10 -0
- package/types/ngwr-input-number.d.ts +30 -1
- package/types/ngwr-input-otp.d.ts +10 -0
- package/types/ngwr-input-testing.d.ts +30 -0
- package/types/ngwr-input.d.ts +54 -3
- package/types/ngwr-lightbox-testing.d.ts +27 -0
- package/types/ngwr-lightbox.d.ts +71 -6
- package/types/ngwr-overlay.d.ts +84 -5
- package/types/ngwr-pipes.d.ts +34 -13
- package/types/ngwr-popconfirm-testing.d.ts +12 -3
- package/types/ngwr-popconfirm.d.ts +28 -3
- package/types/ngwr-popover-testing.d.ts +19 -2
- package/types/ngwr-popover.d.ts +22 -2
- package/types/ngwr-progress.d.ts +29 -1
- package/types/ngwr-pull-to-refresh-testing.d.ts +83 -0
- package/types/ngwr-resizable-testing.d.ts +116 -0
- package/types/ngwr-schema-form-testing.d.ts +260 -0
- package/types/ngwr-schema-form.d.ts +76 -6
- package/types/ngwr-select-testing.d.ts +20 -0
- package/types/ngwr-select.d.ts +112 -11
- package/types/ngwr-sidebar-testing.d.ts +176 -0
- package/types/ngwr-slider-testing.d.ts +10 -1
- package/types/ngwr-slider.d.ts +109 -3
- package/types/ngwr-sortable-list-testing.d.ts +79 -0
- package/types/ngwr-sortable-list.d.ts +119 -10
- package/types/ngwr-stepper.d.ts +20 -11
- package/types/ngwr-table-testing.d.ts +70 -6
- package/types/ngwr-table.d.ts +480 -50
- package/types/ngwr-tabs-testing.d.ts +14 -17
- package/types/ngwr-tabs.d.ts +6 -0
- package/types/ngwr-textarea-testing.d.ts +10 -0
- package/types/ngwr-textarea.d.ts +48 -2
- package/types/ngwr-toast.d.ts +8 -1
- package/types/ngwr-transfer-testing.d.ts +3 -0
- package/types/ngwr-transfer.d.ts +24 -1
- package/types/ngwr-tree-testing.d.ts +65 -1
- package/types/ngwr-tree.d.ts +333 -12
- package/types/ngwr-utils.d.ts +28 -0
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr-window.d.ts +7 -4
package/types/ngwr-dropdown.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import { TemplateRef } from "@angular/core";
|
|
3
3
|
import { WrClassInput } from "ngwr/utils";
|
|
4
4
|
import { ConnectedPosition } from "@angular/cdk/overlay";
|
|
5
|
+
import { WrAnchoredPosition } from "ngwr/overlay";
|
|
5
6
|
/**
|
|
6
7
|
* Holds the menu content rendered when a {@link WrDropdown} opens.
|
|
7
8
|
*
|
|
@@ -33,7 +34,7 @@ export declare class WrDropdownMenu {
|
|
|
33
34
|
/**
|
|
34
35
|
* Where the dropdown menu opens, relative to the trigger.
|
|
35
36
|
*/
|
|
36
|
-
type WrDropdownPosition =
|
|
37
|
+
type WrDropdownPosition = WrAnchoredPosition;
|
|
37
38
|
/**
|
|
38
39
|
* @license
|
|
39
40
|
*
|
|
@@ -61,13 +62,14 @@ export declare class WrDropdown {
|
|
|
61
62
|
*/
|
|
62
63
|
readonly trigger: import("@angular/core").InputSignal<WrDropdownTrigger>;
|
|
63
64
|
/**
|
|
64
|
-
* Where the menu anchors relative to the trigger
|
|
65
|
-
*
|
|
66
|
-
*
|
|
65
|
+
* Where the menu anchors relative to the trigger: the twelve placements
|
|
66
|
+
* `wr-popover` takes. A placement that does not fit flips to the opposite side
|
|
67
|
+
* (a `left*` / `right*` menu may also drop below or above, and then stays
|
|
68
|
+
* there until it closes), and the pane's
|
|
67
69
|
* `wr-dropdown-overlay--<placement>` class names the side it actually took.
|
|
68
70
|
* @default 'bottom-start'
|
|
69
71
|
*/
|
|
70
|
-
readonly position: import("@angular/core").InputSignal<
|
|
72
|
+
readonly position: import("@angular/core").InputSignal<import("ngwr/overlay").WrAnchoredPosition>;
|
|
71
73
|
/**
|
|
72
74
|
* Draw a small arrow on the menu's edge, pointing at the trigger — the one
|
|
73
75
|
* `wr-popover` and `wr-popconfirm` draw, from the same shared rule. It follows
|
|
@@ -81,6 +83,17 @@ export declare class WrDropdown {
|
|
|
81
83
|
* Read when the menu opens. @default true
|
|
82
84
|
*/
|
|
83
85
|
readonly arrow: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
86
|
+
/**
|
|
87
|
+
* Turns the trigger off: no click, hover or key opens the menu, `open()` and
|
|
88
|
+
* `toggle()` do nothing (a `manual` trigger included), and an open menu
|
|
89
|
+
* closes. The host publishes no popup ARIA meanwhile and carries
|
|
90
|
+
* `wr-dropdown-trigger--disabled`.
|
|
91
|
+
*
|
|
92
|
+
* The host's own `disabled` stays yours: the directive never sets it.
|
|
93
|
+
*
|
|
94
|
+
* @default false
|
|
95
|
+
*/
|
|
96
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
84
97
|
/**
|
|
85
98
|
* Extra CSS classes for the menu's overlay pane.
|
|
86
99
|
*
|
|
@@ -138,8 +151,10 @@ export declare class WrDropdown {
|
|
|
138
151
|
*/
|
|
139
152
|
protected get triggerId(): string;
|
|
140
153
|
private overlayRef;
|
|
154
|
+
/** The root menu's link to the submenus open below it. */
|
|
155
|
+
private level;
|
|
141
156
|
constructor();
|
|
142
|
-
/** Open the menu. */
|
|
157
|
+
/** Open the menu. Does nothing while the trigger is disabled. */
|
|
143
158
|
open(): void;
|
|
144
159
|
/** Close the menu. */
|
|
145
160
|
close(): void;
|
|
@@ -181,7 +196,12 @@ export declare class WrDropdown {
|
|
|
181
196
|
/** @internal Trigger keydown — ArrowDown/Up/Enter/Space open the menu. */
|
|
182
197
|
protected onKeydown(event: KeyboardEvent): void;
|
|
183
198
|
private handleMenuKeydown;
|
|
199
|
+
/** The focus stops of `pane`, the root menu's own by default. */
|
|
184
200
|
private getItems;
|
|
201
|
+
/** Whether `node` is in the root menu or in a submenu open below it. */
|
|
202
|
+
private inMenus;
|
|
203
|
+
/** A `trigger="hover"` menu closes once the pointer is off the trigger and every pane. */
|
|
204
|
+
private onMenusLeave;
|
|
185
205
|
private focusItemAt;
|
|
186
206
|
private readonly onOverlayMouseLeave;
|
|
187
207
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrDropdown, never>;
|
|
@@ -206,6 +226,11 @@ export declare class WrDropdown {
|
|
|
206
226
|
"required": false;
|
|
207
227
|
"isSignal": true;
|
|
208
228
|
};
|
|
229
|
+
"disabled": {
|
|
230
|
+
"alias": "wrDropdownDisabled";
|
|
231
|
+
"required": false;
|
|
232
|
+
"isSignal": true;
|
|
233
|
+
};
|
|
209
234
|
"panelClass": {
|
|
210
235
|
"alias": "panelClass";
|
|
211
236
|
"required": false;
|
|
@@ -249,4 +274,97 @@ export declare class WrDropdownItem {
|
|
|
249
274
|
};
|
|
250
275
|
}, {}, never, ["*"], true, never>;
|
|
251
276
|
}
|
|
277
|
+
/**
|
|
278
|
+
* Put on a `<wr-dropdown-item>` to open another `<wr-dropdown-menu>` beside it.
|
|
279
|
+
* The submenu's own items can carry it too, to any depth.
|
|
280
|
+
*
|
|
281
|
+
* @example
|
|
282
|
+
* ```html
|
|
283
|
+
* <button [wrDropdown]="file">File</button>
|
|
284
|
+
*
|
|
285
|
+
* <wr-dropdown-menu #file>
|
|
286
|
+
* <wr-dropdown-item>New</wr-dropdown-item>
|
|
287
|
+
* <wr-dropdown-item [wrDropdownSubmenu]="exportAs">Export</wr-dropdown-item>
|
|
288
|
+
* </wr-dropdown-menu>
|
|
289
|
+
*
|
|
290
|
+
* <wr-dropdown-menu #exportAs>
|
|
291
|
+
* <wr-dropdown-item (click)="export('csv')">CSV</wr-dropdown-item>
|
|
292
|
+
* <wr-dropdown-item (click)="export('pdf')">PDF</wr-dropdown-item>
|
|
293
|
+
* </wr-dropdown-menu>
|
|
294
|
+
* ```
|
|
295
|
+
*
|
|
296
|
+
* @see https://ngwr.dev/reference/components/dropdown
|
|
297
|
+
*/
|
|
298
|
+
export declare class WrDropdownSubmenu {
|
|
299
|
+
/** Menu to open beside the item. Pass a `<wr-dropdown-menu>` template reference. */
|
|
300
|
+
readonly menu: import("@angular/core").InputSignal<WrDropdownMenu>;
|
|
301
|
+
/** How long the pointer rests on the item before the submenu opens, in ms. @default 150 */
|
|
302
|
+
readonly showDelay: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
303
|
+
/**
|
|
304
|
+
* How long the submenu stays once the pointer has left both the item and the
|
|
305
|
+
* submenu, in ms. Long enough to cross a neighbouring item on the way in.
|
|
306
|
+
* @default 150
|
|
307
|
+
*/
|
|
308
|
+
readonly hideDelay: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
309
|
+
private readonly host;
|
|
310
|
+
private readonly focusMonitor;
|
|
311
|
+
private readonly overlay;
|
|
312
|
+
private readonly dir;
|
|
313
|
+
private readonly outsideClick;
|
|
314
|
+
private readonly vcr;
|
|
315
|
+
private readonly scrollStrategies;
|
|
316
|
+
private readonly injector;
|
|
317
|
+
private readonly openState;
|
|
318
|
+
/** Whether the submenu is open. Read-only: `open()` and `close()` change it. */
|
|
319
|
+
readonly isOpen: import("@angular/core").Signal<boolean>;
|
|
320
|
+
private readonly fallbackId;
|
|
321
|
+
/** The consumer's own `id` wins, read fresh for the reason `WrDropdown` gives. */
|
|
322
|
+
protected get itemId(): string;
|
|
323
|
+
private overlayRef;
|
|
324
|
+
private level;
|
|
325
|
+
private outside;
|
|
326
|
+
private showTimer;
|
|
327
|
+
private hideTimer;
|
|
328
|
+
constructor();
|
|
329
|
+
/** Open the submenu and move focus to its first item. The item has to be in an open menu. */
|
|
330
|
+
open(): void;
|
|
331
|
+
/** Close the submenu and every submenu below it. */
|
|
332
|
+
close(): void;
|
|
333
|
+
/** @internal A real click opens; Enter and Space arrive as a click with no pointer behind it. */
|
|
334
|
+
protected onClick(event: MouseEvent): void;
|
|
335
|
+
/** @internal The arrow pointing the way the menus cascade walks into the submenu. */
|
|
336
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
337
|
+
/** @internal */
|
|
338
|
+
protected onMouseEnter(): void;
|
|
339
|
+
/** @internal */
|
|
340
|
+
protected onMouseLeave(event: MouseEvent): void;
|
|
341
|
+
private get disabled();
|
|
342
|
+
/** A pointer shows the submenu and leaves the caret alone; the keyboard walks in. */
|
|
343
|
+
private show;
|
|
344
|
+
private attach;
|
|
345
|
+
private dispose;
|
|
346
|
+
private hideLater;
|
|
347
|
+
private readonly clearTimers;
|
|
348
|
+
private readonly onPaneLeave;
|
|
349
|
+
/** Choosing a leaf closes every submenu, up to the root menu's own item. */
|
|
350
|
+
private readonly onPaneClick;
|
|
351
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrDropdownSubmenu, never>;
|
|
352
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WrDropdownSubmenu, "[wrDropdownSubmenu]", ["wrDropdownSubmenu"], {
|
|
353
|
+
"menu": {
|
|
354
|
+
"alias": "wrDropdownSubmenu";
|
|
355
|
+
"required": true;
|
|
356
|
+
"isSignal": true;
|
|
357
|
+
};
|
|
358
|
+
"showDelay": {
|
|
359
|
+
"alias": "showDelay";
|
|
360
|
+
"required": false;
|
|
361
|
+
"isSignal": true;
|
|
362
|
+
};
|
|
363
|
+
"hideDelay": {
|
|
364
|
+
"alias": "hideDelay";
|
|
365
|
+
"required": false;
|
|
366
|
+
"isSignal": true;
|
|
367
|
+
};
|
|
368
|
+
}, {}, never, never, true, never>;
|
|
369
|
+
}
|
|
252
370
|
export type { WrDropdownPosition, WrDropdownTrigger };
|
|
@@ -224,20 +224,36 @@ export declare class WrEventCalendar {
|
|
|
224
224
|
private readonly injector;
|
|
225
225
|
private readonly dir;
|
|
226
226
|
private readonly chipTpl;
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
227
|
+
/** Text of the button that jumps to today. Falls back to `eventCalendar.today`, then `'Today'`. */
|
|
228
|
+
readonly todayLabel: import("@angular/core").InputSignal<string | null>;
|
|
229
|
+
/** Accessible name of the back arrow. Falls back to `eventCalendar.previous`, then `'Previous'`. */
|
|
230
|
+
readonly previousLabel: import("@angular/core").InputSignal<string | null>;
|
|
231
|
+
/** Accessible name of the forward arrow. Falls back to `eventCalendar.next`, then `'Next'`. */
|
|
232
|
+
readonly nextLabel: import("@angular/core").InputSignal<string | null>;
|
|
233
|
+
/** Text of the all-day band, also read as the time of an all-day event. Falls back to `eventCalendar.allDay`, then `'All day'`. */
|
|
234
|
+
readonly allDayLabel: import("@angular/core").InputSignal<string | null>;
|
|
235
|
+
/** Accessible name of the time gutter column. Falls back to `eventCalendar.time`, then `'Time'`. */
|
|
236
|
+
readonly timeLabel: import("@angular/core").InputSignal<string | null>;
|
|
237
|
+
/** Text of the month option in the view switcher. Falls back to `eventCalendar.month`, then `'Month'`. */
|
|
238
|
+
readonly monthLabel: import("@angular/core").InputSignal<string | null>;
|
|
239
|
+
/** Text of the week option in the view switcher. Falls back to `eventCalendar.week`, then `'Week'`. */
|
|
240
|
+
readonly weekLabel: import("@angular/core").InputSignal<string | null>;
|
|
241
|
+
/** Text of the day option in the view switcher. Falls back to `eventCalendar.day`, then `'Day'`. */
|
|
242
|
+
readonly dayLabel: import("@angular/core").InputSignal<string | null>;
|
|
243
|
+
protected readonly resolvedTodayLabel: import("@angular/core").Signal<string>;
|
|
244
|
+
protected readonly resolvedPreviousLabel: import("@angular/core").Signal<string>;
|
|
245
|
+
protected readonly resolvedNextLabel: import("@angular/core").Signal<string>;
|
|
246
|
+
protected readonly resolvedAllDayLabel: import("@angular/core").Signal<string>;
|
|
247
|
+
protected readonly resolvedTimeLabel: import("@angular/core").Signal<string>;
|
|
232
248
|
protected readonly moreLabel: (params?: import("ngwr/i18n").WrI18nParams) => string;
|
|
233
249
|
private readonly headerText;
|
|
234
250
|
private readonly rangeText;
|
|
235
251
|
private readonly chipLabelText;
|
|
236
252
|
private readonly slotLabelText;
|
|
237
253
|
private readonly allDayCellText;
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
254
|
+
protected readonly resolvedMonthLabel: import("@angular/core").Signal<string>;
|
|
255
|
+
protected readonly resolvedWeekLabel: import("@angular/core").Signal<string>;
|
|
256
|
+
protected readonly resolvedDayLabel: import("@angular/core").Signal<string>;
|
|
241
257
|
protected readonly viewLabels: import("@angular/core").Signal<Record<WrCalendarView, string>>;
|
|
242
258
|
/** Accessible name of the grid; overridable for a page with several. */
|
|
243
259
|
readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
|
|
@@ -335,6 +351,8 @@ export declare class WrEventCalendar {
|
|
|
335
351
|
* the cell can say how much it is hiding.
|
|
336
352
|
*/
|
|
337
353
|
private bandLayout;
|
|
354
|
+
/** The chips that start in each column, in the order they were laid out. */
|
|
355
|
+
private byColumn;
|
|
338
356
|
private laneCount;
|
|
339
357
|
/**
|
|
340
358
|
* Column layout inside one day: events that overlap in time share the width.
|
|
@@ -438,6 +456,46 @@ export declare class WrEventCalendar {
|
|
|
438
456
|
"required": false;
|
|
439
457
|
"isSignal": true;
|
|
440
458
|
};
|
|
459
|
+
"todayLabel": {
|
|
460
|
+
"alias": "todayLabel";
|
|
461
|
+
"required": false;
|
|
462
|
+
"isSignal": true;
|
|
463
|
+
};
|
|
464
|
+
"previousLabel": {
|
|
465
|
+
"alias": "previousLabel";
|
|
466
|
+
"required": false;
|
|
467
|
+
"isSignal": true;
|
|
468
|
+
};
|
|
469
|
+
"nextLabel": {
|
|
470
|
+
"alias": "nextLabel";
|
|
471
|
+
"required": false;
|
|
472
|
+
"isSignal": true;
|
|
473
|
+
};
|
|
474
|
+
"allDayLabel": {
|
|
475
|
+
"alias": "allDayLabel";
|
|
476
|
+
"required": false;
|
|
477
|
+
"isSignal": true;
|
|
478
|
+
};
|
|
479
|
+
"timeLabel": {
|
|
480
|
+
"alias": "timeLabel";
|
|
481
|
+
"required": false;
|
|
482
|
+
"isSignal": true;
|
|
483
|
+
};
|
|
484
|
+
"monthLabel": {
|
|
485
|
+
"alias": "monthLabel";
|
|
486
|
+
"required": false;
|
|
487
|
+
"isSignal": true;
|
|
488
|
+
};
|
|
489
|
+
"weekLabel": {
|
|
490
|
+
"alias": "weekLabel";
|
|
491
|
+
"required": false;
|
|
492
|
+
"isSignal": true;
|
|
493
|
+
};
|
|
494
|
+
"dayLabel": {
|
|
495
|
+
"alias": "dayLabel";
|
|
496
|
+
"required": false;
|
|
497
|
+
"isSignal": true;
|
|
498
|
+
};
|
|
441
499
|
"ariaLabel": {
|
|
442
500
|
"alias": "ariaLabel";
|
|
443
501
|
"required": false;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from "@angular/cdk/testing";
|
|
2
|
+
import { WrFileUploadSize, WrFileUploadState } from "ngwr/file-upload";
|
|
2
3
|
/** Narrows which `<wr-file-upload>` a harness query matches. */
|
|
3
4
|
interface WrFileUploadHarnessFilters extends BaseHarnessFilters {
|
|
4
5
|
/**
|
|
@@ -24,8 +25,11 @@ interface WrFileUploadHarnessFilters extends BaseHarnessFilters {
|
|
|
24
25
|
* `multiple` land on it, and {@link selectFiles} has to hand it the files.
|
|
25
26
|
*
|
|
26
27
|
* What this component does NOT have, so this harness does not either:
|
|
27
|
-
* - **no
|
|
28
|
-
*
|
|
28
|
+
* - **no upload.** `<wr-file-upload>` picks files and uploading them is the app's
|
|
29
|
+
* job. What the app says through `[status]` is readable, per file, with
|
|
30
|
+
* {@link getFileStatus}; the percent is on the row's `wr-progress`.
|
|
31
|
+
* - **no thumbnail pixels.** {@link hasPreview} says a thumbnail is in the row.
|
|
32
|
+
* jsdom decodes no image, so whether it shows the file cannot be read.
|
|
29
33
|
* - **no rendered error.** A file refused for its type, its size or the file count
|
|
30
34
|
* leaves NOTHING in the DOM — no `aria-invalid`, no message, and a list that
|
|
31
35
|
* simply did not grow. The `(rejected)` output is the only channel, so a spec
|
|
@@ -88,6 +92,8 @@ export declare class WrFileUploadHarness extends ComponentHarness {
|
|
|
88
92
|
* read would report a multi-file upload as single.
|
|
89
93
|
*/
|
|
90
94
|
isMultiple(): Promise<boolean>;
|
|
95
|
+
/** The control size. `'md'` is the default and paints no modifier of its own. */
|
|
96
|
+
getSize(): Promise<WrFileUploadSize>;
|
|
91
97
|
/**
|
|
92
98
|
* Whether the control refuses interaction.
|
|
93
99
|
*
|
|
@@ -169,6 +175,29 @@ export declare class WrFileUploadHarness extends ComponentHarness {
|
|
|
169
175
|
removeFile(index: number): Promise<void>;
|
|
170
176
|
/** Remove the file with this name. Names come from {@link getFileNames}. */
|
|
171
177
|
removeFileNamed(name: string): Promise<void>;
|
|
178
|
+
/**
|
|
179
|
+
* The upload state the app set for this file through `[status]`: `'pending'`,
|
|
180
|
+
* `'uploading'`, `'done'` or `'error'`, or `null` for a file with no entry.
|
|
181
|
+
*
|
|
182
|
+
* Read off the row's `wr-file-upload__item--<state>` modifier, the one place
|
|
183
|
+
* every state leaves a mark: `pending` draws no part of its own.
|
|
184
|
+
*/
|
|
185
|
+
getFileStatus(name: string): Promise<WrFileUploadState | null>;
|
|
186
|
+
/**
|
|
187
|
+
* Press the retry button of this file's row, which emits `(retry)` with the file.
|
|
188
|
+
*
|
|
189
|
+
* @throws if the file is not in the `error` state: only a failed row has the button.
|
|
190
|
+
*/
|
|
191
|
+
retry(name: string): Promise<void>;
|
|
192
|
+
/**
|
|
193
|
+
* Whether this file's row shows a thumbnail: `[previews]` is on and the file
|
|
194
|
+
* is an image. jsdom has no `URL.createObjectURL`, so a spec that expects
|
|
195
|
+
* `true` has to stub it.
|
|
196
|
+
*/
|
|
197
|
+
hasPreview(name: string): Promise<boolean>;
|
|
198
|
+
/** Index of the row with this name, or a throw that says what the list holds. */
|
|
199
|
+
private indexNamed;
|
|
200
|
+
private rowNamed;
|
|
172
201
|
/** Move keyboard focus to the zone — the control's only tab stop. */
|
|
173
202
|
focus(): Promise<void>;
|
|
174
203
|
/** Whether the zone has focus. */
|
|
@@ -14,6 +14,32 @@ interface WrFileUploadRejection {
|
|
|
14
14
|
readonly file: File;
|
|
15
15
|
readonly reason: WrFileUploadRejectionReason;
|
|
16
16
|
}
|
|
17
|
+
/** Size of a `<wr-file-upload>`. */
|
|
18
|
+
type WrFileUploadSize = 'sm' | 'md' | 'lg';
|
|
19
|
+
/** Where the app's own upload of one file stands. */
|
|
20
|
+
type WrFileUploadState = 'pending' | 'uploading' | 'done' | 'error';
|
|
21
|
+
/**
|
|
22
|
+
* The state of one file, set by the app through `[status]`. The component never
|
|
23
|
+
* uploads: it draws what it is told.
|
|
24
|
+
*/
|
|
25
|
+
interface WrFileUploadStatus {
|
|
26
|
+
readonly state: WrFileUploadState;
|
|
27
|
+
/** `uploading` only: how far it has got, 0 to 100. Left out, the bar is indeterminate. */
|
|
28
|
+
readonly percent?: number | null;
|
|
29
|
+
/** `error` only: what went wrong, in the app's words. Left out, the row says `fileUpload.failed`. */
|
|
30
|
+
readonly message?: string | null;
|
|
31
|
+
}
|
|
32
|
+
/** Per-file upload state, keyed by the `File` objects in `value`. */
|
|
33
|
+
type WrFileUploadStatusMap = ReadonlyMap<File, WrFileUploadStatus>;
|
|
34
|
+
/** One list row: the file, what `[status]` says about it and its thumbnail. */
|
|
35
|
+
interface FileRow {
|
|
36
|
+
readonly file: File;
|
|
37
|
+
readonly classes: string;
|
|
38
|
+
readonly state: WrFileUploadState | null;
|
|
39
|
+
readonly percent: number | null;
|
|
40
|
+
readonly message: string | null;
|
|
41
|
+
readonly preview: string | null;
|
|
42
|
+
}
|
|
17
43
|
/**
|
|
18
44
|
* Drag-and-drop file upload zone. Click to browse, drag-and-drop to add,
|
|
19
45
|
* with an optional file list + remove buttons.
|
|
@@ -33,6 +59,13 @@ interface WrFileUploadRejection {
|
|
|
33
59
|
* <wr-file-upload [(value)]="avatar" accept=".png,.jpg" [maxSize]="2 * 1024 * 1024" />
|
|
34
60
|
* ```
|
|
35
61
|
*
|
|
62
|
+
* The component does no HTTP. The app uploads, and tells the list where each
|
|
63
|
+
* file stands through `[status]`, a `Map` keyed by the `File` objects in `value`:
|
|
64
|
+
*
|
|
65
|
+
* ```html
|
|
66
|
+
* <wr-file-upload [(value)]="files" multiple [status]="statuses()" (retry)="upload($event)" />
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
36
69
|
* @see https://ngwr.dev/reference/components/file-upload
|
|
37
70
|
*/
|
|
38
71
|
export declare class WrFileUpload implements FormValueControl<File | readonly File[] | null> {
|
|
@@ -40,6 +73,12 @@ export declare class WrFileUpload implements FormValueControl<File | readonly Fi
|
|
|
40
73
|
readonly multiple: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
41
74
|
/** `accept` attribute — comma-separated MIME types or extensions. @default '' */
|
|
42
75
|
readonly accept: import("@angular/core").InputSignal<string>;
|
|
76
|
+
/**
|
|
77
|
+
* Control size: the drop zone's padding, icon and text, and the list rows.
|
|
78
|
+
*
|
|
79
|
+
* @default 'md'
|
|
80
|
+
*/
|
|
81
|
+
readonly size: import("@angular/core").InputSignal<WrFileUploadSize>;
|
|
43
82
|
/** Max bytes per file. `0` disables the check. @default 0 */
|
|
44
83
|
readonly maxSize: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
45
84
|
/** Max files (multi mode only). `0` disables the check. @default 0 */
|
|
@@ -67,6 +106,34 @@ export declare class WrFileUpload implements FormValueControl<File | readonly Fi
|
|
|
67
106
|
* @default false
|
|
68
107
|
*/
|
|
69
108
|
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
109
|
+
/**
|
|
110
|
+
* Where the app's upload of each file stands, keyed by the `File` objects in
|
|
111
|
+
* `value`. A row with an entry draws its state: a progress bar while
|
|
112
|
+
* `uploading` (indeterminate without a `percent`), a mark when `done`, the
|
|
113
|
+
* `message` and a retry button on `error`. A file with no entry is a plain row.
|
|
114
|
+
*
|
|
115
|
+
* Pass a new `Map` on each change: an input sees a new reference, not a `set()`
|
|
116
|
+
* on the one it already holds. `null` (the default) renders nothing extra.
|
|
117
|
+
*
|
|
118
|
+
* @default null
|
|
119
|
+
*/
|
|
120
|
+
readonly status: import("@angular/core").InputSignal<WrFileUploadStatusMap | null>;
|
|
121
|
+
/**
|
|
122
|
+
* Show a thumbnail beside each image file. The thumbnail is an object URL,
|
|
123
|
+
* revoked when its file leaves the list or the component is destroyed. Browser
|
|
124
|
+
* only: nothing is created on the server.
|
|
125
|
+
*
|
|
126
|
+
* @default false
|
|
127
|
+
*/
|
|
128
|
+
readonly previews: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
129
|
+
/**
|
|
130
|
+
* Take files pasted with Ctrl/Cmd+V while the drop zone has focus. They go
|
|
131
|
+
* through the same `accept`, `maxSize` and `maxFiles` rules as a drop. A paste
|
|
132
|
+
* that carries no file is left alone.
|
|
133
|
+
*
|
|
134
|
+
* @default false
|
|
135
|
+
*/
|
|
136
|
+
readonly acceptPaste: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
70
137
|
/** The surrounding `<wr-form-field>`'s error state. @internal */
|
|
71
138
|
protected readonly fieldAria: import("ngwr/form").WrFormFieldAria;
|
|
72
139
|
/** id of the zone's visible copy, which names it. @internal */
|
|
@@ -97,9 +164,23 @@ export declare class WrFileUpload implements FormValueControl<File | readonly Fi
|
|
|
97
164
|
readonly dropZoneLabel: import("@angular/core").InputSignal<string | null>;
|
|
98
165
|
/** Remove-file button aria-label. Falls back to `fileUpload.removeFile`. */
|
|
99
166
|
readonly removeFileLabel: import("@angular/core").InputSignal<string | null>;
|
|
167
|
+
/** Retry button text on a failed row. Falls back to `fileUpload.retry`. */
|
|
168
|
+
readonly retryLabel: import("@angular/core").InputSignal<string | null>;
|
|
169
|
+
/** Name of the `uploading` state: the progress bar's name and the announcement. Falls back to `fileUpload.uploading`. */
|
|
170
|
+
readonly uploadingLabel: import("@angular/core").InputSignal<string | null>;
|
|
171
|
+
/** Name of the `done` state: the mark's name and the announcement. Falls back to `fileUpload.uploaded`. */
|
|
172
|
+
readonly uploadedLabel: import("@angular/core").InputSignal<string | null>;
|
|
173
|
+
/** Text of a failed row whose status carries no `message`. Falls back to `fileUpload.failed`. */
|
|
174
|
+
readonly failedLabel: import("@angular/core").InputSignal<string | null>;
|
|
100
175
|
protected readonly resolvedPick: import("@angular/core").Signal<string>;
|
|
101
176
|
protected readonly resolvedDrop: import("@angular/core").Signal<string>;
|
|
102
177
|
protected readonly resolvedRemove: import("@angular/core").Signal<string>;
|
|
178
|
+
protected readonly resolvedRetry: import("@angular/core").Signal<string>;
|
|
179
|
+
protected readonly resolvedUploading: import("@angular/core").Signal<string>;
|
|
180
|
+
protected readonly resolvedUploaded: import("@angular/core").Signal<string>;
|
|
181
|
+
protected readonly resolvedFailed: import("@angular/core").Signal<string>;
|
|
182
|
+
/** `{{name}}: {{status}}`: a state said about one file. */
|
|
183
|
+
protected readonly statusText: (params?: import("ngwr/i18n").WrI18nParams) => string;
|
|
103
184
|
/** Optional helper text shown below the labels (e.g. accepted formats). */
|
|
104
185
|
readonly helperText: import("@angular/core").InputSignal<string>;
|
|
105
186
|
/**
|
|
@@ -109,6 +190,8 @@ export declare class WrFileUpload implements FormValueControl<File | readonly Fi
|
|
|
109
190
|
readonly value: import("@angular/core").ModelSignal<File | readonly File[] | null>;
|
|
110
191
|
/** Emitted when files are rejected for type / size / count reasons. */
|
|
111
192
|
readonly rejected: import("@angular/core").OutputEmitterRef<readonly WrFileUploadRejection[]>;
|
|
193
|
+
/** Emitted with the file when the retry button of a failed row is pressed. */
|
|
194
|
+
readonly retry: import("@angular/core").OutputEmitterRef<File>;
|
|
112
195
|
/** Emitted on commit so a bound field can mark itself touched. */
|
|
113
196
|
readonly touch: import("@angular/core").OutputEmitterRef<void>;
|
|
114
197
|
protected readonly picker: import("@angular/core").Signal<ElementRef<HTMLInputElement>>;
|
|
@@ -125,6 +208,18 @@ export declare class WrFileUpload implements FormValueControl<File | readonly Fi
|
|
|
125
208
|
private dragDepth;
|
|
126
209
|
private readonly host;
|
|
127
210
|
private readonly injector;
|
|
211
|
+
private readonly browser;
|
|
212
|
+
/** id prefix of the file names, which describe each row's retry button. @internal */
|
|
213
|
+
protected readonly nameId: string;
|
|
214
|
+
/** The object URL of each previewed image file. */
|
|
215
|
+
private readonly previewUrls;
|
|
216
|
+
protected readonly rows: import("@angular/core").Signal<readonly FileRow[]>;
|
|
217
|
+
/** `aria-busy` on the list: at least one file is uploading. */
|
|
218
|
+
protected readonly busy: import("@angular/core").Signal<boolean>;
|
|
219
|
+
/** What the one live region says: the states that changed in the last `[status]` write. */
|
|
220
|
+
protected readonly announcement: import("@angular/core").WritableSignal<string>;
|
|
221
|
+
/** The state each file had at the last `[status]` write, to tell a change from a percent tick. */
|
|
222
|
+
private lastStates;
|
|
128
223
|
protected readonly classes: import("@angular/core").Signal<string>;
|
|
129
224
|
/**
|
|
130
225
|
* Human-readable file size (e.g. `1.2 MB`).
|
|
@@ -173,8 +268,19 @@ export declare class WrFileUpload implements FormValueControl<File | readonly Fi
|
|
|
173
268
|
protected onDragOver(event: DragEvent): void;
|
|
174
269
|
protected onDragLeave(): void;
|
|
175
270
|
protected onDrop(event: DragEvent): void;
|
|
271
|
+
protected onPaste(event: ClipboardEvent): void;
|
|
272
|
+
protected onRetry(file: File, index: number): void;
|
|
176
273
|
protected removeAt(index: number): void;
|
|
177
274
|
private acceptFiles;
|
|
275
|
+
/**
|
|
276
|
+
* Say each state a file has just entered, in one string. `pending` is the
|
|
277
|
+
* resting state and a percent tick is not a change, so neither is said, and
|
|
278
|
+
* the states present when `[status]` is first bound are a starting point
|
|
279
|
+
* rather than news.
|
|
280
|
+
*/
|
|
281
|
+
private announce;
|
|
282
|
+
/** Hold one object URL per file in `images`, and revoke the ones that left. */
|
|
283
|
+
private syncPreviews;
|
|
178
284
|
private reject;
|
|
179
285
|
private emit;
|
|
180
286
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrFileUpload, never>;
|
|
@@ -189,6 +295,11 @@ export declare class WrFileUpload implements FormValueControl<File | readonly Fi
|
|
|
189
295
|
"required": false;
|
|
190
296
|
"isSignal": true;
|
|
191
297
|
};
|
|
298
|
+
"size": {
|
|
299
|
+
"alias": "size";
|
|
300
|
+
"required": false;
|
|
301
|
+
"isSignal": true;
|
|
302
|
+
};
|
|
192
303
|
"maxSize": {
|
|
193
304
|
"alias": "maxSize";
|
|
194
305
|
"required": false;
|
|
@@ -214,6 +325,21 @@ export declare class WrFileUpload implements FormValueControl<File | readonly Fi
|
|
|
214
325
|
"required": false;
|
|
215
326
|
"isSignal": true;
|
|
216
327
|
};
|
|
328
|
+
"status": {
|
|
329
|
+
"alias": "status";
|
|
330
|
+
"required": false;
|
|
331
|
+
"isSignal": true;
|
|
332
|
+
};
|
|
333
|
+
"previews": {
|
|
334
|
+
"alias": "previews";
|
|
335
|
+
"required": false;
|
|
336
|
+
"isSignal": true;
|
|
337
|
+
};
|
|
338
|
+
"acceptPaste": {
|
|
339
|
+
"alias": "acceptPaste";
|
|
340
|
+
"required": false;
|
|
341
|
+
"isSignal": true;
|
|
342
|
+
};
|
|
217
343
|
"pickLabel": {
|
|
218
344
|
"alias": "pickLabel";
|
|
219
345
|
"required": false;
|
|
@@ -234,6 +360,26 @@ export declare class WrFileUpload implements FormValueControl<File | readonly Fi
|
|
|
234
360
|
"required": false;
|
|
235
361
|
"isSignal": true;
|
|
236
362
|
};
|
|
363
|
+
"retryLabel": {
|
|
364
|
+
"alias": "retryLabel";
|
|
365
|
+
"required": false;
|
|
366
|
+
"isSignal": true;
|
|
367
|
+
};
|
|
368
|
+
"uploadingLabel": {
|
|
369
|
+
"alias": "uploadingLabel";
|
|
370
|
+
"required": false;
|
|
371
|
+
"isSignal": true;
|
|
372
|
+
};
|
|
373
|
+
"uploadedLabel": {
|
|
374
|
+
"alias": "uploadedLabel";
|
|
375
|
+
"required": false;
|
|
376
|
+
"isSignal": true;
|
|
377
|
+
};
|
|
378
|
+
"failedLabel": {
|
|
379
|
+
"alias": "failedLabel";
|
|
380
|
+
"required": false;
|
|
381
|
+
"isSignal": true;
|
|
382
|
+
};
|
|
237
383
|
"helperText": {
|
|
238
384
|
"alias": "helperText";
|
|
239
385
|
"required": false;
|
|
@@ -247,7 +393,8 @@ export declare class WrFileUpload implements FormValueControl<File | readonly Fi
|
|
|
247
393
|
}, {
|
|
248
394
|
"value": "valueChange";
|
|
249
395
|
"rejected": "rejected";
|
|
396
|
+
"retry": "retry";
|
|
250
397
|
"touch": "touch";
|
|
251
398
|
}, never, never, true, never>;
|
|
252
399
|
}
|
|
253
|
-
export type { WrFileUploadRejection, WrFileUploadRejectionReason };
|
|
400
|
+
export type { WrFileUploadRejection, WrFileUploadRejectionReason, WrFileUploadSize, WrFileUploadState, WrFileUploadStatus, WrFileUploadStatusMap };
|
package/types/ngwr-form.d.ts
CHANGED
|
@@ -437,13 +437,27 @@ export declare function useFormFieldAria(options?: {
|
|
|
437
437
|
* `[required]` binding on a field-bound control (NG8022), so the second source
|
|
438
438
|
* of truth is a compile error rather than a drift.
|
|
439
439
|
*/
|
|
440
|
-
type WrFieldKind = 'input' | 'textarea' | 'number' | 'select' | 'checkbox' | 'switch' | 'radio' | 'date' | 'slider';
|
|
440
|
+
type WrFieldKind = 'input' | 'textarea' | 'number' | 'select' | 'multiselect' | 'tags' | 'checkbox' | 'switch' | 'radio' | 'segmented' | 'date' | 'daterange' | 'slider' | 'rating' | 'file' | 'array';
|
|
441
441
|
/** One choice, for the kinds that offer a list. */
|
|
442
442
|
interface WrFieldOption {
|
|
443
443
|
readonly value: unknown;
|
|
444
444
|
readonly label: string;
|
|
445
445
|
readonly disabled?: boolean;
|
|
446
446
|
}
|
|
447
|
+
/**
|
|
448
|
+
* A titled group of fields, drawn as a `<fieldset>` with a `<legend>`.
|
|
449
|
+
*
|
|
450
|
+
* Fields that name the same `title` are drawn together, where the first of them
|
|
451
|
+
* stands in the model's key order. The description and the column count come
|
|
452
|
+
* from the first field that states them.
|
|
453
|
+
*/
|
|
454
|
+
interface WrFieldSection {
|
|
455
|
+
readonly title: string;
|
|
456
|
+
/** A line under the title, announced as the group's description. */
|
|
457
|
+
readonly description?: string;
|
|
458
|
+
/** Grid columns inside the section. Defaults to the form's own `columns`. */
|
|
459
|
+
readonly columns?: number;
|
|
460
|
+
}
|
|
447
461
|
/**
|
|
448
462
|
* The presentation of one field.
|
|
449
463
|
*
|
|
@@ -458,7 +472,7 @@ interface WrFieldSpec {
|
|
|
458
472
|
readonly placeholder?: string;
|
|
459
473
|
/** Help text under the control. Errors replace it while the field is invalid. */
|
|
460
474
|
readonly hint?: string;
|
|
461
|
-
/** For `select` and `
|
|
475
|
+
/** For `select`, `multiselect`, `radio` and `segmented`. Ignored by every other kind. */
|
|
462
476
|
readonly options?: readonly WrFieldOption[];
|
|
463
477
|
/** Native `type` for `kind: 'input'` — `email`, `password`, `url`, `tel`. */
|
|
464
478
|
readonly type?: string;
|
|
@@ -476,6 +490,30 @@ interface WrFieldSpec {
|
|
|
476
490
|
* wider.
|
|
477
491
|
*/
|
|
478
492
|
readonly span?: number;
|
|
493
|
+
/**
|
|
494
|
+
* The section this field is drawn in: a title, or a title with a description
|
|
495
|
+
* and its own column count. A field with none is drawn straight on the form's
|
|
496
|
+
* grid.
|
|
497
|
+
*/
|
|
498
|
+
readonly section?: string | WrFieldSection;
|
|
499
|
+
/** For `file`: accept several files, so the field holds `File[]` rather than `File | null`. */
|
|
500
|
+
readonly multiple?: boolean;
|
|
501
|
+
/** For `file`: the native `accept` list, e.g. `'image/*,.pdf'`. */
|
|
502
|
+
readonly accept?: string;
|
|
503
|
+
/**
|
|
504
|
+
* For `array`: the value a new item starts as. It is what draws the Add
|
|
505
|
+
* button, and an array with no `item` is a fixed list whose items can only be
|
|
506
|
+
* removed. Describe the item's own fields with `applyEach(path.x, item => …)`,
|
|
507
|
+
* and bound the list with `minLength` and `maxLength` on the array itself.
|
|
508
|
+
*/
|
|
509
|
+
readonly item?: () => unknown;
|
|
510
|
+
/**
|
|
511
|
+
* For `array`: what one item is called, numbered in the item's heading:
|
|
512
|
+
* "Address 2". Defaults to the field's label.
|
|
513
|
+
*/
|
|
514
|
+
readonly itemLabel?: string;
|
|
515
|
+
/** For `array`: grid columns inside each item. Defaults to 1. */
|
|
516
|
+
readonly columns?: number;
|
|
479
517
|
}
|
|
480
518
|
/**
|
|
481
519
|
* The metadata key `<wr-schema-form>` reads.
|
|
@@ -486,6 +524,12 @@ interface WrFieldSpec {
|
|
|
486
524
|
* email(path.email, { message: 'That is not an email address.' });
|
|
487
525
|
* metadata(path.email, WR_FIELD, () => ({ kind: 'input', type: 'email', label: 'Work email' }));
|
|
488
526
|
* metadata(path.role, WR_FIELD, () => ({ kind: 'select', options: ROLES }));
|
|
527
|
+
*
|
|
528
|
+
* // A repeating group: the array is described once, its items through `applyEach`.
|
|
529
|
+
* metadata(path.addresses, WR_FIELD, () => ({ kind: 'array', item: () => ({ city: '' }) }));
|
|
530
|
+
* applyEach(path.addresses, item => {
|
|
531
|
+
* metadata(item.city, WR_FIELD, () => ({ kind: 'input' }));
|
|
532
|
+
* });
|
|
489
533
|
* });
|
|
490
534
|
* ```
|
|
491
535
|
*
|
|
@@ -495,4 +539,4 @@ interface WrFieldSpec {
|
|
|
495
539
|
export declare const WR_FIELD: import("@angular/forms/signals").MetadataKey<import("@angular/core").Signal<WrFieldSpec | undefined>, WrFieldSpec, WrFieldSpec | undefined>;
|
|
496
540
|
/** `workEmail` -> `Work email`. The fallback label, and only ever a fallback. */
|
|
497
541
|
export declare function wrFieldLabel(key: string): string;
|
|
498
|
-
export type { WrFieldKind, WrFieldOption, WrFieldSpec, WrFormFieldAria, WrFormFieldContext };
|
|
542
|
+
export type { WrFieldKind, WrFieldOption, WrFieldSection, WrFieldSpec, WrFormFieldAria, WrFormFieldContext };
|