ngwr 16.0.0 → 16.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/badge/styles/_tag.scss +8 -4
- package/button/styles/_index.scss +13 -7
- package/cascader/styles/_rules.scss +4 -2
- package/checkbox/styles/_index.scss +4 -2
- package/date-picker/styles/_index.scss +95 -3
- package/date-stamp/styles/_index.scss +38 -0
- package/dialog/styles/_index.scss +38 -0
- package/dropdown/styles/_index.scss +37 -1
- package/fesm2022/internal-CVLvP9b_.mjs +33 -0
- package/fesm2022/internal-CVLvP9b_.mjs.map +1 -0
- package/fesm2022/ngwr-alert.mjs +11 -7
- package/fesm2022/ngwr-alert.mjs.map +1 -1
- package/fesm2022/ngwr-avatar.mjs +11 -7
- package/fesm2022/ngwr-avatar.mjs.map +1 -1
- package/fesm2022/ngwr-back-top.mjs +10 -6
- package/fesm2022/ngwr-back-top.mjs.map +1 -1
- package/fesm2022/ngwr-badge.mjs +18 -6
- package/fesm2022/ngwr-badge.mjs.map +1 -1
- package/fesm2022/ngwr-burger.mjs +9 -6
- package/fesm2022/ngwr-burger.mjs.map +1 -1
- package/fesm2022/ngwr-button.mjs +8 -4
- package/fesm2022/ngwr-button.mjs.map +1 -1
- package/fesm2022/ngwr-calendar.mjs +19 -8
- package/fesm2022/ngwr-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-card.mjs +9 -5
- package/fesm2022/ngwr-card.mjs.map +1 -1
- package/fesm2022/ngwr-cascader.mjs +11 -5
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs +5 -2
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs.map +1 -1
- package/fesm2022/ngwr-checkbox.mjs +10 -6
- package/fesm2022/ngwr-checkbox.mjs.map +1 -1
- package/fesm2022/ngwr-clipboard.mjs +2 -1
- package/fesm2022/ngwr-clipboard.mjs.map +1 -1
- package/fesm2022/ngwr-collapse.mjs +9 -5
- package/fesm2022/ngwr-collapse.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker.mjs +4 -2
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-comment.mjs +13 -7
- package/fesm2022/ngwr-comment.mjs.map +1 -1
- package/fesm2022/ngwr-compare.mjs +9 -3
- package/fesm2022/ngwr-compare.mjs.map +1 -1
- package/fesm2022/ngwr-context-menu.mjs +4 -2
- package/fesm2022/ngwr-context-menu.mjs.map +1 -1
- package/fesm2022/ngwr-copy-value.mjs +11 -6
- package/fesm2022/ngwr-copy-value.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker-testing.mjs +18 -0
- package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +238 -38
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-date-stamp-testing.mjs +34 -0
- package/fesm2022/ngwr-date-stamp-testing.mjs.map +1 -0
- package/fesm2022/ngwr-date-stamp.mjs +213 -0
- package/fesm2022/ngwr-date-stamp.mjs.map +1 -0
- package/fesm2022/ngwr-date.mjs +364 -54
- package/fesm2022/ngwr-date.mjs.map +1 -1
- package/fesm2022/ngwr-descriptions.mjs +9 -5
- package/fesm2022/ngwr-descriptions.mjs.map +1 -1
- package/fesm2022/ngwr-dialog-testing.mjs +23 -2
- package/fesm2022/ngwr-dialog-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dialog.mjs +45 -16
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-directives.mjs +102 -11
- package/fesm2022/ngwr-directives.mjs.map +1 -1
- package/fesm2022/ngwr-divider.mjs +4 -2
- package/fesm2022/ngwr-divider.mjs.map +1 -1
- package/fesm2022/ngwr-drawer.mjs +29 -3
- package/fesm2022/ngwr-drawer.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown-testing.mjs +38 -3
- package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +362 -26
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +5 -2
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-event-calendar.mjs +4 -2
- package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload.mjs +9 -3
- package/fesm2022/ngwr-file-upload.mjs.map +1 -1
- package/fesm2022/ngwr-form.mjs +18 -6
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ar.mjs +9 -2
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +9 -2
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +9 -2
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +9 -2
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +9 -2
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +9 -2
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +9 -2
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +9 -2
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +9 -2
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +9 -2
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +9 -2
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +9 -2
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +9 -2
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +9 -2
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +9 -2
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +9 -2
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +9 -2
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +9 -2
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +9 -2
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +9 -2
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +9 -2
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +9 -2
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +34 -8
- package/fesm2022/ngwr-i18n.mjs.map +1 -1
- package/fesm2022/ngwr-input-number.mjs +9 -3
- package/fesm2022/ngwr-input-number.mjs.map +1 -1
- package/fesm2022/ngwr-input-otp.mjs +4 -2
- package/fesm2022/ngwr-input-otp.mjs.map +1 -1
- package/fesm2022/ngwr-input.mjs +20 -10
- package/fesm2022/ngwr-input.mjs.map +1 -1
- package/fesm2022/ngwr-keyboard.mjs +9 -3
- package/fesm2022/ngwr-keyboard.mjs.map +1 -1
- package/fesm2022/ngwr-knob.mjs +9 -3
- package/fesm2022/ngwr-knob.mjs.map +1 -1
- package/fesm2022/ngwr-layout.mjs +13 -5
- package/fesm2022/ngwr-layout.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox-testing.mjs +26 -0
- package/fesm2022/ngwr-lightbox-testing.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox.mjs +255 -15
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +13 -5
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-load-state.mjs +9 -5
- package/fesm2022/ngwr-load-state.mjs.map +1 -1
- package/fesm2022/ngwr-overlay.mjs +84 -1
- package/fesm2022/ngwr-overlay.mjs.map +1 -1
- package/fesm2022/ngwr-pagination.mjs +3 -2
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +47 -9
- package/fesm2022/ngwr-pipes.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +93 -4
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-progress.mjs +4 -2
- package/fesm2022/ngwr-progress.mjs.map +1 -1
- package/fesm2022/ngwr-radio.mjs +9 -5
- package/fesm2022/ngwr-radio.mjs.map +1 -1
- package/fesm2022/ngwr-rating.mjs +9 -3
- package/fesm2022/ngwr-rating.mjs.map +1 -1
- package/fesm2022/ngwr-resizable.mjs +503 -0
- package/fesm2022/ngwr-resizable.mjs.map +1 -0
- package/fesm2022/ngwr-result.mjs +9 -5
- package/fesm2022/ngwr-result.mjs.map +1 -1
- package/fesm2022/ngwr-schema-form.mjs +3 -0
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-segmented.mjs +4 -2
- package/fesm2022/ngwr-segmented.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +13 -5
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-skeleton.mjs +4 -2
- package/fesm2022/ngwr-skeleton.mjs.map +1 -1
- package/fesm2022/ngwr-slider-testing.mjs +17 -0
- package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
- package/fesm2022/ngwr-slider.mjs +91 -13
- package/fesm2022/ngwr-slider.mjs.map +1 -1
- package/fesm2022/ngwr-sortable-list-testing.mjs +103 -0
- package/fesm2022/ngwr-sortable-list-testing.mjs.map +1 -0
- package/fesm2022/ngwr-sortable-list.mjs +257 -53
- package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
- package/fesm2022/ngwr-speed-dial.mjs +4 -2
- package/fesm2022/ngwr-speed-dial.mjs.map +1 -1
- package/fesm2022/ngwr-spinner.mjs +4 -2
- package/fesm2022/ngwr-spinner.mjs.map +1 -1
- package/fesm2022/ngwr-splitter.mjs +17 -21
- package/fesm2022/ngwr-splitter.mjs.map +1 -1
- package/fesm2022/ngwr-stepper.mjs +9 -3
- package/fesm2022/ngwr-stepper.mjs.map +1 -1
- package/fesm2022/ngwr-switch.mjs +9 -5
- package/fesm2022/ngwr-switch.mjs.map +1 -1
- package/fesm2022/ngwr-table-testing.mjs +5 -1
- package/fesm2022/ngwr-table-testing.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +167 -10
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-textarea.mjs +9 -3
- package/fesm2022/ngwr-textarea.mjs.map +1 -1
- package/fesm2022/ngwr-timeline.mjs +18 -8
- package/fesm2022/ngwr-timeline.mjs.map +1 -1
- package/fesm2022/ngwr-toast-testing.mjs +6 -1
- package/fesm2022/ngwr-toast-testing.mjs.map +1 -1
- package/fesm2022/ngwr-toast.mjs +529 -104
- package/fesm2022/ngwr-toast.mjs.map +1 -1
- package/fesm2022/ngwr-transfer.mjs +4 -2
- package/fesm2022/ngwr-transfer.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +4 -2
- package/fesm2022/ngwr-tree.mjs.map +1 -1
- package/fesm2022/ngwr-typography.mjs +9 -3
- package/fesm2022/ngwr-typography.mjs.map +1 -1
- package/fesm2022/ngwr-utils-router.mjs +18 -2
- package/fesm2022/ngwr-utils-router.mjs.map +1 -1
- package/fesm2022/ngwr-utils.mjs +9 -2
- package/fesm2022/ngwr-utils.mjs.map +1 -1
- package/fesm2022/ngwr-version.mjs +1 -1
- package/fesm2022/ngwr-version.mjs.map +1 -1
- package/fesm2022/ngwr-window.mjs +7 -4
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/fesm2022/ngwr.mjs.map +1 -1
- package/i18n/ar.json +13 -2
- package/i18n/cs.json +13 -2
- package/i18n/de.json +13 -2
- package/i18n/en.json +13 -2
- package/i18n/es.json +13 -2
- package/i18n/fr.json +13 -2
- package/i18n/he.json +13 -2
- package/i18n/hi.json +13 -2
- package/i18n/id.json +13 -2
- package/i18n/it.json +13 -2
- package/i18n/ja.json +13 -2
- package/i18n/ko.json +13 -2
- package/i18n/nl.json +13 -2
- package/i18n/pl.json +13 -2
- package/i18n/pt.json +13 -2
- package/i18n/ru.json +13 -2
- package/i18n/sv.json +13 -2
- package/i18n/tr.json +13 -2
- package/i18n/uk.json +13 -2
- package/i18n/vi.json +13 -2
- package/i18n/zh-TW.json +13 -2
- package/i18n/zh.json +13 -2
- package/input/styles/_index.scss +10 -5
- package/input-number/styles/_index.scss +6 -3
- package/input-otp/styles/_index.scss +4 -2
- package/lightbox/styles/_rules.scss +96 -0
- package/llms-full.txt +40 -17
- package/llms.txt +20 -4
- package/package.json +19 -1
- package/radio/styles/_index.scss +4 -2
- package/resizable/styles/_index.scss +154 -0
- package/schematics/use/rule.js +1 -0
- package/schematics/use/symbol-map.json +5 -0
- package/select/styles/_index.scss +6 -3
- package/skills/ngwr/SKILL.md +1 -1
- package/skills/ngwr/references/catalog.md +6 -2
- package/skills/ngwr/references/setup.md +3 -0
- package/slider/styles/_index.scss +106 -0
- package/sortable-list/styles/_rules.scss +23 -1
- package/switch/styles/_index.scss +4 -2
- package/table/styles/_index.scss +53 -0
- package/textarea/styles/_index.scss +4 -2
- package/theme/styles/_motion.scss +6 -0
- package/toast/styles/_index.scss +19 -0
- package/types/ngwr-burger.d.ts +0 -1
- package/types/ngwr-calendar.d.ts +7 -0
- package/types/ngwr-charts-calendar-heatmap.d.ts +2 -1
- package/types/ngwr-clipboard.d.ts +7 -0
- package/types/ngwr-date-picker-testing.d.ts +17 -0
- package/types/ngwr-date-picker.d.ts +88 -4
- package/types/ngwr-date-stamp-testing.d.ts +47 -0
- package/types/ngwr-date-stamp.d.ts +127 -0
- package/types/ngwr-date.d.ts +251 -37
- package/types/ngwr-dialog-testing.d.ts +10 -0
- package/types/ngwr-dialog.d.ts +72 -4
- package/types/ngwr-directives.d.ts +36 -1
- package/types/ngwr-drawer.d.ts +21 -0
- package/types/ngwr-dropdown-testing.d.ts +53 -5
- package/types/ngwr-dropdown.d.ts +100 -0
- package/types/ngwr-i18n.d.ts +44 -14
- package/types/ngwr-lightbox-testing.d.ts +27 -0
- package/types/ngwr-lightbox.d.ts +71 -6
- package/types/ngwr-overlay.d.ts +36 -0
- package/types/ngwr-pipes.d.ts +48 -13
- package/types/ngwr-popover.d.ts +39 -1
- package/types/ngwr-resizable.d.ts +228 -0
- package/types/ngwr-slider-testing.d.ts +8 -1
- package/types/ngwr-slider.d.ts +89 -3
- package/types/ngwr-sortable-list-testing.d.ts +79 -0
- package/types/ngwr-sortable-list.d.ts +113 -10
- package/types/ngwr-table-testing.d.ts +3 -1
- package/types/ngwr-table.d.ts +120 -4
- package/types/ngwr-toast-testing.d.ts +12 -1
- package/types/ngwr-toast.d.ts +215 -18
- package/types/ngwr-utils-router.d.ts +22 -0
- package/types/ngwr-utils.d.ts +8 -1
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr.d.ts +1 -0
package/table/styles/_index.scss
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
@use '../../checkbox/styles' as checkbox-styles; // WrCheckbox
|
|
16
16
|
@use '../../dropdown/styles' as dropdown-styles; // WrDropdown
|
|
17
17
|
@use '../../pagination/styles' as pagination-styles; // WrPagination
|
|
18
|
+
@use '../../popover/styles' as popover-styles; // WrPopover
|
|
18
19
|
@use '../../spinner/styles' as spinner-styles; // WrSpinner
|
|
19
20
|
@include theme.loaded('table');
|
|
20
21
|
|
|
@@ -60,6 +61,10 @@
|
|
|
60
61
|
--wr-table-foot-cell-font-weight: var(--wr-font-weight-semibold);
|
|
61
62
|
--wr-table-empty-padding: var(--wr-space-xl);
|
|
62
63
|
--wr-table-pager-padding: var(--wr-space-sm) var(--wr-space-md);
|
|
64
|
+
--wr-table-loading-bar-height: 0.125rem;
|
|
65
|
+
--wr-table-loading-bar-color: var(--wr-color-primary);
|
|
66
|
+
--wr-table-loading-bar-track: color-mix(in srgb, var(--wr-color-primary) 20%, transparent);
|
|
67
|
+
--wr-table-loading-bar-duration: 1.4s;
|
|
63
68
|
// The scroll area of a `stickyHeader` or virtualized table. The component
|
|
64
69
|
// writes `viewportHeight` to `-scroll-height`, and the measured header and
|
|
65
70
|
// footer heights to the two below it, inline on `.wr-table__scroll`; these
|
|
@@ -152,6 +157,14 @@
|
|
|
152
157
|
overflow: hidden;
|
|
153
158
|
}
|
|
154
159
|
|
|
160
|
+
// `truncate: 'tooltip'`. The cut happens where the column cannot grow: under
|
|
161
|
+
// a fixed layout, or at the `max-width` the component writes from `width`.
|
|
162
|
+
&__td--truncate {
|
|
163
|
+
overflow: hidden;
|
|
164
|
+
text-overflow: ellipsis;
|
|
165
|
+
white-space: nowrap;
|
|
166
|
+
}
|
|
167
|
+
|
|
155
168
|
&__resize-handle {
|
|
156
169
|
position: absolute;
|
|
157
170
|
top: 0;
|
|
@@ -632,6 +645,36 @@
|
|
|
632
645
|
pointer-events: none;
|
|
633
646
|
}
|
|
634
647
|
|
|
648
|
+
// Along the top edge of the header, which is the top of the scroll area under
|
|
649
|
+
// a sticky header too. Above the corner-sticky header cells (z-index 3).
|
|
650
|
+
&__loading-bar {
|
|
651
|
+
position: absolute;
|
|
652
|
+
inset-block-start: 0;
|
|
653
|
+
inset-inline: 0;
|
|
654
|
+
z-index: 4;
|
|
655
|
+
height: var(--wr-table-loading-bar-height);
|
|
656
|
+
overflow: hidden;
|
|
657
|
+
background: var(--wr-table-loading-bar-track);
|
|
658
|
+
pointer-events: none;
|
|
659
|
+
|
|
660
|
+
&::after {
|
|
661
|
+
content: '';
|
|
662
|
+
position: absolute;
|
|
663
|
+
inset-block: 0;
|
|
664
|
+
// rtl-ok: an indeterminate sweep has no reading direction
|
|
665
|
+
left: 0;
|
|
666
|
+
width: 40%;
|
|
667
|
+
background: var(--wr-table-loading-bar-color);
|
|
668
|
+
animation: wr-table-loading-bar var(--wr-table-loading-bar-duration) var(--wr-ease-in-out) infinite;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
@media (forced-colors: active) {
|
|
672
|
+
&::after {
|
|
673
|
+
background: CanvasText;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
|
|
635
678
|
// --- Row grouping ---------------------------------------------------------
|
|
636
679
|
--wr-table-group-bg: var(--wr-color-fill-subtle);
|
|
637
680
|
--wr-table-group-inner-gap: var(--wr-space-sm);
|
|
@@ -1243,3 +1286,13 @@
|
|
|
1243
1286
|
.cdk-drag-animating.wr-table__th {
|
|
1244
1287
|
transition: transform 0.18s var(--wr-ease-out);
|
|
1245
1288
|
}
|
|
1289
|
+
|
|
1290
|
+
@keyframes wr-table-loading-bar {
|
|
1291
|
+
from {
|
|
1292
|
+
transform: translateX(-100%);
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
to {
|
|
1296
|
+
transform: translateX(250%);
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
@@ -55,7 +55,8 @@
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
// Sizes — radius, padding, font + line-height scale; height stays content-driven.
|
|
58
|
-
&--sm
|
|
58
|
+
&--sm,
|
|
59
|
+
&:where([size='sm']) {
|
|
59
60
|
--wr-textarea-radius: var(--wr-control-radius-sm);
|
|
60
61
|
--wr-textarea-padding-y: var(--wr-space-xs);
|
|
61
62
|
--wr-textarea-padding-x: var(--wr-control-padding-x-sm);
|
|
@@ -63,7 +64,8 @@
|
|
|
63
64
|
--wr-textarea-line-height: var(--wr-control-line-height-sm);
|
|
64
65
|
}
|
|
65
66
|
|
|
66
|
-
&--lg
|
|
67
|
+
&--lg,
|
|
68
|
+
&:where([size='lg']) {
|
|
67
69
|
--wr-textarea-radius: var(--wr-control-radius-lg);
|
|
68
70
|
--wr-textarea-padding-y: var(--wr-space-md);
|
|
69
71
|
--wr-textarea-padding-x: var(--wr-control-padding-x-lg);
|
|
@@ -82,4 +82,10 @@
|
|
|
82
82
|
.wr-card__spinner {
|
|
83
83
|
animation-duration: 1.4s !important;
|
|
84
84
|
}
|
|
85
|
+
|
|
86
|
+
// The table's loading bar is a spinner drawn as a line: its sweep is the
|
|
87
|
+
// message, so it is slowed like one rather than stopped.
|
|
88
|
+
.wr-table__loading-bar::after {
|
|
89
|
+
animation-duration: 4s !important;
|
|
90
|
+
}
|
|
85
91
|
}
|
package/toast/styles/_index.scss
CHANGED
|
@@ -159,6 +159,25 @@ $toast-colors: (
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
+
// The stack in the page: `<wr-toast-outlet>` covers its nearest positioned
|
|
163
|
+
// ancestor and the host sits inside that box, not against the viewport. No
|
|
164
|
+
// `z-index`: where the outlet paints against its siblings is the app's own
|
|
165
|
+
// CSS. `isolation` keeps the collapsed stack's own z-indexes from joining
|
|
166
|
+
// that contest.
|
|
167
|
+
.wr-toast-outlet {
|
|
168
|
+
position: absolute;
|
|
169
|
+
inset: 0;
|
|
170
|
+
display: block;
|
|
171
|
+
isolation: isolate;
|
|
172
|
+
pointer-events: none;
|
|
173
|
+
|
|
174
|
+
> .wr-toast-host {
|
|
175
|
+
position: absolute;
|
|
176
|
+
// The box is not the screen, so its edges carry no safe-area inset.
|
|
177
|
+
padding: 1rem;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
162
181
|
.wr-toast {
|
|
163
182
|
--wr-toast-bg: var(--wr-color-surface);
|
|
164
183
|
--wr-toast-border: var(--wr-border-base);
|
package/types/ngwr-burger.d.ts
CHANGED
|
@@ -29,7 +29,6 @@ export declare class WrBurger {
|
|
|
29
29
|
/** Disable the toggle. @default false */
|
|
30
30
|
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
31
31
|
protected readonly classes: import("@angular/core").Signal<{
|
|
32
|
-
'wr-burger': boolean;
|
|
33
32
|
'wr-burger--opened': boolean;
|
|
34
33
|
}>;
|
|
35
34
|
protected toggle(): void;
|
package/types/ngwr-calendar.d.ts
CHANGED
|
@@ -68,6 +68,11 @@ export declare class WrCalendar {
|
|
|
68
68
|
private readonly dir;
|
|
69
69
|
private readonly host;
|
|
70
70
|
private readonly injector;
|
|
71
|
+
/**
|
|
72
|
+
* Today as this adapter's day. With `withDates({ timeZone })` it is the day
|
|
73
|
+
* the display zone is in, which near midnight is not the browser's.
|
|
74
|
+
*/
|
|
75
|
+
private zoneToday;
|
|
71
76
|
/** Currently displayed month (any date inside it). */
|
|
72
77
|
protected readonly viewDate: import("@angular/core").WritableSignal<Date>;
|
|
73
78
|
/** Date currently focused by keyboard (single roving tabindex). */
|
|
@@ -217,6 +222,8 @@ export declare class WrCalendar {
|
|
|
217
222
|
*/
|
|
218
223
|
private setViewMode;
|
|
219
224
|
private stepViewDate;
|
|
225
|
+
/** Through the adapter, not `Date#getDate`: a zoned adapter's day is not the browser's. */
|
|
226
|
+
protected dayOfMonth(date: Date): number;
|
|
220
227
|
protected isToday(date: Date): boolean;
|
|
221
228
|
protected isOutOfMonth(date: Date): boolean;
|
|
222
229
|
protected isSelected(date: Date): boolean;
|
|
@@ -133,7 +133,8 @@ export declare class WrCalendarHeatmap {
|
|
|
133
133
|
* `false` on the server and in jsdom, which lay nothing out.
|
|
134
134
|
*/
|
|
135
135
|
protected readonly scrollable: import("@angular/core").WritableSignal<boolean>;
|
|
136
|
-
private readonly
|
|
136
|
+
private readonly dateLocale;
|
|
137
|
+
private get locale();
|
|
137
138
|
/**
|
|
138
139
|
* Weekday names from the locale rather than a hard-coded English list — the row order is
|
|
139
140
|
* Sunday-first, matching the grid's own alignment, so 7 Jan 2024 (a Sunday) is the
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
/** Outcome of a clipboard read or permission probe. */
|
|
3
3
|
type WrClipboardPermission = 'granted' | 'denied' | 'prompt' | 'unsupported';
|
|
4
|
+
/**
|
|
5
|
+
* How long a "Copied" confirmation stays, in ms: `<wr-copy-value>` and
|
|
6
|
+
* `[wrCopyToClipboard]` share it.
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export declare const WR_COPIED_DURATION = 1500;
|
|
4
11
|
/**
|
|
5
12
|
* Programmatic clipboard read / write.
|
|
6
13
|
*
|
|
@@ -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;
|
|
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import { ElementRef, Signal } from "@angular/core";
|
|
3
3
|
import { WrClassInput } from "ngwr/utils";
|
|
4
4
|
import { FormValueControl } from "@angular/forms/signals";
|
|
5
|
-
import { WrDateFormat } from "ngwr/date";
|
|
5
|
+
import { WrDateAdapter, WrDateFormat } from "ngwr/date";
|
|
6
6
|
/**
|
|
7
7
|
* @license
|
|
8
8
|
*
|
|
@@ -74,6 +74,38 @@ type WrDatePickerSize = 'sm' | 'md' | 'lg';
|
|
|
74
74
|
* `WrCalendarRange`, which the picker forwards it to.
|
|
75
75
|
*/
|
|
76
76
|
type WrDateRange = readonly [Date | null, Date | null];
|
|
77
|
+
/** What a preset's range function is called with. */
|
|
78
|
+
interface WrDateRangePresetContext {
|
|
79
|
+
/**
|
|
80
|
+
* The picker's adapter. In `datetime` mode it reads the display time zone of
|
|
81
|
+
* `withDates({ timeZone })`, so day maths done through it lands on that
|
|
82
|
+
* zone's days.
|
|
83
|
+
*/
|
|
84
|
+
readonly adapter: WrDateAdapter<Date>;
|
|
85
|
+
/**
|
|
86
|
+
* The start of today, read when the panel opens. With a display time zone it
|
|
87
|
+
* is the zone's today: a browser-local day in `date` mode, the zone's
|
|
88
|
+
* midnight in `datetime` mode.
|
|
89
|
+
*/
|
|
90
|
+
readonly today: Date;
|
|
91
|
+
}
|
|
92
|
+
/** A range worked out when the panel opens, such as one relative to today. */
|
|
93
|
+
type WrDateRangePresetFn = (context: WrDateRangePresetContext) => readonly [Date, Date];
|
|
94
|
+
/**
|
|
95
|
+
* A one-click range in the panel of `<wr-date-range-picker>`.
|
|
96
|
+
*
|
|
97
|
+
* `label` is the app's own text. `range` is a fixed pair, or a function for a
|
|
98
|
+
* range that depends on today: `wrLastDays`, `wrThisWeek`, `wrThisMonth` and
|
|
99
|
+
* `wrLastMonth` return one.
|
|
100
|
+
*
|
|
101
|
+
* In `date` mode both ends are cut to whole days. In `datetime` mode the pair
|
|
102
|
+
* is committed as given; the helpers run from 00:00:00 on the first day to
|
|
103
|
+
* 23:59:59 on the last.
|
|
104
|
+
*/
|
|
105
|
+
interface WrDateRangePreset {
|
|
106
|
+
readonly label: string;
|
|
107
|
+
readonly range: readonly [Date, Date] | WrDateRangePresetFn;
|
|
108
|
+
}
|
|
77
109
|
/**
|
|
78
110
|
* Unified date / time / date-time picker. Same `<input>` + popover skeleton
|
|
79
111
|
* for every mode — the overlay content swaps based on `[mode]`:
|
|
@@ -175,7 +207,9 @@ export declare class WrDatePicker implements FormValueControl<Date | null> {
|
|
|
175
207
|
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
176
208
|
/** Read-only — input not typeable, but the trigger icon still opens the overlay. @default false */
|
|
177
209
|
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
178
|
-
private readonly
|
|
210
|
+
private readonly dayAdapter;
|
|
211
|
+
private readonly environment;
|
|
212
|
+
private get adapter();
|
|
179
213
|
private readonly overlay;
|
|
180
214
|
private readonly outsideClick;
|
|
181
215
|
private readonly scrollStrategies;
|
|
@@ -371,6 +405,8 @@ export declare class WrDatePicker implements FormValueControl<Date | null> {
|
|
|
371
405
|
* because the echo guard has to answer "is the display still current", and a
|
|
372
406
|
* `[format]` / `[mode]` change makes it stale with the value untouched. */
|
|
373
407
|
private lastFormat;
|
|
408
|
+
/** The adapter's `displayKey()` the text was last written under. */
|
|
409
|
+
private lastKey;
|
|
374
410
|
constructor();
|
|
375
411
|
protected onInput(event: Event): void;
|
|
376
412
|
/** The clear (×) button — the same commit an emptied field makes. */
|
|
@@ -452,6 +488,7 @@ export declare class WrDatePicker implements FormValueControl<Date | null> {
|
|
|
452
488
|
/** Close the popup. */
|
|
453
489
|
close(): void;
|
|
454
490
|
private openOverlay;
|
|
491
|
+
private panelInjector;
|
|
455
492
|
private attachDate;
|
|
456
493
|
private attachTime;
|
|
457
494
|
private attachDateTime;
|
|
@@ -609,6 +646,9 @@ type EndRefusals = readonly [WrDateInputError | null, WrDateInputError | null];
|
|
|
609
646
|
*
|
|
610
647
|
* <!-- date + time on both ends -->
|
|
611
648
|
* <wr-date-range-picker mode="datetime" [(value)]="window" timeFormat="24h" />
|
|
649
|
+
*
|
|
650
|
+
* <!-- one-click ranges, labelled by the app -->
|
|
651
|
+
* <wr-date-range-picker [(value)]="period" [presets]="presets" />
|
|
612
652
|
* ```
|
|
613
653
|
*
|
|
614
654
|
* @see https://ngwr.dev/reference/components/date-picker
|
|
@@ -659,6 +699,22 @@ export declare class WrDateRangePicker implements FormValueControl<WrDateRange |
|
|
|
659
699
|
* keyboard, emptying both fields clears the value. @default false
|
|
660
700
|
*/
|
|
661
701
|
readonly clearable: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
702
|
+
/**
|
|
703
|
+
* One-click ranges, drawn as a list of buttons on the start side of the
|
|
704
|
+
* panel. A click commits the range, closes the panel and emits `touch`, in
|
|
705
|
+
* both modes. The preset whose range equals the value is marked pressed, and
|
|
706
|
+
* one that reaches outside `minDate` / `maxDate` is disabled. The labels are
|
|
707
|
+
* the app's: the library ships none.
|
|
708
|
+
*
|
|
709
|
+
* A range function is called when the panel opens, with today in the display
|
|
710
|
+
* time zone. `wrLastDays`, `wrThisWeek`, `wrThisMonth` and `wrLastMonth`
|
|
711
|
+
* return one. See {@link WrDateRangePreset} for what each mode commits.
|
|
712
|
+
*
|
|
713
|
+
* @default []
|
|
714
|
+
*/
|
|
715
|
+
readonly presets: import("@angular/core").InputSignal<readonly WrDateRangePreset[]>;
|
|
716
|
+
/** Accessible name of the preset list. The library ships none. */
|
|
717
|
+
readonly presetsLabel: import("@angular/core").InputSignal<string | null>;
|
|
662
718
|
/** Clear (×) button aria-label. Falls back to `common.clear`. */
|
|
663
719
|
readonly clearLabel: import("@angular/core").InputSignal<string | null>;
|
|
664
720
|
protected readonly resolvedClear: Signal<string>;
|
|
@@ -681,7 +737,9 @@ export declare class WrDateRangePicker implements FormValueControl<WrDateRange |
|
|
|
681
737
|
* @default false
|
|
682
738
|
*/
|
|
683
739
|
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
684
|
-
private readonly
|
|
740
|
+
private readonly dayAdapter;
|
|
741
|
+
private readonly environment;
|
|
742
|
+
private get adapter();
|
|
685
743
|
private readonly overlay;
|
|
686
744
|
private readonly outsideClick;
|
|
687
745
|
private readonly scrollStrategies;
|
|
@@ -1020,6 +1078,16 @@ export declare class WrDateRangePicker implements FormValueControl<WrDateRange |
|
|
|
1020
1078
|
"required": false;
|
|
1021
1079
|
"isSignal": true;
|
|
1022
1080
|
};
|
|
1081
|
+
"presets": {
|
|
1082
|
+
"alias": "presets";
|
|
1083
|
+
"required": false;
|
|
1084
|
+
"isSignal": true;
|
|
1085
|
+
};
|
|
1086
|
+
"presetsLabel": {
|
|
1087
|
+
"alias": "presetsLabel";
|
|
1088
|
+
"required": false;
|
|
1089
|
+
"isSignal": true;
|
|
1090
|
+
};
|
|
1023
1091
|
"clearLabel": {
|
|
1024
1092
|
"alias": "clearLabel";
|
|
1025
1093
|
"required": false;
|
|
@@ -1057,4 +1125,20 @@ export declare class WrDateRangePicker implements FormValueControl<WrDateRange |
|
|
|
1057
1125
|
"closed": "closed";
|
|
1058
1126
|
}, never, never, true, never>;
|
|
1059
1127
|
}
|
|
1060
|
-
|
|
1128
|
+
/**
|
|
1129
|
+
* The last `days` days, today included: `wrLastDays(7)` is today and the six
|
|
1130
|
+
* days before it, and `wrLastDays(1)` is today.
|
|
1131
|
+
*
|
|
1132
|
+
* @example
|
|
1133
|
+
* ```ts
|
|
1134
|
+
* readonly presets: WrDateRangePreset[] = [{ label: 'Last 7 days', range: wrLastDays(7) }];
|
|
1135
|
+
* ```
|
|
1136
|
+
*/
|
|
1137
|
+
export declare function wrLastDays(days: number): WrDateRangePresetFn;
|
|
1138
|
+
/** The week today is in, from the locale's first day of the week to its last. */
|
|
1139
|
+
export declare function wrThisWeek(): WrDateRangePresetFn;
|
|
1140
|
+
/** The month today is in, from its first day to its last. */
|
|
1141
|
+
export declare function wrThisMonth(): WrDateRangePresetFn;
|
|
1142
|
+
/** The month before the one today is in, from its first day to its last. */
|
|
1143
|
+
export declare function wrLastMonth(): WrDateRangePresetFn;
|
|
1144
|
+
export type { WrDateInputError, WrDatePickerSize, WrDateRange, WrDateRangeInputError, WrDateRangePreset, WrDateRangePresetContext, WrDateRangePresetFn };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from "@angular/cdk/testing";
|
|
2
|
+
/** Narrows which `<wr-date-stamp>` a harness query matches. */
|
|
3
|
+
interface WrDateStampHarnessFilters extends BaseHarnessFilters {
|
|
4
|
+
/** Match the date line: a string is an exact match, a RegExp is tested. An empty stamp matches neither. */
|
|
5
|
+
readonly date?: string | RegExp;
|
|
6
|
+
/** Match only empty (`true`) or only filled (`false`) ones. */
|
|
7
|
+
readonly empty?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Test harness for one `<wr-date-stamp>`: a date over a time.
|
|
11
|
+
*
|
|
12
|
+
* It answers from what the component renders: the two lines as text and the
|
|
13
|
+
* `datetime` attribute of the `<time>` around them. The lines are written in
|
|
14
|
+
* the locale and the time zone of the test's own providers, so a spec that
|
|
15
|
+
* must not depend on either asserts {@link getDateTime}, which is the instant.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const loader = TestbedHarnessEnvironment.loader(fixture);
|
|
20
|
+
* const created = await loader.getHarness(WrDateStampHarness);
|
|
21
|
+
*
|
|
22
|
+
* expect(await created.getDateTime()).toBe('2026-11-12T08:45:00.000Z');
|
|
23
|
+
* expect(await created.getTime()).toBe('13:45');
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @see https://ngwr.dev/guides/testing
|
|
27
|
+
*/
|
|
28
|
+
export declare class WrDateStampHarness extends ComponentHarness {
|
|
29
|
+
static hostSelector: string;
|
|
30
|
+
/** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
|
|
31
|
+
static with(options?: WrDateStampHarnessFilters): HarnessPredicate<WrDateStampHarness>;
|
|
32
|
+
private readonly time;
|
|
33
|
+
/** The first line, or `null` when the stamp is empty or `todayTimeOnly` shows a value from today. */
|
|
34
|
+
getDate(): Promise<string | null>;
|
|
35
|
+
/** The second line, or `null` when the stamp is empty or shows a date-only value. */
|
|
36
|
+
getTime(): Promise<string | null>;
|
|
37
|
+
/**
|
|
38
|
+
* The `datetime` attribute: the instant in ISO 8601 (UTC), or `yyyy-MM-dd` for a
|
|
39
|
+
* date-only value. `null` when the stamp is empty.
|
|
40
|
+
*/
|
|
41
|
+
getDateTime(): Promise<string | null>;
|
|
42
|
+
/** Whether the value is empty: no `<time>`, the placeholder in its place. */
|
|
43
|
+
isEmpty(): Promise<boolean>;
|
|
44
|
+
/** The placeholder an empty value shows (`emptyLabel`). Throws when there is a value. */
|
|
45
|
+
getEmptyText(): Promise<string>;
|
|
46
|
+
}
|
|
47
|
+
export type { WrDateStampHarnessFilters };
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { WrDateFormat, WrEpochUnit } from "ngwr/date";
|
|
3
|
+
interface Stamp {
|
|
4
|
+
readonly iso: string;
|
|
5
|
+
readonly date: string | null;
|
|
6
|
+
readonly time: string | null;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A moment in two lines, for a table cell: the date over the time.
|
|
10
|
+
*
|
|
11
|
+
* Both lines are written by the date adapter, so they are in the interface
|
|
12
|
+
* language and, for an instant, on the wall clock of
|
|
13
|
+
* `withDates({ timeZone })`, and they follow both at runtime. The value is read
|
|
14
|
+
* as `wrDate` reads it: a `Date`, an epoch number or a string, under the
|
|
15
|
+
* `epochUnit` and `zonelessIn` of `withDates()`. A date-only string
|
|
16
|
+
* (`'2026-11-12'`) is a day, so it shows the date line alone and does not
|
|
17
|
+
* shift with the zone.
|
|
18
|
+
*
|
|
19
|
+
* `withDates({ stamp })` sets the formats, `todayTimeOnly` and `seconds` for
|
|
20
|
+
* every stamp of the app; an input set here wins.
|
|
21
|
+
*
|
|
22
|
+
* The lines sit in one `<time>` whose `datetime` is the instant in ISO 8601,
|
|
23
|
+
* or the day for a date-only string. `null`, `undefined`, `''` and a value
|
|
24
|
+
* that is not a date are empty: the component shows `emptyLabel`.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```html
|
|
28
|
+
* <wr-date-stamp [value]="row.createdAt" />
|
|
29
|
+
* <wr-date-stamp [value]="row.createdAt" dateFormat="d MMM yyyy" timeFormat="time24hSeconds" />
|
|
30
|
+
* <wr-date-stamp [value]="message.sentAt" todayTimeOnly seconds />
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @see https://ngwr.dev/reference/components/date-stamp
|
|
34
|
+
*/
|
|
35
|
+
export declare class WrDateStamp {
|
|
36
|
+
constructor();
|
|
37
|
+
private readonly defaults;
|
|
38
|
+
/**
|
|
39
|
+
* The moment shown: a `Date`, an epoch number, or a string `wrParseDate`
|
|
40
|
+
* reads. `null`, `undefined`, `''` and a value that is not a date are empty.
|
|
41
|
+
*
|
|
42
|
+
* @default null
|
|
43
|
+
*/
|
|
44
|
+
readonly value: import("@angular/core").InputSignal<string | number | Date | null | undefined>;
|
|
45
|
+
/**
|
|
46
|
+
* Format of the first line: a named key or a token string (`'d MMM yyyy'`).
|
|
47
|
+
* `withDates({ stamp })` changes the default.
|
|
48
|
+
*
|
|
49
|
+
* @default 'mediumDate'
|
|
50
|
+
*/
|
|
51
|
+
readonly dateFormat: import("@angular/core").InputSignal<WrDateFormat | (string & {})>;
|
|
52
|
+
/**
|
|
53
|
+
* Format of the second line: a named key (`'time24hSeconds'`) or a token
|
|
54
|
+
* string (`'HH:mm'`). `withDates({ stamp })` changes the default.
|
|
55
|
+
*
|
|
56
|
+
* @default 'time'
|
|
57
|
+
*/
|
|
58
|
+
readonly timeFormat: import("@angular/core").InputSignal<WrDateFormat | (string & {})>;
|
|
59
|
+
/**
|
|
60
|
+
* Write the seconds in the time line: `'time'` is read as `'timeSeconds'`
|
|
61
|
+
* and `'HH:mm'` as `'HH:mm:ss'`. A format that already has them is left
|
|
62
|
+
* alone. `withDates({ stamp })` changes the default.
|
|
63
|
+
*
|
|
64
|
+
* @default false
|
|
65
|
+
*/
|
|
66
|
+
readonly seconds: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
67
|
+
/**
|
|
68
|
+
* Show the time alone for a value from today. Today is the day in the
|
|
69
|
+
* display zone, read when the stamp renders: one left on screen past
|
|
70
|
+
* midnight keeps its single line. A date-only value keeps its date.
|
|
71
|
+
* `withDates({ stamp })` changes the default.
|
|
72
|
+
*
|
|
73
|
+
* @default false
|
|
74
|
+
*/
|
|
75
|
+
readonly todayTimeOnly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
76
|
+
/**
|
|
77
|
+
* What a number in `value` counts since the epoch: `'ms'`, `'us'`, `'s'` or
|
|
78
|
+
* `'auto'`, by size. `null` follows `withDates({ epochUnit })`.
|
|
79
|
+
*
|
|
80
|
+
* @default null
|
|
81
|
+
*/
|
|
82
|
+
readonly epochUnit: import("@angular/core").InputSignal<WrEpochUnit | null>;
|
|
83
|
+
/** What stands in for an empty value. Falls back to `copyValue.empty`, then `'-'`. */
|
|
84
|
+
readonly emptyLabel: import("@angular/core").InputSignal<string | null>;
|
|
85
|
+
protected readonly resolvedEmptyLabel: import("@angular/core").Signal<string>;
|
|
86
|
+
private readonly adapter;
|
|
87
|
+
protected readonly parts: import("@angular/core").Signal<Stamp | null>;
|
|
88
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrDateStamp, never>;
|
|
89
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WrDateStamp, "wr-date-stamp", never, {
|
|
90
|
+
"value": {
|
|
91
|
+
"alias": "value";
|
|
92
|
+
"required": false;
|
|
93
|
+
"isSignal": true;
|
|
94
|
+
};
|
|
95
|
+
"dateFormat": {
|
|
96
|
+
"alias": "dateFormat";
|
|
97
|
+
"required": false;
|
|
98
|
+
"isSignal": true;
|
|
99
|
+
};
|
|
100
|
+
"timeFormat": {
|
|
101
|
+
"alias": "timeFormat";
|
|
102
|
+
"required": false;
|
|
103
|
+
"isSignal": true;
|
|
104
|
+
};
|
|
105
|
+
"seconds": {
|
|
106
|
+
"alias": "seconds";
|
|
107
|
+
"required": false;
|
|
108
|
+
"isSignal": true;
|
|
109
|
+
};
|
|
110
|
+
"todayTimeOnly": {
|
|
111
|
+
"alias": "todayTimeOnly";
|
|
112
|
+
"required": false;
|
|
113
|
+
"isSignal": true;
|
|
114
|
+
};
|
|
115
|
+
"epochUnit": {
|
|
116
|
+
"alias": "epochUnit";
|
|
117
|
+
"required": false;
|
|
118
|
+
"isSignal": true;
|
|
119
|
+
};
|
|
120
|
+
"emptyLabel": {
|
|
121
|
+
"alias": "emptyLabel";
|
|
122
|
+
"required": false;
|
|
123
|
+
"isSignal": true;
|
|
124
|
+
};
|
|
125
|
+
}, {}, never, never, true, never>;
|
|
126
|
+
}
|
|
127
|
+
export {};
|