ngwr 16.1.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/date-picker/styles/_index.scss +89 -1
- package/dropdown/styles/_index.scss +37 -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 +152 -8
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp.mjs +73 -9
- package/fesm2022/ngwr-date-stamp.mjs.map +1 -1
- package/fesm2022/ngwr-date.mjs +86 -5
- package/fesm2022/ngwr-date.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 +358 -24
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ar.mjs +7 -2
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +7 -2
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +7 -2
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +7 -2
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +7 -2
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +7 -2
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +7 -2
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +7 -2
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +7 -2
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +7 -2
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +7 -2
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +7 -2
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +7 -2
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +7 -2
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +7 -2
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +7 -2
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +7 -2
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +7 -2
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +7 -2
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +7 -2
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +7 -2
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +7 -2
- package/fesm2022/ngwr-i18n-zh.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 +246 -10
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +28 -6
- package/fesm2022/ngwr-pipes.mjs.map +1 -1
- package/fesm2022/ngwr-schema-form.mjs +3 -0
- package/fesm2022/ngwr-schema-form.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 +87 -11
- 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-version.mjs +1 -1
- package/fesm2022/ngwr-version.mjs.map +1 -1
- package/i18n/ar.json +7 -2
- package/i18n/cs.json +7 -2
- package/i18n/de.json +7 -2
- package/i18n/en.json +7 -2
- package/i18n/es.json +7 -2
- package/i18n/fr.json +7 -2
- package/i18n/he.json +7 -2
- package/i18n/hi.json +7 -2
- package/i18n/id.json +7 -2
- package/i18n/it.json +7 -2
- package/i18n/ja.json +7 -2
- package/i18n/ko.json +7 -2
- package/i18n/nl.json +7 -2
- package/i18n/pl.json +7 -2
- package/i18n/pt.json +7 -2
- package/i18n/ru.json +7 -2
- package/i18n/sv.json +7 -2
- package/i18n/tr.json +7 -2
- package/i18n/uk.json +7 -2
- package/i18n/vi.json +7 -2
- package/i18n/zh-TW.json +7 -2
- package/i18n/zh.json +7 -2
- package/lightbox/styles/_rules.scss +96 -0
- package/llms-full.txt +12 -8
- package/llms.txt +12 -0
- package/package.json +5 -1
- package/schematics/use/symbol-map.json +1 -0
- package/skills/ngwr/SKILL.md +1 -1
- package/skills/ngwr/references/catalog.md +2 -1
- package/slider/styles/_index.scss +106 -0
- package/sortable-list/styles/_rules.scss +23 -1
- package/types/ngwr-date-picker-testing.d.ts +17 -0
- package/types/ngwr-date-picker.d.ts +79 -2
- package/types/ngwr-date-stamp-testing.d.ts +1 -1
- package/types/ngwr-date-stamp.d.ts +53 -7
- package/types/ngwr-date.d.ts +118 -15
- package/types/ngwr-dropdown-testing.d.ts +53 -5
- package/types/ngwr-dropdown.d.ts +100 -0
- package/types/ngwr-lightbox-testing.d.ts +27 -0
- package/types/ngwr-lightbox.d.ts +71 -6
- package/types/ngwr-pipes.d.ts +33 -13
- 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-version.d.ts +1 -1
package/i18n/tr.json
CHANGED
|
@@ -209,7 +209,10 @@
|
|
|
209
209
|
"grabbed": "Alındı. {{index}} / {{total}}.",
|
|
210
210
|
"moved": "{{index}} / {{total}}.",
|
|
211
211
|
"dropped": "Bırakıldı. {{index}} / {{total}}.",
|
|
212
|
-
"cancelled": "Taşıma iptal edildi."
|
|
212
|
+
"cancelled": "Taşıma iptal edildi.",
|
|
213
|
+
"groupKeyHelp": "Bu öğeyi almak için Boşluk tuşuna basın, sonra ok tuşlarıyla liste içinde veya yandaki listeye taşıyın. Bırakmak için Boşluk tuşuna yeniden basın, geri koymak için Escape tuşuna basın.",
|
|
214
|
+
"movedTo": "Şuraya taşındı: {{list}}. {{index}} / {{total}}.",
|
|
215
|
+
"listPosition": "liste {{index}} / {{total}}"
|
|
213
216
|
},
|
|
214
217
|
"colorPicker": {
|
|
215
218
|
"area": "Doygunluk ve parlaklık, %{{saturation}} ve %{{brightness}}",
|
|
@@ -335,7 +338,9 @@
|
|
|
335
338
|
"image": {
|
|
336
339
|
"viewer": "Görsel önizlemesi",
|
|
337
340
|
"open": "Önizlemeyi aç",
|
|
338
|
-
"close": "Önizlemeyi kapat"
|
|
341
|
+
"close": "Önizlemeyi kapat",
|
|
342
|
+
"counter": "{{current}} / {{total}}",
|
|
343
|
+
"position": "Görsel {{current}}, toplam {{total}}"
|
|
339
344
|
},
|
|
340
345
|
"window": {
|
|
341
346
|
"close": "Kapat",
|
package/i18n/uk.json
CHANGED
|
@@ -209,7 +209,10 @@
|
|
|
209
209
|
"grabbed": "Взято. {{index}} з {{total}}.",
|
|
210
210
|
"moved": "{{index}} з {{total}}.",
|
|
211
211
|
"dropped": "Відпущено. {{index}} з {{total}}.",
|
|
212
|
-
"cancelled": "Переміщення скасовано."
|
|
212
|
+
"cancelled": "Переміщення скасовано.",
|
|
213
|
+
"groupKeyHelp": "Натисніть пробіл, щоб узяти елемент, потім переміщуйте його стрілками в межах списку або до сусіднього списку. Натисніть пробіл ще раз, щоб відпустити, або Escape, щоб повернути на місце.",
|
|
214
|
+
"movedTo": "Переміщено: {{list}}. {{index}} з {{total}}.",
|
|
215
|
+
"listPosition": "список {{index}} з {{total}}"
|
|
213
216
|
},
|
|
214
217
|
"colorPicker": {
|
|
215
218
|
"area": "Насиченість і яскравість, {{saturation}}% і {{brightness}}%",
|
|
@@ -335,7 +338,9 @@
|
|
|
335
338
|
"image": {
|
|
336
339
|
"viewer": "Перегляд зображення",
|
|
337
340
|
"open": "Відкрити перегляд",
|
|
338
|
-
"close": "Закрити перегляд"
|
|
341
|
+
"close": "Закрити перегляд",
|
|
342
|
+
"counter": "{{current}} / {{total}}",
|
|
343
|
+
"position": "Зображення {{current}} з {{total}}"
|
|
339
344
|
},
|
|
340
345
|
"window": {
|
|
341
346
|
"close": "Закрити",
|
package/i18n/vi.json
CHANGED
|
@@ -209,7 +209,10 @@
|
|
|
209
209
|
"grabbed": "Đã nhấc. {{index}} trên {{total}}.",
|
|
210
210
|
"moved": "{{index}} trên {{total}}.",
|
|
211
211
|
"dropped": "Đã thả. {{index}} trên {{total}}.",
|
|
212
|
-
"cancelled": "Đã hủy di chuyển."
|
|
212
|
+
"cancelled": "Đã hủy di chuyển.",
|
|
213
|
+
"groupKeyHelp": "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 trong danh sách hoặc sang danh sách bên cạnh. Nhấn phím cách lần nữa để thả, hoặc nhấn Escape để trả về chỗ cũ.",
|
|
214
|
+
"movedTo": "Đã chuyển sang {{list}}. {{index}} trên {{total}}.",
|
|
215
|
+
"listPosition": "danh sách {{index}} trên {{total}}"
|
|
213
216
|
},
|
|
214
217
|
"colorPicker": {
|
|
215
218
|
"area": "Độ bão hòa và độ sáng, {{saturation}}% và {{brightness}}%",
|
|
@@ -335,7 +338,9 @@
|
|
|
335
338
|
"image": {
|
|
336
339
|
"viewer": "Xem trước ảnh",
|
|
337
340
|
"open": "Mở xem trước",
|
|
338
|
-
"close": "Đóng xem trước"
|
|
341
|
+
"close": "Đóng xem trước",
|
|
342
|
+
"counter": "{{current}} / {{total}}",
|
|
343
|
+
"position": "Ảnh {{current}} trên {{total}}"
|
|
339
344
|
},
|
|
340
345
|
"window": {
|
|
341
346
|
"close": "Đóng",
|
package/i18n/zh-TW.json
CHANGED
|
@@ -209,7 +209,10 @@
|
|
|
209
209
|
"grabbed": "已拿起。第 {{index}} 項,共 {{total}} 項。",
|
|
210
210
|
"moved": "第 {{index}} 項,共 {{total}} 項。",
|
|
211
211
|
"dropped": "已放下。第 {{index}} 項,共 {{total}} 項。",
|
|
212
|
-
"cancelled": "已取消移動。"
|
|
212
|
+
"cancelled": "已取消移動。",
|
|
213
|
+
"groupKeyHelp": "按空白鍵拿起這個項目,再用方向鍵在清單內移動或移到相鄰清單。再按一次空白鍵放下,或按 Escape 放回原位。",
|
|
214
|
+
"movedTo": "已移至{{list}}。第 {{index}} 項,共 {{total}} 項。",
|
|
215
|
+
"listPosition": "第 {{index}} 個清單,共 {{total}} 個"
|
|
213
216
|
},
|
|
214
217
|
"colorPicker": {
|
|
215
218
|
"area": "飽和度 {{saturation}}%,亮度 {{brightness}}%",
|
|
@@ -335,7 +338,9 @@
|
|
|
335
338
|
"image": {
|
|
336
339
|
"viewer": "圖片預覽",
|
|
337
340
|
"open": "開啟預覽",
|
|
338
|
-
"close": "關閉預覽"
|
|
341
|
+
"close": "關閉預覽",
|
|
342
|
+
"counter": "{{current}} / {{total}}",
|
|
343
|
+
"position": "第 {{current}} 張圖片,共 {{total}} 張"
|
|
339
344
|
},
|
|
340
345
|
"window": {
|
|
341
346
|
"close": "關閉",
|
package/i18n/zh.json
CHANGED
|
@@ -209,7 +209,10 @@
|
|
|
209
209
|
"grabbed": "已拿起。第 {{index}} 项,共 {{total}} 项。",
|
|
210
210
|
"moved": "第 {{index}} 项,共 {{total}} 项。",
|
|
211
211
|
"dropped": "已放下。第 {{index}} 项,共 {{total}} 项。",
|
|
212
|
-
"cancelled": "已取消移动。"
|
|
212
|
+
"cancelled": "已取消移动。",
|
|
213
|
+
"groupKeyHelp": "按空格键拿起此项,然后用方向键在列表内移动或移到相邻列表。再次按空格键放下,或按 Esc 键放回原位。",
|
|
214
|
+
"movedTo": "已移至{{list}}。第 {{index}} 项,共 {{total}} 项。",
|
|
215
|
+
"listPosition": "第 {{index}} 个列表,共 {{total}} 个"
|
|
213
216
|
},
|
|
214
217
|
"colorPicker": {
|
|
215
218
|
"area": "饱和度 {{saturation}}%,明度 {{brightness}}%",
|
|
@@ -335,7 +338,9 @@
|
|
|
335
338
|
"image": {
|
|
336
339
|
"viewer": "图片预览",
|
|
337
340
|
"open": "打开预览",
|
|
338
|
-
"close": "关闭预览"
|
|
341
|
+
"close": "关闭预览",
|
|
342
|
+
"counter": "{{current}} / {{total}}",
|
|
343
|
+
"position": "第 {{current}} 张图片,共 {{total}} 张"
|
|
339
344
|
},
|
|
340
345
|
"window": {
|
|
341
346
|
"close": "关闭",
|
|
@@ -183,6 +183,102 @@
|
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
+
// On the edges of the screen like the ✕, so over the image itself once it is
|
|
187
|
+
// wide enough. The fill is therefore dark rather than the ✕'s white tint,
|
|
188
|
+
// which disappears against a bright photograph.
|
|
189
|
+
&__nav {
|
|
190
|
+
--wr-lightbox-viewer-nav-radius: var(--wr-border-radius-pill);
|
|
191
|
+
|
|
192
|
+
font-size: inherit;
|
|
193
|
+
position: absolute;
|
|
194
|
+
inset-block: 0;
|
|
195
|
+
display: inline-flex;
|
|
196
|
+
align-items: center;
|
|
197
|
+
justify-content: center;
|
|
198
|
+
width: 2.25rem;
|
|
199
|
+
height: 2.25rem;
|
|
200
|
+
margin-block: auto;
|
|
201
|
+
padding: 0;
|
|
202
|
+
border: 0;
|
|
203
|
+
border-radius: var(--wr-lightbox-viewer-nav-radius);
|
|
204
|
+
background: rgb(0 0 0 / 55%);
|
|
205
|
+
color: rgb(255 255 255 / 90%);
|
|
206
|
+
cursor: pointer;
|
|
207
|
+
transition:
|
|
208
|
+
background 0.15s ease,
|
|
209
|
+
transform 0.15s ease;
|
|
210
|
+
|
|
211
|
+
@include theme.touch-target($positioned: true);
|
|
212
|
+
|
|
213
|
+
&--previous {
|
|
214
|
+
inset-inline-start: 1rem;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
&--next {
|
|
218
|
+
inset-inline-end: 1rem;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
// Drawn pointing physically left and right, so they turn around with the
|
|
222
|
+
// order: going back is going right for an RTL reader.
|
|
223
|
+
[dir='rtl'] & svg {
|
|
224
|
+
transform: scaleX(-1);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
&:hover {
|
|
228
|
+
background: rgb(0 0 0 / 75%);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
&:active {
|
|
232
|
+
transform: scale(0.95);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
&:focus-visible {
|
|
236
|
+
outline: 2px solid rgb(255 255 255 / 90%);
|
|
237
|
+
outline-offset: 2px;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
&--disabled {
|
|
241
|
+
opacity: 0.4;
|
|
242
|
+
cursor: default;
|
|
243
|
+
|
|
244
|
+
&:hover {
|
|
245
|
+
background: rgb(0 0 0 / 55%);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
&:active {
|
|
249
|
+
transform: none;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
&__counter {
|
|
255
|
+
--wr-lightbox-viewer-counter-font-family: var(--wr-font-family-base);
|
|
256
|
+
--wr-lightbox-viewer-counter-font-size: var(--wr-text-sm);
|
|
257
|
+
|
|
258
|
+
position: absolute;
|
|
259
|
+
top: 1rem;
|
|
260
|
+
inset-inline-start: 1rem;
|
|
261
|
+
// On the backdrop, so white in both schemes — see `__close`.
|
|
262
|
+
color: rgb(255 255 255 / 85%);
|
|
263
|
+
font-family: var(--wr-lightbox-viewer-counter-font-family);
|
|
264
|
+
font-size: var(--wr-lightbox-viewer-counter-font-size);
|
|
265
|
+
font-variant-numeric: tabular-nums;
|
|
266
|
+
// The ✕ in the opposite corner is 2.25rem tall: share its centre line.
|
|
267
|
+
line-height: 2.25rem;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
&__status {
|
|
271
|
+
position: absolute;
|
|
272
|
+
width: 1px;
|
|
273
|
+
height: 1px;
|
|
274
|
+
margin: -1px;
|
|
275
|
+
padding: 0;
|
|
276
|
+
overflow: hidden;
|
|
277
|
+
clip: rect(0, 0, 0, 0);
|
|
278
|
+
border: 0;
|
|
279
|
+
white-space: nowrap;
|
|
280
|
+
}
|
|
281
|
+
|
|
186
282
|
&__full {
|
|
187
283
|
--wr-lightbox-viewer-full-radius: var(--wr-border-radius-base);
|
|
188
284
|
|
package/llms-full.txt
CHANGED
|
@@ -569,13 +569,13 @@
|
|
|
569
569
|
|
|
570
570
|
## ngwr/date
|
|
571
571
|
- import: `import { WrDateAdapter } from 'ngwr/date'`
|
|
572
|
-
- exports: WrDateAdapter, WrNativeDateAdapter, wrIsNamedFormat, wrIsDateOnly, wrToLocalDate, wrParseDate, wrDateLocale, withDates, WR_DATE_LOCALE, WR_DATE_TIME_ZONE, WrDateFormat, WrDatesOptions
|
|
572
|
+
- exports: WrDateAdapter, WrNativeDateAdapter, wrIsNamedFormat, wrIsDateOnly, wrToLocalDate, wrParseDate, wrDateLocale, withDates, WR_DATE_INPUT, WR_DATE_LOCALE, WR_DATE_STAMP_DEFAULTS, WR_DATE_TIME_ZONE, WrDateFormat, WrDateStampDefaults, WrDatesOptions, WrEpochUnit, WrParseDateOptions, WrZonelessIn
|
|
573
573
|
- The date adapter behind the calendar, the event calendar and every date picker. With no provider it is `WrNativeDateAdapter`, over `Date` and `Intl` in `LOCALE_ID`. `provideWr(withDates({ locale, adapter }))` pins a locale or passes your own `WrDateAdapter` subclass.
|
|
574
574
|
|
|
575
575
|
## ngwr/date-picker
|
|
576
576
|
- import: `import { WrDatePicker } from 'ngwr/date-picker'`
|
|
577
577
|
- selector: `wr-date-picker`, `wr-date-range-picker`
|
|
578
|
-
- exports: WrDatePicker, WrDateRangePicker, WrDateInputError, WrDatePickerSize, WrDateRange, WrDateRangeInputError
|
|
578
|
+
- exports: WrDatePicker, WrDateRangePicker, wrLastDays, wrLastMonth, wrThisMonth, wrThisWeek, WrDateInputError, WrDatePickerSize, WrDateRange, WrDateRangeInputError, WrDateRangePreset, WrDateRangePresetContext, WrDateRangePresetFn
|
|
579
579
|
- keywords: date, time, datetime, picker
|
|
580
580
|
- A text field with a popup for picking a date, a time or both.
|
|
581
581
|
|
|
@@ -644,14 +644,14 @@
|
|
|
644
644
|
|
|
645
645
|
## ngwr/dropdown
|
|
646
646
|
- import: `import { WrDropdown } from 'ngwr/dropdown'`
|
|
647
|
-
- selector: `wr-dropdown-item`, `wr-dropdown-menu`, `[wrDropdown]`
|
|
648
|
-
- exports: WrDropdown, WrDropdownMenu, WrDropdownItem, WrDropdownPosition, WrDropdownTrigger
|
|
647
|
+
- selector: `wr-dropdown-item`, `wr-dropdown-menu`, `[wrDropdownSubmenu]`, `[wrDropdown]`
|
|
648
|
+
- exports: WrDropdown, WrDropdownMenu, WrDropdownItem, WrDropdownSubmenu, WrDropdownPosition, WrDropdownTrigger
|
|
649
649
|
- keywords: menu, wr-dropdown, overlay
|
|
650
650
|
- A menu that opens from any trigger.
|
|
651
651
|
|
|
652
652
|
## ngwr/dropdown/testing
|
|
653
653
|
- import: `import { WrDropdownHarness } from 'ngwr/dropdown/testing'`
|
|
654
|
-
- exports: WrDropdownHarness, WrDropdownItemHarness, WrDropdownHarnessFilters, WrDropdownItemHarnessFilters
|
|
654
|
+
- exports: WrDropdownHarness, WrDropdownSubmenuHarness, WrDropdownItemHarness, WrDropdownHarnessFilters, WrDropdownItemHarnessFilters
|
|
655
655
|
|
|
656
656
|
## ngwr/editor
|
|
657
657
|
- import: `import { WrEditor } from 'ngwr/editor'`
|
|
@@ -1112,7 +1112,7 @@
|
|
|
1112
1112
|
## ngwr/slider
|
|
1113
1113
|
- import: `import { WrSlider } from 'ngwr/slider'`
|
|
1114
1114
|
- selector: `wr-slider`
|
|
1115
|
-
- exports: WrSlider, WrSliderValue
|
|
1115
|
+
- exports: WrSlider, WrSliderMark, WrSliderValue
|
|
1116
1116
|
- keywords: range
|
|
1117
1117
|
- Pick a number, or a range of two, by dragging a thumb.
|
|
1118
1118
|
|
|
@@ -1123,10 +1123,14 @@
|
|
|
1123
1123
|
## ngwr/sortable-list
|
|
1124
1124
|
- import: `import { WrSortableList } from 'ngwr/sortable-list'`
|
|
1125
1125
|
- selector: `[wrDragHandle]`, `wr-sortable-item`, `wr-sortable-list`
|
|
1126
|
-
- exports: WrSortableList, WrSortableReorderEvent, WrSortableItem, WrDragHandle
|
|
1127
|
-
- keywords: drag-drop, reorder, touch
|
|
1126
|
+
- exports: WrSortableList, WrSortableCanEnter, WrSortableMoveEnd, WrSortableMoveEvent, WrSortableReorderEvent, WrSortableItem, WrDragHandle
|
|
1127
|
+
- keywords: drag-drop, reorder, kanban, connected lists, touch
|
|
1128
1128
|
- A list the user reorders by drag or keyboard.
|
|
1129
1129
|
|
|
1130
|
+
## ngwr/sortable-list/testing
|
|
1131
|
+
- import: `import { WrSortableListHarness } from 'ngwr/sortable-list/testing'`
|
|
1132
|
+
- exports: WrSortableListHarness, WrSortableListHarnessFilters
|
|
1133
|
+
|
|
1130
1134
|
## ngwr/speed-dial
|
|
1131
1135
|
- import: `import { WrSpeedDial } from 'ngwr/speed-dial'`
|
|
1132
1136
|
- selector: `wr-speed-dial`
|
package/llms.txt
CHANGED
|
@@ -163,6 +163,18 @@ The rest are calls of their own, added from their entry points as needed:
|
|
|
163
163
|
`withDates({ adapter })`. Its `format` and `parse` handle every `WrDateFormat`
|
|
164
164
|
key, including the `12h`, `24h` and `Seconds` variants of `time` and
|
|
165
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.
|
|
166
178
|
|
|
167
179
|
Injected rather than provided: `WrTour` (`ngwr/tour`) runs a guided onboarding
|
|
168
180
|
tour — `tour.start([{ target: '[data-tour="save"]', content: '…' }])` spotlights
|
package/package.json
CHANGED
|
@@ -999,6 +999,10 @@
|
|
|
999
999
|
"sass": "./sortable-list/styles/_index.scss",
|
|
1000
1000
|
"default": "./fesm2022/ngwr-sortable-list.mjs"
|
|
1001
1001
|
},
|
|
1002
|
+
"./sortable-list/testing": {
|
|
1003
|
+
"types": "./types/ngwr-sortable-list-testing.d.ts",
|
|
1004
|
+
"default": "./fesm2022/ngwr-sortable-list-testing.mjs"
|
|
1005
|
+
},
|
|
1002
1006
|
"./speed-dial": {
|
|
1003
1007
|
"types": "./types/ngwr-speed-dial.d.ts",
|
|
1004
1008
|
"sass": "./speed-dial/styles/_index.scss",
|
|
@@ -1182,5 +1186,5 @@
|
|
|
1182
1186
|
"sass": "./styles/_typography.scss"
|
|
1183
1187
|
}
|
|
1184
1188
|
},
|
|
1185
|
-
"version": "16.
|
|
1189
|
+
"version": "16.2.0"
|
|
1186
1190
|
}
|
|
@@ -109,6 +109,7 @@
|
|
|
109
109
|
"WrDropdown": "ngwr/dropdown",
|
|
110
110
|
"WrDropdownMenu": "ngwr/dropdown",
|
|
111
111
|
"WrDropdownItem": "ngwr/dropdown",
|
|
112
|
+
"WrDropdownSubmenu": "ngwr/dropdown",
|
|
112
113
|
"WrEditor": "ngwr/editor",
|
|
113
114
|
"WrEmpty": "ngwr/empty",
|
|
114
115
|
"WrEventCalendar": "ngwr/event-calendar",
|
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
|
|
|
@@ -111,7 +111,7 @@ root barrel for components: the root `ngwr` exports only `provideWr()`.
|
|
|
111
111
|
| `ngwr/divider` | `import { WrDivider } from 'ngwr/divider'` | `wr-divider` |
|
|
112
112
|
| `ngwr/drawer` | `import { WrDrawer } from 'ngwr/drawer'` | `[wrDrawerClose]` `[wrDrawerContent]` `[wrDrawerFooter]` `[wrDrawerTitle]` `wr-drawer` |
|
|
113
113
|
| `ngwr/drawer/testing` | `import { WrDrawerHarness } from 'ngwr/drawer/testing'` | — |
|
|
114
|
-
| `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]` |
|
|
115
115
|
| `ngwr/dropdown/testing` | `import { WrDropdownHarness } from 'ngwr/dropdown/testing'` | — |
|
|
116
116
|
| `ngwr/editor` | `import { WrEditor } from 'ngwr/editor'` | `wr-editor` |
|
|
117
117
|
| `ngwr/editor/testing` | `import { WrEditorHarness } from 'ngwr/editor/testing'` | — |
|
|
@@ -201,6 +201,7 @@ root barrel for components: the root `ngwr` exports only `provideWr()`.
|
|
|
201
201
|
| `ngwr/slider` | `import { WrSlider } from 'ngwr/slider'` | `wr-slider` |
|
|
202
202
|
| `ngwr/slider/testing` | `import { WrSliderHarness } from 'ngwr/slider/testing'` | — |
|
|
203
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'` | — |
|
|
204
205
|
| `ngwr/speed-dial` | `import { WrSpeedDial } from 'ngwr/speed-dial'` | `wr-speed-dial` |
|
|
205
206
|
| `ngwr/speed-dial/testing` | `import { WrSpeedDialActionHarness } from 'ngwr/speed-dial/testing'` | — |
|
|
206
207
|
| `ngwr/spinner` | `import { WrSpinner } from 'ngwr/spinner'` | `wr-spinner` |
|
|
@@ -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
|
}
|
|
@@ -256,6 +256,23 @@ export declare class WrDateRangePickerHarness extends WrDatePickerHarnessBase {
|
|
|
256
256
|
stepTime(end: WrDateRangePickerEnd, unit: 'hours' | 'minutes' | 'seconds', direction: 1 | -1): Promise<void>;
|
|
257
257
|
/** Flip one end between AM and PM. Throws in 24-hour mode, which has no such control. */
|
|
258
258
|
toggleMeridiem(end: WrDateRangePickerEnd): Promise<void>;
|
|
259
|
+
/**
|
|
260
|
+
* The labels of the `[presets]` in the open popup, in the order they render —
|
|
261
|
+
* empty when the picker has none.
|
|
262
|
+
*/
|
|
263
|
+
getPresets(): Promise<string[]>;
|
|
264
|
+
/**
|
|
265
|
+
* The label of the preset marked `aria-pressed` — the one whose range equals
|
|
266
|
+
* the value — or `null` when the value matches none.
|
|
267
|
+
*/
|
|
268
|
+
getActivePreset(): Promise<string | null>;
|
|
269
|
+
/**
|
|
270
|
+
* Click a preset by its label. That commits the range and closes the popup.
|
|
271
|
+
* Throws for a label the popup does not show, and for a preset the picker
|
|
272
|
+
* disabled because it reaches outside `minDate` / `maxDate`.
|
|
273
|
+
*/
|
|
274
|
+
selectPreset(label: string): Promise<void>;
|
|
275
|
+
private presetButtons;
|
|
259
276
|
private type;
|
|
260
277
|
/** The two fields are addressed by position, which is the order they render in. */
|
|
261
278
|
private field;
|