ngwr 8.0.0 → 9.0.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/README.md +75 -28
- package/action-sheet/styles/_index.scss +93 -0
- package/alert/styles/_index.scss +10 -10
- package/anchor/styles/_index.scss +3 -3
- package/back-top/styles/_index.scss +1 -1
- package/badge/styles/_tag.scss +3 -3
- package/bar-chart/styles/_index.scss +4 -4
- package/border-glow/styles/_index.scss +3 -3
- package/breadcrumbs/styles/_index.scss +3 -3
- package/burger/styles/_index.scss +1 -1
- package/button/styles/_index.scss +4 -4
- package/calendar/styles/_index.scss +4 -4
- package/calendar-heatmap/styles/_index.scss +3 -3
- package/card/styles/_index.scss +5 -5
- package/carousel/styles/_index.scss +5 -5
- package/cascader/styles/_index.scss +15 -15
- package/checkbox/styles/_index.scss +20 -5
- package/collapse/styles/_index.scss +6 -6
- package/color-picker/styles/_index.scss +15 -9
- package/command-palette/styles/_index.scss +19 -16
- package/compare/styles/_index.scss +3 -3
- package/context-menu/styles/_index.scss +16 -6
- package/counter/styles/_index.scss +12 -1
- package/date-picker/styles/_index.scss +8 -8
- package/descriptions/styles/_index.scss +9 -9
- package/dialog/styles/_index.scss +7 -6
- package/divider/styles/_index.scss +2 -2
- package/donut-chart/styles/_index.scss +3 -3
- package/drag-drop/styles/_index.scss +11 -6
- package/drawer/styles/_index.scss +15 -6
- package/dropdown/styles/_index.scss +5 -5
- package/empty/styles/_index.scss +4 -4
- package/fesm2022/ngwr-action-sheet.mjs +81 -0
- package/fesm2022/ngwr-action-sheet.mjs.map +1 -0
- package/fesm2022/ngwr-affix.mjs +3 -3
- package/fesm2022/ngwr-alert.mjs +4 -4
- package/fesm2022/ngwr-alert.mjs.map +1 -1
- package/fesm2022/ngwr-anchor.mjs +4 -4
- package/fesm2022/ngwr-anchor.mjs.map +1 -1
- package/fesm2022/ngwr-aurora.mjs +5 -4
- package/fesm2022/ngwr-aurora.mjs.map +1 -1
- package/fesm2022/ngwr-avatar.mjs +4 -4
- package/fesm2022/ngwr-avatar.mjs.map +1 -1
- package/fesm2022/ngwr-back-top.mjs +4 -4
- package/fesm2022/ngwr-back-top.mjs.map +1 -1
- package/fesm2022/ngwr-badge.mjs +8 -8
- package/fesm2022/ngwr-badge.mjs.map +1 -1
- package/fesm2022/ngwr-bar-chart.mjs +4 -4
- package/fesm2022/ngwr-bar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-blur-text.mjs +3 -3
- package/fesm2022/ngwr-border-glow.mjs +4 -4
- package/fesm2022/ngwr-border-glow.mjs.map +1 -1
- package/fesm2022/ngwr-breadcrumbs.mjs +8 -8
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-burger.mjs +4 -4
- package/fesm2022/ngwr-burger.mjs.map +1 -1
- package/fesm2022/ngwr-button.mjs +8 -8
- package/fesm2022/ngwr-button.mjs.map +1 -1
- package/fesm2022/ngwr-calendar-heatmap.mjs +4 -4
- package/fesm2022/ngwr-calendar-heatmap.mjs.map +1 -1
- package/fesm2022/ngwr-calendar.mjs +4 -4
- package/fesm2022/ngwr-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-card.mjs +11 -11
- package/fesm2022/ngwr-card.mjs.map +1 -1
- package/fesm2022/ngwr-carousel.mjs +7 -7
- package/fesm2022/ngwr-carousel.mjs.map +1 -1
- package/fesm2022/ngwr-cascader.mjs +52 -60
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-checkbox.mjs +74 -106
- package/fesm2022/ngwr-checkbox.mjs.map +1 -1
- package/fesm2022/ngwr-circular-text.mjs +5 -4
- package/fesm2022/ngwr-circular-text.mjs.map +1 -1
- package/fesm2022/ngwr-click-spark.mjs +5 -4
- package/fesm2022/ngwr-click-spark.mjs.map +1 -1
- package/fesm2022/ngwr-clipboard.mjs +4 -4
- package/fesm2022/ngwr-clipboard.mjs.map +1 -1
- package/fesm2022/ngwr-collapse.mjs +12 -12
- package/fesm2022/ngwr-collapse.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker.mjs +58 -66
- 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-compare.mjs +4 -4
- package/fesm2022/ngwr-compare.mjs.map +1 -1
- package/fesm2022/ngwr-confetti.mjs +3 -3
- package/fesm2022/ngwr-context-menu.mjs +86 -15
- package/fesm2022/ngwr-context-menu.mjs.map +1 -1
- package/fesm2022/ngwr-cookie.mjs +19 -6
- package/fesm2022/ngwr-cookie.mjs.map +1 -1
- package/fesm2022/ngwr-counter.mjs +26 -12
- package/fesm2022/ngwr-counter.mjs.map +1 -1
- package/fesm2022/ngwr-date-adapter-fns.mjs +3 -3
- package/fesm2022/ngwr-date-adapter-luxon.mjs +3 -3
- package/fesm2022/ngwr-date-adapter.mjs +10 -5
- package/fesm2022/ngwr-date-adapter.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +128 -123
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-decrypt-text.mjs +3 -3
- package/fesm2022/ngwr-density.mjs +7 -7
- package/fesm2022/ngwr-density.mjs.map +1 -1
- package/fesm2022/ngwr-descriptions.mjs +7 -7
- package/fesm2022/ngwr-descriptions.mjs.map +1 -1
- package/fesm2022/ngwr-dialog.mjs +16 -16
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-directives.mjs +21 -15
- package/fesm2022/ngwr-directives.mjs.map +1 -1
- package/fesm2022/ngwr-divider.mjs +4 -4
- package/fesm2022/ngwr-divider.mjs.map +1 -1
- package/fesm2022/ngwr-donut-chart.mjs +4 -4
- package/fesm2022/ngwr-donut-chart.mjs.map +1 -1
- package/fesm2022/ngwr-drag-drop.mjs +10 -9
- package/fesm2022/ngwr-drag-drop.mjs.map +1 -1
- package/fesm2022/ngwr-drawer.mjs +19 -18
- package/fesm2022/ngwr-drawer.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +13 -12
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-empty.mjs +4 -4
- package/fesm2022/ngwr-empty.mjs.map +1 -1
- package/fesm2022/ngwr-falling-text.mjs +5 -4
- package/fesm2022/ngwr-falling-text.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload.mjs +58 -60
- package/fesm2022/ngwr-file-upload.mjs.map +1 -1
- package/fesm2022/ngwr-form.mjs +11 -11
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-fuzzy-text.mjs +5 -4
- package/fesm2022/ngwr-fuzzy-text.mjs.map +1 -1
- package/fesm2022/ngwr-gauge.mjs +4 -4
- package/fesm2022/ngwr-gauge.mjs.map +1 -1
- package/fesm2022/ngwr-glitch-text.mjs +4 -4
- package/fesm2022/ngwr-glitch-text.mjs.map +1 -1
- package/fesm2022/ngwr-gradient-text.mjs +4 -4
- package/fesm2022/ngwr-gradient-text.mjs.map +1 -1
- package/fesm2022/ngwr-hotkey.mjs +7 -7
- package/fesm2022/ngwr-hotkey.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +10 -10
- package/fesm2022/ngwr-i18n.mjs.map +1 -1
- package/fesm2022/ngwr-icon-adapters-lucide.mjs +6 -7
- package/fesm2022/ngwr-icon-adapters-lucide.mjs.map +1 -1
- package/fesm2022/ngwr-icon.mjs +4 -4
- package/fesm2022/ngwr-icon.mjs.map +1 -1
- package/fesm2022/ngwr-image-cropper.mjs +6 -5
- package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
- package/fesm2022/ngwr-input-number.mjs +56 -73
- package/fesm2022/ngwr-input-number.mjs.map +1 -1
- package/fesm2022/ngwr-input-otp.mjs +46 -52
- package/fesm2022/ngwr-input-otp.mjs.map +1 -1
- package/fesm2022/ngwr-input.mjs +17 -17
- package/fesm2022/ngwr-input.mjs.map +1 -1
- package/fesm2022/ngwr-keyboard.mjs +4 -4
- package/fesm2022/ngwr-keyboard.mjs.map +1 -1
- package/fesm2022/ngwr-knob.mjs +47 -58
- package/fesm2022/ngwr-knob.mjs.map +1 -1
- package/fesm2022/ngwr-layout.mjs +16 -16
- package/fesm2022/ngwr-layout.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox.mjs +7 -6
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-line-chart.mjs +4 -4
- package/fesm2022/ngwr-line-chart.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +8 -8
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-loading-bar.mjs +7 -7
- package/fesm2022/ngwr-loading-bar.mjs.map +1 -1
- package/fesm2022/ngwr-marquee.mjs +6 -5
- package/fesm2022/ngwr-marquee.mjs.map +1 -1
- package/fesm2022/ngwr-media.mjs +4 -4
- package/fesm2022/ngwr-media.mjs.map +1 -1
- package/fesm2022/ngwr-mention.mjs +15 -9
- package/fesm2022/ngwr-mention.mjs.map +1 -1
- package/fesm2022/ngwr-meta.mjs +7 -7
- package/fesm2022/ngwr-meta.mjs.map +1 -1
- package/fesm2022/ngwr-meter-group.mjs +4 -4
- package/fesm2022/ngwr-meter-group.mjs.map +1 -1
- package/fesm2022/ngwr-overlay.mjs +9 -4
- package/fesm2022/ngwr-overlay.mjs.map +1 -1
- package/fesm2022/ngwr-page-header.mjs +4 -4
- package/fesm2022/ngwr-page-header.mjs.map +1 -1
- package/fesm2022/ngwr-pagination.mjs +4 -4
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +21 -21
- package/fesm2022/ngwr-platform.mjs +169 -5
- package/fesm2022/ngwr-platform.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm.mjs +7 -7
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +7 -7
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-progress.mjs +4 -4
- package/fesm2022/ngwr-progress.mjs.map +1 -1
- package/fesm2022/ngwr-pull-to-refresh.mjs +172 -0
- package/fesm2022/ngwr-pull-to-refresh.mjs.map +1 -0
- package/fesm2022/ngwr-qr.mjs +5 -5
- package/fesm2022/ngwr-qr.mjs.map +1 -1
- package/fesm2022/ngwr-radio.mjs +27 -52
- package/fesm2022/ngwr-radio.mjs.map +1 -1
- package/fesm2022/ngwr-rating.mjs +35 -48
- package/fesm2022/ngwr-rating.mjs.map +1 -1
- package/fesm2022/ngwr-result.mjs +13 -13
- package/fesm2022/ngwr-result.mjs.map +1 -1
- package/fesm2022/ngwr-rotating-text.mjs +15 -4
- package/fesm2022/ngwr-rotating-text.mjs.map +1 -1
- package/fesm2022/ngwr-scroll.mjs +4 -4
- package/fesm2022/ngwr-scroll.mjs.map +1 -1
- package/fesm2022/ngwr-segmented.mjs +3 -3
- package/fesm2022/ngwr-segmented.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +289 -85
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-shiny-text.mjs +7 -7
- package/fesm2022/ngwr-shiny-text.mjs.map +1 -1
- package/fesm2022/ngwr-sidebar.mjs +4 -4
- package/fesm2022/ngwr-sidebar.mjs.map +1 -1
- package/fesm2022/ngwr-skeleton.mjs +4 -4
- package/fesm2022/ngwr-skeleton.mjs.map +1 -1
- package/fesm2022/ngwr-slider.mjs +79 -73
- package/fesm2022/ngwr-slider.mjs.map +1 -1
- package/fesm2022/ngwr-sparkline.mjs +4 -4
- package/fesm2022/ngwr-sparkline.mjs.map +1 -1
- package/fesm2022/ngwr-speed-dial.mjs +13 -5
- package/fesm2022/ngwr-speed-dial.mjs.map +1 -1
- package/fesm2022/ngwr-spinner.mjs +4 -4
- package/fesm2022/ngwr-spinner.mjs.map +1 -1
- package/fesm2022/ngwr-splash-cursor.mjs +4 -4
- package/fesm2022/ngwr-splash-cursor.mjs.map +1 -1
- package/fesm2022/ngwr-split-text.mjs +3 -3
- package/fesm2022/ngwr-splitter.mjs +4 -4
- package/fesm2022/ngwr-splitter.mjs.map +1 -1
- package/fesm2022/ngwr-spotlight-card.mjs +7 -7
- package/fesm2022/ngwr-spotlight-card.mjs.map +1 -1
- package/fesm2022/ngwr-squircle.mjs +7 -7
- package/fesm2022/ngwr-squircle.mjs.map +1 -1
- package/fesm2022/ngwr-star-border.mjs +4 -4
- package/fesm2022/ngwr-star-border.mjs.map +1 -1
- package/fesm2022/ngwr-statistic.mjs +65 -10
- package/fesm2022/ngwr-statistic.mjs.map +1 -1
- package/fesm2022/ngwr-stepper.mjs +8 -8
- package/fesm2022/ngwr-stepper.mjs.map +1 -1
- package/fesm2022/ngwr-storage.mjs +4 -4
- package/fesm2022/ngwr-storage.mjs.map +1 -1
- package/fesm2022/ngwr-switch.mjs +16 -48
- package/fesm2022/ngwr-switch.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +824 -20
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tabs.mjs +9 -8
- package/fesm2022/ngwr-tabs.mjs.map +1 -1
- package/fesm2022/ngwr-textarea.mjs +18 -50
- package/fesm2022/ngwr-textarea.mjs.map +1 -1
- package/fesm2022/ngwr-theme.mjs +20 -5
- package/fesm2022/ngwr-theme.mjs.map +1 -1
- package/fesm2022/ngwr-tilt-card.mjs +27 -11
- package/fesm2022/ngwr-tilt-card.mjs.map +1 -1
- package/fesm2022/ngwr-timeline.mjs +7 -7
- package/fesm2022/ngwr-timeline.mjs.map +1 -1
- package/fesm2022/ngwr-toast.mjs +10 -10
- package/fesm2022/ngwr-toast.mjs.map +1 -1
- package/fesm2022/ngwr-toolbar.mjs +4 -4
- package/fesm2022/ngwr-toolbar.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +280 -84
- package/fesm2022/ngwr-tree.mjs.map +1 -1
- package/fesm2022/ngwr-typewriter.mjs +10 -5
- package/fesm2022/ngwr-typewriter.mjs.map +1 -1
- package/fesm2022/ngwr-typography.mjs +4 -4
- package/fesm2022/ngwr-typography.mjs.map +1 -1
- package/fesm2022/ngwr-validators.mjs +1 -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 +9 -7
- package/fesm2022/ngwr-virtual-scroll.mjs.map +1 -1
- package/fesm2022/ngwr-waves.mjs +6 -5
- package/fesm2022/ngwr-waves.mjs.map +1 -1
- package/fesm2022/ngwr-window.mjs +16 -15
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/file-upload/styles/_index.scss +11 -11
- package/form/styles/_index.scss +4 -4
- package/gauge/styles/_index.scss +2 -2
- package/glitch-text/styles/_index.scss +1 -1
- package/gradient-text/styles/_index.scss +1 -1
- package/image-cropper/styles/_index.scss +5 -4
- package/input/styles/_index.scss +9 -9
- package/input-number/styles/_index.scss +1 -1
- package/input-otp/styles/_index.scss +5 -5
- package/keyboard/styles/_index.scss +5 -5
- package/knob/styles/_index.scss +6 -2
- package/layout/styles/_index.scss +12 -12
- package/lightbox/styles/_index.scss +10 -8
- package/line-chart/styles/_index.scss +5 -5
- package/list/styles/_index.scss +3 -3
- package/llms-full.txt +31 -5
- package/llms.txt +48 -32
- package/marquee/styles/_index.scss +1 -1
- package/mention/styles/_index.scss +4 -4
- package/meter-group/styles/_index.scss +4 -4
- package/overlay/styles/_index.scss +8 -0
- package/package.json +21 -9
- package/page-header/styles/_index.scss +4 -4
- package/pagination/styles/_index.scss +3 -3
- package/popconfirm/styles/_index.scss +3 -3
- package/popover/styles/_index.scss +5 -5
- package/progress/styles/_index.scss +1 -1
- package/pull-to-refresh/styles/_index.scss +38 -0
- package/radio/styles/_index.scss +4 -4
- package/rating/styles/_index.scss +1 -1
- package/result/styles/_index.scss +3 -3
- package/schematics/migrations/v9/index.js +71 -0
- package/schematics/migrations.json +5 -0
- package/schematics/ng-add/schema.json +1 -1
- package/schematics/use/symbol-map.json +13 -0
- package/segmented/styles/_index.scss +4 -4
- package/select/styles/_index.scss +53 -18
- package/shiny-text/styles/_index.scss +4 -4
- package/sidebar/styles/_index.scss +12 -12
- package/slider/styles/_index.scss +5 -5
- package/speed-dial/styles/_index.scss +22 -6
- package/splash-cursor/styles/_index.scss +1 -0
- package/splitter/styles/_index.scss +7 -4
- package/spotlight-card/styles/_index.scss +7 -7
- package/star-border/styles/_index.scss +3 -3
- package/statistic/styles/_index.scss +51 -4
- package/stepper/styles/_index.scss +6 -6
- package/styles/_typography.scss +4 -1
- package/styles.scss +2 -0
- package/switch/styles/_index.scss +4 -4
- package/table/styles/_index.scss +447 -17
- package/tabs/styles/_index.scss +3 -3
- package/textarea/styles/_index.scss +7 -7
- package/theme/styles/_colors.scss +27 -3
- package/tilt-card/styles/_index.scss +4 -4
- package/timeline/styles/_index.scss +7 -6
- package/toast/styles/_index.scss +11 -11
- package/toolbar/styles/_index.scss +4 -4
- package/tree/styles/_index.scss +45 -15
- package/types/ngwr-action-sheet.d.ts +75 -0
- package/types/ngwr-alert.d.ts +1 -1
- package/types/ngwr-anchor.d.ts +1 -1
- package/types/ngwr-avatar.d.ts +1 -1
- package/types/ngwr-back-top.d.ts +1 -1
- package/types/ngwr-badge.d.ts +4 -4
- package/types/ngwr-bar-chart.d.ts +1 -1
- package/types/ngwr-breadcrumbs.d.ts +1 -1
- package/types/ngwr-burger.d.ts +1 -1
- package/types/ngwr-button.d.ts +3 -3
- package/types/ngwr-calendar-heatmap.d.ts +1 -1
- package/types/ngwr-calendar.d.ts +1 -1
- package/types/ngwr-card.d.ts +1 -1
- package/types/ngwr-carousel.d.ts +1 -1
- package/types/ngwr-cascader.d.ts +27 -16
- package/types/ngwr-checkbox.d.ts +63 -43
- package/types/ngwr-clipboard.d.ts +1 -1
- package/types/ngwr-collapse.d.ts +3 -3
- package/types/ngwr-color-picker.d.ts +24 -19
- package/types/ngwr-command-palette.d.ts +1 -1
- package/types/ngwr-compare.d.ts +1 -1
- package/types/ngwr-context-menu.d.ts +25 -1
- package/types/ngwr-cookie.d.ts +7 -1
- package/types/ngwr-counter.d.ts +9 -2
- package/types/ngwr-date-picker.d.ts +36 -23
- package/types/ngwr-density.d.ts +1 -1
- package/types/ngwr-descriptions.d.ts +1 -1
- package/types/ngwr-dialog.d.ts +1 -1
- package/types/ngwr-directives.d.ts +1 -0
- package/types/ngwr-divider.d.ts +2 -2
- package/types/ngwr-donut-chart.d.ts +1 -1
- package/types/ngwr-drag-drop.d.ts +1 -1
- package/types/ngwr-drawer.d.ts +1 -1
- package/types/ngwr-dropdown.d.ts +1 -1
- package/types/ngwr-empty.d.ts +1 -1
- package/types/ngwr-file-upload.d.ts +28 -17
- package/types/ngwr-form.d.ts +2 -2
- package/types/ngwr-gauge.d.ts +1 -1
- package/types/ngwr-hotkey.d.ts +1 -1
- package/types/ngwr-i18n.d.ts +1 -1
- package/types/ngwr-icon-adapters-lucide.d.ts +5 -3
- package/types/ngwr-icon.d.ts +1 -1
- package/types/ngwr-image-cropper.d.ts +1 -1
- package/types/ngwr-input-number.d.ts +25 -19
- package/types/ngwr-input-otp.d.ts +23 -17
- package/types/ngwr-input.d.ts +2 -2
- package/types/ngwr-keyboard.d.ts +1 -1
- package/types/ngwr-knob.d.ts +24 -19
- package/types/ngwr-layout.d.ts +1 -1
- package/types/ngwr-lightbox.d.ts +1 -1
- package/types/ngwr-line-chart.d.ts +1 -1
- package/types/ngwr-list.d.ts +1 -1
- package/types/ngwr-loading-bar.d.ts +1 -1
- package/types/ngwr-marquee.d.ts +1 -1
- package/types/ngwr-media.d.ts +1 -1
- package/types/ngwr-mention.d.ts +1 -1
- package/types/ngwr-meta.d.ts +1 -1
- package/types/ngwr-meter-group.d.ts +1 -1
- package/types/ngwr-page-header.d.ts +1 -1
- package/types/ngwr-pagination.d.ts +1 -1
- package/types/ngwr-platform.d.ts +93 -2
- package/types/ngwr-popconfirm.d.ts +3 -3
- package/types/ngwr-progress.d.ts +2 -2
- package/types/ngwr-pull-to-refresh.d.ts +69 -0
- package/types/ngwr-qr.d.ts +1 -1
- package/types/ngwr-radio.d.ts +25 -22
- package/types/ngwr-rating.d.ts +28 -20
- package/types/ngwr-result.d.ts +1 -1
- package/types/ngwr-rotating-text.d.ts +1 -0
- package/types/ngwr-scroll.d.ts +1 -1
- package/types/ngwr-segmented.d.ts +1 -1
- package/types/ngwr-select.d.ts +93 -26
- package/types/ngwr-sidebar.d.ts +1 -1
- package/types/ngwr-skeleton.d.ts +2 -2
- package/types/ngwr-slider.d.ts +35 -21
- package/types/ngwr-sparkline.d.ts +1 -1
- package/types/ngwr-speed-dial.d.ts +8 -2
- package/types/ngwr-spinner.d.ts +1 -1
- package/types/ngwr-splitter.d.ts +1 -1
- package/types/ngwr-squircle.d.ts +1 -1
- package/types/ngwr-statistic.d.ts +40 -5
- package/types/ngwr-stepper.d.ts +2 -2
- package/types/ngwr-storage.d.ts +1 -1
- package/types/ngwr-switch.d.ts +20 -16
- package/types/ngwr-table.d.ts +417 -6
- package/types/ngwr-tabs.d.ts +1 -1
- package/types/ngwr-textarea.d.ts +21 -18
- package/types/ngwr-theme.d.ts +7 -2
- package/types/ngwr-tilt-card.d.ts +3 -0
- package/types/ngwr-timeline.d.ts +1 -1
- package/types/ngwr-toast.d.ts +1 -1
- package/types/ngwr-toolbar.d.ts +1 -1
- package/types/ngwr-tree.d.ts +100 -19
- package/types/ngwr-typography.d.ts +1 -1
- package/types/ngwr-validators.d.ts +1 -1
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr-virtual-scroll.d.ts +1 -1
- package/types/ngwr-window.d.ts +1 -1
- package/typography/styles/_index.scss +11 -11
- package/virtual-scroll/styles/_index.scss +1 -1
- package/waves/styles/_index.scss +1 -1
- package/window/styles/_index.scss +18 -18
|
@@ -54,7 +54,7 @@ type PageEntry = number | typeof ELLIPSIS;
|
|
|
54
54
|
* />
|
|
55
55
|
* ```
|
|
56
56
|
*
|
|
57
|
-
* @see https://ngwr.dev/components/pagination
|
|
57
|
+
* @see https://ngwr.dev/reference/components/pagination
|
|
58
58
|
*/
|
|
59
59
|
declare class WrPagination {
|
|
60
60
|
/** Currently displayed page (1-based). Two-way bindable. */
|
package/types/ngwr-platform.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ import { Signal } from '@angular/core';
|
|
|
20
20
|
* protected readonly dark = this.platform.prefersDark;
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
23
|
-
* @see https://ngwr.dev/services/platform
|
|
23
|
+
* @see https://ngwr.dev/reference/services/platform
|
|
24
24
|
*/
|
|
25
25
|
declare class WrPlatform {
|
|
26
26
|
private readonly destroyRef;
|
|
@@ -35,4 +35,95 @@ declare class WrPlatform {
|
|
|
35
35
|
static ɵprov: i0.ɵɵInjectableDeclaration<WrPlatform>;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
/**
|
|
39
|
+
* SSR-safe view onto `window.visualViewport` — the part of the layout viewport
|
|
40
|
+
* actually visible once the on-screen keyboard (or other browser chrome) is
|
|
41
|
+
* accounted for.
|
|
42
|
+
*
|
|
43
|
+
* - `bottomInset` — px hidden at the bottom of the layout viewport (the
|
|
44
|
+
* keyboard height); `0` when nothing covers it, on the server, or in browsers
|
|
45
|
+
* without the API.
|
|
46
|
+
* - `offsetTop` — how far the visual viewport is pushed/scrolled down.
|
|
47
|
+
*
|
|
48
|
+
* While active it also mirrors `bottomInset` onto `--wr-keyboard-inset` on the
|
|
49
|
+
* document root, so purely presentational surfaces (the responsive overlay
|
|
50
|
+
* sheet, the command-palette sheet) can lift above the keyboard with CSS alone.
|
|
51
|
+
*
|
|
52
|
+
* @see https://ngwr.dev/reference/services/platform
|
|
53
|
+
*/
|
|
54
|
+
declare class WrVisualViewport {
|
|
55
|
+
private readonly destroyRef;
|
|
56
|
+
private readonly doc;
|
|
57
|
+
private readonly isBrowser;
|
|
58
|
+
private readonly _bottomInset;
|
|
59
|
+
private readonly _offsetTop;
|
|
60
|
+
/** Height (px) the keyboard / browser chrome hides at the viewport bottom. */
|
|
61
|
+
readonly bottomInset: Signal<number>;
|
|
62
|
+
/** The visual viewport's top offset (px). */
|
|
63
|
+
readonly offsetTop: Signal<number>;
|
|
64
|
+
constructor();
|
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrVisualViewport, never>;
|
|
66
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WrVisualViewport>;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** Impact weight for {@link WrHaptics.impact}. */
|
|
70
|
+
type WrHapticImpact = 'light' | 'medium' | 'heavy';
|
|
71
|
+
/**
|
|
72
|
+
* SSR-safe wrapper around the Vibration API for tactile feedback on touch
|
|
73
|
+
* devices. Semantic presets (`impact`, `selection`, `success`, `warning`,
|
|
74
|
+
* `error`) map to sensible vibration patterns so call sites stay readable.
|
|
75
|
+
*
|
|
76
|
+
* Every method is a no-op — returning `false` — when there is no support:
|
|
77
|
+
* on the server, in browsers without `navigator.vibrate`, and notably on
|
|
78
|
+
* **iOS Safari**, which does not expose the Vibration API at all (its
|
|
79
|
+
* haptics are native-only). Check {@link supported} to branch UI on it.
|
|
80
|
+
*
|
|
81
|
+
* Haptics are best paired with a real user gesture (tap) — some browsers
|
|
82
|
+
* ignore `vibrate()` calls that aren't triggered by one. This service does
|
|
83
|
+
* not gate on `prefers-reduced-motion`; read {@link WrPlatform.prefersReducedMotion}
|
|
84
|
+
* at the call site if you want to suppress feedback for those users.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```ts
|
|
88
|
+
* private readonly haptics = inject(WrHaptics);
|
|
89
|
+
*
|
|
90
|
+
* onDelete(): void {
|
|
91
|
+
* this.haptics.warning(); // buzz before a destructive confirm
|
|
92
|
+
* }
|
|
93
|
+
*
|
|
94
|
+
* onToggle(): void {
|
|
95
|
+
* this.haptics.selection(); // subtle tick on a switch / segmented change
|
|
96
|
+
* }
|
|
97
|
+
* ```
|
|
98
|
+
*
|
|
99
|
+
* @see https://ngwr.dev/reference/services/platform
|
|
100
|
+
*/
|
|
101
|
+
declare class WrHaptics {
|
|
102
|
+
private readonly isBrowser;
|
|
103
|
+
private readonly nav;
|
|
104
|
+
/** Whether the Vibration API is available (browser + `navigator.vibrate`). */
|
|
105
|
+
readonly supported: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Fire a raw vibration pattern — a single duration in ms, or an alternating
|
|
108
|
+
* `[buzz, pause, buzz, …]` array. Returns whether it was dispatched; passing
|
|
109
|
+
* `0` / `[]` cancels any ongoing vibration.
|
|
110
|
+
*/
|
|
111
|
+
vibrate(pattern: number | readonly number[]): boolean;
|
|
112
|
+
/** A physical "tap" — `light`, `medium` (default), or `heavy`. */
|
|
113
|
+
impact(strength?: WrHapticImpact): boolean;
|
|
114
|
+
/** A subtle tick for a discrete change (switch, segmented, stepper). */
|
|
115
|
+
selection(): boolean;
|
|
116
|
+
/** A confirming pulse for a completed action. */
|
|
117
|
+
success(): boolean;
|
|
118
|
+
/** A cautioning pulse before a risky or destructive action. */
|
|
119
|
+
warning(): boolean;
|
|
120
|
+
/** A buzzing pulse for a failure or rejected action. */
|
|
121
|
+
error(): boolean;
|
|
122
|
+
/** Cancel any in-progress vibration. */
|
|
123
|
+
stop(): void;
|
|
124
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrHaptics, never>;
|
|
125
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WrHaptics>;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export { WrHaptics, WrPlatform, WrVisualViewport };
|
|
129
|
+
export type { WrHapticImpact };
|
|
@@ -24,7 +24,7 @@ type WrPopconfirmPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
|
24
24
|
* >Delete</wr-btn>
|
|
25
25
|
* ```
|
|
26
26
|
*
|
|
27
|
-
* @see https://ngwr.dev/components/popconfirm
|
|
27
|
+
* @see https://ngwr.dev/reference/components/popconfirm
|
|
28
28
|
*/
|
|
29
29
|
declare class WrPopconfirm {
|
|
30
30
|
/** Confirmation message. */
|
|
@@ -36,7 +36,7 @@ declare class WrPopconfirm {
|
|
|
36
36
|
/** Label for the cancel button. @default 'Cancel' */
|
|
37
37
|
readonly cancelText: _angular_core.InputSignal<string>;
|
|
38
38
|
/** Color of the confirm button. @default 'primary' */
|
|
39
|
-
readonly confirmColor: _angular_core.InputSignal<"primary" | "secondary" | "success" | "warning" | "danger" | "light" | "medium" | "dark">;
|
|
39
|
+
readonly confirmColor: _angular_core.InputSignal<"primary" | "secondary" | "success" | "warning" | "danger" | "info" | "light" | "medium" | "dark">;
|
|
40
40
|
/** Fires when the user clicks confirm. */
|
|
41
41
|
readonly confirmed: _angular_core.OutputEmitterRef<void>;
|
|
42
42
|
/** Fires when the user clicks cancel or dismisses the overlay. */
|
|
@@ -68,7 +68,7 @@ declare class WrPopconfirmPanel {
|
|
|
68
68
|
readonly message: _angular_core.InputSignal<string>;
|
|
69
69
|
readonly confirmText: _angular_core.InputSignal<string>;
|
|
70
70
|
readonly cancelText: _angular_core.InputSignal<string>;
|
|
71
|
-
readonly confirmColor: _angular_core.InputSignal<"primary" | "secondary" | "success" | "warning" | "danger" | "light" | "medium" | "dark">;
|
|
71
|
+
readonly confirmColor: _angular_core.InputSignal<"primary" | "secondary" | "success" | "warning" | "danger" | "info" | "light" | "medium" | "dark">;
|
|
72
72
|
readonly confirmed: _angular_core.OutputEmitterRef<void>;
|
|
73
73
|
readonly cancelled: _angular_core.OutputEmitterRef<void>;
|
|
74
74
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrPopconfirmPanel, never>;
|
package/types/ngwr-progress.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import * as _angular_core from '@angular/core';
|
|
|
9
9
|
* <wr-progress color="success" [value]="80" />
|
|
10
10
|
* ```
|
|
11
11
|
*
|
|
12
|
-
* @see https://ngwr.dev/components/progress
|
|
12
|
+
* @see https://ngwr.dev/reference/components/progress
|
|
13
13
|
*/
|
|
14
14
|
declare class WrProgress {
|
|
15
15
|
/**
|
|
@@ -17,7 +17,7 @@ declare class WrProgress {
|
|
|
17
17
|
*
|
|
18
18
|
* @default 'primary'
|
|
19
19
|
*/
|
|
20
|
-
readonly color: _angular_core.InputSignal<"primary" | "secondary" | "success" | "warning" | "danger" | "light" | "medium" | "dark">;
|
|
20
|
+
readonly color: _angular_core.InputSignal<"primary" | "secondary" | "success" | "warning" | "danger" | "info" | "light" | "medium" | "dark">;
|
|
21
21
|
/**
|
|
22
22
|
* Progress value, clamped to `[0, 100]`.
|
|
23
23
|
*
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Pull-to-refresh wrapper. Make its own content scrollable (give it a height /
|
|
5
|
+
* `max-height`), and when the user drags down from the very top past
|
|
6
|
+
* `threshold` and lets go, `refresh` fires.
|
|
7
|
+
*
|
|
8
|
+
* It is a **controlled** spinner: bind `refreshing` — set it `true` in your
|
|
9
|
+
* `refresh` handler and `false` once the async work settles, and the indicator
|
|
10
|
+
* holds open until then. Setting `refreshing` `true` yourself (without a pull)
|
|
11
|
+
* shows the spinner too, so it doubles as a programmatic "reloading" state.
|
|
12
|
+
*
|
|
13
|
+
* Touch-only by design (the gesture is meaningless with a mouse); it lives
|
|
14
|
+
* beside native scrolling — a pull only starts at `scrollTop === 0`, otherwise
|
|
15
|
+
* the list scrolls as usual. Fires a light {@link WrHaptics} tap when the pull
|
|
16
|
+
* arms. `overscroll-behavior` stops the browser's own pull-to-refresh from
|
|
17
|
+
* fighting it.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```html
|
|
21
|
+
* <wr-pull-to-refresh style="height: 20rem" [refreshing]="loading()" (refresh)="reload()">
|
|
22
|
+
* @for (item of items(); track item.id) {
|
|
23
|
+
* <div class="row">{{ item.label }}</div>
|
|
24
|
+
* }
|
|
25
|
+
* </wr-pull-to-refresh>
|
|
26
|
+
* ```
|
|
27
|
+
* ```ts
|
|
28
|
+
* reload(): void {
|
|
29
|
+
* this.loading.set(true);
|
|
30
|
+
* this.api.fetch().subscribe((rows) => {
|
|
31
|
+
* this.items.set(rows);
|
|
32
|
+
* this.loading.set(false); // closes the indicator
|
|
33
|
+
* });
|
|
34
|
+
* }
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @see https://ngwr.dev/reference/components/pull-to-refresh
|
|
38
|
+
*/
|
|
39
|
+
declare class WrPullToRefresh {
|
|
40
|
+
private readonly el;
|
|
41
|
+
private readonly haptics;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the refresh is in flight — drives the spinner. Set `true` in your
|
|
44
|
+
* `refresh` handler and `false` when the work resolves. @default false
|
|
45
|
+
*/
|
|
46
|
+
readonly refreshing: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
47
|
+
/** Disable the gesture entirely. @default false */
|
|
48
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
49
|
+
/** Distance (px) the pull must reach for a release to trigger `refresh`. @default 64 */
|
|
50
|
+
readonly threshold: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
51
|
+
/** Fires once each time the user pulls past `threshold` and releases. */
|
|
52
|
+
readonly refresh: _angular_core.OutputEmitterRef<void>;
|
|
53
|
+
protected readonly distance: _angular_core.WritableSignal<number>;
|
|
54
|
+
protected readonly dragging: _angular_core.WritableSignal<boolean>;
|
|
55
|
+
protected readonly thresholdPx: _angular_core.Signal<number>;
|
|
56
|
+
protected readonly armed: _angular_core.Signal<boolean>;
|
|
57
|
+
protected readonly progress: _angular_core.Signal<number>;
|
|
58
|
+
protected readonly contentTransform: _angular_core.Signal<string | null>;
|
|
59
|
+
private startY;
|
|
60
|
+
private canPull;
|
|
61
|
+
constructor();
|
|
62
|
+
protected onTouchStart(event: TouchEvent): void;
|
|
63
|
+
protected onTouchMove(event: TouchEvent): void;
|
|
64
|
+
protected onTouchEnd(): void;
|
|
65
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrPullToRefresh, never>;
|
|
66
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrPullToRefresh, "wr-pull-to-refresh", never, { "refreshing": { "alias": "refreshing"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "threshold": { "alias": "threshold"; "required": false; "isSignal": true; }; }, { "refresh": "refresh"; }, never, ["*"], true, never>;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export { WrPullToRefresh };
|
package/types/ngwr-qr.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ type WrQrErrorLevel = 'L' | 'M' | 'Q' | 'H';
|
|
|
26
26
|
* <wr-qr value="..." iconUrl="/logo.png" [iconSize]="48" level="H" />
|
|
27
27
|
* ```
|
|
28
28
|
*
|
|
29
|
-
* @see https://ngwr.dev/components/qrcode
|
|
29
|
+
* @see https://ngwr.dev/reference/components/qrcode
|
|
30
30
|
*/
|
|
31
31
|
declare class WrQr {
|
|
32
32
|
/** Text or URL to encode. Required. */
|
package/types/ngwr-radio.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { InjectionToken, Signal } from '@angular/core';
|
|
3
|
-
import {
|
|
3
|
+
import { FormValueControl } from '@angular/forms/signals';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Single-choice option. Must be a child of `<wr-radio-group>`.
|
|
@@ -14,7 +14,7 @@ import { ControlValueAccessor } from '@angular/forms';
|
|
|
14
14
|
* </wr-radio-group>
|
|
15
15
|
* ```
|
|
16
16
|
*
|
|
17
|
-
* @see https://ngwr.dev/components/radio
|
|
17
|
+
* @see https://ngwr.dev/reference/components/radio
|
|
18
18
|
*/
|
|
19
19
|
type WrRadioSize = 'sm' | 'md' | 'lg';
|
|
20
20
|
declare class WrRadio {
|
|
@@ -70,8 +70,12 @@ interface WrRadioGroupContext {
|
|
|
70
70
|
readonly isDisabled: Signal<boolean>;
|
|
71
71
|
/** Select the given value. */
|
|
72
72
|
select(value: unknown): void;
|
|
73
|
-
/**
|
|
74
|
-
|
|
73
|
+
/**
|
|
74
|
+
* Mark the group as touched (called on blur from any child). Named
|
|
75
|
+
* `markTouched` rather than `touch` so it doesn't clash with the
|
|
76
|
+
* `FormUiControl.touch` output the group now exposes for signal forms.
|
|
77
|
+
*/
|
|
78
|
+
markTouched(): void;
|
|
75
79
|
}
|
|
76
80
|
/**
|
|
77
81
|
* Token a `<wr-radio>` injects to participate in its parent `<wr-radio-group>`
|
|
@@ -85,46 +89,45 @@ declare const WR_RADIO_GROUP: InjectionToken<WrRadioGroupContext>;
|
|
|
85
89
|
/**
|
|
86
90
|
* Hosts a group of `<wr-radio>` children as a single-value selection.
|
|
87
91
|
*
|
|
88
|
-
*
|
|
89
|
-
* currently selected radio's
|
|
92
|
+
* A signal-forms native control: it implements `FormValueControl<unknown>`, so
|
|
93
|
+
* `[formField]` binds to its `value` model — the currently selected radio's
|
|
94
|
+
* `value`. `[(value)]` works standalone. Classic `[(ngModel)]` / reactive forms
|
|
95
|
+
* keep working through Angular's bridge.
|
|
90
96
|
*
|
|
91
97
|
* @example
|
|
92
98
|
* ```html
|
|
93
|
-
* <wr-radio-group [
|
|
99
|
+
* <wr-radio-group [formField]="form.size">
|
|
94
100
|
* <wr-radio value="sm">Small</wr-radio>
|
|
95
101
|
* <wr-radio value="md">Medium</wr-radio>
|
|
96
102
|
* <wr-radio value="lg">Large</wr-radio>
|
|
97
103
|
* </wr-radio-group>
|
|
98
104
|
* ```
|
|
99
105
|
*
|
|
100
|
-
* @see https://ngwr.dev/components/radio
|
|
106
|
+
* @see https://ngwr.dev/reference/components/radio
|
|
101
107
|
*/
|
|
102
|
-
declare class WrRadioGroup implements
|
|
108
|
+
declare class WrRadioGroup implements FormValueControl<unknown>, WrRadioGroupContext {
|
|
103
109
|
/**
|
|
104
110
|
* Shared `name` attribute. Defaults to a random id so multiple groups
|
|
105
|
-
* on the same page don't collide.
|
|
111
|
+
* on the same page don't collide. (Also the `FormUiControl.name` slot.)
|
|
106
112
|
*/
|
|
107
113
|
readonly name: _angular_core.InputSignal<string>;
|
|
108
114
|
/**
|
|
109
|
-
* Disable the whole group.
|
|
115
|
+
* Disable the whole group. Bound automatically from the field's disabled
|
|
116
|
+
* state when used with `[formField]`.
|
|
110
117
|
*
|
|
111
118
|
* @default false
|
|
112
119
|
*/
|
|
113
120
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
/**
|
|
121
|
+
/** The selected radio's value. Bound by `[formField]`, or two-way via `[(value)]`. */
|
|
122
|
+
readonly value: _angular_core.ModelSignal<unknown>;
|
|
123
|
+
/** Emitted on blur from any child so a bound field can mark itself touched. */
|
|
124
|
+
readonly touch: _angular_core.OutputEmitterRef<void>;
|
|
125
|
+
/** Effective disabled state (WrRadioGroupContext). */
|
|
117
126
|
readonly isDisabled: _angular_core.Signal<boolean>;
|
|
118
|
-
private onChange;
|
|
119
|
-
private onTouched;
|
|
120
127
|
select(value: unknown): void;
|
|
121
|
-
|
|
122
|
-
writeValue(value: unknown): void;
|
|
123
|
-
registerOnChange(fn: (value: unknown) => void): void;
|
|
124
|
-
registerOnTouched(fn: () => void): void;
|
|
125
|
-
setDisabledState(isDisabled: boolean): void;
|
|
128
|
+
markTouched(): void;
|
|
126
129
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrRadioGroup, never>;
|
|
127
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrRadioGroup, "wr-radio-group", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
130
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrRadioGroup, "wr-radio-group", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "touch": "touch"; }, never, ["*"], true, never>;
|
|
128
131
|
}
|
|
129
132
|
|
|
130
133
|
export { WR_RADIO_GROUP, WrRadio, WrRadioGroup };
|
package/types/ngwr-rating.d.ts
CHANGED
|
@@ -1,65 +1,73 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { FormValueControl } from '@angular/forms/signals';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Star rating input. Click or hover to set a value; supports half-star
|
|
6
|
-
* increments via `step="0.5"`.
|
|
7
|
-
*
|
|
6
|
+
* increments via `step="0.5"`. Value is `number | null` (clamped to
|
|
7
|
+
* `[0, count]`).
|
|
8
|
+
*
|
|
9
|
+
* A signal-forms native control: it implements `FormValueControl<number | null>`,
|
|
10
|
+
* so `[formField]` binds straight to its `value` model — no
|
|
11
|
+
* `ControlValueAccessor` in between. `[(value)]` works standalone.
|
|
8
12
|
*
|
|
9
13
|
* Keyboard: `←` / `→` bump by `step`, `Home` / `End` jump to 0 / max.
|
|
10
14
|
* Clicking the current value clears it (toggle off).
|
|
11
15
|
*
|
|
12
16
|
* @example
|
|
13
17
|
* ```html
|
|
14
|
-
*
|
|
15
|
-
* <wr-rating [
|
|
16
|
-
*
|
|
18
|
+
* <!-- signal forms -->
|
|
19
|
+
* <wr-rating [formField]="form.score" />
|
|
20
|
+
*
|
|
21
|
+
* <!-- standalone two-way binding -->
|
|
22
|
+
* <wr-rating [(value)]="score" [count]="10" step="0.5" />
|
|
23
|
+
* <wr-rating [value]="4.5" [readonly]="true" />
|
|
17
24
|
* ```
|
|
18
25
|
*
|
|
19
|
-
* @see https://ngwr.dev/components/rating
|
|
26
|
+
* @see https://ngwr.dev/reference/components/rating
|
|
20
27
|
*/
|
|
21
28
|
type WrRatingSize = 'sm' | 'md' | 'lg';
|
|
22
|
-
declare class WrRating implements
|
|
29
|
+
declare class WrRating implements FormValueControl<number | null> {
|
|
23
30
|
/** Total number of slots. @default 5 */
|
|
24
31
|
readonly count: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
25
32
|
/** Step granularity — `1` for whole stars, `0.5` for halves. @default 1 */
|
|
26
33
|
readonly step: _angular_core.InputSignalWithTransform<1 | 0.5, unknown>;
|
|
27
34
|
/** Read-only — value is displayed but not interactive. @default false */
|
|
28
35
|
readonly readonly: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
29
|
-
/**
|
|
36
|
+
/**
|
|
37
|
+
* Disable interaction. Bound automatically from the field's disabled state
|
|
38
|
+
* when used with `[formField]`.
|
|
39
|
+
*
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
30
42
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
31
43
|
/** Control size — scales the icons + gaps. @default 'md' */
|
|
32
44
|
readonly size: _angular_core.InputSignal<WrRatingSize>;
|
|
33
45
|
/** Accessible label. @default 'Rating' */
|
|
34
46
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
35
|
-
/**
|
|
36
|
-
|
|
47
|
+
/** The rating. Bound by `[formField]`, or two-way via `[(value)]`. */
|
|
48
|
+
readonly value: _angular_core.ModelSignal<number | null>;
|
|
49
|
+
/** Emitted on blur so a bound field can mark itself touched. */
|
|
50
|
+
readonly touch: _angular_core.OutputEmitterRef<void>;
|
|
37
51
|
/** Transient hover preview — overrides `value` for display when set. */
|
|
38
52
|
protected readonly hoverValue: _angular_core.WritableSignal<number | null>;
|
|
39
|
-
private readonly disabledFromCva;
|
|
40
|
-
protected readonly effectiveDisabled: _angular_core.Signal<boolean>;
|
|
41
53
|
protected readonly interactive: _angular_core.Signal<boolean>;
|
|
42
54
|
/** What we actually render — hover wins while hovering. */
|
|
43
55
|
protected readonly displayValue: _angular_core.Signal<number>;
|
|
44
56
|
protected readonly slots: _angular_core.Signal<number[]>;
|
|
45
57
|
protected readonly classes: _angular_core.Signal<string>;
|
|
58
|
+
constructor();
|
|
46
59
|
/** Fill ratio for slot `i` in `[0, 1]` — drives the CSS clip width. */
|
|
47
60
|
protected fillFor(i: number): number;
|
|
48
|
-
private onChange;
|
|
49
|
-
private onTouched;
|
|
50
|
-
writeValue(value: number | null): void;
|
|
51
|
-
registerOnChange(fn: (value: number | null) => void): void;
|
|
52
|
-
registerOnTouched(fn: () => void): void;
|
|
53
|
-
setDisabledState(isDisabled: boolean): void;
|
|
54
61
|
protected onSlotMove(event: MouseEvent, index: number): void;
|
|
55
62
|
protected onLeave(): void;
|
|
56
63
|
protected onSlotClick(event: MouseEvent, index: number): void;
|
|
57
64
|
protected onKeydown(event: KeyboardEvent): void;
|
|
65
|
+
protected onBlur(): void;
|
|
58
66
|
/** Convert a mouse position over slot `index` to a snapped value. */
|
|
59
67
|
private computeValue;
|
|
60
68
|
private commit;
|
|
61
69
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrRating, never>;
|
|
62
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrRating, "wr-rating", never, { "count": { "alias": "count"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
70
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrRating, "wr-rating", never, { "count": { "alias": "count"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "touch": "touch"; }, never, never, true, never>;
|
|
63
71
|
}
|
|
64
72
|
|
|
65
73
|
export { WrRating };
|
package/types/ngwr-result.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ type WrResultStatus = 'success' | 'warning' | 'error' | 'info' | 'empty';
|
|
|
18
18
|
* </wr-result>
|
|
19
19
|
* ```
|
|
20
20
|
*
|
|
21
|
-
* @see https://ngwr.dev/components/result
|
|
21
|
+
* @see https://ngwr.dev/reference/components/result
|
|
22
22
|
*/
|
|
23
23
|
declare class WrResult {
|
|
24
24
|
readonly title: _angular_core.InputSignal<string>;
|
package/types/ngwr-scroll.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ interface WrSegmentedOption<T = unknown> {
|
|
|
37
37
|
* />
|
|
38
38
|
* ```
|
|
39
39
|
*
|
|
40
|
-
* @see https://ngwr.dev/components/segmented
|
|
40
|
+
* @see https://ngwr.dev/reference/components/segmented
|
|
41
41
|
*/
|
|
42
42
|
type WrSegmentedSize = 'sm' | 'md' | 'lg';
|
|
43
43
|
declare class WrSegmented<T = unknown> {
|