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,290 @@
|
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/** Narrows which `<wr-collapse>` a harness query matches. */
|
|
11
|
+
interface WrCollapseHarnessFilters extends BaseHarnessFilters {
|
|
12
|
+
/** Match the panel's header text — a string is an exact match, a RegExp is tested. */
|
|
13
|
+
readonly title?: string | RegExp;
|
|
14
|
+
/**
|
|
15
|
+
* Match only open (`true`) or only closed (`false`) panels, as the HEADER announces
|
|
16
|
+
* it — see `WrCollapseHarness.isOpen`, which is where the animated height is
|
|
17
|
+
* explained away.
|
|
18
|
+
*/
|
|
19
|
+
readonly open?: boolean;
|
|
20
|
+
/** Match only enabled (`false`) or only disabled (`true`) panels. */
|
|
21
|
+
readonly disabled?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/** Narrows which `<wr-collapse-group>` / `<wr-accordion>` a harness query matches. */
|
|
24
|
+
interface WrCollapseGroupHarnessFilters extends BaseHarnessFilters {
|
|
25
|
+
/**
|
|
26
|
+
* Match a group holding a panel with this header text — the readable way to tell two
|
|
27
|
+
* groups on one page apart, a group having no name of its own. A string is an exact
|
|
28
|
+
* match, a RegExp is tested.
|
|
29
|
+
*/
|
|
30
|
+
readonly panelTitle?: string | RegExp;
|
|
31
|
+
/**
|
|
32
|
+
* Match a group whose OPEN panel has this header text; a group with everything closed
|
|
33
|
+
* matches nothing. In accordion mode there is at most one open panel, which is what
|
|
34
|
+
* makes this a way to address a group rather than a coin toss.
|
|
35
|
+
*/
|
|
36
|
+
readonly openPanelTitle?: string | RegExp;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @license
|
|
41
|
+
*
|
|
42
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
43
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Test harness for one `<wr-collapse>` — a disclosure: a header button, and the region
|
|
48
|
+
* it opens. {@link WrCollapseGroupHarness} is the container several of them sit in.
|
|
49
|
+
*
|
|
50
|
+
* Open and closed are read from the header's `aria-expanded`, never from the panel's
|
|
51
|
+
* size, and that is not merely a jsdom workaround. The body animates through
|
|
52
|
+
* `grid-template-rows: 0fr → 1fr`, so a measured box answers with whatever frame the
|
|
53
|
+
* transition happens to be on; a unit test has no layout at all, which makes every box
|
|
54
|
+
* 0×0 and every such answer wrong in the same direction. The attribute is also the only
|
|
55
|
+
* thing a screen-reader user gets — a panel that slides open without flipping it is
|
|
56
|
+
* closed as far as they are concerned.
|
|
57
|
+
*
|
|
58
|
+
* The body stays in the DOM while the panel is closed. It has to: there would be no
|
|
59
|
+
* height to animate otherwise. So its text is READABLE from a spec long before it is
|
|
60
|
+
* visible on screen, which is why {@link getContentText} refuses to answer for a closed
|
|
61
|
+
* panel instead of handing back invisible text, and why {@link isContentHidden} exists
|
|
62
|
+
* to assert that a closed panel really is out of reach.
|
|
63
|
+
*
|
|
64
|
+
* The region itself is a plain `<div>` — the component gives it no `role="region"` — so
|
|
65
|
+
* `aria-expanded` plus `aria-controls` is the whole of the wiring, and
|
|
66
|
+
* {@link isRegionBound} is how a spec checks it still points at this panel's own body.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts
|
|
70
|
+
* const loader = TestbedHarnessEnvironment.loader(fixture);
|
|
71
|
+
* const shipping = await loader.getHarness(WrCollapseHarness.with({ title: 'Shipping' }));
|
|
72
|
+
*
|
|
73
|
+
* await shipping.open();
|
|
74
|
+
* expect(await shipping.getContentText()).toContain('Ships Monday');
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* @see https://ngwr.dev/guides/testing
|
|
78
|
+
*/
|
|
79
|
+
declare class WrCollapseHarness extends ComponentHarness {
|
|
80
|
+
static hostSelector: string;
|
|
81
|
+
/** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
|
|
82
|
+
static with(options?: WrCollapseHarnessFilters): HarnessPredicate<WrCollapseHarness>;
|
|
83
|
+
private readonly header;
|
|
84
|
+
private readonly body;
|
|
85
|
+
/**
|
|
86
|
+
* The header text, trimmed.
|
|
87
|
+
*
|
|
88
|
+
* Read from `.wr-collapse__title` rather than from the header button. Reading the
|
|
89
|
+
* button would return the same string today — the chevron beside the title is an
|
|
90
|
+
* `<svg>`, and an `<svg>` contributes no text — but the title element is the thing that
|
|
91
|
+
* holds the name, so an icon that ever grows a `<text>` node or a label, or a badge
|
|
92
|
+
* added next to the title, cannot leak into it.
|
|
93
|
+
*/
|
|
94
|
+
getTitle(): Promise<string>;
|
|
95
|
+
/**
|
|
96
|
+
* Whether the panel is open, from the header's `aria-expanded`.
|
|
97
|
+
*
|
|
98
|
+
* The `wr-collapse--open` modifier on the host is equally public and says the same
|
|
99
|
+
* thing today, but the attribute is the one a screen reader acts on: a panel that
|
|
100
|
+
* looks open while announcing `false` is the bug worth catching, and reading the class
|
|
101
|
+
* would agree with the animation and miss it.
|
|
102
|
+
*/
|
|
103
|
+
isOpen(): Promise<boolean>;
|
|
104
|
+
/**
|
|
105
|
+
* Whether the panel refuses interaction.
|
|
106
|
+
*
|
|
107
|
+
* From the header's own `disabled` property — the thing that actually turns a click
|
|
108
|
+
* away, and what the CDK consults before dispatching one — rather than from the
|
|
109
|
+
* `wr-collapse--disabled` modifier the host also carries. Both are public, but the
|
|
110
|
+
* class is styling: a panel could lose it and still refuse every click, and what a
|
|
111
|
+
* spec wants to know is whether the control is inert.
|
|
112
|
+
*/
|
|
113
|
+
isDisabled(): Promise<boolean>;
|
|
114
|
+
/**
|
|
115
|
+
* The id the header's `aria-controls` names, or `null` when it names nothing.
|
|
116
|
+
*
|
|
117
|
+
* Per-instance and generated, so a spec cannot predict it — what it can do is check
|
|
118
|
+
* that two panels do not share one, and {@link isRegionBound} does the rest.
|
|
119
|
+
*/
|
|
120
|
+
getRegionId(): Promise<string | null>;
|
|
121
|
+
/**
|
|
122
|
+
* Whether the header points at THIS panel's body, and at nothing else on the page.
|
|
123
|
+
*
|
|
124
|
+
* Both halves matter, and neither is provable from the header alone. The id is
|
|
125
|
+
* resolved inside the host first, so a header naming a SIBLING panel's body — which
|
|
126
|
+
* resolves perfectly well from the document and would look correctly wired — fails
|
|
127
|
+
* here. Then it is counted across the document, because two bodies answering to one
|
|
128
|
+
* id hand every reference to whichever comes first, and the second panel's region
|
|
129
|
+
* becomes unreachable to anything that follows the reference.
|
|
130
|
+
*/
|
|
131
|
+
isRegionBound(): Promise<boolean>;
|
|
132
|
+
/**
|
|
133
|
+
* Whether the region is hidden from assistive tech AND from the keyboard.
|
|
134
|
+
*
|
|
135
|
+
* Two attributes, because a closed panel needs both and they cover different people:
|
|
136
|
+
* `aria-hidden` keeps the content out of the screen reader's document, `inert` keeps
|
|
137
|
+
* Tab from landing on a link inside a panel nobody can see. The body is never removed
|
|
138
|
+
* from the DOM — the height animation needs it — so these are the only thing standing
|
|
139
|
+
* between a collapsed panel and a keyboard user, and losing either is invisible on
|
|
140
|
+
* screen.
|
|
141
|
+
*
|
|
142
|
+
* They are asserted together on purpose: this answers "is the closed content actually
|
|
143
|
+
* out of reach", and half of it is not.
|
|
144
|
+
*/
|
|
145
|
+
isContentHidden(): Promise<boolean>;
|
|
146
|
+
/**
|
|
147
|
+
* The text of an OPEN panel's region, trimmed.
|
|
148
|
+
*
|
|
149
|
+
* Throws while the panel is closed rather than answering, because the body is still in
|
|
150
|
+
* the DOM and the text would come back exactly as it does when open — a spec asserting
|
|
151
|
+
* it would be pinning content the user cannot see, and would keep passing if the panel
|
|
152
|
+
* stopped opening at all.
|
|
153
|
+
*/
|
|
154
|
+
getContentText(): Promise<string>;
|
|
155
|
+
/** Open the panel. An already-open one is left alone; a disabled one throws. */
|
|
156
|
+
open(): Promise<void>;
|
|
157
|
+
/** Close the panel. An already-closed one is left alone; a disabled one throws. */
|
|
158
|
+
close(): Promise<void>;
|
|
159
|
+
/**
|
|
160
|
+
* Click the header — the panel's entire interactive surface.
|
|
161
|
+
*
|
|
162
|
+
* A click rather than Enter / Space, and nothing is lost by it: the header is a native
|
|
163
|
+
* `<button>`, so a real keyboard activation is the BROWSER synthesising a click from
|
|
164
|
+
* the key press, and jsdom synthesises none. The click is dispatched onto the header
|
|
165
|
+
* itself, so it needs no coordinate and cannot miss in a test that has no layout.
|
|
166
|
+
*
|
|
167
|
+
* A disabled panel ignores this and stays as it was, twice over: the CDK withholds the
|
|
168
|
+
* `click` from an element carrying `disabled`, and the component checks `disabled`
|
|
169
|
+
* again inside its own toggle. Assert rather than assume, or reach for {@link open} /
|
|
170
|
+
* {@link close}, which say so.
|
|
171
|
+
*/
|
|
172
|
+
toggle(): Promise<void>;
|
|
173
|
+
/**
|
|
174
|
+
* Move keyboard focus to the header — the only focusable element the component itself
|
|
175
|
+
* renders. Projected content can of course hold its own (which is why a closed panel is
|
|
176
|
+
* `inert`), but that belongs to the consumer, not to this harness.
|
|
177
|
+
*/
|
|
178
|
+
focus(): Promise<void>;
|
|
179
|
+
/** Whether the header currently holds focus. */
|
|
180
|
+
isFocused(): Promise<boolean>;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* @license
|
|
185
|
+
*
|
|
186
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
187
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
188
|
+
*/
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Test harness for `<wr-collapse-group>` and `<wr-accordion>` — the container a set of
|
|
192
|
+
* {@link WrCollapseHarness} panels sits in, matched in both of its element shapes.
|
|
193
|
+
*
|
|
194
|
+
* There is deliberately no `isAccordion()`, and the reason is worth knowing before a
|
|
195
|
+
* spec goes looking for one: single-open behaviour is not written down anywhere on the
|
|
196
|
+
* page. `<wr-accordion>` carries the marker class `wr-collapse-group--accordion`, but
|
|
197
|
+
* `<wr-collapse-group [accordion]="true">` enforces exactly the same rule and carries
|
|
198
|
+
* nothing — a bound input reaches the component without touching the DOM, and even the
|
|
199
|
+
* literal `accordion` attribute survives only because Angular leaves a static attribute
|
|
200
|
+
* alone. So the class answers "which element did the template use", not "does this group
|
|
201
|
+
* close siblings", and a harness reporting it would call the group form false. Assert the
|
|
202
|
+
* BEHAVIOUR instead: open two panels and read {@link getOpenTitles} — the assertion that
|
|
203
|
+
* would catch a broken accordion anyway.
|
|
204
|
+
*
|
|
205
|
+
* A collapse group is also not a composite widget. Every header is a native `<button>`
|
|
206
|
+
* in the normal tab order, with no roving `tabindex` and no arrow-key navigation (the
|
|
207
|
+
* APG lists both as optional for an accordion), so there is no "active" panel to tell
|
|
208
|
+
* apart from the open one — {@link getFocusedTitle} is the only cursor there is.
|
|
209
|
+
*
|
|
210
|
+
* @example
|
|
211
|
+
* ```ts
|
|
212
|
+
* const settings = await loader.getHarness(WrCollapseGroupHarness.with({ panelTitle: 'Profile' }));
|
|
213
|
+
*
|
|
214
|
+
* await settings.openPanel({ title: 'Security' });
|
|
215
|
+
* expect(await settings.getOpenTitles()).toEqual(['Security']);
|
|
216
|
+
* ```
|
|
217
|
+
*
|
|
218
|
+
* @see https://ngwr.dev/guides/testing
|
|
219
|
+
*/
|
|
220
|
+
declare class WrCollapseGroupHarness extends ComponentHarness {
|
|
221
|
+
/** Both shapes the container ships in: the plain group, and the always-accordion one. */
|
|
222
|
+
static hostSelector: string;
|
|
223
|
+
/** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
|
|
224
|
+
static with(options?: WrCollapseGroupHarnessFilters): HarnessPredicate<WrCollapseGroupHarness>;
|
|
225
|
+
/**
|
|
226
|
+
* The group's panels, in DOM order.
|
|
227
|
+
*
|
|
228
|
+
* Every `<wr-collapse>` inside the host, which includes one nested in another panel's
|
|
229
|
+
* content and every panel of a nested group — the group scopes no more tightly than
|
|
230
|
+
* the DOM does, and a nested accordion's children are still descendants of this one.
|
|
231
|
+
*/
|
|
232
|
+
getPanels(filters?: WrCollapseHarnessFilters): Promise<WrCollapseHarness[]>;
|
|
233
|
+
/** The header text of every panel, in DOM order. */
|
|
234
|
+
getPanelTitles(): Promise<string[]>;
|
|
235
|
+
/** The first panel matching the filters, or a failure naming the panels that exist. */
|
|
236
|
+
getPanel(filters: WrCollapseHarnessFilters): Promise<WrCollapseHarness>;
|
|
237
|
+
/**
|
|
238
|
+
* The panel at a 0-based position in DOM order — the other half of "by text or by
|
|
239
|
+
* index", and the only way to address a panel whose title is not unique.
|
|
240
|
+
*
|
|
241
|
+
* Throws for an index past the end rather than resolving to nothing, and says how many
|
|
242
|
+
* panels there are: an out-of-range index is a mistake in the spec, and a `undefined`
|
|
243
|
+
* handed back would surface three lines later as a failure about something else.
|
|
244
|
+
*/
|
|
245
|
+
getPanelAt(index: number): Promise<WrCollapseHarness>;
|
|
246
|
+
/** The panels that are open, in DOM order. In accordion mode there is at most one. */
|
|
247
|
+
getOpenPanels(): Promise<WrCollapseHarness[]>;
|
|
248
|
+
/**
|
|
249
|
+
* The header text of every open panel, in DOM order.
|
|
250
|
+
*
|
|
251
|
+
* The assertion an accordion is worth pinning with: opening a second panel has to leave
|
|
252
|
+
* this a list of ONE, and it reads the state from each header's `aria-expanded`, so a
|
|
253
|
+
* sibling that collapsed on screen while still announcing itself open fails here.
|
|
254
|
+
*/
|
|
255
|
+
getOpenTitles(): Promise<string[]>;
|
|
256
|
+
/**
|
|
257
|
+
* Open the first panel matching the filters.
|
|
258
|
+
*
|
|
259
|
+
* In accordion mode this is also what CLOSES the siblings — the group is told by the
|
|
260
|
+
* panel that opened, not by the click — so a spec that opens two panels in a row is
|
|
261
|
+
* asserting the mode, and {@link getOpenTitles} is where the answer shows up. Throws
|
|
262
|
+
* when nothing matched, and again when the panel refused to open (it is disabled).
|
|
263
|
+
*/
|
|
264
|
+
openPanel(filters: WrCollapseHarnessFilters): Promise<void>;
|
|
265
|
+
/** Close the first panel matching the filters. */
|
|
266
|
+
closePanel(filters: WrCollapseHarnessFilters): Promise<void>;
|
|
267
|
+
/**
|
|
268
|
+
* Close every open panel.
|
|
269
|
+
*
|
|
270
|
+
* The open panels are resolved first and then closed one at a time. Every click a
|
|
271
|
+
* harness makes already awaits its own change detection, so closing them concurrently
|
|
272
|
+
* would work too — this reads in the order a user would click, and keeps each failure
|
|
273
|
+
* attributable to the panel that caused it. A disabled panel that was opened through
|
|
274
|
+
* `[open]` cannot be closed from the page and throws — the same failure
|
|
275
|
+
* {@link WrCollapseHarness.close} reports, for the same reason.
|
|
276
|
+
*/
|
|
277
|
+
closeAll(): Promise<void>;
|
|
278
|
+
/**
|
|
279
|
+
* The header text of the panel whose header holds focus, or `null` when focus is
|
|
280
|
+
* elsewhere.
|
|
281
|
+
*
|
|
282
|
+
* Every header is its own tab stop here, so this reports where focus actually IS
|
|
283
|
+
* rather than where the group would send it — there is no roving tab stop to diverge
|
|
284
|
+
* from.
|
|
285
|
+
*/
|
|
286
|
+
getFocusedTitle(): Promise<string | null>;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export { WrCollapseGroupHarness, WrCollapseHarness };
|
|
290
|
+
export type { WrCollapseGroupHarnessFilters, WrCollapseHarnessFilters };
|
|
@@ -156,12 +156,16 @@ declare function toHex(rgb: WrRgb, withAlpha?: boolean): string;
|
|
|
156
156
|
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
157
157
|
*/
|
|
158
158
|
/**
|
|
159
|
-
* Output format produced by `<wr-color-picker>` when
|
|
160
|
-
*
|
|
159
|
+
* Output format produced by `<wr-color-picker>` when it writes its `value`
|
|
160
|
+
* model. Each format has an opaque and a translucent spelling, picked by the
|
|
161
|
+
* picker's `alpha` input:
|
|
161
162
|
*
|
|
162
|
-
* - `hex` — `#3969e2
|
|
163
|
-
* - `rgba` — `rgba(57, 105, 226, 0.5)`
|
|
164
|
-
* - `hsla` — `hsla(220, 73%, 56%, 0.5)`
|
|
163
|
+
* - `hex` — `#3969e2`, or `#3969e2ff` with alpha
|
|
164
|
+
* - `rgba` — `rgb(57, 105, 226)`, or `rgba(57, 105, 226, 0.5)` with alpha
|
|
165
|
+
* - `hsla` — `hsl(220, 73%, 56%)`, or `hsla(220, 73%, 56%, 0.5)` with alpha
|
|
166
|
+
*
|
|
167
|
+
* All three are also ACCEPTED on the way in, whichever one is set, so a
|
|
168
|
+
* `[(value)]` binding round-trips its own output.
|
|
165
169
|
*/
|
|
166
170
|
type WrColorFormat = 'hex' | 'rgba' | 'hsla';
|
|
167
171
|
|
|
@@ -192,7 +196,10 @@ declare class WrColorPicker implements FormValueControl<string> {
|
|
|
192
196
|
readonly alpha: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
193
197
|
/** Disable interaction. @default false */
|
|
194
198
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
195
|
-
/**
|
|
199
|
+
/**
|
|
200
|
+
* Format the control writes into `value`. See {@link WrColorFormat} — all
|
|
201
|
+
* three are accepted on the way in whichever one is set. @default 'hex'
|
|
202
|
+
*/
|
|
196
203
|
readonly format: _angular_core.InputSignal<WrColorFormat>;
|
|
197
204
|
/** Preset hex colours rendered as a clickable row beneath the inputs. Empty = no row. @default [] */
|
|
198
205
|
readonly swatches: _angular_core.InputSignal<readonly string[]>;
|
|
@@ -206,8 +213,10 @@ declare class WrColorPicker implements FormValueControl<string> {
|
|
|
206
213
|
protected readonly a: _angular_core.WritableSignal<number>;
|
|
207
214
|
/** RGB view of the current colour, computed lazily. */
|
|
208
215
|
protected readonly rgb: _angular_core.Signal<WrRgb>;
|
|
209
|
-
/** Canonical hex
|
|
216
|
+
/** Canonical hex — what the HEX field shows, whatever `format` emits. */
|
|
210
217
|
protected readonly hex: _angular_core.Signal<string>;
|
|
218
|
+
/** The colour as the consumer asked for it; this is what `value` receives. */
|
|
219
|
+
protected readonly formatted: _angular_core.Signal<string>;
|
|
211
220
|
/** SV canvas background colour (full-saturation hue). */
|
|
212
221
|
protected readonly hueCss: _angular_core.Signal<string>;
|
|
213
222
|
/** RGB string used for the alpha-slider gradient. */
|
|
@@ -227,8 +236,8 @@ declare class WrColorPicker implements FormValueControl<string> {
|
|
|
227
236
|
protected readonly alphaPercent: _angular_core.Signal<number>;
|
|
228
237
|
protected readonly tabOptions: readonly WrSegmentedOption<Tab>[];
|
|
229
238
|
protected readonly classes: _angular_core.Signal<string>;
|
|
230
|
-
/** Last
|
|
231
|
-
private
|
|
239
|
+
/** Last string we pushed into `value`; lets the sync effect ignore our own writes. */
|
|
240
|
+
private lastEmitted;
|
|
232
241
|
constructor();
|
|
233
242
|
protected onPointerDown(event: PointerEvent, surface: Edges): void;
|
|
234
243
|
private updateFromEvent;
|
|
@@ -241,7 +250,7 @@ declare class WrColorPicker implements FormValueControl<string> {
|
|
|
241
250
|
protected onHslChannel(channel: 'h' | 's' | 'l', event: Event): void;
|
|
242
251
|
protected onAlphaPercent(event: Event): void;
|
|
243
252
|
protected onSwatchClick(hex: string): void;
|
|
244
|
-
/** Push an RGB triple into the HSV source of truth
|
|
253
|
+
/** Push an RGB triple into the HSV source of truth. */
|
|
245
254
|
private applyRgb;
|
|
246
255
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrColorPicker, never>;
|
|
247
256
|
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>;
|
|
@@ -290,7 +299,7 @@ declare class WrColorPickerTrigger {
|
|
|
290
299
|
private readonly vcr;
|
|
291
300
|
private readonly scrollStrategies;
|
|
292
301
|
private readonly destroyRef;
|
|
293
|
-
|
|
302
|
+
protected readonly isOpen: _angular_core.WritableSignal<boolean>;
|
|
294
303
|
private overlayRef;
|
|
295
304
|
constructor();
|
|
296
305
|
/** Toggle the picker. Open if closed, close if open. */
|