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,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { Component, ViewEncapsulation, computed, input } from "@angular/core";
|
|
2
|
+
import { Component, DestroyRef, ElementRef, ViewEncapsulation, afterNextRender, afterRenderEffect, computed, inject, input, signal } from "@angular/core";
|
|
3
3
|
import { coerceBooleanProperty, coerceNumberProperty } from "@angular/cdk/coercion";
|
|
4
|
-
import { wrCheckStyles } from "ngwr/utils";
|
|
4
|
+
import { wrCheckStyles, wrRandomId } from "ngwr/utils";
|
|
5
5
|
import { useI18nText } from "ngwr/i18n";
|
|
6
6
|
/**
|
|
7
7
|
* @license
|
|
@@ -9,12 +9,34 @@ import { useI18nText } from "ngwr/i18n";
|
|
|
9
9
|
* Use of this source code is governed by an MIT-style license that can be
|
|
10
10
|
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
11
11
|
*/
|
|
12
|
+
const LABEL_GAP = 4;
|
|
12
13
|
var WrProgress = class WrProgress {
|
|
14
|
+
host = inject(ElementRef).nativeElement;
|
|
13
15
|
constructor() {
|
|
14
16
|
if (typeof ngDevMode === "undefined" || ngDevMode) wrCheckStyles("progress");
|
|
17
|
+
let observer = null;
|
|
18
|
+
const watch = () => {
|
|
19
|
+
if (!observer) return;
|
|
20
|
+
observer.disconnect();
|
|
21
|
+
observer.observe(this.host);
|
|
22
|
+
this.host.querySelectorAll(".wr-progress__mark-text").forEach((text) => observer?.observe(text));
|
|
23
|
+
};
|
|
24
|
+
afterRenderEffect({ read: () => {
|
|
25
|
+
this.labelledMarks();
|
|
26
|
+
this.fitLabels();
|
|
27
|
+
watch();
|
|
28
|
+
} });
|
|
29
|
+
const destroyRef = inject(DestroyRef);
|
|
30
|
+
afterNextRender(() => {
|
|
31
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
32
|
+
observer = new ResizeObserver(() => this.fitLabels());
|
|
33
|
+
watch();
|
|
34
|
+
destroyRef.onDestroy(() => observer?.disconnect());
|
|
35
|
+
});
|
|
15
36
|
}
|
|
16
37
|
ariaLabel = input(null, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
17
38
|
resolvedAriaLabel = useI18nText(this.ariaLabel, "progress.label", "Progress");
|
|
39
|
+
markId = wrRandomId("wr-progress-mark");
|
|
18
40
|
color = input("primary", ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
|
|
19
41
|
size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
20
42
|
value = input(0, {
|
|
@@ -25,25 +47,52 @@ var WrProgress = class WrProgress {
|
|
|
25
47
|
...ngDevMode ? { debugName: "indeterminate" } : /* istanbul ignore next */ {},
|
|
26
48
|
transform: coerceBooleanProperty
|
|
27
49
|
});
|
|
50
|
+
marks = input([], ...ngDevMode ? [{ debugName: "marks" }] : /* istanbul ignore next */ []);
|
|
28
51
|
clamped = computed(() => Math.max(0, Math.min(100, this.value())), ...ngDevMode ? [{ debugName: "clamped" }] : /* istanbul ignore next */ []);
|
|
52
|
+
drawnMarks = computed(() => this.indeterminate() ? [] : this.marks().filter((mark) => mark.value >= 0 && mark.value <= 100).sort((a, b) => a.value - b.value).map((mark) => ({
|
|
53
|
+
...mark,
|
|
54
|
+
columns: `${mark.value}fr auto ${100 - mark.value}fr`
|
|
55
|
+
})), ...ngDevMode ? [{ debugName: "drawnMarks" }] : /* istanbul ignore next */ []);
|
|
56
|
+
labelledMarks = computed(() => this.drawnMarks().filter((mark) => !!mark.label), ...ngDevMode ? [{ debugName: "labelledMarks" }] : /* istanbul ignore next */ []);
|
|
57
|
+
markLabelIds = computed(() => {
|
|
58
|
+
const count = this.labelledMarks().length;
|
|
59
|
+
return count ? Array.from({ length: count }, (_, i) => `${this.markId}-${i}`).join(" ") : null;
|
|
60
|
+
}, ...ngDevMode ? [{ debugName: "markLabelIds" }] : /* istanbul ignore next */ []);
|
|
61
|
+
crowded = signal(/* @__PURE__ */ new Set(), ...ngDevMode ? [{ debugName: "crowded" }] : /* istanbul ignore next */ []);
|
|
29
62
|
classes = computed(() => {
|
|
30
63
|
const parts = [`wr-progress--${this.color()}`];
|
|
31
64
|
const size = this.size();
|
|
32
65
|
if (size !== "md") parts.push(`wr-progress--${size}`);
|
|
33
66
|
if (this.indeterminate()) parts.push("wr-progress--indeterminate");
|
|
67
|
+
if (this.drawnMarks().length) parts.push("wr-progress--marks");
|
|
68
|
+
if (this.labelledMarks().length) parts.push("wr-progress--mark-labels");
|
|
34
69
|
return parts.join(" ");
|
|
35
70
|
}, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
71
|
+
fitLabels() {
|
|
72
|
+
const hidden = /* @__PURE__ */ new Set();
|
|
73
|
+
const track = this.host.getBoundingClientRect().width;
|
|
74
|
+
let last = null;
|
|
75
|
+
this.host.querySelectorAll(".wr-progress__mark-text").forEach((text, index) => {
|
|
76
|
+
const rect = text.getBoundingClientRect();
|
|
77
|
+
if (!rect.width) return;
|
|
78
|
+
if (track && rect.width > track) hidden.add(index);
|
|
79
|
+
else if (last && rect.left < last.right + LABEL_GAP && last.left < rect.right + LABEL_GAP) hidden.add(index);
|
|
80
|
+
else last = rect;
|
|
81
|
+
});
|
|
82
|
+
const current = this.crowded();
|
|
83
|
+
if (hidden.size !== current.size || [...hidden].some((index) => !current.has(index))) this.crowded.set(hidden);
|
|
84
|
+
}
|
|
36
85
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
37
86
|
minVersion: "12.0.0",
|
|
38
|
-
version: "22.
|
|
87
|
+
version: "22.3.0",
|
|
39
88
|
ngImport: i0,
|
|
40
89
|
type: WrProgress,
|
|
41
90
|
deps: [],
|
|
42
91
|
target: i0.ɵɵFactoryTarget.Component
|
|
43
92
|
});
|
|
44
93
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
45
|
-
minVersion: "17.
|
|
46
|
-
version: "22.
|
|
94
|
+
minVersion: "17.0.0",
|
|
95
|
+
version: "22.3.0",
|
|
47
96
|
type: WrProgress,
|
|
48
97
|
isStandalone: true,
|
|
49
98
|
selector: "wr-progress",
|
|
@@ -82,6 +131,13 @@ var WrProgress = class WrProgress {
|
|
|
82
131
|
isSignal: true,
|
|
83
132
|
isRequired: false,
|
|
84
133
|
transformFunction: null
|
|
134
|
+
},
|
|
135
|
+
marks: {
|
|
136
|
+
classPropertyName: "marks",
|
|
137
|
+
publicName: "marks",
|
|
138
|
+
isSignal: true,
|
|
139
|
+
isRequired: false,
|
|
140
|
+
transformFunction: null
|
|
85
141
|
}
|
|
86
142
|
},
|
|
87
143
|
host: {
|
|
@@ -93,26 +149,25 @@ var WrProgress = class WrProgress {
|
|
|
93
149
|
properties: {
|
|
94
150
|
"attr.aria-valuenow": "indeterminate() ? null : clamped()",
|
|
95
151
|
"attr.aria-label": "resolvedAriaLabel()",
|
|
152
|
+
"attr.aria-describedby": "markLabelIds()",
|
|
96
153
|
"class": "classes()"
|
|
97
154
|
},
|
|
98
155
|
classAttribute: "wr-progress"
|
|
99
156
|
},
|
|
100
157
|
ngImport: i0,
|
|
101
|
-
template:
|
|
102
|
-
isInline: true,
|
|
158
|
+
template: "<div class=\"wr-progress__bar\" [style.width.%]=\"indeterminate() ? null : clamped()\"></div>\n@for (mark of drawnMarks(); track $index) {\n <span class=\"wr-progress__mark\" aria-hidden=\"true\" [style.inset-inline-start.%]=\"mark.value\"></span>\n}\n@for (mark of labelledMarks(); track $index) {\n <span\n class=\"wr-progress__mark-label\"\n [id]=\"`${markId}-${$index}`\"\n [class.wr-progress__mark-label--hidden]=\"crowded().has($index)\"\n [style.grid-template-columns]=\"mark.columns\"\n ><span class=\"wr-progress__mark-text\">{{ mark.label }}</span></span\n >\n}\n",
|
|
103
159
|
encapsulation: i0.ViewEncapsulation.None
|
|
104
160
|
});
|
|
105
161
|
};
|
|
106
162
|
i0.ɵɵngDeclareClassMetadata({
|
|
107
163
|
minVersion: "12.0.0",
|
|
108
|
-
version: "22.
|
|
164
|
+
version: "22.3.0",
|
|
109
165
|
ngImport: i0,
|
|
110
166
|
type: WrProgress,
|
|
111
167
|
decorators: [{
|
|
112
168
|
type: Component,
|
|
113
169
|
args: [{
|
|
114
170
|
selector: "wr-progress",
|
|
115
|
-
template: `<div class="wr-progress__bar" [style.width.%]="indeterminate() ? null : clamped()"></div>`,
|
|
116
171
|
encapsulation: ViewEncapsulation.None,
|
|
117
172
|
host: {
|
|
118
173
|
role: "progressbar",
|
|
@@ -120,9 +175,11 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
120
175
|
"aria-valuemax": "100",
|
|
121
176
|
"[attr.aria-valuenow]": "indeterminate() ? null : clamped()",
|
|
122
177
|
"[attr.aria-label]": "resolvedAriaLabel()",
|
|
178
|
+
"[attr.aria-describedby]": "markLabelIds()",
|
|
123
179
|
class: "wr-progress",
|
|
124
180
|
"[class]": "classes()"
|
|
125
|
-
}
|
|
181
|
+
},
|
|
182
|
+
template: "<div class=\"wr-progress__bar\" [style.width.%]=\"indeterminate() ? null : clamped()\"></div>\n@for (mark of drawnMarks(); track $index) {\n <span class=\"wr-progress__mark\" aria-hidden=\"true\" [style.inset-inline-start.%]=\"mark.value\"></span>\n}\n@for (mark of labelledMarks(); track $index) {\n <span\n class=\"wr-progress__mark-label\"\n [id]=\"`${markId}-${$index}`\"\n [class.wr-progress__mark-label--hidden]=\"crowded().has($index)\"\n [style.grid-template-columns]=\"mark.columns\"\n ><span class=\"wr-progress__mark-text\">{{ mark.label }}</span></span\n >\n}\n"
|
|
126
183
|
}]
|
|
127
184
|
}],
|
|
128
185
|
ctorParameters: () => [],
|
|
@@ -166,6 +223,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
166
223
|
alias: "indeterminate",
|
|
167
224
|
required: false
|
|
168
225
|
}]
|
|
226
|
+
}],
|
|
227
|
+
marks: [{
|
|
228
|
+
type: i0.Input,
|
|
229
|
+
args: [{
|
|
230
|
+
isSignal: true,
|
|
231
|
+
alias: "marks",
|
|
232
|
+
required: false
|
|
233
|
+
}]
|
|
169
234
|
}]
|
|
170
235
|
}
|
|
171
236
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngwr-progress.mjs","names":[],"sources":["../../../projects/lib/progress/progress.ts"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport { Component, ViewEncapsulation, computed, input } from '@angular/core';\n\nimport { useI18nText } from 'ngwr/i18n';\nimport type { WrColor } from 'ngwr/theme';\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/** Size of a `<wr-progress>`. */\nexport type WrProgressSize = 'sm' | 'md' | 'lg';\n\n/**\n * Horizontal progress bar.\n *\n * @example\n * ```html\n * <wr-progress [value]=\"42\" />\n * <wr-progress color=\"success\" [value]=\"80\" />\n * <wr-progress indeterminate />\n * ```\n *\n * @see https://ngwr.dev/reference/components/progress\n */\n@Component({\n selector: 'wr-progress',\n template: `<div class=\"wr-progress__bar\" [style.width.%]=\"indeterminate() ? null : clamped()\"></div>`,\n encapsulation: ViewEncapsulation.None,\n host: {\n role: 'progressbar',\n 'aria-valuemin': '0',\n 'aria-valuemax': '100',\n '[attr.aria-valuenow]': 'indeterminate() ? null : clamped()',\n '[attr.aria-label]': 'resolvedAriaLabel()',\n class: 'wr-progress',\n '[class]': 'classes()',\n },\n})\nexport class WrProgress {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('progress');\n }\n\n /** Accessible name — `role=\"progressbar\"` needs one. Falls back to `progress.label`. */\n readonly ariaLabel = input<string | null>(null);\n\n protected readonly resolvedAriaLabel = useI18nText(this.ariaLabel, 'progress.label', 'Progress');\n\n /**\n * Bar color.\n *\n * @default 'primary'\n */\n readonly color = input<WrColor>('primary');\n\n /**\n * Bar thickness: 4px, 8px or 12px, through `--wr-progress-height`.\n *\n * @default 'md'\n */\n readonly size = input<WrProgressSize>('md');\n\n /**\n * Progress value, clamped to `[0, 100]`.\n *\n * @default 0\n */\n readonly value = input(0, { transform: (v: unknown): number => coerceNumberProperty(v, 0) });\n\n /**\n * Show that work is running without saying how far it has got: the bar sweeps,\n * `value` is ignored and `aria-valuenow` is left off, which is how a\n * progressbar says its value is unknown.\n *\n * @default false\n */\n readonly indeterminate = input(false, { transform: coerceBooleanProperty });\n\n protected readonly clamped = computed(() => Math.max(0, Math.min(100, this.value())));\n\n protected readonly classes = computed(() => {\n const parts = [`wr-progress--${this.color()}`];\n const size = this.size();\n if (size !== 'md') parts.push(`wr-progress--${size}`);\n if (this.indeterminate()) parts.push('wr-progress--indeterminate');\n return parts.join(' ');\n });\n}\n"],"mappings":";;;;;;;;;;;AA2CA,IAAa,aAAb,MAAa,WAAU;CACrB,cAAA;EACE,IAAI,OAAO,cAAc,eAAe,WAAW,cAAc,UAAU;CAC7E;CAGS,YAAY,MAAqB,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CAE5B,oBAAoB,YAAY,KAAK,WAAW,kBAAkB,UAAU;CAOtF,QAAQ,MAAe,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAOjC,OAAO,MAAsB,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAOlC,QAAQ,MAAM,GAAC;EAAA,GAAA,YAAA,EAAA,WAAA,QAAA,+BAAA,CAAA;EAAI,YAAY,MAAuB,qBAAqB,GAAG,CAAC;CAAC,CAAA;CAShF,gBAAgB,MAAM,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,gBAAA,+BAAA,CAAA;EAAI,WAAW;CAAqB,CAAA;CAErD,UAAU,eAAe,KAAK,IAAI,GAAG,KAAK,IAAI,KAAK,KAAK,MAAK,CAAE,CAAC,GAAE,GAAA,YAAA,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AAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAU,YAAA,CAAA;EAdtB,MAAA;EAAU,MAAA,CAAA;GACT,UAAU;GACV,UAAU;GACV,eAAe,kBAAkB;GACjC,MAAM;IACJ,MAAM;IACN,iBAAiB;IACjB,iBAAiB;IACjB,wBAAwB;IACxB,qBAAqB;IACrB,OAAO;IACP,WAAW;GACZ;EACF,CAAA"}
|
|
1
|
+
{"version":3,"file":"ngwr-progress.mjs","names":[],"sources":["../../../projects/lib/progress/progress.ts","../../../projects/lib/progress/progress.html"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport {\n Component,\n DestroyRef,\n ElementRef,\n ViewEncapsulation,\n afterNextRender,\n afterRenderEffect,\n computed,\n inject,\n input,\n signal,\n} from '@angular/core';\n\nimport { useI18nText } from 'ngwr/i18n';\nimport type { WrColor } from 'ngwr/theme';\nimport { wrCheckStyles, wrRandomId } from 'ngwr/utils';\n\nimport type { WrProgressMark } from './types';\n\n/** Least clear space between two mark labels, in pixels, before the later one is hidden. */\nconst LABEL_GAP = 4;\n\n/** Size of a `<wr-progress>`. */\nexport type WrProgressSize = 'sm' | 'md' | 'lg';\n\n/**\n * Horizontal progress bar.\n *\n * @example\n * ```html\n * <wr-progress [value]=\"42\" />\n * <wr-progress color=\"success\" [value]=\"80\" />\n * <wr-progress indeterminate />\n * <wr-progress size=\"sm\" [value]=\"40\" [marks]=\"[{ value: 25, label: 'Q1' }, { value: 50, label: 'Q2' }]\" />\n * ```\n *\n * @see https://ngwr.dev/reference/components/progress\n */\n@Component({\n selector: 'wr-progress',\n templateUrl: './progress.html',\n encapsulation: ViewEncapsulation.None,\n host: {\n role: 'progressbar',\n 'aria-valuemin': '0',\n 'aria-valuemax': '100',\n '[attr.aria-valuenow]': 'indeterminate() ? null : clamped()',\n '[attr.aria-label]': 'resolvedAriaLabel()',\n '[attr.aria-describedby]': 'markLabelIds()',\n class: 'wr-progress',\n '[class]': 'classes()',\n },\n})\nexport class WrProgress {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('progress');\n\n // The host and every label are watched: a label widens without the host\n // moving when a web font swaps in after the first fit.\n let observer: ResizeObserver | null = null;\n const watch = (): void => {\n if (!observer) return;\n observer.disconnect();\n observer.observe(this.host);\n this.host.querySelectorAll('.wr-progress__mark-text').forEach(text => observer?.observe(text));\n };\n\n afterRenderEffect({\n read: () => {\n this.labelledMarks();\n this.fitLabels();\n watch();\n },\n });\n\n const destroyRef = inject(DestroyRef);\n afterNextRender(() => {\n if (typeof ResizeObserver === 'undefined') return;\n observer = new ResizeObserver(() => this.fitLabels());\n watch();\n destroyRef.onDestroy(() => observer?.disconnect());\n });\n }\n\n /** Accessible name — `role=\"progressbar\"` needs one. Falls back to `progress.label`. */\n readonly ariaLabel = input<string | null>(null);\n\n protected readonly resolvedAriaLabel = useI18nText(this.ariaLabel, 'progress.label', 'Progress');\n\n /** Prefix of the mark label ids the host's `aria-describedby` lists. */\n protected readonly markId = wrRandomId('wr-progress-mark');\n\n /**\n * Bar color.\n *\n * @default 'primary'\n */\n readonly color = input<WrColor>('primary');\n\n /**\n * Bar thickness: 4px, 8px or 12px, through `--wr-progress-height`.\n *\n * @default 'md'\n */\n readonly size = input<WrProgressSize>('md');\n\n /**\n * Progress value, clamped to `[0, 100]`.\n *\n * @default 0\n */\n readonly value = input(0, { transform: (v: unknown): number => coerceNumberProperty(v, 0) });\n\n /**\n * Show that work is running without saying how far it has got: the bar sweeps,\n * `value` is ignored and `aria-valuenow` is left off, which is how a\n * progressbar says its value is unknown.\n *\n * @default false\n */\n readonly indeterminate = input(false, { transform: coerceBooleanProperty });\n\n /**\n * Points drawn on the track: a tick at each `value`, on the 0 to 100 scale of\n * `value`, and its `label` under the bar when it has one. A mark outside the\n * range, or with no number, is not drawn. Positions mirror under `dir=\"rtl\"`.\n *\n * A label stays inside the bar: centred on its tick mid-track, leaning inward\n * towards the ends. One that would touch the label before it is hidden and\n * its tick kept, so the earlier mark wins.\n *\n * Marks do not change the value the progressbar announces. The ticks are\n * hidden from assistive tech; the labels are its description\n * (`aria-describedby`), because ARIA treats the content of a progressbar as\n * presentational and would not read them otherwise.\n * `indeterminate` draws no marks: it has no scale to place them on.\n *\n * @example\n * ```html\n * <wr-progress [value]=\"40\" [marks]=\"[{ value: 25, label: '1 Mar' }, { value: 75, label: '1 Sep' }]\" />\n * ```\n *\n * @default []\n */\n readonly marks = input<readonly WrProgressMark[]>([]);\n\n protected readonly clamped = computed(() => Math.max(0, Math.min(100, this.value())));\n\n /** The marks inside the range, in value order: none while the value is unknown. */\n protected readonly drawnMarks = computed(() =>\n this.indeterminate()\n ? []\n : this.marks()\n .filter(mark => mark.value >= 0 && mark.value <= 100)\n .sort((a, b) => a.value - b.value)\n // The label's row: the free space beside the text, shared in the mark's own ratio.\n .map(mark => ({ ...mark, columns: `${mark.value}fr auto ${100 - mark.value}fr` }))\n );\n protected readonly labelledMarks = computed(() => this.drawnMarks().filter(mark => !!mark.label));\n\n /** The label ids, in order, or nothing while no mark has a label. */\n protected readonly markLabelIds = computed(() => {\n const count = this.labelledMarks().length;\n return count ? Array.from({ length: count }, (_, i) => `${this.markId}-${i}`).join(' ') : null;\n });\n\n /** Indexes into `labelledMarks` of the labels hidden for touching the one before. */\n protected readonly crowded = signal<ReadonlySet<number>>(new Set());\n\n protected readonly classes = computed(() => {\n const parts = [`wr-progress--${this.color()}`];\n const size = this.size();\n if (size !== 'md') parts.push(`wr-progress--${size}`);\n if (this.indeterminate()) parts.push('wr-progress--indeterminate');\n if (this.drawnMarks().length) parts.push('wr-progress--marks');\n if (this.labelledMarks().length) parts.push('wr-progress--mark-labels');\n return parts.join(' ');\n });\n\n /** Hide each label that would touch the last one still shown. Measured, so it follows the bar's width. */\n private fitLabels(): void {\n const hidden = new Set<number>();\n const track = this.host.getBoundingClientRect().width;\n let last: DOMRect | null = null;\n this.host.querySelectorAll('.wr-progress__mark-text').forEach((text, index) => {\n const rect = text.getBoundingClientRect();\n // Not laid out (a hidden pane, a detached host): nothing to compare.\n if (!rect.width) return;\n // Wider than the bar it would hang out of: hidden, its tick kept.\n if (track && rect.width > track) hidden.add(index);\n else if (last && rect.left < last.right + LABEL_GAP && last.left < rect.right + LABEL_GAP) hidden.add(index);\n else last = rect;\n });\n\n const current = this.crowded();\n if (hidden.size !== current.size || [...hidden].some(index => !current.has(index))) this.crowded.set(hidden);\n }\n}\n","<div class=\"wr-progress__bar\" [style.width.%]=\"indeterminate() ? null : clamped()\"></div>\n@for (mark of drawnMarks(); track $index) {\n <span class=\"wr-progress__mark\" aria-hidden=\"true\" [style.inset-inline-start.%]=\"mark.value\"></span>\n}\n@for (mark of labelledMarks(); track $index) {\n <span\n class=\"wr-progress__mark-label\"\n [id]=\"`${markId}-${$index}`\"\n [class.wr-progress__mark-label--hidden]=\"crowded().has($index)\"\n [style.grid-template-columns]=\"mark.columns\"\n ><span class=\"wr-progress__mark-text\">{{ mark.label }}</span></span\n >\n}\n"],"mappings":";;;;;;;;;;;AA4BA,MAAM,YAAY;AAiClB,IAAa,aAAb,MAAa,WAAU;CACJ,OAAO,OAAgC,UAAU,CAAC,CAAC;CAEpE,cAAA;EACE,IAAI,OAAO,cAAc,eAAe,WAAW,cAAc,UAAU;EAI3E,IAAI,WAAkC;EACtC,MAAM,cAAmB;GACvB,IAAI,CAAC,UAAU;GACf,SAAS,WAAU;GACnB,SAAS,QAAQ,KAAK,IAAI;GAC1B,KAAK,KAAK,iBAAiB,yBAAyB,CAAC,CAAC,SAAQ,SAAQ,UAAU,QAAQ,IAAI,CAAC;EAC/F;EAEA,kBAAkB,EAChB,YAAW;GACT,KAAK,cAAa;GAClB,KAAK,UAAS;GACd,MA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AAA;IAAA,iBAAA;GAAA;GAAA,YAAA;IAAA,sBAAA;IAAA,mBAAA;IAAA,yBAAA;IAAA,SAAA;GAAA;GAAA,gBAAA;EAAA;EAAA,UAAA;EAAA,UC7DvB;EAaA,eAAA,GAAA,kBAAA;CAAA,CAAA;;ADgDa,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAU,YAAA,CAAA;EAftB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAa,eAER,kBAAkB;GAAI,MAC/B;IACJ,MAAM;IACN,iBAAiB;IACjB,iBAAiB;IACjB,wBAAwB;IACxB,qBAAqB;IACrB,2BAA2B;IAC3B,OAAO;IACP,WAAW;GACZ;GAAA,UAAA;EAAA,CAAA"}
|
|
@@ -85,7 +85,7 @@ var WrPullToRefresh = class WrPullToRefresh {
|
|
|
85
85
|
}
|
|
86
86
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
87
87
|
minVersion: "12.0.0",
|
|
88
|
-
version: "22.
|
|
88
|
+
version: "22.3.0",
|
|
89
89
|
ngImport: i0,
|
|
90
90
|
type: WrPullToRefresh,
|
|
91
91
|
deps: [],
|
|
@@ -93,7 +93,7 @@ var WrPullToRefresh = class WrPullToRefresh {
|
|
|
93
93
|
});
|
|
94
94
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
95
95
|
minVersion: "17.0.0",
|
|
96
|
-
version: "22.
|
|
96
|
+
version: "22.3.0",
|
|
97
97
|
type: WrPullToRefresh,
|
|
98
98
|
isStandalone: true,
|
|
99
99
|
selector: "wr-pull-to-refresh",
|
|
@@ -144,7 +144,7 @@ var WrPullToRefresh = class WrPullToRefresh {
|
|
|
144
144
|
};
|
|
145
145
|
i0.ɵɵngDeclareClassMetadata({
|
|
146
146
|
minVersion: "12.0.0",
|
|
147
|
-
version: "22.
|
|
147
|
+
version: "22.3.0",
|
|
148
148
|
ngImport: i0,
|
|
149
149
|
type: WrPullToRefresh,
|
|
150
150
|
decorators: [{
|
package/fesm2022/ngwr-qr.mjs
CHANGED
|
@@ -894,6 +894,7 @@ const ERROR_LEVEL_MAP = {
|
|
|
894
894
|
H: qrcodegen_default.QrCode.Ecc.HIGH
|
|
895
895
|
};
|
|
896
896
|
const SCALE = 10;
|
|
897
|
+
const drawTokens = /* @__PURE__ */ new WeakMap();
|
|
897
898
|
function drawBackground(ctx, width, height, bgColor) {
|
|
898
899
|
ctx.fillStyle = bgColor;
|
|
899
900
|
ctx.fillRect(0, 0, width, height);
|
|
@@ -911,7 +912,7 @@ function safeIconUrl(raw) {
|
|
|
911
912
|
if (name === "data") return /^data:image\/(?:png|jpe?g|gif|webp|avif);base64,[a-z0-9+/=]+$/i.test(bare) ? bare : null;
|
|
912
913
|
return name === "http" || name === "https" ? url : null;
|
|
913
914
|
}
|
|
914
|
-
function overlayIcon(canvas, ctx, options) {
|
|
915
|
+
function overlayIcon(canvas, ctx, options, token) {
|
|
915
916
|
const src = safeIconUrl(options.iconUrl);
|
|
916
917
|
if (src === null) return;
|
|
917
918
|
const iconImg = new Image();
|
|
@@ -921,6 +922,7 @@ function overlayIcon(canvas, ctx, options) {
|
|
|
921
922
|
const iconPx = (options.iconSize ?? 42) * ratio;
|
|
922
923
|
const coord = canvas.width / 2 - iconPx / 2;
|
|
923
924
|
iconImg.onload = () => {
|
|
925
|
+
if (drawTokens.get(canvas) !== token) return;
|
|
924
926
|
ctx.fillStyle = options.bgColor;
|
|
925
927
|
ctx.fillRect(coord, coord, iconPx, iconPx);
|
|
926
928
|
ctx.drawImage(iconImg, coord + 10, coord + 10, iconPx - 20, iconPx - 20);
|
|
@@ -938,6 +940,8 @@ function encode(options) {
|
|
|
938
940
|
function draw(canvas, options) {
|
|
939
941
|
const ctx = canvas.getContext("2d");
|
|
940
942
|
if (!ctx) return;
|
|
943
|
+
const token = (drawTokens.get(canvas) ?? 0) + 1;
|
|
944
|
+
drawTokens.set(canvas, token);
|
|
941
945
|
canvas.style.width = `${options.size}px`;
|
|
942
946
|
canvas.style.height = `${options.size}px`;
|
|
943
947
|
if (!options.value) {
|
|
@@ -955,7 +959,7 @@ function draw(canvas, options) {
|
|
|
955
959
|
canvas.height = code.size * SCALE + padding * 2;
|
|
956
960
|
drawBackground(ctx, canvas.width, canvas.height, options.bgColor);
|
|
957
961
|
drawModules(ctx, code, padding, options.color);
|
|
958
|
-
if (options.iconUrl) overlayIcon(canvas, ctx, options);
|
|
962
|
+
if (options.iconUrl) overlayIcon(canvas, ctx, options, token);
|
|
959
963
|
}
|
|
960
964
|
const drawQrCode = draw;
|
|
961
965
|
/**
|
|
@@ -1012,7 +1016,7 @@ var WrQr = class WrQr {
|
|
|
1012
1016
|
}
|
|
1013
1017
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1014
1018
|
minVersion: "12.0.0",
|
|
1015
|
-
version: "22.
|
|
1019
|
+
version: "22.3.0",
|
|
1016
1020
|
ngImport: i0,
|
|
1017
1021
|
type: WrQr,
|
|
1018
1022
|
deps: [],
|
|
@@ -1020,7 +1024,7 @@ var WrQr = class WrQr {
|
|
|
1020
1024
|
});
|
|
1021
1025
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1022
1026
|
minVersion: "17.2.0",
|
|
1023
|
-
version: "22.
|
|
1027
|
+
version: "22.3.0",
|
|
1024
1028
|
type: WrQr,
|
|
1025
1029
|
isStandalone: true,
|
|
1026
1030
|
selector: "wr-qr",
|
|
@@ -1107,7 +1111,7 @@ var WrQr = class WrQr {
|
|
|
1107
1111
|
};
|
|
1108
1112
|
i0.ɵɵngDeclareClassMetadata({
|
|
1109
1113
|
minVersion: "12.0.0",
|
|
1110
|
-
version: "22.
|
|
1114
|
+
version: "22.3.0",
|
|
1111
1115
|
ngImport: i0,
|
|
1112
1116
|
type: WrQr,
|
|
1113
1117
|
decorators: [{
|