ngwr 6.1.1 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/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-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 +266 -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 +361 -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 +576 -99
- 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 +83 -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 +356 -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 +102 -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-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 +164 -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,155 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef } 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
|
+
/** Side of the viewport the drawer slides in from. */
|
|
11
|
+
type WrDrawerPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Side panel that slides in from an edge of the viewport. Two-way binds
|
|
15
|
+
* `open` and renders into a CDK overlay so it sits above page content.
|
|
16
|
+
*
|
|
17
|
+
* Compose the body with `<wrDrawerTitle>`, `<wrDrawerContent>`, and
|
|
18
|
+
* `<wrDrawerFooter>` directives.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```html
|
|
22
|
+
* <wr-drawer [(open)]="settingsOpen" position="right" width="24rem">
|
|
23
|
+
* <h2 wrDrawerTitle>Settings</h2>
|
|
24
|
+
* <div wrDrawerContent>...</div>
|
|
25
|
+
* <div wrDrawerFooter>
|
|
26
|
+
* <wr-btn wrDrawerClose>Close</wr-btn>
|
|
27
|
+
* </div>
|
|
28
|
+
* </wr-drawer>
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @see https://ngwr.dev/components/drawer
|
|
32
|
+
*/
|
|
33
|
+
declare class WrDrawer {
|
|
34
|
+
/** Two-way bindable open state. */
|
|
35
|
+
readonly open: _angular_core.ModelSignal<boolean>;
|
|
36
|
+
/** Side the drawer slides in from. @default 'right' */
|
|
37
|
+
readonly position: _angular_core.InputSignal<WrDrawerPosition>;
|
|
38
|
+
/** Width when position is left/right. Any CSS length. @default '20rem' */
|
|
39
|
+
readonly width: _angular_core.InputSignal<string>;
|
|
40
|
+
/** Height when position is top/bottom. Any CSS length. @default '16rem' */
|
|
41
|
+
readonly height: _angular_core.InputSignal<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Upper cap on height (top/bottom positions). Useful for bottom sheets
|
|
44
|
+
* that should grow with content up to a viewport-relative max.
|
|
45
|
+
* Any CSS length. @default null (no cap)
|
|
46
|
+
*/
|
|
47
|
+
readonly maxHeight: _angular_core.InputSignal<string | null>;
|
|
48
|
+
/**
|
|
49
|
+
* Round the leading corners — the edge facing the viewport interior.
|
|
50
|
+
* Common bottom-sheet styling. @default false
|
|
51
|
+
*/
|
|
52
|
+
readonly rounded: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
53
|
+
/**
|
|
54
|
+
* Render a grab handle at the leading edge. Visual affordance for
|
|
55
|
+
* "swipe to dismiss" patterns. Cosmetic — no swipe logic attached.
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
readonly showHandle: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
59
|
+
/**
|
|
60
|
+
* Pad the trailing edge with `env(safe-area-inset-*)` so content
|
|
61
|
+
* doesn't sit under the iOS home indicator. @default false
|
|
62
|
+
*/
|
|
63
|
+
readonly safeArea: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
64
|
+
/** Show the dimming backdrop. @default true */
|
|
65
|
+
readonly hasBackdrop: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
66
|
+
/** Close when the backdrop is clicked. @default true */
|
|
67
|
+
readonly closeOnBackdropClick: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
68
|
+
/** Close on Escape. @default true */
|
|
69
|
+
readonly closeOnEscape: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
70
|
+
protected readonly panelTpl: _angular_core.Signal<TemplateRef<any>>;
|
|
71
|
+
protected panelClass(): string;
|
|
72
|
+
private readonly overlay;
|
|
73
|
+
private readonly vcr;
|
|
74
|
+
private readonly destroyRef;
|
|
75
|
+
private readonly focusTrapFactory;
|
|
76
|
+
private readonly isBrowser;
|
|
77
|
+
private overlayRef;
|
|
78
|
+
private focusTrap;
|
|
79
|
+
private previouslyFocused;
|
|
80
|
+
constructor();
|
|
81
|
+
private openOverlay;
|
|
82
|
+
private closeOverlay;
|
|
83
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrDrawer, never>;
|
|
84
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrDrawer, "wr-drawer", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "showHandle": { "alias": "showHandle"; "required": false; "isSignal": true; }; "safeArea": { "alias": "safeArea"; "required": false; "isSignal": true; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; "isSignal": true; }; "closeOnBackdropClick": { "alias": "closeOnBackdropClick"; "required": false; "isSignal": true; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; "isSignal": true; }; }, { "open": "openChange"; }, never, ["*"], true, never>;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Marks an element as the drawer's title row. Applies the `wr-drawer__title`
|
|
89
|
+
* class so the drawer's stylesheet can lay it out alongside content and
|
|
90
|
+
* footer slots. Auto-assigns an `id` so the drawer panel references it via
|
|
91
|
+
* `aria-labelledby`.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```html
|
|
95
|
+
* <wr-drawer [(open)]="open">
|
|
96
|
+
* <h2 wrDrawerTitle>Settings</h2>
|
|
97
|
+
* <div wrDrawerContent>…</div>
|
|
98
|
+
* </wr-drawer>
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
declare class WrDrawerTitle {
|
|
102
|
+
/** Generated id used by the drawer panel for `aria-labelledby`. */
|
|
103
|
+
readonly id: string;
|
|
104
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrDrawerTitle, never>;
|
|
105
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<WrDrawerTitle, "[wrDrawerTitle]", never, {}, {}, never, never, true, never>;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Marks the scrollable body of the drawer. Applies the `wr-drawer__content`
|
|
110
|
+
* class so the panel's flex layout can stretch it between the title and the
|
|
111
|
+
* footer.
|
|
112
|
+
*/
|
|
113
|
+
declare class WrDrawerContent {
|
|
114
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrDrawerContent, never>;
|
|
115
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<WrDrawerContent, "[wrDrawerContent]", never, {}, {}, never, never, true, never>;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Marks the action row pinned to the bottom of the drawer. Adds the
|
|
120
|
+
* `wr-drawer__footer` class plus an alignment modifier so action buttons
|
|
121
|
+
* can sit at the start, center, or end of the row.
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* ```html
|
|
125
|
+
* <div wrDrawerFooter align="end">
|
|
126
|
+
* <wr-btn wrDrawerClose>Cancel</wr-btn>
|
|
127
|
+
* <wr-btn color="primary" (click)="save()">Save</wr-btn>
|
|
128
|
+
* </div>
|
|
129
|
+
* ```
|
|
130
|
+
*/
|
|
131
|
+
declare class WrDrawerFooter {
|
|
132
|
+
/** Horizontal alignment of footer content. @default 'end' */
|
|
133
|
+
readonly align: _angular_core.InputSignal<"center" | "start" | "end">;
|
|
134
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
135
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrDrawerFooter, never>;
|
|
136
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<WrDrawerFooter, "[wrDrawerFooter]", never, { "align": { "alias": "align"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Closes the parent drawer on click. Attach to any clickable element.
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* ```html
|
|
144
|
+
* <wr-btn wrDrawerClose>Close</wr-btn>
|
|
145
|
+
* ```
|
|
146
|
+
*/
|
|
147
|
+
declare class WrDrawerClose {
|
|
148
|
+
private readonly drawer;
|
|
149
|
+
protected close(): void;
|
|
150
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrDrawerClose, never>;
|
|
151
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<WrDrawerClose, "[wrDrawerClose]", never, {}, {}, never, never, true, never>;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export { WrDrawer, WrDrawerClose, WrDrawerContent, WrDrawerFooter, WrDrawerTitle };
|
|
155
|
+
export type { WrDrawerPosition };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Holds the menu content rendered when a {@link WrDropdown} opens.
|
|
6
|
+
*
|
|
7
|
+
* The component itself doesn't render anywhere — the directive grabs its
|
|
8
|
+
* internal `<ng-template>` and portals it into an overlay.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```html
|
|
12
|
+
* <button [wrDropdown]="menu">Actions</button>
|
|
13
|
+
* <wr-dropdown-menu #menu>
|
|
14
|
+
* <wr-dropdown-item icon="copy">Copy</wr-dropdown-item>
|
|
15
|
+
* <wr-dropdown-item icon="trash">Delete</wr-dropdown-item>
|
|
16
|
+
* </wr-dropdown-menu>
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @see https://ngwr.dev/components/dropdown
|
|
20
|
+
*/
|
|
21
|
+
declare class WrDropdownMenu {
|
|
22
|
+
/** The internal template the directive portals into the overlay. @internal */
|
|
23
|
+
readonly contentTpl: _angular_core.Signal<TemplateRef<any>>;
|
|
24
|
+
/** Stable id used on the menu element and referenced from the trigger's `aria-controls`. */
|
|
25
|
+
readonly menuId: _angular_core.WritableSignal<string>;
|
|
26
|
+
/** Trigger element id, set by the directive for `aria-labelledby` wiring. */
|
|
27
|
+
readonly triggerId: _angular_core.WritableSignal<string | null>;
|
|
28
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrDropdownMenu, never>;
|
|
29
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrDropdownMenu, "wr-dropdown-menu", ["wrDropdownMenu"], {}, {}, never, ["*"], true, never>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @license
|
|
34
|
+
*
|
|
35
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
36
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Where the dropdown menu opens, relative to the trigger.
|
|
41
|
+
*/
|
|
42
|
+
type WrDropdownPosition = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'right';
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @license
|
|
46
|
+
*
|
|
47
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
48
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
49
|
+
*/
|
|
50
|
+
/**
|
|
51
|
+
* How the dropdown menu is opened.
|
|
52
|
+
*/
|
|
53
|
+
type WrDropdownTrigger = 'click' | 'hover';
|
|
54
|
+
|
|
55
|
+
declare class WrDropdown {
|
|
56
|
+
/** Menu to open. Pass a `<wr-dropdown-menu>` template reference. */
|
|
57
|
+
readonly menu: _angular_core.InputSignal<WrDropdownMenu>;
|
|
58
|
+
/** How the menu opens. @default 'click' */
|
|
59
|
+
readonly trigger: _angular_core.InputSignal<WrDropdownTrigger>;
|
|
60
|
+
/** Where the menu anchors relative to the trigger. @default 'bottom-start' */
|
|
61
|
+
readonly position: _angular_core.InputSignal<WrDropdownPosition>;
|
|
62
|
+
/** Fires after the menu opens. */
|
|
63
|
+
readonly opened: _angular_core.OutputEmitterRef<void>;
|
|
64
|
+
/** Fires after the menu closes. */
|
|
65
|
+
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
66
|
+
private readonly host;
|
|
67
|
+
private readonly overlay;
|
|
68
|
+
private readonly vcr;
|
|
69
|
+
private readonly scrollStrategies;
|
|
70
|
+
private readonly destroyRef;
|
|
71
|
+
/** @internal Public so host bindings can read it. */
|
|
72
|
+
readonly isOpen: _angular_core.WritableSignal<boolean>;
|
|
73
|
+
/** Auto-generated id for `aria-labelledby` wiring on the menu. */
|
|
74
|
+
protected readonly triggerId: string;
|
|
75
|
+
private overlayRef;
|
|
76
|
+
constructor();
|
|
77
|
+
/** Open the menu. */
|
|
78
|
+
open(): void;
|
|
79
|
+
/** Close the menu. */
|
|
80
|
+
close(): void;
|
|
81
|
+
/** Toggle the menu. */
|
|
82
|
+
toggle(): void;
|
|
83
|
+
/** @internal */
|
|
84
|
+
protected onClick(event: MouseEvent): void;
|
|
85
|
+
/** @internal */
|
|
86
|
+
protected onMouseEnter(): void;
|
|
87
|
+
/** @internal */
|
|
88
|
+
protected onMouseLeave(event: MouseEvent): void;
|
|
89
|
+
private openOverlay;
|
|
90
|
+
private closeOverlay;
|
|
91
|
+
/** @internal Trigger keydown — ArrowDown/Up/Enter/Space open the menu. */
|
|
92
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
93
|
+
private handleMenuKeydown;
|
|
94
|
+
private getItems;
|
|
95
|
+
private focusItemAt;
|
|
96
|
+
private readonly onOverlayMouseLeave;
|
|
97
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrDropdown, never>;
|
|
98
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<WrDropdown, "[wrDropdown]", never, { "menu": { "alias": "wrDropdown"; "required": true; "isSignal": true; }; "trigger": { "alias": "trigger"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; }, { "opened": "opened"; "closed": "closed"; }, never, never, true, never>;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Single row inside a `<wr-dropdown-menu>`.
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* ```html
|
|
106
|
+
* <wr-dropdown-item icon="copy" (click)="copy()">Copy</wr-dropdown-item>
|
|
107
|
+
* <wr-dropdown-item icon="trash" disabled>Delete</wr-dropdown-item>
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
declare class WrDropdownItem {
|
|
111
|
+
/** Optional leading icon name. @default null */
|
|
112
|
+
readonly icon: _angular_core.InputSignal<string | null>;
|
|
113
|
+
/** Disable interaction (suppresses pointer + keyboard). @default false */
|
|
114
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
115
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
116
|
+
private readonly host;
|
|
117
|
+
/** @internal Keyboard activation — fires the same click consumers bind to. */
|
|
118
|
+
protected activate(event: Event): void;
|
|
119
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrDropdownItem, never>;
|
|
120
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrDropdownItem, "wr-dropdown-item", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export { WrDropdown, WrDropdownItem, WrDropdownMenu };
|
|
124
|
+
export type { WrDropdownPosition, WrDropdownTrigger };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Empty-state placeholder. Drop into any container where the underlying
|
|
5
|
+
* data is missing (search yielded nothing, table is empty, etc.).
|
|
6
|
+
*
|
|
7
|
+
* Slots:
|
|
8
|
+
*
|
|
9
|
+
* - **Default** — primary description / instructions.
|
|
10
|
+
* - **`[wrEmptyActions]`** — action row rendered below the description.
|
|
11
|
+
*
|
|
12
|
+
* Localization: the default headline reads from the `empty.noData` key in
|
|
13
|
+
* the registered `WrI18n` catalog, falling back to `'No data'` when no
|
|
14
|
+
* `WrI18n` is provided. The `[title]` input always wins when set.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```html
|
|
18
|
+
* <wr-empty icon="search" title="No results">
|
|
19
|
+
* Try a different query or clear filters.
|
|
20
|
+
* <ng-container wrEmptyActions>
|
|
21
|
+
* <wr-btn (click)="reset()">Reset filters</wr-btn>
|
|
22
|
+
* </ng-container>
|
|
23
|
+
* </wr-empty>
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @see https://ngwr.dev/components/empty
|
|
27
|
+
*/
|
|
28
|
+
declare class WrEmpty {
|
|
29
|
+
/** Icon name shown above the title. @default 'folder' */
|
|
30
|
+
readonly icon: _angular_core.InputSignal<string | null>;
|
|
31
|
+
/** Headline. Falls back to `empty.noData` from WrI18n, then `'No data'`. */
|
|
32
|
+
readonly title: _angular_core.InputSignal<string | null>;
|
|
33
|
+
protected readonly resolvedTitle: _angular_core.Signal<string>;
|
|
34
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrEmpty, never>;
|
|
35
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrEmpty, "wr-empty", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; }, {}, never, ["*", "[wrEmptyActions]"], true, never>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { WrEmpty };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
type WrFallingTextTrigger = 'auto' | 'scroll' | 'hover' | 'click';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Words fall like physical bodies — gravity, wall/floor collision, and
|
|
7
|
+
* cursor drag-to-pick-up. Words start at their typeset position then
|
|
8
|
+
* release into the simulator on trigger.
|
|
9
|
+
*
|
|
10
|
+
* Triggers:
|
|
11
|
+
* - `'auto'` release immediately on mount
|
|
12
|
+
* - `'scroll'` release on viewport entry
|
|
13
|
+
* - `'hover'` release on first hover
|
|
14
|
+
* - `'click'` release on first click
|
|
15
|
+
*
|
|
16
|
+
* Highlight specific words by passing prefix-matched keywords via
|
|
17
|
+
* `[highlightWords]` — matched spans get `wr-falling-text__word--hl`.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```html
|
|
21
|
+
* <wr-falling-text
|
|
22
|
+
* text="React-Bits is a library of animated and interactive React components."
|
|
23
|
+
* [highlightWords]="['React', 'animated', 'components']"
|
|
24
|
+
* trigger="hover"
|
|
25
|
+
* [gravity]="0.6"
|
|
26
|
+
* />
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @see https://www.reactbits.dev/text-animations/falling-text
|
|
30
|
+
*/
|
|
31
|
+
declare class WrFallingText {
|
|
32
|
+
/** Text to render. Words are separated by spaces. */
|
|
33
|
+
readonly text: _angular_core.InputSignal<string>;
|
|
34
|
+
/** Prefix-match keywords; any word starting with one of these gets the highlight class. */
|
|
35
|
+
readonly highlightWords: _angular_core.InputSignal<readonly string[]>;
|
|
36
|
+
/** When to release the words into the simulator. @default 'auto' */
|
|
37
|
+
readonly trigger: _angular_core.InputSignal<WrFallingTextTrigger>;
|
|
38
|
+
/** Gravity in pixels/sec². @default 980 */
|
|
39
|
+
readonly gravity: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
40
|
+
/** Font size as a CSS length. @default '1rem' */
|
|
41
|
+
readonly fontSize: _angular_core.InputSignal<string>;
|
|
42
|
+
private readonly wordsRef;
|
|
43
|
+
private readonly host;
|
|
44
|
+
private readonly destroyRef;
|
|
45
|
+
private readonly isBrowser;
|
|
46
|
+
private readonly platform;
|
|
47
|
+
private started;
|
|
48
|
+
private teardownLoop;
|
|
49
|
+
protected readonly words: _angular_core.Signal<readonly {
|
|
50
|
+
text: string;
|
|
51
|
+
highlighted: boolean;
|
|
52
|
+
}[]>;
|
|
53
|
+
constructor();
|
|
54
|
+
private start;
|
|
55
|
+
/** Apply the body's position + angle to the DOM. */
|
|
56
|
+
private commit;
|
|
57
|
+
private toLocal;
|
|
58
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrFallingText, never>;
|
|
59
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrFallingText, "wr-falling-text", never, { "text": { "alias": "text"; "required": true; "isSignal": true; }; "highlightWords": { "alias": "highlightWords"; "required": false; "isSignal": true; }; "trigger": { "alias": "trigger"; "required": false; "isSignal": true; }; "gravity": { "alias": "gravity"; "required": false; "isSignal": true; }; "fontSize": { "alias": "fontSize"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export { WrFallingText };
|
|
63
|
+
export type { WrFallingTextTrigger };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
3
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @license
|
|
7
|
+
*
|
|
8
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
9
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
10
|
+
*/
|
|
11
|
+
/** Why a dropped / picked file was rejected. */
|
|
12
|
+
type WrFileUploadRejectionReason = 'type' | 'size' | 'count';
|
|
13
|
+
/** A single rejected file + the reason. Emitted via `(rejected)`. */
|
|
14
|
+
interface WrFileUploadRejection {
|
|
15
|
+
readonly file: File;
|
|
16
|
+
readonly reason: WrFileUploadRejectionReason;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** Human-readable byte size (e.g. `1.2 MB`). */
|
|
20
|
+
declare function formatBytes(bytes: number): string;
|
|
21
|
+
/**
|
|
22
|
+
* Drag-and-drop file upload zone. Click to browse, drag-and-drop to add,
|
|
23
|
+
* with an optional file list + remove buttons.
|
|
24
|
+
*
|
|
25
|
+
* Implements `ControlValueAccessor` — value is `File | File[] | null`
|
|
26
|
+
* (single or array, governed by `multiple`).
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```html
|
|
30
|
+
* <wr-file-upload [(ngModel)]="files" [multiple]="true" accept="image/*" />
|
|
31
|
+
* <wr-file-upload [(ngModel)]="avatar" accept=".png,.jpg" [maxSize]="2 * 1024 * 1024" />
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @see https://ngwr.dev/components/file-upload
|
|
35
|
+
*/
|
|
36
|
+
declare class WrFileUpload implements ControlValueAccessor {
|
|
37
|
+
/** Allow multiple files. Single mode replaces on each add. @default false */
|
|
38
|
+
readonly multiple: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
39
|
+
/** `accept` attribute — comma-separated MIME types or extensions. @default '' */
|
|
40
|
+
readonly accept: _angular_core.InputSignal<string>;
|
|
41
|
+
/** Max bytes per file. `0` disables the check. @default 0 */
|
|
42
|
+
readonly maxSize: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
43
|
+
/** Max files (multi mode only). `0` disables the check. @default 0 */
|
|
44
|
+
readonly maxFiles: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
45
|
+
/** Render the picked-files list below the zone. @default true */
|
|
46
|
+
readonly showList: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
47
|
+
/** Disable interaction. @default false */
|
|
48
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
49
|
+
/** Primary call-to-action label. Falls back to `fileUpload.browse`. */
|
|
50
|
+
readonly pickLabel: _angular_core.InputSignal<string | null>;
|
|
51
|
+
/** Secondary instruction below the CTA. Falls back to `fileUpload.dropZone`. */
|
|
52
|
+
readonly dropLabel: _angular_core.InputSignal<string | null>;
|
|
53
|
+
/** Drop-zone host aria-label. Falls back to `fileUpload.dropZoneLabel`. */
|
|
54
|
+
readonly dropZoneLabel: _angular_core.InputSignal<string | null>;
|
|
55
|
+
/** Remove-file button aria-label. Falls back to `fileUpload.removeFile`. */
|
|
56
|
+
readonly removeFileLabel: _angular_core.InputSignal<string | null>;
|
|
57
|
+
protected readonly resolvedPick: _angular_core.Signal<string>;
|
|
58
|
+
protected readonly resolvedDrop: _angular_core.Signal<string>;
|
|
59
|
+
protected readonly resolvedDropZone: _angular_core.Signal<string>;
|
|
60
|
+
protected readonly resolvedRemove: _angular_core.Signal<string>;
|
|
61
|
+
/** Optional helper text shown below the labels (e.g. accepted formats). */
|
|
62
|
+
readonly helperText: _angular_core.InputSignal<string>;
|
|
63
|
+
/** Emitted when files are rejected for type / size / count reasons. */
|
|
64
|
+
readonly rejected: _angular_core.OutputEmitterRef<readonly WrFileUploadRejection[]>;
|
|
65
|
+
protected readonly picker: _angular_core.Signal<ElementRef<HTMLInputElement>>;
|
|
66
|
+
protected readonly files: _angular_core.WritableSignal<readonly File[]>;
|
|
67
|
+
protected readonly dragging: _angular_core.WritableSignal<boolean>;
|
|
68
|
+
private readonly disabledFromCva;
|
|
69
|
+
protected readonly effectiveDisabled: _angular_core.Signal<boolean>;
|
|
70
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
71
|
+
protected readonly formatBytes: typeof formatBytes;
|
|
72
|
+
private onChange;
|
|
73
|
+
private onTouched;
|
|
74
|
+
writeValue(value: File | readonly File[] | null): void;
|
|
75
|
+
registerOnChange(fn: (value: File | readonly File[] | null) => void): void;
|
|
76
|
+
registerOnTouched(fn: () => void): void;
|
|
77
|
+
setDisabledState(isDisabled: boolean): void;
|
|
78
|
+
protected openPicker(): void;
|
|
79
|
+
protected onZoneKey(event: KeyboardEvent): void;
|
|
80
|
+
protected onPickerChange(event: Event): void;
|
|
81
|
+
protected onDragEnter(event: DragEvent): void;
|
|
82
|
+
protected onDragOver(event: DragEvent): void;
|
|
83
|
+
protected onDragLeave(event: DragEvent): void;
|
|
84
|
+
protected onDrop(event: DragEvent): void;
|
|
85
|
+
protected removeAt(index: number): void;
|
|
86
|
+
private acceptFiles;
|
|
87
|
+
private reject;
|
|
88
|
+
private emit;
|
|
89
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrFileUpload, never>;
|
|
90
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrFileUpload, "wr-file-upload", never, { "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "accept": { "alias": "accept"; "required": false; "isSignal": true; }; "maxSize": { "alias": "maxSize"; "required": false; "isSignal": true; }; "maxFiles": { "alias": "maxFiles"; "required": false; "isSignal": true; }; "showList": { "alias": "showList"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "pickLabel": { "alias": "pickLabel"; "required": false; "isSignal": true; }; "dropLabel": { "alias": "dropLabel"; "required": false; "isSignal": true; }; "dropZoneLabel": { "alias": "dropZoneLabel"; "required": false; "isSignal": true; }; "removeFileLabel": { "alias": "removeFileLabel"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; }, { "rejected": "rejected"; }, never, never, true, never>;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export { WrFileUpload };
|
|
94
|
+
export type { WrFileUploadRejection, WrFileUploadRejectionReason };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as _angular_forms from '@angular/forms';
|
|
3
|
+
import { NgControl } from '@angular/forms';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Wraps a label + control + error message into a single field row.
|
|
7
|
+
*
|
|
8
|
+
* Toggle `hasError` to apply error styling to the projected label and
|
|
9
|
+
* any descendant input / textarea / checkbox.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <wr-form-item [hasError]="form.controls.email.invalid">
|
|
14
|
+
* <label>Email</label>
|
|
15
|
+
* <wr-input formControlName="email" />
|
|
16
|
+
* <wr-form-error>Invalid email</wr-form-error>
|
|
17
|
+
* </wr-form-item>
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @see https://ngwr.dev/components/form
|
|
21
|
+
*/
|
|
22
|
+
declare class WrFormItem {
|
|
23
|
+
/**
|
|
24
|
+
* When `true`, applies error coloring to the projected label and inputs.
|
|
25
|
+
*
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
readonly hasError: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
29
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
30
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrFormItem, never>;
|
|
31
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrFormItem, "wr-form-item", never, { "hasError": { "alias": "hasError"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Wraps a label + control + hint + error messages into a single block —
|
|
36
|
+
* the layout primitive every form ends up reinventing.
|
|
37
|
+
*
|
|
38
|
+
* - Auto-binds `label[for]` to the projected control via a generated id
|
|
39
|
+
* (or use the form-control's `[id]` if you set one).
|
|
40
|
+
* - Reads the projected control's `NgControl` to surface validation
|
|
41
|
+
* errors only when the control has been touched / submitted.
|
|
42
|
+
* - Optional `[required]` / `[optional]` markers next to the label.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```html
|
|
46
|
+
* <wr-form-field label="Email" hint="We'll never share it.">
|
|
47
|
+
* <input wrInput [formControl]="email" type="email" />
|
|
48
|
+
* <wr-form-error key="required">Email is required.</wr-form-error>
|
|
49
|
+
* <wr-form-error key="email">Not a valid email.</wr-form-error>
|
|
50
|
+
* </wr-form-field>
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @see https://ngwr.dev/components/form-field
|
|
54
|
+
*/
|
|
55
|
+
declare class WrFormField {
|
|
56
|
+
/** Label text shown above the control. */
|
|
57
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
58
|
+
/** Hint text shown below the control. Hidden when an error is visible. */
|
|
59
|
+
readonly hint: _angular_core.InputSignal<string>;
|
|
60
|
+
/** Show a `*` next to the label. @default false */
|
|
61
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
62
|
+
/** Show `(optional)` next to the label. Mutually exclusive with `required`. @default false */
|
|
63
|
+
readonly optional: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
64
|
+
/** Force a specific id on the label's `for` attribute. Auto-generated otherwise. */
|
|
65
|
+
readonly controlId: _angular_core.InputSignal<string>;
|
|
66
|
+
/** Projected `NgControl` — used to read touched / dirty / errors. */
|
|
67
|
+
protected readonly ngControl: _angular_core.Signal<NgControl | undefined>;
|
|
68
|
+
protected readonly errors: _angular_core.Signal<_angular_forms.ValidationErrors | null>;
|
|
69
|
+
protected readonly hasError: _angular_core.Signal<boolean>;
|
|
70
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
71
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrFormField, never>;
|
|
72
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrFormField, "wr-form-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "optional": { "alias": "optional"; "required": false; "isSignal": true; }; "controlId": { "alias": "controlId"; "required": false; "isSignal": true; }; }, {}, ["ngControl"], ["*", "wr-form-error"], true, never>;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* One error message tied to a validator key. Renders only when the
|
|
76
|
+
* parent form-field has a matching error in `control.errors`.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```html
|
|
80
|
+
* <wr-form-error key="required">This field is required.</wr-form-error>
|
|
81
|
+
* <wr-form-error key="email">That doesn't look right.</wr-form-error>
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
declare class WrFormError {
|
|
85
|
+
/**
|
|
86
|
+
* Validator key this message corresponds to (e.g. `'required'`).
|
|
87
|
+
* Optional — without a key the message always renders, which is the
|
|
88
|
+
* plain inline-error usage inside `<wr-form-item>`.
|
|
89
|
+
*/
|
|
90
|
+
readonly key: _angular_core.InputSignal<string | undefined>;
|
|
91
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrFormError, never>;
|
|
92
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrFormError, "wr-form-error", never, { "key": { "alias": "key"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export { WrFormError, WrFormField, WrFormItem };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
type WrFuzzyTextDirection = 'horizontal' | 'vertical' | 'both';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Canvas-rendered "fuzzy" text — each row/column of glyphs is offset by
|
|
7
|
+
* a random amount per frame, giving the text a TV-static or motion-blur
|
|
8
|
+
* appearance. Intensity ramps up on hover, click, and during periodic
|
|
9
|
+
* glitch bursts (configurable).
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <wr-fuzzy-text text="404" />
|
|
14
|
+
* <wr-fuzzy-text
|
|
15
|
+
* text="HELLO"
|
|
16
|
+
* color="#0ea5e9"
|
|
17
|
+
* [fuzzRange]="50"
|
|
18
|
+
* [hoverIntensity]="0.8"
|
|
19
|
+
* [glitchMode]="true"
|
|
20
|
+
* />
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @see https://www.reactbits.dev/text-animations/fuzzy-text
|
|
24
|
+
*/
|
|
25
|
+
declare class WrFuzzyText {
|
|
26
|
+
/** Text to render. */
|
|
27
|
+
readonly text: _angular_core.InputSignal<string>;
|
|
28
|
+
/** Font size as CSS length (`'4rem'`, `'72px'`, …) or px number. @default 'clamp(2rem, 10vw, 10rem)' */
|
|
29
|
+
readonly fontSize: _angular_core.InputSignal<string | number>;
|
|
30
|
+
/** Font weight. @default 900 */
|
|
31
|
+
readonly fontWeight: _angular_core.InputSignal<string | number>;
|
|
32
|
+
/** Font family. `'inherit'` reads the canvas's computed style. @default 'inherit' */
|
|
33
|
+
readonly fontFamily: _angular_core.InputSignal<string>;
|
|
34
|
+
/** Text colour. Ignored if `[gradient]` is set. @default '#fff' */
|
|
35
|
+
readonly color: _angular_core.InputSignal<string>;
|
|
36
|
+
/** Optional horizontal gradient stops. */
|
|
37
|
+
readonly gradient: _angular_core.InputSignal<readonly string[] | null>;
|
|
38
|
+
/** Enable hover / touch reactivity. @default true */
|
|
39
|
+
readonly enableHover: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
40
|
+
/** Base intensity (0..1) when idle. @default 0.18 */
|
|
41
|
+
readonly baseIntensity: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
42
|
+
/** Intensity (0..1) while the pointer hovers the text. @default 0.5 */
|
|
43
|
+
readonly hoverIntensity: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
44
|
+
/** Max pixel displacement per row/column at intensity 1. @default 30 */
|
|
45
|
+
readonly fuzzRange: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
46
|
+
/** Frame rate cap. @default 60 */
|
|
47
|
+
readonly fps: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
48
|
+
/** Fuzz direction. @default 'horizontal' */
|
|
49
|
+
readonly direction: _angular_core.InputSignal<WrFuzzyTextDirection>;
|
|
50
|
+
/** Ms to ease intensity toward target. `0` snaps. @default 0 */
|
|
51
|
+
readonly transitionDuration: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
52
|
+
/** Spike to full intensity briefly on click. @default false */
|
|
53
|
+
readonly clickEffect: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
54
|
+
/** Periodic "glitch" bursts at full intensity. @default false */
|
|
55
|
+
readonly glitchMode: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
56
|
+
/** Ms between glitch bursts. @default 2000 */
|
|
57
|
+
readonly glitchInterval: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
58
|
+
/** Ms a glitch burst lasts. @default 200 */
|
|
59
|
+
readonly glitchDuration: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
60
|
+
/** Extra pixels between glyphs. @default 0 */
|
|
61
|
+
readonly letterSpacing: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
62
|
+
private readonly canvasRef;
|
|
63
|
+
private readonly destroyRef;
|
|
64
|
+
private readonly isBrowser;
|
|
65
|
+
private readonly platform;
|
|
66
|
+
private teardown;
|
|
67
|
+
constructor();
|
|
68
|
+
private init;
|
|
69
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrFuzzyText, never>;
|
|
70
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrFuzzyText, "wr-fuzzy-text", never, { "text": { "alias": "text"; "required": true; "isSignal": true; }; "fontSize": { "alias": "fontSize"; "required": false; "isSignal": true; }; "fontWeight": { "alias": "fontWeight"; "required": false; "isSignal": true; }; "fontFamily": { "alias": "fontFamily"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "gradient": { "alias": "gradient"; "required": false; "isSignal": true; }; "enableHover": { "alias": "enableHover"; "required": false; "isSignal": true; }; "baseIntensity": { "alias": "baseIntensity"; "required": false; "isSignal": true; }; "hoverIntensity": { "alias": "hoverIntensity"; "required": false; "isSignal": true; }; "fuzzRange": { "alias": "fuzzRange"; "required": false; "isSignal": true; }; "fps": { "alias": "fps"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "transitionDuration": { "alias": "transitionDuration"; "required": false; "isSignal": true; }; "clickEffect": { "alias": "clickEffect"; "required": false; "isSignal": true; }; "glitchMode": { "alias": "glitchMode"; "required": false; "isSignal": true; }; "glitchInterval": { "alias": "glitchInterval"; "required": false; "isSignal": true; }; "glitchDuration": { "alias": "glitchDuration"; "required": false; "isSignal": true; }; "letterSpacing": { "alias": "letterSpacing"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export { WrFuzzyText };
|
|
74
|
+
export type { WrFuzzyTextDirection };
|