@eagami/ui 5.90.1 → 5.90.2
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/fesm2022/eagami-ui.mjs +27 -50
- package/fesm2022/eagami-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/eagami-ui.d.ts +1 -4
package/fesm2022/eagami-ui.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { ApplicationRef, CSP_NONCE, ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, Directive, ElementRef, EnvironmentInjector, HostAttributeToken,
|
|
2
|
+
import { ApplicationRef, CSP_NONCE, ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, Directive, ElementRef, EnvironmentInjector, HostAttributeToken, Injectable, InjectionToken, Injector, NgZone, PLATFORM_ID, Renderer2, RendererStyleFlags2, TemplateRef, ViewContainerRef, ViewEncapsulation, afterNextRender, afterRenderEffect, computed, contentChild, createComponent, effect, forwardRef, inject, input, linkedSignal, makeEnvironmentProviders, model, output, provideEnvironmentInitializer, signal, untracked, viewChild, viewChildren } from "@angular/core";
|
|
3
3
|
import { NgClass, NgComponentOutlet, NgTemplateOutlet, isPlatformBrowser } from "@angular/common";
|
|
4
4
|
import { FormResetEvent, FormSubmittedEvent, NG_VALUE_ACCESSOR, NgControl, TouchedChangeEvent } from "@angular/forms";
|
|
5
5
|
const EAGAMI_FORMS_CONFIG = new InjectionToken("EAGAMI_FORMS_CONFIG", {
|
|
@@ -4107,9 +4107,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4107
4107
|
}
|
|
4108
4108
|
});
|
|
4109
4109
|
var IconComponentBase = class IconComponentBase {
|
|
4110
|
-
display = "inline-flex";
|
|
4111
|
-
width = "1em";
|
|
4112
|
-
height = "1em";
|
|
4113
4110
|
static defaultStrokeWidth = 2;
|
|
4114
4111
|
strokeWidth = input(this.constructor.defaultStrokeWidth, ...ngDevMode ? [{ debugName: "strokeWidth" }] : /* istanbul ignore next */ []);
|
|
4115
4112
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
@@ -4133,9 +4130,9 @@ var IconComponentBase = class IconComponentBase {
|
|
|
4133
4130
|
transformFunction: null
|
|
4134
4131
|
} },
|
|
4135
4132
|
host: { properties: {
|
|
4136
|
-
"style.display": "
|
|
4137
|
-
"style.width": "
|
|
4138
|
-
"style.height": "
|
|
4133
|
+
"style.display": "'inline-flex'",
|
|
4134
|
+
"style.width": "'1em'",
|
|
4135
|
+
"style.height": "'1em'"
|
|
4139
4136
|
} },
|
|
4140
4137
|
ngImport: i0
|
|
4141
4138
|
});
|
|
@@ -4145,29 +4142,22 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4145
4142
|
version: "22.2.6",
|
|
4146
4143
|
ngImport: i0,
|
|
4147
4144
|
type: IconComponentBase,
|
|
4148
|
-
decorators: [{
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
strokeWidth: [{
|
|
4163
|
-
type: i0.Input,
|
|
4164
|
-
args: [{
|
|
4165
|
-
isSignal: true,
|
|
4166
|
-
alias: "strokeWidth",
|
|
4167
|
-
required: false
|
|
4168
|
-
}]
|
|
4145
|
+
decorators: [{
|
|
4146
|
+
type: Directive,
|
|
4147
|
+
args: [{ host: {
|
|
4148
|
+
"[style.display]": "'inline-flex'",
|
|
4149
|
+
"[style.width]": "'1em'",
|
|
4150
|
+
"[style.height]": "'1em'"
|
|
4151
|
+
} }]
|
|
4152
|
+
}],
|
|
4153
|
+
propDecorators: { strokeWidth: [{
|
|
4154
|
+
type: i0.Input,
|
|
4155
|
+
args: [{
|
|
4156
|
+
isSignal: true,
|
|
4157
|
+
alias: "strokeWidth",
|
|
4158
|
+
required: false
|
|
4169
4159
|
}]
|
|
4170
|
-
}
|
|
4160
|
+
}] }
|
|
4171
4161
|
});
|
|
4172
4162
|
var ChevronDownIconComponent = class ChevronDownIconComponent extends IconComponentBase {
|
|
4173
4163
|
static slug = "chevron-down";
|
|
@@ -6373,7 +6363,9 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6373
6363
|
host: {
|
|
6374
6364
|
"[attr.role]": "null",
|
|
6375
6365
|
"[attr.aria-label]": "null",
|
|
6376
|
-
"[attr.aria-labelledby]": "null"
|
|
6366
|
+
"[attr.aria-labelledby]": "null",
|
|
6367
|
+
"(document:click)": "onDocumentClick($event)",
|
|
6368
|
+
"(document:keydown.escape)": "onEscape($event)"
|
|
6377
6369
|
},
|
|
6378
6370
|
template: "<!--\n The surface is rendered unconditionally so the `<ng-content/>` slot always\n exists. If we gated it on `@if (open())`, Angular would re-project the\n consumer's content at the popover host's position whenever the surface was\n absent, leaking menu items / picker controls into the document flow (made\n worse by `display: contents` on the host). Hiding via `display: none` keeps\n the projected DOM owned by the surface and out of the flow when closed.\n-->\n<div\n #surfaceEl\n [class]=\"surfaceClass()\"\n [id]=\"surfaceId()\"\n [attr.role]=\"open() ? role() : null\"\n [attr.aria-label]=\"open() ? ariaLabel() : null\"\n [attr.aria-labelledby]=\"open() ? ariaLabelledby() : null\"\n [attr.aria-hidden]=\"open() ? null : true\"\n [style]=\"surfaceStyle()\"\n (keydown)=\"onSurfaceKeydown($event)\">\n <ng-content />\n</div>\n",
|
|
6379
6371
|
styles: [":host{display:contents}.ea-popover__surface{z-index:var(--z-index-popover);position:fixed;visibility:hidden;font-family:var(--font-family-sans)}.ea-popover__surface--positioned{visibility:visible}.ea-popover__surface[popover]{inset:auto;overflow:visible;width:auto;height:auto;padding:0;margin:0;border:0;background:none;color:inherit}\n"]
|
|
@@ -6536,14 +6528,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6536
6528
|
openRequested: [{
|
|
6537
6529
|
type: i0.Output,
|
|
6538
6530
|
args: ["openRequested"]
|
|
6539
|
-
}],
|
|
6540
|
-
onDocumentClick: [{
|
|
6541
|
-
type: HostListener,
|
|
6542
|
-
args: ["document:click", ["$event"]]
|
|
6543
|
-
}],
|
|
6544
|
-
onEscape: [{
|
|
6545
|
-
type: HostListener,
|
|
6546
|
-
args: ["document:keydown.escape", ["$event"]]
|
|
6547
6531
|
}]
|
|
6548
6532
|
}
|
|
6549
6533
|
});
|
|
@@ -15391,6 +15375,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
15391
15375
|
selector: "ea-menu",
|
|
15392
15376
|
imports: [PopoverComponent],
|
|
15393
15377
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
15378
|
+
host: {
|
|
15379
|
+
"(document:keydown)": "onKeydown($event)",
|
|
15380
|
+
"(document:keydown.escape)": "onEscape($event)"
|
|
15381
|
+
},
|
|
15394
15382
|
template: "<ea-popover\n [anchor]=\"triggerEl()\"\n [open]=\"open()\"\n [placement]=\"placement()\"\n [anchorPoint]=\"anchorPoint()\"\n [contextMenu]=\"asContextMenu()\"\n role=\"menu\"\n [surfaceId]=\"id()\"\n [aria-label]=\"resolvedAriaLabel()\"\n [closeOnEscape]=\"false\"\n scrollBehavior=\"reposition\"\n (closeRequested)=\"onPopoverCloseRequested()\">\n <div\n #listEl\n class=\"ea-menu__list ea-menu__list--{{ size() }}\"\n [style.max-height]=\"maxHeight()\">\n <ng-content />\n </div>\n</ea-popover>\n",
|
|
15395
15383
|
styles: [":host{display:contents}.ea-menu__list{overflow-y:auto;min-width:10em;padding:.25em 0;border:var(--border-width-thin) solid var(--color-border-default);border-radius:var(--radius-md);box-shadow:var(--shadow-lg)}@media(forced-colors:active){.ea-menu__list{border:1px solid CanvasText}}.ea-menu__list{background-color:var(--ea-menu-list-background-color, var(--color-bg-elevated))}.ea-menu__list--2xs{font-size:var(--font-size-2xs)}.ea-menu__list--xs{font-size:var(--font-size-xs)}.ea-menu__list--sm{font-size:var(--font-size-sm)}.ea-menu__list--md{font-size:var(--font-size-md)}.ea-menu__list--lg{font-size:var(--font-size-lg)}.ea-menu__list--xl{font-size:var(--font-size-xl)}\n"]
|
|
15396
15384
|
}]
|
|
@@ -15471,14 +15459,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
15471
15459
|
closed: [{
|
|
15472
15460
|
type: i0.Output,
|
|
15473
15461
|
args: ["closed"]
|
|
15474
|
-
}],
|
|
15475
|
-
onKeydown: [{
|
|
15476
|
-
type: HostListener,
|
|
15477
|
-
args: ["document:keydown", ["$event"]]
|
|
15478
|
-
}],
|
|
15479
|
-
onEscape: [{
|
|
15480
|
-
type: HostListener,
|
|
15481
|
-
args: ["document:keydown.escape", ["$event"]]
|
|
15482
15462
|
}]
|
|
15483
15463
|
}
|
|
15484
15464
|
});
|
|
@@ -18497,6 +18477,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
18497
18477
|
imports: [NgClass, XIconComponent],
|
|
18498
18478
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18499
18479
|
encapsulation: ViewEncapsulation.None,
|
|
18480
|
+
host: { "(document:click)": "onDocumentClick($event)" },
|
|
18500
18481
|
template: "<dialog\n #dialogEl\n class=\"ea-dialog\"\n [id]=\"id()\"\n [class.ea-dialog--floating]=\"!modal()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"!ariaLabel() && hasHeader() ? id() + '-header' : null\"\n (click)=\"handleBackdropClick($event)\"\n (cancel)=\"handleCancel($event)\"\n (keydown.escape)=\"handleEscape()\">\n <div\n class=\"ea-dialog__panel\"\n [ngClass]=\"panelClasses()\">\n <div\n class=\"ea-dialog__header\"\n [class.ea-dialog__header--hidden]=\"!hasHeader() && !showClose()\">\n <div\n #headerEl\n class=\"ea-dialog__header-content\"\n [id]=\"id() + '-header'\">\n <ng-content select=\"[slot=header]\" />\n </div>\n @if (showClose()) {\n <button\n type=\"button\"\n class=\"ea-dialog__close\"\n [attr.aria-label]=\"i18n.messages().dialog.close\"\n [disabled]=\"closeDisabled()\"\n (click)=\"requestClose()\">\n <ea-icon-x />\n </button>\n }\n </div>\n\n <div class=\"ea-dialog__body\">\n <ng-content />\n </div>\n\n <div class=\"ea-dialog__status\">\n <ng-content select=\"[slot=status]\" />\n </div>\n\n <div class=\"ea-dialog__footer\">\n <ng-content select=\"[slot=footer]\" />\n </div>\n </div>\n</dialog>\n",
|
|
18501
18482
|
styles: [".ea-dialog{border:none;background:transparent;padding:0;margin:auto;max-width:none;max-height:none;overflow:visible}.ea-dialog::backdrop{background-color:var(--color-bg-overlay)}.ea-dialog--floating{z-index:var(--z-index-modal);position:fixed;inset:0;width:fit-content;height:fit-content}.ea-dialog__panel{--_ea-dialog-inset: var(--ea-dialog-inset, var(--space-4));position:relative;display:flex;flex-direction:column;width:var(--ea-dialog-size, 32rem);max-width:calc(100vw - 2 * var(--_ea-dialog-inset));max-height:var(--ea-dialog-max-height, 85vh);background-color:var(--ea-dialog-panel-background-color, var(--color-bg-elevated));border-radius:var(--ea-dialog-radius, var(--radius-xl));box-shadow:var(--shadow-2xl);overflow:hidden}@media(forced-colors:active){.ea-dialog__panel{border:1px solid CanvasText}}.ea-dialog__panel--2xs{--ea-dialog-size: 16rem}.ea-dialog__panel--xs{--ea-dialog-size: 20rem}.ea-dialog__panel--sm{--ea-dialog-size: 24rem}.ea-dialog__panel--md{--ea-dialog-size: 32rem}.ea-dialog__panel--lg{--ea-dialog-size: 42rem}.ea-dialog__panel--xl{--ea-dialog-size: 52rem}.ea-dialog__panel--2xl{--ea-dialog-size: 64rem}.ea-dialog__panel--full{width:calc(100vw - 2 * var(--_ea-dialog-inset));height:calc(100vh - 2 * var(--_ea-dialog-inset));max-height:var(--ea-dialog-max-height, calc(100vh - 2 * var(--_ea-dialog-inset)))}.ea-dialog__panel:has(>.ea-dialog__header--hidden)>.ea-dialog__body{--_ea-dialog-body-padding-top: var(--space-5)}.ea-dialog__panel:not(:has(>.ea-dialog__status:not(:empty),>.ea-dialog__footer:not(:empty)))>.ea-dialog__body{--_ea-dialog-body-padding-bottom: var(--space-5)}.ea-dialog__panel:has(>.ea-dialog__body:not(:empty))>.ea-dialog__status{--_ea-dialog-status-padding-top: 0}.ea-dialog__panel:has(>.ea-dialog__body:not(:empty)):not(:has(>.ea-dialog__status:not(:empty)))>.ea-dialog__footer{--_ea-dialog-footer-padding-top: 0}.ea-dialog__panel:not(:has(>.ea-dialog__footer:not(:empty)))>.ea-dialog__status{--_ea-dialog-status-padding-bottom: var(--space-5)}.ea-dialog__panel:not(:has(>.ea-dialog__body:not(:empty),>.ea-dialog__status:not(:empty),>.ea-dialog__footer:not(:empty)))>.ea-dialog__header{--_ea-dialog-header-padding-bottom: var(--space-5)}.ea-dialog__close{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--ea-icon-button-size, 1.75em);height:var(--ea-icon-button-size, 1.75em);padding:0;border:none;border-radius:var(--radius-sm);background:none;color:var(--color-text-secondary);cursor:pointer;transition:var(--transition-colors)}.ea-dialog__close>*{font-size:1.25em}.ea-dialog__close:after{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--ea-icon-button-target, 24px));height:max(100%,var(--ea-icon-button-target, 24px));transform:translate(-50%,-50%)}.ea-dialog__close:hover{background-color:var(--color-state-hover);color:var(--color-text-primary)}.ea-dialog__close:focus-visible{outline:none;outline:var(--border-width-medium) solid var(--color-border-focus);outline-offset:2px}@media(forced-colors:active){.ea-dialog__close:focus-visible{outline:2px solid Highlight;outline-offset:2px}}.ea-dialog__close:disabled{cursor:default;opacity:.5}.ea-dialog__header{display:flex;align-items:flex-start;gap:var(--space-3);padding:var(--ea-dialog-header-padding, var(--space-5) var(--space-6) var(--_ea-dialog-header-padding-bottom, 0))}.ea-dialog__header--hidden{display:none}.ea-dialog__header-content{flex:1;min-width:0;font-size:var(--ea-dialog-header-font-size, var(--text-h4-size));font-weight:var(--ea-dialog-header-font-weight, var(--text-h4-weight));line-height:var(--text-h4-lh);color:var(--color-text-primary)}.ea-dialog__header-content>:is(h1,h2,h3,h4,h5,h6){margin:0;font-size:inherit;font-weight:inherit;line-height:inherit}.ea-dialog__body{flex:1;padding:var(--ea-dialog-body-padding, var(--_ea-dialog-body-padding-top, var(--space-3)) var(--space-6) var(--_ea-dialog-body-padding-bottom, var(--space-3)))}.ea-dialog__body:empty{display:none}.ea-dialog__body{overflow-y:auto;font-size:var(--font-size-sm);line-height:var(--line-height-normal);color:var(--color-text-secondary);scrollbar-gutter:stable}.ea-dialog__status{flex-shrink:0;padding:var(--ea-dialog-status-padding, var(--_ea-dialog-status-padding-top, var(--space-3)) var(--space-6) var(--_ea-dialog-status-padding-bottom, 0));font-size:var(--font-size-sm);line-height:var(--line-height-normal);color:var(--color-text-secondary)}.ea-dialog__status:empty{display:none}.ea-dialog__footer{--ea-button-white-space: normal;--ea-button-line-height: var(--line-height-tight);display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--space-3);padding:var(--_ea-dialog-footer-padding-top, var(--space-3)) var(--space-6) var(--space-5)}.ea-dialog__footer>*{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--space-3)}.ea-dialog__footer:empty{display:none}\n"]
|
|
18502
18483
|
}]
|
|
@@ -18605,10 +18586,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
18605
18586
|
closeRequested: [{
|
|
18606
18587
|
type: i0.Output,
|
|
18607
18588
|
args: ["closeRequested"]
|
|
18608
|
-
}],
|
|
18609
|
-
onDocumentClick: [{
|
|
18610
|
-
type: HostListener,
|
|
18611
|
-
args: ["document:click", ["$event"]]
|
|
18612
18589
|
}]
|
|
18613
18590
|
}
|
|
18614
18591
|
});
|