@rivet-health/design-system 41.2.4 → 42.0.0-beta.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.
|
@@ -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";
|
|
@@ -10265,56 +10264,22 @@ var RivViews;
|
|
|
10265
10264
|
RivViews.toSharedUsers = toSharedUsers;
|
|
10266
10265
|
})(RivViews || (RivViews = {}));
|
|
10267
10266
|
const ANIMATION_CONSTANTS = {
|
|
10268
|
-
SIDE_SHEET: {
|
|
10269
|
-
|
|
10270
|
-
|
|
10271
|
-
|
|
10272
|
-
},
|
|
10273
|
-
TOAST: {
|
|
10274
|
-
HOOK: "toast",
|
|
10275
|
-
HIDDEN: {
|
|
10276
|
-
opacity: 0,
|
|
10277
|
-
transform: "translateY(calc(var(--size-xsmall) * -1))",
|
|
10278
|
-
filter: "blur(var(--size-xsmall))"
|
|
10279
|
-
},
|
|
10280
|
-
VISIBLE: {
|
|
10281
|
-
opacity: 1,
|
|
10282
|
-
transform: "translateY(0px)",
|
|
10283
|
-
filter: "none"
|
|
10284
|
-
}
|
|
10285
|
-
},
|
|
10286
|
-
MODAL: {
|
|
10287
|
-
HOOK: "modal",
|
|
10288
|
-
HIDDEN: { opacity: 0 },
|
|
10289
|
-
VISIBLE: { opacity: 1 }
|
|
10290
|
-
},
|
|
10291
|
-
DIALOG: {
|
|
10292
|
-
HOOK: "dialog",
|
|
10293
|
-
HIDDEN: {
|
|
10294
|
-
transform: "translateY(var(--size-large))",
|
|
10295
|
-
filter: "blur(var(--size-xsmall))"
|
|
10296
|
-
},
|
|
10297
|
-
VISIBLE: {
|
|
10298
|
-
transform: "translateY(0px)",
|
|
10299
|
-
filter: "none"
|
|
10300
|
-
}
|
|
10301
|
-
}
|
|
10267
|
+
SIDE_SHEET: { HOOK: "side-sheet" },
|
|
10268
|
+
TOAST: { HOOK: "toast" },
|
|
10269
|
+
MODAL: { HOOK: "modal" },
|
|
10270
|
+
DIALOG: { HOOK: "dialog" }
|
|
10302
10271
|
};
|
|
10303
|
-
function createComponentAnimation(config) {
|
|
10304
|
-
return {
|
|
10305
|
-
enter: query(`[data-animation-hook="${config.HOOK}"]`, [style(config.HIDDEN), animate("200ms ease-in-out", style(config.VISIBLE))], { optional: true }),
|
|
10306
|
-
leave: query(`[data-animation-hook="${config.HOOK}"]`, [animate("150ms linear", style(config.HIDDEN))], { optional: true })
|
|
10307
|
-
};
|
|
10308
|
-
}
|
|
10309
|
-
const sideSheetAnimation = createComponentAnimation(ANIMATION_CONSTANTS.SIDE_SHEET);
|
|
10310
|
-
const toastAnimation = createComponentAnimation(ANIMATION_CONSTANTS.TOAST);
|
|
10311
|
-
const modalAnimation = createComponentAnimation(ANIMATION_CONSTANTS.MODAL);
|
|
10312
|
-
const dialogAnimation = createComponentAnimation(ANIMATION_CONSTANTS.DIALOG);
|
|
10313
10272
|
var OverlayOutletComponent = class OverlayOutletComponent {
|
|
10314
10273
|
constructor(overlayService) {
|
|
10315
10274
|
this.overlayService = overlayService;
|
|
10316
10275
|
this.trackOverlay = (_, { key }) => key;
|
|
10317
10276
|
}
|
|
10277
|
+
enter({ target }) {
|
|
10278
|
+
OverlayOutletComponent.animateHooks(target, "entering");
|
|
10279
|
+
}
|
|
10280
|
+
leave({ target, animationComplete }) {
|
|
10281
|
+
OverlayOutletComponent.animateHooks(target, "leaving").finally(animationComplete);
|
|
10282
|
+
}
|
|
10318
10283
|
static {
|
|
10319
10284
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
10320
10285
|
minVersion: "12.0.0",
|
|
@@ -10333,7 +10298,7 @@ var OverlayOutletComponent = class OverlayOutletComponent {
|
|
|
10333
10298
|
isStandalone: false,
|
|
10334
10299
|
selector: "riv-overlay-outlet",
|
|
10335
10300
|
ngImport: i0,
|
|
10336
|
-
template: "<
|
|
10301
|
+
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",
|
|
10337
10302
|
styles: [".overlay-container{display:contents;position:relative;z-index:var(--modal-z-index)}\n"],
|
|
10338
10303
|
dependencies: [
|
|
10339
10304
|
{
|
|
@@ -10367,17 +10332,6 @@ var OverlayOutletComponent = class OverlayOutletComponent {
|
|
|
10367
10332
|
name: "keyvalue"
|
|
10368
10333
|
}
|
|
10369
10334
|
],
|
|
10370
|
-
animations: [trigger("animate", [transition(":enter", [group([
|
|
10371
|
-
sideSheetAnimation.enter,
|
|
10372
|
-
toastAnimation.enter,
|
|
10373
|
-
modalAnimation.enter,
|
|
10374
|
-
dialogAnimation.enter
|
|
10375
|
-
])]), transition(":leave", [group([
|
|
10376
|
-
sideSheetAnimation.leave,
|
|
10377
|
-
toastAnimation.leave,
|
|
10378
|
-
modalAnimation.leave,
|
|
10379
|
-
dialogAnimation.leave
|
|
10380
|
-
])])])],
|
|
10381
10335
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
10382
10336
|
});
|
|
10383
10337
|
}
|
|
@@ -10390,26 +10344,24 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
10390
10344
|
decorators: [{
|
|
10391
10345
|
type: Component,
|
|
10392
10346
|
args: [{
|
|
10393
|
-
animations: [trigger("animate", [transition(":enter", [group([
|
|
10394
|
-
sideSheetAnimation.enter,
|
|
10395
|
-
toastAnimation.enter,
|
|
10396
|
-
modalAnimation.enter,
|
|
10397
|
-
dialogAnimation.enter
|
|
10398
|
-
])]), transition(":leave", [group([
|
|
10399
|
-
sideSheetAnimation.leave,
|
|
10400
|
-
toastAnimation.leave,
|
|
10401
|
-
modalAnimation.leave,
|
|
10402
|
-
dialogAnimation.leave
|
|
10403
|
-
])])])],
|
|
10404
10347
|
selector: "riv-overlay-outlet",
|
|
10405
10348
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10406
10349
|
standalone: false,
|
|
10407
|
-
template: "<
|
|
10350
|
+
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",
|
|
10408
10351
|
styles: [".overlay-container{display:contents;position:relative;z-index:var(--modal-z-index)}\n"]
|
|
10409
10352
|
}]
|
|
10410
10353
|
}],
|
|
10411
10354
|
ctorParameters: () => [{ type: OverlayService }]
|
|
10412
10355
|
});
|
|
10356
|
+
(function(OverlayOutletComponent) {
|
|
10357
|
+
async function animateHooks(overlay, className) {
|
|
10358
|
+
const hooks = Array.from(overlay.querySelectorAll("[data-animation-hook]"));
|
|
10359
|
+
hooks.forEach((hook) => hook.classList.add(className));
|
|
10360
|
+
await Promise.allSettled(hooks.flatMap((hook) => hook.getAnimations?.() ?? []).map(({ finished }) => finished));
|
|
10361
|
+
hooks.forEach((hook) => hook.classList.remove(className));
|
|
10362
|
+
}
|
|
10363
|
+
OverlayOutletComponent.animateHooks = animateHooks;
|
|
10364
|
+
})(OverlayOutletComponent || (OverlayOutletComponent = {}));
|
|
10413
10365
|
var ModalComponent = class ModalComponent {
|
|
10414
10366
|
constructor() {
|
|
10415
10367
|
this.obscure = false;
|
|
@@ -10444,7 +10396,7 @@ var ModalComponent = class ModalComponent {
|
|
|
10444
10396
|
outputs: { close: "close" },
|
|
10445
10397
|
ngImport: i0,
|
|
10446
10398
|
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",
|
|
10447
|
-
styles: [".scrim{position:fixed;z-index:var(--callout-z-index);cursor:default;inset:0}.scrim.obscure{background-color:var(--modal-scrim)}\n"],
|
|
10399
|
+
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"],
|
|
10448
10400
|
dependencies: [{
|
|
10449
10401
|
kind: "directive",
|
|
10450
10402
|
type: LockScrollDirective,
|
|
@@ -10471,7 +10423,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
10471
10423
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10472
10424
|
standalone: false,
|
|
10473
10425
|
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",
|
|
10474
|
-
styles: [".scrim{position:fixed;z-index:var(--callout-z-index);cursor:default;inset:0}.scrim.obscure{background-color:var(--modal-scrim)}\n"]
|
|
10426
|
+
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"]
|
|
10475
10427
|
}]
|
|
10476
10428
|
}],
|
|
10477
10429
|
propDecorators: {
|
|
@@ -10514,7 +10466,7 @@ var SideSheetComponent = class SideSheetComponent {
|
|
|
10514
10466
|
outputs: { close: "close" },
|
|
10515
10467
|
ngImport: i0,
|
|
10516
10468
|
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",
|
|
10517
|
-
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"],
|
|
10469
|
+
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"],
|
|
10518
10470
|
dependencies: [{
|
|
10519
10471
|
kind: "component",
|
|
10520
10472
|
type: ModalComponent,
|
|
@@ -10538,7 +10490,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
10538
10490
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10539
10491
|
standalone: false,
|
|
10540
10492
|
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",
|
|
10541
|
-
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"]
|
|
10493
|
+
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"]
|
|
10542
10494
|
}]
|
|
10543
10495
|
}],
|
|
10544
10496
|
propDecorators: {
|
|
@@ -10643,7 +10595,7 @@ var DialogComponent = class DialogComponent {
|
|
|
10643
10595
|
host: { listeners: { "document:keydown": "handleKeydown($event)" } },
|
|
10644
10596
|
ngImport: i0,
|
|
10645
10597
|
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",
|
|
10646
|
-
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"],
|
|
10598
|
+
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"],
|
|
10647
10599
|
dependencies: [{
|
|
10648
10600
|
kind: "component",
|
|
10649
10601
|
type: ButtonComponent,
|
|
@@ -10682,7 +10634,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
10682
10634
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10683
10635
|
standalone: false,
|
|
10684
10636
|
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",
|
|
10685
|
-
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"]
|
|
10637
|
+
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"]
|
|
10686
10638
|
}]
|
|
10687
10639
|
}],
|
|
10688
10640
|
ctorParameters: () => [{ type: DialogStackService }],
|
|
@@ -11794,7 +11746,7 @@ var ToastComponent = class ToastComponent {
|
|
|
11794
11746
|
outputs: { close: "close" },
|
|
11795
11747
|
ngImport: i0,
|
|
11796
11748
|
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",
|
|
11797
|
-
styles: [".wrapper{position:fixed;top:calc(var(--base-grid-size) *
|
|
11749
|
+
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"],
|
|
11798
11750
|
dependencies: [
|
|
11799
11751
|
{
|
|
11800
11752
|
kind: "directive",
|
|
@@ -11846,7 +11798,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
11846
11798
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
11847
11799
|
standalone: false,
|
|
11848
11800
|
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",
|
|
11849
|
-
styles: [".wrapper{position:fixed;top:calc(var(--base-grid-size) *
|
|
11801
|
+
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"]
|
|
11850
11802
|
}]
|
|
11851
11803
|
}],
|
|
11852
11804
|
propDecorators: {
|
|
@@ -12796,7 +12748,7 @@ var FormDialogComponent = class FormDialogComponent {
|
|
|
12796
12748
|
}],
|
|
12797
12749
|
ngImport: i0,
|
|
12798
12750
|
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",
|
|
12799
|
-
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"],
|
|
12751
|
+
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"],
|
|
12800
12752
|
dependencies: [
|
|
12801
12753
|
{
|
|
12802
12754
|
kind: "directive",
|
|
@@ -12874,7 +12826,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
12874
12826
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12875
12827
|
standalone: false,
|
|
12876
12828
|
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",
|
|
12877
|
-
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"]
|
|
12829
|
+
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"]
|
|
12878
12830
|
}]
|
|
12879
12831
|
}],
|
|
12880
12832
|
ctorParameters: () => [{ type: DialogStackService }, { type: i0.NgZone }],
|