ngwr 16.5.0 → 16.6.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/back-top/styles/_index.scss +6 -0
- package/breadcrumbs/styles/_rules.scss +34 -0
- package/cascader/styles/_rules.scss +7 -0
- package/charts/chart-legend/styles/_index.scss +1 -9
- package/counter/styles/_index.scss +1 -8
- package/date-picker/styles/_index.scss +15 -9
- package/dialog/styles/_index.scss +37 -0
- package/editor/styles/_index.scss +1 -8
- package/event-calendar/styles/_index.scss +2 -6
- package/fesm2022/ngwr-affix.mjs +1 -1
- package/fesm2022/ngwr-affix.mjs.map +1 -1
- package/fesm2022/ngwr-anchor.mjs +9 -2
- package/fesm2022/ngwr-anchor.mjs.map +1 -1
- package/fesm2022/ngwr-animations-aurora.mjs.map +1 -1
- package/fesm2022/ngwr-animations-blur-reveal.mjs.map +1 -1
- package/fesm2022/ngwr-animations-click-sparks.mjs.map +1 -1
- package/fesm2022/ngwr-animations-confetti.mjs.map +1 -1
- package/fesm2022/ngwr-animations-decode.mjs.map +1 -1
- package/fesm2022/ngwr-animations-destruct.mjs.map +1 -1
- package/fesm2022/ngwr-animations-dot-grid.mjs.map +1 -1
- package/fesm2022/ngwr-animations-falling-letters.mjs.map +1 -1
- package/fesm2022/ngwr-animations-flow-lines.mjs.map +1 -1
- package/fesm2022/ngwr-animations-fluid-cursor.mjs.map +1 -1
- package/fesm2022/ngwr-animations-glitch.mjs.map +1 -1
- package/fesm2022/ngwr-animations-glow-border.mjs.map +1 -1
- package/fesm2022/ngwr-animations-gradient-flow.mjs.map +1 -1
- package/fesm2022/ngwr-animations-marquee.mjs.map +1 -1
- package/fesm2022/ngwr-animations-orbit.mjs.map +1 -1
- package/fesm2022/ngwr-animations-reveal.mjs.map +1 -1
- package/fesm2022/ngwr-animations-ripple-grid.mjs.map +1 -1
- package/fesm2022/ngwr-animations-rotate-reveal.mjs.map +1 -1
- package/fesm2022/ngwr-animations-shimmer.mjs.map +1 -1
- package/fesm2022/ngwr-animations-spotlight.mjs.map +1 -1
- package/fesm2022/ngwr-animations-thread-lines.mjs.map +1 -1
- package/fesm2022/ngwr-animations-tilt.mjs +20 -13
- package/fesm2022/ngwr-animations-tilt.mjs.map +1 -1
- package/fesm2022/ngwr-animations-typewriter.mjs.map +1 -1
- package/fesm2022/ngwr-breadcrumbs.mjs +40 -7
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-button.mjs +12 -3
- package/fesm2022/ngwr-button.mjs.map +1 -1
- package/fesm2022/ngwr-carousel.mjs +8 -2
- package/fesm2022/ngwr-carousel.mjs.map +1 -1
- package/fesm2022/ngwr-cascader.mjs +24 -4
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-charts-core.mjs +12 -5
- package/fesm2022/ngwr-charts-core.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group.mjs +4 -2
- package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
- package/fesm2022/ngwr-checkbox.mjs +3 -2
- package/fesm2022/ngwr-checkbox.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker.mjs +21 -1
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-context-menu.mjs +4 -5
- package/fesm2022/ngwr-context-menu.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +49 -1
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-dialog.mjs +16 -6
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-directives.mjs +9 -6
- package/fesm2022/ngwr-directives.mjs.map +1 -1
- package/fesm2022/ngwr-event-calendar.mjs +20 -9
- package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-form.mjs +170 -3
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ar.mjs +15 -0
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +15 -0
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +15 -0
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +15 -0
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +15 -0
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +15 -0
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +15 -0
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +15 -0
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +15 -0
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +15 -0
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +15 -0
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +15 -0
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +15 -0
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +15 -0
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +15 -0
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +15 -0
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +15 -0
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +15 -0
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +15 -0
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +15 -0
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +15 -0
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +15 -0
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +82 -11
- package/fesm2022/ngwr-i18n.mjs.map +1 -1
- package/fesm2022/ngwr-input-number.mjs +24 -1
- package/fesm2022/ngwr-input-number.mjs.map +1 -1
- package/fesm2022/ngwr-input-otp.mjs +2 -2
- package/fesm2022/ngwr-input-otp.mjs.map +1 -1
- package/fesm2022/ngwr-input.mjs +10 -2
- package/fesm2022/ngwr-input.mjs.map +1 -1
- package/fesm2022/ngwr-layout.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +1 -1
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-loading-bar-router.mjs.map +1 -1
- package/fesm2022/ngwr-loading-bar.mjs +2 -2
- package/fesm2022/ngwr-loading-bar.mjs.map +1 -1
- package/fesm2022/ngwr-mention.mjs +8 -0
- package/fesm2022/ngwr-mention.mjs.map +1 -1
- package/fesm2022/ngwr-meta.mjs +9 -6
- package/fesm2022/ngwr-meta.mjs.map +1 -1
- package/fesm2022/ngwr-page-header.mjs +21 -0
- package/fesm2022/ngwr-page-header.mjs.map +1 -1
- package/fesm2022/ngwr-pagination.mjs +2 -0
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +8 -1
- package/fesm2022/ngwr-pipes.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm.mjs +2 -1
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +47 -3
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-qr.mjs +6 -2
- package/fesm2022/ngwr-qr.mjs.map +1 -1
- package/fesm2022/ngwr-radio.mjs +71 -5
- package/fesm2022/ngwr-radio.mjs.map +1 -1
- package/fesm2022/ngwr-schema-form.mjs +10 -1
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-scroll.mjs +1 -3
- package/fesm2022/ngwr-scroll.mjs.map +1 -1
- package/fesm2022/ngwr-segmented.mjs +20 -0
- package/fesm2022/ngwr-segmented.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +80 -9
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-sortable-list.mjs +16 -4
- package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
- package/fesm2022/ngwr-storage.mjs +1 -1
- package/fesm2022/ngwr-storage.mjs.map +1 -1
- package/fesm2022/ngwr-switch.mjs +2 -2
- package/fesm2022/ngwr-switch.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +41 -7
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tabs-router.mjs.map +1 -1
- package/fesm2022/ngwr-textarea.mjs +2 -2
- package/fesm2022/ngwr-textarea.mjs.map +1 -1
- package/fesm2022/ngwr-toast.mjs +28 -0
- package/fesm2022/ngwr-toast.mjs.map +1 -1
- package/fesm2022/ngwr-tour.mjs +2 -2
- package/fesm2022/ngwr-tour.mjs.map +1 -1
- package/fesm2022/ngwr-typography.mjs +20 -0
- package/fesm2022/ngwr-typography.mjs.map +1 -1
- package/fesm2022/ngwr-utils-router.mjs.map +1 -1
- package/fesm2022/ngwr-utils.mjs +46 -4
- package/fesm2022/ngwr-utils.mjs.map +1 -1
- package/fesm2022/ngwr-validators.mjs +33 -1
- package/fesm2022/ngwr-validators.mjs.map +1 -1
- package/fesm2022/ngwr-version.mjs +1 -1
- package/fesm2022/ngwr-version.mjs.map +1 -1
- package/form/styles/_index.scss +37 -0
- package/graph/styles/_index.scss +1 -9
- package/i18n/ar.json +15 -0
- package/i18n/cs.json +15 -0
- package/i18n/de.json +15 -0
- package/i18n/en.json +15 -0
- package/i18n/es.json +15 -0
- package/i18n/fr.json +15 -0
- package/i18n/he.json +15 -0
- package/i18n/hi.json +15 -0
- package/i18n/id.json +15 -0
- package/i18n/it.json +15 -0
- package/i18n/ja.json +15 -0
- package/i18n/ko.json +15 -0
- package/i18n/nl.json +15 -0
- package/i18n/pl.json +15 -0
- package/i18n/pt.json +15 -0
- package/i18n/ru.json +15 -0
- package/i18n/sv.json +15 -0
- package/i18n/tr.json +15 -0
- package/i18n/uk.json +15 -0
- package/i18n/vi.json +15 -0
- package/i18n/zh-TW.json +15 -0
- package/i18n/zh.json +15 -0
- package/image-cropper/styles/_index.scss +1 -9
- package/input-number/styles/_index.scss +7 -0
- package/layout/styles/_index.scss +13 -1
- package/llms-full.txt +10 -10
- package/loading-bar/styles/_rules.scss +6 -0
- package/package.json +2 -2
- package/page-header/styles/_index.scss +18 -0
- package/popover/styles/_index.scss +7 -0
- package/schematics/use/symbol-map.json +2 -0
- package/segmented/styles/_index.scss +7 -0
- package/select/styles/_index.scss +7 -0
- package/sidebar/styles/_index.scss +6 -0
- package/skills/ngwr/references/catalog.md +1 -1
- package/sortable-list/styles/_rules.scss +1 -9
- package/speed-dial/styles/_index.scss +6 -0
- package/stepper/styles/_index.scss +1 -9
- package/table/styles/_index.scss +49 -0
- package/theme/_index.scss +12 -1
- package/theme/styles/_colors.scss +11 -0
- package/theme/styles/_contrast.scss +6 -0
- package/theme/styles/_index.scss +1 -0
- package/theme/styles/_mixins.scss +45 -0
- package/theme/styles/_print.scss +17 -0
- package/toast/styles/_index.scss +7 -0
- package/tour/styles/_index.scss +8 -0
- package/tree/styles/_index.scss +1 -9
- package/types/ngwr-anchor.d.ts +3 -0
- package/types/ngwr-animations-aurora.d.ts +6 -0
- package/types/ngwr-animations-blur-reveal.d.ts +6 -0
- package/types/ngwr-animations-click-sparks.d.ts +6 -0
- package/types/ngwr-animations-confetti.d.ts +6 -0
- package/types/ngwr-animations-decode.d.ts +6 -0
- package/types/ngwr-animations-destruct.d.ts +6 -0
- package/types/ngwr-animations-dot-grid.d.ts +6 -0
- package/types/ngwr-animations-falling-letters.d.ts +6 -0
- package/types/ngwr-animations-flow-lines.d.ts +6 -0
- package/types/ngwr-animations-fluid-cursor.d.ts +6 -0
- package/types/ngwr-animations-glitch.d.ts +6 -0
- package/types/ngwr-animations-glow-border.d.ts +6 -0
- package/types/ngwr-animations-gradient-flow.d.ts +6 -0
- package/types/ngwr-animations-marquee.d.ts +6 -0
- package/types/ngwr-animations-orbit.d.ts +6 -0
- package/types/ngwr-animations-reveal.d.ts +6 -0
- package/types/ngwr-animations-ripple-grid.d.ts +6 -0
- package/types/ngwr-animations-rotate-reveal.d.ts +6 -0
- package/types/ngwr-animations-shimmer.d.ts +6 -0
- package/types/ngwr-animations-spotlight.d.ts +6 -0
- package/types/ngwr-animations-thread-lines.d.ts +6 -0
- package/types/ngwr-animations-tilt.d.ts +10 -0
- package/types/ngwr-animations-typewriter.d.ts +6 -0
- package/types/ngwr-breadcrumbs.d.ts +25 -0
- package/types/ngwr-button.d.ts +23 -3
- package/types/ngwr-carousel.d.ts +2 -0
- package/types/ngwr-cascader.d.ts +7 -0
- package/types/ngwr-charts-core.d.ts +16 -0
- package/types/ngwr-charts-meter-group.d.ts +2 -0
- package/types/ngwr-checkbox.d.ts +1 -0
- package/types/ngwr-color-picker.d.ts +1 -0
- package/types/ngwr-context-menu.d.ts +1 -1
- package/types/ngwr-date-picker.d.ts +19 -0
- package/types/ngwr-dialog.d.ts +39 -8
- package/types/ngwr-directives.d.ts +12 -4
- package/types/ngwr-drawer.d.ts +1 -1
- package/types/ngwr-dropdown.d.ts +1 -1
- package/types/ngwr-event-calendar.d.ts +4 -0
- package/types/ngwr-form.d.ts +85 -1
- package/types/ngwr-i18n.d.ts +65 -5
- package/types/ngwr-input-number.d.ts +8 -0
- package/types/ngwr-input.d.ts +7 -0
- package/types/ngwr-layout.d.ts +1 -1
- package/types/ngwr-loading-bar-router.d.ts +6 -0
- package/types/ngwr-page-header.d.ts +23 -1
- package/types/ngwr-popconfirm.d.ts +1 -1
- package/types/ngwr-popover.d.ts +28 -4
- package/types/ngwr-radio.d.ts +47 -5
- package/types/ngwr-segmented.d.ts +7 -0
- package/types/ngwr-select.d.ts +57 -13
- package/types/ngwr-sortable-list.d.ts +20 -7
- package/types/ngwr-table.d.ts +58 -5
- package/types/ngwr-tabs-router.d.ts +6 -0
- package/types/ngwr-toast.d.ts +11 -0
- package/types/ngwr-tour.d.ts +0 -1
- package/types/ngwr-typography.d.ts +7 -0
- package/types/ngwr-utils-router.d.ts +6 -0
- package/types/ngwr-utils.d.ts +56 -2
- package/types/ngwr-validators.d.ts +49 -1
- package/types/ngwr-version.d.ts +1 -1
- package/typography/styles/_index.scss +4 -0
- package/window/styles/_index.scss +1 -9
package/i18n/tr.json
CHANGED
|
@@ -546,5 +546,20 @@
|
|
|
546
546
|
"marquee": {
|
|
547
547
|
"pause": "Duraklat",
|
|
548
548
|
"play": "Oynat"
|
|
549
|
+
},
|
|
550
|
+
"httpError": {
|
|
551
|
+
"400": "Sunucu verileri kabul etmedi. Alanları kontrol edin.",
|
|
552
|
+
"401": "Oturumunuz sona erdi. Tekrar giriş yapın.",
|
|
553
|
+
"403": "Bu işlem için yetkiniz yok.",
|
|
554
|
+
"404": "Bulunamadı. Silinmiş olabilir.",
|
|
555
|
+
"409": "Mevcut verilerle çakışıyor. Sayfayı yenileyip tekrar deneyin.",
|
|
556
|
+
"413": "Veriler gönderilemeyecek kadar büyük.",
|
|
557
|
+
"422": "Bazı veriler geçersiz. Alanları kontrol edin.",
|
|
558
|
+
"429": "Çok fazla istek gönderildi. Biraz sonra tekrar deneyin.",
|
|
559
|
+
"503": "Sunucu kullanılamıyor. Bir dakika sonra tekrar deneyin.",
|
|
560
|
+
"network": "Sunucuya bağlanılamadı. Ağınızı kontrol edip tekrar deneyin.",
|
|
561
|
+
"4xx": "İstek reddedildi. Hata kodu: {{status}}.",
|
|
562
|
+
"5xx": "Sunucu hatası. Daha sonra tekrar deneyin. Hata kodu: {{status}}.",
|
|
563
|
+
"unknown": "Bir şeyler ters gitti. Daha sonra tekrar deneyin."
|
|
549
564
|
}
|
|
550
565
|
}
|
package/i18n/uk.json
CHANGED
|
@@ -546,5 +546,20 @@
|
|
|
546
546
|
"marquee": {
|
|
547
547
|
"pause": "Пауза",
|
|
548
548
|
"play": "Відтворити"
|
|
549
|
+
},
|
|
550
|
+
"httpError": {
|
|
551
|
+
"400": "Сервер не прийняв дані. Перевірте поля.",
|
|
552
|
+
"401": "Сесія завершилася. Увійдіть знову.",
|
|
553
|
+
"403": "Недостатньо прав для цієї дії.",
|
|
554
|
+
"404": "Не знайдено. Можливо, запис видалили.",
|
|
555
|
+
"409": "Це суперечить уже збереженим даним. Оновіть сторінку і повторіть.",
|
|
556
|
+
"413": "Дані завеликі для надсилання.",
|
|
557
|
+
"422": "Частину даних заповнено неправильно. Перевірте поля.",
|
|
558
|
+
"429": "Забагато запитів. Повторіть трохи пізніше.",
|
|
559
|
+
"503": "Сервер недоступний. Повторіть за хвилину.",
|
|
560
|
+
"network": "Немає зв’язку із сервером. Перевірте підключення і повторіть.",
|
|
561
|
+
"4xx": "Запит відхилено. Код помилки: {{status}}.",
|
|
562
|
+
"5xx": "Помилка на сервері. Повторіть пізніше. Код помилки: {{status}}.",
|
|
563
|
+
"unknown": "Щось пішло не так. Повторіть пізніше."
|
|
549
564
|
}
|
|
550
565
|
}
|
package/i18n/vi.json
CHANGED
|
@@ -546,5 +546,20 @@
|
|
|
546
546
|
"marquee": {
|
|
547
547
|
"pause": "Tạm dừng",
|
|
548
548
|
"play": "Phát"
|
|
549
|
+
},
|
|
550
|
+
"httpError": {
|
|
551
|
+
"400": "Máy chủ không chấp nhận dữ liệu. Hãy kiểm tra các trường.",
|
|
552
|
+
"401": "Phiên đăng nhập đã kết thúc. Hãy đăng nhập lại.",
|
|
553
|
+
"403": "Bạn không có quyền thực hiện thao tác này.",
|
|
554
|
+
"404": "Không tìm thấy. Có thể mục này đã bị xóa.",
|
|
555
|
+
"409": "Xung đột với dữ liệu hiện có. Hãy tải lại trang và thử lại.",
|
|
556
|
+
"413": "Dữ liệu quá lớn để gửi.",
|
|
557
|
+
"422": "Một số dữ liệu không hợp lệ. Hãy kiểm tra các trường.",
|
|
558
|
+
"429": "Quá nhiều yêu cầu. Hãy thử lại sau giây lát.",
|
|
559
|
+
"503": "Máy chủ không khả dụng. Hãy thử lại sau một phút.",
|
|
560
|
+
"network": "Không có kết nối tới máy chủ. Hãy kiểm tra mạng và thử lại.",
|
|
561
|
+
"4xx": "Yêu cầu bị từ chối. Mã lỗi: {{status}}.",
|
|
562
|
+
"5xx": "Máy chủ gặp lỗi. Hãy thử lại sau. Mã lỗi: {{status}}.",
|
|
563
|
+
"unknown": "Đã xảy ra lỗi. Hãy thử lại sau."
|
|
549
564
|
}
|
|
550
565
|
}
|
package/i18n/zh-TW.json
CHANGED
|
@@ -546,5 +546,20 @@
|
|
|
546
546
|
"marquee": {
|
|
547
547
|
"pause": "暫停",
|
|
548
548
|
"play": "播放"
|
|
549
|
+
},
|
|
550
|
+
"httpError": {
|
|
551
|
+
"400": "伺服器未接受資料。請檢查各欄位。",
|
|
552
|
+
"401": "工作階段已結束。請重新登入。",
|
|
553
|
+
"403": "您沒有執行此操作的權限。",
|
|
554
|
+
"404": "找不到。該內容可能已被刪除。",
|
|
555
|
+
"409": "與現有資料衝突。請重新整理頁面後再試一次。",
|
|
556
|
+
"413": "資料過大,無法傳送。",
|
|
557
|
+
"422": "部分資料無效。請檢查各欄位。",
|
|
558
|
+
"429": "要求過多。請稍後再試。",
|
|
559
|
+
"503": "伺服器無法使用。請一分鐘後再試。",
|
|
560
|
+
"network": "無法連線到伺服器。請檢查網路後再試一次。",
|
|
561
|
+
"4xx": "要求遭到拒絕。錯誤代碼:{{status}}。",
|
|
562
|
+
"5xx": "伺服器發生錯誤。請稍後再試。錯誤代碼:{{status}}。",
|
|
563
|
+
"unknown": "發生問題。請稍後再試。"
|
|
549
564
|
}
|
|
550
565
|
}
|
package/i18n/zh.json
CHANGED
|
@@ -546,5 +546,20 @@
|
|
|
546
546
|
"marquee": {
|
|
547
547
|
"pause": "暂停",
|
|
548
548
|
"play": "播放"
|
|
549
|
+
},
|
|
550
|
+
"httpError": {
|
|
551
|
+
"400": "服务器未接受数据。请检查各字段。",
|
|
552
|
+
"401": "会话已结束。请重新登录。",
|
|
553
|
+
"403": "您没有执行此操作的权限。",
|
|
554
|
+
"404": "未找到。该内容可能已被删除。",
|
|
555
|
+
"409": "与现有数据冲突。请刷新页面后重试。",
|
|
556
|
+
"413": "数据过大,无法发送。",
|
|
557
|
+
"422": "部分数据无效。请检查各字段。",
|
|
558
|
+
"429": "请求过多。请稍后重试。",
|
|
559
|
+
"503": "服务器不可用。请一分钟后重试。",
|
|
560
|
+
"network": "无法连接服务器。请检查网络后重试。",
|
|
561
|
+
"4xx": "请求被拒绝。错误代码:{{status}}。",
|
|
562
|
+
"5xx": "服务器出错。请稍后重试。错误代码:{{status}}。",
|
|
563
|
+
"unknown": "出了点问题。请稍后重试。"
|
|
549
564
|
}
|
|
550
565
|
}
|
|
@@ -56,15 +56,7 @@
|
|
|
56
56
|
// crop rectangle and its handles are the sighted affordance for the same two
|
|
57
57
|
// things.
|
|
58
58
|
&__sr-only {
|
|
59
|
-
|
|
60
|
-
width: 1px;
|
|
61
|
-
height: 1px;
|
|
62
|
-
padding: 0;
|
|
63
|
-
margin: -1px;
|
|
64
|
-
overflow: hidden;
|
|
65
|
-
clip: rect(0, 0, 0, 0);
|
|
66
|
-
white-space: nowrap;
|
|
67
|
-
border: 0;
|
|
59
|
+
@include theme.visually-hidden;
|
|
68
60
|
}
|
|
69
61
|
|
|
70
62
|
&__handle {
|
|
@@ -28,11 +28,14 @@
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.wr-layout-content {
|
|
31
|
+
// One length: `wr-page-header[bleed]` negates it to reach the edges.
|
|
32
|
+
--wr-layout-content-padding: var(--wr-space-xl);
|
|
33
|
+
|
|
31
34
|
display: block;
|
|
32
35
|
flex: 1 1 auto;
|
|
33
36
|
min-height: 0;
|
|
34
37
|
min-width: 0;
|
|
35
|
-
padding: var(--wr-
|
|
38
|
+
padding: var(--wr-layout-content-padding);
|
|
36
39
|
background: var(--wr-color-surface);
|
|
37
40
|
font-family: var(--wr-font-family-base);
|
|
38
41
|
color: var(--wr-color-on-surface);
|
|
@@ -64,3 +67,12 @@
|
|
|
64
67
|
border-inline-start: 1px solid var(--wr-border-base);
|
|
65
68
|
}
|
|
66
69
|
}
|
|
70
|
+
|
|
71
|
+
// The header and the sider are app chrome. The content is a flex item that
|
|
72
|
+
// grows, so it takes the sider's width with nothing left to reset.
|
|
73
|
+
@media print {
|
|
74
|
+
.wr-layout-header,
|
|
75
|
+
.wr-layout-sider {
|
|
76
|
+
display: none;
|
|
77
|
+
}
|
|
78
|
+
}
|
package/llms-full.txt
CHANGED
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
## ngwr/button
|
|
244
244
|
- import: `import { WrButton } from 'ngwr/button'`
|
|
245
245
|
- selector: `wr-btn-group`, `wr-btn`, `button[wr-btn]`, `a[wr-btn]`
|
|
246
|
-
- exports: WrButton, WrButtonGroup, WrButtonSize, WrButtonShape, WrButtonIconPosition
|
|
246
|
+
- exports: WrButton, WrButtonGroup, WR_BUTTON_SIZE, WrButtonSize, WrButtonShape, WrButtonIconPosition
|
|
247
247
|
- A button for an action or a link.
|
|
248
248
|
|
|
249
249
|
## ngwr/button/testing
|
|
@@ -626,7 +626,7 @@
|
|
|
626
626
|
## ngwr/dialog
|
|
627
627
|
- import: `import { WrDialog } from 'ngwr/dialog'`
|
|
628
628
|
- selector: `[wrDialogClose]`, `[wrDialogContent]`, `[wrDialogFooter]`, `[wrDialogTitle]`
|
|
629
|
-
- exports: WrDialog, WrDialogRef, WR_DIALOG_DATA, WR_DIALOG_REF, withDialog, WrDialogAlertOptions, WrDialogAutoFocus, WrDialogConfirmOptions, WrDialogDefaults, WrDialogIntent, WrDialogMessageOptions, WrDialogOptions, WrDialogRole, WrDialogTitle, WrDialogContent, WrDialogFooter, WrDialogClose
|
|
629
|
+
- exports: WrDialog, WrDialogRef, WR_DIALOG_DATA, WR_DIALOG_REF, withDialog, WrDialogAlertOptions, WrDialogAutoFocus, WrDialogConfirmOptions, WrDialogDefaults, WrDialogIntent, WrDialogMessageOptions, WrDialogOptions, WrDialogRole, WrDialogSize, WrDialogTitle, WrDialogContent, WrDialogFooter, WrDialogClose
|
|
630
630
|
- keywords: modal, wr-dialog, overlay, portal
|
|
631
631
|
- Open any component as a modal dialog and await its result.
|
|
632
632
|
|
|
@@ -711,9 +711,9 @@
|
|
|
711
711
|
|
|
712
712
|
## ngwr/form
|
|
713
713
|
- import: `import { WrFormField } from 'ngwr/form'`
|
|
714
|
-
- selector: `wr-form-error`, `wr-form-field`, `wr-form-item`
|
|
715
|
-
- exports: WrFormItem, WrFormField, WrFormError, WR_FORM_FIELD, WrFormFieldContext, useFormFieldAria, WrFormFieldAria, WR_FIELD, wrFieldLabel, WrFieldKind, WrFieldOption, WrFieldSection, WrFieldSpec
|
|
716
|
-
-
|
|
714
|
+
- selector: `wr-form-error`, `wr-form-field`, `wr-form-item`, `[wrForm]`, `[wrFormSpan]`
|
|
715
|
+
- exports: WrForm, WrFormSpan, WrFormItem, WrFormField, WrFormError, WR_FORM_FIELD, WrFormFieldContext, useFormFieldAria, WrFormFieldAria, WR_FIELD, wrFieldLabel, WrFieldKind, WrFieldOption, WrFieldSection, WrFieldSpec
|
|
716
|
+
- The layout of a form's fields, and a plain wrapper for a label, a control and its error.
|
|
717
717
|
|
|
718
718
|
## ngwr/form/testing
|
|
719
719
|
- import: `import { WrFormFieldHarness } from 'ngwr/form/testing'`
|
|
@@ -740,7 +740,7 @@
|
|
|
740
740
|
## ngwr/i18n
|
|
741
741
|
- import: `import { WrI18n } from 'ngwr/i18n'`
|
|
742
742
|
- selector: `[wrT]`
|
|
743
|
-
- exports: WrI18n, WrTPipe, WrTDirective, WR_I18N_CONFIG, DEFAULT_WR_I18N_CONFIG, WrI18nCatalog, WrI18nConfig, WrI18nConfigResolved, WrI18nParams, WrI18nTranslateOptions, WrI18nMissingHandler, WR_I18N_LOADER, WrI18nLoader, WR_I18N_BASE_CATALOGS, WrI18nBaseCatalogs, WrI18nStaticLoader, WrI18nStaticCatalogs, WrI18nStaticScopedCatalogs, WrI18nHttpLoader, WrI18nHttpLoaderConfig, provideWrI18n, provideWrI18nBaseCatalogs, provideWrI18nStaticLoader, provideWrI18nHttpLoader, ProvideWrI18nOptions, useI18nText, wrReadI18nText, useI18nFormatter
|
|
743
|
+
- exports: WrI18n, WrTPipe, WrTDirective, WR_I18N_CONFIG, DEFAULT_WR_I18N_CONFIG, WrI18nCatalog, WrI18nConfig, WrI18nConfigResolved, WrI18nParams, WrI18nTranslateOptions, WrI18nMissingHandler, WR_I18N_LOADER, WrI18nLoader, WR_I18N_BASE_CATALOGS, WrI18nBaseCatalogs, WrI18nStaticLoader, WrI18nStaticCatalogs, WrI18nStaticScopedCatalogs, WrI18nHttpLoader, WrI18nHttpLoaderConfig, provideWrI18n, provideWrI18nBaseCatalogs, provideWrI18nStaticLoader, provideWrI18nHttpLoader, ProvideWrI18nOptions, useI18nText, wrReadI18nText, useI18nFormatter, wrHttpStatus, wrHttpErrorText, WrHttpErrorOverride, WrHttpErrorTextOptions
|
|
744
744
|
- keywords: translation, locale, transloco, wr-i18n, service
|
|
745
745
|
- Translate strings at runtime and switch the locale without a reload.
|
|
746
746
|
|
|
@@ -1230,7 +1230,7 @@
|
|
|
1230
1230
|
## ngwr/table
|
|
1231
1231
|
- import: `import { WrTable } from 'ngwr/table'`
|
|
1232
1232
|
- selector: `[wrTableCell]`, `wr-table-column-chooser`, `[wrTableEditCell]`, `ng-template[wrTableExpand]`, `wr-table-filter`, `ng-template[wrTableGroupHeader]`, `ng-template[wrTableSelectionBar]`, `wr-table-sort`, `wr-table`
|
|
1233
|
-
- exports: WrTable, WrTableCell, WrTableColumnChooser, WrTableEditCell, WrTableExpand, WrTableGroupHeader, WrTableSelectionBar, WrTableSort, WrTableFilter, wrReadField, wrSortRows, WrTableCellContext, WrTableCellEdit, WrTableChooserColumn, WrTableColumn, WrTableColumnAlign, WrTableColumns, WrTableCsvOptions, WrTableEditCellContext, WrTableEditable, WrTableExpandContext, WrTableFilterChange, WrTableFilterItem, WrTableGroupContext, WrTableLoadingMode, WrTableRow, WrTableRowClass, WrTableRowClick, WrTableSelectionContext, WrTableSortAccessor, WrTableSortState, WrTableSortDirection, WrTableState, WrTableSummary, WrTableSummaryContext, WrTableTruncate
|
|
1233
|
+
- exports: WrTable, WrTableCell, WrTableColumnChooser, WrTableEditCell, WrTableExpand, WrTableGroupHeader, WrTableSelectionBar, WrTableSort, WrTableFilter, wrReadField, wrSortRows, WrTableCellContext, WrTableCellEdit, WrTableChooserColumn, WrTableColumn, WrTableColumnAlign, WrTableColumns, WrTableCsvOptions, WrTableEditCellContext, WrTableEditable, WrTableExpandContext, WrTableFilterChange, WrTableFilterItem, WrTableGroupContext, WrTableLayout, WrTableLoadingMode, WrTableRow, WrTableRowClass, WrTableRowClick, WrTableSelectionContext, WrTableSortAccessor, WrTableSortState, WrTableSortDirection, WrTableState, WrTableSummary, WrTableSummaryContext, WrTableTruncate
|
|
1234
1234
|
- keywords: wrsortrows, wrreadfield, sort
|
|
1235
1235
|
- Rows of data with sorting, filtering, paging and custom cells.
|
|
1236
1236
|
|
|
@@ -1330,12 +1330,12 @@
|
|
|
1330
1330
|
- import: `import { WrTypography } from 'ngwr/typography'`
|
|
1331
1331
|
- selector: `[wrTypography]`
|
|
1332
1332
|
- exports: WrTypography, WrTypographyVariant, WrTypographyAlign, WrTypographyTone
|
|
1333
|
-
- keywords: wr-typography, variant, tone, align, truncate, mono, directive
|
|
1333
|
+
- keywords: wr-typography, variant, tone, align, truncate, mono, numeric, tabular, directive
|
|
1334
1334
|
- Style any text element with a shared text role.
|
|
1335
1335
|
|
|
1336
1336
|
## ngwr/utils
|
|
1337
1337
|
- import: `import { wrIsDefined } from 'ngwr/utils'`
|
|
1338
|
-
- exports: WrMaybe, WrSafeAny, WrClassInput, wrIsDefined, wrIsNonEmptyArray, wrIsObservable, wrClamp, wrRound, wrDecimal, wrDecimalAdd, wrDecimalCompare, wrDecimalDivide, wrDecimalMultiply, wrDecimalRound, wrDecimalSubtract, WrDecimalLike, wrNumAttr, wrToClassList, wrIsSafeCssValue, wrResolveCssSize, WrResolveCssSizeOptions, WrResolvedCssSize, wrGetRootFontSize, wrGetFocusableElements, wrResolveCssColor, wrResolveCssColorChannels, wrTrapFocus, wrWatchColorScheme, wrCheckStyles, wrContentDispositionFileName, wrDownloadBlob, wrRestoreFocus, wrWatchDragCancel, WrWatchColorSchemeOptions, WrColorScheme, wrRandomId, wrNoop, wrDebounce, wrThrottle, WrDebouncedFn, WrThrottledFn, WR_KEYS, WR_KEY_LABELS, wrHasModifier, wrIsComposing, wrIsPrintableKey, wrTypeahead, WrKey, WrTypeahead, WrTypeaheadItem, WrTypeaheadOptions, wrBadgeError, wrBadgeLog, wrBadgeWarn, wrInitials, WrInitialsOptions, WrInitialsOrder, WrInitialsStyle, WR_LIVE_LOCALE, wrFeature, WrFeature, wrAction, wrKeyedAction, wrResourceValue, WrAction, WrActionStatus, WrKeyedAction
|
|
1338
|
+
- exports: WrMaybe, WrSafeAny, WrClassInput, wrIsDefined, wrIsNonEmptyArray, wrIsObservable, wrClamp, wrRound, wrDecimal, wrDecimalAdd, wrDecimalCompare, wrDecimalDivide, wrDecimalMultiply, wrDecimalRound, wrDecimalSubtract, WrDecimalLike, wrNumAttr, wrToClassList, wrIsSafeCssValue, wrResolveCssSize, WrResolveCssSizeOptions, WrResolvedCssSize, wrGetRootFontSize, wrGetFocusableElements, wrResolveCssColor, wrResolveCssColorChannels, wrTrapFocus, wrWatchColorScheme, wrCheckStyles, wrContentDispositionFileName, wrDownloadBlob, wrRestoreFocus, wrNoteFocusReturn, wrFocusFirstInvalid, wrWatchDragCancel, WrWatchColorSchemeOptions, WrColorScheme, WrFocusFirstInvalidOptions, wrRandomId, wrNoop, wrDebounce, wrThrottle, WrDebouncedFn, WrThrottledFn, WR_KEYS, WR_KEY_LABELS, wrHasModifier, wrIsComposing, wrIsPrintableKey, wrTypeahead, WrKey, WrTypeahead, WrTypeaheadItem, WrTypeaheadOptions, wrBadgeError, wrBadgeLog, wrBadgeWarn, wrInitials, WrInitialsOptions, WrInitialsOrder, WrInitialsStyle, WR_LIVE_LOCALE, wrFeature, WrFeature, wrAction, wrKeyedAction, wrResourceValue, WrAction, WrActionStatus, WrKeyedAction
|
|
1339
1339
|
- Small helpers: coercion (`wrNumAttr`), DOM and keyboard guards, maths, ids, `wrDebounce` / `wrThrottle`, `wrResolveCssColor`, and the shared types `WrMaybe` and `WrSafeAny`.
|
|
1340
1340
|
|
|
1341
1341
|
## ngwr/utils/router
|
|
@@ -1345,7 +1345,7 @@
|
|
|
1345
1345
|
|
|
1346
1346
|
## ngwr/validators
|
|
1347
1347
|
- import: `import { WrValidators } from 'ngwr/validators'`
|
|
1348
|
-
- exports: WrValidators
|
|
1348
|
+
- exports: wrMatches, wrNotBlank, WrRuleOptions, WrValidators
|
|
1349
1349
|
- `WrValidators`, form validators in the shape of Angular's `Validators`: card number, CVC, IBAN, hex colour, URL, matching fields, min / max date, one-of and no whitespace.
|
|
1350
1350
|
|
|
1351
1351
|
## ngwr/version
|
package/package.json
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"rxjs": "^7.8.2",
|
|
49
49
|
"prosemirror-commands": "^1.7.2",
|
|
50
50
|
"prosemirror-history": "^1.5.1",
|
|
51
|
-
"prosemirror-inputrules": "^1.
|
|
51
|
+
"prosemirror-inputrules": "^1.6.0",
|
|
52
52
|
"prosemirror-keymap": "^1.2.3",
|
|
53
53
|
"prosemirror-model": "^1.25.13",
|
|
54
54
|
"prosemirror-schema-list": "^1.6.0",
|
|
@@ -1218,5 +1218,5 @@
|
|
|
1218
1218
|
"sass": "./styles/_typography.scss"
|
|
1219
1219
|
}
|
|
1220
1220
|
},
|
|
1221
|
-
"version": "16.
|
|
1221
|
+
"version": "16.6.0"
|
|
1222
1222
|
}
|
|
@@ -27,6 +27,8 @@
|
|
|
27
27
|
// it, and level with `wr-affix`. Raise or lower it to sit under an app bar.
|
|
28
28
|
--wr-page-header-sticky-z: 10;
|
|
29
29
|
--wr-page-header-sticky-bg: var(--wr-color-surface);
|
|
30
|
+
// Read only under `bleed`. Inherited from `wr-layout-content`, zero outside one.
|
|
31
|
+
--wr-page-header-bleed: var(--wr-layout-content-padding, 0px);
|
|
30
32
|
|
|
31
33
|
display: flex;
|
|
32
34
|
flex-direction: column;
|
|
@@ -96,6 +98,15 @@
|
|
|
96
98
|
background: var(--wr-page-header-sticky-bg);
|
|
97
99
|
}
|
|
98
100
|
|
|
101
|
+
// Opt-in (`bleed`): over the padding of the box it tops, on three sides, and
|
|
102
|
+
// padded by as much, so its text stays in line with the content under it.
|
|
103
|
+
&--bleed {
|
|
104
|
+
width: auto;
|
|
105
|
+
margin-block-start: calc(-1 * var(--wr-page-header-bleed));
|
|
106
|
+
margin-inline: calc(-1 * var(--wr-page-header-bleed));
|
|
107
|
+
padding-inline: var(--wr-page-header-bleed);
|
|
108
|
+
}
|
|
109
|
+
|
|
99
110
|
&__breadcrumbs {
|
|
100
111
|
font-size: var(--wr-page-header-breadcrumbs-font-size);
|
|
101
112
|
color: var(--wr-color-on-surface-muted);
|
|
@@ -227,3 +238,10 @@
|
|
|
227
238
|
align-items: flex-start;
|
|
228
239
|
}
|
|
229
240
|
}
|
|
241
|
+
|
|
242
|
+
// Nothing scrolls on paper, and a pinned bar would sit over the first lines.
|
|
243
|
+
@media print {
|
|
244
|
+
.wr-page-header--sticky {
|
|
245
|
+
position: static;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
@@ -116,6 +116,8 @@
|
|
|
116
116
|
"WrEventCalendar": "ngwr/event-calendar",
|
|
117
117
|
"WrCalendarEventTemplate": "ngwr/event-calendar",
|
|
118
118
|
"WrFileUpload": "ngwr/file-upload",
|
|
119
|
+
"WrForm": "ngwr/form",
|
|
120
|
+
"WrFormSpan": "ngwr/form",
|
|
119
121
|
"WrFormItem": "ngwr/form",
|
|
120
122
|
"WrFormField": "ngwr/form",
|
|
121
123
|
"WrFormError": "ngwr/form",
|
|
@@ -70,6 +70,13 @@
|
|
|
70
70
|
height: 0;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
// Layout
|
|
74
|
+
&--block,
|
|
75
|
+
&:where([block]:not([block='false'])) {
|
|
76
|
+
display: grid;
|
|
77
|
+
width: 100%;
|
|
78
|
+
}
|
|
79
|
+
|
|
73
80
|
// Sizes — share the `--wr-control-*` contract (22 / 30 / 36 px). Multi/tag
|
|
74
81
|
// min-height and the search/tag inputs all read these vars, so every mode
|
|
75
82
|
// tracks the size. Declared before `--rounded` so the pill modifier wins.
|
|
@@ -124,7 +124,7 @@ root barrel for components: the root `ngwr` exports only `provideWr()`.
|
|
|
124
124
|
| `ngwr/event-calendar/testing` | `import { WrEventCalendarChipHarness } from 'ngwr/event-calendar/testing'` | — |
|
|
125
125
|
| `ngwr/file-upload` | `import { WrFileUpload } from 'ngwr/file-upload'` | `wr-file-upload` |
|
|
126
126
|
| `ngwr/file-upload/testing` | `import { WrFileUploadHarness } from 'ngwr/file-upload/testing'` | — |
|
|
127
|
-
| `ngwr/form` | `import { WrFormField } from 'ngwr/form'` | `wr-form-error` `wr-form-field` `wr-form-item` |
|
|
127
|
+
| `ngwr/form` | `import { WrFormField } from 'ngwr/form'` | `wr-form-error` `wr-form-field` `wr-form-item` `[wrForm]` `[wrFormSpan]` |
|
|
128
128
|
| `ngwr/form/testing` | `import { WrFormFieldHarness } from 'ngwr/form/testing'` | — |
|
|
129
129
|
| `ngwr/graph` | `import { WrGraph } from 'ngwr/graph'` | `ng-template[wrGraphNode]` `wr-graph` |
|
|
130
130
|
| `ngwr/graph/testing` | `import { WrGraphHarness } from 'ngwr/graph/testing'` | — |
|
|
@@ -109,15 +109,7 @@
|
|
|
109
109
|
|
|
110
110
|
// The key model and the position announcements: read out, never drawn.
|
|
111
111
|
&__sr-only {
|
|
112
|
-
|
|
113
|
-
width: 1px;
|
|
114
|
-
height: 1px;
|
|
115
|
-
padding: 0;
|
|
116
|
-
margin: -1px;
|
|
117
|
-
overflow: hidden;
|
|
118
|
-
clip: rect(0, 0, 0, 0);
|
|
119
|
-
white-space: nowrap;
|
|
120
|
-
border: 0;
|
|
112
|
+
@include theme.visually-hidden;
|
|
121
113
|
}
|
|
122
114
|
}
|
|
123
115
|
|
|
@@ -227,15 +227,7 @@ $header-padding-block: 0.25rem;
|
|
|
227
227
|
// Read, not shown: the "completed" state the check mark draws, in the header
|
|
228
228
|
// button's name. Out of flow, so the label's column gap does not count it.
|
|
229
229
|
&__sr-only {
|
|
230
|
-
|
|
231
|
-
width: 1px;
|
|
232
|
-
height: 1px;
|
|
233
|
-
padding: 0;
|
|
234
|
-
margin: -1px;
|
|
235
|
-
overflow: hidden;
|
|
236
|
-
clip: rect(0, 0, 0, 0);
|
|
237
|
-
white-space: nowrap;
|
|
238
|
-
border: 0;
|
|
230
|
+
@include theme.visually-hidden;
|
|
239
231
|
}
|
|
240
232
|
|
|
241
233
|
// `__description` is listed FIRST on purpose: `gen:css-vars` attributes a
|
package/table/styles/_index.scss
CHANGED
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
// A column's place in a multi-column sort, drawn after its indicator.
|
|
55
55
|
--wr-table-sort-order-font-size: var(--wr-table-head-font-size);
|
|
56
56
|
--wr-table-sort-order-font-weight: var(--wr-font-weight-semibold);
|
|
57
|
+
--wr-table-actions-gap: var(--wr-space-xs);
|
|
57
58
|
--wr-table-tree-lead-margin-end: var(--wr-space-xs);
|
|
58
59
|
--wr-table-tree-toggle-radius: var(--wr-border-radius-sm);
|
|
59
60
|
--wr-table-expand-btn-padding: var(--wr-space-xs);
|
|
@@ -170,6 +171,21 @@
|
|
|
170
171
|
overflow: hidden;
|
|
171
172
|
}
|
|
172
173
|
|
|
174
|
+
// `layout="fixed"`: the widths hold and the text wraps. `anywhere`, because a
|
|
175
|
+
// fixed column cannot grow around a long word.
|
|
176
|
+
&__table--layout-fixed {
|
|
177
|
+
table-layout: fixed;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&__table--layout-fixed &__th,
|
|
181
|
+
&__table--layout-fixed &__td {
|
|
182
|
+
overflow-wrap: anywhere;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
&__table--layout-fixed &__th {
|
|
186
|
+
white-space: normal;
|
|
187
|
+
}
|
|
188
|
+
|
|
173
189
|
// `truncate: 'tooltip'`. The cut happens where the column cannot grow: under
|
|
174
190
|
// a fixed layout, or at the `max-width` the component writes from `width`.
|
|
175
191
|
&__td--truncate {
|
|
@@ -312,6 +328,31 @@
|
|
|
312
328
|
|
|
313
329
|
// --- Row selection --------------------------------------------------------
|
|
314
330
|
&__th--select,
|
|
331
|
+
// --- Row actions ----------------------------------------------------------
|
|
332
|
+
// `column.actions`. `width: 1%` shrinks the column to its buttons under auto
|
|
333
|
+
// layout; a fixed layout would read it literally, so there the column takes
|
|
334
|
+
// its `width`.
|
|
335
|
+
&__th--actions,
|
|
336
|
+
&__td--actions {
|
|
337
|
+
width: 1%;
|
|
338
|
+
text-align: end;
|
|
339
|
+
white-space: nowrap;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
&__table--layout-fixed &__th--actions,
|
|
343
|
+
&__table--layout-fixed &__td--actions {
|
|
344
|
+
width: auto;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
&__actions {
|
|
348
|
+
display: inline-flex;
|
|
349
|
+
flex-wrap: nowrap;
|
|
350
|
+
align-items: center;
|
|
351
|
+
justify-content: flex-end;
|
|
352
|
+
gap: var(--wr-table-actions-gap);
|
|
353
|
+
vertical-align: middle;
|
|
354
|
+
}
|
|
355
|
+
|
|
315
356
|
&__td--select {
|
|
316
357
|
width: 1%;
|
|
317
358
|
white-space: nowrap;
|
|
@@ -748,6 +789,10 @@
|
|
|
748
789
|
min-width: 0;
|
|
749
790
|
}
|
|
750
791
|
|
|
792
|
+
&__sr-only {
|
|
793
|
+
@include theme.visually-hidden;
|
|
794
|
+
}
|
|
795
|
+
|
|
751
796
|
&__loading {
|
|
752
797
|
position: absolute;
|
|
753
798
|
inset: 0;
|
|
@@ -1119,6 +1164,10 @@
|
|
|
1119
1164
|
content: none;
|
|
1120
1165
|
}
|
|
1121
1166
|
|
|
1167
|
+
.wr-table--responsive .wr-table__td--actions {
|
|
1168
|
+
width: auto;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1122
1171
|
// Fixed-layout truncation is meaningless in cards — let values wrap again.
|
|
1123
1172
|
.wr-table--responsive .wr-table__table--fixed .wr-table__td {
|
|
1124
1173
|
overflow: visible;
|
package/theme/_index.scss
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
// gap: a dark value is the second argument of a `light-dark()` in any
|
|
44
44
|
// declaration, in a global stylesheet and a component stylesheet alike, with
|
|
45
45
|
// no selector for encapsulation to rewrite.
|
|
46
|
-
@forward 'styles' hide smooth-br, touch-target, focus-ring, scrollbar, rebrand, contrast;
|
|
46
|
+
@forward 'styles' hide smooth-br, touch-target, focus-ring, scrollbar, visually-hidden, canvas, rebrand, contrast;
|
|
47
47
|
@use 'styles' as base;
|
|
48
48
|
|
|
49
49
|
/// iOS-style smooth corners, degrading to a plain radius where `corner-shape`
|
|
@@ -69,6 +69,17 @@
|
|
|
69
69
|
@include base.scrollbar;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
/// Out of sight and out of flow, still read by a screen reader.
|
|
73
|
+
@mixin visually-hidden {
|
|
74
|
+
@include base.visually-hidden;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/// The page background, `--wr-color-canvas`: `body` at the stylesheet root, one
|
|
78
|
+
/// element inside a rule. Loading the theme paints nothing with it.
|
|
79
|
+
@mixin canvas {
|
|
80
|
+
@include base.canvas;
|
|
81
|
+
}
|
|
82
|
+
|
|
72
83
|
/// Re-emit an intent's whole token set on the current selector, from one seed —
|
|
73
84
|
/// or from two, the second for the dark scheme.
|
|
74
85
|
@mixin rebrand($colors, $dark: ()) {
|
|
@@ -618,6 +618,17 @@ $ink-mix-more: (
|
|
|
618
618
|
// into the background. Paint with `--wr-color-surface`, the role over it; a
|
|
619
619
|
// colour that has to stay white in both schemes is a literal, never this.
|
|
620
620
|
--wr-color-white: light-dark(#ffffff, #0b1120);
|
|
621
|
+
|
|
622
|
+
// The page background, one step behind `--wr-color-surface`, so a card or a
|
|
623
|
+
// table on it reads as raised. Nothing paints with it until an app opts in
|
|
624
|
+
// through the `canvas` mixin. Both sides are steps of the fixed scale: 1.10:1
|
|
625
|
+
// against the surface in light and 1.07:1 in dark. Body text reads 16.12:1 on
|
|
626
|
+
// it in light and muted text 6.87:1; an `-ink` on its own `-soft` tint drops
|
|
627
|
+
// to 4.64:1 at worst (`warning`), above AA and under the 5.0 target, and dark
|
|
628
|
+
// only gains. Declared here and not in `derived()`: a `:root` rebrand would
|
|
629
|
+
// re-declare it after the `prefers-contrast: more` override and switch that
|
|
630
|
+
// off.
|
|
631
|
+
--wr-color-canvas: light-dark(var(--wr-color-gray-100), var(--wr-color-gray-950));
|
|
621
632
|
// The flat primitive, the same in both schemes. A scrim built on it is a mix
|
|
622
633
|
// toward `transparent`: `color-mix(in srgb, var(--wr-color-black) 45%,
|
|
623
634
|
// transparent)`.
|
|
@@ -59,6 +59,12 @@
|
|
|
59
59
|
// contrast that trade flips — the reader has said which side they want.
|
|
60
60
|
--wr-color-gray-4: light-dark(#718cad, #566b9b);
|
|
61
61
|
|
|
62
|
+
// The step behind the surface closes. On the light canvas an `-ink` at its
|
|
63
|
+
// high-contrast share reads 6.41:1 to 6.97:1 on a `-soft` tint for three
|
|
64
|
+
// intents, under the 7:1 this block promises, and the deepened hairline
|
|
65
|
+
// above already separates a card from the page.
|
|
66
|
+
--wr-color-canvas: var(--wr-color-surface);
|
|
67
|
+
|
|
62
68
|
@each $name, $share in colors.$ink-mix-more {
|
|
63
69
|
--wr-color-#{$name}-ink: color-mix(in srgb, var(--wr-color-#{$name}) #{$share}, var(--wr-color-gray-6));
|
|
64
70
|
}
|
package/theme/styles/_index.scss
CHANGED
|
@@ -122,3 +122,48 @@
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
+
|
|
126
|
+
/// Visually hidden, still read by a screen reader: out of flow and clipped to
|
|
127
|
+
/// nothing, never `display: none` or `visibility: hidden`, which take the text
|
|
128
|
+
/// out of the accessible tree too.
|
|
129
|
+
///
|
|
130
|
+
/// @example scss
|
|
131
|
+
/// .wr-tree__sr-only {
|
|
132
|
+
/// @include visually-hidden;
|
|
133
|
+
/// }
|
|
134
|
+
@mixin visually-hidden {
|
|
135
|
+
position: absolute;
|
|
136
|
+
width: 1px;
|
|
137
|
+
height: 1px;
|
|
138
|
+
padding: 0;
|
|
139
|
+
margin: -1px;
|
|
140
|
+
overflow: hidden;
|
|
141
|
+
clip: rect(0, 0, 0, 0);
|
|
142
|
+
white-space: nowrap;
|
|
143
|
+
border: 0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/// Paints with `--wr-color-canvas`, the page background one step behind
|
|
147
|
+
/// `--wr-color-surface`: `body` when included at the stylesheet root, that
|
|
148
|
+
/// element when included inside a rule. Opt-in: loading the theme paints
|
|
149
|
+
/// nothing with the token.
|
|
150
|
+
///
|
|
151
|
+
/// At the root the selector is `:where(body)`, zero specificity, so any rule of
|
|
152
|
+
/// a consumer wins.
|
|
153
|
+
///
|
|
154
|
+
/// @example scss
|
|
155
|
+
/// @include theme.canvas;
|
|
156
|
+
///
|
|
157
|
+
/// // `wr-layout` paints its own background over `body`.
|
|
158
|
+
/// .wr-layout-content {
|
|
159
|
+
/// @include theme.canvas;
|
|
160
|
+
/// }
|
|
161
|
+
@mixin canvas {
|
|
162
|
+
@if & {
|
|
163
|
+
background-color: var(--wr-color-canvas);
|
|
164
|
+
} @else {
|
|
165
|
+
:where(body) {
|
|
166
|
+
background-color: var(--wr-color-canvas);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Print utilities, emitted with the token layer so every app has them.
|
|
2
|
+
//
|
|
3
|
+
// `!important` for the reason `_motion.scss` gives: the theme loads first, so a
|
|
4
|
+
// component's own `display` at the same specificity would win on source order,
|
|
5
|
+
// and a class put on a `wr-btn` or a flex row would hide nothing.
|
|
6
|
+
|
|
7
|
+
@media print {
|
|
8
|
+
.wr-no-print {
|
|
9
|
+
display: none !important;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@media not print {
|
|
14
|
+
.wr-print-only {
|
|
15
|
+
display: none !important;
|
|
16
|
+
}
|
|
17
|
+
}
|