@rivet-health/design-system 41.3.1 → 42.0.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.
|
@@ -7,7 +7,6 @@ import { timeDay, timeDays, timeMonth, timeMonths, timeSunday, timeWeek, timeYea
|
|
|
7
7
|
import { cloneDeep, debounce, defaultsDeep, difference, flattenDeep, isEqual, isNumber, orderBy, partition, range, sortBy, sum, sumBy, toInteger, union, uniq, uniqueId } from "lodash";
|
|
8
8
|
import { timeFormat, utcFormat } from "d3-time-format";
|
|
9
9
|
import Fuse from "fuse.js";
|
|
10
|
-
import { animate, group, query, style, transition, trigger } from "@angular/animations";
|
|
11
10
|
import { distinctUntilChanged as distinctUntilChanged$1, map as map$1 } from "rxjs/operators";
|
|
12
11
|
import * as i2 from "@angular/router";
|
|
13
12
|
import { RouterModule } from "@angular/router";
|
|
@@ -10267,56 +10266,22 @@ var RivViews;
|
|
|
10267
10266
|
RivViews.toSharedUsers = toSharedUsers;
|
|
10268
10267
|
})(RivViews || (RivViews = {}));
|
|
10269
10268
|
const ANIMATION_CONSTANTS = {
|
|
10270
|
-
SIDE_SHEET: {
|
|
10271
|
-
|
|
10272
|
-
|
|
10273
|
-
|
|
10274
|
-
},
|
|
10275
|
-
TOAST: {
|
|
10276
|
-
HOOK: "toast",
|
|
10277
|
-
HIDDEN: {
|
|
10278
|
-
opacity: 0,
|
|
10279
|
-
transform: "translateY(calc(var(--size-xsmall) * -1))",
|
|
10280
|
-
filter: "blur(var(--size-xsmall))"
|
|
10281
|
-
},
|
|
10282
|
-
VISIBLE: {
|
|
10283
|
-
opacity: 1,
|
|
10284
|
-
transform: "translateY(0px)",
|
|
10285
|
-
filter: "none"
|
|
10286
|
-
}
|
|
10287
|
-
},
|
|
10288
|
-
MODAL: {
|
|
10289
|
-
HOOK: "modal",
|
|
10290
|
-
HIDDEN: { opacity: 0 },
|
|
10291
|
-
VISIBLE: { opacity: 1 }
|
|
10292
|
-
},
|
|
10293
|
-
DIALOG: {
|
|
10294
|
-
HOOK: "dialog",
|
|
10295
|
-
HIDDEN: {
|
|
10296
|
-
transform: "translateY(var(--size-large))",
|
|
10297
|
-
filter: "blur(var(--size-xsmall))"
|
|
10298
|
-
},
|
|
10299
|
-
VISIBLE: {
|
|
10300
|
-
transform: "translateY(0px)",
|
|
10301
|
-
filter: "none"
|
|
10302
|
-
}
|
|
10303
|
-
}
|
|
10269
|
+
SIDE_SHEET: { HOOK: "side-sheet" },
|
|
10270
|
+
TOAST: { HOOK: "toast" },
|
|
10271
|
+
MODAL: { HOOK: "modal" },
|
|
10272
|
+
DIALOG: { HOOK: "dialog" }
|
|
10304
10273
|
};
|
|
10305
|
-
function createComponentAnimation(config) {
|
|
10306
|
-
return {
|
|
10307
|
-
enter: query(`[data-animation-hook="${config.HOOK}"]`, [style(config.HIDDEN), animate("200ms ease-in-out", style(config.VISIBLE))], { optional: true }),
|
|
10308
|
-
leave: query(`[data-animation-hook="${config.HOOK}"]`, [animate("150ms linear", style(config.HIDDEN))], { optional: true })
|
|
10309
|
-
};
|
|
10310
|
-
}
|
|
10311
|
-
const sideSheetAnimation = createComponentAnimation(ANIMATION_CONSTANTS.SIDE_SHEET);
|
|
10312
|
-
const toastAnimation = createComponentAnimation(ANIMATION_CONSTANTS.TOAST);
|
|
10313
|
-
const modalAnimation = createComponentAnimation(ANIMATION_CONSTANTS.MODAL);
|
|
10314
|
-
const dialogAnimation = createComponentAnimation(ANIMATION_CONSTANTS.DIALOG);
|
|
10315
10274
|
var OverlayOutletComponent = class OverlayOutletComponent {
|
|
10316
10275
|
constructor(overlayService) {
|
|
10317
10276
|
this.overlayService = overlayService;
|
|
10318
10277
|
this.trackOverlay = (_, { key }) => key;
|
|
10319
10278
|
}
|
|
10279
|
+
enter({ target }) {
|
|
10280
|
+
OverlayOutletComponent.animateHooks(target, "entering");
|
|
10281
|
+
}
|
|
10282
|
+
leave({ target, animationComplete }) {
|
|
10283
|
+
OverlayOutletComponent.animateHooks(target, "leaving").finally(animationComplete);
|
|
10284
|
+
}
|
|
10320
10285
|
static {
|
|
10321
10286
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
10322
10287
|
minVersion: "12.0.0",
|
|
@@ -10335,7 +10300,7 @@ var OverlayOutletComponent = class OverlayOutletComponent {
|
|
|
10335
10300
|
isStandalone: false,
|
|
10336
10301
|
selector: "riv-overlay-outlet",
|
|
10337
10302
|
ngImport: i0,
|
|
10338
|
-
template: "<
|
|
10303
|
+
template: "<div\n *ngFor=\"\n let overlay of overlayService.overlays | async | keyvalue;\n trackBy: trackOverlay\n \"\n class=\"overlay-container\"\n (animate.enter)=\"enter($event)\"\n (animate.leave)=\"leave($event)\"\n>\n <ng-container *ngTemplateOutlet=\"overlay.value\"></ng-container>\n</div>\n",
|
|
10339
10304
|
styles: [".overlay-container{display:contents;position:relative;z-index:var(--modal-z-index)}\n"],
|
|
10340
10305
|
dependencies: [
|
|
10341
10306
|
{
|
|
@@ -10369,17 +10334,6 @@ var OverlayOutletComponent = class OverlayOutletComponent {
|
|
|
10369
10334
|
name: "keyvalue"
|
|
10370
10335
|
}
|
|
10371
10336
|
],
|
|
10372
|
-
animations: [trigger("animate", [transition(":enter", [group([
|
|
10373
|
-
sideSheetAnimation.enter,
|
|
10374
|
-
toastAnimation.enter,
|
|
10375
|
-
modalAnimation.enter,
|
|
10376
|
-
dialogAnimation.enter
|
|
10377
|
-
])]), transition(":leave", [group([
|
|
10378
|
-
sideSheetAnimation.leave,
|
|
10379
|
-
toastAnimation.leave,
|
|
10380
|
-
modalAnimation.leave,
|
|
10381
|
-
dialogAnimation.leave
|
|
10382
|
-
])])])],
|
|
10383
10337
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
10384
10338
|
});
|
|
10385
10339
|
}
|
|
@@ -10392,26 +10346,24 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
10392
10346
|
decorators: [{
|
|
10393
10347
|
type: Component,
|
|
10394
10348
|
args: [{
|
|
10395
|
-
animations: [trigger("animate", [transition(":enter", [group([
|
|
10396
|
-
sideSheetAnimation.enter,
|
|
10397
|
-
toastAnimation.enter,
|
|
10398
|
-
modalAnimation.enter,
|
|
10399
|
-
dialogAnimation.enter
|
|
10400
|
-
])]), transition(":leave", [group([
|
|
10401
|
-
sideSheetAnimation.leave,
|
|
10402
|
-
toastAnimation.leave,
|
|
10403
|
-
modalAnimation.leave,
|
|
10404
|
-
dialogAnimation.leave
|
|
10405
|
-
])])])],
|
|
10406
10349
|
selector: "riv-overlay-outlet",
|
|
10407
10350
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10408
10351
|
standalone: false,
|
|
10409
|
-
template: "<
|
|
10352
|
+
template: "<div\n *ngFor=\"\n let overlay of overlayService.overlays | async | keyvalue;\n trackBy: trackOverlay\n \"\n class=\"overlay-container\"\n (animate.enter)=\"enter($event)\"\n (animate.leave)=\"leave($event)\"\n>\n <ng-container *ngTemplateOutlet=\"overlay.value\"></ng-container>\n</div>\n",
|
|
10410
10353
|
styles: [".overlay-container{display:contents;position:relative;z-index:var(--modal-z-index)}\n"]
|
|
10411
10354
|
}]
|
|
10412
10355
|
}],
|
|
10413
10356
|
ctorParameters: () => [{ type: OverlayService }]
|
|
10414
10357
|
});
|
|
10358
|
+
(function(OverlayOutletComponent) {
|
|
10359
|
+
async function animateHooks(overlay, className) {
|
|
10360
|
+
const hooks = Array.from(overlay.querySelectorAll("[data-animation-hook]"));
|
|
10361
|
+
hooks.forEach((hook) => hook.classList.add(className));
|
|
10362
|
+
await Promise.allSettled(hooks.flatMap((hook) => hook.getAnimations?.() ?? []).map(({ finished }) => finished));
|
|
10363
|
+
hooks.forEach((hook) => hook.classList.remove(className));
|
|
10364
|
+
}
|
|
10365
|
+
OverlayOutletComponent.animateHooks = animateHooks;
|
|
10366
|
+
})(OverlayOutletComponent || (OverlayOutletComponent = {}));
|
|
10415
10367
|
var ModalComponent = class ModalComponent {
|
|
10416
10368
|
constructor() {
|
|
10417
10369
|
this.obscure = false;
|
|
@@ -10446,7 +10398,7 @@ var ModalComponent = class ModalComponent {
|
|
|
10446
10398
|
outputs: { close: "close" },
|
|
10447
10399
|
ngImport: i0,
|
|
10448
10400
|
template: "<div\n #scrim\n *riv-overlay\n [attr.data-animation-hook]=\"hook\"\n [rivLockScroll]=\"true\"\n class=\"scrim\"\n [class.obscure]=\"obscure\"\n [style.top.px]=\"topOffset\"\n (click)=\"scrimClick($event)\"\n>\n <ng-content></ng-content>\n</div>\n",
|
|
10449
|
-
styles: [".scrim{position:fixed;z-index:var(--callout-z-index);cursor:default;inset:0}.scrim.obscure{background-color:var(--modal-scrim)}\n"],
|
|
10401
|
+
styles: [".scrim{position:fixed;z-index:var(--callout-z-index);cursor:default;inset:0}.scrim.obscure{background-color:var(--modal-scrim)}.scrim.entering{animation:scrim-enter var(--medium-transition)}.scrim.leaving{animation:scrim-leave .15s linear forwards}@keyframes scrim-enter{0%{opacity:0}}@keyframes scrim-leave{to{opacity:0}}\n"],
|
|
10450
10402
|
dependencies: [{
|
|
10451
10403
|
kind: "directive",
|
|
10452
10404
|
type: LockScrollDirective,
|
|
@@ -10473,7 +10425,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
10473
10425
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10474
10426
|
standalone: false,
|
|
10475
10427
|
template: "<div\n #scrim\n *riv-overlay\n [attr.data-animation-hook]=\"hook\"\n [rivLockScroll]=\"true\"\n class=\"scrim\"\n [class.obscure]=\"obscure\"\n [style.top.px]=\"topOffset\"\n (click)=\"scrimClick($event)\"\n>\n <ng-content></ng-content>\n</div>\n",
|
|
10476
|
-
styles: [".scrim{position:fixed;z-index:var(--callout-z-index);cursor:default;inset:0}.scrim.obscure{background-color:var(--modal-scrim)}\n"]
|
|
10428
|
+
styles: [".scrim{position:fixed;z-index:var(--callout-z-index);cursor:default;inset:0}.scrim.obscure{background-color:var(--modal-scrim)}.scrim.entering{animation:scrim-enter var(--medium-transition)}.scrim.leaving{animation:scrim-leave .15s linear forwards}@keyframes scrim-enter{0%{opacity:0}}@keyframes scrim-leave{to{opacity:0}}\n"]
|
|
10477
10429
|
}]
|
|
10478
10430
|
}],
|
|
10479
10431
|
propDecorators: {
|
|
@@ -10516,7 +10468,7 @@ var SideSheetComponent = class SideSheetComponent {
|
|
|
10516
10468
|
outputs: { close: "close" },
|
|
10517
10469
|
ngImport: i0,
|
|
10518
10470
|
template: "<riv-modal (close)=\"close.emit()\" [obscure]=\"obscure\" [topOffset]=\"topOffset\">\n <div\n [attr.data-animation-hook]=\"hook\"\n class=\"side-sheet\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"label ?? null\"\n [style.width]=\"width\"\n >\n <ng-content></ng-content>\n </div>\n</riv-modal>\n",
|
|
10519
|
-
styles: [".side-sheet{position:absolute;top:0;right:0;bottom:0;background-color:var(--surface-light-0);max-width:100vw;box-shadow:var(--depth-2)}\n"],
|
|
10471
|
+
styles: [".side-sheet{position:absolute;top:0;right:0;bottom:0;background-color:var(--surface-light-0);max-width:100vw;box-shadow:var(--depth-2)}.side-sheet.entering{animation:side-sheet-enter var(--medium-transition)}.side-sheet.leaving{animation:side-sheet-leave .15s linear forwards}@keyframes side-sheet-enter{0%{transform:translate(100%)}}@keyframes side-sheet-leave{to{transform:translate(100%)}}\n"],
|
|
10520
10472
|
dependencies: [{
|
|
10521
10473
|
kind: "component",
|
|
10522
10474
|
type: ModalComponent,
|
|
@@ -10540,7 +10492,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
10540
10492
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10541
10493
|
standalone: false,
|
|
10542
10494
|
template: "<riv-modal (close)=\"close.emit()\" [obscure]=\"obscure\" [topOffset]=\"topOffset\">\n <div\n [attr.data-animation-hook]=\"hook\"\n class=\"side-sheet\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"label ?? null\"\n [style.width]=\"width\"\n >\n <ng-content></ng-content>\n </div>\n</riv-modal>\n",
|
|
10543
|
-
styles: [".side-sheet{position:absolute;top:0;right:0;bottom:0;background-color:var(--surface-light-0);max-width:100vw;box-shadow:var(--depth-2)}\n"]
|
|
10495
|
+
styles: [".side-sheet{position:absolute;top:0;right:0;bottom:0;background-color:var(--surface-light-0);max-width:100vw;box-shadow:var(--depth-2)}.side-sheet.entering{animation:side-sheet-enter var(--medium-transition)}.side-sheet.leaving{animation:side-sheet-leave .15s linear forwards}@keyframes side-sheet-enter{0%{transform:translate(100%)}}@keyframes side-sheet-leave{to{transform:translate(100%)}}\n"]
|
|
10544
10496
|
}]
|
|
10545
10497
|
}],
|
|
10546
10498
|
propDecorators: {
|
|
@@ -10645,7 +10597,7 @@ var DialogComponent = class DialogComponent {
|
|
|
10645
10597
|
host: { listeners: { "document:keydown": "handleKeydown($event)" } },
|
|
10646
10598
|
ngImport: i0,
|
|
10647
10599
|
template: "<riv-modal (close)=\"close.emit()\" [obscure]=\"true\">\n <div [attr.data-animation-hook]=\"hook\" class=\"wrapper\">\n <div\n class=\"dialog\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-labelledby]=\"title ? titleId : null\"\n [style.min-width]=\"minWidth\"\n >\n <header>\n <span class=\"title\" [id]=\"titleId\">\n {{ title }}\n </span>\n <button\n type=\"button\"\n rivButton\n [variant]=\"'ghost'\"\n [icon]=\"'X'\"\n (click)=\"close.emit()\"\n ></button>\n </header>\n <div class=\"body\" [class.custom]=\"customBody\">\n <ng-content></ng-content>\n </div>\n <div class=\"footer riv-dialog-footer\" [class.custom]=\"customFooter\">\n <ng-content select=\"footer\"></ng-content>\n </div>\n </div>\n </div>\n</riv-modal>\n",
|
|
10648
|
-
styles: [".wrapper{position:absolute;top:50%;left:50%}.dialog{transform:translate(-50%,-50%);border-radius:var(--border-radius-medium);border:var(--border-width) solid var(--border-light);display:flex;flex-direction:column;max-width:calc(100vw - var(--size-xlarge) * 2);max-height:calc(100vh - var(--size-xlarge) * 2);overflow:hidden}header{display:flex;justify-content:space-between;align-items:center;padding:0 var(--size-medium);gap:var(--size-medium);border-bottom:var(--border-width) solid var(--border-light);background-color:var(--surface-light-1);flex-shrink:0}.title{font:var(--title-04);padding:var(--size-large) 0}.body{background-color:var(--surface-light-0);overflow-y:auto;min-height:0}.body:not(.custom){padding:var(--size-large)}.footer{border-top:var(--border-width) solid var(--border-light);background-color:var(--surface-light-1);flex-shrink:0}.footer:not(:has(>footer)){display:none}\n"],
|
|
10600
|
+
styles: [".wrapper{position:absolute;top:50%;left:50%}.wrapper.entering{animation:dialog-enter var(--medium-transition)}.wrapper.leaving{animation:dialog-leave .15s linear forwards}@keyframes dialog-enter{0%{transform:translateY(var(--size-large));filter:blur(var(--size-xsmall))}}@keyframes dialog-leave{to{transform:translateY(var(--size-large));filter:blur(var(--size-xsmall))}}.dialog{transform:translate(-50%,-50%);border-radius:var(--border-radius-medium);border:var(--border-width) solid var(--border-light);display:flex;flex-direction:column;max-width:calc(100vw - var(--size-xlarge) * 2);max-height:calc(100vh - var(--size-xlarge) * 2);overflow:hidden}header{display:flex;justify-content:space-between;align-items:center;padding:0 var(--size-medium);gap:var(--size-medium);border-bottom:var(--border-width) solid var(--border-light);background-color:var(--surface-light-1);flex-shrink:0}.title{font:var(--title-04);padding:var(--size-large) 0}.body{background-color:var(--surface-light-0);overflow-y:auto;min-height:0}.body:not(.custom){padding:var(--size-large)}.footer{border-top:var(--border-width) solid var(--border-light);background-color:var(--surface-light-1);flex-shrink:0}.footer:not(:has(>footer)){display:none}\n"],
|
|
10649
10601
|
dependencies: [{
|
|
10650
10602
|
kind: "component",
|
|
10651
10603
|
type: ButtonComponent,
|
|
@@ -10684,7 +10636,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
10684
10636
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10685
10637
|
standalone: false,
|
|
10686
10638
|
template: "<riv-modal (close)=\"close.emit()\" [obscure]=\"true\">\n <div [attr.data-animation-hook]=\"hook\" class=\"wrapper\">\n <div\n class=\"dialog\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-labelledby]=\"title ? titleId : null\"\n [style.min-width]=\"minWidth\"\n >\n <header>\n <span class=\"title\" [id]=\"titleId\">\n {{ title }}\n </span>\n <button\n type=\"button\"\n rivButton\n [variant]=\"'ghost'\"\n [icon]=\"'X'\"\n (click)=\"close.emit()\"\n ></button>\n </header>\n <div class=\"body\" [class.custom]=\"customBody\">\n <ng-content></ng-content>\n </div>\n <div class=\"footer riv-dialog-footer\" [class.custom]=\"customFooter\">\n <ng-content select=\"footer\"></ng-content>\n </div>\n </div>\n </div>\n</riv-modal>\n",
|
|
10687
|
-
styles: [".wrapper{position:absolute;top:50%;left:50%}.dialog{transform:translate(-50%,-50%);border-radius:var(--border-radius-medium);border:var(--border-width) solid var(--border-light);display:flex;flex-direction:column;max-width:calc(100vw - var(--size-xlarge) * 2);max-height:calc(100vh - var(--size-xlarge) * 2);overflow:hidden}header{display:flex;justify-content:space-between;align-items:center;padding:0 var(--size-medium);gap:var(--size-medium);border-bottom:var(--border-width) solid var(--border-light);background-color:var(--surface-light-1);flex-shrink:0}.title{font:var(--title-04);padding:var(--size-large) 0}.body{background-color:var(--surface-light-0);overflow-y:auto;min-height:0}.body:not(.custom){padding:var(--size-large)}.footer{border-top:var(--border-width) solid var(--border-light);background-color:var(--surface-light-1);flex-shrink:0}.footer:not(:has(>footer)){display:none}\n"]
|
|
10639
|
+
styles: [".wrapper{position:absolute;top:50%;left:50%}.wrapper.entering{animation:dialog-enter var(--medium-transition)}.wrapper.leaving{animation:dialog-leave .15s linear forwards}@keyframes dialog-enter{0%{transform:translateY(var(--size-large));filter:blur(var(--size-xsmall))}}@keyframes dialog-leave{to{transform:translateY(var(--size-large));filter:blur(var(--size-xsmall))}}.dialog{transform:translate(-50%,-50%);border-radius:var(--border-radius-medium);border:var(--border-width) solid var(--border-light);display:flex;flex-direction:column;max-width:calc(100vw - var(--size-xlarge) * 2);max-height:calc(100vh - var(--size-xlarge) * 2);overflow:hidden}header{display:flex;justify-content:space-between;align-items:center;padding:0 var(--size-medium);gap:var(--size-medium);border-bottom:var(--border-width) solid var(--border-light);background-color:var(--surface-light-1);flex-shrink:0}.title{font:var(--title-04);padding:var(--size-large) 0}.body{background-color:var(--surface-light-0);overflow-y:auto;min-height:0}.body:not(.custom){padding:var(--size-large)}.footer{border-top:var(--border-width) solid var(--border-light);background-color:var(--surface-light-1);flex-shrink:0}.footer:not(:has(>footer)){display:none}\n"]
|
|
10688
10640
|
}]
|
|
10689
10641
|
}],
|
|
10690
10642
|
ctorParameters: () => [{ type: DialogStackService }],
|
|
@@ -11796,7 +11748,7 @@ var ToastComponent = class ToastComponent {
|
|
|
11796
11748
|
outputs: { close: "close" },
|
|
11797
11749
|
ngImport: i0,
|
|
11798
11750
|
template: "<div *riv-overlay class=\"wrapper\" [attr.data-animation-hook]=\"hook\">\n <div class=\"toast\" role=\"status\" [ngClass]=\"variant\">\n <riv-icon *ngIf=\"icon\" [name]=\"icon\" [size]=\"16\"></riv-icon>\n <div class=\"content\"><ng-content></ng-content></div>\n </div>\n</div>\n",
|
|
11799
|
-
styles: [".wrapper{position:fixed;top:calc(var(--base-grid-size) * 10.5 + var(--size-medium));left:50%;z-index:var(--toast-z-index)}.toast{transform:translate(-50%);display:inline-flex;align-items:center;justify-content:center;gap:var(--size-small);padding:var(--size-xsmall) var(--size-large);border-radius:calc(var(--base-grid-size) * 8);box-shadow:var(--depth-1);font:var(--body-medium)}.toast.basic{background-color:var(--surface-dark-0);color:var(--type-dark-high-contrast);border:var(--border-width) solid var(--surface-dark-0)}.toast.danger{background-color:var(--danger-main);color:var(--type-dark-high-contrast);border:var(--border-width) solid var(--danger-main)}.toast.safety,.toast.safety-dark{background-color:var(--baja-blast-90);color:var(--type-dark-high-contrast);border:var(--border-width) solid var(--baja-blast-90)}.toast.safety-inverse{background-color:var(--surface-light-safety);color:var(--type-light-safety);border:var(--border-width) solid currentColor}\n"],
|
|
11751
|
+
styles: [".wrapper{position:fixed;top:calc(var(--base-grid-size) * 10.5 + var(--size-medium));left:50%;z-index:var(--toast-z-index)}.wrapper.entering{animation:toast-enter var(--medium-transition)}.wrapper.leaving{animation:toast-leave .15s linear forwards}@keyframes toast-enter{0%{opacity:0;transform:translateY(calc(var(--size-xsmall) * -1));filter:blur(var(--size-xsmall))}}@keyframes toast-leave{to{opacity:0;transform:translateY(calc(var(--size-xsmall) * -1));filter:blur(var(--size-xsmall))}}.toast{transform:translate(-50%);display:inline-flex;align-items:center;justify-content:center;gap:var(--size-small);padding:var(--size-xsmall) var(--size-large);border-radius:calc(var(--base-grid-size) * 8);box-shadow:var(--depth-1);font:var(--body-medium)}.toast.basic{background-color:var(--surface-dark-0);color:var(--type-dark-high-contrast);border:var(--border-width) solid var(--surface-dark-0)}.toast.danger{background-color:var(--danger-main);color:var(--type-dark-high-contrast);border:var(--border-width) solid var(--danger-main)}.toast.safety,.toast.safety-dark{background-color:var(--baja-blast-90);color:var(--type-dark-high-contrast);border:var(--border-width) solid var(--baja-blast-90)}.toast.safety-inverse{background-color:var(--surface-light-safety);color:var(--type-light-safety);border:var(--border-width) solid currentColor}\n"],
|
|
11800
11752
|
dependencies: [
|
|
11801
11753
|
{
|
|
11802
11754
|
kind: "directive",
|
|
@@ -11848,7 +11800,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
11848
11800
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
11849
11801
|
standalone: false,
|
|
11850
11802
|
template: "<div *riv-overlay class=\"wrapper\" [attr.data-animation-hook]=\"hook\">\n <div class=\"toast\" role=\"status\" [ngClass]=\"variant\">\n <riv-icon *ngIf=\"icon\" [name]=\"icon\" [size]=\"16\"></riv-icon>\n <div class=\"content\"><ng-content></ng-content></div>\n </div>\n</div>\n",
|
|
11851
|
-
styles: [".wrapper{position:fixed;top:calc(var(--base-grid-size) * 10.5 + var(--size-medium));left:50%;z-index:var(--toast-z-index)}.toast{transform:translate(-50%);display:inline-flex;align-items:center;justify-content:center;gap:var(--size-small);padding:var(--size-xsmall) var(--size-large);border-radius:calc(var(--base-grid-size) * 8);box-shadow:var(--depth-1);font:var(--body-medium)}.toast.basic{background-color:var(--surface-dark-0);color:var(--type-dark-high-contrast);border:var(--border-width) solid var(--surface-dark-0)}.toast.danger{background-color:var(--danger-main);color:var(--type-dark-high-contrast);border:var(--border-width) solid var(--danger-main)}.toast.safety,.toast.safety-dark{background-color:var(--baja-blast-90);color:var(--type-dark-high-contrast);border:var(--border-width) solid var(--baja-blast-90)}.toast.safety-inverse{background-color:var(--surface-light-safety);color:var(--type-light-safety);border:var(--border-width) solid currentColor}\n"]
|
|
11803
|
+
styles: [".wrapper{position:fixed;top:calc(var(--base-grid-size) * 10.5 + var(--size-medium));left:50%;z-index:var(--toast-z-index)}.wrapper.entering{animation:toast-enter var(--medium-transition)}.wrapper.leaving{animation:toast-leave .15s linear forwards}@keyframes toast-enter{0%{opacity:0;transform:translateY(calc(var(--size-xsmall) * -1));filter:blur(var(--size-xsmall))}}@keyframes toast-leave{to{opacity:0;transform:translateY(calc(var(--size-xsmall) * -1));filter:blur(var(--size-xsmall))}}.toast{transform:translate(-50%);display:inline-flex;align-items:center;justify-content:center;gap:var(--size-small);padding:var(--size-xsmall) var(--size-large);border-radius:calc(var(--base-grid-size) * 8);box-shadow:var(--depth-1);font:var(--body-medium)}.toast.basic{background-color:var(--surface-dark-0);color:var(--type-dark-high-contrast);border:var(--border-width) solid var(--surface-dark-0)}.toast.danger{background-color:var(--danger-main);color:var(--type-dark-high-contrast);border:var(--border-width) solid var(--danger-main)}.toast.safety,.toast.safety-dark{background-color:var(--baja-blast-90);color:var(--type-dark-high-contrast);border:var(--border-width) solid var(--baja-blast-90)}.toast.safety-inverse{background-color:var(--surface-light-safety);color:var(--type-light-safety);border:var(--border-width) solid currentColor}\n"]
|
|
11852
11804
|
}]
|
|
11853
11805
|
}],
|
|
11854
11806
|
propDecorators: {
|
|
@@ -12798,7 +12750,7 @@ var FormDialogComponent = class FormDialogComponent {
|
|
|
12798
12750
|
}],
|
|
12799
12751
|
ngImport: i0,
|
|
12800
12752
|
template: "<riv-modal (close)=\"requestClose()\" [obscure]=\"true\">\n <div [attr.data-animation-hook]=\"hook\" class=\"wrapper\">\n <div\n #dialog\n class=\"dialog\"\n role=\"dialog\"\n aria-modal=\"true\"\n tabindex=\"-1\"\n [attr.aria-labelledby]=\"title ? titleId : null\"\n [style.min-width]=\"minWidth\"\n >\n <header>\n <span class=\"title\" [id]=\"titleId\">\n {{ title }}\n </span>\n <button\n rivButton\n type=\"button\"\n [variant]=\"'ghost'\"\n [icon]=\"'X'\"\n [attr.aria-label]=\"closeText\"\n [disabled]=\"submitting\"\n (click)=\"requestClose()\"\n ></button>\n </header>\n <form novalidate (submit)=\"handleSubmit($event)\">\n <riv-loading-cover [loading]=\"loading\">\n <div class=\"body\" [class.custom]=\"customBody\">\n <ng-content></ng-content>\n </div>\n </riv-loading-cover>\n <div class=\"footer riv-dialog-footer\">\n <footer>\n <div class=\"footer-start\">\n <ng-content select=\"[footer-start]\"></ng-content>\n </div>\n <button\n rivButton\n type=\"button\"\n [variant]=\"'ghost'\"\n [disabled]=\"submitting\"\n (click)=\"requestClose()\"\n >\n {{ readonly ? closeText : cancelText }}\n </button>\n <span\n *ngIf=\"!readonly\"\n class=\"submit-tooltip\"\n [rivTooltip]=\"submitTooltip\"\n >\n <button\n rivButton\n type=\"submit\"\n [variant]=\"'primary'\"\n [disabled]=\"submitDisabled\"\n >\n {{ submitting ? submittingText : submitText }}\n </button>\n </span>\n </footer>\n </div>\n </form>\n </div>\n </div>\n</riv-modal>\n",
|
|
12801
|
-
styles: [".wrapper{position:absolute;top:50%;left:50%}.dialog{transform:translate(-50%,-50%);border-radius:var(--border-radius-medium);border:var(--border-width) solid var(--border-light);display:flex;flex-direction:column;max-width:calc(100vw - var(--size-xlarge) * 2);max-height:calc(100vh - var(--size-xlarge) * 2);overflow:hidden}header{display:flex;justify-content:space-between;align-items:center;padding:0 var(--size-medium);gap:var(--size-medium);border-bottom:var(--border-width) solid var(--border-light);background-color:var(--surface-light-1);flex-shrink:0}.title{font:var(--title-04);padding:var(--size-large) 0}.body{background-color:var(--surface-light-0);overflow-y:auto;min-height:0}.body:not(.custom){padding:var(--size-large)}.footer{border-top:var(--border-width) solid var(--border-light);background-color:var(--surface-light-1);flex-shrink:0}.footer:not(:has(>footer)){display:none}\n", "form{display:flex;flex-direction:column;min-height:0}riv-loading-cover{display:flex;flex-direction:column;min-height:0}.footer-start{display:flex;align-items:center;gap:var(--size-small);margin-right:auto}.submit-tooltip{display:inline-flex}.dialog:focus{outline:none}\n"],
|
|
12753
|
+
styles: [".wrapper{position:absolute;top:50%;left:50%}.wrapper.entering{animation:dialog-enter var(--medium-transition)}.wrapper.leaving{animation:dialog-leave .15s linear forwards}@keyframes dialog-enter{0%{transform:translateY(var(--size-large));filter:blur(var(--size-xsmall))}}@keyframes dialog-leave{to{transform:translateY(var(--size-large));filter:blur(var(--size-xsmall))}}.dialog{transform:translate(-50%,-50%);border-radius:var(--border-radius-medium);border:var(--border-width) solid var(--border-light);display:flex;flex-direction:column;max-width:calc(100vw - var(--size-xlarge) * 2);max-height:calc(100vh - var(--size-xlarge) * 2);overflow:hidden}header{display:flex;justify-content:space-between;align-items:center;padding:0 var(--size-medium);gap:var(--size-medium);border-bottom:var(--border-width) solid var(--border-light);background-color:var(--surface-light-1);flex-shrink:0}.title{font:var(--title-04);padding:var(--size-large) 0}.body{background-color:var(--surface-light-0);overflow-y:auto;min-height:0}.body:not(.custom){padding:var(--size-large)}.footer{border-top:var(--border-width) solid var(--border-light);background-color:var(--surface-light-1);flex-shrink:0}.footer:not(:has(>footer)){display:none}\n", "form{display:flex;flex-direction:column;min-height:0}riv-loading-cover{display:flex;flex-direction:column;min-height:0}.footer-start{display:flex;align-items:center;gap:var(--size-small);margin-right:auto}.submit-tooltip{display:inline-flex}.dialog:focus{outline:none}\n"],
|
|
12802
12754
|
dependencies: [
|
|
12803
12755
|
{
|
|
12804
12756
|
kind: "directive",
|
|
@@ -12876,7 +12828,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
12876
12828
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12877
12829
|
standalone: false,
|
|
12878
12830
|
template: "<riv-modal (close)=\"requestClose()\" [obscure]=\"true\">\n <div [attr.data-animation-hook]=\"hook\" class=\"wrapper\">\n <div\n #dialog\n class=\"dialog\"\n role=\"dialog\"\n aria-modal=\"true\"\n tabindex=\"-1\"\n [attr.aria-labelledby]=\"title ? titleId : null\"\n [style.min-width]=\"minWidth\"\n >\n <header>\n <span class=\"title\" [id]=\"titleId\">\n {{ title }}\n </span>\n <button\n rivButton\n type=\"button\"\n [variant]=\"'ghost'\"\n [icon]=\"'X'\"\n [attr.aria-label]=\"closeText\"\n [disabled]=\"submitting\"\n (click)=\"requestClose()\"\n ></button>\n </header>\n <form novalidate (submit)=\"handleSubmit($event)\">\n <riv-loading-cover [loading]=\"loading\">\n <div class=\"body\" [class.custom]=\"customBody\">\n <ng-content></ng-content>\n </div>\n </riv-loading-cover>\n <div class=\"footer riv-dialog-footer\">\n <footer>\n <div class=\"footer-start\">\n <ng-content select=\"[footer-start]\"></ng-content>\n </div>\n <button\n rivButton\n type=\"button\"\n [variant]=\"'ghost'\"\n [disabled]=\"submitting\"\n (click)=\"requestClose()\"\n >\n {{ readonly ? closeText : cancelText }}\n </button>\n <span\n *ngIf=\"!readonly\"\n class=\"submit-tooltip\"\n [rivTooltip]=\"submitTooltip\"\n >\n <button\n rivButton\n type=\"submit\"\n [variant]=\"'primary'\"\n [disabled]=\"submitDisabled\"\n >\n {{ submitting ? submittingText : submitText }}\n </button>\n </span>\n </footer>\n </div>\n </form>\n </div>\n </div>\n</riv-modal>\n",
|
|
12879
|
-
styles: [".wrapper{position:absolute;top:50%;left:50%}.dialog{transform:translate(-50%,-50%);border-radius:var(--border-radius-medium);border:var(--border-width) solid var(--border-light);display:flex;flex-direction:column;max-width:calc(100vw - var(--size-xlarge) * 2);max-height:calc(100vh - var(--size-xlarge) * 2);overflow:hidden}header{display:flex;justify-content:space-between;align-items:center;padding:0 var(--size-medium);gap:var(--size-medium);border-bottom:var(--border-width) solid var(--border-light);background-color:var(--surface-light-1);flex-shrink:0}.title{font:var(--title-04);padding:var(--size-large) 0}.body{background-color:var(--surface-light-0);overflow-y:auto;min-height:0}.body:not(.custom){padding:var(--size-large)}.footer{border-top:var(--border-width) solid var(--border-light);background-color:var(--surface-light-1);flex-shrink:0}.footer:not(:has(>footer)){display:none}\n", "form{display:flex;flex-direction:column;min-height:0}riv-loading-cover{display:flex;flex-direction:column;min-height:0}.footer-start{display:flex;align-items:center;gap:var(--size-small);margin-right:auto}.submit-tooltip{display:inline-flex}.dialog:focus{outline:none}\n"]
|
|
12831
|
+
styles: [".wrapper{position:absolute;top:50%;left:50%}.wrapper.entering{animation:dialog-enter var(--medium-transition)}.wrapper.leaving{animation:dialog-leave .15s linear forwards}@keyframes dialog-enter{0%{transform:translateY(var(--size-large));filter:blur(var(--size-xsmall))}}@keyframes dialog-leave{to{transform:translateY(var(--size-large));filter:blur(var(--size-xsmall))}}.dialog{transform:translate(-50%,-50%);border-radius:var(--border-radius-medium);border:var(--border-width) solid var(--border-light);display:flex;flex-direction:column;max-width:calc(100vw - var(--size-xlarge) * 2);max-height:calc(100vh - var(--size-xlarge) * 2);overflow:hidden}header{display:flex;justify-content:space-between;align-items:center;padding:0 var(--size-medium);gap:var(--size-medium);border-bottom:var(--border-width) solid var(--border-light);background-color:var(--surface-light-1);flex-shrink:0}.title{font:var(--title-04);padding:var(--size-large) 0}.body{background-color:var(--surface-light-0);overflow-y:auto;min-height:0}.body:not(.custom){padding:var(--size-large)}.footer{border-top:var(--border-width) solid var(--border-light);background-color:var(--surface-light-1);flex-shrink:0}.footer:not(:has(>footer)){display:none}\n", "form{display:flex;flex-direction:column;min-height:0}riv-loading-cover{display:flex;flex-direction:column;min-height:0}.footer-start{display:flex;align-items:center;gap:var(--size-small);margin-right:auto}.submit-tooltip{display:inline-flex}.dialog:focus{outline:none}\n"]
|
|
12880
12832
|
}]
|
|
12881
12833
|
}],
|
|
12882
12834
|
ctorParameters: () => [{ type: DialogStackService }, { type: i0.NgZone }],
|