ngwr 6.0.0 → 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 -383
- 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 -650
- 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 +168 -190
- 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 +842 -307
- 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 +218 -207
- 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/{alert/alert-type.d.ts → schematics/component-style/schema.js} +2 -1
- package/schematics/component-style/schema.json +20 -0
- package/schematics/icon-set/index.js +96 -0
- package/{avatar/public-api.d.ts → schematics/icon-set/schema.js} +2 -1
- 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/{cdk/public-api.d.ts → schematics/ng-add/schema.js} +2 -1
- package/schematics/ng-add/schema.json +80 -0
- package/schematics/page/index.js +63 -0
- package/{alert/public-api.d.ts → schematics/page/schema.js} +2 -2
- 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/types/ngwr.d.ts +2 -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/alert.component.d.ts +0 -21
- package/alert/index.d.ts +0 -5
- package/alert/styles/theming.scss +0 -26
- package/alert/styles/vars.scss +0 -11
- package/avatar/avatar.component.d.ts +0 -27
- package/avatar/index.d.ts +0 -5
- package/button/button-group.component.d.ts +0 -12
- package/button/button.component.d.ts +0 -31
- package/button/index.d.ts +0 -5
- package/button/public-api.d.ts +0 -8
- package/button/styles/vars.scss +0 -13
- package/cdk/base.directive.d.ts +0 -20
- package/cdk/index.d.ts +0 -5
- package/cdk/rxjs/index.d.ts +0 -5
- package/cdk/rxjs/is-array.d.ts +0 -8
- package/cdk/rxjs/is-defined.d.ts +0 -8
- package/cdk/rxjs/is-not-empty-array.d.ts +0 -8
- package/cdk/rxjs/is-observable.d.ts +0 -9
- package/cdk/rxjs/public-api.d.ts +0 -10
- package/cdk/types/index.d.ts +0 -5
- package/cdk/types/maybe.d.ts +0 -7
- package/cdk/types/public-api.d.ts +0 -9
- package/cdk/types/safe-any.d.ts +0 -7
- package/cdk/types/theme-color.d.ts +0 -8
- package/cdk/utils/generate-random-id.d.ts +0 -12
- package/cdk/utils/index.d.ts +0 -5
- package/cdk/utils/public-api.d.ts +0 -7
- package/checkbox/checkbox.component.d.ts +0 -28
- package/checkbox/index.d.ts +0 -5
- package/checkbox/public-api.d.ts +0 -7
- package/checkbox/styles/vars.scss +0 -16
- package/dialog/dialog-animations.d.ts +0 -22
- package/dialog/dialog-base.directive.d.ts +0 -40
- package/dialog/dialog-close.directive.d.ts +0 -9
- package/dialog/dialog-content.directive.d.ts +0 -6
- package/dialog/dialog-data.token.d.ts +0 -8
- package/dialog/dialog-footer.directive.d.ts +0 -8
- package/dialog/dialog-options.d.ts +0 -19
- package/dialog/dialog-ref.d.ts +0 -26
- package/dialog/dialog-title.directive.d.ts +0 -6
- package/dialog/dialog.component.d.ts +0 -28
- package/dialog/dialog.module.d.ts +0 -6
- package/dialog/dialog.service.d.ts +0 -28
- package/dialog/index.d.ts +0 -5
- package/dialog/public-api.d.ts +0 -18
- package/dialog/styles/vars.scss +0 -7
- package/divider/divider.component.d.ts +0 -13
- package/divider/index.d.ts +0 -5
- package/divider/public-api.d.ts +0 -7
- package/dropdown/dropdown-menu-item.component.d.ts +0 -12
- package/dropdown/dropdown-menu.component.d.ts +0 -14
- package/dropdown/dropdown.directive.d.ts +0 -29
- package/dropdown/dropdown.types.d.ts +0 -9
- package/dropdown/index.d.ts +0 -5
- package/dropdown/public-api.d.ts +0 -10
- 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/form-error.component.d.ts +0 -11
- package/form/form-item.component.d.ts +0 -14
- package/form/index.d.ts +0 -5
- package/form/public-api.d.ts +0 -8
- package/icon/icon.component.d.ts +0 -24
- package/icon/icon.service.d.ts +0 -23
- package/icon/icons.d.ts +0 -770
- package/icon/index.d.ts +0 -5
- package/icon/provide-wr-icons.d.ts +0 -9
- package/icon/public-api.d.ts +0 -10
- package/icon/styles/vars.scss +0 -3
- package/index.d.ts +0 -5
- package/input/index.d.ts +0 -5
- package/input/input-types.d.ts +0 -1
- package/input/input.component.d.ts +0 -38
- package/input/public-api.d.ts +0 -8
- package/input/styles/vars.scss +0 -17
- package/pagination/index.d.ts +0 -5
- package/pagination/pagination.component.d.ts +0 -23
- package/pagination/pagination.types.d.ts +0 -7
- package/pagination/public-api.d.ts +0 -8
- package/pagination/styles/vars.scss +0 -14
- package/pipes/index.d.ts +0 -5
- package/pipes/new-array.pipe.d.ts +0 -13
- package/pipes/public-api.d.ts +0 -7
- package/progress/index.d.ts +0 -5
- package/progress/progress.component.d.ts +0 -10
- package/progress/public-api.d.ts +0 -7
- package/progress/styles/theming.scss +0 -8
- package/progress/styles/vars.scss +0 -6
- package/public-api.d.ts +0 -2
- package/qr/generator.d.ts +0 -7
- package/qr/index.d.ts +0 -5
- package/qr/public-api.d.ts +0 -7
- package/qr/qr.component.d.ts +0 -31
- package/qr/qrcodegen.d.ts +0 -94
- package/select/index.d.ts +0 -5
- package/select/public-api.d.ts +0 -10
- package/select/select-option-group.component.d.ts +0 -19
- package/select/select-option.component.d.ts +0 -22
- package/select/select.component.d.ts +0 -63
- package/select/select.types.d.ts +0 -17
- package/select/styles/vars.scss +0 -32
- package/skeleton/index.d.ts +0 -1
- package/skeleton/skeleton.component.d.ts +0 -10
- package/spinner/index.d.ts +0 -1
- package/spinner/spinner.component.d.ts +0 -13
- package/spinner/spinner.types.d.ts +0 -7
- 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 -5
- package/table/public-api.d.ts +0 -11
- 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/table/table-cell/index.d.ts +0 -7
- package/table/table-cell/table-cell.directive.d.ts +0 -8
- package/table/table-filter/index.d.ts +0 -7
- package/table/table-filter/table-filter.component.d.ts +0 -18
- package/table/table-sort/index.d.ts +0 -7
- package/table/table-sort/table-sort.component.d.ts +0 -8
- package/table/table.component.d.ts +0 -33
- package/table/types/index.d.ts +0 -6
- package/table/types/table-cell-context.d.ts +0 -6
- package/table/types/table-columns.d.ts +0 -7
- package/table/types/table-filter-emit.d.ts +0 -5
- package/table/types/table-filter-item.d.ts +0 -6
- package/table/types/table-order-item.d.ts +0 -5
- package/table/types/table-order.enum.d.ts +0 -5
- package/tag/index.d.ts +0 -5
- package/tag/public-api.d.ts +0 -7
- package/tag/styles/_index.scss +0 -32
- package/tag/styles/theming.scss +0 -21
- package/tag/styles/vars.scss +0 -12
- package/tag/tag.component.d.ts +0 -21
- package/textarea/index.d.ts +0 -7
- package/textarea/public-api.d.ts +0 -7
- package/textarea/styles/vars.scss +0 -17
- package/textarea/textarea.component.d.ts +0 -44
|
@@ -0,0 +1,237 @@
|
|
|
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
|
+
/**
|
|
11
|
+
* Sort direction for a sortable column.
|
|
12
|
+
*
|
|
13
|
+
* - `'asc'` — ascending
|
|
14
|
+
* - `'desc'` — descending
|
|
15
|
+
* - `null` — unsorted
|
|
16
|
+
*/
|
|
17
|
+
type WrTableSortDirection = 'asc' | 'desc' | null;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @license
|
|
21
|
+
*
|
|
22
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
23
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Per-column sort state. The full sort emitted by `<wr-table>` is an
|
|
28
|
+
* array of these — the order in the array is the application order.
|
|
29
|
+
*/
|
|
30
|
+
interface WrTableSortState {
|
|
31
|
+
readonly key: string;
|
|
32
|
+
readonly direction: WrTableSortDirection;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @license
|
|
37
|
+
*
|
|
38
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
39
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
40
|
+
*/
|
|
41
|
+
/**
|
|
42
|
+
* Single picker entry inside a column's filter dropdown.
|
|
43
|
+
*/
|
|
44
|
+
interface WrTableFilterItem<T = unknown> {
|
|
45
|
+
readonly title: string;
|
|
46
|
+
readonly value: T;
|
|
47
|
+
selected?: boolean;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @license
|
|
52
|
+
*
|
|
53
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
54
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
/** Payload emitted by `<wr-table>` when a column's filter selection changes. */
|
|
58
|
+
interface WrTableFilterChange {
|
|
59
|
+
readonly key: string;
|
|
60
|
+
readonly items: readonly WrTableFilterItem[];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @license
|
|
65
|
+
*
|
|
66
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
67
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
68
|
+
*/
|
|
69
|
+
|
|
70
|
+
/** A single column definition. */
|
|
71
|
+
interface WrTableColumn {
|
|
72
|
+
/** Heading shown in the column's header. */
|
|
73
|
+
readonly title: string;
|
|
74
|
+
/** Show a clickable sort indicator in the header. */
|
|
75
|
+
readonly sortable?: boolean;
|
|
76
|
+
/** When non-empty, shows a filter dropdown in the header. */
|
|
77
|
+
readonly filterItems?: readonly WrTableFilterItem[];
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Column map — keys are the row's property names; values are column defs.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```ts
|
|
84
|
+
* const columns: WrTableColumns = {
|
|
85
|
+
* name: { title: 'Name', sortable: true },
|
|
86
|
+
* email: { title: 'Email' },
|
|
87
|
+
* role: { title: 'Role', filterItems: [{ title: 'Admin', value: 'admin' }] },
|
|
88
|
+
* };
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
type WrTableColumns = Record<string, WrTableColumn>;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @license
|
|
95
|
+
*
|
|
96
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
97
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
98
|
+
*/
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Implicit context passed to a `[wrTableCell]` template.
|
|
102
|
+
*/
|
|
103
|
+
interface WrTableCellContext {
|
|
104
|
+
/** Cell value (alias for `item[columnKey]`). Use as `let-value`. */
|
|
105
|
+
readonly $implicit: unknown;
|
|
106
|
+
/** The full row item. */
|
|
107
|
+
readonly item: Record<string, unknown>;
|
|
108
|
+
/** The column definition. */
|
|
109
|
+
readonly column: WrTableColumn;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Data table with sortable / filterable headers and custom cell templates.
|
|
114
|
+
*
|
|
115
|
+
* Columns are defined via the `columns` input (a `Record<key, column>`).
|
|
116
|
+
* Rows are objects whose property names match the column keys. Cells can
|
|
117
|
+
* be customised by projecting an `[wrTableCell]="key"` template.
|
|
118
|
+
*
|
|
119
|
+
* @example
|
|
120
|
+
* ```html
|
|
121
|
+
* <wr-table
|
|
122
|
+
* [columns]="columns"
|
|
123
|
+
* [items]="rows"
|
|
124
|
+
* [(sort)]="sort"
|
|
125
|
+
* (filterChange)="onFilter($event)"
|
|
126
|
+
* >
|
|
127
|
+
* <ng-template wrTableCell="role" let-value>
|
|
128
|
+
* <wr-tag [color]="value === 'admin' ? 'danger' : 'medium'">{{ value }}</wr-tag>
|
|
129
|
+
* </ng-template>
|
|
130
|
+
* </wr-table>
|
|
131
|
+
* ```
|
|
132
|
+
*
|
|
133
|
+
* @see https://ngwr.dev/components/table
|
|
134
|
+
*/
|
|
135
|
+
declare class WrTable {
|
|
136
|
+
/** Column definitions, keyed by row property name. */
|
|
137
|
+
readonly columns: _angular_core.InputSignal<WrTableColumns>;
|
|
138
|
+
/** Row items. `null`/`undefined` → loading skeleton. */
|
|
139
|
+
readonly items: _angular_core.InputSignal<readonly Record<string, unknown>[] | null | undefined>;
|
|
140
|
+
/** Show the loading spinner overlay. @default false */
|
|
141
|
+
readonly loading: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
142
|
+
/** Two-way bindable sort array. Order in array = application order. */
|
|
143
|
+
readonly sort: _angular_core.ModelSignal<readonly WrTableSortState[]>;
|
|
144
|
+
/** Fires whenever a column's filter selection changes. */
|
|
145
|
+
readonly filterChange: _angular_core.OutputEmitterRef<WrTableFilterChange>;
|
|
146
|
+
/**
|
|
147
|
+
* Rows per page. Set to `0` (default) to disable client-side pagination
|
|
148
|
+
* and render every row at once.
|
|
149
|
+
*/
|
|
150
|
+
readonly pageSize: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
151
|
+
/** Two-way bindable 1-based current page. */
|
|
152
|
+
readonly page: _angular_core.ModelSignal<number>;
|
|
153
|
+
/**
|
|
154
|
+
* Total row count for server-side pagination — when set, the table
|
|
155
|
+
* shows the pager but does NOT slice `items` (you provide the current
|
|
156
|
+
* page's slice yourself and react to `(page)` changes).
|
|
157
|
+
*/
|
|
158
|
+
readonly totalItems: _angular_core.InputSignal<number | null>;
|
|
159
|
+
/** Total row count derived for the pager (server-mode wins). */
|
|
160
|
+
protected readonly resolvedTotal: _angular_core.Signal<number>;
|
|
161
|
+
/** Items visible on the current page (client mode slices; server mode passes through). */
|
|
162
|
+
protected readonly visibleItems: _angular_core.Signal<readonly Record<string, unknown>[] | null | undefined>;
|
|
163
|
+
/** Show the pager footer only when paging is enabled and rows overflow. */
|
|
164
|
+
protected readonly showPager: _angular_core.Signal<boolean>;
|
|
165
|
+
private readonly cellTemplates;
|
|
166
|
+
/** Map of column key → custom template (if provided via `[wrTableCell]`). */
|
|
167
|
+
protected readonly cellMap: _angular_core.Signal<Map<string, TemplateRef<WrTableCellContext>>>;
|
|
168
|
+
/** Keep KeyValuePipe in declaration order (comparator that treats all keys as equal). */
|
|
169
|
+
protected readonly keepOrder: () => number;
|
|
170
|
+
protected directionFor(key: string): WrTableSortDirection;
|
|
171
|
+
protected cycleSort(key: string): void;
|
|
172
|
+
protected onFilter(key: string, items: readonly WrTableFilterItem[]): void;
|
|
173
|
+
protected cellContext(item: Record<string, unknown>, key: string, column: unknown): WrTableCellContext;
|
|
174
|
+
protected getValue(item: Record<string, unknown>, key: unknown): unknown;
|
|
175
|
+
protected templateFor(key: unknown): TemplateRef<WrTableCellContext> | undefined;
|
|
176
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrTable, never>;
|
|
177
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrTable, "wr-table", never, { "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "sort": { "alias": "sort"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "page": { "alias": "page"; "required": false; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "required": false; "isSignal": true; }; }, { "sort": "sortChange"; "filterChange": "filterChange"; "page": "pageChange"; }, ["cellTemplates"], never, true, never>;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Provide a custom template for a specific column's cells.
|
|
182
|
+
*
|
|
183
|
+
* @example
|
|
184
|
+
* ```html
|
|
185
|
+
* <wr-table [columns]="columns" [items]="items">
|
|
186
|
+
* <ng-template wrTableCell="role" let-value let-row="item">
|
|
187
|
+
* <wr-tag [color]="value === 'admin' ? 'danger' : 'medium'">{{ value }}</wr-tag>
|
|
188
|
+
* </ng-template>
|
|
189
|
+
* </wr-table>
|
|
190
|
+
* ```
|
|
191
|
+
*/
|
|
192
|
+
declare class WrTableCell {
|
|
193
|
+
/** Column key the template applies to. */
|
|
194
|
+
readonly columnKey: _angular_core.InputSignal<string>;
|
|
195
|
+
readonly template: TemplateRef<WrTableCellContext>;
|
|
196
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrTableCell, never>;
|
|
197
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<WrTableCell, "[wrTableCell]", never, { "columnKey": { "alias": "wrTableCell"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Sort indicator rendered in a sortable column's header.
|
|
202
|
+
*
|
|
203
|
+
* @internal — used internally by `<wr-table>`. Parent listens for clicks
|
|
204
|
+
* on the indicator to cycle direction.
|
|
205
|
+
*/
|
|
206
|
+
declare class WrTableSort {
|
|
207
|
+
readonly direction: _angular_core.InputSignal<WrTableSortDirection>;
|
|
208
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
209
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrTableSort, never>;
|
|
210
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrTableSort, "wr-table-sort", never, { "direction": { "alias": "direction"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Filter dropdown rendered in a filterable column's header.
|
|
215
|
+
*
|
|
216
|
+
* @internal — used internally by `<wr-table>`.
|
|
217
|
+
*/
|
|
218
|
+
declare class WrTableFilter {
|
|
219
|
+
/** Available filter options. */
|
|
220
|
+
readonly items: _angular_core.InputSignal<readonly WrTableFilterItem<unknown>[]>;
|
|
221
|
+
/** Fires whenever the selection changes. */
|
|
222
|
+
readonly selectionChange: _angular_core.OutputEmitterRef<readonly WrTableFilterItem<unknown>[]>;
|
|
223
|
+
protected readonly query: _angular_core.WritableSignal<string>;
|
|
224
|
+
/** Filtered + selection-tracked view of items. */
|
|
225
|
+
protected readonly visible: _angular_core.Signal<WrTableFilterItem<unknown>[]>;
|
|
226
|
+
protected readonly selectedCount: _angular_core.Signal<number>;
|
|
227
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
228
|
+
protected onSearchInput(event: Event): void;
|
|
229
|
+
protected onToggle(item: WrTableFilterItem): void;
|
|
230
|
+
protected onReset(): void;
|
|
231
|
+
private emitSelected;
|
|
232
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrTableFilter, never>;
|
|
233
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrTableFilter, "wr-table-filter", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; }, { "selectionChange": "selectionChange"; }, never, never, true, never>;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export { WrTable, WrTableCell, WrTableFilter, WrTableSort };
|
|
237
|
+
export type { WrTableCellContext, WrTableColumn, WrTableColumns, WrTableFilterChange, WrTableFilterItem, WrTableSortDirection, WrTableSortState };
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef, InjectionToken, Signal, ElementRef } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Single tab. Two modes, decided by inputs:
|
|
6
|
+
*
|
|
7
|
+
* - **Content tab** — projected children render in the parent's content
|
|
8
|
+
* panel when this tab is active.
|
|
9
|
+
* - **Router tab** — set `routerLink` and the tab becomes a link; the
|
|
10
|
+
* parent skips its content panel and the consumer drops a
|
|
11
|
+
* `<router-outlet>` below the tab strip.
|
|
12
|
+
*/
|
|
13
|
+
declare class WrTab {
|
|
14
|
+
/** Visible label on the tab strip. */
|
|
15
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
16
|
+
/**
|
|
17
|
+
* Stable identifier used by the parent to track the active tab.
|
|
18
|
+
* Auto-generated if omitted.
|
|
19
|
+
*/
|
|
20
|
+
readonly key: _angular_core.InputSignal<string>;
|
|
21
|
+
/** Router target — when set, the tab becomes a `[routerLink]` link. */
|
|
22
|
+
readonly routerLink: _angular_core.InputSignal<string | readonly string[] | null>;
|
|
23
|
+
/** Disable the tab. */
|
|
24
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
25
|
+
/** Tab content template; portaled into the parent's panel area. @internal */
|
|
26
|
+
readonly contentTpl: _angular_core.Signal<TemplateRef<any>>;
|
|
27
|
+
private readonly parent;
|
|
28
|
+
private readonly destroyRef;
|
|
29
|
+
protected readonly isRouter: _angular_core.Signal<boolean>;
|
|
30
|
+
constructor();
|
|
31
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrTab, never>;
|
|
32
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrTab, "wr-tab", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "key": { "alias": "key"; "required": false; "isSignal": true; }; "routerLink": { "alias": "routerLink"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @license
|
|
37
|
+
*
|
|
38
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
39
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Contract a `<wr-tab>` uses to talk to its parent `<wr-tabs>`.
|
|
44
|
+
*
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
interface WrTabsContext {
|
|
48
|
+
/** Currently active tab key (component-managed only). */
|
|
49
|
+
readonly active: Signal<string | null>;
|
|
50
|
+
/** Activate a tab by key (component-managed only). */
|
|
51
|
+
activate(key: string): void;
|
|
52
|
+
/** Register a child tab so the parent can pick a default. */
|
|
53
|
+
register(tab: {
|
|
54
|
+
key: string;
|
|
55
|
+
routerLink: unknown;
|
|
56
|
+
}): void;
|
|
57
|
+
/** Unregister on destroy. */
|
|
58
|
+
unregister(key: string): void;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Token a `<wr-tab>` injects to register itself with — and read the active
|
|
62
|
+
* key from — its parent `<wr-tabs>` host.
|
|
63
|
+
*
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
declare const WR_TABS: InjectionToken<WrTabsContext>;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Tabbed container. Two modes depending on the child `<wr-tab>`
|
|
70
|
+
* definitions:
|
|
71
|
+
*
|
|
72
|
+
* - **Content** — children project body content; the parent renders an
|
|
73
|
+
* active-tab panel automatically.
|
|
74
|
+
* - **Router** — any child with `routerLink` switches the whole strip
|
|
75
|
+
* into router mode; the parent skips its panel so the consumer can
|
|
76
|
+
* drop a `<router-outlet>` after it.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```html
|
|
80
|
+
* <!-- content tabs -->
|
|
81
|
+
* <wr-tabs [(active)]="key">
|
|
82
|
+
* <wr-tab key="one" title="One">First panel</wr-tab>
|
|
83
|
+
* <wr-tab key="two" title="Two">Second panel</wr-tab>
|
|
84
|
+
* </wr-tabs>
|
|
85
|
+
*
|
|
86
|
+
* <!-- router tabs -->
|
|
87
|
+
* <wr-tabs>
|
|
88
|
+
* <wr-tab title="Overview" routerLink="overview" />
|
|
89
|
+
* <wr-tab title="Details" routerLink="details" />
|
|
90
|
+
* </wr-tabs>
|
|
91
|
+
* <router-outlet />
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
94
|
+
* @see https://ngwr.dev/components/tabs
|
|
95
|
+
*/
|
|
96
|
+
declare class WrTabs implements WrTabsContext {
|
|
97
|
+
/** Two-way bindable active tab key (content mode). */
|
|
98
|
+
readonly active: _angular_core.ModelSignal<string | null>;
|
|
99
|
+
/** Visual size variant. */
|
|
100
|
+
readonly size: _angular_core.InputSignal<"sm" | "md" | "lg">;
|
|
101
|
+
protected readonly tabs: _angular_core.Signal<readonly WrTab[]>;
|
|
102
|
+
/** When any child has a routerLink, the whole strip switches to router mode. */
|
|
103
|
+
protected readonly isRouter: _angular_core.Signal<boolean>;
|
|
104
|
+
/** Content-mode: the tab whose key matches `active()` (or the first tab if none yet). */
|
|
105
|
+
protected readonly activeTab: _angular_core.Signal<WrTab | null>;
|
|
106
|
+
activate(key: string): void;
|
|
107
|
+
register({ key }: {
|
|
108
|
+
key: string;
|
|
109
|
+
routerLink: unknown;
|
|
110
|
+
}): void;
|
|
111
|
+
unregister(): void;
|
|
112
|
+
protected readonly stripRef: _angular_core.Signal<ElementRef<HTMLElement> | undefined>;
|
|
113
|
+
protected onTabClick(tab: WrTab): void;
|
|
114
|
+
/** Header id for `aria-labelledby` on the panel. @internal */
|
|
115
|
+
headerId(key: string): string;
|
|
116
|
+
/** Panel id for `aria-controls` on the tab header. @internal */
|
|
117
|
+
panelId(key: string): string;
|
|
118
|
+
/** ArrowLeft/Right/Home/End keyboard navigation on the tab strip. */
|
|
119
|
+
protected onStripKeydown(event: KeyboardEvent): void;
|
|
120
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrTabs, never>;
|
|
121
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrTabs, "wr-tabs", never, { "active": { "alias": "active"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "active": "activeChange"; }, ["tabs"], never, true, never>;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export { WR_TABS, WrTab, WrTabs };
|
|
125
|
+
export type { WrTabsContext };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
3
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Multi-line text input.
|
|
7
|
+
*
|
|
8
|
+
* Implements `ControlValueAccessor`. Optional `autosize` grows the
|
|
9
|
+
* textarea with its content, capped at `maxRows` if provided.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <wr-textarea placeholder="Notes" [(ngModel)]="text" />
|
|
14
|
+
* <wr-textarea autosize [maxRows]="6" [(ngModel)]="text" />
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @see https://ngwr.dev/components/textarea
|
|
18
|
+
*/
|
|
19
|
+
declare class WrTextarea implements ControlValueAccessor {
|
|
20
|
+
/** Native placeholder text. @default '' */
|
|
21
|
+
readonly placeholder: _angular_core.InputSignal<string>;
|
|
22
|
+
/** Visible row count. @default 3 */
|
|
23
|
+
readonly rows: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
24
|
+
/** Allow user resize via the native handle. @default true */
|
|
25
|
+
readonly resizable: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
26
|
+
/** Read-only state. @default false */
|
|
27
|
+
readonly readonly: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
28
|
+
/** Grow the textarea to fit its content. @default false */
|
|
29
|
+
readonly autosize: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
30
|
+
/** Cap autosize at this many rows. Ignored when `autosize` is false. */
|
|
31
|
+
readonly maxRows: _angular_core.InputSignal<number | null>;
|
|
32
|
+
/**
|
|
33
|
+
* Disable the textarea. Also set by Angular forms via `setDisabledState`.
|
|
34
|
+
*
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
38
|
+
protected readonly value: _angular_core.WritableSignal<string>;
|
|
39
|
+
protected readonly disabledFromCva: _angular_core.WritableSignal<boolean>;
|
|
40
|
+
protected readonly focused: _angular_core.WritableSignal<boolean>;
|
|
41
|
+
protected readonly effectiveDisabled: _angular_core.Signal<boolean>;
|
|
42
|
+
protected readonly native: _angular_core.Signal<ElementRef<HTMLTextAreaElement>>;
|
|
43
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
44
|
+
private readonly platformId;
|
|
45
|
+
private readonly isBrowser;
|
|
46
|
+
private onChange;
|
|
47
|
+
private onTouched;
|
|
48
|
+
constructor();
|
|
49
|
+
writeValue(value: string | null): void;
|
|
50
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
51
|
+
registerOnTouched(fn: () => void): void;
|
|
52
|
+
setDisabledState(isDisabled: boolean): void;
|
|
53
|
+
protected onInput(event: Event): void;
|
|
54
|
+
protected onBlur(): void;
|
|
55
|
+
private resize;
|
|
56
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrTextarea, never>;
|
|
57
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrTextarea, "wr-textarea", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "resizable": { "alias": "resizable"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "autosize": { "alias": "autosize"; "required": false; "isSignal": true; }; "maxRows": { "alias": "maxRows"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export { WrTextarea };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, Signal, EnvironmentProviders } 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
|
+
* Built-in color variants available to NGWR components.
|
|
12
|
+
*
|
|
13
|
+
* Kept in sync manually with the SCSS `$base-colors` map in
|
|
14
|
+
* `theme/styles/_colors.scss`. Both sources must stay aligned —
|
|
15
|
+
* adding a color requires updating both this array and the SCSS map.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* import { WR_COLORS } from 'ngwr/theme';
|
|
20
|
+
*
|
|
21
|
+
* // Iterate all colors for demos or documentation
|
|
22
|
+
* WR_COLORS.forEach(color => console.log(color));
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
declare const WR_COLORS: readonly ["primary", "secondary", "success", "warning", "danger", "light", "medium", "dark"];
|
|
26
|
+
/**
|
|
27
|
+
* A color variant name.
|
|
28
|
+
*
|
|
29
|
+
* Use as an input type on components that accept a color:
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* import type { WrColor } from 'ngwr/theme';
|
|
34
|
+
*
|
|
35
|
+
* @Component({...})
|
|
36
|
+
* export class MyComponent {
|
|
37
|
+
* readonly color = input<WrColor>('primary');
|
|
38
|
+
* }
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
type WrColor = (typeof WR_COLORS)[number];
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @license
|
|
45
|
+
*
|
|
46
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
47
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
/** Mode the user explicitly selected. `auto` follows `prefers-color-scheme`. */
|
|
51
|
+
type WrThemeMode = 'light' | 'dark' | 'auto';
|
|
52
|
+
/** Resolved theme — what's actually applied to the DOM. */
|
|
53
|
+
type WrResolvedTheme = 'light' | 'dark';
|
|
54
|
+
/** Configuration for {@link WrTheme}. */
|
|
55
|
+
interface WrThemeConfig {
|
|
56
|
+
/** Initial mode used when no persisted value is present. @default 'auto' */
|
|
57
|
+
readonly defaultMode: WrThemeMode;
|
|
58
|
+
/** localStorage key for persistence. Set to `null` to disable persistence. @default 'wr-theme' */
|
|
59
|
+
readonly storageKey: string | null;
|
|
60
|
+
/** Attribute applied to `<html>` to expose the resolved theme. @default 'data-theme' */
|
|
61
|
+
readonly attribute: string;
|
|
62
|
+
}
|
|
63
|
+
declare const DEFAULT_WR_THEME_CONFIG: WrThemeConfig;
|
|
64
|
+
declare const WR_THEME_CONFIG: InjectionToken<WrThemeConfig>;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Light / dark theme manager.
|
|
68
|
+
*
|
|
69
|
+
* - `mode` is what the user picked (`light` | `dark` | `auto`).
|
|
70
|
+
* - `resolved` is what's actually applied — `auto` resolves through
|
|
71
|
+
* {@link WrPlatform.prefersDark}.
|
|
72
|
+
* - Writes `[data-theme]` (or your configured attribute) on `<html>`.
|
|
73
|
+
* - Persists the selected mode via {@link WrStorage} (defaults to
|
|
74
|
+
* `localStorage`; swap the storage engine globally to change where).
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* const theme = inject(WrTheme);
|
|
79
|
+
* theme.set('dark');
|
|
80
|
+
* theme.toggle();
|
|
81
|
+
* theme.resolved(); // 'dark'
|
|
82
|
+
* ```
|
|
83
|
+
*
|
|
84
|
+
* @see https://ngwr.dev/services/theme
|
|
85
|
+
*/
|
|
86
|
+
declare class WrTheme {
|
|
87
|
+
private readonly doc;
|
|
88
|
+
private readonly platform;
|
|
89
|
+
private readonly storage;
|
|
90
|
+
private readonly config;
|
|
91
|
+
/** User-selected mode. */
|
|
92
|
+
readonly mode: i0.WritableSignal<WrThemeMode>;
|
|
93
|
+
/** Resolved theme actually applied to the DOM. */
|
|
94
|
+
readonly resolved: Signal<WrResolvedTheme>;
|
|
95
|
+
constructor();
|
|
96
|
+
/** Switch to a specific mode. */
|
|
97
|
+
set(mode: WrThemeMode): void;
|
|
98
|
+
/** Cycle: light → dark → light (skips auto). */
|
|
99
|
+
toggle(): void;
|
|
100
|
+
private readPersisted;
|
|
101
|
+
private persist;
|
|
102
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrTheme, never>;
|
|
103
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WrTheme>;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @license
|
|
108
|
+
*
|
|
109
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
110
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
111
|
+
*/
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Configure {@link WrTheme}. Partial — merged with defaults.
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* ```ts
|
|
118
|
+
* provideWrTheme({ defaultMode: 'dark', storageKey: 'my-app-theme' })
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
declare function provideWrTheme(config?: Partial<WrThemeConfig>): EnvironmentProviders;
|
|
122
|
+
|
|
123
|
+
export { DEFAULT_WR_THEME_CONFIG, WR_COLORS, WR_THEME_CONFIG, WrTheme, provideWrTheme };
|
|
124
|
+
export type { WrColor, WrResolvedTheme, WrThemeConfig, WrThemeMode };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 3D mouse-tilt on hover. Adds `perspective(…) rotateX(…) rotateY(…)` to
|
|
5
|
+
* the host's transform tracking the cursor's position over it.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```html
|
|
9
|
+
* <div class="card" wrTilt>…</div>
|
|
10
|
+
* <div class="card" wrTilt maxTilt="20" [glare]="true">…</div>
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
declare class WrTilt {
|
|
14
|
+
/** Maximum tilt in degrees. @default 12 */
|
|
15
|
+
readonly maxTilt: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
16
|
+
/** CSS perspective in pixels. @default 800 */
|
|
17
|
+
readonly perspective: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
18
|
+
/** Scale applied while hovered. @default 1.03 */
|
|
19
|
+
readonly scale: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
20
|
+
/** Add a moving glare highlight overlay. @default false */
|
|
21
|
+
readonly glare: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
22
|
+
private readonly el;
|
|
23
|
+
private readonly zone;
|
|
24
|
+
private readonly destroyRef;
|
|
25
|
+
private readonly platform;
|
|
26
|
+
constructor();
|
|
27
|
+
/** @internal */
|
|
28
|
+
protected onMove(event: PointerEvent): void;
|
|
29
|
+
/** @internal */
|
|
30
|
+
protected onLeave(): void;
|
|
31
|
+
private installGlare;
|
|
32
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrTilt, never>;
|
|
33
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<WrTilt, "[wrTilt]", never, { "maxTilt": { "alias": "maxTilt"; "required": false; "isSignal": true; }; "perspective": { "alias": "perspective"; "required": false; "isSignal": true; }; "scale": { "alias": "scale"; "required": false; "isSignal": true; }; "glare": { "alias": "glare"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Card wrapper that applies the `[wrTilt]` directive out-of-the-box,
|
|
38
|
+
* plus a small set of card-style defaults (radius, padding, surface).
|
|
39
|
+
* Pass any inputs through — they're forwarded to the hosted directive.
|
|
40
|
+
*
|
|
41
|
+
* For arbitrary elements that just need the tilt behaviour, use the
|
|
42
|
+
* `[wrTilt]` directive directly:
|
|
43
|
+
*
|
|
44
|
+
* ```html
|
|
45
|
+
* <img wrTilt [maxTilt]="10" src="…" />
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```html
|
|
50
|
+
* <wr-tilt-card>
|
|
51
|
+
* <h3>Hello</h3>
|
|
52
|
+
* <p>Move the cursor across me.</p>
|
|
53
|
+
* </wr-tilt-card>
|
|
54
|
+
*
|
|
55
|
+
* <wr-tilt-card [maxTilt]="20" [glare]="true">…</wr-tilt-card>
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
declare class WrTiltCard {
|
|
59
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrTiltCard, never>;
|
|
60
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrTiltCard, "wr-tilt-card", never, {}, {}, never, ["*"], true, [{ directive: typeof WrTilt; inputs: { "maxTilt": "maxTilt"; "perspective": "perspective"; "scale": "scale"; "glare": "glare"; }; outputs: {}; }]>;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export { WrTilt, WrTiltCard };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Event-list ladder. Project `<wr-timeline-item>` children.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```html
|
|
8
|
+
* <wr-timeline>
|
|
9
|
+
* <wr-timeline-item title="Created" time="2026-05-01">Initial commit.</wr-timeline-item>
|
|
10
|
+
* <wr-timeline-item title="Deployed" time="2026-05-02" color="success">Live.</wr-timeline-item>
|
|
11
|
+
* </wr-timeline>
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* @see https://ngwr.dev/components/timeline
|
|
15
|
+
*/
|
|
16
|
+
declare class WrTimeline {
|
|
17
|
+
readonly orientation: _angular_core.InputSignal<"vertical" | "horizontal">;
|
|
18
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
19
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrTimeline, never>;
|
|
20
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrTimeline, "wr-timeline", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** Built-in dot colours. */
|
|
24
|
+
type WrTimelineColor = 'primary' | 'success' | 'warning' | 'danger' | 'medium';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* One event in a {@link WrTimeline}. Project content for the
|
|
28
|
+
* description; `title` and `time` are header inputs.
|
|
29
|
+
*/
|
|
30
|
+
declare class WrTimelineItem {
|
|
31
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
32
|
+
readonly time: _angular_core.InputSignal<string>;
|
|
33
|
+
readonly color: _angular_core.InputSignal<WrTimelineColor>;
|
|
34
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
35
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrTimelineItem, never>;
|
|
36
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrTimelineItem, "wr-timeline-item", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "time": { "alias": "time"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { WrTimeline, WrTimelineItem };
|
|
40
|
+
export type { WrTimelineColor };
|