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
|
@@ -30,7 +30,7 @@ export declare class WrDateStampHarness extends ComponentHarness {
|
|
|
30
30
|
/** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
|
|
31
31
|
static with(options?: WrDateStampHarnessFilters): HarnessPredicate<WrDateStampHarness>;
|
|
32
32
|
private readonly time;
|
|
33
|
-
/** The first line, or `null` when the stamp is empty. */
|
|
33
|
+
/** The first line, or `null` when the stamp is empty or `todayTimeOnly` shows a value from today. */
|
|
34
34
|
getDate(): Promise<string | null>;
|
|
35
35
|
/** The second line, or `null` when the stamp is empty or shows a date-only value. */
|
|
36
36
|
getTime(): Promise<string | null>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { WrDateFormat } from "ngwr/date";
|
|
2
|
+
import { WrDateFormat, WrEpochUnit } from "ngwr/date";
|
|
3
3
|
interface Stamp {
|
|
4
4
|
readonly iso: string;
|
|
5
|
-
readonly date: string;
|
|
5
|
+
readonly date: string | null;
|
|
6
6
|
readonly time: string | null;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
@@ -11,9 +11,13 @@ interface Stamp {
|
|
|
11
11
|
* Both lines are written by the date adapter, so they are in the interface
|
|
12
12
|
* language and, for an instant, on the wall clock of
|
|
13
13
|
* `withDates({ timeZone })`, and they follow both at runtime. The value is read
|
|
14
|
-
* as `wrDate` reads it: a `Date`, epoch
|
|
15
|
-
*
|
|
16
|
-
*
|
|
14
|
+
* as `wrDate` reads it: a `Date`, an epoch number or a string, under the
|
|
15
|
+
* `epochUnit` and `zonelessIn` of `withDates()`. A date-only string
|
|
16
|
+
* (`'2026-11-12'`) is a day, so it shows the date line alone and does not
|
|
17
|
+
* shift with the zone.
|
|
18
|
+
*
|
|
19
|
+
* `withDates({ stamp })` sets the formats, `todayTimeOnly` and `seconds` for
|
|
20
|
+
* every stamp of the app; an input set here wins.
|
|
17
21
|
*
|
|
18
22
|
* The lines sit in one `<time>` whose `datetime` is the instant in ISO 8601,
|
|
19
23
|
* or the day for a date-only string. `null`, `undefined`, `''` and a value
|
|
@@ -23,14 +27,16 @@ interface Stamp {
|
|
|
23
27
|
* ```html
|
|
24
28
|
* <wr-date-stamp [value]="row.createdAt" />
|
|
25
29
|
* <wr-date-stamp [value]="row.createdAt" dateFormat="d MMM yyyy" timeFormat="time24hSeconds" />
|
|
30
|
+
* <wr-date-stamp [value]="message.sentAt" todayTimeOnly seconds />
|
|
26
31
|
* ```
|
|
27
32
|
*
|
|
28
33
|
* @see https://ngwr.dev/reference/components/date-stamp
|
|
29
34
|
*/
|
|
30
35
|
export declare class WrDateStamp {
|
|
31
36
|
constructor();
|
|
37
|
+
private readonly defaults;
|
|
32
38
|
/**
|
|
33
|
-
* The moment shown: a `Date`, epoch
|
|
39
|
+
* The moment shown: a `Date`, an epoch number, or a string `wrParseDate`
|
|
34
40
|
* reads. `null`, `undefined`, `''` and a value that is not a date are empty.
|
|
35
41
|
*
|
|
36
42
|
* @default null
|
|
@@ -38,17 +44,42 @@ export declare class WrDateStamp {
|
|
|
38
44
|
readonly value: import("@angular/core").InputSignal<string | number | Date | null | undefined>;
|
|
39
45
|
/**
|
|
40
46
|
* Format of the first line: a named key or a token string (`'d MMM yyyy'`).
|
|
47
|
+
* `withDates({ stamp })` changes the default.
|
|
41
48
|
*
|
|
42
49
|
* @default 'mediumDate'
|
|
43
50
|
*/
|
|
44
51
|
readonly dateFormat: import("@angular/core").InputSignal<WrDateFormat | (string & {})>;
|
|
45
52
|
/**
|
|
46
53
|
* Format of the second line: a named key (`'time24hSeconds'`) or a token
|
|
47
|
-
* string (`'HH:mm'`).
|
|
54
|
+
* string (`'HH:mm'`). `withDates({ stamp })` changes the default.
|
|
48
55
|
*
|
|
49
56
|
* @default 'time'
|
|
50
57
|
*/
|
|
51
58
|
readonly timeFormat: import("@angular/core").InputSignal<WrDateFormat | (string & {})>;
|
|
59
|
+
/**
|
|
60
|
+
* Write the seconds in the time line: `'time'` is read as `'timeSeconds'`
|
|
61
|
+
* and `'HH:mm'` as `'HH:mm:ss'`. A format that already has them is left
|
|
62
|
+
* alone. `withDates({ stamp })` changes the default.
|
|
63
|
+
*
|
|
64
|
+
* @default false
|
|
65
|
+
*/
|
|
66
|
+
readonly seconds: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
67
|
+
/**
|
|
68
|
+
* Show the time alone for a value from today. Today is the day in the
|
|
69
|
+
* display zone, read when the stamp renders: one left on screen past
|
|
70
|
+
* midnight keeps its single line. A date-only value keeps its date.
|
|
71
|
+
* `withDates({ stamp })` changes the default.
|
|
72
|
+
*
|
|
73
|
+
* @default false
|
|
74
|
+
*/
|
|
75
|
+
readonly todayTimeOnly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
76
|
+
/**
|
|
77
|
+
* What a number in `value` counts since the epoch: `'ms'`, `'us'`, `'s'` or
|
|
78
|
+
* `'auto'`, by size. `null` follows `withDates({ epochUnit })`.
|
|
79
|
+
*
|
|
80
|
+
* @default null
|
|
81
|
+
*/
|
|
82
|
+
readonly epochUnit: import("@angular/core").InputSignal<WrEpochUnit | null>;
|
|
52
83
|
/** What stands in for an empty value. Falls back to `copyValue.empty`, then `'-'`. */
|
|
53
84
|
readonly emptyLabel: import("@angular/core").InputSignal<string | null>;
|
|
54
85
|
protected readonly resolvedEmptyLabel: import("@angular/core").Signal<string>;
|
|
@@ -71,6 +102,21 @@ export declare class WrDateStamp {
|
|
|
71
102
|
"required": false;
|
|
72
103
|
"isSignal": true;
|
|
73
104
|
};
|
|
105
|
+
"seconds": {
|
|
106
|
+
"alias": "seconds";
|
|
107
|
+
"required": false;
|
|
108
|
+
"isSignal": true;
|
|
109
|
+
};
|
|
110
|
+
"todayTimeOnly": {
|
|
111
|
+
"alias": "todayTimeOnly";
|
|
112
|
+
"required": false;
|
|
113
|
+
"isSignal": true;
|
|
114
|
+
};
|
|
115
|
+
"epochUnit": {
|
|
116
|
+
"alias": "epochUnit";
|
|
117
|
+
"required": false;
|
|
118
|
+
"isSignal": true;
|
|
119
|
+
};
|
|
74
120
|
"emptyLabel": {
|
|
75
121
|
"alias": "emptyLabel";
|
|
76
122
|
"required": false;
|
package/types/ngwr-date.d.ts
CHANGED
|
@@ -24,6 +24,76 @@ 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
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* What a number counts since the epoch: milliseconds, microseconds or seconds.
|
|
51
|
+
*
|
|
52
|
+
* `'auto'` decides by magnitude: under `1e10` it is seconds, under `1e13`
|
|
53
|
+
* milliseconds, and microseconds from there. `1e10` seconds and `1e13`
|
|
54
|
+
* milliseconds are both 20 November 2286, and `1e10` milliseconds and `1e13`
|
|
55
|
+
* microseconds are both 26 April 1970, so a date between those two reads the
|
|
56
|
+
* same in every unit. Outside them `'auto'` guesses wrong: name the unit.
|
|
57
|
+
*/
|
|
58
|
+
type WrEpochUnit = 'ms' | 'us' | 's' | 'auto';
|
|
59
|
+
/**
|
|
60
|
+
* The zone a date-time string with no offset (`2026-11-12 13:45:00`) was
|
|
61
|
+
* written in: the display zone of `withDates({ timeZone })`, the browser's, or
|
|
62
|
+
* UTC.
|
|
63
|
+
*/
|
|
64
|
+
type WrZonelessIn = 'display' | 'browser' | 'utc';
|
|
65
|
+
/** How `wrParseDate` reads a value. Every key is optional and defaults to what 16.1 did. */
|
|
66
|
+
interface WrParseDateOptions {
|
|
67
|
+
/**
|
|
68
|
+
* The unit of a number.
|
|
69
|
+
*
|
|
70
|
+
* @default 'ms'
|
|
71
|
+
*/
|
|
72
|
+
readonly epochUnit?: WrEpochUnit;
|
|
73
|
+
/**
|
|
74
|
+
* The zone of a date-time string with no offset. A string with `Z` or an
|
|
75
|
+
* offset, and a date-only string, are not affected.
|
|
76
|
+
*
|
|
77
|
+
* @default 'browser'
|
|
78
|
+
*/
|
|
79
|
+
readonly zonelessIn?: WrZonelessIn;
|
|
80
|
+
/**
|
|
81
|
+
* The display zone `zonelessIn: 'display'` reads in: an IANA name or an
|
|
82
|
+
* offset. `null`, `undefined` and a zone no engine knows are the browser's.
|
|
83
|
+
*/
|
|
84
|
+
readonly timeZone?: string | null;
|
|
85
|
+
}
|
|
86
|
+
/** App-wide defaults of `wr-date-stamp`. The component's own inputs win. */
|
|
87
|
+
interface WrDateStampDefaults {
|
|
88
|
+
/** Format of the date line. Default: `'mediumDate'`. */
|
|
89
|
+
readonly dateFormat?: WrDateFormat | (string & {});
|
|
90
|
+
/** Format of the time line. Default: `'time'`. */
|
|
91
|
+
readonly timeFormat?: WrDateFormat | (string & {});
|
|
92
|
+
/** Show the time alone for a value from today. Default: `false`. */
|
|
93
|
+
readonly todayTimeOnly?: boolean;
|
|
94
|
+
/** Write the seconds in the time line. Default: `false`. */
|
|
95
|
+
readonly seconds?: boolean;
|
|
96
|
+
}
|
|
27
97
|
/**
|
|
28
98
|
* Options for `withDates()`.
|
|
29
99
|
*/
|
|
@@ -65,6 +135,30 @@ interface WrDatesOptions {
|
|
|
65
135
|
* dev mode.
|
|
66
136
|
*/
|
|
67
137
|
readonly timeZone?: string | (() => string | null | undefined);
|
|
138
|
+
/**
|
|
139
|
+
* What a NUMBER counts since the epoch, for `wrDate`, `wrFormatDate` and
|
|
140
|
+
* `wr-date-stamp`: `'ms'`, `'us'` (microseconds, sixteen digits today), `'s'`,
|
|
141
|
+
* or `'auto'`, which decides by magnitude, see {@link WrEpochUnit}.
|
|
142
|
+
*
|
|
143
|
+
* @default 'ms'
|
|
144
|
+
*/
|
|
145
|
+
readonly epochUnit?: WrEpochUnit;
|
|
146
|
+
/**
|
|
147
|
+
* The zone a date-time string with NO offset (`'2026-11-12 13:45:00'`) is
|
|
148
|
+
* read in, for `wrDate`, `wrFormatDate` and `wr-date-stamp`. `'display'`
|
|
149
|
+
* reads it as a wall clock of `timeZone`, so it prints unchanged; `'utc'`
|
|
150
|
+
* reads it as UTC; `'browser'` as the browser's local time. A string with
|
|
151
|
+
* `Z` or an offset is the instant it names, and a date-only string stays a
|
|
152
|
+
* day, whatever this says.
|
|
153
|
+
*
|
|
154
|
+
* @default 'browser'
|
|
155
|
+
*/
|
|
156
|
+
readonly zonelessIn?: WrZonelessIn;
|
|
157
|
+
/**
|
|
158
|
+
* App-wide defaults of `wr-date-stamp`: `dateFormat`, `timeFormat`,
|
|
159
|
+
* `todayTimeOnly` and `seconds`. An input set on a stamp wins.
|
|
160
|
+
*/
|
|
161
|
+
readonly stamp?: WrDateStampDefaults;
|
|
68
162
|
}
|
|
69
163
|
/** Whether `value` is one of the shared named format keys. */
|
|
70
164
|
declare function wrIsNamedFormat(value: string): value is WrDateFormat;
|
|
@@ -133,7 +227,8 @@ export declare abstract class WrDateAdapter<TDate = Date> {
|
|
|
133
227
|
* adapter that treats one as a raw pattern prints its letters into the field.
|
|
134
228
|
* v15 added them; an adapter written for v14 has to handle them.
|
|
135
229
|
*
|
|
136
|
-
* Supported tokens for raw strings: `yyyy`, `yy`, `
|
|
230
|
+
* Supported tokens for raw strings: `yyyy`, `yy`, `y` (the full year, as
|
|
231
|
+
* `DatePipe` reads it: `d MMM y`), `MMMM`, `MMM`, `MM`, `M`,
|
|
137
232
|
* `dd`, `d`, `HH`, `H`, `hh`, `h`, `mm`, `ss`, `a` (the locale's day-period
|
|
138
233
|
* marker — `PM`, `م`, `午後`).
|
|
139
234
|
*
|
|
@@ -174,6 +269,14 @@ export declare abstract class WrDateAdapter<TDate = Date> {
|
|
|
174
269
|
* template, a `computed` or an `effect`, it re-runs them when either moves.
|
|
175
270
|
*/
|
|
176
271
|
displayKey(): string;
|
|
272
|
+
/**
|
|
273
|
+
* How `wrDate`, `wrFormatDate` and `wr-date-stamp` read a backend value
|
|
274
|
+
* before this adapter formats it: the `epochUnit` and `zonelessIn` of
|
|
275
|
+
* `withDates()`, and the display zone. The base class returns nothing, which
|
|
276
|
+
* is epoch milliseconds and the browser's zone; an adapter of your own
|
|
277
|
+
* returns `inject(WR_DATE_INPUT)` and its zone to honour the options.
|
|
278
|
+
*/
|
|
279
|
+
parseOptions(): WrParseDateOptions;
|
|
177
280
|
/** `0` Sunday, `1` Monday — locale-dependent. */
|
|
178
281
|
abstract getFirstDayOfWeek(): number;
|
|
179
282
|
/** Names ordered from `getFirstDayOfWeek()` onwards. Length 7. */
|
|
@@ -211,6 +314,8 @@ export declare class WrNativeDateAdapter extends WrDateAdapter<Date> {
|
|
|
211
314
|
*/
|
|
212
315
|
zoned(): WrDateAdapter<Date>;
|
|
213
316
|
displayKey(): string;
|
|
317
|
+
private readonly input;
|
|
318
|
+
parseOptions(): WrParseDateOptions;
|
|
214
319
|
private zone;
|
|
215
320
|
private wallZone;
|
|
216
321
|
private readonly walls;
|
|
@@ -389,24 +494,24 @@ export declare function wrIsDateOnly(value: unknown): boolean;
|
|
|
389
494
|
* @internal
|
|
390
495
|
*/
|
|
391
496
|
export declare function wrToLocalDate(value: string | number): Date;
|
|
392
|
-
/**
|
|
393
|
-
* @license
|
|
394
|
-
*
|
|
395
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
396
|
-
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
397
|
-
*/
|
|
398
497
|
/**
|
|
399
498
|
* What a backend sends for a date, as a `Date`, or `null` when it holds none.
|
|
400
499
|
* Never an Invalid Date, so the result needs one check rather than two.
|
|
401
500
|
*
|
|
402
501
|
* - A `Date` comes back as it is, the same object; an Invalid Date gives `null`.
|
|
403
|
-
* - A number is epoch milliseconds
|
|
404
|
-
*
|
|
502
|
+
* - A number is epoch milliseconds, or what `epochUnit` says: `'s'`, `'us'`
|
|
503
|
+
* (microseconds), or `'auto'`, which reads a number under `1e10` as seconds,
|
|
504
|
+
* under `1e13` as milliseconds and anything larger as microseconds, right
|
|
505
|
+
* for a date from 26 April 1970 to 20 November 2286. `NaN`, an infinity and
|
|
506
|
+
* a number outside the range of `Date` give `null`.
|
|
405
507
|
* - `2026-03-01 14:30:00`, a space where ISO 8601 has a `T`, is rewritten to the
|
|
406
508
|
* ISO form first. Chrome reads the space form and Safari gives an Invalid Date
|
|
407
509
|
* for it. Seconds, a fraction and a zone are optional; the fraction is cut to
|
|
408
510
|
* milliseconds and a zone of hours alone (`+05`, as PostgreSQL prints it) is
|
|
409
|
-
* completed. Without a zone it is local time, as the `T` form is
|
|
511
|
+
* completed. Without a zone it is local time, as the `T` form is, unless
|
|
512
|
+
* `zonelessIn` says otherwise: `'utc'` reads both forms as UTC, and
|
|
513
|
+
* `'display'` as a wall clock of the `timeZone` option, the browser's zone
|
|
514
|
+
* when there is none.
|
|
410
515
|
* - A date-only string (`2026-03-01`, `2026-03`, `2026`) is that day's LOCAL
|
|
411
516
|
* midnight, as `wrDate` and `WrValidators.minDate` read it. `new Date()` would
|
|
412
517
|
* make it UTC midnight, the evening before for a reader west of Greenwich.
|
|
@@ -416,7 +521,9 @@ export declare function wrToLocalDate(value: string | number): Date;
|
|
|
416
521
|
* refuses give `null`.
|
|
417
522
|
*
|
|
418
523
|
* Surrounding whitespace is ignored. A plain function: no adapter and no
|
|
419
|
-
* injection context, so it runs in a mapper, a resolver or a store.
|
|
524
|
+
* injection context, so it runs in a mapper, a resolver or a store. For the
|
|
525
|
+
* same reason it does not see `withDates()`: pass the options, or
|
|
526
|
+
* `inject(WrDateAdapter).parseOptions()` for the app's.
|
|
420
527
|
*
|
|
421
528
|
* @example
|
|
422
529
|
* ```ts
|
|
@@ -424,12 +531,62 @@ export declare function wrToLocalDate(value: string | number): Date;
|
|
|
424
531
|
* wrParseDate('2026-03-01'); // 1 March 2026, 00:00 local
|
|
425
532
|
* wrParseDate('2026-03-01T09:30:00+05:00'); // that instant
|
|
426
533
|
* wrParseDate(1772343000000); // epoch milliseconds
|
|
534
|
+
* wrParseDate(1772343000000123, { epochUnit: 'auto' }); // microseconds, by magnitude
|
|
535
|
+
* wrParseDate('2026-03-01 14:30:00', { zonelessIn: 'display', timeZone: '+0500' }); // 09:30 UTC
|
|
427
536
|
* wrParseDate('n/a'); // null
|
|
428
537
|
* ```
|
|
429
538
|
*
|
|
430
539
|
* @see https://ngwr.dev/reference/pipes/wr-date
|
|
431
540
|
*/
|
|
432
|
-
export declare function wrParseDate(value: Date | string | number | null | undefined): Date | null;
|
|
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;
|
|
433
590
|
/**
|
|
434
591
|
* The locale dates are written in, as a signal. Highest first:
|
|
435
592
|
*
|
|
@@ -455,8 +612,9 @@ export declare function wrParseDate(value: Date | string | number | null | undef
|
|
|
455
612
|
export declare function wrDateLocale(): Signal<string>;
|
|
456
613
|
/**
|
|
457
614
|
* Replace the date adapter the calendar / date picker / time picker use, pin
|
|
458
|
-
* the locale it formats in,
|
|
459
|
-
*
|
|
615
|
+
* the locale it formats in, set the time zone dates are shown in, say how a
|
|
616
|
+
* backend's numbers and zoneless strings are read (`epochUnit`, `zonelessIn`),
|
|
617
|
+
* or set the defaults of `wr-date-stamp`, as a feature of `provideWr()`. Optional: with no call at all they run on
|
|
460
618
|
* {@link WrNativeDateAdapter} in Angular's `LOCALE_ID` and the browser's zone.
|
|
461
619
|
*
|
|
462
620
|
* Omit `locale` and dates follow the interface language of `provideWrI18n()`,
|
|
@@ -524,4 +682,19 @@ export declare const WR_DATE_LOCALE: InjectionToken<string>;
|
|
|
524
682
|
* of your own injects it to honour the same option.
|
|
525
683
|
*/
|
|
526
684
|
export declare const WR_DATE_TIME_ZONE: InjectionToken<(() => string | null | undefined) | null>;
|
|
527
|
-
|
|
685
|
+
/**
|
|
686
|
+
* How the native adapter reads a backend value before it formats it: the
|
|
687
|
+
* `epochUnit` and `zonelessIn` options of `withDates()`. An adapter of your own
|
|
688
|
+
* injects it and returns it from `parseOptions()` to honour the same options.
|
|
689
|
+
*/
|
|
690
|
+
export declare const WR_DATE_INPUT: InjectionToken<{
|
|
691
|
+
readonly epochUnit: WrEpochUnit;
|
|
692
|
+
readonly zonelessIn: WrZonelessIn;
|
|
693
|
+
}>;
|
|
694
|
+
/**
|
|
695
|
+
* The app-wide defaults of `wr-date-stamp`: the `stamp` option of
|
|
696
|
+
* `withDates()`. It lives here rather than in `ngwr/date-stamp` so that
|
|
697
|
+
* `withDates()` does not import a component.
|
|
698
|
+
*/
|
|
699
|
+
export declare const WR_DATE_STAMP_DEFAULTS: InjectionToken<WrDateStampDefaults>;
|
|
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
|
-
import { BaseHarnessFilters, ComponentHarness, ContentContainerComponentHarness, HarnessLoader, HarnessPredicate } from "@angular/cdk/testing";
|
|
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 {
|
|
@@ -40,6 +43,8 @@ export declare class WrDropdownItemHarness extends ComponentHarness {
|
|
|
40
43
|
getRole(): Promise<string | null>;
|
|
41
44
|
/** Whether the item refuses activation. */
|
|
42
45
|
isDisabled(): Promise<boolean>;
|
|
46
|
+
/** Whether the item opens a submenu. `WrDropdownHarness.openSubmenu()` opens it. */
|
|
47
|
+
hasSubmenu(): Promise<boolean>;
|
|
43
48
|
/** Whether the item shows a leading icon. */
|
|
44
49
|
hasIcon(): Promise<boolean>;
|
|
45
50
|
/** The leading icon's registered name, or `null` when the item has no icon. */
|
|
@@ -71,8 +76,8 @@ export declare class WrDropdownItemHarness extends ComponentHarness {
|
|
|
71
76
|
* That scoped loader is also this harness's CONTENT loader, so
|
|
72
77
|
* `dropdown.getHarness(…)` resolves inside THIS dropdown's menu: the consumer's
|
|
73
78
|
* own components in the menu are reachable without the spec ever touching the
|
|
74
|
-
* overlay, and so is a nested `[wrDropdown]
|
|
75
|
-
*
|
|
79
|
+
* overlay, and so is a nested `[wrDropdown]`. A submenu is reached with
|
|
80
|
+
* `openSubmenu()`, which answers with a harness scoped to that submenu.
|
|
76
81
|
*
|
|
77
82
|
* @example
|
|
78
83
|
* ```ts
|
|
@@ -90,13 +95,30 @@ export declare class WrDropdownHarness extends ContentContainerComponentHarness
|
|
|
90
95
|
/** The directive's host — whatever element the consumer put `[wrDropdown]` on. */
|
|
91
96
|
static hostSelector: string;
|
|
92
97
|
/** Build a predicate that narrows the query. */
|
|
93
|
-
static with(options?: WrDropdownHarnessFilters): HarnessPredicate<
|
|
98
|
+
static with<T extends WrDropdownHarness>(this: ComponentHarnessConstructor<T>, options?: WrDropdownHarnessFilters): HarnessPredicate<T>;
|
|
94
99
|
/** The trigger's visible text. */
|
|
95
100
|
getTriggerText(): Promise<string>;
|
|
96
101
|
/** Whether the menu is showing. */
|
|
97
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>;
|
|
98
110
|
/** The role the menu announces — `menu`. Throws while the menu is closed. */
|
|
99
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>;
|
|
100
122
|
/**
|
|
101
123
|
* Whether the menu takes its accessible name from this trigger.
|
|
102
124
|
*
|
|
@@ -149,6 +171,14 @@ export declare class WrDropdownHarness extends ContentContainerComponentHarness
|
|
|
149
171
|
* the menu, so a consumer who wants one calls `close()` themselves.
|
|
150
172
|
*/
|
|
151
173
|
clickItem(filters: WrDropdownItemHarnessFilters): Promise<void>;
|
|
174
|
+
/**
|
|
175
|
+
* Open the menu if it is closed, then open the submenu of the item with this
|
|
176
|
+
* label and answer with its harness: `getItems()`, `clickItem()` and a further
|
|
177
|
+
* `openSubmenu()` all read that submenu and nothing else.
|
|
178
|
+
*
|
|
179
|
+
* A click opens it, since hovering waits out the item's `showDelay`.
|
|
180
|
+
*/
|
|
181
|
+
openSubmenu(text: string | RegExp): Promise<WrDropdownSubmenuHarness>;
|
|
152
182
|
/**
|
|
153
183
|
* The label of the item that currently holds focus, or `null` when focus is
|
|
154
184
|
* elsewhere.
|
|
@@ -169,8 +199,46 @@ export declare class WrDropdownHarness extends ContentContainerComponentHarness
|
|
|
169
199
|
*/
|
|
170
200
|
protected getRootHarnessLoader(): Promise<HarnessLoader>;
|
|
171
201
|
/** This dropdown's menu element in the overlay. */
|
|
172
|
-
|
|
202
|
+
protected menu(): Promise<TestElement>;
|
|
173
203
|
/** The id the trigger publishes as `aria-controls`, which its menu carries. */
|
|
174
204
|
private menuId;
|
|
175
205
|
}
|
|
206
|
+
/**
|
|
207
|
+
* Test harness for an item carrying `[wrDropdownSubmenu]`, and the submenu it
|
|
208
|
+
* opens. Usually reached through `openSubmenu()` on the level above.
|
|
209
|
+
*
|
|
210
|
+
* It is a `WrDropdownHarness` whose trigger is the item, so everything that
|
|
211
|
+
* reads a menu reads the submenu, scoped the same way, by the id the item
|
|
212
|
+
* publishes. Two things differ. `hoverTrigger()` opens nothing by itself: the
|
|
213
|
+
* item waits out its `showDelay`, which is the spec's own fake timer to
|
|
214
|
+
* advance. And clicking a leaf item closes every submenu, so `clickItem()`
|
|
215
|
+
* leaves this one closed, while the root menu stays open as it always has.
|
|
216
|
+
*
|
|
217
|
+
* Which side the submenu opened on is not readable: jsdom has no layout.
|
|
218
|
+
*
|
|
219
|
+
* @example
|
|
220
|
+
* ```ts
|
|
221
|
+
* const file = await loader.getHarness(WrDropdownHarness.with({ text: 'File' }));
|
|
222
|
+
* const exportAs = await file.openSubmenu('Export');
|
|
223
|
+
*
|
|
224
|
+
* expect(await exportAs.getItemTexts()).toEqual(['CSV', 'PDF', 'Excel']);
|
|
225
|
+
* await exportAs.clickItem({ text: 'CSV' });
|
|
226
|
+
* ```
|
|
227
|
+
*
|
|
228
|
+
* @see https://ngwr.dev/guides/testing
|
|
229
|
+
*/
|
|
230
|
+
export declare class WrDropdownSubmenuHarness extends WrDropdownHarness {
|
|
231
|
+
/** The class the directive puts on its item. */
|
|
232
|
+
static hostSelector: string;
|
|
233
|
+
/** Open the submenu with a click on its item. */
|
|
234
|
+
open(): Promise<void>;
|
|
235
|
+
/**
|
|
236
|
+
* Open the submenu from the keyboard, with Enter on its item. Enter rather
|
|
237
|
+
* than the arrow because the arrow that opens a submenu depends on the
|
|
238
|
+
* reading direction, and Enter does not.
|
|
239
|
+
*/
|
|
240
|
+
openByKeyboard(): Promise<void>;
|
|
241
|
+
/** Close the submenu with Escape typed inside it, which closes this level only. */
|
|
242
|
+
close(): Promise<void>;
|
|
243
|
+
}
|
|
176
244
|
export type { WrDropdownHarnessFilters, WrDropdownItemHarnessFilters };
|