ngwr 16.6.0 → 16.7.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/avatar/styles/_index.scss +39 -0
- package/button/styles/_index.scss +45 -2
- package/copy-value/styles/_index.scss +4 -0
- package/dropdown/styles/_index.scss +17 -0
- package/fesm2022/ngwr-affix.mjs +3 -3
- package/fesm2022/ngwr-alert.mjs +3 -3
- package/fesm2022/ngwr-anchor.mjs +3 -3
- package/fesm2022/ngwr-animations-aurora.mjs +3 -3
- package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-click-sparks.mjs +3 -3
- package/fesm2022/ngwr-animations-confetti.mjs +3 -3
- package/fesm2022/ngwr-animations-decode.mjs +3 -3
- package/fesm2022/ngwr-animations-destruct.mjs +3 -3
- package/fesm2022/ngwr-animations-dot-grid.mjs +3 -3
- package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
- package/fesm2022/ngwr-animations-flow-lines.mjs +3 -3
- package/fesm2022/ngwr-animations-fluid-cursor.mjs +3 -3
- package/fesm2022/ngwr-animations-glitch.mjs +3 -3
- package/fesm2022/ngwr-animations-glow-border.mjs +3 -3
- package/fesm2022/ngwr-animations-gradient-flow.mjs +3 -3
- package/fesm2022/ngwr-animations-marquee.mjs +4 -3
- package/fesm2022/ngwr-animations-marquee.mjs.map +1 -1
- package/fesm2022/ngwr-animations-orbit.mjs +3 -3
- package/fesm2022/ngwr-animations-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-ripple-grid.mjs +3 -3
- package/fesm2022/ngwr-animations-rotate-reveal.mjs +3 -3
- package/fesm2022/ngwr-animations-shimmer.mjs +3 -3
- package/fesm2022/ngwr-animations-spotlight.mjs +3 -3
- package/fesm2022/ngwr-animations-thread-lines.mjs +3 -3
- package/fesm2022/ngwr-animations-tilt.mjs +3 -3
- package/fesm2022/ngwr-animations-typewriter.mjs +3 -3
- package/fesm2022/ngwr-avatar.mjs +171 -6
- package/fesm2022/ngwr-avatar.mjs.map +1 -1
- package/fesm2022/ngwr-back-top.mjs +3 -3
- package/fesm2022/ngwr-badge.mjs +6 -6
- package/fesm2022/ngwr-breadcrumbs.mjs +9 -8
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-burger.mjs +3 -3
- package/fesm2022/ngwr-button.mjs +26 -6
- package/fesm2022/ngwr-button.mjs.map +1 -1
- package/fesm2022/ngwr-calendar.mjs +3 -3
- package/fesm2022/ngwr-card.mjs +9 -9
- package/fesm2022/ngwr-carousel.mjs +6 -6
- package/fesm2022/ngwr-cascader.mjs +5 -5
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-boxplot-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-bullet-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -3
- package/fesm2022/ngwr-charts-candlestick-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-chart-legend.mjs +9 -9
- package/fesm2022/ngwr-charts-core.mjs +6 -6
- package/fesm2022/ngwr-charts-donut-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-funnel-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-gauge.mjs +3 -3
- package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-line-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-meter-group.mjs +3 -3
- package/fesm2022/ngwr-charts-radar-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-scatter-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-sparkline.mjs +3 -3
- package/fesm2022/ngwr-charts-treemap-chart.mjs +3 -3
- package/fesm2022/ngwr-charts-waterfall-chart.mjs +3 -3
- package/fesm2022/ngwr-checkbox.mjs +6 -6
- package/fesm2022/ngwr-clipboard.mjs +3 -3
- package/fesm2022/ngwr-collapse.mjs +9 -9
- package/fesm2022/ngwr-color-picker.mjs +6 -6
- package/fesm2022/ngwr-command-palette.mjs +3 -3
- package/fesm2022/ngwr-comment.mjs +7 -6
- package/fesm2022/ngwr-comment.mjs.map +1 -1
- package/fesm2022/ngwr-compare.mjs +3 -3
- package/fesm2022/ngwr-context-menu.mjs +12 -12
- package/fesm2022/ngwr-cookie.mjs +3 -3
- package/fesm2022/ngwr-copy-value.mjs +3 -3
- package/fesm2022/ngwr-counter.mjs +6 -6
- package/fesm2022/ngwr-date-picker-testing.mjs +35 -0
- package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +102 -53
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp.mjs +3 -3
- package/fesm2022/ngwr-date.mjs +40 -16
- package/fesm2022/ngwr-date.mjs.map +1 -1
- package/fesm2022/ngwr-density.mjs +6 -6
- package/fesm2022/ngwr-descriptions.mjs +6 -6
- package/fesm2022/ngwr-dialog.mjs +19 -18
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-directives.mjs +181 -18
- package/fesm2022/ngwr-directives.mjs.map +1 -1
- package/fesm2022/ngwr-divider.mjs +3 -3
- package/fesm2022/ngwr-drawer.mjs +18 -18
- package/fesm2022/ngwr-dropdown-testing.mjs +5 -1
- package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +59 -16
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +6 -5
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-empty.mjs +3 -3
- package/fesm2022/ngwr-event-calendar.mjs +7 -6
- package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload-testing.mjs +5 -0
- package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload.mjs +68 -13
- package/fesm2022/ngwr-file-upload.mjs.map +1 -1
- package/fesm2022/ngwr-form.mjs +18 -16
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-graph-testing.mjs +30 -0
- package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
- package/fesm2022/ngwr-graph.mjs +100 -11
- package/fesm2022/ngwr-graph.mjs.map +1 -1
- package/fesm2022/ngwr-hotkey.mjs +6 -6
- package/fesm2022/ngwr-i18n-ar.mjs +6 -2
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +6 -2
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +6 -2
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +6 -2
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +6 -2
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +6 -2
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +6 -2
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +6 -2
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +6 -2
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +6 -2
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +6 -2
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-kk.mjs +520 -0
- package/fesm2022/ngwr-i18n-kk.mjs.map +1 -0
- package/fesm2022/ngwr-i18n-ko.mjs +6 -2
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +6 -2
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +6 -2
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +6 -2
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +6 -2
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +6 -2
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +6 -2
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +6 -2
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +6 -2
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +6 -2
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +6 -2
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +9 -9
- package/fesm2022/ngwr-icon.mjs +6 -6
- package/fesm2022/ngwr-image-cropper.mjs +8 -4
- package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
- package/fesm2022/ngwr-input-number.mjs +3 -3
- package/fesm2022/ngwr-input-otp.mjs +3 -3
- package/fesm2022/ngwr-input.mjs +15 -15
- package/fesm2022/ngwr-keyboard.mjs +3 -3
- package/fesm2022/ngwr-knob.mjs +3 -3
- package/fesm2022/ngwr-layout.mjs +15 -15
- package/fesm2022/ngwr-lightbox.mjs +8 -8
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +8 -8
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-load-state.mjs +16 -15
- package/fesm2022/ngwr-load-state.mjs.map +1 -1
- package/fesm2022/ngwr-loading-bar.mjs +6 -6
- package/fesm2022/ngwr-mention.mjs +6 -6
- package/fesm2022/ngwr-meta.mjs +6 -6
- package/fesm2022/ngwr-overlay.mjs +9 -9
- package/fesm2022/ngwr-page-header.mjs +3 -3
- package/fesm2022/ngwr-pagination-testing.mjs +3 -0
- package/fesm2022/ngwr-pagination-testing.mjs.map +1 -1
- package/fesm2022/ngwr-pagination.mjs +32 -5
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +27 -27
- package/fesm2022/ngwr-platform.mjs +9 -9
- package/fesm2022/ngwr-popconfirm.mjs +7 -6
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +115 -15
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-progress.mjs +75 -10
- package/fesm2022/ngwr-progress.mjs.map +1 -1
- package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
- package/fesm2022/ngwr-qr.mjs +3 -3
- package/fesm2022/ngwr-radio.mjs +6 -6
- package/fesm2022/ngwr-rating.mjs +3 -3
- package/fesm2022/ngwr-resizable.mjs +3 -3
- package/fesm2022/ngwr-result.mjs +12 -12
- package/fesm2022/ngwr-schema-form.mjs +10 -6
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-scroll.mjs +232 -7
- package/fesm2022/ngwr-scroll.mjs.map +1 -1
- package/fesm2022/ngwr-segmented.mjs +3 -3
- package/fesm2022/ngwr-select.mjs +28 -19
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-sidebar-testing.mjs +17 -1
- package/fesm2022/ngwr-sidebar-testing.mjs.map +1 -1
- package/fesm2022/ngwr-sidebar.mjs +66 -11
- package/fesm2022/ngwr-sidebar.mjs.map +1 -1
- package/fesm2022/ngwr-skeleton.mjs +3 -3
- package/fesm2022/ngwr-slider.mjs +3 -3
- package/fesm2022/ngwr-sortable-list.mjs +11 -11
- package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
- package/fesm2022/ngwr-speed-dial.mjs +3 -3
- package/fesm2022/ngwr-spinner.mjs +3 -3
- package/fesm2022/ngwr-splitter.mjs +3 -3
- package/fesm2022/ngwr-statistic.mjs +9 -9
- package/fesm2022/ngwr-stepper.mjs +6 -6
- package/fesm2022/ngwr-storage.mjs +3 -3
- package/fesm2022/ngwr-switch.mjs +3 -3
- package/fesm2022/ngwr-table-router.mjs +89 -0
- package/fesm2022/ngwr-table-router.mjs.map +1 -0
- package/fesm2022/ngwr-table-testing.mjs +5 -0
- package/fesm2022/ngwr-table-testing.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +268 -42
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tabs-router.mjs +9 -5
- package/fesm2022/ngwr-tabs-router.mjs.map +1 -1
- package/fesm2022/ngwr-tabs-testing.mjs +8 -1
- package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tabs.mjs +60 -10
- package/fesm2022/ngwr-tabs.mjs.map +1 -1
- package/fesm2022/ngwr-textarea.mjs +3 -3
- package/fesm2022/ngwr-theme.mjs +3 -3
- package/fesm2022/ngwr-timeline.mjs +6 -6
- package/fesm2022/ngwr-toast.mjs +15 -15
- package/fesm2022/ngwr-toolbar.mjs +3 -3
- package/fesm2022/ngwr-tour.mjs +7 -6
- package/fesm2022/ngwr-tour.mjs.map +1 -1
- package/fesm2022/ngwr-transfer.mjs +4 -3
- package/fesm2022/ngwr-transfer.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +3 -3
- package/fesm2022/ngwr-typography.mjs +3 -3
- package/fesm2022/ngwr-utils-router.mjs +3 -3
- package/fesm2022/ngwr-utils.mjs +30 -2
- package/fesm2022/ngwr-utils.mjs.map +1 -1
- package/fesm2022/ngwr-version.mjs +1 -1
- package/fesm2022/ngwr-version.mjs.map +1 -1
- package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
- package/fesm2022/ngwr-window.mjs +18 -13
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/file-upload/styles/_index.scss +16 -0
- package/graph/styles/_index.scss +48 -0
- package/i18n/ar.json +4 -2
- package/i18n/cs.json +4 -2
- package/i18n/de.json +4 -2
- package/i18n/en.json +4 -2
- package/i18n/es.json +4 -2
- package/i18n/fr.json +4 -2
- package/i18n/he.json +4 -2
- package/i18n/hi.json +4 -2
- package/i18n/id.json +4 -2
- package/i18n/it.json +4 -2
- package/i18n/ja.json +4 -2
- package/i18n/kk.json +567 -0
- package/i18n/ko.json +4 -2
- package/i18n/nl.json +4 -2
- package/i18n/pl.json +4 -2
- package/i18n/pt.json +4 -2
- package/i18n/ru.json +4 -2
- package/i18n/sv.json +4 -2
- package/i18n/tr.json +4 -2
- package/i18n/uk.json +4 -2
- package/i18n/vi.json +4 -2
- package/i18n/zh-TW.json +4 -2
- package/i18n/zh.json +4 -2
- package/llms-full.txt +29 -18
- package/llms.txt +4 -1
- package/package.json +15 -7
- package/pagination/styles/_index.scss +6 -0
- package/popover/styles/_index.scss +4 -2
- package/progress/styles/_index.scss +64 -0
- package/schematics/use/symbol-map.json +5 -0
- package/sidebar/styles/_index.scss +58 -6
- package/skills/ngwr/SKILL.md +7 -6
- package/skills/ngwr/references/catalog.md +6 -4
- package/table/styles/_index.scss +121 -32
- package/tabs/styles/_index.scss +9 -0
- package/theme/styles/_focus.scss +3 -1
- package/tour/styles/_index.scss +3 -2
- package/types/ngwr-avatar.d.ts +39 -0
- package/types/ngwr-button.d.ts +12 -0
- package/types/ngwr-date-picker-testing.d.ts +22 -0
- package/types/ngwr-date-picker.d.ts +78 -17
- package/types/ngwr-date.d.ts +51 -0
- package/types/ngwr-directives.d.ts +45 -0
- package/types/ngwr-dropdown-testing.d.ts +8 -1
- package/types/ngwr-dropdown.d.ts +29 -0
- package/types/ngwr-file-upload-testing.d.ts +10 -0
- package/types/ngwr-file-upload.d.ts +55 -1
- package/types/ngwr-form.d.ts +3 -1
- package/types/ngwr-graph-testing.d.ts +28 -1
- package/types/ngwr-graph.d.ts +53 -3
- package/types/ngwr-i18n-kk.d.ts +3 -0
- package/types/ngwr-image-cropper.d.ts +6 -0
- package/types/ngwr-pagination-testing.d.ts +8 -0
- package/types/ngwr-pagination.d.ts +16 -0
- package/types/ngwr-popover.d.ts +39 -0
- package/types/ngwr-progress.d.ts +63 -1
- package/types/ngwr-scroll.d.ts +86 -0
- package/types/ngwr-select.d.ts +31 -12
- package/types/ngwr-sidebar-testing.d.ts +21 -7
- package/types/ngwr-sidebar.d.ts +66 -4
- package/types/ngwr-table-router.d.ts +49 -0
- package/types/ngwr-table-testing.d.ts +7 -0
- package/types/ngwr-table.d.ts +184 -6
- package/types/ngwr-tabs-router.d.ts +1 -1
- package/types/ngwr-tabs-testing.d.ts +5 -1
- package/types/ngwr-tabs.d.ts +34 -1
- package/types/ngwr-utils.d.ts +13 -0
- package/types/ngwr-version.d.ts +1 -1
|
@@ -33,7 +33,7 @@ root barrel for components: the root `ngwr` exports only `provideWr()`.
|
|
|
33
33
|
| `ngwr/animations/thread-lines` | `import { WrThreadLines } from 'ngwr/animations/thread-lines'` | `wr-thread-lines` |
|
|
34
34
|
| `ngwr/animations/tilt` | `import { WrTilt } from 'ngwr/animations/tilt'` | `[wrTilt]` |
|
|
35
35
|
| `ngwr/animations/typewriter` | `import { WrTypewriter } from 'ngwr/animations/typewriter'` | `wr-typewriter` |
|
|
36
|
-
| `ngwr/avatar` | `import { WrAvatar } from 'ngwr/avatar'` | `wr-avatar` |
|
|
36
|
+
| `ngwr/avatar` | `import { WrAvatar } from 'ngwr/avatar'` | `wr-avatar-group` `wr-avatar` |
|
|
37
37
|
| `ngwr/back-top` | `import { WrBackTop } from 'ngwr/back-top'` | `wr-back-top` |
|
|
38
38
|
| `ngwr/badge` | `import { WrBadge } from 'ngwr/badge'` | `wr-badge` `wr-tag` |
|
|
39
39
|
| `ngwr/breadcrumbs` | `import { WrBreadcrumbs } from 'ngwr/breadcrumbs'` | `wr-breadcrumbs-item` `wr-breadcrumbs` |
|
|
@@ -111,7 +111,7 @@ root barrel for components: the root `ngwr` exports only `provideWr()`.
|
|
|
111
111
|
| `ngwr/descriptions` | `import { WrDescriptions } from 'ngwr/descriptions'` | `wr-description-item` `wr-descriptions` |
|
|
112
112
|
| `ngwr/dialog` | `import { WrDialog } from 'ngwr/dialog'` | `[wrDialogClose]` `[wrDialogContent]` `[wrDialogFooter]` `[wrDialogTitle]` |
|
|
113
113
|
| `ngwr/dialog/testing` | `import { WrDialogHarness } from 'ngwr/dialog/testing'` | — |
|
|
114
|
-
| `ngwr/directives` | `import { WrAutofocus } from 'ngwr/directives'` | `[wrAutofocus]` `textarea[wrAutosize]` `[wrClickOutside]` `[wrCopyToClipboard]` `[wrFitText]` |
|
|
114
|
+
| `ngwr/directives` | `import { WrAutofocus } from 'ngwr/directives'` | `[wrAutofocus]` `textarea[wrAutosize]` `[wrClickOutside]` `[wrCopyToClipboard]` `[wrFitText]` `[wrInView]` |
|
|
115
115
|
| `ngwr/divider` | `import { WrDivider } from 'ngwr/divider'` | `wr-divider` |
|
|
116
116
|
| `ngwr/drawer` | `import { WrDrawer } from 'ngwr/drawer'` | `[wrDrawerClose]` `[wrDrawerContent]` `[wrDrawerFooter]` `[wrDrawerTitle]` `wr-drawer` |
|
|
117
117
|
| `ngwr/drawer/testing` | `import { WrDrawerHarness } from 'ngwr/drawer/testing'` | — |
|
|
@@ -141,6 +141,7 @@ root barrel for components: the root `ngwr` exports only `provideWr()`.
|
|
|
141
141
|
| `ngwr/i18n/id` | `import { wrId } from 'ngwr/i18n/id'` | — |
|
|
142
142
|
| `ngwr/i18n/it` | `import { wrIt } from 'ngwr/i18n/it'` | — |
|
|
143
143
|
| `ngwr/i18n/ja` | `import { wrJa } from 'ngwr/i18n/ja'` | — |
|
|
144
|
+
| `ngwr/i18n/kk` | `import { wrKk } from 'ngwr/i18n/kk'` | — |
|
|
144
145
|
| `ngwr/i18n/ko` | `import { wrKo } from 'ngwr/i18n/ko'` | — |
|
|
145
146
|
| `ngwr/i18n/nl` | `import { wrNl } from 'ngwr/i18n/nl'` | — |
|
|
146
147
|
| `ngwr/i18n/pl` | `import { wrPl } from 'ngwr/i18n/pl'` | — |
|
|
@@ -183,7 +184,7 @@ root barrel for components: the root `ngwr` exports only `provideWr()`.
|
|
|
183
184
|
| `ngwr/platform` | `import { WrPlatform } from 'ngwr/platform'` | — |
|
|
184
185
|
| `ngwr/popconfirm` | `import { WrPopconfirm } from 'ngwr/popconfirm'` | `wr-popconfirm` `[wrPopconfirm]` |
|
|
185
186
|
| `ngwr/popconfirm/testing` | `import { WrPopconfirmHarness } from 'ngwr/popconfirm/testing'` | — |
|
|
186
|
-
| `ngwr/popover` | `import { WrPopover } from 'ngwr/popover'` | `[wrPopover]` |
|
|
187
|
+
| `ngwr/popover` | `import { WrPopover } from 'ngwr/popover'` | `[wrPopover]` `[wrTooltip]` |
|
|
187
188
|
| `ngwr/popover/testing` | `import { WrPopoverHarness } from 'ngwr/popover/testing'` | — |
|
|
188
189
|
| `ngwr/progress` | `import { WrProgress } from 'ngwr/progress'` | `wr-progress` |
|
|
189
190
|
| `ngwr/pull-to-refresh` | `import { WrPullToRefresh } from 'ngwr/pull-to-refresh'` | `wr-pull-to-refresh` |
|
|
@@ -198,7 +199,7 @@ root barrel for components: the root `ngwr` exports only `provideWr()`.
|
|
|
198
199
|
| `ngwr/result` | `import { WrResult } from 'ngwr/result'` | `wr-result-404` `wr-result-403` `wr-result-500` `wr-result` |
|
|
199
200
|
| `ngwr/schema-form` | `import { WrSchemaForm } from 'ngwr/schema-form'` | `wr-schema-form` |
|
|
200
201
|
| `ngwr/schema-form/testing` | `import { WrSchemaFormArrayHarness } from 'ngwr/schema-form/testing'` | — |
|
|
201
|
-
| `ngwr/scroll` | `import { WrScroll } from 'ngwr/scroll'` |
|
|
202
|
+
| `ngwr/scroll` | `import { WrScroll } from 'ngwr/scroll'` | `[wrScrollFollow]` |
|
|
202
203
|
| `ngwr/segmented` | `import { WrSegmented } from 'ngwr/segmented'` | `wr-segmented` |
|
|
203
204
|
| `ngwr/segmented/testing` | `import { WrSegmentedHarness } from 'ngwr/segmented/testing'` | — |
|
|
204
205
|
| `ngwr/select` | `import { WrSelect } from 'ngwr/select'` | `ng-template[wrSelectLoadError]` `wr-option-group` `ng-template[wrOptionLeading]` `wr-option` `wr-select` |
|
|
@@ -222,6 +223,7 @@ root barrel for components: the root `ngwr` exports only `provideWr()`.
|
|
|
222
223
|
| `ngwr/switch` | `import { WrSwitch } from 'ngwr/switch'` | `wr-switch` |
|
|
223
224
|
| `ngwr/switch/testing` | `import { WrSwitchHarness } from 'ngwr/switch/testing'` | — |
|
|
224
225
|
| `ngwr/table` | `import { WrTable } from 'ngwr/table'` | `[wrTableCell]` `wr-table-column-chooser` `[wrTableEditCell]` `ng-template[wrTableExpand]` `wr-table-filter` `ng-template[wrTableGroupHeader]` `ng-template[wrTableSelectionBar]` `wr-table-sort` `wr-table` |
|
|
226
|
+
| `ngwr/table/router` | `import { WrTableRouting } from 'ngwr/table/router'` | `[wrTableRouting]` |
|
|
225
227
|
| `ngwr/table/testing` | `import { WrTableCellHarness } from 'ngwr/table/testing'` | — |
|
|
226
228
|
| `ngwr/tabs` | `import { WrTabs } from 'ngwr/tabs'` | `wr-tab` `wr-tabs` |
|
|
227
229
|
| `ngwr/tabs/router` | `import { WrTabsRouting } from 'ngwr/tabs/router'` | `[wrTabsRouting]` |
|
package/table/styles/_index.scss
CHANGED
|
@@ -20,6 +20,12 @@
|
|
|
20
20
|
@use '../../spinner/styles' as spinner-styles; // WrSpinner
|
|
21
21
|
@include theme.loaded('table');
|
|
22
22
|
|
|
23
|
+
// A row whose link has the focus ring, which the row draws for it.
|
|
24
|
+
$row-link-focused: ':has(> td > .wr-table__row-link:focus-visible)';
|
|
25
|
+
|
|
26
|
+
// The controls in a linked row that keep the pointer, see `&__tr--link`.
|
|
27
|
+
$row-controls: "a[href], button, input, select, textarea, label, [role='button'], [contenteditable]:not([contenteditable='false']), [wrTableIgnoreRowClick], .wr-table__actions";
|
|
28
|
+
|
|
23
29
|
.wr-table {
|
|
24
30
|
--wr-table-bg: var(--wr-color-surface);
|
|
25
31
|
--wr-table-border: var(--wr-border-base);
|
|
@@ -31,6 +37,12 @@
|
|
|
31
37
|
--wr-table-head-font-size: var(--wr-text-xs);
|
|
32
38
|
--wr-table-head-font-weight: var(--wr-font-weight-semibold);
|
|
33
39
|
--wr-table-row-hover: var(--wr-color-fill-subtle);
|
|
40
|
+
// The padding of a header, body and footer cell at density 1. Off the
|
|
41
|
+
// spacing scale: these are the lengths the table has always drawn, and each
|
|
42
|
+
// is multiplied by `--wr-density-y` / `-x` where it is read. `size="sm"`
|
|
43
|
+
// restates both (see `.wr-table--sm`).
|
|
44
|
+
--wr-table-cell-padding-y: 0.625rem;
|
|
45
|
+
--wr-table-cell-padding-x: 0.875rem;
|
|
34
46
|
// Head casing. The library renders column titles as the author wrote them —
|
|
35
47
|
// forcing `uppercase` mutates their content, and a header written "ID" or
|
|
36
48
|
// "created at" is the consumer's decision to make, not ours. Both halves stay
|
|
@@ -136,7 +148,8 @@
|
|
|
136
148
|
|
|
137
149
|
&__th,
|
|
138
150
|
&__td {
|
|
139
|
-
padding: calc(
|
|
151
|
+
padding: calc(var(--wr-table-cell-padding-y) * var(--wr-density-y, 1))
|
|
152
|
+
calc(var(--wr-table-cell-padding-x) * var(--wr-density-x, 1));
|
|
140
153
|
text-align: start;
|
|
141
154
|
vertical-align: middle;
|
|
142
155
|
border-bottom: 1px solid var(--wr-table-border);
|
|
@@ -228,6 +241,13 @@
|
|
|
228
241
|
}
|
|
229
242
|
}
|
|
230
243
|
|
|
244
|
+
// A click anywhere in a sortable header cell sorts. Above `--draggable`, so
|
|
245
|
+
// a reorderable column keeps its grab cursor.
|
|
246
|
+
&__th--sortable {
|
|
247
|
+
cursor: pointer;
|
|
248
|
+
user-select: none;
|
|
249
|
+
}
|
|
250
|
+
|
|
231
251
|
// --- Column reordering ----------------------------------------------------
|
|
232
252
|
&__th--draggable {
|
|
233
253
|
cursor: grab;
|
|
@@ -326,8 +346,6 @@
|
|
|
326
346
|
font-variant-numeric: tabular-nums;
|
|
327
347
|
}
|
|
328
348
|
|
|
329
|
-
// --- Row selection --------------------------------------------------------
|
|
330
|
-
&__th--select,
|
|
331
349
|
// --- Row actions ----------------------------------------------------------
|
|
332
350
|
// `column.actions`. `width: 1%` shrinks the column to its buttons under auto
|
|
333
351
|
// layout; a fixed layout would read it literally, so there the column takes
|
|
@@ -353,6 +371,8 @@
|
|
|
353
371
|
vertical-align: middle;
|
|
354
372
|
}
|
|
355
373
|
|
|
374
|
+
// --- Row selection --------------------------------------------------------
|
|
375
|
+
&__th--select,
|
|
356
376
|
&__td--select {
|
|
357
377
|
width: 1%;
|
|
358
378
|
white-space: nowrap;
|
|
@@ -436,7 +456,8 @@
|
|
|
436
456
|
// carries no styles of its own — it exists as a public hook so consumers can
|
|
437
457
|
// target those two cells without matching on position.
|
|
438
458
|
&__foot-cell {
|
|
439
|
-
padding: calc(
|
|
459
|
+
padding: calc(var(--wr-table-cell-padding-y) * var(--wr-density-y, 1))
|
|
460
|
+
calc(var(--wr-table-cell-padding-x) * var(--wr-density-x, 1));
|
|
440
461
|
background: var(--wr-table-head-bg);
|
|
441
462
|
border-top: 1px solid var(--wr-table-border);
|
|
442
463
|
font-weight: var(--wr-table-foot-cell-font-weight);
|
|
@@ -477,8 +498,10 @@
|
|
|
477
498
|
}
|
|
478
499
|
|
|
479
500
|
// Keep the row-hover tint on pinned body cells.
|
|
480
|
-
&__tr:hover &__td--pin-left,
|
|
481
|
-
&__tr:hover &__td--pin-right
|
|
501
|
+
&__tr--link:hover &__td--pin-left,
|
|
502
|
+
&__tr--link:hover &__td--pin-right,
|
|
503
|
+
&__tr--clickable:hover &__td--pin-left,
|
|
504
|
+
&__tr--clickable:hover &__td--pin-right {
|
|
482
505
|
background-image: linear-gradient(var(--wr-table-row-hover), var(--wr-table-row-hover));
|
|
483
506
|
}
|
|
484
507
|
|
|
@@ -642,40 +665,45 @@
|
|
|
642
665
|
&__tr {
|
|
643
666
|
transition: background var(--wr-transition-base);
|
|
644
667
|
|
|
645
|
-
|
|
668
|
+
// Only a row that leads somewhere tints: one with a link, or any row while
|
|
669
|
+
// `rowClick` is bound. A tint on a row that does nothing promises a click.
|
|
670
|
+
&--link:hover,
|
|
671
|
+
&--clickable:hover {
|
|
646
672
|
background: var(--wr-table-row-hover);
|
|
647
673
|
}
|
|
648
674
|
|
|
649
675
|
// A tree row holds the treegrid's roving tab stop (the APG's row focus), so
|
|
650
|
-
// it needs the ring every other focusable part of the table has.
|
|
676
|
+
// it needs the ring every other focusable part of the table has. A row's
|
|
677
|
+
// link lies under the whole row, so its focus draws the same ring. Inset: the
|
|
651
678
|
// host is `overflow: hidden`, and the first and last rows run flush to its
|
|
652
679
|
// border, where an outset ring is clipped away.
|
|
653
|
-
&:focus-visible
|
|
680
|
+
&:focus-visible,
|
|
681
|
+
&#{$row-link-focused} {
|
|
654
682
|
@include theme.focus-ring;
|
|
655
683
|
outline-offset: -2px;
|
|
656
|
-
}
|
|
657
684
|
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
685
|
+
// A pinned cell is sticky, stacked above the row and opaque, so it paints
|
|
686
|
+
// over the row's outline. It draws its own stretch of the ring instead:
|
|
687
|
+
// the block edges always, an inline edge only where it ends the row. A
|
|
688
|
+
// border rather than a shadow, since `forced-colors` drops shadows.
|
|
689
|
+
.wr-table__td--pin-left::after,
|
|
690
|
+
.wr-table__td--pin-right::after {
|
|
691
|
+
content: '';
|
|
692
|
+
position: absolute;
|
|
693
|
+
inset: 0;
|
|
694
|
+
border-block: var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);
|
|
695
|
+
pointer-events: none;
|
|
696
|
+
}
|
|
670
697
|
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
698
|
+
.wr-table__td--pin-left:first-child::after,
|
|
699
|
+
.wr-table__td--pin-right:first-child::after {
|
|
700
|
+
border-inline-start: var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);
|
|
701
|
+
}
|
|
675
702
|
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
703
|
+
.wr-table__td--pin-left:last-child::after,
|
|
704
|
+
.wr-table__td--pin-right:last-child::after {
|
|
705
|
+
border-inline-end: var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);
|
|
706
|
+
}
|
|
679
707
|
}
|
|
680
708
|
|
|
681
709
|
&:last-child .wr-table__td {
|
|
@@ -683,6 +711,49 @@
|
|
|
683
711
|
}
|
|
684
712
|
}
|
|
685
713
|
|
|
714
|
+
// --- Row links (`rowLink`) --------------------------------------------------
|
|
715
|
+
// One empty anchor per row, stretched under the cells. The row is its own
|
|
716
|
+
// stacking context, so the link sits below every cell and the cells let the
|
|
717
|
+
// pointer through to it; a control in a cell takes the pointer back. Nothing
|
|
718
|
+
// is raised or repositioned, so a cell template lays out as it did.
|
|
719
|
+
&__tr--link {
|
|
720
|
+
position: relative;
|
|
721
|
+
z-index: 0;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
&__row-link {
|
|
725
|
+
position: absolute;
|
|
726
|
+
inset: 0;
|
|
727
|
+
z-index: -1;
|
|
728
|
+
// The focused link rings the row (see `&__tr` above).
|
|
729
|
+
outline: none;
|
|
730
|
+
pointer-events: auto;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
&__tr--link > &__td {
|
|
734
|
+
pointer-events: none;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
// The cells that are controls themselves. A cut cell is one for its tooltip,
|
|
738
|
+
// and the component hands its clicks to the link.
|
|
739
|
+
&__tr--link > &__td--select,
|
|
740
|
+
&__tr--link > &__td--expand,
|
|
741
|
+
&__tr--link > &__td--editable,
|
|
742
|
+
&__tr--link > &__td--editing,
|
|
743
|
+
&__tr--link > &__td--truncate {
|
|
744
|
+
pointer-events: auto;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
&__tr--link > &__td--truncate {
|
|
748
|
+
cursor: pointer;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
// What `rowClick` skips (`ROW_CLICK_IGNORE` in table.ts), at no specificity:
|
|
752
|
+
// a disabled control that turns its own pointer events off keeps them off.
|
|
753
|
+
@at-root :where(.wr-table__tr--link) > :where(.wr-table__td) :where(#{$row-controls}) {
|
|
754
|
+
pointer-events: auto;
|
|
755
|
+
}
|
|
756
|
+
|
|
686
757
|
&__empty {
|
|
687
758
|
text-align: center;
|
|
688
759
|
color: var(--wr-color-on-surface-muted);
|
|
@@ -843,6 +914,7 @@
|
|
|
843
914
|
// --- Row grouping ---------------------------------------------------------
|
|
844
915
|
--wr-table-group-bg: var(--wr-color-fill-subtle);
|
|
845
916
|
--wr-table-group-inner-gap: var(--wr-space-sm);
|
|
917
|
+
--wr-table-group-inner-padding-y: var(--wr-space-sm);
|
|
846
918
|
--wr-table-group-toggle-gap: var(--wr-space-sm);
|
|
847
919
|
--wr-table-group-toggle-font-weight: var(--wr-font-weight-semibold);
|
|
848
920
|
--wr-table-group-count-padding-x: var(--wr-space-sm);
|
|
@@ -869,7 +941,8 @@
|
|
|
869
941
|
align-items: center;
|
|
870
942
|
gap: var(--wr-table-group-inner-gap);
|
|
871
943
|
max-width: 100%;
|
|
872
|
-
padding: calc(
|
|
944
|
+
padding: calc(var(--wr-table-group-inner-padding-y) * var(--wr-density-y, 1))
|
|
945
|
+
calc(var(--wr-table-cell-padding-x) * var(--wr-density-x, 1));
|
|
873
946
|
}
|
|
874
947
|
|
|
875
948
|
&__group-select {
|
|
@@ -960,6 +1033,19 @@
|
|
|
960
1033
|
}
|
|
961
1034
|
}
|
|
962
1035
|
|
|
1036
|
+
// --- Compact size -----------------------------------------------------------
|
|
1037
|
+
// `size="sm"` restates the padding hooks one notch tighter, on the spacing
|
|
1038
|
+
// scale. The density multipliers still apply on top, so a compact table inside
|
|
1039
|
+
// a `sm` density is tighter again. After the base block, which declares the
|
|
1040
|
+
// group hook last. The attribute form covers the frame before the first update
|
|
1041
|
+
// pass (see `static-variant-selectors.spec.ts`).
|
|
1042
|
+
.wr-table--sm,
|
|
1043
|
+
.wr-table:where([size='sm']) {
|
|
1044
|
+
--wr-table-cell-padding-y: var(--wr-space-xs);
|
|
1045
|
+
--wr-table-cell-padding-x: var(--wr-space-sm);
|
|
1046
|
+
--wr-table-group-inner-padding-y: var(--wr-space-xs);
|
|
1047
|
+
}
|
|
1048
|
+
|
|
963
1049
|
// --- Own scroll area --------------------------------------------------------
|
|
964
1050
|
// Scoped under the host `--sticky-head` class (`stickyHeader`, or a virtualized
|
|
965
1051
|
// body), so a table without either is untouched.
|
|
@@ -1160,7 +1246,9 @@
|
|
|
1160
1246
|
// An unfrozen cell no longer covers the row's ring, so it draws no stretch of
|
|
1161
1247
|
// its own (and, being static, would anchor one to the wrong box).
|
|
1162
1248
|
.wr-table--responsive .wr-table__tr:focus-visible .wr-table__td--pin-left::after,
|
|
1163
|
-
.wr-table--responsive .wr-table__tr:focus-visible .wr-table__td--pin-right::after
|
|
1249
|
+
.wr-table--responsive .wr-table__tr:focus-visible .wr-table__td--pin-right::after,
|
|
1250
|
+
.wr-table--responsive .wr-table__tr#{$row-link-focused} .wr-table__td--pin-left::after,
|
|
1251
|
+
.wr-table--responsive .wr-table__tr#{$row-link-focused} .wr-table__td--pin-right::after {
|
|
1164
1252
|
content: none;
|
|
1165
1253
|
}
|
|
1166
1254
|
|
|
@@ -1465,7 +1553,8 @@
|
|
|
1465
1553
|
// declared on `.wr-table`, which the preview has left, so they are passed with
|
|
1466
1554
|
// the same defaults that block sets. `--wr-density-*` and `--wr-color-*` are
|
|
1467
1555
|
// root-level and resolve as-is.
|
|
1468
|
-
padding: calc(
|
|
1556
|
+
padding: calc(var(--wr-table-cell-padding-y, 0.625rem) * var(--wr-density-y, 1))
|
|
1557
|
+
calc(var(--wr-table-cell-padding-x, 0.875rem) * var(--wr-density-x, 1));
|
|
1469
1558
|
background: var(--wr-table-head-bg, var(--wr-color-fill));
|
|
1470
1559
|
color: var(--wr-color-on-surface-muted);
|
|
1471
1560
|
font-family: var(--wr-table-font-family, var(--wr-font-family-base));
|
package/tabs/styles/_index.scss
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
@use '../../theme/styles' as theme;
|
|
2
|
+
|
|
3
|
+
// Styles for the entry points this component's own markup renders.
|
|
4
|
+
@use '../../badge/styles' as badge-styles; // WrBadge
|
|
2
5
|
@include theme.loaded('tabs');
|
|
3
6
|
|
|
4
7
|
.wr-tabs {
|
|
@@ -14,6 +17,7 @@
|
|
|
14
17
|
--wr-tabs-padding-y: var(--wr-space-md);
|
|
15
18
|
--wr-tabs-padding-x: var(--wr-space-lg);
|
|
16
19
|
--wr-tabs-strip-gap: var(--wr-space-xs);
|
|
20
|
+
--wr-tabs-count-gap: var(--wr-space-sm);
|
|
17
21
|
--wr-tabs-panel-padding-top: var(--wr-space-lg);
|
|
18
22
|
|
|
19
23
|
display: block;
|
|
@@ -123,6 +127,11 @@
|
|
|
123
127
|
}
|
|
124
128
|
}
|
|
125
129
|
|
|
130
|
+
&__count {
|
|
131
|
+
margin-inline-start: var(--wr-tabs-count-gap);
|
|
132
|
+
vertical-align: middle;
|
|
133
|
+
}
|
|
134
|
+
|
|
126
135
|
&__panel {
|
|
127
136
|
padding-top: var(--wr-tabs-panel-padding-top);
|
|
128
137
|
}
|
package/theme/styles/_focus.scss
CHANGED
|
@@ -280,8 +280,10 @@
|
|
|
280
280
|
// Graph — the viewport is the graph's one tab stop, the element a keyboard
|
|
281
281
|
// scrolls, or zooms and pans when the graph is `zoomable`. Its own `overflow`
|
|
282
282
|
// does not clip its outline, so the ring stays outset. The zoom buttons beside
|
|
283
|
-
// it are bare `<button>`s.
|
|
283
|
+
// it are bare `<button>`s. With `selectable` every node is a button too, and the
|
|
284
|
+
// stage around the nodes clips nothing.
|
|
284
285
|
.wr-graph__viewport:focus-visible,
|
|
286
|
+
.wr-graph__select:focus-visible,
|
|
285
287
|
.wr-graph__control:focus-visible {
|
|
286
288
|
@include focus-ring;
|
|
287
289
|
}
|
package/tour/styles/_index.scss
CHANGED
|
@@ -105,10 +105,11 @@
|
|
|
105
105
|
// No `z-index` on the pane — the comment above `.wr-tour-cutout` already said
|
|
106
106
|
// one here "cannot help", and it was carrying 1001 anyway.
|
|
107
107
|
|
|
108
|
-
// The cut-out's spread shadow would dim the whole sheet.
|
|
108
|
+
// The cut-out's spread shadow would dim the whole sheet. The pane class is paired with
|
|
109
|
+
// `.cdk-overlay-pane`, whose `display: flex` the CDK sheet adds after this one.
|
|
109
110
|
@media print {
|
|
110
111
|
.wr-tour__spotlight,
|
|
111
|
-
.wr-tour-overlay {
|
|
112
|
+
.cdk-overlay-pane.wr-tour-overlay {
|
|
112
113
|
display: none;
|
|
113
114
|
}
|
|
114
115
|
}
|
package/types/ngwr-avatar.d.ts
CHANGED
|
@@ -219,4 +219,43 @@ export declare class WrAvatar {
|
|
|
219
219
|
};
|
|
220
220
|
}, {}, never, ["*"], true, never>;
|
|
221
221
|
}
|
|
222
|
+
export declare class WrAvatarGroup {
|
|
223
|
+
/**
|
|
224
|
+
* The most avatars drawn. Past it the rest are hidden and a "+N" avatar counts
|
|
225
|
+
* them. Unset, negative or not a number: no limit.
|
|
226
|
+
*
|
|
227
|
+
* @default null
|
|
228
|
+
*/
|
|
229
|
+
readonly max: import("@angular/core").InputSignalWithTransform<number | null, unknown>;
|
|
230
|
+
/**
|
|
231
|
+
* The group's accessible name, for example "Assignees". Without one the group
|
|
232
|
+
* has no role.
|
|
233
|
+
*
|
|
234
|
+
* @default null
|
|
235
|
+
*/
|
|
236
|
+
readonly label: import("@angular/core").InputSignal<string | null>;
|
|
237
|
+
private readonly avatars;
|
|
238
|
+
private readonly elements;
|
|
239
|
+
private readonly renderer;
|
|
240
|
+
private readonly moreText;
|
|
241
|
+
/** How many avatars `max` hides. */
|
|
242
|
+
protected readonly hiddenCount: import("@angular/core").Signal<number>;
|
|
243
|
+
protected readonly moreName: import("@angular/core").Signal<string>;
|
|
244
|
+
protected readonly moreSize: import("@angular/core").Signal<WrAvatarSize>;
|
|
245
|
+
protected readonly moreShape: import("@angular/core").Signal<WrAvatarShape>;
|
|
246
|
+
constructor();
|
|
247
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrAvatarGroup, never>;
|
|
248
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WrAvatarGroup, "wr-avatar-group", never, {
|
|
249
|
+
"max": {
|
|
250
|
+
"alias": "max";
|
|
251
|
+
"required": false;
|
|
252
|
+
"isSignal": true;
|
|
253
|
+
};
|
|
254
|
+
"label": {
|
|
255
|
+
"alias": "label";
|
|
256
|
+
"required": false;
|
|
257
|
+
"isSignal": true;
|
|
258
|
+
};
|
|
259
|
+
}, {}, ["avatars", "elements"], ["*"], true, never>;
|
|
260
|
+
}
|
|
222
261
|
export type { WrAvatarShape, WrAvatarSize };
|
package/types/ngwr-button.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ interface WrButtonGroupContext {
|
|
|
53
53
|
* ```html
|
|
54
54
|
* <button wr-btn color="primary">Save</button>
|
|
55
55
|
* <a wr-btn color="primary" outlined>Cancel</a>
|
|
56
|
+
* <button wr-btn color="primary" ghost>Skip</button>
|
|
56
57
|
* <wr-btn color="danger" icon="trash">Delete</wr-btn>
|
|
57
58
|
* <wr-btn color="primary" shape="pill">Pill</wr-btn>
|
|
58
59
|
* ```
|
|
@@ -110,6 +111,12 @@ export declare class WrButton {
|
|
|
110
111
|
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
111
112
|
/** Outlined variant — colored text and border on a transparent background. @default false */
|
|
112
113
|
readonly outlined: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
114
|
+
/**
|
|
115
|
+
* Ghost variant — no fill and no border at rest, just the label in the button's
|
|
116
|
+
* color; hover and press tint the background. Quieter than `outlined`.
|
|
117
|
+
* @default false
|
|
118
|
+
*/
|
|
119
|
+
readonly ghost: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
113
120
|
/** Stretch the button to fill its parent's width. @default false */
|
|
114
121
|
readonly block: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
115
122
|
/** Show a spinner overlaying the label. Layout is preserved. @default false */
|
|
@@ -257,6 +264,11 @@ export declare class WrButton {
|
|
|
257
264
|
"required": false;
|
|
258
265
|
"isSignal": true;
|
|
259
266
|
};
|
|
267
|
+
"ghost": {
|
|
268
|
+
"alias": "ghost";
|
|
269
|
+
"required": false;
|
|
270
|
+
"isSignal": true;
|
|
271
|
+
};
|
|
260
272
|
"block": {
|
|
261
273
|
"alias": "block";
|
|
262
274
|
"required": false;
|
|
@@ -420,6 +420,26 @@ export declare class WrDatePickerHarness extends WrDatePickerHarnessBase {
|
|
|
420
420
|
* is empty and the placeholder is up.
|
|
421
421
|
*/
|
|
422
422
|
getValueText(): Promise<string>;
|
|
423
|
+
/**
|
|
424
|
+
* The held day of a `valueFormat="day"` picker, as the `YYYY-MM-DD` string its
|
|
425
|
+
* model holds, or `null` when it is empty. Read from the host's `data-day`,
|
|
426
|
+
* which the component writes from the model, so text the picker refused does
|
|
427
|
+
* not show here. Throws on a picker that holds a `Date`.
|
|
428
|
+
*/
|
|
429
|
+
getDayValue(): Promise<string | null>;
|
|
430
|
+
/**
|
|
431
|
+
* Pick a `YYYY-MM-DD` day out of the calendar, opening the popup when it is
|
|
432
|
+
* closed: zoom out to the years, then pick the year, the month and the day,
|
|
433
|
+
* as far as the mode goes (a `month` picker stops at the month, a `week`
|
|
434
|
+
* picker takes the week the day is in). It needs no `valueFormat="day"`, and
|
|
435
|
+
* it does not know the field's `format`, which is why it does not type.
|
|
436
|
+
*
|
|
437
|
+
* Throws on a string that is not in that form, on a year, month or day that
|
|
438
|
+
* `min` / `max` or `dateFilter` rule out, and in `time` and `datetime` modes.
|
|
439
|
+
* A read-only picker opens and takes the clicks without moving its value:
|
|
440
|
+
* assert with {@link getDayValue}.
|
|
441
|
+
*/
|
|
442
|
+
setDayValue(day: string): Promise<void>;
|
|
423
443
|
/** The field's placeholder. */
|
|
424
444
|
getPlaceholder(): Promise<string>;
|
|
425
445
|
/**
|
|
@@ -465,6 +485,8 @@ export declare class WrDatePickerHarness extends WrDatePickerHarnessBase {
|
|
|
465
485
|
stepTime(unit: 'hours' | 'minutes' | 'seconds', direction: 1 | -1): Promise<void>;
|
|
466
486
|
/** Flip the stepper between AM and PM. Throws in 24-hour mode, which has no such control. */
|
|
467
487
|
toggleMeridiem(): Promise<void>;
|
|
488
|
+
/** Page the year view until `year` is one of the twelve on show. */
|
|
489
|
+
private showYear;
|
|
468
490
|
private field;
|
|
469
491
|
/** The one stepper in the popup — `panelId()` has already refused a closed picker. */
|
|
470
492
|
private timePanel;
|
|
@@ -81,6 +81,19 @@ type WrDateRangePickerMode = 'date' | 'datetime' | 'month' | 'quarter' | 'year';
|
|
|
81
81
|
*/
|
|
82
82
|
/** Control size for `<wr-date-picker>` and `<wr-date-range-picker>` — shares the `--wr-control-*` contract. */
|
|
83
83
|
type WrDatePickerSize = 'sm' | 'md' | 'lg';
|
|
84
|
+
/**
|
|
85
|
+
* @license
|
|
86
|
+
*
|
|
87
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
88
|
+
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
89
|
+
*/
|
|
90
|
+
/**
|
|
91
|
+
* What `<wr-date-picker>` holds in its `value` model: `'date'` is a `Date`,
|
|
92
|
+
* `'day'` is a `YYYY-MM-DD` string, the browser-local day `wrToDay` writes.
|
|
93
|
+
*/
|
|
94
|
+
type WrDatePickerValueFormat = 'date' | 'day';
|
|
95
|
+
/** The `value` type of `<wr-date-picker>` under a {@link WrDatePickerValueFormat}. */
|
|
96
|
+
type WrDatePickerValue<F extends WrDatePickerValueFormat = 'date'> = F extends 'day' ? string : Date;
|
|
84
97
|
/**
|
|
85
98
|
* @license
|
|
86
99
|
*
|
|
@@ -151,11 +164,13 @@ interface WrDateRangePreset {
|
|
|
151
164
|
* year and arranged by the i18n catalog; `[format]`, when set, replaces it,
|
|
152
165
|
* and the date typed in that format stands for the period it is in.
|
|
153
166
|
*
|
|
154
|
-
* A signal-forms native control: it implements `FormValueControl
|
|
155
|
-
*
|
|
167
|
+
* A signal-forms native control: it implements `FormValueControl`, so
|
|
168
|
+
* `[formField]` binds straight to its `value` model — no
|
|
156
169
|
* `ControlValueAccessor` in between. `[(value)]` works standalone, and classic
|
|
157
170
|
* `[(ngModel)]` / reactive forms keep working through Angular's bridge. Value
|
|
158
|
-
* type is `Date | null` for every mode
|
|
171
|
+
* type is `Date | null` for every mode, unless {@link valueFormat} is `'day'`:
|
|
172
|
+
* the model is then a `YYYY-MM-DD` string, and the class's type parameter is
|
|
173
|
+
* that format, inferred from the `valueFormat` binding in a template.
|
|
159
174
|
*
|
|
160
175
|
* Parses the input on every keystroke and emits only a date it can read and the
|
|
161
176
|
* calendar would accept. Anything else is REFUSED, never guessed: the bound value
|
|
@@ -184,11 +199,14 @@ interface WrDateRangePreset {
|
|
|
184
199
|
*
|
|
185
200
|
* <!-- Date + time -->
|
|
186
201
|
* <wr-date-picker mode="datetime" [(value)]="when" [showSeconds]="true" [step]="5" />
|
|
202
|
+
*
|
|
203
|
+
* <!-- A day string: `due` is a `signal<string | null>` holding '2026-03-01' -->
|
|
204
|
+
* <wr-date-picker valueFormat="day" [(value)]="due" min="2026-01-01" />
|
|
187
205
|
* ```
|
|
188
206
|
*
|
|
189
207
|
* @see https://ngwr.dev/reference/components/date-picker
|
|
190
208
|
*/
|
|
191
|
-
export declare class WrDatePicker implements FormValueControl<
|
|
209
|
+
export declare class WrDatePicker<F extends WrDatePickerValueFormat = 'date'> implements Omit<FormValueControl<WrDatePickerValue<F> | null>, 'min' | 'max'> {
|
|
192
210
|
/**
|
|
193
211
|
* What the picker picks: `'date'`, `'time'`, `'datetime'`, or a period held
|
|
194
212
|
* as its first day: `'week'`, `'month'`, `'quarter'`, `'year'`.
|
|
@@ -207,16 +225,38 @@ export declare class WrDatePicker implements FormValueControl<Date | null> {
|
|
|
207
225
|
/** Placeholder shown when the input is empty. */
|
|
208
226
|
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
209
227
|
/**
|
|
210
|
-
*
|
|
211
|
-
*
|
|
228
|
+
* What the `value` model holds. `'date'` is a `Date`. `'day'` is a
|
|
229
|
+
* `YYYY-MM-DD` string, the browser-local day `wrToDay` from `ngwr/date`
|
|
230
|
+
* writes, so a form posts what the picker holds. A string that is not a
|
|
231
|
+
* valid day in that form reads as empty.
|
|
232
|
+
*
|
|
233
|
+
* It applies where the value is a day: `mode="date"` and the period modes,
|
|
234
|
+
* which hold their first day. `time` and `datetime` hold an instant, which a
|
|
235
|
+
* day string cannot carry: they ignore it, keep a `Date`, and warn in dev mode.
|
|
236
|
+
*
|
|
237
|
+
* Only the model changes. `dateFilter` is still called with a `Date`, and a
|
|
238
|
+
* refusal still carries `Date`s in its payload.
|
|
239
|
+
* @default 'date'
|
|
240
|
+
*/
|
|
241
|
+
readonly valueFormat: import("@angular/core").InputSignal<F>;
|
|
242
|
+
/**
|
|
243
|
+
* Min selectable date (forwarded to the calendar): a `Date`, or a
|
|
244
|
+
* `YYYY-MM-DD` string under any `valueFormat`. Ignored in `time` mode, and a
|
|
245
|
+
* string that is not a valid day is no bound. A period mode refuses a period
|
|
246
|
+
* that ends before it.
|
|
247
|
+
*/
|
|
248
|
+
readonly min: import("@angular/core").InputSignal<string | Date | undefined>;
|
|
249
|
+
/**
|
|
250
|
+
* Max selectable date (forwarded to the calendar): a `Date`, or a
|
|
251
|
+
* `YYYY-MM-DD` string under any `valueFormat`. Ignored in `time` mode, and a
|
|
252
|
+
* string that is not a valid day is no bound. A period mode refuses a period
|
|
253
|
+
* that starts after it.
|
|
212
254
|
*/
|
|
213
|
-
readonly
|
|
255
|
+
readonly max: import("@angular/core").InputSignal<string | Date | undefined>;
|
|
214
256
|
/**
|
|
215
|
-
*
|
|
216
|
-
*
|
|
257
|
+
* Predicate to disable specific dates (forwarded to the calendar). Ignored in
|
|
258
|
+
* `time` mode. Called with a `Date` at local midnight under either `valueFormat`.
|
|
217
259
|
*/
|
|
218
|
-
readonly max: import("@angular/core").InputSignal<Date | undefined>;
|
|
219
|
-
/** Predicate to disable specific dates (forwarded to the calendar). Ignored in `time` mode. */
|
|
220
260
|
readonly dateFilter: import("@angular/core").InputSignal<((date: Date) => boolean) | null>;
|
|
221
261
|
/**
|
|
222
262
|
* 12 / 24-hour clock, in the time panel and in the field, unless `format` is
|
|
@@ -275,8 +315,22 @@ export declare class WrDatePicker implements FormValueControl<Date | null> {
|
|
|
275
315
|
private readonly dir;
|
|
276
316
|
protected readonly inputEl: Signal<ElementRef<HTMLInputElement>>;
|
|
277
317
|
protected readonly triggerEl: Signal<ElementRef<HTMLButtonElement> | undefined>;
|
|
278
|
-
/**
|
|
279
|
-
|
|
318
|
+
/**
|
|
319
|
+
* The picked value: a `Date`, or a `YYYY-MM-DD` string with
|
|
320
|
+
* `valueFormat="day"`. Bound by `[formField]`, or two-way via `[(value)]`.
|
|
321
|
+
*/
|
|
322
|
+
readonly value: import("@angular/core").ModelSignal<WrDatePickerValue<F> | null>;
|
|
323
|
+
/** Whether the model holds a day string: `valueFormat="day"` in a mode whose value is a day. */
|
|
324
|
+
private readonly holdsDay;
|
|
325
|
+
/** The model as the `Date` the field and the panels work on. */
|
|
326
|
+
private readonly date;
|
|
327
|
+
private readonly minDate;
|
|
328
|
+
private readonly maxDate;
|
|
329
|
+
/**
|
|
330
|
+
* The held day on the host as `data-day`, for a test or a stylesheet: empty
|
|
331
|
+
* while there is no value, absent when the model is a `Date`.
|
|
332
|
+
*/
|
|
333
|
+
protected readonly dayAttr: Signal<string | null>;
|
|
280
334
|
/** Emitted on blur so a bound field can mark itself touched. */
|
|
281
335
|
readonly touch: import("@angular/core").OutputEmitterRef<void>;
|
|
282
336
|
/** Fires after the popup opens. */
|
|
@@ -573,9 +627,11 @@ export declare class WrDatePicker implements FormValueControl<Date | null> {
|
|
|
573
627
|
private closeOverlay;
|
|
574
628
|
private dispose;
|
|
575
629
|
private outOfBounds;
|
|
576
|
-
private
|
|
577
|
-
|
|
578
|
-
|
|
630
|
+
private sameValue;
|
|
631
|
+
private toDate;
|
|
632
|
+
private toModel;
|
|
633
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrDatePicker<any>, never>;
|
|
634
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WrDatePicker<any>, "wr-date-picker", never, {
|
|
579
635
|
"mode": {
|
|
580
636
|
"alias": "mode";
|
|
581
637
|
"required": false;
|
|
@@ -591,6 +647,11 @@ export declare class WrDatePicker implements FormValueControl<Date | null> {
|
|
|
591
647
|
"required": false;
|
|
592
648
|
"isSignal": true;
|
|
593
649
|
};
|
|
650
|
+
"valueFormat": {
|
|
651
|
+
"alias": "valueFormat";
|
|
652
|
+
"required": false;
|
|
653
|
+
"isSignal": true;
|
|
654
|
+
};
|
|
594
655
|
"min": {
|
|
595
656
|
"alias": "min";
|
|
596
657
|
"required": false;
|
|
@@ -1283,4 +1344,4 @@ export declare function wrThisWeek(): WrDateRangePresetFn;
|
|
|
1283
1344
|
export declare function wrThisMonth(): WrDateRangePresetFn;
|
|
1284
1345
|
/** The month before the one today is in, from its first day to its last. */
|
|
1285
1346
|
export declare function wrLastMonth(): WrDateRangePresetFn;
|
|
1286
|
-
export type { WrDateInputError, WrDatePickerMode, WrDatePickerSize, WrDateRange, WrDateRangeInputError, WrDateRangePickerMode, WrDateRangePreset, WrDateRangePresetContext, WrDateRangePresetFn };
|
|
1347
|
+
export type { WrDateInputError, WrDatePickerMode, WrDatePickerSize, WrDatePickerValue, WrDatePickerValueFormat, WrDateRange, WrDateRangeInputError, WrDateRangePickerMode, WrDateRangePreset, WrDateRangePresetContext, WrDateRangePresetFn };
|