ngwr 16.6.0 → 16.7.1
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/checkbox/styles/_index.scss +4 -0
- 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 +103 -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 +126 -16
- 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 +255 -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 +282 -43
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tabs-router.mjs +11 -7
- 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/radio/styles/_index.scss +4 -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/switch/styles/_index.scss +4 -0
- package/table/styles/_index.scss +128 -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 +84 -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 +95 -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 +185 -6
- package/types/ngwr-tabs-router.d.ts +4 -5
- 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
package/skills/ngwr/SKILL.md
CHANGED
|
@@ -5,7 +5,7 @@ description: Build Angular UIs with the ngwr component library (standalone, sign
|
|
|
5
5
|
|
|
6
6
|
# ngwr
|
|
7
7
|
|
|
8
|
-
An Angular 22 UI library:
|
|
8
|
+
An Angular 22 UI library: 244 tree-shakable entry points, 131 of them shipping a selector.
|
|
9
9
|
Standalone, signals-first, zoneless, `ViewEncapsulation.None`. No runtime
|
|
10
10
|
dependencies.
|
|
11
11
|
|
|
@@ -75,11 +75,12 @@ guess gets backwards.
|
|
|
75
75
|
`[formField]="form.x"`, or use the two-way model standalone —
|
|
76
76
|
`[(value)]`, `[(checked)]`. `[(ngModel)]` and reactive forms still bind,
|
|
77
77
|
with no accessor created: Angular's `NgModel` / `FormControlDirective` drive
|
|
78
|
-
the `value` or `checked` model directly.
|
|
79
|
-
|
|
80
|
-
`
|
|
81
|
-
|
|
82
|
-
`
|
|
78
|
+
the `value` or `checked` model directly. Template validator directives
|
|
79
|
+
(`required`, `minlength`, `maxlength`, `pattern`, `email`) reach the
|
|
80
|
+
`FormControl` as on an `<input>` (Angular 22.3+, ngwr's floor); `min` / `max`
|
|
81
|
+
never match an ngwr control, so put those on the `FormControl`. `required`
|
|
82
|
+
on `wr-checkbox` accepts `false`: a box that must be checked needs
|
|
83
|
+
`Validators.requiredTrue`.
|
|
83
84
|
- **ngwr ships no validation copy.** For an error no `<wr-form-error key>`
|
|
84
85
|
claims, `<wr-form-field>` shows the validator's own message
|
|
85
86
|
(`required(path.email, { message: '…' })`), else `validation.<key>` from the
|
|
@@ -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]` |
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
--wr-switch-thumb: var(--wr-color-surface);
|
|
16
16
|
--wr-switch-color: var(--wr-color-on-surface);
|
|
17
17
|
|
|
18
|
+
// The containing block of the visually hidden input: without it the input is
|
|
19
|
+
// placed against a positioned ancestor outside any scroller between them, and
|
|
20
|
+
// focusing it scrolls that ancestor.
|
|
21
|
+
position: relative;
|
|
18
22
|
display: inline-flex;
|
|
19
23
|
vertical-align: middle;
|
|
20
24
|
color: var(--wr-switch-color);
|
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));
|
|
@@ -1480,6 +1569,13 @@
|
|
|
1480
1569
|
transition: none;
|
|
1481
1570
|
}
|
|
1482
1571
|
|
|
1572
|
+
// The preview of a `size="sm"` table: the table restates the padding hooks on
|
|
1573
|
+
// itself, which the preview has left, so the same values are the fallbacks here.
|
|
1574
|
+
.cdk-drag-preview.wr-table__th.wr-table__th--preview-sm {
|
|
1575
|
+
padding: calc(var(--wr-table-cell-padding-y, var(--wr-space-xs)) * var(--wr-density-y, 1))
|
|
1576
|
+
calc(var(--wr-table-cell-padding-x, var(--wr-space-sm)) * var(--wr-density-x, 1));
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1483
1579
|
// The cursor of a column drag. The CDK preview takes no pointer events, so the
|
|
1484
1580
|
// cursor comes from a class on `<html>` for the length of the drag, set by the
|
|
1485
1581
|
// table; `!important` because every control under the pointer has its own.
|
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;
|