ngwr 16.8.0 → 16.9.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/descriptions/styles/_index.scss +91 -0
- package/fesm2022/ngwr-anchor.mjs +48 -10
- package/fesm2022/ngwr-anchor.mjs.map +1 -1
- package/fesm2022/ngwr-carousel.mjs +3 -2
- package/fesm2022/ngwr-carousel.mjs.map +1 -1
- package/fesm2022/ngwr-compare.mjs +4 -0
- package/fesm2022/ngwr-compare.mjs.map +1 -1
- package/fesm2022/ngwr-cookie.mjs +6 -3
- package/fesm2022/ngwr-cookie.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp-testing.mjs +3 -0
- package/fesm2022/ngwr-date-stamp-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp.mjs +81 -4
- package/fesm2022/ngwr-date-stamp.mjs.map +1 -1
- package/fesm2022/ngwr-date.mjs +16 -2
- package/fesm2022/ngwr-date.mjs.map +1 -1
- package/fesm2022/ngwr-density.mjs +4 -3
- package/fesm2022/ngwr-density.mjs.map +1 -1
- package/fesm2022/ngwr-descriptions.mjs +77 -20
- package/fesm2022/ngwr-descriptions.mjs.map +1 -1
- package/fesm2022/ngwr-directives.mjs +12 -0
- package/fesm2022/ngwr-directives.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +1 -0
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload.mjs +2 -3
- package/fesm2022/ngwr-file-upload.mjs.map +1 -1
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-hotkey.mjs +10 -5
- package/fesm2022/ngwr-hotkey.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ar.mjs +9 -3
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +9 -3
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +9 -3
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +9 -3
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +9 -3
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +9 -3
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +9 -3
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +9 -3
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +9 -3
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +9 -3
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +9 -3
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-kk.mjs +9 -3
- package/fesm2022/ngwr-i18n-kk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +9 -3
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +9 -3
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +9 -3
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +9 -3
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +9 -3
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +9 -3
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +9 -3
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +9 -3
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +9 -3
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +9 -3
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +9 -3
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +7 -6
- package/fesm2022/ngwr-i18n.mjs.map +1 -1
- package/fesm2022/ngwr-image-cropper-testing.mjs +33 -0
- package/fesm2022/ngwr-image-cropper-testing.mjs.map +1 -1
- package/fesm2022/ngwr-image-cropper.mjs +536 -30
- package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
- package/fesm2022/ngwr-knob.mjs +5 -0
- package/fesm2022/ngwr-knob.mjs.map +1 -1
- package/fesm2022/ngwr-mention.mjs +2 -0
- package/fesm2022/ngwr-mention.mjs.map +1 -1
- package/fesm2022/ngwr-meta.mjs +43 -8
- package/fesm2022/ngwr-meta.mjs.map +1 -1
- package/fesm2022/ngwr-pagination.mjs +1 -1
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +160 -8
- package/fesm2022/ngwr-pipes.mjs.map +1 -1
- package/fesm2022/ngwr-qr.mjs +65 -7
- package/fesm2022/ngwr-qr.mjs.map +1 -1
- package/fesm2022/ngwr-schema-form.mjs +2 -2
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-scroll.mjs +1 -2
- package/fesm2022/ngwr-scroll.mjs.map +1 -1
- package/fesm2022/ngwr-speed-dial.mjs +30 -1
- package/fesm2022/ngwr-speed-dial.mjs.map +1 -1
- package/fesm2022/ngwr-statistic.mjs +1 -1
- package/fesm2022/ngwr-stepper-testing.mjs +7 -1
- package/fesm2022/ngwr-stepper-testing.mjs.map +1 -1
- package/fesm2022/ngwr-stepper.mjs +55 -4
- package/fesm2022/ngwr-stepper.mjs.map +1 -1
- package/fesm2022/ngwr-timeline.mjs +4 -0
- package/fesm2022/ngwr-timeline.mjs.map +1 -1
- package/fesm2022/ngwr-toolbar.mjs +171 -16
- package/fesm2022/ngwr-toolbar.mjs.map +1 -1
- package/fesm2022/ngwr-transfer.mjs +3 -2
- package/fesm2022/ngwr-transfer.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +1 -1
- package/fesm2022/ngwr-utils.mjs +46 -8
- 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 +2 -2
- package/fesm2022/ngwr-virtual-scroll.mjs.map +1 -1
- package/i18n/ar.json +9 -3
- package/i18n/cs.json +9 -3
- package/i18n/de.json +9 -3
- package/i18n/en.json +9 -3
- package/i18n/es.json +9 -3
- package/i18n/fr.json +9 -3
- package/i18n/he.json +9 -3
- package/i18n/hi.json +9 -3
- package/i18n/id.json +9 -3
- package/i18n/it.json +9 -3
- package/i18n/ja.json +9 -3
- package/i18n/kk.json +9 -3
- package/i18n/ko.json +9 -3
- package/i18n/nl.json +9 -3
- package/i18n/pl.json +9 -3
- package/i18n/pt.json +9 -3
- package/i18n/ru.json +9 -3
- package/i18n/sv.json +9 -3
- package/i18n/tr.json +9 -3
- package/i18n/uk.json +9 -3
- package/i18n/vi.json +9 -3
- package/i18n/zh-TW.json +9 -3
- package/i18n/zh.json +9 -3
- package/image-cropper/styles/_index.scss +30 -1
- package/llms-full.txt +5 -5
- package/package.json +1 -1
- package/schematics/use/symbol-map.json +1 -0
- package/skills/ngwr/SKILL.md +2 -2
- package/stepper/styles/_index.scss +33 -0
- package/types/ngwr-anchor.d.ts +14 -1
- package/types/ngwr-date-stamp-testing.d.ts +2 -0
- package/types/ngwr-date-stamp.d.ts +41 -2
- package/types/ngwr-date.d.ts +3 -1
- package/types/ngwr-descriptions.d.ts +33 -5
- package/types/ngwr-directives.d.ts +1 -0
- package/types/ngwr-form.d.ts +4 -0
- package/types/ngwr-hotkey.d.ts +2 -0
- package/types/ngwr-image-cropper-testing.d.ts +33 -1
- package/types/ngwr-image-cropper.d.ts +214 -6
- package/types/ngwr-meta.d.ts +13 -1
- package/types/ngwr-pipes.d.ts +125 -1
- package/types/ngwr-qr.d.ts +17 -0
- package/types/ngwr-speed-dial.d.ts +10 -0
- package/types/ngwr-stepper-testing.d.ts +10 -0
- package/types/ngwr-stepper.d.ts +47 -1
- package/types/ngwr-toolbar.d.ts +27 -0
- package/types/ngwr-transfer.d.ts +2 -0
- package/types/ngwr-utils.d.ts +61 -2
- package/types/ngwr-version.d.ts +1 -1
package/i18n/pt.json
CHANGED
|
@@ -83,7 +83,9 @@
|
|
|
83
83
|
},
|
|
84
84
|
"stepper": {
|
|
85
85
|
"optional": "opcional",
|
|
86
|
-
"completed": "concluído"
|
|
86
|
+
"completed": "concluído",
|
|
87
|
+
"error": "erro",
|
|
88
|
+
"warning": "aviso"
|
|
87
89
|
},
|
|
88
90
|
"transfer": {
|
|
89
91
|
"source": "Disponíveis",
|
|
@@ -94,7 +96,8 @@
|
|
|
94
96
|
"toTarget": "Mover para selecionados",
|
|
95
97
|
"toSource": "Mover para disponíveis",
|
|
96
98
|
"count": "{{checked}} / {{total}}",
|
|
97
|
-
"selectAllAria": "{{pane}} — {{action}}"
|
|
99
|
+
"selectAllAria": "{{pane}} — {{action}}",
|
|
100
|
+
"searchAria": "{{title}} - {{search}}"
|
|
98
101
|
},
|
|
99
102
|
"form": {
|
|
100
103
|
"optional": "opcional"
|
|
@@ -216,7 +219,10 @@
|
|
|
216
219
|
"imageCropper": {
|
|
217
220
|
"empty": "Sem imagem",
|
|
218
221
|
"window": "Área de recorte",
|
|
219
|
-
"keyHelp": "As teclas de setas movem a área de recorte. Para a redimensionar, mantenha a tecla Alt premida enquanto usa uma seta. Com a tecla Shift, os passos são maiores. A área é anunciada como esquerda, topo, largura e altura em pixels da imagem."
|
|
222
|
+
"keyHelp": "As teclas de setas movem a área de recorte. Para a redimensionar, mantenha a tecla Alt premida enquanto usa uma seta. Com a tecla Shift, os passos são maiores. A área é anunciada como esquerda, topo, largura e altura em pixels da imagem.",
|
|
223
|
+
"transformHelp": "Mais e menos ampliam e reduzem a imagem. R roda a imagem no sentido dos ponteiros do relógio, e Shift com R no sentido contrário.",
|
|
224
|
+
"zoomed": "Zoom de {{percent}}%",
|
|
225
|
+
"rotated": "Rodada {{degrees}}°"
|
|
220
226
|
},
|
|
221
227
|
"sortableList": {
|
|
222
228
|
"keyHelp": "Prima a barra de espaços para agarrar este item e depois use as teclas de setas para o mover. Prima novamente a barra de espaços para o largar ou Escape para o voltar a colocar.",
|
package/i18n/ru.json
CHANGED
|
@@ -83,7 +83,9 @@
|
|
|
83
83
|
},
|
|
84
84
|
"stepper": {
|
|
85
85
|
"optional": "необязательно",
|
|
86
|
-
"completed": "завершено"
|
|
86
|
+
"completed": "завершено",
|
|
87
|
+
"error": "ошибка",
|
|
88
|
+
"warning": "предупреждение"
|
|
87
89
|
},
|
|
88
90
|
"transfer": {
|
|
89
91
|
"source": "Доступно",
|
|
@@ -94,7 +96,8 @@
|
|
|
94
96
|
"toTarget": "Перенести в выбранные",
|
|
95
97
|
"toSource": "Вернуть в доступные",
|
|
96
98
|
"count": "{{checked}} / {{total}}",
|
|
97
|
-
"selectAllAria": "{{pane}} — {{action}}"
|
|
99
|
+
"selectAllAria": "{{pane}} — {{action}}",
|
|
100
|
+
"searchAria": "{{title}} - {{search}}"
|
|
98
101
|
},
|
|
99
102
|
"form": {
|
|
100
103
|
"optional": "необязательно"
|
|
@@ -216,7 +219,10 @@
|
|
|
216
219
|
"imageCropper": {
|
|
217
220
|
"empty": "Нет изображения",
|
|
218
221
|
"window": "Область обрезки",
|
|
219
|
-
"keyHelp": "Стрелки перемещают область обрезки. Alt со стрелкой изменяет её размер, Shift увеличивает шаг. Область объявляется как отступ слева, отступ сверху, ширина и высота в пикселях изображения."
|
|
222
|
+
"keyHelp": "Стрелки перемещают область обрезки. Alt со стрелкой изменяет её размер, Shift увеличивает шаг. Область объявляется как отступ слева, отступ сверху, ширина и высота в пикселях изображения.",
|
|
223
|
+
"transformHelp": "Плюс и минус увеличивают и уменьшают изображение. R поворачивает его по часовой стрелке, а Shift с R против часовой.",
|
|
224
|
+
"zoomed": "Масштаб {{percent}}%",
|
|
225
|
+
"rotated": "Поворот {{degrees}}°"
|
|
220
226
|
},
|
|
221
227
|
"sortableList": {
|
|
222
228
|
"keyHelp": "Нажмите пробел, чтобы взять элемент, затем перемещайте его стрелками. Пробел ещё раз — отпустить, Escape — вернуть на место.",
|
package/i18n/sv.json
CHANGED
|
@@ -83,7 +83,9 @@
|
|
|
83
83
|
},
|
|
84
84
|
"stepper": {
|
|
85
85
|
"optional": "valfritt",
|
|
86
|
-
"completed": "slutfört"
|
|
86
|
+
"completed": "slutfört",
|
|
87
|
+
"error": "fel",
|
|
88
|
+
"warning": "varning"
|
|
87
89
|
},
|
|
88
90
|
"transfer": {
|
|
89
91
|
"source": "Tillgängliga",
|
|
@@ -94,7 +96,8 @@
|
|
|
94
96
|
"toTarget": "Flytta till valda",
|
|
95
97
|
"toSource": "Flytta till tillgängliga",
|
|
96
98
|
"count": "{{checked}} / {{total}}",
|
|
97
|
-
"selectAllAria": "{{pane}} — {{action}}"
|
|
99
|
+
"selectAllAria": "{{pane}} — {{action}}",
|
|
100
|
+
"searchAria": "{{title}} - {{search}}"
|
|
98
101
|
},
|
|
99
102
|
"form": {
|
|
100
103
|
"optional": "valfritt"
|
|
@@ -216,7 +219,10 @@
|
|
|
216
219
|
"imageCropper": {
|
|
217
220
|
"empty": "Ingen bild",
|
|
218
221
|
"window": "Beskärningsområde",
|
|
219
|
-
"keyHelp": "Piltangenterna flyttar beskärningen. Håll ned Alt och en piltangent för att ändra storlek, och Skift för större steg. Beskärningen läses upp som vänsterkant, överkant, bredd och höjd i bildens pixlar."
|
|
222
|
+
"keyHelp": "Piltangenterna flyttar beskärningen. Håll ned Alt och en piltangent för att ändra storlek, och Skift för större steg. Beskärningen läses upp som vänsterkant, överkant, bredd och höjd i bildens pixlar.",
|
|
223
|
+
"transformHelp": "Plus och minus zoomar in och ut i bilden. R vrider den medurs, och Skift med R moturs.",
|
|
224
|
+
"zoomed": "Zoom {{percent}} %",
|
|
225
|
+
"rotated": "Roterad {{degrees}}°"
|
|
220
226
|
},
|
|
221
227
|
"sortableList": {
|
|
222
228
|
"keyHelp": "Tryck på blanksteg för att ta upp objektet och flytta det sedan med piltangenterna. Tryck på blanksteg igen för att släppa det, eller Escape för att lägga tillbaka det.",
|
package/i18n/tr.json
CHANGED
|
@@ -83,7 +83,9 @@
|
|
|
83
83
|
},
|
|
84
84
|
"stepper": {
|
|
85
85
|
"optional": "isteğe bağlı",
|
|
86
|
-
"completed": "tamamlandı"
|
|
86
|
+
"completed": "tamamlandı",
|
|
87
|
+
"error": "hata",
|
|
88
|
+
"warning": "uyarı"
|
|
87
89
|
},
|
|
88
90
|
"transfer": {
|
|
89
91
|
"source": "Kullanılabilir",
|
|
@@ -94,7 +96,8 @@
|
|
|
94
96
|
"toTarget": "Seçilenlere taşı",
|
|
95
97
|
"toSource": "Kullanılabilirlere taşı",
|
|
96
98
|
"count": "{{checked}} / {{total}}",
|
|
97
|
-
"selectAllAria": "{{pane}} — {{action}}"
|
|
99
|
+
"selectAllAria": "{{pane}} — {{action}}",
|
|
100
|
+
"searchAria": "{{title}} - {{search}}"
|
|
98
101
|
},
|
|
99
102
|
"form": {
|
|
100
103
|
"optional": "isteğe bağlı"
|
|
@@ -216,7 +219,10 @@
|
|
|
216
219
|
"imageCropper": {
|
|
217
220
|
"empty": "Görsel yok",
|
|
218
221
|
"window": "Kırpma alanı",
|
|
219
|
-
"keyHelp": "Ok tuşları kırpma alanını taşır. Yeniden boyutlandırmak için Alt tuşunu basılı tutarak ok tuşlarına basın, daha büyük adımlar için Shift tuşunu basılı tutun. Kırpma alanı, görsel pikselleri cinsinden sol, üst, genişlik ve yükseklik olarak duyurulur."
|
|
222
|
+
"keyHelp": "Ok tuşları kırpma alanını taşır. Yeniden boyutlandırmak için Alt tuşunu basılı tutarak ok tuşlarına basın, daha büyük adımlar için Shift tuşunu basılı tutun. Kırpma alanı, görsel pikselleri cinsinden sol, üst, genişlik ve yükseklik olarak duyurulur.",
|
|
223
|
+
"transformHelp": "Artı ve eksi görüntüyü yakınlaştırır ve uzaklaştırır. R görüntüyü saat yönünde, Shift ile R ters yönde döndürür.",
|
|
224
|
+
"zoomed": "Yakınlaştırma %{{percent}}",
|
|
225
|
+
"rotated": "{{degrees}}° döndürüldü"
|
|
220
226
|
},
|
|
221
227
|
"sortableList": {
|
|
222
228
|
"keyHelp": "Bu öğeyi almak için Boşluk tuşuna basın, sonra ok tuşlarıyla taşıyın. Bırakmak için Boşluk tuşuna yeniden basın, geri koymak için Escape tuşuna basın.",
|
package/i18n/uk.json
CHANGED
|
@@ -83,7 +83,9 @@
|
|
|
83
83
|
},
|
|
84
84
|
"stepper": {
|
|
85
85
|
"optional": "необов’язково",
|
|
86
|
-
"completed": "завершено"
|
|
86
|
+
"completed": "завершено",
|
|
87
|
+
"error": "помилка",
|
|
88
|
+
"warning": "попередження"
|
|
87
89
|
},
|
|
88
90
|
"transfer": {
|
|
89
91
|
"source": "Доступні",
|
|
@@ -94,7 +96,8 @@
|
|
|
94
96
|
"toTarget": "Перенести до вибраних",
|
|
95
97
|
"toSource": "Повернути до доступних",
|
|
96
98
|
"count": "{{checked}} / {{total}}",
|
|
97
|
-
"selectAllAria": "{{pane}} — {{action}}"
|
|
99
|
+
"selectAllAria": "{{pane}} — {{action}}",
|
|
100
|
+
"searchAria": "{{title}} - {{search}}"
|
|
98
101
|
},
|
|
99
102
|
"form": {
|
|
100
103
|
"optional": "необов’язково"
|
|
@@ -216,7 +219,10 @@
|
|
|
216
219
|
"imageCropper": {
|
|
217
220
|
"empty": "Немає зображення",
|
|
218
221
|
"window": "Область обрізки",
|
|
219
|
-
"keyHelp": "Стрілки переміщують область обрізки. Alt зі стрілкою змінює її розмір, Shift збільшує крок. Область озвучується як відступ ліворуч, відступ згори, ширина та висота в пікселях зображення."
|
|
222
|
+
"keyHelp": "Стрілки переміщують область обрізки. Alt зі стрілкою змінює її розмір, Shift збільшує крок. Область озвучується як відступ ліворуч, відступ згори, ширина та висота в пікселях зображення.",
|
|
223
|
+
"transformHelp": "Плюс і мінус збільшують і зменшують зображення. R повертає його за годинниковою стрілкою, а Shift з R проти неї.",
|
|
224
|
+
"zoomed": "Масштаб {{percent}}%",
|
|
225
|
+
"rotated": "Поворот {{degrees}}°"
|
|
220
226
|
},
|
|
221
227
|
"sortableList": {
|
|
222
228
|
"keyHelp": "Натисніть пробіл, щоб узяти елемент, потім переміщуйте його стрілками. Пробіл ще раз — відпустити, Escape — повернути на місце.",
|
package/i18n/vi.json
CHANGED
|
@@ -83,7 +83,9 @@
|
|
|
83
83
|
},
|
|
84
84
|
"stepper": {
|
|
85
85
|
"optional": "tùy chọn",
|
|
86
|
-
"completed": "đã hoàn thành"
|
|
86
|
+
"completed": "đã hoàn thành",
|
|
87
|
+
"error": "lỗi",
|
|
88
|
+
"warning": "cảnh báo"
|
|
87
89
|
},
|
|
88
90
|
"transfer": {
|
|
89
91
|
"source": "Có sẵn",
|
|
@@ -94,7 +96,8 @@
|
|
|
94
96
|
"toTarget": "Chuyển sang danh sách đã chọn",
|
|
95
97
|
"toSource": "Chuyển về danh sách có sẵn",
|
|
96
98
|
"count": "{{checked}} / {{total}}",
|
|
97
|
-
"selectAllAria": "{{pane}} — {{action}}"
|
|
99
|
+
"selectAllAria": "{{pane}} — {{action}}",
|
|
100
|
+
"searchAria": "{{title}} - {{search}}"
|
|
98
101
|
},
|
|
99
102
|
"form": {
|
|
100
103
|
"optional": "tùy chọn"
|
|
@@ -216,7 +219,10 @@
|
|
|
216
219
|
"imageCropper": {
|
|
217
220
|
"empty": "Không có ảnh",
|
|
218
221
|
"window": "Vùng cắt",
|
|
219
|
-
"keyHelp": "Các phím mũi tên di chuyển vùng cắt. Giữ Alt cùng phím mũi tên để đổi kích thước, giữ Shift để bước nhảy lớn hơn. Vùng cắt được đọc theo thứ tự lề trái, lề trên, chiều rộng và chiều cao, tính bằng pixel của ảnh."
|
|
222
|
+
"keyHelp": "Các phím mũi tên di chuyển vùng cắt. Giữ Alt cùng phím mũi tên để đổi kích thước, giữ Shift để bước nhảy lớn hơn. Vùng cắt được đọc theo thứ tự lề trái, lề trên, chiều rộng và chiều cao, tính bằng pixel của ảnh.",
|
|
223
|
+
"transformHelp": "Phím cộng và trừ phóng to và thu nhỏ ảnh. R xoay ảnh theo chiều kim đồng hồ, Shift cùng R xoay ngược lại.",
|
|
224
|
+
"zoomed": "Thu phóng {{percent}}%",
|
|
225
|
+
"rotated": "Đã xoay {{degrees}}°"
|
|
220
226
|
},
|
|
221
227
|
"sortableList": {
|
|
222
228
|
"keyHelp": "Nhấn phím cách để nhấc mục này lên, rồi dùng các phím mũi tên để di chuyển. Nhấn phím cách lần nữa để thả, hoặc nhấn Escape để trả về chỗ cũ.",
|
package/i18n/zh-TW.json
CHANGED
|
@@ -83,7 +83,9 @@
|
|
|
83
83
|
},
|
|
84
84
|
"stepper": {
|
|
85
85
|
"optional": "選用",
|
|
86
|
-
"completed": "已完成"
|
|
86
|
+
"completed": "已完成",
|
|
87
|
+
"error": "錯誤",
|
|
88
|
+
"warning": "警告"
|
|
87
89
|
},
|
|
88
90
|
"transfer": {
|
|
89
91
|
"source": "可選項目",
|
|
@@ -94,7 +96,8 @@
|
|
|
94
96
|
"toTarget": "移至已選項目",
|
|
95
97
|
"toSource": "移回可選項目",
|
|
96
98
|
"count": "{{checked}} / {{total}}",
|
|
97
|
-
"selectAllAria": "{{pane}} — {{action}}"
|
|
99
|
+
"selectAllAria": "{{pane}} — {{action}}",
|
|
100
|
+
"searchAria": "{{title}}:{{search}}"
|
|
98
101
|
},
|
|
99
102
|
"form": {
|
|
100
103
|
"optional": "選填"
|
|
@@ -216,7 +219,10 @@
|
|
|
216
219
|
"imageCropper": {
|
|
217
220
|
"empty": "沒有圖片",
|
|
218
221
|
"window": "裁切範圍",
|
|
219
|
-
"keyHelp": "使用方向鍵移動裁切範圍。按住 Alt 加方向鍵可調整大小,按住 Shift 可加大調整幅度。系統會以圖片像素朗讀裁切範圍的左側、上方、寬度與高度。"
|
|
222
|
+
"keyHelp": "使用方向鍵移動裁切範圍。按住 Alt 加方向鍵可調整大小,按住 Shift 可加大調整幅度。系統會以圖片像素朗讀裁切範圍的左側、上方、寬度與高度。",
|
|
223
|
+
"transformHelp": "加號和減號可放大和縮小圖片。按 R 順時針旋轉,按 Shift 加 R 逆時針旋轉。",
|
|
224
|
+
"zoomed": "縮放 {{percent}}%",
|
|
225
|
+
"rotated": "已旋轉 {{degrees}}°"
|
|
220
226
|
},
|
|
221
227
|
"sortableList": {
|
|
222
228
|
"keyHelp": "按空白鍵拿起這個項目,再用方向鍵移動。再按一次空白鍵放下,或按 Escape 放回原位。",
|
package/i18n/zh.json
CHANGED
|
@@ -83,7 +83,9 @@
|
|
|
83
83
|
},
|
|
84
84
|
"stepper": {
|
|
85
85
|
"optional": "可选",
|
|
86
|
-
"completed": "已完成"
|
|
86
|
+
"completed": "已完成",
|
|
87
|
+
"error": "错误",
|
|
88
|
+
"warning": "警告"
|
|
87
89
|
},
|
|
88
90
|
"transfer": {
|
|
89
91
|
"source": "待选",
|
|
@@ -94,7 +96,8 @@
|
|
|
94
96
|
"toTarget": "移至已选",
|
|
95
97
|
"toSource": "移回待选",
|
|
96
98
|
"count": "{{checked}} / {{total}}",
|
|
97
|
-
"selectAllAria": "{{pane}} — {{action}}"
|
|
99
|
+
"selectAllAria": "{{pane}} — {{action}}",
|
|
100
|
+
"searchAria": "{{title}}:{{search}}"
|
|
98
101
|
},
|
|
99
102
|
"form": {
|
|
100
103
|
"optional": "选填"
|
|
@@ -216,7 +219,10 @@
|
|
|
216
219
|
"imageCropper": {
|
|
217
220
|
"empty": "暂无图片",
|
|
218
221
|
"window": "裁剪区域",
|
|
219
|
-
"keyHelp": "方向键移动裁剪框。按住 Alt 加方向键可调整大小,按住 Shift 可加大步长。裁剪框会以图像像素为单位,依次朗读左、上、宽、高四个值。"
|
|
222
|
+
"keyHelp": "方向键移动裁剪框。按住 Alt 加方向键可调整大小,按住 Shift 可加大步长。裁剪框会以图像像素为单位,依次朗读左、上、宽、高四个值。",
|
|
223
|
+
"transformHelp": "加号和减号可放大和缩小图像。按 R 顺时针旋转,按 Shift 加 R 逆时针旋转。",
|
|
224
|
+
"zoomed": "缩放 {{percent}}%",
|
|
225
|
+
"rotated": "已旋转 {{degrees}}°"
|
|
220
226
|
},
|
|
221
227
|
"sortableList": {
|
|
222
228
|
"keyHelp": "按空格键拿起此项,然后用方向键移动。再次按空格键放下,或按 Esc 键放回原位。",
|
|
@@ -16,7 +16,15 @@
|
|
|
16
16
|
line-height: 0;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
// The zoomed image can be dragged where the crop window does not cover it.
|
|
20
|
+
&--zoomed &__canvas {
|
|
21
|
+
cursor: grab;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// `__image` sizes the stage until it has been measured. From then on `__sizer` is that
|
|
25
|
+
// box, turned on its side with the image, so the two must be sized by the same rules.
|
|
26
|
+
&__image,
|
|
27
|
+
&__sizer {
|
|
20
28
|
display: block;
|
|
21
29
|
max-width: 100%;
|
|
22
30
|
max-height: 70vh;
|
|
@@ -26,6 +34,27 @@
|
|
|
26
34
|
user-select: none;
|
|
27
35
|
}
|
|
28
36
|
|
|
37
|
+
// Measured, the image is laid over the stage at the size the component writes on it,
|
|
38
|
+
// and zoomed, panned and turned from the stage's corner.
|
|
39
|
+
&__image--measured {
|
|
40
|
+
position: absolute;
|
|
41
|
+
top: 0;
|
|
42
|
+
// rtl-ok: cropper geometry, the pan is a physical offset from the stage's top-left corner
|
|
43
|
+
left: 0;
|
|
44
|
+
max-width: none;
|
|
45
|
+
max-height: none;
|
|
46
|
+
transform-origin: 0 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Clips the zoomed image to the stage. Not before the image is measured: it is still
|
|
50
|
+
// in the layout then, and this wrapper must not change how it is sized.
|
|
51
|
+
&__viewport--on {
|
|
52
|
+
position: absolute;
|
|
53
|
+
inset: 0;
|
|
54
|
+
overflow: hidden;
|
|
55
|
+
pointer-events: none;
|
|
56
|
+
}
|
|
57
|
+
|
|
29
58
|
// A source the browser could not decode. The `<img>` stays in the DOM, since the
|
|
30
59
|
// next `src` goes through the same element, but some engines draw a broken-image
|
|
31
60
|
// glyph for it — and the failure is the host's to explain, not a stray icon's.
|
package/llms-full.txt
CHANGED
|
@@ -846,7 +846,7 @@
|
|
|
846
846
|
## ngwr/image-cropper
|
|
847
847
|
- import: `import { WrImageCropper } from 'ngwr/image-cropper'`
|
|
848
848
|
- selector: `wr-image-cropper`
|
|
849
|
-
- exports: WrImageCropper, WrCropRect, WrCropHandle, WrImageCropperStatus, WrImageLoadError, WrImageOutputType
|
|
849
|
+
- exports: WrImageCropper, WrCropRect, WrCropHandle, WrImageCropperStatus, WrImageLoadError, WrImageOutputType, WrImageRotation
|
|
850
850
|
- keywords: image, cropper, crop
|
|
851
851
|
- Crop an image and get the result as a `Blob`.
|
|
852
852
|
|
|
@@ -994,8 +994,8 @@
|
|
|
994
994
|
|
|
995
995
|
## ngwr/pipes
|
|
996
996
|
- import: `import { WrBytes } from 'ngwr/pipes'`
|
|
997
|
-
- exports: WrBytes, wrFormatBytes, WrDate, wrFormatDate, WrDuration, wrFormatDuration, wrSplitDuration, WrDurationStyle, WrDurationUnit, WrInitials, WrMark, WrNumber, wrFormatNumber, WrNumberStyle, WrPlural, wrFormatPlural, WrPluralForms, WrPluralOptions, WrRange, WrTruncate
|
|
998
|
-
- Template formatting: `wrDate`, `wrNumber`, `wrBytes`, `wrDuration`, `wrPlural`, `wrRange`, `wrTruncate` and `wrMark` for search highlighting. The same formatting as functions, for a string built in TypeScript: `wrFormatDate`, `wrFormatNumber`, `wrFormatBytes`, `wrFormatDuration` and `
|
|
997
|
+
- exports: WrBytes, wrFormatBytes, WrDate, wrFormatDate, WrDuration, wrFormatDuration, wrSplitDuration, WrDurationStyle, WrDurationUnit, WrInitials, WrList, wrFormatList, WrListType, WrMark, WrNumber, wrFormatNumber, WrNumberStyle, WrPlural, wrFormatPlural, WrPluralForms, WrPluralOptions, WrRange, WrRelativeTime, wrFormatRelativeTime, WrRelativeTimeOptions, WrTruncate
|
|
998
|
+
- Template formatting: `wrDate`, `wrNumber`, `wrBytes`, `wrDuration`, `wrPlural`, `wrList`, `wrRelativeTime`, `wrRange`, `wrTruncate` and `wrMark` for search highlighting. The same formatting as functions, for a string built in TypeScript: `wrFormatDate`, `wrFormatNumber`, `wrFormatBytes`, `wrFormatDuration`, `wrFormatPlural`, `wrFormatList` and `wrFormatRelativeTime`, each taking the locale as its second argument, except `wrFormatDate`, which takes a `WrDateAdapter`.
|
|
999
999
|
|
|
1000
1000
|
## ngwr/platform
|
|
1001
1001
|
- import: `import { WrPlatform } from 'ngwr/platform'`
|
|
@@ -1207,7 +1207,7 @@
|
|
|
1207
1207
|
## ngwr/stepper
|
|
1208
1208
|
- import: `import { WrStepper } from 'ngwr/stepper'`
|
|
1209
1209
|
- selector: `wr-step`, `wr-stepper`
|
|
1210
|
-
- exports: WrStepper, WrStep, WR_STEPPER, WrStepperContext
|
|
1210
|
+
- exports: WrStepper, WrStep, WR_STEPPER, WrStepperContext, WrStepStatus
|
|
1211
1211
|
- keywords: wizard
|
|
1212
1212
|
- A multi-step flow with numbered headers.
|
|
1213
1213
|
|
|
@@ -1346,7 +1346,7 @@
|
|
|
1346
1346
|
|
|
1347
1347
|
## ngwr/utils
|
|
1348
1348
|
- import: `import { wrIsDefined } from 'ngwr/utils'`
|
|
1349
|
-
- 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, wrFileNameForType, 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
|
|
1349
|
+
- 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, wrFileNameForType, 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, wrSlug, WrInitialsOptions, WrInitialsOrder, WrInitialsStyle, WrSlugOptions, WR_LIVE_LOCALE, wrFeature, WrFeature, wrAction, wrKeyedAction, wrResourceValue, WrAction, WrActionStatus, WrKeyedAction
|
|
1350
1350
|
- Small helpers: coercion (`wrNumAttr`), DOM and keyboard guards, maths, ids, `wrDebounce` / `wrThrottle`, `wrResolveCssColor`, and the shared types `WrMaybe` and `WrSafeAny`.
|
|
1351
1351
|
|
|
1352
1352
|
## ngwr/utils/router
|
package/package.json
CHANGED
package/skills/ngwr/SKILL.md
CHANGED
|
@@ -138,9 +138,9 @@ guess gets backwards.
|
|
|
138
138
|
through `ngwr/i18n`; every component takes overridable `*Label` inputs.
|
|
139
139
|
- **Prefer the library over hand-rolling.** `ngwr/utils` (coercion, dom,
|
|
140
140
|
keyboard, id, css-size, math), `ngwr/pipes` (`wrDate`, `wrBytes`,
|
|
141
|
-
`wrTruncate`, `wrNumber`, `wrMark`, `wrPlural`, `wrRange`, `wrDuration`,
|
|
141
|
+
`wrTruncate`, `wrNumber`, `wrMark`, `wrPlural`, `wrList`, `wrRelativeTime`, `wrRange`, `wrDuration`,
|
|
142
142
|
and for a string built in TypeScript `wrFormatDate`, `wrFormatBytes`,
|
|
143
|
-
`wrFormatNumber`, `wrFormatPlural` and `wrFormatDuration`) and
|
|
143
|
+
`wrFormatNumber`, `wrFormatPlural`, `wrFormatList`, `wrFormatRelativeTime` and `wrFormatDuration`) and
|
|
144
144
|
`ngwr/validators` already exist.
|
|
145
145
|
|
|
146
146
|
## Setting a component up
|
|
@@ -13,6 +13,12 @@ $header-padding-block: 0.25rem;
|
|
|
13
13
|
--wr-stepper-indicator-size: 1.75rem;
|
|
14
14
|
--wr-stepper-connector: var(--wr-border-base);
|
|
15
15
|
--wr-stepper-muted: var(--wr-color-on-surface-muted);
|
|
16
|
+
--wr-stepper-error: var(--wr-color-danger);
|
|
17
|
+
--wr-stepper-error-ink: var(--wr-color-danger-ink);
|
|
18
|
+
--wr-stepper-error-soft: var(--wr-color-danger-soft);
|
|
19
|
+
--wr-stepper-warning: var(--wr-color-warning);
|
|
20
|
+
--wr-stepper-warning-ink: var(--wr-color-warning-ink);
|
|
21
|
+
--wr-stepper-warning-soft: var(--wr-color-warning-soft);
|
|
16
22
|
--wr-stepper-gap: var(--wr-space-lg);
|
|
17
23
|
--wr-stepper-font-family: var(--wr-font-family-base);
|
|
18
24
|
|
|
@@ -187,6 +193,25 @@ $header-padding-block: 0.25rem;
|
|
|
187
193
|
color: var(--wr-color-surface);
|
|
188
194
|
}
|
|
189
195
|
|
|
196
|
+
// A `status` repaints whatever the step otherwise is: after the active and
|
|
197
|
+
// completed rules, so it wins their colours, and with the hover selector
|
|
198
|
+
// listed so a pointer does not turn the circle primary again. It leaves the
|
|
199
|
+
// border WIDTH and STYLE alone, so an error on the current step keeps the
|
|
200
|
+
// doubled ring and a locked one keeps its dashes.
|
|
201
|
+
&__header--error &__indicator,
|
|
202
|
+
&__header--error &__header-button:hover:not(:disabled) &__indicator {
|
|
203
|
+
border-color: var(--wr-stepper-error);
|
|
204
|
+
color: var(--wr-stepper-error-ink);
|
|
205
|
+
background: var(--wr-stepper-error-soft);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
&__header--warning &__indicator,
|
|
209
|
+
&__header--warning &__header-button:hover:not(:disabled) &__indicator {
|
|
210
|
+
border-color: var(--wr-stepper-warning);
|
|
211
|
+
color: var(--wr-stepper-warning-ink);
|
|
212
|
+
background: var(--wr-stepper-warning-soft);
|
|
213
|
+
}
|
|
214
|
+
|
|
190
215
|
&__label {
|
|
191
216
|
// Literal, like `--wr-option-gap` in select: the label and its description
|
|
192
217
|
// sit 1px apart, and the scale starts at 4px — taking `--wr-space-xs` here
|
|
@@ -224,6 +249,14 @@ $header-padding-block: 0.25rem;
|
|
|
224
249
|
color: var(--wr-color-primary-ink);
|
|
225
250
|
}
|
|
226
251
|
|
|
252
|
+
&__header--error &__label {
|
|
253
|
+
color: var(--wr-stepper-error-ink);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
&__header--warning &__label {
|
|
257
|
+
color: var(--wr-stepper-warning-ink);
|
|
258
|
+
}
|
|
259
|
+
|
|
227
260
|
// Read, not shown: the "completed" state the check mark draws, in the header
|
|
228
261
|
// button's name. Out of flow, so the label's column gap does not count it.
|
|
229
262
|
&__sr-only {
|
package/types/ngwr-anchor.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ interface WrAnchorLink {
|
|
|
12
12
|
* Scroll-spy in-page navigation. Renders a list of links to elements on
|
|
13
13
|
* the page; clicking a link smooth-scrolls (via {@link WrScroll}),
|
|
14
14
|
* and the closest visible heading auto-highlights as the user scrolls.
|
|
15
|
+
* Follows the window, or the element passed as `container`.
|
|
15
16
|
*
|
|
16
17
|
* @example
|
|
17
18
|
* ```html
|
|
@@ -47,6 +48,12 @@ export declare class WrAnchor {
|
|
|
47
48
|
readonly offset: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
48
49
|
/** Highlight an item when its target's top is within this many px of the offset line. @default 80 */
|
|
49
50
|
readonly hitArea: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
51
|
+
/**
|
|
52
|
+
* The element whose scroll the links follow, for targets inside a pane with
|
|
53
|
+
* its own scroll: a docs panel, a dialog body, a drawer. A click scrolls it
|
|
54
|
+
* and leaves the page alone. `null` follows the window. @default null
|
|
55
|
+
*/
|
|
56
|
+
readonly container: import("@angular/core").InputSignal<HTMLElement | null>;
|
|
50
57
|
protected readonly activeId: import("@angular/core").WritableSignal<string | null>;
|
|
51
58
|
/**
|
|
52
59
|
* Flat list of the ids the template RENDERS — top level plus one level of
|
|
@@ -61,10 +68,11 @@ export declare class WrAnchor {
|
|
|
61
68
|
private readonly platform;
|
|
62
69
|
private readonly doc;
|
|
63
70
|
private readonly zone;
|
|
71
|
+
private readonly injector;
|
|
64
72
|
private readonly destroyRef;
|
|
65
73
|
/**
|
|
66
74
|
* The entry a click asked for, and the scroll position that click sends the
|
|
67
|
-
* page to. A target near the end of the page can never reach the cursor line —
|
|
75
|
+
* page (or the `container`) to. A target near the end of the page can never reach the cursor line —
|
|
68
76
|
* the page runs out of scroll first — so the spy took the highlight straight
|
|
69
77
|
* back from the entry just clicked and handed it to the one above. While the
|
|
70
78
|
* page is still travelling toward that position, or parked on it, the clicked
|
|
@@ -99,6 +107,11 @@ export declare class WrAnchor {
|
|
|
99
107
|
"required": false;
|
|
100
108
|
"isSignal": true;
|
|
101
109
|
};
|
|
110
|
+
"container": {
|
|
111
|
+
"alias": "container";
|
|
112
|
+
"required": false;
|
|
113
|
+
"isSignal": true;
|
|
114
|
+
};
|
|
102
115
|
}, {}, never, never, true, never>;
|
|
103
116
|
}
|
|
104
117
|
export type { WrAnchorLink };
|
|
@@ -34,6 +34,8 @@ export declare class WrDateStampHarness extends ComponentHarness {
|
|
|
34
34
|
getDate(): Promise<string | null>;
|
|
35
35
|
/** The second line, or `null` when the stamp is empty or shows a date-only value. */
|
|
36
36
|
getTime(): Promise<string | null>;
|
|
37
|
+
/** The relative line ("5 minutes ago"), or `null` when the stamp is empty or not `relative`. */
|
|
38
|
+
getRelative(): Promise<string | null>;
|
|
37
39
|
/**
|
|
38
40
|
* The `datetime` attribute: the instant in ISO 8601 (UTC), or `yyyy-MM-dd` for a
|
|
39
41
|
* date-only value. `null` when the stamp is empty.
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { WrDateFormat, WrEpochUnit } from "ngwr/date";
|
|
3
3
|
interface Stamp {
|
|
4
|
+
readonly at: Date;
|
|
5
|
+
readonly dayOnly: boolean;
|
|
4
6
|
readonly iso: string;
|
|
5
7
|
readonly date: string | null;
|
|
6
8
|
readonly time: string | null;
|
|
@@ -16,8 +18,12 @@ interface Stamp {
|
|
|
16
18
|
* (`'2026-11-12'`) is a day, so it shows the date line alone and does not
|
|
17
19
|
* shift with the zone.
|
|
18
20
|
*
|
|
19
|
-
* `
|
|
20
|
-
*
|
|
21
|
+
* `relative` shows how far the moment is from now instead ("5 minutes ago"),
|
|
22
|
+
* and keeps that text current on a timer. The date and the time stay in the
|
|
23
|
+
* `title` of the `<time>`.
|
|
24
|
+
*
|
|
25
|
+
* `withDates({ stamp })` sets the formats, `todayTimeOnly`, `seconds` and
|
|
26
|
+
* `relative` for every stamp of the app; an input set here wins.
|
|
21
27
|
*
|
|
22
28
|
* The lines sit in one `<time>` whose `datetime` is the instant in ISO 8601,
|
|
23
29
|
* or the day for a date-only string. `null`, `undefined`, `''` and a value
|
|
@@ -28,6 +34,7 @@ interface Stamp {
|
|
|
28
34
|
* <wr-date-stamp [value]="row.createdAt" />
|
|
29
35
|
* <wr-date-stamp [value]="row.createdAt" dateFormat="d MMM yyyy" timeFormat="time24hSeconds" />
|
|
30
36
|
* <wr-date-stamp [value]="message.sentAt" todayTimeOnly seconds />
|
|
37
|
+
* <wr-date-stamp [value]="comment.createdAt" relative />
|
|
31
38
|
* ```
|
|
32
39
|
*
|
|
33
40
|
* @see https://ngwr.dev/reference/components/date-stamp
|
|
@@ -73,6 +80,19 @@ export declare class WrDateStamp {
|
|
|
73
80
|
* @default false
|
|
74
81
|
*/
|
|
75
82
|
readonly todayTimeOnly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
83
|
+
/**
|
|
84
|
+
* Show how far the moment is from now ("5 minutes ago", "tomorrow") in
|
|
85
|
+
* place of the two lines, as `wrFormatRelativeTime` writes it, in the
|
|
86
|
+
* language the stamp formats in. The text is kept current: it is written
|
|
87
|
+
* again each second under a minute, each minute under an hour, each hour
|
|
88
|
+
* under a day and each day after that, from a timer that starts after the
|
|
89
|
+
* first render and never on the server. The date and the time move to the
|
|
90
|
+
* `title` of the `<time>`. A date-only value is compared as a day ("today",
|
|
91
|
+
* "yesterday"). `withDates({ stamp })` changes the default.
|
|
92
|
+
*
|
|
93
|
+
* @default false
|
|
94
|
+
*/
|
|
95
|
+
readonly relative: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
76
96
|
/**
|
|
77
97
|
* What a number in `value` counts since the epoch: `'ms'`, `'us'`, `'s'` or
|
|
78
98
|
* `'auto'`, by size. `null` follows `withDates({ epochUnit })`.
|
|
@@ -85,6 +105,20 @@ export declare class WrDateStamp {
|
|
|
85
105
|
protected readonly resolvedEmptyLabel: import("@angular/core").Signal<string>;
|
|
86
106
|
private readonly adapter;
|
|
87
107
|
protected readonly parts: import("@angular/core").Signal<Stamp | null>;
|
|
108
|
+
private readonly locale;
|
|
109
|
+
/**
|
|
110
|
+
* The current time the relative text is measured from. The timer moves it,
|
|
111
|
+
* and a new value or `relative` turned on reads the clock again: a stamp of
|
|
112
|
+
* last year ticks once a day, and must not measure the next value from then.
|
|
113
|
+
*/
|
|
114
|
+
private readonly now;
|
|
115
|
+
/** Midnight of today in the display zone, which a date-only value is compared with. */
|
|
116
|
+
private readonly today;
|
|
117
|
+
protected readonly relativeText: import("@angular/core").Signal<string | null>;
|
|
118
|
+
/** The two lines as one, for the `title` a relative stamp keeps them in. */
|
|
119
|
+
protected readonly title: import("@angular/core").Signal<string | null>;
|
|
120
|
+
/** Milliseconds to the next change of the relative text, `null` when there is none to keep current. */
|
|
121
|
+
private untilNextText;
|
|
88
122
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrDateStamp, never>;
|
|
89
123
|
static ɵcmp: i0.ɵɵComponentDeclaration<WrDateStamp, "wr-date-stamp", never, {
|
|
90
124
|
"value": {
|
|
@@ -112,6 +146,11 @@ export declare class WrDateStamp {
|
|
|
112
146
|
"required": false;
|
|
113
147
|
"isSignal": true;
|
|
114
148
|
};
|
|
149
|
+
"relative": {
|
|
150
|
+
"alias": "relative";
|
|
151
|
+
"required": false;
|
|
152
|
+
"isSignal": true;
|
|
153
|
+
};
|
|
115
154
|
"epochUnit": {
|
|
116
155
|
"alias": "epochUnit";
|
|
117
156
|
"required": false;
|
package/types/ngwr-date.d.ts
CHANGED
|
@@ -93,6 +93,8 @@ interface WrDateStampDefaults {
|
|
|
93
93
|
readonly todayTimeOnly?: boolean;
|
|
94
94
|
/** Write the seconds in the time line. Default: `false`. */
|
|
95
95
|
readonly seconds?: boolean;
|
|
96
|
+
/** Show how far the moment is from now, kept current, in place of the two lines. Default: `false`. */
|
|
97
|
+
readonly relative?: boolean;
|
|
96
98
|
}
|
|
97
99
|
/**
|
|
98
100
|
* Options for `withDates()`.
|
|
@@ -156,7 +158,7 @@ interface WrDatesOptions {
|
|
|
156
158
|
readonly zonelessIn?: WrZonelessIn;
|
|
157
159
|
/**
|
|
158
160
|
* App-wide defaults of `wr-date-stamp`: `dateFormat`, `timeFormat`,
|
|
159
|
-
* `todayTimeOnly` and `
|
|
161
|
+
* `todayTimeOnly`, `seconds` and `relative`. An input set on a stamp wins.
|
|
160
162
|
*/
|
|
161
163
|
readonly stamp?: WrDateStampDefaults;
|
|
162
164
|
}
|