ngwr 15.9.0 → 16.1.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/animations/aurora/styles/_index.scss +1 -1
- package/animations/blur-reveal/styles/_index.scss +1 -1
- package/animations/decode/styles/_index.scss +1 -1
- package/animations/dot-grid/styles/_index.scss +1 -1
- package/animations/flow-lines/styles/_index.scss +1 -1
- package/animations/fluid-cursor/styles/_index.scss +1 -1
- package/animations/{core → internal}/styles/_mixins.scss +1 -1
- package/animations/reveal/styles/_index.scss +1 -1
- package/animations/ripple-grid/styles/_index.scss +1 -1
- package/animations/rotate-reveal/styles/_index.scss +1 -1
- package/animations/thread-lines/styles/_index.scss +1 -1
- package/animations/typewriter/styles/_index.scss +1 -1
- package/badge/styles/_tag.scss +8 -4
- package/button/styles/_index.scss +13 -7
- package/cascader/styles/_rules.scss +4 -2
- package/checkbox/styles/_index.scss +4 -2
- package/copy-value/styles/_index.scss +104 -0
- package/date-picker/styles/_index.scss +121 -0
- package/date-stamp/styles/_index.scss +38 -0
- package/dialog/styles/_index.scss +38 -0
- package/fesm2022/{ngwr-animations-core.mjs → internal-BaQU4t_0.mjs} +6 -49
- package/fesm2022/internal-BaQU4t_0.mjs.map +1 -0
- package/fesm2022/internal-CVLvP9b_.mjs +33 -0
- package/fesm2022/internal-CVLvP9b_.mjs.map +1 -0
- package/fesm2022/ngwr-alert.mjs +13 -9
- package/fesm2022/ngwr-alert.mjs.map +1 -1
- package/fesm2022/ngwr-animations-aurora.mjs +21 -21
- 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 +2 -2
- package/fesm2022/ngwr-animations-click-sparks.mjs.map +1 -1
- package/fesm2022/ngwr-animations-confetti.mjs +5 -5
- package/fesm2022/ngwr-animations-confetti.mjs.map +1 -1
- package/fesm2022/ngwr-animations-decode.mjs +4 -4
- package/fesm2022/ngwr-animations-decode.mjs.map +1 -1
- package/fesm2022/ngwr-animations-destruct.mjs +5 -5
- package/fesm2022/ngwr-animations-destruct.mjs.map +1 -1
- package/fesm2022/ngwr-animations-dot-grid.mjs +7 -7
- 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 +17 -17
- package/fesm2022/ngwr-animations-flow-lines.mjs.map +1 -1
- package/fesm2022/ngwr-animations-fluid-cursor.mjs +12 -12
- package/fesm2022/ngwr-animations-fluid-cursor.mjs.map +1 -1
- package/fesm2022/ngwr-animations-glitch.mjs +2 -2
- package/fesm2022/ngwr-animations-glitch.mjs.map +1 -1
- package/fesm2022/ngwr-animations-marquee.mjs +2 -2
- package/fesm2022/ngwr-animations-marquee.mjs.map +1 -1
- package/fesm2022/ngwr-animations-orbit.mjs +7 -7
- package/fesm2022/ngwr-animations-orbit.mjs.map +1 -1
- package/fesm2022/ngwr-animations-reveal.mjs +4 -4
- package/fesm2022/ngwr-animations-reveal.mjs.map +1 -1
- package/fesm2022/ngwr-animations-ripple-grid.mjs +5 -5
- package/fesm2022/ngwr-animations-ripple-grid.mjs.map +1 -1
- package/fesm2022/ngwr-animations-rotate-reveal.mjs +4 -4
- package/fesm2022/ngwr-animations-rotate-reveal.mjs.map +1 -1
- package/fesm2022/ngwr-animations-shimmer.mjs +2 -2
- package/fesm2022/ngwr-animations-shimmer.mjs.map +1 -1
- package/fesm2022/ngwr-animations-spotlight.mjs +1 -1
- package/fesm2022/ngwr-animations-spotlight.mjs.map +1 -1
- package/fesm2022/ngwr-animations-thread-lines.mjs +16 -16
- package/fesm2022/ngwr-animations-thread-lines.mjs.map +1 -1
- package/fesm2022/ngwr-animations-tilt.mjs +3 -3
- package/fesm2022/ngwr-animations-tilt.mjs.map +1 -1
- package/fesm2022/ngwr-animations-typewriter.mjs +4 -4
- package/fesm2022/ngwr-animations-typewriter.mjs.map +1 -1
- package/fesm2022/ngwr-avatar.mjs +14 -10
- package/fesm2022/ngwr-avatar.mjs.map +1 -1
- package/fesm2022/ngwr-back-top.mjs +10 -6
- package/fesm2022/ngwr-back-top.mjs.map +1 -1
- package/fesm2022/ngwr-badge.mjs +18 -6
- package/fesm2022/ngwr-badge.mjs.map +1 -1
- package/fesm2022/ngwr-burger.mjs +9 -6
- package/fesm2022/ngwr-burger.mjs.map +1 -1
- package/fesm2022/ngwr-button.mjs +8 -4
- package/fesm2022/ngwr-button.mjs.map +1 -1
- package/fesm2022/ngwr-calendar.mjs +19 -8
- package/fesm2022/ngwr-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-card.mjs +9 -5
- package/fesm2022/ngwr-card.mjs.map +1 -1
- package/fesm2022/ngwr-cascader.mjs +54 -25
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart.mjs +13 -13
- package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-boxplot-chart.mjs +9 -9
- package/fesm2022/ngwr-charts-boxplot-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bullet-chart.mjs +8 -8
- package/fesm2022/ngwr-charts-bullet-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs +5 -2
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs.map +1 -1
- package/fesm2022/ngwr-charts-candlestick-chart.mjs +11 -11
- package/fesm2022/ngwr-charts-candlestick-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-chart-legend.mjs +2 -2
- package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
- package/fesm2022/ngwr-charts-core.mjs +20 -20
- package/fesm2022/ngwr-charts-core.mjs.map +1 -1
- package/fesm2022/ngwr-charts-donut-chart.mjs +2 -2
- package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-funnel-chart.mjs +6 -6
- package/fesm2022/ngwr-charts-funnel-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-gauge.mjs +3 -3
- package/fesm2022/ngwr-charts-gauge.mjs.map +1 -1
- package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-heatmap-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-line-chart.mjs +10 -10
- package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group.mjs +2 -2
- package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart.mjs +11 -11
- package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-scatter-chart.mjs +10 -10
- package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-treemap-chart.mjs +4 -4
- package/fesm2022/ngwr-charts-treemap-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-waterfall-chart.mjs +7 -7
- package/fesm2022/ngwr-charts-waterfall-chart.mjs.map +1 -1
- package/fesm2022/ngwr-checkbox.mjs +12 -8
- package/fesm2022/ngwr-checkbox.mjs.map +1 -1
- package/fesm2022/ngwr-clipboard.mjs +2 -1
- package/fesm2022/ngwr-clipboard.mjs.map +1 -1
- package/fesm2022/ngwr-collapse.mjs +11 -7
- package/fesm2022/ngwr-collapse.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker.mjs +56 -54
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-command-palette.mjs +4 -4
- package/fesm2022/ngwr-command-palette.mjs.map +1 -1
- package/fesm2022/ngwr-comment.mjs +15 -9
- package/fesm2022/ngwr-comment.mjs.map +1 -1
- package/fesm2022/ngwr-compare.mjs +15 -9
- package/fesm2022/ngwr-compare.mjs.map +1 -1
- package/fesm2022/ngwr-context-menu.mjs +8 -6
- package/fesm2022/ngwr-context-menu.mjs.map +1 -1
- package/fesm2022/ngwr-copy-value-testing.mjs +58 -0
- package/fesm2022/ngwr-copy-value-testing.mjs.map +1 -0
- package/fesm2022/ngwr-copy-value.mjs +201 -0
- package/fesm2022/ngwr-copy-value.mjs.map +1 -0
- package/fesm2022/ngwr-counter.mjs +3 -3
- package/fesm2022/ngwr-counter.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +303 -70
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp-testing.mjs +34 -0
- package/fesm2022/ngwr-date-stamp-testing.mjs.map +1 -0
- package/fesm2022/ngwr-date-stamp.mjs +149 -0
- package/fesm2022/ngwr-date-stamp.mjs.map +1 -0
- package/fesm2022/ngwr-date.mjs +304 -53
- package/fesm2022/ngwr-date.mjs.map +1 -1
- package/fesm2022/ngwr-descriptions.mjs +9 -5
- package/fesm2022/ngwr-descriptions.mjs.map +1 -1
- package/fesm2022/ngwr-dialog-testing.mjs +23 -2
- package/fesm2022/ngwr-dialog-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dialog.mjs +77 -19
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-directives.mjs +218 -12
- package/fesm2022/ngwr-directives.mjs.map +1 -1
- package/fesm2022/ngwr-divider.mjs +4 -2
- package/fesm2022/ngwr-divider.mjs.map +1 -1
- package/fesm2022/ngwr-drawer.mjs +32 -6
- package/fesm2022/ngwr-drawer.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +17 -14
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +33 -30
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-event-calendar.mjs +9 -7
- package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload.mjs +17 -11
- package/fesm2022/ngwr-file-upload.mjs.map +1 -1
- package/fesm2022/ngwr-form.mjs +18 -6
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-graph.mjs +3 -3
- package/fesm2022/ngwr-graph.mjs.map +1 -1
- package/fesm2022/ngwr-hotkey.mjs +22 -22
- package/fesm2022/ngwr-hotkey.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ar.mjs +7 -0
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +7 -0
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +7 -0
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +7 -0
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +7 -0
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +7 -0
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +7 -0
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +7 -0
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +7 -0
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +7 -0
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +7 -0
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +7 -0
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +7 -0
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +7 -0
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +7 -0
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +7 -0
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +7 -0
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +7 -0
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +7 -0
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +7 -0
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +7 -0
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +7 -0
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +36 -10
- package/fesm2022/ngwr-i18n.mjs.map +1 -1
- package/fesm2022/ngwr-icon.mjs +5 -5
- package/fesm2022/ngwr-icon.mjs.map +1 -1
- package/fesm2022/ngwr-image-cropper.mjs +11 -11
- package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
- package/fesm2022/ngwr-input-number.mjs +13 -7
- package/fesm2022/ngwr-input-number.mjs.map +1 -1
- package/fesm2022/ngwr-input-otp.mjs +6 -4
- package/fesm2022/ngwr-input-otp.mjs.map +1 -1
- package/fesm2022/ngwr-input.mjs +35 -25
- package/fesm2022/ngwr-input.mjs.map +1 -1
- package/fesm2022/ngwr-keyboard.mjs +37 -31
- package/fesm2022/ngwr-keyboard.mjs.map +1 -1
- package/fesm2022/ngwr-knob.mjs +13 -7
- package/fesm2022/ngwr-knob.mjs.map +1 -1
- package/fesm2022/ngwr-layout.mjs +13 -5
- package/fesm2022/ngwr-layout.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox.mjs +11 -7
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +13 -5
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-load-state.mjs +11 -7
- package/fesm2022/ngwr-load-state.mjs.map +1 -1
- package/fesm2022/ngwr-mention.mjs +6 -6
- package/fesm2022/ngwr-mention.mjs.map +1 -1
- package/fesm2022/ngwr-meta.mjs +19 -3
- package/fesm2022/ngwr-meta.mjs.map +1 -1
- package/fesm2022/ngwr-overlay.mjs +87 -4
- package/fesm2022/ngwr-overlay.mjs.map +1 -1
- package/fesm2022/ngwr-pagination.mjs +10 -7
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +22 -8
- package/fesm2022/ngwr-pipes.mjs.map +1 -1
- package/fesm2022/ngwr-platform.mjs +4 -1
- package/fesm2022/ngwr-platform.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm.mjs +6 -5
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +124 -34
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-progress.mjs +4 -2
- package/fesm2022/ngwr-progress.mjs.map +1 -1
- package/fesm2022/ngwr-pull-to-refresh.mjs +2 -2
- package/fesm2022/ngwr-pull-to-refresh.mjs.map +1 -1
- package/fesm2022/ngwr-qr.mjs +6 -6
- package/fesm2022/ngwr-qr.mjs.map +1 -1
- package/fesm2022/ngwr-radio.mjs +12 -8
- package/fesm2022/ngwr-radio.mjs.map +1 -1
- package/fesm2022/ngwr-rating.mjs +19 -13
- package/fesm2022/ngwr-rating.mjs.map +1 -1
- package/fesm2022/ngwr-resizable.mjs +503 -0
- package/fesm2022/ngwr-resizable.mjs.map +1 -0
- package/fesm2022/ngwr-result.mjs +9 -5
- package/fesm2022/ngwr-result.mjs.map +1 -1
- package/fesm2022/ngwr-schema-form.mjs +15 -5
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-segmented.mjs +4 -2
- package/fesm2022/ngwr-segmented.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +70 -39
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-sidebar.mjs +3 -3
- package/fesm2022/ngwr-sidebar.mjs.map +1 -1
- package/fesm2022/ngwr-skeleton.mjs +6 -4
- package/fesm2022/ngwr-skeleton.mjs.map +1 -1
- package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
- package/fesm2022/ngwr-slider.mjs +17 -15
- package/fesm2022/ngwr-slider.mjs.map +1 -1
- package/fesm2022/ngwr-sortable-list.mjs +3 -3
- package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
- package/fesm2022/ngwr-speed-dial.mjs +4 -2
- package/fesm2022/ngwr-speed-dial.mjs.map +1 -1
- package/fesm2022/ngwr-spinner.mjs +4 -2
- package/fesm2022/ngwr-spinner.mjs.map +1 -1
- package/fesm2022/ngwr-splitter.mjs +21 -25
- package/fesm2022/ngwr-splitter.mjs.map +1 -1
- package/fesm2022/ngwr-statistic.mjs +5 -3
- package/fesm2022/ngwr-statistic.mjs.map +1 -1
- package/fesm2022/ngwr-stepper.mjs +9 -3
- package/fesm2022/ngwr-stepper.mjs.map +1 -1
- package/fesm2022/ngwr-storage.mjs +6 -4
- package/fesm2022/ngwr-storage.mjs.map +1 -1
- package/fesm2022/ngwr-switch.mjs +11 -7
- package/fesm2022/ngwr-switch.mjs.map +1 -1
- package/fesm2022/ngwr-table-testing.mjs +5 -1
- package/fesm2022/ngwr-table-testing.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +396 -35
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tabs.mjs +2 -2
- package/fesm2022/ngwr-tabs.mjs.map +1 -1
- package/fesm2022/ngwr-textarea.mjs +9 -3
- package/fesm2022/ngwr-textarea.mjs.map +1 -1
- package/fesm2022/ngwr-timeline.mjs +18 -8
- package/fesm2022/ngwr-timeline.mjs.map +1 -1
- package/fesm2022/ngwr-toast-testing.mjs +14 -2
- package/fesm2022/ngwr-toast-testing.mjs.map +1 -1
- package/fesm2022/ngwr-toast.mjs +588 -120
- package/fesm2022/ngwr-toast.mjs.map +1 -1
- package/fesm2022/ngwr-tour.mjs +7 -7
- package/fesm2022/ngwr-tour.mjs.map +1 -1
- package/fesm2022/ngwr-transfer.mjs +24 -11
- package/fesm2022/ngwr-transfer.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +68 -26
- package/fesm2022/ngwr-tree.mjs.map +1 -1
- package/fesm2022/ngwr-typography.mjs +9 -3
- package/fesm2022/ngwr-typography.mjs.map +1 -1
- package/fesm2022/ngwr-utils-router.mjs +18 -2
- package/fesm2022/ngwr-utils-router.mjs.map +1 -1
- package/fesm2022/ngwr-utils.mjs +106 -56
- package/fesm2022/ngwr-utils.mjs.map +1 -1
- package/fesm2022/ngwr-validators.mjs +2 -2
- 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-window.mjs +33 -30
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/fesm2022/ngwr.mjs.map +1 -1
- package/i18n/ar.json +11 -0
- package/i18n/cs.json +11 -0
- package/i18n/de.json +11 -0
- package/i18n/en.json +11 -0
- package/i18n/es.json +11 -0
- package/i18n/fr.json +11 -0
- package/i18n/he.json +11 -0
- package/i18n/hi.json +11 -0
- package/i18n/id.json +11 -0
- package/i18n/it.json +11 -0
- package/i18n/ja.json +11 -0
- package/i18n/ko.json +11 -0
- package/i18n/nl.json +11 -0
- package/i18n/pl.json +11 -0
- package/i18n/pt.json +11 -0
- package/i18n/ru.json +11 -0
- package/i18n/sv.json +11 -0
- package/i18n/tr.json +11 -0
- package/i18n/uk.json +11 -0
- package/i18n/vi.json +11 -0
- package/i18n/zh-TW.json +11 -0
- package/i18n/zh.json +11 -0
- package/input/styles/_index.scss +10 -5
- package/input-number/styles/_index.scss +12 -3
- package/input-otp/styles/_index.scss +4 -2
- package/llms-full.txt +54 -23
- package/llms.txt +45 -23
- package/mcp/providers.js +1 -1
- package/package.json +29 -10
- package/radio/styles/_index.scss +4 -2
- package/resizable/styles/_index.scss +154 -0
- package/schematics/icon-set/index.js +3 -3
- package/schematics/migrations/v16/index.js +742 -0
- package/schematics/migrations.json +5 -0
- package/schematics/ng-add/index.js +4 -4
- package/schematics/provider/index.js +4 -4
- package/schematics/use/rule.js +1 -0
- package/schematics/use/symbol-map.json +6 -0
- package/select/styles/_index.scss +7 -4
- package/skills/ngwr/SKILL.md +6 -4
- package/skills/ngwr/references/catalog.md +8 -3
- package/skills/ngwr/references/setup.md +13 -9
- package/switch/styles/_index.scss +4 -2
- package/table/styles/_index.scss +138 -29
- package/textarea/styles/_index.scss +4 -2
- package/theme/styles/_motion.scss +6 -0
- package/toast/styles/_index.scss +49 -0
- package/tree/styles/_index.scss +17 -0
- package/types/index-CXbgza47.d.ts +13 -0
- package/types/ngwr-animations-aurora.d.ts +1 -1
- package/types/ngwr-animations-blur-reveal.d.ts +2 -2
- package/types/ngwr-animations-dot-grid.d.ts +1 -2
- package/types/ngwr-animations-flow-lines.d.ts +1 -1
- package/types/ngwr-animations-fluid-cursor.d.ts +1 -1
- package/types/ngwr-animations-reveal.d.ts +4 -8
- package/types/ngwr-animations-ripple-grid.d.ts +1 -1
- package/types/ngwr-animations-spotlight.d.ts +1 -1
- package/types/ngwr-animations-thread-lines.d.ts +1 -1
- package/types/ngwr-animations-tilt.d.ts +1 -1
- package/types/ngwr-avatar.d.ts +2 -2
- package/types/ngwr-badge.d.ts +1 -1
- package/types/ngwr-burger.d.ts +0 -1
- package/types/ngwr-calendar.d.ts +7 -0
- package/types/ngwr-cascader.d.ts +12 -1
- package/types/ngwr-charts-boxplot-chart.d.ts +1 -1
- package/types/ngwr-charts-bullet-chart.d.ts +2 -2
- package/types/ngwr-charts-calendar-heatmap.d.ts +2 -1
- package/types/ngwr-charts-candlestick-chart.d.ts +1 -1
- package/types/ngwr-charts-core.d.ts +12 -12
- package/types/ngwr-charts-line-chart.d.ts +2 -2
- package/types/ngwr-charts-radar-chart.d.ts +1 -1
- package/types/ngwr-charts-scatter-chart.d.ts +2 -2
- package/types/ngwr-charts-waterfall-chart.d.ts +1 -1
- package/types/ngwr-clipboard.d.ts +7 -0
- package/types/ngwr-color-picker.d.ts +12 -12
- package/types/ngwr-copy-value-testing.d.ts +87 -0
- package/types/ngwr-copy-value.d.ts +95 -0
- package/types/ngwr-date-picker-testing.d.ts +3 -3
- package/types/ngwr-date-picker.d.ts +106 -3
- package/types/ngwr-date-stamp-testing.d.ts +47 -0
- package/types/ngwr-date-stamp.d.ts +81 -0
- package/types/ngwr-date.d.ts +179 -27
- package/types/ngwr-dialog-testing.d.ts +10 -0
- package/types/ngwr-dialog.d.ts +120 -5
- package/types/ngwr-directives.d.ts +76 -1
- package/types/ngwr-drawer.d.ts +22 -1
- package/types/ngwr-dropdown.d.ts +3 -2
- package/types/ngwr-hotkey.d.ts +5 -5
- package/types/ngwr-i18n.d.ts +47 -17
- package/types/ngwr-icon.d.ts +26 -26
- package/types/ngwr-input-number.d.ts +2 -2
- package/types/ngwr-input.d.ts +8 -8
- package/types/ngwr-load-state.d.ts +6 -6
- package/types/ngwr-meta.d.ts +18 -0
- package/types/ngwr-overlay.d.ts +36 -0
- package/types/ngwr-pipes.d.ts +21 -4
- package/types/ngwr-platform.d.ts +2 -1
- package/types/ngwr-popconfirm.d.ts +3 -2
- package/types/ngwr-popover.d.ts +43 -4
- package/types/ngwr-resizable.d.ts +228 -0
- package/types/ngwr-select.d.ts +33 -18
- package/types/ngwr-slider-testing.d.ts +2 -2
- package/types/ngwr-slider.d.ts +3 -3
- package/types/ngwr-statistic.d.ts +5 -1
- package/types/ngwr-storage.d.ts +1 -1
- package/types/ngwr-table-testing.d.ts +5 -2
- package/types/ngwr-table.d.ts +255 -14
- package/types/ngwr-tabs.d.ts +10 -2
- package/types/ngwr-toast-testing.d.ts +18 -3
- package/types/ngwr-toast.d.ts +248 -23
- package/types/ngwr-transfer.d.ts +5 -0
- package/types/ngwr-tree.d.ts +22 -2
- package/types/ngwr-utils-router.d.ts +22 -0
- package/types/ngwr-utils.d.ts +165 -83
- package/types/ngwr-validators.d.ts +4 -2
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr.d.ts +2 -0
- package/types/pointer-tracker-D7fXxLQL.d.ts +24 -0
- package/fesm2022/ngwr-animations-core.mjs.map +0 -1
- package/types/ngwr-animations-core.d.ts +0 -294
package/fesm2022/ngwr-utils.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DOCUMENT, DestroyRef, ElementRef, PLATFORM_ID, afterNextRender, assertInInjectionContext, computed, effect, inject, linkedSignal, signal } from "@angular/core";
|
|
1
|
+
import { DOCUMENT, DestroyRef, ElementRef, InjectionToken, PLATFORM_ID, afterNextRender, assertInInjectionContext, computed, effect, inject, linkedSignal, signal } from "@angular/core";
|
|
2
2
|
import { coerceNumberProperty } from "@angular/cdk/coercion";
|
|
3
3
|
import { DOCUMENT as DOCUMENT$1, isPlatformBrowser } from "@angular/common";
|
|
4
4
|
/**
|
|
@@ -7,7 +7,7 @@ import { DOCUMENT as DOCUMENT$1, isPlatformBrowser } from "@angular/common";
|
|
|
7
7
|
* Use of this source code is governed by an MIT-style license that can be
|
|
8
8
|
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
function
|
|
10
|
+
function wrIsDefined(value) {
|
|
11
11
|
return value !== null && value !== void 0;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
@@ -16,7 +16,7 @@ function isDefined(value) {
|
|
|
16
16
|
* Use of this source code is governed by an MIT-style license that can be
|
|
17
17
|
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
18
18
|
*/
|
|
19
|
-
function
|
|
19
|
+
function wrIsNonEmptyArray(value) {
|
|
20
20
|
return Array.isArray(value) && value.length > 0;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
@@ -25,10 +25,10 @@ function isNonEmptyArray(value) {
|
|
|
25
25
|
* Use of this source code is governed by an MIT-style license that can be
|
|
26
26
|
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
27
27
|
*/
|
|
28
|
-
function
|
|
28
|
+
function wrIsObservable(value) {
|
|
29
29
|
return !!value && typeof value.subscribe === "function";
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function wrClamp(value, min, max) {
|
|
32
32
|
return Math.min(max, Math.max(min, value));
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
@@ -154,18 +154,18 @@ function wrDecimalRound(value, decimals) {
|
|
|
154
154
|
if (d === null || !isScale(decimals)) return null;
|
|
155
155
|
return print(rescale(d, decimals));
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function wrRound(value, decimals = 0) {
|
|
158
158
|
const factor = 10 ** decimals;
|
|
159
159
|
return Math.round((value + Number.EPSILON) * factor) / factor;
|
|
160
160
|
}
|
|
161
|
-
const
|
|
161
|
+
const wrNumAttr = (fallback) => (value) => coerceNumberProperty(value, fallback);
|
|
162
162
|
/**
|
|
163
163
|
* @license
|
|
164
164
|
*
|
|
165
165
|
* Use of this source code is governed by an MIT-style license that can be
|
|
166
166
|
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
167
167
|
*/
|
|
168
|
-
function
|
|
168
|
+
function wrToClassList(...values) {
|
|
169
169
|
const out = [];
|
|
170
170
|
const seen = /* @__PURE__ */ new Set();
|
|
171
171
|
for (const value of values) {
|
|
@@ -209,7 +209,7 @@ const ALLOWED_FUNCTIONS = /* @__PURE__ */ new Set([
|
|
|
209
209
|
"max",
|
|
210
210
|
"clamp"
|
|
211
211
|
]);
|
|
212
|
-
function
|
|
212
|
+
function wrIsSafeCssValue(value) {
|
|
213
213
|
if (typeof value !== "string") return false;
|
|
214
214
|
const trimmed = value.trim();
|
|
215
215
|
if (trimmed === "" || trimmed.length > MAX_LENGTH$1) return false;
|
|
@@ -318,7 +318,7 @@ function wrDownloadBlob(blob, fileName) {
|
|
|
318
318
|
* Use of this source code is governed by an MIT-style license that can be
|
|
319
319
|
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
320
320
|
*/
|
|
321
|
-
function
|
|
321
|
+
function wrGetRootFontSize(fallback = 16) {
|
|
322
322
|
try {
|
|
323
323
|
if (typeof window === "undefined" || typeof document === "undefined") return fallback;
|
|
324
324
|
const raw = window.getComputedStyle(document.documentElement).fontSize;
|
|
@@ -353,12 +353,12 @@ function isRendered(el) {
|
|
|
353
353
|
if (el.getClientRects().length === 0) return false;
|
|
354
354
|
return el.ownerDocument.defaultView?.getComputedStyle(el).visibility !== "hidden";
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function wrGetFocusableElements(root) {
|
|
357
357
|
return Array.from(root.querySelectorAll(FOCUSABLE_SELECTOR)).filter((el) => isRendered(el) || el === document.activeElement);
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function wrTrapFocus(root, event) {
|
|
360
360
|
if (event.key !== "Tab") return false;
|
|
361
|
-
const focusable =
|
|
361
|
+
const focusable = wrGetFocusableElements(root);
|
|
362
362
|
if (focusable.length === 0) return false;
|
|
363
363
|
const first = focusable[0];
|
|
364
364
|
const last = focusable[focusable.length - 1];
|
|
@@ -435,7 +435,7 @@ function parseChannels(color) {
|
|
|
435
435
|
4
|
|
436
436
|
].map((at) => Number.parseInt(full.slice(at, at + 2), 16) / 255);
|
|
437
437
|
}
|
|
438
|
-
function
|
|
438
|
+
function wrResolveCssColor(context, expression, fallback) {
|
|
439
439
|
const view = context.ownerDocument.defaultView;
|
|
440
440
|
if (!view) return fallback;
|
|
441
441
|
try {
|
|
@@ -453,9 +453,9 @@ function resolveCssColor(context, expression, fallback) {
|
|
|
453
453
|
} catch {}
|
|
454
454
|
return fallback;
|
|
455
455
|
}
|
|
456
|
-
function
|
|
457
|
-
const read = (color) => parseChannels(color) ?? parseChannels(
|
|
458
|
-
return read(
|
|
456
|
+
function wrResolveCssColorChannels(context, expression, fallback) {
|
|
457
|
+
const read = (color) => parseChannels(color) ?? parseChannels(wrResolveCssColor(context, `color-mix(in srgb, ${color} 100%, transparent)`, ""));
|
|
458
|
+
return read(wrResolveCssColor(context, expression, fallback)) ?? read(fallback) ?? [
|
|
459
459
|
0,
|
|
460
460
|
0,
|
|
461
461
|
0
|
|
@@ -484,8 +484,8 @@ function resolveScheme(doc, query) {
|
|
|
484
484
|
const meta = doc.querySelector("meta[name=\"color-scheme\"]")?.content ?? "";
|
|
485
485
|
return pick(declared, osDark) ?? pick(meta, osDark) ?? "light";
|
|
486
486
|
}
|
|
487
|
-
function
|
|
488
|
-
if (!options.injector) assertInInjectionContext(
|
|
487
|
+
function wrWatchColorScheme(callback, options = {}) {
|
|
488
|
+
if (!options.injector) assertInInjectionContext(wrWatchColorScheme);
|
|
489
489
|
const injector = options.injector;
|
|
490
490
|
const get = (token) => injector ? injector.get(token) : inject(token);
|
|
491
491
|
if (get(PLATFORM_ID) !== "browser") return () => void 0;
|
|
@@ -519,8 +519,8 @@ function watchColorScheme(callback, options = {}) {
|
|
|
519
519
|
* Use of this source code is governed by an MIT-style license that can be
|
|
520
520
|
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
521
521
|
*/
|
|
522
|
-
function
|
|
523
|
-
const rootFontSize =
|
|
522
|
+
function wrResolveCssSize(raw, options = {}) {
|
|
523
|
+
const rootFontSize = wrGetRootFontSize();
|
|
524
524
|
const value = raw ?? options.defaultValue;
|
|
525
525
|
if (value == null) return {
|
|
526
526
|
cssValue: "0px",
|
|
@@ -586,7 +586,7 @@ function defaultRandomBytes(count) {
|
|
|
586
586
|
for (let i = 0; i < count; i++) buf[i] = Math.floor(Math.random() * 256);
|
|
587
587
|
return buf;
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function wrRandomId(prefix = "wr", length = DEFAULT_LENGTH, random) {
|
|
590
590
|
const safeLength = Math.min(Math.max(Math.trunc(length), MIN_LENGTH), MAX_LENGTH);
|
|
591
591
|
const bytes = random ? random(safeLength) : defaultRandomBytes(safeLength);
|
|
592
592
|
let result = "";
|
|
@@ -599,14 +599,14 @@ function randomId(prefix = "wr", length = DEFAULT_LENGTH, random) {
|
|
|
599
599
|
* Use of this source code is governed by an MIT-style license that can be
|
|
600
600
|
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
601
601
|
*/
|
|
602
|
-
const
|
|
602
|
+
const wrNoop = () => void 0;
|
|
603
603
|
/**
|
|
604
604
|
* @license
|
|
605
605
|
*
|
|
606
606
|
* Use of this source code is governed by an MIT-style license that can be
|
|
607
607
|
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
608
608
|
*/
|
|
609
|
-
function
|
|
609
|
+
function wrDebounce(fn, waitMs) {
|
|
610
610
|
let timer = null;
|
|
611
611
|
const debounced = (...args) => {
|
|
612
612
|
if (timer !== null) clearTimeout(timer);
|
|
@@ -629,7 +629,7 @@ function debounce(fn, waitMs) {
|
|
|
629
629
|
* Use of this source code is governed by an MIT-style license that can be
|
|
630
630
|
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
631
631
|
*/
|
|
632
|
-
function
|
|
632
|
+
function wrThrottle(fn, waitMs) {
|
|
633
633
|
let lastInvoke = 0;
|
|
634
634
|
let trailingTimer = null;
|
|
635
635
|
let pendingArgs = null;
|
|
@@ -669,7 +669,7 @@ function throttle(fn, waitMs) {
|
|
|
669
669
|
* Use of this source code is governed by an MIT-style license that can be
|
|
670
670
|
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
671
671
|
*/
|
|
672
|
-
const
|
|
672
|
+
const WR_KEYS = {
|
|
673
673
|
ENTER: "Enter",
|
|
674
674
|
ESCAPE: "Escape",
|
|
675
675
|
TAB: "Tab",
|
|
@@ -689,25 +689,25 @@ const KEYS = {
|
|
|
689
689
|
ALT: "Alt",
|
|
690
690
|
META: "Meta"
|
|
691
691
|
};
|
|
692
|
-
const
|
|
693
|
-
[
|
|
694
|
-
[
|
|
695
|
-
[
|
|
696
|
-
[
|
|
697
|
-
[
|
|
698
|
-
[
|
|
699
|
-
[
|
|
700
|
-
[
|
|
701
|
-
[
|
|
702
|
-
[
|
|
703
|
-
[
|
|
704
|
-
[
|
|
705
|
-
[
|
|
706
|
-
[
|
|
707
|
-
[
|
|
708
|
-
[
|
|
709
|
-
[
|
|
710
|
-
[
|
|
692
|
+
const WR_KEY_LABELS = {
|
|
693
|
+
[WR_KEYS.ENTER]: "Enter",
|
|
694
|
+
[WR_KEYS.ESCAPE]: "Esc",
|
|
695
|
+
[WR_KEYS.TAB]: "Tab",
|
|
696
|
+
[WR_KEYS.SPACE]: "Space",
|
|
697
|
+
[WR_KEYS.BACKSPACE]: "Backspace",
|
|
698
|
+
[WR_KEYS.DELETE]: "Delete",
|
|
699
|
+
[WR_KEYS.ARROW_UP]: "↑",
|
|
700
|
+
[WR_KEYS.ARROW_DOWN]: "↓",
|
|
701
|
+
[WR_KEYS.ARROW_LEFT]: "←",
|
|
702
|
+
[WR_KEYS.ARROW_RIGHT]: "→",
|
|
703
|
+
[WR_KEYS.HOME]: "Home",
|
|
704
|
+
[WR_KEYS.END]: "End",
|
|
705
|
+
[WR_KEYS.PAGE_UP]: "Page Up",
|
|
706
|
+
[WR_KEYS.PAGE_DOWN]: "Page Down",
|
|
707
|
+
[WR_KEYS.CONTROL]: "Ctrl",
|
|
708
|
+
[WR_KEYS.SHIFT]: "Shift",
|
|
709
|
+
[WR_KEYS.ALT]: "Alt",
|
|
710
|
+
[WR_KEYS.META]: "Win"
|
|
711
711
|
};
|
|
712
712
|
/**
|
|
713
713
|
* @license
|
|
@@ -715,13 +715,13 @@ const KEY_LABELS = {
|
|
|
715
715
|
* Use of this source code is governed by an MIT-style license that can be
|
|
716
716
|
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
717
717
|
*/
|
|
718
|
-
function
|
|
718
|
+
function wrHasModifier(event) {
|
|
719
719
|
return event.ctrlKey || event.altKey || event.metaKey || event.shiftKey;
|
|
720
720
|
}
|
|
721
|
-
function
|
|
721
|
+
function wrIsPrintableKey(event) {
|
|
722
722
|
return event.key.length === 1 && !event.ctrlKey && !event.metaKey && !event.altKey;
|
|
723
723
|
}
|
|
724
|
-
function
|
|
724
|
+
function wrIsComposing(event) {
|
|
725
725
|
return event.isComposing || event.keyCode === 229;
|
|
726
726
|
}
|
|
727
727
|
/**
|
|
@@ -730,8 +730,7 @@ function isComposing(event) {
|
|
|
730
730
|
* Use of this source code is governed by an MIT-style license that can be
|
|
731
731
|
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
732
732
|
*/
|
|
733
|
-
|
|
734
|
-
const style = `
|
|
733
|
+
const badgeStyle = (color) => `
|
|
735
734
|
display: inline-block;
|
|
736
735
|
border: 1px solid ${color};
|
|
737
736
|
color: ${color};
|
|
@@ -739,7 +738,32 @@ function badgeLog(badgeText, color, message) {
|
|
|
739
738
|
border-radius: 4px;
|
|
740
739
|
margin-right: 0
|
|
741
740
|
`;
|
|
742
|
-
|
|
741
|
+
/**
|
|
742
|
+
* @license
|
|
743
|
+
*
|
|
744
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
745
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
746
|
+
*/
|
|
747
|
+
function wrBadgeError(badgeText, color, message) {
|
|
748
|
+
console.error(`%c${badgeText}`, badgeStyle(color), message);
|
|
749
|
+
}
|
|
750
|
+
/**
|
|
751
|
+
* @license
|
|
752
|
+
*
|
|
753
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
754
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
755
|
+
*/
|
|
756
|
+
function wrBadgeLog(badgeText, color, message) {
|
|
757
|
+
console.log(`%c${badgeText}`, badgeStyle(color), message);
|
|
758
|
+
}
|
|
759
|
+
/**
|
|
760
|
+
* @license
|
|
761
|
+
*
|
|
762
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
763
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
764
|
+
*/
|
|
765
|
+
function wrBadgeWarn(badgeText, color, message) {
|
|
766
|
+
console.warn(`%c${badgeText}`, badgeStyle(color), message);
|
|
743
767
|
}
|
|
744
768
|
/**
|
|
745
769
|
* @license
|
|
@@ -754,16 +778,35 @@ function graphemes(text) {
|
|
|
754
778
|
segmenter ??= new Intl.Segmenter(void 0, { granularity: "grapheme" });
|
|
755
779
|
return [...segmenter.segment(text)].map((s) => s.segment);
|
|
756
780
|
}
|
|
757
|
-
function
|
|
781
|
+
function initialOf(word) {
|
|
782
|
+
return graphemes(word).find((g) => INITIAL.test(g));
|
|
783
|
+
}
|
|
784
|
+
function upperCase(initial, locale) {
|
|
785
|
+
const upper = locale === void 0 ? initial.toUpperCase() : initial.toLocaleUpperCase(locale);
|
|
786
|
+
return graphemes(upper).length === 1 ? upper : initial;
|
|
787
|
+
}
|
|
788
|
+
function surname(words, locale, order) {
|
|
789
|
+
const parts = words.flatMap((word) => {
|
|
790
|
+
const initial = initialOf(word);
|
|
791
|
+
return initial === void 0 ? [] : [{
|
|
792
|
+
word,
|
|
793
|
+
initial
|
|
794
|
+
}];
|
|
795
|
+
});
|
|
796
|
+
const family = order === "family-first" ? parts.shift() : parts.pop();
|
|
797
|
+
if (family === void 0) return "";
|
|
798
|
+
return [family.word, ...parts.map((part) => `${upperCase(part.initial, locale)}.`)].join(" ");
|
|
799
|
+
}
|
|
800
|
+
function wrInitials(name, locale, options) {
|
|
758
801
|
if (name === null || name === void 0) return "";
|
|
759
802
|
const words = String(name).trim().split(/\s+/u);
|
|
803
|
+
if (options?.style === "surname") return surname(words, locale, options.order ?? "given-first");
|
|
760
804
|
let out = "";
|
|
761
805
|
let count = 0;
|
|
762
806
|
for (const word of words) {
|
|
763
|
-
const initial =
|
|
807
|
+
const initial = initialOf(word);
|
|
764
808
|
if (initial === void 0) continue;
|
|
765
|
-
|
|
766
|
-
out += graphemes(upper).length === 1 ? upper : initial;
|
|
809
|
+
out += upperCase(initial, locale);
|
|
767
810
|
if (++count === 2 || SYLLABIC.test(initial)) break;
|
|
768
811
|
}
|
|
769
812
|
return out;
|
|
@@ -774,6 +817,13 @@ function wrInitials(name, locale) {
|
|
|
774
817
|
* Use of this source code is governed by an MIT-style license that can be
|
|
775
818
|
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
776
819
|
*/
|
|
820
|
+
const WR_LIVE_LOCALE = new InjectionToken("WR_LIVE_LOCALE");
|
|
821
|
+
/**
|
|
822
|
+
* @license
|
|
823
|
+
*
|
|
824
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
825
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
826
|
+
*/
|
|
777
827
|
function wrFeature(kind, providers) {
|
|
778
828
|
return {
|
|
779
829
|
ɵkind: kind,
|
|
@@ -892,6 +942,6 @@ function wrResourceValue(resource, fallback) {
|
|
|
892
942
|
effect(() => value());
|
|
893
943
|
return value.asReadonly();
|
|
894
944
|
}
|
|
895
|
-
export {
|
|
945
|
+
export { WR_KEYS, WR_KEY_LABELS, WR_LIVE_LOCALE, wrAction, wrBadgeError, wrBadgeLog, wrBadgeWarn, wrCheckStyles, wrClamp, wrContentDispositionFileName, wrDebounce, wrDecimal, wrDecimalAdd, wrDecimalCompare, wrDecimalDivide, wrDecimalMultiply, wrDecimalRound, wrDecimalSubtract, wrDownloadBlob, wrFeature, wrGetFocusableElements, wrGetRootFontSize, wrHasModifier, wrInitials, wrIsComposing, wrIsDefined, wrIsNonEmptyArray, wrIsObservable, wrIsPrintableKey, wrIsSafeCssValue, wrKeyedAction, wrNoop, wrNumAttr, wrRandomId, wrResolveCssColor, wrResolveCssColorChannels, wrResolveCssSize, wrResourceValue, wrRestoreFocus, wrRound, wrThrottle, wrToClassList, wrTrapFocus, wrWatchColorScheme };
|
|
896
946
|
|
|
897
947
|
//# sourceMappingURL=ngwr-utils.mjs.map
|