ngwr 10.2.1 → 11.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -19
- package/action-sheet/styles/_index.scss +4 -1
- package/anchor/styles/_index.scss +6 -5
- package/back-top/styles/_index.scss +6 -1
- package/blur-text/styles/_index.scss +13 -0
- package/button/styles/_index.scss +11 -6
- package/calendar/styles/_index.scss +11 -2
- package/carousel/styles/_index.scss +13 -2
- package/cascader/styles/_index.scss +5 -3
- package/circular-text/styles/_index.scss +2 -0
- package/collapse/styles/_index.scss +1 -1
- package/color-picker/styles/_index.scss +6 -1
- package/command-palette/styles/_index.scss +2 -1
- package/compare/styles/_index.scss +1 -2
- package/context-menu/styles/_index.scss +8 -2
- package/descriptions/styles/_index.scss +2 -2
- package/dialog/styles/_index.scss +7 -0
- package/drawer/styles/_index.scss +20 -1
- package/dropdown/styles/_index.scss +19 -5
- package/empty/styles/_index.scss +10 -0
- package/falling-text/styles/_index.scss +2 -1
- package/fesm2022/ngwr-action-sheet.mjs +13 -3
- package/fesm2022/ngwr-action-sheet.mjs.map +1 -1
- package/fesm2022/ngwr-affix.mjs +40 -13
- package/fesm2022/ngwr-affix.mjs.map +1 -1
- package/fesm2022/ngwr-anchor.mjs +18 -6
- package/fesm2022/ngwr-anchor.mjs.map +1 -1
- package/fesm2022/ngwr-aurora.mjs +2 -2
- package/fesm2022/ngwr-aurora.mjs.map +1 -1
- package/fesm2022/ngwr-avatar.mjs +31 -7
- package/fesm2022/ngwr-avatar.mjs.map +1 -1
- package/fesm2022/ngwr-back-top.mjs +6 -2
- package/fesm2022/ngwr-back-top.mjs.map +1 -1
- package/fesm2022/ngwr-badge.mjs +1 -1
- package/fesm2022/ngwr-badge.mjs.map +1 -1
- package/fesm2022/ngwr-bar-chart.mjs +30 -9
- package/fesm2022/ngwr-bar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-blur-text.mjs +2 -2
- package/fesm2022/ngwr-blur-text.mjs.map +1 -1
- package/fesm2022/ngwr-border-glow.mjs +2 -2
- package/fesm2022/ngwr-border-glow.mjs.map +1 -1
- package/fesm2022/ngwr-breadcrumbs.mjs +2 -2
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-burger.mjs +9 -4
- package/fesm2022/ngwr-burger.mjs.map +1 -1
- package/fesm2022/ngwr-button-testing.mjs +96 -0
- package/fesm2022/ngwr-button-testing.mjs.map +1 -0
- package/fesm2022/ngwr-button.mjs +31 -14
- package/fesm2022/ngwr-button.mjs.map +1 -1
- package/fesm2022/ngwr-calendar-heatmap.mjs +40 -8
- package/fesm2022/ngwr-calendar-heatmap.mjs.map +1 -1
- package/fesm2022/ngwr-calendar.mjs +20 -1
- package/fesm2022/ngwr-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-card.mjs +2 -2
- package/fesm2022/ngwr-card.mjs.map +1 -1
- package/fesm2022/ngwr-carousel-testing.mjs +377 -0
- package/fesm2022/ngwr-carousel-testing.mjs.map +1 -0
- package/fesm2022/ngwr-carousel.mjs +67 -13
- package/fesm2022/ngwr-carousel.mjs.map +1 -1
- package/fesm2022/ngwr-cascader-testing.mjs +534 -0
- package/fesm2022/ngwr-cascader-testing.mjs.map +1 -0
- package/fesm2022/ngwr-cascader.mjs +2 -2
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-checkbox-testing.mjs +90 -0
- package/fesm2022/ngwr-checkbox-testing.mjs.map +1 -0
- package/fesm2022/ngwr-checkbox.mjs +9 -3
- package/fesm2022/ngwr-checkbox.mjs.map +1 -1
- package/fesm2022/ngwr-circular-text.mjs +2 -2
- package/fesm2022/ngwr-circular-text.mjs.map +1 -1
- package/fesm2022/ngwr-click-spark.mjs +2 -2
- package/fesm2022/ngwr-click-spark.mjs.map +1 -1
- package/fesm2022/ngwr-collapse-testing.mjs +368 -0
- package/fesm2022/ngwr-collapse-testing.mjs.map +1 -0
- package/fesm2022/ngwr-color-picker.mjs +134 -14
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-command-palette-testing.mjs +589 -0
- package/fesm2022/ngwr-command-palette-testing.mjs.map +1 -0
- package/fesm2022/ngwr-command-palette.mjs +58 -8
- package/fesm2022/ngwr-command-palette.mjs.map +1 -1
- package/fesm2022/ngwr-compare.mjs +103 -13
- package/fesm2022/ngwr-compare.mjs.map +1 -1
- package/fesm2022/ngwr-config.mjs +106 -0
- package/fesm2022/ngwr-config.mjs.map +1 -0
- package/fesm2022/ngwr-context-menu-testing.mjs +631 -0
- package/fesm2022/ngwr-context-menu-testing.mjs.map +1 -0
- package/fesm2022/ngwr-context-menu.mjs +94 -8
- package/fesm2022/ngwr-context-menu.mjs.map +1 -1
- package/fesm2022/ngwr-cookie.mjs +5 -1
- package/fesm2022/ngwr-cookie.mjs.map +1 -1
- package/fesm2022/ngwr-counter.mjs +11 -3
- package/fesm2022/ngwr-counter.mjs.map +1 -1
- package/fesm2022/ngwr-date-adapter-luxon.mjs +52 -4
- package/fesm2022/ngwr-date-adapter-luxon.mjs.map +1 -1
- package/fesm2022/ngwr-date-adapter.mjs +54 -8
- package/fesm2022/ngwr-date-adapter.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker-testing.mjs +766 -0
- package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -0
- package/fesm2022/ngwr-date-picker.mjs +73 -3
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-decrypt-text.mjs +27 -9
- package/fesm2022/ngwr-decrypt-text.mjs.map +1 -1
- package/fesm2022/ngwr-dialog-testing.mjs +89 -0
- package/fesm2022/ngwr-dialog-testing.mjs.map +1 -0
- package/fesm2022/ngwr-directives.mjs +36 -12
- package/fesm2022/ngwr-directives.mjs.map +1 -1
- package/fesm2022/ngwr-donut-chart.mjs +22 -5
- package/fesm2022/ngwr-donut-chart.mjs.map +1 -1
- package/fesm2022/ngwr-drag-drop.mjs +2 -2
- package/fesm2022/ngwr-drag-drop.mjs.map +1 -1
- package/fesm2022/ngwr-drawer-testing.mjs +250 -0
- package/fesm2022/ngwr-drawer-testing.mjs.map +1 -0
- package/fesm2022/ngwr-dropdown-testing.mjs +291 -0
- package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -0
- package/fesm2022/ngwr-dropdown.mjs +10 -2
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-empty.mjs +24 -7
- package/fesm2022/ngwr-empty.mjs.map +1 -1
- package/fesm2022/ngwr-event-calendar.mjs +57 -10
- package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-falling-text.mjs +2 -2
- package/fesm2022/ngwr-falling-text.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload-testing.mjs +332 -0
- package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -0
- package/fesm2022/ngwr-form-testing.mjs +451 -0
- package/fesm2022/ngwr-form-testing.mjs.map +1 -0
- package/fesm2022/ngwr-form.mjs +19 -3
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-fuzzy-text.mjs +9 -2
- package/fesm2022/ngwr-fuzzy-text.mjs.map +1 -1
- package/fesm2022/ngwr-gauge.mjs +19 -5
- package/fesm2022/ngwr-gauge.mjs.map +1 -1
- package/fesm2022/ngwr-glitch-text.mjs +2 -2
- package/fesm2022/ngwr-glitch-text.mjs.map +1 -1
- package/fesm2022/ngwr-gradient-text.mjs +2 -2
- package/fesm2022/ngwr-gradient-text.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +50 -0
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +48 -0
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-image-cropper.mjs +23 -0
- package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
- package/fesm2022/ngwr-input-number-testing.mjs +306 -0
- package/fesm2022/ngwr-input-number-testing.mjs.map +1 -0
- package/fesm2022/ngwr-input-number.mjs +35 -3
- package/fesm2022/ngwr-input-number.mjs.map +1 -1
- package/fesm2022/ngwr-input-otp-testing.mjs +419 -0
- package/fesm2022/ngwr-input-otp-testing.mjs.map +1 -0
- package/fesm2022/ngwr-input-otp.mjs +36 -5
- package/fesm2022/ngwr-input-otp.mjs.map +1 -1
- package/fesm2022/ngwr-input-testing.mjs +102 -0
- package/fesm2022/ngwr-input-testing.mjs.map +1 -0
- package/fesm2022/ngwr-input.mjs +47 -10
- package/fesm2022/ngwr-input.mjs.map +1 -1
- package/fesm2022/ngwr-knob.mjs +44 -8
- package/fesm2022/ngwr-knob.mjs.map +1 -1
- package/fesm2022/ngwr-layout.mjs +21 -5
- package/fesm2022/ngwr-layout.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox.mjs +33 -6
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-line-chart.mjs +17 -4
- package/fesm2022/ngwr-line-chart.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +2 -2
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-loading-bar.mjs +2 -2
- package/fesm2022/ngwr-loading-bar.mjs.map +1 -1
- package/fesm2022/ngwr-markdown-testing.mjs +516 -0
- package/fesm2022/ngwr-markdown-testing.mjs.map +1 -0
- package/fesm2022/ngwr-markdown.mjs +1492 -0
- package/fesm2022/ngwr-markdown.mjs.map +1 -0
- package/fesm2022/ngwr-marquee.mjs +17 -6
- package/fesm2022/ngwr-marquee.mjs.map +1 -1
- package/fesm2022/ngwr-mention-testing.mjs +513 -0
- package/fesm2022/ngwr-mention-testing.mjs.map +1 -0
- package/fesm2022/ngwr-mention.mjs +10 -1
- package/fesm2022/ngwr-mention.mjs.map +1 -1
- package/fesm2022/ngwr-meta.mjs +22 -7
- package/fesm2022/ngwr-meta.mjs.map +1 -1
- package/fesm2022/ngwr-meter-group.mjs +19 -5
- package/fesm2022/ngwr-meter-group.mjs.map +1 -1
- package/fesm2022/ngwr-overlay.mjs +41 -1
- package/fesm2022/ngwr-overlay.mjs.map +1 -1
- package/fesm2022/ngwr-pagination-testing.mjs +389 -0
- package/fesm2022/ngwr-pagination-testing.mjs.map +1 -0
- package/fesm2022/ngwr-pagination.mjs +14 -2
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm-testing.mjs +309 -0
- package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -0
- package/fesm2022/ngwr-popconfirm.mjs +95 -17
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-popover-testing.mjs +316 -0
- package/fesm2022/ngwr-popover-testing.mjs.map +1 -0
- package/fesm2022/ngwr-popover.mjs +21 -3
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-pull-to-refresh.mjs +17 -2
- package/fesm2022/ngwr-pull-to-refresh.mjs.map +1 -1
- package/fesm2022/ngwr-qr.mjs +13 -3
- package/fesm2022/ngwr-qr.mjs.map +1 -1
- package/fesm2022/ngwr-radio-testing.mjs +392 -0
- package/fesm2022/ngwr-radio-testing.mjs.map +1 -0
- package/fesm2022/ngwr-radio.mjs +10 -3
- package/fesm2022/ngwr-radio.mjs.map +1 -1
- package/fesm2022/ngwr-rating-testing.mjs +384 -0
- package/fesm2022/ngwr-rating-testing.mjs.map +1 -0
- package/fesm2022/ngwr-rating.mjs +37 -2
- package/fesm2022/ngwr-rating.mjs.map +1 -1
- package/fesm2022/ngwr-segmented-testing.mjs +512 -0
- package/fesm2022/ngwr-segmented-testing.mjs.map +1 -0
- package/fesm2022/ngwr-select-testing.mjs +268 -0
- package/fesm2022/ngwr-select-testing.mjs.map +1 -0
- package/fesm2022/ngwr-select.mjs +87 -16
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-shiny-text.mjs +2 -2
- package/fesm2022/ngwr-shiny-text.mjs.map +1 -1
- package/fesm2022/ngwr-sidebar.mjs +65 -12
- package/fesm2022/ngwr-sidebar.mjs.map +1 -1
- package/fesm2022/ngwr-slider-testing.mjs +478 -0
- package/fesm2022/ngwr-slider-testing.mjs.map +1 -0
- package/fesm2022/ngwr-slider.mjs +57 -13
- package/fesm2022/ngwr-slider.mjs.map +1 -1
- package/fesm2022/ngwr-sparkline.mjs +26 -6
- package/fesm2022/ngwr-sparkline.mjs.map +1 -1
- package/fesm2022/ngwr-speed-dial.mjs +37 -4
- package/fesm2022/ngwr-speed-dial.mjs.map +1 -1
- package/fesm2022/ngwr-spinner.mjs +12 -3
- package/fesm2022/ngwr-spinner.mjs.map +1 -1
- package/fesm2022/ngwr-splash-cursor.mjs +2 -2
- package/fesm2022/ngwr-splash-cursor.mjs.map +1 -1
- package/fesm2022/ngwr-split-text.mjs +2 -2
- package/fesm2022/ngwr-split-text.mjs.map +1 -1
- package/fesm2022/ngwr-splitter.mjs +70 -9
- package/fesm2022/ngwr-splitter.mjs.map +1 -1
- package/fesm2022/ngwr-spotlight-card.mjs +2 -2
- package/fesm2022/ngwr-spotlight-card.mjs.map +1 -1
- package/fesm2022/ngwr-star-border.mjs +2 -2
- package/fesm2022/ngwr-star-border.mjs.map +1 -1
- package/fesm2022/ngwr-statistic.mjs +24 -7
- package/fesm2022/ngwr-statistic.mjs.map +1 -1
- package/fesm2022/ngwr-stepper-testing.mjs +477 -0
- package/fesm2022/ngwr-stepper-testing.mjs.map +1 -0
- package/fesm2022/ngwr-switch-testing.mjs +77 -0
- package/fesm2022/ngwr-switch-testing.mjs.map +1 -0
- package/fesm2022/ngwr-switch.mjs +9 -3
- package/fesm2022/ngwr-switch.mjs.map +1 -1
- package/fesm2022/ngwr-table-testing.mjs +580 -0
- package/fesm2022/ngwr-table-testing.mjs.map +1 -0
- package/fesm2022/ngwr-table.mjs +87 -14
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tabs-testing.mjs +617 -0
- package/fesm2022/ngwr-tabs-testing.mjs.map +1 -0
- package/fesm2022/ngwr-tabs.mjs +38 -6
- package/fesm2022/ngwr-tabs.mjs.map +1 -1
- package/fesm2022/ngwr-textarea-testing.mjs +238 -0
- package/fesm2022/ngwr-textarea-testing.mjs.map +1 -0
- package/fesm2022/ngwr-textarea.mjs +32 -4
- package/fesm2022/ngwr-textarea.mjs.map +1 -1
- package/fesm2022/ngwr-tilt-card.mjs +2 -2
- package/fesm2022/ngwr-tilt-card.mjs.map +1 -1
- package/fesm2022/ngwr-toast-testing.mjs +101 -0
- package/fesm2022/ngwr-toast-testing.mjs.map +1 -0
- package/fesm2022/ngwr-toast.mjs +2 -2
- package/fesm2022/ngwr-toast.mjs.map +1 -1
- package/fesm2022/ngwr-tour.mjs +61 -9
- package/fesm2022/ngwr-tour.mjs.map +1 -1
- package/fesm2022/ngwr-transfer-testing.mjs +538 -0
- package/fesm2022/ngwr-transfer-testing.mjs.map +1 -0
- package/fesm2022/ngwr-transfer.mjs +45 -14
- package/fesm2022/ngwr-transfer.mjs.map +1 -1
- package/fesm2022/ngwr-tree-testing.mjs +734 -0
- package/fesm2022/ngwr-tree-testing.mjs.map +1 -0
- package/fesm2022/ngwr-tree.mjs +73 -7
- package/fesm2022/ngwr-tree.mjs.map +1 -1
- package/fesm2022/ngwr-typewriter.mjs +5 -3
- package/fesm2022/ngwr-typewriter.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 +31 -5
- package/fesm2022/ngwr-virtual-scroll.mjs.map +1 -1
- package/fesm2022/ngwr-waves.mjs +3 -3
- package/fesm2022/ngwr-waves.mjs.map +1 -1
- package/fesm2022/ngwr-window.mjs +8 -0
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/file-upload/styles/_index.scss +7 -2
- package/gauge/styles/_index.scss +1 -1
- package/glitch-text/styles/_index.scss +4 -0
- package/i18n/en.json +48 -0
- package/i18n/ru.json +48 -0
- package/image-cropper/styles/_index.scss +13 -1
- package/input/styles/_index.scss +2 -2
- package/input-number/styles/_index.scss +7 -2
- package/knob/styles/_index.scss +8 -1
- package/layout/styles/_index.scss +3 -3
- package/lightbox/styles/_index.scss +10 -2
- package/line-chart/styles/_index.scss +6 -0
- package/llms-full.txt +151 -4
- package/llms.txt +57 -8
- package/loading-bar/styles/_index.scss +1 -2
- package/markdown/styles/_index.scss +296 -0
- package/marquee/styles/_index.scss +12 -0
- package/mcp/api.js +512 -0
- package/mcp/catalog.js +157 -0
- package/mcp/server.js +273 -0
- package/mcp/tools.js +366 -0
- package/meter-group/styles/_index.scss +1 -1
- package/package.json +186 -35
- package/pagination/styles/_index.scss +6 -6
- package/popover/styles/_index.scss +37 -5
- package/rating/styles/_index.scss +10 -0
- package/result/styles/_index.scss +3 -1
- package/schematics/use/symbol-map.json +2 -0
- package/segmented/styles/_index.scss +12 -1
- package/select/styles/_index.scss +32 -10
- package/sidebar/styles/_index.scss +30 -5
- package/slider/styles/_index.scss +15 -0
- package/speed-dial/styles/_index.scss +20 -0
- package/split-text/styles/_index.scss +13 -0
- package/star-border/styles/_index.scss +2 -0
- package/stepper/styles/_index.scss +19 -3
- package/styles/_grid.scss +4 -4
- package/styles.scss +1 -0
- package/switch/styles/_index.scss +5 -3
- package/table/styles/_index.scss +25 -12
- package/tabs/styles/_index.scss +11 -1
- package/textarea/styles/_index.scss +5 -0
- package/theme/styles/_colors.scss +44 -15
- package/theme/styles/_dark.scss +35 -15
- package/theme/styles/_mixins.scss +3 -0
- package/timeline/styles/_index.scss +2 -2
- package/toast/styles/_index.scss +17 -8
- package/toolbar/styles/_index.scss +3 -3
- package/tour/styles/_index.scss +7 -1
- package/tree/styles/_index.scss +9 -5
- package/types/ngwr-action-sheet.d.ts +9 -1
- package/types/ngwr-affix.d.ts +7 -1
- package/types/ngwr-anchor.d.ts +8 -1
- package/types/ngwr-avatar.d.ts +13 -3
- package/types/ngwr-bar-chart.d.ts +16 -0
- package/types/ngwr-burger.d.ts +6 -2
- package/types/ngwr-button-testing.d.ts +85 -0
- package/types/ngwr-button.d.ts +26 -10
- package/types/ngwr-calendar-heatmap.d.ts +16 -2
- package/types/ngwr-calendar.d.ts +10 -0
- package/types/ngwr-carousel-testing.d.ts +257 -0
- package/types/ngwr-carousel.d.ts +20 -4
- package/types/ngwr-cascader-testing.d.ts +392 -0
- package/types/ngwr-checkbox-testing.d.ts +77 -0
- package/types/ngwr-checkbox.d.ts +7 -2
- package/types/ngwr-collapse-testing.d.ts +290 -0
- package/types/ngwr-color-picker.d.ts +20 -11
- package/types/ngwr-command-palette-testing.d.ts +437 -0
- package/types/ngwr-command-palette.d.ts +25 -2
- package/types/ngwr-compare.d.ts +50 -2
- package/types/ngwr-config.d.ts +176 -0
- package/types/ngwr-context-menu-testing.d.ts +401 -0
- package/types/ngwr-context-menu.d.ts +65 -17
- package/types/ngwr-counter.d.ts +6 -1
- package/types/ngwr-date-adapter-luxon.d.ts +26 -0
- package/types/ngwr-date-picker-testing.d.ts +518 -0
- package/types/ngwr-date-picker.d.ts +4 -0
- package/types/ngwr-dialog-testing.d.ts +79 -0
- package/types/ngwr-directives.d.ts +10 -1
- package/types/ngwr-donut-chart.d.ts +8 -1
- package/types/ngwr-drawer-testing.d.ts +196 -0
- package/types/ngwr-dropdown-testing.d.ts +202 -0
- package/types/ngwr-dropdown.d.ts +7 -1
- package/types/ngwr-empty.d.ts +19 -4
- package/types/ngwr-event-calendar.d.ts +26 -1
- package/types/ngwr-file-upload-testing.d.ts +194 -0
- package/types/ngwr-form-testing.d.ts +379 -0
- package/types/ngwr-form.d.ts +17 -0
- package/types/ngwr-gauge.d.ts +13 -1
- package/types/ngwr-image-cropper.d.ts +10 -0
- package/types/ngwr-input-number-testing.d.ts +226 -0
- package/types/ngwr-input-number.d.ts +29 -1
- package/types/ngwr-input-otp-testing.d.ts +299 -0
- package/types/ngwr-input-otp.d.ts +23 -2
- package/types/ngwr-input-testing.d.ts +84 -0
- package/types/ngwr-input.d.ts +20 -6
- package/types/ngwr-knob.d.ts +18 -0
- package/types/ngwr-layout.d.ts +1 -0
- package/types/ngwr-lightbox.d.ts +17 -3
- package/types/ngwr-line-chart.d.ts +9 -2
- package/types/ngwr-markdown-testing.d.ts +462 -0
- package/types/ngwr-markdown.d.ts +534 -0
- package/types/ngwr-marquee.d.ts +12 -2
- package/types/ngwr-mention-testing.d.ts +359 -0
- package/types/ngwr-meta.d.ts +4 -2
- package/types/ngwr-meter-group.d.ts +11 -1
- package/types/ngwr-overlay.d.ts +33 -2
- package/types/ngwr-pagination-testing.d.ts +291 -0
- package/types/ngwr-pagination.d.ts +1 -0
- package/types/ngwr-popconfirm-testing.d.ts +235 -0
- package/types/ngwr-popconfirm.d.ts +31 -21
- package/types/ngwr-popover-testing.d.ts +221 -0
- package/types/ngwr-popover.d.ts +9 -0
- package/types/ngwr-pull-to-refresh.d.ts +7 -0
- package/types/ngwr-qr.d.ts +9 -1
- package/types/ngwr-radio-testing.d.ts +296 -0
- package/types/ngwr-radio.d.ts +8 -2
- package/types/ngwr-rating-testing.d.ts +291 -0
- package/types/ngwr-rating.d.ts +23 -0
- package/types/ngwr-segmented-testing.d.ts +401 -0
- package/types/ngwr-select-testing.d.ts +175 -0
- package/types/ngwr-select.d.ts +45 -4
- package/types/ngwr-sidebar.d.ts +17 -2
- package/types/ngwr-slider-testing.d.ts +329 -0
- package/types/ngwr-slider.d.ts +35 -1
- package/types/ngwr-sparkline.d.ts +12 -2
- package/types/ngwr-speed-dial.d.ts +17 -18
- package/types/ngwr-spinner.d.ts +8 -1
- package/types/ngwr-splitter.d.ts +24 -1
- package/types/ngwr-statistic.d.ts +12 -2
- package/types/ngwr-stepper-testing.d.ts +346 -0
- package/types/ngwr-switch-testing.d.ts +66 -0
- package/types/ngwr-switch.d.ts +7 -2
- package/types/ngwr-table-testing.d.ts +423 -0
- package/types/ngwr-table.d.ts +42 -0
- package/types/ngwr-tabs-testing.d.ts +470 -0
- package/types/ngwr-tabs.d.ts +9 -0
- package/types/ngwr-textarea-testing.d.ts +184 -0
- package/types/ngwr-textarea.d.ts +7 -2
- package/types/ngwr-toast-testing.d.ts +80 -0
- package/types/ngwr-tour.d.ts +27 -0
- package/types/ngwr-transfer-testing.d.ts +444 -0
- package/types/ngwr-transfer.d.ts +16 -1
- package/types/ngwr-tree-testing.d.ts +501 -0
- package/types/ngwr-tree.d.ts +33 -0
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr-virtual-scroll.d.ts +13 -1
- package/typewriter/styles/_index.scss +1 -1
- package/typography/styles/_index.scss +1 -1
- package/window/styles/_index.scss +32 -9
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { WrRatingSize } from 'ngwr/rating';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @license
|
|
6
|
+
*
|
|
7
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
8
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/** Narrows which `<wr-rating>` a harness query matches. */
|
|
12
|
+
interface WrRatingHarnessFilters extends BaseHarnessFilters {
|
|
13
|
+
/**
|
|
14
|
+
* Match the rating's accessible name — the readable way to tell two ratings on
|
|
15
|
+
* one page apart, since a rating projects no text of its own. A string is an
|
|
16
|
+
* exact match, a RegExp is tested.
|
|
17
|
+
*/
|
|
18
|
+
readonly label?: string | RegExp;
|
|
19
|
+
/**
|
|
20
|
+
* Match the value the slider announces. A cleared rating announces `0`, so
|
|
21
|
+
* `{ value: 0 }` matches both "zero stars" and "no rating yet".
|
|
22
|
+
*/
|
|
23
|
+
readonly value?: number;
|
|
24
|
+
/** Match only read-only (`true`) or only editable (`false`) ratings. */
|
|
25
|
+
readonly readonly?: boolean;
|
|
26
|
+
/** Match only disabled (`true`) or only enabled (`false`) ratings. */
|
|
27
|
+
readonly disabled?: boolean;
|
|
28
|
+
}
|
|
29
|
+
/** Narrows which star a harness query matches. */
|
|
30
|
+
interface WrRatingItemHarnessFilters extends BaseHarnessFilters {
|
|
31
|
+
/** Match the star's fill ratio exactly — `1` for full, `0.5` for a half, `0` for empty. */
|
|
32
|
+
readonly fill?: number;
|
|
33
|
+
/** Match only stars that accept the pointer (`true`) — a readonly or disabled rating has none. */
|
|
34
|
+
readonly interactive?: boolean;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @license
|
|
39
|
+
*
|
|
40
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
41
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Test harness for one star of a `<wr-rating>`.
|
|
46
|
+
*
|
|
47
|
+
* A star is invisible to a screen reader — the row above it is the `slider` and
|
|
48
|
+
* owns the whole accessible story — but it carries the state the eye reads: how
|
|
49
|
+
* far it is filled, whether it is still a click target, and, while the pointer is
|
|
50
|
+
* over the row, the PREVIEW rather than the committed value. That is the reason
|
|
51
|
+
* this exists as a harness of its own.
|
|
52
|
+
*
|
|
53
|
+
* The fill is read from `--wr-rating-fill`, the per-star custom property the
|
|
54
|
+
* component sets and the stylesheet clips the filled glyph with — a public token,
|
|
55
|
+
* and the only place a half star exists in the DOM.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* const rating = await loader.getHarness(WrRatingHarness.with({ label: 'Overall' }));
|
|
60
|
+
* const [, , third] = await rating.getItems();
|
|
61
|
+
*
|
|
62
|
+
* expect(await third.isPartiallyFilled()).toBe(true);
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @see https://ngwr.dev/guides/testing
|
|
66
|
+
*/
|
|
67
|
+
declare class WrRatingItemHarness extends ComponentHarness {
|
|
68
|
+
static hostSelector: string;
|
|
69
|
+
/** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
|
|
70
|
+
static with(options?: WrRatingItemHarnessFilters): HarnessPredicate<WrRatingItemHarness>;
|
|
71
|
+
/**
|
|
72
|
+
* How much of this star is painted, `0` to `1`.
|
|
73
|
+
*
|
|
74
|
+
* While the pointer is over the rating this is the PREVIEW — the component
|
|
75
|
+
* paints `hoverValue ?? value`, so a hovered star reads full before anything is
|
|
76
|
+
* committed. `WrRatingHarness.getValue()` is the committed one.
|
|
77
|
+
*/
|
|
78
|
+
getFill(): Promise<number>;
|
|
79
|
+
/** Whether the star is painted whole. */
|
|
80
|
+
isFilled(): Promise<boolean>;
|
|
81
|
+
/**
|
|
82
|
+
* Whether the star is painted part-way — a half star.
|
|
83
|
+
*
|
|
84
|
+
* Any fractional value paints one, not only `step="0.5"`: the step governs the
|
|
85
|
+
* keyboard and the pointer, but a fraction written straight into `value` is only
|
|
86
|
+
* clamped to `[0, count]`, never snapped — so `[value]="3.5"` half-fills star four
|
|
87
|
+
* on a whole-star rating.
|
|
88
|
+
*/
|
|
89
|
+
isPartiallyFilled(): Promise<boolean>;
|
|
90
|
+
/** Whether the star still takes the pointer — a readonly or disabled rating drops the modifier. */
|
|
91
|
+
isInteractive(): Promise<boolean>;
|
|
92
|
+
/**
|
|
93
|
+
* Click this star, picking it whole — star three sets the value to `3`.
|
|
94
|
+
*
|
|
95
|
+
* Clicking the value the rating ALREADY holds clears it instead; that is the
|
|
96
|
+
* component's toggle-off, not an accident of this harness.
|
|
97
|
+
*
|
|
98
|
+
* Needs real layout: the component snaps the value from where the pointer sits
|
|
99
|
+
* inside the star, so this aims at the star's inline-END edge. In jsdom every
|
|
100
|
+
* element is 0×0 and a pointer position over one cannot mean anything — this
|
|
101
|
+
* throws rather than committing the `NaN` such a click computes. Reach for
|
|
102
|
+
* `WrRatingHarness.setValue()` there, which drives the keyboard.
|
|
103
|
+
*/
|
|
104
|
+
click(): Promise<void>;
|
|
105
|
+
/**
|
|
106
|
+
* Click the leading half of this star — `2.5` on star three.
|
|
107
|
+
*
|
|
108
|
+
* On a whole-star rating this is the same as {@link click}: the component snaps
|
|
109
|
+
* UP to its `step`, so half of star three is still three stars. Carries the same
|
|
110
|
+
* layout requirement.
|
|
111
|
+
*/
|
|
112
|
+
clickHalf(): Promise<void>;
|
|
113
|
+
/**
|
|
114
|
+
* Move the pointer onto this star, previewing it whole.
|
|
115
|
+
*
|
|
116
|
+
* Sends `mousemove` rather than the `TestElement.hover()` pair: the rating
|
|
117
|
+
* tracks the pointer's x across a star to decide whether it is over the half or
|
|
118
|
+
* the whole, so `mouseenter` alone tells it nothing and leaves the preview
|
|
119
|
+
* unchanged. `WrRatingHarness.unhover()` ends it. Carries the same layout
|
|
120
|
+
* requirement as {@link click}.
|
|
121
|
+
*/
|
|
122
|
+
hover(): Promise<void>;
|
|
123
|
+
/**
|
|
124
|
+
* The x, relative to the star's own box, that lands on its inline-END edge —
|
|
125
|
+
* the far side of the star, where the rating reads a whole one.
|
|
126
|
+
*
|
|
127
|
+
* The component measures the pointer from the star's inline-START edge, which
|
|
128
|
+
* is the right one once `dir="rtl"` mirrors the row; aiming at the physical
|
|
129
|
+
* right edge there reads ratio 0 and picks one star FEWER. So the side is asked
|
|
130
|
+
* for rather than assumed: `direction` is a computed style, which the harness
|
|
131
|
+
* can read in every environment — jsdom included, where it inherits from an
|
|
132
|
+
* ancestor `dir` attribute like any other browser.
|
|
133
|
+
*/
|
|
134
|
+
private inlineEndX;
|
|
135
|
+
/** The star's box, or a failure that names the reason it has none. */
|
|
136
|
+
private box;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @license
|
|
141
|
+
*
|
|
142
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
143
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
144
|
+
*/
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Test harness for `<wr-rating>` — the root of a two-class family, since a star
|
|
148
|
+
* carries state of its own: {@link WrRatingItemHarness}.
|
|
149
|
+
*
|
|
150
|
+
* The stars are decoration. Everything a screen reader is told lives on the
|
|
151
|
+
* `.wr-rating__row` inside them, which is the `slider`: `aria-valuenow` is the
|
|
152
|
+
* committed value, `aria-valuemax` the top of the range, and the row — not the
|
|
153
|
+
* host — is the tab stop. So this harness reads the row and, for writes, drives
|
|
154
|
+
* its KEYBOARD: arrows step by the rating's own `step`, `Home` / `End` jump to
|
|
155
|
+
* the ends, `Delete` clears. That is the accessible path, and it is the only one a
|
|
156
|
+
* unit test can take unaided, because the pointer path snaps the value from where
|
|
157
|
+
* the cursor sits inside a star — which needs layout jsdom does not have, so a
|
|
158
|
+
* spec that wants it has to stub the star's box (see
|
|
159
|
+
* {@link WrRatingItemHarness.click}).
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* ```ts
|
|
163
|
+
* const rating = await loader.getHarness(WrRatingHarness.with({ label: 'Overall' }));
|
|
164
|
+
*
|
|
165
|
+
* await rating.setValue(4);
|
|
166
|
+
* expect(await rating.getValue()).toBe(4);
|
|
167
|
+
* ```
|
|
168
|
+
*
|
|
169
|
+
* @see https://ngwr.dev/guides/testing
|
|
170
|
+
*/
|
|
171
|
+
declare class WrRatingHarness extends ComponentHarness {
|
|
172
|
+
static hostSelector: string;
|
|
173
|
+
/** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
|
|
174
|
+
static with(options?: WrRatingHarnessFilters): HarnessPredicate<WrRatingHarness>;
|
|
175
|
+
private readonly row;
|
|
176
|
+
/**
|
|
177
|
+
* What the control announces itself as — `slider`.
|
|
178
|
+
*
|
|
179
|
+
* Not a `radiogroup`: the value is a number on a continuum with a `step`, the
|
|
180
|
+
* arrows move it and `Home` / `End` bound it, and that is a slider's contract
|
|
181
|
+
* rather than a group of one-of-N choices.
|
|
182
|
+
*/
|
|
183
|
+
getRole(): Promise<string | null>;
|
|
184
|
+
/**
|
|
185
|
+
* The rating's accessible name, from `ariaLabel` or the i18n catalogue.
|
|
186
|
+
*
|
|
187
|
+
* A rating projects no text, so this is the only name it has — and it sits on
|
|
188
|
+
* the row, not on the host, because the row is what carries the role.
|
|
189
|
+
*/
|
|
190
|
+
getLabel(): Promise<string | null>;
|
|
191
|
+
/**
|
|
192
|
+
* The committed value, from `aria-valuenow` — what a screen reader is told, not
|
|
193
|
+
* what is painted, which during a hover is the preview instead.
|
|
194
|
+
*
|
|
195
|
+
* A CLEARED rating is announced as `0`, exactly like a rating of zero stars:
|
|
196
|
+
* `value` is `number | null` and ARIA has no null. So `0` here means "zero or
|
|
197
|
+
* nothing" — assert the bound model when the difference matters, and see
|
|
198
|
+
* {@link clear}.
|
|
199
|
+
*/
|
|
200
|
+
getValue(): Promise<number>;
|
|
201
|
+
/** The top of the range, from `aria-valuemax` — the `count` of stars. */
|
|
202
|
+
getMax(): Promise<number>;
|
|
203
|
+
/** How many stars are painted. Should always agree with {@link getMax}. */
|
|
204
|
+
getCount(): Promise<number>;
|
|
205
|
+
/** The stars, left to right. */
|
|
206
|
+
getItems(filters?: WrRatingItemHarnessFilters): Promise<WrRatingItemHarness[]>;
|
|
207
|
+
/**
|
|
208
|
+
* Each star's fill ratio, left to right — `[1, 1, 0.5, 0, 0]` for two and a
|
|
209
|
+
* half stars out of five.
|
|
210
|
+
*
|
|
211
|
+
* This is what the eye sees, so it follows the hover preview while there is one;
|
|
212
|
+
* {@link getValue} stays on the committed value throughout.
|
|
213
|
+
*/
|
|
214
|
+
getFills(): Promise<number[]>;
|
|
215
|
+
/** The control size. `'md'` is the default and paints no modifier of its own. */
|
|
216
|
+
getSize(): Promise<WrRatingSize>;
|
|
217
|
+
/**
|
|
218
|
+
* Whether the rating displays a value it will not let you change.
|
|
219
|
+
*
|
|
220
|
+
* Read from `aria-readonly` rather than from the `wr-rating--readonly` class:
|
|
221
|
+
* both are public, but the attribute is the one a screen reader acts on, and a
|
|
222
|
+
* rating that looks read-only without saying so is the bug worth catching.
|
|
223
|
+
*/
|
|
224
|
+
isReadonly(): Promise<boolean>;
|
|
225
|
+
/** Whether the rating refuses interaction — `aria-disabled`, for the same reason. */
|
|
226
|
+
isDisabled(): Promise<boolean>;
|
|
227
|
+
/**
|
|
228
|
+
* Whether the rating is in the tab order.
|
|
229
|
+
*
|
|
230
|
+
* A rating that takes no input takes itself out of it (`tabindex="-1"`), so this
|
|
231
|
+
* is `false` while readonly or disabled.
|
|
232
|
+
*/
|
|
233
|
+
isFocusable(): Promise<boolean>;
|
|
234
|
+
/**
|
|
235
|
+
* Set the rating, from the keyboard.
|
|
236
|
+
*
|
|
237
|
+
* `Home` first, then one `ArrowUp` per step — the step is not in the DOM, so
|
|
238
|
+
* the only honest way to reach a value is to walk to it and watch where the
|
|
239
|
+
* rating lands. (The top of the range takes `End` instead of walking there.) A
|
|
240
|
+
* host counting value changes therefore sees the intermediate ones, which is what
|
|
241
|
+
* a keyboard user produces too.
|
|
242
|
+
*
|
|
243
|
+
* The BLOCK-axis arrow, deliberately: the stars lie on the inline axis, so
|
|
244
|
+
* `ArrowRight` raises the value in LTR and lowers it under `dir="rtl"`, where
|
|
245
|
+
* the arrows follow visual order. `ArrowUp` means "more" in both, so a spec
|
|
246
|
+
* written against this harness reads the same either way.
|
|
247
|
+
*
|
|
248
|
+
* Throws rather than settling for a near miss: on a value outside `[0, max]`, on
|
|
249
|
+
* one the step cannot land on (`2.5` on a whole-star rating), and on a rating
|
|
250
|
+
* that took no input at all because it is readonly or disabled.
|
|
251
|
+
*
|
|
252
|
+
* `setValue(0)` commits ZERO. It is {@link clear} that returns the model to
|
|
253
|
+
* `null`, and the two are indistinguishable from the DOM.
|
|
254
|
+
*/
|
|
255
|
+
setValue(value: number): Promise<void>;
|
|
256
|
+
/**
|
|
257
|
+
* Clear the rating, the way `Delete` does — the bound value becomes `null`, not
|
|
258
|
+
* `0`.
|
|
259
|
+
*
|
|
260
|
+
* The slider then announces `aria-valuenow="0"` and every star empties, so
|
|
261
|
+
* {@link getValue} cannot tell you this happened. Assert the model.
|
|
262
|
+
*/
|
|
263
|
+
clear(): Promise<void>;
|
|
264
|
+
/**
|
|
265
|
+
* Bump the rating up by one step — one `ArrowUp`, the arrow that means "more"
|
|
266
|
+
* in both reading directions (see {@link setValue}).
|
|
267
|
+
*
|
|
268
|
+
* The step is the rating's, not this harness's, so this is also how a spec finds
|
|
269
|
+
* out what it is: clear the rating, step up once, read the value.
|
|
270
|
+
* Already at the top, this does nothing; the value clamps rather than wrapping.
|
|
271
|
+
*/
|
|
272
|
+
stepUp(): Promise<void>;
|
|
273
|
+
/** Bump the rating down by one step — one `ArrowDown`. Clamps at `0`. */
|
|
274
|
+
stepDown(): Promise<void>;
|
|
275
|
+
/**
|
|
276
|
+
* End a hover preview, dropping the stars back to the committed value.
|
|
277
|
+
*
|
|
278
|
+
* It lives here rather than on the star because the component listens for
|
|
279
|
+
* `mouseleave` on the ROW: leaving one star for the next is not leaving the
|
|
280
|
+
* rating.
|
|
281
|
+
*/
|
|
282
|
+
unhover(): Promise<void>;
|
|
283
|
+
/** Move keyboard focus to the rating — onto the row, which is the tab stop. */
|
|
284
|
+
focus(): Promise<void>;
|
|
285
|
+
/** Blur the rating. This is what emits `touch`, so a bound field marks itself touched. */
|
|
286
|
+
blur(): Promise<void>;
|
|
287
|
+
isFocused(): Promise<boolean>;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export { WrRatingHarness, WrRatingItemHarness };
|
|
291
|
+
export type { WrRatingHarnessFilters, WrRatingItemHarnessFilters };
|
package/types/ngwr-rating.d.ts
CHANGED
|
@@ -13,6 +13,10 @@ import { FormValueControl } from '@angular/forms/signals';
|
|
|
13
13
|
* Keyboard: `←` / `→` bump by `step`, `Home` / `End` jump to 0 / max.
|
|
14
14
|
* Clicking the current value clears it (toggle off).
|
|
15
15
|
*
|
|
16
|
+
* The stars sit on the inline axis, so under `dir="rtl"` the row is mirrored and
|
|
17
|
+
* both halves of the input mirror with it: `→` walks toward the low end, and a
|
|
18
|
+
* click is measured from the star's inline-start (right) edge.
|
|
19
|
+
*
|
|
16
20
|
* @example
|
|
17
21
|
* ```html
|
|
18
22
|
* <!-- signal forms -->
|
|
@@ -55,6 +59,16 @@ declare class WrRating implements FormValueControl<number | null> {
|
|
|
55
59
|
/** What we actually render — hover wins while hovering. */
|
|
56
60
|
protected readonly displayValue: _angular_core.Signal<number>;
|
|
57
61
|
protected readonly slots: _angular_core.Signal<number[]>;
|
|
62
|
+
/**
|
|
63
|
+
* Reading direction, for the two places it changes the answer: the arrows and
|
|
64
|
+
* the pointer ratio inside a star.
|
|
65
|
+
*
|
|
66
|
+
* `optional` because a consumer who never set a direction should not have to
|
|
67
|
+
* provide anything — `Directionality` is root-provided, so this only resolves
|
|
68
|
+
* to `null` in a bare `TestBed`, where LTR is the right assumption. Read per
|
|
69
|
+
* interaction rather than cached, so a runtime flip needs no subscription.
|
|
70
|
+
*/
|
|
71
|
+
private readonly directionality;
|
|
58
72
|
protected readonly classes: _angular_core.Signal<string>;
|
|
59
73
|
constructor();
|
|
60
74
|
/** Fill ratio for slot `i` in `[0, 1]` — drives the CSS clip width. */
|
|
@@ -64,6 +78,15 @@ declare class WrRating implements FormValueControl<number | null> {
|
|
|
64
78
|
protected onSlotClick(event: MouseEvent, index: number): void;
|
|
65
79
|
protected onKeydown(event: KeyboardEvent): void;
|
|
66
80
|
protected onBlur(): void;
|
|
81
|
+
/** Whether the row reads right-to-left. */
|
|
82
|
+
private isRtl;
|
|
83
|
+
/**
|
|
84
|
+
* How far into the star the pointer sits, `0` to `1`, measured from its
|
|
85
|
+
* INLINE-start edge — the left one in LTR, the right one in RTL, where the row
|
|
86
|
+
* is mirrored. Taken from `rect.left` alone it reads 1 exactly where an RTL
|
|
87
|
+
* user sees the start of the star, which inverts every half step.
|
|
88
|
+
*/
|
|
89
|
+
private inlineRatio;
|
|
67
90
|
/** Convert a mouse position over slot `index` to a snapped value. */
|
|
68
91
|
private computeValue;
|
|
69
92
|
private commit;
|