ngwr 16.2.0 → 16.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/badge/styles/_tag.scss +73 -1
- package/calendar/styles/_index.scss +22 -0
- package/carousel/styles/_index.scss +53 -1
- package/cascader/styles/_rules.scss +7 -0
- package/color-picker/styles/_index.scss +21 -0
- package/date-picker/styles/_index.scss +19 -0
- package/dropdown/styles/_index.scss +13 -19
- package/fesm2022/ngwr-affix.mjs +3 -3
- package/fesm2022/ngwr-alert-testing.mjs +70 -0
- package/fesm2022/ngwr-alert-testing.mjs.map +1 -0
- package/fesm2022/ngwr-alert.mjs +3 -3
- package/fesm2022/ngwr-anchor.mjs +17 -6
- package/fesm2022/ngwr-anchor.mjs.map +1 -1
- package/fesm2022/ngwr-animations-aurora.mjs +3 -3
- package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-click-sparks.mjs +3 -3
- package/fesm2022/ngwr-animations-confetti.mjs +3 -3
- package/fesm2022/ngwr-animations-decode.mjs +3 -3
- package/fesm2022/ngwr-animations-destruct.mjs +3 -3
- package/fesm2022/ngwr-animations-dot-grid.mjs +3 -3
- package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
- package/fesm2022/ngwr-animations-flow-lines.mjs +3 -3
- package/fesm2022/ngwr-animations-fluid-cursor.mjs +3 -3
- package/fesm2022/ngwr-animations-glitch.mjs +3 -3
- package/fesm2022/ngwr-animations-glow-border.mjs +3 -3
- package/fesm2022/ngwr-animations-gradient-flow.mjs +3 -3
- package/fesm2022/ngwr-animations-marquee.mjs +3 -3
- package/fesm2022/ngwr-animations-orbit.mjs +3 -3
- package/fesm2022/ngwr-animations-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-ripple-grid.mjs +3 -3
- package/fesm2022/ngwr-animations-rotate-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-shimmer.mjs +3 -3
- package/fesm2022/ngwr-animations-spotlight.mjs +3 -3
- package/fesm2022/ngwr-animations-thread-lines.mjs +3 -3
- package/fesm2022/ngwr-animations-tilt.mjs +3 -3
- package/fesm2022/ngwr-animations-typewriter.mjs +3 -3
- package/fesm2022/ngwr-avatar.mjs +3 -3
- package/fesm2022/ngwr-back-top.mjs +3 -3
- package/fesm2022/ngwr-badge.mjs +129 -11
- package/fesm2022/ngwr-badge.mjs.map +1 -1
- package/fesm2022/ngwr-breadcrumbs-testing.mjs +83 -0
- package/fesm2022/ngwr-breadcrumbs-testing.mjs.map +1 -0
- package/fesm2022/ngwr-breadcrumbs.mjs +8 -8
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-burger-testing.mjs +45 -0
- package/fesm2022/ngwr-burger-testing.mjs.map +1 -0
- package/fesm2022/ngwr-burger.mjs +3 -3
- package/fesm2022/ngwr-button.mjs +6 -6
- package/fesm2022/ngwr-calendar-testing.mjs +18 -0
- package/fesm2022/ngwr-calendar-testing.mjs.map +1 -1
- package/fesm2022/ngwr-calendar.mjs +500 -73
- package/fesm2022/ngwr-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-card.mjs +9 -9
- package/fesm2022/ngwr-carousel-testing.mjs +24 -1
- package/fesm2022/ngwr-carousel-testing.mjs.map +1 -1
- package/fesm2022/ngwr-carousel.mjs +73 -10
- package/fesm2022/ngwr-carousel.mjs.map +1 -1
- package/fesm2022/ngwr-cascader.mjs +45 -37
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart.mjs +5 -4
- package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-boxplot-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-bullet-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -3
- package/fesm2022/ngwr-charts-candlestick-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-chart-legend.mjs +26 -11
- package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
- package/fesm2022/ngwr-charts-core.mjs +3 -3
- package/fesm2022/ngwr-charts-donut-chart.mjs +5 -4
- package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-funnel-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-gauge.mjs +3 -3
- package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-line-chart-testing.mjs +3 -2
- package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-line-chart.mjs +17 -7
- package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group.mjs +5 -4
- package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart.mjs +5 -4
- package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-scatter-chart.mjs +5 -4
- package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-sparkline.mjs +3 -3
- package/fesm2022/ngwr-charts-treemap-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-waterfall-chart.mjs +3 -3
- package/fesm2022/ngwr-checkbox.mjs +6 -6
- package/fesm2022/ngwr-clipboard.mjs +3 -3
- package/fesm2022/ngwr-collapse.mjs +9 -9
- package/fesm2022/ngwr-color-picker-testing.mjs +11 -1
- package/fesm2022/ngwr-color-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker.mjs +153 -37
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-command-palette.mjs +3 -3
- package/fesm2022/ngwr-comment.mjs +10 -6
- package/fesm2022/ngwr-comment.mjs.map +1 -1
- package/fesm2022/ngwr-compare-testing.mjs +84 -0
- package/fesm2022/ngwr-compare-testing.mjs.map +1 -0
- package/fesm2022/ngwr-compare.mjs +3 -3
- package/fesm2022/ngwr-context-menu.mjs +28 -13
- package/fesm2022/ngwr-context-menu.mjs.map +1 -1
- package/fesm2022/ngwr-cookie.mjs +3 -3
- package/fesm2022/ngwr-copy-value.mjs +3 -3
- package/fesm2022/ngwr-counter.mjs +6 -6
- package/fesm2022/ngwr-date-picker-testing.mjs +30 -4
- package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +342 -69
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp.mjs +3 -3
- package/fesm2022/ngwr-date.mjs +59 -8
- package/fesm2022/ngwr-date.mjs.map +1 -1
- package/fesm2022/ngwr-density.mjs +6 -6
- package/fesm2022/ngwr-descriptions.mjs +6 -6
- package/fesm2022/ngwr-dialog.mjs +18 -18
- package/fesm2022/ngwr-directives.mjs +15 -15
- package/fesm2022/ngwr-divider.mjs +3 -3
- package/fesm2022/ngwr-drawer.mjs +51 -29
- package/fesm2022/ngwr-drawer.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown-testing.mjs +11 -3
- package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +70 -99
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +4 -3
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-empty.mjs +3 -3
- package/fesm2022/ngwr-event-calendar.mjs +186 -33
- package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload-testing.mjs +34 -2
- package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload.mjs +279 -16
- package/fesm2022/ngwr-file-upload.mjs.map +1 -1
- package/fesm2022/ngwr-form.mjs +9 -9
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-graph-testing.mjs +30 -0
- package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
- package/fesm2022/ngwr-graph.mjs +664 -43
- package/fesm2022/ngwr-graph.mjs.map +1 -1
- package/fesm2022/ngwr-hotkey.mjs +6 -6
- package/fesm2022/ngwr-i18n-ar.mjs +27 -8
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +27 -8
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +27 -8
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +27 -8
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +27 -8
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +27 -8
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +27 -8
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +27 -8
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +27 -8
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +27 -8
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +27 -8
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +27 -8
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +27 -8
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +27 -8
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +27 -8
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +27 -8
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +27 -8
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +27 -8
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +27 -8
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +27 -8
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +27 -8
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +27 -8
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +9 -9
- package/fesm2022/ngwr-icon.mjs +6 -6
- package/fesm2022/ngwr-image-cropper.mjs +3 -3
- package/fesm2022/ngwr-input-number-testing.mjs +11 -0
- package/fesm2022/ngwr-input-number-testing.mjs.map +1 -1
- package/fesm2022/ngwr-input-number.mjs +68 -7
- package/fesm2022/ngwr-input-number.mjs.map +1 -1
- package/fesm2022/ngwr-input-otp.mjs +23 -3
- package/fesm2022/ngwr-input-otp.mjs.map +1 -1
- package/fesm2022/ngwr-input-testing.mjs +24 -1
- package/fesm2022/ngwr-input-testing.mjs.map +1 -1
- package/fesm2022/ngwr-input.mjs +152 -36
- package/fesm2022/ngwr-input.mjs.map +1 -1
- package/fesm2022/ngwr-keyboard.mjs +3 -3
- package/fesm2022/ngwr-knob.mjs +3 -3
- package/fesm2022/ngwr-layout.mjs +15 -15
- package/fesm2022/ngwr-lightbox.mjs +8 -8
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +8 -8
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-load-state.mjs +15 -15
- package/fesm2022/ngwr-loading-bar.mjs +6 -6
- package/fesm2022/ngwr-mention.mjs +6 -6
- package/fesm2022/ngwr-meta.mjs +6 -6
- package/fesm2022/ngwr-overlay.mjs +175 -13
- package/fesm2022/ngwr-overlay.mjs.map +1 -1
- package/fesm2022/ngwr-page-header.mjs +3 -3
- package/fesm2022/ngwr-pagination.mjs +6 -3
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +31 -29
- package/fesm2022/ngwr-pipes.mjs.map +1 -1
- package/fesm2022/ngwr-platform.mjs +9 -9
- package/fesm2022/ngwr-popconfirm-testing.mjs +5 -2
- package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm.mjs +44 -63
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-popover-testing.mjs +7 -1
- package/fesm2022/ngwr-popover-testing.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +58 -156
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-progress.mjs +50 -9
- package/fesm2022/ngwr-progress.mjs.map +1 -1
- package/fesm2022/ngwr-pull-to-refresh-testing.mjs +57 -0
- package/fesm2022/ngwr-pull-to-refresh-testing.mjs.map +1 -0
- package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
- package/fesm2022/ngwr-qr.mjs +3 -3
- package/fesm2022/ngwr-radio.mjs +6 -6
- package/fesm2022/ngwr-rating.mjs +3 -3
- package/fesm2022/ngwr-resizable-testing.mjs +113 -0
- package/fesm2022/ngwr-resizable-testing.mjs.map +1 -0
- package/fesm2022/ngwr-resizable.mjs +3 -3
- package/fesm2022/ngwr-result.mjs +12 -12
- package/fesm2022/ngwr-schema-form-testing.mjs +336 -0
- package/fesm2022/ngwr-schema-form-testing.mjs.map +1 -0
- package/fesm2022/ngwr-schema-form.mjs +416 -19
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-scroll.mjs +3 -3
- package/fesm2022/ngwr-segmented.mjs +3 -3
- package/fesm2022/ngwr-select-testing.mjs +19 -0
- package/fesm2022/ngwr-select-testing.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +361 -84
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-sidebar-testing.mjs +176 -0
- package/fesm2022/ngwr-sidebar-testing.mjs.map +1 -0
- package/fesm2022/ngwr-sidebar.mjs +3 -3
- package/fesm2022/ngwr-skeleton.mjs +3 -3
- package/fesm2022/ngwr-slider-testing.mjs +6 -0
- package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
- package/fesm2022/ngwr-slider.mjs +21 -3
- package/fesm2022/ngwr-slider.mjs.map +1 -1
- package/fesm2022/ngwr-sortable-list.mjs +29 -12
- package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
- package/fesm2022/ngwr-speed-dial.mjs +3 -3
- package/fesm2022/ngwr-spinner.mjs +3 -3
- package/fesm2022/ngwr-splitter.mjs +3 -3
- package/fesm2022/ngwr-statistic.mjs +9 -9
- package/fesm2022/ngwr-stepper.mjs +42 -11
- package/fesm2022/ngwr-stepper.mjs.map +1 -1
- package/fesm2022/ngwr-storage.mjs +3 -3
- package/fesm2022/ngwr-switch.mjs +3 -3
- package/fesm2022/ngwr-table-testing.mjs +157 -3
- package/fesm2022/ngwr-table-testing.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +1051 -74
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tabs-router.mjs +3 -3
- package/fesm2022/ngwr-tabs-testing.mjs +1 -1
- package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tabs.mjs +15 -10
- package/fesm2022/ngwr-tabs.mjs.map +1 -1
- package/fesm2022/ngwr-textarea-testing.mjs +11 -0
- package/fesm2022/ngwr-textarea-testing.mjs.map +1 -1
- package/fesm2022/ngwr-textarea.mjs +128 -16
- package/fesm2022/ngwr-textarea.mjs.map +1 -1
- package/fesm2022/ngwr-theme.mjs +3 -3
- package/fesm2022/ngwr-timeline.mjs +6 -6
- package/fesm2022/ngwr-toast.mjs +40 -19
- package/fesm2022/ngwr-toast.mjs.map +1 -1
- package/fesm2022/ngwr-toolbar.mjs +3 -3
- package/fesm2022/ngwr-tour-testing.mjs +13 -1
- package/fesm2022/ngwr-tour-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tour.mjs +19 -15
- package/fesm2022/ngwr-tour.mjs.map +1 -1
- package/fesm2022/ngwr-transfer-testing.mjs +6 -0
- package/fesm2022/ngwr-transfer-testing.mjs.map +1 -1
- package/fesm2022/ngwr-transfer.mjs +24 -5
- package/fesm2022/ngwr-transfer.mjs.map +1 -1
- package/fesm2022/ngwr-tree-testing.mjs +62 -2
- package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +978 -79
- package/fesm2022/ngwr-tree.mjs.map +1 -1
- package/fesm2022/ngwr-typography.mjs +3 -3
- package/fesm2022/ngwr-utils-router.mjs +3 -3
- package/fesm2022/ngwr-utils.mjs +97 -1
- package/fesm2022/ngwr-utils.mjs.map +1 -1
- package/fesm2022/ngwr-version.mjs +1 -1
- package/fesm2022/ngwr-version.mjs.map +1 -1
- package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
- package/fesm2022/ngwr-window.mjs +33 -22
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/file-upload/styles/_index.scss +156 -0
- package/graph/styles/_index.scss +87 -0
- package/i18n/ar.json +29 -8
- package/i18n/cs.json +29 -8
- package/i18n/de.json +29 -8
- package/i18n/en.json +29 -8
- package/i18n/es.json +29 -8
- package/i18n/fr.json +29 -8
- package/i18n/he.json +29 -8
- package/i18n/hi.json +29 -8
- package/i18n/id.json +29 -8
- package/i18n/it.json +29 -8
- package/i18n/ja.json +29 -8
- package/i18n/ko.json +29 -8
- package/i18n/nl.json +29 -8
- package/i18n/pl.json +29 -8
- package/i18n/pt.json +29 -8
- package/i18n/ru.json +29 -8
- package/i18n/sv.json +29 -8
- package/i18n/tr.json +29 -8
- package/i18n/uk.json +29 -8
- package/i18n/vi.json +29 -8
- package/i18n/zh-TW.json +29 -8
- package/i18n/zh.json +29 -8
- package/input/styles/_index.scss +68 -1
- package/input-otp/styles/_index.scss +14 -0
- package/llms-full.txt +53 -21
- package/llms.txt +57 -24
- package/overlay/styles/_arrow.scss +4 -4
- package/package.json +33 -1
- package/popconfirm/styles/_index.scss +3 -11
- package/progress/styles/_index.scss +32 -0
- package/schema-form/styles/_index.scss +78 -0
- package/schematics/collection.json +5 -0
- package/schematics/eject/index.js +158 -0
- package/schematics/eject/schema.js +8 -0
- package/schematics/eject/schema.json +24 -0
- package/schematics/eject/source.js +295 -0
- package/schematics/use/rule.js +2 -0
- package/schematics/use/symbol-map.json +5 -0
- package/select/styles/_index.scss +127 -22
- package/skills/ngwr/SKILL.md +31 -4
- package/skills/ngwr/references/catalog.md +9 -1
- package/slider/styles/_index.scss +22 -0
- package/table/styles/_index.scss +191 -3
- package/textarea/styles/_index.scss +80 -0
- package/theme/styles/_focus.scss +16 -1
- package/theme/styles/_motion.scss +5 -0
- package/transfer/styles/_index.scss +84 -0
- package/tree/styles/_index.scss +138 -5
- package/types/ngwr-alert-testing.d.ts +88 -0
- package/types/ngwr-badge.d.ts +72 -2
- package/types/ngwr-breadcrumbs-testing.d.ts +92 -0
- package/types/ngwr-burger-testing.d.ts +51 -0
- package/types/ngwr-calendar-testing.d.ts +18 -6
- package/types/ngwr-calendar.d.ts +272 -22
- package/types/ngwr-carousel-testing.d.ts +27 -6
- package/types/ngwr-carousel.d.ts +42 -6
- package/types/ngwr-cascader.d.ts +13 -6
- package/types/ngwr-charts-chart-legend.d.ts +9 -4
- package/types/ngwr-charts-line-chart-testing.d.ts +4 -1
- package/types/ngwr-charts-line-chart.d.ts +7 -4
- package/types/ngwr-color-picker-testing.d.ts +15 -4
- package/types/ngwr-color-picker.d.ts +76 -6
- package/types/ngwr-compare-testing.d.ts +72 -0
- package/types/ngwr-context-menu.d.ts +2 -0
- package/types/ngwr-date-picker-testing.d.ts +23 -8
- package/types/ngwr-date-picker.d.ts +100 -9
- package/types/ngwr-date.d.ts +71 -1
- package/types/ngwr-drawer.d.ts +9 -0
- package/types/ngwr-dropdown-testing.d.ts +20 -0
- package/types/ngwr-dropdown.d.ts +26 -6
- package/types/ngwr-event-calendar.d.ts +66 -8
- package/types/ngwr-file-upload-testing.d.ts +31 -2
- package/types/ngwr-file-upload.d.ts +156 -3
- package/types/ngwr-form.d.ts +47 -3
- package/types/ngwr-graph-testing.d.ts +36 -3
- package/types/ngwr-graph.d.ts +309 -13
- package/types/ngwr-input-number-testing.d.ts +10 -0
- package/types/ngwr-input-number.d.ts +30 -1
- package/types/ngwr-input-otp.d.ts +10 -0
- package/types/ngwr-input-testing.d.ts +30 -0
- package/types/ngwr-input.d.ts +54 -3
- package/types/ngwr-overlay.d.ts +84 -5
- package/types/ngwr-pipes.d.ts +2 -1
- package/types/ngwr-popconfirm-testing.d.ts +12 -3
- package/types/ngwr-popconfirm.d.ts +28 -3
- package/types/ngwr-popover-testing.d.ts +19 -2
- package/types/ngwr-popover.d.ts +22 -2
- package/types/ngwr-progress.d.ts +29 -1
- package/types/ngwr-pull-to-refresh-testing.d.ts +83 -0
- package/types/ngwr-resizable-testing.d.ts +116 -0
- package/types/ngwr-schema-form-testing.d.ts +260 -0
- package/types/ngwr-schema-form.d.ts +76 -6
- package/types/ngwr-select-testing.d.ts +20 -0
- package/types/ngwr-select.d.ts +149 -11
- package/types/ngwr-sidebar-testing.d.ts +176 -0
- package/types/ngwr-slider-testing.d.ts +3 -1
- package/types/ngwr-slider.d.ts +21 -1
- package/types/ngwr-sortable-list.d.ts +6 -0
- package/types/ngwr-stepper.d.ts +20 -11
- package/types/ngwr-table-testing.d.ts +122 -7
- package/types/ngwr-table.d.ts +572 -50
- package/types/ngwr-tabs-testing.d.ts +14 -17
- package/types/ngwr-tabs.d.ts +6 -0
- package/types/ngwr-textarea-testing.d.ts +10 -0
- package/types/ngwr-textarea.d.ts +48 -2
- package/types/ngwr-toast.d.ts +8 -1
- package/types/ngwr-tour-testing.d.ts +10 -0
- package/types/ngwr-tour.d.ts +11 -2
- package/types/ngwr-transfer-testing.d.ts +3 -0
- package/types/ngwr-transfer.d.ts +24 -1
- package/types/ngwr-tree-testing.d.ts +65 -1
- package/types/ngwr-tree.d.ts +335 -12
- package/types/ngwr-utils.d.ts +107 -1
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr-window.d.ts +7 -4
package/types/ngwr-date.d.ts
CHANGED
|
@@ -24,6 +24,28 @@ import { WrFeature } from "ngwr/utils";
|
|
|
24
24
|
* implementation for the supported tokens (`yyyy`, `MM`, `dd`, `HH`, …).
|
|
25
25
|
*/
|
|
26
26
|
type WrDateFormat = 'shortDate' | 'mediumDate' | 'longDate' | 'time' | 'time12h' | 'time24h' | 'timeSeconds' | 'time12hSeconds' | 'time24hSeconds' | 'shortDateTime' | 'shortDateTime12h' | 'shortDateTime24h' | 'shortDateTimeSeconds' | 'shortDateTime12hSeconds' | 'shortDateTime24hSeconds' | 'mediumDateTime';
|
|
27
|
+
/**
|
|
28
|
+
* @license
|
|
29
|
+
*
|
|
30
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
31
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* A span of days a date can stand for: the week, month, quarter or year it is
|
|
35
|
+
* in. `wrPeriodStart` and `wrPeriodEnd` give its two ends, and the period modes
|
|
36
|
+
* of `<wr-date-picker>` hold its first day.
|
|
37
|
+
*/
|
|
38
|
+
type WrDatePeriod = 'week' | 'month' | 'quarter' | 'year';
|
|
39
|
+
/** A week of the year: its number, and the year that number counts in. */
|
|
40
|
+
interface WrWeekOfYear {
|
|
41
|
+
/** 1 to 53. */
|
|
42
|
+
readonly week: number;
|
|
43
|
+
/**
|
|
44
|
+
* The year the week belongs to, which near 1 January is not always the
|
|
45
|
+
* year of the date: 29 December 2025 is in week 1 of 2026.
|
|
46
|
+
*/
|
|
47
|
+
readonly year: number;
|
|
48
|
+
}
|
|
27
49
|
/**
|
|
28
50
|
* What a number counts since the epoch: milliseconds, microseconds or seconds.
|
|
29
51
|
*
|
|
@@ -517,6 +539,54 @@ export declare function wrToLocalDate(value: string | number): Date;
|
|
|
517
539
|
* @see https://ngwr.dev/reference/pipes/wr-date
|
|
518
540
|
*/
|
|
519
541
|
export declare function wrParseDate(value: Date | string | number | null | undefined, options?: WrParseDateOptions): Date | null;
|
|
542
|
+
/**
|
|
543
|
+
* The first day of the week, month, quarter or year `date` is in, at the
|
|
544
|
+
* adapter's start of day.
|
|
545
|
+
*
|
|
546
|
+
* A week starts on the adapter's `getFirstDayOfWeek()`, so it follows the
|
|
547
|
+
* locale. Quarters are calendar quarters: January, April, July and October
|
|
548
|
+
* open them.
|
|
549
|
+
*
|
|
550
|
+
* @example
|
|
551
|
+
* ```ts
|
|
552
|
+
* wrPeriodStart(adapter, new Date(2026, 4, 20), 'quarter'); // 1 April 2026
|
|
553
|
+
* ```
|
|
554
|
+
*/
|
|
555
|
+
export declare function wrPeriodStart<TDate>(adapter: WrDateAdapter<TDate>, date: TDate, period: WrDatePeriod): TDate;
|
|
556
|
+
/**
|
|
557
|
+
* The last day of the week, month, quarter or year `date` is in, at the
|
|
558
|
+
* adapter's start of day: with {@link wrPeriodStart} it is the period as an
|
|
559
|
+
* inclusive range of days.
|
|
560
|
+
*
|
|
561
|
+
* @example
|
|
562
|
+
* ```ts
|
|
563
|
+
* wrPeriodEnd(adapter, new Date(2026, 1, 3), 'month'); // 28 February 2026
|
|
564
|
+
* ```
|
|
565
|
+
*/
|
|
566
|
+
export declare function wrPeriodEnd<TDate>(adapter: WrDateAdapter<TDate>, date: TDate, period: WrDatePeriod): TDate;
|
|
567
|
+
/**
|
|
568
|
+
* The week of the year `date` is in.
|
|
569
|
+
*
|
|
570
|
+
* Week 1 is the week holding 4 January, so the first week with four or more
|
|
571
|
+
* days of the new year. With Monday as the first day of the week that is the
|
|
572
|
+
* ISO 8601 week; with another first day the same rule runs on that week.
|
|
573
|
+
*
|
|
574
|
+
* @example
|
|
575
|
+
* ```ts
|
|
576
|
+
* wrWeekOfYear(adapter, new Date(2026, 2, 18)); // { week: 12, year: 2026 }
|
|
577
|
+
* ```
|
|
578
|
+
*/
|
|
579
|
+
export declare function wrWeekOfYear<TDate>(adapter: WrDateAdapter<TDate>, date: TDate): WrWeekOfYear;
|
|
580
|
+
/**
|
|
581
|
+
* The first day of week `week` of `year`, counted as {@link wrWeekOfYear}
|
|
582
|
+
* counts, or `null` when that year has no such week (week 53 of most years).
|
|
583
|
+
*
|
|
584
|
+
* @example
|
|
585
|
+
* ```ts
|
|
586
|
+
* wrWeekStart(adapter, 2026, 12); // Monday 16 March 2026, in a Monday-first locale
|
|
587
|
+
* ```
|
|
588
|
+
*/
|
|
589
|
+
export declare function wrWeekStart<TDate>(adapter: WrDateAdapter<TDate>, year: number, week: number): TDate | null;
|
|
520
590
|
/**
|
|
521
591
|
* The locale dates are written in, as a signal. Highest first:
|
|
522
592
|
*
|
|
@@ -627,4 +697,4 @@ export declare const WR_DATE_INPUT: InjectionToken<{
|
|
|
627
697
|
* `withDates()` does not import a component.
|
|
628
698
|
*/
|
|
629
699
|
export declare const WR_DATE_STAMP_DEFAULTS: InjectionToken<WrDateStampDefaults>;
|
|
630
|
-
export { type WrDateFormat, type WrDateStampDefaults, type WrDatesOptions, type WrEpochUnit, type WrParseDateOptions, type WrZonelessIn, wrIsNamedFormat };
|
|
700
|
+
export { type WrDateFormat, type WrDatePeriod, type WrDateStampDefaults, type WrDatesOptions, type WrEpochUnit, type WrParseDateOptions, type WrWeekOfYear, type WrZonelessIn, wrIsNamedFormat };
|
package/types/ngwr-drawer.d.ts
CHANGED
|
@@ -215,6 +215,8 @@ export declare class WrDrawer {
|
|
|
215
215
|
private previouslyFocused;
|
|
216
216
|
/** Whether the open panel is modal — `hasBackdrop` as it was when it opened. */
|
|
217
217
|
private modal;
|
|
218
|
+
/** The side the open overlay sits on. */
|
|
219
|
+
private side;
|
|
218
220
|
constructor();
|
|
219
221
|
/**
|
|
220
222
|
* Point the panel's `aria-labelledby` at the CURRENT `[wrDrawerTitle]`.
|
|
@@ -228,6 +230,13 @@ export declare class WrDrawer {
|
|
|
228
230
|
* so. A missing title clears the attribute for the same reason.
|
|
229
231
|
*/
|
|
230
232
|
private syncLabel;
|
|
233
|
+
private positionStrategy;
|
|
234
|
+
private size;
|
|
235
|
+
/**
|
|
236
|
+
* Carry `position`, `width`, `height` and `maxHeight` over to the open
|
|
237
|
+
* overlay. The CDK reads them once, in `create()`.
|
|
238
|
+
*/
|
|
239
|
+
private syncOverlay;
|
|
231
240
|
private openOverlay;
|
|
232
241
|
private closeOverlay;
|
|
233
242
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrDrawer, never>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, ContentContainerComponentHarness, HarnessLoader, HarnessPredicate, TestElement } from "@angular/cdk/testing";
|
|
2
|
+
import { WrDropdownPosition } from "ngwr/dropdown";
|
|
2
3
|
/** Narrows which `[wrDropdown]` trigger a harness query matches. */
|
|
3
4
|
interface WrDropdownHarnessFilters extends BaseHarnessFilters {
|
|
4
5
|
/**
|
|
@@ -9,6 +10,8 @@ interface WrDropdownHarnessFilters extends BaseHarnessFilters {
|
|
|
9
10
|
readonly text?: string | RegExp;
|
|
10
11
|
/** Match only open (`true`) or only closed (`false`) dropdowns. */
|
|
11
12
|
readonly open?: boolean;
|
|
13
|
+
/** Match only disabled (`true`) or only enabled (`false`) triggers. */
|
|
14
|
+
readonly disabled?: boolean;
|
|
12
15
|
}
|
|
13
16
|
/** Narrows which item inside a dropdown's menu a harness query matches. */
|
|
14
17
|
interface WrDropdownItemHarnessFilters extends BaseHarnessFilters {
|
|
@@ -97,8 +100,25 @@ export declare class WrDropdownHarness extends ContentContainerComponentHarness
|
|
|
97
100
|
getTriggerText(): Promise<string>;
|
|
98
101
|
/** Whether the menu is showing. */
|
|
99
102
|
isOpen(): Promise<boolean>;
|
|
103
|
+
/**
|
|
104
|
+
* Whether `wrDropdownDisabled` has turned the trigger off — read from
|
|
105
|
+
* `wr-dropdown-trigger--disabled`, the one mark a disabled trigger carries.
|
|
106
|
+
* The HOST's own `disabled` is another question: the directive never sets it,
|
|
107
|
+
* so ask the host's harness (`WrButtonHarness.isDisabled()`).
|
|
108
|
+
*/
|
|
109
|
+
isDisabled(): Promise<boolean>;
|
|
100
110
|
/** The role the menu announces — `menu`. Throws while the menu is closed. */
|
|
101
111
|
getMenuRole(): Promise<string | null>;
|
|
112
|
+
/**
|
|
113
|
+
* Where the menu sits relative to the trigger, or `null` when its pane names
|
|
114
|
+
* no placement, as a submenu's does not. Throws while the menu is closed.
|
|
115
|
+
*
|
|
116
|
+
* Read off the pane's public modifier class, since a bound `position` never
|
|
117
|
+
* reaches the DOM. The class names the placement the menu LANDED on, which is
|
|
118
|
+
* the one asked for unless it had no room there and flipped; in jsdom, with no
|
|
119
|
+
* layout to run out of, the two are the same.
|
|
120
|
+
*/
|
|
121
|
+
getPosition(): Promise<WrDropdownPosition | null>;
|
|
102
122
|
/**
|
|
103
123
|
* Whether the menu takes its accessible name from this trigger.
|
|
104
124
|
*
|
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
|
*
|
|
@@ -110,6 +123,7 @@ export declare class WrDropdown {
|
|
|
110
123
|
private readonly scrollStrategies;
|
|
111
124
|
private readonly injector;
|
|
112
125
|
private readonly destroyRef;
|
|
126
|
+
private readonly liveLocale;
|
|
113
127
|
private readonly openState;
|
|
114
128
|
/** Whether the menu is open. Read-only: `open()` and `close()` change it. */
|
|
115
129
|
readonly isOpen: import("@angular/core").Signal<boolean>;
|
|
@@ -141,7 +155,7 @@ export declare class WrDropdown {
|
|
|
141
155
|
/** The root menu's link to the submenus open below it. */
|
|
142
156
|
private level;
|
|
143
157
|
constructor();
|
|
144
|
-
/** Open the menu. */
|
|
158
|
+
/** Open the menu. Does nothing while the trigger is disabled. */
|
|
145
159
|
open(): void;
|
|
146
160
|
/** Close the menu. */
|
|
147
161
|
close(): void;
|
|
@@ -213,6 +227,11 @@ export declare class WrDropdown {
|
|
|
213
227
|
"required": false;
|
|
214
228
|
"isSignal": true;
|
|
215
229
|
};
|
|
230
|
+
"disabled": {
|
|
231
|
+
"alias": "wrDropdownDisabled";
|
|
232
|
+
"required": false;
|
|
233
|
+
"isSignal": true;
|
|
234
|
+
};
|
|
216
235
|
"panelClass": {
|
|
217
236
|
"alias": "panelClass";
|
|
218
237
|
"required": false;
|
|
@@ -296,6 +315,7 @@ export declare class WrDropdownSubmenu {
|
|
|
296
315
|
private readonly vcr;
|
|
297
316
|
private readonly scrollStrategies;
|
|
298
317
|
private readonly injector;
|
|
318
|
+
private readonly liveLocale;
|
|
299
319
|
private readonly openState;
|
|
300
320
|
/** Whether the submenu is open. Read-only: `open()` and `close()` change it. */
|
|
301
321
|
readonly isOpen: import("@angular/core").Signal<boolean>;
|
|
@@ -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 */
|
|
@@ -95,11 +162,31 @@ export declare class WrFileUpload implements FormValueControl<File | readonly Fi
|
|
|
95
162
|
* (WCAG 2.5.3).
|
|
96
163
|
*/
|
|
97
164
|
readonly dropZoneLabel: import("@angular/core").InputSignal<string | null>;
|
|
98
|
-
/**
|
|
165
|
+
/**
|
|
166
|
+
* Name of each row's remove button. `{{name}}` is the row's file name, so the
|
|
167
|
+
* buttons of a list are told apart. Falls back to `fileUpload.removeFile`,
|
|
168
|
+
* "Remove {{name}}" in English.
|
|
169
|
+
*/
|
|
99
170
|
readonly removeFileLabel: import("@angular/core").InputSignal<string | null>;
|
|
171
|
+
/** Retry button text on a failed row. Falls back to `fileUpload.retry`. */
|
|
172
|
+
readonly retryLabel: import("@angular/core").InputSignal<string | null>;
|
|
173
|
+
/** Name of the `uploading` state: the progress bar's name and the announcement. Falls back to `fileUpload.uploading`. */
|
|
174
|
+
readonly uploadingLabel: import("@angular/core").InputSignal<string | null>;
|
|
175
|
+
/** Name of the `done` state: the mark's name and the announcement. Falls back to `fileUpload.uploaded`. */
|
|
176
|
+
readonly uploadedLabel: import("@angular/core").InputSignal<string | null>;
|
|
177
|
+
/** Text of a failed row whose status carries no `message`. Falls back to `fileUpload.failed`. */
|
|
178
|
+
readonly failedLabel: import("@angular/core").InputSignal<string | null>;
|
|
100
179
|
protected readonly resolvedPick: import("@angular/core").Signal<string>;
|
|
101
180
|
protected readonly resolvedDrop: import("@angular/core").Signal<string>;
|
|
102
|
-
|
|
181
|
+
private readonly removeText;
|
|
182
|
+
/** The remove button of one row, named after its file. */
|
|
183
|
+
protected removeName(name: string): string;
|
|
184
|
+
protected readonly resolvedRetry: import("@angular/core").Signal<string>;
|
|
185
|
+
protected readonly resolvedUploading: import("@angular/core").Signal<string>;
|
|
186
|
+
protected readonly resolvedUploaded: import("@angular/core").Signal<string>;
|
|
187
|
+
protected readonly resolvedFailed: import("@angular/core").Signal<string>;
|
|
188
|
+
/** `{{name}}: {{status}}`: a state said about one file. */
|
|
189
|
+
protected readonly statusText: (params?: import("ngwr/i18n").WrI18nParams) => string;
|
|
103
190
|
/** Optional helper text shown below the labels (e.g. accepted formats). */
|
|
104
191
|
readonly helperText: import("@angular/core").InputSignal<string>;
|
|
105
192
|
/**
|
|
@@ -109,6 +196,8 @@ export declare class WrFileUpload implements FormValueControl<File | readonly Fi
|
|
|
109
196
|
readonly value: import("@angular/core").ModelSignal<File | readonly File[] | null>;
|
|
110
197
|
/** Emitted when files are rejected for type / size / count reasons. */
|
|
111
198
|
readonly rejected: import("@angular/core").OutputEmitterRef<readonly WrFileUploadRejection[]>;
|
|
199
|
+
/** Emitted with the file when the retry button of a failed row is pressed. */
|
|
200
|
+
readonly retry: import("@angular/core").OutputEmitterRef<File>;
|
|
112
201
|
/** Emitted on commit so a bound field can mark itself touched. */
|
|
113
202
|
readonly touch: import("@angular/core").OutputEmitterRef<void>;
|
|
114
203
|
protected readonly picker: import("@angular/core").Signal<ElementRef<HTMLInputElement>>;
|
|
@@ -125,6 +214,18 @@ export declare class WrFileUpload implements FormValueControl<File | readonly Fi
|
|
|
125
214
|
private dragDepth;
|
|
126
215
|
private readonly host;
|
|
127
216
|
private readonly injector;
|
|
217
|
+
private readonly browser;
|
|
218
|
+
/** id prefix of the file names, which describe each row's retry button. @internal */
|
|
219
|
+
protected readonly nameId: string;
|
|
220
|
+
/** The object URL of each previewed image file. */
|
|
221
|
+
private readonly previewUrls;
|
|
222
|
+
protected readonly rows: import("@angular/core").Signal<readonly FileRow[]>;
|
|
223
|
+
/** `aria-busy` on the list: at least one file is uploading. */
|
|
224
|
+
protected readonly busy: import("@angular/core").Signal<boolean>;
|
|
225
|
+
/** What the one live region says: the states that changed in the last `[status]` write. */
|
|
226
|
+
protected readonly announcement: import("@angular/core").WritableSignal<string>;
|
|
227
|
+
/** The state each file had at the last `[status]` write, to tell a change from a percent tick. */
|
|
228
|
+
private lastStates;
|
|
128
229
|
protected readonly classes: import("@angular/core").Signal<string>;
|
|
129
230
|
/**
|
|
130
231
|
* Human-readable file size (e.g. `1.2 MB`).
|
|
@@ -173,8 +274,19 @@ export declare class WrFileUpload implements FormValueControl<File | readonly Fi
|
|
|
173
274
|
protected onDragOver(event: DragEvent): void;
|
|
174
275
|
protected onDragLeave(): void;
|
|
175
276
|
protected onDrop(event: DragEvent): void;
|
|
277
|
+
protected onPaste(event: ClipboardEvent): void;
|
|
278
|
+
protected onRetry(file: File, index: number): void;
|
|
176
279
|
protected removeAt(index: number): void;
|
|
177
280
|
private acceptFiles;
|
|
281
|
+
/**
|
|
282
|
+
* Say each state a file has just entered, in one string. `pending` is the
|
|
283
|
+
* resting state and a percent tick is not a change, so neither is said, and
|
|
284
|
+
* the states present when `[status]` is first bound are a starting point
|
|
285
|
+
* rather than news.
|
|
286
|
+
*/
|
|
287
|
+
private announce;
|
|
288
|
+
/** Hold one object URL per file in `images`, and revoke the ones that left. */
|
|
289
|
+
private syncPreviews;
|
|
178
290
|
private reject;
|
|
179
291
|
private emit;
|
|
180
292
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrFileUpload, never>;
|
|
@@ -189,6 +301,11 @@ export declare class WrFileUpload implements FormValueControl<File | readonly Fi
|
|
|
189
301
|
"required": false;
|
|
190
302
|
"isSignal": true;
|
|
191
303
|
};
|
|
304
|
+
"size": {
|
|
305
|
+
"alias": "size";
|
|
306
|
+
"required": false;
|
|
307
|
+
"isSignal": true;
|
|
308
|
+
};
|
|
192
309
|
"maxSize": {
|
|
193
310
|
"alias": "maxSize";
|
|
194
311
|
"required": false;
|
|
@@ -214,6 +331,21 @@ export declare class WrFileUpload implements FormValueControl<File | readonly Fi
|
|
|
214
331
|
"required": false;
|
|
215
332
|
"isSignal": true;
|
|
216
333
|
};
|
|
334
|
+
"status": {
|
|
335
|
+
"alias": "status";
|
|
336
|
+
"required": false;
|
|
337
|
+
"isSignal": true;
|
|
338
|
+
};
|
|
339
|
+
"previews": {
|
|
340
|
+
"alias": "previews";
|
|
341
|
+
"required": false;
|
|
342
|
+
"isSignal": true;
|
|
343
|
+
};
|
|
344
|
+
"acceptPaste": {
|
|
345
|
+
"alias": "acceptPaste";
|
|
346
|
+
"required": false;
|
|
347
|
+
"isSignal": true;
|
|
348
|
+
};
|
|
217
349
|
"pickLabel": {
|
|
218
350
|
"alias": "pickLabel";
|
|
219
351
|
"required": false;
|
|
@@ -234,6 +366,26 @@ export declare class WrFileUpload implements FormValueControl<File | readonly Fi
|
|
|
234
366
|
"required": false;
|
|
235
367
|
"isSignal": true;
|
|
236
368
|
};
|
|
369
|
+
"retryLabel": {
|
|
370
|
+
"alias": "retryLabel";
|
|
371
|
+
"required": false;
|
|
372
|
+
"isSignal": true;
|
|
373
|
+
};
|
|
374
|
+
"uploadingLabel": {
|
|
375
|
+
"alias": "uploadingLabel";
|
|
376
|
+
"required": false;
|
|
377
|
+
"isSignal": true;
|
|
378
|
+
};
|
|
379
|
+
"uploadedLabel": {
|
|
380
|
+
"alias": "uploadedLabel";
|
|
381
|
+
"required": false;
|
|
382
|
+
"isSignal": true;
|
|
383
|
+
};
|
|
384
|
+
"failedLabel": {
|
|
385
|
+
"alias": "failedLabel";
|
|
386
|
+
"required": false;
|
|
387
|
+
"isSignal": true;
|
|
388
|
+
};
|
|
237
389
|
"helperText": {
|
|
238
390
|
"alias": "helperText";
|
|
239
391
|
"required": false;
|
|
@@ -247,7 +399,8 @@ export declare class WrFileUpload implements FormValueControl<File | readonly Fi
|
|
|
247
399
|
}, {
|
|
248
400
|
"value": "valueChange";
|
|
249
401
|
"rejected": "rejected";
|
|
402
|
+
"retry": "retry";
|
|
250
403
|
"touch": "touch";
|
|
251
404
|
}, never, never, true, never>;
|
|
252
405
|
}
|
|
253
|
-
export type { WrFileUploadRejection, WrFileUploadRejectionReason };
|
|
406
|
+
export type { WrFileUploadRejection, WrFileUploadRejectionReason, WrFileUploadSize, WrFileUploadState, WrFileUploadStatus, WrFileUploadStatusMap };
|