ngwr 10.1.0 → 10.2.1
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/alert/styles/_index.scss +7 -3
- package/breadcrumbs/styles/_index.scss +1 -1
- package/dialog/styles/_index.scss +31 -0
- package/fesm2022/ngwr-action-sheet.mjs +3 -3
- package/fesm2022/ngwr-affix.mjs +3 -3
- package/fesm2022/ngwr-alert.mjs +3 -3
- package/fesm2022/ngwr-anchor.mjs +3 -3
- package/fesm2022/ngwr-aurora.mjs +3 -3
- package/fesm2022/ngwr-avatar.mjs +3 -3
- package/fesm2022/ngwr-back-top.mjs +3 -3
- package/fesm2022/ngwr-badge.mjs +6 -6
- package/fesm2022/ngwr-bar-chart.mjs +3 -3
- package/fesm2022/ngwr-blur-text.mjs +3 -3
- package/fesm2022/ngwr-border-glow.mjs +4 -4
- package/fesm2022/ngwr-breadcrumbs.mjs +9 -8
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-burger.mjs +3 -3
- package/fesm2022/ngwr-button.mjs +59 -11
- package/fesm2022/ngwr-button.mjs.map +1 -1
- package/fesm2022/ngwr-calendar-heatmap.mjs +3 -3
- package/fesm2022/ngwr-calendar.mjs +88 -8
- package/fesm2022/ngwr-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-card.mjs +10 -10
- package/fesm2022/ngwr-carousel.mjs +6 -6
- package/fesm2022/ngwr-cascader.mjs +4 -4
- package/fesm2022/ngwr-checkbox.mjs +6 -6
- package/fesm2022/ngwr-circular-text.mjs +4 -4
- package/fesm2022/ngwr-click-spark.mjs +3 -3
- package/fesm2022/ngwr-clipboard.mjs +18 -4
- package/fesm2022/ngwr-clipboard.mjs.map +1 -1
- package/fesm2022/ngwr-collapse.mjs +9 -9
- package/fesm2022/ngwr-color-picker.mjs +6 -6
- package/fesm2022/ngwr-command-palette.mjs +3 -3
- package/fesm2022/ngwr-compare.mjs +3 -3
- package/fesm2022/ngwr-confetti.mjs +3 -3
- package/fesm2022/ngwr-context-menu.mjs +12 -12
- package/fesm2022/ngwr-cookie.mjs +3 -3
- package/fesm2022/ngwr-counter.mjs +6 -6
- package/fesm2022/ngwr-date-adapter-fns.mjs +3 -3
- package/fesm2022/ngwr-date-adapter-luxon.mjs +3 -3
- package/fesm2022/ngwr-date-adapter.mjs +3 -3
- package/fesm2022/ngwr-date-picker.mjs +336 -54
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-decrypt-text.mjs +3 -3
- package/fesm2022/ngwr-density.mjs +6 -6
- package/fesm2022/ngwr-descriptions.mjs +6 -6
- package/fesm2022/ngwr-dialog.mjs +33 -17
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-directives.mjs +12 -12
- package/fesm2022/ngwr-divider.mjs +3 -3
- package/fesm2022/ngwr-donut-chart.mjs +3 -3
- package/fesm2022/ngwr-drag-drop.mjs +7 -7
- package/fesm2022/ngwr-drawer.mjs +37 -19
- package/fesm2022/ngwr-drawer.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +9 -9
- package/fesm2022/ngwr-empty.mjs +3 -3
- package/fesm2022/ngwr-event-calendar.mjs +6 -6
- package/fesm2022/ngwr-falling-text.mjs +4 -4
- package/fesm2022/ngwr-file-upload.mjs +3 -3
- package/fesm2022/ngwr-form.mjs +9 -9
- package/fesm2022/ngwr-fuzzy-text.mjs +3 -3
- package/fesm2022/ngwr-gauge.mjs +3 -3
- package/fesm2022/ngwr-glitch-text.mjs +4 -4
- package/fesm2022/ngwr-gradient-text.mjs +4 -4
- package/fesm2022/ngwr-hotkey.mjs +31 -10
- package/fesm2022/ngwr-hotkey.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +11 -0
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +11 -0
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +9 -9
- package/fesm2022/ngwr-icon.mjs +6 -6
- package/fesm2022/ngwr-image-cropper.mjs +3 -3
- package/fesm2022/ngwr-input-number.mjs +3 -3
- package/fesm2022/ngwr-input-otp.mjs +3 -3
- package/fesm2022/ngwr-input.mjs +15 -15
- package/fesm2022/ngwr-keyboard.mjs +3 -3
- package/fesm2022/ngwr-knob.mjs +3 -3
- package/fesm2022/ngwr-layout.mjs +15 -15
- package/fesm2022/ngwr-lightbox.mjs +4 -4
- package/fesm2022/ngwr-line-chart.mjs +3 -3
- package/fesm2022/ngwr-list.mjs +14 -9
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-loading-bar.mjs +71 -31
- package/fesm2022/ngwr-loading-bar.mjs.map +1 -1
- package/fesm2022/ngwr-marquee.mjs +4 -4
- package/fesm2022/ngwr-media.mjs +3 -3
- package/fesm2022/ngwr-mention.mjs +6 -6
- package/fesm2022/ngwr-meta.mjs +6 -6
- package/fesm2022/ngwr-meter-group.mjs +3 -3
- package/fesm2022/ngwr-overlay.mjs +16 -7
- package/fesm2022/ngwr-overlay.mjs.map +1 -1
- package/fesm2022/ngwr-page-header.mjs +3 -3
- package/fesm2022/ngwr-pagination.mjs +13 -9
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +21 -21
- package/fesm2022/ngwr-platform.mjs +9 -9
- package/fesm2022/ngwr-popconfirm.mjs +6 -6
- package/fesm2022/ngwr-popover.mjs +28 -8
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-progress.mjs +3 -3
- package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
- package/fesm2022/ngwr-qr.mjs +3 -3
- package/fesm2022/ngwr-radio.mjs +6 -6
- package/fesm2022/ngwr-rating.mjs +3 -3
- package/fesm2022/ngwr-result.mjs +12 -12
- package/fesm2022/ngwr-rotating-text.mjs +3 -3
- package/fesm2022/ngwr-scroll.mjs +3 -3
- package/fesm2022/ngwr-segmented.mjs +3 -3
- package/fesm2022/ngwr-select.mjs +9 -9
- package/fesm2022/ngwr-shiny-text.mjs +7 -7
- package/fesm2022/ngwr-sidebar.mjs +3 -3
- package/fesm2022/ngwr-skeleton.mjs +3 -3
- package/fesm2022/ngwr-slider.mjs +3 -3
- package/fesm2022/ngwr-sparkline.mjs +3 -3
- package/fesm2022/ngwr-speed-dial.mjs +3 -3
- package/fesm2022/ngwr-spinner.mjs +3 -3
- package/fesm2022/ngwr-splash-cursor.mjs +3 -3
- package/fesm2022/ngwr-split-text.mjs +3 -3
- package/fesm2022/ngwr-splitter.mjs +3 -3
- package/fesm2022/ngwr-spotlight-card.mjs +7 -7
- package/fesm2022/ngwr-squircle.mjs +6 -6
- package/fesm2022/ngwr-star-border.mjs +4 -4
- package/fesm2022/ngwr-statistic.mjs +9 -9
- package/fesm2022/ngwr-stepper.mjs +6 -6
- package/fesm2022/ngwr-storage.mjs +27 -17
- package/fesm2022/ngwr-storage.mjs.map +1 -1
- package/fesm2022/ngwr-switch.mjs +3 -3
- package/fesm2022/ngwr-table.mjs +19 -31
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tabs.mjs +6 -6
- package/fesm2022/ngwr-textarea.mjs +3 -3
- package/fesm2022/ngwr-theme.mjs +3 -3
- package/fesm2022/ngwr-tilt-card.mjs +7 -7
- package/fesm2022/ngwr-timeline.mjs +6 -6
- package/fesm2022/ngwr-toast.mjs +54 -20
- package/fesm2022/ngwr-toast.mjs.map +1 -1
- package/fesm2022/ngwr-toolbar.mjs +3 -3
- package/fesm2022/ngwr-tour.mjs +6 -6
- package/fesm2022/ngwr-transfer.mjs +3 -3
- package/fesm2022/ngwr-tree.mjs +3 -3
- package/fesm2022/ngwr-typewriter.mjs +4 -4
- package/fesm2022/ngwr-typography.mjs +3 -3
- package/fesm2022/ngwr-version.mjs +1 -1
- package/fesm2022/ngwr-version.mjs.map +1 -1
- package/fesm2022/ngwr-virtual-scroll.mjs +4 -4
- package/fesm2022/ngwr-waves.mjs +4 -4
- package/fesm2022/ngwr-window.mjs +80 -18
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/i18n/en.json +8 -0
- package/i18n/ru.json +8 -0
- package/package.json +1 -1
- package/sidebar/styles/_index.scss +3 -3
- package/stepper/styles/_index.scss +3 -3
- package/tabs/styles/_index.scss +1 -1
- package/theme/styles/_colors.scss +29 -8
- package/types/ngwr-button.d.ts +32 -0
- package/types/ngwr-calendar.d.ts +27 -1
- package/types/ngwr-clipboard.d.ts +8 -1
- package/types/ngwr-date-picker.d.ts +124 -8
- package/types/ngwr-dialog.d.ts +13 -0
- package/types/ngwr-drawer.d.ts +15 -0
- package/types/ngwr-hotkey.d.ts +2 -0
- package/types/ngwr-list.d.ts +7 -2
- package/types/ngwr-loading-bar.d.ts +4 -7
- package/types/ngwr-pagination.d.ts +6 -1
- package/types/ngwr-popover.d.ts +10 -2
- package/types/ngwr-storage.d.ts +10 -1
- package/types/ngwr-toast.d.ts +19 -4
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr-window.d.ts +23 -2
- package/typography/styles/_index.scss +2 -2
package/types/ngwr-toast.d.ts
CHANGED
|
@@ -39,7 +39,11 @@ interface WrToastOptions {
|
|
|
39
39
|
readonly duration?: number;
|
|
40
40
|
/** Show a close (×) button. @default true */
|
|
41
41
|
readonly dismissible?: boolean;
|
|
42
|
-
/**
|
|
42
|
+
/**
|
|
43
|
+
* Corner this toast opens in. The whole stack shares one host, so this is
|
|
44
|
+
* not per-toast: passing a different corner relocates the toasts already on
|
|
45
|
+
* screen along with this one.
|
|
46
|
+
*/
|
|
43
47
|
readonly position?: WrToastPosition;
|
|
44
48
|
/** Override the progress bar visibility for this toast only. */
|
|
45
49
|
readonly showProgress?: boolean;
|
|
@@ -90,7 +94,16 @@ interface WrToastConfig {
|
|
|
90
94
|
readonly showCloseAll: boolean;
|
|
91
95
|
/** Minimum number of stacked toasts before "Close all" appears. @default 2 */
|
|
92
96
|
readonly closeAllThreshold: number;
|
|
93
|
-
/**
|
|
97
|
+
/**
|
|
98
|
+
* Maximum toasts visible at once. `0` = unlimited.
|
|
99
|
+
*
|
|
100
|
+
* Nothing on screen is taken away to make room: once the cap is reached the
|
|
101
|
+
* *newest* toast waits in a queue, and queued toasts are promoted FIFO as
|
|
102
|
+
* visible ones dismiss. A queued toast's auto-dismiss countdown only starts
|
|
103
|
+
* when it becomes visible, so it can never expire unseen.
|
|
104
|
+
*
|
|
105
|
+
* @default 5
|
|
106
|
+
*/
|
|
94
107
|
readonly maxStack: number;
|
|
95
108
|
/** Labels rendered in the UI. Keep short — meant to be overridden for i18n. */
|
|
96
109
|
readonly labels: {
|
|
@@ -195,13 +208,15 @@ declare class WrToast {
|
|
|
195
208
|
* position: 'bottom-end',
|
|
196
209
|
* showCopy: true,
|
|
197
210
|
* maxStack: 3,
|
|
198
|
-
* labels: { close: 'Закрыть'
|
|
211
|
+
* labels: { close: 'Закрыть' },
|
|
199
212
|
* }),
|
|
200
213
|
* ],
|
|
201
214
|
* });
|
|
202
215
|
* ```
|
|
203
216
|
*/
|
|
204
|
-
declare function provideWrToastConfig(config: Partial<WrToastConfig
|
|
217
|
+
declare function provideWrToastConfig(config: Partial<Omit<WrToastConfig, 'labels'>> & {
|
|
218
|
+
readonly labels?: Partial<WrToastConfig['labels']>;
|
|
219
|
+
}): EnvironmentProviders;
|
|
205
220
|
|
|
206
221
|
/**
|
|
207
222
|
* @license
|
package/types/ngwr-version.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ import { InjectionToken } from '@angular/core';
|
|
|
16
16
|
* Distinct from `Version` exported by `@angular/core`, which reports the
|
|
17
17
|
* loaded Angular runtime version (e.g. `'22.0.0'`), not ngwr's.
|
|
18
18
|
*/
|
|
19
|
-
declare const NGWR_VERSION = "10.1
|
|
19
|
+
declare const NGWR_VERSION = "10.2.1";
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* @license
|
package/types/ngwr-window.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { ComponentRef, WritableSignal, Signal, InjectionToken } from '@angular/core';
|
|
3
3
|
import { OverlayRef } from '@angular/cdk/overlay';
|
|
4
|
-
import { Subject } from 'rxjs';
|
|
4
|
+
import { ReplaySubject, Subject } from 'rxjs';
|
|
5
5
|
import { ComponentType } from '@angular/cdk/portal';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -193,7 +193,15 @@ declare class WrWindowRef<C, R = unknown> {
|
|
|
193
193
|
/** Stable id — used by the taskbar, workspace save, and DI. */
|
|
194
194
|
readonly id: string;
|
|
195
195
|
/** @internal — emits the close result once and completes. */
|
|
196
|
-
|
|
196
|
+
/**
|
|
197
|
+
* A `ReplaySubject`, not a plain `Subject`, so the result survives a late
|
|
198
|
+
* subscriber — the same reasoning `WrDialogRef` already carries. A caller
|
|
199
|
+
* that holds the ref and awaits `afterClosed()` after any intervening
|
|
200
|
+
* `await` subscribes to an already-completed stream, and a plain Subject
|
|
201
|
+
* hands it nothing but `complete`: the promise resolved `undefined` and a
|
|
202
|
+
* saved result was indistinguishable from a dismissal.
|
|
203
|
+
*/
|
|
204
|
+
readonly _closed: ReplaySubject<R | undefined>;
|
|
197
205
|
/** @internal — emits whenever the visual state changes. */
|
|
198
206
|
readonly _stateChanged: Subject<WrWindowState>;
|
|
199
207
|
/** @internal — set by the container right after attach. */
|
|
@@ -212,6 +220,19 @@ declare class WrWindowRef<C, R = unknown> {
|
|
|
212
220
|
/** @internal */ readonly _width: WritableSignal<number>;
|
|
213
221
|
/** @internal */ readonly _height: WritableSignal<number>;
|
|
214
222
|
/** @internal */ readonly _z: WritableSignal<number>;
|
|
223
|
+
/**
|
|
224
|
+
* The geometry the USER chose, as opposed to the one the current state
|
|
225
|
+
* imposes. `_x` and friends mirror the window's EFFECTIVE values — a
|
|
226
|
+
* maximized window reports the viewport, a minimized one reports its
|
|
227
|
+
* collapsed header height — which is right for anything drawing the window
|
|
228
|
+
* and wrong for anything persisting it.
|
|
229
|
+
*
|
|
230
|
+
* @internal
|
|
231
|
+
*/
|
|
232
|
+
readonly _rawX: WritableSignal<number>;
|
|
233
|
+
/** @internal */ readonly _rawY: WritableSignal<number>;
|
|
234
|
+
/** @internal */ readonly _rawWidth: WritableSignal<number>;
|
|
235
|
+
/** @internal */ readonly _rawHeight: WritableSignal<number>;
|
|
215
236
|
/** @internal */ readonly _title: WritableSignal<string>;
|
|
216
237
|
/** Window state. */
|
|
217
238
|
readonly state: Signal<WrWindowState>;
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
// hover. Add your own `underline` class for the always-underlined look.
|
|
154
154
|
&--link {
|
|
155
155
|
font-weight: var(--wr-font-weight-medium);
|
|
156
|
-
color: var(--wr-color-primary);
|
|
156
|
+
color: var(--wr-color-primary-ink);
|
|
157
157
|
text-decoration: none;
|
|
158
158
|
text-underline-offset: 2px;
|
|
159
159
|
cursor: pointer;
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
color: var(--wr-color-on-surface-muted);
|
|
172
172
|
}
|
|
173
173
|
&--tone-primary {
|
|
174
|
-
color: var(--wr-color-primary);
|
|
174
|
+
color: var(--wr-color-primary-ink);
|
|
175
175
|
}
|
|
176
176
|
&--tone-success {
|
|
177
177
|
color: var(--wr-color-success-ink);
|