ngwr 16.0.0 → 16.2.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/badge/styles/_tag.scss +8 -4
- package/button/styles/_index.scss +13 -7
- package/cascader/styles/_rules.scss +4 -2
- package/checkbox/styles/_index.scss +4 -2
- package/date-picker/styles/_index.scss +95 -3
- package/date-stamp/styles/_index.scss +38 -0
- package/dialog/styles/_index.scss +38 -0
- package/dropdown/styles/_index.scss +37 -1
- package/fesm2022/internal-CVLvP9b_.mjs +33 -0
- package/fesm2022/internal-CVLvP9b_.mjs.map +1 -0
- package/fesm2022/ngwr-alert.mjs +11 -7
- package/fesm2022/ngwr-alert.mjs.map +1 -1
- package/fesm2022/ngwr-avatar.mjs +11 -7
- package/fesm2022/ngwr-avatar.mjs.map +1 -1
- package/fesm2022/ngwr-back-top.mjs +10 -6
- package/fesm2022/ngwr-back-top.mjs.map +1 -1
- package/fesm2022/ngwr-badge.mjs +18 -6
- package/fesm2022/ngwr-badge.mjs.map +1 -1
- package/fesm2022/ngwr-burger.mjs +9 -6
- package/fesm2022/ngwr-burger.mjs.map +1 -1
- package/fesm2022/ngwr-button.mjs +8 -4
- package/fesm2022/ngwr-button.mjs.map +1 -1
- package/fesm2022/ngwr-calendar.mjs +19 -8
- package/fesm2022/ngwr-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-card.mjs +9 -5
- package/fesm2022/ngwr-card.mjs.map +1 -1
- package/fesm2022/ngwr-cascader.mjs +11 -5
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs +5 -2
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs.map +1 -1
- package/fesm2022/ngwr-checkbox.mjs +10 -6
- package/fesm2022/ngwr-checkbox.mjs.map +1 -1
- package/fesm2022/ngwr-clipboard.mjs +2 -1
- package/fesm2022/ngwr-clipboard.mjs.map +1 -1
- package/fesm2022/ngwr-collapse.mjs +9 -5
- package/fesm2022/ngwr-collapse.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker.mjs +4 -2
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-comment.mjs +13 -7
- package/fesm2022/ngwr-comment.mjs.map +1 -1
- package/fesm2022/ngwr-compare.mjs +9 -3
- package/fesm2022/ngwr-compare.mjs.map +1 -1
- package/fesm2022/ngwr-context-menu.mjs +4 -2
- package/fesm2022/ngwr-context-menu.mjs.map +1 -1
- package/fesm2022/ngwr-copy-value.mjs +11 -6
- package/fesm2022/ngwr-copy-value.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker-testing.mjs +18 -0
- package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +238 -38
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp-testing.mjs +34 -0
- package/fesm2022/ngwr-date-stamp-testing.mjs.map +1 -0
- package/fesm2022/ngwr-date-stamp.mjs +213 -0
- package/fesm2022/ngwr-date-stamp.mjs.map +1 -0
- package/fesm2022/ngwr-date.mjs +364 -54
- package/fesm2022/ngwr-date.mjs.map +1 -1
- package/fesm2022/ngwr-descriptions.mjs +9 -5
- package/fesm2022/ngwr-descriptions.mjs.map +1 -1
- package/fesm2022/ngwr-dialog-testing.mjs +23 -2
- package/fesm2022/ngwr-dialog-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dialog.mjs +45 -16
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-directives.mjs +102 -11
- package/fesm2022/ngwr-directives.mjs.map +1 -1
- package/fesm2022/ngwr-divider.mjs +4 -2
- package/fesm2022/ngwr-divider.mjs.map +1 -1
- package/fesm2022/ngwr-drawer.mjs +29 -3
- package/fesm2022/ngwr-drawer.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown-testing.mjs +38 -3
- package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +362 -26
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +5 -2
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-event-calendar.mjs +4 -2
- package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload.mjs +9 -3
- package/fesm2022/ngwr-file-upload.mjs.map +1 -1
- package/fesm2022/ngwr-form.mjs +18 -6
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ar.mjs +9 -2
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +9 -2
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +9 -2
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +9 -2
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +9 -2
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +9 -2
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +9 -2
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +9 -2
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +9 -2
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +9 -2
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +9 -2
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +9 -2
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +9 -2
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +9 -2
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +9 -2
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +9 -2
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +9 -2
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +9 -2
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +9 -2
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +9 -2
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +9 -2
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +9 -2
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +34 -8
- package/fesm2022/ngwr-i18n.mjs.map +1 -1
- package/fesm2022/ngwr-input-number.mjs +9 -3
- package/fesm2022/ngwr-input-number.mjs.map +1 -1
- package/fesm2022/ngwr-input-otp.mjs +4 -2
- package/fesm2022/ngwr-input-otp.mjs.map +1 -1
- package/fesm2022/ngwr-input.mjs +20 -10
- package/fesm2022/ngwr-input.mjs.map +1 -1
- package/fesm2022/ngwr-keyboard.mjs +9 -3
- package/fesm2022/ngwr-keyboard.mjs.map +1 -1
- package/fesm2022/ngwr-knob.mjs +9 -3
- package/fesm2022/ngwr-knob.mjs.map +1 -1
- package/fesm2022/ngwr-layout.mjs +13 -5
- package/fesm2022/ngwr-layout.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox-testing.mjs +26 -0
- package/fesm2022/ngwr-lightbox-testing.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox.mjs +255 -15
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +13 -5
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-load-state.mjs +9 -5
- package/fesm2022/ngwr-load-state.mjs.map +1 -1
- package/fesm2022/ngwr-overlay.mjs +84 -1
- package/fesm2022/ngwr-overlay.mjs.map +1 -1
- package/fesm2022/ngwr-pagination.mjs +3 -2
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +47 -9
- package/fesm2022/ngwr-pipes.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +93 -4
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-progress.mjs +4 -2
- package/fesm2022/ngwr-progress.mjs.map +1 -1
- package/fesm2022/ngwr-radio.mjs +9 -5
- package/fesm2022/ngwr-radio.mjs.map +1 -1
- package/fesm2022/ngwr-rating.mjs +9 -3
- package/fesm2022/ngwr-rating.mjs.map +1 -1
- package/fesm2022/ngwr-resizable.mjs +503 -0
- package/fesm2022/ngwr-resizable.mjs.map +1 -0
- package/fesm2022/ngwr-result.mjs +9 -5
- package/fesm2022/ngwr-result.mjs.map +1 -1
- package/fesm2022/ngwr-schema-form.mjs +3 -0
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-segmented.mjs +4 -2
- package/fesm2022/ngwr-segmented.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +13 -5
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-skeleton.mjs +4 -2
- package/fesm2022/ngwr-skeleton.mjs.map +1 -1
- package/fesm2022/ngwr-slider-testing.mjs +17 -0
- package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
- package/fesm2022/ngwr-slider.mjs +91 -13
- package/fesm2022/ngwr-slider.mjs.map +1 -1
- package/fesm2022/ngwr-sortable-list-testing.mjs +103 -0
- package/fesm2022/ngwr-sortable-list-testing.mjs.map +1 -0
- package/fesm2022/ngwr-sortable-list.mjs +257 -53
- package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
- package/fesm2022/ngwr-speed-dial.mjs +4 -2
- package/fesm2022/ngwr-speed-dial.mjs.map +1 -1
- package/fesm2022/ngwr-spinner.mjs +4 -2
- package/fesm2022/ngwr-spinner.mjs.map +1 -1
- package/fesm2022/ngwr-splitter.mjs +17 -21
- package/fesm2022/ngwr-splitter.mjs.map +1 -1
- package/fesm2022/ngwr-stepper.mjs +9 -3
- package/fesm2022/ngwr-stepper.mjs.map +1 -1
- package/fesm2022/ngwr-switch.mjs +9 -5
- package/fesm2022/ngwr-switch.mjs.map +1 -1
- package/fesm2022/ngwr-table-testing.mjs +5 -1
- package/fesm2022/ngwr-table-testing.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +167 -10
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-textarea.mjs +9 -3
- package/fesm2022/ngwr-textarea.mjs.map +1 -1
- package/fesm2022/ngwr-timeline.mjs +18 -8
- package/fesm2022/ngwr-timeline.mjs.map +1 -1
- package/fesm2022/ngwr-toast-testing.mjs +6 -1
- package/fesm2022/ngwr-toast-testing.mjs.map +1 -1
- package/fesm2022/ngwr-toast.mjs +529 -104
- package/fesm2022/ngwr-toast.mjs.map +1 -1
- package/fesm2022/ngwr-transfer.mjs +4 -2
- package/fesm2022/ngwr-transfer.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +4 -2
- package/fesm2022/ngwr-tree.mjs.map +1 -1
- package/fesm2022/ngwr-typography.mjs +9 -3
- package/fesm2022/ngwr-typography.mjs.map +1 -1
- package/fesm2022/ngwr-utils-router.mjs +18 -2
- package/fesm2022/ngwr-utils-router.mjs.map +1 -1
- package/fesm2022/ngwr-utils.mjs +9 -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-window.mjs +7 -4
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/fesm2022/ngwr.mjs.map +1 -1
- package/i18n/ar.json +13 -2
- package/i18n/cs.json +13 -2
- package/i18n/de.json +13 -2
- package/i18n/en.json +13 -2
- package/i18n/es.json +13 -2
- package/i18n/fr.json +13 -2
- package/i18n/he.json +13 -2
- package/i18n/hi.json +13 -2
- package/i18n/id.json +13 -2
- package/i18n/it.json +13 -2
- package/i18n/ja.json +13 -2
- package/i18n/ko.json +13 -2
- package/i18n/nl.json +13 -2
- package/i18n/pl.json +13 -2
- package/i18n/pt.json +13 -2
- package/i18n/ru.json +13 -2
- package/i18n/sv.json +13 -2
- package/i18n/tr.json +13 -2
- package/i18n/uk.json +13 -2
- package/i18n/vi.json +13 -2
- package/i18n/zh-TW.json +13 -2
- package/i18n/zh.json +13 -2
- package/input/styles/_index.scss +10 -5
- package/input-number/styles/_index.scss +6 -3
- package/input-otp/styles/_index.scss +4 -2
- package/lightbox/styles/_rules.scss +96 -0
- package/llms-full.txt +40 -17
- package/llms.txt +20 -4
- package/package.json +19 -1
- package/radio/styles/_index.scss +4 -2
- package/resizable/styles/_index.scss +154 -0
- package/schematics/use/rule.js +1 -0
- package/schematics/use/symbol-map.json +5 -0
- package/select/styles/_index.scss +6 -3
- package/skills/ngwr/SKILL.md +1 -1
- package/skills/ngwr/references/catalog.md +6 -2
- package/skills/ngwr/references/setup.md +3 -0
- package/slider/styles/_index.scss +106 -0
- package/sortable-list/styles/_rules.scss +23 -1
- package/switch/styles/_index.scss +4 -2
- package/table/styles/_index.scss +53 -0
- package/textarea/styles/_index.scss +4 -2
- package/theme/styles/_motion.scss +6 -0
- package/toast/styles/_index.scss +19 -0
- package/types/ngwr-burger.d.ts +0 -1
- package/types/ngwr-calendar.d.ts +7 -0
- package/types/ngwr-charts-calendar-heatmap.d.ts +2 -1
- package/types/ngwr-clipboard.d.ts +7 -0
- package/types/ngwr-date-picker-testing.d.ts +17 -0
- package/types/ngwr-date-picker.d.ts +88 -4
- package/types/ngwr-date-stamp-testing.d.ts +47 -0
- package/types/ngwr-date-stamp.d.ts +127 -0
- package/types/ngwr-date.d.ts +251 -37
- package/types/ngwr-dialog-testing.d.ts +10 -0
- package/types/ngwr-dialog.d.ts +72 -4
- package/types/ngwr-directives.d.ts +36 -1
- package/types/ngwr-drawer.d.ts +21 -0
- package/types/ngwr-dropdown-testing.d.ts +53 -5
- package/types/ngwr-dropdown.d.ts +100 -0
- package/types/ngwr-i18n.d.ts +44 -14
- package/types/ngwr-lightbox-testing.d.ts +27 -0
- package/types/ngwr-lightbox.d.ts +71 -6
- package/types/ngwr-overlay.d.ts +36 -0
- package/types/ngwr-pipes.d.ts +48 -13
- package/types/ngwr-popover.d.ts +39 -1
- package/types/ngwr-resizable.d.ts +228 -0
- package/types/ngwr-slider-testing.d.ts +8 -1
- package/types/ngwr-slider.d.ts +89 -3
- package/types/ngwr-sortable-list-testing.d.ts +79 -0
- package/types/ngwr-sortable-list.d.ts +113 -10
- package/types/ngwr-table-testing.d.ts +3 -1
- package/types/ngwr-table.d.ts +120 -4
- package/types/ngwr-toast-testing.d.ts +12 -1
- package/types/ngwr-toast.d.ts +215 -18
- package/types/ngwr-utils-router.d.ts +22 -0
- package/types/ngwr-utils.d.ts +8 -1
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr.d.ts +1 -0
package/llms.txt
CHANGED
|
@@ -154,12 +154,27 @@ The rest are calls of their own, added from their entry points as needed:
|
|
|
154
154
|
last, and the other side's keys stop resolving with nothing logged — ngwr's
|
|
155
155
|
components fall back to English and a `wrT` read renders the raw key.
|
|
156
156
|
- Calendar, event calendar and date-picker need no date provider:
|
|
157
|
-
`WrDateAdapter` resolves to the native adapter (`Date` + `Intl
|
|
158
|
-
`
|
|
159
|
-
|
|
157
|
+
`WrDateAdapter` resolves to the native adapter (`Date` + `Intl`). It writes in
|
|
158
|
+
the interface language of `provideWrI18n()` and follows `WrI18n.use()`, or in
|
|
159
|
+
`LOCALE_ID` without it. `provideWr(withDates({ locale }))` (`ngwr/date`) pins
|
|
160
|
+
another locale, and `withDates({ timeZone })` sets the zone instants are
|
|
161
|
+
shown in: an IANA name, an offset, or a function returning one. A date-only
|
|
162
|
+
value does not shift. For another date library, extend `WrDateAdapter` and pass the class as
|
|
160
163
|
`withDates({ adapter })`. Its `format` and `parse` handle every `WrDateFormat`
|
|
161
164
|
key, including the `12h`, `24h` and `Seconds` variants of `time` and
|
|
162
165
|
`shortDateTime` (`time24h`, `shortDateTime12hSeconds`) that v15 added.
|
|
166
|
+
- Backend dates (16.2): `withDates({ epochUnit: 'ms' | 'us' | 's' | 'auto' })`
|
|
167
|
+
says what a number counts (`auto` by size: seconds under 1e10, milliseconds
|
|
168
|
+
under 1e13, microseconds above).
|
|
169
|
+
- `withDates({ zonelessIn: 'display' | 'browser' | 'utc' })` says which zone a
|
|
170
|
+
string with no offset (`2026-11-12 13:45:00`) is in; `display` prints it as is.
|
|
171
|
+
- `timeZone` takes `'+0500'` as well as `'+05:00'`; the `y` token is the full
|
|
172
|
+
year (`d MMM y`).
|
|
173
|
+
- `<wr-date-stamp>` (`ngwr/date-stamp`) is a date over a time: `todayTimeOnly`,
|
|
174
|
+
`seconds`, `epochUnit`; `withDates({ stamp: { dateFormat, timeFormat } })`
|
|
175
|
+
sets its defaults.
|
|
176
|
+
- An elapsed time is `ms | wrDuration: 'timer'` (`01:02:03`, `1d 02:03:04`),
|
|
177
|
+
never `wrDate`: a duration has no time zone.
|
|
163
178
|
|
|
164
179
|
Injected rather than provided: `WrTour` (`ngwr/tour`) runs a guided onboarding
|
|
165
180
|
tour — `tour.start([{ target: '[data-tour="save"]', content: '…' }])` spotlights
|
|
@@ -453,7 +468,8 @@ before writing your own. Full catalog: https://ngwr.dev/reference/components.
|
|
|
453
468
|
`provideWrLoadingBarRouter()` (`ngwr/loading-bar/router`), and it does NOT
|
|
454
469
|
throw — without the provider the bar simply never moves.
|
|
455
470
|
- **i18n** — `{{ 'key' | wrT }}` (pipe from `ngwr/i18n`). The locale defaults to
|
|
456
|
-
Angular's `LOCALE_ID`, not the browser, for both copy and dates
|
|
471
|
+
Angular's `LOCALE_ID`, not the browser, for both copy and dates, and
|
|
472
|
+
`WrI18n.use()` moves both at runtime; an app that
|
|
457
473
|
wants the browser's tag writes
|
|
458
474
|
`provideWr(withDates({ locale: navigator.language }))`. A named date format
|
|
459
475
|
(`shortDate`, `time`, …) parses through the same `Intl` formatter that printed
|
package/package.json
CHANGED
|
@@ -555,6 +555,15 @@
|
|
|
555
555
|
"types": "./types/ngwr-date-picker-testing.d.ts",
|
|
556
556
|
"default": "./fesm2022/ngwr-date-picker-testing.mjs"
|
|
557
557
|
},
|
|
558
|
+
"./date-stamp": {
|
|
559
|
+
"types": "./types/ngwr-date-stamp.d.ts",
|
|
560
|
+
"sass": "./date-stamp/styles/_index.scss",
|
|
561
|
+
"default": "./fesm2022/ngwr-date-stamp.mjs"
|
|
562
|
+
},
|
|
563
|
+
"./date-stamp/testing": {
|
|
564
|
+
"types": "./types/ngwr-date-stamp-testing.d.ts",
|
|
565
|
+
"default": "./fesm2022/ngwr-date-stamp-testing.mjs"
|
|
566
|
+
},
|
|
558
567
|
"./density": {
|
|
559
568
|
"types": "./types/ngwr-density.d.ts",
|
|
560
569
|
"sass": "./density/styles/_index.scss",
|
|
@@ -929,6 +938,11 @@
|
|
|
929
938
|
"types": "./types/ngwr-rating-testing.d.ts",
|
|
930
939
|
"default": "./fesm2022/ngwr-rating-testing.mjs"
|
|
931
940
|
},
|
|
941
|
+
"./resizable": {
|
|
942
|
+
"types": "./types/ngwr-resizable.d.ts",
|
|
943
|
+
"sass": "./resizable/styles/_index.scss",
|
|
944
|
+
"default": "./fesm2022/ngwr-resizable.mjs"
|
|
945
|
+
},
|
|
932
946
|
"./result": {
|
|
933
947
|
"types": "./types/ngwr-result.d.ts",
|
|
934
948
|
"sass": "./result/styles/_index.scss",
|
|
@@ -985,6 +999,10 @@
|
|
|
985
999
|
"sass": "./sortable-list/styles/_index.scss",
|
|
986
1000
|
"default": "./fesm2022/ngwr-sortable-list.mjs"
|
|
987
1001
|
},
|
|
1002
|
+
"./sortable-list/testing": {
|
|
1003
|
+
"types": "./types/ngwr-sortable-list-testing.d.ts",
|
|
1004
|
+
"default": "./fesm2022/ngwr-sortable-list-testing.mjs"
|
|
1005
|
+
},
|
|
988
1006
|
"./speed-dial": {
|
|
989
1007
|
"types": "./types/ngwr-speed-dial.d.ts",
|
|
990
1008
|
"sass": "./speed-dial/styles/_index.scss",
|
|
@@ -1168,5 +1186,5 @@
|
|
|
1168
1186
|
"sass": "./styles/_typography.scss"
|
|
1169
1187
|
}
|
|
1170
1188
|
},
|
|
1171
|
-
"version": "16.
|
|
1189
|
+
"version": "16.2.0"
|
|
1172
1190
|
}
|
package/radio/styles/_index.scss
CHANGED
|
@@ -97,13 +97,15 @@
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
// Sizes — dot, label font + line-height scale together.
|
|
100
|
-
&--sm
|
|
100
|
+
&--sm,
|
|
101
|
+
&:where([size='sm']) {
|
|
101
102
|
--wr-radio-size: 1rem; // 16px
|
|
102
103
|
--wr-radio-font-size: var(--wr-text-xs);
|
|
103
104
|
--wr-radio-line-height: var(--wr-control-line-height-sm);
|
|
104
105
|
}
|
|
105
106
|
|
|
106
|
-
&--lg
|
|
107
|
+
&--lg,
|
|
108
|
+
&:where([size='lg']) {
|
|
107
109
|
--wr-radio-size: 1.25rem; // 20px
|
|
108
110
|
--wr-radio-font-size: var(--wr-text-base);
|
|
109
111
|
--wr-radio-line-height: var(--wr-control-line-height-lg);
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
@use '../../theme/styles' as theme;
|
|
2
|
+
@include theme.loaded('resizable');
|
|
3
|
+
|
|
4
|
+
.wr-resizable {
|
|
5
|
+
--wr-resizable-handle-size: var(--wr-space-sm);
|
|
6
|
+
--wr-resizable-handle-hover-bg: var(--wr-color-primary-soft);
|
|
7
|
+
--wr-resizable-line-size: 1px;
|
|
8
|
+
--wr-resizable-line-color: var(--wr-border-subtle);
|
|
9
|
+
--wr-resizable-line-active-color: var(--wr-color-primary);
|
|
10
|
+
--wr-resizable-grip-length: 2rem;
|
|
11
|
+
--wr-resizable-grip-thickness: var(--wr-space-xs);
|
|
12
|
+
--wr-resizable-grip-color: var(--wr-border-base);
|
|
13
|
+
--wr-resizable-grip-active-color: var(--wr-color-primary);
|
|
14
|
+
--wr-resizable-grip-radius: var(--wr-border-radius-pill);
|
|
15
|
+
|
|
16
|
+
// The content of a box with no size must not hang out of it. Padding and
|
|
17
|
+
// borders are the host's own and stay, so a host that has them keeps them on
|
|
18
|
+
// an inner element.
|
|
19
|
+
&--collapsed {
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
min-width: 0;
|
|
22
|
+
min-height: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// A strip INSIDE the host, flush with the edge, so a host that clips its
|
|
26
|
+
// overflow keeps the whole of it. The line is drawn on the edge itself.
|
|
27
|
+
&__handle {
|
|
28
|
+
position: absolute;
|
|
29
|
+
z-index: 1;
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
outline: 0;
|
|
34
|
+
// Own the drag gesture: without this a coarse pointer can hand the drag to
|
|
35
|
+
// the browser as a pan and fire pointercancel mid-drag.
|
|
36
|
+
touch-action: none;
|
|
37
|
+
transition: background-color var(--wr-transition-base);
|
|
38
|
+
|
|
39
|
+
// Coarse pointers: a 44px tap area centred on the strip.
|
|
40
|
+
@include theme.touch-target($positioned: true);
|
|
41
|
+
|
|
42
|
+
&::before {
|
|
43
|
+
content: '';
|
|
44
|
+
position: absolute;
|
|
45
|
+
background: var(--wr-resizable-line-color);
|
|
46
|
+
transition: background-color var(--wr-transition-base);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:hover,
|
|
50
|
+
&:focus-visible {
|
|
51
|
+
background: var(--wr-resizable-handle-hover-bg);
|
|
52
|
+
|
|
53
|
+
&::before {
|
|
54
|
+
background: var(--wr-resizable-line-active-color);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:focus-visible {
|
|
59
|
+
@include theme.focus-ring;
|
|
60
|
+
// Inside the host, which may clip: an outset ring would be cut off.
|
|
61
|
+
outline-offset: calc(-1 * var(--wr-focus-ring-width));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&__grip {
|
|
66
|
+
flex: 0 0 auto;
|
|
67
|
+
background: var(--wr-resizable-grip-color);
|
|
68
|
+
border-radius: var(--wr-resizable-grip-radius);
|
|
69
|
+
transition: background-color var(--wr-transition-base);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&__handle:hover &__grip,
|
|
73
|
+
&__handle:focus-visible &__grip {
|
|
74
|
+
background: var(--wr-resizable-grip-active-color);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&--start > &__handle,
|
|
78
|
+
&--end > &__handle {
|
|
79
|
+
inset-block: 0;
|
|
80
|
+
width: var(--wr-resizable-handle-size);
|
|
81
|
+
cursor: col-resize;
|
|
82
|
+
|
|
83
|
+
&::before {
|
|
84
|
+
inset-block: 0;
|
|
85
|
+
width: var(--wr-resizable-line-size);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&--start > &__handle,
|
|
90
|
+
&--start > &__handle::before {
|
|
91
|
+
inset-inline-start: 0;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&--end > &__handle,
|
|
95
|
+
&--end > &__handle::before {
|
|
96
|
+
inset-inline-end: 0;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&--top > &__handle,
|
|
100
|
+
&--bottom > &__handle {
|
|
101
|
+
inset-inline: 0;
|
|
102
|
+
height: var(--wr-resizable-handle-size);
|
|
103
|
+
cursor: row-resize;
|
|
104
|
+
|
|
105
|
+
&::before {
|
|
106
|
+
inset-inline: 0;
|
|
107
|
+
height: var(--wr-resizable-line-size);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&--top > &__handle,
|
|
112
|
+
&--top > &__handle::before {
|
|
113
|
+
// rtl-ok: the block axis, which `dir` does not mirror.
|
|
114
|
+
top: 0;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&--bottom > &__handle,
|
|
118
|
+
&--bottom > &__handle::before {
|
|
119
|
+
// rtl-ok: the block axis, which `dir` does not mirror.
|
|
120
|
+
bottom: 0;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&--start > &__handle > &__grip,
|
|
124
|
+
&--end > &__handle > &__grip {
|
|
125
|
+
width: var(--wr-resizable-grip-thickness);
|
|
126
|
+
height: var(--wr-resizable-grip-length);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&--top > &__handle > &__grip,
|
|
130
|
+
&--bottom > &__handle > &__grip {
|
|
131
|
+
width: var(--wr-resizable-grip-length);
|
|
132
|
+
height: var(--wr-resizable-grip-thickness);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&--collapsed > &__handle {
|
|
136
|
+
visibility: hidden;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&--disabled > &__handle {
|
|
140
|
+
cursor: not-allowed;
|
|
141
|
+
|
|
142
|
+
&:hover {
|
|
143
|
+
background: transparent;
|
|
144
|
+
|
|
145
|
+
&::before {
|
|
146
|
+
background: var(--wr-resizable-line-color);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&--disabled > &__handle:hover > &__grip {
|
|
152
|
+
background: var(--wr-resizable-grip-color);
|
|
153
|
+
}
|
|
154
|
+
}
|
package/schematics/use/rule.js
CHANGED
|
@@ -82,6 +82,7 @@
|
|
|
82
82
|
"WrNativeDateAdapter": "ngwr/date",
|
|
83
83
|
"WrDatePicker": "ngwr/date-picker",
|
|
84
84
|
"WrDateRangePicker": "ngwr/date-picker",
|
|
85
|
+
"WrDateStamp": "ngwr/date-stamp",
|
|
85
86
|
"WrDensity": "ngwr/density",
|
|
86
87
|
"WrDensityDirective": "ngwr/density",
|
|
87
88
|
"WrDescriptions": "ngwr/descriptions",
|
|
@@ -108,6 +109,7 @@
|
|
|
108
109
|
"WrDropdown": "ngwr/dropdown",
|
|
109
110
|
"WrDropdownMenu": "ngwr/dropdown",
|
|
110
111
|
"WrDropdownItem": "ngwr/dropdown",
|
|
112
|
+
"WrDropdownSubmenu": "ngwr/dropdown",
|
|
111
113
|
"WrEditor": "ngwr/editor",
|
|
112
114
|
"WrEmpty": "ngwr/empty",
|
|
113
115
|
"WrEventCalendar": "ngwr/event-calendar",
|
|
@@ -157,6 +159,7 @@
|
|
|
157
159
|
"WrMetaBinding": "ngwr/meta",
|
|
158
160
|
"WrOutsideClick": "ngwr/overlay",
|
|
159
161
|
"WrOverlayContainer": "ngwr/overlay",
|
|
162
|
+
"WrOverlayOrder": "ngwr/overlay",
|
|
160
163
|
"WrPageHeader": "ngwr/page-header",
|
|
161
164
|
"WrPagination": "ngwr/pagination",
|
|
162
165
|
"WrBytes": "ngwr/pipes",
|
|
@@ -179,6 +182,7 @@
|
|
|
179
182
|
"WrRadio": "ngwr/radio",
|
|
180
183
|
"WrRadioGroup": "ngwr/radio",
|
|
181
184
|
"WrRating": "ngwr/rating",
|
|
185
|
+
"WrResizable": "ngwr/resizable",
|
|
182
186
|
"WrResult": "ngwr/result",
|
|
183
187
|
"WrResult404": "ngwr/result",
|
|
184
188
|
"WrResult403": "ngwr/result",
|
|
@@ -221,6 +225,7 @@
|
|
|
221
225
|
"WrTimeline": "ngwr/timeline",
|
|
222
226
|
"WrTimelineItem": "ngwr/timeline",
|
|
223
227
|
"WrToast": "ngwr/toast",
|
|
228
|
+
"WrToastOutlet": "ngwr/toast",
|
|
224
229
|
"WrToastRef": "ngwr/toast",
|
|
225
230
|
"WrToolbar": "ngwr/toolbar",
|
|
226
231
|
"WrTour": "ngwr/tour",
|
|
@@ -73,7 +73,8 @@
|
|
|
73
73
|
// Sizes — share the `--wr-control-*` contract (22 / 30 / 36 px). Multi/tag
|
|
74
74
|
// min-height and the search/tag inputs all read these vars, so every mode
|
|
75
75
|
// tracks the size. Declared before `--rounded` so the pill modifier wins.
|
|
76
|
-
&--sm
|
|
76
|
+
&--sm,
|
|
77
|
+
&:where([size='sm']) {
|
|
77
78
|
--wr-select-radius: var(--wr-control-radius-sm);
|
|
78
79
|
--wr-select-padding-y: var(--wr-control-padding-y-sm);
|
|
79
80
|
--wr-select-padding-x: var(--wr-control-padding-x-sm);
|
|
@@ -81,7 +82,8 @@
|
|
|
81
82
|
--wr-select-line-height: var(--wr-control-line-height-sm);
|
|
82
83
|
}
|
|
83
84
|
|
|
84
|
-
&--lg
|
|
85
|
+
&--lg,
|
|
86
|
+
&:where([size='lg']) {
|
|
85
87
|
--wr-select-radius: var(--wr-control-radius-lg);
|
|
86
88
|
--wr-select-padding-y: var(--wr-control-padding-y-lg);
|
|
87
89
|
--wr-select-padding-x: var(--wr-control-padding-x-lg);
|
|
@@ -89,7 +91,8 @@
|
|
|
89
91
|
--wr-select-line-height: var(--wr-control-line-height-lg);
|
|
90
92
|
}
|
|
91
93
|
|
|
92
|
-
&--rounded
|
|
94
|
+
&--rounded,
|
|
95
|
+
&:where([rounded]:not([rounded='false'])) {
|
|
93
96
|
--wr-select-radius: var(--wr-border-radius-pill);
|
|
94
97
|
--wr-select-padding-x: var(--wr-space-lg);
|
|
95
98
|
|
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: 234 tree-shakable entry points, 129 of them shipping a selector.
|
|
9
9
|
Standalone, signals-first, zoneless, `ViewEncapsulation.None`. No runtime
|
|
10
10
|
dependencies.
|
|
11
11
|
|
|
@@ -101,6 +101,8 @@ root barrel for components: the root `ngwr` exports only `provideWr()`.
|
|
|
101
101
|
| `ngwr/date` | `import { WrDateAdapter } from 'ngwr/date'` | — |
|
|
102
102
|
| `ngwr/date-picker` | `import { WrDatePicker } from 'ngwr/date-picker'` | `wr-date-picker` `wr-date-range-picker` |
|
|
103
103
|
| `ngwr/date-picker/testing` | `import { WrDatePickerDayHarness } from 'ngwr/date-picker/testing'` | — |
|
|
104
|
+
| `ngwr/date-stamp` | `import { WrDateStamp } from 'ngwr/date-stamp'` | `wr-date-stamp` |
|
|
105
|
+
| `ngwr/date-stamp/testing` | `import { WrDateStampHarness } from 'ngwr/date-stamp/testing'` | — |
|
|
104
106
|
| `ngwr/density` | `import { WrDensity } from 'ngwr/density'` | `[wrDensity]` |
|
|
105
107
|
| `ngwr/descriptions` | `import { WrDescriptions } from 'ngwr/descriptions'` | `wr-description-item` `wr-descriptions` |
|
|
106
108
|
| `ngwr/dialog` | `import { WrDialog } from 'ngwr/dialog'` | `[wrDialogClose]` `[wrDialogContent]` `[wrDialogFooter]` `[wrDialogTitle]` |
|
|
@@ -109,7 +111,7 @@ root barrel for components: the root `ngwr` exports only `provideWr()`.
|
|
|
109
111
|
| `ngwr/divider` | `import { WrDivider } from 'ngwr/divider'` | `wr-divider` |
|
|
110
112
|
| `ngwr/drawer` | `import { WrDrawer } from 'ngwr/drawer'` | `[wrDrawerClose]` `[wrDrawerContent]` `[wrDrawerFooter]` `[wrDrawerTitle]` `wr-drawer` |
|
|
111
113
|
| `ngwr/drawer/testing` | `import { WrDrawerHarness } from 'ngwr/drawer/testing'` | — |
|
|
112
|
-
| `ngwr/dropdown` | `import { WrDropdown } from 'ngwr/dropdown'` | `wr-dropdown-item` `wr-dropdown-menu` `[wrDropdown]` |
|
|
114
|
+
| `ngwr/dropdown` | `import { WrDropdown } from 'ngwr/dropdown'` | `wr-dropdown-item` `wr-dropdown-menu` `[wrDropdownSubmenu]` `[wrDropdown]` |
|
|
113
115
|
| `ngwr/dropdown/testing` | `import { WrDropdownHarness } from 'ngwr/dropdown/testing'` | — |
|
|
114
116
|
| `ngwr/editor` | `import { WrEditor } from 'ngwr/editor'` | `wr-editor` |
|
|
115
117
|
| `ngwr/editor/testing` | `import { WrEditorHarness } from 'ngwr/editor/testing'` | — |
|
|
@@ -186,6 +188,7 @@ root barrel for components: the root `ngwr` exports only `provideWr()`.
|
|
|
186
188
|
| `ngwr/radio/testing` | `import { WrRadioGroupHarness } from 'ngwr/radio/testing'` | — |
|
|
187
189
|
| `ngwr/rating` | `import { WrRating } from 'ngwr/rating'` | `wr-rating` |
|
|
188
190
|
| `ngwr/rating/testing` | `import { WrRatingHarness } from 'ngwr/rating/testing'` | — |
|
|
191
|
+
| `ngwr/resizable` | `import { WrResizable } from 'ngwr/resizable'` | `[wrResizable]` |
|
|
189
192
|
| `ngwr/result` | `import { WrResult } from 'ngwr/result'` | `wr-result-404` `wr-result-403` `wr-result-500` `wr-result` |
|
|
190
193
|
| `ngwr/schema-form` | `import { WrSchemaForm } from 'ngwr/schema-form'` | `wr-schema-form` |
|
|
191
194
|
| `ngwr/scroll` | `import { WrScroll } from 'ngwr/scroll'` | — |
|
|
@@ -198,6 +201,7 @@ root barrel for components: the root `ngwr` exports only `provideWr()`.
|
|
|
198
201
|
| `ngwr/slider` | `import { WrSlider } from 'ngwr/slider'` | `wr-slider` |
|
|
199
202
|
| `ngwr/slider/testing` | `import { WrSliderHarness } from 'ngwr/slider/testing'` | — |
|
|
200
203
|
| `ngwr/sortable-list` | `import { WrSortableList } from 'ngwr/sortable-list'` | `[wrDragHandle]` `wr-sortable-item` `wr-sortable-list` |
|
|
204
|
+
| `ngwr/sortable-list/testing` | `import { WrSortableListHarness } from 'ngwr/sortable-list/testing'` | — |
|
|
201
205
|
| `ngwr/speed-dial` | `import { WrSpeedDial } from 'ngwr/speed-dial'` | `wr-speed-dial` |
|
|
202
206
|
| `ngwr/speed-dial/testing` | `import { WrSpeedDialActionHarness } from 'ngwr/speed-dial/testing'` | — |
|
|
203
207
|
| `ngwr/spinner` | `import { WrSpinner } from 'ngwr/spinner'` | `wr-spinner` |
|
|
@@ -218,7 +222,7 @@ root barrel for components: the root `ngwr` exports only `provideWr()`.
|
|
|
218
222
|
| `ngwr/textarea/testing` | `import { WrTextareaHarness } from 'ngwr/textarea/testing'` | — |
|
|
219
223
|
| `ngwr/theme` | `import { WrTheme } from 'ngwr/theme'` | — |
|
|
220
224
|
| `ngwr/timeline` | `import { WrTimeline } from 'ngwr/timeline'` | `wr-timeline-item` `wr-timeline` |
|
|
221
|
-
| `ngwr/toast` | `import { WrToast } from 'ngwr/toast'` |
|
|
225
|
+
| `ngwr/toast` | `import { WrToast } from 'ngwr/toast'` | `wr-toast-outlet` |
|
|
222
226
|
| `ngwr/toast/testing` | `import { WrToastHarness } from 'ngwr/toast/testing'` | — |
|
|
223
227
|
| `ngwr/toolbar` | `import { WrToolbar } from 'ngwr/toolbar'` | `wr-toolbar` |
|
|
224
228
|
| `ngwr/tour` | `import { WrTour } from 'ngwr/tour'` | `wr-tour-popup` |
|
|
@@ -155,6 +155,9 @@ bootstrapApplication(App, {
|
|
|
155
155
|
engine, prefix and TTL, `<head>` defaults for every route, the work area
|
|
156
156
|
floating windows keep inside, and the browser tab named after the open dialog.
|
|
157
157
|
Like density and theme they configure a root service, so they belong at bootstrap.
|
|
158
|
+
- `withRenderOnNavigation()` from `ngwr/utils/router` — in a zoneless app, ticks
|
|
159
|
+
right after `NavigationEnd` so a routed page is bound before the browser
|
|
160
|
+
paints it and no transition runs from the browser's defaults.
|
|
158
161
|
- A `validation` namespace in your own i18n catalog — ngwr ships no validation
|
|
159
162
|
copy. `<wr-form-field>` reads `validation.<key>` for an error whose validator
|
|
160
163
|
carries no `{ message }`, with the error payload as params.
|
|
@@ -15,6 +15,15 @@
|
|
|
15
15
|
--wr-slider-label-margin-top: var(--wr-space-sm);
|
|
16
16
|
--wr-slider-label-font-size: var(--wr-text-sm);
|
|
17
17
|
--wr-slider-label-line-height: var(--wr-text-sm-leading);
|
|
18
|
+
--wr-slider-vertical-height: 10rem;
|
|
19
|
+
--wr-slider-mark-size: var(--wr-space-sm);
|
|
20
|
+
--wr-slider-mark-bg: var(--wr-color-surface);
|
|
21
|
+
--wr-slider-mark-color: var(--wr-border-base);
|
|
22
|
+
--wr-slider-mark-active-color: var(--wr-color-primary);
|
|
23
|
+
--wr-slider-mark-gap: var(--wr-space-sm);
|
|
24
|
+
--wr-slider-mark-label-color: var(--wr-color-on-surface-muted);
|
|
25
|
+
--wr-slider-mark-label-font-size: var(--wr-text-xs);
|
|
26
|
+
--wr-slider-mark-label-line-height: var(--wr-text-xs-leading);
|
|
18
27
|
|
|
19
28
|
display: block;
|
|
20
29
|
width: 100%;
|
|
@@ -40,6 +49,50 @@
|
|
|
40
49
|
pointer-events: none;
|
|
41
50
|
}
|
|
42
51
|
|
|
52
|
+
// A ring centred on its value the way the thumb is, mirrored the same way.
|
|
53
|
+
&__mark {
|
|
54
|
+
position: absolute;
|
|
55
|
+
top: 50%;
|
|
56
|
+
width: var(--wr-slider-mark-size);
|
|
57
|
+
height: var(--wr-slider-mark-size);
|
|
58
|
+
transform: translate(-50%, -50%);
|
|
59
|
+
box-sizing: border-box;
|
|
60
|
+
background: var(--wr-slider-mark-bg);
|
|
61
|
+
border: 2px solid var(--wr-slider-mark-color);
|
|
62
|
+
border-radius: 50%;
|
|
63
|
+
pointer-events: none;
|
|
64
|
+
|
|
65
|
+
&--active {
|
|
66
|
+
border-color: var(--wr-slider-mark-active-color);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
[dir='rtl'] & {
|
|
70
|
+
transform: translate(50%, -50%);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// One grid cell holds every label, so the tallest one sets the row's height
|
|
75
|
+
// and each is then offset along the track from the cell's start edge.
|
|
76
|
+
&__mark-labels {
|
|
77
|
+
display: grid;
|
|
78
|
+
margin-top: var(--wr-slider-mark-gap);
|
|
79
|
+
color: var(--wr-slider-mark-label-color);
|
|
80
|
+
font-size: var(--wr-slider-mark-label-font-size);
|
|
81
|
+
line-height: var(--wr-slider-mark-label-line-height);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&__mark-label {
|
|
85
|
+
position: relative;
|
|
86
|
+
grid-area: 1 / 1;
|
|
87
|
+
justify-self: start;
|
|
88
|
+
transform: translateX(-50%);
|
|
89
|
+
white-space: nowrap;
|
|
90
|
+
|
|
91
|
+
[dir='rtl'] & {
|
|
92
|
+
transform: translateX(50%);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
43
96
|
&__thumb {
|
|
44
97
|
position: absolute;
|
|
45
98
|
top: 50%;
|
|
@@ -90,6 +143,58 @@
|
|
|
90
143
|
font-variant-numeric: tabular-nums;
|
|
91
144
|
}
|
|
92
145
|
|
|
146
|
+
// After the parts above, so these outrank their RTL mirrors at equal weight.
|
|
147
|
+
&--vertical,
|
|
148
|
+
&:where([orientation='vertical']) {
|
|
149
|
+
display: inline-flex;
|
|
150
|
+
width: auto;
|
|
151
|
+
height: var(--wr-slider-vertical-height);
|
|
152
|
+
|
|
153
|
+
.wr-slider__track {
|
|
154
|
+
flex: none;
|
|
155
|
+
width: var(--wr-slider-track-height);
|
|
156
|
+
height: auto;
|
|
157
|
+
margin: 0 calc((var(--wr-slider-thumb-size) - var(--wr-slider-track-height)) / 2);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.wr-slider__fill {
|
|
161
|
+
top: auto;
|
|
162
|
+
inset-inline: 0;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.wr-slider__thumb,
|
|
166
|
+
.wr-slider__mark {
|
|
167
|
+
top: auto;
|
|
168
|
+
// rtl-ok: centred across the track against a physical translateX, identical under RTL
|
|
169
|
+
left: 50%;
|
|
170
|
+
transform: translate(-50%, 50%);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.wr-slider__thumb:active {
|
|
174
|
+
transform: translate(-50%, 50%) scale(1.1);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// Both are raised by a percentage of the track's height and centred on it.
|
|
178
|
+
.wr-slider__mark-labels {
|
|
179
|
+
margin-top: 0;
|
|
180
|
+
margin-inline-start: var(--wr-slider-mark-gap);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.wr-slider__mark-label {
|
|
184
|
+
align-self: end;
|
|
185
|
+
transform: translateY(50%);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.wr-slider__label {
|
|
189
|
+
position: relative;
|
|
190
|
+
align-self: flex-end;
|
|
191
|
+
margin-top: 0;
|
|
192
|
+
margin-inline-start: var(--wr-slider-label-margin-top);
|
|
193
|
+
transform: translateY(50%);
|
|
194
|
+
white-space: nowrap;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
93
198
|
// A read-only slider still takes focus and still announces its value, so it
|
|
94
199
|
// keeps the visual and only stops inviting the drag — `grab` on something that
|
|
95
200
|
// cannot move is the part that looks broken. Matches `wr-knob--readonly`.
|
|
@@ -101,6 +206,7 @@
|
|
|
101
206
|
&--disabled {
|
|
102
207
|
--wr-slider-thumb-border: var(--wr-color-on-surface-muted);
|
|
103
208
|
--wr-slider-fill: var(--wr-color-on-surface-muted);
|
|
209
|
+
--wr-slider-mark-active-color: var(--wr-color-on-surface-muted);
|
|
104
210
|
pointer-events: none;
|
|
105
211
|
opacity: var(--wr-disabled-opacity);
|
|
106
212
|
}
|
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
.wr-sortable-list {
|
|
23
23
|
--wr-sortable-list-gap: var(--wr-space-sm);
|
|
24
24
|
--wr-sortable-list-placeholder-radius: var(--wr-border-radius-base);
|
|
25
|
+
--wr-sortable-list-empty-min-height: calc(var(--wr-space-xl) * 2);
|
|
26
|
+
--wr-sortable-list-empty-color: var(--wr-color-placeholder);
|
|
25
27
|
|
|
26
28
|
display: block;
|
|
27
29
|
|
|
@@ -85,6 +87,26 @@
|
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
89
|
|
|
90
|
+
// A list with no rows has no height, and a drop needs a box to land in. Only
|
|
91
|
+
// a connected list can be dropped into from outside, so only it reserves one.
|
|
92
|
+
&--connected#{&}--empty &__list {
|
|
93
|
+
min-height: var(--wr-sortable-list-empty-min-height);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&__empty {
|
|
97
|
+
color: var(--wr-sortable-list-empty-color);
|
|
98
|
+
|
|
99
|
+
// Nothing projected into the slot: no row, and no empty list item read out.
|
|
100
|
+
&:empty {
|
|
101
|
+
display: none;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// The placeholder of the row being dragged in stands where the hint was.
|
|
106
|
+
&.cdk-drop-list-dragging &__empty {
|
|
107
|
+
display: none;
|
|
108
|
+
}
|
|
109
|
+
|
|
88
110
|
// The key model and the position announcements: read out, never drawn.
|
|
89
111
|
&__sr-only {
|
|
90
112
|
position: absolute;
|
|
@@ -176,6 +198,6 @@
|
|
|
176
198
|
transition: transform 0.18s var(--wr-ease-spring);
|
|
177
199
|
}
|
|
178
200
|
|
|
179
|
-
.wr-sortable-
|
|
201
|
+
.wr-sortable-list.cdk-drop-list-dragging .wr-sortable-list__item:not(.cdk-drag-placeholder) {
|
|
180
202
|
transition: transform 0.18s var(--wr-ease-spring);
|
|
181
203
|
}
|
|
@@ -72,7 +72,8 @@
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
// Sizes — track, thumb, label font + line-height scale together.
|
|
75
|
-
&--sm
|
|
75
|
+
&--sm,
|
|
76
|
+
&:where([size='sm']) {
|
|
76
77
|
--wr-switch-track-width: 1.75rem;
|
|
77
78
|
--wr-switch-track-height: 1rem;
|
|
78
79
|
--wr-switch-thumb-size: 0.75rem;
|
|
@@ -80,7 +81,8 @@
|
|
|
80
81
|
--wr-switch-line-height: var(--wr-control-line-height-sm);
|
|
81
82
|
}
|
|
82
83
|
|
|
83
|
-
&--lg
|
|
84
|
+
&--lg,
|
|
85
|
+
&:where([size='lg']) {
|
|
84
86
|
--wr-switch-track-width: 2.375rem;
|
|
85
87
|
--wr-switch-track-height: 1.25rem;
|
|
86
88
|
--wr-switch-thumb-size: 1rem;
|