ngwr 16.5.0 → 16.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/avatar/styles/_index.scss +39 -0
- package/back-top/styles/_index.scss +6 -0
- package/breadcrumbs/styles/_rules.scss +34 -0
- package/button/styles/_index.scss +45 -2
- package/cascader/styles/_rules.scss +7 -0
- package/charts/chart-legend/styles/_index.scss +1 -9
- package/copy-value/styles/_index.scss +4 -0
- package/counter/styles/_index.scss +1 -8
- package/date-picker/styles/_index.scss +15 -9
- package/dialog/styles/_index.scss +37 -0
- package/dropdown/styles/_index.scss +17 -0
- package/editor/styles/_index.scss +1 -8
- package/event-calendar/styles/_index.scss +2 -6
- package/fesm2022/ngwr-affix.mjs +4 -4
- package/fesm2022/ngwr-affix.mjs.map +1 -1
- package/fesm2022/ngwr-alert.mjs +3 -3
- package/fesm2022/ngwr-anchor.mjs +12 -5
- package/fesm2022/ngwr-anchor.mjs.map +1 -1
- package/fesm2022/ngwr-animations-aurora.mjs +3 -3
- package/fesm2022/ngwr-animations-aurora.mjs.map +1 -1
- package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-blur-reveal.mjs.map +1 -1
- package/fesm2022/ngwr-animations-click-sparks.mjs +3 -3
- package/fesm2022/ngwr-animations-click-sparks.mjs.map +1 -1
- package/fesm2022/ngwr-animations-confetti.mjs +3 -3
- package/fesm2022/ngwr-animations-confetti.mjs.map +1 -1
- package/fesm2022/ngwr-animations-decode.mjs +3 -3
- package/fesm2022/ngwr-animations-decode.mjs.map +1 -1
- package/fesm2022/ngwr-animations-destruct.mjs +3 -3
- package/fesm2022/ngwr-animations-destruct.mjs.map +1 -1
- package/fesm2022/ngwr-animations-dot-grid.mjs +3 -3
- package/fesm2022/ngwr-animations-dot-grid.mjs.map +1 -1
- package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
- package/fesm2022/ngwr-animations-falling-letters.mjs.map +1 -1
- package/fesm2022/ngwr-animations-flow-lines.mjs +3 -3
- package/fesm2022/ngwr-animations-flow-lines.mjs.map +1 -1
- package/fesm2022/ngwr-animations-fluid-cursor.mjs +3 -3
- package/fesm2022/ngwr-animations-fluid-cursor.mjs.map +1 -1
- package/fesm2022/ngwr-animations-glitch.mjs +3 -3
- package/fesm2022/ngwr-animations-glitch.mjs.map +1 -1
- package/fesm2022/ngwr-animations-glow-border.mjs +3 -3
- package/fesm2022/ngwr-animations-glow-border.mjs.map +1 -1
- package/fesm2022/ngwr-animations-gradient-flow.mjs +3 -3
- package/fesm2022/ngwr-animations-gradient-flow.mjs.map +1 -1
- package/fesm2022/ngwr-animations-marquee.mjs +4 -3
- package/fesm2022/ngwr-animations-marquee.mjs.map +1 -1
- package/fesm2022/ngwr-animations-orbit.mjs +3 -3
- package/fesm2022/ngwr-animations-orbit.mjs.map +1 -1
- package/fesm2022/ngwr-animations-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-reveal.mjs.map +1 -1
- package/fesm2022/ngwr-animations-ripple-grid.mjs +3 -3
- package/fesm2022/ngwr-animations-ripple-grid.mjs.map +1 -1
- package/fesm2022/ngwr-animations-rotate-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-rotate-reveal.mjs.map +1 -1
- package/fesm2022/ngwr-animations-shimmer.mjs +3 -3
- package/fesm2022/ngwr-animations-shimmer.mjs.map +1 -1
- package/fesm2022/ngwr-animations-spotlight.mjs +3 -3
- package/fesm2022/ngwr-animations-spotlight.mjs.map +1 -1
- package/fesm2022/ngwr-animations-thread-lines.mjs +3 -3
- package/fesm2022/ngwr-animations-thread-lines.mjs.map +1 -1
- package/fesm2022/ngwr-animations-tilt.mjs +23 -16
- package/fesm2022/ngwr-animations-tilt.mjs.map +1 -1
- package/fesm2022/ngwr-animations-typewriter.mjs +3 -3
- package/fesm2022/ngwr-animations-typewriter.mjs.map +1 -1
- package/fesm2022/ngwr-avatar.mjs +171 -6
- package/fesm2022/ngwr-avatar.mjs.map +1 -1
- package/fesm2022/ngwr-back-top.mjs +3 -3
- package/fesm2022/ngwr-badge.mjs +6 -6
- package/fesm2022/ngwr-breadcrumbs.mjs +47 -13
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-burger.mjs +3 -3
- package/fesm2022/ngwr-button.mjs +38 -9
- package/fesm2022/ngwr-button.mjs.map +1 -1
- package/fesm2022/ngwr-calendar.mjs +3 -3
- package/fesm2022/ngwr-card.mjs +9 -9
- package/fesm2022/ngwr-carousel.mjs +14 -8
- package/fesm2022/ngwr-carousel.mjs.map +1 -1
- package/fesm2022/ngwr-cascader.mjs +27 -7
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-boxplot-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-bullet-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -3
- package/fesm2022/ngwr-charts-candlestick-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-chart-legend.mjs +9 -9
- package/fesm2022/ngwr-charts-core.mjs +18 -11
- package/fesm2022/ngwr-charts-core.mjs.map +1 -1
- package/fesm2022/ngwr-charts-donut-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-funnel-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-gauge.mjs +3 -3
- package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-line-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-meter-group.mjs +7 -5
- package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-scatter-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-sparkline.mjs +3 -3
- package/fesm2022/ngwr-charts-treemap-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-waterfall-chart.mjs +3 -3
- package/fesm2022/ngwr-checkbox.mjs +9 -8
- package/fesm2022/ngwr-checkbox.mjs.map +1 -1
- package/fesm2022/ngwr-clipboard.mjs +3 -3
- package/fesm2022/ngwr-collapse.mjs +9 -9
- package/fesm2022/ngwr-color-picker.mjs +27 -7
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-command-palette.mjs +3 -3
- package/fesm2022/ngwr-comment.mjs +7 -6
- package/fesm2022/ngwr-comment.mjs.map +1 -1
- package/fesm2022/ngwr-compare.mjs +3 -3
- package/fesm2022/ngwr-context-menu.mjs +16 -17
- package/fesm2022/ngwr-context-menu.mjs.map +1 -1
- package/fesm2022/ngwr-cookie.mjs +3 -3
- package/fesm2022/ngwr-copy-value.mjs +3 -3
- package/fesm2022/ngwr-counter.mjs +6 -6
- package/fesm2022/ngwr-date-picker-testing.mjs +35 -0
- package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +151 -54
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp.mjs +3 -3
- package/fesm2022/ngwr-date.mjs +40 -16
- package/fesm2022/ngwr-date.mjs.map +1 -1
- package/fesm2022/ngwr-density.mjs +6 -6
- package/fesm2022/ngwr-descriptions.mjs +6 -6
- package/fesm2022/ngwr-dialog.mjs +35 -24
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-directives.mjs +189 -23
- package/fesm2022/ngwr-directives.mjs.map +1 -1
- package/fesm2022/ngwr-divider.mjs +3 -3
- package/fesm2022/ngwr-drawer.mjs +18 -18
- package/fesm2022/ngwr-dropdown-testing.mjs +5 -1
- package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +59 -16
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +6 -5
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-empty.mjs +3 -3
- package/fesm2022/ngwr-event-calendar.mjs +27 -15
- package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload-testing.mjs +5 -0
- package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload.mjs +68 -13
- package/fesm2022/ngwr-file-upload.mjs.map +1 -1
- package/fesm2022/ngwr-form.mjs +181 -12
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-graph-testing.mjs +30 -0
- package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
- package/fesm2022/ngwr-graph.mjs +100 -11
- package/fesm2022/ngwr-graph.mjs.map +1 -1
- package/fesm2022/ngwr-hotkey.mjs +6 -6
- package/fesm2022/ngwr-i18n-ar.mjs +21 -2
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +21 -2
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +21 -2
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +21 -2
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +21 -2
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +21 -2
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +21 -2
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +21 -2
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +21 -2
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +21 -2
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +21 -2
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-kk.mjs +520 -0
- package/fesm2022/ngwr-i18n-kk.mjs.map +1 -0
- package/fesm2022/ngwr-i18n-ko.mjs +21 -2
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +21 -2
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +21 -2
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +21 -2
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +21 -2
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +21 -2
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +21 -2
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +21 -2
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +21 -2
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +21 -2
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +21 -2
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +91 -20
- package/fesm2022/ngwr-i18n.mjs.map +1 -1
- package/fesm2022/ngwr-icon.mjs +6 -6
- package/fesm2022/ngwr-image-cropper.mjs +8 -4
- package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
- package/fesm2022/ngwr-input-number.mjs +27 -4
- package/fesm2022/ngwr-input-number.mjs.map +1 -1
- package/fesm2022/ngwr-input-otp.mjs +5 -5
- package/fesm2022/ngwr-input-otp.mjs.map +1 -1
- package/fesm2022/ngwr-input.mjs +25 -17
- package/fesm2022/ngwr-input.mjs.map +1 -1
- package/fesm2022/ngwr-keyboard.mjs +3 -3
- package/fesm2022/ngwr-knob.mjs +3 -3
- package/fesm2022/ngwr-layout.mjs +15 -15
- package/fesm2022/ngwr-layout.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox.mjs +8 -8
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +9 -9
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-load-state.mjs +16 -15
- package/fesm2022/ngwr-load-state.mjs.map +1 -1
- package/fesm2022/ngwr-loading-bar-router.mjs.map +1 -1
- package/fesm2022/ngwr-loading-bar.mjs +8 -8
- package/fesm2022/ngwr-loading-bar.mjs.map +1 -1
- package/fesm2022/ngwr-mention.mjs +14 -6
- package/fesm2022/ngwr-mention.mjs.map +1 -1
- package/fesm2022/ngwr-meta.mjs +15 -12
- package/fesm2022/ngwr-meta.mjs.map +1 -1
- package/fesm2022/ngwr-overlay.mjs +9 -9
- package/fesm2022/ngwr-page-header.mjs +24 -3
- package/fesm2022/ngwr-page-header.mjs.map +1 -1
- package/fesm2022/ngwr-pagination-testing.mjs +3 -0
- package/fesm2022/ngwr-pagination-testing.mjs.map +1 -1
- package/fesm2022/ngwr-pagination.mjs +34 -5
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +35 -28
- package/fesm2022/ngwr-pipes.mjs.map +1 -1
- package/fesm2022/ngwr-platform.mjs +9 -9
- package/fesm2022/ngwr-popconfirm.mjs +9 -7
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +162 -18
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-progress.mjs +75 -10
- package/fesm2022/ngwr-progress.mjs.map +1 -1
- package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
- package/fesm2022/ngwr-qr.mjs +9 -5
- package/fesm2022/ngwr-qr.mjs.map +1 -1
- package/fesm2022/ngwr-radio.mjs +77 -11
- package/fesm2022/ngwr-radio.mjs.map +1 -1
- package/fesm2022/ngwr-rating.mjs +3 -3
- package/fesm2022/ngwr-resizable.mjs +3 -3
- package/fesm2022/ngwr-result.mjs +12 -12
- package/fesm2022/ngwr-schema-form.mjs +20 -7
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-scroll.mjs +233 -10
- package/fesm2022/ngwr-scroll.mjs.map +1 -1
- package/fesm2022/ngwr-segmented.mjs +23 -3
- package/fesm2022/ngwr-segmented.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +106 -26
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-sidebar-testing.mjs +17 -1
- package/fesm2022/ngwr-sidebar-testing.mjs.map +1 -1
- package/fesm2022/ngwr-sidebar.mjs +66 -11
- package/fesm2022/ngwr-sidebar.mjs.map +1 -1
- package/fesm2022/ngwr-skeleton.mjs +3 -3
- package/fesm2022/ngwr-slider.mjs +3 -3
- package/fesm2022/ngwr-sortable-list.mjs +27 -15
- package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
- package/fesm2022/ngwr-speed-dial.mjs +3 -3
- package/fesm2022/ngwr-spinner.mjs +3 -3
- package/fesm2022/ngwr-splitter.mjs +3 -3
- package/fesm2022/ngwr-statistic.mjs +9 -9
- package/fesm2022/ngwr-stepper.mjs +6 -6
- package/fesm2022/ngwr-storage.mjs +4 -4
- package/fesm2022/ngwr-storage.mjs.map +1 -1
- package/fesm2022/ngwr-switch.mjs +5 -5
- package/fesm2022/ngwr-switch.mjs.map +1 -1
- package/fesm2022/ngwr-table-router.mjs +89 -0
- package/fesm2022/ngwr-table-router.mjs.map +1 -0
- package/fesm2022/ngwr-table-testing.mjs +5 -0
- package/fesm2022/ngwr-table-testing.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +307 -47
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tabs-router.mjs +9 -5
- package/fesm2022/ngwr-tabs-router.mjs.map +1 -1
- package/fesm2022/ngwr-tabs-testing.mjs +8 -1
- package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tabs.mjs +60 -10
- package/fesm2022/ngwr-tabs.mjs.map +1 -1
- package/fesm2022/ngwr-textarea.mjs +5 -5
- package/fesm2022/ngwr-textarea.mjs.map +1 -1
- package/fesm2022/ngwr-theme.mjs +3 -3
- package/fesm2022/ngwr-timeline.mjs +6 -6
- package/fesm2022/ngwr-toast.mjs +43 -15
- package/fesm2022/ngwr-toast.mjs.map +1 -1
- package/fesm2022/ngwr-toolbar.mjs +3 -3
- package/fesm2022/ngwr-tour.mjs +9 -8
- package/fesm2022/ngwr-tour.mjs.map +1 -1
- package/fesm2022/ngwr-transfer.mjs +4 -3
- package/fesm2022/ngwr-transfer.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +3 -3
- package/fesm2022/ngwr-typography.mjs +23 -3
- package/fesm2022/ngwr-typography.mjs.map +1 -1
- package/fesm2022/ngwr-utils-router.mjs +3 -3
- package/fesm2022/ngwr-utils-router.mjs.map +1 -1
- package/fesm2022/ngwr-utils.mjs +74 -4
- package/fesm2022/ngwr-utils.mjs.map +1 -1
- package/fesm2022/ngwr-validators.mjs +33 -1
- package/fesm2022/ngwr-validators.mjs.map +1 -1
- package/fesm2022/ngwr-version.mjs +1 -1
- package/fesm2022/ngwr-version.mjs.map +1 -1
- package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
- package/fesm2022/ngwr-window.mjs +18 -13
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/file-upload/styles/_index.scss +16 -0
- package/form/styles/_index.scss +37 -0
- package/graph/styles/_index.scss +49 -9
- package/i18n/ar.json +19 -2
- package/i18n/cs.json +19 -2
- package/i18n/de.json +19 -2
- package/i18n/en.json +19 -2
- package/i18n/es.json +19 -2
- package/i18n/fr.json +19 -2
- package/i18n/he.json +19 -2
- package/i18n/hi.json +19 -2
- package/i18n/id.json +19 -2
- package/i18n/it.json +19 -2
- package/i18n/ja.json +19 -2
- package/i18n/kk.json +567 -0
- package/i18n/ko.json +19 -2
- package/i18n/nl.json +19 -2
- package/i18n/pl.json +19 -2
- package/i18n/pt.json +19 -2
- package/i18n/ru.json +19 -2
- package/i18n/sv.json +19 -2
- package/i18n/tr.json +19 -2
- package/i18n/uk.json +19 -2
- package/i18n/vi.json +19 -2
- package/i18n/zh-TW.json +19 -2
- package/i18n/zh.json +19 -2
- package/image-cropper/styles/_index.scss +1 -9
- package/input-number/styles/_index.scss +7 -0
- package/layout/styles/_index.scss +13 -1
- package/llms-full.txt +37 -26
- package/llms.txt +4 -1
- package/loading-bar/styles/_rules.scss +6 -0
- package/package.json +16 -8
- package/page-header/styles/_index.scss +18 -0
- package/pagination/styles/_index.scss +6 -0
- package/popover/styles/_index.scss +9 -0
- package/progress/styles/_index.scss +64 -0
- package/schematics/use/symbol-map.json +7 -0
- package/segmented/styles/_index.scss +7 -0
- package/select/styles/_index.scss +7 -0
- package/sidebar/styles/_index.scss +64 -6
- package/skills/ngwr/SKILL.md +7 -6
- package/skills/ngwr/references/catalog.md +7 -5
- package/sortable-list/styles/_rules.scss +1 -9
- package/speed-dial/styles/_index.scss +6 -0
- package/stepper/styles/_index.scss +1 -9
- package/table/styles/_index.scss +168 -30
- package/tabs/styles/_index.scss +9 -0
- package/theme/_index.scss +12 -1
- package/theme/styles/_colors.scss +11 -0
- package/theme/styles/_contrast.scss +6 -0
- package/theme/styles/_focus.scss +3 -1
- package/theme/styles/_index.scss +1 -0
- package/theme/styles/_mixins.scss +45 -0
- package/theme/styles/_print.scss +17 -0
- package/toast/styles/_index.scss +7 -0
- package/tour/styles/_index.scss +9 -0
- package/tree/styles/_index.scss +1 -9
- package/types/ngwr-anchor.d.ts +3 -0
- package/types/ngwr-animations-aurora.d.ts +6 -0
- package/types/ngwr-animations-blur-reveal.d.ts +6 -0
- package/types/ngwr-animations-click-sparks.d.ts +6 -0
- package/types/ngwr-animations-confetti.d.ts +6 -0
- package/types/ngwr-animations-decode.d.ts +6 -0
- package/types/ngwr-animations-destruct.d.ts +6 -0
- package/types/ngwr-animations-dot-grid.d.ts +6 -0
- package/types/ngwr-animations-falling-letters.d.ts +6 -0
- package/types/ngwr-animations-flow-lines.d.ts +6 -0
- package/types/ngwr-animations-fluid-cursor.d.ts +6 -0
- package/types/ngwr-animations-glitch.d.ts +6 -0
- package/types/ngwr-animations-glow-border.d.ts +6 -0
- package/types/ngwr-animations-gradient-flow.d.ts +6 -0
- package/types/ngwr-animations-marquee.d.ts +6 -0
- package/types/ngwr-animations-orbit.d.ts +6 -0
- package/types/ngwr-animations-reveal.d.ts +6 -0
- package/types/ngwr-animations-ripple-grid.d.ts +6 -0
- package/types/ngwr-animations-rotate-reveal.d.ts +6 -0
- package/types/ngwr-animations-shimmer.d.ts +6 -0
- package/types/ngwr-animations-spotlight.d.ts +6 -0
- package/types/ngwr-animations-thread-lines.d.ts +6 -0
- package/types/ngwr-animations-tilt.d.ts +10 -0
- package/types/ngwr-animations-typewriter.d.ts +6 -0
- package/types/ngwr-avatar.d.ts +39 -0
- package/types/ngwr-breadcrumbs.d.ts +25 -0
- package/types/ngwr-button.d.ts +35 -3
- package/types/ngwr-carousel.d.ts +2 -0
- package/types/ngwr-cascader.d.ts +7 -0
- package/types/ngwr-charts-core.d.ts +16 -0
- package/types/ngwr-charts-meter-group.d.ts +2 -0
- package/types/ngwr-checkbox.d.ts +1 -0
- package/types/ngwr-color-picker.d.ts +1 -0
- package/types/ngwr-context-menu.d.ts +1 -1
- package/types/ngwr-date-picker-testing.d.ts +22 -0
- package/types/ngwr-date-picker.d.ts +97 -17
- package/types/ngwr-date.d.ts +51 -0
- package/types/ngwr-dialog.d.ts +39 -8
- package/types/ngwr-directives.d.ts +57 -4
- package/types/ngwr-drawer.d.ts +1 -1
- package/types/ngwr-dropdown-testing.d.ts +8 -1
- package/types/ngwr-dropdown.d.ts +30 -1
- package/types/ngwr-event-calendar.d.ts +4 -0
- package/types/ngwr-file-upload-testing.d.ts +10 -0
- package/types/ngwr-file-upload.d.ts +55 -1
- package/types/ngwr-form.d.ts +87 -1
- package/types/ngwr-graph-testing.d.ts +28 -1
- package/types/ngwr-graph.d.ts +53 -3
- package/types/ngwr-i18n-kk.d.ts +3 -0
- package/types/ngwr-i18n.d.ts +65 -5
- package/types/ngwr-image-cropper.d.ts +6 -0
- package/types/ngwr-input-number.d.ts +8 -0
- package/types/ngwr-input.d.ts +7 -0
- package/types/ngwr-layout.d.ts +1 -1
- package/types/ngwr-loading-bar-router.d.ts +6 -0
- package/types/ngwr-page-header.d.ts +23 -1
- package/types/ngwr-pagination-testing.d.ts +8 -0
- package/types/ngwr-pagination.d.ts +16 -0
- package/types/ngwr-popconfirm.d.ts +1 -1
- package/types/ngwr-popover.d.ts +67 -4
- package/types/ngwr-progress.d.ts +63 -1
- package/types/ngwr-radio.d.ts +47 -5
- package/types/ngwr-scroll.d.ts +86 -0
- package/types/ngwr-segmented.d.ts +7 -0
- package/types/ngwr-select.d.ts +88 -25
- package/types/ngwr-sidebar-testing.d.ts +21 -7
- package/types/ngwr-sidebar.d.ts +66 -4
- package/types/ngwr-sortable-list.d.ts +20 -7
- package/types/ngwr-table-router.d.ts +49 -0
- package/types/ngwr-table-testing.d.ts +7 -0
- package/types/ngwr-table.d.ts +241 -10
- package/types/ngwr-tabs-router.d.ts +7 -1
- package/types/ngwr-tabs-testing.d.ts +5 -1
- package/types/ngwr-tabs.d.ts +34 -1
- package/types/ngwr-toast.d.ts +11 -0
- package/types/ngwr-tour.d.ts +0 -1
- package/types/ngwr-typography.d.ts +7 -0
- package/types/ngwr-utils-router.d.ts +6 -0
- package/types/ngwr-utils.d.ts +69 -2
- package/types/ngwr-validators.d.ts +49 -1
- package/types/ngwr-version.d.ts +1 -1
- package/typography/styles/_index.scss +4 -0
- package/window/styles/_index.scss +1 -9
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { Component, DestroyRef, Directive, ElementRef, EnvironmentInjector, Injectable, Injector, ViewEncapsulation, afterNextRender, computed, effect, inject, input, model, output, signal, untracked, viewChild } from "@angular/core";
|
|
2
|
+
import { Component, DestroyRef, Directive, ElementRef, EnvironmentInjector, Injectable, Injector, ViewEncapsulation, afterNextRender, afterRenderEffect, computed, effect, inject, input, model, output, signal, untracked, viewChild } from "@angular/core";
|
|
3
3
|
import { coerceBooleanProperty, coerceNumberProperty } from "@angular/cdk/coercion";
|
|
4
4
|
import { wrCheckStyles, wrClamp, wrGetFocusableElements, wrToClassList } from "ngwr/utils";
|
|
5
5
|
import { useI18nFormatter, useI18nText, wrReadI18nText } from "ngwr/i18n";
|
|
6
6
|
import { Directionality } from "@angular/cdk/bidi";
|
|
7
|
-
import { WrDateAdapter, wrDateLocale, wrPeriodEnd, wrPeriodStart, wrWeekOfYear, wrWeekStart } from "ngwr/date";
|
|
7
|
+
import { WrDateAdapter, wrDateLocale, wrFromDay, wrPeriodEnd, wrPeriodStart, wrToDay, wrWeekOfYear, wrWeekStart } from "ngwr/date";
|
|
8
8
|
import { WR_FORM_FIELD } from "ngwr/form";
|
|
9
9
|
import { ScrollStrategyOptions } from "@angular/cdk/overlay";
|
|
10
10
|
import { ComponentPortal } from "@angular/cdk/portal";
|
|
@@ -256,7 +256,7 @@ var WrTimePanel = class WrTimePanel {
|
|
|
256
256
|
}
|
|
257
257
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
258
258
|
minVersion: "12.0.0",
|
|
259
|
-
version: "22.
|
|
259
|
+
version: "22.3.0",
|
|
260
260
|
ngImport: i0,
|
|
261
261
|
type: WrTimePanel,
|
|
262
262
|
deps: [],
|
|
@@ -264,7 +264,7 @@ var WrTimePanel = class WrTimePanel {
|
|
|
264
264
|
});
|
|
265
265
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
266
266
|
minVersion: "17.0.0",
|
|
267
|
-
version: "22.
|
|
267
|
+
version: "22.3.0",
|
|
268
268
|
type: WrTimePanel,
|
|
269
269
|
isStandalone: true,
|
|
270
270
|
selector: "wr-time-picker",
|
|
@@ -334,7 +334,7 @@ var WrTimePanel = class WrTimePanel {
|
|
|
334
334
|
};
|
|
335
335
|
i0.ɵɵngDeclareClassMetadata({
|
|
336
336
|
minVersion: "12.0.0",
|
|
337
|
-
version: "22.
|
|
337
|
+
version: "22.3.0",
|
|
338
338
|
ngImport: i0,
|
|
339
339
|
type: WrTimePanel,
|
|
340
340
|
decorators: [{
|
|
@@ -458,7 +458,7 @@ var WrDateTimePanel = class WrDateTimePanel {
|
|
|
458
458
|
}
|
|
459
459
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
460
460
|
minVersion: "12.0.0",
|
|
461
|
-
version: "22.
|
|
461
|
+
version: "22.3.0",
|
|
462
462
|
ngImport: i0,
|
|
463
463
|
type: WrDateTimePanel,
|
|
464
464
|
deps: [],
|
|
@@ -466,7 +466,7 @@ var WrDateTimePanel = class WrDateTimePanel {
|
|
|
466
466
|
});
|
|
467
467
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
468
468
|
minVersion: "17.2.0",
|
|
469
|
-
version: "22.
|
|
469
|
+
version: "22.3.0",
|
|
470
470
|
type: WrDateTimePanel,
|
|
471
471
|
isStandalone: true,
|
|
472
472
|
selector: "wr-date-time-panel",
|
|
@@ -599,7 +599,7 @@ var WrDateTimePanel = class WrDateTimePanel {
|
|
|
599
599
|
};
|
|
600
600
|
i0.ɵɵngDeclareClassMetadata({
|
|
601
601
|
minVersion: "12.0.0",
|
|
602
|
-
version: "22.
|
|
602
|
+
version: "22.3.0",
|
|
603
603
|
ngImport: i0,
|
|
604
604
|
type: WrDateTimePanel,
|
|
605
605
|
decorators: [{
|
|
@@ -804,6 +804,7 @@ var WrDateInputField = class WrDateInputField {
|
|
|
804
804
|
adoptControlId: (id) => outer.adoptControlId(id),
|
|
805
805
|
labelId: outer.labelId,
|
|
806
806
|
hintId: outer.hintId,
|
|
807
|
+
required: outer.required,
|
|
807
808
|
errorKeys: computed(() => {
|
|
808
809
|
const keys = outer.errorKeys();
|
|
809
810
|
const own = this.described();
|
|
@@ -819,7 +820,7 @@ var WrDateInputField = class WrDateInputField {
|
|
|
819
820
|
}
|
|
820
821
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
821
822
|
minVersion: "12.0.0",
|
|
822
|
-
version: "22.
|
|
823
|
+
version: "22.3.0",
|
|
823
824
|
ngImport: i0,
|
|
824
825
|
type: WrDateInputField,
|
|
825
826
|
deps: [],
|
|
@@ -827,14 +828,14 @@ var WrDateInputField = class WrDateInputField {
|
|
|
827
828
|
});
|
|
828
829
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
829
830
|
minVersion: "12.0.0",
|
|
830
|
-
version: "22.
|
|
831
|
+
version: "22.3.0",
|
|
831
832
|
ngImport: i0,
|
|
832
833
|
type: WrDateInputField
|
|
833
834
|
});
|
|
834
835
|
};
|
|
835
836
|
i0.ɵɵngDeclareClassMetadata({
|
|
836
837
|
minVersion: "12.0.0",
|
|
837
|
-
version: "22.
|
|
838
|
+
version: "22.3.0",
|
|
838
839
|
ngImport: i0,
|
|
839
840
|
type: WrDateInputField,
|
|
840
841
|
decorators: [{ type: Injectable }]
|
|
@@ -1011,10 +1012,14 @@ function wrPickerPanelInjector(parent, adapter) {
|
|
|
1011
1012
|
*/
|
|
1012
1013
|
let panelUid = 0;
|
|
1013
1014
|
const SILENCE_MS$1 = 100;
|
|
1015
|
+
function toBound(value) {
|
|
1016
|
+
return typeof value === "string" ? wrFromDay(value) ?? void 0 : value;
|
|
1017
|
+
}
|
|
1014
1018
|
var WrDatePicker = class WrDatePicker {
|
|
1015
1019
|
mode = input("date", ...ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []);
|
|
1016
1020
|
format = input(null, ...ngDevMode ? [{ debugName: "format" }] : /* istanbul ignore next */ []);
|
|
1017
1021
|
placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
1022
|
+
valueFormat = input("date", ...ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []);
|
|
1018
1023
|
min = input(void 0, ...ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []);
|
|
1019
1024
|
max = input(void 0, ...ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []);
|
|
1020
1025
|
dateFilter = input(null, ...ngDevMode ? [{ debugName: "dateFilter" }] : /* istanbul ignore next */ []);
|
|
@@ -1028,6 +1033,10 @@ var WrDatePicker = class WrDatePicker {
|
|
|
1028
1033
|
transform: (v) => Math.max(1, coerceNumberProperty(v, 1))
|
|
1029
1034
|
});
|
|
1030
1035
|
size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
1036
|
+
block = input(false, {
|
|
1037
|
+
...ngDevMode ? { debugName: "block" } : /* istanbul ignore next */ {},
|
|
1038
|
+
transform: coerceBooleanProperty
|
|
1039
|
+
});
|
|
1031
1040
|
rounded = input(false, {
|
|
1032
1041
|
...ngDevMode ? { debugName: "rounded" } : /* istanbul ignore next */ {},
|
|
1033
1042
|
transform: coerceBooleanProperty
|
|
@@ -1062,11 +1071,23 @@ var WrDatePicker = class WrDatePicker {
|
|
|
1062
1071
|
inputEl = viewChild.required("input", ...ngDevMode ? [{ debugName: "inputEl" }] : /* istanbul ignore next */ []);
|
|
1063
1072
|
triggerEl = viewChild("trigger", ...ngDevMode ? [{ debugName: "triggerEl" }] : /* istanbul ignore next */ []);
|
|
1064
1073
|
value = model(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
1074
|
+
holdsDay = computed(() => {
|
|
1075
|
+
const mode = this.mode();
|
|
1076
|
+
return this.valueFormat() === "day" && mode !== "time" && mode !== "datetime";
|
|
1077
|
+
}, ...ngDevMode ? [{ debugName: "holdsDay" }] : /* istanbul ignore next */ []);
|
|
1078
|
+
date = computed(() => this.toDate(this.value()), ...ngDevMode ? [{ debugName: "date" }] : /* istanbul ignore next */ []);
|
|
1079
|
+
minDate = computed(() => toBound(this.min()), ...ngDevMode ? [{ debugName: "minDate" }] : /* istanbul ignore next */ []);
|
|
1080
|
+
maxDate = computed(() => toBound(this.max()), ...ngDevMode ? [{ debugName: "maxDate" }] : /* istanbul ignore next */ []);
|
|
1081
|
+
dayAttr = computed(() => {
|
|
1082
|
+
if (!this.holdsDay()) return null;
|
|
1083
|
+
const date = this.date();
|
|
1084
|
+
return date ? wrToDay(date) : "";
|
|
1085
|
+
}, ...ngDevMode ? [{ debugName: "dayAttr" }] : /* istanbul ignore next */ []);
|
|
1065
1086
|
touch = output();
|
|
1066
1087
|
opened = output();
|
|
1067
1088
|
closed = output();
|
|
1068
1089
|
text = signal("", ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
|
|
1069
|
-
hasValue = computed(() => this.
|
|
1090
|
+
hasValue = computed(() => this.date() != null, ...ngDevMode ? [{ debugName: "hasValue" }] : /* istanbul ignore next */ []);
|
|
1070
1091
|
overlayOpen = signal(false, ...ngDevMode ? [{ debugName: "overlayOpen" }] : /* istanbul ignore next */ []);
|
|
1071
1092
|
isOpen = this.overlayOpen.asReadonly();
|
|
1072
1093
|
openedFrom = null;
|
|
@@ -1146,6 +1167,7 @@ var WrDatePicker = class WrDatePicker {
|
|
|
1146
1167
|
const size = this.size();
|
|
1147
1168
|
if (size !== "md") parts.push(`wr-date-picker--${size}`);
|
|
1148
1169
|
if (this.rounded()) parts.push("wr-date-picker--rounded");
|
|
1170
|
+
if (this.block()) parts.push("wr-date-picker--block");
|
|
1149
1171
|
if (this.disabled()) parts.push("wr-date-picker--disabled");
|
|
1150
1172
|
if (this.inputError()) parts.push("wr-date-picker--invalid");
|
|
1151
1173
|
return parts.join(" ");
|
|
@@ -1160,18 +1182,24 @@ var WrDatePicker = class WrDatePicker {
|
|
|
1160
1182
|
lastKey = null;
|
|
1161
1183
|
constructor() {
|
|
1162
1184
|
if (typeof ngDevMode === "undefined" || ngDevMode) wrCheckStyles("date-picker");
|
|
1185
|
+
if (typeof ngDevMode === "undefined" || ngDevMode) effect(() => {
|
|
1186
|
+
const mode = this.mode();
|
|
1187
|
+
if (this.valueFormat() !== "day" || mode !== "time" && mode !== "datetime") return;
|
|
1188
|
+
console.warn(`[NGWR] <wr-date-picker mode="${mode}"> ignores valueFormat="day": a day string cannot hold a time, so the value stays a Date. Drop valueFormat, or use mode="date" or a period mode.`);
|
|
1189
|
+
});
|
|
1163
1190
|
this.destroyRef.onDestroy(() => {
|
|
1164
1191
|
this.dispose();
|
|
1165
1192
|
clearTimeout(this.silenceTimer);
|
|
1166
1193
|
});
|
|
1167
1194
|
effect(() => {
|
|
1168
|
-
const
|
|
1195
|
+
const raw = this.value();
|
|
1196
|
+
const v = this.date();
|
|
1169
1197
|
const fmt = this.resolvedFormat();
|
|
1170
1198
|
const key = this.fieldText.key();
|
|
1171
1199
|
untracked(() => {
|
|
1172
|
-
const outside =
|
|
1173
|
-
const echo = this.
|
|
1174
|
-
this.lastValue =
|
|
1200
|
+
const outside = raw !== this.lastValue;
|
|
1201
|
+
const echo = this.sameValue(raw, this.lastValue) && fmt === this.lastFormat && key === this.lastKey;
|
|
1202
|
+
this.lastValue = raw;
|
|
1175
1203
|
this.lastFormat = fmt;
|
|
1176
1204
|
this.lastKey = key;
|
|
1177
1205
|
if (echo && !(outside && this.refusal())) return;
|
|
@@ -1188,13 +1216,13 @@ var WrDatePicker = class WrDatePicker {
|
|
|
1188
1216
|
this.inputField.describe(this.inputError);
|
|
1189
1217
|
effect(() => {
|
|
1190
1218
|
const ref = this.dateRef();
|
|
1191
|
-
if (ref) ref.setInput("date", this.
|
|
1219
|
+
if (ref) ref.setInput("date", this.date());
|
|
1192
1220
|
});
|
|
1193
1221
|
effect(() => {
|
|
1194
1222
|
const ref = this.dateRef();
|
|
1195
1223
|
if (!ref) return;
|
|
1196
|
-
ref.setInput("min", this.
|
|
1197
|
-
ref.setInput("max", this.
|
|
1224
|
+
ref.setInput("min", this.minDate());
|
|
1225
|
+
ref.setInput("max", this.maxDate());
|
|
1198
1226
|
ref.setInput("dateFilter", this.dateFilter());
|
|
1199
1227
|
ref.setInput("granularity", this.period() ?? "day");
|
|
1200
1228
|
});
|
|
@@ -1209,10 +1237,10 @@ var WrDatePicker = class WrDatePicker {
|
|
|
1209
1237
|
effect(() => {
|
|
1210
1238
|
const ref = this.dateTimeRef();
|
|
1211
1239
|
if (!ref) return;
|
|
1212
|
-
const value = this.
|
|
1240
|
+
const value = this.date();
|
|
1213
1241
|
if (value !== this.lastFromPanel) ref.setInput("value", value);
|
|
1214
|
-
ref.setInput("min", this.
|
|
1215
|
-
ref.setInput("max", this.
|
|
1242
|
+
ref.setInput("min", this.minDate());
|
|
1243
|
+
ref.setInput("max", this.maxDate());
|
|
1216
1244
|
ref.setInput("dateFilter", this.dateFilter());
|
|
1217
1245
|
ref.setInput("timeFormat", this.timeFormat());
|
|
1218
1246
|
ref.setInput("showSeconds", this.showSeconds());
|
|
@@ -1229,7 +1257,7 @@ var WrDatePicker = class WrDatePicker {
|
|
|
1229
1257
|
return;
|
|
1230
1258
|
}
|
|
1231
1259
|
const parsed = this.fieldText.read(raw);
|
|
1232
|
-
if (!parsed) {
|
|
1260
|
+
if (!parsed || this.holdsDay() && !wrToDay(parsed)) {
|
|
1233
1261
|
this.refuse(this.fieldText.unreadable());
|
|
1234
1262
|
return;
|
|
1235
1263
|
}
|
|
@@ -1252,7 +1280,7 @@ var WrDatePicker = class WrDatePicker {
|
|
|
1252
1280
|
}
|
|
1253
1281
|
withKeptDate(parsed) {
|
|
1254
1282
|
if (this.mode() !== "time") return parsed;
|
|
1255
|
-
const current = this.
|
|
1283
|
+
const current = this.date();
|
|
1256
1284
|
if (!current || !this.adapter.isValid(current)) return parsed;
|
|
1257
1285
|
return this.adapter.setTime(current, this.adapter.getHours(parsed), this.adapter.getMinutes(parsed), this.adapter.getSeconds(parsed));
|
|
1258
1286
|
}
|
|
@@ -1281,7 +1309,7 @@ var WrDatePicker = class WrDatePicker {
|
|
|
1281
1309
|
this.revealed.set(true);
|
|
1282
1310
|
}
|
|
1283
1311
|
settleText() {
|
|
1284
|
-
const v = this.
|
|
1312
|
+
const v = this.date();
|
|
1285
1313
|
if (v && this.adapter.isValid(v)) this.text.set(this.fieldText.show(v));
|
|
1286
1314
|
else if (!this.text()) this.commitValue(null);
|
|
1287
1315
|
}
|
|
@@ -1295,7 +1323,7 @@ var WrDatePicker = class WrDatePicker {
|
|
|
1295
1323
|
}
|
|
1296
1324
|
onFormReset() {
|
|
1297
1325
|
if (!this.refusal()) return;
|
|
1298
|
-
const v = this.
|
|
1326
|
+
const v = this.date();
|
|
1299
1327
|
this.text.set(v && this.adapter.isValid(v) ? this.fieldText.show(v) : "");
|
|
1300
1328
|
this.refuse(null);
|
|
1301
1329
|
}
|
|
@@ -1428,10 +1456,10 @@ var WrDatePicker = class WrDatePicker {
|
|
|
1428
1456
|
if (!this.overlayRef) return;
|
|
1429
1457
|
const ref = this.overlayRef.attach(new ComponentPortal(WrCalendar));
|
|
1430
1458
|
ref.setInput("granularity", this.period() ?? "day");
|
|
1431
|
-
ref.setInput("date", this.
|
|
1459
|
+
ref.setInput("date", this.date());
|
|
1432
1460
|
this.dateRef.set(ref);
|
|
1433
|
-
ref.setInput("min", this.
|
|
1434
|
-
ref.setInput("max", this.
|
|
1461
|
+
ref.setInput("min", this.minDate());
|
|
1462
|
+
ref.setInput("max", this.maxDate());
|
|
1435
1463
|
ref.setInput("dateFilter", this.dateFilter());
|
|
1436
1464
|
ref.setInput("autoFocus", this.autoFocusPanel);
|
|
1437
1465
|
ref.instance.date.subscribe((next) => {
|
|
@@ -1448,7 +1476,7 @@ var WrDatePicker = class WrDatePicker {
|
|
|
1448
1476
|
ref.setInput("step", this.step());
|
|
1449
1477
|
ref.setInput("autoFocus", this.autoFocusPanel);
|
|
1450
1478
|
ref.setInput("readonly", this.readonly());
|
|
1451
|
-
ref.setInput("value", this.
|
|
1479
|
+
ref.setInput("value", this.date() ?? this.adapter.today());
|
|
1452
1480
|
this.timeRef.set(ref);
|
|
1453
1481
|
ref.instance.value.subscribe((next) => {
|
|
1454
1482
|
if (!next) return;
|
|
@@ -1459,9 +1487,9 @@ var WrDatePicker = class WrDatePicker {
|
|
|
1459
1487
|
attachDateTime() {
|
|
1460
1488
|
if (!this.overlayRef) return;
|
|
1461
1489
|
const ref = this.overlayRef.attach(new ComponentPortal(WrDateTimePanel, null, this.panelInjector()));
|
|
1462
|
-
ref.setInput("value", this.
|
|
1463
|
-
ref.setInput("min", this.
|
|
1464
|
-
ref.setInput("max", this.
|
|
1490
|
+
ref.setInput("value", this.date());
|
|
1491
|
+
ref.setInput("min", this.minDate());
|
|
1492
|
+
ref.setInput("max", this.maxDate());
|
|
1465
1493
|
ref.setInput("dateFilter", this.dateFilter());
|
|
1466
1494
|
ref.setInput("timeFormat", this.timeFormat());
|
|
1467
1495
|
ref.setInput("showSeconds", this.showSeconds());
|
|
@@ -1472,7 +1500,7 @@ var WrDatePicker = class WrDatePicker {
|
|
|
1472
1500
|
ref.instance.changed.subscribe((next) => {
|
|
1473
1501
|
this.lastFromPanel = next;
|
|
1474
1502
|
this.commit(next);
|
|
1475
|
-
ref.setInput("value", this.
|
|
1503
|
+
ref.setInput("value", this.date());
|
|
1476
1504
|
});
|
|
1477
1505
|
}
|
|
1478
1506
|
commit(next) {
|
|
@@ -1483,8 +1511,9 @@ var WrDatePicker = class WrDatePicker {
|
|
|
1483
1511
|
}
|
|
1484
1512
|
commitValue(next) {
|
|
1485
1513
|
if (this.readonly() || this.disabled()) return;
|
|
1486
|
-
|
|
1487
|
-
this.
|
|
1514
|
+
const held = this.toModel(next);
|
|
1515
|
+
this.lastValue = held;
|
|
1516
|
+
this.value.set(held);
|
|
1488
1517
|
}
|
|
1489
1518
|
closeOverlay() {
|
|
1490
1519
|
const wasOpen = !!this.overlayRef;
|
|
@@ -1511,19 +1540,26 @@ var WrDatePicker = class WrDatePicker {
|
|
|
1511
1540
|
if (this.mode() === "time") return null;
|
|
1512
1541
|
const period = this.period();
|
|
1513
1542
|
return this.refusals.outOfBounds(date, {
|
|
1514
|
-
min: this.
|
|
1515
|
-
max: this.
|
|
1543
|
+
min: this.minDate(),
|
|
1544
|
+
max: this.maxDate(),
|
|
1516
1545
|
filter: this.dateFilter()
|
|
1517
1546
|
}, period ? wrPeriodEnd(this.adapter, date, period) : date);
|
|
1518
1547
|
}
|
|
1519
|
-
|
|
1548
|
+
sameValue(a, b) {
|
|
1520
1549
|
if (a === b) return true;
|
|
1521
|
-
if (!a || !b) return false;
|
|
1550
|
+
if (!(a instanceof Date) || !(b instanceof Date)) return false;
|
|
1522
1551
|
return a.getTime() === b.getTime();
|
|
1523
1552
|
}
|
|
1553
|
+
toDate(value) {
|
|
1554
|
+
if (this.holdsDay() && !(value instanceof Date)) return wrFromDay(value);
|
|
1555
|
+
return value ?? null;
|
|
1556
|
+
}
|
|
1557
|
+
toModel(date) {
|
|
1558
|
+
return date && this.holdsDay() ? wrToDay(date) : date;
|
|
1559
|
+
}
|
|
1524
1560
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1525
1561
|
minVersion: "12.0.0",
|
|
1526
|
-
version: "22.
|
|
1562
|
+
version: "22.3.0",
|
|
1527
1563
|
ngImport: i0,
|
|
1528
1564
|
type: WrDatePicker,
|
|
1529
1565
|
deps: [],
|
|
@@ -1531,7 +1567,7 @@ var WrDatePicker = class WrDatePicker {
|
|
|
1531
1567
|
});
|
|
1532
1568
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1533
1569
|
minVersion: "17.0.0",
|
|
1534
|
-
version: "22.
|
|
1570
|
+
version: "22.3.0",
|
|
1535
1571
|
type: WrDatePicker,
|
|
1536
1572
|
isStandalone: true,
|
|
1537
1573
|
selector: "wr-date-picker",
|
|
@@ -1557,6 +1593,13 @@ var WrDatePicker = class WrDatePicker {
|
|
|
1557
1593
|
isRequired: false,
|
|
1558
1594
|
transformFunction: null
|
|
1559
1595
|
},
|
|
1596
|
+
valueFormat: {
|
|
1597
|
+
classPropertyName: "valueFormat",
|
|
1598
|
+
publicName: "valueFormat",
|
|
1599
|
+
isSignal: true,
|
|
1600
|
+
isRequired: false,
|
|
1601
|
+
transformFunction: null
|
|
1602
|
+
},
|
|
1560
1603
|
min: {
|
|
1561
1604
|
classPropertyName: "min",
|
|
1562
1605
|
publicName: "min",
|
|
@@ -1606,6 +1649,13 @@ var WrDatePicker = class WrDatePicker {
|
|
|
1606
1649
|
isRequired: false,
|
|
1607
1650
|
transformFunction: null
|
|
1608
1651
|
},
|
|
1652
|
+
block: {
|
|
1653
|
+
classPropertyName: "block",
|
|
1654
|
+
publicName: "block",
|
|
1655
|
+
isSignal: true,
|
|
1656
|
+
isRequired: false,
|
|
1657
|
+
transformFunction: null
|
|
1658
|
+
},
|
|
1609
1659
|
rounded: {
|
|
1610
1660
|
classPropertyName: "rounded",
|
|
1611
1661
|
publicName: "rounded",
|
|
@@ -1684,7 +1734,10 @@ var WrDatePicker = class WrDatePicker {
|
|
|
1684
1734
|
closed: "closed"
|
|
1685
1735
|
},
|
|
1686
1736
|
host: {
|
|
1687
|
-
properties: {
|
|
1737
|
+
properties: {
|
|
1738
|
+
"class": "classes()",
|
|
1739
|
+
"attr.data-day": "dayAttr()"
|
|
1740
|
+
},
|
|
1688
1741
|
classAttribute: "wr-date-picker"
|
|
1689
1742
|
},
|
|
1690
1743
|
providers: [WrDateInputField],
|
|
@@ -1734,7 +1787,7 @@ var WrDatePicker = class WrDatePicker {
|
|
|
1734
1787
|
};
|
|
1735
1788
|
i0.ɵɵngDeclareClassMetadata({
|
|
1736
1789
|
minVersion: "12.0.0",
|
|
1737
|
-
version: "22.
|
|
1790
|
+
version: "22.3.0",
|
|
1738
1791
|
ngImport: i0,
|
|
1739
1792
|
type: WrDatePicker,
|
|
1740
1793
|
decorators: [{
|
|
@@ -1744,7 +1797,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1744
1797
|
encapsulation: ViewEncapsulation.None,
|
|
1745
1798
|
host: {
|
|
1746
1799
|
class: "wr-date-picker",
|
|
1747
|
-
"[class]": "classes()"
|
|
1800
|
+
"[class]": "classes()",
|
|
1801
|
+
"[attr.data-day]": "dayAttr()"
|
|
1748
1802
|
},
|
|
1749
1803
|
imports: [
|
|
1750
1804
|
WrInput,
|
|
@@ -1782,6 +1836,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1782
1836
|
required: false
|
|
1783
1837
|
}]
|
|
1784
1838
|
}],
|
|
1839
|
+
valueFormat: [{
|
|
1840
|
+
type: i0.Input,
|
|
1841
|
+
args: [{
|
|
1842
|
+
isSignal: true,
|
|
1843
|
+
alias: "valueFormat",
|
|
1844
|
+
required: false
|
|
1845
|
+
}]
|
|
1846
|
+
}],
|
|
1785
1847
|
min: [{
|
|
1786
1848
|
type: i0.Input,
|
|
1787
1849
|
args: [{
|
|
@@ -1838,6 +1900,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1838
1900
|
required: false
|
|
1839
1901
|
}]
|
|
1840
1902
|
}],
|
|
1903
|
+
block: [{
|
|
1904
|
+
type: i0.Input,
|
|
1905
|
+
args: [{
|
|
1906
|
+
isSignal: true,
|
|
1907
|
+
alias: "block",
|
|
1908
|
+
required: false
|
|
1909
|
+
}]
|
|
1910
|
+
}],
|
|
1841
1911
|
rounded: [{
|
|
1842
1912
|
type: i0.Input,
|
|
1843
1913
|
args: [{
|
|
@@ -2040,7 +2110,7 @@ var WrDateRangePanel = class WrDateRangePanel {
|
|
|
2040
2110
|
}
|
|
2041
2111
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2042
2112
|
minVersion: "12.0.0",
|
|
2043
|
-
version: "22.
|
|
2113
|
+
version: "22.3.0",
|
|
2044
2114
|
ngImport: i0,
|
|
2045
2115
|
type: WrDateRangePanel,
|
|
2046
2116
|
deps: [],
|
|
@@ -2048,7 +2118,7 @@ var WrDateRangePanel = class WrDateRangePanel {
|
|
|
2048
2118
|
});
|
|
2049
2119
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2050
2120
|
minVersion: "17.0.0",
|
|
2051
|
-
version: "22.
|
|
2121
|
+
version: "22.3.0",
|
|
2052
2122
|
type: WrDateRangePanel,
|
|
2053
2123
|
isStandalone: true,
|
|
2054
2124
|
selector: "wr-date-range-panel",
|
|
@@ -2205,7 +2275,7 @@ var WrDateRangePanel = class WrDateRangePanel {
|
|
|
2205
2275
|
};
|
|
2206
2276
|
i0.ɵɵngDeclareClassMetadata({
|
|
2207
2277
|
minVersion: "12.0.0",
|
|
2208
|
-
version: "22.
|
|
2278
|
+
version: "22.3.0",
|
|
2209
2279
|
ngImport: i0,
|
|
2210
2280
|
type: WrDateRangePanel,
|
|
2211
2281
|
decorators: [{
|
|
@@ -2346,7 +2416,7 @@ var WrDateRangeEndInput = class WrDateRangeEndInput {
|
|
|
2346
2416
|
}
|
|
2347
2417
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2348
2418
|
minVersion: "12.0.0",
|
|
2349
|
-
version: "22.
|
|
2419
|
+
version: "22.3.0",
|
|
2350
2420
|
ngImport: i0,
|
|
2351
2421
|
type: WrDateRangeEndInput,
|
|
2352
2422
|
deps: [],
|
|
@@ -2354,7 +2424,7 @@ var WrDateRangeEndInput = class WrDateRangeEndInput {
|
|
|
2354
2424
|
});
|
|
2355
2425
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
2356
2426
|
minVersion: "14.0.0",
|
|
2357
|
-
version: "22.
|
|
2427
|
+
version: "22.3.0",
|
|
2358
2428
|
type: WrDateRangeEndInput,
|
|
2359
2429
|
isStandalone: true,
|
|
2360
2430
|
selector: "input[wrDateRangeEnd]",
|
|
@@ -2367,7 +2437,7 @@ var WrDateRangeEndInput = class WrDateRangeEndInput {
|
|
|
2367
2437
|
};
|
|
2368
2438
|
i0.ɵɵngDeclareClassMetadata({
|
|
2369
2439
|
minVersion: "12.0.0",
|
|
2370
|
-
version: "22.
|
|
2440
|
+
version: "22.3.0",
|
|
2371
2441
|
ngImport: i0,
|
|
2372
2442
|
type: WrDateRangeEndInput,
|
|
2373
2443
|
decorators: [{
|
|
@@ -2409,6 +2479,10 @@ var WrDateRangePicker = class WrDateRangePicker {
|
|
|
2409
2479
|
transform: (v) => Math.max(1, coerceNumberProperty(v, 1))
|
|
2410
2480
|
});
|
|
2411
2481
|
size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
2482
|
+
block = input(false, {
|
|
2483
|
+
...ngDevMode ? { debugName: "block" } : /* istanbul ignore next */ {},
|
|
2484
|
+
transform: coerceBooleanProperty
|
|
2485
|
+
});
|
|
2412
2486
|
rounded = input(false, {
|
|
2413
2487
|
...ngDevMode ? { debugName: "rounded" } : /* istanbul ignore next */ {},
|
|
2414
2488
|
transform: coerceBooleanProperty
|
|
@@ -2527,6 +2601,7 @@ var WrDateRangePicker = class WrDateRangePicker {
|
|
|
2527
2601
|
}, ...ngDevMode ? [{ debugName: "announcement" }] : /* istanbul ignore next */ []);
|
|
2528
2602
|
startAriaInvalid = computed(() => !this.inputField.outer && this.shownErrors()[0] ? "true" : null, ...ngDevMode ? [{ debugName: "startAriaInvalid" }] : /* istanbul ignore next */ []);
|
|
2529
2603
|
endAriaInvalid = computed(() => this.shownErrors()[1] ? "true" : null, ...ngDevMode ? [{ debugName: "endAriaInvalid" }] : /* istanbul ignore next */ []);
|
|
2604
|
+
endAriaRequired = computed(() => this.inputField.outer?.required?.() ? "true" : null, ...ngDevMode ? [{ debugName: "endAriaRequired" }] : /* istanbul ignore next */ []);
|
|
2530
2605
|
startDescribedBy = computed(() => !this.inputField.outer && this.shownErrors()[0]?.message && this.announcement() ? this.statusId : null, ...ngDevMode ? [{ debugName: "startDescribedBy" }] : /* istanbul ignore next */ []);
|
|
2531
2606
|
endDescribedBy = computed(() => this.shownErrors()[1]?.message && this.announcement() ? this.statusId : null, ...ngDevMode ? [{ debugName: "endDescribedBy" }] : /* istanbul ignore next */ []);
|
|
2532
2607
|
classes = computed(() => {
|
|
@@ -2534,6 +2609,7 @@ var WrDateRangePicker = class WrDateRangePicker {
|
|
|
2534
2609
|
const size = this.size();
|
|
2535
2610
|
if (size !== "md") parts.push(`wr-date-range-picker--${size}`);
|
|
2536
2611
|
if (this.rounded()) parts.push("wr-date-range-picker--rounded");
|
|
2612
|
+
if (this.block()) parts.push("wr-date-range-picker--block");
|
|
2537
2613
|
if (this.disabled()) parts.push("wr-date-range-picker--disabled");
|
|
2538
2614
|
if (this.shownErrors().some(Boolean)) parts.push("wr-date-range-picker--invalid");
|
|
2539
2615
|
return parts.join(" ");
|
|
@@ -2548,6 +2624,12 @@ var WrDateRangePicker = class WrDateRangePicker {
|
|
|
2548
2624
|
this.dispose();
|
|
2549
2625
|
clearTimeout(this.silenceTimer);
|
|
2550
2626
|
});
|
|
2627
|
+
afterRenderEffect(() => {
|
|
2628
|
+
const end = this.endEl().nativeElement;
|
|
2629
|
+
const required = this.endAriaRequired();
|
|
2630
|
+
if (required) end.setAttribute("aria-required", required);
|
|
2631
|
+
else end.removeAttribute("aria-required");
|
|
2632
|
+
});
|
|
2551
2633
|
this.inputField.describe(computed(() => this.shownErrors()[0]));
|
|
2552
2634
|
effect(() => {
|
|
2553
2635
|
const v = this.value();
|
|
@@ -2911,7 +2993,7 @@ var WrDateRangePicker = class WrDateRangePicker {
|
|
|
2911
2993
|
}
|
|
2912
2994
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2913
2995
|
minVersion: "12.0.0",
|
|
2914
|
-
version: "22.
|
|
2996
|
+
version: "22.3.0",
|
|
2915
2997
|
ngImport: i0,
|
|
2916
2998
|
type: WrDateRangePicker,
|
|
2917
2999
|
deps: [],
|
|
@@ -2919,7 +3001,7 @@ var WrDateRangePicker = class WrDateRangePicker {
|
|
|
2919
3001
|
});
|
|
2920
3002
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2921
3003
|
minVersion: "17.0.0",
|
|
2922
|
-
version: "22.
|
|
3004
|
+
version: "22.3.0",
|
|
2923
3005
|
type: WrDateRangePicker,
|
|
2924
3006
|
isStandalone: true,
|
|
2925
3007
|
selector: "wr-date-range-picker",
|
|
@@ -3008,6 +3090,13 @@ var WrDateRangePicker = class WrDateRangePicker {
|
|
|
3008
3090
|
isRequired: false,
|
|
3009
3091
|
transformFunction: null
|
|
3010
3092
|
},
|
|
3093
|
+
block: {
|
|
3094
|
+
classPropertyName: "block",
|
|
3095
|
+
publicName: "block",
|
|
3096
|
+
isSignal: true,
|
|
3097
|
+
isRequired: false,
|
|
3098
|
+
transformFunction: null
|
|
3099
|
+
},
|
|
3011
3100
|
rounded: {
|
|
3012
3101
|
classPropertyName: "rounded",
|
|
3013
3102
|
publicName: "rounded",
|
|
@@ -3158,7 +3247,7 @@ var WrDateRangePicker = class WrDateRangePicker {
|
|
|
3158
3247
|
};
|
|
3159
3248
|
i0.ɵɵngDeclareClassMetadata({
|
|
3160
3249
|
minVersion: "12.0.0",
|
|
3161
|
-
version: "22.
|
|
3250
|
+
version: "22.3.0",
|
|
3162
3251
|
ngImport: i0,
|
|
3163
3252
|
type: WrDateRangePicker,
|
|
3164
3253
|
decorators: [{
|
|
@@ -3279,6 +3368,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3279
3368
|
required: false
|
|
3280
3369
|
}]
|
|
3281
3370
|
}],
|
|
3371
|
+
block: [{
|
|
3372
|
+
type: i0.Input,
|
|
3373
|
+
args: [{
|
|
3374
|
+
isSignal: true,
|
|
3375
|
+
alias: "block",
|
|
3376
|
+
required: false
|
|
3377
|
+
}]
|
|
3378
|
+
}],
|
|
3282
3379
|
rounded: [{
|
|
3283
3380
|
type: i0.Input,
|
|
3284
3381
|
args: [{
|