ngwr 6.1.1 → 7.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/LICENSE +1 -3
- package/README.md +179 -32
- package/affix/styles/_index.scss +12 -0
- package/alert/styles/_index.scss +75 -32
- package/anchor/styles/_index.scss +59 -0
- package/aurora/aurora.scss +1 -0
- package/aurora/styles/_index.scss +30 -0
- package/avatar/styles/_index.scss +30 -14
- package/back-top/styles/_index.scss +42 -0
- package/badge/styles/_index.scss +80 -0
- package/badge/styles/_tag.scss +81 -0
- package/bar-chart/styles/_index.scss +56 -0
- package/blur-text/blur-text.scss +1 -0
- package/blur-text/styles/_index.scss +14 -0
- package/border-glow/border-glow.scss +4 -0
- package/border-glow/styles/_index.scss +228 -0
- package/breadcrumbs/breadcrumbs.scss +1 -0
- package/breadcrumbs/styles/_index.scss +76 -0
- package/burger/styles/_index.scss +101 -0
- package/button/styles/_index.scss +148 -125
- package/calendar/styles/_index.scss +252 -0
- package/calendar-heatmap/styles/_index.scss +69 -0
- package/card/card.scss +1 -0
- package/card/styles/_index.scss +96 -0
- package/carousel/styles/_index.scss +102 -0
- package/cascader/cascader.scss +1 -0
- package/cascader/styles/_index.scss +174 -0
- package/checkbox/styles/_index.scss +76 -60
- package/circular-text/circular-text.scss +1 -0
- package/circular-text/styles/_index.scss +45 -0
- package/click-spark/click-spark.scss +1 -0
- package/click-spark/styles/_index.scss +16 -0
- package/collapse/styles/_index.scss +92 -0
- package/color-picker/styles/_index.scss +247 -0
- package/command-palette/styles/_index.scss +188 -0
- package/compare/styles/_index.scss +100 -0
- package/context-menu/styles/_index.scss +112 -0
- package/counter/styles/_index.scss +44 -0
- package/date-picker/styles/_index.scss +204 -0
- package/decrypt-text/decrypt-text.scss +1 -0
- package/decrypt-text/styles/_index.scss +26 -0
- package/density/styles/_index.scss +37 -0
- package/descriptions/styles/_index.scss +104 -0
- package/dialog/styles/_index.scss +101 -27
- package/divider/styles/_index.scss +43 -24
- package/donut-chart/styles/_index.scss +76 -0
- package/drag-drop/sortable-list.scss +1 -0
- package/drag-drop/styles/_index.scss +99 -0
- package/drawer/styles/_index.scss +164 -0
- package/dropdown/styles/_index.scss +76 -56
- package/empty/styles/_index.scss +49 -0
- package/falling-text/falling-text.scss +1 -0
- package/falling-text/styles/_index.scss +30 -0
- package/fesm2022/ngwr-affix.mjs +102 -0
- package/fesm2022/ngwr-affix.mjs.map +1 -0
- package/fesm2022/ngwr-alert.mjs +70 -52
- package/fesm2022/ngwr-alert.mjs.map +1 -1
- package/fesm2022/ngwr-anchor.mjs +103 -0
- package/fesm2022/ngwr-anchor.mjs.map +1 -0
- package/fesm2022/ngwr-aurora.mjs +309 -0
- package/fesm2022/ngwr-aurora.mjs.map +1 -0
- package/fesm2022/ngwr-avatar.mjs +81 -71
- package/fesm2022/ngwr-avatar.mjs.map +1 -1
- package/fesm2022/ngwr-back-top.mjs +81 -0
- package/fesm2022/ngwr-back-top.mjs.map +1 -0
- package/fesm2022/ngwr-badge.mjs +192 -0
- package/fesm2022/ngwr-badge.mjs.map +1 -0
- package/fesm2022/ngwr-bar-chart.mjs +69 -0
- package/fesm2022/ngwr-bar-chart.mjs.map +1 -0
- package/fesm2022/ngwr-blur-text.mjs +181 -0
- package/fesm2022/ngwr-blur-text.mjs.map +1 -0
- package/fesm2022/ngwr-border-glow.mjs +278 -0
- package/fesm2022/ngwr-border-glow.mjs.map +1 -0
- package/fesm2022/ngwr-breadcrumbs.mjs +101 -0
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -0
- package/fesm2022/ngwr-burger.mjs +60 -0
- package/fesm2022/ngwr-burger.mjs.map +1 -0
- package/fesm2022/ngwr-button.mjs +179 -104
- package/fesm2022/ngwr-button.mjs.map +1 -1
- package/fesm2022/ngwr-calendar-heatmap.mjs +145 -0
- package/fesm2022/ngwr-calendar-heatmap.mjs.map +1 -0
- package/fesm2022/ngwr-calendar.mjs +402 -0
- package/fesm2022/ngwr-calendar.mjs.map +1 -0
- package/fesm2022/ngwr-card.mjs +100 -0
- package/fesm2022/ngwr-card.mjs.map +1 -0
- package/fesm2022/ngwr-carousel.mjs +128 -0
- package/fesm2022/ngwr-carousel.mjs.map +1 -0
- package/fesm2022/ngwr-cascader.mjs +280 -0
- package/fesm2022/ngwr-cascader.mjs.map +1 -0
- package/fesm2022/ngwr-checkbox.mjs +214 -54
- package/fesm2022/ngwr-checkbox.mjs.map +1 -1
- package/fesm2022/ngwr-circular-text.mjs +168 -0
- package/fesm2022/ngwr-circular-text.mjs.map +1 -0
- package/fesm2022/ngwr-click-spark.mjs +163 -0
- package/fesm2022/ngwr-click-spark.mjs.map +1 -0
- package/fesm2022/ngwr-clipboard.mjs +130 -0
- package/fesm2022/ngwr-clipboard.mjs.map +1 -0
- package/fesm2022/ngwr-collapse.mjs +232 -0
- package/fesm2022/ngwr-collapse.mjs.map +1 -0
- package/fesm2022/ngwr-color-picker.mjs +646 -0
- package/fesm2022/ngwr-color-picker.mjs.map +1 -0
- package/fesm2022/ngwr-command-palette.mjs +259 -0
- package/fesm2022/ngwr-command-palette.mjs.map +1 -0
- package/fesm2022/ngwr-compare.mjs +137 -0
- package/fesm2022/ngwr-compare.mjs.map +1 -0
- package/fesm2022/ngwr-confetti.mjs +160 -0
- package/fesm2022/ngwr-confetti.mjs.map +1 -0
- package/fesm2022/ngwr-context-menu.mjs +653 -0
- package/fesm2022/ngwr-context-menu.mjs.map +1 -0
- package/fesm2022/ngwr-cookie.mjs +127 -0
- package/fesm2022/ngwr-cookie.mjs.map +1 -0
- package/fesm2022/ngwr-counter.mjs +415 -0
- package/fesm2022/ngwr-counter.mjs.map +1 -0
- package/fesm2022/ngwr-date-adapter-fns.mjs +180 -0
- package/fesm2022/ngwr-date-adapter-fns.mjs.map +1 -0
- package/fesm2022/ngwr-date-adapter-luxon.mjs +201 -0
- package/fesm2022/ngwr-date-adapter-luxon.mjs.map +1 -0
- package/fesm2022/ngwr-date-adapter.mjs +419 -0
- package/fesm2022/ngwr-date-adapter.mjs.map +1 -0
- package/fesm2022/ngwr-date-picker.mjs +624 -0
- package/fesm2022/ngwr-date-picker.mjs.map +1 -0
- package/fesm2022/ngwr-decrypt-text.mjs +396 -0
- package/fesm2022/ngwr-decrypt-text.mjs.map +1 -0
- package/fesm2022/ngwr-density.mjs +157 -0
- package/fesm2022/ngwr-density.mjs.map +1 -0
- package/fesm2022/ngwr-descriptions.mjs +83 -0
- package/fesm2022/ngwr-descriptions.mjs.map +1 -0
- package/fesm2022/ngwr-dialog.mjs +249 -377
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-directives.mjs +315 -0
- package/fesm2022/ngwr-directives.mjs.map +1 -0
- package/fesm2022/ngwr-divider.mjs +74 -59
- package/fesm2022/ngwr-divider.mjs.map +1 -1
- package/fesm2022/ngwr-donut-chart.mjs +131 -0
- package/fesm2022/ngwr-donut-chart.mjs.map +1 -0
- package/fesm2022/ngwr-drag-drop.mjs +117 -0
- package/fesm2022/ngwr-drag-drop.mjs.map +1 -0
- package/fesm2022/ngwr-drawer.mjs +315 -0
- package/fesm2022/ngwr-drawer.mjs.map +1 -0
- package/fesm2022/ngwr-dropdown.mjs +276 -229
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-empty.mjs +57 -0
- package/fesm2022/ngwr-empty.mjs.map +1 -0
- package/fesm2022/ngwr-falling-text.mjs +316 -0
- package/fesm2022/ngwr-falling-text.mjs.map +1 -0
- package/fesm2022/ngwr-file-upload.mjs +260 -0
- package/fesm2022/ngwr-file-upload.mjs.map +1 -0
- package/fesm2022/ngwr-form.mjs +133 -48
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-fuzzy-text.mjs +373 -0
- package/fesm2022/ngwr-fuzzy-text.mjs.map +1 -0
- package/fesm2022/ngwr-gauge.mjs +83 -0
- package/fesm2022/ngwr-gauge.mjs.map +1 -0
- package/fesm2022/ngwr-glitch-text.mjs +67 -0
- package/fesm2022/ngwr-glitch-text.mjs.map +1 -0
- package/fesm2022/ngwr-gradient-text.mjs +109 -0
- package/fesm2022/ngwr-gradient-text.mjs.map +1 -0
- package/fesm2022/ngwr-hotkey.mjs +263 -0
- package/fesm2022/ngwr-hotkey.mjs.map +1 -0
- package/fesm2022/ngwr-i18n-en.mjs +168 -0
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -0
- package/fesm2022/ngwr-i18n-ru.mjs +156 -0
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -0
- package/fesm2022/ngwr-i18n.mjs +478 -0
- package/fesm2022/ngwr-i18n.mjs.map +1 -0
- package/fesm2022/ngwr-icon-adapters-feather.mjs +74 -0
- package/fesm2022/ngwr-icon-adapters-feather.mjs.map +1 -0
- package/fesm2022/ngwr-icon-adapters-lucide.mjs +88 -0
- package/fesm2022/ngwr-icon-adapters-lucide.mjs.map +1 -0
- package/fesm2022/ngwr-icon.mjs +189 -649
- package/fesm2022/ngwr-icon.mjs.map +1 -1
- package/fesm2022/ngwr-image-cropper.mjs +299 -0
- package/fesm2022/ngwr-image-cropper.mjs.map +1 -0
- package/fesm2022/ngwr-input-number.mjs +239 -0
- package/fesm2022/ngwr-input-number.mjs.map +1 -0
- package/fesm2022/ngwr-input-otp.mjs +216 -0
- package/fesm2022/ngwr-input-otp.mjs.map +1 -0
- package/fesm2022/ngwr-input.mjs +183 -104
- package/fesm2022/ngwr-input.mjs.map +1 -1
- package/fesm2022/ngwr-keyboard.mjs +47 -0
- package/fesm2022/ngwr-keyboard.mjs.map +1 -0
- package/fesm2022/ngwr-knob.mjs +227 -0
- package/fesm2022/ngwr-knob.mjs.map +1 -0
- package/fesm2022/ngwr-layout.mjs +197 -0
- package/fesm2022/ngwr-layout.mjs.map +1 -0
- package/fesm2022/ngwr-lightbox.mjs +131 -0
- package/fesm2022/ngwr-lightbox.mjs.map +1 -0
- package/fesm2022/ngwr-line-chart.mjs +176 -0
- package/fesm2022/ngwr-line-chart.mjs.map +1 -0
- package/fesm2022/ngwr-list.mjs +132 -0
- package/fesm2022/ngwr-list.mjs.map +1 -0
- package/fesm2022/ngwr-loading-bar.mjs +160 -0
- package/fesm2022/ngwr-loading-bar.mjs.map +1 -0
- package/fesm2022/ngwr-marquee.mjs +224 -0
- package/fesm2022/ngwr-marquee.mjs.map +1 -0
- package/fesm2022/ngwr-media.mjs +132 -0
- package/fesm2022/ngwr-media.mjs.map +1 -0
- package/fesm2022/ngwr-mention.mjs +374 -0
- package/fesm2022/ngwr-mention.mjs.map +1 -0
- package/fesm2022/ngwr-meta.mjs +323 -0
- package/fesm2022/ngwr-meta.mjs.map +1 -0
- package/fesm2022/ngwr-meter-group.mjs +73 -0
- package/fesm2022/ngwr-meter-group.mjs.map +1 -0
- package/fesm2022/ngwr-overlay.mjs +145 -0
- package/fesm2022/ngwr-overlay.mjs.map +1 -0
- package/fesm2022/ngwr-page-header.mjs +53 -0
- package/fesm2022/ngwr-page-header.mjs.map +1 -0
- package/fesm2022/ngwr-pagination.mjs +152 -96
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +290 -11
- package/fesm2022/ngwr-pipes.mjs.map +1 -1
- package/fesm2022/ngwr-platform.mjs +63 -0
- package/fesm2022/ngwr-platform.mjs.map +1 -0
- package/fesm2022/ngwr-popconfirm.mjs +188 -0
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -0
- package/fesm2022/ngwr-popover.mjs +365 -0
- package/fesm2022/ngwr-popover.mjs.map +1 -0
- package/fesm2022/ngwr-progress.mjs +47 -39
- package/fesm2022/ngwr-progress.mjs.map +1 -1
- package/fesm2022/ngwr-qr.mjs +160 -179
- package/fesm2022/ngwr-qr.mjs.map +1 -1
- package/fesm2022/ngwr-radio.mjs +204 -0
- package/fesm2022/ngwr-radio.mjs.map +1 -0
- package/fesm2022/ngwr-rating.mjs +180 -0
- package/fesm2022/ngwr-rating.mjs.map +1 -0
- package/fesm2022/ngwr-result.mjs +119 -0
- package/fesm2022/ngwr-result.mjs.map +1 -0
- package/fesm2022/ngwr-rotating-text.mjs +256 -0
- package/fesm2022/ngwr-rotating-text.mjs.map +1 -0
- package/fesm2022/ngwr-scramble-text.mjs +165 -0
- package/fesm2022/ngwr-scramble-text.mjs.map +1 -0
- package/fesm2022/ngwr-scroll.mjs +107 -0
- package/fesm2022/ngwr-scroll.mjs.map +1 -0
- package/fesm2022/ngwr-segmented.mjs +96 -0
- package/fesm2022/ngwr-segmented.mjs.map +1 -0
- package/fesm2022/ngwr-select.mjs +844 -309
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-shiny-text.mjs +127 -0
- package/fesm2022/ngwr-shiny-text.mjs.map +1 -0
- package/fesm2022/ngwr-sidebar.mjs +134 -0
- package/fesm2022/ngwr-sidebar.mjs.map +1 -0
- package/fesm2022/ngwr-skeleton.mjs +59 -34
- package/fesm2022/ngwr-skeleton.mjs.map +1 -1
- package/fesm2022/ngwr-slider.mjs +234 -0
- package/fesm2022/ngwr-slider.mjs.map +1 -0
- package/fesm2022/ngwr-sparkline.mjs +104 -0
- package/fesm2022/ngwr-sparkline.mjs.map +1 -0
- package/fesm2022/ngwr-speed-dial.mjs +79 -0
- package/fesm2022/ngwr-speed-dial.mjs.map +1 -0
- package/fesm2022/ngwr-spinner.mjs +34 -28
- package/fesm2022/ngwr-spinner.mjs.map +1 -1
- package/fesm2022/ngwr-splash-cursor.mjs +970 -0
- package/fesm2022/ngwr-splash-cursor.mjs.map +1 -0
- package/fesm2022/ngwr-split-text.mjs +200 -0
- package/fesm2022/ngwr-split-text.mjs.map +1 -0
- package/fesm2022/ngwr-splitter.mjs +125 -0
- package/fesm2022/ngwr-splitter.mjs.map +1 -0
- package/fesm2022/ngwr-spotlight-card.mjs +138 -0
- package/fesm2022/ngwr-spotlight-card.mjs.map +1 -0
- package/fesm2022/ngwr-squircle.mjs +320 -0
- package/fesm2022/ngwr-squircle.mjs.map +1 -0
- package/fesm2022/ngwr-star-border.mjs +72 -0
- package/fesm2022/ngwr-star-border.mjs.map +1 -0
- package/fesm2022/ngwr-statistic.mjs +220 -0
- package/fesm2022/ngwr-statistic.mjs.map +1 -0
- package/fesm2022/ngwr-stepper.mjs +186 -0
- package/fesm2022/ngwr-stepper.mjs.map +1 -0
- package/fesm2022/ngwr-storage.mjs +317 -0
- package/fesm2022/ngwr-storage.mjs.map +1 -0
- package/fesm2022/ngwr-switch.mjs +99 -0
- package/fesm2022/ngwr-switch.mjs.map +1 -0
- package/fesm2022/ngwr-table.mjs +217 -206
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tabs.mjs +217 -0
- package/fesm2022/ngwr-tabs.mjs.map +1 -0
- package/fesm2022/ngwr-textarea.mjs +106 -120
- package/fesm2022/ngwr-textarea.mjs.map +1 -1
- package/fesm2022/ngwr-theme.mjs +152 -0
- package/fesm2022/ngwr-theme.mjs.map +1 -0
- package/fesm2022/ngwr-tilt-card.mjs +137 -0
- package/fesm2022/ngwr-tilt-card.mjs.map +1 -0
- package/fesm2022/ngwr-timeline.mjs +73 -0
- package/fesm2022/ngwr-timeline.mjs.map +1 -0
- package/fesm2022/ngwr-toast.mjs +446 -0
- package/fesm2022/ngwr-toast.mjs.map +1 -0
- package/fesm2022/ngwr-toolbar.mjs +46 -0
- package/fesm2022/ngwr-toolbar.mjs.map +1 -0
- package/fesm2022/ngwr-tree.mjs +483 -0
- package/fesm2022/ngwr-tree.mjs.map +1 -0
- package/fesm2022/ngwr-typewriter.mjs +229 -0
- package/fesm2022/ngwr-typewriter.mjs.map +1 -0
- package/fesm2022/ngwr-typography.mjs +79 -0
- package/fesm2022/ngwr-typography.mjs.map +1 -0
- package/fesm2022/ngwr-utils.mjs +535 -0
- package/fesm2022/ngwr-utils.mjs.map +1 -0
- package/fesm2022/ngwr-validators.mjs +214 -0
- package/fesm2022/ngwr-validators.mjs.map +1 -0
- package/fesm2022/ngwr-version.mjs +51 -0
- package/fesm2022/ngwr-version.mjs.map +1 -0
- package/fesm2022/ngwr-virtual-scroll.mjs +99 -0
- package/fesm2022/ngwr-virtual-scroll.mjs.map +1 -0
- package/fesm2022/ngwr-waves.mjs +356 -0
- package/fesm2022/ngwr-waves.mjs.map +1 -0
- package/fesm2022/ngwr-window.mjs +1141 -0
- package/fesm2022/ngwr-window.mjs.map +1 -0
- package/fesm2022/ngwr.mjs +0 -3
- package/fesm2022/ngwr.mjs.map +1 -1
- package/file-upload/styles/_index.scss +152 -0
- package/form/styles/_index.scss +85 -42
- package/gauge/styles/_index.scss +37 -0
- package/glitch-text/glitch-text.scss +1 -0
- package/glitch-text/styles/_index.scss +144 -0
- package/gradient-text/gradient-text.scss +1 -0
- package/gradient-text/styles/_index.scss +113 -0
- package/icon/styles/_index.scss +21 -15
- package/image-cropper/styles/_index.scss +114 -0
- package/input/styles/_index.scss +133 -93
- package/input-number/styles/_index.scss +75 -0
- package/input-otp/styles/_index.scss +53 -0
- package/keyboard/styles/_index.scss +55 -0
- package/knob/styles/_index.scss +54 -0
- package/layout/styles/_index.scss +65 -0
- package/lightbox/lightbox.scss +1 -0
- package/lightbox/styles/_index.scss +144 -0
- package/line-chart/styles/_index.scss +93 -0
- package/list/list.scss +1 -0
- package/list/styles/_index.scss +101 -0
- package/loading-bar/loading-bar.scss +1 -0
- package/loading-bar/styles/_index.scss +29 -0
- package/marquee/marquee.scss +1 -0
- package/marquee/styles/_index.scss +138 -0
- package/mention/styles/_index.scss +47 -0
- package/meter-group/styles/_index.scss +61 -0
- package/package.json +586 -104
- package/page-header/styles/_index.scss +78 -0
- package/pagination/styles/_index.scss +89 -34
- package/popconfirm/styles/_index.scss +32 -0
- package/popover/styles/_index.scss +99 -0
- package/progress/styles/_index.scss +29 -14
- package/qr/styles/_index.scss +6 -3
- package/radio/styles/_index.scss +111 -0
- package/rating/styles/_index.scss +63 -0
- package/result/styles/_index.scss +69 -0
- package/rotating-text/rotating-text.scss +1 -0
- package/rotating-text/styles/_index.scss +39 -0
- package/schematics/collection.json +37 -0
- package/schematics/component-style/index.js +49 -0
- package/{cdk/utils/index.d.ts → schematics/component-style/schema.js} +2 -8
- package/schematics/component-style/schema.json +20 -0
- package/schematics/icon-set/index.js +96 -0
- package/schematics/icon-set/schema.js +8 -0
- package/schematics/icon-set/schema.json +39 -0
- package/schematics/migrations/v7/index.js +187 -0
- package/schematics/migrations.json +10 -0
- package/schematics/ng-add/index.js +180 -0
- package/schematics/ng-add/schema.js +8 -0
- package/schematics/ng-add/schema.json +80 -0
- package/schematics/page/index.js +63 -0
- package/schematics/page/schema.js +8 -0
- package/schematics/page/schema.json +39 -0
- package/schematics/page/templates.js +198 -0
- package/schematics/provider/index.js +126 -0
- package/schematics/provider/schema.js +8 -0
- package/schematics/provider/schema.json +52 -0
- package/schematics/use/index.js +143 -0
- package/schematics/use/schema.js +8 -0
- package/schematics/use/schema.json +25 -0
- package/schematics/use/symbol-map.json +357 -0
- package/scramble-text/scramble-text.scss +1 -0
- package/scramble-text/styles/_index.scss +8 -0
- package/segmented/styles/_index.scss +92 -0
- package/select/styles/_index.scss +245 -159
- package/shiny-text/shiny-text.scss +1 -0
- package/shiny-text/styles/_index.scss +101 -0
- package/sidebar/styles/_index.scss +208 -0
- package/skeleton/styles/_index.scss +33 -33
- package/slider/styles/_index.scss +77 -0
- package/sparkline/styles/_index.scss +9 -0
- package/speed-dial/styles/_index.scss +158 -0
- package/spinner/styles/_index.scss +38 -22
- package/splash-cursor/splash-cursor.scss +1 -0
- package/splash-cursor/styles/_index.scss +27 -0
- package/split-text/split-text.scss +1 -0
- package/split-text/styles/_index.scss +22 -0
- package/splitter/styles/_index.scss +85 -0
- package/spotlight-card/spotlight-card.scss +1 -0
- package/spotlight-card/styles/_index.scss +43 -0
- package/squircle/styles/_index.scss +34 -0
- package/star-border/star-border.scss +1 -0
- package/star-border/styles/_index.scss +118 -0
- package/statistic/styles/_index.scss +54 -0
- package/stepper/styles/_index.scss +162 -0
- package/styles/_animations.scss +198 -0
- package/styles/_breakpoints.scss +75 -0
- package/styles/_grid.scss +71 -0
- package/styles/_reset.scss +123 -0
- package/styles/_typography.scss +122 -0
- package/styles.scss +103 -13
- package/switch/styles/_index.scss +82 -0
- package/table/styles/_index.scss +255 -4
- package/tabs/styles/_index.scss +71 -0
- package/textarea/styles/_index.scss +47 -56
- package/theme/styles/_colors.scss +83 -0
- package/theme/styles/_dark.scss +85 -0
- package/theme/styles/_focus.scss +93 -0
- package/theme/styles/_index.scss +5 -0
- package/theme/styles/_mixins.scss +57 -0
- package/theme/styles/_variables.scss +118 -0
- package/tilt-card/styles/_index.scss +40 -0
- package/tilt-card/tilt-card.scss +1 -0
- package/timeline/styles/_index.scss +127 -0
- package/toast/styles/_index.scss +263 -0
- package/toolbar/styles/_index.scss +65 -0
- package/tree/styles/_index.scss +271 -0
- package/types/ngwr-affix.d.ts +43 -0
- package/types/ngwr-alert.d.ts +68 -0
- package/types/ngwr-anchor.d.ts +53 -0
- package/types/ngwr-aurora.d.ts +52 -0
- package/types/ngwr-avatar.d.ts +90 -0
- package/types/ngwr-back-top.d.ts +37 -0
- package/types/ngwr-badge.d.ts +158 -0
- package/types/ngwr-bar-chart.d.ts +47 -0
- package/types/ngwr-blur-text.d.ts +62 -0
- package/types/ngwr-border-glow.d.ts +66 -0
- package/types/ngwr-breadcrumbs.d.ts +61 -0
- package/types/ngwr-burger.d.ts +36 -0
- package/types/ngwr-button.d.ts +176 -0
- package/types/ngwr-calendar-heatmap.d.ts +58 -0
- package/types/ngwr-calendar.d.ts +116 -0
- package/types/ngwr-card.d.ts +50 -0
- package/types/ngwr-carousel.d.ts +57 -0
- package/types/ngwr-cascader.d.ts +107 -0
- package/types/ngwr-checkbox.d.ts +139 -0
- package/types/ngwr-circular-text.d.ts +49 -0
- package/types/ngwr-click-spark.d.ts +52 -0
- package/types/ngwr-clipboard.d.ts +53 -0
- package/types/ngwr-collapse.d.ts +139 -0
- package/types/ngwr-color-picker.d.ts +302 -0
- package/types/ngwr-command-palette.d.ts +113 -0
- package/types/ngwr-compare.d.ts +55 -0
- package/types/ngwr-confetti.d.ts +70 -0
- package/types/ngwr-context-menu.d.ts +207 -0
- package/types/ngwr-cookie.d.ts +60 -0
- package/types/ngwr-counter.d.ts +182 -0
- package/types/ngwr-date-adapter-fns.d.ts +73 -0
- package/types/ngwr-date-adapter-luxon.d.ts +73 -0
- package/types/ngwr-date-adapter.d.ts +198 -0
- package/types/ngwr-date-picker.d.ts +117 -0
- package/types/ngwr-decrypt-text.d.ts +85 -0
- package/types/ngwr-density.d.ts +97 -0
- package/types/ngwr-descriptions.d.ts +41 -0
- package/types/ngwr-dialog.d.ts +210 -0
- package/types/ngwr-directives.d.ts +125 -0
- package/types/ngwr-divider.d.ts +73 -0
- package/types/ngwr-donut-chart.d.ts +53 -0
- package/types/ngwr-drag-drop.d.ts +83 -0
- package/types/ngwr-drawer.d.ts +155 -0
- package/types/ngwr-dropdown.d.ts +124 -0
- package/types/ngwr-empty.d.ts +38 -0
- package/types/ngwr-falling-text.d.ts +63 -0
- package/types/ngwr-file-upload.d.ts +94 -0
- package/types/ngwr-form.d.ts +95 -0
- package/types/ngwr-fuzzy-text.d.ts +74 -0
- package/types/ngwr-gauge.d.ts +39 -0
- package/types/ngwr-glitch-text.d.ts +31 -0
- package/types/ngwr-gradient-text.d.ts +46 -0
- package/types/ngwr-hotkey.d.ts +142 -0
- package/types/ngwr-i18n-en.d.ts +18 -0
- package/types/ngwr-i18n-ru.d.ts +6 -0
- package/types/ngwr-i18n.d.ts +336 -0
- package/types/ngwr-icon-adapters-feather.d.ts +44 -0
- package/types/ngwr-icon-adapters-lucide.d.ts +54 -0
- package/types/ngwr-icon.d.ts +180 -0
- package/types/ngwr-image-cropper.d.ts +110 -0
- package/types/ngwr-input-number.d.ts +77 -0
- package/types/ngwr-input-otp.d.ts +78 -0
- package/types/ngwr-input.d.ts +131 -0
- package/types/ngwr-keyboard.d.ts +34 -0
- package/types/ngwr-knob.d.ts +77 -0
- package/types/ngwr-layout.d.ts +89 -0
- package/types/ngwr-lightbox.d.ts +50 -0
- package/types/ngwr-line-chart.d.ts +90 -0
- package/types/ngwr-list.d.ts +71 -0
- package/types/ngwr-loading-bar.d.ts +79 -0
- package/types/ngwr-marquee.d.ts +95 -0
- package/types/ngwr-media.d.ts +74 -0
- package/types/ngwr-mention.d.ts +110 -0
- package/types/ngwr-meta.d.ts +188 -0
- package/types/ngwr-meter-group.d.ts +57 -0
- package/types/ngwr-overlay.d.ts +110 -0
- package/types/ngwr-page-header.d.ts +35 -0
- package/types/ngwr-pagination.d.ts +119 -0
- package/types/ngwr-pipes.d.ts +177 -0
- package/types/ngwr-platform.d.ts +38 -0
- package/types/ngwr-popconfirm.d.ts +79 -0
- package/types/ngwr-popover.d.ts +90 -0
- package/types/ngwr-progress.d.ts +33 -0
- package/types/ngwr-qr.d.ts +56 -0
- package/types/ngwr-radio.d.ts +120 -0
- package/types/ngwr-rating.d.ts +62 -0
- package/types/ngwr-result.d.ts +64 -0
- package/types/ngwr-rotating-text.d.ts +72 -0
- package/types/ngwr-scramble-text.d.ts +49 -0
- package/types/ngwr-scroll.d.ts +65 -0
- package/types/ngwr-segmented.d.ts +65 -0
- package/types/ngwr-select.d.ts +413 -0
- package/types/ngwr-shiny-text.d.ts +70 -0
- package/types/ngwr-sidebar.d.ts +83 -0
- package/types/ngwr-skeleton.d.ts +41 -0
- package/types/ngwr-slider.d.ts +86 -0
- package/types/ngwr-sparkline.d.ts +48 -0
- package/types/ngwr-speed-dial.d.ts +51 -0
- package/types/ngwr-spinner.d.ts +41 -0
- package/types/ngwr-splash-cursor.d.ts +94 -0
- package/types/ngwr-split-text.d.ts +83 -0
- package/types/ngwr-splitter.d.ts +52 -0
- package/types/ngwr-spotlight-card.d.ts +71 -0
- package/types/ngwr-squircle.d.ts +132 -0
- package/types/ngwr-star-border.d.ts +40 -0
- package/types/ngwr-statistic.d.ts +88 -0
- package/types/ngwr-stepper.d.ts +99 -0
- package/types/ngwr-storage.d.ts +178 -0
- package/types/ngwr-switch.d.ts +39 -0
- package/types/ngwr-table.d.ts +237 -0
- package/types/ngwr-tabs.d.ts +125 -0
- package/types/ngwr-textarea.d.ts +60 -0
- package/types/ngwr-theme.d.ts +124 -0
- package/types/ngwr-tilt-card.d.ts +63 -0
- package/types/ngwr-timeline.d.ts +40 -0
- package/types/ngwr-toast.d.ts +230 -0
- package/types/ngwr-toolbar.d.ts +30 -0
- package/types/ngwr-tree.d.ts +150 -0
- package/types/ngwr-typewriter.d.ts +84 -0
- package/types/ngwr-typography.d.ts +56 -0
- package/types/ngwr-utils.d.ts +447 -0
- package/types/ngwr-validators.d.ts +70 -0
- package/types/ngwr-version.d.ts +44 -0
- package/types/ngwr-virtual-scroll.d.ts +64 -0
- package/types/ngwr-waves.d.ts +71 -0
- package/types/ngwr-window.d.ts +437 -0
- package/typewriter/styles/_index.scss +33 -0
- package/typewriter/typewriter.scss +1 -0
- package/typography/styles/_index.scss +211 -0
- package/virtual-scroll/styles/_index.scss +27 -0
- package/virtual-scroll/virtual-scroll.scss +1 -0
- package/waves/styles/_index.scss +24 -0
- package/waves/waves.scss +1 -0
- package/window/styles/_index.scss +430 -0
- package/alert/index.d.ts +0 -32
- package/alert/styles/theming.scss +0 -26
- package/alert/styles/vars.scss +0 -11
- package/avatar/index.d.ts +0 -30
- package/button/index.d.ts +0 -45
- package/button/styles/vars.scss +0 -13
- package/cdk/index.d.ts +0 -24
- package/cdk/rxjs/index.d.ts +0 -40
- package/cdk/types/index.d.ts +0 -27
- package/checkbox/index.d.ts +0 -31
- package/checkbox/styles/vars.scss +0 -16
- package/dialog/index.d.ts +0 -193
- package/dialog/styles/vars.scss +0 -7
- package/divider/index.d.ts +0 -16
- package/dropdown/index.d.ts +0 -68
- package/dropdown/styles/vars.scss +0 -18
- package/fesm2022/ngwr-cdk-rxjs.mjs +0 -53
- package/fesm2022/ngwr-cdk-rxjs.mjs.map +0 -1
- package/fesm2022/ngwr-cdk-types.mjs +0 -44
- package/fesm2022/ngwr-cdk-types.mjs.map +0 -1
- package/fesm2022/ngwr-cdk-utils.mjs +0 -30
- package/fesm2022/ngwr-cdk-utils.mjs.map +0 -1
- package/fesm2022/ngwr-cdk.mjs +0 -46
- package/fesm2022/ngwr-cdk.mjs.map +0 -1
- package/fesm2022/ngwr-tag.mjs +0 -87
- package/fesm2022/ngwr-tag.mjs.map +0 -1
- package/form/index.d.ts +0 -28
- package/icon/index.d.ts +0 -830
- package/icon/styles/vars.scss +0 -3
- package/input/index.d.ts +0 -43
- package/input/styles/vars.scss +0 -17
- package/pagination/index.d.ts +0 -34
- package/pagination/styles/vars.scss +0 -14
- package/pipes/index.d.ts +0 -17
- package/progress/index.d.ts +0 -13
- package/progress/styles/theming.scss +0 -8
- package/progress/styles/vars.scss +0 -6
- package/qr/index.d.ts +0 -127
- package/select/index.d.ts +0 -121
- package/select/styles/vars.scss +0 -32
- package/skeleton/index.d.ts +0 -13
- package/spinner/index.d.ts +0 -23
- package/styles/animations.scss +0 -92
- package/styles/cdk.scss +0 -5
- package/styles/colors.scss +0 -72
- package/styles/grid.scss +0 -99
- package/styles/maps.scss +0 -31
- package/styles/reset.scss +0 -112
- package/styles/variables.scss +0 -72
- package/table/index.d.ts +0 -101
- package/table/styles/table-filter.scss +0 -202
- package/table/styles/table-sort.scss +0 -47
- package/table/styles/table.scss +0 -232
- package/table/styles/vars.scss +0 -21
- package/tag/index.d.ts +0 -24
- package/tag/styles/_index.scss +0 -32
- package/tag/styles/theming.scss +0 -21
- package/tag/styles/vars.scss +0 -12
- package/textarea/index.d.ts +0 -47
- package/textarea/styles/vars.scss +0 -17
- /package/{index.d.ts → types/ngwr.d.ts} +0 -0
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
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
|
+
* Corner treatment for `<wr-badge>`.
|
|
11
|
+
*
|
|
12
|
+
* - `rounded` (default) — small radius, matches the rest of the form vocabulary.
|
|
13
|
+
* - `pill` — fully rounded ends; common for count chips and status pills.
|
|
14
|
+
* - `squircle` — iOS-style continuous-curvature corners via the
|
|
15
|
+
* `corner-shape: squircle` CSS spec (Chrome 145+, falls back to a
|
|
16
|
+
* plain rounded corner elsewhere).
|
|
17
|
+
*/
|
|
18
|
+
type WrBadgeShape = 'rounded' | 'pill' | 'squircle';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @license
|
|
22
|
+
*
|
|
23
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
24
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* Badge size variant.
|
|
28
|
+
*/
|
|
29
|
+
type WrBadgeSize = 'sm' | 'md' | 'lg';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @license
|
|
33
|
+
*
|
|
34
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
35
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
36
|
+
*/
|
|
37
|
+
/**
|
|
38
|
+
* Where the icon (or loading spinner) sits relative to the tag content.
|
|
39
|
+
*/
|
|
40
|
+
type WrTagIconPosition = 'start' | 'end';
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Lean status chip — color, size, rounded/pill. Use for short labels
|
|
44
|
+
* and counts (e.g. "ONLINE", "3 unread", "v2.1"). Reach for `<wr-tag>`
|
|
45
|
+
* when you need icons, loading state, or outlined / transparent styles.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```html
|
|
49
|
+
* <wr-badge color="success">Active</wr-badge>
|
|
50
|
+
* <wr-badge color="danger" size="sm">3</wr-badge>
|
|
51
|
+
* <wr-badge color="primary" shape="pill">New</wr-badge>
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @see https://ngwr.dev/components/badge
|
|
55
|
+
*/
|
|
56
|
+
declare class WrBadge {
|
|
57
|
+
/**
|
|
58
|
+
* Color variant. Maps to `--wr-color-*` CSS variables from the theme.
|
|
59
|
+
*
|
|
60
|
+
* @default 'primary'
|
|
61
|
+
*/
|
|
62
|
+
readonly color: _angular_core.InputSignal<"primary" | "secondary" | "success" | "warning" | "danger" | "light" | "medium" | "dark">;
|
|
63
|
+
/**
|
|
64
|
+
* Size variant.
|
|
65
|
+
*
|
|
66
|
+
* @default 'md'
|
|
67
|
+
*/
|
|
68
|
+
readonly size: _angular_core.InputSignal<WrBadgeSize>;
|
|
69
|
+
/**
|
|
70
|
+
* Corner treatment. Mirrors `<wr-btn>` — `rounded` (default) uses the
|
|
71
|
+
* small form-radius; `pill` rounds the ends fully.
|
|
72
|
+
*
|
|
73
|
+
* @default 'rounded'
|
|
74
|
+
*/
|
|
75
|
+
readonly shape: _angular_core.InputSignal<WrBadgeShape>;
|
|
76
|
+
/**
|
|
77
|
+
* Outlined style — transparent fill, colored border and text.
|
|
78
|
+
*
|
|
79
|
+
* @default false
|
|
80
|
+
*/
|
|
81
|
+
readonly outlined: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
82
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
83
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrBadge, never>;
|
|
84
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrBadge, "wr-badge", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "outlined": { "alias": "outlined"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Rich inline label — icons, loading state, three visual styles
|
|
89
|
+
* (solid / outlined / transparent). Reach for `<wr-badge>` when all
|
|
90
|
+
* you need is a colored text chip.
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```html
|
|
94
|
+
* <wr-tag>Default</wr-tag>
|
|
95
|
+
* <wr-tag color="success" icon="checkmark">Done</wr-tag>
|
|
96
|
+
* <wr-tag color="primary" outlined rounded>Beta</wr-tag>
|
|
97
|
+
* <wr-tag color="warning" loading>Saving</wr-tag>
|
|
98
|
+
* ```
|
|
99
|
+
*
|
|
100
|
+
* @see https://ngwr.dev/components/badge
|
|
101
|
+
*/
|
|
102
|
+
declare class WrTag {
|
|
103
|
+
/**
|
|
104
|
+
* Color variant.
|
|
105
|
+
*
|
|
106
|
+
* @default 'primary'
|
|
107
|
+
*/
|
|
108
|
+
readonly color: _angular_core.InputSignal<"primary" | "secondary" | "success" | "warning" | "danger" | "light" | "medium" | "dark">;
|
|
109
|
+
/**
|
|
110
|
+
* Icon name shown alongside the content. The icon is replaced by a
|
|
111
|
+
* spinner when `loading` is true.
|
|
112
|
+
*
|
|
113
|
+
* @default null
|
|
114
|
+
*/
|
|
115
|
+
readonly icon: _angular_core.InputSignal<string | null>;
|
|
116
|
+
/**
|
|
117
|
+
* Where the icon/spinner is rendered.
|
|
118
|
+
*
|
|
119
|
+
* @default 'start'
|
|
120
|
+
*/
|
|
121
|
+
readonly iconPosition: _angular_core.InputSignal<WrTagIconPosition>;
|
|
122
|
+
/**
|
|
123
|
+
* Outlined style — colored text and border on a tinted background.
|
|
124
|
+
*
|
|
125
|
+
* @default false
|
|
126
|
+
*/
|
|
127
|
+
readonly outlined: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
128
|
+
/**
|
|
129
|
+
* Transparent style — colored text on a low-opacity tint, no border.
|
|
130
|
+
*
|
|
131
|
+
* @default false
|
|
132
|
+
*/
|
|
133
|
+
readonly transparent: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
134
|
+
/**
|
|
135
|
+
* Pill-shaped corners.
|
|
136
|
+
*
|
|
137
|
+
* @default false
|
|
138
|
+
*/
|
|
139
|
+
readonly rounded: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
140
|
+
/**
|
|
141
|
+
* Adds a hover state — use when the tag is interactive (button/link).
|
|
142
|
+
*
|
|
143
|
+
* @default false
|
|
144
|
+
*/
|
|
145
|
+
readonly hoverable: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
146
|
+
/**
|
|
147
|
+
* Show a spinner in place of the icon.
|
|
148
|
+
*
|
|
149
|
+
* @default false
|
|
150
|
+
*/
|
|
151
|
+
readonly loading: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
152
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
153
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrTag, never>;
|
|
154
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrTag, "wr-tag", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; "outlined": { "alias": "outlined"; "required": false; "isSignal": true; }; "transparent": { "alias": "transparent"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "hoverable": { "alias": "hoverable"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export { WrBadge, WrTag };
|
|
158
|
+
export type { WrBadgeSize, WrTagIconPosition };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
/** One bar's worth of data. */
|
|
4
|
+
interface WrBarChartDatum {
|
|
5
|
+
readonly label: string;
|
|
6
|
+
readonly value: number;
|
|
7
|
+
readonly color?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Minimal vertical bar chart. Pass `[data]` — each datum becomes a bar.
|
|
12
|
+
* Axis-free; for the simple "show me a comparison" case.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```html
|
|
16
|
+
* <wr-bar-chart [data]="[
|
|
17
|
+
* { label: 'Mon', value: 12 },
|
|
18
|
+
* { label: 'Tue', value: 18, color: 'var(--wr-color-success)' },
|
|
19
|
+
* { label: 'Wed', value: 9 }
|
|
20
|
+
* ]" />
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @see https://ngwr.dev/components/bar-chart
|
|
24
|
+
*/
|
|
25
|
+
declare class WrBarChart {
|
|
26
|
+
readonly data: _angular_core.InputSignal<readonly WrBarChartDatum[]>;
|
|
27
|
+
/** Default bar colour when a datum has none. @default primary */
|
|
28
|
+
readonly color: _angular_core.InputSignal<string>;
|
|
29
|
+
/** Show value labels above each bar. @default true */
|
|
30
|
+
readonly showValues: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
31
|
+
/** Pixel height of the chart area. @default 200 */
|
|
32
|
+
readonly height: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
33
|
+
/** Explicit max value. `0` = auto. @default 0 */
|
|
34
|
+
readonly max: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
35
|
+
protected readonly resolvedMax: _angular_core.Signal<number>;
|
|
36
|
+
protected readonly bars: _angular_core.Signal<{
|
|
37
|
+
label: string;
|
|
38
|
+
value: number;
|
|
39
|
+
color: string;
|
|
40
|
+
heightPercent: number;
|
|
41
|
+
}[]>;
|
|
42
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrBarChart, never>;
|
|
43
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrBarChart, "wr-bar-chart", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "showValues": { "alias": "showValues"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export { WrBarChart };
|
|
47
|
+
export type { WrBarChartDatum };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
type Unit = 'chars' | 'words';
|
|
4
|
+
type Direction = 'top' | 'bottom';
|
|
5
|
+
type Piece = {
|
|
6
|
+
readonly kind: 'piece';
|
|
7
|
+
readonly text: string;
|
|
8
|
+
} | {
|
|
9
|
+
readonly kind: 'space';
|
|
10
|
+
readonly text: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Reveals text by splitting it into chars or words and animating each
|
|
14
|
+
* piece in from a blurred / offset state through a brief mid-step into
|
|
15
|
+
* the steady state. Triggers when the host enters the viewport.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```html
|
|
19
|
+
* <wr-blur-text
|
|
20
|
+
* text="Welcome to ngwr"
|
|
21
|
+
* animateBy="words"
|
|
22
|
+
* direction="top"
|
|
23
|
+
* [delay]="120"
|
|
24
|
+
* [stepDuration]="0.4"
|
|
25
|
+
* />
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @see https://www.reactbits.dev/text-animations/blur-text
|
|
29
|
+
*/
|
|
30
|
+
declare class WrBlurText {
|
|
31
|
+
/** Text to animate. Required. */
|
|
32
|
+
readonly text: _angular_core.InputSignal<string>;
|
|
33
|
+
/** Split granularity. @default 'words' */
|
|
34
|
+
readonly animateBy: _angular_core.InputSignal<Unit>;
|
|
35
|
+
/** Entry direction. `'top'` slides down into place; `'bottom'` slides up. @default 'top' */
|
|
36
|
+
readonly direction: _angular_core.InputSignal<Direction>;
|
|
37
|
+
/** Per-piece stagger in ms. @default 200 */
|
|
38
|
+
readonly delay: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
39
|
+
/** Duration of each keyframe step in seconds (total = 2 × stepDuration). @default 0.35 */
|
|
40
|
+
readonly stepDuration: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
41
|
+
/** CSS easing function. @default 'linear' (matches reactbits' identity easing) */
|
|
42
|
+
readonly easing: _angular_core.InputSignal<string>;
|
|
43
|
+
/** `IntersectionObserver.threshold` (0..1). @default 0.1 */
|
|
44
|
+
readonly threshold: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
45
|
+
/** `IntersectionObserver.rootMargin`. @default '0px' */
|
|
46
|
+
readonly rootMargin: _angular_core.InputSignal<string>;
|
|
47
|
+
/** Emitted once all pieces finish animating. */
|
|
48
|
+
readonly animationComplete: _angular_core.OutputEmitterRef<void>;
|
|
49
|
+
protected readonly pieces: _angular_core.Signal<readonly Piece[]>;
|
|
50
|
+
private readonly host;
|
|
51
|
+
private readonly destroyRef;
|
|
52
|
+
private readonly isBrowser;
|
|
53
|
+
private readonly platform;
|
|
54
|
+
private hasAnimated;
|
|
55
|
+
constructor();
|
|
56
|
+
private startObserver;
|
|
57
|
+
private animate;
|
|
58
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrBlurText, never>;
|
|
59
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrBlurText, "wr-blur-text", never, { "text": { "alias": "text"; "required": true; "isSignal": true; }; "animateBy": { "alias": "animateBy"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "delay": { "alias": "delay"; "required": false; "isSignal": true; }; "stepDuration": { "alias": "stepDuration"; "required": false; "isSignal": true; }; "easing": { "alias": "easing"; "required": false; "isSignal": true; }; "threshold": { "alias": "threshold"; "required": false; "isSignal": true; }; "rootMargin": { "alias": "rootMargin"; "required": false; "isSignal": true; }; }, { "animationComplete": "animationComplete"; }, never, never, true, never>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export { WrBlurText };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Cursor-tracked glowing border card. A cone of light follows the pointer
|
|
5
|
+
* along the card's perimeter, brightening as the cursor approaches an edge.
|
|
6
|
+
*
|
|
7
|
+
* - Outer halo via stacked `box-shadow` on an inner `.edge-light` element.
|
|
8
|
+
* - Inner "soft bloom" via `mix-blend-mode: soft-light` for content near the
|
|
9
|
+
* edges (subtle; control via `[fillOpacity]`).
|
|
10
|
+
* - Optional `[animated]` mode performs a one-shot sweep on mount, useful
|
|
11
|
+
* for drawing attention to a freshly-rendered card.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```html
|
|
15
|
+
* <wr-border-glow [animated]="true" [colors]="['#c084fc', '#f472b6', '#38bdf8']">
|
|
16
|
+
* <h3>Hover me</h3>
|
|
17
|
+
* <p>The border lights up where the cursor is.</p>
|
|
18
|
+
* </wr-border-glow>
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @see https://www.reactbits.dev/components/border-glow (visual reference)
|
|
22
|
+
*/
|
|
23
|
+
declare class WrBorderGlow {
|
|
24
|
+
/** Card background fill. When unset, uses the theme surface token. */
|
|
25
|
+
readonly backgroundColor: _angular_core.InputSignal<string | null>;
|
|
26
|
+
/** Corner radius in pixels. @default 28 */
|
|
27
|
+
readonly borderRadius: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
28
|
+
/** Halo extent in pixels — how far the outer glow reaches past the card edge. @default 40 */
|
|
29
|
+
readonly glowRadius: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
30
|
+
/** Halo opacity multiplier (1 = full strength). @default 1 */
|
|
31
|
+
readonly glowIntensity: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
32
|
+
/** Width of the lit cone as a percentage of the perimeter. @default 25 */
|
|
33
|
+
readonly coneSpread: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
34
|
+
/** How sharply the halo fades as the cursor leaves the edge. Lower = wider falloff. @default 30 */
|
|
35
|
+
readonly edgeSensitivity: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
36
|
+
/** Strength of the soft-light interior fill near edges. @default 0.5 */
|
|
37
|
+
readonly fillOpacity: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
38
|
+
/**
|
|
39
|
+
* Halo colour as `'H S L'` (HSL parts, no commas). When unset, the theme
|
|
40
|
+
* decides: a deep amber on light surfaces, pale amber on dark. Note
|
|
41
|
+
* `glowIntensity` only applies alongside an explicit `glowColor`.
|
|
42
|
+
*/
|
|
43
|
+
readonly glowColor: _angular_core.InputSignal<string | null>;
|
|
44
|
+
/**
|
|
45
|
+
* Mesh-gradient palette for the colored border slice. When unset, the
|
|
46
|
+
* theme decides: deep tones on light, pastels on dark.
|
|
47
|
+
*/
|
|
48
|
+
readonly colors: _angular_core.InputSignal<readonly string[] | null>;
|
|
49
|
+
/** Play a one-shot perimeter sweep on mount, then fade out. @default false */
|
|
50
|
+
readonly animated: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
51
|
+
private readonly el;
|
|
52
|
+
private readonly platform;
|
|
53
|
+
private readonly destroyRef;
|
|
54
|
+
private readonly isBrowser;
|
|
55
|
+
/** Inline CSS variable bag — recomputed when colour / radius / sensitivity inputs change. */
|
|
56
|
+
protected readonly cssVars: _angular_core.Signal<Record<string, string>>;
|
|
57
|
+
constructor();
|
|
58
|
+
/** Pointer-driven update of `--wr-border-glow-angle` + `--wr-border-glow-edge-proximity`. */
|
|
59
|
+
protected onPointerMove(event: PointerEvent): void;
|
|
60
|
+
/** One-shot perimeter sweep: in → around → out, mirroring the reactbits behaviour. */
|
|
61
|
+
private runAutoSweep;
|
|
62
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrBorderGlow, never>;
|
|
63
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrBorderGlow, "wr-border-glow", never, { "backgroundColor": { "alias": "backgroundColor"; "required": false; "isSignal": true; }; "borderRadius": { "alias": "borderRadius"; "required": false; "isSignal": true; }; "glowRadius": { "alias": "glowRadius"; "required": false; "isSignal": true; }; "glowIntensity": { "alias": "glowIntensity"; "required": false; "isSignal": true; }; "coneSpread": { "alias": "coneSpread"; "required": false; "isSignal": true; }; "edgeSensitivity": { "alias": "edgeSensitivity"; "required": false; "isSignal": true; }; "fillOpacity": { "alias": "fillOpacity"; "required": false; "isSignal": true; }; "glowColor": { "alias": "glowColor"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; "animated": { "alias": "animated"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { WrBorderGlow };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Breadcrumb navigation. Project `<wr-breadcrumbs-item>` children — they
|
|
5
|
+
* render as `<li>` rows inside an `<ol>`, separated by the configured
|
|
6
|
+
* glyph (default `/`). The container exposes the `nav[aria-label]`
|
|
7
|
+
* landmark required by WCAG.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```html
|
|
11
|
+
* <wr-breadcrumbs>
|
|
12
|
+
* <wr-breadcrumbs-item routerLink="/">Home</wr-breadcrumbs-item>
|
|
13
|
+
* <wr-breadcrumbs-item routerLink="/docs">Docs</wr-breadcrumbs-item>
|
|
14
|
+
* <wr-breadcrumbs-item>Current</wr-breadcrumbs-item>
|
|
15
|
+
* </wr-breadcrumbs>
|
|
16
|
+
*
|
|
17
|
+
* <!-- Custom separator -->
|
|
18
|
+
* <wr-breadcrumbs separator="›">…</wr-breadcrumbs>
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @see https://ngwr.dev/components/breadcrumbs
|
|
22
|
+
*/
|
|
23
|
+
declare class WrBreadcrumbs {
|
|
24
|
+
/** Separator glyph between items. Any short string. @default '/' */
|
|
25
|
+
readonly separator: _angular_core.InputSignal<string>;
|
|
26
|
+
/** Accessible label for the `nav` landmark. @default 'Breadcrumbs' */
|
|
27
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
28
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrBreadcrumbs, never>;
|
|
29
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrBreadcrumbs, "wr-breadcrumbs", never, { "separator": { "alias": "separator"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* One row inside `<wr-breadcrumbs>`. Renders as a `<li>` containing
|
|
34
|
+
* either an `<a>` (when `[href]` or `[routerLink]` is set) or a plain
|
|
35
|
+
* `<span aria-current="page">` (when neither is set — typically the last
|
|
36
|
+
* crumb).
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```html
|
|
40
|
+
* <wr-breadcrumbs-item icon="home" routerLink="/">Home</wr-breadcrumbs-item>
|
|
41
|
+
* <wr-breadcrumbs-item href="https://ngwr.dev">External</wr-breadcrumbs-item>
|
|
42
|
+
* <wr-breadcrumbs-item>Current page</wr-breadcrumbs-item>
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
declare class WrBreadcrumbsItem {
|
|
46
|
+
/** Plain anchor href. Overridden by `routerLink` when both are set. */
|
|
47
|
+
readonly href: _angular_core.InputSignal<string | null>;
|
|
48
|
+
/** Angular router target. Anything `RouterLink` accepts (string or `any[]`). */
|
|
49
|
+
readonly routerLink: _angular_core.InputSignal<string | readonly unknown[] | null>;
|
|
50
|
+
/** Open external `href` in a new tab. Ignored when `routerLink` is set. @default false */
|
|
51
|
+
readonly external: _angular_core.InputSignal<boolean>;
|
|
52
|
+
/** Optional leading icon rendered inline before the label. @default null */
|
|
53
|
+
readonly icon: _angular_core.InputSignal<string | null>;
|
|
54
|
+
protected readonly isLink: _angular_core.Signal<boolean>;
|
|
55
|
+
protected readonly isRouter: _angular_core.Signal<boolean>;
|
|
56
|
+
protected readonly rootClass: _angular_core.Signal<"wr-breadcrumbs__link" | "wr-breadcrumbs__current">;
|
|
57
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrBreadcrumbsItem, never>;
|
|
58
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrBreadcrumbsItem, "wr-breadcrumbs-item", never, { "href": { "alias": "href"; "required": false; "isSignal": true; }; "routerLink": { "alias": "routerLink"; "required": false; "isSignal": true; }; "external": { "alias": "external"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export { WrBreadcrumbs, WrBreadcrumbsItem };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Animated menu toggle — three SVG strokes morph between a hamburger and a
|
|
5
|
+
* close mark on `open`. Two-way bindable, so it pairs naturally with a
|
|
6
|
+
* `<wr-drawer>` or any disclosure.
|
|
7
|
+
*
|
|
8
|
+
* The morph is pure CSS (`stroke-dasharray` / `stroke-dashoffset` tweens),
|
|
9
|
+
* so it stays smooth without JS and collapses to its end state under
|
|
10
|
+
* `prefers-reduced-motion`.
|
|
11
|
+
*
|
|
12
|
+
* @example Toggle a drawer
|
|
13
|
+
* ```html
|
|
14
|
+
* <wr-burger [(open)]="menuOpen" />
|
|
15
|
+
* <wr-drawer [(open)]="menuOpen" position="right">…</wr-drawer>
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* @see https://ngwr.dev/components/burger
|
|
19
|
+
*/
|
|
20
|
+
declare class WrBurger {
|
|
21
|
+
/** Two-way bindable open state. Drives the hamburger ↔ close morph. @default false */
|
|
22
|
+
readonly open: _angular_core.ModelSignal<boolean>;
|
|
23
|
+
/** Accessible label for the toggle button. @default 'Toggle menu' */
|
|
24
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
25
|
+
/** Disable the toggle. @default false */
|
|
26
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
27
|
+
protected readonly classes: _angular_core.Signal<{
|
|
28
|
+
'wr-burger': boolean;
|
|
29
|
+
'wr-burger--opened': boolean;
|
|
30
|
+
}>;
|
|
31
|
+
protected toggle(): void;
|
|
32
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrBurger, never>;
|
|
33
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrBurger, "wr-burger", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "open": "openChange"; }, never, never, true, never>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { WrBurger };
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { Signal } from '@angular/core';
|
|
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
|
+
* Button size variant.
|
|
12
|
+
*/
|
|
13
|
+
type WrButtonSize = 'sm' | 'md' | 'lg';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @license
|
|
17
|
+
*
|
|
18
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
19
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* Corner treatment for `<wr-btn>`.
|
|
23
|
+
*
|
|
24
|
+
* - `rounded` (default) — small radius, matches the rest of the form vocabulary.
|
|
25
|
+
* - `pill` — fully rounded ends; ideal for solitary CTAs.
|
|
26
|
+
* - `squircle` — iOS-style continuous-curvature corners via the
|
|
27
|
+
* `corner-shape: squircle` CSS spec (Chrome 145+, falls back to a
|
|
28
|
+
* plain rounded corner elsewhere). For a deterministic
|
|
29
|
+
* clip-path-based squircle that works across browsers, wrap the
|
|
30
|
+
* button in `[wrSquircle]` instead.
|
|
31
|
+
*/
|
|
32
|
+
type WrButtonShape = 'rounded' | 'pill' | 'squircle';
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @license
|
|
36
|
+
*
|
|
37
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
38
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
39
|
+
*/
|
|
40
|
+
/**
|
|
41
|
+
* Where the icon sits relative to the button label.
|
|
42
|
+
*/
|
|
43
|
+
type WrButtonIconPosition = 'start' | 'end';
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Trigger an action. Renders as a `<wr-btn>` element, or attach to a
|
|
47
|
+
* native `<button>` / `<a>` via the `wr-btn` attribute selector.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```html
|
|
51
|
+
* <button wr-btn color="primary">Save</button>
|
|
52
|
+
* <a wr-btn color="primary" outlined>Cancel</a>
|
|
53
|
+
* <wr-btn color="danger" icon="trash">Delete</wr-btn>
|
|
54
|
+
* <wr-btn color="primary" shape="pill">Pill</wr-btn>
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* **Squircle?** Wrap with `[wrSquircle]` — the directive is the only
|
|
58
|
+
* way ngwr ships smooth-corner clip-paths:
|
|
59
|
+
*
|
|
60
|
+
* ```html
|
|
61
|
+
* <wr-btn wrSquircle [radius]="14">Squircle</wr-btn>
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* Inside a `<wr-btn-group shape="…">`, the group's shape is enforced on
|
|
65
|
+
* every child — child `[shape]` inputs are ignored so the group reads as
|
|
66
|
+
* one coherent control.
|
|
67
|
+
*
|
|
68
|
+
* @see https://ngwr.dev/components/button
|
|
69
|
+
*/
|
|
70
|
+
declare class WrButton {
|
|
71
|
+
/** Color variant. Omit for the neutral default style. @default null */
|
|
72
|
+
readonly color: _angular_core.InputSignal<"primary" | "secondary" | "success" | "warning" | "danger" | "light" | "medium" | "dark" | null>;
|
|
73
|
+
/** Size variant. @default 'md' */
|
|
74
|
+
readonly size: _angular_core.InputSignal<WrButtonSize>;
|
|
75
|
+
/**
|
|
76
|
+
* Corner treatment — `rounded` or `pill`. `null` (default) falls back
|
|
77
|
+
* to `rounded`. Inside a `<wr-btn-group shape="…">`, the group's shape
|
|
78
|
+
* ALWAYS wins over this input — the group enforces a consistent corner
|
|
79
|
+
* treatment across its members.
|
|
80
|
+
*
|
|
81
|
+
* @default null
|
|
82
|
+
*/
|
|
83
|
+
readonly shape: _angular_core.InputSignal<WrButtonShape | null>;
|
|
84
|
+
/**
|
|
85
|
+
* Icon name to render alongside the label. The icon is hidden while
|
|
86
|
+
* `loading` is `true` so the spinner can take its place.
|
|
87
|
+
*
|
|
88
|
+
* @default null
|
|
89
|
+
*/
|
|
90
|
+
readonly icon: _angular_core.InputSignal<string | null>;
|
|
91
|
+
/** Position of the icon relative to the label. @default 'start' */
|
|
92
|
+
readonly iconPosition: _angular_core.InputSignal<WrButtonIconPosition>;
|
|
93
|
+
/** Disable the button. @default false */
|
|
94
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
95
|
+
/** Outlined variant — colored text and border on a transparent background. @default false */
|
|
96
|
+
readonly outlined: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
97
|
+
/** Stretch the button to fill its parent's width. @default false */
|
|
98
|
+
readonly block: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
99
|
+
/** Show a spinner overlaying the label. Layout is preserved. @default false */
|
|
100
|
+
readonly loading: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
101
|
+
/**
|
|
102
|
+
* When `loading` is `true` and this is also `true`, pointer events are
|
|
103
|
+
* suppressed and the button reports as disabled to assistive tech.
|
|
104
|
+
*
|
|
105
|
+
* @default true
|
|
106
|
+
*/
|
|
107
|
+
readonly isDisabledWhenLoading: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
108
|
+
private readonly group;
|
|
109
|
+
/**
|
|
110
|
+
* Resolved shape. Inside a `<wr-btn-group>`, the group ALWAYS wins —
|
|
111
|
+
* child `[shape]` is ignored entirely so the group reads as one
|
|
112
|
+
* coherent control. Outside a group, the button's own `[shape]` is
|
|
113
|
+
* used, falling back to `rounded`.
|
|
114
|
+
*/
|
|
115
|
+
protected readonly effectiveShape: _angular_core.Signal<WrButtonShape>;
|
|
116
|
+
protected readonly nativeDisabled: _angular_core.Signal<"" | null>;
|
|
117
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
118
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrButton, never>;
|
|
119
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrButton, "wr-btn, button[wr-btn], a[wr-btn]", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "outlined": { "alias": "outlined"; "required": false; "isSignal": true; }; "block": { "alias": "block"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "isDisabledWhenLoading": { "alias": "isDisabledWhenLoading"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @license
|
|
124
|
+
*
|
|
125
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
126
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
127
|
+
*/
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Contract a child `<wr-btn>` reads from its enclosing `<wr-btn-group>`.
|
|
131
|
+
*
|
|
132
|
+
* @internal
|
|
133
|
+
*/
|
|
134
|
+
interface WrButtonGroupContext {
|
|
135
|
+
/** Shape cascade — child buttons fall back to this when they don't set their own. */
|
|
136
|
+
readonly shape: Signal<WrButtonShape | null>;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Visually group buttons by merging their borders. Optionally enforce a
|
|
141
|
+
* single corner treatment across every child via `[shape]` — child
|
|
142
|
+
* `<wr-btn>` `[shape]` inputs are ignored when set on the group.
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* ```html
|
|
146
|
+
* <wr-btn-group>
|
|
147
|
+
* <button wr-btn>Left</button>
|
|
148
|
+
* <button wr-btn>Middle</button>
|
|
149
|
+
* <button wr-btn>Right</button>
|
|
150
|
+
* </wr-btn-group>
|
|
151
|
+
*
|
|
152
|
+
* <wr-btn-group shape="pill">
|
|
153
|
+
* <button wr-btn>One</button>
|
|
154
|
+
* <button wr-btn>Two</button>
|
|
155
|
+
* <button wr-btn>Three</button>
|
|
156
|
+
* </wr-btn-group>
|
|
157
|
+
* ```
|
|
158
|
+
*
|
|
159
|
+
* @see https://ngwr.dev/components/button-group
|
|
160
|
+
*/
|
|
161
|
+
declare class WrButtonGroup implements WrButtonGroupContext {
|
|
162
|
+
/**
|
|
163
|
+
* Corner treatment enforced on every child `<wr-btn>`. Child `[shape]`
|
|
164
|
+
* inputs are ignored when this is set — the group exists to make a
|
|
165
|
+
* uniform control. `null` (default) leaves children alone.
|
|
166
|
+
*
|
|
167
|
+
* @default null
|
|
168
|
+
*/
|
|
169
|
+
readonly shape: _angular_core.InputSignal<WrButtonShape | null>;
|
|
170
|
+
protected readonly hostClasses: _angular_core.Signal<string>;
|
|
171
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrButtonGroup, never>;
|
|
172
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrButtonGroup, "wr-btn-group", never, { "shape": { "alias": "shape"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export { WrButton, WrButtonGroup };
|
|
176
|
+
export type { WrButtonIconPosition, WrButtonShape, WrButtonSize };
|