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
package/types/ngwr-checkbox.d.ts
CHANGED
|
@@ -1,32 +1,39 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { InjectionToken, Signal } from '@angular/core';
|
|
3
|
-
import {
|
|
3
|
+
import { FormCheckboxControl, FormValueControl } from '@angular/forms/signals';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Two-state checkbox.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* A signal-forms native control: it implements `FormCheckboxControl`, so
|
|
9
|
+
* `[formField]` binds straight to its `checked` model — no
|
|
10
|
+
* `ControlValueAccessor` in between. `[(checked)]` works standalone, and
|
|
11
|
+
* classic `[(ngModel)]` / reactive forms keep working through Angular's bridge.
|
|
9
12
|
*
|
|
10
13
|
* @example
|
|
11
14
|
* ```html
|
|
12
|
-
* <wr-checkbox [(
|
|
15
|
+
* <wr-checkbox [(checked)]="agree">I agree</wr-checkbox>
|
|
16
|
+
* <wr-checkbox [formField]="form.agree">I agree</wr-checkbox>
|
|
13
17
|
* ```
|
|
14
18
|
*
|
|
15
|
-
* **Inside `<wr-checkbox-group>`** — the checkbox's `
|
|
16
|
-
* or removed from the group's array
|
|
19
|
+
* **Inside `<wr-checkbox-group>`** — the checkbox's `checkboxValue` is added to
|
|
20
|
+
* or removed from the group's array, and the group is the native form control.
|
|
21
|
+
* (The identity input is `checkboxValue`, not `value`, because
|
|
22
|
+
* `FormCheckboxControl` reserves `value` — its form state is the boolean
|
|
23
|
+
* `checked`.)
|
|
17
24
|
*
|
|
18
25
|
* @example
|
|
19
26
|
* ```html
|
|
20
|
-
* <wr-checkbox-group [
|
|
21
|
-
* <wr-checkbox
|
|
22
|
-
* <wr-checkbox
|
|
27
|
+
* <wr-checkbox-group [formField]="form.features">
|
|
28
|
+
* <wr-checkbox checkboxValue="autosave">Autosave</wr-checkbox>
|
|
29
|
+
* <wr-checkbox checkboxValue="notifications">Notifications</wr-checkbox>
|
|
23
30
|
* </wr-checkbox-group>
|
|
24
31
|
* ```
|
|
25
32
|
*
|
|
26
|
-
* @see https://ngwr.dev/components/checkbox
|
|
33
|
+
* @see https://ngwr.dev/reference/components/checkbox
|
|
27
34
|
*/
|
|
28
35
|
type WrCheckboxSize = 'sm' | 'md' | 'lg';
|
|
29
|
-
declare class WrCheckbox implements
|
|
36
|
+
declare class WrCheckbox implements FormCheckboxControl {
|
|
30
37
|
/**
|
|
31
38
|
* Stable id used to associate the native input with its label.
|
|
32
39
|
*
|
|
@@ -34,12 +41,23 @@ declare class WrCheckbox implements ControlValueAccessor {
|
|
|
34
41
|
*/
|
|
35
42
|
readonly id: _angular_core.InputSignal<string>;
|
|
36
43
|
/**
|
|
37
|
-
*
|
|
38
|
-
* Ignored in standalone mode.
|
|
44
|
+
* This checkbox's identity when inside a `<wr-checkbox-group>` — the value
|
|
45
|
+
* added to / removed from the group's array. Ignored in standalone mode.
|
|
46
|
+
* (Named `checkboxValue`, not `value`, because `FormCheckboxControl` reserves
|
|
47
|
+
* `value`.)
|
|
39
48
|
*/
|
|
40
|
-
readonly
|
|
49
|
+
readonly checkboxValue: _angular_core.InputSignal<unknown>;
|
|
41
50
|
/**
|
|
42
|
-
*
|
|
51
|
+
* Checked state — the form value. Bound by `[formField]`, two-way via
|
|
52
|
+
* `[(checked)]`, or `[(ngModel)]`. Ignored inside a `<wr-checkbox-group>`,
|
|
53
|
+
* where the group's array is the source of truth.
|
|
54
|
+
*/
|
|
55
|
+
readonly checked: _angular_core.ModelSignal<boolean>;
|
|
56
|
+
/** Emitted on blur so a bound field can mark itself touched. */
|
|
57
|
+
readonly touch: _angular_core.OutputEmitterRef<void>;
|
|
58
|
+
/**
|
|
59
|
+
* Disable the checkbox. Bound automatically from the field's disabled state
|
|
60
|
+
* when used with `[formField]`.
|
|
43
61
|
*
|
|
44
62
|
* @default false
|
|
45
63
|
*/
|
|
@@ -51,24 +69,25 @@ declare class WrCheckbox implements ControlValueAccessor {
|
|
|
51
69
|
* default checkmark. Use any registered NGWR icon.
|
|
52
70
|
*/
|
|
53
71
|
readonly icon: _angular_core.InputSignal<string | null>;
|
|
72
|
+
/**
|
|
73
|
+
* Show the indeterminate ("mixed") state — a dash instead of a check. Visual
|
|
74
|
+
* only and controlled: set it yourself for a parent "select all" whose
|
|
75
|
+
* children are partly checked, and clear it on the next toggle. Takes visual
|
|
76
|
+
* precedence over `checked`; the native input reports `aria-checked="mixed"`.
|
|
77
|
+
*
|
|
78
|
+
* @default false
|
|
79
|
+
*/
|
|
80
|
+
readonly indeterminate: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
54
81
|
private readonly group;
|
|
55
|
-
|
|
56
|
-
protected readonly
|
|
57
|
-
/**
|
|
58
|
-
protected readonly checked: _angular_core.Signal<boolean>;
|
|
59
|
-
/** Effective disabled — input wins, then group, then CVA. */
|
|
82
|
+
/** Rendered "is checked" — reads the group when grouped, else the `checked` model. */
|
|
83
|
+
protected readonly isChecked: _angular_core.Signal<boolean>;
|
|
84
|
+
/** Effective disabled — the `disabled` input wins, then the group. */
|
|
60
85
|
protected readonly effectiveDisabled: _angular_core.Signal<boolean>;
|
|
61
86
|
protected readonly classes: _angular_core.Signal<string>;
|
|
62
|
-
private onChange;
|
|
63
|
-
private onTouched;
|
|
64
|
-
writeValue(value: boolean | null): void;
|
|
65
|
-
registerOnChange(fn: (value: boolean) => void): void;
|
|
66
|
-
registerOnTouched(fn: () => void): void;
|
|
67
|
-
setDisabledState(isDisabled: boolean): void;
|
|
68
87
|
protected onInputChange(event: Event): void;
|
|
69
88
|
protected onInputBlur(): void;
|
|
70
89
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrCheckbox, never>;
|
|
71
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrCheckbox, "wr-checkbox", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "
|
|
90
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrCheckbox, "wr-checkbox", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "checkboxValue": { "alias": "checkboxValue"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "touch": "touch"; }, never, ["*"], true, never>;
|
|
72
91
|
}
|
|
73
92
|
|
|
74
93
|
/**
|
|
@@ -103,39 +122,40 @@ declare const WR_CHECKBOX_GROUP: InjectionToken<WrCheckboxGroupContext>;
|
|
|
103
122
|
* Manages a group of `<wr-checkbox>` children as a single form value
|
|
104
123
|
* (an array of the checked items' `value` inputs).
|
|
105
124
|
*
|
|
125
|
+
* A signal-forms native control: it implements `FormValueControl<unknown[]>`,
|
|
126
|
+
* so `[formField]` binds to its `value` model. `[(value)]` works standalone,
|
|
127
|
+
* and classic `[(ngModel)]` / reactive forms keep working through the bridge.
|
|
128
|
+
*
|
|
106
129
|
* @example
|
|
107
130
|
* ```html
|
|
108
|
-
* <wr-checkbox-group [
|
|
109
|
-
* <wr-checkbox
|
|
110
|
-
* <wr-checkbox
|
|
111
|
-
* <wr-checkbox
|
|
131
|
+
* <wr-checkbox-group [formField]="form.features">
|
|
132
|
+
* <wr-checkbox checkboxValue="autosave">Autosave</wr-checkbox>
|
|
133
|
+
* <wr-checkbox checkboxValue="notifications">Notifications</wr-checkbox>
|
|
134
|
+
* <wr-checkbox checkboxValue="darkmode">Dark mode</wr-checkbox>
|
|
112
135
|
* </wr-checkbox-group>
|
|
113
136
|
* ```
|
|
114
137
|
*
|
|
115
|
-
* @see https://ngwr.dev/components/checkbox
|
|
138
|
+
* @see https://ngwr.dev/reference/components/checkbox
|
|
116
139
|
*/
|
|
117
|
-
declare class WrCheckboxGroup implements
|
|
140
|
+
declare class WrCheckboxGroup implements FormValueControl<unknown[]>, WrCheckboxGroupContext {
|
|
118
141
|
/**
|
|
119
|
-
* Disable every child checkbox.
|
|
120
|
-
* `
|
|
142
|
+
* Disable every child checkbox. Bound automatically from the field's
|
|
143
|
+
* disabled state when used with `[formField]`.
|
|
121
144
|
*
|
|
122
145
|
* @default false
|
|
123
146
|
*/
|
|
124
147
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
148
|
+
/** The checked items' values. Bound by `[formField]`, or two-way via `[(value)]`. */
|
|
149
|
+
readonly value: _angular_core.ModelSignal<unknown[]>;
|
|
150
|
+
/** Emitted when a child toggles so a bound field can mark itself touched. */
|
|
151
|
+
readonly touch: _angular_core.OutputEmitterRef<void>;
|
|
125
152
|
private readonly selected;
|
|
126
|
-
|
|
127
|
-
/** Effective disabled state — input wins, CVA second. */
|
|
153
|
+
/** Effective disabled state (WrCheckboxGroupContext). */
|
|
128
154
|
readonly isDisabled: _angular_core.Signal<boolean>;
|
|
129
|
-
private onChange;
|
|
130
|
-
private onTouched;
|
|
131
155
|
isSelected(value: unknown): boolean;
|
|
132
156
|
toggle(value: unknown): void;
|
|
133
|
-
writeValue(value: unknown): void;
|
|
134
|
-
registerOnChange(fn: (value: unknown[]) => void): void;
|
|
135
|
-
registerOnTouched(fn: () => void): void;
|
|
136
|
-
setDisabledState(isDisabled: boolean): void;
|
|
137
157
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrCheckboxGroup, never>;
|
|
138
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrCheckboxGroup, "wr-checkbox-group", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
158
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrCheckboxGroup, "wr-checkbox-group", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "touch": "touch"; }, never, ["*"], true, never>;
|
|
139
159
|
}
|
|
140
160
|
|
|
141
161
|
export { WR_CHECKBOX_GROUP, WrCheckbox, WrCheckboxGroup };
|
|
@@ -25,7 +25,7 @@ type WrClipboardPermission = 'granted' | 'denied' | 'prompt' | 'unsupported';
|
|
|
25
25
|
* await clip.permission('write'); // 'granted' | 'denied' | 'prompt' | 'unsupported'
|
|
26
26
|
* ```
|
|
27
27
|
*
|
|
28
|
-
* @see https://ngwr.dev/services/clipboard
|
|
28
|
+
* @see https://ngwr.dev/reference/services/clipboard
|
|
29
29
|
*/
|
|
30
30
|
declare class WrClipboard {
|
|
31
31
|
private readonly doc;
|
package/types/ngwr-collapse.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ import { InjectionToken, Signal } from '@angular/core';
|
|
|
18
18
|
* </wr-collapse-group>
|
|
19
19
|
* ```
|
|
20
20
|
*
|
|
21
|
-
* @see https://ngwr.dev/components/collapse
|
|
21
|
+
* @see https://ngwr.dev/reference/components/collapse
|
|
22
22
|
*/
|
|
23
23
|
declare class WrCollapse {
|
|
24
24
|
/** Header text. */
|
|
@@ -89,7 +89,7 @@ interface Member$1 {
|
|
|
89
89
|
* Visual + behavioral grouping of `<wr-collapse>` children. When
|
|
90
90
|
* `accordion` is true, opening one child closes the others.
|
|
91
91
|
*
|
|
92
|
-
* @see https://ngwr.dev/components/collapse
|
|
92
|
+
* @see https://ngwr.dev/reference/components/collapse
|
|
93
93
|
*/
|
|
94
94
|
declare class WrCollapseGroup implements WrCollapseGroupContext {
|
|
95
95
|
/** When true, only one child may be open at a time. @default false */
|
|
@@ -122,7 +122,7 @@ interface Member {
|
|
|
122
122
|
* </wr-accordion>
|
|
123
123
|
* ```
|
|
124
124
|
*
|
|
125
|
-
* @see https://ngwr.dev/components/collapse
|
|
125
|
+
* @see https://ngwr.dev/reference/components/collapse
|
|
126
126
|
*/
|
|
127
127
|
declare class WrAccordion implements WrCollapseGroupContext {
|
|
128
128
|
/** Always behaves as an accordion. Provided for context-interface symmetry. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { FormValueControl } from '@angular/forms/signals';
|
|
3
3
|
import { WrSegmentedOption } from 'ngwr/segmented';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -169,33 +169,41 @@ type Tab = 'hex' | 'rgb' | 'hsl';
|
|
|
169
169
|
type Edges = 'sv' | 'hue' | 'alpha';
|
|
170
170
|
/**
|
|
171
171
|
* Inline colour picker — HSV canvas, hue slider, optional alpha slider, HEX
|
|
172
|
-
* input.
|
|
173
|
-
*
|
|
174
|
-
*
|
|
172
|
+
* input.
|
|
173
|
+
*
|
|
174
|
+
* A signal-forms native control: it implements `FormValueControl<string>`, so
|
|
175
|
+
* `[formField]` binds straight to its `value` model — no
|
|
176
|
+
* `ControlValueAccessor` in between. `[(value)]` works standalone. Output is
|
|
177
|
+
* always a hex string.
|
|
175
178
|
*
|
|
176
179
|
* @example
|
|
177
180
|
* ```html
|
|
178
|
-
*
|
|
179
|
-
* <wr-color-picker [
|
|
181
|
+
* <!-- signal forms -->
|
|
182
|
+
* <wr-color-picker [formField]="form.brandColor" />
|
|
183
|
+
*
|
|
184
|
+
* <!-- standalone two-way binding -->
|
|
185
|
+
* <wr-color-picker [(value)]="brandColor" [alpha]="false" />
|
|
180
186
|
* ```
|
|
181
187
|
*
|
|
182
|
-
* @see https://ngwr.dev/components/color-picker
|
|
188
|
+
* @see https://ngwr.dev/reference/components/color-picker
|
|
183
189
|
*/
|
|
184
|
-
declare class WrColorPicker implements
|
|
190
|
+
declare class WrColorPicker implements FormValueControl<string> {
|
|
185
191
|
/** Render the alpha slider and emit 8-digit hex / `rgba()`. @default true */
|
|
186
192
|
readonly alpha: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
187
193
|
/** Disable interaction. @default false */
|
|
188
194
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
189
|
-
/** Output format produced
|
|
195
|
+
/** Output format produced by the control. @default 'hex' */
|
|
190
196
|
readonly format: _angular_core.InputSignal<WrColorFormat>;
|
|
191
197
|
/** Preset hex colours rendered as a clickable row beneath the inputs. Empty = no row. @default [] */
|
|
192
198
|
readonly swatches: _angular_core.InputSignal<readonly string[]>;
|
|
199
|
+
/** The selected colour as a string. Bound by `[formField]`, or two-way via `[(value)]`. */
|
|
200
|
+
readonly value: _angular_core.ModelSignal<string>;
|
|
201
|
+
/** Emitted on blur so a bound field can mark itself touched. */
|
|
202
|
+
readonly touch: _angular_core.OutputEmitterRef<void>;
|
|
193
203
|
protected readonly h: _angular_core.WritableSignal<number>;
|
|
194
204
|
protected readonly s: _angular_core.WritableSignal<number>;
|
|
195
205
|
protected readonly v: _angular_core.WritableSignal<number>;
|
|
196
206
|
protected readonly a: _angular_core.WritableSignal<number>;
|
|
197
|
-
private readonly disabledFromCva;
|
|
198
|
-
protected readonly effectiveDisabled: _angular_core.Signal<boolean>;
|
|
199
207
|
/** RGB view of the current colour, computed lazily. */
|
|
200
208
|
protected readonly rgb: _angular_core.Signal<WrRgb>;
|
|
201
209
|
/** Canonical hex (used by the input field and by drag emits). */
|
|
@@ -219,12 +227,9 @@ declare class WrColorPicker implements ControlValueAccessor {
|
|
|
219
227
|
protected readonly alphaPercent: _angular_core.Signal<number>;
|
|
220
228
|
protected readonly tabOptions: readonly WrSegmentedOption<Tab>[];
|
|
221
229
|
protected readonly classes: _angular_core.Signal<string>;
|
|
222
|
-
|
|
223
|
-
private
|
|
224
|
-
|
|
225
|
-
registerOnChange(fn: (value: string) => void): void;
|
|
226
|
-
registerOnTouched(fn: () => void): void;
|
|
227
|
-
setDisabledState(isDisabled: boolean): void;
|
|
230
|
+
/** Last hex we pushed into `value`; lets the sync effect ignore our own writes. */
|
|
231
|
+
private lastEmittedHex;
|
|
232
|
+
constructor();
|
|
228
233
|
protected onPointerDown(event: PointerEvent, surface: Edges): void;
|
|
229
234
|
private updateFromEvent;
|
|
230
235
|
protected onHexInput(event: Event): void;
|
|
@@ -239,7 +244,7 @@ declare class WrColorPicker implements ControlValueAccessor {
|
|
|
239
244
|
/** Push an RGB triple into the HSV source of truth (preserving the current alpha if the swap removes it). */
|
|
240
245
|
private applyRgb;
|
|
241
246
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrColorPicker, never>;
|
|
242
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrColorPicker, "wr-color-picker", never, { "alpha": { "alias": "alpha"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "swatches": { "alias": "swatches"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
247
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrColorPicker, "wr-color-picker", never, { "alpha": { "alias": "alpha"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "swatches": { "alias": "swatches"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "touch": "touch"; }, never, never, true, never>;
|
|
243
248
|
}
|
|
244
249
|
|
|
245
250
|
/**
|
|
@@ -262,7 +267,7 @@ declare class WrColorPicker implements ControlValueAccessor {
|
|
|
262
267
|
* </button>
|
|
263
268
|
* ```
|
|
264
269
|
*
|
|
265
|
-
* @see https://ngwr.dev/components/color-picker
|
|
270
|
+
* @see https://ngwr.dev/reference/components/color-picker
|
|
266
271
|
*/
|
|
267
272
|
declare class WrColorPickerTrigger {
|
|
268
273
|
/** Two-way bindable colour value (hex string). */
|
|
@@ -53,7 +53,7 @@ interface Bucket {
|
|
|
53
53
|
* <wr-command-palette [items]="commands" trigger="mod+k" (picked)="onPicked($event)" />
|
|
54
54
|
* ```
|
|
55
55
|
*
|
|
56
|
-
* @see https://ngwr.dev/components/command-palette
|
|
56
|
+
* @see https://ngwr.dev/reference/components/command-palette
|
|
57
57
|
*/
|
|
58
58
|
declare class WrCommandPalette {
|
|
59
59
|
/** Items shown in the palette. */
|
package/types/ngwr-compare.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ import * as _angular_core from '@angular/core';
|
|
|
19
19
|
* </wr-compare>
|
|
20
20
|
* ```
|
|
21
21
|
*
|
|
22
|
-
* @see https://ngwr.dev/components/compare
|
|
22
|
+
* @see https://ngwr.dev/reference/components/compare
|
|
23
23
|
*/
|
|
24
24
|
declare class WrCompare {
|
|
25
25
|
/** Divider position as a percentage (0–100). Two-way bindable. @default 50 */
|
|
@@ -37,7 +37,7 @@ declare class WrContextMenuPanel {
|
|
|
37
37
|
* </wr-context-menu>
|
|
38
38
|
* ```
|
|
39
39
|
*
|
|
40
|
-
* @see https://ngwr.dev/components/context-menu
|
|
40
|
+
* @see https://ngwr.dev/reference/components/context-menu
|
|
41
41
|
*/
|
|
42
42
|
declare class WrContextMenu {
|
|
43
43
|
/** Menu to open. Pass a `<wr-context-menu>` template reference. */
|
|
@@ -50,6 +50,13 @@ declare class WrContextMenu {
|
|
|
50
50
|
private overlayRef;
|
|
51
51
|
private closingTimer;
|
|
52
52
|
private leaveTimer;
|
|
53
|
+
private pressTimer;
|
|
54
|
+
private pressX;
|
|
55
|
+
private pressY;
|
|
56
|
+
private pressPageX;
|
|
57
|
+
private pressPageY;
|
|
58
|
+
private lastLongPressAt;
|
|
59
|
+
private cancelPressScroll;
|
|
53
60
|
/**
|
|
54
61
|
* Single open root menu at a time. Submenu items use this to signal
|
|
55
62
|
* chain-level hover state: when the cursor enters ANY pane in the
|
|
@@ -86,9 +93,26 @@ declare class WrContextMenu {
|
|
|
86
93
|
* on a deliberate hover-out.
|
|
87
94
|
*/
|
|
88
95
|
private static readonly LEAVE_DELAY;
|
|
96
|
+
/** Hold duration before a touch long-press opens the menu. */
|
|
97
|
+
private static readonly LONG_PRESS_MS;
|
|
98
|
+
/** Finger travel (px) that turns a pending long-press into a scroll/drag. */
|
|
99
|
+
private static readonly PRESS_MOVE_TOLERANCE;
|
|
89
100
|
constructor();
|
|
90
101
|
/** @internal Right-click handler — opens at the pointer (or re-positions if already open). */
|
|
91
102
|
protected onContextMenu(event: MouseEvent): void;
|
|
103
|
+
/**
|
|
104
|
+
* @internal Touch/pen long-press → open the menu at the press point. Desktop
|
|
105
|
+
* right-click stays on `(contextmenu)`; this path is filtered to non-mouse
|
|
106
|
+
* pointers. Deliberately does NOT `preventDefault`/`setPointerCapture` or set
|
|
107
|
+
* `touch-action` — a press that turns into a scroll must still scroll, so the
|
|
108
|
+
* open is cancelled on movement (> tolerance), on scroll, and on early lift.
|
|
109
|
+
*/
|
|
110
|
+
protected onPointerDown(event: PointerEvent): void;
|
|
111
|
+
/** @internal Finger moved too far before the hold fired — it's a scroll/drag. */
|
|
112
|
+
protected onPointerMove(event: PointerEvent): void;
|
|
113
|
+
/** @internal Lifted (or the browser claimed the gesture) before the hold fired. */
|
|
114
|
+
protected onPointerUp(): void;
|
|
115
|
+
private cancelPress;
|
|
92
116
|
/** Close the menu. */
|
|
93
117
|
close(): void;
|
|
94
118
|
private openOverlay;
|
package/types/ngwr-cookie.d.ts
CHANGED
|
@@ -36,10 +36,16 @@ interface WrCookieOptions {
|
|
|
36
36
|
* cookies.keys(); // readonly string[]
|
|
37
37
|
* ```
|
|
38
38
|
*
|
|
39
|
-
* @see https://ngwr.dev/services/cookie
|
|
39
|
+
* @see https://ngwr.dev/reference/services/cookie
|
|
40
40
|
*/
|
|
41
41
|
declare class WrCookie {
|
|
42
42
|
private readonly doc;
|
|
43
|
+
/**
|
|
44
|
+
* `document.cookie`, or `''` when it cannot be read. Mirrors the guard on
|
|
45
|
+
* `set()`: under SSR the server DOM has no cookie support and throws on the
|
|
46
|
+
* getter, and sandboxed iframes reject access too.
|
|
47
|
+
*/
|
|
48
|
+
private read;
|
|
43
49
|
/** Is `key` present (regardless of value)? */
|
|
44
50
|
has(key: string): boolean;
|
|
45
51
|
/** Read `key`. Returns `fallback` (default `null`) when the key is missing. */
|
package/types/ngwr-counter.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ type Cell = {
|
|
|
46
46
|
* <wr-counter [value]="9.99" mode="tween" [decimals]="2" prefix="$" />
|
|
47
47
|
* ```
|
|
48
48
|
*
|
|
49
|
-
* @see https://ngwr.dev/components/counter
|
|
49
|
+
* @see https://ngwr.dev/reference/components/counter
|
|
50
50
|
*/
|
|
51
51
|
declare class WrCounter {
|
|
52
52
|
/** Target value. */
|
|
@@ -71,6 +71,13 @@ declare class WrCounter {
|
|
|
71
71
|
private rafId;
|
|
72
72
|
/** Tween-mode formatted output. */
|
|
73
73
|
protected readonly tweenText: _angular_core.Signal<string>;
|
|
74
|
+
/**
|
|
75
|
+
* Odometer-mode text for assistive tech and prerendered output. The strip
|
|
76
|
+
* renders every digit 0-9 per column and picks one with a transform, so its
|
|
77
|
+
* markup carries no usable text — screen readers would announce all ten, and
|
|
78
|
+
* static HTML would ship the same noise. This node holds the real value.
|
|
79
|
+
*/
|
|
80
|
+
protected readonly odoText: _angular_core.Signal<string>;
|
|
74
81
|
/** Odometer cells — one per character in the formatted target string. */
|
|
75
82
|
protected readonly cells: _angular_core.Signal<readonly Cell[]>;
|
|
76
83
|
constructor();
|
|
@@ -106,7 +113,7 @@ declare class WrCounter {
|
|
|
106
113
|
* <wr-count-up [from]="60" [to]="0" direction="down" />
|
|
107
114
|
* ```
|
|
108
115
|
*
|
|
109
|
-
* @see https://ngwr.dev/components/counter
|
|
116
|
+
* @see https://ngwr.dev/reference/components/counter
|
|
110
117
|
*/
|
|
111
118
|
declare class WrCountUp {
|
|
112
119
|
/** Starting value. @default 0 */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { ElementRef } from '@angular/core';
|
|
3
|
-
import {
|
|
3
|
+
import { FormValueControl } from '@angular/forms/signals';
|
|
4
4
|
import { WrDateFormat } from 'ngwr/date-adapter';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -14,8 +14,11 @@ import { WrDateFormat } from 'ngwr/date-adapter';
|
|
|
14
14
|
* - `'datetime'` — popover stacks calendar + time stepper. Picking a date
|
|
15
15
|
* does NOT close (the user typically wants to set the time next).
|
|
16
16
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
17
|
+
* A signal-forms native control: it implements `FormValueControl<Date | null>`,
|
|
18
|
+
* so `[formField]` binds straight to its `value` model — no
|
|
19
|
+
* `ControlValueAccessor` in between. `[(value)]` works standalone, and classic
|
|
20
|
+
* `[(ngModel)]` / reactive forms keep working through Angular's bridge. Value
|
|
21
|
+
* type is `Date | null` for every mode.
|
|
19
22
|
*
|
|
20
23
|
* Parses the input on every keystroke (silently — only emits when valid) and
|
|
21
24
|
* re-formats canonical on blur. Format is driven by {@link WrDateAdapter}: it
|
|
@@ -27,19 +30,22 @@ import { WrDateFormat } from 'ngwr/date-adapter';
|
|
|
27
30
|
*
|
|
28
31
|
* @example
|
|
29
32
|
* ```html
|
|
30
|
-
* <!--
|
|
31
|
-
* <wr-date-picker [
|
|
33
|
+
* <!-- signal forms -->
|
|
34
|
+
* <wr-date-picker [formField]="form.picked" format="dd.MM.yyyy" [min]="minDate" />
|
|
35
|
+
*
|
|
36
|
+
* <!-- standalone two-way binding, date only -->
|
|
37
|
+
* <wr-date-picker [(value)]="picked" format="dd.MM.yyyy" [min]="minDate" />
|
|
32
38
|
*
|
|
33
39
|
* <!-- Time only -->
|
|
34
|
-
* <wr-date-picker mode="time" [(
|
|
40
|
+
* <wr-date-picker mode="time" [(value)]="picked" timeFormat="24h" />
|
|
35
41
|
*
|
|
36
42
|
* <!-- Date + time -->
|
|
37
|
-
* <wr-date-picker mode="datetime" [(
|
|
43
|
+
* <wr-date-picker mode="datetime" [(value)]="when" [showSeconds]="true" [step]="5" />
|
|
38
44
|
* ```
|
|
39
45
|
*
|
|
40
|
-
* @see https://ngwr.dev/components/date-picker
|
|
46
|
+
* @see https://ngwr.dev/reference/components/date-picker
|
|
41
47
|
*/
|
|
42
|
-
declare class WrDatePicker implements
|
|
48
|
+
declare class WrDatePicker implements FormValueControl<Date | null> {
|
|
43
49
|
/** Picker behavior — see class doc. @default 'date' */
|
|
44
50
|
readonly mode: _angular_core.InputSignal<"time" | "date" | "datetime">;
|
|
45
51
|
/**
|
|
@@ -51,9 +57,9 @@ declare class WrDatePicker implements ControlValueAccessor {
|
|
|
51
57
|
/** Placeholder shown when the input is empty. */
|
|
52
58
|
readonly placeholder: _angular_core.InputSignal<string>;
|
|
53
59
|
/** Min selectable date (forwarded to the calendar). Ignored in `time` mode. */
|
|
54
|
-
readonly min: _angular_core.InputSignal<Date |
|
|
60
|
+
readonly min: _angular_core.InputSignal<Date | undefined>;
|
|
55
61
|
/** Max selectable date (forwarded to the calendar). Ignored in `time` mode. */
|
|
56
|
-
readonly max: _angular_core.InputSignal<Date |
|
|
62
|
+
readonly max: _angular_core.InputSignal<Date | undefined>;
|
|
57
63
|
/** Predicate to disable specific dates (forwarded to the calendar). Ignored in `time` mode. */
|
|
58
64
|
readonly dateFilter: _angular_core.InputSignal<((date: Date) => boolean) | null>;
|
|
59
65
|
/** Time-panel 12 / 24-hour format. Applies in `time` + `datetime` modes. @default 'auto' */
|
|
@@ -62,7 +68,12 @@ declare class WrDatePicker implements ControlValueAccessor {
|
|
|
62
68
|
readonly showSeconds: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
63
69
|
/** Minute / second step for the time panel. @default 1 */
|
|
64
70
|
readonly step: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
65
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* Disable interaction. Bound automatically from the field's disabled state
|
|
73
|
+
* when used with `[formField]`.
|
|
74
|
+
*
|
|
75
|
+
* @default false
|
|
76
|
+
*/
|
|
66
77
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
67
78
|
/** Read-only — input not typeable, but the trigger icon still opens the overlay. @default false */
|
|
68
79
|
readonly readonly: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
@@ -72,12 +83,12 @@ declare class WrDatePicker implements ControlValueAccessor {
|
|
|
72
83
|
private readonly host;
|
|
73
84
|
private readonly destroyRef;
|
|
74
85
|
protected readonly inputEl: _angular_core.Signal<ElementRef<HTMLInputElement>>;
|
|
75
|
-
/** The picked Date.
|
|
76
|
-
|
|
86
|
+
/** The picked Date. Bound by `[formField]`, or two-way via `[(value)]`. */
|
|
87
|
+
readonly value: _angular_core.ModelSignal<Date | null>;
|
|
88
|
+
/** Emitted on blur so a bound field can mark itself touched. */
|
|
89
|
+
readonly touch: _angular_core.OutputEmitterRef<void>;
|
|
77
90
|
/** Text currently in the input (may be partial / invalid mid-type). */
|
|
78
91
|
protected readonly text: _angular_core.WritableSignal<string>;
|
|
79
|
-
private readonly disabledFromCva;
|
|
80
|
-
protected readonly effectiveDisabled: _angular_core.Signal<boolean>;
|
|
81
92
|
/** Whether the popover is currently open. */
|
|
82
93
|
protected readonly overlayOpen: _angular_core.WritableSignal<boolean>;
|
|
83
94
|
/** Resolved format — falls back to a mode-appropriate default. */
|
|
@@ -93,13 +104,11 @@ declare class WrDatePicker implements ControlValueAccessor {
|
|
|
93
104
|
/** Live calendar ref while the date popover is open — lets the panel track
|
|
94
105
|
* the typed value in real time (not just on reopen). */
|
|
95
106
|
private readonly dateRef;
|
|
107
|
+
/** Last value we pushed into the model ourselves — lets the sync effect
|
|
108
|
+
* skip the echo of our own edits (so a live keystroke's raw text is never
|
|
109
|
+
* reformatted mid-type). */
|
|
110
|
+
private lastValue;
|
|
96
111
|
constructor();
|
|
97
|
-
private onChange;
|
|
98
|
-
private onTouched;
|
|
99
|
-
writeValue(value: Date | null): void;
|
|
100
|
-
registerOnChange(fn: (value: Date | null) => void): void;
|
|
101
|
-
registerOnTouched(fn: () => void): void;
|
|
102
|
-
setDisabledState(isDisabled: boolean): void;
|
|
103
112
|
protected onInput(event: Event): void;
|
|
104
113
|
protected onBlur(): void;
|
|
105
114
|
/** Called by the input's click — opens the overlay if it isn't open already. */
|
|
@@ -110,11 +119,15 @@ declare class WrDatePicker implements ControlValueAccessor {
|
|
|
110
119
|
private attachTime;
|
|
111
120
|
private attachDateTime;
|
|
112
121
|
private commit;
|
|
122
|
+
/** Push a value to the model while remembering it, so the sync effect treats
|
|
123
|
+
* the resulting change as an echo and leaves the display text alone. */
|
|
124
|
+
private commitValue;
|
|
113
125
|
private closeOverlay;
|
|
114
126
|
private dispose;
|
|
115
127
|
private isOutOfBounds;
|
|
128
|
+
private sameDate;
|
|
116
129
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrDatePicker, never>;
|
|
117
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrDatePicker, "wr-date-picker", never, { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "dateFilter": { "alias": "dateFilter"; "required": false; "isSignal": true; }; "timeFormat": { "alias": "timeFormat"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
130
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrDatePicker, "wr-date-picker", never, { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "dateFilter": { "alias": "dateFilter"; "required": false; "isSignal": true; }; "timeFormat": { "alias": "timeFormat"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "touch": "touch"; }, never, never, true, never>;
|
|
118
131
|
}
|
|
119
132
|
|
|
120
133
|
export { WrDatePicker };
|
package/types/ngwr-density.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ declare const WR_DENSITY_CONFIG: InjectionToken<WrDensityConfig>;
|
|
|
40
40
|
* density.current(); // 'sm'
|
|
41
41
|
* ```
|
|
42
42
|
*
|
|
43
|
-
* @see https://ngwr.dev/services/density
|
|
43
|
+
* @see https://ngwr.dev/reference/services/density
|
|
44
44
|
*/
|
|
45
45
|
declare class WrDensity {
|
|
46
46
|
private readonly doc;
|
|
@@ -14,7 +14,7 @@ import * as _angular_core from '@angular/core';
|
|
|
14
14
|
* </wr-descriptions>
|
|
15
15
|
* ```
|
|
16
16
|
*
|
|
17
|
-
* @see https://ngwr.dev/components/descriptions
|
|
17
|
+
* @see https://ngwr.dev/reference/components/descriptions
|
|
18
18
|
*/
|
|
19
19
|
declare class WrDescriptions {
|
|
20
20
|
/** Optional title shown above the list. */
|
package/types/ngwr-dialog.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ declare class WrAutosize {
|
|
|
32
32
|
readonly minRows: i0.InputSignalWithTransform<number, unknown>;
|
|
33
33
|
readonly maxRows: i0.InputSignalWithTransform<number, unknown>;
|
|
34
34
|
private readonly el;
|
|
35
|
+
private readonly isBrowser;
|
|
35
36
|
private lastValue;
|
|
36
37
|
constructor();
|
|
37
38
|
/** @internal */
|
package/types/ngwr-divider.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ type WrDividerType = 'solid' | 'dashed' | 'dotted';
|
|
|
35
35
|
* <wr-divider align="start">Section</wr-divider>
|
|
36
36
|
* ```
|
|
37
37
|
*
|
|
38
|
-
* @see https://ngwr.dev/components/divider
|
|
38
|
+
* @see https://ngwr.dev/reference/components/divider
|
|
39
39
|
*/
|
|
40
40
|
declare class WrDivider {
|
|
41
41
|
/**
|
|
@@ -43,7 +43,7 @@ declare class WrDivider {
|
|
|
43
43
|
*
|
|
44
44
|
* @default null
|
|
45
45
|
*/
|
|
46
|
-
readonly color: _angular_core.InputSignal<"primary" | "secondary" | "success" | "warning" | "danger" | "light" | "medium" | "dark" | null>;
|
|
46
|
+
readonly color: _angular_core.InputSignal<"primary" | "secondary" | "success" | "warning" | "danger" | "info" | "light" | "medium" | "dark" | null>;
|
|
47
47
|
/**
|
|
48
48
|
* Line style.
|
|
49
49
|
*
|
|
@@ -18,7 +18,7 @@ interface WrDonutSegment {
|
|
|
18
18
|
* ]" centerLabel="Disk" centerValue="60%" />
|
|
19
19
|
* ```
|
|
20
20
|
*
|
|
21
|
-
* @see https://ngwr.dev/components/donut-chart
|
|
21
|
+
* @see https://ngwr.dev/reference/components/donut-chart
|
|
22
22
|
*/
|
|
23
23
|
declare class WrDonutChart {
|
|
24
24
|
readonly segments: _angular_core.InputSignal<readonly WrDonutSegment[]>;
|
|
@@ -36,7 +36,7 @@ interface WrSortableReorderEvent<T> {
|
|
|
36
36
|
* </wr-sortable-list>
|
|
37
37
|
* ```
|
|
38
38
|
*
|
|
39
|
-
* @see https://ngwr.dev/components/drag-drop
|
|
39
|
+
* @see https://ngwr.dev/reference/components/drag-drop
|
|
40
40
|
*/
|
|
41
41
|
declare class WrSortableList<T = unknown> {
|
|
42
42
|
/** Items to render. Two-way — emits the reordered array on drop. */
|